"use strict";const e=require("react/jsx-runtime"),c=require("./VisuallyHidden-AoRh4WRK.js"),u=require("@spark-ui/internal-utils"),l=require("./index-DnaHaH_0.js"),d={intent:"current",size:"current",isBackgroundVisible:!1},b=l.cva(["inline-block","border-solid","rounded-full","border-md","animate-spin"],{variants:{size:{current:["u-current-font-size"],sm:["w-sz-20","h-sz-20"],md:["w-sz-28","h-sz-28"],full:["w-full","h-full"]},intent:u.makeVariants({current:["border-current"],main:["border-main"],support:["border-support"],accent:["border-accent"],basic:["border-basic"],success:["border-success"],alert:["border-alert"],error:["border-error"],info:["border-info"],neutral:["border-neutral"]}),isBackgroundVisible:{true:["border-b-neutral-container","border-l-neutral-container"],false:["border-b-transparent","border-l-transparent"]}},defaultVariants:d}),p=({className:n,size:s="current",intent:t="current",label:r,isBackgroundVisible:i,ref:a,...o})=>e.jsx("span",{role:"status","data-spark-component":"spinner",ref:a,className:b({className:n,size:s,intent:t,isBackgroundVisible:i}),...o,children:r&&e.jsx(c.VisuallyHidden,{children:r})});exports.Spinner=p;
//# sourceMappingURL=Spinner-DK8VEsaR.js.map
