UNPKG

adwaveui

Version:

Interactive Web Components inspired by the Gtk Adwaita theme.

44 lines (43 loc) 1.7 kB
import "../../base-elements"; import { AttributesOf, EventNamesOf } from "wc_toolkit"; import { CustomKeyboardEvent, CustomMouseEvent } from "../../utils/events"; declare class AdwSwitchChangeEvent extends Event { readonly type: "change"; readonly active: boolean; constructor(type: string, active: boolean); } declare const CustomElement: import("wc_toolkit").CustomElement<{ active: "boolean"; disabled: "boolean"; name: "string"; form: "string"; }, { readonly change: typeof AdwSwitchChangeEvent; readonly click: new (name: string, detail: any, base: MouseEvent) => CustomMouseEvent<string, any>; readonly keydown: new (name: string, detail: any, base: KeyboardEvent) => CustomKeyboardEvent<string, any>; }, { toggle(): void; focus(): void; _handleClick(e: MouseEvent): void; _handleKeyDown(e: KeyboardEvent): void; }>; declare const AdwSwitch: import("wc_toolkit").CustomElement<{ active: "boolean"; disabled: "boolean"; name: "string"; form: "string"; }, { readonly change: typeof AdwSwitchChangeEvent; readonly click: new (name: string, detail: any, base: MouseEvent) => CustomMouseEvent<string, any>; readonly keydown: new (name: string, detail: any, base: KeyboardEvent) => CustomKeyboardEvent<string, any>; }, { toggle(): void; focus(): void; _handleClick(e: MouseEvent): void; _handleKeyDown(e: KeyboardEvent): void; }>; type AdwSwitch = InstanceType<typeof CustomElement>; type AdwSwitchAttributes = AttributesOf<typeof AdwSwitch>; type AdwSwitchEvents = EventNamesOf<typeof AdwSwitch>; export { AdwSwitch }; export type { AdwSwitchAttributes, AdwSwitchChangeEvent, AdwSwitchEvents };