@dialpad/dialtone-icons
Version:
Dialtone icon library
3 lines (2 loc) • 1.43 kB
JavaScript
;const d=require("../utils-Bndrzhtw.cjs"),i=require("../constants-CHwVJpfT.cjs"),e=require("vue"),r=require("../_plugin-vue_export-helper-BRilXfQE.cjs"),l={name:"DtIconLoading",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=d.g()}},s=["aria-label","data-qa","aria-hidden"],o=["clip-path"],c=e.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M6 1.5A4.5 4.5 0 1 0 10.5 6a.5.5 0 0 1 1 0A5.5 5.5 0 1 1 6 .5a.5.5 0 0 1 0 1Z","clip-rule":"evenodd"},null,-1),u=[c],_=["id"],h=e.createElementVNode("path",{fill:"#fff",d:"M0 0h12v12H0z"},null,-1),p=[h];function m(t,g,n,q,v,a){return e.openBlock(),e.createElementBlock("svg",{"aria-label":n.ariaLabel,class:e.normalizeClass([a.iconSizeClass,"d-icon d-icon--loading"]),"data-qa":a.dataQA,"aria-hidden":a.ariaHidden,role:"img","data-name":"Loading",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,_)])],10,s)}const f=r._(l,[["render",m]]);module.exports=f;
//# sourceMappingURL=loading.cjs.map