import{j as $}from"./jsx-runtime-5BUNAZ9W.js";import{c as u}from"./cn-466VSCev.js";import{$ as m,_ as v}from"./index-VfKohXEB.js";import{r as i}from"./index-4g5l5LRQ.js";const c="horizontal",h=["horizontal","vertical"],s=i.forwardRef((r,e)=>{const{decorative:o,orientation:a=c,...t}=r,n=l(a)?a:c,f=o?{role:"none"}:{"aria-orientation":n==="vertical"?n:void 0,role:"separator"};return i.createElement(m.div,v({"data-orientation":n},f,t,{ref:e}))});s.propTypes={orientation(r,e,o){const a=r[e],t=String(a);return a&&!l(a)?new Error(_(t,o)):null}};function _(r,e){return`Invalid prop \`orientation\` of value \`${r}\` supplied to \`${e}\`, expected one of:
  - horizontal
  - vertical

Defaulting to \`${c}\`.`}function l(r){return h.includes(r)}const p=s,d=i.forwardRef(({className:r,orientation:e="horizontal",decorative:o=!0,...a},t)=>$(p,{ref:t,decorative:o,orientation:e,className:u("shrink-0 bg-border",e==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",r),...a}));d.displayName=p.displayName;try{d.displayName="Separator",d.__docgenInfo={description:"",displayName:"Separator",props:{asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}export{d as S};
