UNPKG

@esri/calcite-components

Version:

Web Components for Esri's Calcite Design System.

27 lines (26 loc) 792 B
import { CalciteIconPath } from "@esri/calcite-ui-icons"; import { Scale } from "../interfaces"; export interface FetchIconProps { icon: string; scale: Scale; } /** * Icon data cache. * Exported for testing purposes. * @private */ export declare const iconCache: Record<string, CalciteIconPath>; /** * Icon request cache. * Exported for testing purposes. * @private */ export declare const requestCache: Record<string, Promise<CalciteIconPath>>; export declare const scaleToPx: Record<Scale, number>; export declare function fetchIcon({ icon, scale }: FetchIconProps): Promise<CalciteIconPath>; /** * Normalize the icon name to match the path data module exports. * Exported for testing purposes. * @private */ export declare function normalizeIconName(name: string): string;