@imj_media/imj-ui 1.0.25 → 1.0.26
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 +123 -123
- package/package.json +2 -2
package/dist/imj-ui.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
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;
|
|
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-[2.5rem] px-2 py-2",sm:"h-[2rem] rounded-md px-3 text-xs",lg:"h-[2.5rem] rounded-md px-8",icon:"h-[2.25rem] w-[2.25rem]"}},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-[2.5rem] 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-[24rem] 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-[0.875rem] w-[0.875rem] 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;
|
package/dist/imj-ui.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as o, jsxs as f } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
2
|
+
import * as s from "react";
|
|
3
3
|
import * as g from "@radix-ui/react-avatar";
|
|
4
4
|
import { clsx as S } from "clsx";
|
|
5
5
|
import { twMerge as z } from "tailwind-merge";
|
|
@@ -18,32 +18,32 @@ import * as i from "@radix-ui/react-dropdown-menu";
|
|
|
18
18
|
import * as m from "@radix-ui/react-dialog";
|
|
19
19
|
import { Cross2Icon as H, ChevronLeftIcon as F, ChevronRightIcon as V, DotsHorizontalIcon as G } from "@radix-ui/react-icons";
|
|
20
20
|
import * as l from "@radix-ui/react-alert-dialog";
|
|
21
|
-
function
|
|
21
|
+
function r(...e) {
|
|
22
22
|
return z(S(e));
|
|
23
23
|
}
|
|
24
|
-
const O =
|
|
24
|
+
const O = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
25
25
|
g.Root,
|
|
26
26
|
{
|
|
27
27
|
ref: t,
|
|
28
|
-
className:
|
|
28
|
+
className: r("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full", e),
|
|
29
29
|
...a
|
|
30
30
|
}
|
|
31
31
|
));
|
|
32
32
|
O.displayName = g.Root.displayName;
|
|
33
|
-
const U =
|
|
33
|
+
const U = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
34
34
|
g.Image,
|
|
35
35
|
{
|
|
36
36
|
ref: t,
|
|
37
|
-
className:
|
|
37
|
+
className: r("aspect-square h-full w-full", e),
|
|
38
38
|
...a
|
|
39
39
|
}
|
|
40
40
|
));
|
|
41
41
|
U.displayName = g.Image.displayName;
|
|
42
|
-
const E =
|
|
42
|
+
const E = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
43
43
|
g.Fallback,
|
|
44
44
|
{
|
|
45
45
|
ref: t,
|
|
46
|
-
className:
|
|
46
|
+
className: r(
|
|
47
47
|
"flex h-full w-full items-center justify-center rounded-full bg-muted",
|
|
48
48
|
e
|
|
49
49
|
),
|
|
@@ -67,10 +67,10 @@ const u = h(
|
|
|
67
67
|
warning: "bg-warning-regular text-white shadow-sm hover:opacity-70"
|
|
68
68
|
},
|
|
69
69
|
size: {
|
|
70
|
-
default: "h-
|
|
71
|
-
sm: "h-
|
|
72
|
-
lg: "h-
|
|
73
|
-
icon: "h-
|
|
70
|
+
default: "h-[2.5rem] px-2 py-2",
|
|
71
|
+
sm: "h-[2rem] rounded-md px-3 text-xs",
|
|
72
|
+
lg: "h-[2.5rem] rounded-md px-8",
|
|
73
|
+
icon: "h-[2.25rem] w-[2.25rem]"
|
|
74
74
|
}
|
|
75
75
|
},
|
|
76
76
|
defaultVariants: {
|
|
@@ -78,24 +78,24 @@ const u = h(
|
|
|
78
78
|
size: "default"
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
), q =
|
|
81
|
+
), q = s.forwardRef(
|
|
82
82
|
({ className: e, variant: a, size: t, asChild: n = !1, ...c }, I) => /* @__PURE__ */ o(
|
|
83
83
|
n ? A : "button",
|
|
84
84
|
{
|
|
85
|
-
className:
|
|
85
|
+
className: r(u({ variant: a, size: t, className: e })),
|
|
86
86
|
ref: I,
|
|
87
87
|
...c
|
|
88
88
|
}
|
|
89
89
|
)
|
|
90
90
|
);
|
|
91
91
|
q.displayName = "Button";
|
|
92
|
-
const oa = p.Root, J =
|
|
92
|
+
const oa = p.Root, J = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(p.Item, { ref: t, className: r("border-b", e), ...a }));
|
|
93
93
|
J.displayName = "AccordionItem";
|
|
94
|
-
const K =
|
|
94
|
+
const K = s.forwardRef(({ className: e, children: a, ...t }, n) => /* @__PURE__ */ o(p.Header, { className: "flex", children: /* @__PURE__ */ f(
|
|
95
95
|
p.Trigger,
|
|
96
96
|
{
|
|
97
97
|
ref: n,
|
|
98
|
-
className:
|
|
98
|
+
className: r(
|
|
99
99
|
"flex flex-1 items-center justify-between py-4 font-medium transition-all [&[data-state=open]>svg]:rotate-180",
|
|
100
100
|
e
|
|
101
101
|
),
|
|
@@ -107,13 +107,13 @@ const K = r.forwardRef(({ className: e, children: a, ...t }, n) => /* @__PURE__
|
|
|
107
107
|
}
|
|
108
108
|
) }));
|
|
109
109
|
K.displayName = p.Trigger.displayName;
|
|
110
|
-
const Q =
|
|
110
|
+
const Q = s.forwardRef(({ className: e, children: a, ...t }, n) => /* @__PURE__ */ o(
|
|
111
111
|
p.Content,
|
|
112
112
|
{
|
|
113
113
|
ref: n,
|
|
114
114
|
className: "overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
|
|
115
115
|
...t,
|
|
116
|
-
children: /* @__PURE__ */ o("div", { className:
|
|
116
|
+
children: /* @__PURE__ */ o("div", { className: r("pb-4 pt-0", e), children: a })
|
|
117
117
|
}
|
|
118
118
|
));
|
|
119
119
|
Q.displayName = p.Content.displayName;
|
|
@@ -133,8 +133,8 @@ const W = h(
|
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
);
|
|
136
|
-
function
|
|
137
|
-
return /* @__PURE__ */ o("div", { className:
|
|
136
|
+
function ra({ className: e, variant: a, ...t }) {
|
|
137
|
+
return /* @__PURE__ */ o("div", { className: r(W({ variant: a }), e), ...t });
|
|
138
138
|
}
|
|
139
139
|
function X({ className: e, classNames: a, showOutsideDays: t = !0, ...n }) {
|
|
140
140
|
return /* @__PURE__ */ o(
|
|
@@ -142,14 +142,14 @@ function X({ className: e, classNames: a, showOutsideDays: t = !0, ...n }) {
|
|
|
142
142
|
{
|
|
143
143
|
locale: B,
|
|
144
144
|
showOutsideDays: t,
|
|
145
|
-
className:
|
|
145
|
+
className: r("p-3 bg-white border-none", e),
|
|
146
146
|
classNames: {
|
|
147
147
|
months: "flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",
|
|
148
148
|
month: "space-y-4",
|
|
149
149
|
caption: "flex justify-center pt-1 relative items-center",
|
|
150
150
|
caption_label: "text-sm font-medium",
|
|
151
151
|
nav: "space-x-1 flex items-center",
|
|
152
|
-
nav_button:
|
|
152
|
+
nav_button: r(
|
|
153
153
|
u({ variant: "outline" }),
|
|
154
154
|
"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"
|
|
155
155
|
),
|
|
@@ -160,7 +160,7 @@ function X({ className: e, classNames: a, showOutsideDays: t = !0, ...n }) {
|
|
|
160
160
|
head_cell: "text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",
|
|
161
161
|
row: "flex w-full mt-2",
|
|
162
162
|
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",
|
|
163
|
-
day:
|
|
163
|
+
day: r(
|
|
164
164
|
u({ variant: "ghost" }),
|
|
165
165
|
"h-9 w-9 p-0 font-normal aria-selected:opacity-100"
|
|
166
166
|
),
|
|
@@ -182,11 +182,11 @@ function X({ className: e, classNames: a, showOutsideDays: t = !0, ...n }) {
|
|
|
182
182
|
);
|
|
183
183
|
}
|
|
184
184
|
X.displayName = "Calendar";
|
|
185
|
-
const Y =
|
|
185
|
+
const Y = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
186
186
|
y.Root,
|
|
187
187
|
{
|
|
188
188
|
ref: t,
|
|
189
|
-
className:
|
|
189
|
+
className: r(
|
|
190
190
|
"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",
|
|
191
191
|
e
|
|
192
192
|
),
|
|
@@ -194,7 +194,7 @@ const Y = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
|
194
194
|
children: /* @__PURE__ */ o(
|
|
195
195
|
y.Indicator,
|
|
196
196
|
{
|
|
197
|
-
className:
|
|
197
|
+
className: r("flex items-center justify-center text-current"),
|
|
198
198
|
children: /* @__PURE__ */ o(x, { className: "h-4 w-4" })
|
|
199
199
|
}
|
|
200
200
|
)
|
|
@@ -210,12 +210,12 @@ const Z = h(
|
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
|
-
), $ =
|
|
213
|
+
), $ = s.forwardRef(
|
|
214
214
|
({ className: e, variant: a, type: t, ...n }, c) => /* @__PURE__ */ o(
|
|
215
215
|
"input",
|
|
216
216
|
{
|
|
217
217
|
type: t,
|
|
218
|
-
className:
|
|
218
|
+
className: r(Z({ variant: a, className: e })),
|
|
219
219
|
ref: c,
|
|
220
220
|
...n
|
|
221
221
|
}
|
|
@@ -224,14 +224,14 @@ const Z = h(
|
|
|
224
224
|
$.displayName = "Input";
|
|
225
225
|
const ee = h(
|
|
226
226
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
227
|
-
), ae =
|
|
227
|
+
), ae = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(D.Root, { ref: t, className: r(ee(), e), ...a }));
|
|
228
228
|
ae.displayName = D.Root.displayName;
|
|
229
|
-
const
|
|
229
|
+
const sa = d.Root, na = d.Group, ia = d.Value, te = s.forwardRef(({ className: e, children: a, ...t }, n) => /* @__PURE__ */ f(
|
|
230
230
|
d.Trigger,
|
|
231
231
|
{
|
|
232
232
|
ref: n,
|
|
233
|
-
className:
|
|
234
|
-
"flex h-
|
|
233
|
+
className: r(
|
|
234
|
+
"flex h-[2.5rem] 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",
|
|
235
235
|
e
|
|
236
236
|
),
|
|
237
237
|
...t,
|
|
@@ -242,32 +242,32 @@ const ra = d.Root, na = d.Group, ia = d.Value, te = r.forwardRef(({ className: e
|
|
|
242
242
|
}
|
|
243
243
|
));
|
|
244
244
|
te.displayName = d.Trigger.displayName;
|
|
245
|
-
const C =
|
|
245
|
+
const C = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
246
246
|
d.ScrollUpButton,
|
|
247
247
|
{
|
|
248
248
|
ref: t,
|
|
249
|
-
className:
|
|
249
|
+
className: r("flex cursor-default items-center justify-center py-1", e),
|
|
250
250
|
...a,
|
|
251
251
|
children: /* @__PURE__ */ o(M, { className: "h-4 w-4" })
|
|
252
252
|
}
|
|
253
253
|
));
|
|
254
254
|
C.displayName = d.ScrollUpButton.displayName;
|
|
255
|
-
const k =
|
|
255
|
+
const k = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
256
256
|
d.ScrollDownButton,
|
|
257
257
|
{
|
|
258
258
|
ref: t,
|
|
259
|
-
className:
|
|
259
|
+
className: r("flex cursor-default items-center justify-center py-1", e),
|
|
260
260
|
...a,
|
|
261
261
|
children: /* @__PURE__ */ o(w, { className: "h-4 w-4" })
|
|
262
262
|
}
|
|
263
263
|
));
|
|
264
264
|
k.displayName = d.ScrollDownButton.displayName;
|
|
265
|
-
const oe =
|
|
265
|
+
const oe = s.forwardRef(({ className: e, children: a, position: t = "popper", ...n }, c) => /* @__PURE__ */ o(d.Portal, { children: /* @__PURE__ */ f(
|
|
266
266
|
d.Content,
|
|
267
267
|
{
|
|
268
268
|
ref: c,
|
|
269
|
-
className:
|
|
270
|
-
"relative z-50 max-h-
|
|
269
|
+
className: r(
|
|
270
|
+
"relative z-50 max-h-[24rem] 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",
|
|
271
271
|
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",
|
|
272
272
|
e
|
|
273
273
|
),
|
|
@@ -278,7 +278,7 @@ const oe = r.forwardRef(({ className: e, children: a, position: t = "popper", ..
|
|
|
278
278
|
/* @__PURE__ */ o(
|
|
279
279
|
d.Viewport,
|
|
280
280
|
{
|
|
281
|
-
className:
|
|
281
|
+
className: r(
|
|
282
282
|
"p-1",
|
|
283
283
|
t === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
|
|
284
284
|
),
|
|
@@ -290,45 +290,45 @@ const oe = r.forwardRef(({ className: e, children: a, position: t = "popper", ..
|
|
|
290
290
|
}
|
|
291
291
|
) }));
|
|
292
292
|
oe.displayName = d.Content.displayName;
|
|
293
|
-
const
|
|
293
|
+
const re = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
294
294
|
d.Label,
|
|
295
295
|
{
|
|
296
296
|
ref: t,
|
|
297
|
-
className:
|
|
297
|
+
className: r("py-1.5 pl-8 pr-2 text-sm font-semibold", e),
|
|
298
298
|
...a
|
|
299
299
|
}
|
|
300
300
|
));
|
|
301
|
-
|
|
302
|
-
const
|
|
301
|
+
re.displayName = d.Label.displayName;
|
|
302
|
+
const se = s.forwardRef(({ className: e, children: a, ...t }, n) => /* @__PURE__ */ f(
|
|
303
303
|
d.Item,
|
|
304
304
|
{
|
|
305
305
|
ref: n,
|
|
306
|
-
className:
|
|
306
|
+
className: r(
|
|
307
307
|
"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",
|
|
308
308
|
e
|
|
309
309
|
),
|
|
310
310
|
...t,
|
|
311
311
|
children: [
|
|
312
|
-
/* @__PURE__ */ o("span", { className: "absolute left-2 flex h-
|
|
312
|
+
/* @__PURE__ */ o("span", { className: "absolute left-2 flex h-[0.875rem] w-[0.875rem] items-center justify-center", children: /* @__PURE__ */ o(d.ItemIndicator, { children: /* @__PURE__ */ o(x, { className: "h-4 w-4" }) }) }),
|
|
313
313
|
/* @__PURE__ */ o(d.ItemText, { children: a })
|
|
314
314
|
]
|
|
315
315
|
}
|
|
316
316
|
));
|
|
317
|
-
|
|
318
|
-
const ne =
|
|
317
|
+
se.displayName = d.Item.displayName;
|
|
318
|
+
const ne = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
319
319
|
d.Separator,
|
|
320
320
|
{
|
|
321
321
|
ref: t,
|
|
322
|
-
className:
|
|
322
|
+
className: r("-mx-1 my-1 h-px bg-muted", e),
|
|
323
323
|
...a
|
|
324
324
|
}
|
|
325
325
|
));
|
|
326
326
|
ne.displayName = d.Separator.displayName;
|
|
327
|
-
const ie =
|
|
327
|
+
const ie = s.forwardRef(
|
|
328
328
|
({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
329
329
|
"textarea",
|
|
330
330
|
{
|
|
331
|
-
className:
|
|
331
|
+
className: r(
|
|
332
332
|
"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",
|
|
333
333
|
e
|
|
334
334
|
),
|
|
@@ -338,13 +338,13 @@ const ie = r.forwardRef(
|
|
|
338
338
|
)
|
|
339
339
|
);
|
|
340
340
|
ie.displayName = "Textarea";
|
|
341
|
-
const da = b.Root, la = b.Trigger, de =
|
|
341
|
+
const da = b.Root, la = b.Trigger, de = s.forwardRef(({ className: e, align: a = "center", sideOffset: t = 4, ...n }, c) => /* @__PURE__ */ o(b.Portal, { children: /* @__PURE__ */ o(
|
|
342
342
|
b.Content,
|
|
343
343
|
{
|
|
344
344
|
ref: c,
|
|
345
345
|
align: a,
|
|
346
346
|
sideOffset: t,
|
|
347
|
-
className:
|
|
347
|
+
className: r(
|
|
348
348
|
"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",
|
|
349
349
|
e
|
|
350
350
|
),
|
|
@@ -352,10 +352,10 @@ const da = b.Root, la = b.Trigger, de = r.forwardRef(({ className: e, align: a =
|
|
|
352
352
|
}
|
|
353
353
|
) }));
|
|
354
354
|
de.displayName = b.Content.displayName;
|
|
355
|
-
const le =
|
|
355
|
+
const le = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
356
356
|
N.Root,
|
|
357
357
|
{
|
|
358
|
-
className:
|
|
358
|
+
className: r(
|
|
359
359
|
"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",
|
|
360
360
|
e
|
|
361
361
|
),
|
|
@@ -364,7 +364,7 @@ const le = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
|
364
364
|
children: /* @__PURE__ */ o(
|
|
365
365
|
N.Thumb,
|
|
366
366
|
{
|
|
367
|
-
className:
|
|
367
|
+
className: r(
|
|
368
368
|
"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"
|
|
369
369
|
)
|
|
370
370
|
}
|
|
@@ -372,36 +372,36 @@ const le = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
|
372
372
|
}
|
|
373
373
|
));
|
|
374
374
|
le.displayName = N.Root.displayName;
|
|
375
|
-
const ce =
|
|
375
|
+
const ce = s.forwardRef(
|
|
376
376
|
({ className: e, ...a }, t) => /* @__PURE__ */ o("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ o(
|
|
377
377
|
"table",
|
|
378
378
|
{
|
|
379
379
|
ref: t,
|
|
380
|
-
className:
|
|
380
|
+
className: r("w-full caption-bottom text-sm", e),
|
|
381
381
|
...a
|
|
382
382
|
}
|
|
383
383
|
) })
|
|
384
384
|
);
|
|
385
385
|
ce.displayName = "Table";
|
|
386
|
-
const me =
|
|
386
|
+
const me = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o("thead", { ref: t, className: r("[&_tr]:border-b", e), ...a }));
|
|
387
387
|
me.displayName = "TableHeader";
|
|
388
|
-
const fe =
|
|
388
|
+
const fe = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o("tbody", { ref: t, className: r("[&_tr:last-child]:border-0", e), ...a }));
|
|
389
389
|
fe.displayName = "TableBody";
|
|
390
|
-
const pe =
|
|
390
|
+
const pe = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
391
391
|
"tfoot",
|
|
392
392
|
{
|
|
393
393
|
ref: t,
|
|
394
|
-
className:
|
|
394
|
+
className: r("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0", e),
|
|
395
395
|
...a
|
|
396
396
|
}
|
|
397
397
|
));
|
|
398
398
|
pe.displayName = "TableFooter";
|
|
399
|
-
const ue =
|
|
399
|
+
const ue = s.forwardRef(
|
|
400
400
|
({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
401
401
|
"tr",
|
|
402
402
|
{
|
|
403
403
|
ref: t,
|
|
404
|
-
className:
|
|
404
|
+
className: r(
|
|
405
405
|
"border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",
|
|
406
406
|
e
|
|
407
407
|
),
|
|
@@ -410,11 +410,11 @@ const ue = r.forwardRef(
|
|
|
410
410
|
)
|
|
411
411
|
);
|
|
412
412
|
ue.displayName = "TableRow";
|
|
413
|
-
const ge =
|
|
413
|
+
const ge = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
414
414
|
"th",
|
|
415
415
|
{
|
|
416
416
|
ref: t,
|
|
417
|
-
className:
|
|
417
|
+
className: r(
|
|
418
418
|
"h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",
|
|
419
419
|
e
|
|
420
420
|
),
|
|
@@ -422,22 +422,22 @@ const ge = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
|
422
422
|
}
|
|
423
423
|
));
|
|
424
424
|
ge.displayName = "TableHead";
|
|
425
|
-
const be =
|
|
425
|
+
const be = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
426
426
|
"td",
|
|
427
427
|
{
|
|
428
428
|
ref: t,
|
|
429
|
-
className:
|
|
429
|
+
className: r("p-4 align-middle [&:has([role=checkbox])]:pr-0", e),
|
|
430
430
|
...a
|
|
431
431
|
}
|
|
432
432
|
));
|
|
433
433
|
be.displayName = "TableCell";
|
|
434
|
-
const he =
|
|
434
|
+
const he = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o("caption", { ref: t, className: r("mt-4 text-sm text-muted-foreground", e), ...a }));
|
|
435
435
|
he.displayName = "TableCaption";
|
|
436
|
-
const ca = i.Root, ma = i.Trigger, fa = i.Group, pa = i.Portal, ua = i.Sub, ga = i.RadioGroup, ye =
|
|
436
|
+
const ca = i.Root, ma = i.Trigger, fa = i.Group, pa = i.Portal, ua = i.Sub, ga = i.RadioGroup, ye = s.forwardRef(({ className: e, inset: a, children: t, ...n }, c) => /* @__PURE__ */ f(
|
|
437
437
|
i.SubTrigger,
|
|
438
438
|
{
|
|
439
439
|
ref: c,
|
|
440
|
-
className:
|
|
440
|
+
className: r(
|
|
441
441
|
"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",
|
|
442
442
|
a && "pl-8",
|
|
443
443
|
e
|
|
@@ -450,11 +450,11 @@ const ca = i.Root, ma = i.Trigger, fa = i.Group, pa = i.Portal, ua = i.Sub, ga =
|
|
|
450
450
|
}
|
|
451
451
|
));
|
|
452
452
|
ye.displayName = i.SubTrigger.displayName;
|
|
453
|
-
const Ne =
|
|
453
|
+
const Ne = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
454
454
|
i.SubContent,
|
|
455
455
|
{
|
|
456
456
|
ref: t,
|
|
457
|
-
className:
|
|
457
|
+
className: r(
|
|
458
458
|
"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",
|
|
459
459
|
e
|
|
460
460
|
),
|
|
@@ -462,12 +462,12 @@ const Ne = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
|
462
462
|
}
|
|
463
463
|
));
|
|
464
464
|
Ne.displayName = i.SubContent.displayName;
|
|
465
|
-
const we =
|
|
465
|
+
const we = s.forwardRef(({ className: e, sideOffset: a = 4, ...t }, n) => /* @__PURE__ */ o(i.Portal, { children: /* @__PURE__ */ o(
|
|
466
466
|
i.Content,
|
|
467
467
|
{
|
|
468
468
|
ref: n,
|
|
469
469
|
sideOffset: a,
|
|
470
|
-
className:
|
|
470
|
+
className: r(
|
|
471
471
|
"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",
|
|
472
472
|
e
|
|
473
473
|
),
|
|
@@ -475,11 +475,11 @@ const we = r.forwardRef(({ className: e, sideOffset: a = 4, ...t }, n) => /* @__
|
|
|
475
475
|
}
|
|
476
476
|
) }));
|
|
477
477
|
we.displayName = i.Content.displayName;
|
|
478
|
-
const xe =
|
|
478
|
+
const xe = s.forwardRef(({ className: e, inset: a, ...t }, n) => /* @__PURE__ */ o(
|
|
479
479
|
i.Item,
|
|
480
480
|
{
|
|
481
481
|
ref: n,
|
|
482
|
-
className:
|
|
482
|
+
className: r(
|
|
483
483
|
"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",
|
|
484
484
|
a && "pl-8",
|
|
485
485
|
e
|
|
@@ -488,11 +488,11 @@ const xe = r.forwardRef(({ className: e, inset: a, ...t }, n) => /* @__PURE__ */
|
|
|
488
488
|
}
|
|
489
489
|
));
|
|
490
490
|
xe.displayName = i.Item.displayName;
|
|
491
|
-
const ve =
|
|
491
|
+
const ve = s.forwardRef(({ className: e, children: a, checked: t, ...n }, c) => /* @__PURE__ */ f(
|
|
492
492
|
i.CheckboxItem,
|
|
493
493
|
{
|
|
494
494
|
ref: c,
|
|
495
|
-
className:
|
|
495
|
+
className: r(
|
|
496
496
|
"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",
|
|
497
497
|
e
|
|
498
498
|
),
|
|
@@ -505,11 +505,11 @@ const ve = r.forwardRef(({ className: e, children: a, checked: t, ...n }, c) =>
|
|
|
505
505
|
}
|
|
506
506
|
));
|
|
507
507
|
ve.displayName = i.CheckboxItem.displayName;
|
|
508
|
-
const Re =
|
|
508
|
+
const Re = s.forwardRef(({ className: e, children: a, ...t }, n) => /* @__PURE__ */ f(
|
|
509
509
|
i.RadioItem,
|
|
510
510
|
{
|
|
511
511
|
ref: n,
|
|
512
|
-
className:
|
|
512
|
+
className: r(
|
|
513
513
|
"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",
|
|
514
514
|
e
|
|
515
515
|
),
|
|
@@ -521,31 +521,31 @@ const Re = r.forwardRef(({ className: e, children: a, ...t }, n) => /* @__PURE__
|
|
|
521
521
|
}
|
|
522
522
|
));
|
|
523
523
|
Re.displayName = i.RadioItem.displayName;
|
|
524
|
-
const De =
|
|
524
|
+
const De = s.forwardRef(({ className: e, inset: a, ...t }, n) => /* @__PURE__ */ o(
|
|
525
525
|
i.Label,
|
|
526
526
|
{
|
|
527
527
|
ref: n,
|
|
528
|
-
className:
|
|
528
|
+
className: r("px-2 py-1.5 text-sm font-semibold", a && "pl-8", e),
|
|
529
529
|
...t
|
|
530
530
|
}
|
|
531
531
|
));
|
|
532
532
|
De.displayName = i.Label.displayName;
|
|
533
|
-
const Ce =
|
|
533
|
+
const Ce = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
534
534
|
i.Separator,
|
|
535
535
|
{
|
|
536
536
|
ref: t,
|
|
537
|
-
className:
|
|
537
|
+
className: r("-mx-1 my-1 h-px bg-muted", e),
|
|
538
538
|
...a
|
|
539
539
|
}
|
|
540
540
|
));
|
|
541
541
|
Ce.displayName = i.Separator.displayName;
|
|
542
|
-
const ke = ({ className: e, ...a }) => /* @__PURE__ */ o("span", { className:
|
|
542
|
+
const ke = ({ className: e, ...a }) => /* @__PURE__ */ o("span", { className: r("ml-auto text-xs tracking-widest opacity-60", e), ...a });
|
|
543
543
|
ke.displayName = "DropdownMenuShortcut";
|
|
544
|
-
const ba = m.Root, ha = m.Trigger, Te = m.Portal, ya = m.Close, T =
|
|
544
|
+
const ba = m.Root, ha = m.Trigger, Te = m.Portal, ya = m.Close, T = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
545
545
|
m.Overlay,
|
|
546
546
|
{
|
|
547
547
|
ref: t,
|
|
548
|
-
className:
|
|
548
|
+
className: r(
|
|
549
549
|
"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",
|
|
550
550
|
e
|
|
551
551
|
),
|
|
@@ -553,13 +553,13 @@ const ba = m.Root, ha = m.Trigger, Te = m.Portal, ya = m.Close, T = r.forwardRef
|
|
|
553
553
|
}
|
|
554
554
|
));
|
|
555
555
|
T.displayName = m.Overlay.displayName;
|
|
556
|
-
const Pe =
|
|
556
|
+
const Pe = s.forwardRef(({ className: e, children: a, ...t }, n) => /* @__PURE__ */ f(Te, { children: [
|
|
557
557
|
/* @__PURE__ */ o(T, {}),
|
|
558
558
|
/* @__PURE__ */ f(
|
|
559
559
|
m.Content,
|
|
560
560
|
{
|
|
561
561
|
ref: n,
|
|
562
|
-
className:
|
|
562
|
+
className: r(
|
|
563
563
|
"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",
|
|
564
564
|
e
|
|
565
565
|
),
|
|
@@ -578,7 +578,7 @@ Pe.displayName = m.Content.displayName;
|
|
|
578
578
|
const Ie = ({ className: e, ...a }) => /* @__PURE__ */ o(
|
|
579
579
|
"div",
|
|
580
580
|
{
|
|
581
|
-
className:
|
|
581
|
+
className: r("flex flex-col space-y-1.5 text-center sm:text-left", e),
|
|
582
582
|
...a
|
|
583
583
|
}
|
|
584
584
|
);
|
|
@@ -586,33 +586,33 @@ Ie.displayName = "DialogHeader";
|
|
|
586
586
|
const Se = ({ className: e, ...a }) => /* @__PURE__ */ o(
|
|
587
587
|
"div",
|
|
588
588
|
{
|
|
589
|
-
className:
|
|
589
|
+
className: r("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e),
|
|
590
590
|
...a
|
|
591
591
|
}
|
|
592
592
|
);
|
|
593
593
|
Se.displayName = "DialogFooter";
|
|
594
|
-
const ze =
|
|
594
|
+
const ze = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
595
595
|
m.Title,
|
|
596
596
|
{
|
|
597
597
|
ref: t,
|
|
598
|
-
className:
|
|
598
|
+
className: r("text-lg font-semibold leading-none tracking-tight", e),
|
|
599
599
|
...a
|
|
600
600
|
}
|
|
601
601
|
));
|
|
602
602
|
ze.displayName = m.Title.displayName;
|
|
603
|
-
const Ae =
|
|
603
|
+
const Ae = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
604
604
|
m.Description,
|
|
605
605
|
{
|
|
606
606
|
ref: t,
|
|
607
|
-
className:
|
|
607
|
+
className: r("text-sm text-muted-foreground", e),
|
|
608
608
|
...a
|
|
609
609
|
}
|
|
610
610
|
));
|
|
611
611
|
Ae.displayName = m.Description.displayName;
|
|
612
|
-
const Na = l.Root, wa = l.Trigger, _e = l.Portal, P =
|
|
612
|
+
const Na = l.Root, wa = l.Trigger, _e = l.Portal, P = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
613
613
|
l.Overlay,
|
|
614
614
|
{
|
|
615
|
-
className:
|
|
615
|
+
className: r(
|
|
616
616
|
"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",
|
|
617
617
|
e
|
|
618
618
|
),
|
|
@@ -621,13 +621,13 @@ const Na = l.Root, wa = l.Trigger, _e = l.Portal, P = r.forwardRef(({ className:
|
|
|
621
621
|
}
|
|
622
622
|
));
|
|
623
623
|
P.displayName = l.Overlay.displayName;
|
|
624
|
-
const Me =
|
|
624
|
+
const Me = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ f(_e, { children: [
|
|
625
625
|
/* @__PURE__ */ o(P, {}),
|
|
626
626
|
/* @__PURE__ */ o(
|
|
627
627
|
l.Content,
|
|
628
628
|
{
|
|
629
629
|
ref: t,
|
|
630
|
-
className:
|
|
630
|
+
className: r(
|
|
631
631
|
"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",
|
|
632
632
|
e
|
|
633
633
|
),
|
|
@@ -636,41 +636,41 @@ const Me = r.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ f(_e, { c
|
|
|
636
636
|
)
|
|
637
637
|
] }));
|
|
638
638
|
Me.displayName = l.Content.displayName;
|
|
639
|
-
const je = ({ className: e, ...a }) => /* @__PURE__ */ o("div", { className:
|
|
639
|
+
const je = ({ className: e, ...a }) => /* @__PURE__ */ o("div", { className: r("flex flex-col space-y-2 text-center sm:text-left", e), ...a });
|
|
640
640
|
je.displayName = "AlertDialogHeader";
|
|
641
641
|
const Le = ({ className: e, ...a }) => /* @__PURE__ */ o(
|
|
642
642
|
"div",
|
|
643
643
|
{
|
|
644
|
-
className:
|
|
644
|
+
className: r("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e),
|
|
645
645
|
...a
|
|
646
646
|
}
|
|
647
647
|
);
|
|
648
648
|
Le.displayName = "AlertDialogFooter";
|
|
649
|
-
const Be =
|
|
649
|
+
const Be = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
650
650
|
l.Title,
|
|
651
651
|
{
|
|
652
652
|
ref: t,
|
|
653
|
-
className:
|
|
653
|
+
className: r("text-lg font-semibold", e),
|
|
654
654
|
...a
|
|
655
655
|
}
|
|
656
656
|
));
|
|
657
657
|
Be.displayName = l.Title.displayName;
|
|
658
|
-
const He =
|
|
658
|
+
const He = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
659
659
|
l.Description,
|
|
660
660
|
{
|
|
661
661
|
ref: t,
|
|
662
|
-
className:
|
|
662
|
+
className: r("text-sm text-muted-foreground", e),
|
|
663
663
|
...a
|
|
664
664
|
}
|
|
665
665
|
));
|
|
666
666
|
He.displayName = l.Description.displayName;
|
|
667
|
-
const Fe =
|
|
667
|
+
const Fe = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(l.Action, { ref: t, className: r(u(), e), ...a }));
|
|
668
668
|
Fe.displayName = l.Action.displayName;
|
|
669
|
-
const Ve =
|
|
669
|
+
const Ve = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
670
670
|
l.Cancel,
|
|
671
671
|
{
|
|
672
672
|
ref: t,
|
|
673
|
-
className:
|
|
673
|
+
className: r(u({ variant: "outline" }), "mt-0", e),
|
|
674
674
|
...a
|
|
675
675
|
}
|
|
676
676
|
));
|
|
@@ -680,24 +680,24 @@ const Ge = ({ className: e, ...a }) => /* @__PURE__ */ o(
|
|
|
680
680
|
{
|
|
681
681
|
role: "navigation",
|
|
682
682
|
"aria-label": "pagination",
|
|
683
|
-
className:
|
|
683
|
+
className: r("mx-auto flex w-full justify-center", e),
|
|
684
684
|
...a
|
|
685
685
|
}
|
|
686
686
|
);
|
|
687
687
|
Ge.displayName = "Pagination";
|
|
688
|
-
const Oe =
|
|
689
|
-
({ className: e, ...a }, t) => /* @__PURE__ */ o("ul", { ref: t, className:
|
|
688
|
+
const Oe = s.forwardRef(
|
|
689
|
+
({ className: e, ...a }, t) => /* @__PURE__ */ o("ul", { ref: t, className: r("flex flex-row items-center gap-1", e), ...a })
|
|
690
690
|
);
|
|
691
691
|
Oe.displayName = "PaginationContent";
|
|
692
|
-
const Ue =
|
|
693
|
-
({ className: e, ...a }, t) => /* @__PURE__ */ o("li", { ref: t, className:
|
|
692
|
+
const Ue = s.forwardRef(
|
|
693
|
+
({ className: e, ...a }, t) => /* @__PURE__ */ o("li", { ref: t, className: r("", e), ...a })
|
|
694
694
|
);
|
|
695
695
|
Ue.displayName = "PaginationItem";
|
|
696
696
|
const v = ({ className: e, isActive: a, size: t = "icon", ...n }) => /* @__PURE__ */ o(
|
|
697
697
|
"a",
|
|
698
698
|
{
|
|
699
699
|
"aria-current": a ? "page" : void 0,
|
|
700
|
-
className:
|
|
700
|
+
className: r(
|
|
701
701
|
u({
|
|
702
702
|
variant: a ? "outline" : "ghost",
|
|
703
703
|
size: t
|
|
@@ -716,7 +716,7 @@ const Ee = ({
|
|
|
716
716
|
{
|
|
717
717
|
"aria-label": "Go to previous page",
|
|
718
718
|
size: "default",
|
|
719
|
-
className:
|
|
719
|
+
className: r("gap-1 pl-2.5", e),
|
|
720
720
|
...a,
|
|
721
721
|
children: /* @__PURE__ */ o(F, { className: "h-4 w-4" })
|
|
722
722
|
}
|
|
@@ -727,7 +727,7 @@ const qe = ({ className: e, ...a }) => /* @__PURE__ */ o(
|
|
|
727
727
|
{
|
|
728
728
|
"aria-label": "Go to next page",
|
|
729
729
|
size: "default",
|
|
730
|
-
className:
|
|
730
|
+
className: r("gap-1 pr-2.5", e),
|
|
731
731
|
...a,
|
|
732
732
|
children: /* @__PURE__ */ o(V, { className: "h-4 w-4" })
|
|
733
733
|
}
|
|
@@ -737,7 +737,7 @@ const Je = ({ className: e, ...a }) => /* @__PURE__ */ f(
|
|
|
737
737
|
"span",
|
|
738
738
|
{
|
|
739
739
|
"aria-hidden": !0,
|
|
740
|
-
className:
|
|
740
|
+
className: r("flex h-9 w-9 items-center justify-center", e),
|
|
741
741
|
...a,
|
|
742
742
|
children: [
|
|
743
743
|
/* @__PURE__ */ o(G, { className: "h-4 w-4" }),
|
|
@@ -765,7 +765,7 @@ export {
|
|
|
765
765
|
O as Avatar,
|
|
766
766
|
E as AvatarFallback,
|
|
767
767
|
U as AvatarImage,
|
|
768
|
-
|
|
768
|
+
ra as Badge,
|
|
769
769
|
q as Button,
|
|
770
770
|
X as Calendar,
|
|
771
771
|
Y as Checkbox,
|
|
@@ -806,11 +806,11 @@ export {
|
|
|
806
806
|
da as Popover,
|
|
807
807
|
de as PopoverContent,
|
|
808
808
|
la as PopoverTrigger,
|
|
809
|
-
|
|
809
|
+
sa as Select,
|
|
810
810
|
oe as SelectContent,
|
|
811
811
|
na as SelectGroup,
|
|
812
|
-
|
|
813
|
-
|
|
812
|
+
se as SelectItem,
|
|
813
|
+
re as SelectLabel,
|
|
814
814
|
k as SelectScrollDownButton,
|
|
815
815
|
C as SelectScrollUpButton,
|
|
816
816
|
ne as SelectSeparator,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@imj_media/imj-ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.26",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "IMJ - Antonio Diego",
|
|
7
7
|
"email": "antonio.diego@imjmedia.com.mx"
|
|
@@ -99,5 +99,5 @@
|
|
|
99
99
|
"access": "public",
|
|
100
100
|
"registry": "https://registry.npmjs.org/@imjmedia"
|
|
101
101
|
},
|
|
102
|
-
"gitHead": "
|
|
102
|
+
"gitHead": "a2bc578378383e0a1153b297e9a84ac742b9a1d2"
|
|
103
103
|
}
|