Security upgrades

This commit is contained in:
2020-07-15 19:54:48 +02:00
parent 59cc6c54cd
commit ad8ed283d2
3164 changed files with 408897 additions and 28 deletions

39
node_modules/@material-ui/styles/styled/styled.d.ts generated vendored Normal file
View File

@@ -0,0 +1,39 @@
import { Omit, Overwrite } from '@material-ui/types';
import {
CreateCSSProperties,
StyledComponentProps,
WithStylesOptions,
} from '@material-ui/styles/withStyles';
import * as React from 'react';
import { DefaultTheme } from '../defaultTheme';
// We don't want a union type here (like React.ComponentType) in order to support mapped types.
export type StyledComponent<P extends {}> = (props: P) => React.ReactElement<P, any> | null;
/**
* @internal
*/
export type ComponentCreator<Component extends React.ElementType> = <
Theme = DefaultTheme,
Props extends {} = React.ComponentPropsWithoutRef<Component>
>(
styles:
| CreateCSSProperties<Props>
| ((props: { theme: Theme } & Props) => CreateCSSProperties<Props>),
options?: WithStylesOptions<Theme>
) => StyledComponent<
Omit<
JSX.LibraryManagedAttributes<Component, React.ComponentProps<Component>>,
'classes' | 'className'
> &
StyledComponentProps<'root'> &
Overwrite<Props, { className?: string; theme?: Theme }>
>;
export interface StyledProps {
className: string;
}
export default function styled<Component extends React.ElementType>(
Component: Component
): ComponentCreator<Component>;