@dialpad/dialtone-icons
Version:
Dialtone icon library
3 lines (2 loc) • 2.23 kB
JavaScript
;const i=require("../utils-Bndrzhtw.cjs"),n=require("../constants-CHwVJpfT.cjs"),e=require("vue"),s=require("../_plugin-vue_export-helper-BRilXfQE.cjs"),l={name:"DtIconFront",props:{size:{type:String,default:"500",validator:t=>Object.keys(n.I).includes(t)},ariaLabel:{type:String,default:void 0}},emits:["loaded"],computed:{iconSizeClass(){return n.I[this.size]},ariaHidden(){return this.ariaLabel?"false":"true"},dataQA(){return this.$attrs["data-qa"]??"dt-icon"}},created(){this.$emit("loaded"),this.uniqueID=i.g()}},r=["aria-label","data-qa","aria-hidden"],d=e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.223 5.45a3.302 3.302 0 0 1 3.302-3.302h10.59v4.7a1.65 1.65 0 0 1-1.65 1.651h-4.33a1.588 1.588 0 0 0-1.561 1.566v10.279c0 .912-.74 1.65-1.651 1.65h-4.7V5.452z",fill:"#001B38"},null,-1),c=["fill"],u=["fill"],_=["id"],p=e.createElementVNode("stop",{"stop-color":"#FF0057","stop-opacity":".16"},null,-1),h=e.createElementVNode("stop",{offset:".861","stop-color":"#FF0057"},null,-1),m=[p,h],f=["id"],q=e.createElementVNode("stop",{"stop-color":"#FF0057","stop-opacity":".16"},null,-1),V=e.createElementVNode("stop",{offset:".861","stop-color":"#FF0057"},null,-1),g=[q,V];function E(t,y,o,F,N,a){return e.openBlock(),e.createElementBlock("svg",{"aria-label":o.ariaLabel,class:e.normalizeClass([a.iconSizeClass,"d-icon d-icon--front"]),"data-qa":a.dataQA,"aria-hidden":a.ariaHidden,role:"img","data-name":"Front",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[d,e.createElementVNode("path",{d:"M8.914 10.127a4.287 4.287 0 1 0 8.574 0 4.287 4.287 0 0 0-8.574 0z",fill:`url(#${t.uniqueID}a)`},null,8,c),e.createElementVNode("path",{opacity:".5",d:"M8.914 10.127a4.287 4.287 0 1 0 8.574 0 4.287 4.287 0 0 0-8.574 0z",fill:`url(#${t.uniqueID}b)`},null,8,u),e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`${t.uniqueID}a`,x1:"10.182",y1:"6.913",x2:"16.629",y2:"13.404",gradientUnits:"userSpaceOnUse"},m,8,_),e.createElementVNode("linearGradient",{id:`${t.uniqueID}b`,x1:"10.182",y1:"6.913",x2:"16.629",y2:"13.404",gradientUnits:"userSpaceOnUse"},g,8,f)])],10,r)}const v=s._(l,[["render",E]]);module.exports=v;
//# sourceMappingURL=front.cjs.map