{"version":3,"file":"Avatar.cjs","sourceRoot":"","sources":["../../../src/jsx/components/Avatar.ts"],"names":[],"mappings":";;;AAEA,gDAAmD;AAcnD,MAAM,IAAI,GAAG,QAAQ,CAAC;AAEtB;;;;;;;;;;;;;;GAcG;AACU,QAAA,MAAM,GAAG,IAAA,+BAAmB,EAA2B,IAAI,CAAC,CAAC","sourcesContent":["import type { CaipAccountId } from '@metamask/utils';\n\nimport { createSnapComponent } from '../component';\n\n/**\n * The props of the {@link Avatar} component.\n *\n * @property address - The address to display. This should be a valid CAIP-10 address.\n * @property size - The size of the avatar. Can be `sm`, `md`, or `lg`. Defaults to `md`.\n * @category Component Props\n */\nexport type AvatarProps = {\n  address: CaipAccountId;\n  size?: 'sm' | 'md' | 'lg' | undefined;\n};\n\nconst TYPE = 'Avatar';\n\n/**\n * An avatar component, which is used to display an avatar for a CAIP-10 address.\n *\n * This component does not accept any children.\n *\n * @param props - The props of the component.\n * @param props.address - The address to display. This should be a valid CAIP-10 address.\n * @param props.size - The size of the avatar. Can be `sm`, `md`, or `lg`. Defaults to `md`.\n * @returns An avatar element.\n * @example\n * <Avatar address=\"eip155:1:0x1234567890123456789012345678901234567890\" />\n * @example\n * <Avatar address=\"bip122:000000000019d6689c085ae165831e93:128Lkh3S7CkDTBZ8W7BbpsN3YYizJMp8p6\" />\n * @category Components\n */\nexport const Avatar = createSnapComponent<AvatarProps, typeof TYPE>(TYPE);\n\n/**\n * An avatar element.\n *\n * @see {@link Avatar}\n * @category Elements\n */\nexport type AvatarElement = ReturnType<typeof Avatar>;\n"]}