"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index.cjs38.js"),x=require("react"),p=require("./index.cjs40.js"),t=require("./index.cjs42.js"),r=x.forwardRef(({variant:o="primary",size:l="md",startIcon:s,endIcon:a,fullWidth:i=!1,loading:e=!1,disabled:d,children:b,className:c,...f},m)=>{const n=d||e;return u.jsxRuntimeExports.jsxs("button",{ref:m,type:"button","data-atme-ui":!0,className:p(t.default.button,t.default[`button--${o}`],t.default[`button--${l}`],s&&!e&&t.default["button--hasStartIcon"],a&&!e&&t.default["button--hasEndIcon"],i&&t.default["button--fullWidth"],e&&t.default["button--loading"],c),disabled:n,"aria-busy":e,"aria-disabled":n,...f,children:[e&&u.jsxRuntimeExports.jsx("span",{className:t.default.buttonSpinner,"aria-hidden":"true"}),s&&!e&&u.jsxRuntimeExports.jsx("span",{className:t.default.buttonIcon,children:s}),u.jsxRuntimeExports.jsx("span",{className:t.default.buttonContent,children:b}),a&&!e&&u.jsxRuntimeExports.jsx("span",{className:t.default.buttonIcon,children:a})]})});r.displayName="Button";exports.Button=r;
//# sourceMappingURL=index.cjs13.js.map
