@sourceful-energy/ui 0.1.21 → 0.1.23

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.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import*as h from'react';import {useRef,useEffect}from'react';import*as b from'@radix-ui/react-accordion';import {ChevronDown,Check,X as X$1,ChevronRight,Circle,ChevronUp}from'lucide-react';import {clsx}from'clsx';import {twMerge}from'tailwind-merge';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {cva}from'class-variance-authority';import {Slot}from'@radix-ui/react-slot';import*as H from'@radix-ui/react-checkbox';import*as p from'@radix-ui/react-dialog';import*as d from'@radix-ui/react-dropdown-menu';import*as J from'@radix-ui/react-label';import*as I from'@radix-ui/react-progress';import*as N from'@radix-ui/react-radio-group';import*as R from'@radix-ui/react-scroll-area';import*as m from'@radix-ui/react-select';import*as te from'@radix-ui/react-separator';import*as w from'@radix-ui/react-slider';import*as V from'@radix-ui/react-switch';import*as P from'@radix-ui/react-tabs';import*as y from'@radix-ui/react-tooltip';import zo from'lenis';var It=Object.defineProperty,Et=Object.defineProperties;var Wt=Object.getOwnPropertyDescriptors;var B=Object.getOwnPropertySymbols;var le=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable;var se=(e,t,o)=>t in e?It(e,t,{enumerable:true,configurable:true,writable:true,value:o}):e[t]=o,n=(e,t)=>{for(var o in t||(t={}))le.call(t,o)&&se(e,o,t[o]);if(B)for(var o of B(t))de.call(t,o)&&se(e,o,t[o]);return e},c=(e,t)=>Et(e,Wt(t));var s=(e,t)=>{var o={};for(var i in e)le.call(e,i)&&t.indexOf(i)<0&&(o[i]=e[i]);if(e!=null&&B)for(var i of B(e))t.indexOf(i)<0&&de.call(e,i)&&(o[i]=e[i]);return o};function a(...e){return twMerge(clsx(e))}var Gt=b.Root,me=h.forwardRef((i,o)=>{var r=i,{className:e}=r,t=s(r,["className"]);return jsx(b.Item,n({ref:o,className:a("border-b",e)},t))});me.displayName="AccordionItem";var ce=h.forwardRef((r,i)=>{var l=r,{className:e,children:t}=l,o=s(l,["className","children"]);return jsx(b.Header,{className:"flex",children:jsxs(b.Trigger,c(n({ref:i,className:a("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e)},o),{children:[t,jsx(ChevronDown,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]}))})});ce.displayName=b.Trigger.displayName;var pe=h.forwardRef((r,i)=>{var l=r,{className:e,children:t}=l,o=s(l,["className","children"]);return jsx(b.Content,c(n({ref:i,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down"},o),{children:jsx("div",{className:a("pb-4 pt-0",e),children:t})}))});pe.displayName=b.Content.displayName;var _t=cva("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive",success:"border-sourceful-green-500/50 bg-sourceful-green-50 text-sourceful-green-900 dark:bg-sourceful-green-950/50 dark:text-sourceful-green-100 [&>svg]:text-sourceful-green-500",warning:"border-sourceful-yellow-500/50 bg-sourceful-yellow-50 text-sourceful-yellow-900 dark:bg-sourceful-yellow-950/50 dark:text-sourceful-yellow-100 [&>svg]:text-sourceful-yellow-500",info:"border-blue-500/50 bg-blue-50 text-blue-900 dark:bg-blue-950/50 dark:text-blue-100 [&>svg]:text-blue-500",energy:"border-sourceful-yellow-400/50 bg-sourceful-yellow-50 text-sourceful-gray-900 dark:bg-sourceful-yellow-950/50 dark:text-sourceful-yellow-100 [&>svg]:text-sourceful-yellow-400"}},defaultVariants:{variant:"default"}}),fe=h.forwardRef((r,i)=>{var l=r,{className:e,variant:t}=l,o=s(l,["className","variant"]);return jsx("div",n({ref:i,role:"alert",className:a(_t({variant:t}),e)},o))});fe.displayName="Alert";var ue=h.forwardRef((i,o)=>{var r=i,{className:e}=r,t=s(r,["className"]);return jsx("h5",n({ref:o,className:a("mb-1 font-medium leading-none tracking-tight",e)},t))});ue.displayName="AlertTitle";var ve=h.forwardRef((i,o)=>{var r=i,{className:e}=r,t=s(r,["className"]);return jsx("div",n({ref:o,className:a("text-sm [&_p]:leading-relaxed",e)},t))});ve.displayName="AlertDescription";var ge=cva("inline-flex items-center gap-1 border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 [&_svg]:size-3 [&_svg]:shrink-0",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground",energy:"border-transparent bg-sourceful-yellow-400 text-sourceful-gray-900 shadow hover:bg-sourceful-yellow-500",success:"border-transparent bg-sourceful-green-500 text-sourceful-gray-900 shadow hover:bg-sourceful-green-600",warning:"border-transparent bg-orange-500 text-white shadow hover:bg-orange-600",info:"border-transparent bg-blue-500 text-white shadow hover:bg-blue-600","success-soft":"border-sourceful-green-500/20 bg-sourceful-green-500/10 text-sourceful-green-600 dark:text-sourceful-green-400","warning-soft":"border-orange-500/20 bg-orange-500/10 text-orange-600 dark:text-orange-400","destructive-soft":"border-destructive/20 bg-destructive/10 text-destructive dark:text-red-400","info-soft":"border-blue-500/20 bg-blue-500/10 text-blue-600 dark:text-blue-400","energy-soft":"border-sourceful-yellow-500/20 bg-sourceful-yellow-400/10 text-sourceful-yellow-600 dark:text-sourceful-yellow-400","success-outline":"border-sourceful-green-500/50 bg-transparent text-sourceful-green-600 dark:text-sourceful-green-400","warning-outline":"border-orange-500/50 bg-transparent text-orange-600 dark:text-orange-400","destructive-outline":"border-destructive/50 bg-transparent text-destructive dark:text-red-400","info-outline":"border-blue-500/50 bg-transparent text-blue-600 dark:text-blue-400"},rounded:{default:"rounded-md",full:"rounded-full"}},defaultVariants:{variant:"default",rounded:"default"}});function qt(r){var l=r,{className:e,variant:t,rounded:o}=l,i=s(l,["className","variant","rounded"]);return jsx("div",n({className:a(ge({variant:t,rounded:o}),e)},i))}var Re=cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Pe=h.forwardRef((v,l)=>{var ne=v,{className:e,variant:t,size:o,asChild:i=false}=ne,r=s(ne,["className","variant","size","asChild"]);return jsx(i?Slot:"button",n({className:a(Re({variant:t,size:o,className:e})),ref:l},r))});Pe.displayName="Button";var ye=h.forwardRef((i,o)=>{var r=i,{className:e}=r,t=s(r,["className"]);return jsx("div",n({ref:o,className:a("rounded-xl border bg-card text-card-foreground shadow",e)},t))});ye.displayName="Card";var he=h.forwardRef((i,o)=>{var r=i,{className:e}=r,t=s(r,["className"]);return jsx("div",n({ref:o,className:a("flex flex-col space-y-1.5 p-6",e)},t))});he.displayName="CardHeader";var we=h.forwardRef((i,o)=>{var r=i,{className:e}=r,t=s(r,["className"]);return jsx("div",n({ref:o,className:a("font-semibold leading-none tracking-tight",e)},t))});we.displayName="CardTitle";var xe=h.forwardRef((i,o)=>{var r=i,{className:e}=r,t=s(r,["className"]);return jsx("div",n({ref:o,className:a("text-sm text-muted-foreground",e)},t))});xe.displayName="CardDescription";var Se=h.forwardRef((i,o)=>{var r=i,{className:e}=r,t=s(r,["className"]);return jsx("div",n({ref:o,className:a("p-6 pt-0",e)},t))});Se.displayName="CardContent";var Te=h.forwardRef((i,o)=>{var r=i,{className:e}=r,t=s(r,["className"]);return jsx("div",n({ref:o,className:a("flex items-center p-6 pt-0",e)},t))});Te.displayName="CardFooter";var Ce=h.forwardRef((i,o)=>{var r=i,{className:e}=r,t=s(r,["className"]);return jsx(H.Root,c(n({ref:o,className:a("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e)},t),{children:jsx(H.Indicator,{className:a("flex items-center justify-center text-current"),children:jsx(Check,{className:"h-4 w-4"})})}))});Ce.displayName=H.Root.displayName;var Zt=p.Root,jt=p.Trigger,De=p.Portal,eo=p.Close,X=h.forwardRef((i,o)=>{var r=i,{className:e}=r,t=s(r,["className"]);return jsx(p.Overlay,n({ref:o,className:a("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e)},t))});X.displayName=p.Overlay.displayName;var Me=h.forwardRef((r,i)=>{var l=r,{className:e,children:t}=l,o=s(l,["className","children"]);return jsxs(De,{children:[jsx(X,{}),jsxs(p.Content,c(n({ref:i,className:a("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e)},o),{children:[t,jsxs(p.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[jsx(X$1,{className:"h-4 w-4"}),jsx("span",{className:"sr-only",children:"Close"})]})]}))]})});Me.displayName=p.Content.displayName;var Le=o=>{var i=o,{className:e}=i,t=s(i,["className"]);return jsx("div",n({className:a("flex flex-col space-y-1.5 text-center sm:text-left",e)},t))};Le.displayName="DialogHeader";var ke=o=>{var i=o,{className:e}=i,t=s(i,["className"]);return jsx("div",n({className:a("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e)},t))};ke.displayName="DialogFooter";var He=h.forwardRef((i,o)=>{var r=i,{className:e}=r,t=s(r,["className"]);return jsx(p.Title,n({ref:o,className:a("text-lg font-semibold leading-none tracking-tight",e)},t))});He.displayName=p.Title.displayName;var Ae=h.forwardRef((i,o)=>{var r=i,{className:e}=r,t=s(r,["className"]);return jsx(p.Description,n({ref:o,className:a("text-sm text-muted-foreground",e)},t))});Ae.displayName=p.Description.displayName;var io=d.Root,ao=d.Trigger,no=d.Group,so=d.Portal,lo=d.Sub,mo=d.RadioGroup,Ie=h.forwardRef((l,r)=>{var v=l,{className:e,inset:t,children:o}=v,i=s(v,["className","inset","children"]);return jsxs(d.SubTrigger,c(n({ref:r,className:a("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e)},i),{children:[o,jsx(ChevronRight,{className:"ml-auto"})]}))});Ie.displayName=d.SubTrigger.displayName;var Ee=h.forwardRef((i,o)=>{var r=i,{className:e}=r,t=s(r,["className"]);return jsx(d.SubContent,n({ref:o,className:a("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",e)},t))});Ee.displayName=d.SubContent.displayName;var We=h.forwardRef((r,i)=>{var l=r,{className:e,sideOffset:t=4}=l,o=s(l,["className","sideOffset"]);return jsx(d.Portal,{children:jsx(d.Content,n({ref:i,sideOffset:t,className:a("z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",e)},o))})});We.displayName=d.Content.displayName;var Ve=h.forwardRef((r,i)=>{var l=r,{className:e,inset:t}=l,o=s(l,["className","inset"]);return jsx(d.Item,n({ref:i,className:a("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e)},o))});Ve.displayName=d.Item.displayName;var Be=h.forwardRef((l,r)=>{var v=l,{className:e,children:t,checked:o}=v,i=s(v,["className","children","checked"]);return jsxs(d.CheckboxItem,c(n({ref:r,className:a("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:o},i),{children:[jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsx(d.ItemIndicator,{children:jsx(Check,{className:"h-4 w-4"})})}),t]}))});Be.displayName=d.CheckboxItem.displayName;var ze=h.forwardRef((r,i)=>{var l=r,{className:e,children:t}=l,o=s(l,["className","children"]);return jsxs(d.RadioItem,c(n({ref:i,className:a("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e)},o),{children:[jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsx(d.ItemIndicator,{children:jsx(Circle,{className:"h-2 w-2 fill-current"})})}),t]}))});ze.displayName=d.RadioItem.displayName;var Ge=h.forwardRef((r,i)=>{var l=r,{className:e,inset:t}=l,o=s(l,["className","inset"]);return jsx(d.Label,n({ref:i,className:a("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e)},o))});Ge.displayName=d.Label.displayName;var Oe=h.forwardRef((i,o)=>{var r=i,{className:e}=r,t=s(r,["className"]);return jsx(d.Separator,n({ref:o,className:a("-mx-1 my-1 h-px bg-muted",e)},t))});Oe.displayName=d.Separator.displayName;var Fe=o=>{var i=o,{className:e}=i,t=s(i,["className"]);return jsx("span",n({className:a("ml-auto text-xs tracking-widest opacity-60",e)},t))};Fe.displayName="DropdownMenuShortcut";var Ue=h.forwardRef((r,i)=>{var l=r,{className:e,type:t}=l,o=s(l,["className","type"]);return jsx("input",n({type:t,className:a("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:i},o))});Ue.displayName="Input";var fo=cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Xe=h.forwardRef((i,o)=>{var r=i,{className:e}=r,t=s(r,["className"]);return jsx(J.Root,n({ref:o,className:a(fo(),e)},t))});Xe.displayName=J.Root.displayName;var Ke=h.forwardRef((r,i)=>{var l=r,{className:e,value:t}=l,o=s(l,["className","value"]);return jsx(I.Root,c(n({ref:i,className:a("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e)},o),{children:jsx(I.Indicator,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}))});Ke.displayName=I.Root.displayName;var Qe=h.forwardRef((i,o)=>{var r=i,{className:e}=r,t=s(r,["className"]);return jsx(N.Root,c(n({className:a("grid gap-2",e)},t),{ref:o}))});Qe.displayName=N.Root.displayName;var Ye=h.forwardRef((i,o)=>{var r=i,{className:e}=r,t=s(r,["className"]);return jsx(N.Item,c(n({ref:o,className:a("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e)},t),{children:jsx(N.Indicator,{className:"flex items-center justify-center",children:jsx(Circle,{className:"h-2.5 w-2.5 fill-current text-current"})})}))});Ye.displayName=N.Item.displayName;var Ze=h.forwardRef((r,i)=>{var l=r,{className:e,children:t}=l,o=s(l,["className","children"]);return jsxs(R.Root,c(n({ref:i,className:a("relative overflow-hidden",e)},o),{children:[jsx(R.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),jsx(Y,{}),jsx(R.Corner,{})]}))});Ze.displayName=R.Root.displayName;var Y=h.forwardRef((r,i)=>{var l=r,{className:e,orientation:t="vertical"}=l,o=s(l,["className","orientation"]);return jsx(R.ScrollAreaScrollbar,c(n({ref:i,orientation:t,className:a("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e)},o),{children:jsx(R.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}))});Y.displayName=R.ScrollAreaScrollbar.displayName;var Po=m.Root,yo=m.Group,ho=m.Value,et=h.forwardRef((r,i)=>{var l=r,{className:e,children:t}=l,o=s(l,["className","children"]);return jsxs(m.Trigger,c(n({ref:i,className:a("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e)},o),{children:[t,jsx(m.Icon,{asChild:true,children:jsx(ChevronDown,{className:"h-4 w-4 opacity-50"})})]}))});et.displayName=m.Trigger.displayName;var Z=h.forwardRef((i,o)=>{var r=i,{className:e}=r,t=s(r,["className"]);return jsx(m.ScrollUpButton,c(n({ref:o,className:a("flex cursor-default items-center justify-center py-1",e)},t),{children:jsx(ChevronUp,{className:"h-4 w-4"})}))});Z.displayName=m.ScrollUpButton.displayName;var j=h.forwardRef((i,o)=>{var r=i,{className:e}=r,t=s(r,["className"]);return jsx(m.ScrollDownButton,c(n({ref:o,className:a("flex cursor-default items-center justify-center py-1",e)},t),{children:jsx(ChevronDown,{className:"h-4 w-4"})}))});j.displayName=m.ScrollDownButton.displayName;var tt=h.forwardRef((l,r)=>{var v=l,{className:e,children:t,position:o="popper"}=v,i=s(v,["className","children","position"]);return jsx(m.Portal,{children:jsxs(m.Content,c(n({ref:r,className:a("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",o==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:o},i),{children:[jsx(Z,{}),jsx(m.Viewport,{className:a("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),jsx(j,{})]}))})});tt.displayName=m.Content.displayName;var ot=h.forwardRef((i,o)=>{var r=i,{className:e}=r,t=s(r,["className"]);return jsx(m.Label,n({ref:o,className:a("py-1.5 pl-8 pr-2 text-sm font-semibold",e)},t))});ot.displayName=m.Label.displayName;var rt=h.forwardRef((r,i)=>{var l=r,{className:e,children:t}=l,o=s(l,["className","children"]);return jsxs(m.Item,c(n({ref:i,className:a("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e)},o),{children:[jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsx(m.ItemIndicator,{children:jsx(Check,{className:"h-4 w-4"})})}),jsx(m.ItemText,{children:t})]}))});rt.displayName=m.Item.displayName;var it=h.forwardRef((i,o)=>{var r=i,{className:e}=r,t=s(r,["className"]);return jsx(m.Separator,n({ref:o,className:a("-mx-1 my-1 h-px bg-muted",e)},t))});it.displayName=m.Separator.displayName;var nt=h.forwardRef((l,r)=>{var v=l,{className:e,orientation:t="horizontal",decorative:o=true}=v,i=s(v,["className","orientation","decorative"]);return jsx(te.Root,n({ref:r,decorative:o,orientation:t,className:a("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e)},i))});nt.displayName=te.Root.displayName;var To=p.Root,No=p.Trigger,Co=p.Close,st=p.Portal,re=h.forwardRef((i,o)=>{var r=i,{className:e}=r,t=s(r,["className"]);return jsx(p.Overlay,c(n({className:a("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e)},t),{ref:o}))});re.displayName=p.Overlay.displayName;var Do=cva("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),lt=h.forwardRef((l,r)=>{var v=l,{side:e="right",className:t,children:o}=v,i=s(v,["side","className","children"]);return jsxs(st,{children:[jsx(re,{}),jsxs(p.Content,c(n({ref:r,className:a(Do({side:e}),t)},i),{children:[o,jsxs(p.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[jsx(X$1,{className:"h-4 w-4"}),jsx("span",{className:"sr-only",children:"Close"})]})]}))]})});lt.displayName=p.Content.displayName;var dt=o=>{var i=o,{className:e}=i,t=s(i,["className"]);return jsx("div",n({className:a("flex flex-col space-y-2 text-center sm:text-left",e)},t))};dt.displayName="SheetHeader";var mt=o=>{var i=o,{className:e}=i,t=s(i,["className"]);return jsx("div",n({className:a("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e)},t))};mt.displayName="SheetFooter";var ct=h.forwardRef((i,o)=>{var r=i,{className:e}=r,t=s(r,["className"]);return jsx(p.Title,n({ref:o,className:a("text-lg font-semibold text-foreground",e)},t))});ct.displayName=p.Title.displayName;var pt=h.forwardRef((i,o)=>{var r=i,{className:e}=r,t=s(r,["className"]);return jsx(p.Description,n({ref:o,className:a("text-sm text-muted-foreground",e)},t))});pt.displayName=p.Description.displayName;function Mo(o){var i=o,{className:e}=i,t=s(i,["className"]);return jsx("div",n({className:a("animate-pulse rounded-md bg-muted",e)},t))}var ut=h.forwardRef((i,o)=>{var r=i,{className:e}=r,t=s(r,["className"]);return jsxs(w.Root,c(n({ref:o,className:a("relative flex w-full touch-none select-none items-center",e)},t),{children:[jsx(w.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:jsx(w.Range,{className:"absolute h-full bg-primary"})}),jsx(w.Thumb,{className:"block h-5 w-5 rounded-full border-2 border-primary bg-background 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"})]}))});ut.displayName=w.Root.displayName;var bt=h.forwardRef((i,o)=>{var r=i,{className:e}=r,t=s(r,["className"]);return jsx(V.Root,c(n({className:a("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e)},t),{ref:o,children:jsx(V.Thumb,{className:a("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}))});bt.displayName=V.Root.displayName;var Rt=h.forwardRef((i,o)=>{var r=i,{className:e}=r,t=s(r,["className"]);return jsx("div",{className:"relative w-full overflow-auto",children:jsx("table",n({ref:o,className:a("w-full caption-bottom text-sm",e)},t))})});Rt.displayName="Table";var Pt=h.forwardRef((i,o)=>{var r=i,{className:e}=r,t=s(r,["className"]);return jsx("thead",n({ref:o,className:a("[&_tr]:border-b",e)},t))});Pt.displayName="TableHeader";var yt=h.forwardRef((i,o)=>{var r=i,{className:e}=r,t=s(r,["className"]);return jsx("tbody",n({ref:o,className:a("[&_tr:last-child]:border-0",e)},t))});yt.displayName="TableBody";var ht=h.forwardRef((i,o)=>{var r=i,{className:e}=r,t=s(r,["className"]);return jsx("tfoot",n({ref:o,className:a("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e)},t))});ht.displayName="TableFooter";var wt=h.forwardRef((i,o)=>{var r=i,{className:e}=r,t=s(r,["className"]);return jsx("tr",n({ref:o,className:a("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e)},t))});wt.displayName="TableRow";var xt=h.forwardRef((i,o)=>{var r=i,{className:e}=r,t=s(r,["className"]);return jsx("th",n({ref:o,className:a("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e)},t))});xt.displayName="TableHead";var St=h.forwardRef((i,o)=>{var r=i,{className:e}=r,t=s(r,["className"]);return jsx("td",n({ref:o,className:a("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e)},t))});St.displayName="TableCell";var Tt=h.forwardRef((i,o)=>{var r=i,{className:e}=r,t=s(r,["className"]);return jsx("caption",n({ref:o,className:a("mt-4 text-sm text-muted-foreground",e)},t))});Tt.displayName="TableCaption";var Ho=P.Root,Nt=h.forwardRef((i,o)=>{var r=i,{className:e}=r,t=s(r,["className"]);return jsx(P.List,n({ref:o,className:a("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",e)},t))});Nt.displayName=P.List.displayName;var Ct=h.forwardRef((i,o)=>{var r=i,{className:e}=r,t=s(r,["className"]);return jsx(P.Trigger,n({ref:o,className:a("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground",e)},t))});Ct.displayName=P.Trigger.displayName;var Dt=h.forwardRef((i,o)=>{var r=i,{className:e}=r,t=s(r,["className"]);return jsx(P.Content,n({ref:o,className:a("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e)},t))});Dt.displayName=P.Content.displayName;var Lt=h.forwardRef((i,o)=>{var r=i,{className:e}=r,t=s(r,["className"]);return jsx("textarea",n({className:a("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:o},t))});Lt.displayName="Textarea";var Io=y.Provider,Eo=y.Root,Wo=y.Trigger,At=h.forwardRef((r,i)=>{var l=r,{className:e,sideOffset:t=4}=l,o=s(l,["className","sideOffset"]);return jsx(y.Portal,{children:jsx(y.Content,n({ref:i,sideOffset:t,className:a("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]",e)},o))})});At.displayName=y.Content.displayName;function Go({children:e}){let t=useRef(null);return useEffect(()=>{let o=new zo({duration:1.2,easing:r=>Math.min(1,1.001-Math.pow(2,-10*r)),orientation:"vertical",gestureOrientation:"vertical",smoothWheel:true});t.current=o;function i(r){o.raf(r),requestAnimationFrame(i);}return requestAnimationFrame(i),()=>{o.destroy(),t.current=null;}},[]),jsx(Fragment,{children:e})}export{Gt as Accordion,pe as AccordionContent,me as AccordionItem,ce as AccordionTrigger,fe as Alert,ve as AlertDescription,ue as AlertTitle,qt as Badge,Pe as Button,ye as Card,Se as CardContent,xe as CardDescription,Te as CardFooter,he as CardHeader,we as CardTitle,Ce as Checkbox,Zt as Dialog,eo as DialogClose,Me as DialogContent,Ae as DialogDescription,ke as DialogFooter,Le as DialogHeader,X as DialogOverlay,De as DialogPortal,He as DialogTitle,jt as DialogTrigger,io as DropdownMenu,Be as DropdownMenuCheckboxItem,We as DropdownMenuContent,no as DropdownMenuGroup,Ve as DropdownMenuItem,Ge as DropdownMenuLabel,so as DropdownMenuPortal,mo as DropdownMenuRadioGroup,ze as DropdownMenuRadioItem,Oe as DropdownMenuSeparator,Fe as DropdownMenuShortcut,lo as DropdownMenuSub,Ee as DropdownMenuSubContent,Ie as DropdownMenuSubTrigger,ao as DropdownMenuTrigger,Ue as Input,Xe as Label,Go as LenisProvider,Ke as Progress,Qe as RadioGroup,Ye as RadioGroupItem,Ze as ScrollArea,Y as ScrollBar,Po as Select,tt as SelectContent,yo as SelectGroup,rt as SelectItem,ot as SelectLabel,j as SelectScrollDownButton,Z as SelectScrollUpButton,it as SelectSeparator,et as SelectTrigger,ho as SelectValue,nt as Separator,To as Sheet,Co as SheetClose,lt as SheetContent,pt as SheetDescription,mt as SheetFooter,dt as SheetHeader,re as SheetOverlay,st as SheetPortal,ct as SheetTitle,No as SheetTrigger,Mo as Skeleton,ut as Slider,bt as Switch,Rt as Table,yt as TableBody,Tt as TableCaption,St as TableCell,ht as TableFooter,xt as TableHead,Pt as TableHeader,wt as TableRow,Ho as Tabs,Dt as TabsContent,Nt as TabsList,Ct as TabsTrigger,Lt as Textarea,Eo as Tooltip,At as TooltipContent,Io as TooltipProvider,Wo as TooltipTrigger,ge as badgeVariants,Re as buttonVariants,a as cn};//# sourceMappingURL=index.mjs.map
1
+ import*as w from'react';import {useRef,useEffect}from'react';import*as N from'@radix-ui/react-accordion';import {ChevronDown,Check,X,ChevronRight,Circle,ChevronUp,ChevronLeft,Menu}from'lucide-react';import {clsx}from'clsx';import {twMerge}from'tailwind-merge';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {cva}from'class-variance-authority';import {Slot}from'@radix-ui/react-slot';import*as K from'@radix-ui/react-checkbox';import*as g from'@radix-ui/react-dialog';import*as c from'@radix-ui/react-dropdown-menu';import*as fe from'@radix-ui/react-label';import*as Y from'@radix-ui/react-progress';import*as z from'@radix-ui/react-radio-group';import*as S from'@radix-ui/react-scroll-area';import*as d from'@radix-ui/react-select';import*as he from'@radix-ui/react-separator';import*as H from'@radix-ui/react-slider';import*as ee from'@radix-ui/react-switch';import*as D from'@radix-ui/react-tabs';import*as k from'@radix-ui/react-tooltip';import Mr from'lenis';var ho=Object.defineProperty,xo=Object.defineProperties;var Po=Object.getOwnPropertyDescriptors;var oe=Object.getOwnPropertySymbols;var Ae=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable;var He=(e,o,t)=>o in e?ho(e,o,{enumerable:true,configurable:true,writable:true,value:t}):e[o]=t,n=(e,o)=>{for(var t in o||(o={}))Ae.call(o,t)&&He(e,t,o[t]);if(oe)for(var t of oe(o))Ee.call(o,t)&&He(e,t,o[t]);return e},p=(e,o)=>xo(e,Po(o));var s=(e,o)=>{var t={};for(var a in e)Ae.call(e,a)&&o.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&oe)for(var a of oe(e))o.indexOf(a)<0&&Ee.call(e,a)&&(t[a]=e[a]);return t};function i(...e){return twMerge(clsx(e))}var So=N.Root,Ie=w.forwardRef((a,t)=>{var r=a,{className:e}=r,o=s(r,["className"]);return jsx(N.Item,n({ref:t,className:i("border-b",e)},o))});Ie.displayName="AccordionItem";var We=w.forwardRef((r,a)=>{var l=r,{className:e,children:o}=l,t=s(l,["className","children"]);return jsx(N.Header,{className:"flex",children:jsxs(N.Trigger,p(n({ref:a,className:i("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e)},t),{children:[o,jsx(ChevronDown,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]}))})});We.displayName=N.Trigger.displayName;var Ve=w.forwardRef((r,a)=>{var l=r,{className:e,children:o}=l,t=s(l,["className","children"]);return jsx(N.Content,p(n({ref:a,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down"},t),{children:jsx("div",{className:i("pb-4 pt-0",e),children:o})}))});Ve.displayName=N.Content.displayName;var Do=cva("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive",success:"border-sourceful-green-500/50 bg-sourceful-green-50 text-sourceful-green-900 dark:bg-sourceful-green-950/50 dark:text-sourceful-green-100 [&>svg]:text-sourceful-green-500",warning:"border-sourceful-yellow-500/50 bg-sourceful-yellow-50 text-sourceful-yellow-900 dark:bg-sourceful-yellow-950/50 dark:text-sourceful-yellow-100 [&>svg]:text-sourceful-yellow-500",info:"border-blue-500/50 bg-blue-50 text-blue-900 dark:bg-blue-950/50 dark:text-blue-100 [&>svg]:text-blue-500",energy:"border-sourceful-yellow-400/50 bg-sourceful-yellow-50 text-sourceful-gray-900 dark:bg-sourceful-yellow-950/50 dark:text-sourceful-yellow-100 [&>svg]:text-sourceful-yellow-400"}},defaultVariants:{variant:"default"}}),Be=w.forwardRef((r,a)=>{var l=r,{className:e,variant:o}=l,t=s(l,["className","variant"]);return jsx("div",n({ref:a,role:"alert",className:i(Do({variant:o}),e)},t))});Be.displayName="Alert";var ze=w.forwardRef((a,t)=>{var r=a,{className:e}=r,o=s(r,["className"]);return jsx("h5",n({ref:t,className:i("mb-1 font-medium leading-none tracking-tight",e)},o))});ze.displayName="AlertTitle";var Ge=w.forwardRef((a,t)=>{var r=a,{className:e}=r,o=s(r,["className"]);return jsx("div",n({ref:t,className:i("text-sm [&_p]:leading-relaxed",e)},o))});Ge.displayName="AlertDescription";var Ue=cva("inline-flex items-center gap-1 border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 [&_svg]:size-3 [&_svg]:shrink-0",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground",energy:"border-transparent bg-sourceful-yellow-400 text-sourceful-gray-900 shadow hover:bg-sourceful-yellow-500",success:"border-transparent bg-sourceful-green-500 text-sourceful-gray-900 shadow hover:bg-sourceful-green-600",warning:"border-transparent bg-orange-500 text-white shadow hover:bg-orange-600",info:"border-transparent bg-blue-500 text-white shadow hover:bg-blue-600","success-soft":"border-sourceful-green-500/20 bg-sourceful-green-500/10 text-sourceful-green-600 dark:text-sourceful-green-400","warning-soft":"border-orange-500/20 bg-orange-500/10 text-orange-600 dark:text-orange-400","destructive-soft":"border-destructive/20 bg-destructive/10 text-destructive dark:text-red-400","info-soft":"border-blue-500/20 bg-blue-500/10 text-blue-600 dark:text-blue-400","energy-soft":"border-sourceful-yellow-500/20 bg-sourceful-yellow-400/10 text-sourceful-yellow-600 dark:text-sourceful-yellow-400","success-outline":"border-sourceful-green-500/50 bg-transparent text-sourceful-green-600 dark:text-sourceful-green-400","warning-outline":"border-orange-500/50 bg-transparent text-orange-600 dark:text-orange-400","destructive-outline":"border-destructive/50 bg-transparent text-destructive dark:text-red-400","info-outline":"border-blue-500/50 bg-transparent text-blue-600 dark:text-blue-400"},rounded:{default:"rounded-md",full:"rounded-full"}},defaultVariants:{variant:"default",rounded:"default"}});function Lo(r){var l=r,{className:e,variant:o,rounded:t}=l,a=s(l,["className","variant","rounded"]);return jsx("div",n({className:i(Ue({variant:o,rounded:t}),e)},a))}var Oe=cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),_e=w.forwardRef((m,l)=>{var R=m,{className:e,variant:o,size:t,asChild:a=false}=R,r=s(R,["className","variant","size","asChild"]);return jsx(a?Slot:"button",n({className:i(Oe({variant:o,size:t,className:e})),ref:l},r))});_e.displayName="Button";var $e=w.forwardRef((a,t)=>{var r=a,{className:e}=r,o=s(r,["className"]);return jsx("div",n({ref:t,className:i("rounded-xl border bg-card text-card-foreground shadow",e)},o))});$e.displayName="Card";var qe=w.forwardRef((a,t)=>{var r=a,{className:e}=r,o=s(r,["className"]);return jsx("div",n({ref:t,className:i("flex flex-col space-y-1.5 p-6",e)},o))});qe.displayName="CardHeader";var Xe=w.forwardRef((a,t)=>{var r=a,{className:e}=r,o=s(r,["className"]);return jsx("div",n({ref:t,className:i("font-semibold leading-none tracking-tight",e)},o))});Xe.displayName="CardTitle";var Je=w.forwardRef((a,t)=>{var r=a,{className:e}=r,o=s(r,["className"]);return jsx("div",n({ref:t,className:i("text-sm text-muted-foreground",e)},o))});Je.displayName="CardDescription";var Ke=w.forwardRef((a,t)=>{var r=a,{className:e}=r,o=s(r,["className"]);return jsx("div",n({ref:t,className:i("p-6 pt-0",e)},o))});Ke.displayName="CardContent";var Qe=w.forwardRef((a,t)=>{var r=a,{className:e}=r,o=s(r,["className"]);return jsx("div",n({ref:t,className:i("flex items-center p-6 pt-0",e)},o))});Qe.displayName="CardFooter";var Ze=w.forwardRef((a,t)=>{var r=a,{className:e}=r,o=s(r,["className"]);return jsx(K.Root,p(n({ref:t,className:i("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e)},o),{children:jsx(K.Indicator,{className:i("flex items-center justify-center text-current"),children:jsx(Check,{className:"h-4 w-4"})})}))});Ze.displayName=K.Root.displayName;var Bo=g.Root,zo=g.Trigger,je=g.Portal,Go=g.Close,me=w.forwardRef((a,t)=>{var r=a,{className:e}=r,o=s(r,["className"]);return jsx(g.Overlay,n({ref:t,className:i("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e)},o))});me.displayName=g.Overlay.displayName;var et=w.forwardRef((r,a)=>{var l=r,{className:e,children:o}=l,t=s(l,["className","children"]);return jsxs(je,{children:[jsx(me,{}),jsxs(g.Content,p(n({ref:a,className:i("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e)},t),{children:[o,jsxs(g.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[jsx(X,{className:"h-4 w-4"}),jsx("span",{className:"sr-only",children:"Close"})]})]}))]})});et.displayName=g.Content.displayName;var tt=t=>{var a=t,{className:e}=a,o=s(a,["className"]);return jsx("div",n({className:i("flex flex-col space-y-1.5 text-center sm:text-left",e)},o))};tt.displayName="DialogHeader";var ot=t=>{var a=t,{className:e}=a,o=s(a,["className"]);return jsx("div",n({className:i("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e)},o))};ot.displayName="DialogFooter";var rt=w.forwardRef((a,t)=>{var r=a,{className:e}=r,o=s(r,["className"]);return jsx(g.Title,n({ref:t,className:i("text-lg font-semibold leading-none tracking-tight",e)},o))});rt.displayName=g.Title.displayName;var at=w.forwardRef((a,t)=>{var r=a,{className:e}=r,o=s(r,["className"]);return jsx(g.Description,n({ref:t,className:i("text-sm text-muted-foreground",e)},o))});at.displayName=g.Description.displayName;var _o=c.Root,$o=c.Trigger,qo=c.Group,Xo=c.Portal,Jo=c.Sub,Ko=c.RadioGroup,it=w.forwardRef((l,r)=>{var m=l,{className:e,inset:o,children:t}=m,a=s(m,["className","inset","children"]);return jsxs(c.SubTrigger,p(n({ref:r,className:i("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",o&&"pl-8",e)},a),{children:[t,jsx(ChevronRight,{className:"ml-auto"})]}))});it.displayName=c.SubTrigger.displayName;var nt=w.forwardRef((a,t)=>{var r=a,{className:e}=r,o=s(r,["className"]);return jsx(c.SubContent,n({ref:t,className:i("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",e)},o))});nt.displayName=c.SubContent.displayName;var st=w.forwardRef((r,a)=>{var l=r,{className:e,sideOffset:o=4}=l,t=s(l,["className","sideOffset"]);return jsx(c.Portal,{children:jsx(c.Content,n({ref:a,sideOffset:o,className:i("z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",e)},t))})});st.displayName=c.Content.displayName;var lt=w.forwardRef((r,a)=>{var l=r,{className:e,inset:o}=l,t=s(l,["className","inset"]);return jsx(c.Item,n({ref:a,className:i("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",o&&"pl-8",e)},t))});lt.displayName=c.Item.displayName;var ct=w.forwardRef((l,r)=>{var m=l,{className:e,children:o,checked:t}=m,a=s(m,["className","children","checked"]);return jsxs(c.CheckboxItem,p(n({ref:r,className:i("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:t},a),{children:[jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsx(c.ItemIndicator,{children:jsx(Check,{className:"h-4 w-4"})})}),o]}))});ct.displayName=c.CheckboxItem.displayName;var dt=w.forwardRef((r,a)=>{var l=r,{className:e,children:o}=l,t=s(l,["className","children"]);return jsxs(c.RadioItem,p(n({ref:a,className:i("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e)},t),{children:[jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsx(c.ItemIndicator,{children:jsx(Circle,{className:"h-2 w-2 fill-current"})})}),o]}))});dt.displayName=c.RadioItem.displayName;var mt=w.forwardRef((r,a)=>{var l=r,{className:e,inset:o}=l,t=s(l,["className","inset"]);return jsx(c.Label,n({ref:a,className:i("px-2 py-1.5 text-sm font-semibold",o&&"pl-8",e)},t))});mt.displayName=c.Label.displayName;var pt=w.forwardRef((a,t)=>{var r=a,{className:e}=r,o=s(r,["className"]);return jsx(c.Separator,n({ref:t,className:i("-mx-1 my-1 h-px bg-muted",e)},o))});pt.displayName=c.Separator.displayName;var ft=t=>{var a=t,{className:e}=a,o=s(a,["className"]);return jsx("span",n({className:i("ml-auto text-xs tracking-widest opacity-60",e)},o))};ft.displayName="DropdownMenuShortcut";var gt=w.forwardRef((r,a)=>{var l=r,{className:e,type:o}=l,t=s(l,["className","type"]);return jsx("input",n({type:o,className:i("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:a},t))});gt.displayName="Input";var Zo=cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),vt=w.forwardRef((a,t)=>{var r=a,{className:e}=r,o=s(r,["className"]);return jsx(fe.Root,n({ref:t,className:i(Zo(),e)},o))});vt.displayName=fe.Root.displayName;var ht=w.forwardRef((r,a)=>{var l=r,{className:e,value:o}=l,t=s(l,["className","value"]);return jsx(Y.Root,p(n({ref:a,className:i("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e)},t),{children:jsx(Y.Indicator,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(o||0)}%)`}})}))});ht.displayName=Y.Root.displayName;var xt=w.forwardRef((a,t)=>{var r=a,{className:e}=r,o=s(r,["className"]);return jsx(z.Root,p(n({className:i("grid gap-2",e)},o),{ref:t}))});xt.displayName=z.Root.displayName;var Pt=w.forwardRef((a,t)=>{var r=a,{className:e}=r,o=s(r,["className"]);return jsx(z.Item,p(n({ref:t,className:i("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e)},o),{children:jsx(z.Indicator,{className:"flex items-center justify-center",children:jsx(Circle,{className:"h-2.5 w-2.5 fill-current text-current"})})}))});Pt.displayName=z.Item.displayName;var wt=w.forwardRef((r,a)=>{var l=r,{className:e,children:o}=l,t=s(l,["className","children"]);return jsxs(S.Root,p(n({ref:a,className:i("relative overflow-hidden",e)},t),{children:[jsx(S.Viewport,{className:"h-full w-full rounded-[inherit]",children:o}),jsx(be,{}),jsx(S.Corner,{})]}))});wt.displayName=S.Root.displayName;var be=w.forwardRef((r,a)=>{var l=r,{className:e,orientation:o="vertical"}=l,t=s(l,["className","orientation"]);return jsx(S.ScrollAreaScrollbar,p(n({ref:a,orientation:o,className:i("flex touch-none select-none transition-colors",o==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",o==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e)},t),{children:jsx(S.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}))});be.displayName=S.ScrollAreaScrollbar.displayName;var ar=d.Root,ir=d.Group,nr=d.Value,Nt=w.forwardRef((r,a)=>{var l=r,{className:e,children:o}=l,t=s(l,["className","children"]);return jsxs(d.Trigger,p(n({ref:a,className:i("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e)},t),{children:[o,jsx(d.Icon,{asChild:true,children:jsx(ChevronDown,{className:"h-4 w-4 opacity-50"})})]}))});Nt.displayName=d.Trigger.displayName;var ve=w.forwardRef((a,t)=>{var r=a,{className:e}=r,o=s(r,["className"]);return jsx(d.ScrollUpButton,p(n({ref:t,className:i("flex cursor-default items-center justify-center py-1",e)},o),{children:jsx(ChevronUp,{className:"h-4 w-4"})}))});ve.displayName=d.ScrollUpButton.displayName;var Re=w.forwardRef((a,t)=>{var r=a,{className:e}=r,o=s(r,["className"]);return jsx(d.ScrollDownButton,p(n({ref:t,className:i("flex cursor-default items-center justify-center py-1",e)},o),{children:jsx(ChevronDown,{className:"h-4 w-4"})}))});Re.displayName=d.ScrollDownButton.displayName;var St=w.forwardRef((l,r)=>{var m=l,{className:e,children:o,position:t="popper"}=m,a=s(m,["className","children","position"]);return jsx(d.Portal,{children:jsxs(d.Content,p(n({ref:r,className:i("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:t},a),{children:[jsx(ve,{}),jsx(d.Viewport,{className:i("p-1",t==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:o}),jsx(Re,{})]}))})});St.displayName=d.Content.displayName;var Ct=w.forwardRef((a,t)=>{var r=a,{className:e}=r,o=s(r,["className"]);return jsx(d.Label,n({ref:t,className:i("py-1.5 pl-8 pr-2 text-sm font-semibold",e)},o))});Ct.displayName=d.Label.displayName;var Mt=w.forwardRef((r,a)=>{var l=r,{className:e,children:o}=l,t=s(l,["className","children"]);return jsxs(d.Item,p(n({ref:a,className:i("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e)},t),{children:[jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsx(d.ItemIndicator,{children:jsx(Check,{className:"h-4 w-4"})})}),jsx(d.ItemText,{children:o})]}))});Mt.displayName=d.Item.displayName;var Dt=w.forwardRef((a,t)=>{var r=a,{className:e}=r,o=s(r,["className"]);return jsx(d.Separator,n({ref:t,className:i("-mx-1 my-1 h-px bg-muted",e)},o))});Dt.displayName=d.Separator.displayName;var Lt=w.forwardRef((l,r)=>{var m=l,{className:e,orientation:o="horizontal",decorative:t=true}=m,a=s(m,["className","orientation","decorative"]);return jsx(he.Root,n({ref:r,decorative:t,orientation:o,className:i("shrink-0 bg-border",o==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e)},a))});Lt.displayName=he.Root.displayName;var dr=g.Root,mr=g.Trigger,pr=g.Close,Ht=g.Portal,Pe=w.forwardRef((a,t)=>{var r=a,{className:e}=r,o=s(r,["className"]);return jsx(g.Overlay,p(n({className:i("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e)},o),{ref:t}))});Pe.displayName=g.Overlay.displayName;var fr=cva("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),At=w.forwardRef((l,r)=>{var m=l,{side:e="right",className:o,children:t}=m,a=s(m,["side","className","children"]);return jsxs(Ht,{children:[jsx(Pe,{}),jsxs(g.Content,p(n({ref:r,className:i(fr({side:e}),o)},a),{children:[t,jsxs(g.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[jsx(X,{className:"h-4 w-4"}),jsx("span",{className:"sr-only",children:"Close"})]})]}))]})});At.displayName=g.Content.displayName;var Et=t=>{var a=t,{className:e}=a,o=s(a,["className"]);return jsx("div",n({className:i("flex flex-col space-y-2 text-center sm:text-left",e)},o))};Et.displayName="SheetHeader";var It=t=>{var a=t,{className:e}=a,o=s(a,["className"]);return jsx("div",n({className:i("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e)},o))};It.displayName="SheetFooter";var Wt=w.forwardRef((a,t)=>{var r=a,{className:e}=r,o=s(r,["className"]);return jsx(g.Title,n({ref:t,className:i("text-lg font-semibold text-foreground",e)},o))});Wt.displayName=g.Title.displayName;var Vt=w.forwardRef((a,t)=>{var r=a,{className:e}=r,o=s(r,["className"]);return jsx(g.Description,n({ref:t,className:i("text-sm text-muted-foreground",e)},o))});Vt.displayName=g.Description.displayName;function ur(t){var a=t,{className:e}=a,o=s(a,["className"]);return jsx("div",n({className:i("animate-pulse rounded-md bg-muted",e)},o))}var zt=w.forwardRef((a,t)=>{var r=a,{className:e}=r,o=s(r,["className"]);return jsxs(H.Root,p(n({ref:t,className:i("relative flex w-full touch-none select-none items-center",e)},o),{children:[jsx(H.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:jsx(H.Range,{className:"absolute h-full bg-primary"})}),jsx(H.Thumb,{className:"block h-5 w-5 rounded-full border-2 border-primary bg-background 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"})]}))});zt.displayName=H.Root.displayName;var Ft=w.forwardRef((a,t)=>{var r=a,{className:e}=r,o=s(r,["className"]);return jsx(ee.Root,p(n({className:i("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e)},o),{ref:t,children:jsx(ee.Thumb,{className:i("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}))});Ft.displayName=ee.Root.displayName;var Ot=w.forwardRef((a,t)=>{var r=a,{className:e}=r,o=s(r,["className"]);return jsx("div",{className:"relative w-full overflow-auto",children:jsx("table",n({ref:t,className:i("w-full caption-bottom text-sm",e)},o))})});Ot.displayName="Table";var _t=w.forwardRef((a,t)=>{var r=a,{className:e}=r,o=s(r,["className"]);return jsx("thead",n({ref:t,className:i("[&_tr]:border-b",e)},o))});_t.displayName="TableHeader";var $t=w.forwardRef((a,t)=>{var r=a,{className:e}=r,o=s(r,["className"]);return jsx("tbody",n({ref:t,className:i("[&_tr:last-child]:border-0",e)},o))});$t.displayName="TableBody";var qt=w.forwardRef((a,t)=>{var r=a,{className:e}=r,o=s(r,["className"]);return jsx("tfoot",n({ref:t,className:i("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e)},o))});qt.displayName="TableFooter";var Xt=w.forwardRef((a,t)=>{var r=a,{className:e}=r,o=s(r,["className"]);return jsx("tr",n({ref:t,className:i("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e)},o))});Xt.displayName="TableRow";var Jt=w.forwardRef((a,t)=>{var r=a,{className:e}=r,o=s(r,["className"]);return jsx("th",n({ref:t,className:i("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e)},o))});Jt.displayName="TableHead";var Kt=w.forwardRef((a,t)=>{var r=a,{className:e}=r,o=s(r,["className"]);return jsx("td",n({ref:t,className:i("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e)},o))});Kt.displayName="TableCell";var Qt=w.forwardRef((a,t)=>{var r=a,{className:e}=r,o=s(r,["className"]);return jsx("caption",n({ref:t,className:i("mt-4 text-sm text-muted-foreground",e)},o))});Qt.displayName="TableCaption";var vr=D.Root,Yt=w.forwardRef((a,t)=>{var r=a,{className:e}=r,o=s(r,["className"]);return jsx(D.List,n({ref:t,className:i("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",e)},o))});Yt.displayName=D.List.displayName;var Zt=w.forwardRef((a,t)=>{var r=a,{className:e}=r,o=s(r,["className"]);return jsx(D.Trigger,n({ref:t,className:i("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground",e)},o))});Zt.displayName=D.Trigger.displayName;var jt=w.forwardRef((a,t)=>{var r=a,{className:e}=r,o=s(r,["className"]);return jsx(D.Content,n({ref:t,className:i("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e)},o))});jt.displayName=D.Content.displayName;var to=w.forwardRef((a,t)=>{var r=a,{className:e}=r,o=s(r,["className"]);return jsx("textarea",n({className:i("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:t},o))});to.displayName="Textarea";var Ne=k.Provider,Se=k.Root,Ce=k.Trigger,se=w.forwardRef((r,a)=>{var l=r,{className:e,sideOffset:o=4}=l,t=s(l,["className","sideOffset"]);return jsx(k.Portal,{children:jsx(k.Content,n({ref:a,sideOffset:o,className:i("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]",e)},t))})});se.displayName=k.Content.displayName;var io=w.createContext(null);function no(){let e=w.useContext(io);if(!e)throw new Error("SideMenu components must be used within SideMenu");return e}var xr=({href:e,className:o,children:t})=>jsx("a",{href:e,className:o,children:t}),so=w.forwardRef(({header:e,collapsedHeader:o,sections:t,items:a,footer:r,collapsed:l,onCollapsedChange:m,collapsible:R=true,defaultCollapsed:u=false,activeItem:C,className:M,linkComponent:O=xr},q)=>{let[h,te]=w.useState(u),W=l!=null?l:h,yo=()=>{let V=!W;te(V),m==null||m(V);};return jsx(Ne,{delayDuration:0,children:jsx(io.Provider,{value:{collapsed:W,activeItem:C,LinkComponent:O},children:jsxs("aside",{ref:q,className:i("flex h-full flex-col transition-[width] duration-300 ease-in-out","bg-white dark:bg-[#141414] border-r border-sourceful-gray-200 dark:border-[#1a1a1a]",W?"w-16":"w-64",M),children:[jsxs("div",{className:i("flex items-center border-b border-sourceful-gray-200 dark:border-[#1a1a1a] flex-shrink-0 h-12",W?"justify-center px-2":"justify-between px-3"),children:[W&&o||e,R&&jsx("button",{onClick:yo,className:i("rounded-md h-5 w-5 flex items-center justify-center","text-sourceful-gray-400 dark:text-sourceful-gray-500","hover:text-sourceful-gray-600 dark:hover:text-sourceful-gray-300 transition-colors","bg-white dark:bg-[#141414] border border-sourceful-gray-200 dark:border-sourceful-gray-700 shadow-sm",W&&"absolute left-[calc(4rem-10px)] top-6 -translate-y-1/2 z-50"),"aria-label":W?"Expand sidebar":"Collapse sidebar",children:W?jsx(ChevronRight,{className:"h-3 w-3"}):jsx(ChevronLeft,{className:"h-3 w-3"})})]}),jsxs("nav",{className:"flex-1 py-2 overflow-y-auto overflow-x-hidden",children:[a&&a.length>0&&jsx("div",{className:"px-2 mb-1 space-y-0.5",children:a.map(V=>jsx(Me,{item:V},V.id))}),t==null?void 0:t.map(V=>jsx(Pr,{section:V},V.id))]}),r&&jsx("div",{className:"flex-shrink-0 border-t border-sourceful-gray-200 dark:border-[#1a1a1a] p-2",children:r})]})})})});so.displayName="SideMenu";function Pr({section:e}){var r;let{collapsed:o}=no(),[t,a]=w.useState((r=e.defaultExpanded)!=null?r:true);return o?jsx("div",{className:"px-2 mb-1 space-y-0.5",children:e.items.map(l=>jsx(Me,{item:l},l.id))}):jsxs("div",{className:"px-2 mb-1",children:[jsxs("button",{onClick:()=>a(!t),className:i("flex w-full items-center gap-2.5 rounded-md px-2 py-1.5 text-sm font-medium","text-sourceful-gray-700 dark:text-sourceful-gray-300","hover:bg-sourceful-gray-50 dark:hover:bg-sourceful-gray-900","hover:text-sourceful-gray-900 dark:hover:text-white transition-colors"),children:[e.icon&&jsx("span",{className:"h-3.5 w-3.5 flex-shrink-0",children:e.icon}),jsx("span",{className:"flex-1 text-left",children:e.title}),t?jsx(ChevronDown,{className:"h-3 w-3",strokeWidth:1.5}):jsx(ChevronRight,{className:"h-3 w-3",strokeWidth:1.5})]}),t&&jsxs("div",{className:"mt-0.5 space-y-0.5 relative pl-5",children:[jsx("div",{className:"absolute left-[1.1rem] top-0 bottom-0 w-px bg-sourceful-gray-200 dark:bg-sourceful-gray-700"}),e.items.map(l=>jsx(Me,{item:l,nested:true},l.id))]})]})}function Me({item:e,nested:o=false}){let{collapsed:t,activeItem:a,LinkComponent:r}=no(),l=a===e.id,m=i("flex items-center gap-2.5 rounded-md text-sm font-medium transition-colors",t?"justify-center px-2 py-2.5":"px-2 py-1.5",l?o?"bg-sourceful-gray-100 dark:bg-[#1a1a1a] text-sourceful-gray-900 dark:text-white":"bg-sourceful-green-50 dark:bg-sourceful-green-950 text-sourceful-green-700 dark:text-sourceful-green-400":"text-sourceful-gray-700 dark:text-sourceful-gray-300 hover:bg-sourceful-gray-50 dark:hover:bg-sourceful-gray-900 hover:text-sourceful-gray-900 dark:hover:text-white",e.disabled&&"opacity-50 pointer-events-none"),R=jsxs(Fragment,{children:[e.icon&&jsx("span",{className:i("flex-shrink-0",t?"h-5 w-5":"h-3.5 w-3.5"),children:e.icon}),!t&&jsx("span",{children:e.label}),!t&&e.badge&&jsx("span",{className:"ml-auto text-xs bg-sourceful-gray-100 dark:bg-sourceful-gray-800 px-1.5 py-0.5 rounded",children:e.badge})]}),u=e.href?jsx(r,{href:e.href,className:m,children:R}):jsx("button",{onClick:e.onClick,disabled:e.disabled,className:i(m,"w-full"),children:R});return t?jsxs(Se,{children:[jsx(Ce,{asChild:true,children:u}),jsx(se,{side:"right",sideOffset:8,children:e.label})]}):u}var Nr=({href:e,className:o,children:t})=>jsx("a",{href:e,className:o,children:t}),lo=w.forwardRef(({breadcrumbs:e=[],showMobileMenu:o=false,onMobileMenuClick:t,leftContent:a,rightContent:r,className:l,linkComponent:m=Nr},R)=>jsxs("header",{ref:R,className:i("sticky top-0 z-30 flex h-12 items-center gap-3","border-b border-sourceful-gray-200 dark:border-[#1a1a1a]","bg-white dark:bg-[#141414] px-4",l),children:[o&&jsx("button",{onClick:t,className:"lg:hidden rounded-md p-1.5 text-sourceful-gray-600 hover:bg-sourceful-gray-100 dark:text-sourceful-gray-400 dark:hover:bg-sourceful-gray-800","aria-label":"Toggle menu",children:jsx(Menu,{className:"h-4 w-4"})}),e.length>0&&jsx("nav",{className:"hidden md:flex items-center gap-1.5 text-sm","aria-label":"Breadcrumb",children:e.map((u,C)=>jsxs(w.Fragment,{children:[C>0&&jsx("span",{className:"text-sourceful-gray-400 dark:text-sourceful-gray-500 text-xs",children:"/"}),u.href?jsx(m,{href:u.href,className:"text-sourceful-gray-600 dark:text-sourceful-gray-400 hover:text-sourceful-gray-900 dark:hover:text-white transition-colors text-sm",children:u.label}):jsx("span",{className:"text-sourceful-gray-900 dark:text-white font-medium text-sm",children:u.label})]},C))}),a,jsx("div",{className:"flex-1"}),r&&jsx("div",{className:"flex items-center gap-1.5",children:r})]}));lo.displayName="TopMenu";var co=w.forwardRef(({name:e,email:o,avatarUrl:t,avatarContent:a,avatarClassName:r,children:l,className:m},R)=>{let[u,C]=w.useState(false),M=w.useRef(null);return w.useEffect(()=>{let O=q=>{M.current&&!M.current.contains(q.target)&&C(false);};return u&&document.addEventListener("mousedown",O),()=>{document.removeEventListener("mousedown",O);}},[u]),jsx("div",{ref:R,className:i("relative",m),children:jsxs("div",{ref:M,children:[jsx("button",{onClick:()=>C(!u),className:"flex items-center gap-1.5 rounded-full p-0.5 hover:ring-2 hover:ring-sourceful-green-500 hover:ring-offset-2 dark:hover:ring-offset-[#141414] transition-all","aria-label":"Account menu",children:jsx("div",{className:i("h-8 w-8 rounded-full overflow-hidden flex items-center justify-center",r||"bg-gradient-to-br from-sourceful-yellow-400 to-sourceful-yellow-600"),children:t?jsx("img",{src:t,alt:e||"User",className:"h-full w-full object-cover"}):a})}),u&&jsxs("div",{className:"absolute right-0 mt-2 w-64 rounded-lg border border-sourceful-gray-200 dark:border-[#1a1a1a] bg-white dark:bg-[#141414] shadow-lg overflow-hidden z-50",children:[(e||o)&&jsx("div",{className:"px-4 py-3 border-b border-sourceful-gray-200 dark:border-[#1a1a1a]",children:jsxs("div",{className:"flex items-center gap-3",children:[jsx("div",{className:i("h-10 w-10 rounded-full overflow-hidden flex items-center justify-center",r||"bg-gradient-to-br from-sourceful-yellow-400 to-sourceful-yellow-600"),children:t?jsx("img",{src:t,alt:e||"User",className:"h-full w-full object-cover"}):a}),jsxs("div",{className:"flex-1 min-w-0",children:[e&&jsx("p",{className:"text-sm font-medium text-sourceful-gray-900 dark:text-white truncate",children:e}),o&&jsx("p",{className:"text-xs text-sourceful-gray-500 dark:text-sourceful-gray-400 truncate",children:o})]})]})}),l]})]})})});co.displayName="TopMenuUser";var mo=w.forwardRef(({icon:e,children:o,onClick:t,href:a,variant:r="default",className:l},m)=>jsxs(a?"a":"button",{ref:m,onClick:t,href:a,className:i("w-full flex items-center gap-3 px-4 py-2 text-sm transition-colors",{default:"text-sourceful-gray-700 dark:text-sourceful-gray-300 hover:bg-sourceful-gray-50 dark:hover:bg-[#1a1a1a]",danger:"text-red-600 dark:text-red-400 hover:bg-red-50 dark:hover:bg-red-950/20",success:"text-sourceful-green-600 dark:text-sourceful-green-400 hover:bg-sourceful-green-50 dark:hover:bg-sourceful-green-950/20"}[r],l),children:[e&&jsx("span",{className:"h-4 w-4",children:e}),jsx("span",{children:o})]}));mo.displayName="TopMenuUserItem";var po=w.forwardRef(({children:e,className:o},t)=>jsx("div",{ref:t,className:i("py-1 border-t border-sourceful-gray-200 dark:border-[#1a1a1a] first:border-t-0",o),children:e}));po.displayName="TopMenuUserSection";var ke=w.createContext(null);function Le(){let e=w.useContext(ke);if(!e)throw new Error("SimpleTabsPanel must be used within SimpleTabs");return e}var fo=w.forwardRef(({tabs:e,activeTab:o,defaultTab:t,onTabChange:a,children:r,className:l,tabsClassName:m},R)=>{var q;let[u,C]=w.useState(t||((q=e[0])==null?void 0:q.id)||""),M=o!=null?o:u,O=h=>{C(h),a==null||a(h);};return jsx(ke.Provider,{value:{activeTab:M,setActiveTab:O},children:jsxs("div",{ref:R,className:i("space-y-6",l),children:[jsx("div",{className:"border-b border-sourceful-gray-200 dark:border-sourceful-gray-800",children:jsx("nav",{className:i("-mb-px flex gap-1 overflow-x-auto scrollbar-hide",m),"aria-label":"Tabs",children:e.map(h=>{let te=M===h.id;return jsxs("button",{onClick:()=>!h.disabled&&O(h.id),disabled:h.disabled,className:i("relative flex items-center gap-2 px-4 py-3 text-sm font-medium transition-colors whitespace-nowrap",te?"text-sourceful-green-600 dark:text-sourceful-green-400":"text-sourceful-gray-500 dark:text-sourceful-gray-400 hover:text-sourceful-gray-700 dark:hover:text-sourceful-gray-300",h.disabled&&"opacity-50 cursor-not-allowed"),children:[h.icon&&jsx("span",{className:"h-4 w-4",children:h.icon}),h.label,te&&jsx("span",{className:"absolute bottom-0 left-0 right-0 h-0.5 bg-sourceful-green-500","aria-hidden":"true"})]},h.id)})})}),r&&jsx("div",{children:r})]})})});fo.displayName="SimpleTabs";var uo=w.forwardRef(({id:e,children:o,className:t},a)=>{let{activeTab:r}=Le();return r!==e?null:jsx("div",{ref:a,role:"tabpanel","aria-labelledby":`tab-${e}`,className:t,children:o})});uo.displayName="SimpleTabsPanel";var go=w.forwardRef(({activeTab:e,defaultTab:o,onTabChange:t,children:a,className:r},l)=>{let[m,R]=w.useState(o||""),u=e!=null?e:m,C=M=>{R(M),t==null||t(M);};return jsx(ke.Provider,{value:{activeTab:u,setActiveTab:C},children:jsx("div",{ref:l,className:i("space-y-6",r),children:a})})});go.displayName="SimpleTabsRoot";var bo=w.forwardRef(({children:e,className:o},t)=>jsx("div",{ref:t,className:"border-b border-sourceful-gray-200 dark:border-sourceful-gray-800",children:jsx("nav",{className:i("-mb-px flex gap-1 overflow-x-auto scrollbar-hide",o),role:"tablist","aria-label":"Tabs",children:e})}));bo.displayName="SimpleTabsList";var vo=w.forwardRef(({value:e,children:o,icon:t,disabled:a,className:r},l)=>{let{activeTab:m,setActiveTab:R}=Le(),u=m===e;return jsxs("button",{ref:l,role:"tab",id:`tab-${e}`,"aria-selected":u,"aria-controls":`panel-${e}`,onClick:()=>!a&&R(e),disabled:a,className:i("relative flex items-center gap-2 px-4 py-3 text-sm font-medium transition-colors whitespace-nowrap",u?"text-sourceful-green-600 dark:text-sourceful-green-400":"text-sourceful-gray-500 dark:text-sourceful-gray-400 hover:text-sourceful-gray-700 dark:hover:text-sourceful-gray-300",a&&"opacity-50 cursor-not-allowed",r),children:[t&&jsx("span",{className:"h-4 w-4",children:t}),o,u&&jsx("span",{className:"absolute bottom-0 left-0 right-0 h-0.5 bg-sourceful-green-500","aria-hidden":"true"})]})});vo.displayName="SimpleTabsTrigger";var Ro=w.forwardRef(({value:e,children:o,className:t},a)=>{let{activeTab:r}=Le();return r!==e?null:jsx("div",{ref:a,role:"tabpanel",id:`panel-${e}`,"aria-labelledby":`tab-${e}`,className:t,children:o})});Ro.displayName="SimpleTabsContent";function Dr({children:e}){let o=useRef(null);return useEffect(()=>{let t=new Mr({duration:1.2,easing:r=>Math.min(1,1.001-Math.pow(2,-10*r)),orientation:"vertical",gestureOrientation:"vertical",smoothWheel:true});o.current=t;function a(r){t.raf(r),requestAnimationFrame(a);}return requestAnimationFrame(a),()=>{t.destroy(),o.current=null;}},[]),jsx(Fragment,{children:e})}export{So as Accordion,Ve as AccordionContent,Ie as AccordionItem,We as AccordionTrigger,Be as Alert,Ge as AlertDescription,ze as AlertTitle,Lo as Badge,_e as Button,$e as Card,Ke as CardContent,Je as CardDescription,Qe as CardFooter,qe as CardHeader,Xe as CardTitle,Ze as Checkbox,Bo as Dialog,Go as DialogClose,et as DialogContent,at as DialogDescription,ot as DialogFooter,tt as DialogHeader,me as DialogOverlay,je as DialogPortal,rt as DialogTitle,zo as DialogTrigger,_o as DropdownMenu,ct as DropdownMenuCheckboxItem,st as DropdownMenuContent,qo as DropdownMenuGroup,lt as DropdownMenuItem,mt as DropdownMenuLabel,Xo as DropdownMenuPortal,Ko as DropdownMenuRadioGroup,dt as DropdownMenuRadioItem,pt as DropdownMenuSeparator,ft as DropdownMenuShortcut,Jo as DropdownMenuSub,nt as DropdownMenuSubContent,it as DropdownMenuSubTrigger,$o as DropdownMenuTrigger,gt as Input,vt as Label,Dr as LenisProvider,ht as Progress,xt as RadioGroup,Pt as RadioGroupItem,wt as ScrollArea,be as ScrollBar,ar as Select,St as SelectContent,ir as SelectGroup,Mt as SelectItem,Ct as SelectLabel,Re as SelectScrollDownButton,ve as SelectScrollUpButton,Dt as SelectSeparator,Nt as SelectTrigger,nr as SelectValue,Lt as Separator,dr as Sheet,pr as SheetClose,At as SheetContent,Vt as SheetDescription,It as SheetFooter,Et as SheetHeader,Pe as SheetOverlay,Ht as SheetPortal,Wt as SheetTitle,mr as SheetTrigger,so as SideMenu,fo as SimpleTabs,Ro as SimpleTabsContent,bo as SimpleTabsList,uo as SimpleTabsPanel,go as SimpleTabsRoot,vo as SimpleTabsTrigger,ur as Skeleton,zt as Slider,Ft as Switch,Ot as Table,$t as TableBody,Qt as TableCaption,Kt as TableCell,qt as TableFooter,Jt as TableHead,_t as TableHeader,Xt as TableRow,vr as Tabs,jt as TabsContent,Yt as TabsList,Zt as TabsTrigger,to as Textarea,Se as Tooltip,se as TooltipContent,Ne as TooltipProvider,Ce as TooltipTrigger,lo as TopMenu,co as TopMenuUser,mo as TopMenuUserItem,po as TopMenuUserSection,Ue as badgeVariants,Oe as buttonVariants,i as cn};//# sourceMappingURL=index.mjs.map
2
2
  //# sourceMappingURL=index.mjs.map