@dialpad/dialtone-icons
Version:
Dialtone icon library
3 lines (2 loc) • 1.69 kB
JavaScript
;const n=require("../utils-Bndrzhtw.cjs"),i=require("../constants-CHwVJpfT.cjs"),e=require("vue"),r=require("../_plugin-vue_export-helper-BRilXfQE.cjs"),s={name:"DtIconAddTask",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=n.g()}},l=["aria-label","data-qa","aria-hidden"],o=["clip-path"],c=e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.497 2.228A4.058 4.058 0 1 0 6 10.058a.5.5 0 1 1 0 1 5.06 5.06 0 1 1 1.866-9.76.5.5 0 1 1-.369.93Zm3.404-.082a.5.5 0 0 1 0 .708L6.354 7.4a.5.5 0 0 1-.71-.002L4.098 5.837a.5.5 0 0 1 .71-.704L6.003 6.34l4.192-4.193a.5.5 0 0 1 .707 0ZM9 7a.5.5 0 0 1 .5.5v1h1a.5.5 0 1 1 0 1h-1v1a.5.5 0 0 1-1 0v-1h-1a.5.5 0 1 1 0-1h1v-1A.5.5 0 0 1 9 7Z",fill:"currentColor"},null,-1),u=[c],h=["id"],_=e.createElementVNode("path",{fill:"#fff",d:"M0 0h12v12H0z"},null,-1),p=[_];function m(a,v,d,g,q,t){return e.openBlock(),e.createElementBlock("svg",{"aria-label":d.ariaLabel,class:e.normalizeClass([t.iconSizeClass,"d-icon d-icon--add-task"]),"data-qa":t.dataQA,"aria-hidden":t.ariaHidden,role:"img","data-name":"Add Task",viewBox:"0 0 12 12",xmlns:"http://www.w3.org/2000/svg"},[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,h)])],10,l)}const f=r._(s,[["render",m]]);module.exports=f;
//# sourceMappingURL=add-task.cjs.map