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