@rmwc/switch
Advanced tools
Comparing version
@@ -1,392 +0,16 @@ | ||
| /// <reference types="react" /> | ||
| /// <reference types="@emotion/core" /> | ||
| import * as RMWC from '@rmwc/types'; | ||
| import React from 'react'; | ||
| import { SwitchProps } from '.'; | ||
| import { MDCSwitchFoundation } from '@material/switch'; | ||
| export declare const useSwitchFoundation: (props: SwitchProps & Pick<import("react").AllHTMLAttributes<HTMLInputElement>, "onError" | "className" | "cite" | "data" | "form" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "prefix" | "size" | "children" | "value" | "onBlur" | "onClick" | "onContextMenu" | "onCopy" | "onCut" | "onAuxClick" | "onDoubleClick" | "onDragEnd" | "onDragStart" | "onDrop" | "onFocus" | "onInput" | "onInvalid" | "onKeyDown" | "onKeyPress" | "onKeyUp" | "onMouseDown" | "onMouseUp" | "onPaste" | "onPause" | "onPlay" | "onPointerCancel" | "onPointerDown" | "onPointerUp" | "onRateChange" | "onReset" | "onSeeked" | "onSubmit" | "onTouchCancel" | "onTouchEnd" | "onTouchStart" | "onVolumeChange" | "onAbort" | "onAnimationEnd" | "onAnimationIteration" | "onAnimationStart" | "onCanPlay" | "onCanPlayThrough" | "onDrag" | "onDragEnter" | "onDragExit" | "onDragLeave" | "onDragOver" | "onDurationChange" | "onEmptied" | "onEncrypted" | "onEnded" | "onGotPointerCapture" | "onLoad" | "onLoadedData" | "onLoadedMetadata" | "onLoadStart" | "onLostPointerCapture" | "onMouseMove" | "onMouseOut" | "onMouseOver" | "onPlaying" | "onPointerMove" | "onPointerOut" | "onPointerOver" | "onProgress" | "onScroll" | "onSeeking" | "onStalled" | "onSuspend" | "onTimeUpdate" | "onTouchMove" | "onTransitionEnd" | "onWaiting" | "onWheel" | "onMouseEnter" | "onMouseLeave" | "onPointerEnter" | "onPointerLeave" | "onChange" | "onSelect" | "onBeforeInput" | "onCompositionEnd" | "onCompositionStart" | "onCompositionUpdate" | "id" | "dir" | "color" | "height" | "lang" | "max" | "media" | "method" | "min" | "name" | "target" | "type" | "width" | "role" | "tabIndex" | "crossOrigin" | "href" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopyCapture" | "onCutCapture" | "onPasteCapture" | "onCompositionEndCapture" | "onCompositionStartCapture" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInputCapture" | "onInputCapture" | "onResetCapture" | "onSubmitCapture" | "onInvalidCapture" | "onLoadCapture" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPressCapture" | "onKeyUpCapture" | "onAbortCapture" | "onCanPlayCapture" | "onCanPlayThroughCapture" | "onDurationChangeCapture" | "onEmptiedCapture" | "onEncryptedCapture" | "onEndedCapture" | "onLoadedDataCapture" | "onLoadedMetadataCapture" | "onLoadStartCapture" | "onPauseCapture" | "onPlayCapture" | "onPlayingCapture" | "onProgressCapture" | "onRateChangeCapture" | "onSeekedCapture" | "onSeekingCapture" | "onStalledCapture" | "onSuspendCapture" | "onTimeUpdateCapture" | "onVolumeChangeCapture" | "onWaitingCapture" | "onAuxClickCapture" | "onClickCapture" | "onContextMenuCapture" | "onDoubleClickCapture" | "onDragCapture" | "onDragEndCapture" | "onDragEnterCapture" | "onDragExitCapture" | "onDragLeaveCapture" | "onDragOverCapture" | "onDragStartCapture" | "onDropCapture" | "onMouseDownCapture" | "onMouseMoveCapture" | "onMouseOutCapture" | "onMouseOverCapture" | "onMouseUpCapture" | "onSelectCapture" | "onTouchCancelCapture" | "onTouchEndCapture" | "onTouchMoveCapture" | "onTouchStartCapture" | "onPointerDownCapture" | "onPointerMoveCapture" | "onPointerUpCapture" | "onPointerCancelCapture" | "onPointerEnterCapture" | "onPointerLeaveCapture" | "onPointerOverCapture" | "onPointerOutCapture" | "onGotPointerCaptureCapture" | "onLostPointerCaptureCapture" | "onScrollCapture" | "onWheelCapture" | "onAnimationStartCapture" | "onAnimationEndCapture" | "onAnimationIterationCapture" | "onTransitionEndCapture" | "css" | "classID" | "useMap" | "wmode" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "download" | "hrefLang" | "rel" | "alt" | "coords" | "shape" | "autoPlay" | "controls" | "loop" | "mediaGroup" | "muted" | "preload" | "src" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "dateTime" | "open" | "acceptCharset" | "action" | "autoComplete" | "encType" | "noValidate" | "manifest" | "allowFullScreen" | "allowTransparency" | "frameBorder" | "marginHeight" | "marginWidth" | "sandbox" | "scrolling" | "seamless" | "srcDoc" | "sizes" | "srcSet" | "async" | "accept" | "capture" | "checked" | "list" | "maxLength" | "minLength" | "multiple" | "readOnly" | "required" | "step" | "challenge" | "keyType" | "keyParams" | "htmlFor" | "as" | "integrity" | "charSet" | "content" | "httpEquiv" | "high" | "low" | "optimum" | "reversed" | "start" | "selected" | "defer" | "nonce" | "scoped" | "cellPadding" | "cellSpacing" | "colSpan" | "headers" | "rowSpan" | "scope" | "cols" | "rows" | "wrap" | "default" | "kind" | "srcLang" | "playsInline" | "poster"> & import("react").ClassAttributes<HTMLInputElement> & { | ||
| tag?: string | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined; | ||
| export declare const useSwitchFoundation: (props: SwitchProps & Pick<React.AllHTMLAttributes<HTMLInputElement>, "onError" | "className" | "cite" | "data" | "form" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "prefix" | "size" | "children" | "value" | "onBlur" | "onClick" | "onContextMenu" | "onCopy" | "onCut" | "onAuxClick" | "onDoubleClick" | "onDragEnd" | "onDragStart" | "onDrop" | "onFocus" | "onInput" | "onInvalid" | "onKeyDown" | "onKeyPress" | "onKeyUp" | "onMouseDown" | "onMouseUp" | "onPaste" | "onPause" | "onPlay" | "onPointerCancel" | "onPointerDown" | "onPointerUp" | "onRateChange" | "onReset" | "onSeeked" | "onSubmit" | "onTouchCancel" | "onTouchEnd" | "onTouchStart" | "onVolumeChange" | "onAbort" | "onAnimationEnd" | "onAnimationIteration" | "onAnimationStart" | "onCanPlay" | "onCanPlayThrough" | "onDrag" | "onDragEnter" | "onDragExit" | "onDragLeave" | "onDragOver" | "onDurationChange" | "onEmptied" | "onEncrypted" | "onEnded" | "onGotPointerCapture" | "onLoad" | "onLoadedData" | "onLoadedMetadata" | "onLoadStart" | "onLostPointerCapture" | "onMouseMove" | "onMouseOut" | "onMouseOver" | "onPlaying" | "onPointerMove" | "onPointerOut" | "onPointerOver" | "onProgress" | "onScroll" | "onSeeking" | "onStalled" | "onSuspend" | "onTimeUpdate" | "onTouchMove" | "onTransitionEnd" | "onWaiting" | "onWheel" | "onMouseEnter" | "onMouseLeave" | "onPointerEnter" | "onPointerLeave" | "onChange" | "onSelect" | "onBeforeInput" | "onCompositionEnd" | "onCompositionStart" | "onCompositionUpdate" | "id" | "dir" | "color" | "height" | "lang" | "max" | "media" | "method" | "min" | "name" | "target" | "type" | "width" | "role" | "tabIndex" | "crossOrigin" | "href" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopyCapture" | "onCutCapture" | "onPasteCapture" | "onCompositionEndCapture" | "onCompositionStartCapture" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInputCapture" | "onInputCapture" | "onResetCapture" | "onSubmitCapture" | "onInvalidCapture" | "onLoadCapture" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPressCapture" | "onKeyUpCapture" | "onAbortCapture" | "onCanPlayCapture" | "onCanPlayThroughCapture" | "onDurationChangeCapture" | "onEmptiedCapture" | "onEncryptedCapture" | "onEndedCapture" | "onLoadedDataCapture" | "onLoadedMetadataCapture" | "onLoadStartCapture" | "onPauseCapture" | "onPlayCapture" | "onPlayingCapture" | "onProgressCapture" | "onRateChangeCapture" | "onSeekedCapture" | "onSeekingCapture" | "onStalledCapture" | "onSuspendCapture" | "onTimeUpdateCapture" | "onVolumeChangeCapture" | "onWaitingCapture" | "onAuxClickCapture" | "onClickCapture" | "onContextMenuCapture" | "onDoubleClickCapture" | "onDragCapture" | "onDragEndCapture" | "onDragEnterCapture" | "onDragExitCapture" | "onDragLeaveCapture" | "onDragOverCapture" | "onDragStartCapture" | "onDropCapture" | "onMouseDownCapture" | "onMouseMoveCapture" | "onMouseOutCapture" | "onMouseOverCapture" | "onMouseUpCapture" | "onSelectCapture" | "onTouchCancelCapture" | "onTouchEndCapture" | "onTouchMoveCapture" | "onTouchStartCapture" | "onPointerDownCapture" | "onPointerMoveCapture" | "onPointerUpCapture" | "onPointerCancelCapture" | "onPointerEnterCapture" | "onPointerLeaveCapture" | "onPointerOverCapture" | "onPointerOutCapture" | "onGotPointerCaptureCapture" | "onLostPointerCaptureCapture" | "onScrollCapture" | "onWheelCapture" | "onAnimationStartCapture" | "onAnimationEndCapture" | "onAnimationIterationCapture" | "onTransitionEndCapture" | "css" | "classID" | "useMap" | "wmode" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "download" | "hrefLang" | "rel" | "alt" | "coords" | "shape" | "autoPlay" | "controls" | "loop" | "mediaGroup" | "muted" | "preload" | "src" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "dateTime" | "open" | "acceptCharset" | "action" | "autoComplete" | "encType" | "noValidate" | "manifest" | "allowFullScreen" | "allowTransparency" | "frameBorder" | "marginHeight" | "marginWidth" | "sandbox" | "scrolling" | "seamless" | "srcDoc" | "sizes" | "srcSet" | "async" | "accept" | "capture" | "checked" | "list" | "maxLength" | "minLength" | "multiple" | "readOnly" | "required" | "step" | "challenge" | "keyType" | "keyParams" | "htmlFor" | "as" | "integrity" | "charSet" | "content" | "httpEquiv" | "high" | "low" | "optimum" | "reversed" | "start" | "selected" | "defer" | "nonce" | "scoped" | "cellPadding" | "cellSpacing" | "colSpan" | "headers" | "rowSpan" | "scope" | "cols" | "rows" | "wrap" | "default" | "kind" | "srcLang" | "playsInline" | "poster"> & React.ClassAttributes<HTMLInputElement> & { | ||
| tag?: string | React.ComponentClass<any, any> | React.FunctionComponent<any> | undefined; | ||
| theme?: RMWC.ThemePropT; | ||
| ref?: string | ((instance: HTMLInputElement | null) => void) | import("react").RefObject<HTMLInputElement> | null | undefined; | ||
| ref?: string | ((instance: HTMLInputElement | null) => void) | React.RefObject<HTMLInputElement> | null | undefined; | ||
| }) => { | ||
| rootEl: import("@rmwc/base").FoundationElement<SwitchProps & Pick<import("react").AllHTMLAttributes<HTMLInputElement>, "onError" | "className" | "cite" | "data" | "form" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "prefix" | "size" | "children" | "value" | "onBlur" | "onClick" | "onContextMenu" | "onCopy" | "onCut" | "onAuxClick" | "onDoubleClick" | "onDragEnd" | "onDragStart" | "onDrop" | "onFocus" | "onInput" | "onInvalid" | "onKeyDown" | "onKeyPress" | "onKeyUp" | "onMouseDown" | "onMouseUp" | "onPaste" | "onPause" | "onPlay" | "onPointerCancel" | "onPointerDown" | "onPointerUp" | "onRateChange" | "onReset" | "onSeeked" | "onSubmit" | "onTouchCancel" | "onTouchEnd" | "onTouchStart" | "onVolumeChange" | "onAbort" | "onAnimationEnd" | "onAnimationIteration" | "onAnimationStart" | "onCanPlay" | "onCanPlayThrough" | "onDrag" | "onDragEnter" | "onDragExit" | "onDragLeave" | "onDragOver" | "onDurationChange" | "onEmptied" | "onEncrypted" | "onEnded" | "onGotPointerCapture" | "onLoad" | "onLoadedData" | "onLoadedMetadata" | "onLoadStart" | "onLostPointerCapture" | "onMouseMove" | "onMouseOut" | "onMouseOver" | "onPlaying" | "onPointerMove" | "onPointerOut" | "onPointerOver" | "onProgress" | "onScroll" | "onSeeking" | "onStalled" | "onSuspend" | "onTimeUpdate" | "onTouchMove" | "onTransitionEnd" | "onWaiting" | "onWheel" | "onMouseEnter" | "onMouseLeave" | "onPointerEnter" | "onPointerLeave" | "onChange" | "onSelect" | "onBeforeInput" | "onCompositionEnd" | "onCompositionStart" | "onCompositionUpdate" | "id" | "dir" | "color" | "height" | "lang" | "max" | "media" | "method" | "min" | "name" | "target" | "type" | "width" | "role" | "tabIndex" | "crossOrigin" | "href" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopyCapture" | "onCutCapture" | "onPasteCapture" | "onCompositionEndCapture" | "onCompositionStartCapture" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInputCapture" | "onInputCapture" | "onResetCapture" | "onSubmitCapture" | "onInvalidCapture" | "onLoadCapture" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPressCapture" | "onKeyUpCapture" | "onAbortCapture" | "onCanPlayCapture" | "onCanPlayThroughCapture" | "onDurationChangeCapture" | "onEmptiedCapture" | "onEncryptedCapture" | "onEndedCapture" | "onLoadedDataCapture" | "onLoadedMetadataCapture" | "onLoadStartCapture" | "onPauseCapture" | "onPlayCapture" | "onPlayingCapture" | "onProgressCapture" | "onRateChangeCapture" | "onSeekedCapture" | "onSeekingCapture" | "onStalledCapture" | "onSuspendCapture" | "onTimeUpdateCapture" | "onVolumeChangeCapture" | "onWaitingCapture" | "onAuxClickCapture" | "onClickCapture" | "onContextMenuCapture" | "onDoubleClickCapture" | "onDragCapture" | "onDragEndCapture" | "onDragEnterCapture" | "onDragExitCapture" | "onDragLeaveCapture" | "onDragOverCapture" | "onDragStartCapture" | "onDropCapture" | "onMouseDownCapture" | "onMouseMoveCapture" | "onMouseOutCapture" | "onMouseOverCapture" | "onMouseUpCapture" | "onSelectCapture" | "onTouchCancelCapture" | "onTouchEndCapture" | "onTouchMoveCapture" | "onTouchStartCapture" | "onPointerDownCapture" | "onPointerMoveCapture" | "onPointerUpCapture" | "onPointerCancelCapture" | "onPointerEnterCapture" | "onPointerLeaveCapture" | "onPointerOverCapture" | "onPointerOutCapture" | "onGotPointerCaptureCapture" | "onLostPointerCaptureCapture" | "onScrollCapture" | "onWheelCapture" | "onAnimationStartCapture" | "onAnimationEndCapture" | "onAnimationIterationCapture" | "onTransitionEndCapture" | "css" | "classID" | "useMap" | "wmode" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "download" | "hrefLang" | "rel" | "alt" | "coords" | "shape" | "autoPlay" | "controls" | "loop" | "mediaGroup" | "muted" | "preload" | "src" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "dateTime" | "open" | "acceptCharset" | "action" | "autoComplete" | "encType" | "noValidate" | "manifest" | "allowFullScreen" | "allowTransparency" | "frameBorder" | "marginHeight" | "marginWidth" | "sandbox" | "scrolling" | "seamless" | "srcDoc" | "sizes" | "srcSet" | "async" | "accept" | "capture" | "checked" | "list" | "maxLength" | "minLength" | "multiple" | "readOnly" | "required" | "step" | "challenge" | "keyType" | "keyParams" | "htmlFor" | "as" | "integrity" | "charSet" | "content" | "httpEquiv" | "high" | "low" | "optimum" | "reversed" | "start" | "selected" | "defer" | "nonce" | "scoped" | "cellPadding" | "cellSpacing" | "colSpan" | "headers" | "rowSpan" | "scope" | "cols" | "rows" | "wrap" | "default" | "kind" | "srcLang" | "playsInline" | "poster"> & import("react").ClassAttributes<HTMLInputElement> & { | ||
| tag?: string | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined; | ||
| theme?: RMWC.ThemePropT; | ||
| ref?: string | ((instance: HTMLInputElement | null) => void) | import("react").RefObject<HTMLInputElement> | null | undefined; | ||
| }, HTMLElement>; | ||
| checkboxEl: import("@rmwc/base").FoundationElement<SwitchProps & Pick<import("react").AllHTMLAttributes<HTMLInputElement>, "onError" | "className" | "cite" | "data" | "form" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "prefix" | "size" | "children" | "value" | "onBlur" | "onClick" | "onContextMenu" | "onCopy" | "onCut" | "onAuxClick" | "onDoubleClick" | "onDragEnd" | "onDragStart" | "onDrop" | "onFocus" | "onInput" | "onInvalid" | "onKeyDown" | "onKeyPress" | "onKeyUp" | "onMouseDown" | "onMouseUp" | "onPaste" | "onPause" | "onPlay" | "onPointerCancel" | "onPointerDown" | "onPointerUp" | "onRateChange" | "onReset" | "onSeeked" | "onSubmit" | "onTouchCancel" | "onTouchEnd" | "onTouchStart" | "onVolumeChange" | "onAbort" | "onAnimationEnd" | "onAnimationIteration" | "onAnimationStart" | "onCanPlay" | "onCanPlayThrough" | "onDrag" | "onDragEnter" | "onDragExit" | "onDragLeave" | "onDragOver" | "onDurationChange" | "onEmptied" | "onEncrypted" | "onEnded" | "onGotPointerCapture" | "onLoad" | "onLoadedData" | "onLoadedMetadata" | "onLoadStart" | "onLostPointerCapture" | "onMouseMove" | "onMouseOut" | "onMouseOver" | "onPlaying" | "onPointerMove" | "onPointerOut" | "onPointerOver" | "onProgress" | "onScroll" | "onSeeking" | "onStalled" | "onSuspend" | "onTimeUpdate" | "onTouchMove" | "onTransitionEnd" | "onWaiting" | "onWheel" | "onMouseEnter" | "onMouseLeave" | "onPointerEnter" | "onPointerLeave" | "onChange" | "onSelect" | "onBeforeInput" | "onCompositionEnd" | "onCompositionStart" | "onCompositionUpdate" | "id" | "dir" | "color" | "height" | "lang" | "max" | "media" | "method" | "min" | "name" | "target" | "type" | "width" | "role" | "tabIndex" | "crossOrigin" | "href" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopyCapture" | "onCutCapture" | "onPasteCapture" | "onCompositionEndCapture" | "onCompositionStartCapture" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInputCapture" | "onInputCapture" | "onResetCapture" | "onSubmitCapture" | "onInvalidCapture" | "onLoadCapture" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPressCapture" | "onKeyUpCapture" | "onAbortCapture" | "onCanPlayCapture" | "onCanPlayThroughCapture" | "onDurationChangeCapture" | "onEmptiedCapture" | "onEncryptedCapture" | "onEndedCapture" | "onLoadedDataCapture" | "onLoadedMetadataCapture" | "onLoadStartCapture" | "onPauseCapture" | "onPlayCapture" | "onPlayingCapture" | "onProgressCapture" | "onRateChangeCapture" | "onSeekedCapture" | "onSeekingCapture" | "onStalledCapture" | "onSuspendCapture" | "onTimeUpdateCapture" | "onVolumeChangeCapture" | "onWaitingCapture" | "onAuxClickCapture" | "onClickCapture" | "onContextMenuCapture" | "onDoubleClickCapture" | "onDragCapture" | "onDragEndCapture" | "onDragEnterCapture" | "onDragExitCapture" | "onDragLeaveCapture" | "onDragOverCapture" | "onDragStartCapture" | "onDropCapture" | "onMouseDownCapture" | "onMouseMoveCapture" | "onMouseOutCapture" | "onMouseOverCapture" | "onMouseUpCapture" | "onSelectCapture" | "onTouchCancelCapture" | "onTouchEndCapture" | "onTouchMoveCapture" | "onTouchStartCapture" | "onPointerDownCapture" | "onPointerMoveCapture" | "onPointerUpCapture" | "onPointerCancelCapture" | "onPointerEnterCapture" | "onPointerLeaveCapture" | "onPointerOverCapture" | "onPointerOutCapture" | "onGotPointerCaptureCapture" | "onLostPointerCaptureCapture" | "onScrollCapture" | "onWheelCapture" | "onAnimationStartCapture" | "onAnimationEndCapture" | "onAnimationIterationCapture" | "onTransitionEndCapture" | "css" | "classID" | "useMap" | "wmode" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "download" | "hrefLang" | "rel" | "alt" | "coords" | "shape" | "autoPlay" | "controls" | "loop" | "mediaGroup" | "muted" | "preload" | "src" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "dateTime" | "open" | "acceptCharset" | "action" | "autoComplete" | "encType" | "noValidate" | "manifest" | "allowFullScreen" | "allowTransparency" | "frameBorder" | "marginHeight" | "marginWidth" | "sandbox" | "scrolling" | "seamless" | "srcDoc" | "sizes" | "srcSet" | "async" | "accept" | "capture" | "checked" | "list" | "maxLength" | "minLength" | "multiple" | "readOnly" | "required" | "step" | "challenge" | "keyType" | "keyParams" | "htmlFor" | "as" | "integrity" | "charSet" | "content" | "httpEquiv" | "high" | "low" | "optimum" | "reversed" | "start" | "selected" | "defer" | "nonce" | "scoped" | "cellPadding" | "cellSpacing" | "colSpan" | "headers" | "rowSpan" | "scope" | "cols" | "rows" | "wrap" | "default" | "kind" | "srcLang" | "playsInline" | "poster"> & import("react").ClassAttributes<HTMLInputElement> & { | ||
| tag?: string | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined; | ||
| theme?: RMWC.ThemePropT; | ||
| ref?: string | ((instance: HTMLInputElement | null) => void) | import("react").RefObject<HTMLInputElement> | null | undefined; | ||
| }, HTMLElement>; | ||
| rootEl: import("@rmwc/base").FoundationElement<any, HTMLElement>; | ||
| checkboxEl: import("@rmwc/base").FoundationElement<any, HTMLElement>; | ||
| foundation: MDCSwitchFoundation; | ||
| renderToggle: (toggle: import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, string | any | (new (props: any) => import("react").Component<any, any, any>)> | null) | (new (props: any) => import("react").Component<any, any, any>)>) => JSX.Element; | ||
| toggleRootProps: { | ||
| disabled: boolean | undefined; | ||
| } | { | ||
| accept?: string | undefined; | ||
| acceptCharset?: string | undefined; | ||
| action?: string | undefined; | ||
| allowFullScreen?: boolean | undefined; | ||
| allowTransparency?: boolean | undefined; | ||
| alt?: string | undefined; | ||
| as?: string | undefined; | ||
| async?: boolean | undefined; | ||
| autoComplete?: string | undefined; | ||
| autoFocus?: boolean | undefined; | ||
| autoPlay?: boolean | undefined; | ||
| capture?: string | boolean | undefined; | ||
| cellPadding?: string | number | undefined; | ||
| cellSpacing?: string | number | undefined; | ||
| charSet?: string | undefined; | ||
| challenge?: string | undefined; | ||
| checked?: boolean | undefined; | ||
| cite?: string | undefined; | ||
| classID?: string | undefined; | ||
| cols?: number | undefined; | ||
| colSpan?: number | undefined; | ||
| content?: string | undefined; | ||
| controls?: boolean | undefined; | ||
| coords?: string | undefined; | ||
| crossOrigin?: string | undefined; | ||
| data?: string | undefined; | ||
| dateTime?: string | undefined; | ||
| default?: boolean | undefined; | ||
| defer?: boolean | undefined; | ||
| disabled: boolean | undefined; | ||
| download?: any; | ||
| encType?: string | undefined; | ||
| form?: string | undefined; | ||
| formAction?: string | undefined; | ||
| formEncType?: string | undefined; | ||
| formMethod?: string | undefined; | ||
| formNoValidate?: boolean | undefined; | ||
| formTarget?: string | undefined; | ||
| frameBorder?: string | number | undefined; | ||
| headers?: string | undefined; | ||
| height?: string | number | undefined; | ||
| high?: number | undefined; | ||
| href?: string | undefined; | ||
| hrefLang?: string | undefined; | ||
| htmlFor?: string | undefined; | ||
| httpEquiv?: string | undefined; | ||
| integrity?: string | undefined; | ||
| keyParams?: string | undefined; | ||
| keyType?: string | undefined; | ||
| kind?: string | undefined; | ||
| label?: string | undefined; | ||
| list?: string | undefined; | ||
| loop?: boolean | undefined; | ||
| low?: number | undefined; | ||
| manifest?: string | undefined; | ||
| marginHeight?: number | undefined; | ||
| marginWidth?: number | undefined; | ||
| max?: string | number | undefined; | ||
| maxLength?: number | undefined; | ||
| media?: string | undefined; | ||
| mediaGroup?: string | undefined; | ||
| method?: string | undefined; | ||
| min?: string | number | undefined; | ||
| minLength?: number | undefined; | ||
| multiple?: boolean | undefined; | ||
| muted?: boolean | undefined; | ||
| name?: string | undefined; | ||
| nonce?: string | undefined; | ||
| noValidate?: boolean | undefined; | ||
| open?: boolean | undefined; | ||
| optimum?: number | undefined; | ||
| pattern?: string | undefined; | ||
| placeholder?: string | undefined; | ||
| playsInline?: boolean | undefined; | ||
| poster?: string | undefined; | ||
| preload?: string | undefined; | ||
| readOnly?: boolean | undefined; | ||
| rel?: string | undefined; | ||
| required?: boolean | undefined; | ||
| reversed?: boolean | undefined; | ||
| rows?: number | undefined; | ||
| rowSpan?: number | undefined; | ||
| sandbox?: string | undefined; | ||
| scope?: string | undefined; | ||
| scoped?: boolean | undefined; | ||
| scrolling?: string | undefined; | ||
| seamless?: boolean | undefined; | ||
| selected?: boolean | undefined; | ||
| shape?: string | undefined; | ||
| size?: number | undefined; | ||
| sizes?: string | undefined; | ||
| span?: number | undefined; | ||
| src?: string | undefined; | ||
| srcDoc?: string | undefined; | ||
| srcLang?: string | undefined; | ||
| srcSet?: string | undefined; | ||
| start?: number | undefined; | ||
| step?: string | number | undefined; | ||
| summary?: string | undefined; | ||
| target?: string | undefined; | ||
| type?: string | undefined; | ||
| useMap?: string | undefined; | ||
| value?: string | number | string[] | undefined; | ||
| width?: string | number | undefined; | ||
| wmode?: string | undefined; | ||
| wrap?: string | undefined; | ||
| defaultChecked?: boolean | undefined; | ||
| defaultValue?: string | number | string[] | undefined; | ||
| suppressContentEditableWarning?: boolean | undefined; | ||
| suppressHydrationWarning?: boolean | undefined; | ||
| accessKey?: string | undefined; | ||
| className: string | undefined; | ||
| contentEditable?: boolean | "inherit" | "true" | "false" | undefined; | ||
| contextMenu?: string | undefined; | ||
| dir?: string | undefined; | ||
| draggable?: boolean | "true" | "false" | undefined; | ||
| hidden?: boolean | undefined; | ||
| id?: string | undefined; | ||
| lang?: string | undefined; | ||
| slot?: string | undefined; | ||
| spellCheck?: boolean | "true" | "false" | undefined; | ||
| style: import("react").CSSProperties | undefined; | ||
| tabIndex?: number | undefined; | ||
| title?: string | undefined; | ||
| translate?: "no" | "yes" | undefined; | ||
| radioGroup?: string | undefined; | ||
| role?: string | undefined; | ||
| about?: string | undefined; | ||
| datatype?: string | undefined; | ||
| inlist?: any; | ||
| prefix?: string | undefined; | ||
| property?: string | undefined; | ||
| resource?: string | undefined; | ||
| typeof?: string | undefined; | ||
| vocab?: string | undefined; | ||
| autoCapitalize?: string | undefined; | ||
| autoCorrect?: string | undefined; | ||
| autoSave?: string | undefined; | ||
| color?: string | undefined; | ||
| itemProp?: string | undefined; | ||
| itemScope?: boolean | undefined; | ||
| itemType?: string | undefined; | ||
| itemID?: string | undefined; | ||
| itemRef?: string | undefined; | ||
| results?: number | undefined; | ||
| security?: string | undefined; | ||
| unselectable?: "on" | "off" | undefined; | ||
| inputMode?: "url" | "text" | "search" | "none" | "tel" | "email" | "numeric" | "decimal" | undefined; | ||
| is?: string | undefined; | ||
| 'aria-activedescendant'?: string | undefined; | ||
| 'aria-atomic'?: boolean | "true" | "false" | undefined; | ||
| 'aria-autocomplete'?: "none" | "list" | "inline" | "both" | undefined; | ||
| 'aria-busy'?: boolean | "true" | "false" | undefined; | ||
| 'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined; | ||
| 'aria-colcount'?: number | undefined; | ||
| 'aria-colindex'?: number | undefined; | ||
| 'aria-colspan'?: number | undefined; | ||
| 'aria-controls'?: string | undefined; | ||
| 'aria-current'?: boolean | "time" | "true" | "false" | "step" | "page" | "location" | "date" | undefined; | ||
| 'aria-describedby'?: string | undefined; | ||
| 'aria-details'?: string | undefined; | ||
| 'aria-disabled'?: boolean | "true" | "false" | undefined; | ||
| 'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined; | ||
| 'aria-errormessage'?: string | undefined; | ||
| 'aria-expanded'?: boolean | "true" | "false" | undefined; | ||
| 'aria-flowto'?: string | undefined; | ||
| 'aria-grabbed'?: boolean | "true" | "false" | undefined; | ||
| 'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "listbox" | "tree" | "grid" | undefined; | ||
| 'aria-hidden'?: boolean | "true" | "false" | undefined; | ||
| 'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined; | ||
| 'aria-keyshortcuts'?: string | undefined; | ||
| 'aria-label'?: string | undefined; | ||
| 'aria-labelledby'?: string | undefined; | ||
| 'aria-level'?: number | undefined; | ||
| 'aria-live'?: "off" | "assertive" | "polite" | undefined; | ||
| 'aria-modal'?: boolean | "true" | "false" | undefined; | ||
| 'aria-multiline'?: boolean | "true" | "false" | undefined; | ||
| 'aria-multiselectable'?: boolean | "true" | "false" | undefined; | ||
| 'aria-orientation'?: "horizontal" | "vertical" | undefined; | ||
| 'aria-owns'?: string | undefined; | ||
| 'aria-placeholder'?: string | undefined; | ||
| 'aria-posinset'?: number | undefined; | ||
| 'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined; | ||
| 'aria-readonly'?: boolean | "true" | "false" | undefined; | ||
| 'aria-relevant'?: "text" | "additions" | "additions text" | "all" | "removals" | undefined; | ||
| 'aria-required'?: boolean | "true" | "false" | undefined; | ||
| 'aria-roledescription'?: string | undefined; | ||
| 'aria-rowcount'?: number | undefined; | ||
| 'aria-rowindex'?: number | undefined; | ||
| 'aria-rowspan'?: number | undefined; | ||
| 'aria-selected'?: boolean | "true" | "false" | undefined; | ||
| 'aria-setsize'?: number | undefined; | ||
| 'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined; | ||
| 'aria-valuemax'?: number | undefined; | ||
| 'aria-valuemin'?: number | undefined; | ||
| 'aria-valuenow'?: number | undefined; | ||
| 'aria-valuetext'?: string | undefined; | ||
| children?: import("react").ReactNode; | ||
| dangerouslySetInnerHTML?: { | ||
| __html: string; | ||
| } | undefined; | ||
| onCopy?: ((event: import("react").ClipboardEvent<any>) => void) | undefined; | ||
| onCopyCapture?: ((event: import("react").ClipboardEvent<any>) => void) | undefined; | ||
| onCut?: ((event: import("react").ClipboardEvent<any>) => void) | undefined; | ||
| onCutCapture?: ((event: import("react").ClipboardEvent<any>) => void) | undefined; | ||
| onPaste?: ((event: import("react").ClipboardEvent<any>) => void) | undefined; | ||
| onPasteCapture?: ((event: import("react").ClipboardEvent<any>) => void) | undefined; | ||
| onCompositionEnd?: ((event: import("react").CompositionEvent<any>) => void) | undefined; | ||
| onCompositionEndCapture?: ((event: import("react").CompositionEvent<any>) => void) | undefined; | ||
| onCompositionStart?: ((event: import("react").CompositionEvent<any>) => void) | undefined; | ||
| onCompositionStartCapture?: ((event: import("react").CompositionEvent<any>) => void) | undefined; | ||
| onCompositionUpdate?: ((event: import("react").CompositionEvent<any>) => void) | undefined; | ||
| onCompositionUpdateCapture?: ((event: import("react").CompositionEvent<any>) => void) | undefined; | ||
| onFocus?: ((event: import("react").FocusEvent<any>) => void) | undefined; | ||
| onFocusCapture?: ((event: import("react").FocusEvent<any>) => void) | undefined; | ||
| onBlur?: ((event: import("react").FocusEvent<any>) => void) | undefined; | ||
| onBlurCapture?: ((event: import("react").FocusEvent<any>) => void) | undefined; | ||
| onChange?: ((event: import("react").FormEvent<any>) => void) | undefined; | ||
| onChangeCapture?: ((event: import("react").FormEvent<any>) => void) | undefined; | ||
| onBeforeInput?: ((event: import("react").FormEvent<any>) => void) | undefined; | ||
| onBeforeInputCapture?: ((event: import("react").FormEvent<any>) => void) | undefined; | ||
| onInput?: ((event: import("react").FormEvent<any>) => void) | undefined; | ||
| onInputCapture?: ((event: import("react").FormEvent<any>) => void) | undefined; | ||
| onReset?: ((event: import("react").FormEvent<any>) => void) | undefined; | ||
| onResetCapture?: ((event: import("react").FormEvent<any>) => void) | undefined; | ||
| onSubmit?: ((event: import("react").FormEvent<any>) => void) | undefined; | ||
| onSubmitCapture?: ((event: import("react").FormEvent<any>) => void) | undefined; | ||
| onInvalid?: ((event: import("react").FormEvent<any>) => void) | undefined; | ||
| onInvalidCapture?: ((event: import("react").FormEvent<any>) => void) | undefined; | ||
| onLoad?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onLoadCapture?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onError?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onErrorCapture?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onKeyDown?: ((event: import("react").KeyboardEvent<any>) => void) | undefined; | ||
| onKeyDownCapture?: ((event: import("react").KeyboardEvent<any>) => void) | undefined; | ||
| onKeyPress?: ((event: import("react").KeyboardEvent<any>) => void) | undefined; | ||
| onKeyPressCapture?: ((event: import("react").KeyboardEvent<any>) => void) | undefined; | ||
| onKeyUp?: ((event: import("react").KeyboardEvent<any>) => void) | undefined; | ||
| onKeyUpCapture?: ((event: import("react").KeyboardEvent<any>) => void) | undefined; | ||
| onAbort?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onAbortCapture?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onCanPlay?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onCanPlayCapture?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onCanPlayThrough?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onCanPlayThroughCapture?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onDurationChange?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onDurationChangeCapture?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onEmptied?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onEmptiedCapture?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onEncrypted?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onEncryptedCapture?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onEnded?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onEndedCapture?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onLoadedData?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onLoadedDataCapture?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onLoadedMetadata?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onLoadedMetadataCapture?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onLoadStart?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onLoadStartCapture?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onPause?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onPauseCapture?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onPlay?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onPlayCapture?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onPlaying?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onPlayingCapture?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onProgress?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onProgressCapture?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onRateChange?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onRateChangeCapture?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onSeeked?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onSeekedCapture?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onSeeking?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onSeekingCapture?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onStalled?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onStalledCapture?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onSuspend?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onSuspendCapture?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onTimeUpdate?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onTimeUpdateCapture?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onVolumeChange?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onVolumeChangeCapture?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onWaiting?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onWaitingCapture?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onAuxClick?: ((event: import("react").MouseEvent<any, MouseEvent>) => void) | undefined; | ||
| onAuxClickCapture?: ((event: import("react").MouseEvent<any, MouseEvent>) => void) | undefined; | ||
| onClick?: ((event: import("react").MouseEvent<any, MouseEvent>) => void) | undefined; | ||
| onClickCapture?: ((event: import("react").MouseEvent<any, MouseEvent>) => void) | undefined; | ||
| onContextMenu?: ((event: import("react").MouseEvent<any, MouseEvent>) => void) | undefined; | ||
| onContextMenuCapture?: ((event: import("react").MouseEvent<any, MouseEvent>) => void) | undefined; | ||
| onDoubleClick?: ((event: import("react").MouseEvent<any, MouseEvent>) => void) | undefined; | ||
| onDoubleClickCapture?: ((event: import("react").MouseEvent<any, MouseEvent>) => void) | undefined; | ||
| onDrag?: ((event: import("react").DragEvent<any>) => void) | undefined; | ||
| onDragCapture?: ((event: import("react").DragEvent<any>) => void) | undefined; | ||
| onDragEnd?: ((event: import("react").DragEvent<any>) => void) | undefined; | ||
| onDragEndCapture?: ((event: import("react").DragEvent<any>) => void) | undefined; | ||
| onDragEnter?: ((event: import("react").DragEvent<any>) => void) | undefined; | ||
| onDragEnterCapture?: ((event: import("react").DragEvent<any>) => void) | undefined; | ||
| onDragExit?: ((event: import("react").DragEvent<any>) => void) | undefined; | ||
| onDragExitCapture?: ((event: import("react").DragEvent<any>) => void) | undefined; | ||
| onDragLeave?: ((event: import("react").DragEvent<any>) => void) | undefined; | ||
| onDragLeaveCapture?: ((event: import("react").DragEvent<any>) => void) | undefined; | ||
| onDragOver?: ((event: import("react").DragEvent<any>) => void) | undefined; | ||
| onDragOverCapture?: ((event: import("react").DragEvent<any>) => void) | undefined; | ||
| onDragStart?: ((event: import("react").DragEvent<any>) => void) | undefined; | ||
| onDragStartCapture?: ((event: import("react").DragEvent<any>) => void) | undefined; | ||
| onDrop?: ((event: import("react").DragEvent<any>) => void) | undefined; | ||
| onDropCapture?: ((event: import("react").DragEvent<any>) => void) | undefined; | ||
| onMouseDown?: ((event: import("react").MouseEvent<any, MouseEvent>) => void) | undefined; | ||
| onMouseDownCapture?: ((event: import("react").MouseEvent<any, MouseEvent>) => void) | undefined; | ||
| onMouseEnter?: ((event: import("react").MouseEvent<any, MouseEvent>) => void) | undefined; | ||
| onMouseLeave?: ((event: import("react").MouseEvent<any, MouseEvent>) => void) | undefined; | ||
| onMouseMove?: ((event: import("react").MouseEvent<any, MouseEvent>) => void) | undefined; | ||
| onMouseMoveCapture?: ((event: import("react").MouseEvent<any, MouseEvent>) => void) | undefined; | ||
| onMouseOut?: ((event: import("react").MouseEvent<any, MouseEvent>) => void) | undefined; | ||
| onMouseOutCapture?: ((event: import("react").MouseEvent<any, MouseEvent>) => void) | undefined; | ||
| onMouseOver?: ((event: import("react").MouseEvent<any, MouseEvent>) => void) | undefined; | ||
| onMouseOverCapture?: ((event: import("react").MouseEvent<any, MouseEvent>) => void) | undefined; | ||
| onMouseUp?: ((event: import("react").MouseEvent<any, MouseEvent>) => void) | undefined; | ||
| onMouseUpCapture?: ((event: import("react").MouseEvent<any, MouseEvent>) => void) | undefined; | ||
| onSelect?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onSelectCapture?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onTouchCancel?: ((event: import("react").TouchEvent<any>) => void) | undefined; | ||
| onTouchCancelCapture?: ((event: import("react").TouchEvent<any>) => void) | undefined; | ||
| onTouchEnd?: ((event: import("react").TouchEvent<any>) => void) | undefined; | ||
| onTouchEndCapture?: ((event: import("react").TouchEvent<any>) => void) | undefined; | ||
| onTouchMove?: ((event: import("react").TouchEvent<any>) => void) | undefined; | ||
| onTouchMoveCapture?: ((event: import("react").TouchEvent<any>) => void) | undefined; | ||
| onTouchStart?: ((event: import("react").TouchEvent<any>) => void) | undefined; | ||
| onTouchStartCapture?: ((event: import("react").TouchEvent<any>) => void) | undefined; | ||
| onPointerDown?: ((event: import("react").PointerEvent<any>) => void) | undefined; | ||
| onPointerDownCapture?: ((event: import("react").PointerEvent<any>) => void) | undefined; | ||
| onPointerMove?: ((event: import("react").PointerEvent<any>) => void) | undefined; | ||
| onPointerMoveCapture?: ((event: import("react").PointerEvent<any>) => void) | undefined; | ||
| onPointerUp?: ((event: import("react").PointerEvent<any>) => void) | undefined; | ||
| onPointerUpCapture?: ((event: import("react").PointerEvent<any>) => void) | undefined; | ||
| onPointerCancel?: ((event: import("react").PointerEvent<any>) => void) | undefined; | ||
| onPointerCancelCapture?: ((event: import("react").PointerEvent<any>) => void) | undefined; | ||
| onPointerEnter?: ((event: import("react").PointerEvent<any>) => void) | undefined; | ||
| onPointerEnterCapture?: ((event: import("react").PointerEvent<any>) => void) | undefined; | ||
| onPointerLeave?: ((event: import("react").PointerEvent<any>) => void) | undefined; | ||
| onPointerLeaveCapture?: ((event: import("react").PointerEvent<any>) => void) | undefined; | ||
| onPointerOver?: ((event: import("react").PointerEvent<any>) => void) | undefined; | ||
| onPointerOverCapture?: ((event: import("react").PointerEvent<any>) => void) | undefined; | ||
| onPointerOut?: ((event: import("react").PointerEvent<any>) => void) | undefined; | ||
| onPointerOutCapture?: ((event: import("react").PointerEvent<any>) => void) | undefined; | ||
| onGotPointerCapture?: ((event: import("react").PointerEvent<any>) => void) | undefined; | ||
| onGotPointerCaptureCapture?: ((event: import("react").PointerEvent<any>) => void) | undefined; | ||
| onLostPointerCapture?: ((event: import("react").PointerEvent<any>) => void) | undefined; | ||
| onLostPointerCaptureCapture?: ((event: import("react").PointerEvent<any>) => void) | undefined; | ||
| onScroll?: ((event: import("react").UIEvent<any>) => void) | undefined; | ||
| onScrollCapture?: ((event: import("react").UIEvent<any>) => void) | undefined; | ||
| onWheel?: ((event: import("react").WheelEvent<any>) => void) | undefined; | ||
| onWheelCapture?: ((event: import("react").WheelEvent<any>) => void) | undefined; | ||
| onAnimationStart?: ((event: import("react").AnimationEvent<any>) => void) | undefined; | ||
| onAnimationStartCapture?: ((event: import("react").AnimationEvent<any>) => void) | undefined; | ||
| onAnimationEnd?: ((event: import("react").AnimationEvent<any>) => void) | undefined; | ||
| onAnimationEndCapture?: ((event: import("react").AnimationEvent<any>) => void) | undefined; | ||
| onAnimationIteration?: ((event: import("react").AnimationEvent<any>) => void) | undefined; | ||
| onAnimationIterationCapture?: ((event: import("react").AnimationEvent<any>) => void) | undefined; | ||
| onTransitionEnd?: ((event: import("react").TransitionEvent<any>) => void) | undefined; | ||
| onTransitionEndCapture?: ((event: import("react").TransitionEvent<any>) => void) | undefined; | ||
| css?: import("@emotion/core").InterpolationWithTheme<any>; | ||
| ref?: string | ((instance: any) => void) | import("react").RefObject<any> | null | undefined; | ||
| key?: string | number | undefined; | ||
| }; | ||
| renderToggle: (toggle: React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>) => JSX.Element; | ||
| toggleRootProps: React.HTMLProps<any>; | ||
| id: string; | ||
| }; |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| var tslib_1 = require("tslib"); | ||
| var react_1 = require("react"); | ||
| var toggleable_1 = require("@rmwc/toggleable"); | ||
| var base_1 = require("@rmwc/base"); | ||
| var react_1 = require("react"); | ||
| var switch_1 = require("@material/switch"); | ||
@@ -8,0 +8,0 @@ exports.useSwitchFoundation = function (props) { |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| var tslib_1 = require("tslib"); | ||
| var React = tslib_1.__importStar(require("react")); | ||
| var react_1 = tslib_1.__importDefault(require("react")); | ||
| var base_1 = require("@rmwc/base"); | ||
@@ -14,8 +14,8 @@ var ripple_1 = require("@rmwc/ripple"); | ||
| var children = props.children, className = props.className, label = props.label, style = props.style, inputRef = props.inputRef, foundationRef = props.foundationRef, rest = tslib_1.__rest(props, ["children", "className", "label", "style", "inputRef", "foundationRef"]); | ||
| var renderedSwitch = (React.createElement(base_1.Tag, tslib_1.__assign({}, rootEl.props(tslib_1.__assign(tslib_1.__assign({}, toggleRootProps), { className: rootClassName })), { ref: ref }), | ||
| React.createElement(SwitchTrack, null), | ||
| React.createElement(SwitchThumbUnderlay, null, | ||
| React.createElement(SwitchThumb, null), | ||
| React.createElement("input", tslib_1.__assign({}, checkboxEl.props(tslib_1.__assign(tslib_1.__assign({}, rest), { className: 'mdc-switch__native-control' })), { type: "checkbox", id: id, ref: base_1.mergeRefs(checkboxEl.setRef, inputRef), role: "switch", "aria-checked": (_a = rest.checked) !== null && _a !== void 0 ? _a : rest['aria-checked'] }))), | ||
| React.createElement(SwitchKnob, null))); | ||
| var renderedSwitch = (react_1.default.createElement(base_1.Tag, tslib_1.__assign({}, rootEl.props(tslib_1.__assign(tslib_1.__assign({}, toggleRootProps), { className: rootClassName })), { ref: ref }), | ||
| react_1.default.createElement(SwitchTrack, null), | ||
| react_1.default.createElement(SwitchThumbUnderlay, null, | ||
| react_1.default.createElement(SwitchThumb, null), | ||
| react_1.default.createElement("input", tslib_1.__assign({}, checkboxEl.props(tslib_1.__assign(tslib_1.__assign({}, rest), { className: 'mdc-switch__native-control' })), { type: "checkbox", id: id, ref: base_1.mergeRefs(checkboxEl.setRef, inputRef), role: "switch", "aria-checked": (_a = rest.checked) !== null && _a !== void 0 ? _a : rest['aria-checked'] }))), | ||
| react_1.default.createElement(SwitchKnob, null))); | ||
| return renderToggle(renderedSwitch); | ||
@@ -26,10 +26,10 @@ }); | ||
| *********************************************************************/ | ||
| var SwitchTrack = React.memo(function SwitchTrack() { | ||
| return React.createElement("div", { className: "mdc-switch__track" }); | ||
| var SwitchTrack = react_1.default.memo(function SwitchTrack() { | ||
| return react_1.default.createElement("div", { className: "mdc-switch__track" }); | ||
| }); | ||
| var SwitchKnob = React.memo(function SwitchKnob() { | ||
| return React.createElement("div", { className: "mdc-switch__knob" }); | ||
| var SwitchKnob = react_1.default.memo(function SwitchKnob() { | ||
| return react_1.default.createElement("div", { className: "mdc-switch__knob" }); | ||
| }); | ||
| var SwitchThumb = React.memo(function SwitchThumb() { | ||
| return React.createElement("div", { className: "mdc-switch__thumb" }); | ||
| var SwitchThumb = react_1.default.memo(function SwitchThumb() { | ||
| return react_1.default.createElement("div", { className: "mdc-switch__thumb" }); | ||
| }); | ||
@@ -41,3 +41,3 @@ var SwitchThumbUnderlay = ripple_1.withRipple({ | ||
| var className = _a.className, rest = tslib_1.__rest(_a, ["className"]); | ||
| return (React.createElement("div", tslib_1.__assign({ className: base_1.classNames(className, 'mdc-switch__thumb-underlay') }, rest))); | ||
| return (react_1.default.createElement("div", tslib_1.__assign({ className: base_1.classNames(className, 'mdc-switch__thumb-underlay') }, rest))); | ||
| }); |
@@ -1,392 +0,16 @@ | ||
| /// <reference types="react" /> | ||
| /// <reference types="@emotion/core" /> | ||
| import * as RMWC from '@rmwc/types'; | ||
| import React from 'react'; | ||
| import { SwitchProps } from '.'; | ||
| import { MDCSwitchFoundation } from '@material/switch'; | ||
| export declare const useSwitchFoundation: (props: SwitchProps & Pick<import("react").AllHTMLAttributes<HTMLInputElement>, "onError" | "className" | "cite" | "data" | "form" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "prefix" | "size" | "children" | "value" | "onBlur" | "onClick" | "onContextMenu" | "onCopy" | "onCut" | "onAuxClick" | "onDoubleClick" | "onDragEnd" | "onDragStart" | "onDrop" | "onFocus" | "onInput" | "onInvalid" | "onKeyDown" | "onKeyPress" | "onKeyUp" | "onMouseDown" | "onMouseUp" | "onPaste" | "onPause" | "onPlay" | "onPointerCancel" | "onPointerDown" | "onPointerUp" | "onRateChange" | "onReset" | "onSeeked" | "onSubmit" | "onTouchCancel" | "onTouchEnd" | "onTouchStart" | "onVolumeChange" | "onAbort" | "onAnimationEnd" | "onAnimationIteration" | "onAnimationStart" | "onCanPlay" | "onCanPlayThrough" | "onDrag" | "onDragEnter" | "onDragExit" | "onDragLeave" | "onDragOver" | "onDurationChange" | "onEmptied" | "onEncrypted" | "onEnded" | "onGotPointerCapture" | "onLoad" | "onLoadedData" | "onLoadedMetadata" | "onLoadStart" | "onLostPointerCapture" | "onMouseMove" | "onMouseOut" | "onMouseOver" | "onPlaying" | "onPointerMove" | "onPointerOut" | "onPointerOver" | "onProgress" | "onScroll" | "onSeeking" | "onStalled" | "onSuspend" | "onTimeUpdate" | "onTouchMove" | "onTransitionEnd" | "onWaiting" | "onWheel" | "onMouseEnter" | "onMouseLeave" | "onPointerEnter" | "onPointerLeave" | "onChange" | "onSelect" | "onBeforeInput" | "onCompositionEnd" | "onCompositionStart" | "onCompositionUpdate" | "id" | "dir" | "color" | "height" | "lang" | "max" | "media" | "method" | "min" | "name" | "target" | "type" | "width" | "role" | "tabIndex" | "crossOrigin" | "href" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopyCapture" | "onCutCapture" | "onPasteCapture" | "onCompositionEndCapture" | "onCompositionStartCapture" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInputCapture" | "onInputCapture" | "onResetCapture" | "onSubmitCapture" | "onInvalidCapture" | "onLoadCapture" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPressCapture" | "onKeyUpCapture" | "onAbortCapture" | "onCanPlayCapture" | "onCanPlayThroughCapture" | "onDurationChangeCapture" | "onEmptiedCapture" | "onEncryptedCapture" | "onEndedCapture" | "onLoadedDataCapture" | "onLoadedMetadataCapture" | "onLoadStartCapture" | "onPauseCapture" | "onPlayCapture" | "onPlayingCapture" | "onProgressCapture" | "onRateChangeCapture" | "onSeekedCapture" | "onSeekingCapture" | "onStalledCapture" | "onSuspendCapture" | "onTimeUpdateCapture" | "onVolumeChangeCapture" | "onWaitingCapture" | "onAuxClickCapture" | "onClickCapture" | "onContextMenuCapture" | "onDoubleClickCapture" | "onDragCapture" | "onDragEndCapture" | "onDragEnterCapture" | "onDragExitCapture" | "onDragLeaveCapture" | "onDragOverCapture" | "onDragStartCapture" | "onDropCapture" | "onMouseDownCapture" | "onMouseMoveCapture" | "onMouseOutCapture" | "onMouseOverCapture" | "onMouseUpCapture" | "onSelectCapture" | "onTouchCancelCapture" | "onTouchEndCapture" | "onTouchMoveCapture" | "onTouchStartCapture" | "onPointerDownCapture" | "onPointerMoveCapture" | "onPointerUpCapture" | "onPointerCancelCapture" | "onPointerEnterCapture" | "onPointerLeaveCapture" | "onPointerOverCapture" | "onPointerOutCapture" | "onGotPointerCaptureCapture" | "onLostPointerCaptureCapture" | "onScrollCapture" | "onWheelCapture" | "onAnimationStartCapture" | "onAnimationEndCapture" | "onAnimationIterationCapture" | "onTransitionEndCapture" | "css" | "classID" | "useMap" | "wmode" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "download" | "hrefLang" | "rel" | "alt" | "coords" | "shape" | "autoPlay" | "controls" | "loop" | "mediaGroup" | "muted" | "preload" | "src" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "dateTime" | "open" | "acceptCharset" | "action" | "autoComplete" | "encType" | "noValidate" | "manifest" | "allowFullScreen" | "allowTransparency" | "frameBorder" | "marginHeight" | "marginWidth" | "sandbox" | "scrolling" | "seamless" | "srcDoc" | "sizes" | "srcSet" | "async" | "accept" | "capture" | "checked" | "list" | "maxLength" | "minLength" | "multiple" | "readOnly" | "required" | "step" | "challenge" | "keyType" | "keyParams" | "htmlFor" | "as" | "integrity" | "charSet" | "content" | "httpEquiv" | "high" | "low" | "optimum" | "reversed" | "start" | "selected" | "defer" | "nonce" | "scoped" | "cellPadding" | "cellSpacing" | "colSpan" | "headers" | "rowSpan" | "scope" | "cols" | "rows" | "wrap" | "default" | "kind" | "srcLang" | "playsInline" | "poster"> & import("react").ClassAttributes<HTMLInputElement> & { | ||
| tag?: string | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined; | ||
| export declare const useSwitchFoundation: (props: SwitchProps & Pick<React.AllHTMLAttributes<HTMLInputElement>, "onError" | "className" | "cite" | "data" | "form" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "prefix" | "size" | "children" | "value" | "onBlur" | "onClick" | "onContextMenu" | "onCopy" | "onCut" | "onAuxClick" | "onDoubleClick" | "onDragEnd" | "onDragStart" | "onDrop" | "onFocus" | "onInput" | "onInvalid" | "onKeyDown" | "onKeyPress" | "onKeyUp" | "onMouseDown" | "onMouseUp" | "onPaste" | "onPause" | "onPlay" | "onPointerCancel" | "onPointerDown" | "onPointerUp" | "onRateChange" | "onReset" | "onSeeked" | "onSubmit" | "onTouchCancel" | "onTouchEnd" | "onTouchStart" | "onVolumeChange" | "onAbort" | "onAnimationEnd" | "onAnimationIteration" | "onAnimationStart" | "onCanPlay" | "onCanPlayThrough" | "onDrag" | "onDragEnter" | "onDragExit" | "onDragLeave" | "onDragOver" | "onDurationChange" | "onEmptied" | "onEncrypted" | "onEnded" | "onGotPointerCapture" | "onLoad" | "onLoadedData" | "onLoadedMetadata" | "onLoadStart" | "onLostPointerCapture" | "onMouseMove" | "onMouseOut" | "onMouseOver" | "onPlaying" | "onPointerMove" | "onPointerOut" | "onPointerOver" | "onProgress" | "onScroll" | "onSeeking" | "onStalled" | "onSuspend" | "onTimeUpdate" | "onTouchMove" | "onTransitionEnd" | "onWaiting" | "onWheel" | "onMouseEnter" | "onMouseLeave" | "onPointerEnter" | "onPointerLeave" | "onChange" | "onSelect" | "onBeforeInput" | "onCompositionEnd" | "onCompositionStart" | "onCompositionUpdate" | "id" | "dir" | "color" | "height" | "lang" | "max" | "media" | "method" | "min" | "name" | "target" | "type" | "width" | "role" | "tabIndex" | "crossOrigin" | "href" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopyCapture" | "onCutCapture" | "onPasteCapture" | "onCompositionEndCapture" | "onCompositionStartCapture" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInputCapture" | "onInputCapture" | "onResetCapture" | "onSubmitCapture" | "onInvalidCapture" | "onLoadCapture" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPressCapture" | "onKeyUpCapture" | "onAbortCapture" | "onCanPlayCapture" | "onCanPlayThroughCapture" | "onDurationChangeCapture" | "onEmptiedCapture" | "onEncryptedCapture" | "onEndedCapture" | "onLoadedDataCapture" | "onLoadedMetadataCapture" | "onLoadStartCapture" | "onPauseCapture" | "onPlayCapture" | "onPlayingCapture" | "onProgressCapture" | "onRateChangeCapture" | "onSeekedCapture" | "onSeekingCapture" | "onStalledCapture" | "onSuspendCapture" | "onTimeUpdateCapture" | "onVolumeChangeCapture" | "onWaitingCapture" | "onAuxClickCapture" | "onClickCapture" | "onContextMenuCapture" | "onDoubleClickCapture" | "onDragCapture" | "onDragEndCapture" | "onDragEnterCapture" | "onDragExitCapture" | "onDragLeaveCapture" | "onDragOverCapture" | "onDragStartCapture" | "onDropCapture" | "onMouseDownCapture" | "onMouseMoveCapture" | "onMouseOutCapture" | "onMouseOverCapture" | "onMouseUpCapture" | "onSelectCapture" | "onTouchCancelCapture" | "onTouchEndCapture" | "onTouchMoveCapture" | "onTouchStartCapture" | "onPointerDownCapture" | "onPointerMoveCapture" | "onPointerUpCapture" | "onPointerCancelCapture" | "onPointerEnterCapture" | "onPointerLeaveCapture" | "onPointerOverCapture" | "onPointerOutCapture" | "onGotPointerCaptureCapture" | "onLostPointerCaptureCapture" | "onScrollCapture" | "onWheelCapture" | "onAnimationStartCapture" | "onAnimationEndCapture" | "onAnimationIterationCapture" | "onTransitionEndCapture" | "css" | "classID" | "useMap" | "wmode" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "download" | "hrefLang" | "rel" | "alt" | "coords" | "shape" | "autoPlay" | "controls" | "loop" | "mediaGroup" | "muted" | "preload" | "src" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "dateTime" | "open" | "acceptCharset" | "action" | "autoComplete" | "encType" | "noValidate" | "manifest" | "allowFullScreen" | "allowTransparency" | "frameBorder" | "marginHeight" | "marginWidth" | "sandbox" | "scrolling" | "seamless" | "srcDoc" | "sizes" | "srcSet" | "async" | "accept" | "capture" | "checked" | "list" | "maxLength" | "minLength" | "multiple" | "readOnly" | "required" | "step" | "challenge" | "keyType" | "keyParams" | "htmlFor" | "as" | "integrity" | "charSet" | "content" | "httpEquiv" | "high" | "low" | "optimum" | "reversed" | "start" | "selected" | "defer" | "nonce" | "scoped" | "cellPadding" | "cellSpacing" | "colSpan" | "headers" | "rowSpan" | "scope" | "cols" | "rows" | "wrap" | "default" | "kind" | "srcLang" | "playsInline" | "poster"> & React.ClassAttributes<HTMLInputElement> & { | ||
| tag?: string | React.ComponentClass<any, any> | React.FunctionComponent<any> | undefined; | ||
| theme?: RMWC.ThemePropT; | ||
| ref?: string | ((instance: HTMLInputElement | null) => void) | import("react").RefObject<HTMLInputElement> | null | undefined; | ||
| ref?: string | ((instance: HTMLInputElement | null) => void) | React.RefObject<HTMLInputElement> | null | undefined; | ||
| }) => { | ||
| rootEl: import("@rmwc/base").FoundationElement<SwitchProps & Pick<import("react").AllHTMLAttributes<HTMLInputElement>, "onError" | "className" | "cite" | "data" | "form" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "prefix" | "size" | "children" | "value" | "onBlur" | "onClick" | "onContextMenu" | "onCopy" | "onCut" | "onAuxClick" | "onDoubleClick" | "onDragEnd" | "onDragStart" | "onDrop" | "onFocus" | "onInput" | "onInvalid" | "onKeyDown" | "onKeyPress" | "onKeyUp" | "onMouseDown" | "onMouseUp" | "onPaste" | "onPause" | "onPlay" | "onPointerCancel" | "onPointerDown" | "onPointerUp" | "onRateChange" | "onReset" | "onSeeked" | "onSubmit" | "onTouchCancel" | "onTouchEnd" | "onTouchStart" | "onVolumeChange" | "onAbort" | "onAnimationEnd" | "onAnimationIteration" | "onAnimationStart" | "onCanPlay" | "onCanPlayThrough" | "onDrag" | "onDragEnter" | "onDragExit" | "onDragLeave" | "onDragOver" | "onDurationChange" | "onEmptied" | "onEncrypted" | "onEnded" | "onGotPointerCapture" | "onLoad" | "onLoadedData" | "onLoadedMetadata" | "onLoadStart" | "onLostPointerCapture" | "onMouseMove" | "onMouseOut" | "onMouseOver" | "onPlaying" | "onPointerMove" | "onPointerOut" | "onPointerOver" | "onProgress" | "onScroll" | "onSeeking" | "onStalled" | "onSuspend" | "onTimeUpdate" | "onTouchMove" | "onTransitionEnd" | "onWaiting" | "onWheel" | "onMouseEnter" | "onMouseLeave" | "onPointerEnter" | "onPointerLeave" | "onChange" | "onSelect" | "onBeforeInput" | "onCompositionEnd" | "onCompositionStart" | "onCompositionUpdate" | "id" | "dir" | "color" | "height" | "lang" | "max" | "media" | "method" | "min" | "name" | "target" | "type" | "width" | "role" | "tabIndex" | "crossOrigin" | "href" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopyCapture" | "onCutCapture" | "onPasteCapture" | "onCompositionEndCapture" | "onCompositionStartCapture" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInputCapture" | "onInputCapture" | "onResetCapture" | "onSubmitCapture" | "onInvalidCapture" | "onLoadCapture" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPressCapture" | "onKeyUpCapture" | "onAbortCapture" | "onCanPlayCapture" | "onCanPlayThroughCapture" | "onDurationChangeCapture" | "onEmptiedCapture" | "onEncryptedCapture" | "onEndedCapture" | "onLoadedDataCapture" | "onLoadedMetadataCapture" | "onLoadStartCapture" | "onPauseCapture" | "onPlayCapture" | "onPlayingCapture" | "onProgressCapture" | "onRateChangeCapture" | "onSeekedCapture" | "onSeekingCapture" | "onStalledCapture" | "onSuspendCapture" | "onTimeUpdateCapture" | "onVolumeChangeCapture" | "onWaitingCapture" | "onAuxClickCapture" | "onClickCapture" | "onContextMenuCapture" | "onDoubleClickCapture" | "onDragCapture" | "onDragEndCapture" | "onDragEnterCapture" | "onDragExitCapture" | "onDragLeaveCapture" | "onDragOverCapture" | "onDragStartCapture" | "onDropCapture" | "onMouseDownCapture" | "onMouseMoveCapture" | "onMouseOutCapture" | "onMouseOverCapture" | "onMouseUpCapture" | "onSelectCapture" | "onTouchCancelCapture" | "onTouchEndCapture" | "onTouchMoveCapture" | "onTouchStartCapture" | "onPointerDownCapture" | "onPointerMoveCapture" | "onPointerUpCapture" | "onPointerCancelCapture" | "onPointerEnterCapture" | "onPointerLeaveCapture" | "onPointerOverCapture" | "onPointerOutCapture" | "onGotPointerCaptureCapture" | "onLostPointerCaptureCapture" | "onScrollCapture" | "onWheelCapture" | "onAnimationStartCapture" | "onAnimationEndCapture" | "onAnimationIterationCapture" | "onTransitionEndCapture" | "css" | "classID" | "useMap" | "wmode" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "download" | "hrefLang" | "rel" | "alt" | "coords" | "shape" | "autoPlay" | "controls" | "loop" | "mediaGroup" | "muted" | "preload" | "src" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "dateTime" | "open" | "acceptCharset" | "action" | "autoComplete" | "encType" | "noValidate" | "manifest" | "allowFullScreen" | "allowTransparency" | "frameBorder" | "marginHeight" | "marginWidth" | "sandbox" | "scrolling" | "seamless" | "srcDoc" | "sizes" | "srcSet" | "async" | "accept" | "capture" | "checked" | "list" | "maxLength" | "minLength" | "multiple" | "readOnly" | "required" | "step" | "challenge" | "keyType" | "keyParams" | "htmlFor" | "as" | "integrity" | "charSet" | "content" | "httpEquiv" | "high" | "low" | "optimum" | "reversed" | "start" | "selected" | "defer" | "nonce" | "scoped" | "cellPadding" | "cellSpacing" | "colSpan" | "headers" | "rowSpan" | "scope" | "cols" | "rows" | "wrap" | "default" | "kind" | "srcLang" | "playsInline" | "poster"> & import("react").ClassAttributes<HTMLInputElement> & { | ||
| tag?: string | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined; | ||
| theme?: RMWC.ThemePropT; | ||
| ref?: string | ((instance: HTMLInputElement | null) => void) | import("react").RefObject<HTMLInputElement> | null | undefined; | ||
| }, HTMLElement>; | ||
| checkboxEl: import("@rmwc/base").FoundationElement<SwitchProps & Pick<import("react").AllHTMLAttributes<HTMLInputElement>, "onError" | "className" | "cite" | "data" | "form" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "prefix" | "size" | "children" | "value" | "onBlur" | "onClick" | "onContextMenu" | "onCopy" | "onCut" | "onAuxClick" | "onDoubleClick" | "onDragEnd" | "onDragStart" | "onDrop" | "onFocus" | "onInput" | "onInvalid" | "onKeyDown" | "onKeyPress" | "onKeyUp" | "onMouseDown" | "onMouseUp" | "onPaste" | "onPause" | "onPlay" | "onPointerCancel" | "onPointerDown" | "onPointerUp" | "onRateChange" | "onReset" | "onSeeked" | "onSubmit" | "onTouchCancel" | "onTouchEnd" | "onTouchStart" | "onVolumeChange" | "onAbort" | "onAnimationEnd" | "onAnimationIteration" | "onAnimationStart" | "onCanPlay" | "onCanPlayThrough" | "onDrag" | "onDragEnter" | "onDragExit" | "onDragLeave" | "onDragOver" | "onDurationChange" | "onEmptied" | "onEncrypted" | "onEnded" | "onGotPointerCapture" | "onLoad" | "onLoadedData" | "onLoadedMetadata" | "onLoadStart" | "onLostPointerCapture" | "onMouseMove" | "onMouseOut" | "onMouseOver" | "onPlaying" | "onPointerMove" | "onPointerOut" | "onPointerOver" | "onProgress" | "onScroll" | "onSeeking" | "onStalled" | "onSuspend" | "onTimeUpdate" | "onTouchMove" | "onTransitionEnd" | "onWaiting" | "onWheel" | "onMouseEnter" | "onMouseLeave" | "onPointerEnter" | "onPointerLeave" | "onChange" | "onSelect" | "onBeforeInput" | "onCompositionEnd" | "onCompositionStart" | "onCompositionUpdate" | "id" | "dir" | "color" | "height" | "lang" | "max" | "media" | "method" | "min" | "name" | "target" | "type" | "width" | "role" | "tabIndex" | "crossOrigin" | "href" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopyCapture" | "onCutCapture" | "onPasteCapture" | "onCompositionEndCapture" | "onCompositionStartCapture" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInputCapture" | "onInputCapture" | "onResetCapture" | "onSubmitCapture" | "onInvalidCapture" | "onLoadCapture" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPressCapture" | "onKeyUpCapture" | "onAbortCapture" | "onCanPlayCapture" | "onCanPlayThroughCapture" | "onDurationChangeCapture" | "onEmptiedCapture" | "onEncryptedCapture" | "onEndedCapture" | "onLoadedDataCapture" | "onLoadedMetadataCapture" | "onLoadStartCapture" | "onPauseCapture" | "onPlayCapture" | "onPlayingCapture" | "onProgressCapture" | "onRateChangeCapture" | "onSeekedCapture" | "onSeekingCapture" | "onStalledCapture" | "onSuspendCapture" | "onTimeUpdateCapture" | "onVolumeChangeCapture" | "onWaitingCapture" | "onAuxClickCapture" | "onClickCapture" | "onContextMenuCapture" | "onDoubleClickCapture" | "onDragCapture" | "onDragEndCapture" | "onDragEnterCapture" | "onDragExitCapture" | "onDragLeaveCapture" | "onDragOverCapture" | "onDragStartCapture" | "onDropCapture" | "onMouseDownCapture" | "onMouseMoveCapture" | "onMouseOutCapture" | "onMouseOverCapture" | "onMouseUpCapture" | "onSelectCapture" | "onTouchCancelCapture" | "onTouchEndCapture" | "onTouchMoveCapture" | "onTouchStartCapture" | "onPointerDownCapture" | "onPointerMoveCapture" | "onPointerUpCapture" | "onPointerCancelCapture" | "onPointerEnterCapture" | "onPointerLeaveCapture" | "onPointerOverCapture" | "onPointerOutCapture" | "onGotPointerCaptureCapture" | "onLostPointerCaptureCapture" | "onScrollCapture" | "onWheelCapture" | "onAnimationStartCapture" | "onAnimationEndCapture" | "onAnimationIterationCapture" | "onTransitionEndCapture" | "css" | "classID" | "useMap" | "wmode" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "download" | "hrefLang" | "rel" | "alt" | "coords" | "shape" | "autoPlay" | "controls" | "loop" | "mediaGroup" | "muted" | "preload" | "src" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "dateTime" | "open" | "acceptCharset" | "action" | "autoComplete" | "encType" | "noValidate" | "manifest" | "allowFullScreen" | "allowTransparency" | "frameBorder" | "marginHeight" | "marginWidth" | "sandbox" | "scrolling" | "seamless" | "srcDoc" | "sizes" | "srcSet" | "async" | "accept" | "capture" | "checked" | "list" | "maxLength" | "minLength" | "multiple" | "readOnly" | "required" | "step" | "challenge" | "keyType" | "keyParams" | "htmlFor" | "as" | "integrity" | "charSet" | "content" | "httpEquiv" | "high" | "low" | "optimum" | "reversed" | "start" | "selected" | "defer" | "nonce" | "scoped" | "cellPadding" | "cellSpacing" | "colSpan" | "headers" | "rowSpan" | "scope" | "cols" | "rows" | "wrap" | "default" | "kind" | "srcLang" | "playsInline" | "poster"> & import("react").ClassAttributes<HTMLInputElement> & { | ||
| tag?: string | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined; | ||
| theme?: RMWC.ThemePropT; | ||
| ref?: string | ((instance: HTMLInputElement | null) => void) | import("react").RefObject<HTMLInputElement> | null | undefined; | ||
| }, HTMLElement>; | ||
| rootEl: import("@rmwc/base").FoundationElement<any, HTMLElement>; | ||
| checkboxEl: import("@rmwc/base").FoundationElement<any, HTMLElement>; | ||
| foundation: MDCSwitchFoundation; | ||
| renderToggle: (toggle: import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, string | any | (new (props: any) => import("react").Component<any, any, any>)> | null) | (new (props: any) => import("react").Component<any, any, any>)>) => JSX.Element; | ||
| toggleRootProps: { | ||
| disabled: boolean | undefined; | ||
| } | { | ||
| accept?: string | undefined; | ||
| acceptCharset?: string | undefined; | ||
| action?: string | undefined; | ||
| allowFullScreen?: boolean | undefined; | ||
| allowTransparency?: boolean | undefined; | ||
| alt?: string | undefined; | ||
| as?: string | undefined; | ||
| async?: boolean | undefined; | ||
| autoComplete?: string | undefined; | ||
| autoFocus?: boolean | undefined; | ||
| autoPlay?: boolean | undefined; | ||
| capture?: string | boolean | undefined; | ||
| cellPadding?: string | number | undefined; | ||
| cellSpacing?: string | number | undefined; | ||
| charSet?: string | undefined; | ||
| challenge?: string | undefined; | ||
| checked?: boolean | undefined; | ||
| cite?: string | undefined; | ||
| classID?: string | undefined; | ||
| cols?: number | undefined; | ||
| colSpan?: number | undefined; | ||
| content?: string | undefined; | ||
| controls?: boolean | undefined; | ||
| coords?: string | undefined; | ||
| crossOrigin?: string | undefined; | ||
| data?: string | undefined; | ||
| dateTime?: string | undefined; | ||
| default?: boolean | undefined; | ||
| defer?: boolean | undefined; | ||
| disabled: boolean | undefined; | ||
| download?: any; | ||
| encType?: string | undefined; | ||
| form?: string | undefined; | ||
| formAction?: string | undefined; | ||
| formEncType?: string | undefined; | ||
| formMethod?: string | undefined; | ||
| formNoValidate?: boolean | undefined; | ||
| formTarget?: string | undefined; | ||
| frameBorder?: string | number | undefined; | ||
| headers?: string | undefined; | ||
| height?: string | number | undefined; | ||
| high?: number | undefined; | ||
| href?: string | undefined; | ||
| hrefLang?: string | undefined; | ||
| htmlFor?: string | undefined; | ||
| httpEquiv?: string | undefined; | ||
| integrity?: string | undefined; | ||
| keyParams?: string | undefined; | ||
| keyType?: string | undefined; | ||
| kind?: string | undefined; | ||
| label?: string | undefined; | ||
| list?: string | undefined; | ||
| loop?: boolean | undefined; | ||
| low?: number | undefined; | ||
| manifest?: string | undefined; | ||
| marginHeight?: number | undefined; | ||
| marginWidth?: number | undefined; | ||
| max?: string | number | undefined; | ||
| maxLength?: number | undefined; | ||
| media?: string | undefined; | ||
| mediaGroup?: string | undefined; | ||
| method?: string | undefined; | ||
| min?: string | number | undefined; | ||
| minLength?: number | undefined; | ||
| multiple?: boolean | undefined; | ||
| muted?: boolean | undefined; | ||
| name?: string | undefined; | ||
| nonce?: string | undefined; | ||
| noValidate?: boolean | undefined; | ||
| open?: boolean | undefined; | ||
| optimum?: number | undefined; | ||
| pattern?: string | undefined; | ||
| placeholder?: string | undefined; | ||
| playsInline?: boolean | undefined; | ||
| poster?: string | undefined; | ||
| preload?: string | undefined; | ||
| readOnly?: boolean | undefined; | ||
| rel?: string | undefined; | ||
| required?: boolean | undefined; | ||
| reversed?: boolean | undefined; | ||
| rows?: number | undefined; | ||
| rowSpan?: number | undefined; | ||
| sandbox?: string | undefined; | ||
| scope?: string | undefined; | ||
| scoped?: boolean | undefined; | ||
| scrolling?: string | undefined; | ||
| seamless?: boolean | undefined; | ||
| selected?: boolean | undefined; | ||
| shape?: string | undefined; | ||
| size?: number | undefined; | ||
| sizes?: string | undefined; | ||
| span?: number | undefined; | ||
| src?: string | undefined; | ||
| srcDoc?: string | undefined; | ||
| srcLang?: string | undefined; | ||
| srcSet?: string | undefined; | ||
| start?: number | undefined; | ||
| step?: string | number | undefined; | ||
| summary?: string | undefined; | ||
| target?: string | undefined; | ||
| type?: string | undefined; | ||
| useMap?: string | undefined; | ||
| value?: string | number | string[] | undefined; | ||
| width?: string | number | undefined; | ||
| wmode?: string | undefined; | ||
| wrap?: string | undefined; | ||
| defaultChecked?: boolean | undefined; | ||
| defaultValue?: string | number | string[] | undefined; | ||
| suppressContentEditableWarning?: boolean | undefined; | ||
| suppressHydrationWarning?: boolean | undefined; | ||
| accessKey?: string | undefined; | ||
| className: string | undefined; | ||
| contentEditable?: boolean | "inherit" | "true" | "false" | undefined; | ||
| contextMenu?: string | undefined; | ||
| dir?: string | undefined; | ||
| draggable?: boolean | "true" | "false" | undefined; | ||
| hidden?: boolean | undefined; | ||
| id?: string | undefined; | ||
| lang?: string | undefined; | ||
| slot?: string | undefined; | ||
| spellCheck?: boolean | "true" | "false" | undefined; | ||
| style: import("react").CSSProperties | undefined; | ||
| tabIndex?: number | undefined; | ||
| title?: string | undefined; | ||
| translate?: "no" | "yes" | undefined; | ||
| radioGroup?: string | undefined; | ||
| role?: string | undefined; | ||
| about?: string | undefined; | ||
| datatype?: string | undefined; | ||
| inlist?: any; | ||
| prefix?: string | undefined; | ||
| property?: string | undefined; | ||
| resource?: string | undefined; | ||
| typeof?: string | undefined; | ||
| vocab?: string | undefined; | ||
| autoCapitalize?: string | undefined; | ||
| autoCorrect?: string | undefined; | ||
| autoSave?: string | undefined; | ||
| color?: string | undefined; | ||
| itemProp?: string | undefined; | ||
| itemScope?: boolean | undefined; | ||
| itemType?: string | undefined; | ||
| itemID?: string | undefined; | ||
| itemRef?: string | undefined; | ||
| results?: number | undefined; | ||
| security?: string | undefined; | ||
| unselectable?: "on" | "off" | undefined; | ||
| inputMode?: "url" | "text" | "search" | "none" | "tel" | "email" | "numeric" | "decimal" | undefined; | ||
| is?: string | undefined; | ||
| 'aria-activedescendant'?: string | undefined; | ||
| 'aria-atomic'?: boolean | "true" | "false" | undefined; | ||
| 'aria-autocomplete'?: "none" | "list" | "inline" | "both" | undefined; | ||
| 'aria-busy'?: boolean | "true" | "false" | undefined; | ||
| 'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined; | ||
| 'aria-colcount'?: number | undefined; | ||
| 'aria-colindex'?: number | undefined; | ||
| 'aria-colspan'?: number | undefined; | ||
| 'aria-controls'?: string | undefined; | ||
| 'aria-current'?: boolean | "time" | "true" | "false" | "step" | "page" | "location" | "date" | undefined; | ||
| 'aria-describedby'?: string | undefined; | ||
| 'aria-details'?: string | undefined; | ||
| 'aria-disabled'?: boolean | "true" | "false" | undefined; | ||
| 'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined; | ||
| 'aria-errormessage'?: string | undefined; | ||
| 'aria-expanded'?: boolean | "true" | "false" | undefined; | ||
| 'aria-flowto'?: string | undefined; | ||
| 'aria-grabbed'?: boolean | "true" | "false" | undefined; | ||
| 'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "listbox" | "tree" | "grid" | undefined; | ||
| 'aria-hidden'?: boolean | "true" | "false" | undefined; | ||
| 'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined; | ||
| 'aria-keyshortcuts'?: string | undefined; | ||
| 'aria-label'?: string | undefined; | ||
| 'aria-labelledby'?: string | undefined; | ||
| 'aria-level'?: number | undefined; | ||
| 'aria-live'?: "off" | "assertive" | "polite" | undefined; | ||
| 'aria-modal'?: boolean | "true" | "false" | undefined; | ||
| 'aria-multiline'?: boolean | "true" | "false" | undefined; | ||
| 'aria-multiselectable'?: boolean | "true" | "false" | undefined; | ||
| 'aria-orientation'?: "horizontal" | "vertical" | undefined; | ||
| 'aria-owns'?: string | undefined; | ||
| 'aria-placeholder'?: string | undefined; | ||
| 'aria-posinset'?: number | undefined; | ||
| 'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined; | ||
| 'aria-readonly'?: boolean | "true" | "false" | undefined; | ||
| 'aria-relevant'?: "text" | "additions" | "additions text" | "all" | "removals" | undefined; | ||
| 'aria-required'?: boolean | "true" | "false" | undefined; | ||
| 'aria-roledescription'?: string | undefined; | ||
| 'aria-rowcount'?: number | undefined; | ||
| 'aria-rowindex'?: number | undefined; | ||
| 'aria-rowspan'?: number | undefined; | ||
| 'aria-selected'?: boolean | "true" | "false" | undefined; | ||
| 'aria-setsize'?: number | undefined; | ||
| 'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined; | ||
| 'aria-valuemax'?: number | undefined; | ||
| 'aria-valuemin'?: number | undefined; | ||
| 'aria-valuenow'?: number | undefined; | ||
| 'aria-valuetext'?: string | undefined; | ||
| children?: import("react").ReactNode; | ||
| dangerouslySetInnerHTML?: { | ||
| __html: string; | ||
| } | undefined; | ||
| onCopy?: ((event: import("react").ClipboardEvent<any>) => void) | undefined; | ||
| onCopyCapture?: ((event: import("react").ClipboardEvent<any>) => void) | undefined; | ||
| onCut?: ((event: import("react").ClipboardEvent<any>) => void) | undefined; | ||
| onCutCapture?: ((event: import("react").ClipboardEvent<any>) => void) | undefined; | ||
| onPaste?: ((event: import("react").ClipboardEvent<any>) => void) | undefined; | ||
| onPasteCapture?: ((event: import("react").ClipboardEvent<any>) => void) | undefined; | ||
| onCompositionEnd?: ((event: import("react").CompositionEvent<any>) => void) | undefined; | ||
| onCompositionEndCapture?: ((event: import("react").CompositionEvent<any>) => void) | undefined; | ||
| onCompositionStart?: ((event: import("react").CompositionEvent<any>) => void) | undefined; | ||
| onCompositionStartCapture?: ((event: import("react").CompositionEvent<any>) => void) | undefined; | ||
| onCompositionUpdate?: ((event: import("react").CompositionEvent<any>) => void) | undefined; | ||
| onCompositionUpdateCapture?: ((event: import("react").CompositionEvent<any>) => void) | undefined; | ||
| onFocus?: ((event: import("react").FocusEvent<any>) => void) | undefined; | ||
| onFocusCapture?: ((event: import("react").FocusEvent<any>) => void) | undefined; | ||
| onBlur?: ((event: import("react").FocusEvent<any>) => void) | undefined; | ||
| onBlurCapture?: ((event: import("react").FocusEvent<any>) => void) | undefined; | ||
| onChange?: ((event: import("react").FormEvent<any>) => void) | undefined; | ||
| onChangeCapture?: ((event: import("react").FormEvent<any>) => void) | undefined; | ||
| onBeforeInput?: ((event: import("react").FormEvent<any>) => void) | undefined; | ||
| onBeforeInputCapture?: ((event: import("react").FormEvent<any>) => void) | undefined; | ||
| onInput?: ((event: import("react").FormEvent<any>) => void) | undefined; | ||
| onInputCapture?: ((event: import("react").FormEvent<any>) => void) | undefined; | ||
| onReset?: ((event: import("react").FormEvent<any>) => void) | undefined; | ||
| onResetCapture?: ((event: import("react").FormEvent<any>) => void) | undefined; | ||
| onSubmit?: ((event: import("react").FormEvent<any>) => void) | undefined; | ||
| onSubmitCapture?: ((event: import("react").FormEvent<any>) => void) | undefined; | ||
| onInvalid?: ((event: import("react").FormEvent<any>) => void) | undefined; | ||
| onInvalidCapture?: ((event: import("react").FormEvent<any>) => void) | undefined; | ||
| onLoad?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onLoadCapture?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onError?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onErrorCapture?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onKeyDown?: ((event: import("react").KeyboardEvent<any>) => void) | undefined; | ||
| onKeyDownCapture?: ((event: import("react").KeyboardEvent<any>) => void) | undefined; | ||
| onKeyPress?: ((event: import("react").KeyboardEvent<any>) => void) | undefined; | ||
| onKeyPressCapture?: ((event: import("react").KeyboardEvent<any>) => void) | undefined; | ||
| onKeyUp?: ((event: import("react").KeyboardEvent<any>) => void) | undefined; | ||
| onKeyUpCapture?: ((event: import("react").KeyboardEvent<any>) => void) | undefined; | ||
| onAbort?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onAbortCapture?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onCanPlay?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onCanPlayCapture?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onCanPlayThrough?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onCanPlayThroughCapture?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onDurationChange?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onDurationChangeCapture?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onEmptied?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onEmptiedCapture?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onEncrypted?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onEncryptedCapture?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onEnded?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onEndedCapture?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onLoadedData?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onLoadedDataCapture?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onLoadedMetadata?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onLoadedMetadataCapture?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onLoadStart?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onLoadStartCapture?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onPause?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onPauseCapture?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onPlay?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onPlayCapture?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onPlaying?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onPlayingCapture?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onProgress?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onProgressCapture?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onRateChange?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onRateChangeCapture?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onSeeked?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onSeekedCapture?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onSeeking?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onSeekingCapture?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onStalled?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onStalledCapture?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onSuspend?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onSuspendCapture?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onTimeUpdate?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onTimeUpdateCapture?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onVolumeChange?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onVolumeChangeCapture?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onWaiting?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onWaitingCapture?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onAuxClick?: ((event: import("react").MouseEvent<any, MouseEvent>) => void) | undefined; | ||
| onAuxClickCapture?: ((event: import("react").MouseEvent<any, MouseEvent>) => void) | undefined; | ||
| onClick?: ((event: import("react").MouseEvent<any, MouseEvent>) => void) | undefined; | ||
| onClickCapture?: ((event: import("react").MouseEvent<any, MouseEvent>) => void) | undefined; | ||
| onContextMenu?: ((event: import("react").MouseEvent<any, MouseEvent>) => void) | undefined; | ||
| onContextMenuCapture?: ((event: import("react").MouseEvent<any, MouseEvent>) => void) | undefined; | ||
| onDoubleClick?: ((event: import("react").MouseEvent<any, MouseEvent>) => void) | undefined; | ||
| onDoubleClickCapture?: ((event: import("react").MouseEvent<any, MouseEvent>) => void) | undefined; | ||
| onDrag?: ((event: import("react").DragEvent<any>) => void) | undefined; | ||
| onDragCapture?: ((event: import("react").DragEvent<any>) => void) | undefined; | ||
| onDragEnd?: ((event: import("react").DragEvent<any>) => void) | undefined; | ||
| onDragEndCapture?: ((event: import("react").DragEvent<any>) => void) | undefined; | ||
| onDragEnter?: ((event: import("react").DragEvent<any>) => void) | undefined; | ||
| onDragEnterCapture?: ((event: import("react").DragEvent<any>) => void) | undefined; | ||
| onDragExit?: ((event: import("react").DragEvent<any>) => void) | undefined; | ||
| onDragExitCapture?: ((event: import("react").DragEvent<any>) => void) | undefined; | ||
| onDragLeave?: ((event: import("react").DragEvent<any>) => void) | undefined; | ||
| onDragLeaveCapture?: ((event: import("react").DragEvent<any>) => void) | undefined; | ||
| onDragOver?: ((event: import("react").DragEvent<any>) => void) | undefined; | ||
| onDragOverCapture?: ((event: import("react").DragEvent<any>) => void) | undefined; | ||
| onDragStart?: ((event: import("react").DragEvent<any>) => void) | undefined; | ||
| onDragStartCapture?: ((event: import("react").DragEvent<any>) => void) | undefined; | ||
| onDrop?: ((event: import("react").DragEvent<any>) => void) | undefined; | ||
| onDropCapture?: ((event: import("react").DragEvent<any>) => void) | undefined; | ||
| onMouseDown?: ((event: import("react").MouseEvent<any, MouseEvent>) => void) | undefined; | ||
| onMouseDownCapture?: ((event: import("react").MouseEvent<any, MouseEvent>) => void) | undefined; | ||
| onMouseEnter?: ((event: import("react").MouseEvent<any, MouseEvent>) => void) | undefined; | ||
| onMouseLeave?: ((event: import("react").MouseEvent<any, MouseEvent>) => void) | undefined; | ||
| onMouseMove?: ((event: import("react").MouseEvent<any, MouseEvent>) => void) | undefined; | ||
| onMouseMoveCapture?: ((event: import("react").MouseEvent<any, MouseEvent>) => void) | undefined; | ||
| onMouseOut?: ((event: import("react").MouseEvent<any, MouseEvent>) => void) | undefined; | ||
| onMouseOutCapture?: ((event: import("react").MouseEvent<any, MouseEvent>) => void) | undefined; | ||
| onMouseOver?: ((event: import("react").MouseEvent<any, MouseEvent>) => void) | undefined; | ||
| onMouseOverCapture?: ((event: import("react").MouseEvent<any, MouseEvent>) => void) | undefined; | ||
| onMouseUp?: ((event: import("react").MouseEvent<any, MouseEvent>) => void) | undefined; | ||
| onMouseUpCapture?: ((event: import("react").MouseEvent<any, MouseEvent>) => void) | undefined; | ||
| onSelect?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onSelectCapture?: ((event: import("react").SyntheticEvent<any, Event>) => void) | undefined; | ||
| onTouchCancel?: ((event: import("react").TouchEvent<any>) => void) | undefined; | ||
| onTouchCancelCapture?: ((event: import("react").TouchEvent<any>) => void) | undefined; | ||
| onTouchEnd?: ((event: import("react").TouchEvent<any>) => void) | undefined; | ||
| onTouchEndCapture?: ((event: import("react").TouchEvent<any>) => void) | undefined; | ||
| onTouchMove?: ((event: import("react").TouchEvent<any>) => void) | undefined; | ||
| onTouchMoveCapture?: ((event: import("react").TouchEvent<any>) => void) | undefined; | ||
| onTouchStart?: ((event: import("react").TouchEvent<any>) => void) | undefined; | ||
| onTouchStartCapture?: ((event: import("react").TouchEvent<any>) => void) | undefined; | ||
| onPointerDown?: ((event: import("react").PointerEvent<any>) => void) | undefined; | ||
| onPointerDownCapture?: ((event: import("react").PointerEvent<any>) => void) | undefined; | ||
| onPointerMove?: ((event: import("react").PointerEvent<any>) => void) | undefined; | ||
| onPointerMoveCapture?: ((event: import("react").PointerEvent<any>) => void) | undefined; | ||
| onPointerUp?: ((event: import("react").PointerEvent<any>) => void) | undefined; | ||
| onPointerUpCapture?: ((event: import("react").PointerEvent<any>) => void) | undefined; | ||
| onPointerCancel?: ((event: import("react").PointerEvent<any>) => void) | undefined; | ||
| onPointerCancelCapture?: ((event: import("react").PointerEvent<any>) => void) | undefined; | ||
| onPointerEnter?: ((event: import("react").PointerEvent<any>) => void) | undefined; | ||
| onPointerEnterCapture?: ((event: import("react").PointerEvent<any>) => void) | undefined; | ||
| onPointerLeave?: ((event: import("react").PointerEvent<any>) => void) | undefined; | ||
| onPointerLeaveCapture?: ((event: import("react").PointerEvent<any>) => void) | undefined; | ||
| onPointerOver?: ((event: import("react").PointerEvent<any>) => void) | undefined; | ||
| onPointerOverCapture?: ((event: import("react").PointerEvent<any>) => void) | undefined; | ||
| onPointerOut?: ((event: import("react").PointerEvent<any>) => void) | undefined; | ||
| onPointerOutCapture?: ((event: import("react").PointerEvent<any>) => void) | undefined; | ||
| onGotPointerCapture?: ((event: import("react").PointerEvent<any>) => void) | undefined; | ||
| onGotPointerCaptureCapture?: ((event: import("react").PointerEvent<any>) => void) | undefined; | ||
| onLostPointerCapture?: ((event: import("react").PointerEvent<any>) => void) | undefined; | ||
| onLostPointerCaptureCapture?: ((event: import("react").PointerEvent<any>) => void) | undefined; | ||
| onScroll?: ((event: import("react").UIEvent<any>) => void) | undefined; | ||
| onScrollCapture?: ((event: import("react").UIEvent<any>) => void) | undefined; | ||
| onWheel?: ((event: import("react").WheelEvent<any>) => void) | undefined; | ||
| onWheelCapture?: ((event: import("react").WheelEvent<any>) => void) | undefined; | ||
| onAnimationStart?: ((event: import("react").AnimationEvent<any>) => void) | undefined; | ||
| onAnimationStartCapture?: ((event: import("react").AnimationEvent<any>) => void) | undefined; | ||
| onAnimationEnd?: ((event: import("react").AnimationEvent<any>) => void) | undefined; | ||
| onAnimationEndCapture?: ((event: import("react").AnimationEvent<any>) => void) | undefined; | ||
| onAnimationIteration?: ((event: import("react").AnimationEvent<any>) => void) | undefined; | ||
| onAnimationIterationCapture?: ((event: import("react").AnimationEvent<any>) => void) | undefined; | ||
| onTransitionEnd?: ((event: import("react").TransitionEvent<any>) => void) | undefined; | ||
| onTransitionEndCapture?: ((event: import("react").TransitionEvent<any>) => void) | undefined; | ||
| css?: import("@emotion/core").InterpolationWithTheme<any>; | ||
| ref?: string | ((instance: any) => void) | import("react").RefObject<any> | null | undefined; | ||
| key?: string | number | undefined; | ||
| }; | ||
| renderToggle: (toggle: React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>) => JSX.Element; | ||
| toggleRootProps: React.HTMLProps<any>; | ||
| id: string; | ||
| }; |
| import { __assign, __rest } from "tslib"; | ||
| import { useEffect } from 'react'; | ||
| import { useToggleFoundation } from '@rmwc/toggleable'; | ||
| import { useFoundation } from '@rmwc/base'; | ||
| import { useEffect } from 'react'; | ||
| import { MDCSwitchFoundation } from '@material/switch'; | ||
@@ -6,0 +6,0 @@ export var useSwitchFoundation = function (props) { |
| import { __assign, __rest } from "tslib"; | ||
| import * as React from 'react'; | ||
| import React from 'react'; | ||
| import { classNames, mergeRefs, Tag, useClassNames, createComponent } from '@rmwc/base'; | ||
@@ -4,0 +4,0 @@ import { withRipple } from '@rmwc/ripple'; |
| { | ||
| "name": "@rmwc/switch", | ||
| "version": "6.0.13", | ||
| "version": "6.0.14", | ||
| "description": "RMWC Switch component", | ||
@@ -40,9 +40,9 @@ "main": "dist/index.js", | ||
| "@material/switch": "^5.1.0", | ||
| "@rmwc/base": "^6.0.13", | ||
| "@rmwc/formfield": "^6.0.13", | ||
| "@rmwc/ripple": "^6.0.13", | ||
| "@rmwc/toggleable": "^6.0.13", | ||
| "@rmwc/base": "^6.0.14", | ||
| "@rmwc/formfield": "^6.0.14", | ||
| "@rmwc/ripple": "^6.0.14", | ||
| "@rmwc/toggleable": "^6.0.14", | ||
| "@rmwc/types": "^6.0.5" | ||
| }, | ||
| "gitHead": "0d3b30c73eb07958144efef0fb0759fa014a546a" | ||
| "gitHead": "4ee07fdccaec6eae22a6adf9c3232d809492bafd" | ||
| } |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
38294
-65.96%453
-64.75%1
Infinity%Updated
Updated
Updated
Updated