define(['exports', 'preact/jsx-runtime', 'preact/compat', './BaseButton-c86afd54', './useToggleAction-59741954', './mergeProps-bcfa6a92', './toggleButtonUtils-0ebe4c56', './buttonUtils-97878e90', './ToggleButtonLabel-2f0e4f18'], (function(e,t,o,a,s,l,i,n,r){"use strict";const d=o.forwardRef((({startIcon:e,endIcon:o,variant:d="outlined",size:g="md",isDisabled:c=!1,isSelected:u=!1,onToggle:b,display:p="all",autofocus:f,testId:B,label:T,"aria-label":y,"aria-describedby":m,width:I,...v},x)=>{const{globalEventProps:D}=n.processGlobals(v),P=!e&&!o||"label"===p,{triggerProps:h}=s.useToggleAction({isDisabled:c,onToggle:b}),j=i.toggleStyling("auto",u,!1,!1,"outlined"===d,void 0,P,!1,!0),w={"aria-describedby":m};return t.jsx(a.BaseButton,{...l.mergeProps(h,D,w),ref:x,variant:d,isDisabled:c,size:g,width:I,"aria-pressed":u,autofocus:f,styling:j,"aria-label":y??T,testId:B,...D,children:t.jsx(r.ToggleButtonLabel,{onAction:()=>b?.({value:u}),label:T,isDisabled:c,display:p,startIcon:e,endIcon:o})})}));d.displayName="ToggleButton",e.ToggleButton=d}));
//# sourceMappingURL=ToggleButton-f8845804.js.map
