@imj_media/imj-ui 1.0.14 → 1.0.15
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 +278 -210
- package/dist/index.d.ts +15 -2
- package/dist/{src/stories → stories}/Badge.stories.d.ts +1 -1
- package/dist/{src/stories → stories}/Calendar.stories.d.ts +1 -1
- package/dist/{src/stories → stories}/Input.stories.d.ts +1 -1
- package/dist/{src/stories → stories}/Textarea.stories.d.ts +1 -1
- package/package.json +4 -3
- package/dist/src/index.d.ts +0 -14
- /package/dist/{src/components → components}/atoms/Accordion/accordion.d.ts +0 -0
- /package/dist/{src/components → components}/atoms/Badge/badge.d.ts +0 -0
- /package/dist/{src/components → components}/atoms/Button/button.d.ts +0 -0
- /package/dist/{src/components → components}/atoms/Calendar/calendar.d.ts +0 -0
- /package/dist/{src/components → components}/atoms/Checkbox/checkbox.d.ts +0 -0
- /package/dist/{src/components → components}/atoms/Dialog/dialog.d.ts +0 -0
- /package/dist/{src/components → components}/atoms/Dropdown/dropdown-menu.d.ts +0 -0
- /package/dist/{src/components → components}/atoms/Input/input.d.ts +0 -0
- /package/dist/{src/components → components}/atoms/Label/Label.d.ts +0 -0
- /package/dist/{src/components → components}/atoms/Pagination/Pagination.d.ts +0 -0
- /package/dist/{src/components → components}/atoms/Popover/popover.d.ts +0 -0
- /package/dist/{src/components → components}/atoms/Select/select.d.ts +0 -0
- /package/dist/{src/components → components}/atoms/Switch/switch.d.ts +0 -0
- /package/dist/{src/components → components}/atoms/Table/table.d.ts +0 -0
- /package/dist/{src/components → components}/atoms/Textarea/textarea.d.ts +0 -0
- /package/dist/{src/lib → lib}/utils.d.ts +0 -0
- /package/dist/{src/stories → stories}/Accordeon.stories.d.ts +0 -0
- /package/dist/{src/stories → stories}/Button.stories.d.ts +0 -0
- /package/dist/{src/stories → stories}/Checkbox.stories.d.ts +0 -0
- /package/dist/{src/stories → stories}/Dialog.stories.d.ts +0 -0
- /package/dist/{src/stories → stories}/Dropdown.stories.d.ts +0 -0
- /package/dist/{src/stories → stories}/Label.stories.d.ts +0 -0
- /package/dist/{src/stories → stories}/Pagination.stories.d.ts +0 -0
- /package/dist/{src/stories → stories}/Popover.stories.d.ts +0 -0
- /package/dist/{src/stories → stories}/Select.stories.d.ts +0 -0
- /package/dist/{src/stories → stories}/Switch.stories.d.ts +0 -0
- /package/dist/{src/stories → stories}/Table.stories.d.ts +0 -0
package/dist/imj-ui.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),ue=require("react"),me=require("@radix-ui/react-slot"),b=require("class-variance-authority"),pe=require("clsx"),fe=require("tailwind-merge"),ge=require("@radix-ui/react-accordion"),u=require("lucide-react"),s=require("@/lib/utils"),xe=require("react-day-picker"),be=require("date-fns/locale"),he=require("@radix-ui/react-checkbox"),we=require("@radix-ui/react-label"),ye=require("@radix-ui/react-select"),ve=require("@radix-ui/react-popover"),Ne=require("@radix-ui/react-switch"),je=require("@radix-ui/react-dropdown-menu"),De=require("@radix-ui/react-dialog"),h=require("@radix-ui/react-icons");function p(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const r=p(ue),f=p(ge),y=p(he),P=p(we),d=p(ye),g=p(ve),v=p(Ne),i=p(je),c=p(De);function m(...e){return fe.twMerge(pe.clsx(e))}const x=b.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"}}),S=r.forwardRef(({className:e,variant:t,size:o,asChild:n=!1,...l},le)=>{const ce=n?me.Slot:"button";return a.jsx(ce,{className:m(x({variant:t,size:o,className:e})),ref:le,...l})});S.displayName="Button";const Pe=f.Root,C=r.forwardRef(({className:e,...t},o)=>a.jsx(f.Item,{ref:o,className:s.cn("border-b",e),...t}));C.displayName="AccordionItem";const R=r.forwardRef(({className:e,children:t,...o},n)=>a.jsx(f.Header,{className:"flex",children:a.jsxs(f.Trigger,{ref:n,className:s.cn("flex flex-1 items-center justify-between py-4 font-medium transition-all [&[data-state=open]>svg]:rotate-180",e),...o,children:[t,a.jsx(u.ChevronDown,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));R.displayName=f.Trigger.displayName;const k=r.forwardRef(({className:e,children:t,...o},n)=>a.jsx(f.Content,{ref:n,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...o,children:a.jsx("div",{className:s.cn("pb-4 pt-0",e),children:t})}));k.displayName=f.Content.displayName;const Se=b.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 Ce({className:e,variant:t,...o}){return a.jsx("div",{className:m(Se({variant:t}),e),...o})}function I({className:e,classNames:t,showOutsideDays:o=!0,...n}){return a.jsx(xe.DayPicker,{locale:be.es,showOutsideDays:o,className:s.cn("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.cn(x({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.cn(x({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})=>a.jsx(u.ChevronLeft,{className:"h-4 w-4"}),IconRight:({...l})=>a.jsx(u.ChevronRight,{className:"h-4 w-4"})},...n})}I.displayName="Calendar";const _=r.forwardRef(({className:e,...t},o)=>a.jsx(y.Root,{ref:o,className:s.cn("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:a.jsx(y.Indicator,{className:s.cn("flex items-center justify-center text-current"),children:a.jsx(u.Check,{className:"h-4 w-4"})})}));_.displayName=y.Root.displayName;const Re=b.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"}}}),M=r.forwardRef(({className:e,variant:t,type:o,...n},l)=>a.jsx("input",{type:o,className:m(Re({variant:t,className:e})),ref:l,...n}));M.displayName="Input";const ke=b.cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),T=r.forwardRef(({className:e,...t},o)=>a.jsx(P.Root,{ref:o,className:s.cn(ke(),e),...t}));T.displayName=P.Root.displayName;const Ie=d.Root,_e=d.Group,Me=d.Value,z=r.forwardRef(({className:e,children:t,...o},n)=>a.jsxs(d.Trigger,{ref:n,className:s.cn("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...o,children:[t,a.jsx(d.Icon,{asChild:!0,children:a.jsx(u.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));z.displayName=d.Trigger.displayName;const N=r.forwardRef(({className:e,...t},o)=>a.jsx(d.ScrollUpButton,{ref:o,className:s.cn("flex cursor-default items-center justify-center py-1",e),...t,children:a.jsx(u.ChevronUp,{className:"h-4 w-4"})}));N.displayName=d.ScrollUpButton.displayName;const j=r.forwardRef(({className:e,...t},o)=>a.jsx(d.ScrollDownButton,{ref:o,className:s.cn("flex cursor-default items-center justify-center py-1",e),...t,children:a.jsx(u.ChevronDown,{className:"h-4 w-4"})}));j.displayName=d.ScrollDownButton.displayName;const q=r.forwardRef(({className:e,children:t,position:o="popper",...n},l)=>a.jsx(d.Portal,{children:a.jsxs(d.Content,{ref:l,className:s.cn("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",o==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:o,...n,children:[a.jsx(N,{}),a.jsx(d.Viewport,{className:s.cn("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),a.jsx(j,{})]})}));q.displayName=d.Content.displayName;const L=r.forwardRef(({className:e,...t},o)=>a.jsx(d.Label,{ref:o,className:s.cn("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));L.displayName=d.Label.displayName;const B=r.forwardRef(({className:e,children:t,...o},n)=>a.jsxs(d.Item,{ref:n,className:s.cn("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...o,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(d.ItemIndicator,{children:a.jsx(u.Check,{className:"h-4 w-4"})})}),a.jsx(d.ItemText,{children:t})]}));B.displayName=d.Item.displayName;const A=r.forwardRef(({className:e,...t},o)=>a.jsx(d.Separator,{ref:o,className:s.cn("-mx-1 my-1 h-px bg-muted",e),...t}));A.displayName=d.Separator.displayName;const G=r.forwardRef(({className:e,...t},o)=>a.jsx("textarea",{className:m("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...t}));G.displayName="Textarea";const Te=g.Root,ze=g.Trigger,V=r.forwardRef(({className:e,align:t="center",sideOffset:o=4,...n},l)=>a.jsx(g.Portal,{children:a.jsx(g.Content,{ref:l,align:t,sideOffset:o,className:s.cn("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})}));V.displayName=g.Content.displayName;const O=r.forwardRef(({className:e,...t},o)=>a.jsx(v.Root,{className:s.cn("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:o,children:a.jsx(v.Thumb,{className:s.cn("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")})}));O.displayName=v.Root.displayName;const qe=i.Root,Le=i.Trigger,Be=i.Group,Ae=i.Portal,Ge=i.Sub,Ve=i.RadioGroup,H=r.forwardRef(({className:e,inset:t,children:o,...n},l)=>a.jsxs(i.SubTrigger,{ref:l,className:s.cn("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:[o,a.jsx(u.ChevronRight,{className:"ml-auto"})]}));H.displayName=i.SubTrigger.displayName;const U=r.forwardRef(({className:e,...t},o)=>a.jsx(i.SubContent,{ref:o,className:s.cn("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}));U.displayName=i.SubContent.displayName;const E=r.forwardRef(({className:e,sideOffset:t=4,...o},n)=>a.jsx(i.Portal,{children:a.jsx(i.Content,{ref:n,sideOffset:t,className:s.cn("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),...o})}));E.displayName=i.Content.displayName;const F=r.forwardRef(({className:e,inset:t,...o},n)=>a.jsx(i.Item,{ref:n,className:s.cn("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),...o}));F.displayName=i.Item.displayName;const J=r.forwardRef(({className:e,children:t,checked:o,...n},l)=>a.jsxs(i.CheckboxItem,{ref:l,className:s.cn("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:o,...n,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(i.ItemIndicator,{children:a.jsx(u.Check,{className:"h-4 w-4"})})}),t]}));J.displayName=i.CheckboxItem.displayName;const K=r.forwardRef(({className:e,children:t,...o},n)=>a.jsxs(i.RadioItem,{ref:n,className:s.cn("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...o,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(i.ItemIndicator,{children:a.jsx(u.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));K.displayName=i.RadioItem.displayName;const Q=r.forwardRef(({className:e,inset:t,...o},n)=>a.jsx(i.Label,{ref:n,className:s.cn("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));Q.displayName=i.Label.displayName;const W=r.forwardRef(({className:e,...t},o)=>a.jsx(i.Separator,{ref:o,className:s.cn("-mx-1 my-1 h-px bg-muted",e),...t}));W.displayName=i.Separator.displayName;const X=({className:e,...t})=>a.jsx("span",{className:s.cn("ml-auto text-xs tracking-widest opacity-60",e),...t});X.displayName="DropdownMenuShortcut";const Oe=c.Root,He=c.Trigger,Y=c.Portal,Ue=c.Close,D=r.forwardRef(({className:e,...t},o)=>a.jsx(c.Overlay,{ref:o,className:s.cn("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 Z=r.forwardRef(({className:e,children:t,...o},n)=>a.jsxs(Y,{children:[a.jsx(D,{}),a.jsxs(c.Content,{ref:n,className:s.cn("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...o,children:[t,a.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:[a.jsx(h.Cross2Icon,{className:"h-4 w-4"}),a.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Z.displayName=c.Content.displayName;const $=({className:e,...t})=>a.jsx("div",{className:s.cn("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});$.displayName="DialogHeader";const ee=({className:e,...t})=>a.jsx("div",{className:s.cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});ee.displayName="DialogFooter";const te=r.forwardRef(({className:e,...t},o)=>a.jsx(c.Title,{ref:o,className:s.cn("text-lg font-semibold leading-none tracking-tight",e),...t}));te.displayName=c.Title.displayName;const ae=r.forwardRef(({className:e,...t},o)=>a.jsx(c.Description,{ref:o,className:s.cn("text-sm text-muted-foreground",e),...t}));ae.displayName=c.Description.displayName;const oe=({className:e,...t})=>a.jsx("nav",{role:"navigation","aria-label":"pagination",className:m("mx-auto flex w-full justify-center",e),...t});oe.displayName="Pagination";const ne=r.forwardRef(({className:e,...t},o)=>a.jsx("ul",{ref:o,className:m("flex flex-row items-center gap-1",e),...t}));ne.displayName="PaginationContent";const se=r.forwardRef(({className:e,...t},o)=>a.jsx("li",{ref:o,className:m("",e),...t}));se.displayName="PaginationItem";const w=({className:e,isActive:t,size:o="icon",...n})=>a.jsx("a",{"aria-current":t?"page":void 0,className:m(x({variant:t?"outline":"ghost",size:o}),e),...n});w.displayName="PaginationLink";const re=({className:e,...t})=>a.jsx(w,{"aria-label":"Go to previous page",size:"default",className:m("gap-1 pl-2.5",e),...t,children:a.jsx(h.ChevronLeftIcon,{className:"h-4 w-4"})});re.displayName="PaginationPrevious";const ie=({className:e,...t})=>a.jsx(w,{"aria-label":"Go to next page",size:"default",className:m("gap-1 pr-2.5",e),...t,children:a.jsx(h.ChevronRightIcon,{className:"h-4 w-4"})});ie.displayName="PaginationNext";const de=({className:e,...t})=>a.jsxs("span",{"aria-hidden":!0,className:m("flex h-9 w-9 items-center justify-center",e),...t,children:[a.jsx(h.DotsHorizontalIcon,{className:"h-4 w-4"}),a.jsx("span",{className:"sr-only",children:"More pages"})]});de.displayName="PaginationEllipsis";exports.Accordion=Pe;exports.AccordionContent=k;exports.AccordionItem=C;exports.AccordionTrigger=R;exports.Badge=Ce;exports.Button=S;exports.Calendar=I;exports.Checkbox=_;exports.Dialog=Oe;exports.DialogClose=Ue;exports.DialogContent=Z;exports.DialogDescription=ae;exports.DialogFooter=ee;exports.DialogHeader=$;exports.DialogOverlay=D;exports.DialogPortal=Y;exports.DialogTitle=te;exports.DialogTrigger=He;exports.DropdownMenu=qe;exports.DropdownMenuCheckboxItem=J;exports.DropdownMenuContent=E;exports.DropdownMenuGroup=Be;exports.DropdownMenuItem=F;exports.DropdownMenuLabel=Q;exports.DropdownMenuPortal=Ae;exports.DropdownMenuRadioGroup=Ve;exports.DropdownMenuRadioItem=K;exports.DropdownMenuSeparator=W;exports.DropdownMenuShortcut=X;exports.DropdownMenuSub=Ge;exports.DropdownMenuSubContent=U;exports.DropdownMenuSubTrigger=H;exports.DropdownMenuTrigger=Le;exports.Input=M;exports.Label=T;exports.Pagination=oe;exports.PaginationContent=ne;exports.PaginationEllipsis=de;exports.PaginationItem=se;exports.PaginationLink=w;exports.PaginationNext=ie;exports.PaginationPrevious=re;exports.Popover=Te;exports.PopoverContent=V;exports.PopoverTrigger=ze;exports.Select=Ie;exports.SelectContent=q;exports.SelectGroup=_e;exports.SelectItem=B;exports.SelectLabel=L;exports.SelectScrollDownButton=j;exports.SelectScrollUpButton=N;exports.SelectSeparator=A;exports.SelectTrigger=z;exports.SelectValue=Me;exports.Switch=O;exports.Textarea=G;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),he=require("react"),we=require("@radix-ui/react-slot"),b=require("class-variance-authority"),ye=require("clsx"),ve=require("tailwind-merge"),Ne=require("@radix-ui/react-accordion"),m=require("lucide-react"),je=require("react-day-picker"),De=require("date-fns/locale"),Re=require("@radix-ui/react-checkbox"),Ce=require("@radix-ui/react-label"),Pe=require("@radix-ui/react-select"),Se=require("@radix-ui/react-popover"),Te=require("@radix-ui/react-switch"),ke=require("@radix-ui/react-dropdown-menu"),_e=require("@radix-ui/react-dialog"),x=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(he),p=u(Ne),w=u(Re),D=u(Ce),d=u(Pe),f=u(Se),y=u(Te),i=u(ke),c=u(_e);function s(...e){return ve.twMerge(ye.clsx(e))}const g=b.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"}}),R=r.forwardRef(({className:e,variant:t,size:a,asChild:n=!1,...l},be)=>{const xe=n?we.Slot:"button";return o.jsx(xe,{className:s(g({variant:t,size:a,className:e})),ref:be,...l})});R.displayName="Button";const Ie=p.Root,C=r.forwardRef(({className:e,...t},a)=>o.jsx(p.Item,{ref:a,className:s("border-b",e),...t}));C.displayName="AccordionItem";const P=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"})]})}));P.displayName=p.Trigger.displayName;const S=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})}));S.displayName=p.Content.displayName;const Me=b.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 ze({className:e,variant:t,...a}){return o.jsx("div",{className:s(Me({variant:t}),e),...a})}function T({className:e,classNames:t,showOutsideDays:a=!0,...n}){return o.jsx(je.DayPicker,{locale:De.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:({...l})=>o.jsx(m.ChevronLeft,{className:"h-4 w-4"}),IconRight:({...l})=>o.jsx(m.ChevronRight,{className:"h-4 w-4"})},...n})}T.displayName="Calendar";const k=r.forwardRef(({className:e,...t},a)=>o.jsx(w.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(w.Indicator,{className:s("flex items-center justify-center text-current"),children:o.jsx(m.Check,{className:"h-4 w-4"})})}));k.displayName=w.Root.displayName;const qe=b.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"}}}),_=r.forwardRef(({className:e,variant:t,type:a,...n},l)=>o.jsx("input",{type:a,className:s(qe({variant:t,className:e})),ref:l,...n}));_.displayName="Input";const Le=b.cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),I=r.forwardRef(({className:e,...t},a)=>o.jsx(D.Root,{ref:a,className:s(Le(),e),...t}));I.displayName=D.Root.displayName;const Be=d.Root,Ae=d.Group,Ge=d.Value,M=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"})})]}));M.displayName=d.Trigger.displayName;const v=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"})}));v.displayName=d.ScrollUpButton.displayName;const N=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"})}));N.displayName=d.ScrollDownButton.displayName;const z=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(v,{}),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(N,{})]})}));z.displayName=d.Content.displayName;const q=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}));q.displayName=d.Label.displayName;const L=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})]}));L.displayName=d.Item.displayName;const B=r.forwardRef(({className:e,...t},a)=>o.jsx(d.Separator,{ref:a,className:s("-mx-1 my-1 h-px bg-muted",e),...t}));B.displayName=d.Separator.displayName;const A=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}));A.displayName="Textarea";const He=f.Root,Ve=f.Trigger,G=r.forwardRef(({className:e,align:t="center",sideOffset:a=4,...n},l)=>o.jsx(f.Portal,{children:o.jsx(f.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})}));G.displayName=f.Content.displayName;const H=r.forwardRef(({className:e,...t},a)=>o.jsx(y.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(y.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")})}));H.displayName=y.Root.displayName;const V=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})}));V.displayName="Table";const O=r.forwardRef(({className:e,...t},a)=>o.jsx("thead",{ref:a,className:s("[&_tr]:border-b",e),...t}));O.displayName="TableHeader";const F=r.forwardRef(({className:e,...t},a)=>o.jsx("tbody",{ref:a,className:s("[&_tr:last-child]:border-0",e),...t}));F.displayName="TableBody";const U=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}));U.displayName="TableFooter";const E=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}));E.displayName="TableRow";const J=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}));J.displayName="TableHead";const K=r.forwardRef(({className:e,...t},a)=>o.jsx("td",{ref:a,className:s("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));K.displayName="TableCell";const Q=r.forwardRef(({className:e,...t},a)=>o.jsx("caption",{ref:a,className:s("mt-4 text-sm text-muted-foreground",e),...t}));Q.displayName="TableCaption";const Oe=i.Root,Fe=i.Trigger,Ue=i.Group,Ee=i.Portal,Je=i.Sub,Ke=i.RadioGroup,W=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"})]}));W.displayName=i.SubTrigger.displayName;const X=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}));X.displayName=i.SubContent.displayName;const Y=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})}));Y.displayName=i.Content.displayName;const Z=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}));Z.displayName=i.Item.displayName;const $=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]}));$.displayName=i.CheckboxItem.displayName;const ee=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]}));ee.displayName=i.RadioItem.displayName;const te=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}));te.displayName=i.Label.displayName;const ae=r.forwardRef(({className:e,...t},a)=>o.jsx(i.Separator,{ref:a,className:s("-mx-1 my-1 h-px bg-muted",e),...t}));ae.displayName=i.Separator.displayName;const oe=({className:e,...t})=>o.jsx("span",{className:s("ml-auto text-xs tracking-widest opacity-60",e),...t});oe.displayName="DropdownMenuShortcut";const Qe=c.Root,We=c.Trigger,se=c.Portal,Xe=c.Close,j=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}));j.displayName=c.Overlay.displayName;const re=r.forwardRef(({className:e,children:t,...a},n)=>o.jsxs(se,{children:[o.jsx(j,{}),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(x.Cross2Icon,{className:"h-4 w-4"}),o.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));re.displayName=c.Content.displayName;const ne=({className:e,...t})=>o.jsx("div",{className:s("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});ne.displayName="DialogHeader";const ie=({className:e,...t})=>o.jsx("div",{className:s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});ie.displayName="DialogFooter";const de=r.forwardRef(({className:e,...t},a)=>o.jsx(c.Title,{ref:a,className:s("text-lg font-semibold leading-none tracking-tight",e),...t}));de.displayName=c.Title.displayName;const le=r.forwardRef(({className:e,...t},a)=>o.jsx(c.Description,{ref:a,className:s("text-sm text-muted-foreground",e),...t}));le.displayName=c.Description.displayName;const ce=({className:e,...t})=>o.jsx("nav",{role:"navigation","aria-label":"pagination",className:s("mx-auto flex w-full justify-center",e),...t});ce.displayName="Pagination";const me=r.forwardRef(({className:e,...t},a)=>o.jsx("ul",{ref:a,className:s("flex flex-row items-center gap-1",e),...t}));me.displayName="PaginationContent";const ue=r.forwardRef(({className:e,...t},a)=>o.jsx("li",{ref:a,className:s("",e),...t}));ue.displayName="PaginationItem";const h=({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});h.displayName="PaginationLink";const pe=({className:e,...t})=>o.jsx(h,{"aria-label":"Go to previous page",size:"default",className:s("gap-1 pl-2.5",e),...t,children:o.jsx(x.ChevronLeftIcon,{className:"h-4 w-4"})});pe.displayName="PaginationPrevious";const fe=({className:e,...t})=>o.jsx(h,{"aria-label":"Go to next page",size:"default",className:s("gap-1 pr-2.5",e),...t,children:o.jsx(x.ChevronRightIcon,{className:"h-4 w-4"})});fe.displayName="PaginationNext";const ge=({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(x.DotsHorizontalIcon,{className:"h-4 w-4"}),o.jsx("span",{className:"sr-only",children:"More pages"})]});ge.displayName="PaginationEllipsis";exports.Accordion=Ie;exports.AccordionContent=S;exports.AccordionItem=C;exports.AccordionTrigger=P;exports.Badge=ze;exports.Button=R;exports.Calendar=T;exports.Checkbox=k;exports.Dialog=Qe;exports.DialogClose=Xe;exports.DialogContent=re;exports.DialogDescription=le;exports.DialogFooter=ie;exports.DialogHeader=ne;exports.DialogOverlay=j;exports.DialogPortal=se;exports.DialogTitle=de;exports.DialogTrigger=We;exports.DropdownMenu=Oe;exports.DropdownMenuCheckboxItem=$;exports.DropdownMenuContent=Y;exports.DropdownMenuGroup=Ue;exports.DropdownMenuItem=Z;exports.DropdownMenuLabel=te;exports.DropdownMenuPortal=Ee;exports.DropdownMenuRadioGroup=Ke;exports.DropdownMenuRadioItem=ee;exports.DropdownMenuSeparator=ae;exports.DropdownMenuShortcut=oe;exports.DropdownMenuSub=Je;exports.DropdownMenuSubContent=X;exports.DropdownMenuSubTrigger=W;exports.DropdownMenuTrigger=Fe;exports.Input=_;exports.Label=I;exports.Pagination=ce;exports.PaginationContent=me;exports.PaginationEllipsis=ge;exports.PaginationItem=ue;exports.PaginationLink=h;exports.PaginationNext=fe;exports.PaginationPrevious=pe;exports.Popover=He;exports.PopoverContent=G;exports.PopoverTrigger=Ve;exports.Select=Be;exports.SelectContent=z;exports.SelectGroup=Ae;exports.SelectItem=L;exports.SelectLabel=q;exports.SelectScrollDownButton=N;exports.SelectScrollUpButton=v;exports.SelectSeparator=B;exports.SelectTrigger=M;exports.SelectValue=Ge;exports.Switch=H;exports.Table=V;exports.TableBody=F;exports.TableCaption=Q;exports.TableCell=K;exports.TableFooter=U;exports.TableHead=J;exports.TableHeader=O;exports.TableRow=E;exports.Textarea=A;
|
package/dist/imj-ui.es.js
CHANGED
|
@@ -1,26 +1,25 @@
|
|
|
1
1
|
import { jsx as o, jsxs as m } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
3
|
-
import { Slot as
|
|
4
|
-
import { cva as
|
|
5
|
-
import { clsx as
|
|
6
|
-
import { twMerge as
|
|
7
|
-
import * as
|
|
8
|
-
import { ChevronDown as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
import * as
|
|
13
|
-
import * as R from "@radix-ui/react-label";
|
|
2
|
+
import * as s from "react";
|
|
3
|
+
import { Slot as T } from "@radix-ui/react-slot";
|
|
4
|
+
import { cva as g } from "class-variance-authority";
|
|
5
|
+
import { clsx as P } from "clsx";
|
|
6
|
+
import { twMerge as S } from "tailwind-merge";
|
|
7
|
+
import * as p from "@radix-ui/react-accordion";
|
|
8
|
+
import { ChevronDown as y, ChevronLeft as I, ChevronRight as N, Check as w, ChevronUp as z, Circle as _ } from "lucide-react";
|
|
9
|
+
import { DayPicker as M } from "react-day-picker";
|
|
10
|
+
import { es as j } from "date-fns/locale";
|
|
11
|
+
import * as b from "@radix-ui/react-checkbox";
|
|
12
|
+
import * as v from "@radix-ui/react-label";
|
|
14
13
|
import * as d from "@radix-ui/react-select";
|
|
15
|
-
import * as
|
|
16
|
-
import * as
|
|
14
|
+
import * as f from "@radix-ui/react-popover";
|
|
15
|
+
import * as h from "@radix-ui/react-switch";
|
|
17
16
|
import * as i from "@radix-ui/react-dropdown-menu";
|
|
18
17
|
import * as c from "@radix-ui/react-dialog";
|
|
19
|
-
import { Cross2Icon as
|
|
20
|
-
function
|
|
21
|
-
return
|
|
18
|
+
import { Cross2Icon as L, ChevronLeftIcon as B, ChevronRightIcon as V, DotsHorizontalIcon as G } from "@radix-ui/react-icons";
|
|
19
|
+
function r(...e) {
|
|
20
|
+
return S(P(e));
|
|
22
21
|
}
|
|
23
|
-
const
|
|
22
|
+
const u = g(
|
|
24
23
|
"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",
|
|
25
24
|
{
|
|
26
25
|
variants: {
|
|
@@ -47,23 +46,23 @@ const g = b(
|
|
|
47
46
|
size: "default"
|
|
48
47
|
}
|
|
49
48
|
}
|
|
50
|
-
), H =
|
|
51
|
-
({ className: e, variant: t, size: a, asChild:
|
|
52
|
-
|
|
49
|
+
), H = s.forwardRef(
|
|
50
|
+
({ className: e, variant: t, size: a, asChild: n = !1, ...l }, D) => /* @__PURE__ */ o(
|
|
51
|
+
n ? T : "button",
|
|
53
52
|
{
|
|
54
|
-
className:
|
|
55
|
-
ref:
|
|
53
|
+
className: r(u({ variant: t, size: a, className: e })),
|
|
54
|
+
ref: D,
|
|
56
55
|
...l
|
|
57
56
|
}
|
|
58
57
|
)
|
|
59
58
|
);
|
|
60
59
|
H.displayName = "Button";
|
|
61
|
-
const
|
|
62
|
-
|
|
63
|
-
const
|
|
64
|
-
|
|
60
|
+
const Oe = p.Root, A = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(p.Item, { ref: a, className: r("border-b", e), ...t }));
|
|
61
|
+
A.displayName = "AccordionItem";
|
|
62
|
+
const F = s.forwardRef(({ className: e, children: t, ...a }, n) => /* @__PURE__ */ o(p.Header, { className: "flex", children: /* @__PURE__ */ m(
|
|
63
|
+
p.Trigger,
|
|
65
64
|
{
|
|
66
|
-
ref:
|
|
65
|
+
ref: n,
|
|
67
66
|
className: r(
|
|
68
67
|
"flex flex-1 items-center justify-between py-4 font-medium transition-all [&[data-state=open]>svg]:rotate-180",
|
|
69
68
|
e
|
|
@@ -71,22 +70,22 @@ const O = n.forwardRef(({ className: e, children: t, ...a }, s) => /* @__PURE__
|
|
|
71
70
|
...a,
|
|
72
71
|
children: [
|
|
73
72
|
t,
|
|
74
|
-
/* @__PURE__ */ o(
|
|
73
|
+
/* @__PURE__ */ o(y, { className: "h-4 w-4 shrink-0 transition-transform duration-200" })
|
|
75
74
|
]
|
|
76
75
|
}
|
|
77
76
|
) }));
|
|
78
|
-
|
|
79
|
-
const
|
|
80
|
-
|
|
77
|
+
F.displayName = p.Trigger.displayName;
|
|
78
|
+
const U = s.forwardRef(({ className: e, children: t, ...a }, n) => /* @__PURE__ */ o(
|
|
79
|
+
p.Content,
|
|
81
80
|
{
|
|
82
|
-
ref:
|
|
81
|
+
ref: n,
|
|
83
82
|
className: "overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
|
|
84
83
|
...a,
|
|
85
84
|
children: /* @__PURE__ */ o("div", { className: r("pb-4 pt-0", e), children: t })
|
|
86
85
|
}
|
|
87
86
|
));
|
|
88
|
-
|
|
89
|
-
const
|
|
87
|
+
U.displayName = p.Content.displayName;
|
|
88
|
+
const O = g(
|
|
90
89
|
"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",
|
|
91
90
|
{
|
|
92
91
|
variants: {
|
|
@@ -102,14 +101,14 @@ const F = b(
|
|
|
102
101
|
}
|
|
103
102
|
}
|
|
104
103
|
);
|
|
105
|
-
function
|
|
106
|
-
return /* @__PURE__ */ o("div", { className:
|
|
104
|
+
function Ee({ className: e, variant: t, ...a }) {
|
|
105
|
+
return /* @__PURE__ */ o("div", { className: r(O({ variant: t }), e), ...a });
|
|
107
106
|
}
|
|
108
|
-
function
|
|
107
|
+
function E({ className: e, classNames: t, showOutsideDays: a = !0, ...n }) {
|
|
109
108
|
return /* @__PURE__ */ o(
|
|
110
|
-
|
|
109
|
+
M,
|
|
111
110
|
{
|
|
112
|
-
locale:
|
|
111
|
+
locale: j,
|
|
113
112
|
showOutsideDays: a,
|
|
114
113
|
className: r("p-3 bg-white border-none", e),
|
|
115
114
|
classNames: {
|
|
@@ -119,7 +118,7 @@ function $({ className: e, classNames: t, showOutsideDays: a = !0, ...s }) {
|
|
|
119
118
|
caption_label: "text-sm font-medium",
|
|
120
119
|
nav: "space-x-1 flex items-center",
|
|
121
120
|
nav_button: r(
|
|
122
|
-
|
|
121
|
+
u({ variant: "outline" }),
|
|
123
122
|
"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"
|
|
124
123
|
),
|
|
125
124
|
nav_button_previous: "absolute left-1",
|
|
@@ -130,7 +129,7 @@ function $({ className: e, classNames: t, showOutsideDays: a = !0, ...s }) {
|
|
|
130
129
|
row: "flex w-full mt-2",
|
|
131
130
|
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",
|
|
132
131
|
day: r(
|
|
133
|
-
|
|
132
|
+
u({ variant: "ghost" }),
|
|
134
133
|
"h-9 w-9 p-0 font-normal aria-selected:opacity-100"
|
|
135
134
|
),
|
|
136
135
|
day_range_end: "day-range-end",
|
|
@@ -143,16 +142,16 @@ function $({ className: e, classNames: t, showOutsideDays: a = !0, ...s }) {
|
|
|
143
142
|
...t
|
|
144
143
|
},
|
|
145
144
|
components: {
|
|
146
|
-
IconLeft: ({ ...l }) => /* @__PURE__ */ o(
|
|
147
|
-
IconRight: ({ ...l }) => /* @__PURE__ */ o(
|
|
145
|
+
IconLeft: ({ ...l }) => /* @__PURE__ */ o(I, { className: "h-4 w-4" }),
|
|
146
|
+
IconRight: ({ ...l }) => /* @__PURE__ */ o(N, { className: "h-4 w-4" })
|
|
148
147
|
},
|
|
149
|
-
...
|
|
148
|
+
...n
|
|
150
149
|
}
|
|
151
150
|
);
|
|
152
151
|
}
|
|
153
|
-
|
|
154
|
-
const q =
|
|
155
|
-
|
|
152
|
+
E.displayName = "Calendar";
|
|
153
|
+
const q = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
154
|
+
b.Root,
|
|
156
155
|
{
|
|
157
156
|
ref: a,
|
|
158
157
|
className: r(
|
|
@@ -161,16 +160,16 @@ const q = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
|
161
160
|
),
|
|
162
161
|
...t,
|
|
163
162
|
children: /* @__PURE__ */ o(
|
|
164
|
-
|
|
163
|
+
b.Indicator,
|
|
165
164
|
{
|
|
166
165
|
className: r("flex items-center justify-center text-current"),
|
|
167
|
-
children: /* @__PURE__ */ o(
|
|
166
|
+
children: /* @__PURE__ */ o(w, { className: "h-4 w-4" })
|
|
168
167
|
}
|
|
169
168
|
)
|
|
170
169
|
}
|
|
171
170
|
));
|
|
172
|
-
q.displayName =
|
|
173
|
-
const J =
|
|
171
|
+
q.displayName = b.Root.displayName;
|
|
172
|
+
const J = g(
|
|
174
173
|
"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",
|
|
175
174
|
{
|
|
176
175
|
variants: {
|
|
@@ -179,26 +178,26 @@ const J = b(
|
|
|
179
178
|
}
|
|
180
179
|
}
|
|
181
180
|
}
|
|
182
|
-
), K =
|
|
183
|
-
({ className: e, variant: t, type: a, ...
|
|
181
|
+
), K = s.forwardRef(
|
|
182
|
+
({ className: e, variant: t, type: a, ...n }, l) => /* @__PURE__ */ o(
|
|
184
183
|
"input",
|
|
185
184
|
{
|
|
186
185
|
type: a,
|
|
187
|
-
className:
|
|
186
|
+
className: r(J({ variant: t, className: e })),
|
|
188
187
|
ref: l,
|
|
189
|
-
...
|
|
188
|
+
...n
|
|
190
189
|
}
|
|
191
190
|
)
|
|
192
191
|
);
|
|
193
192
|
K.displayName = "Input";
|
|
194
|
-
const Q =
|
|
193
|
+
const Q = g(
|
|
195
194
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
196
|
-
), W =
|
|
197
|
-
W.displayName =
|
|
198
|
-
const
|
|
195
|
+
), W = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(v.Root, { ref: a, className: r(Q(), e), ...t }));
|
|
196
|
+
W.displayName = v.Root.displayName;
|
|
197
|
+
const qe = d.Root, Je = d.Group, Ke = d.Value, X = s.forwardRef(({ className: e, children: t, ...a }, n) => /* @__PURE__ */ m(
|
|
199
198
|
d.Trigger,
|
|
200
199
|
{
|
|
201
|
-
ref:
|
|
200
|
+
ref: n,
|
|
202
201
|
className: r(
|
|
203
202
|
"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",
|
|
204
203
|
e
|
|
@@ -206,32 +205,32 @@ const Ae = d.Root, He = d.Group, Ue = d.Value, X = n.forwardRef(({ className: e,
|
|
|
206
205
|
...a,
|
|
207
206
|
children: [
|
|
208
207
|
t,
|
|
209
|
-
/* @__PURE__ */ o(d.Icon, { asChild: !0, children: /* @__PURE__ */ o(
|
|
208
|
+
/* @__PURE__ */ o(d.Icon, { asChild: !0, children: /* @__PURE__ */ o(y, { className: "h-4 w-4 opacity-50" }) })
|
|
210
209
|
]
|
|
211
210
|
}
|
|
212
211
|
));
|
|
213
212
|
X.displayName = d.Trigger.displayName;
|
|
214
|
-
const
|
|
213
|
+
const R = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
215
214
|
d.ScrollUpButton,
|
|
216
215
|
{
|
|
217
216
|
ref: a,
|
|
218
217
|
className: r("flex cursor-default items-center justify-center py-1", e),
|
|
219
218
|
...t,
|
|
220
|
-
children: /* @__PURE__ */ o(
|
|
219
|
+
children: /* @__PURE__ */ o(z, { className: "h-4 w-4" })
|
|
221
220
|
}
|
|
222
221
|
));
|
|
223
|
-
|
|
224
|
-
const
|
|
222
|
+
R.displayName = d.ScrollUpButton.displayName;
|
|
223
|
+
const C = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
225
224
|
d.ScrollDownButton,
|
|
226
225
|
{
|
|
227
226
|
ref: a,
|
|
228
227
|
className: r("flex cursor-default items-center justify-center py-1", e),
|
|
229
228
|
...t,
|
|
230
|
-
children: /* @__PURE__ */ o(
|
|
229
|
+
children: /* @__PURE__ */ o(y, { className: "h-4 w-4" })
|
|
231
230
|
}
|
|
232
231
|
));
|
|
233
|
-
|
|
234
|
-
const Y =
|
|
232
|
+
C.displayName = d.ScrollDownButton.displayName;
|
|
233
|
+
const Y = s.forwardRef(({ className: e, children: t, position: a = "popper", ...n }, l) => /* @__PURE__ */ o(d.Portal, { children: /* @__PURE__ */ m(
|
|
235
234
|
d.Content,
|
|
236
235
|
{
|
|
237
236
|
ref: l,
|
|
@@ -241,9 +240,9 @@ const Y = n.forwardRef(({ className: e, children: t, position: a = "popper", ...
|
|
|
241
240
|
e
|
|
242
241
|
),
|
|
243
242
|
position: a,
|
|
244
|
-
...
|
|
243
|
+
...n,
|
|
245
244
|
children: [
|
|
246
|
-
/* @__PURE__ */ o(
|
|
245
|
+
/* @__PURE__ */ o(R, {}),
|
|
247
246
|
/* @__PURE__ */ o(
|
|
248
247
|
d.Viewport,
|
|
249
248
|
{
|
|
@@ -254,12 +253,12 @@ const Y = n.forwardRef(({ className: e, children: t, position: a = "popper", ...
|
|
|
254
253
|
children: t
|
|
255
254
|
}
|
|
256
255
|
),
|
|
257
|
-
/* @__PURE__ */ o(
|
|
256
|
+
/* @__PURE__ */ o(C, {})
|
|
258
257
|
]
|
|
259
258
|
}
|
|
260
259
|
) }));
|
|
261
260
|
Y.displayName = d.Content.displayName;
|
|
262
|
-
const Z =
|
|
261
|
+
const Z = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
263
262
|
d.Label,
|
|
264
263
|
{
|
|
265
264
|
ref: a,
|
|
@@ -268,23 +267,23 @@ const Z = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
|
268
267
|
}
|
|
269
268
|
));
|
|
270
269
|
Z.displayName = d.Label.displayName;
|
|
271
|
-
const
|
|
270
|
+
const $ = s.forwardRef(({ className: e, children: t, ...a }, n) => /* @__PURE__ */ m(
|
|
272
271
|
d.Item,
|
|
273
272
|
{
|
|
274
|
-
ref:
|
|
273
|
+
ref: n,
|
|
275
274
|
className: r(
|
|
276
275
|
"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",
|
|
277
276
|
e
|
|
278
277
|
),
|
|
279
278
|
...a,
|
|
280
279
|
children: [
|
|
281
|
-
/* @__PURE__ */ o("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o(d.ItemIndicator, { children: /* @__PURE__ */ o(
|
|
280
|
+
/* @__PURE__ */ o("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o(d.ItemIndicator, { children: /* @__PURE__ */ o(w, { className: "h-4 w-4" }) }) }),
|
|
282
281
|
/* @__PURE__ */ o(d.ItemText, { children: t })
|
|
283
282
|
]
|
|
284
283
|
}
|
|
285
284
|
));
|
|
286
|
-
|
|
287
|
-
const
|
|
285
|
+
$.displayName = d.Item.displayName;
|
|
286
|
+
const ee = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
288
287
|
d.Separator,
|
|
289
288
|
{
|
|
290
289
|
ref: a,
|
|
@@ -292,12 +291,12 @@ const te = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
|
292
291
|
...t
|
|
293
292
|
}
|
|
294
293
|
));
|
|
295
|
-
|
|
296
|
-
const
|
|
294
|
+
ee.displayName = d.Separator.displayName;
|
|
295
|
+
const te = s.forwardRef(
|
|
297
296
|
({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
298
297
|
"textarea",
|
|
299
298
|
{
|
|
300
|
-
className:
|
|
299
|
+
className: r(
|
|
301
300
|
"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",
|
|
302
301
|
e
|
|
303
302
|
),
|
|
@@ -306,9 +305,9 @@ const ae = n.forwardRef(
|
|
|
306
305
|
}
|
|
307
306
|
)
|
|
308
307
|
);
|
|
309
|
-
|
|
310
|
-
const
|
|
311
|
-
|
|
308
|
+
te.displayName = "Textarea";
|
|
309
|
+
const Qe = f.Root, We = f.Trigger, ae = s.forwardRef(({ className: e, align: t = "center", sideOffset: a = 4, ...n }, l) => /* @__PURE__ */ o(f.Portal, { children: /* @__PURE__ */ o(
|
|
310
|
+
f.Content,
|
|
312
311
|
{
|
|
313
312
|
ref: l,
|
|
314
313
|
align: t,
|
|
@@ -317,12 +316,12 @@ const Oe = u.Root, Ee = u.Trigger, oe = n.forwardRef(({ className: e, align: t =
|
|
|
317
316
|
"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",
|
|
318
317
|
e
|
|
319
318
|
),
|
|
320
|
-
...
|
|
319
|
+
...n
|
|
321
320
|
}
|
|
322
321
|
) }));
|
|
323
|
-
|
|
324
|
-
const
|
|
325
|
-
|
|
322
|
+
ae.displayName = f.Content.displayName;
|
|
323
|
+
const oe = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
324
|
+
h.Root,
|
|
326
325
|
{
|
|
327
326
|
className: r(
|
|
328
327
|
"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",
|
|
@@ -331,7 +330,7 @@ const re = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
|
331
330
|
...t,
|
|
332
331
|
ref: a,
|
|
333
332
|
children: /* @__PURE__ */ o(
|
|
334
|
-
|
|
333
|
+
h.Thumb,
|
|
335
334
|
{
|
|
336
335
|
className: r(
|
|
337
336
|
"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"
|
|
@@ -340,8 +339,69 @@ const re = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
|
340
339
|
)
|
|
341
340
|
}
|
|
342
341
|
));
|
|
343
|
-
|
|
344
|
-
const
|
|
342
|
+
oe.displayName = h.Root.displayName;
|
|
343
|
+
const re = s.forwardRef(
|
|
344
|
+
({ className: e, ...t }, a) => /* @__PURE__ */ o("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ o(
|
|
345
|
+
"table",
|
|
346
|
+
{
|
|
347
|
+
ref: a,
|
|
348
|
+
className: r("w-full caption-bottom text-sm", e),
|
|
349
|
+
...t
|
|
350
|
+
}
|
|
351
|
+
) })
|
|
352
|
+
);
|
|
353
|
+
re.displayName = "Table";
|
|
354
|
+
const se = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o("thead", { ref: a, className: r("[&_tr]:border-b", e), ...t }));
|
|
355
|
+
se.displayName = "TableHeader";
|
|
356
|
+
const ne = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o("tbody", { ref: a, className: r("[&_tr:last-child]:border-0", e), ...t }));
|
|
357
|
+
ne.displayName = "TableBody";
|
|
358
|
+
const ie = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
359
|
+
"tfoot",
|
|
360
|
+
{
|
|
361
|
+
ref: a,
|
|
362
|
+
className: r("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0", e),
|
|
363
|
+
...t
|
|
364
|
+
}
|
|
365
|
+
));
|
|
366
|
+
ie.displayName = "TableFooter";
|
|
367
|
+
const de = s.forwardRef(
|
|
368
|
+
({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
369
|
+
"tr",
|
|
370
|
+
{
|
|
371
|
+
ref: a,
|
|
372
|
+
className: r(
|
|
373
|
+
"border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",
|
|
374
|
+
e
|
|
375
|
+
),
|
|
376
|
+
...t
|
|
377
|
+
}
|
|
378
|
+
)
|
|
379
|
+
);
|
|
380
|
+
de.displayName = "TableRow";
|
|
381
|
+
const le = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
382
|
+
"th",
|
|
383
|
+
{
|
|
384
|
+
ref: a,
|
|
385
|
+
className: r(
|
|
386
|
+
"h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",
|
|
387
|
+
e
|
|
388
|
+
),
|
|
389
|
+
...t
|
|
390
|
+
}
|
|
391
|
+
));
|
|
392
|
+
le.displayName = "TableHead";
|
|
393
|
+
const ce = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
394
|
+
"td",
|
|
395
|
+
{
|
|
396
|
+
ref: a,
|
|
397
|
+
className: r("p-4 align-middle [&:has([role=checkbox])]:pr-0", e),
|
|
398
|
+
...t
|
|
399
|
+
}
|
|
400
|
+
));
|
|
401
|
+
ce.displayName = "TableCell";
|
|
402
|
+
const me = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o("caption", { ref: a, className: r("mt-4 text-sm text-muted-foreground", e), ...t }));
|
|
403
|
+
me.displayName = "TableCaption";
|
|
404
|
+
const Xe = i.Root, Ye = i.Trigger, Ze = i.Group, $e = i.Portal, et = i.Sub, tt = i.RadioGroup, pe = s.forwardRef(({ className: e, inset: t, children: a, ...n }, l) => /* @__PURE__ */ m(
|
|
345
405
|
i.SubTrigger,
|
|
346
406
|
{
|
|
347
407
|
ref: l,
|
|
@@ -350,15 +410,15 @@ const Fe = i.Root, $e = i.Trigger, qe = i.Group, Je = i.Portal, Ke = i.Sub, Qe =
|
|
|
350
410
|
t && "pl-8",
|
|
351
411
|
e
|
|
352
412
|
),
|
|
353
|
-
...
|
|
413
|
+
...n,
|
|
354
414
|
children: [
|
|
355
415
|
a,
|
|
356
|
-
/* @__PURE__ */ o(
|
|
416
|
+
/* @__PURE__ */ o(N, { className: "ml-auto" })
|
|
357
417
|
]
|
|
358
418
|
}
|
|
359
419
|
));
|
|
360
|
-
|
|
361
|
-
const
|
|
420
|
+
pe.displayName = i.SubTrigger.displayName;
|
|
421
|
+
const fe = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
362
422
|
i.SubContent,
|
|
363
423
|
{
|
|
364
424
|
ref: a,
|
|
@@ -369,11 +429,11 @@ const ne = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
|
369
429
|
...t
|
|
370
430
|
}
|
|
371
431
|
));
|
|
372
|
-
|
|
373
|
-
const
|
|
432
|
+
fe.displayName = i.SubContent.displayName;
|
|
433
|
+
const ue = s.forwardRef(({ className: e, sideOffset: t = 4, ...a }, n) => /* @__PURE__ */ o(i.Portal, { children: /* @__PURE__ */ o(
|
|
374
434
|
i.Content,
|
|
375
435
|
{
|
|
376
|
-
ref:
|
|
436
|
+
ref: n,
|
|
377
437
|
sideOffset: t,
|
|
378
438
|
className: r(
|
|
379
439
|
"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",
|
|
@@ -382,11 +442,11 @@ const ie = n.forwardRef(({ className: e, sideOffset: t = 4, ...a }, s) => /* @__
|
|
|
382
442
|
...a
|
|
383
443
|
}
|
|
384
444
|
) }));
|
|
385
|
-
|
|
386
|
-
const
|
|
445
|
+
ue.displayName = i.Content.displayName;
|
|
446
|
+
const ge = s.forwardRef(({ className: e, inset: t, ...a }, n) => /* @__PURE__ */ o(
|
|
387
447
|
i.Item,
|
|
388
448
|
{
|
|
389
|
-
ref:
|
|
449
|
+
ref: n,
|
|
390
450
|
className: r(
|
|
391
451
|
"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",
|
|
392
452
|
t && "pl-8",
|
|
@@ -395,8 +455,8 @@ const de = n.forwardRef(({ className: e, inset: t, ...a }, s) => /* @__PURE__ */
|
|
|
395
455
|
...a
|
|
396
456
|
}
|
|
397
457
|
));
|
|
398
|
-
|
|
399
|
-
const
|
|
458
|
+
ge.displayName = i.Item.displayName;
|
|
459
|
+
const be = s.forwardRef(({ className: e, children: t, checked: a, ...n }, l) => /* @__PURE__ */ m(
|
|
400
460
|
i.CheckboxItem,
|
|
401
461
|
{
|
|
402
462
|
ref: l,
|
|
@@ -405,40 +465,40 @@ const le = n.forwardRef(({ className: e, children: t, checked: a, ...s }, l) =>
|
|
|
405
465
|
e
|
|
406
466
|
),
|
|
407
467
|
checked: a,
|
|
408
|
-
...
|
|
468
|
+
...n,
|
|
409
469
|
children: [
|
|
410
|
-
/* @__PURE__ */ o("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o(i.ItemIndicator, { children: /* @__PURE__ */ o(
|
|
470
|
+
/* @__PURE__ */ o("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o(i.ItemIndicator, { children: /* @__PURE__ */ o(w, { className: "h-4 w-4" }) }) }),
|
|
411
471
|
t
|
|
412
472
|
]
|
|
413
473
|
}
|
|
414
474
|
));
|
|
415
|
-
|
|
416
|
-
const
|
|
475
|
+
be.displayName = i.CheckboxItem.displayName;
|
|
476
|
+
const he = s.forwardRef(({ className: e, children: t, ...a }, n) => /* @__PURE__ */ m(
|
|
417
477
|
i.RadioItem,
|
|
418
478
|
{
|
|
419
|
-
ref:
|
|
479
|
+
ref: n,
|
|
420
480
|
className: r(
|
|
421
481
|
"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",
|
|
422
482
|
e
|
|
423
483
|
),
|
|
424
484
|
...a,
|
|
425
485
|
children: [
|
|
426
|
-
/* @__PURE__ */ o("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o(i.ItemIndicator, { children: /* @__PURE__ */ o(
|
|
486
|
+
/* @__PURE__ */ o("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o(i.ItemIndicator, { children: /* @__PURE__ */ o(_, { className: "h-2 w-2 fill-current" }) }) }),
|
|
427
487
|
t
|
|
428
488
|
]
|
|
429
489
|
}
|
|
430
490
|
));
|
|
431
|
-
|
|
432
|
-
const
|
|
491
|
+
he.displayName = i.RadioItem.displayName;
|
|
492
|
+
const ye = s.forwardRef(({ className: e, inset: t, ...a }, n) => /* @__PURE__ */ o(
|
|
433
493
|
i.Label,
|
|
434
494
|
{
|
|
435
|
-
ref:
|
|
495
|
+
ref: n,
|
|
436
496
|
className: r("px-2 py-1.5 text-sm font-semibold", t && "pl-8", e),
|
|
437
497
|
...a
|
|
438
498
|
}
|
|
439
499
|
));
|
|
440
|
-
|
|
441
|
-
const
|
|
500
|
+
ye.displayName = i.Label.displayName;
|
|
501
|
+
const we = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
442
502
|
i.Separator,
|
|
443
503
|
{
|
|
444
504
|
ref: a,
|
|
@@ -446,10 +506,10 @@ const pe = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
|
446
506
|
...t
|
|
447
507
|
}
|
|
448
508
|
));
|
|
449
|
-
|
|
450
|
-
const
|
|
451
|
-
|
|
452
|
-
const
|
|
509
|
+
we.displayName = i.Separator.displayName;
|
|
510
|
+
const xe = ({ className: e, ...t }) => /* @__PURE__ */ o("span", { className: r("ml-auto text-xs tracking-widest opacity-60", e), ...t });
|
|
511
|
+
xe.displayName = "DropdownMenuShortcut";
|
|
512
|
+
const at = c.Root, ot = c.Trigger, Ne = c.Portal, rt = c.Close, k = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
453
513
|
c.Overlay,
|
|
454
514
|
{
|
|
455
515
|
ref: a,
|
|
@@ -460,13 +520,13 @@ const We = c.Root, Xe = c.Trigger, ue = c.Portal, Ye = c.Close, D = n.forwardRef
|
|
|
460
520
|
...t
|
|
461
521
|
}
|
|
462
522
|
));
|
|
463
|
-
|
|
464
|
-
const
|
|
465
|
-
/* @__PURE__ */ o(
|
|
523
|
+
k.displayName = c.Overlay.displayName;
|
|
524
|
+
const ve = s.forwardRef(({ className: e, children: t, ...a }, n) => /* @__PURE__ */ m(Ne, { children: [
|
|
525
|
+
/* @__PURE__ */ o(k, {}),
|
|
466
526
|
/* @__PURE__ */ m(
|
|
467
527
|
c.Content,
|
|
468
528
|
{
|
|
469
|
-
ref:
|
|
529
|
+
ref: n,
|
|
470
530
|
className: r(
|
|
471
531
|
"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",
|
|
472
532
|
e
|
|
@@ -475,31 +535,31 @@ const ge = n.forwardRef(({ className: e, children: t, ...a }, s) => /* @__PURE__
|
|
|
475
535
|
children: [
|
|
476
536
|
t,
|
|
477
537
|
/* @__PURE__ */ m(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: [
|
|
478
|
-
/* @__PURE__ */ o(
|
|
538
|
+
/* @__PURE__ */ o(L, { className: "h-4 w-4" }),
|
|
479
539
|
/* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
|
|
480
540
|
] })
|
|
481
541
|
]
|
|
482
542
|
}
|
|
483
543
|
)
|
|
484
544
|
] }));
|
|
485
|
-
|
|
486
|
-
const
|
|
545
|
+
ve.displayName = c.Content.displayName;
|
|
546
|
+
const Re = ({ className: e, ...t }) => /* @__PURE__ */ o(
|
|
487
547
|
"div",
|
|
488
548
|
{
|
|
489
549
|
className: r("flex flex-col space-y-1.5 text-center sm:text-left", e),
|
|
490
550
|
...t
|
|
491
551
|
}
|
|
492
552
|
);
|
|
493
|
-
|
|
494
|
-
const
|
|
553
|
+
Re.displayName = "DialogHeader";
|
|
554
|
+
const Ce = ({ className: e, ...t }) => /* @__PURE__ */ o(
|
|
495
555
|
"div",
|
|
496
556
|
{
|
|
497
557
|
className: r("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e),
|
|
498
558
|
...t
|
|
499
559
|
}
|
|
500
560
|
);
|
|
501
|
-
|
|
502
|
-
const
|
|
561
|
+
Ce.displayName = "DialogFooter";
|
|
562
|
+
const ke = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
503
563
|
c.Title,
|
|
504
564
|
{
|
|
505
565
|
ref: a,
|
|
@@ -507,8 +567,8 @@ const ye = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
|
507
567
|
...t
|
|
508
568
|
}
|
|
509
569
|
));
|
|
510
|
-
|
|
511
|
-
const
|
|
570
|
+
ke.displayName = c.Title.displayName;
|
|
571
|
+
const De = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
512
572
|
c.Description,
|
|
513
573
|
{
|
|
514
574
|
ref: a,
|
|
@@ -516,134 +576,142 @@ const we = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
|
516
576
|
...t
|
|
517
577
|
}
|
|
518
578
|
));
|
|
519
|
-
|
|
520
|
-
const
|
|
579
|
+
De.displayName = c.Description.displayName;
|
|
580
|
+
const Te = ({ className: e, ...t }) => /* @__PURE__ */ o(
|
|
521
581
|
"nav",
|
|
522
582
|
{
|
|
523
583
|
role: "navigation",
|
|
524
584
|
"aria-label": "pagination",
|
|
525
|
-
className:
|
|
585
|
+
className: r("mx-auto flex w-full justify-center", e),
|
|
526
586
|
...t
|
|
527
587
|
}
|
|
528
588
|
);
|
|
529
|
-
|
|
530
|
-
const
|
|
531
|
-
({ className: e, ...t }, a) => /* @__PURE__ */ o("ul", { ref: a, className:
|
|
589
|
+
Te.displayName = "Pagination";
|
|
590
|
+
const Pe = s.forwardRef(
|
|
591
|
+
({ className: e, ...t }, a) => /* @__PURE__ */ o("ul", { ref: a, className: r("flex flex-row items-center gap-1", e), ...t })
|
|
532
592
|
);
|
|
533
|
-
|
|
534
|
-
const
|
|
535
|
-
({ className: e, ...t }, a) => /* @__PURE__ */ o("li", { ref: a, className:
|
|
593
|
+
Pe.displayName = "PaginationContent";
|
|
594
|
+
const Se = s.forwardRef(
|
|
595
|
+
({ className: e, ...t }, a) => /* @__PURE__ */ o("li", { ref: a, className: r("", e), ...t })
|
|
536
596
|
);
|
|
537
|
-
|
|
538
|
-
const
|
|
597
|
+
Se.displayName = "PaginationItem";
|
|
598
|
+
const x = ({ className: e, isActive: t, size: a = "icon", ...n }) => /* @__PURE__ */ o(
|
|
539
599
|
"a",
|
|
540
600
|
{
|
|
541
601
|
"aria-current": t ? "page" : void 0,
|
|
542
|
-
className:
|
|
543
|
-
|
|
602
|
+
className: r(
|
|
603
|
+
u({
|
|
544
604
|
variant: t ? "outline" : "ghost",
|
|
545
605
|
size: a
|
|
546
606
|
}),
|
|
547
607
|
e
|
|
548
608
|
),
|
|
549
|
-
...
|
|
609
|
+
...n
|
|
550
610
|
}
|
|
551
611
|
);
|
|
552
|
-
|
|
553
|
-
const
|
|
612
|
+
x.displayName = "PaginationLink";
|
|
613
|
+
const Ie = ({
|
|
554
614
|
className: e,
|
|
555
615
|
...t
|
|
556
616
|
}) => /* @__PURE__ */ o(
|
|
557
|
-
|
|
617
|
+
x,
|
|
558
618
|
{
|
|
559
619
|
"aria-label": "Go to previous page",
|
|
560
620
|
size: "default",
|
|
561
|
-
className:
|
|
621
|
+
className: r("gap-1 pl-2.5", e),
|
|
562
622
|
...t,
|
|
563
|
-
children: /* @__PURE__ */ o(
|
|
623
|
+
children: /* @__PURE__ */ o(B, { className: "h-4 w-4" })
|
|
564
624
|
}
|
|
565
625
|
);
|
|
566
|
-
|
|
567
|
-
const
|
|
568
|
-
|
|
626
|
+
Ie.displayName = "PaginationPrevious";
|
|
627
|
+
const ze = ({ className: e, ...t }) => /* @__PURE__ */ o(
|
|
628
|
+
x,
|
|
569
629
|
{
|
|
570
630
|
"aria-label": "Go to next page",
|
|
571
631
|
size: "default",
|
|
572
|
-
className:
|
|
632
|
+
className: r("gap-1 pr-2.5", e),
|
|
573
633
|
...t,
|
|
574
|
-
children: /* @__PURE__ */ o(
|
|
634
|
+
children: /* @__PURE__ */ o(V, { className: "h-4 w-4" })
|
|
575
635
|
}
|
|
576
636
|
);
|
|
577
|
-
|
|
578
|
-
const
|
|
637
|
+
ze.displayName = "PaginationNext";
|
|
638
|
+
const _e = ({ className: e, ...t }) => /* @__PURE__ */ m(
|
|
579
639
|
"span",
|
|
580
640
|
{
|
|
581
641
|
"aria-hidden": !0,
|
|
582
|
-
className:
|
|
642
|
+
className: r("flex h-9 w-9 items-center justify-center", e),
|
|
583
643
|
...t,
|
|
584
644
|
children: [
|
|
585
|
-
/* @__PURE__ */ o(
|
|
645
|
+
/* @__PURE__ */ o(G, { className: "h-4 w-4" }),
|
|
586
646
|
/* @__PURE__ */ o("span", { className: "sr-only", children: "More pages" })
|
|
587
647
|
]
|
|
588
648
|
}
|
|
589
649
|
);
|
|
590
|
-
|
|
650
|
+
_e.displayName = "PaginationEllipsis";
|
|
591
651
|
export {
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
652
|
+
Oe as Accordion,
|
|
653
|
+
U as AccordionContent,
|
|
654
|
+
A as AccordionItem,
|
|
655
|
+
F as AccordionTrigger,
|
|
656
|
+
Ee as Badge,
|
|
597
657
|
H as Button,
|
|
598
|
-
|
|
658
|
+
E as Calendar,
|
|
599
659
|
q as Checkbox,
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
660
|
+
at as Dialog,
|
|
661
|
+
rt as DialogClose,
|
|
662
|
+
ve as DialogContent,
|
|
663
|
+
De as DialogDescription,
|
|
664
|
+
Ce as DialogFooter,
|
|
665
|
+
Re as DialogHeader,
|
|
666
|
+
k as DialogOverlay,
|
|
667
|
+
Ne as DialogPortal,
|
|
668
|
+
ke as DialogTitle,
|
|
669
|
+
ot as DialogTrigger,
|
|
670
|
+
Xe as DropdownMenu,
|
|
671
|
+
be as DropdownMenuCheckboxItem,
|
|
672
|
+
ue as DropdownMenuContent,
|
|
673
|
+
Ze as DropdownMenuGroup,
|
|
674
|
+
ge as DropdownMenuItem,
|
|
675
|
+
ye as DropdownMenuLabel,
|
|
676
|
+
$e as DropdownMenuPortal,
|
|
677
|
+
tt as DropdownMenuRadioGroup,
|
|
678
|
+
he as DropdownMenuRadioItem,
|
|
679
|
+
we as DropdownMenuSeparator,
|
|
680
|
+
xe as DropdownMenuShortcut,
|
|
681
|
+
et as DropdownMenuSub,
|
|
682
|
+
fe as DropdownMenuSubContent,
|
|
683
|
+
pe as DropdownMenuSubTrigger,
|
|
684
|
+
Ye as DropdownMenuTrigger,
|
|
625
685
|
K as Input,
|
|
626
686
|
W as Label,
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
687
|
+
Te as Pagination,
|
|
688
|
+
Pe as PaginationContent,
|
|
689
|
+
_e as PaginationEllipsis,
|
|
690
|
+
Se as PaginationItem,
|
|
691
|
+
x as PaginationLink,
|
|
692
|
+
ze as PaginationNext,
|
|
693
|
+
Ie as PaginationPrevious,
|
|
694
|
+
Qe as Popover,
|
|
695
|
+
ae as PopoverContent,
|
|
696
|
+
We as PopoverTrigger,
|
|
697
|
+
qe as Select,
|
|
638
698
|
Y as SelectContent,
|
|
639
|
-
|
|
640
|
-
|
|
699
|
+
Je as SelectGroup,
|
|
700
|
+
$ as SelectItem,
|
|
641
701
|
Z as SelectLabel,
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
702
|
+
C as SelectScrollDownButton,
|
|
703
|
+
R as SelectScrollUpButton,
|
|
704
|
+
ee as SelectSeparator,
|
|
645
705
|
X as SelectTrigger,
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
706
|
+
Ke as SelectValue,
|
|
707
|
+
oe as Switch,
|
|
708
|
+
re as Table,
|
|
709
|
+
ne as TableBody,
|
|
710
|
+
me as TableCaption,
|
|
711
|
+
ce as TableCell,
|
|
712
|
+
ie as TableFooter,
|
|
713
|
+
le as TableHead,
|
|
714
|
+
se as TableHeader,
|
|
715
|
+
de as TableRow,
|
|
716
|
+
te as Textarea
|
|
649
717
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,15 @@
|
|
|
1
|
-
export
|
|
2
|
-
export {}
|
|
1
|
+
export { Button } from './components/atoms/Button/button';
|
|
2
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, } from './components/atoms/Accordion/accordion';
|
|
3
|
+
export { Badge } from './components/atoms/Badge/badge';
|
|
4
|
+
export { Calendar } from './components/atoms/Calendar/calendar';
|
|
5
|
+
export { Checkbox } from './components/atoms/Checkbox/checkbox';
|
|
6
|
+
export { Input } from './components/atoms/Input/input';
|
|
7
|
+
export { Label } from './components/atoms/Label/Label';
|
|
8
|
+
export { Select, SelectGroup, SelectValue, SelectTrigger, SelectContent, SelectLabel, SelectItem, SelectSeparator, SelectScrollUpButton, SelectScrollDownButton, } from './components/atoms/Select/select';
|
|
9
|
+
export { Textarea } from './components/atoms/Textarea/textarea';
|
|
10
|
+
export { Popover, PopoverContent, PopoverTrigger } from './components/atoms/Popover/popover';
|
|
11
|
+
export { Switch } from './components/atoms/Switch/switch';
|
|
12
|
+
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, } from './components/atoms/Table/table';
|
|
13
|
+
export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuGroup, DropdownMenuPortal, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuRadioGroup, } from './components/atoms/Dropdown/dropdown-menu';
|
|
14
|
+
export { Dialog, DialogPortal, DialogOverlay, DialogTrigger, DialogClose, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, } from './components/atoms/Dialog/dialog';
|
|
15
|
+
export { Pagination, PaginationContent, PaginationItem, PaginationLink, PaginationPrevious, PaginationNext, PaginationEllipsis, } from './components/atoms/Pagination/Pagination';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: import('react').ForwardRefExoticComponent<import('
|
|
4
|
+
component: import('react').ForwardRefExoticComponent<import('../components/atoms/Input/input').InputProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
5
5
|
parameters: {
|
|
6
6
|
layout: string;
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: import('react').ForwardRefExoticComponent<import('
|
|
4
|
+
component: import('react').ForwardRefExoticComponent<import('../components/atoms/Textarea/textarea').TextareaProps & import('react').RefAttributes<HTMLTextAreaElement>>;
|
|
5
5
|
parameters: {
|
|
6
6
|
layout: string;
|
|
7
7
|
};
|
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.15",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "IMJ - Antonio Diego",
|
|
7
7
|
"email": "antonio.diego@imjmedia.com.mx"
|
|
@@ -82,7 +82,8 @@
|
|
|
82
82
|
"tailwindcss": "^3.4.16",
|
|
83
83
|
"typescript": "^5.5.3",
|
|
84
84
|
"typescript-eslint": "^8.7.0",
|
|
85
|
-
"vite": "^5.4.8"
|
|
85
|
+
"vite": "^5.4.8",
|
|
86
|
+
"vite-tsconfig-paths": "^5.1.4"
|
|
86
87
|
},
|
|
87
88
|
"eslintConfig": {
|
|
88
89
|
"extends": [
|
|
@@ -93,5 +94,5 @@
|
|
|
93
94
|
"access": "public",
|
|
94
95
|
"registry": "https://registry.npmjs.org/@imjmedia"
|
|
95
96
|
},
|
|
96
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "93327c0b4422fa384f1dedaf4c0c510030f5976c"
|
|
97
98
|
}
|
package/dist/src/index.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export { Button } from './components/atoms/Button/button';
|
|
2
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, } from './components/atoms/Accordion/accordion';
|
|
3
|
-
export { Badge } from './components/atoms/Badge/badge';
|
|
4
|
-
export { Calendar } from './components/atoms/Calendar/calendar';
|
|
5
|
-
export { Checkbox } from './components/atoms/Checkbox/checkbox';
|
|
6
|
-
export { Input } from './components/atoms/Input/input';
|
|
7
|
-
export { Label } from './components/atoms/Label/Label';
|
|
8
|
-
export { Select, SelectGroup, SelectValue, SelectTrigger, SelectContent, SelectLabel, SelectItem, SelectSeparator, SelectScrollUpButton, SelectScrollDownButton, } from './components/atoms/Select/select';
|
|
9
|
-
export { Textarea } from './components/atoms/Textarea/textarea';
|
|
10
|
-
export { Popover, PopoverContent, PopoverTrigger } from './components/atoms/Popover/popover';
|
|
11
|
-
export { Switch } from './components/atoms/Switch/switch';
|
|
12
|
-
export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuGroup, DropdownMenuPortal, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuRadioGroup, } from './components/atoms/Dropdown/dropdown-menu';
|
|
13
|
-
export { Dialog, DialogPortal, DialogOverlay, DialogTrigger, DialogClose, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, } from './components/atoms/Dialog/dialog';
|
|
14
|
-
export { Pagination, PaginationContent, PaginationItem, PaginationLink, PaginationPrevious, PaginationNext, PaginationEllipsis, } from './components/atoms/Pagination/Pagination';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|