Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@material-ui/utils

Package Overview
Dependencies
Maintainers
6
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@material-ui/utils - npm Package Compare versions

Comparing version 5.0.0-alpha.25 to 5.0.0-alpha.26

2

index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc