{"version":3,"file":"tag2.mjs","sources":["../../../../../../packages/components/tag/src/tag.ts"],"sourcesContent":["import { isValidComponentSize, isValidComponentType } from '@hongluan-ui/utils'\n\nimport type { ExtractPropTypes, PropType } from 'vue'\nimport type { ComponentSize, ComponentType } from '@hongluan-ui/constants'\nimport type Tag from './tag.vue'\n\nexport const tagProps = {\n  /**\n   * @description whether Tag can be removed\n   */\n  closable: Boolean,\n  /**\n   * @description type of Tag\n   */\n  type: {\n    type: String as PropType<ComponentType>,\n    validator: isValidComponentType,\n  },\n  /**\n   * @description whether to disable animations\n   */\n  disableTransitions: Boolean,\n  /**\n   * @description size of Tag\n   */\n  size: {\n    type: String as PropType<ComponentSize>,\n    validator: isValidComponentSize,\n  },\n  /**\n   * @description whether Tag has a highlighted border\n   */\n  hit: Boolean,\n  /**\n   * @description background color of the Tag\n   */\n  color: {\n    type: String,\n    default: '',\n  },\n  /**\n   * @description theme of Tag\n   */\n  effect: String,\n  outline: Boolean,\n  /**\n   * @description whether Tag is rounded\n   */\n  round: Boolean,\n  active: Boolean,\n} as const\nexport type TagProps = ExtractPropTypes<typeof tagProps>\n\nexport const tagEmits = {\n  close: (evt: MouseEvent) => evt instanceof MouseEvent,\n  click: (evt: MouseEvent) => evt instanceof MouseEvent,\n}\nexport type TagEmits = typeof tagEmits\nexport type TagInstance = InstanceType<typeof Tag>\n"],"names":[],"mappings":";;;AACY,MAAC,QAAQ,GAAG;AACxB,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,SAAS,EAAE,oBAAoB;AACnC,GAAG;AACH,EAAE,kBAAkB,EAAE,OAAO;AAC7B,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,SAAS,EAAE,oBAAoB;AACnC,GAAG;AACH,EAAE,GAAG,EAAE,OAAO;AACd,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE,MAAM;AAChB,EAAE,OAAO,EAAE,OAAO;AAClB,EAAE,KAAK,EAAE,OAAO;AAChB,EAAE,MAAM,EAAE,OAAO;AACjB,EAAE;AACU,MAAC,QAAQ,GAAG;AACxB,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C;;;;"}