Files
adnexus/assets/select-CLfuir-h.js
2026-09-20 08:53:09 -07:00

2 lines
2.9 KiB
JavaScript

import{E as N,F as g,r,j as e,G as d,H as w,J as j,K as n,M as b,N as i,Q as S,U as v,W as c,X as m,Y as p,Z as f}from"./ui-SA1K2VdO.js";import{e as o}from"./index-BBRaFEzF.js";import{C as u,x as R,O as C}from"./utils-BOogt4zp.js";const V=N,L=g,I=r.forwardRef(({className:t,children:s,...a},l)=>e.jsxs(d,{ref:l,className:o("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",t),...a,children:[s,e.jsx(w,{asChild:!0,children:e.jsx(u,{className:"h-4 w-4 opacity-50"})})]}));I.displayName=d.displayName;const x=r.forwardRef(({className:t,...s},a)=>e.jsx(c,{ref:a,className:o("flex cursor-default items-center justify-center py-1",t),...s,children:e.jsx(C,{className:"h-4 w-4"})}));x.displayName=c.displayName;const h=r.forwardRef(({className:t,...s},a)=>e.jsx(m,{ref:a,className:o("flex cursor-default items-center justify-center py-1",t),...s,children:e.jsx(u,{className:"h-4 w-4"})}));h.displayName=m.displayName;const B=r.forwardRef(({className:t,children:s,position:a="popper",...l},y)=>e.jsx(j,{children:e.jsxs(n,{ref:y,className:o("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:a,...l,children:[e.jsx(x,{}),e.jsx(b,{className:o("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:s}),e.jsx(h,{})]})}));B.displayName=n.displayName;const U=r.forwardRef(({className:t,...s},a)=>e.jsx(p,{ref:a,className:o("py-1.5 pl-8 pr-2 text-sm font-semibold",t),...s}));U.displayName=p.displayName;const k=r.forwardRef(({className:t,children:s,...a},l)=>e.jsxs(i,{ref:l,className:o("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",t),...a,children:[e.jsx("span",{className:"absolute left-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})]}));k.displayName=i.displayName;const z=r.forwardRef(({className:t,...s},a)=>e.jsx(f,{ref:a,className:o("-mx-1 my-1 h-px bg-muted",t),...s}));z.displayName=f.displayName;export{V as S,I as a,L as b,B as c,k as d};