@material-ui/utils
Advanced tools
Comparing version 5.0.0-alpha.26 to 5.0.0-alpha.27
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -8,2 +10,4 @@ value: true | ||
var _formatMuiErrorMessage2 = _interopRequireDefault(require("./formatMuiErrorMessage")); | ||
// It should to be noted that this function isn't equivalent to `text-transform: capitalize`. | ||
@@ -15,6 +19,3 @@ // | ||
if (typeof string !== 'string') { | ||
throw ( | ||
/* FIXME (minify-errors-in-prod): Unminified error message in production build! */ | ||
new Error(`Material-UI: \`capitalize(string)\` expects a string argument.`) | ||
); | ||
throw new Error(process.env.NODE_ENV !== "production" ? `Material-UI: \`capitalize(string)\` expects a string argument.` : (0, _formatMuiErrorMessage2.default)(7)); | ||
} | ||
@@ -21,0 +22,0 @@ |
import PropTypes from 'prop-types'; | ||
export default function chainPropTypes<A, B>(propType1: PropTypes.Validator<A>, propType2: PropTypes.Validator<B>): PropTypes.Validator<A & B>; |
@@ -0,0 +0,0 @@ export declare function isPlainObject(item: unknown): item is Record<keyof any, unknown>; |
import PropTypes from 'prop-types'; | ||
declare const elementAcceptingRef: PropTypes.Requireable<unknown>; | ||
export default elementAcceptingRef; |
import PropTypes from 'prop-types'; | ||
declare const _default: PropTypes.Validator<string | ((props: any, context?: any) => any) | (new (props: any, context?: any) => any) | null | undefined>; | ||
declare const _default: PropTypes.Validator<PropTypes.ReactComponentLike | null | undefined>; | ||
export default _default; |
@@ -0,1 +1,2 @@ | ||
import _formatMuiErrorMessage from "./formatMuiErrorMessage"; | ||
// It should to be noted that this function isn't equivalent to `text-transform: capitalize`. | ||
@@ -7,6 +8,3 @@ // | ||
if (typeof string !== 'string') { | ||
throw ( | ||
/* FIXME (minify-errors-in-prod): Unminified error message in production build! */ | ||
new Error(`Material-UI: \`capitalize(string)\` expects a string argument.`) | ||
); | ||
throw new Error(process.env.NODE_ENV !== "production" ? `Material-UI: \`capitalize(string)\` expects a string argument.` : _formatMuiErrorMessage(7)); | ||
} | ||
@@ -13,0 +11,0 @@ |
const visuallyHidden = { | ||
border: 0, | ||
clip: 'rect(0 0 0 0)', | ||
height: 1, | ||
height: '1px', | ||
margin: -1, | ||
@@ -10,4 +10,4 @@ overflow: 'hidden', | ||
whiteSpace: 'nowrap', | ||
width: 1 | ||
width: '1px' | ||
}; | ||
export default visuallyHidden; |
import { ValidationMap } from 'prop-types'; | ||
export default function exactProp<T>(propTypes: ValidationMap<T>): ValidationMap<T>; |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ import * as React from 'react'; |
export default function getScrollbarSize(doc: Document): number; |
export default function HTMLElementType(props: { | ||
[key: string]: unknown; | ||
}, propName: string, componentName: string, location: string, propFullName: string): Error | null; |
@@ -0,0 +0,0 @@ export { default as chainPropTypes } from './chainPropTypes'; |
@@ -1,2 +0,2 @@ | ||
/** @license Material-UI v5.0.0-alpha.26 | ||
/** @license Material-UI v5.0.0-alpha.27 | ||
* | ||
@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the |
export default function isMuiElement(element: any, muiNames: string[]): boolean; |
@@ -0,1 +1,2 @@ | ||
import _formatMuiErrorMessage from "./formatMuiErrorMessage"; | ||
// It should to be noted that this function isn't equivalent to `text-transform: capitalize`. | ||
@@ -7,6 +8,3 @@ // | ||
if (typeof string !== 'string') { | ||
throw ( | ||
/* FIXME (minify-errors-in-prod): Unminified error message in production build! */ | ||
new Error("Material-UI: `capitalize(string)` expects a string argument.") | ||
); | ||
throw new Error(process.env.NODE_ENV !== "production" ? "Material-UI: `capitalize(string)` expects a string argument." : _formatMuiErrorMessage(7)); | ||
} | ||
@@ -13,0 +11,0 @@ |
@@ -1,2 +0,2 @@ | ||
/** @license Material-UI v5.0.0-alpha.26 | ||
/** @license Material-UI v5.0.0-alpha.27 | ||
* | ||
@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the |
var visuallyHidden = { | ||
border: 0, | ||
clip: 'rect(0 0 0 0)', | ||
height: 1, | ||
height: '1px', | ||
margin: -1, | ||
@@ -10,4 +10,4 @@ overflow: 'hidden', | ||
whiteSpace: 'nowrap', | ||
width: 1 | ||
width: '1px' | ||
}; | ||
export default visuallyHidden; |
@@ -0,1 +1,2 @@ | ||
import _formatMuiErrorMessage from "./formatMuiErrorMessage"; | ||
// It should to be noted that this function isn't equivalent to `text-transform: capitalize`. | ||
@@ -7,6 +8,3 @@ // | ||
if (typeof string !== 'string') { | ||
throw ( | ||
/* FIXME (minify-errors-in-prod): Unminified error message in production build! */ | ||
new Error(`Material-UI: \`capitalize(string)\` expects a string argument.`) | ||
); | ||
throw new Error(process.env.NODE_ENV !== "production" ? `Material-UI: \`capitalize(string)\` expects a string argument.` : _formatMuiErrorMessage(7)); | ||
} | ||
@@ -13,0 +11,0 @@ |
@@ -1,2 +0,2 @@ | ||
/** @license Material-UI v5.0.0-alpha.26 | ||
/** @license Material-UI v5.0.0-alpha.27 | ||
* | ||
@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the |
const visuallyHidden = { | ||
border: 0, | ||
clip: 'rect(0 0 0 0)', | ||
height: 1, | ||
height: '1px', | ||
margin: -1, | ||
@@ -10,4 +10,4 @@ overflow: 'hidden', | ||
whiteSpace: 'nowrap', | ||
width: 1 | ||
width: '1px' | ||
}; | ||
export default visuallyHidden; |
export default function ownerDocument(node: Node | null | undefined): Document; |
export default function ownerWindow(node: Node | undefined): Window; |
{ | ||
"name": "@material-ui/utils", | ||
"version": "5.0.0-alpha.26", | ||
"version": "5.0.0-alpha.27", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "author": "Material-UI Team", |
declare const _default: any; | ||
export default _default; |
import PropTypes from 'prop-types'; | ||
declare const refType: PropTypes.Requireable<object>; | ||
export default refType; |
@@ -0,0 +0,0 @@ import * as React from 'react'; |
@@ -0,0 +0,0 @@ /** |
export {}; |
declare const usePreviousProps: (value: object) => object; | ||
export default usePreviousProps; |
import type { CSSProperties } from 'react'; | ||
declare const visuallyHidden: CSSProperties; | ||
export default visuallyHidden; |
@@ -10,3 +10,3 @@ "use strict"; | ||
clip: 'rect(0 0 0 0)', | ||
height: 1, | ||
height: '1px', | ||
margin: -1, | ||
@@ -17,5 +17,5 @@ overflow: 'hidden', | ||
whiteSpace: 'nowrap', | ||
width: 1 | ||
width: '1px' | ||
}; | ||
var _default = visuallyHidden; | ||
exports.default = _default; |
Sorry, the diff of this file is too big to display
863587
3290
16