import{o as e}from"./rolldown-runtime-C_s2cVnS.js";import{m as t}from"./vendor-react-nmZsNlRz.js";import{n,r}from"./button-C_jHykqW.js";import{t as i}from"./utils-BRwGVQJx.js";var a=e(t(),1),o=n(`inline-flex w-fit shrink-0 items-center gap-1 rounded-[3px] font-medium leading-none whitespace-nowrap [&_svg]:pointer-events-none`,{variants:{variant:{default:`bg-primary/10 text-primary`,muted:`bg-muted text-muted-foreground`,warn:`bg-amber-500/10 text-amber-600 dark:text-amber-300`,destructive:`bg-destructive/10 text-destructive`,outline:`border border-(--ui-stroke-secondary) text-muted-foreground`,solid:`bg-primary text-primary-foreground`},size:{default:`px-1.5 py-0.5 text-[0.65rem] [&_svg]:size-3`,xs:`px-1 py-px text-[0.6rem] [&_svg]:size-2.5`,overlay:`h-2 min-w-2 justify-center rounded-[2px] px-px text-[7px] font-semibold tabular-nums`}},defaultVariants:{variant:`default`,size:`default`}});function s({asChild:e=!1,className:t,size:n,variant:s,...c}){let l=e?r:`span`;return(0,a.jsx)(l,{className:i(o({size:n,variant:s}),t),"data-slot":`badge`,...c})}export{s as t};