@dialpad/dialtone-icons
Version:
Dialtone icon library
3 lines (2 loc) • 1.81 kB
JavaScript
;const n=require("../utils-Bndrzhtw.cjs"),i=require("../constants-CHwVJpfT.cjs"),e=require("vue"),d=require("../_plugin-vue_export-helper-BRilXfQE.cjs"),r={name:"DtIconEdit",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()}},s=["aria-label","data-qa","aria-hidden"],o=["clip-path"],c=e.createElementVNode("path",{d:"M.94 1.94A1.5 1.5 0 0 1 2 1.5h3.5a.5.5 0 0 1 0 1H2a.5.5 0 0 0-.5.5v7a.5.5 0 0 0 .5.5h7a.5.5 0 0 0 .5-.5V6.5a.5.5 0 0 1 1 0V10A1.5 1.5 0 0 1 9 11.5H2A1.5 1.5 0 0 1 .5 10V3c0-.398.158-.78.44-1.06Z"},null,-1),u=e.createElementVNode("path",{d:"M10 1.44a.56.56 0 0 0-.396.164L4.95 6.256l-.264 1.057 1.057-.264 4.652-4.653A.56.56 0 0 0 10 1.44ZM8.896.895a1.56 1.56 0 0 1 2.208 2.208l-4.75 4.75a.5.5 0 0 1-.233.131l-2 .5a.5.5 0 0 1-.606-.606l.5-2a.5.5 0 0 1 .131-.233l4.75-4.75Z"},null,-1),_=[c,u],h=["id"],p=e.createElementVNode("path",{fill:"#fff",d:"M0 0h12v12H0z"},null,-1),m=[p];function f(t,q,l,v,V,a){return e.openBlock(),e.createElementBlock("svg",{"aria-label":l.ariaLabel,class:e.normalizeClass([a.iconSizeClass,"d-icon d-icon--edit"]),"data-qa":a.dataQA,"aria-hidden":a.ariaHidden,role:"img","data-name":"Edit",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12"},[e.createElementVNode("g",{"clip-path":`url(#${t.uniqueID}a)`,fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd"},_,8,o),e.createElementVNode("defs",null,[e.createElementVNode("clipPath",{id:`${t.uniqueID}a`},m,8,h)])],10,s)}const g=d._(r,[["render",f]]);module.exports=g;
//# sourceMappingURL=edit.cjs.map