{"version":3,"file":"text.mjs","names":[],"sources":["../../../../../../packages/components/text/src/text.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport { componentSizes } from '@element-plus/constants'\n\nimport type { ExtractPublicPropTypes } from 'vue'\nimport type { ComponentSize } from '@element-plus/constants'\n\nexport interface TextProps {\n  /**\n   * @description text type\n   */\n  type?: 'primary' | 'success' | 'info' | 'warning' | 'danger' | ''\n  /**\n   * @description text size\n   */\n  size?: ComponentSize\n  /**\n   * @description render ellipsis\n   */\n  truncated?: boolean\n  /**\n   * @description maximum lines\n   */\n  lineClamp?: number | string\n  /**\n   * @description custom element tag\n   */\n  tag?: string\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `TextProps` instead.\n */\nexport const textProps = buildProps({\n  /**\n   * @description text type\n   */\n  type: {\n    type: String,\n    values: ['primary', 'success', 'info', 'warning', 'danger', ''],\n    default: '',\n  },\n  /**\n   * @description text size\n   */\n  size: {\n    type: String,\n    values: componentSizes,\n    default: '',\n  },\n  /**\n   * @description render ellipsis\n   */\n  truncated: Boolean,\n  /**\n   * @description maximum lines\n   */\n  lineClamp: {\n    type: [String, Number],\n  },\n  /**\n   * @description custom element tag\n   */\n  tag: {\n    type: String,\n    default: 'span',\n  },\n} as const)\n\n/**\n * @deprecated Removed after 3.0.0, Use `TextProps` instead.\n */\nexport type TextPropsPublic = ExtractPublicPropTypes<typeof textProps>\n"],"mappings":";;;;;;;AAgCA,MAAa,YAAY,WAAW;CAIlC,MAAM;EACJ,MAAM;EACN,QAAQ;GAAC;GAAW;GAAW;GAAQ;GAAW;GAAU;GAAG;EAC/D,SAAS;EACV;CAID,MAAM;EACJ,MAAM;EACN,QAAQ;EACR,SAAS;EACV;CAID,WAAW;CAIX,WAAW,EACT,MAAM,CAAC,QAAQ,OAAO,EACvB;CAID,KAAK;EACH,MAAM;EACN,SAAS;EACV;CACF,CAAU"}