@dialpad/dialtone-icons
Version:
Dialtone icon library
3 lines (2 loc) • 1.84 kB
JavaScript
;const l=require("../../utils-Bndrzhtw.cjs"),n=require("../../constants-CHwVJpfT.cjs"),e=require("vue"),o=require("../../_plugin-vue_export-helper-BRilXfQE.cjs"),s={name:"DtIconZoom",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=l.g()}},d=["aria-label","data-qa","aria-hidden"],c=["fill"],u=["id"];function m(t,a,r,p,_,i){return e.openBlock(),e.createElementBlock("svg",{"aria-label":r.ariaLabel,class:e.normalizeClass([i.iconSizeClass,"d-icon d-icon--zoom"]),"data-qa":i.dataQA,"aria-hidden":i.ariaHidden,role:"img","data-name":"Zoom",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("rect",{x:"2",y:"2",width:"20",height:"20",rx:"6",fill:`url(#${t.uniqueID}a)`},null,8,c),a[1]||(a[1]=e.createElementVNode("path",{d:"M7 8.563a.625.625 0 0 0-.625.624v4.027c0 1.036.84 1.875 1.875 1.875h5.807c.345 0 .625-.28.625-.625v-4.027c0-1.035-.84-1.874-1.875-1.874H7Zm8.495 1.622a.625.625 0 0 0-.22.476v2.627c0 .183.08.357.22.476l1.568 1.337a.625.625 0 0 0 1.03-.476V9.323a.625.625 0 0 0-1.03-.475l-1.568 1.337Z",fill:"#fff"},null,-1)),e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`${t.uniqueID}a`,x1:"12",y1:"2",x2:"12",y2:"22",gradientUnits:"userSpaceOnUse"},[...a[0]||(a[0]=[e.createElementVNode("stop",{"stop-color":"#4594FF"},null,-1),e.createElementVNode("stop",{offset:".604","stop-color":"#357CFC"},null,-1),e.createElementVNode("stop",{offset:"1","stop-color":"#2C6FFA"},null,-1)])],8,u)])],10,d)}const f=o._(s,[["render",m]]);module.exports=f;
//# sourceMappingURL=zoom.cjs.map