import{j as o}from"./jsx-runtime-CB_V9I5Y.js";import{L as l}from"./Loader-CRsi12-K.js";import{m as d}from"./proxy-DBe61V_z.js";function u(a){const{children:n,variant:r,text:s,icon:e,loading:m,transition:t,...i}=a,c=t?{x:t==="from-left"?-10:t==="from-right"?10:0,y:t==="from-top"?-10:t==="from-bottom"?10:0,opacity:0}:void 0;return o.jsx(d.button,{...i,className:`input-styles ${i.className} ${r}`,initial:c,animate:t?i.disabled?{x:0,opacity:.5}:{x:0,opacity:1}:void 0,children:m?o.jsx(l,{style:{transform:"scale(0.45)",color:r==="secondary"?"white":"black"}}):o.jsxs(o.Fragment,{children:[e,s?o.jsx("span",{children:s}):null,n]})})}export{u as B};