flaming-icons
Version:
Complete icon library with tree-shaking support for Vue and Vuetify
2 lines (1 loc) • 709 B
JavaScript
;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class t{constructor(){this.icons=new Map}add(...o){for(const s of o)if(this.icons.set(s.name,s),s.aliases)for(const n of s.aliases)this.icons.set(n,s)}findIconDefinition(o){return this.icons.get(o.iconName)||null}hasIcon(o){return this.icons.has(o)}getIcons(){const o=new Set;for(const s of this.icons.values())o.add(s);return Array.from(o)}getByCategory(o){const s=new Set;for(const n of this.icons.values())n.category===o&&s.add(n);return Array.from(s)}getCategories(){const o=new Set;for(const s of this.icons.values())o.add(s.category);return Array.from(o).sort()}clear(){this.icons.clear()}}const e=new t;exports.library=e;