Socket
Socket
Sign inDemoInstall

@mui/styles

Package Overview
Dependencies
Maintainers
11
Versions
142
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mui/styles - npm Package Compare versions

Comparing version 6.1.0 to 6.1.1-dev.20240919-130050-82a6448768

2

createGenerateClassName/createGenerateClassName.js

@@ -43,3 +43,3 @@ import { unstable_nested as nested } from '@mui/private-theming/ThemeProvider';

// We can use a shorthand class name, we never use the keys to style the components.
if (stateClasses.indexOf(rule.key) !== -1) {
if (stateClasses.includes(rule.key)) {
return `Mui-${rule.key}`;

@@ -46,0 +46,0 @@ }

/**
* @mui/styles v6.1.0
* @mui/styles v6.1.1-dev.20240919-130050-82a6448768
*

@@ -4,0 +4,0 @@ * @license MIT

@@ -225,3 +225,3 @@ import * as React from 'react';

const supportedComponents = ['MuiAvatar', 'MuiBadge', 'MuiButton', 'MuiButtonGroup', 'MuiChip', 'MuiDivider', 'MuiFab', 'MuiPaper', 'MuiToolbar', 'MuiTypography', 'MuiAlert', 'MuiPagination', 'MuiPaginationItem', 'MuiSkeleton', 'MuiTimelineDot'];
if (name && supportedComponents.indexOf(name) >= 0 && props.variant && !classes[props.variant]) {
if (name && supportedComponents.includes(name) && props.variant && !classes[props.variant]) {
console.error([`MUI: You are using a variant value \`${props.variant}\` for which you didn't define styles.`, `Please create a new variant matcher in your theme for this variant. To learn more about matchers visit https://mui.com/r/custom-component-variants.`].join('\n'));

@@ -228,0 +228,0 @@ }

@@ -43,3 +43,3 @@ import { unstable_nested as nested } from '@mui/private-theming/ThemeProvider';

// We can use a shorthand class name, we never use the keys to style the components.
if (stateClasses.indexOf(rule.key) !== -1) {
if (stateClasses.includes(rule.key)) {
return `Mui-${rule.key}`;

@@ -46,0 +46,0 @@ }

/**
* @mui/styles v6.1.0
* @mui/styles v6.1.1-dev.20240919-130050-82a6448768
*

@@ -4,0 +4,0 @@ * @license MIT

@@ -225,3 +225,3 @@ import * as React from 'react';

const supportedComponents = ['MuiAvatar', 'MuiBadge', 'MuiButton', 'MuiButtonGroup', 'MuiChip', 'MuiDivider', 'MuiFab', 'MuiPaper', 'MuiToolbar', 'MuiTypography', 'MuiAlert', 'MuiPagination', 'MuiPaginationItem', 'MuiSkeleton', 'MuiTimelineDot'];
if (name && supportedComponents.indexOf(name) >= 0 && props.variant && !classes[props.variant]) {
if (name && supportedComponents.includes(name) && props.variant && !classes[props.variant]) {
console.error([`MUI: You are using a variant value \`${props.variant}\` for which you didn't define styles.`, `Please create a new variant matcher in your theme for this variant. To learn more about matchers visit https://mui.com/r/custom-component-variants.`].join('\n'));

@@ -228,0 +228,0 @@ }

@@ -11,3 +11,3 @@ import * as React from 'react';

Object.keys(input).forEach(prop => {
if (fields.indexOf(prop) === -1) {
if (!fields.includes(prop)) {
output[prop] = input[prop];

@@ -14,0 +14,0 @@ }

@@ -48,3 +48,3 @@ "use strict";

// We can use a shorthand class name, we never use the keys to style the components.
if (stateClasses.indexOf(rule.key) !== -1) {
if (stateClasses.includes(rule.key)) {
return `Mui-${rule.key}`;

@@ -51,0 +51,0 @@ }

/**
* @mui/styles v6.1.0
* @mui/styles v6.1.1-dev.20240919-130050-82a6448768
*

@@ -4,0 +4,0 @@ * @license MIT

@@ -233,3 +233,3 @@ "use strict";

const supportedComponents = ['MuiAvatar', 'MuiBadge', 'MuiButton', 'MuiButtonGroup', 'MuiChip', 'MuiDivider', 'MuiFab', 'MuiPaper', 'MuiToolbar', 'MuiTypography', 'MuiAlert', 'MuiPagination', 'MuiPaginationItem', 'MuiSkeleton', 'MuiTimelineDot'];
if (name && supportedComponents.indexOf(name) >= 0 && props.variant && !classes[props.variant]) {
if (name && supportedComponents.includes(name) && props.variant && !classes[props.variant]) {
console.error([`MUI: You are using a variant value \`${props.variant}\` for which you didn't define styles.`, `Please create a new variant matcher in your theme for this variant. To learn more about matchers visit https://mui.com/r/custom-component-variants.`].join('\n'));

@@ -236,0 +236,0 @@ }

@@ -19,3 +19,3 @@ "use strict";

Object.keys(input).forEach(prop => {
if (fields.indexOf(prop) === -1) {
if (!fields.includes(prop)) {
output[prop] = input[prop];

@@ -22,0 +22,0 @@ }

{
"name": "@mui/styles",
"version": "6.1.0",
"version": "6.1.1-dev.20240919-130050-82a6448768",
"private": false,

@@ -16,3 +16,3 @@ "author": "MUI Team",

"type": "git",
"url": "https://github.com/mui/material-ui.git",
"url": "git+https://github.com/mui/material-ui.git",
"directory": "packages/mui-styles"

@@ -44,5 +44,5 @@ },

"prop-types": "^15.8.1",
"@mui/private-theming": "^6.1.0",
"@mui/types": "^7.2.16",
"@mui/utils": "^6.1.0"
"@mui/private-theming": "^6.1.1-dev.20240919-130050-82a6448768",
"@mui/types": "^7.2.17",
"@mui/utils": "^6.1.1-dev.20240919-130050-82a6448768"
},

@@ -49,0 +49,0 @@ "peerDependencies": {

@@ -11,3 +11,3 @@ import * as React from 'react';

Object.keys(input).forEach(prop => {
if (fields.indexOf(prop) === -1) {
if (!fields.includes(prop)) {
output[prop] = input[prop];

@@ -14,0 +14,0 @@ }

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