import{l as u,p as v,g as b,s as g,c as t,o as s,t as r,u as e,b as m,z as y,x,y as h,N as z,C as _}from"./index-CdEV5Lsj.js";const B="UDivider",l={wrapper:{base:"flex",variants:{vertical:{true:"h-full w-fit",false:"w-full h-fit"},label:{true:"items-center justify-center"}},compoundVariants:[{vertical:!1,size:"xs",class:"py-2"},{vertical:!1,size:"sm",class:"py-3"},{vertical:!1,size:"md",class:"py-4"},{vertical:!1,size:"lg",class:"py-5"},{vertical:!1,size:"xl",class:"py-6"},{vertical:!1,padding:"after",class:"pt-0"},{vertical:!1,padding:"before",class:"pb-0"},{vertical:!0,size:"xs",class:"px-2"},{vertical:!0,size:"sm",class:"px-3"},{vertical:!0,size:"md",class:"px-4"},{vertical:!0,size:"lg",class:"px-5"},{vertical:!0,size:"xl",class:"px-6"},{vertical:!0,padding:"after",class:"pl-0"},{vertical:!0,padding:"before",class:"pr-0"},{padding:"none",class:"p-0"}]},divider:{base:"border-transparent",variants:{variant:{light:"border-gray-100",default:"border-gray-200",dark:"border-gray-300"},vertical:{true:"border-l h-full",false:"border-t w-full"},dashed:{true:"border-dashed"},dotted:{true:"border-dotted"},border:{false:"border-transparent"}}},label:{base:"absolute p-2 rounded-dynamic bg-white shrink-0 text-sm w-fit",variants:{variant:{light:"text-gray-400",default:"text-gray-500",dark:"text-gray-600"},vertical:{true:"transform origin-center rotate-90"}}},defaults:{variant:"default",padding:"all",size:"md",border:!0,dashed:!1,dotted:!1,vertical:!1}},w=["data-test"],C=["textContent"],N=u({inheritAttrs:!1,__name:"UDivider",props:v({label:{},size:{},variant:{},padding:{},dashed:{type:Boolean},dotted:{type:Boolean},vertical:{type:Boolean},border:{type:Boolean},config:{},dataTest:{}},{..._(l,B),label:""}),setup(i){const d=i,o=b(()=>({label:!!d.label})),{getDataTest:n,wrapperAttrs:c,dividerAttrs:p,labelAttrs:f}=g(l,o);return(a,k)=>(s(),t("div",r(e(c),{"data-test":e(n)()}),[m("div",x(h(e(p))),null,16),a.label?(s(),t("span",r({key:0},e(f),{textContent:z(a.label)}),null,16,C)):y("",!0)],16,w))}});export{N as _};
