UNPKG

@synergy-design-system/components

Version:

This package provides the base of the Synergy Design System as native web components. It uses [lit](https://www.lit.dev) and parts of [shoelace](https://shoelace.style/). Synergy officially supports the latest two versions of all major browsers (as define

26 lines (25 loc) 1.2 kB
/** * --------------------------------------------------------------------- * 🔒 AUTOGENERATED BY VENDORISM * Removing this comment will prevent it from being managed by it. * --------------------------------------------------------------------- */ import type SynIcon from '../icon/icon.js'; export type IconLibraryResolver = (name: string) => string; export type IconLibraryMutator = (svg: SVGElement) => void; export interface IconLibrary { name: string; resolver: IconLibraryResolver; mutator?: IconLibraryMutator; spriteSheet?: boolean; } /** Adds an icon to the list of watched icons. */ export declare function watchIcon(icon: SynIcon): void; /** Removes an icon from the list of watched icons. */ export declare function unwatchIcon(icon: SynIcon): void; /** Returns a library from the registry. */ export declare function getIconLibrary(name?: string): IconLibrary | undefined; /** Adds an icon library to the registry, or overrides an existing one. */ export declare function registerIconLibrary(name: string, options: Omit<IconLibrary, 'name'>): void; /** Removes an icon library from the registry. */ export declare function unregisterIconLibrary(name: string): void;