UNPKG

@dialpad/dialtone-icons

Version:
3 lines (2 loc) 1.69 kB
"use strict";const n=require("../../utils-Bndrzhtw.cjs"),l=require("../../constants-CHwVJpfT.cjs"),e=require("vue"),d=require("../../_plugin-vue_export-helper-BRilXfQE.cjs"),s={name:"DtIconXCircle",props:{size:{type:String,default:"500",validator:a=>Object.keys(l.I).includes(a)},ariaLabel:{type:String,default:void 0}},emits:["loaded"],computed:{iconSizeClass(){return l.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()}},o=["aria-label","data-qa","aria-hidden"],c=["clip-path"],u=["id"];function p(a,t,r,h,f,i){return e.openBlock(),e.createElementBlock("svg",{"aria-label":r.ariaLabel,class:e.normalizeClass([i.iconSizeClass,"d-icon d-icon--x-circle"]),"data-qa":i.dataQA,"aria-hidden":i.ariaHidden,role:"img","data-name":"X Circle",viewBox:"0 0 12 12",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("g",{"clip-path":`url(#${a.uniqueID}a)`,fill:"currentColor"},[...t[0]||(t[0]=[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 1.5a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9ZM.5 6a5.5 5.5 0 1 1 11 0 5.5 5.5 0 0 1-11 0Z"},null,-1),e.createElementVNode("path",{d:"M7.854 4.854a.5.5 0 0 0-.707-.707L6 5.293 4.854 4.147a.5.5 0 0 0-.707.707L5.293 6 4.147 7.147a.5.5 0 0 0 .707.707L6 6.707l1.147 1.147a.5.5 0 0 0 .707-.707L6.707 6l1.147-1.146Z"},null,-1)])],8,c),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,u)])],10,o)}const m=d._(s,[["render",p]]);module.exports=m; //# sourceMappingURL=x-circle.cjs.map