/* eslint-disable */ /* tslint:disable */ /** * This is an autogenerated file created by the Stencil compiler. * It contains typing information for all components that exist in this project. */ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime"; import { OdsThemeColorIntent } from "@ovhcloud/ods-theming"; import { OdsSwitchChangedEventDetail, OdsSwitchSize, OdsSwitchVariant } from "@ovhcloud/ods-core"; export namespace Components { interface OsdsSwitch { /** * main color: see component principles */ "color"?: OdsThemeColorIntent; /** * contrasted or not: see component principles */ "contrasted"?: boolean; /** * disabled: see component principles */ "disabled"?: boolean; /** * size: see component principles */ "size"?: OdsSwitchSize; /** * used design aspect */ "variant"?: OdsSwitchVariant; } interface OsdsSwitchItem { /** * The checked status of the SwitchItem */ "checked": boolean; /** * set the focus on the switch item */ "setFocus": () => Promise; /** * Its corresponding value */ "value": HTMLInputElement['value']; } } export interface OsdsSwitchCustomEvent extends CustomEvent { detail: T; target: HTMLOsdsSwitchElement; } declare global { interface HTMLOsdsSwitchElement extends Components.OsdsSwitch, HTMLStencilElement { } var HTMLOsdsSwitchElement: { prototype: HTMLOsdsSwitchElement; new (): HTMLOsdsSwitchElement; }; interface HTMLOsdsSwitchItemElement extends Components.OsdsSwitchItem, HTMLStencilElement { } var HTMLOsdsSwitchItemElement: { prototype: HTMLOsdsSwitchItemElement; new (): HTMLOsdsSwitchItemElement; }; interface HTMLElementTagNameMap { "osds-switch": HTMLOsdsSwitchElement; "osds-switch-item": HTMLOsdsSwitchItemElement; } } declare namespace LocalJSX { interface OsdsSwitch { /** * main color: see component principles */ "color"?: OdsThemeColorIntent; /** * contrasted or not: see component principles */ "contrasted"?: boolean; /** * disabled: see component principles */ "disabled"?: boolean; /** * Event triggered on accordion toggle */ "onOdsSwitchChanged"?: (event: OsdsSwitchCustomEvent) => void; /** * size: see component principles */ "size"?: OdsSwitchSize; /** * used design aspect */ "variant"?: OdsSwitchVariant; } interface OsdsSwitchItem { /** * The checked status of the SwitchItem */ "checked"?: boolean; /** * Its corresponding value */ "value"?: HTMLInputElement['value']; } interface IntrinsicElements { "osds-switch": OsdsSwitch; "osds-switch-item": OsdsSwitchItem; } } export { LocalJSX as JSX }; declare module "@stencil/core" { export namespace JSX { interface IntrinsicElements { "osds-switch": LocalJSX.OsdsSwitch & JSXBase.HTMLAttributes; "osds-switch-item": LocalJSX.OsdsSwitchItem & JSXBase.HTMLAttributes; } } }