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

@material-ui/unstyled

Package Overview
Dependencies
Maintainers
7
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@material-ui/unstyled - npm Package Compare versions

Comparing version 5.0.0-alpha.30 to 5.0.0-alpha.31

2

composeClasses/composeClasses.d.ts

@@ -1,1 +0,1 @@

export default function composeClasses<ClassKey extends string>(slots: Record<ClassKey, Array<string | false>>, getUtilityClass: (slot: string) => string, classes: Record<string, string> | undefined): Record<ClassKey, string>;
export default function composeClasses<ClassKey extends string>(slots: Record<ClassKey, ReadonlyArray<string | false>>, getUtilityClass: (slot: string) => string, classes: Record<string, string> | undefined): Record<ClassKey, string>;
export { default } from './composeClasses';
export default function generateUtilityClass(componentName: string, slot: string): string;
export { default } from './generateUtilityClass';
export * from './generateUtilityClass';

@@ -1,4 +0,1 @@

export default function generateUtilityClasses<T extends keyof any>(
componentName: string,
slots: T[]
): Record<T, string>;
export default function generateUtilityClasses<T extends string>(componentName: string, slots: T[]): Record<T, string>;
export { default } from './generateUtilityClasses';
export * from './generateUtilityClasses';

@@ -1,2 +0,2 @@

/** @license Material-UI v5.0.0-alpha.30
/** @license Material-UI v5.0.0-alpha.31
*

@@ -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.30
/** @license Material-UI v5.0.0-alpha.31
*

@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the

@@ -88,2 +88,10 @@ /* eslint-disable @typescript-eslint/naming-convention, consistent-return, jsx-a11y/no-noninteractive-tabindex */

}
function defaultGetDoc() {
return document;
}
function defaultIsEnabled() {
return true;
}
/**

@@ -102,6 +110,8 @@ * Utility component that locks focus inside the component.

disableRestoreFocus = _props$disableRestore === void 0 ? false : _props$disableRestore,
getDoc = props.getDoc,
_props$getDoc = props.getDoc,
getDoc = _props$getDoc === void 0 ? defaultGetDoc : _props$getDoc,
_props$getTabbable = props.getTabbable,
getTabbable = _props$getTabbable === void 0 ? defaultGetTabbable : _props$getTabbable,
isEnabled = props.isEnabled,
_props$isEnabled = props.isEnabled,
isEnabled = _props$isEnabled === void 0 ? defaultIsEnabled : _props$isEnabled,
open = props.open;

@@ -359,6 +369,9 @@ var ignoreNextEnforceFocus = React.useRef();

/**
* Return the document to consider.
* We use it to implement the restore focus between different browser documents.
* Return the document the trap focus is mounted into.
* Provide the prop if you need the restore focus to work between different documents.
* @default function defaultGetDoc() {
* return document;
* }
*/
getDoc: PropTypes.func.isRequired,
getDoc: PropTypes.func,

@@ -373,6 +386,11 @@ /**

/**
* Do we still want to enforce the focus?
* This prop helps nesting TrapFocus elements.
* This prop extends the `open` prop.
* It allows to toggle the open state without having to wait for a rerender when changing the `open` prop.
* This prop should be memoized.
* It can be used to support multiple trap focus mounted at the same time.
* @default function defaultIsEnabled() {
* return true;
* }
*/
isEnabled: PropTypes.func.isRequired,
isEnabled: PropTypes.func,

@@ -379,0 +397,0 @@ /**

@@ -0,0 +0,0 @@ export interface ManagedModalProps {

@@ -1,2 +0,2 @@

/** @license Material-UI v5.0.0-alpha.30
/** @license Material-UI v5.0.0-alpha.31
*

@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the

@@ -82,2 +82,10 @@ /* eslint-disable @typescript-eslint/naming-convention, consistent-return, jsx-a11y/no-noninteractive-tabindex */

}
function defaultGetDoc() {
return document;
}
function defaultIsEnabled() {
return true;
}
/**

@@ -94,5 +102,5 @@ * Utility component that locks focus inside the component.

disableRestoreFocus = false,
getDoc,
getDoc = defaultGetDoc,
getTabbable = defaultGetTabbable,
isEnabled,
isEnabled = defaultIsEnabled,
open

@@ -351,6 +359,9 @@ } = props;

/**
* Return the document to consider.
* We use it to implement the restore focus between different browser documents.
* Return the document the trap focus is mounted into.
* Provide the prop if you need the restore focus to work between different documents.
* @default function defaultGetDoc() {
* return document;
* }
*/
getDoc: PropTypes.func.isRequired,
getDoc: PropTypes.func,

@@ -365,6 +376,11 @@ /**

/**
* Do we still want to enforce the focus?
* This prop helps nesting TrapFocus elements.
* This prop extends the `open` prop.
* It allows to toggle the open state without having to wait for a rerender when changing the `open` prop.
* This prop should be memoized.
* It can be used to support multiple trap focus mounted at the same time.
* @default function defaultIsEnabled() {
* return true;
* }
*/
isEnabled: PropTypes.func.isRequired,
isEnabled: PropTypes.func,

