{"version":3,"file":"avatar-group-props.mjs","names":[],"sources":["../../../../../../packages/components/avatar/src/avatar-group-props.ts"],"sourcesContent":["import { placements } from '@popperjs/core'\nimport { useTooltipContentProps } from '@element-plus/components/tooltip'\nimport { definePropType, isNumber } from '@element-plus/utils'\nimport { componentSizes } from '@element-plus/constants'\n\nimport type { AvatarProps } from './avatar'\nimport type { ExtractPropTypes, ExtractPublicPropTypes, StyleValue } from 'vue'\nimport type { Placement, PopperEffect } from '@element-plus/components/popper'\nimport type { ClassValue } from '@element-plus/utils'\n\nexport const avatarGroupProps = {\n  /**\n   * @description control the size of avatars in this avatar-group\n   */\n  size: {\n    type: definePropType<AvatarProps['size']>([Number, String]),\n    values: componentSizes,\n    validator: (val: unknown): val is number => isNumber(val),\n  },\n  /**\n   * @description control the shape of avatars in this avatar-group\n   */\n  shape: {\n    type: definePropType<AvatarProps['shape']>(String),\n    values: ['circle', 'square'] as const,\n  },\n  /**\n   * @description whether to collapse avatars\n   */\n  collapseAvatars: Boolean,\n  /**\n   * @description whether show all collapsed avatars when mouse hover text of the collapse-avatar. To use this, `collapse-avatars` must be true\n   */\n  collapseAvatarsTooltip: Boolean,\n  /**\n   * @description the max avatars number to be shown. To use this, `collapse-avatars` must be true\n   */\n  maxCollapseAvatars: {\n    type: Number,\n    default: 1,\n  },\n  /**\n   * @description tooltip theme, built-in theme: `dark` / `light`\n   */\n  effect: {\n    type: definePropType<PopperEffect>(String),\n    default: 'light',\n  },\n  /**\n   * @description placement of tooltip\n   */\n  placement: {\n    type: definePropType<Placement>(String),\n    values: placements,\n    default: 'top',\n  },\n  /**\n   * @description custom class name for tooltip\n   */\n  popperClass: useTooltipContentProps.popperClass,\n  /**\n   * @description custom style for tooltip\n   */\n  popperStyle: useTooltipContentProps.popperStyle,\n  /**\n   * @description custom class name for the collapse-avatar\n   */\n  collapseClass: {\n    type: definePropType<ClassValue>([String, Array, Object, Boolean]),\n    default: undefined,\n  },\n  /**\n   * @description custom style for the collapse-avatar\n   */\n  collapseStyle: {\n    type: definePropType<StyleValue>([String, Array, Object, Boolean]),\n    default: undefined,\n  },\n} as const\nexport type AvatarGroupProps = ExtractPropTypes<typeof avatarGroupProps>\nexport type AvatarGroupPropsPublic = ExtractPublicPropTypes<\n  typeof avatarGroupProps\n>\n"],"mappings":";;;;;;AAUA,MAAa,mBAAmB;;;;CAI9B,MAAM;EACJ,MAAM,eAAoC,CAAC,QAAQ,MAAM,CAAC;EAC1D,QAAQ;EACR,YAAY,QAAgC,SAAS,GAAG;CAC1D;;;;CAIA,OAAO;EACL,MAAM,eAAqC,MAAM;EACjD,QAAQ,CAAC,UAAU,QAAQ;CAC7B;;;;CAIA,iBAAiB;;;;CAIjB,wBAAwB;;;;CAIxB,oBAAoB;EAClB,MAAM;EACN,SAAS;CACX;;;;CAIA,QAAQ;EACN,MAAM,eAA6B,MAAM;EACzC,SAAS;CACX;;;;CAIA,WAAW;EACT,MAAM,eAA0B,MAAM;EACtC,QAAQ;EACR,SAAS;CACX;;;;CAIA,aAAa,uBAAuB;;;;CAIpC,aAAa,uBAAuB;;;;CAIpC,eAAe;EACb,MAAM,eAA2B;GAAC;GAAQ;GAAO;GAAQ;EAAO,CAAC;EACjE,SAAS,KAAA;CACX;;;;CAIA,eAAe;EACb,MAAM,eAA2B;GAAC;GAAQ;GAAO;GAAQ;EAAO,CAAC;EACjE,SAAS,KAAA;CACX;AACF"}