"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),c=require("../index-DnaHaH_0.js"),e=require("@spark-ui/internal-utils"),y=require("react"),z=require("../index-ChLwd62c.js");function E(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const i in t)if(i!=="default"){const r=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(o,i,r.get?r:{enumerable:!0,get:()=>t[i]})}}return o.default=t,Object.freeze(o)}const h=E(y);var x="Separator",m="horizontal",O=["horizontal","vertical"],u=h.forwardRef((t,o)=>{const{decorative:i,orientation:r=m,...a}=t,n=N(r)?r:m,s=i?{role:"none"}:{"aria-orientation":n==="vertical"?n:void 0,role:"separator"};return l.jsx(z.Primitive.div,{"data-orientation":n,...s,...a,ref:o})});u.displayName=x;function N(t){return O.includes(t)}var j=u;const D=[{intent:"current",isEmpty:!0,class:e.tw(["border-current"])},{intent:"current",isEmpty:!1,class:e.tw(["before:border-current after:border-current"])},{intent:"outline",isEmpty:!0,class:e.tw(["border-outline"])},{intent:"outline",isEmpty:!1,class:e.tw(["before:border-outline after:border-outline"])}],S=c.cva(["overflow-hidden group"],{variants:{isEmpty:{true:["border-solid"],false:["inline-flex items-center","after:border-solid before:border-solid"]},orientation:{vertical:["w-fit inline-flex"],horizontal:["w-full"]},writingMode:{"horizontal-tb":[],"vertical-lr":[]},alignment:{start:[],end:[],center:[]},intent:{current:[],outline:[]}},defaultVariants:{orientation:"horizontal",writingMode:"horizontal-tb",alignment:"center",intent:"outline"},compoundVariants:[{isEmpty:!0,orientation:"horizontal",class:e.tw(["my-lg border-t-sm"])},{isEmpty:!0,orientation:"vertical",class:e.tw(["mx-lg min-h-sz-24 border-l-sm"])},{isEmpty:!1,orientation:"horizontal",writingMode:"horizontal-tb",class:e.tw(["flex-row my-sm grow-0","before:border-t-sm","after:border-t-sm","*:px-lg"])},{isEmpty:!1,orientation:"vertical",writingMode:"horizontal-tb",class:e.tw(["flex-col mx-sm","before:border-l-sm","after:border-l-sm","*:py-lg"])},{isEmpty:!1,orientation:"vertical",writingMode:"vertical-lr",class:e.tw(["flex-col mx-sm","before:border-l-sm","after:border-l-sm","*:px-lg"])},{isEmpty:!1,orientation:"horizontal",alignment:"end",class:e.tw(["after:w-sz-40 before:grow after:grow-0"])},{isEmpty:!1,orientation:"horizontal",alignment:"start",class:e.tw(["before:w-sz-40 before:grow-0 after:grow"])},{isEmpty:!1,orientation:"horizontal",alignment:"center",class:e.tw(["justify-center before:grow after:grow"])},{isEmpty:!1,orientation:"vertical",alignment:"end",class:e.tw(["after:h-sz-40 before:grow after:grow-0 before:min-h-sz-40"])},{isEmpty:!1,orientation:"vertical",alignment:"start",class:e.tw(["before:h-sz-40 before:grow-0 after:grow after:min-h-sz-40"])},{isEmpty:!1,orientation:"vertical",alignment:"center",class:e.tw(["justify-center before:grow after:grow before:min-h-sz-40 after:min-h-sz-40"])},...D]}),p=({asChild:t,className:o,isDecorative:i=!1,children:r,orientation:a="horizontal",writingMode:n="horizontal-tb",alignment:f="center",intent:s="outline",ref:g,...w})=>{const v=t?!r?.props?.children:!r;return l.jsx(j,{"data-spark-component":"divider",asChild:t,className:c.cx(S({isEmpty:v,orientation:a,alignment:f,intent:s,writingMode:n}),o),orientation:a,ref:g,decorative:i,...w,"data-writing-mode":n,children:r})};p.displayName="Divider";const b=({children:t,ref:o,className:i,...r})=>t?l.jsx("span",{"data-spark-component":"divider-content",ref:o,...r,className:c.cx("group-data-[writing-mode=vertical-lr]:[writing-mode:vertical-lr]",i),children:t}):null;b.displayName="Divider.Content";const d=Object.assign(p,{Content:b});d.displayName="Divider";d.Content.displayName="Divider.Content";exports.Divider=d;
//# sourceMappingURL=index.js.map
