Completely updated React, fixed #11, (hopefully)
This commit is contained in:
25
goTorrentWebUI/node_modules/material-ui/internal/SwitchBase.d.ts
generated
vendored
25
goTorrentWebUI/node_modules/material-ui/internal/SwitchBase.d.ts
generated
vendored
@@ -2,11 +2,8 @@ import * as React from 'react';
|
||||
import { StandardProps } from '..';
|
||||
import { IconButtonProps } from '../IconButton';
|
||||
|
||||
export interface SwitchBaseProps extends StandardProps<
|
||||
IconButtonProps,
|
||||
SwitchBaseClassKey,
|
||||
'onChange'
|
||||
> {
|
||||
export interface SwitchBaseProps
|
||||
extends StandardProps<IconButtonProps, SwitchBaseClassKey, 'onChange'> {
|
||||
checked?: boolean | string;
|
||||
checkedClassName?: string;
|
||||
checkedIcon?: React.ReactNode;
|
||||
@@ -20,27 +17,19 @@ export interface SwitchBaseProps extends StandardProps<
|
||||
inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
|
||||
inputRef?: React.Ref<any>;
|
||||
name?: string;
|
||||
onChange?: (event: React.ChangeEvent<{}>, checked: boolean) => void;
|
||||
onChange?: (event: React.ChangeEvent<HTMLInputElement>, checked: boolean) => void;
|
||||
tabIndex?: number;
|
||||
value?: string;
|
||||
}
|
||||
|
||||
export type SwitchBaseClassKey =
|
||||
| 'root'
|
||||
| 'default'
|
||||
| 'checked'
|
||||
| 'disabled'
|
||||
| 'input'
|
||||
;
|
||||
export type SwitchBaseClassKey = 'root' | 'default' | 'checked' | 'disabled' | 'input';
|
||||
|
||||
export type SwitchBase = React.Component<SwitchBaseProps>
|
||||
export type SwitchBase = React.Component<SwitchBaseProps>;
|
||||
|
||||
export interface CreateSwitchBaseOptions {
|
||||
defaultIcon?: React.ReactNode;
|
||||
defaultCheckedIcon?: React.ReactNode;
|
||||
inputType?: string;
|
||||
type?: string;
|
||||
}
|
||||
|
||||
export default function createSwitch(
|
||||
options: CreateSwitchBaseOptions
|
||||
): SwitchBase;
|
||||
export default function createSwitch(options: CreateSwitchBaseOptions): SwitchBase;
|
||||
|
Reference in New Issue
Block a user