@@ -371,0 +387,0 @@ /**

@@ -1,2 +0,2 @@

/** @license Material-UI v5.0.0-alpha.30
/** @license Material-UI v5.0.0-alpha.31
*

@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the

@@ -96,2 +96,10 @@ "use strict";

}
function defaultGetDoc() {
return document;
}
function defaultIsEnabled() {
return true;
}
/**

@@ -108,5 +116,5 @@ * Utility component that locks focus inside the component.

disableRestoreFocus = false,
getDoc,
getDoc = defaultGetDoc,
getTabbable = defaultGetTabbable,
isEnabled,
isEnabled = defaultIsEnabled,
open

@@ -367,6 +375,9 @@ } = props;

/**
* Return the document to consider.
* We use it to implement the restore focus between different browser documents.
* Return the document the trap focus is mounted into.
* Provide the prop if you need the restore focus to work between different documents.
* @default function defaultGetDoc() {
* return document;
* }
*/
getDoc: _propTypes.default.func.isRequired,
getDoc: _propTypes.default.func,

@@ -381,6 +392,11 @@ /**

/**
* Do we still want to enforce the focus?
* This prop helps nesting TrapFocus elements.
* This prop extends the `open` prop.
* It allows to toggle the open state without having to wait for a rerender when changing the `open` prop.
* This prop should be memoized.
* It can be used to support multiple trap focus mounted at the same time.
* @default function defaultIsEnabled() {
* return true;
* }
*/
isEnabled: _propTypes.default.func.isRequired,
isEnabled: _propTypes.default.func,

@@ -387,0 +403,0 @@ /**

{
"name": "@material-ui/unstyled",
"version": "5.0.0-alpha.30",
"version": "5.0.0-alpha.31",
"private": false,

@@ -37,3 +37,3 @@ "author": "Material-UI Team",

"@babel/runtime": "^7.4.4",
"@material-ui/utils": "5.0.0-alpha.29",
"@material-ui/utils": "5.0.0-alpha.30",
"clsx": "^1.0.4",

@@ -48,3 +48,3 @@ "prop-types": "^15.7.2",

"engines": {
"node": ">=10.0.0"
"node": ">=12.0.0"
},

@@ -51,0 +51,0 @@ "module": "./index.js",

@@ -10,6 +10,9 @@ /* eslint-disable @typescript-eslint/naming-convention */

/**
* Return the document to consider.
* We use it to implement the restore focus between different browser documents.
* Return the document the trap focus is mounted into.
* Provide the prop if you need the restore focus to work between different documents.
* @default function defaultGetDoc() {
* return document;
* }
*/
getDoc: () => Document;
getDoc?: () => Document;
/**

@@ -22,6 +25,11 @@ * Returns an array of ordered tabbable nodes (i.e. in tab order) within the root.

/**
* Do we still want to enforce the focus?
* This prop helps nesting TrapFocus elements.
* This prop extends the `open` prop.
* It allows to toggle the open state without having to wait for a rerender when changing the `open` prop.
* This prop should be memoized.
* It can be used to support multiple trap focus mounted at the same time.
* @default function defaultIsEnabled() {
* return true;
* }
*/
isEnabled: () => boolean;
isEnabled?: () => boolean;
/**

@@ -28,0 +36,0 @@ * A single child content element.

@@ -82,2 +82,10 @@ /* eslint-disable @typescript-eslint/naming-convention, consistent-return, jsx-a11y/no-noninteractive-tabindex */

}
function defaultGetDoc() {
return document;
}
function defaultIsEnabled() {
return true;
}
/**

@@ -94,5 +102,5 @@ * Utility component that locks focus inside the component.

disableRestoreFocus = false,
getDoc,
getDoc = defaultGetDoc,
getTabbable = defaultGetTabbable,
isEnabled,
isEnabled = defaultIsEnabled,
open

@@ -353,6 +361,9 @@ } = props;

/**
* Return the document to consider.
* We use it to implement the restore focus between different browser documents.
* Return the document the trap focus is mounted into.
* Provide the prop if you need the restore focus to work between different documents.
* @default function defaultGetDoc() {
* return document;
* }
*/
getDoc: PropTypes.func.isRequired,
getDoc: PropTypes.func,

@@ -367,6 +378,11 @@ /**

/**
* Do we still want to enforce the focus?
* This prop helps nesting TrapFocus elements.
* This prop extends the `open` prop.
* It allows to toggle the open state without having to wait for a rerender when changing the `open` prop.
* This prop should be memoized.
* It can be used to support multiple trap focus mounted at the same time.
* @default function defaultIsEnabled() {
* return true;
* }
*/
isEnabled: PropTypes.func.isRequired,
isEnabled: PropTypes.func,

@@ -373,0 +389,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