dgz-ui
Version:
Custom ui library using React.js, Shadcn/ui, TailwindCSS, Typescript
2 lines (1 loc) • 1.09 kB
JavaScript
;const s=require("./jsx-runtime-h4oGeKUK.cjs"),f=require("react"),m=require("./index-9_bM8_1f.cjs"),v=require("./utils-BeXF6FlA.cjs");function O(r){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const e in r)if(e!=="default"){const o=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(t,e,o.get?o:{enumerable:!0,get:()=>r[e]})}}return t.default=r,Object.freeze(t)}const c=O(f);var x="Separator",i="horizontal",N=["horizontal","vertical"],l=c.forwardRef((r,t)=>{const{decorative:e,orientation:o=i,...a}=r,n=j(o)?o:i,d=e?{role:"none"}:{"aria-orientation":n==="vertical"?n:void 0,role:"separator"};return s.jsxRuntimeExports.jsx(m.Primitive.div,{"data-orientation":n,...d,...a,ref:t})});l.displayName=x;function j(r){return N.includes(r)}var u=l;const p=c.forwardRef(({className:r,orientation:t="horizontal",decorative:e=!0,...o},a)=>s.jsxRuntimeExports.jsx(u,{ref:a,decorative:e,orientation:t,className:v.cn("bg-border shrink-0",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",r),...o}));p.displayName=u.displayName;exports.Separator=p;