@material-ui/utils
Advanced tools
Comparing version 5.0.0-alpha.25 to 5.0.0-alpha.26
@@ -1,2 +0,2 @@ | ||
/** @license Material-UI v5.0.0-alpha.25 | ||
/** @license Material-UI v5.0.0-alpha.26 | ||
* | ||
@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the |
@@ -1,39 +0,1 @@ | ||
import * as React from 'react'; | ||
import { DistributiveOmit } from '@material-ui/types'; | ||
export type ClassNameMap<ClassKey extends string = string> = Record<ClassKey, string>; | ||
export interface StyledComponentProps<ClassKey extends string = string> { | ||
/** | ||
* Override or extend the styles applied to the component. | ||
*/ | ||
classes?: Partial<ClassNameMap<ClassKey>>; | ||
innerRef?: React.Ref<any>; | ||
} | ||
/** | ||
* Helper type for conform (describeConformance) components that are decorated with `withStyles | ||
* However, we don't declare classes on this type. | ||
* It is recommended to declare them manually with an interface so that each class can have a separate JSDOC. | ||
*/ | ||
export type StandardProps<C, Removals extends keyof C = never> = DistributiveOmit< | ||
C, | ||
'classes' | Removals | ||
> & | ||
// each component declares it's classes in a separate interface for proper JSDOC | ||
StyledComponentProps<never> & { | ||
ref?: C extends { ref?: infer RefType } ? RefType : React.Ref<unknown>; | ||
// TODO: Remove implicit props. Up to each component. | ||
className?: string; | ||
style?: React.CSSProperties; | ||
}; | ||
export type NamedMuiComponent = React.ComponentType & { muiName: string }; | ||
export interface NamedMuiElement { | ||
type: NamedMuiComponent; | ||
props: StandardProps<{}>; | ||
key: string | number | null; | ||
} | ||
export default function isMuiElement(element: any, muiNames: string[]): element is NamedMuiElement; | ||
export default function isMuiElement(element: any, muiNames: string[]): boolean; |
@@ -1,2 +0,2 @@ | ||
/** @license Material-UI v5.0.0-alpha.25 | ||
/** @license Material-UI v5.0.0-alpha.26 | ||
* | ||
@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the |
@@ -1,2 +0,2 @@ | ||
/** @license Material-UI v5.0.0-alpha.25 | ||
/** @license Material-UI v5.0.0-alpha.26 | ||
* | ||
@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the |
{ | ||
"name": "@material-ui/utils", | ||
"version": "5.0.0-alpha.25", | ||
"version": "5.0.0-alpha.26", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "author": "Material-UI Team", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
859355
3297