Completely updated React, fixed #11, (hopefully)
This commit is contained in:
43
goTorrentWebUI/node_modules/material-ui/es/Tabs/TabScrollButton.js
generated
vendored
43
goTorrentWebUI/node_modules/material-ui/es/Tabs/TabScrollButton.js
generated
vendored
@@ -1,15 +1,12 @@
|
||||
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 _extends from 'babel-runtime/helpers/extends';
|
||||
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import classNames from 'classnames';
|
||||
import KeyboardArrowLeft from '../internal/svg-icons/KeyboardArrowLeft';
|
||||
import KeyboardArrowRight from '../internal/svg-icons/KeyboardArrowRight';
|
||||
import withStyles from '../styles/withStyles';
|
||||
import ButtonBase from '../ButtonBase';
|
||||
import KeyboardArrowLeft from '../svg-icons/KeyboardArrowLeft';
|
||||
import KeyboardArrowRight from '../svg-icons/KeyboardArrowRight';
|
||||
|
||||
export const styles = theme => ({
|
||||
root: {
|
||||
@@ -21,6 +18,11 @@ export const styles = theme => ({
|
||||
/**
|
||||
* @ignore - internal component.
|
||||
*/
|
||||
|
||||
var _ref = React.createElement(KeyboardArrowLeft, null);
|
||||
|
||||
var _ref2 = React.createElement(KeyboardArrowRight, null);
|
||||
|
||||
function TabScrollButton(props) {
|
||||
const { classes, className: classNameProp, direction, onClick, visible } = props,
|
||||
other = _objectWithoutProperties(props, ['classes', 'className', 'direction', 'onClick', 'visible']);
|
||||
@@ -34,10 +36,33 @@ function TabScrollButton(props) {
|
||||
return React.createElement(
|
||||
ButtonBase,
|
||||
_extends({ className: className, onClick: onClick, tabIndex: -1 }, other),
|
||||
direction === 'left' ? React.createElement(KeyboardArrowLeft, null) : React.createElement(KeyboardArrowRight, null)
|
||||
direction === 'left' ? _ref : _ref2
|
||||
);
|
||||
}
|
||||
|
||||
TabScrollButton.propTypes = process.env.NODE_ENV !== "production" ? {
|
||||
/**
|
||||
* Useful to extend the style applied to components.
|
||||
*/
|
||||
classes: PropTypes.object.isRequired,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: PropTypes.string,
|
||||
/**
|
||||
* Which direction should the button indicate?
|
||||
*/
|
||||
direction: PropTypes.oneOf(['left', 'right']),
|
||||
/**
|
||||
* Callback to execute for button press.
|
||||
*/
|
||||
onClick: PropTypes.func,
|
||||
/**
|
||||
* Should the button be present or just consume space.
|
||||
*/
|
||||
visible: PropTypes.bool
|
||||
} : {};
|
||||
|
||||
TabScrollButton.defaultProps = {
|
||||
visible: true
|
||||
};
|
||||
|
Reference in New Issue
Block a user