import{h as t}from"./p-CAus4tQt.js";const e=({id:e,variant:r="primary",textVariant:i="primary",disabled:a=!1,onClick:l,fullWidth:n,maxWidth:o,label:s,startIcon:u,endIcon:d,size:m="medium",ref:b,title:p,padding:x})=>{let c,z="z-button-medium";"x-small"===m&&(z="z-button-x-small"),"small"===m&&(z="z-button-small"),"large"===m&&(z="z-button-large"),c="primary"===r?"z-button-primary":"outlined"===r?"z-button-outlined":"text-underline"===r?("primary"===i?"text-primary":"text-surface")+" hover:brightness-110 underline":("primary"===i?"text-primary":"text-surface")+" hover:brightness-110";const y=[`z-button ${x||""} ${z} ${n?"w-full":o||""}`,c,a?"z-button-disabled":""].filter(Boolean).join(" ");return t("button",{id:e,title:p,ref:b,class:y,disabled:a,onClick:t=>{a||l&&l(t)}},u,s&&t("span",{class:"z-button-text",id:e},s),d)};export{e as Z}