UNPKG

@sandlada/mdc

Version:

@sandlada/mdc is an open source component library that follows the Material Design 3 design specifications.

45 lines 1.93 kB
/** * @license * Copyright 2025 Kai-Orion & Sandlada * SPDX-License-Identifier: MIT */ import { LitElement } from 'lit'; import { createValidator, getValidityAnchor } from '../../utils/behaviors/constraint-validation'; import { CheckboxValidator } from '../../utils/behaviors/validators/checkbox-validator'; import { getFormState, getFormValue } from '../../utils/form/form-associated'; declare global { interface HTMLElementTagNameMap { "mdc-switch": Switch; } } declare const Switch_base: import("../../utils/behaviors/mixin").MixinReturn<import("../../utils/behaviors/mixin").MixinReturn<import("../../utils/behaviors/mixin").MixinReturn<(abstract new (...args: any[]) => import("../../utils/behaviors/element-internals").WithElementInternals) & typeof LitElement & import("../../utils/form/form-associated").FormAssociatedConstructor, import("../../utils/form/form-associated").FormAssociated>, import("../../utils/behaviors/constraint-validation").ConstraintValidation>>; export declare class Switch extends Switch_base { static styles: import("lit").CSSResult; static shadowRootOptions: ShadowRootInit; disabled: boolean; name: string; selected: boolean; required: boolean; value: string; hideSelectedIcon: boolean; showUnselectedIcon: boolean; private readonly inputElement; focus(): void; blur(): void; constructor(); protected render(): unknown; protected renderInput(): import("lit-html").TemplateResult<1>; private renderSelectedIcon; private renderUnselectedIcon; private handleInput; private handleChange; private handleClick; [getFormValue](): string | null; [getFormState](): string; formResetCallback(): void; formStateRestoreCallback(state: string): void; [createValidator](): CheckboxValidator; [getValidityAnchor](): HTMLInputElement; } export {}; //# sourceMappingURL=switch.d.ts.map