import{aH as C,aF as t,aG as _,j as a,x as f,aI as b,aJ as R,aK as g}from"./index-26FXPGkN.js";var c={root:"m_de3d2490",colorOverlay:"m_862f3d1b",shadowOverlay:"m_98ae7f22",alphaOverlay:"m_95709ac0",childrenOverlay:"m_93e74e3"};const l={withShadow:!0},N=b((r,{radius:o,size:e})=>({root:{"--cs-radius":o===void 0?void 0:g(o),"--cs-size":R(e)}})),n=C((r,o)=>{const e=t("ColorSwatch",l,r),{classNames:d,className:h,style:i,styles:y,unstyled:p,vars:v,color:m,size:u,radius:z,withShadow:w,children:x,variant:S,attributes:O,...j}=t("ColorSwatch",l,e),s=_({name:"ColorSwatch",props:e,classes:c,className:h,style:i,classNames:d,styles:y,unstyled:p,attributes:O,vars:v,varsResolver:N});return a.jsxs(f,{ref:o,variant:S,size:u,...s("root",{focusable:!0}),...j,children:[a.jsx("span",{...s("alphaOverlay")}),w&&a.jsx("span",{...s("shadowOverlay")}),a.jsx("span",{...s("colorOverlay",{style:{backgroundColor:m}})}),a.jsx("span",{...s("childrenOverlay"),children:x})]})});n.classes=c;n.displayName="@mantine/core/ColorSwatch";export{n as C};
