Completely updated React, fixed #11, (hopefully)
This commit is contained in:
32
goTorrentWebUI/node_modules/material-ui/styles/withStyles.d.ts
generated
vendored
32
goTorrentWebUI/node_modules/material-ui/styles/withStyles.d.ts
generated
vendored
@@ -2,15 +2,23 @@ import * as React from 'react';
|
||||
import { Theme } from './createMuiTheme';
|
||||
|
||||
/**
|
||||
* This is basically the API of JSS. It defines a Map<string, CSS>,
|
||||
* where
|
||||
*
|
||||
* - the `keys` are the class (names) that will be created
|
||||
* - the `values` are objects that represent CSS rules (`React.CSSProperties`).
|
||||
*/
|
||||
export type StyleRules<ClassKey extends string = string> = Record<ClassKey, Partial<React.CSSProperties>>;
|
||||
* This is basically the API of JSS. It defines a Map<string, CSS>,
|
||||
* where
|
||||
*
|
||||
* - the `keys` are the class (names) that will be created
|
||||
* - the `values` are objects that represent CSS rules (`React.CSSProperties`).
|
||||
*/
|
||||
export type StyleRules<ClassKey extends string = string> = Record<ClassKey, React.CSSProperties>;
|
||||
|
||||
export type StyleRulesCallback<ClassKey extends string = string> = (theme: Theme) => StyleRules<ClassKey>;
|
||||
export type StyleRulesCallback<ClassKey extends string = string> = (
|
||||
theme: Theme,
|
||||
) => StyleRules<ClassKey>;
|
||||
|
||||
export interface StylesCreator {
|
||||
create(theme: Theme, name: string): StyleRules;
|
||||
options: { index: number };
|
||||
themingEnabled: boolean;
|
||||
}
|
||||
|
||||
export interface WithStylesOptions {
|
||||
flip?: boolean;
|
||||
@@ -21,8 +29,8 @@ export interface WithStylesOptions {
|
||||
export type ClassNameMap<ClassKey extends string = string> = Record<ClassKey, string>;
|
||||
|
||||
export interface WithStyles<ClassKey extends string = string> {
|
||||
classes: ClassNameMap<ClassKey>
|
||||
theme?: Theme
|
||||
classes: ClassNameMap<ClassKey>;
|
||||
theme?: Theme;
|
||||
}
|
||||
|
||||
export interface StyledComponentProps<ClassKey extends string = string> {
|
||||
@@ -32,7 +40,7 @@ export interface StyledComponentProps<ClassKey extends string = string> {
|
||||
|
||||
export default function withStyles<ClassKey extends string>(
|
||||
style: StyleRules<ClassKey> | StyleRulesCallback<ClassKey>,
|
||||
options?: WithStylesOptions
|
||||
options?: WithStylesOptions,
|
||||
): <P>(
|
||||
component: React.ComponentType<P & WithStyles<ClassKey>>
|
||||
component: React.ComponentType<P & WithStyles<ClassKey>>,
|
||||
) => React.ComponentType<P & StyledComponentProps<ClassKey>>;
|
||||
|
Reference in New Issue
Block a user