import{o as e}from"./rolldown-runtime.C0FnF6B9.js";import{r as t}from"./emotion-is-prop-valid.esm.CuYlOKOk.js";import{i as n}from"./emotion-styled.browser.esm.BYv_Qzcq.js";import{S as r,T as i,_ as a,b as o,d as s,f as c,h as l,i as u,l as d,m as f,n as p,p as m,r as h,t as g,u as _,v,w as y,x as b,y as x}from"./styled-components.BjKbfR5p.js";var S=(0,e(t(),1).forwardRef)(function(e,t){let{kind:S,size:C,disabled:w,onClick:T,containerWidth:E,children:D,autoFocus:O}=e,k=a;return S===g.SECONDARY?k=x:S===g.TERTIARY?k=y:S===g.GHOST?k=_:S===g.PILLS?k=f:S===g.PILLS_ACTIVE?k=l:S===g.SEGMENTED_CONTROL?k=b:S===g.SEGMENTED_CONTROL_ACTIVE?k=r:S===g.BORDERLESS_ICON?k=h:S===g.BORDERLESS_ICON_ACTIVE?k=u:S===g.MINIMAL?k=m:S===g.PRIMARY_FORM_SUBMIT?k=v:S===g.SECONDARY_FORM_SUBMIT?k=o:S===g.TERTIARY_FORM_SUBMIT?k=i:S===g.HEADER_BUTTON?k=s:S===g.HEADER_NO_PADDING?k=c:S===g.ELEMENT_TOOLBAR&&(k=d),n(k,{ref:t,kind:S,size:C??p.MEDIUM,containerWidth:E||!1,disabled:w||!1,onClick:T||(()=>{}),autoFocus:O||!1,"data-testid":e[`data-testid`]??`stBaseButton-${S}`,"aria-label":e[`aria-label`]??``,"aria-haspopup":e[`aria-haspopup`],"aria-expanded":e[`aria-expanded`],children:D})});export{S as t};