import{p as u,q as v,k as b,t as g,c as t,o as r,v as s,u as e,b as m,A as y,y as x,z as h,O as z,D as _}from"./index-DRopsKkO.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}},k=["data-test"],w=["textContent"],C=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,D)=>(r(),t("div",s(e(c),{"data-test":e(n)()}),[m("div",x(h(e(p))),null,16),a.label?(r(),t("span",s({key:0},e(f),{textContent:z(a.label)}),null,16,w)):y("",!0)],16,k))}});export{C as _};
