@dialpad/dialtone-icons
Version:
Dialtone icon library
3 lines (2 loc) • 1.53 kB
JavaScript
;const n=require("../utils-Bndrzhtw.cjs"),i=require("../constants-CHwVJpfT.cjs"),e=require("vue"),l=require("../_plugin-vue_export-helper-BRilXfQE.cjs"),s={name:"DtIconRefresh",props:{size:{type:String,default:"500",validator:t=>Object.keys(i.I).includes(t)},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=n.g()}},d=["aria-label","data-qa","aria-hidden"],o=["clip-path"],c=e.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M10.5.5a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1 0-1h1.697l-.529-.476a4 4 0 1 0 1.335 3.424.5.5 0 0 1 .995.105A5 5 0 1 1 9.33 2.275l.004.004.665.598V1a.5.5 0 0 1 .5-.5Z","clip-rule":"evenodd"},null,-1),u=[c],h=["id"],_=e.createElementVNode("path",{fill:"#fff",d:"M0 0h12v12H0z"},null,-1),p=[_];function f(t,g,r,q,v,a){return e.openBlock(),e.createElementBlock("svg",{"aria-label":r.ariaLabel,class:e.normalizeClass([a.iconSizeClass,"d-icon d-icon--refresh"]),"data-qa":a.dataQA,"aria-hidden":a.ariaHidden,role:"img","data-name":"Refresh",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12"},[e.createElementVNode("g",{"clip-path":`url(#${t.uniqueID}a)`},u,8,o),e.createElementVNode("defs",null,[e.createElementVNode("clipPath",{id:`${t.uniqueID}a`},p,8,h)])],10,d)}const m=l._(s,[["render",f]]);module.exports=m;
//# sourceMappingURL=refresh.cjs.map