import{j as e}from"./index-BVAJPyoi.js";const u=({children:a,size:t="md",variant:n="primary",startIcon:s,endIcon:r,onClick:i,className:o="",disabled:l=!1,type:b="button",...d})=>{const p={sm:"px-[14px] py-[10px] text-[13px]",md:"px-[18px] py-[12px] text-[14px]"},x={primary:"bg-blue-600 text-white shadow-sm hover:bg-blue-700 disabled:bg-blue-300",outline:"bg-white text-gray-800 border border-gray-300 hover:bg-gray-50 dark:bg-gray-900 dark:text-gray-200 dark:border-gray-700 dark:hover:bg-gray-800"};return e.jsxs("button",{type:b,className:`appearance-none inline-flex items-center justify-center gap-2 rounded-lg font-medium leading-[1.1] select-none whitespace-nowrap transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 disabled:cursor-not-allowed disabled:opacity-50 ${p[t]} ${x[n]} ${o}`,onClick:i,disabled:l,...d,children:[s&&e.jsx("span",{className:"flex items-center",children:s}),a,r&&e.jsx("span",{className:"flex items-center",children:r})]})};export{u as B};
