"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),r=require("@babel/runtime/helpers/objectWithoutProperties"),t=require("react/jsx-runtime"),i=require("react"),s=require("classnames"),n=require("../Text/Text.js"),a=require("./ButtonText.scss.js");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=c(e),l=c(r),u=c(s),d=["children","className","testId","onClick","size","disabled","type","suffix","prefix"];function f(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);r&&(i=i.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,i)}return t}function p(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?f(Object(t),!0).forEach((function(r){o.default(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var b={primary:a.primary,secondary:a.secondary},j={large:16,medium:14,small:12,xs:10},y=i.forwardRef((function(e,r){var i=e.children,s=e.className,c=e.testId,o=e.onClick,f=e.size,y=void 0===f?"medium":f,m=e.disabled,x=e.type,O=void 0===x?"secondary":x,h=e.suffix,v=e.prefix,P=l.default(e,d);return t.jsxs("button",p(p({className:u.default(a.root,m&&a.disabled,b[O],s),"data-testid":c,ref:r},P),{},{disabled:m,onClick:o,children:[v&&t.jsx("span",{className:a.affix,children:v}),t.jsx(n.Text,{size:j[y],color:"inherit",children:i}),h&&t.jsx("span",{className:a.affix,children:h})]}))}));exports.ButtonText=y;
//# sourceMappingURL=ButtonText.js.map
