2 lines
3.2 KiB
JavaScript
2 lines
3.2 KiB
JavaScript
import{r as o,j as e}from"./router-zNjPR4CY.js";import{aG as y,aH as b,aI as d,aJ as w,aK as N,aL as i,aM as j,aN as n,aO as S,aP as v,aQ as c,aR as m,aS as p,aT as f}from"./radix-C-ZuImoP.js";import{g as r}from"./index-CuOHsLf7.js";import{a as x,b as R,C as k}from"./icons-DTcdLw9j.js";const E=y,P=b,C=o.forwardRef(({className:t,children:s,...a},l)=>e.jsxs(d,{ref:l,className:r("flex h-9 w-full cursor-pointer items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),...a,children:[s,e.jsx(w,{asChild:!0,children:e.jsx(x,{className:"h-4 w-4 opacity-50"})})]}));C.displayName=d.displayName;const g=o.forwardRef(({className:t,...s},a)=>e.jsx(c,{ref:a,className:r("flex cursor-default items-center justify-center py-1",t),...s,children:e.jsx(k,{className:"h-4 w-4"})}));g.displayName=c.displayName;const u=o.forwardRef(({className:t,...s},a)=>e.jsx(m,{ref:a,className:r("flex cursor-default items-center justify-center py-1",t),...s,children:e.jsx(x,{className:"h-4 w-4"})}));u.displayName=m.displayName;const I=o.forwardRef(({className:t,children:s,position:a="popper",...l},h)=>e.jsx(N,{children:e.jsxs(i,{ref:h,className:r("relative z-[100] max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-hidden rounded-md border border-border bg-white dark:bg-gray-900 text-gray-900 dark:text-gray-100 shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-select-content-transform-origin]",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",t),position:a,...l,children:[e.jsx(g,{}),e.jsx(j,{className:r("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:s}),e.jsx(u,{})]})}));I.displayName=i.displayName;const B=o.forwardRef(({className:t,...s},a)=>e.jsx(p,{ref:a,className:r("px-2 py-1.5 text-sm font-semibold",t),...s}));B.displayName=p.displayName;const T=o.forwardRef(({className:t,children:s,...a},l)=>e.jsxs(n,{ref:l,className:r("relative flex w-full cursor-pointer select-none items-center rounded-sm py-2 pl-2 pr-8 text-sm outline-none bg-white dark:bg-gray-900 hover:bg-gray-100 dark:hover:bg-gray-800 focus:bg-gray-100 dark:focus:bg-gray-800 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...a,children:[e.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(S,{children:e.jsx(R,{className:"h-4 w-4"})})}),e.jsx(v,{children:s})]}));T.displayName=n.displayName;const z=o.forwardRef(({className:t,...s},a)=>e.jsx(f,{ref:a,className:r("-mx-1 my-1 h-px bg-muted",t),...s}));z.displayName=f.displayName;export{E as S,C as a,P as b,I as c,T as d};
|