{"version":3,"file":"link.mjs","names":[],"sources":["../../../../../../packages/components/link/src/link.ts"],"sourcesContent":["import { buildProps, iconPropType } from '@element-plus/utils'\n\nimport type { ExtractPublicPropTypes, PropType } from 'vue'\nimport type { IconPropType } from '@element-plus/utils'\nimport type Link from './link.vue'\n\nexport interface LinkProps {\n  /**\n   * @description type\n   */\n  type?: 'primary' | 'success' | 'warning' | 'info' | 'danger' | 'default'\n  /**\n   * @description when underlines should appear\n   */\n  underline?: boolean | 'always' | 'never' | 'hover'\n\n  /**\n   * @description whether the component is disabled\n   */\n  disabled?: boolean\n  /**\n   * @description same as native hyperlink's `href`\n   */\n  href?: string\n  /**\n   * @description same as native hyperlink's `target`\n   */\n  target?:\n    | '_blank'\n    | '_parent'\n    | '_self'\n    | '_top'\n    | (string & NonNullable<unknown>)\n\n  /**\n   * @description icon component\n   */\n  icon?: IconPropType\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `LinkProps` instead.\n */\nexport const linkProps = buildProps({\n  /**\n   * @description type\n   */\n  type: {\n    type: String,\n    values: ['primary', 'success', 'warning', 'info', 'danger', 'default'],\n    default: undefined,\n  },\n  /**\n   * @description when underlines should appear\n   */\n  underline: {\n    type: [Boolean, String],\n    values: [true, false, 'always', 'never', 'hover'],\n    default: undefined,\n  },\n  /**\n   * @description whether the component is disabled\n   */\n  disabled: Boolean,\n  /**\n   * @description same as native hyperlink's `href`\n   */\n  href: { type: String, default: '' },\n  /**\n   * @description same as native hyperlink's `target`\n   */\n  target: {\n    type: String as PropType<'_blank' | '_parent' | '_self' | '_top' | string>,\n    default: '_self',\n  },\n  /**\n   * @description icon component\n   */\n  icon: {\n    type: iconPropType,\n  },\n} as const)\n\n/**\n * @deprecated Removed after 3.0.0, Use `LinkProps` instead.\n */\nexport type LinkPropsPublic = ExtractPublicPropTypes<typeof linkProps>\n\nexport const linkEmits = {\n  click: (evt: MouseEvent) => evt instanceof MouseEvent,\n}\nexport type LinkEmits = typeof linkEmits\n\nexport type LinkInstance = InstanceType<typeof Link> & unknown\nexport interface LinkConfigContext {\n  type?: LinkProps['type']\n  underline?: LinkProps['underline']\n}\n"],"mappings":";;;;;;;AA2CA,MAAa,YAAY,WAAW;CAIlC,MAAM;EACJ,MAAM;EACN,QAAQ;GAAC;GAAW;GAAW;GAAW;GAAQ;GAAU;GAAU;EACtE,SAAS;EACV;CAID,WAAW;EACT,MAAM,CAAC,SAAS,OAAO;EACvB,QAAQ;GAAC;GAAM;GAAO;GAAU;GAAS;GAAQ;EACjD,SAAS;EACV;CAID,UAAU;CAIV,MAAM;EAAE,MAAM;EAAQ,SAAS;EAAI;CAInC,QAAQ;EACN,MAAM;EACN,SAAS;EACV;CAID,MAAM,EACJ,MAAM,cACP;CACF,CAAU;AAOX,MAAa,YAAY,EACvB,QAAQ,QAAoB,eAAe,YAC5C"}