define(['exports', 'preact/jsx-runtime', './BaseButton-c86afd54', './ButtonLabelLayout-ce54dfdc', 'preact/compat'], (function(e,t,o,n,a){"use strict";const s=a.forwardRef((({variant:e="outlined",isDisabled:a=!1,isRepeat:s=!1,size:i="md",display:u="all",type:d="button",endIcon:c,startIcon:r,autofocus:l,edge:b,testId:p,onAction:y,label:f="","aria-label":B,"aria-describedby":h,width:m,onBlur:I,onFocus:L,onMouseEnter:T,onMouseLeave:v,onTouchEnd:x,onTouchStart:E},M)=>{const g=!r&&!c||"label"===u,j={type:"button",buttonType:d},w=g?f:t.jsx(n.ButtonLabelLayout,{display:u,startIcon:r,endIcon:c,size:i,children:f});return t.jsx(o.BaseButton,{ref:M,elementDetails:j,isDisabled:a,isRepeat:s,size:i,width:m,autofocus:l,edge:b,variant:e,styling:[g?"default":"min"],onAction:y,"aria-label":B??f,"aria-describedby":h,onBlur:I,onFocus:L,onMouseEnter:T,onMouseLeave:v,onTouchEnd:x,onTouchStart:E,testId:p,children:w})}));s.displayName="Button",e.Button=s}));
//# sourceMappingURL=Button-cb88d20f.js.map
