@imj_media/imj-ui 1.0.21 → 1.0.22
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/imj-ui.cjs +1 -1
- package/dist/imj-ui.es.js +443 -365
- package/dist/packages/imj-ui/src/components/atoms/AlertDialog/alert-dialog.d.ts +20 -0
- package/dist/packages/imj-ui/src/index.d.ts +1 -0
- package/dist/packages/imj-ui/src/stories/AlertDialog.stories.d.ts +12 -0
- package/package.json +4 -3
package/dist/imj-ui.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),Ne=require("react"),je=require("@radix-ui/react-avatar"),De=require("clsx"),Re=require("tailwind-merge"),Ce=require("@radix-ui/react-slot"),x=require("class-variance-authority"),Pe=require("@radix-ui/react-accordion"),m=require("lucide-react"),Se=require("react-day-picker"),Te=require("date-fns/locale"),ke=require("@radix-ui/react-checkbox"),Ie=require("@radix-ui/react-label"),_e=require("@radix-ui/react-select"),Me=require("@radix-ui/react-popover"),ze=require("@radix-ui/react-switch"),qe=require("@radix-ui/react-dropdown-menu"),Ae=require("@radix-ui/react-dialog"),h=require("@radix-ui/react-icons");function u(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,n.get?n:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const r=u(Ne),f=u(je),p=u(Pe),y=u(ke),R=u(Ie),d=u(_e),g=u(Me),v=u(ze),i=u(qe),c=u(Ae);function s(...e){return Re.twMerge(De.clsx(e))}const C=r.forwardRef(({className:e,...t},a)=>o.jsx(f.Root,{ref:a,className:s("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));C.displayName=f.Root.displayName;const P=r.forwardRef(({className:e,...t},a)=>o.jsx(f.Image,{ref:a,className:s("aspect-square h-full w-full",e),...t}));P.displayName=f.Image.displayName;const S=r.forwardRef(({className:e,...t},a)=>o.jsx(f.Fallback,{ref:a,className:s("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));S.displayName=f.Fallback.displayName;const b=x.cva("inline-flex items-center gap-1 justify-center 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",{variants:{variant:{default:"bg-primary text-white shadow hover:opacity-70",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",success:"bg-success-regular text-white shadow-sm hover:opacity-70",danger:"bg-danger-regular text-white shadow-sm hover:opacity-70",warning:"bg-warning-regular text-white shadow-sm hover:opacity-70"},size:{default:"h-10 px-2 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"}}),T=r.forwardRef(({className:e,variant:t,size:a,asChild:n=!1,...l},ye)=>{const ve=n?Ce.Slot:"button";return o.jsx(ve,{className:s(b({variant:t,size:a,className:e})),ref:ye,...l})});T.displayName="Button";const Le=p.Root,k=r.forwardRef(({className:e,...t},a)=>o.jsx(p.Item,{ref:a,className:s("border-b",e),...t}));k.displayName="AccordionItem";const I=r.forwardRef(({className:e,children:t,...a},n)=>o.jsx(p.Header,{className:"flex",children:o.jsxs(p.Trigger,{ref:n,className:s("flex flex-1 items-center justify-between py-4 font-medium transition-all [&[data-state=open]>svg]:rotate-180",e),...a,children:[t,o.jsx(m.ChevronDown,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));I.displayName=p.Trigger.displayName;const _=r.forwardRef(({className:e,children:t,...a},n)=>o.jsx(p.Content,{ref:n,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...a,children:o.jsx("div",{className:s("pb-4 pt-0",e),children:t})}));_.displayName=p.Content.displayName;const Be=x.cva("inline-flex items-center rounded-md 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",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow",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"}},defaultVariants:{variant:"default"}});function Ge({className:e,variant:t,...a}){return o.jsx("div",{className:s(Be({variant:t}),e),...a})}function M({className:e,classNames:t,showOutsideDays:a=!0,...n}){return o.jsx(Se.DayPicker,{locale:Te.es,showOutsideDays:a,className:s("p-3 bg-white border-none",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:s(b({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:"h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",day:s(b({variant:"ghost"}),"h-9 w-9 p-0 font-normal aria-selected:opacity-100"),day_range_end:"day-range-end",day_selected:"bg-primary text-white hover:bg-primary hover:text-white focus:bg-primary focus:text-white",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:bg-accent/50 aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},components:{IconLeft:({...l})=>o.jsx(m.ChevronLeft,{className:"h-4 w-4"}),IconRight:({...l})=>o.jsx(m.ChevronRight,{className:"h-4 w-4"})},...n})}M.displayName="Calendar";const z=r.forwardRef(({className:e,...t},a)=>o.jsx(y.Root,{ref:a,className:s("peer h-4 w-4 shrink-0 rounded-sm border-[0.5px] border-black-light 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-white data-[state=checked]:text-primary-foreground",e),...t,children:o.jsx(y.Indicator,{className:s("flex items-center justify-center text-current"),children:o.jsx(m.Check,{className:"h-4 w-4"})})}));z.displayName=y.Root.displayName;const He=x.cva("flex h-8 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm 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-0 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",{variants:{variant:{ghost:"bg-white/10 border-zinc-300 text-white font-medium"}}}),q=r.forwardRef(({className:e,variant:t,type:a,...n},l)=>o.jsx("input",{type:a,className:s(He({variant:t,className:e})),ref:l,...n}));q.displayName="Input";const Ve=x.cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),A=r.forwardRef(({className:e,...t},a)=>o.jsx(R.Root,{ref:a,className:s(Ve(),e),...t}));A.displayName=R.Root.displayName;const Fe=d.Root,Oe=d.Group,Ue=d.Value,L=r.forwardRef(({className:e,children:t,...a},n)=>o.jsxs(d.Trigger,{ref:n,className:s("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),...a,children:[t,o.jsx(d.Icon,{asChild:!0,children:o.jsx(m.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));L.displayName=d.Trigger.displayName;const N=r.forwardRef(({className:e,...t},a)=>o.jsx(d.ScrollUpButton,{ref:a,className:s("flex cursor-default items-center justify-center py-1",e),...t,children:o.jsx(m.ChevronUp,{className:"h-4 w-4"})}));N.displayName=d.ScrollUpButton.displayName;const j=r.forwardRef(({className:e,...t},a)=>o.jsx(d.ScrollDownButton,{ref:a,className:s("flex cursor-default items-center justify-center py-1",e),...t,children:o.jsx(m.ChevronDown,{className:"h-4 w-4"})}));j.displayName=d.ScrollDownButton.displayName;const B=r.forwardRef(({className:e,children:t,position:a="popper",...n},l)=>o.jsx(d.Portal,{children:o.jsxs(d.Content,{ref:l,className:s("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",a==="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:a,...n,children:[o.jsx(N,{}),o.jsx(d.Viewport,{className:s("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),o.jsx(j,{})]})}));B.displayName=d.Content.displayName;const G=r.forwardRef(({className:e,...t},a)=>o.jsx(d.Label,{ref:a,className:s("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));G.displayName=d.Label.displayName;const H=r.forwardRef(({className:e,children:t,...a},n)=>o.jsxs(d.Item,{ref:n,className:s("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),...a,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(d.ItemIndicator,{children:o.jsx(m.Check,{className:"h-4 w-4"})})}),o.jsx(d.ItemText,{children:t})]}));H.displayName=d.Item.displayName;const V=r.forwardRef(({className:e,...t},a)=>o.jsx(d.Separator,{ref:a,className:s("-mx-1 my-1 h-px bg-muted",e),...t}));V.displayName=d.Separator.displayName;const F=r.forwardRef(({className:e,...t},a)=>o.jsx("textarea",{className:s("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:a,...t}));F.displayName="Textarea";const Ee=g.Root,Je=g.Trigger,O=r.forwardRef(({className:e,align:t="center",sideOffset:a=4,...n},l)=>o.jsx(g.Portal,{children:o.jsx(g.Content,{ref:l,align:t,sideOffset:a,className:s("z-50 w-72 rounded-md border border-black-light bg-popover p-4 text-popover-foreground shadow-md outline-none 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",e),...n})}));O.displayName=g.Content.displayName;const U=r.forwardRef(({className:e,...t},a)=>o.jsx(v.Root,{className:s("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-silver 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-white data-[state=unchecked]:bg-white",e),...t,ref:a,children:o.jsx(v.Thumb,{className:s("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]:bg-black-light data-[state=checked]:bg-primary data-[state=unchecked]:translate-x-0")})}));U.displayName=v.Root.displayName;const E=r.forwardRef(({className:e,...t},a)=>o.jsx("div",{className:"relative w-full overflow-auto",children:o.jsx("table",{ref:a,className:s("w-full caption-bottom text-sm",e),...t})}));E.displayName="Table";const J=r.forwardRef(({className:e,...t},a)=>o.jsx("thead",{ref:a,className:s("[&_tr]:border-b",e),...t}));J.displayName="TableHeader";const K=r.forwardRef(({className:e,...t},a)=>o.jsx("tbody",{ref:a,className:s("[&_tr:last-child]:border-0",e),...t}));K.displayName="TableBody";const Q=r.forwardRef(({className:e,...t},a)=>o.jsx("tfoot",{ref:a,className:s("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));Q.displayName="TableFooter";const W=r.forwardRef(({className:e,...t},a)=>o.jsx("tr",{ref:a,className:s("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));W.displayName="TableRow";const X=r.forwardRef(({className:e,...t},a)=>o.jsx("th",{ref:a,className:s("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));X.displayName="TableHead";const Y=r.forwardRef(({className:e,...t},a)=>o.jsx("td",{ref:a,className:s("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));Y.displayName="TableCell";const Z=r.forwardRef(({className:e,...t},a)=>o.jsx("caption",{ref:a,className:s("mt-4 text-sm text-muted-foreground",e),...t}));Z.displayName="TableCaption";const Ke=i.Root,Qe=i.Trigger,We=i.Group,Xe=i.Portal,Ye=i.Sub,Ze=i.RadioGroup,$=r.forwardRef(({className:e,inset:t,children:a,...n},l)=>o.jsxs(i.SubTrigger,{ref:l,className:s("flex cursor-default gap-2 select-none items-center 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),...n,children:[a,o.jsx(m.ChevronRight,{className:"ml-auto"})]}));$.displayName=i.SubTrigger.displayName;const ee=r.forwardRef(({className:e,...t},a)=>o.jsx(i.SubContent,{ref:a,className:s("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",e),...t}));ee.displayName=i.SubContent.displayName;const te=r.forwardRef(({className:e,sideOffset:t=4,...a},n)=>o.jsx(i.Portal,{children:o.jsx(i.Content,{ref:n,sideOffset:t,className:s("z-50 min-w-[8rem] overflow-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",e),...a})}));te.displayName=i.Content.displayName;const ae=r.forwardRef(({className:e,inset:t,...a},n)=>o.jsx(i.Item,{ref:n,className:s("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]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...a}));ae.displayName=i.Item.displayName;const oe=r.forwardRef(({className:e,children:t,checked:a,...n},l)=>o.jsxs(i.CheckboxItem,{ref:l,className:s("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:a,...n,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(i.ItemIndicator,{children:o.jsx(m.Check,{className:"h-4 w-4"})})}),t]}));oe.displayName=i.CheckboxItem.displayName;const se=r.forwardRef(({className:e,children:t,...a},n)=>o.jsxs(i.RadioItem,{ref:n,className:s("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),...a,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(i.ItemIndicator,{children:o.jsx(m.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));se.displayName=i.RadioItem.displayName;const re=r.forwardRef(({className:e,inset:t,...a},n)=>o.jsx(i.Label,{ref:n,className:s("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));re.displayName=i.Label.displayName;const ne=r.forwardRef(({className:e,...t},a)=>o.jsx(i.Separator,{ref:a,className:s("-mx-1 my-1 h-px bg-muted",e),...t}));ne.displayName=i.Separator.displayName;const ie=({className:e,...t})=>o.jsx("span",{className:s("ml-auto text-xs tracking-widest opacity-60",e),...t});ie.displayName="DropdownMenuShortcut";const $e=c.Root,et=c.Trigger,de=c.Portal,tt=c.Close,D=r.forwardRef(({className:e,...t},a)=>o.jsx(c.Overlay,{ref:a,className:s("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}));D.displayName=c.Overlay.displayName;const le=r.forwardRef(({className:e,children:t,...a},n)=>o.jsxs(de,{children:[o.jsx(D,{}),o.jsxs(c.Content,{ref:n,className:s("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),...a,children:[t,o.jsxs(c.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:[o.jsx(h.Cross2Icon,{className:"h-4 w-4"}),o.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));le.displayName=c.Content.displayName;const ce=({className:e,...t})=>o.jsx("div",{className:s("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});ce.displayName="DialogHeader";const me=({className:e,...t})=>o.jsx("div",{className:s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});me.displayName="DialogFooter";const ue=r.forwardRef(({className:e,...t},a)=>o.jsx(c.Title,{ref:a,className:s("text-lg font-semibold leading-none tracking-tight",e),...t}));ue.displayName=c.Title.displayName;const pe=r.forwardRef(({className:e,...t},a)=>o.jsx(c.Description,{ref:a,className:s("text-sm text-muted-foreground",e),...t}));pe.displayName=c.Description.displayName;const fe=({className:e,...t})=>o.jsx("nav",{role:"navigation","aria-label":"pagination",className:s("mx-auto flex w-full justify-center",e),...t});fe.displayName="Pagination";const ge=r.forwardRef(({className:e,...t},a)=>o.jsx("ul",{ref:a,className:s("flex flex-row items-center gap-1",e),...t}));ge.displayName="PaginationContent";const be=r.forwardRef(({className:e,...t},a)=>o.jsx("li",{ref:a,className:s("",e),...t}));be.displayName="PaginationItem";const w=({className:e,isActive:t,size:a="icon",...n})=>o.jsx("a",{"aria-current":t?"page":void 0,className:s(b({variant:t?"outline":"ghost",size:a}),e),...n});w.displayName="PaginationLink";const xe=({className:e,...t})=>o.jsx(w,{"aria-label":"Go to previous page",size:"default",className:s("gap-1 pl-2.5",e),...t,children:o.jsx(h.ChevronLeftIcon,{className:"h-4 w-4"})});xe.displayName="PaginationPrevious";const he=({className:e,...t})=>o.jsx(w,{"aria-label":"Go to next page",size:"default",className:s("gap-1 pr-2.5",e),...t,children:o.jsx(h.ChevronRightIcon,{className:"h-4 w-4"})});he.displayName="PaginationNext";const we=({className:e,...t})=>o.jsxs("span",{"aria-hidden":!0,className:s("flex h-9 w-9 items-center justify-center",e),...t,children:[o.jsx(h.DotsHorizontalIcon,{className:"h-4 w-4"}),o.jsx("span",{className:"sr-only",children:"More pages"})]});we.displayName="PaginationEllipsis";exports.Accordion=Le;exports.AccordionContent=_;exports.AccordionItem=k;exports.AccordionTrigger=I;exports.Avatar=C;exports.AvatarFallback=S;exports.AvatarImage=P;exports.Badge=Ge;exports.Button=T;exports.Calendar=M;exports.Checkbox=z;exports.Dialog=$e;exports.DialogClose=tt;exports.DialogContent=le;exports.DialogDescription=pe;exports.DialogFooter=me;exports.DialogHeader=ce;exports.DialogOverlay=D;exports.DialogPortal=de;exports.DialogTitle=ue;exports.DialogTrigger=et;exports.DropdownMenu=Ke;exports.DropdownMenuCheckboxItem=oe;exports.DropdownMenuContent=te;exports.DropdownMenuGroup=We;exports.DropdownMenuItem=ae;exports.DropdownMenuLabel=re;exports.DropdownMenuPortal=Xe;exports.DropdownMenuRadioGroup=Ze;exports.DropdownMenuRadioItem=se;exports.DropdownMenuSeparator=ne;exports.DropdownMenuShortcut=ie;exports.DropdownMenuSub=Ye;exports.DropdownMenuSubContent=ee;exports.DropdownMenuSubTrigger=$;exports.DropdownMenuTrigger=Qe;exports.Input=q;exports.Label=A;exports.Pagination=fe;exports.PaginationContent=ge;exports.PaginationEllipsis=we;exports.PaginationItem=be;exports.PaginationLink=w;exports.PaginationNext=he;exports.PaginationPrevious=xe;exports.Popover=Ee;exports.PopoverContent=O;exports.PopoverTrigger=Je;exports.Select=Fe;exports.SelectContent=B;exports.SelectGroup=Oe;exports.SelectItem=H;exports.SelectLabel=G;exports.SelectScrollDownButton=j;exports.SelectScrollUpButton=N;exports.SelectSeparator=V;exports.SelectTrigger=L;exports.SelectValue=Ue;exports.Switch=U;exports.Table=E;exports.TableBody=K;exports.TableCaption=Z;exports.TableCell=Y;exports.TableFooter=Q;exports.TableHead=X;exports.TableHeader=J;exports.TableRow=W;exports.Textarea=F;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),_e=require("react"),Ie=require("@radix-ui/react-avatar"),Me=require("clsx"),ze=require("tailwind-merge"),qe=require("@radix-ui/react-slot"),h=require("class-variance-authority"),Le=require("@radix-ui/react-accordion"),u=require("lucide-react"),Be=require("react-day-picker"),He=require("date-fns/locale"),Oe=require("@radix-ui/react-checkbox"),Fe=require("@radix-ui/react-label"),Ge=require("@radix-ui/react-select"),Ve=require("@radix-ui/react-popover"),Ue=require("@radix-ui/react-switch"),Ee=require("@radix-ui/react-dropdown-menu"),Je=require("@radix-ui/react-dialog"),y=require("@radix-ui/react-icons"),Ke=require("@radix-ui/react-alert-dialog");function p(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,n.get?n:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const r=p(_e),x=p(Ie),f=p(Le),N=p(Oe),P=p(Fe),l=p(Ge),b=p(Ve),v=p(Ue),i=p(Ee),m=p(Je),d=p(Ke);function s(...e){return ze.twMerge(Me.clsx(e))}const T=r.forwardRef(({className:e,...t},a)=>o.jsx(x.Root,{ref:a,className:s("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));T.displayName=x.Root.displayName;const S=r.forwardRef(({className:e,...t},a)=>o.jsx(x.Image,{ref:a,className:s("aspect-square h-full w-full",e),...t}));S.displayName=x.Image.displayName;const k=r.forwardRef(({className:e,...t},a)=>o.jsx(x.Fallback,{ref:a,className:s("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));k.displayName=x.Fallback.displayName;const g=h.cva("inline-flex items-center gap-1 justify-center 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",{variants:{variant:{default:"bg-primary text-white shadow hover:opacity-70",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",success:"bg-success-regular text-white shadow-sm hover:opacity-70",danger:"bg-danger-regular text-white shadow-sm hover:opacity-70",warning:"bg-warning-regular text-white shadow-sm hover:opacity-70"},size:{default:"h-10 px-2 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"}}),A=r.forwardRef(({className:e,variant:t,size:a,asChild:n=!1,...c},ke)=>{const Ae=n?qe.Slot:"button";return o.jsx(Ae,{className:s(g({variant:t,size:a,className:e})),ref:ke,...c})});A.displayName="Button";const Qe=f.Root,_=r.forwardRef(({className:e,...t},a)=>o.jsx(f.Item,{ref:a,className:s("border-b",e),...t}));_.displayName="AccordionItem";const I=r.forwardRef(({className:e,children:t,...a},n)=>o.jsx(f.Header,{className:"flex",children:o.jsxs(f.Trigger,{ref:n,className:s("flex flex-1 items-center justify-between py-4 font-medium transition-all [&[data-state=open]>svg]:rotate-180",e),...a,children:[t,o.jsx(u.ChevronDown,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));I.displayName=f.Trigger.displayName;const M=r.forwardRef(({className:e,children:t,...a},n)=>o.jsx(f.Content,{ref:n,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...a,children:o.jsx("div",{className:s("pb-4 pt-0",e),children:t})}));M.displayName=f.Content.displayName;const We=h.cva("inline-flex items-center rounded-md 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",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow",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"}},defaultVariants:{variant:"default"}});function Xe({className:e,variant:t,...a}){return o.jsx("div",{className:s(We({variant:t}),e),...a})}function z({className:e,classNames:t,showOutsideDays:a=!0,...n}){return o.jsx(Be.DayPicker,{locale:He.es,showOutsideDays:a,className:s("p-3 bg-white border-none",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:s(g({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:"h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",day:s(g({variant:"ghost"}),"h-9 w-9 p-0 font-normal aria-selected:opacity-100"),day_range_end:"day-range-end",day_selected:"bg-primary text-white hover:bg-primary hover:text-white focus:bg-primary focus:text-white",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:bg-accent/50 aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},components:{IconLeft:({...c})=>o.jsx(u.ChevronLeft,{className:"h-4 w-4"}),IconRight:({...c})=>o.jsx(u.ChevronRight,{className:"h-4 w-4"})},...n})}z.displayName="Calendar";const q=r.forwardRef(({className:e,...t},a)=>o.jsx(N.Root,{ref:a,className:s("peer h-4 w-4 shrink-0 rounded-sm border-[0.5px] border-black-light 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-white data-[state=checked]:text-primary-foreground",e),...t,children:o.jsx(N.Indicator,{className:s("flex items-center justify-center text-current"),children:o.jsx(u.Check,{className:"h-4 w-4"})})}));q.displayName=N.Root.displayName;const Ye=h.cva("flex h-8 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm 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-0 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",{variants:{variant:{ghost:"bg-white/10 border-zinc-300 text-white font-medium"}}}),L=r.forwardRef(({className:e,variant:t,type:a,...n},c)=>o.jsx("input",{type:a,className:s(Ye({variant:t,className:e})),ref:c,...n}));L.displayName="Input";const Ze=h.cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),B=r.forwardRef(({className:e,...t},a)=>o.jsx(P.Root,{ref:a,className:s(Ze(),e),...t}));B.displayName=P.Root.displayName;const $e=l.Root,et=l.Group,tt=l.Value,H=r.forwardRef(({className:e,children:t,...a},n)=>o.jsxs(l.Trigger,{ref:n,className:s("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),...a,children:[t,o.jsx(l.Icon,{asChild:!0,children:o.jsx(u.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));H.displayName=l.Trigger.displayName;const j=r.forwardRef(({className:e,...t},a)=>o.jsx(l.ScrollUpButton,{ref:a,className:s("flex cursor-default items-center justify-center py-1",e),...t,children:o.jsx(u.ChevronUp,{className:"h-4 w-4"})}));j.displayName=l.ScrollUpButton.displayName;const D=r.forwardRef(({className:e,...t},a)=>o.jsx(l.ScrollDownButton,{ref:a,className:s("flex cursor-default items-center justify-center py-1",e),...t,children:o.jsx(u.ChevronDown,{className:"h-4 w-4"})}));D.displayName=l.ScrollDownButton.displayName;const O=r.forwardRef(({className:e,children:t,position:a="popper",...n},c)=>o.jsx(l.Portal,{children:o.jsxs(l.Content,{ref:c,className:s("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",a==="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:a,...n,children:[o.jsx(j,{}),o.jsx(l.Viewport,{className:s("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),o.jsx(D,{})]})}));O.displayName=l.Content.displayName;const F=r.forwardRef(({className:e,...t},a)=>o.jsx(l.Label,{ref:a,className:s("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));F.displayName=l.Label.displayName;const G=r.forwardRef(({className:e,children:t,...a},n)=>o.jsxs(l.Item,{ref:n,className:s("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),...a,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(l.ItemIndicator,{children:o.jsx(u.Check,{className:"h-4 w-4"})})}),o.jsx(l.ItemText,{children:t})]}));G.displayName=l.Item.displayName;const V=r.forwardRef(({className:e,...t},a)=>o.jsx(l.Separator,{ref:a,className:s("-mx-1 my-1 h-px bg-muted",e),...t}));V.displayName=l.Separator.displayName;const U=r.forwardRef(({className:e,...t},a)=>o.jsx("textarea",{className:s("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:a,...t}));U.displayName="Textarea";const at=b.Root,ot=b.Trigger,E=r.forwardRef(({className:e,align:t="center",sideOffset:a=4,...n},c)=>o.jsx(b.Portal,{children:o.jsx(b.Content,{ref:c,align:t,sideOffset:a,className:s("z-50 w-72 rounded-md border border-black-light bg-popover p-4 text-popover-foreground shadow-md outline-none 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",e),...n})}));E.displayName=b.Content.displayName;const J=r.forwardRef(({className:e,...t},a)=>o.jsx(v.Root,{className:s("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-silver 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-white data-[state=unchecked]:bg-white",e),...t,ref:a,children:o.jsx(v.Thumb,{className:s("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]:bg-black-light data-[state=checked]:bg-primary data-[state=unchecked]:translate-x-0")})}));J.displayName=v.Root.displayName;const K=r.forwardRef(({className:e,...t},a)=>o.jsx("div",{className:"relative w-full overflow-auto",children:o.jsx("table",{ref:a,className:s("w-full caption-bottom text-sm",e),...t})}));K.displayName="Table";const Q=r.forwardRef(({className:e,...t},a)=>o.jsx("thead",{ref:a,className:s("[&_tr]:border-b",e),...t}));Q.displayName="TableHeader";const W=r.forwardRef(({className:e,...t},a)=>o.jsx("tbody",{ref:a,className:s("[&_tr:last-child]:border-0",e),...t}));W.displayName="TableBody";const X=r.forwardRef(({className:e,...t},a)=>o.jsx("tfoot",{ref:a,className:s("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));X.displayName="TableFooter";const Y=r.forwardRef(({className:e,...t},a)=>o.jsx("tr",{ref:a,className:s("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));Y.displayName="TableRow";const Z=r.forwardRef(({className:e,...t},a)=>o.jsx("th",{ref:a,className:s("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));Z.displayName="TableHead";const $=r.forwardRef(({className:e,...t},a)=>o.jsx("td",{ref:a,className:s("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));$.displayName="TableCell";const ee=r.forwardRef(({className:e,...t},a)=>o.jsx("caption",{ref:a,className:s("mt-4 text-sm text-muted-foreground",e),...t}));ee.displayName="TableCaption";const st=i.Root,rt=i.Trigger,nt=i.Group,it=i.Portal,lt=i.Sub,dt=i.RadioGroup,te=r.forwardRef(({className:e,inset:t,children:a,...n},c)=>o.jsxs(i.SubTrigger,{ref:c,className:s("flex cursor-default gap-2 select-none items-center 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),...n,children:[a,o.jsx(u.ChevronRight,{className:"ml-auto"})]}));te.displayName=i.SubTrigger.displayName;const ae=r.forwardRef(({className:e,...t},a)=>o.jsx(i.SubContent,{ref:a,className:s("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",e),...t}));ae.displayName=i.SubContent.displayName;const oe=r.forwardRef(({className:e,sideOffset:t=4,...a},n)=>o.jsx(i.Portal,{children:o.jsx(i.Content,{ref:n,sideOffset:t,className:s("z-50 min-w-[8rem] overflow-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",e),...a})}));oe.displayName=i.Content.displayName;const se=r.forwardRef(({className:e,inset:t,...a},n)=>o.jsx(i.Item,{ref:n,className:s("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]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...a}));se.displayName=i.Item.displayName;const re=r.forwardRef(({className:e,children:t,checked:a,...n},c)=>o.jsxs(i.CheckboxItem,{ref:c,className:s("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:a,...n,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(i.ItemIndicator,{children:o.jsx(u.Check,{className:"h-4 w-4"})})}),t]}));re.displayName=i.CheckboxItem.displayName;const ne=r.forwardRef(({className:e,children:t,...a},n)=>o.jsxs(i.RadioItem,{ref:n,className:s("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),...a,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(i.ItemIndicator,{children:o.jsx(u.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));ne.displayName=i.RadioItem.displayName;const ie=r.forwardRef(({className:e,inset:t,...a},n)=>o.jsx(i.Label,{ref:n,className:s("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));ie.displayName=i.Label.displayName;const le=r.forwardRef(({className:e,...t},a)=>o.jsx(i.Separator,{ref:a,className:s("-mx-1 my-1 h-px bg-muted",e),...t}));le.displayName=i.Separator.displayName;const de=({className:e,...t})=>o.jsx("span",{className:s("ml-auto text-xs tracking-widest opacity-60",e),...t});de.displayName="DropdownMenuShortcut";const ct=m.Root,mt=m.Trigger,ce=m.Portal,ut=m.Close,R=r.forwardRef(({className:e,...t},a)=>o.jsx(m.Overlay,{ref:a,className:s("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}));R.displayName=m.Overlay.displayName;const me=r.forwardRef(({className:e,children:t,...a},n)=>o.jsxs(ce,{children:[o.jsx(R,{}),o.jsxs(m.Content,{ref:n,className:s("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),...a,children:[t,o.jsxs(m.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:[o.jsx(y.Cross2Icon,{className:"h-4 w-4"}),o.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));me.displayName=m.Content.displayName;const ue=({className:e,...t})=>o.jsx("div",{className:s("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});ue.displayName="DialogHeader";const pe=({className:e,...t})=>o.jsx("div",{className:s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});pe.displayName="DialogFooter";const fe=r.forwardRef(({className:e,...t},a)=>o.jsx(m.Title,{ref:a,className:s("text-lg font-semibold leading-none tracking-tight",e),...t}));fe.displayName=m.Title.displayName;const ge=r.forwardRef(({className:e,...t},a)=>o.jsx(m.Description,{ref:a,className:s("text-sm text-muted-foreground",e),...t}));ge.displayName=m.Description.displayName;const pt=d.Root,ft=d.Trigger,xe=d.Portal,C=r.forwardRef(({className:e,...t},a)=>o.jsx(d.Overlay,{className:s("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:a}));C.displayName=d.Overlay.displayName;const be=r.forwardRef(({className:e,...t},a)=>o.jsxs(xe,{children:[o.jsx(C,{}),o.jsx(d.Content,{ref:a,className:s("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})]}));be.displayName=d.Content.displayName;const he=({className:e,...t})=>o.jsx("div",{className:s("flex flex-col space-y-2 text-center sm:text-left",e),...t});he.displayName="AlertDialogHeader";const ye=({className:e,...t})=>o.jsx("div",{className:s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});ye.displayName="AlertDialogFooter";const we=r.forwardRef(({className:e,...t},a)=>o.jsx(d.Title,{ref:a,className:s("text-lg font-semibold",e),...t}));we.displayName=d.Title.displayName;const Ne=r.forwardRef(({className:e,...t},a)=>o.jsx(d.Description,{ref:a,className:s("text-sm text-muted-foreground",e),...t}));Ne.displayName=d.Description.displayName;const ve=r.forwardRef(({className:e,...t},a)=>o.jsx(d.Action,{ref:a,className:s(g(),e),...t}));ve.displayName=d.Action.displayName;const je=r.forwardRef(({className:e,...t},a)=>o.jsx(d.Cancel,{ref:a,className:s(g({variant:"outline"}),"mt-0",e),...t}));je.displayName=d.Cancel.displayName;const De=({className:e,...t})=>o.jsx("nav",{role:"navigation","aria-label":"pagination",className:s("mx-auto flex w-full justify-center",e),...t});De.displayName="Pagination";const Re=r.forwardRef(({className:e,...t},a)=>o.jsx("ul",{ref:a,className:s("flex flex-row items-center gap-1",e),...t}));Re.displayName="PaginationContent";const Ce=r.forwardRef(({className:e,...t},a)=>o.jsx("li",{ref:a,className:s("",e),...t}));Ce.displayName="PaginationItem";const w=({className:e,isActive:t,size:a="icon",...n})=>o.jsx("a",{"aria-current":t?"page":void 0,className:s(g({variant:t?"outline":"ghost",size:a}),e),...n});w.displayName="PaginationLink";const Pe=({className:e,...t})=>o.jsx(w,{"aria-label":"Go to previous page",size:"default",className:s("gap-1 pl-2.5",e),...t,children:o.jsx(y.ChevronLeftIcon,{className:"h-4 w-4"})});Pe.displayName="PaginationPrevious";const Te=({className:e,...t})=>o.jsx(w,{"aria-label":"Go to next page",size:"default",className:s("gap-1 pr-2.5",e),...t,children:o.jsx(y.ChevronRightIcon,{className:"h-4 w-4"})});Te.displayName="PaginationNext";const Se=({className:e,...t})=>o.jsxs("span",{"aria-hidden":!0,className:s("flex h-9 w-9 items-center justify-center",e),...t,children:[o.jsx(y.DotsHorizontalIcon,{className:"h-4 w-4"}),o.jsx("span",{className:"sr-only",children:"More pages"})]});Se.displayName="PaginationEllipsis";exports.Accordion=Qe;exports.AccordionContent=M;exports.AccordionItem=_;exports.AccordionTrigger=I;exports.AlertDialog=pt;exports.AlertDialogAction=ve;exports.AlertDialogCancel=je;exports.AlertDialogContent=be;exports.AlertDialogDescription=Ne;exports.AlertDialogFooter=ye;exports.AlertDialogHeader=he;exports.AlertDialogOverlay=C;exports.AlertDialogPortal=xe;exports.AlertDialogTitle=we;exports.AlertDialogTrigger=ft;exports.Avatar=T;exports.AvatarFallback=k;exports.AvatarImage=S;exports.Badge=Xe;exports.Button=A;exports.Calendar=z;exports.Checkbox=q;exports.Dialog=ct;exports.DialogClose=ut;exports.DialogContent=me;exports.DialogDescription=ge;exports.DialogFooter=pe;exports.DialogHeader=ue;exports.DialogOverlay=R;exports.DialogPortal=ce;exports.DialogTitle=fe;exports.DialogTrigger=mt;exports.DropdownMenu=st;exports.DropdownMenuCheckboxItem=re;exports.DropdownMenuContent=oe;exports.DropdownMenuGroup=nt;exports.DropdownMenuItem=se;exports.DropdownMenuLabel=ie;exports.DropdownMenuPortal=it;exports.DropdownMenuRadioGroup=dt;exports.DropdownMenuRadioItem=ne;exports.DropdownMenuSeparator=le;exports.DropdownMenuShortcut=de;exports.DropdownMenuSub=lt;exports.DropdownMenuSubContent=ae;exports.DropdownMenuSubTrigger=te;exports.DropdownMenuTrigger=rt;exports.Input=L;exports.Label=B;exports.Pagination=De;exports.PaginationContent=Re;exports.PaginationEllipsis=Se;exports.PaginationItem=Ce;exports.PaginationLink=w;exports.PaginationNext=Te;exports.PaginationPrevious=Pe;exports.Popover=at;exports.PopoverContent=E;exports.PopoverTrigger=ot;exports.Select=$e;exports.SelectContent=O;exports.SelectGroup=et;exports.SelectItem=G;exports.SelectLabel=F;exports.SelectScrollDownButton=D;exports.SelectScrollUpButton=j;exports.SelectSeparator=V;exports.SelectTrigger=H;exports.SelectValue=tt;exports.Switch=J;exports.Table=K;exports.TableBody=W;exports.TableCaption=ee;exports.TableCell=$;exports.TableFooter=X;exports.TableHead=Z;exports.TableHeader=Q;exports.TableRow=Y;exports.Textarea=U;
|