"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="https://nice2dev.com/schemas/component-doc-v1.json",a="NiceAvatar",t="Avatar",s="1.0.0",i="stable",r="display",n="user",o="A user avatar component displaying an image, initials generated from a name, or a fallback icon.",c="1.0.0",l=["web","mobile","desktop"],d=["avatar","user","profile","image","initials"],m=[{name:"src",type:"string",required:!1,description:"Image URL."},{name:"alt",type:"string",required:!1,description:"Alt text for the image."},{name:"name",type:"string",required:!1,description:"Full name — used to generate initials when no src is provided."},{name:"size",type:"NiceSize",required:!1,default:"'md'",description:"Avatar size."},{name:"square",type:"boolean",required:!1,description:"Render as a square instead of a circle."},{name:"color",type:"string",required:!1,description:"Custom background color."}],p=[],u=[{name:"--nice-avatar-size",default:"40px",description:"Avatar size"},{name:"--nice-avatar-bg",default:"var(--nice-primary)",description:"Background color for initials"},{name:"--nice-avatar-color",default:"#fff",description:"Text color for initials"}],g={aria:["alt (for images)",'role="img"'],notes:"Always provide alt text for images or name for initials generation."},f=[{title:"With Image",code:'<NiceAvatar src="/user.jpg" alt="John Doe" />',language:"tsx"},{title:"With Initials",code:'<NiceAvatar name="John Doe" />',language:"tsx"},{title:"Square Avatar",code:'<NiceAvatar name="Jane Smith" square size="lg" />',language:"tsx"}],v=[{name:"NiceAvatarGroup",relationship:"parent"}],y={$schema:e,name:a,displayName:t,version:s,status:i,category:r,subcategory:n,package:"@nicetoDev/ui",description:o,since:c,platforms:l,keywords:d,props:m,events:p,cssVariables:u,accessibility:g,examples:f,related:v};exports.$schema=e;exports.accessibility=g;exports.category=r;exports.cssVariables=u;exports.default=y;exports.description=o;exports.displayName=t;exports.events=p;exports.examples=f;exports.keywords=d;exports.name=a;exports.platforms=l;exports.props=m;exports.related=v;exports.since=c;exports.status=i;exports.subcategory=n;exports.version=s;
