define(['exports', 'preact/jsx-runtime', 'preact', './BaseButton-c86afd54', './ButtonLabelLayout-ce54dfdc', 'preact/compat', './useTooltip-7b915f4c', 'preact/hooks', './mergeProps-bcfa6a92', './logger-0f873e29', './LayerHost-733ade2f', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-30886397', './buttonUtils-97878e90'], (function(t,e,o,s,a,i,n,l,r,p,c,d,u,b,y,f){"use strict";const h=i.forwardRef((({variant:t="outlined",isDisabled:i=!1,isRepeat:l=!1,size:p="md",type:c="button",autofocus:d,onAction:u,width:b,tooltip:y,testId:h,"aria-haspopup":m,"aria-label":B,"aria-describedby":T,...g},x)=>{const{globalEventProps:w}=f.processGlobals(g),{tooltipContent:I,tooltipProps:L}=n.useTooltip({text:y||B,isDisabled:i}),j={type:"button",buttonType:c},A=T?{"aria-describedby":T}:{};return e.jsxs(o.Fragment,{children:[e.jsx(s.BaseButton,{...r.mergeProps(L,w,A),ref:x,elementDetails:j,isDisabled:i,isRepeat:l,size:p,autofocus:d,variant:t,width:b,styling:["min"],onAction:u,"aria-label":B??y,"aria-haspopup":m,testId:h,children:e.jsx(a.ButtonLabelLayout,{display:"icons",startIcon:g.children,size:p})}),I]})}));h.displayName="IconButton",t.IconButton=h}));
//# sourceMappingURL=IconButton-368fba34.js.map
