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

28 lines (27 loc) 982 B
/** * Check if the provided event name is a blur event * @param eventName The event name to check */ export declare const isBlurEvent: (eventName: string) => boolean; /** * Check if the provided event name is a change event * @param eventName The event name to check */ export declare const isChangeEvent: (eventName: string) => boolean; /** * Check if the provided event is an invalid event * @param eventName The event name to check */ export declare const isInvalidEvent: (eventName: string) => boolean; /** * Get a list of event names from the provided attribute string * @param events The events string * @returns an array of events */ export declare const normalizeEventAttribute: (events?: string) => string[]; /** * Get the event name for the provided element * @param element The element to get the event name for * @param eventName The event name to get */ export declare const getEventNameForElement: (element: HTMLElement, eventName: string) => string;