@dialpad/dialtone-icons
Version:
Dialtone icon library
3 lines (2 loc) • 1.51 kB
JavaScript
;const l=require("../../utils-Bndrzhtw.cjs"),r=require("../../constants-CHwVJpfT.cjs"),e=require("vue"),d=require("../../_plugin-vue_export-helper-BRilXfQE.cjs"),s={name:"DtIconEmpty",props:{size:{type:String,default:"500",validator:a=>Object.keys(r.I).includes(a)},ariaLabel:{type:String,default:void 0}},emits:["loaded"],computed:{iconSizeClass(){return r.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()}},o=["aria-label","data-qa","aria-hidden"],u=["clip-path"],c=["id"];function p(a,t,n,h,f,i){return e.openBlock(),e.createElementBlock("svg",{"aria-label":n.ariaLabel,class:e.normalizeClass([i.iconSizeClass,"d-icon d-icon--empty"]),"data-qa":i.dataQA,"aria-hidden":i.ariaHidden,role:"img","data-name":"Empty",viewBox:"0 0 12 12",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("g",{"clip-path":`url(#${a.uniqueID}a)`},[...t[0]||(t[0]=[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8 1H4a3 3 0 0 0-3 3v4a3 3 0 0 0 3 3h4a3 3 0 0 0 3-3V4a3 3 0 0 0-3-3ZM4 0a4 4 0 0 0-4 4v4a4 4 0 0 0 4 4h4a4 4 0 0 0 4-4V4a4 4 0 0 0-4-4H4Z",fill:"currentColor"},null,-1)])],8,u),e.createElementVNode("defs",null,[e.createElementVNode("clipPath",{id:`${a.uniqueID}a`},[...t[1]||(t[1]=[e.createElementVNode("path",{fill:"#fff",d:"M0 0h12v12H0z"},null,-1)])],8,c)])],10,o)}const m=d._(s,[["render",p]]);module.exports=m;
//# sourceMappingURL=empty.cjs.map