import e from"@babel/runtime/helpers/toConsumableArray";import r from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/objectWithoutProperties";import{jsx as i}from"react/jsx-runtime";import{forwardRef as o}from"react";import{IconButton as a}from"@material-ui/core";import s from"classnames";import c from"./ButtonIcon.scss.js";var n=["children","disabled","testId","className","onClick","type","size","disableFocusState"];function l(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 m(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?l(Object(i),!0).forEach((function(t){r(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):l(Object(i)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(i,r))}))}return e}var p={large:c.large,medium:c.medium,small:c.small,xs:c.xsmall},d={primary:[c.primary],secondary:[c.secondary],tertiary:[c.tertiary],secondaryBg:[c.secondary,c.withBg],tertiaryBg:[c.tertiary,c.withBg]},b={center:!1},u=o((function(r,o){var l=r.children,u=r.disabled,y=r.testId,f=r.className,O=r.onClick,h=r.type,j=void 0===h?"tertiary":h,g=r.size,v=void 0===g?"medium":g,P=r.disableFocusState,w=t(r,n);return i("div",{className:s(c.root,f),children:i(a,m(m({ref:o,className:s.apply(void 0,[c.button,p[v]].concat(e(d[j]),[u&&c.disabled])),onClick:O,disabled:u,"data-testid":y,disableRipple:P,TouchRippleProps:b},w),{},{children:l}))})}));export{u as ButtonIcon};
//# sourceMappingURL=ButtonIcon.js.map
