"use strict";const D=require("react/jsx-runtime"),M=require("react"),P=require("./icon-utils-DrY1PlFZ.cjs");function m(...c){return c.filter(Boolean).join(" ")}const L="_icon_yamd4_2",T="_iconXs_yamd4_20",$="_iconSm_yamd4_25",j="_iconMd_yamd4_30",k="_iconLg_yamd4_35",q="_iconXl_yamd4_40",N="_iconPrimary_yamd4_46",R="_iconSecondary_yamd4_50",U="_iconTertiary_yamd4_54",w="_iconInverted_yamd4_58",B="_iconInteractive_yamd4_63",E="_iconDisabled_yamd4_76",n={icon:L,iconXs:T,iconSm:$,iconMd:j,iconLg:k,iconXl:q,iconPrimary:N,iconSecondary:R,iconTertiary:U,iconInverted:w,iconInteractive:B,iconDisabled:E},y=M.forwardRef(({name:c,size:o="md",tone:_="primary",className:l,style:u,interactive:v=!1,disabled:i=!1,"aria-label":a,"aria-hidden":I,onClick:e,...S},g)=>{const r=P.getIconUrl(c),s=a!==void 0,p=I??!s,f=t=>{if(i){t.preventDefault(),t.stopPropagation();return}e==null||e(t)},d=typeof o=="number",h=d?{width:`${o}px`,height:`${o}px`}:void 0,X=d?void 0:{xs:n.iconXs,sm:n.iconSm,md:n.iconMd,lg:n.iconLg,xl:n.iconXl}[o],x={primary:n.iconPrimary,secondary:n.iconSecondary,tertiary:n.iconTertiary,inverted:n.iconInverted}[_],b={...{WebkitMaskImage:`url(${r})`,maskImage:`url(${r})`},...h,...u};return D.jsx("span",{ref:g,role:s?"img":void 0,"aria-label":a,"aria-hidden":p||void 0,"aria-disabled":i||void 0,className:m(n.icon,X,x,v&&!i&&n.iconInteractive,i&&n.iconDisabled,l),style:b,onClick:f,...S})});y.displayName="Icon";exports.Icon=y;exports.cn=m;
