import{j as n}from"./jsx-runtime-C5WNSv3b.js";import{a as s,c as u}from"./misc-W4055b-0.js";import{L as l}from"./chunk-EPOLDU6W-BCLmut3y.js";function d(){return n.jsx("span",{className:"inline-block animate-spin",children:"🌀"})}function f(){return n.jsx("span",{children:"✅"})}function m(){return n.jsx("span",{children:"❌"})}function a({varient:e,clip:t=!0}){const o="inline-flex bg-foreground text-background outline-none hover:bg-background hover:text-foreground focus:bg-background focus:text-foreground",r="px-8 py-4 font-bold",c="px-8 py-4 text-xl font-bold",i="px-8 py-4 font-mono text-sm uppercase";return s(o,{"clip-path-button":t,[r]:e==="primary",[c]:e==="big",[i]:e==="mono"})}function N({varient:e,status:t="idle",...o}){const r={pending:n.jsx(d,{}),success:n.jsx(f,{}),error:n.jsx(m,{}),idle:null}[t];return n.jsx("div",{className:"clip-path-button-outer border-foreground bg-foreground w-fit border-2",children:n.jsxs("button",{...o,className:s(o.className,a({varient:e}),"flex justify-center gap-4"),children:[n.jsx("div",{children:o.children}),r]})})}function h({varient:e,...t}){return n.jsx("div",{className:"clip-path-button-outer border-foreground bg-foreground w-fit border-2",children:n.jsx(l,{...t,className:s(t.className,a({varient:e}))})})}function k({className:e,...t}){return n.jsx("button",{...t,className:s("underline",e)})}const x="inline-flex h-8 w-8 items-center justify-center rounded border focus:outline-none focus:ring-2 focus:ring-ring";function y({children:e,className:t="",...o}){return n.jsx("button",{...o,className:u(x,t),children:e})}export{N as B,y as I,k as L,h as a,x as i};
//# sourceMappingURL=button-Cd-ekki5.js.map
