1import{b as c}from"#entry";import{v as u,y as r,a2 as p,$ as h,X as f,a4 as m,Z as x,ad as y}from"./DNMHFphG.js";const w=u({__name:"button",props:{type:{default:"filled"},size:{default:"medium"},color:{default:"primary"},disabled:{type:Boolean,default:!1},to:{default:null},href:{default:null},external:{type:Boolean,default:!1}},setup(n){const e=n,d=r(()=>({large:"semibold-lg px-6 py-3",medium:"semibold-md px-4 py-2",small:"semibold-sm lg:semibold-sm px-3 py-2"})[e.size]),l=r(()=>{const t={primary:"bg-primary-60 hover:bg-primary-70 text-white",secondary:"bg-secondary-60 hover:bg-secondary-70 text-white",disabled:"bg-neutral-500 text-white",success:"bg-success-60 hover:bg-success-70 text-white",danger:"bg-danger-60 hover:bg-danger-70 text-white",white:"bg-white hover:bg-neutral-100 text-neutral-700"},s={primary:"border border-primary-60 text-primary-60 hover:bg-primary-60 hover:text-white",secondary:"border border-secondary-60 text-secondary-60 hover:bg-secondary-60 hover:text-white",disabled:"border border-neutral-500 text-neutral-500",success:"border border-success-60 text-success-60 hover:bg-success-60 hover:text-white",danger:"border border-danger-60 text-danger-60 hover:bg-danger-60 hover:text-white",white:"border border-white text-white hover:bg-white hover:text-neutral-700"},b={primary:"text-primary-60 border-b border-transparent hover:border-primary-60",secondary:"text-secondary-60 border-b border-transparent hover:border-secondary-60",disabled:"text-neutral-500",success:"text-success-60 border-b border-transparent hover:border-success-60",danger:"text-danger-60 border-b border-transparent hover:border-danger-60",white:"text-white border-b border-transparent hover:border-white"};return e.type==="filled"?t[e.color]:e.type==="outline"?s[e.color]:e.type==="text"?b[e.color]:""}),o=r(()=>e.disabled||e.color==="disabled"),a=r(()=>e.href?"a":e.to?c:"button"),i=r(()=>e.href?e.external?{href:e.href,target:"_blank",rel:"noopener noreferrer"}:{href:e.href}:e.to?{to:e.to}:{});return(t,s)=>(x(),p(m(a.value),f(i.value,{disabled:a.value==="button"?o.value:void 0,class:["rounded-[10px] font-sans transition active:scale-95 inline-flex items-center justify-center",d.value,l.value,o.value?"opacity-50 cursor-not-allowed hover:none":""]}),{default:h(()=>[y(t.$slots,"default")]),_:3},16,["disabled","class"]))}});export{w as _};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.