@mireljs/ui-core 3.2.36 → 3.2.39
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/mirel-ui-core.js +1165 -1571
- package/dist/mirel-ui-core.umd.cjs +1 -1
- package/package.json +7 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(o,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("react/jsx-runtime"),require("react"),require("@radix-ui/react-slot"),require("class-variance-authority"),require("clsx"),require("tailwind-merge"),require("@radix-ui/react-select"),require("@radix-ui/react-dialog"),require("@radix-ui/react-dropdown-menu"),require("lucide-react"),require("@radix-ui/react-toast"),require("@radix-ui/react-tabs"),require("@radix-ui/react-accordion"),require("@radix-ui/react-popover"),require("@radix-ui/react-label"),require("@radix-ui/react-switch"),require("@radix-ui/react-tooltip"),require("@radix-ui/react-scroll-area"),require("@radix-ui/react-separator"),require("@radix-ui/react-slider"),require("@tanstack/react-table")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","@radix-ui/react-slot","class-variance-authority","clsx","tailwind-merge","@radix-ui/react-select","@radix-ui/react-dialog","@radix-ui/react-dropdown-menu","lucide-react","@radix-ui/react-toast","@radix-ui/react-tabs","@radix-ui/react-accordion","@radix-ui/react-popover","@radix-ui/react-label","@radix-ui/react-switch","@radix-ui/react-tooltip","@radix-ui/react-scroll-area","@radix-ui/react-separator","@radix-ui/react-slider","@tanstack/react-table"],a):(o=typeof globalThis<"u"?globalThis:o||self,a(o.MirelUICore={},o.jsxRuntime,o.React,o.reactSlot,o.classVarianceAuthority,o.clsx,o.tailwindMerge,o.SelectPrimitive,o.DialogPrimitive,o.DropdownMenuPrimitive,o.lucideReact,o.ToastPrimitives,o.TabsPrimitive,o.AccordionPrimitive,o.PopoverPrimitive,o.LabelPrimitive,o.SwitchPrimitive,o.TooltipPrimitive,o.ScrollAreaPrimitive,o.SeparatorPrimitive,o.SliderPrimitive,o.reactTable))})(this,(function(o,a,w,Ct,C,Dt,Pt,_t,Mt,It,z,Lt,At,zt,jt,Ot,Ft,Et,Bt,qt,Ht,D){"use strict";function h(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const d=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,d.get?d:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const i=h(w),u=h(_t),f=h(Mt),g=h(It),v=h(Lt),N=h(At),T=h(zt),_=h(jt),le=h(Ot),V=h(Ft),P=h(Et),S=h(Bt),ce=h(qt),M=h(Ht);function s(...e){return Pt.twMerge(Dt.clsx(e))}const fe=C.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium shadow-sm ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-gray-900 text-gray-50 hover:bg-gray-900/90 dark:bg-gray-700 dark:text-gray-50 dark:hover:bg-gray-600",destructive:"bg-red-500 text-gray-50 hover:bg-red-500/90 dark:bg-red-900 dark:text-gray-50 dark:hover:bg-red-900/90",outline:"border border-gray-200 bg-gray-50 hover:bg-gray-100 hover:text-gray-900 dark:border-gray-700 dark:bg-gray-950 dark:hover:bg-gray-800 dark:hover:text-gray-50",secondary:"bg-gray-100 text-gray-900 hover:bg-gray-100/80 dark:bg-gray-800 dark:text-gray-50 dark:hover:bg-gray-800/80",ghost:"hover:bg-gray-100 hover:text-gray-900 dark:hover:bg-gray-800 dark:hover:text-gray-50",link:"text-gray-900 underline-offset-4 hover:underline dark:text-gray-50",subtle:"bg-gray-100 text-gray-900 shadow-none hover:bg-gray-200 border border-gray-200/50 dark:bg-gray-800 dark:text-gray-50 dark:hover:bg-gray-700 dark:border-gray-700",soft:"bg-gray-100/50 text-gray-900 hover:bg-gray-100/75 dark:bg-gray-800/50 dark:text-gray-50 dark:hover:bg-gray-800/75",elevated:"bg-white text-gray-900 shadow-md hover:shadow-lg border border-gray-200/60 dark:bg-gray-950 dark:text-gray-50 dark:border-gray-700"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10",pill:"h-10 rounded-full px-6",square:"size-9 rounded-md relative [&_svg]:absolute [&_svg]:top-0 [&_svg]:right-0 [&_svg]:bottom-0 [&_svg]:left-0 [&_svg]:m-auto [&_svg]:size-4"}},defaultVariants:{variant:"default",size:"default"}}),j=i.forwardRef(({className:e,variant:t,size:r,asChild:d=!1,...n},l)=>{const m=d?Ct.Slot:"button";return a.jsx(m,{className:s(fe({variant:t,size:r,className:e})),ref:l,...n})});j.displayName="Button";const G=i.forwardRef(({className:e,type:t,...r},d)=>a.jsx("input",{type:t,className:s("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background 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-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:d,...r}));G.displayName="Input";const ge=i.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:s("group rounded-2xl border border-outline/60 bg-surface shadow-md transition-shadow hover:shadow-lg",e),...t}));ge.displayName="Card";const ue=i.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:s("space-y-1.5 p-4",e),...t}));ue.displayName="CardHeader";const me=i.forwardRef(({className:e,...t},r)=>a.jsx("h3",{ref:r,className:s("text-lg font-semibold tracking-tight text-foreground",e),...t}));me.displayName="CardTitle";const pe=i.forwardRef(({className:e,...t},r)=>a.jsx("p",{ref:r,className:s("text-sm text-muted-foreground",e),...t}));pe.displayName="CardDescription";const be=i.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:s("p-4 pt-0",e),...t}));be.displayName="CardContent";const he=i.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:s("flex flex-col gap-2 border-t border-outline/40 bg-surface-subtle/60 p-4 pt-4 sm:flex-row sm:items-center sm:justify-between",e),...t}));he.displayName="CardFooter";const ve=C.cva("inline-flex items-center gap-1 rounded-full font-medium tracking-wide uppercase",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",neutral:"bg-surface-subtle text-muted-foreground ring-1 ring-inset ring-outline/60",outline:"border border-dashed border-outline/80 bg-transparent text-muted-foreground shadow-none",info:"bg-info text-info-foreground",success:"bg-success text-success-foreground",warning:"bg-warning text-warning-foreground",destructive:"bg-destructive text-destructive-foreground"},size:{default:"px-3 py-0.5 text-xs",sm:"px-2 py-0.5 text-[10px]",lg:"px-4 py-1 text-sm"}},defaultVariants:{variant:"neutral",size:"default"}}),I=i.forwardRef(({className:e,variant:t,...r},d)=>a.jsx("span",{ref:d,className:s("select-none",ve({variant:t,className:e})),...r}));I.displayName="Badge";const ye=i.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:s("space-y-2",e),...t}));ye.displayName="FormField";const we=i.forwardRef(({className:e,requiredMark:t,children:r,...d},n)=>a.jsxs("label",{ref:n,className:s("flex items-center gap-2 text-sm font-medium text-foreground",e),...d,children:[a.jsx("span",{children:r}),t??null]}));we.displayName="FormLabel";const xe=i.forwardRef(({className:e,...t},r)=>a.jsx("p",{ref:r,className:s("text-xs text-muted-foreground",e),...t}));xe.displayName="FormHelper";const Ne=i.forwardRef(({className:e,...t},r)=>a.jsx("p",{ref:r,className:s("flex items-center gap-1 text-xs text-destructive",e),...t}));Ne.displayName="FormError";const Te=({children:e="*",className:t})=>a.jsx("span",{className:s("text-destructive",t),"aria-hidden":!0,children:e});Te.displayName="FormRequiredMark";function O(e,t){return{...{backgroundColor:e==="dialog"?"hsl(var(--background))":"hsl(var(--popover))",color:e==="dialog"?"hsl(var(--foreground))":"hsl(var(--popover-foreground))"},...t}}const Se=u.Root,Vt=u.Group,ke=u.Value,U=i.forwardRef(({className:e,children:t,...r},d)=>a.jsxs(u.Trigger,{ref:d,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),...r,children:[t,a.jsx(u.Icon,{asChild:!0,children:a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4 opacity-50",children:a.jsx("polyline",{points:"6 9 12 15 18 9"})})})]}));U.displayName=u.Trigger.displayName;const W=i.forwardRef(({className:e,...t},r)=>a.jsx(u.ScrollUpButton,{ref:r,className:s("flex cursor-default items-center justify-center py-1",e),...t,children:a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4",children:a.jsx("polyline",{points:"18 15 12 9 6 15"})})}));W.displayName=u.ScrollUpButton.displayName;const Y=i.forwardRef(({className:e,...t},r)=>a.jsx(u.ScrollDownButton,{ref:r,className:s("flex cursor-default items-center justify-center py-1",e),...t,children:a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4",children:a.jsx("polyline",{points:"6 9 12 15 18 9"})})}));Y.displayName=u.ScrollDownButton.displayName;const X=i.forwardRef(({className:e,children:t,position:r="popper",style:d,...n},l)=>a.jsx(u.Portal,{children:a.jsxs(u.Content,{ref:l,className:s("relative z-[200] max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover/100 backdrop-blur-sm 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",r==="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:r,style:O("popover",d),...n,children:[a.jsx(W,{}),a.jsx(u.Viewport,{className:s("p-1 bg-popover/100",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),a.jsx(Y,{})]})}));X.displayName=u.Content.displayName;const Ce=i.forwardRef(({className:e,...t},r)=>a.jsx(u.Label,{ref:r,className:s("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));Ce.displayName=u.Label.displayName;const F=i.forwardRef(({className:e,children:t,...r},d)=>a.jsxs(u.Item,{ref:d,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),...r,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(u.ItemIndicator,{children:a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4",children:a.jsx("polyline",{points:"20 6 9 17 4 12"})})})}),a.jsx(u.ItemText,{children:t})]}));F.displayName=u.Item.displayName;const De=i.forwardRef(({className:e,...t},r)=>a.jsx(u.Separator,{ref:r,className:s("-mx-1 my-1 h-px bg-muted",e),...t}));De.displayName=u.Separator.displayName;const Gt=f.Root,Ut=f.Trigger,Pe=f.Portal,Wt=f.Close,$=i.forwardRef(({className:e,style:t,...r},d)=>a.jsx(f.Overlay,{ref:d,className:s("fixed top-0 right-0 bottom-0 left-0 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),style:{backgroundColor:"rgba(0, 0, 0, 0.8)",zIndex:110,pointerEvents:"auto",...t},...r}));$.displayName=f.Overlay.displayName;const _e=i.forwardRef(({className:e,children:t,overlayClassName:r,style:d,onPointerDownOutside:n,onInteractOutside:l,...m},c)=>a.jsxs(Pe,{children:[a.jsx($,{className:r}),a.jsxs(f.Content,{ref:c,className:s("fixed grid w-full max-w-lg 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 sm:rounded-lg",e),style:O("dialog",{left:"50%",top:"50%",transform:"translate(-50%, -50%)",zIndex:120,isolation:"isolate",...d}),onPointerDownOutside:p=>{const b=p.target;(b.closest("[data-radix-select-content]")||b.closest('[role="listbox"]')||b.closest("[data-radix-popper-content-wrapper]"))&&p.preventDefault(),n?.(p)},onInteractOutside:p=>{const b=p.target;(b.closest("[data-radix-select-content]")||b.closest('[role="listbox"]')||b.closest("[data-radix-popper-content-wrapper]"))&&p.preventDefault(),l?.(p)},...m,children:[t,a.jsx(f.Close,{className:"absolute right-4 top-4 inline-flex h-9 w-9 items-center justify-center rounded-full border border-border/50 bg-background text-foreground/80 shadow-sm transition-all hover:border-destructive hover:bg-destructive hover:text-white focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none","aria-label":"閉じる",children:a.jsx("svg",{width:"18",height:"18",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})})]})]}));_e.displayName=f.Content.displayName;const Me=({className:e,...t})=>a.jsx("div",{className:s("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Me.displayName="DialogHeader";const Ie=({className:e,...t})=>a.jsx("div",{className:s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Ie.displayName="DialogFooter";const Le=i.forwardRef(({className:e,...t},r)=>a.jsx(f.Title,{ref:r,className:s("text-lg font-semibold leading-none tracking-tight",e),...t}));Le.displayName=f.Title.displayName;const Ae=i.forwardRef(({className:e,...t},r)=>a.jsx(f.Description,{ref:r,className:s("text-sm text-muted-foreground",e),...t}));Ae.displayName=f.Description.displayName;const Yt=g.Root,Xt=g.Trigger,$t=g.Group,Qt=g.Portal,Zt=g.Sub,Jt=g.RadioGroup,ze=i.forwardRef(({className:e,inset:t,children:r,...d},n)=>a.jsxs(g.SubTrigger,{ref:n,className:s("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...d,children:[r,a.jsx(z.ChevronRight,{className:"ml-auto h-4 w-4"})]}));ze.displayName=g.SubTrigger.displayName;const je=i.forwardRef(({className:e,style:t,...r},d)=>a.jsx(g.SubContent,{ref:d,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),style:O("popover",t),...r}));je.displayName=g.SubContent.displayName;const Oe=i.forwardRef(({className:e,sideOffset:t=4,style:r,...d},n)=>a.jsx(g.Portal,{children:a.jsx(g.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),style:O("popover",r),...d})}));Oe.displayName=g.Content.displayName;const Fe=i.forwardRef(({className:e,inset:t,...r},d)=>a.jsx(g.Item,{ref:d,className:s("relative flex cursor-default select-none items-center 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",t&&"pl-8",e),...r}));Fe.displayName=g.Item.displayName;const Ee=i.forwardRef(({className:e,children:t,checked:r,...d},n)=>a.jsxs(g.CheckboxItem,{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),checked:r,...d,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(g.ItemIndicator,{children:a.jsx(z.Check,{className:"h-4 w-4"})})}),t]}));Ee.displayName=g.CheckboxItem.displayName;const Be=i.forwardRef(({className:e,children:t,...r},d)=>a.jsxs(g.RadioItem,{ref:d,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),...r,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(g.ItemIndicator,{children:a.jsx(z.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));Be.displayName=g.RadioItem.displayName;const qe=i.forwardRef(({className:e,inset:t,...r},d)=>a.jsx(g.Label,{ref:d,className:s("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...r}));qe.displayName=g.Label.displayName;const He=i.forwardRef(({className:e,...t},r)=>a.jsx(g.Separator,{ref:r,className:s("-mx-1 my-1 h-px bg-muted",e),...t}));He.displayName=g.Separator.displayName;const Ve=({className:e,...t})=>a.jsx("span",{className:s("ml-auto text-xs tracking-widest opacity-60",e),...t});Ve.displayName="DropdownMenuShortcut";const Ge=i.forwardRef(({eyebrow:e,title:t,description:r,actions:d,className:n,...l},m)=>a.jsxs("div",{ref:m,className:s("flex flex-col gap-3 sm:flex-row sm:items-end sm:justify-between",n),...l,children:[a.jsxs("div",{className:"space-y-2",children:[e?a.jsx("span",{className:"text-xs font-semibold uppercase tracking-[0.2em] text-muted-foreground",children:e}):null,a.jsxs("div",{className:"space-y-2",children:[a.jsx("h2",{className:"text-3xl font-semibold tracking-tight text-foreground sm:text-4xl",children:t}),r?a.jsx("p",{className:"max-w-2xl text-sm text-muted-foreground sm:text-base",children:r}):null]})]}),d?a.jsx("div",{className:"flex items-center gap-3",children:d}):null]}));Ge.displayName="SectionHeading";const Kt={complete:"border-success/40 bg-success/15 text-success-foreground",current:"border-primary/40 bg-primary/10 text-primary",upcoming:"border-outline/60 bg-surface-subtle text-muted-foreground"},Rt={complete:a.jsx(I,{variant:"success",children:"完了"}),current:a.jsx(I,{variant:"info",children:"進行中"}),upcoming:a.jsx(I,{variant:"neutral",children:"準備中"})},Ue=i.forwardRef(({steps:e,className:t,...r},d)=>a.jsx("ol",{ref:d,className:s("grid grid-cols-3 gap-3 rounded-xl border border-outline/60 bg-surface-subtle p-4 shadow-sm",t),...r,children:e.map(n=>{const l=n.state??"upcoming";return a.jsxs("li",{className:s("rounded-lg border p-4 transition-colors",Kt[l]),"data-state":l,children:[a.jsxs("div",{className:"flex items-center justify-between gap-2",children:[a.jsx("span",{className:"text-sm font-semibold tracking-wide text-foreground",children:n.title}),Rt[l]]}),n.description?a.jsx("p",{className:"mt-2 text-xs text-muted-foreground",children:n.description}):null]},n.id)})}));Ue.displayName="StepIndicator";const We=i.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:s("animate-shimmer rounded-md bg-surface-subtle/80 bg-gradient-to-r from-surface-subtle via-surface-raised/80 to-surface-subtle",e),...t}));We.displayName="Skeleton";const Ye=v.Provider,Q=i.forwardRef(({className:e,...t},r)=>a.jsx(v.Viewport,{ref:r,className:s("fixed left-4 right-4 bottom-4 z-[100] flex max-h-[calc(100vh-2rem)] flex-col gap-3 p-0 sm:left-auto sm:right-6 sm:bottom-6 sm:w-[380px]",e),...t}));Q.displayName=v.Viewport.displayName;const ea=C.cva("group pointer-events-auto relative flex w-full items-start gap-3 overflow-hidden rounded-xl border p-4 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border-gray-200 bg-white text-gray-950 dark:border-gray-800 dark:bg-gray-950 dark:text-gray-50",destructive:"destructive group border-red-500 bg-red-500 text-gray-50 dark:border-red-900 dark:bg-red-900 dark:text-gray-50",info:"border-blue-200 bg-blue-50 text-blue-900 dark:border-blue-900 dark:bg-blue-950 dark:text-blue-50",success:"border-green-200 bg-green-50 text-green-900 dark:border-green-900 dark:bg-green-950 dark:text-green-50",warning:"border-yellow-200 bg-yellow-50 text-yellow-900 dark:border-yellow-900 dark:bg-yellow-950 dark:text-yellow-50",loading:"border-gray-200 bg-gray-50 text-gray-900 dark:border-gray-800 dark:bg-gray-900 dark:text-gray-50 shadow-md animate-pulse"}},defaultVariants:{variant:"default"}}),Z=i.forwardRef(({className:e,variant:t,...r},d)=>a.jsx(v.Root,{ref:d,className:s(ea({variant:t}),e),...r}));Z.displayName=v.Root.displayName;const Xe=i.forwardRef(({className:e,...t},r)=>a.jsx(v.Action,{ref:r,className:s("inline-flex h-9 shrink-0 items-center justify-center gap-2 rounded-full border border-outline/60 bg-transparent px-3 text-sm font-medium transition-colors hover:bg-foreground/10 focus:outline-none focus:ring-2 focus:ring-focus-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-destructive/40 group-[.destructive]:hover:bg-destructive/20 group-[.destructive]:focus:ring-destructive group-[.info]:border-info/50 group-[.success]:border-success/50 group-[.warning]:border-warning/60",e),...t}));Xe.displayName=v.Action.displayName;const J=i.forwardRef(({className:e,...t},r)=>a.jsx(v.Close,{ref:r,className:s("shrink-0 rounded-full p-1.5 text-foreground/60 opacity-70 transition-opacity hover:opacity-100 hover:text-foreground focus:outline-none focus:ring-2 focus:ring-focus-ring focus:ring-offset-2 group-[.destructive]:text-destructive-foreground group-[.destructive]:hover:text-destructive-foreground/80 group-[.info]:text-info-foreground group-[.success]:text-success-foreground group-[.warning]:text-warning-foreground",e),"toast-close":"",...t,children:a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4",children:[a.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),a.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}));J.displayName=v.Close.displayName;const K=i.forwardRef(({className:e,...t},r)=>a.jsx(v.Title,{ref:r,className:s("flex items-center gap-2 text-sm font-semibold",e),...t}));K.displayName=v.Title.displayName;const R=i.forwardRef(({className:e,...t},r)=>a.jsx(v.Description,{ref:r,className:s("text-sm text-foreground/80",e),...t}));R.displayName=v.Description.displayName;const ta=5,aa=5e3;let ee=0;function ra(){return ee=(ee+1)%Number.MAX_VALUE,ee.toString()}const te=new Map,$e=e=>{if(te.has(e))return;const t=setTimeout(()=>{te.delete(e),L({type:"REMOVE_TOAST",toastId:e})},aa);te.set(e,t)},oa=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,ta)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(r=>r.id===t.toast.id?{...r,...t.toast}:r)};case"DISMISS_TOAST":{const{toastId:r}=t;return r?$e(r):e.toasts.forEach(d=>{$e(d.id)}),{...e,toasts:e.toasts.map(d=>d.id===r||r===void 0?{...d,open:!1}:d)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(r=>r.id!==t.toastId)}}},E=[];let B={toasts:[]};function L(e){B=oa(B,e),E.forEach(t=>{t(B)})}function Qe({...e}){const t=ra(),r=n=>L({type:"UPDATE_TOAST",toast:{...n,id:t}}),d=()=>L({type:"DISMISS_TOAST",toastId:t});return L({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:n=>{n||d()}}}),{id:t,dismiss:d,update:r}}function Ze(){const[e,t]=i.useState(B);return i.useEffect(()=>(E.push(t),()=>{const r=E.indexOf(t);r>-1&&E.splice(r,1)}),[e]),{...e,toast:Qe,dismiss:r=>L({type:"DISMISS_TOAST",toastId:r})}}function sa(){const{toasts:e}=Ze();return a.jsxs(Ye,{children:[e.map(function({id:t,title:r,description:d,action:n,...l}){return a.jsxs(Z,{...l,children:[a.jsxs("div",{className:"grid gap-1 flex-1 min-w-0",children:[r&&a.jsx(K,{children:r}),d&&a.jsx(R,{children:d})]}),n,a.jsx(J,{})]},t)}),a.jsx(Q,{})]})}const da=C.cva("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive",info:"border-blue-500/50 text-blue-700 dark:border-blue-500 [&>svg]:text-blue-700 dark:text-blue-400 dark:[&>svg]:text-blue-400",success:"border-green-500/50 text-green-700 dark:border-green-500 [&>svg]:text-green-700 dark:text-green-400 dark:[&>svg]:text-green-400",warning:"border-yellow-500/50 text-yellow-700 dark:border-yellow-500 [&>svg]:text-yellow-700 dark:text-yellow-400 dark:[&>svg]:text-yellow-400"}},defaultVariants:{variant:"default"}}),Je=w.forwardRef(({className:e,variant:t,...r},d)=>a.jsx("div",{ref:d,role:"alert",className:s(da({variant:t}),e),...r}));Je.displayName="Alert";const Ke=w.forwardRef(({className:e,...t},r)=>a.jsx("h5",{ref:r,className:s("mb-1 font-medium leading-none tracking-tight",e),...t}));Ke.displayName="AlertTitle";const Re=w.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:s("text-sm [&_p]:leading-relaxed",e),...t}));Re.displayName="AlertDescription";const ia=N.Root,et=i.forwardRef(({className:e,...t},r)=>a.jsx(N.List,{ref:r,className:s("inline-flex h-10 items-center justify-center rounded-md bg-surface-raised p-1 text-muted-foreground border border-outline/20",e),...t}));et.displayName=N.List.displayName;const tt=i.forwardRef(({className:e,...t},r)=>a.jsx(N.Trigger,{ref:r,className:s("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50","state-active:bg-background state-active:text-foreground state-active:font-semibold state-active:shadow-sm",e),...t}));tt.displayName=N.Trigger.displayName;const at=i.forwardRef(({className:e,...t},r)=>a.jsx(N.Content,{ref:r,className:s("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));at.displayName=N.Content.displayName;const na=()=>a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4 shrink-0 transition-transform duration-200",children:a.jsx("polyline",{points:"6 9 12 15 18 9"})}),la=T.Root,rt=i.forwardRef(({className:e,...t},r)=>a.jsx(T.Item,{ref:r,className:s("border-b",e),...t}));rt.displayName="AccordionItem";const ot=i.forwardRef(({className:e,children:t,...r},d)=>a.jsx(T.Header,{className:"flex",children:a.jsxs(T.Trigger,{ref:d,className:s("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...r,children:[t,a.jsx(na,{})]})}));ot.displayName=T.Trigger.displayName;const st=i.forwardRef(({className:e,children:t,...r},d)=>a.jsx(T.Content,{ref:d,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...r,children:a.jsx("div",{className:s("pb-4 pt-0",e),children:t})}));st.displayName=T.Content.displayName;const ae="__EMPTY__";function ca({value:e="",onValueChange:t,options:r,placeholder:d="選択してください",emptyText:n="該当なし",className:l="",disabled:m=!1,allowCustom:c=!1}){const[p,b]=w.useState(!1),[x,k]=w.useState(e||""),H=r.some(y=>y.value===e),Da=()=>{c&&(p?(b(!1),x&&t&&t(x)):(b(!0),k(e||"")))},Pa=y=>{y==="__custom__"?(b(!0),k("")):t?.(y===ae?"":y)},_a=y=>{const kt=y.target.value;k(kt),t?.(kt)};if(p||c&&!H&&e)return a.jsxs("div",{className:`flex gap-2 ${l}`,children:[a.jsx(G,{value:x,onChange:_a,placeholder:d,disabled:m,className:"flex-1"}),c&&a.jsx("button",{type:"button",onClick:Da,className:"px-3 py-2 text-sm border border-gray-300 rounded hover:bg-gray-50",disabled:m,title:"プルダウンに戻る",children:"↓"})]});const Ma=e===""?ae:e;return a.jsx("div",{className:l,children:a.jsxs(Se,{value:Ma,onValueChange:Pa,disabled:m,children:[a.jsx(U,{className:"w-full",children:a.jsx(ke,{placeholder:d})}),a.jsx(X,{children:r.length===0?a.jsx("div",{className:"px-2 py-1.5 text-sm text-gray-500",children:n}):a.jsxs(a.Fragment,{children:[r.map(y=>a.jsx(F,{value:y.value===""?ae:y.value,children:y.label},y.value)),c&&a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"border-t my-1"}),a.jsx(F,{value:"__custom__",children:"✏️ 手動入力..."})]})]})})]})})}const fa={sm:"h-8 w-8 text-xs",md:"h-10 w-10 text-sm",lg:"h-12 w-12 text-base",xl:"h-16 w-16 text-lg"},dt=i.forwardRef(({src:e,alt:t,size:r="md",fallback:d,className:n,...l},m)=>{const[c,p]=i.useState(!1),[b,x]=i.useState(!1);i.useEffect(()=>{p(!1),x(!1)},[e]);const k=e&&!c,H=!e||c||!b;return a.jsxs("div",{ref:m,className:s("relative inline-flex items-center justify-center overflow-hidden rounded-full bg-muted",fa[r],n),...l,children:[k&&a.jsx("img",{src:e,alt:t||"Avatar",className:s("h-full w-full object-cover",b?"opacity-100":"opacity-0"),onLoad:()=>x(!0),onError:()=>p(!0),loading:l.loading}),H&&d&&a.jsx("span",{className:"font-medium text-muted-foreground uppercase",children:d}),H&&!d&&a.jsx("svg",{className:"h-full w-full text-muted-foreground",fill:"currentColor",viewBox:"0 0 24 24",children:a.jsx("path",{d:"M24 20.993V24H0v-2.996A14.977 14.977 0 0112.004 15c4.904 0 9.26 2.354 11.996 5.993zM16.002 8.999a4 4 0 11-8 0 4 4 0 018 0z"})})]})});dt.displayName="Avatar";const ga=_.Root,ua=_.Trigger,it=i.forwardRef(({className:e,align:t="center",sideOffset:r=4,...d},n)=>a.jsx(_.Portal,{children:a.jsx(_.Content,{ref:n,align:t,sideOffset:r,className:s("z-50 w-72 rounded-md border 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),...d})}));it.displayName=_.Content.displayName;const ma=C.cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),nt=i.forwardRef(({className:e,...t},r)=>a.jsx(le.Root,{ref:r,className:s(ma(),e),...t}));nt.displayName=le.Root.displayName;const lt=i.forwardRef(({className:e,...t},r)=>a.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:r,...t}));lt.displayName="Textarea";const ct=i.forwardRef(({className:e,...t},r)=>a.jsx(V.Root,{className:s("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-gray-950 focus-visible:ring-offset-2 focus-visible:ring-offset-white disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-gray-900 data-[state=unchecked]:bg-gray-200 dark:focus-visible:ring-gray-300 dark:focus-visible:ring-offset-gray-950 dark:data-[state=checked]:bg-gray-50 dark:data-[state=unchecked]:bg-gray-600",e),...t,ref:r,children:a.jsx(V.Thumb,{className:s("pointer-events-none block h-5 w-5 rounded-full bg-white shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));ct.displayName=V.Root.displayName;const pa=P.Provider,ba=P.Root,ha=P.Trigger,ft=i.forwardRef(({className:e,sideOffset:t=4,...r},d)=>a.jsx(P.Portal,{children:a.jsx(P.Content,{ref:d,sideOffset:t,className:s("z-50 overflow-hidden rounded-md bg-gray-900 px-3 py-1.5 text-xs text-gray-50 animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:bg-gray-50 dark:text-gray-900",e),...r})}));ft.displayName=P.Content.displayName;const gt=i.forwardRef(({className:e,children:t,...r},d)=>a.jsxs(S.Root,{ref:d,className:s("relative overflow-hidden",e),...r,children:[a.jsx(S.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),a.jsx(re,{}),a.jsx(S.Corner,{})]}));gt.displayName=S.Root.displayName;const re=i.forwardRef(({className:e,orientation:t="vertical",...r},d)=>a.jsx(S.ScrollAreaScrollbar,{ref:d,orientation:t,className:s("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...r,children:a.jsx(S.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));re.displayName=S.ScrollAreaScrollbar.displayName;const va={sm:"h-4 w-4 border-2",md:"h-6 w-6 border-2",lg:"h-8 w-8 border-3",xl:"h-12 w-12 border-4"},ut=i.forwardRef(({size:e="md",className:t,...r},d)=>a.jsx("div",{ref:d,className:s("inline-block animate-spin rounded-full border-solid border-current border-r-transparent align-[-0.125em] motion-reduce:animate-[spin_1.5s_linear_infinite]",va[e],t),role:"status",...r,children:a.jsx("span",{className:"sr-only",children:"Loading..."})}));ut.displayName="Spinner";const mt=i.forwardRef(({className:e,orientation:t="horizontal",decorative:r=!0,...d},n)=>a.jsx(ce.Root,{ref:n,decorative:r,orientation:t,className:s("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...d}));mt.displayName=ce.Root.displayName;const pt=i.forwardRef(({className:e,...t},r)=>a.jsxs(M.Root,{ref:r,className:s("relative flex w-full touch-none select-none items-center",e),...t,children:[a.jsx(M.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-gray-200 dark:bg-gray-800",children:a.jsx(M.Range,{className:"absolute h-full bg-gray-900 dark:bg-gray-50"})}),a.jsx(M.Thumb,{className:"block h-5 w-5 rounded-full border-2 border-gray-900 bg-white ring-offset-white transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-gray-950 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 dark:border-gray-50 dark:bg-gray-950 dark:ring-offset-gray-950 dark:focus-visible:ring-gray-300"})]}));pt.displayName=M.Root.displayName;const oe=i.forwardRef(({className:e,...t},r)=>a.jsx("div",{className:"relative w-full overflow-auto",children:a.jsx("table",{ref:r,className:s("w-full caption-bottom text-sm",e),...t})}));oe.displayName="Table";const se=i.forwardRef(({className:e,...t},r)=>a.jsx("thead",{ref:r,className:s("[&_tr]:border-b",e),...t}));se.displayName="TableHeader";const de=i.forwardRef(({className:e,...t},r)=>a.jsx("tbody",{ref:r,className:s("[&_tr:last-child]:border-0",e),...t}));de.displayName="TableBody";const bt=i.forwardRef(({className:e,...t},r)=>a.jsx("tfoot",{ref:r,className:s("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));bt.displayName="TableFooter";const A=i.forwardRef(({className:e,...t},r)=>a.jsx("tr",{ref:r,className:s("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));A.displayName="TableRow";const ie=i.forwardRef(({className:e,...t},r)=>a.jsx("th",{ref:r,className:s("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));ie.displayName="TableHead";const q=i.forwardRef(({className:e,...t},r)=>a.jsx("td",{ref:r,className:s("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));q.displayName="TableCell";const ht=i.forwardRef(({className:e,...t},r)=>a.jsx("caption",{ref:r,className:s("mt-4 text-sm text-muted-foreground",e),...t}));ht.displayName="TableCaption";function ya({columns:e,data:t,onRowClick:r}){const[d,n]=i.useState([]),l=D.useReactTable({data:t,columns:e,getCoreRowModel:D.getCoreRowModel(),getPaginationRowModel:D.getPaginationRowModel(),onSortingChange:n,getSortedRowModel:D.getSortedRowModel(),state:{sorting:d}});return a.jsxs("div",{children:[a.jsx("div",{className:"rounded-md border",children:a.jsxs(oe,{children:[a.jsx(se,{children:l.getHeaderGroups().map(m=>a.jsx(A,{children:m.headers.map(c=>a.jsx(ie,{children:c.isPlaceholder?null:D.flexRender(c.column.columnDef.header,c.getContext())},c.id))},m.id))}),a.jsx(de,{children:l.getRowModel().rows?.length?l.getRowModel().rows.map(m=>a.jsx(A,{"data-state":m.getIsSelected()&&"selected",onClick:()=>r&&r(m.original),className:r?"cursor-pointer":"",children:m.getVisibleCells().map(c=>a.jsx(q,{children:D.flexRender(c.column.columnDef.cell,c.getContext())},c.id))},m.id)):a.jsx(A,{children:a.jsx(q,{colSpan:e.length,className:"h-24 text-center",children:"No results."})})})]})}),a.jsxs("div",{className:"flex items-center justify-end space-x-2 py-4",children:[a.jsx(j,{variant:"outline",size:"sm",onClick:()=>l.previousPage(),disabled:!l.getCanPreviousPage(),children:"Previous"}),a.jsx(j,{variant:"outline",size:"sm",onClick:()=>l.nextPage(),disabled:!l.getCanNextPage(),children:"Next"})]})]})}const wa=f.Root,xa=f.Trigger,Na=f.Close,vt=f.Portal,ne=i.forwardRef(({className:e,...t},r)=>a.jsx(f.Overlay,{className:s("fixed top-0 right-0 bottom-0 left-0 z-50 bg-black/80 state-open:animate-fade-in state-closed:animate-fade-out",e),...t,ref:r}));ne.displayName=f.Overlay.displayName;const Ta=C.cva("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out state-closed:duration-300 state-open:duration-500",{variants:{side:{top:"left-0 right-0 top-0 border-b state-closed:animate-slide-out-left state-open:animate-slide-in-left",bottom:"left-0 right-0 bottom-0 border-t state-closed:animate-slide-out-left state-open:animate-slide-in-left",left:"top-0 bottom-0 left-0 h-full w-3/4 border-r state-closed:animate-slide-out-left state-open:animate-slide-in-left sm:max-w-sm",right:"top-0 bottom-0 right-0 h-full w-3/4 border-l state-closed:animate-slide-out-right state-open:animate-slide-in-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),yt=i.forwardRef(({side:e="right",className:t,children:r,...d},n)=>a.jsxs(vt,{children:[a.jsx(ne,{}),a.jsxs(f.Content,{ref:n,className:s(Ta({side:e}),t),...d,children:[a.jsxs(f.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[a.jsx(z.X,{className:"h-4 w-4"}),a.jsx("span",{className:"sr-only",children:"Close"})]}),r]})]}));yt.displayName=f.Content.displayName;const wt=({className:e,...t})=>a.jsx("div",{className:s("flex flex-col space-y-2 text-center sm:text-left",e),...t});wt.displayName="SheetHeader";const xt=({className:e,...t})=>a.jsx("div",{className:s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});xt.displayName="SheetFooter";const Nt=i.forwardRef(({className:e,...t},r)=>a.jsx(f.Title,{ref:r,className:s("text-lg font-semibold text-foreground",e),...t}));Nt.displayName=f.Title.displayName;const Tt=i.forwardRef(({className:e,...t},r)=>a.jsx(f.Description,{ref:r,className:s("text-sm text-muted-foreground",e),...t}));Tt.displayName=f.Description.displayName;const Sa={theme:"system",setTheme:()=>null},St=w.createContext(Sa);function ka({children:e,defaultTheme:t="system",storageKey:r="mirel-ui-theme",...d}){const[n,l]=w.useState(()=>localStorage.getItem(r)||t);w.useEffect(()=>{const c=window.document.documentElement;if(c.classList.remove("light","dark"),n==="system"){const p=window.matchMedia("(prefers-color-scheme: dark)"),b=p.matches?"dark":"light";c.classList.add(b);const x=()=>{c.classList.remove("light","dark");const k=p.matches?"dark":"light";c.classList.add(k)};return p.addEventListener("change",x),()=>p.removeEventListener("change",x)}c.classList.add(n)},[n]);const m={theme:n,setTheme:c=>{localStorage.setItem(r,c),l(c)}};return a.jsx(St.Provider,{...d,value:m,children:e})}const Ca=()=>{const e=w.useContext(St);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e};o.Accordion=la,o.AccordionContent=st,o.AccordionItem=rt,o.AccordionTrigger=ot,o.Alert=Je,o.AlertDescription=Re,o.AlertTitle=Ke,o.Avatar=dt,o.Badge=I,o.Button=j,o.Card=ge,o.CardContent=be,o.CardDescription=pe,o.CardFooter=he,o.CardHeader=ue,o.CardTitle=me,o.Combobox=ca,o.DataTable=ya,o.Dialog=Gt,o.DialogClose=Wt,o.DialogContent=_e,o.DialogDescription=Ae,o.DialogFooter=Ie,o.DialogHeader=Me,o.DialogOverlay=$,o.DialogPortal=Pe,o.DialogTitle=Le,o.DialogTrigger=Ut,o.DropdownMenu=Yt,o.DropdownMenuCheckboxItem=Ee,o.DropdownMenuContent=Oe,o.DropdownMenuGroup=$t,o.DropdownMenuItem=Fe,o.DropdownMenuLabel=qe,o.DropdownMenuPortal=Qt,o.DropdownMenuRadioGroup=Jt,o.DropdownMenuRadioItem=Be,o.DropdownMenuSeparator=He,o.DropdownMenuShortcut=Ve,o.DropdownMenuSub=Zt,o.DropdownMenuSubContent=je,o.DropdownMenuSubTrigger=ze,o.DropdownMenuTrigger=Xt,o.FormError=Ne,o.FormField=ye,o.FormHelper=xe,o.FormLabel=we,o.FormRequiredMark=Te,o.Input=G,o.Label=nt,o.Popover=ga,o.PopoverContent=it,o.PopoverTrigger=ua,o.ScrollArea=gt,o.ScrollBar=re,o.SectionHeading=Ge,o.Select=Se,o.SelectContent=X,o.SelectGroup=Vt,o.SelectItem=F,o.SelectLabel=Ce,o.SelectScrollDownButton=Y,o.SelectScrollUpButton=W,o.SelectSeparator=De,o.SelectTrigger=U,o.SelectValue=ke,o.Separator=mt,o.Sheet=wa,o.SheetClose=Na,o.SheetContent=yt,o.SheetDescription=Tt,o.SheetFooter=xt,o.SheetHeader=wt,o.SheetOverlay=ne,o.SheetPortal=vt,o.SheetTitle=Nt,o.SheetTrigger=xa,o.Skeleton=We,o.Slider=pt,o.Spinner=ut,o.StepIndicator=Ue,o.Switch=ct,o.Table=oe,o.TableBody=de,o.TableCaption=ht,o.TableCell=q,o.TableFooter=bt,o.TableHead=ie,o.TableHeader=se,o.TableRow=A,o.Tabs=ia,o.TabsContent=at,o.TabsList=et,o.TabsTrigger=tt,o.Textarea=lt,o.ThemeProvider=ka,o.Toast=Z,o.ToastAction=Xe,o.ToastClose=J,o.ToastDescription=R,o.ToastProvider=Ye,o.ToastTitle=K,o.ToastViewport=Q,o.Toaster=sa,o.Tooltip=ba,o.TooltipContent=ft,o.TooltipProvider=pa,o.TooltipTrigger=ha,o.badgeVariants=ve,o.buttonVariants=fe,o.cn=s,o.toast=Qe,o.useTheme=Ca,o.useToast=Ze,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})}));
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require(`react`),require(`@radix-ui/react-slot`),require(`class-variance-authority`),require(`clsx`),require(`tailwind-merge`),require(`react/jsx-runtime`),require(`@radix-ui/react-select`),require(`@radix-ui/react-dialog`),require(`@radix-ui/react-dropdown-menu`),require(`lucide-react`),require(`@radix-ui/react-toast`),require(`@radix-ui/react-tabs`),require(`@radix-ui/react-accordion`),require(`@radix-ui/react-popover`),require(`@radix-ui/react-label`),require(`@radix-ui/react-switch`),require(`@radix-ui/react-tooltip`),require(`@radix-ui/react-scroll-area`),require(`@radix-ui/react-separator`),require(`@radix-ui/react-slider`),require(`@tanstack/react-table`)):typeof define==`function`&&define.amd?define([`exports`,`react`,`@radix-ui/react-slot`,`class-variance-authority`,`clsx`,`tailwind-merge`,`react/jsx-runtime`,`@radix-ui/react-select`,`@radix-ui/react-dialog`,`@radix-ui/react-dropdown-menu`,`lucide-react`,`@radix-ui/react-toast`,`@radix-ui/react-tabs`,`@radix-ui/react-accordion`,`@radix-ui/react-popover`,`@radix-ui/react-label`,`@radix-ui/react-switch`,`@radix-ui/react-tooltip`,`@radix-ui/react-scroll-area`,`@radix-ui/react-separator`,`@radix-ui/react-slider`,`@tanstack/react-table`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.MirelUICore={},e.React,e._radix_ui_react_slot,e.class_variance_authority,e.clsx,e.tailwind_merge,e.react_jsx_runtime,e._radix_ui_react_select,e._radix_ui_react_dialog,e._radix_ui_react_dropdown_menu,e.lucide_react,e._radix_ui_react_toast,e._radix_ui_react_tabs,e._radix_ui_react_accordion,e._radix_ui_react_popover,e._radix_ui_react_label,e._radix_ui_react_switch,e._radix_ui_react_tooltip,e._radix_ui_react_scroll_area,e._radix_ui_react_separator,e._radix_ui_react_slider,e._tanstack_react_table))})(this,function(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var ee=Object.create,te=Object.defineProperty,ne=Object.getOwnPropertyDescriptor,re=Object.getOwnPropertyNames,ie=Object.getPrototypeOf,ae=Object.prototype.hasOwnProperty,oe=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=re(t),a=0,o=i.length,s;a<o;a++)s=i[a],!ae.call(e,s)&&s!==n&&te(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=ne(t,s))||r.enumerable});return e},S=(e,t,n)=>(n=e==null?{}:ee(ie(e)),oe(t||!e||!e.__esModule?te(n,`default`,{value:e,enumerable:!0}):n,e));t=S(t),s=S(s),c=S(c),l=S(l),d=S(d),f=S(f),p=S(p),m=S(m),h=S(h),g=S(g),_=S(_),v=S(v),y=S(y),b=S(b);function C(...e){return(0,a.twMerge)((0,i.clsx)(e))}var se=(0,r.cva)(`inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium shadow-sm ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0`,{variants:{variant:{default:`bg-gray-900 text-gray-50 hover:bg-gray-900/90 dark:bg-gray-700 dark:text-gray-50 dark:hover:bg-gray-600`,destructive:`bg-red-500 text-gray-50 hover:bg-red-500/90 dark:bg-red-900 dark:text-gray-50 dark:hover:bg-red-900/90`,outline:`border border-gray-200 bg-gray-50 hover:bg-gray-100 hover:text-gray-900 dark:border-gray-700 dark:bg-gray-950 dark:hover:bg-gray-800 dark:hover:text-gray-50`,secondary:`bg-gray-100 text-gray-900 hover:bg-gray-100/80 dark:bg-gray-800 dark:text-gray-50 dark:hover:bg-gray-800/80`,ghost:`hover:bg-gray-100 hover:text-gray-900 dark:hover:bg-gray-800 dark:hover:text-gray-50`,link:`text-gray-900 underline-offset-4 hover:underline dark:text-gray-50`,subtle:`bg-gray-100 text-gray-900 shadow-none hover:bg-gray-200 border border-gray-200/50 dark:bg-gray-800 dark:text-gray-50 dark:hover:bg-gray-700 dark:border-gray-700`,soft:`bg-gray-100/50 text-gray-900 hover:bg-gray-100/75 dark:bg-gray-800/50 dark:text-gray-50 dark:hover:bg-gray-800/75`,elevated:`bg-white text-gray-900 shadow-md hover:shadow-lg border border-gray-200/60 dark:bg-gray-950 dark:text-gray-50 dark:border-gray-700`},size:{default:`h-10 px-4 py-2`,sm:`h-9 rounded-md px-3`,lg:`h-11 rounded-md px-8`,icon:`h-10 w-10`,pill:`h-10 rounded-full px-6`,square:`size-9 rounded-md relative [&_svg]:absolute [&_svg]:top-0 [&_svg]:right-0 [&_svg]:bottom-0 [&_svg]:left-0 [&_svg]:m-auto [&_svg]:size-4`}},defaultVariants:{variant:`default`,size:`default`}}),w=t.forwardRef(({className:e,variant:t,size:r,asChild:i=!1,...a},s)=>(0,o.jsx)(i?n.Slot:`button`,{className:C(se({variant:t,size:r,className:e})),ref:s,...a}));w.displayName=`Button`;var T=t.forwardRef(({className:e,type:t,...n},r)=>(0,o.jsx)(`input`,{type:t,className:C(`flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background 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-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm`,e),ref:r,...n}));T.displayName=`Input`;var ce=t.forwardRef(({className:e,...t},n)=>(0,o.jsx)(`div`,{ref:n,className:C(`group rounded-2xl border border-outline/60 bg-surface shadow-md transition-shadow hover:shadow-lg`,e),...t}));ce.displayName=`Card`;var le=t.forwardRef(({className:e,...t},n)=>(0,o.jsx)(`div`,{ref:n,className:C(`space-y-1.5 p-4`,e),...t}));le.displayName=`CardHeader`;var ue=t.forwardRef(({className:e,...t},n)=>(0,o.jsx)(`h3`,{ref:n,className:C(`text-lg font-semibold tracking-tight text-foreground`,e),...t}));ue.displayName=`CardTitle`;var de=t.forwardRef(({className:e,...t},n)=>(0,o.jsx)(`p`,{ref:n,className:C(`text-sm text-muted-foreground`,e),...t}));de.displayName=`CardDescription`;var fe=t.forwardRef(({className:e,...t},n)=>(0,o.jsx)(`div`,{ref:n,className:C(`p-4 pt-0`,e),...t}));fe.displayName=`CardContent`;var pe=t.forwardRef(({className:e,...t},n)=>(0,o.jsx)(`div`,{ref:n,className:C(`flex flex-col gap-2 border-t border-outline/40 bg-surface-subtle/60 p-4 pt-4 sm:flex-row sm:items-center sm:justify-between`,e),...t}));pe.displayName=`CardFooter`;var me=(0,r.cva)(`inline-flex items-center gap-1 rounded-full font-medium tracking-wide uppercase`,{variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-primary/80`,secondary:`bg-secondary text-secondary-foreground hover:bg-secondary/80`,neutral:`bg-surface-subtle text-muted-foreground ring-1 ring-inset ring-outline/60`,outline:`border border-dashed border-outline/80 bg-transparent text-muted-foreground shadow-none`,info:`bg-info text-info-foreground`,success:`bg-success text-success-foreground`,warning:`bg-warning text-warning-foreground`,destructive:`bg-destructive text-destructive-foreground`},size:{default:`px-3 py-0.5 text-xs`,sm:`px-2 py-0.5 text-[10px]`,lg:`px-4 py-1 text-sm`}},defaultVariants:{variant:`neutral`,size:`default`}}),E=t.forwardRef(({className:e,variant:t,...n},r)=>(0,o.jsx)(`span`,{ref:r,className:C(`select-none`,me({variant:t,className:e})),...n}));E.displayName=`Badge`;var he=t.forwardRef(({className:e,...t},n)=>(0,o.jsx)(`div`,{ref:n,className:C(`space-y-2`,e),...t}));he.displayName=`FormField`;var ge=t.forwardRef(({className:e,requiredMark:t,children:n,...r},i)=>(0,o.jsxs)(`label`,{ref:i,className:C(`flex items-center gap-2 text-sm font-medium text-foreground`,e),...r,children:[(0,o.jsx)(`span`,{children:n}),t??null]}));ge.displayName=`FormLabel`;var _e=t.forwardRef(({className:e,...t},n)=>(0,o.jsx)(`p`,{ref:n,className:C(`text-xs text-muted-foreground`,e),...t}));_e.displayName=`FormHelper`;var ve=t.forwardRef(({className:e,...t},n)=>(0,o.jsx)(`p`,{ref:n,className:C(`flex items-center gap-1 text-xs text-destructive`,e),...t}));ve.displayName=`FormError`;var ye=({children:e=`*`,className:t})=>(0,o.jsx)(`span`,{className:C(`text-destructive`,t),"aria-hidden":!0,children:e});ye.displayName=`FormRequiredMark`;function D(e,t){return{backgroundColor:e===`dialog`?`hsl(var(--background))`:`hsl(var(--popover))`,color:e===`dialog`?`hsl(var(--foreground))`:`hsl(var(--popover-foreground))`,...t}}var be=s.Root,xe=s.Group,Se=s.Value,O=t.forwardRef(({className:e,children:t,...n},r)=>(0,o.jsxs)(s.Trigger,{ref:r,className:C(`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),...n,children:[t,(0,o.jsx)(s.Icon,{asChild:!0,children:(0,o.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`h-4 w-4 opacity-50`,children:(0,o.jsx)(`polyline`,{points:`6 9 12 15 18 9`})})})]}));O.displayName=s.Trigger.displayName;var k=t.forwardRef(({className:e,...t},n)=>(0,o.jsx)(s.ScrollUpButton,{ref:n,className:C(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,o.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`h-4 w-4`,children:(0,o.jsx)(`polyline`,{points:`18 15 12 9 6 15`})})}));k.displayName=s.ScrollUpButton.displayName;var A=t.forwardRef(({className:e,...t},n)=>(0,o.jsx)(s.ScrollDownButton,{ref:n,className:C(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,o.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`h-4 w-4`,children:(0,o.jsx)(`polyline`,{points:`6 9 12 15 18 9`})})}));A.displayName=s.ScrollDownButton.displayName;var j=t.forwardRef(({className:e,children:t,position:n=`popper`,style:r,...i},a)=>(0,o.jsx)(s.Portal,{children:(0,o.jsxs)(s.Content,{ref:a,className:C(`relative z-[200] max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover/100 backdrop-blur-sm 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`,n===`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:n,style:D(`popover`,r),...i,children:[(0,o.jsx)(k,{}),(0,o.jsx)(s.Viewport,{className:C(`p-1 bg-popover/100`,n===`popper`&&`h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]`),children:t}),(0,o.jsx)(A,{})]})}));j.displayName=s.Content.displayName;var Ce=t.forwardRef(({className:e,...t},n)=>(0,o.jsx)(s.Label,{ref:n,className:C(`py-1.5 pl-8 pr-2 text-sm font-semibold`,e),...t}));Ce.displayName=s.Label.displayName;var M=t.forwardRef(({className:e,children:t,...n},r)=>(0,o.jsxs)(s.Item,{ref:r,className:C(`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),...n,children:[(0,o.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,o.jsx)(s.ItemIndicator,{children:(0,o.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`h-4 w-4`,children:(0,o.jsx)(`polyline`,{points:`20 6 9 17 4 12`})})})}),(0,o.jsx)(s.ItemText,{children:t})]}));M.displayName=s.Item.displayName;var we=t.forwardRef(({className:e,...t},n)=>(0,o.jsx)(s.Separator,{ref:n,className:C(`-mx-1 my-1 h-px bg-muted`,e),...t}));we.displayName=s.Separator.displayName;var Te=c.Root,Ee=c.Trigger,De=c.Portal,Oe=c.Close,N=t.forwardRef(({className:e,style:t,...n},r)=>(0,o.jsx)(c.Overlay,{ref:r,className:C(`fixed top-0 right-0 bottom-0 left-0 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),style:{backgroundColor:`rgba(0, 0, 0, 0.8)`,zIndex:110,pointerEvents:`auto`,...t},...n}));N.displayName=c.Overlay.displayName;var ke=t.forwardRef(({className:e,children:t,overlayClassName:n,style:r,onPointerDownOutside:i,onInteractOutside:a,...s},l)=>(0,o.jsxs)(De,{children:[(0,o.jsx)(N,{className:n}),(0,o.jsxs)(c.Content,{ref:l,className:C(`fixed grid w-full max-w-lg 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 sm:rounded-lg`,e),style:D(`dialog`,{left:`50%`,top:`50%`,transform:`translate(-50%, -50%)`,zIndex:120,isolation:`isolate`,...r}),onPointerDownOutside:e=>{let t=e.target;(t.closest(`[data-radix-select-content]`)||t.closest(`[role="listbox"]`)||t.closest(`[data-radix-popper-content-wrapper]`))&&e.preventDefault(),i?.(e)},onInteractOutside:e=>{let t=e.target;(t.closest(`[data-radix-select-content]`)||t.closest(`[role="listbox"]`)||t.closest(`[data-radix-popper-content-wrapper]`))&&e.preventDefault(),a?.(e)},...s,children:[t,(0,o.jsx)(c.Close,{className:`absolute right-4 top-4 inline-flex h-9 w-9 items-center justify-center rounded-full border border-border/50 bg-background text-foreground/80 shadow-sm transition-all hover:border-destructive hover:bg-destructive hover:text-white focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none`,"aria-label":`閉じる`,children:(0,o.jsx)(`svg`,{width:`18`,height:`18`,viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:(0,o.jsx)(`path`,{d:`M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})})]})]}));ke.displayName=c.Content.displayName;var Ae=({className:e,...t})=>(0,o.jsx)(`div`,{className:C(`flex flex-col space-y-1.5 text-center sm:text-left`,e),...t});Ae.displayName=`DialogHeader`;var je=({className:e,...t})=>(0,o.jsx)(`div`,{className:C(`flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2`,e),...t});je.displayName=`DialogFooter`;var Me=t.forwardRef(({className:e,...t},n)=>(0,o.jsx)(c.Title,{ref:n,className:C(`text-lg font-semibold leading-none tracking-tight`,e),...t}));Me.displayName=c.Title.displayName;var Ne=t.forwardRef(({className:e,...t},n)=>(0,o.jsx)(c.Description,{ref:n,className:C(`text-sm text-muted-foreground`,e),...t}));Ne.displayName=c.Description.displayName;var Pe=l.Root,Fe=l.Trigger,Ie=l.Group,Le=l.Portal,Re=l.Sub,ze=l.RadioGroup,Be=t.forwardRef(({className:e,inset:t,children:n,...r},i)=>(0,o.jsxs)(l.SubTrigger,{ref:i,className:C(`flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent`,t&&`pl-8`,e),...r,children:[n,(0,o.jsx)(u.ChevronRight,{className:`ml-auto h-4 w-4`})]}));Be.displayName=l.SubTrigger.displayName;var Ve=t.forwardRef(({className:e,style:t,...n},r)=>(0,o.jsx)(l.SubContent,{ref:r,className:C(`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),style:D(`popover`,t),...n}));Ve.displayName=l.SubContent.displayName;var He=t.forwardRef(({className:e,sideOffset:t=4,style:n,...r},i)=>(0,o.jsx)(l.Portal,{children:(0,o.jsx)(l.Content,{ref:i,sideOffset:t,className:C(`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),style:D(`popover`,n),...r})}));He.displayName=l.Content.displayName;var Ue=t.forwardRef(({className:e,inset:t,...n},r)=>(0,o.jsx)(l.Item,{ref:r,className:C(`relative flex cursor-default select-none items-center 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`,t&&`pl-8`,e),...n}));Ue.displayName=l.Item.displayName;var We=t.forwardRef(({className:e,children:t,checked:n,...r},i)=>(0,o.jsxs)(l.CheckboxItem,{ref:i,className:C(`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:n,...r,children:[(0,o.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,o.jsx)(l.ItemIndicator,{children:(0,o.jsx)(u.Check,{className:`h-4 w-4`})})}),t]}));We.displayName=l.CheckboxItem.displayName;var Ge=t.forwardRef(({className:e,children:t,...n},r)=>(0,o.jsxs)(l.RadioItem,{ref:r,className:C(`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),...n,children:[(0,o.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,o.jsx)(l.ItemIndicator,{children:(0,o.jsx)(u.Circle,{className:`h-2 w-2 fill-current`})})}),t]}));Ge.displayName=l.RadioItem.displayName;var Ke=t.forwardRef(({className:e,inset:t,...n},r)=>(0,o.jsx)(l.Label,{ref:r,className:C(`px-2 py-1.5 text-sm font-semibold`,t&&`pl-8`,e),...n}));Ke.displayName=l.Label.displayName;var qe=t.forwardRef(({className:e,...t},n)=>(0,o.jsx)(l.Separator,{ref:n,className:C(`-mx-1 my-1 h-px bg-muted`,e),...t}));qe.displayName=l.Separator.displayName;var Je=({className:e,...t})=>(0,o.jsx)(`span`,{className:C(`ml-auto text-xs tracking-widest opacity-60`,e),...t});Je.displayName=`DropdownMenuShortcut`;var Ye=t.forwardRef(({eyebrow:e,title:t,description:n,actions:r,className:i,...a},s)=>(0,o.jsxs)(`div`,{ref:s,className:C(`flex flex-col gap-3 sm:flex-row sm:items-end sm:justify-between`,i),...a,children:[(0,o.jsxs)(`div`,{className:`space-y-2`,children:[e?(0,o.jsx)(`span`,{className:`text-xs font-semibold uppercase tracking-[0.2em] text-muted-foreground`,children:e}):null,(0,o.jsxs)(`div`,{className:`space-y-2`,children:[(0,o.jsx)(`h2`,{className:`text-3xl font-semibold tracking-tight text-foreground sm:text-4xl`,children:t}),n?(0,o.jsx)(`p`,{className:`max-w-2xl text-sm text-muted-foreground sm:text-base`,children:n}):null]})]}),r?(0,o.jsx)(`div`,{className:`flex items-center gap-3`,children:r}):null]}));Ye.displayName=`SectionHeading`;var Xe={complete:`border-success/40 bg-success/15 text-success-foreground`,current:`border-primary/40 bg-primary/10 text-primary`,upcoming:`border-outline/60 bg-surface-subtle text-muted-foreground`},Ze={complete:(0,o.jsx)(E,{variant:`success`,children:`完了`}),current:(0,o.jsx)(E,{variant:`info`,children:`進行中`}),upcoming:(0,o.jsx)(E,{variant:`neutral`,children:`準備中`})},Qe=t.forwardRef(({steps:e,className:t,...n},r)=>(0,o.jsx)(`ol`,{ref:r,className:C(`grid grid-cols-3 gap-3 rounded-xl border border-outline/60 bg-surface-subtle p-4 shadow-sm`,t),...n,children:e.map(e=>{let t=e.state??`upcoming`;return(0,o.jsxs)(`li`,{className:C(`rounded-lg border p-4 transition-colors`,Xe[t]),"data-state":t,children:[(0,o.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,o.jsx)(`span`,{className:`text-sm font-semibold tracking-wide text-foreground`,children:e.title}),Ze[t]]}),e.description?(0,o.jsx)(`p`,{className:`mt-2 text-xs text-muted-foreground`,children:e.description}):null]},e.id)})}));Qe.displayName=`StepIndicator`;var $e=t.forwardRef(({className:e,...t},n)=>(0,o.jsx)(`div`,{ref:n,className:C(`animate-shimmer rounded-md bg-surface-subtle/80 bg-gradient-to-r from-surface-subtle via-surface-raised/80 to-surface-subtle`,e),...t}));$e.displayName=`Skeleton`;var et=d.Provider,P=t.forwardRef(({className:e,...t},n)=>(0,o.jsx)(d.Viewport,{ref:n,className:C(`fixed left-4 right-4 bottom-4 z-[100] flex max-h-[calc(100vh-2rem)] flex-col gap-3 p-0 sm:left-auto sm:right-6 sm:bottom-6 sm:w-[380px]`,e),...t}));P.displayName=d.Viewport.displayName;var tt=(0,r.cva)(`group pointer-events-auto relative flex w-full items-start gap-3 overflow-hidden rounded-xl border p-4 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full`,{variants:{variant:{default:`border-gray-200 bg-white text-gray-950 dark:border-gray-800 dark:bg-gray-950 dark:text-gray-50`,destructive:`destructive group border-red-500 bg-red-500 text-gray-50 dark:border-red-900 dark:bg-red-900 dark:text-gray-50`,info:`border-blue-200 bg-blue-50 text-blue-900 dark:border-blue-900 dark:bg-blue-950 dark:text-blue-50`,success:`border-green-200 bg-green-50 text-green-900 dark:border-green-900 dark:bg-green-950 dark:text-green-50`,warning:`border-yellow-200 bg-yellow-50 text-yellow-900 dark:border-yellow-900 dark:bg-yellow-950 dark:text-yellow-50`,loading:`border-gray-200 bg-gray-50 text-gray-900 dark:border-gray-800 dark:bg-gray-900 dark:text-gray-50 shadow-md animate-pulse`}},defaultVariants:{variant:`default`}}),F=t.forwardRef(({className:e,variant:t,...n},r)=>(0,o.jsx)(d.Root,{ref:r,className:C(tt({variant:t}),e),...n}));F.displayName=d.Root.displayName;var nt=t.forwardRef(({className:e,...t},n)=>(0,o.jsx)(d.Action,{ref:n,className:C(`inline-flex h-9 shrink-0 items-center justify-center gap-2 rounded-full border border-outline/60 bg-transparent px-3 text-sm font-medium transition-colors hover:bg-foreground/10 focus:outline-none focus:ring-2 focus:ring-focus-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-destructive/40 group-[.destructive]:hover:bg-destructive/20 group-[.destructive]:focus:ring-destructive group-[.info]:border-info/50 group-[.success]:border-success/50 group-[.warning]:border-warning/60`,e),...t}));nt.displayName=d.Action.displayName;var I=t.forwardRef(({className:e,...t},n)=>(0,o.jsx)(d.Close,{ref:n,className:C(`shrink-0 rounded-full p-1.5 text-foreground/60 opacity-70 transition-opacity hover:opacity-100 hover:text-foreground focus:outline-none focus:ring-2 focus:ring-focus-ring focus:ring-offset-2 group-[.destructive]:text-destructive-foreground group-[.destructive]:hover:text-destructive-foreground/80 group-[.info]:text-info-foreground group-[.success]:text-success-foreground group-[.warning]:text-warning-foreground`,e),"toast-close":``,...t,children:(0,o.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`h-4 w-4`,children:[(0,o.jsx)(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),(0,o.jsx)(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})]})}));I.displayName=d.Close.displayName;var L=t.forwardRef(({className:e,...t},n)=>(0,o.jsx)(d.Title,{ref:n,className:C(`flex items-center gap-2 text-sm font-semibold`,e),...t}));L.displayName=d.Title.displayName;var R=t.forwardRef(({className:e,...t},n)=>(0,o.jsx)(d.Description,{ref:n,className:C(`text-sm text-foreground/80`,e),...t}));R.displayName=d.Description.displayName;var rt=5,it=5e3,z=0;function at(){return z=(z+1)%Number.MAX_VALUE,z.toString()}var B=new Map,ot=e=>{if(B.has(e))return;let t=setTimeout(()=>{B.delete(e),U({type:`REMOVE_TOAST`,toastId:e})},it);B.set(e,t)},st=(e,t)=>{switch(t.type){case`ADD_TOAST`:return{...e,toasts:[t.toast,...e.toasts].slice(0,rt)};case`UPDATE_TOAST`:return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case`DISMISS_TOAST`:{let{toastId:n}=t;return n?ot(n):e.toasts.forEach(e=>{ot(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===n||n===void 0?{...e,open:!1}:e)}}case`REMOVE_TOAST`:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},V=[],H={toasts:[]};function U(e){H=st(H,e),V.forEach(e=>{e(H)})}function ct({...e}){let t=at(),n=e=>U({type:`UPDATE_TOAST`,toast:{...e,id:t}}),r=()=>U({type:`DISMISS_TOAST`,toastId:t});return U({type:`ADD_TOAST`,toast:{...e,id:t,open:!0,onOpenChange:e=>{e||r()}}}),{id:t,dismiss:r,update:n}}function lt(){let[e,n]=t.useState(H);return t.useEffect(()=>(V.push(n),()=>{let e=V.indexOf(n);e>-1&&V.splice(e,1)}),[e]),{...e,toast:ct,dismiss:e=>U({type:`DISMISS_TOAST`,toastId:e})}}function ut(){let{toasts:e}=lt();return(0,o.jsxs)(et,{children:[e.map(function({id:e,title:t,description:n,action:r,...i}){return(0,o.jsxs)(F,{...i,children:[(0,o.jsxs)(`div`,{className:`grid gap-1 flex-1 min-w-0`,children:[t&&(0,o.jsx)(L,{children:t}),n&&(0,o.jsx)(R,{children:n})]}),r,(0,o.jsx)(I,{})]},e)}),(0,o.jsx)(P,{})]})}var dt=(0,r.cva)(`relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground`,{variants:{variant:{default:`bg-background text-foreground`,destructive:`border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive`,info:`border-blue-500/50 text-blue-700 dark:border-blue-500 [&>svg]:text-blue-700 dark:text-blue-400 dark:[&>svg]:text-blue-400`,success:`border-green-500/50 text-green-700 dark:border-green-500 [&>svg]:text-green-700 dark:text-green-400 dark:[&>svg]:text-green-400`,warning:`border-yellow-500/50 text-yellow-700 dark:border-yellow-500 [&>svg]:text-yellow-700 dark:text-yellow-400 dark:[&>svg]:text-yellow-400`}},defaultVariants:{variant:`default`}}),ft=t.default.forwardRef(({className:e,variant:t,...n},r)=>(0,o.jsx)(`div`,{ref:r,role:`alert`,className:C(dt({variant:t}),e),...n}));ft.displayName=`Alert`;var pt=t.default.forwardRef(({className:e,...t},n)=>(0,o.jsx)(`h5`,{ref:n,className:C(`mb-1 font-medium leading-none tracking-tight`,e),...t}));pt.displayName=`AlertTitle`;var mt=t.default.forwardRef(({className:e,...t},n)=>(0,o.jsx)(`div`,{ref:n,className:C(`text-sm [&_p]:leading-relaxed`,e),...t}));mt.displayName=`AlertDescription`;var ht=f.Root,gt=t.forwardRef(({className:e,...t},n)=>(0,o.jsx)(f.List,{ref:n,className:C(`inline-flex h-10 items-center justify-center rounded-md bg-surface-raised p-1 text-muted-foreground border border-outline/20`,e),...t}));gt.displayName=f.List.displayName;var _t=t.forwardRef(({className:e,...t},n)=>(0,o.jsx)(f.Trigger,{ref:n,className:C(`inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50`,`state-active:bg-background state-active:text-foreground state-active:font-semibold state-active:shadow-sm`,e),...t}));_t.displayName=f.Trigger.displayName;var vt=t.forwardRef(({className:e,...t},n)=>(0,o.jsx)(f.Content,{ref:n,className:C(`mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2`,e),...t}));vt.displayName=f.Content.displayName;var yt=()=>(0,o.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`h-4 w-4 shrink-0 transition-transform duration-200`,children:(0,o.jsx)(`polyline`,{points:`6 9 12 15 18 9`})}),bt=p.Root,xt=t.forwardRef(({className:e,...t},n)=>(0,o.jsx)(p.Item,{ref:n,className:C(`border-b`,e),...t}));xt.displayName=`AccordionItem`;var St=t.forwardRef(({className:e,children:t,...n},r)=>(0,o.jsx)(p.Header,{className:`flex`,children:(0,o.jsxs)(p.Trigger,{ref:r,className:C(`flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180`,e),...n,children:[t,(0,o.jsx)(yt,{})]})}));St.displayName=p.Trigger.displayName;var Ct=t.forwardRef(({className:e,children:t,...n},r)=>(0,o.jsx)(p.Content,{ref:r,className:`overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down`,...n,children:(0,o.jsx)(`div`,{className:C(`pb-4 pt-0`,e),children:t})}));Ct.displayName=p.Content.displayName;var W=`__EMPTY__`;function wt({value:e=``,onValueChange:n,options:r,placeholder:i=`選択してください`,emptyText:a=`該当なし`,className:s=``,disabled:c=!1,allowCustom:l=!1}){let[u,d]=(0,t.useState)(!1),[f,p]=(0,t.useState)(e||``),m=r.some(t=>t.value===e);return u||l&&!m&&e?(0,o.jsxs)(`div`,{className:`flex gap-2 ${s}`,children:[(0,o.jsx)(T,{value:f,onChange:e=>{let t=e.target.value;p(t),n?.(t)},placeholder:i,disabled:c,className:`flex-1`}),l&&(0,o.jsx)(`button`,{type:`button`,onClick:()=>{l&&(u?(d(!1),f&&n&&n(f)):(d(!0),p(e||``)))},className:`px-3 py-2 text-sm border border-gray-300 rounded hover:bg-gray-50`,disabled:c,title:`プルダウンに戻る`,children:`↓`})]}):(0,o.jsx)(`div`,{className:s,children:(0,o.jsxs)(be,{value:e===``?W:e,onValueChange:e=>{e===`__custom__`?(d(!0),p(``)):e===W?n?.(``):n?.(e)},disabled:c,children:[(0,o.jsx)(O,{className:`w-full`,children:(0,o.jsx)(Se,{placeholder:i})}),(0,o.jsx)(j,{children:r.length===0?(0,o.jsx)(`div`,{className:`px-2 py-1.5 text-sm text-gray-500`,children:a}):(0,o.jsxs)(o.Fragment,{children:[r.map(e=>(0,o.jsx)(M,{value:e.value===``?W:e.value,children:e.label},e.value)),l&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(`div`,{className:`border-t my-1`}),(0,o.jsx)(M,{value:`__custom__`,children:`✏️ 手動入力...`})]})]})})]})})}var Tt={sm:`h-8 w-8 text-xs`,md:`h-10 w-10 text-sm`,lg:`h-12 w-12 text-base`,xl:`h-16 w-16 text-lg`},Et=t.forwardRef(({src:e,alt:n,size:r=`md`,fallback:i,className:a,...s},c)=>{let[l,u]=t.useState(!1),[d,f]=t.useState(!1);t.useEffect(()=>{u(!1),f(!1)},[e]);let p=e&&!l,m=!e||l||!d;return(0,o.jsxs)(`div`,{ref:c,className:C(`relative inline-flex items-center justify-center overflow-hidden rounded-full bg-muted`,Tt[r],a),...s,children:[p&&(0,o.jsx)(`img`,{src:e,alt:n||`Avatar`,className:C(`h-full w-full object-cover`,d?`opacity-100`:`opacity-0`),onLoad:()=>f(!0),onError:()=>u(!0),loading:s.loading}),m&&i&&(0,o.jsx)(`span`,{className:`font-medium text-muted-foreground uppercase`,children:i}),m&&!i&&(0,o.jsx)(`svg`,{className:`h-full w-full text-muted-foreground`,fill:`currentColor`,viewBox:`0 0 24 24`,children:(0,o.jsx)(`path`,{d:`M24 20.993V24H0v-2.996A14.977 14.977 0 0112.004 15c4.904 0 9.26 2.354 11.996 5.993zM16.002 8.999a4 4 0 11-8 0 4 4 0 018 0z`})})]})});Et.displayName=`Avatar`;var Dt=m.Root,Ot=m.Trigger,kt=t.forwardRef(({className:e,align:t=`center`,sideOffset:n=4,...r},i)=>(0,o.jsx)(m.Portal,{children:(0,o.jsx)(m.Content,{ref:i,align:t,sideOffset:n,className:C(`z-50 w-72 rounded-md border 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),...r})}));kt.displayName=m.Content.displayName;var At=(0,r.cva)(`text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70`),jt=t.forwardRef(({className:e,...t},n)=>(0,o.jsx)(h.Root,{ref:n,className:C(At(),e),...t}));jt.displayName=h.Root.displayName;var Mt=t.forwardRef(({className:e,...t},n)=>(0,o.jsx)(`textarea`,{className:C(`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:n,...t}));Mt.displayName=`Textarea`;var Nt=t.forwardRef(({className:e,...t},n)=>(0,o.jsx)(g.Root,{className:C(`peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-gray-950 focus-visible:ring-offset-2 focus-visible:ring-offset-white disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-gray-900 data-[state=unchecked]:bg-gray-200 dark:focus-visible:ring-gray-300 dark:focus-visible:ring-offset-gray-950 dark:data-[state=checked]:bg-gray-50 dark:data-[state=unchecked]:bg-gray-600`,e),...t,ref:n,children:(0,o.jsx)(g.Thumb,{className:C(`pointer-events-none block h-5 w-5 rounded-full bg-white shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0`)})}));Nt.displayName=g.Root.displayName;var Pt=_.Provider,Ft=_.Root,It=_.Trigger,Lt=t.forwardRef(({className:e,sideOffset:t=4,...n},r)=>(0,o.jsx)(_.Portal,{children:(0,o.jsx)(_.Content,{ref:r,sideOffset:t,className:C(`z-50 overflow-hidden rounded-md bg-gray-900 px-3 py-1.5 text-xs text-gray-50 animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:bg-gray-50 dark:text-gray-900`,e),...n})}));Lt.displayName=_.Content.displayName;var Rt=t.forwardRef(({className:e,children:t,...n},r)=>(0,o.jsxs)(v.Root,{ref:r,className:C(`relative overflow-hidden`,e),...n,children:[(0,o.jsx)(v.Viewport,{className:`h-full w-full rounded-[inherit]`,children:t}),(0,o.jsx)(G,{}),(0,o.jsx)(v.Corner,{})]}));Rt.displayName=v.Root.displayName;var G=t.forwardRef(({className:e,orientation:t=`vertical`,...n},r)=>(0,o.jsx)(v.ScrollAreaScrollbar,{ref:r,orientation:t,className:C(`flex touch-none select-none transition-colors`,t===`vertical`&&`h-full w-2.5 border-l border-l-transparent p-[1px]`,t===`horizontal`&&`h-2.5 flex-col border-t border-t-transparent p-[1px]`,e),...n,children:(0,o.jsx)(v.ScrollAreaThumb,{className:`relative flex-1 rounded-full bg-border`})}));G.displayName=v.ScrollAreaScrollbar.displayName;var zt={sm:`h-4 w-4 border-2`,md:`h-6 w-6 border-2`,lg:`h-8 w-8 border-3`,xl:`h-12 w-12 border-4`},K=t.forwardRef(({size:e=`md`,className:t,...n},r)=>(0,o.jsx)(`div`,{ref:r,className:C(`inline-block animate-spin rounded-full border-solid border-current border-r-transparent align-[-0.125em] motion-reduce:animate-[spin_1.5s_linear_infinite]`,zt[e],t),role:`status`,...n,children:(0,o.jsx)(`span`,{className:`sr-only`,children:`Loading...`})}));K.displayName=`Spinner`;var Bt=t.forwardRef(({className:e,orientation:t=`horizontal`,decorative:n=!0,...r},i)=>(0,o.jsx)(y.Root,{ref:i,decorative:n,orientation:t,className:C(`shrink-0 bg-border`,t===`horizontal`?`h-[1px] w-full`:`h-full w-[1px]`,e),...r}));Bt.displayName=y.Root.displayName;var Vt=t.forwardRef(({className:e,...t},n)=>(0,o.jsxs)(b.Root,{ref:n,className:C(`relative flex w-full touch-none select-none items-center`,e),...t,children:[(0,o.jsx)(b.Track,{className:`relative h-2 w-full grow overflow-hidden rounded-full bg-gray-200 dark:bg-gray-800`,children:(0,o.jsx)(b.Range,{className:`absolute h-full bg-gray-900 dark:bg-gray-50`})}),(0,o.jsx)(b.Thumb,{className:`block h-5 w-5 rounded-full border-2 border-gray-900 bg-white ring-offset-white transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-gray-950 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 dark:border-gray-50 dark:bg-gray-950 dark:ring-offset-gray-950 dark:focus-visible:ring-gray-300`})]}));Vt.displayName=b.Root.displayName;var q=t.forwardRef(({className:e,...t},n)=>(0,o.jsx)(`div`,{className:`relative w-full overflow-auto`,children:(0,o.jsx)(`table`,{ref:n,className:C(`w-full caption-bottom text-sm`,e),...t})}));q.displayName=`Table`;var J=t.forwardRef(({className:e,...t},n)=>(0,o.jsx)(`thead`,{ref:n,className:C(`[&_tr]:border-b`,e),...t}));J.displayName=`TableHeader`;var Y=t.forwardRef(({className:e,...t},n)=>(0,o.jsx)(`tbody`,{ref:n,className:C(`[&_tr:last-child]:border-0`,e),...t}));Y.displayName=`TableBody`;var Ht=t.forwardRef(({className:e,...t},n)=>(0,o.jsx)(`tfoot`,{ref:n,className:C(`border-t bg-muted/50 font-medium [&>tr]:last:border-b-0`,e),...t}));Ht.displayName=`TableFooter`;var X=t.forwardRef(({className:e,...t},n)=>(0,o.jsx)(`tr`,{ref:n,className:C(`border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted`,e),...t}));X.displayName=`TableRow`;var Z=t.forwardRef(({className:e,...t},n)=>(0,o.jsx)(`th`,{ref:n,className:C(`h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0`,e),...t}));Z.displayName=`TableHead`;var Q=t.forwardRef(({className:e,...t},n)=>(0,o.jsx)(`td`,{ref:n,className:C(`p-4 align-middle [&:has([role=checkbox])]:pr-0`,e),...t}));Q.displayName=`TableCell`;var Ut=t.forwardRef(({className:e,...t},n)=>(0,o.jsx)(`caption`,{ref:n,className:C(`mt-4 text-sm text-muted-foreground`,e),...t}));Ut.displayName=`TableCaption`;function Wt({columns:e,data:n,onRowClick:r}){let[i,a]=t.useState([]),s=(0,x.useReactTable)({data:n,columns:e,getCoreRowModel:(0,x.getCoreRowModel)(),getPaginationRowModel:(0,x.getPaginationRowModel)(),onSortingChange:a,getSortedRowModel:(0,x.getSortedRowModel)(),state:{sorting:i}});return(0,o.jsxs)(`div`,{children:[(0,o.jsx)(`div`,{className:`rounded-md border`,children:(0,o.jsxs)(q,{children:[(0,o.jsx)(J,{children:s.getHeaderGroups().map(e=>(0,o.jsx)(X,{children:e.headers.map(e=>(0,o.jsx)(Z,{children:e.isPlaceholder?null:(0,x.flexRender)(e.column.columnDef.header,e.getContext())},e.id))},e.id))}),(0,o.jsx)(Y,{children:s.getRowModel().rows?.length?s.getRowModel().rows.map(e=>(0,o.jsx)(X,{"data-state":e.getIsSelected()&&`selected`,onClick:()=>r&&r(e.original),className:r?`cursor-pointer`:``,children:e.getVisibleCells().map(e=>(0,o.jsx)(Q,{children:(0,x.flexRender)(e.column.columnDef.cell,e.getContext())},e.id))},e.id)):(0,o.jsx)(X,{children:(0,o.jsx)(Q,{colSpan:e.length,className:`h-24 text-center`,children:`No results.`})})})]})}),(0,o.jsxs)(`div`,{className:`flex items-center justify-end space-x-2 py-4`,children:[(0,o.jsx)(w,{variant:`outline`,size:`sm`,onClick:()=>s.previousPage(),disabled:!s.getCanPreviousPage(),children:`Previous`}),(0,o.jsx)(w,{variant:`outline`,size:`sm`,onClick:()=>s.nextPage(),disabled:!s.getCanNextPage(),children:`Next`})]})]})}var Gt=c.Root,Kt=c.Trigger,qt=c.Close,Jt=c.Portal,$=t.forwardRef(({className:e,...t},n)=>(0,o.jsx)(c.Overlay,{className:C(`fixed top-0 right-0 bottom-0 left-0 z-50 bg-black/80 state-open:animate-fade-in state-closed:animate-fade-out`,e),...t,ref:n}));$.displayName=c.Overlay.displayName;var Yt=(0,r.cva)(`fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out state-closed:duration-300 state-open:duration-500`,{variants:{side:{top:`left-0 right-0 top-0 border-b state-closed:animate-slide-out-left state-open:animate-slide-in-left`,bottom:`left-0 right-0 bottom-0 border-t state-closed:animate-slide-out-left state-open:animate-slide-in-left`,left:`top-0 bottom-0 left-0 h-full w-3/4 border-r state-closed:animate-slide-out-left state-open:animate-slide-in-left sm:max-w-sm`,right:`top-0 bottom-0 right-0 h-full w-3/4 border-l state-closed:animate-slide-out-right state-open:animate-slide-in-right sm:max-w-sm`}},defaultVariants:{side:`right`}}),Xt=t.forwardRef(({side:e=`right`,className:t,children:n,...r},i)=>(0,o.jsxs)(Jt,{children:[(0,o.jsx)($,{}),(0,o.jsxs)(c.Content,{ref:i,className:C(Yt({side:e}),t),...r,children:[(0,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-secondary`,children:[(0,o.jsx)(u.X,{className:`h-4 w-4`}),(0,o.jsx)(`span`,{className:`sr-only`,children:`Close`})]}),n]})]}));Xt.displayName=c.Content.displayName;var Zt=({className:e,...t})=>(0,o.jsx)(`div`,{className:C(`flex flex-col space-y-2 text-center sm:text-left`,e),...t});Zt.displayName=`SheetHeader`;var Qt=({className:e,...t})=>(0,o.jsx)(`div`,{className:C(`flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2`,e),...t});Qt.displayName=`SheetFooter`;var $t=t.forwardRef(({className:e,...t},n)=>(0,o.jsx)(c.Title,{ref:n,className:C(`text-lg font-semibold text-foreground`,e),...t}));$t.displayName=c.Title.displayName;var en=t.forwardRef(({className:e,...t},n)=>(0,o.jsx)(c.Description,{ref:n,className:C(`text-sm text-muted-foreground`,e),...t}));en.displayName=c.Description.displayName;var tn=(0,t.createContext)({theme:`system`,setTheme:()=>null});function nn({children:e,defaultTheme:n=`system`,storageKey:r=`mirel-ui-theme`,...i}){let[a,s]=(0,t.useState)(()=>localStorage.getItem(r)||n);(0,t.useEffect)(()=>{let e=window.document.documentElement;if(e.classList.remove(`light`,`dark`),a===`system`){let t=window.matchMedia(`(prefers-color-scheme: dark)`),n=t.matches?`dark`:`light`;e.classList.add(n);let r=()=>{e.classList.remove(`light`,`dark`);let n=t.matches?`dark`:`light`;e.classList.add(n)};return t.addEventListener(`change`,r),()=>t.removeEventListener(`change`,r)}e.classList.add(a)},[a]);let c={theme:a,setTheme:e=>{localStorage.setItem(r,e),s(e)}};return(0,o.jsx)(tn.Provider,{...i,value:c,children:e})}e.Accordion=bt,e.AccordionContent=Ct,e.AccordionItem=xt,e.AccordionTrigger=St,e.Alert=ft,e.AlertDescription=mt,e.AlertTitle=pt,e.Avatar=Et,e.Badge=E,e.Button=w,e.Card=ce,e.CardContent=fe,e.CardDescription=de,e.CardFooter=pe,e.CardHeader=le,e.CardTitle=ue,e.Combobox=wt,e.DataTable=Wt,e.Dialog=Te,e.DialogClose=Oe,e.DialogContent=ke,e.DialogDescription=Ne,e.DialogFooter=je,e.DialogHeader=Ae,e.DialogOverlay=N,e.DialogPortal=De,e.DialogTitle=Me,e.DialogTrigger=Ee,e.DropdownMenu=Pe,e.DropdownMenuCheckboxItem=We,e.DropdownMenuContent=He,e.DropdownMenuGroup=Ie,e.DropdownMenuItem=Ue,e.DropdownMenuLabel=Ke,e.DropdownMenuPortal=Le,e.DropdownMenuRadioGroup=ze,e.DropdownMenuRadioItem=Ge,e.DropdownMenuSeparator=qe,e.DropdownMenuShortcut=Je,e.DropdownMenuSub=Re,e.DropdownMenuSubContent=Ve,e.DropdownMenuSubTrigger=Be,e.DropdownMenuTrigger=Fe,e.FormError=ve,e.FormField=he,e.FormHelper=_e,e.FormLabel=ge,e.FormRequiredMark=ye,e.Input=T,e.Label=jt,e.Popover=Dt,e.PopoverContent=kt,e.PopoverTrigger=Ot,e.ScrollArea=Rt,e.ScrollBar=G,e.SectionHeading=Ye,e.Select=be,e.SelectContent=j,e.SelectGroup=xe,e.SelectItem=M,e.SelectLabel=Ce,e.SelectScrollDownButton=A,e.SelectScrollUpButton=k,e.SelectSeparator=we,e.SelectTrigger=O,e.SelectValue=Se,e.Separator=Bt,e.Sheet=Gt,e.SheetClose=qt,e.SheetContent=Xt,e.SheetDescription=en,e.SheetFooter=Qt,e.SheetHeader=Zt,e.SheetOverlay=$,e.SheetPortal=Jt,e.SheetTitle=$t,e.SheetTrigger=Kt,e.Skeleton=$e,e.Slider=Vt,e.Spinner=K,e.StepIndicator=Qe,e.Switch=Nt,e.Table=q,e.TableBody=Y,e.TableCaption=Ut,e.TableCell=Q,e.TableFooter=Ht,e.TableHead=Z,e.TableHeader=J,e.TableRow=X,e.Tabs=ht,e.TabsContent=vt,e.TabsList=gt,e.TabsTrigger=_t,e.Textarea=Mt,e.ThemeProvider=nn,e.Toast=F,e.ToastAction=nt,e.ToastClose=I,e.ToastDescription=R,e.ToastProvider=et,e.ToastTitle=L,e.ToastViewport=P,e.Toaster=ut,e.Tooltip=Ft,e.TooltipContent=Lt,e.TooltipProvider=Pt,e.TooltipTrigger=It,e.badgeVariants=me,e.buttonVariants=se,e.cn=C,e.toast=ct,e.useTheme=()=>{let e=(0,t.useContext)(tn);if(e===void 0)throw Error(`useTheme must be used within a ThemeProvider`);return e},e.useToast=lt});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mireljs/ui-core",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.39",
|
|
4
4
|
"description": "mirel Design System - shadcn/ui + Radix UI wrapper",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -66,22 +66,22 @@
|
|
|
66
66
|
"@radix-ui/react-toast": "^1.2.15",
|
|
67
67
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
68
68
|
"@tanstack/react-table": "^8.21.3",
|
|
69
|
-
"@uiw/codemirror-theme-vscode": "^4.25.
|
|
69
|
+
"@uiw/codemirror-theme-vscode": "^4.25.8",
|
|
70
70
|
"class-variance-authority": "^0.7.1",
|
|
71
71
|
"clsx": "^2.1.1",
|
|
72
|
-
"lucide-react": "^0.
|
|
72
|
+
"lucide-react": "^0.577.0",
|
|
73
73
|
"tailwind-merge": "^3.5.0"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@testing-library/jest-dom": "^6.9.1",
|
|
77
77
|
"@testing-library/react": "^16.3.2",
|
|
78
|
-
"@types/node": "^25.3.
|
|
78
|
+
"@types/node": "^25.3.5",
|
|
79
79
|
"@types/react": "^19.2.14",
|
|
80
80
|
"@types/react-dom": "^19.2.3",
|
|
81
|
-
"happy-dom": "^20.
|
|
82
|
-
"postcss": "^8.5.
|
|
81
|
+
"happy-dom": "^20.8.3",
|
|
82
|
+
"postcss": "^8.5.8",
|
|
83
83
|
"typescript": "^5.9.3",
|
|
84
|
-
"vite": "^
|
|
84
|
+
"vite": "^8.0.0",
|
|
85
85
|
"vite-plugin-dts": "^4.5.4",
|
|
86
86
|
"@vitejs/plugin-react": "^5.1.4",
|
|
87
87
|
"vitest": "^4.0.18"
|