import{b as e,j as g,B as t,s as l,S as c}from"./index-CYy8zBsj.js";const b={default:{bg:"#F1F5F9",fg:"#475569",dot:"#94A3B8",border:"#E2E8F0"},info:{bg:"#EFF6FF",fg:"#1D4ED8",dot:"#3B82F6",border:"#BFDBFE"},primary:{bg:"#EEF2FF",fg:"#4338CA",dot:"#6366F1",border:"#C7D2FE"},warning:{bg:"#FFFBEB",fg:"#B45309",dot:"#F59E0B",border:"#FDE68A"},success:{bg:"#ECFDF5",fg:"#047857",dot:"#10B981",border:"#A7F3D0"},error:{bg:"#FEF2F2",fg:"#B91C1C",dot:"#EF4444",border:"#FECACA"},secondary:{bg:"#F5F3FF",fg:"#6D28D9",dot:"#8B5CF6",border:"#DDD6FE"}},p=({label:n,tone:s="default",size:r="small",withDot:F=!0})=>{const o=b[s],i=r==="small"?.25:.5,d=r==="small"?1:1.25,a=r==="small"?11:12.5;return e(t,{component:"span",sx:{display:"inline-flex",alignItems:"center",bgcolor:o.bg,color:o.fg,border:`1px solid ${o.border}`,borderRadius:999,px:d,py:i,fontSize:a,fontWeight:600,lineHeight:1.4,whiteSpace:"nowrap"},children:g(c,{direction:"row",alignItems:"center",spacing:.75,children:[F&&e(t,{sx:{width:6,height:6,borderRadius:"50%",bgcolor:o.dot,flexShrink:0}}),e(l,{component:"span",sx:{fontSize:"inherit",fontWeight:"inherit",color:"inherit",letterSpacing:.1},children:n})]})})};export{p as S};
