Completely updated React, fixed #11, (hopefully)
This commit is contained in:
18
goTorrentWebUI/node_modules/material-ui/es/styles/transitions.js
generated
vendored
18
goTorrentWebUI/node_modules/material-ui/es/styles/transitions.js
generated
vendored
@@ -1,4 +1,6 @@
|
||||
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
|
||||
import _Object$keys from 'babel-runtime/core-js/object/keys';
|
||||
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
|
||||
import _Number$isNaN from 'babel-runtime/core-js/number/is-nan';
|
||||
|
||||
/* eslint-disable no-param-reassign */
|
||||
|
||||
@@ -36,7 +38,7 @@ export const duration = {
|
||||
|
||||
export const formatMs = milliseconds => `${Math.round(milliseconds)}ms`;
|
||||
export const isString = value => typeof value === 'string';
|
||||
export const isNumber = value => !Number.isNaN(parseFloat(value));
|
||||
export const isNumber = value => !_Number$isNaN(parseFloat(value));
|
||||
|
||||
/**
|
||||
* @param {string|Array} props
|
||||
@@ -57,13 +59,13 @@ export default {
|
||||
} = options,
|
||||
other = _objectWithoutProperties(options, ['duration', 'easing', 'delay']);
|
||||
|
||||
warning(isString(props) || Array.isArray(props), 'Material-UI: argument "props" must be a string or Array');
|
||||
warning(isNumber(durationOption), `Material-UI: argument "duration" must be a number but found ${durationOption}`);
|
||||
warning(isString(easingOption), 'Material-UI: argument "easing" must be a string');
|
||||
warning(isNumber(delay), 'Material-UI: argument "delay" must be a string');
|
||||
warning(Object.keys(other).length === 0, `Material-UI: unrecognized argument(s) [${Object.keys(other).join(',')}]`);
|
||||
process.env.NODE_ENV !== "production" ? warning(isString(props) || Array.isArray(props), 'Material-UI: argument "props" must be a string or Array.') : void 0;
|
||||
process.env.NODE_ENV !== "production" ? warning(isNumber(durationOption) || isString(durationOption), `Material-UI: argument "duration" must be a number or a string but found ${durationOption}.`) : void 0;
|
||||
process.env.NODE_ENV !== "production" ? warning(isString(easingOption), 'Material-UI: argument "easing" must be a string.') : void 0;
|
||||
process.env.NODE_ENV !== "production" ? warning(isNumber(delay) || isString(delay), 'Material-UI: argument "delay" must be a number or a string.') : void 0;
|
||||
process.env.NODE_ENV !== "production" ? warning(_Object$keys(other).length === 0, `Material-UI: unrecognized argument(s) [${_Object$keys(other).join(',')}]`) : void 0;
|
||||
|
||||
return (Array.isArray(props) ? props : [props]).map(animatedProp => `${animatedProp} ${formatMs(durationOption)} ${easingOption} ${formatMs(delay)}`).join(',');
|
||||
return (Array.isArray(props) ? props : [props]).map(animatedProp => `${animatedProp} ${typeof durationOption === 'string' ? durationOption : formatMs(durationOption)} ${easingOption} ${typeof delay === 'string' ? delay : formatMs(delay)}`).join(',');
|
||||
},
|
||||
getAutoHeightDuration(height) {
|
||||
if (!height) {
|
||||
|
Reference in New Issue
Block a user