"use strict";const e=require("react/jsx-runtime"),n=require("react"),x=require("./VisuallyHidden-AoRh4WRK.js"),r=require("@spark-ui/internal-utils"),d=require("./index-DnaHaH_0.js"),m=d.cva(["fill-current shrink-0"],{variants:{intent:r.makeVariants({current:["text-current"],main:["text-main"],support:["text-support"],accent:["text-accent"],basic:["text-basic"],success:["text-success"],alert:["text-alert"],error:["text-error"],info:["text-info"],neutral:["text-neutral"]}),size:r.makeVariants({current:["u-current-font-size"],sm:["w-sz-16","h-sz-16"],md:["w-sz-24","h-sz-24"],lg:["w-sz-32","h-sz-32"],xl:["w-sz-40","h-sz-40"]})}}),s=({label:t,className:c,size:i="current",intent:a="current",children:u,...o})=>{const l=n.Children.only(u);return e.jsxs(e.Fragment,{children:[n.cloneElement(l,{className:m({className:c,size:i,intent:a}),"data-spark-component":"icon","aria-hidden":"true",focusable:"false",...o}),t&&e.jsx(x.VisuallyHidden,{children:t})]})};s.displayName="Icon";exports.Icon=s;
//# sourceMappingURL=Icon-Bf0XrmiR.js.map
