Completely updated React, fixed #11, (hopefully)
This commit is contained in:
11
goTorrentWebUI/node_modules/material-ui/es/Toolbar/Toolbar.d.ts
generated
vendored
11
goTorrentWebUI/node_modules/material-ui/es/Toolbar/Toolbar.d.ts
generated
vendored
@@ -1,17 +1,12 @@
|
||||
import * as React from 'react';
|
||||
import { StandardProps } from '..';
|
||||
|
||||
export interface ToolbarProps extends StandardProps<
|
||||
React.HTMLAttributes<HTMLDivElement>,
|
||||
ToolbarClassKey
|
||||
> {
|
||||
export interface ToolbarProps
|
||||
extends StandardProps<React.HTMLAttributes<HTMLDivElement>, ToolbarClassKey> {
|
||||
disableGutters?: boolean;
|
||||
}
|
||||
|
||||
export type ToolbarClassKey =
|
||||
| 'root'
|
||||
| 'gutters'
|
||||
;
|
||||
export type ToolbarClassKey = 'root' | 'gutters';
|
||||
|
||||
declare const Toolbar: React.ComponentType<ToolbarProps>;
|
||||
|
||||
|
29
goTorrentWebUI/node_modules/material-ui/es/Toolbar/Toolbar.js
generated
vendored
29
goTorrentWebUI/node_modules/material-ui/es/Toolbar/Toolbar.js
generated
vendored
@@ -1,11 +1,7 @@
|
||||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
||||
|
||||
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; }
|
||||
|
||||
// weak
|
||||
|
||||
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
|
||||
import _extends from 'babel-runtime/helpers/extends';
|
||||
import React from 'react';
|
||||
|
||||
import PropTypes from 'prop-types';
|
||||
import classNames from 'classnames';
|
||||
import withStyles from '../styles/withStyles';
|
||||
|
||||
@@ -33,6 +29,25 @@ function Toolbar(props) {
|
||||
);
|
||||
}
|
||||
|
||||
Toolbar.propTypes = process.env.NODE_ENV !== "production" ? {
|
||||
/**
|
||||
* Toolbar children, usually a mixture of `IconButton`, `Button` and `Typography`.
|
||||
*/
|
||||
children: PropTypes.node,
|
||||
/**
|
||||
* Useful to extend the style applied to components.
|
||||
*/
|
||||
classes: PropTypes.object.isRequired,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: PropTypes.string,
|
||||
/**
|
||||
* If `true`, disables gutter padding.
|
||||
*/
|
||||
disableGutters: PropTypes.bool
|
||||
} : {};
|
||||
|
||||
Toolbar.defaultProps = {
|
||||
disableGutters: false
|
||||
};
|
||||
|
Reference in New Issue
Block a user