UNPKG

@dialpad/dialtone-icons

Version:

Dialtone icon library

3 lines (2 loc) 1.64 kB
"use strict";const l=require("../utils-Bndrzhtw.cjs"),i=require("../constants-CHwVJpfT.cjs"),e=require("vue"),r=require("../_plugin-vue_export-helper-BRilXfQE.cjs"),d={name:"DtIconTag",props:{size:{type:String,default:"500",validator:a=>Object.keys(i.I).includes(a)},ariaLabel:{type:String,default:void 0}},emits:["loaded"],computed:{iconSizeClass(){return i.I[this.size]},ariaHidden(){return this.ariaLabel?"false":"true"},dataQA(){return this.$attrs["data-qa"]??"dt-icon"}},created(){this.$emit("loaded"),this.uniqueID=l.g()}},s=["aria-label","data-qa","aria-hidden"],o=["clip-path"],c=e.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M.5 1A.5.5 0 0 1 1 .5h5a.5.5 0 0 1 .354.146l4.645 4.645a1.713 1.713 0 0 1 0 2.418l-3.29 3.29a1.713 1.713 0 0 1-2.418 0L.646 6.354A.5.5 0 0 1 .5 6V1Zm1 .5v4.293l4.499 4.498a.713.713 0 0 0 1.002 0l3.29-3.29a.713.713 0 0 0 0-1.002L5.793 1.5H1.5Zm1.5 2a.5.5 0 0 1 .5-.5h.005a.5.5 0 0 1 0 1H3.5a.5.5 0 0 1-.5-.5Z","clip-rule":"evenodd"},null,-1),u=[c],_=["id"],h=e.createElementVNode("path",{fill:"#fff",d:"M0 0h12v12H0z"},null,-1),p=[h];function m(a,g,n,q,v,t){return e.openBlock(),e.createElementBlock("svg",{"aria-label":n.ariaLabel,class:e.normalizeClass([t.iconSizeClass,"d-icon d-icon--tag"]),"data-qa":t.dataQA,"aria-hidden":t.ariaHidden,role:"img","data-name":"Tag",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12"},[e.createElementVNode("g",{"clip-path":`url(#${a.uniqueID}a)`},u,8,o),e.createElementVNode("defs",null,[e.createElementVNode("clipPath",{id:`${a.uniqueID}a`},p,8,_)])],10,s)}const f=r._(d,[["render",m]]);module.exports=f; //# sourceMappingURL=tag.cjs.map