Completely updated React, fixed #11, (hopefully)
This commit is contained in:
17
goTorrentWebUI/node_modules/material-ui/es/internal/Backdrop.d.ts
generated
vendored
17
goTorrentWebUI/node_modules/material-ui/es/internal/Backdrop.d.ts
generated
vendored
@@ -1,17 +0,0 @@
|
||||
import * as React from 'react';
|
||||
import { StandardProps } from '..';
|
||||
|
||||
export interface BackdropProps extends StandardProps<{}, BackdropClassKey> {
|
||||
invisible?: boolean;
|
||||
onClick?: React.ReactEventHandler<{}>;
|
||||
[prop: string]: any;
|
||||
}
|
||||
|
||||
export type BackdropClassKey =
|
||||
| 'root'
|
||||
| 'invisible'
|
||||
;
|
||||
|
||||
declare const Backdrop: React.ComponentType<BackdropProps>;
|
||||
|
||||
export default Backdrop;
|
52
goTorrentWebUI/node_modules/material-ui/es/internal/Backdrop.js
generated
vendored
52
goTorrentWebUI/node_modules/material-ui/es/internal/Backdrop.js
generated
vendored
@@ -1,52 +0,0 @@
|
||||
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; }
|
||||
|
||||
import React from 'react';
|
||||
|
||||
import classNames from 'classnames';
|
||||
import withStyles from '../styles/withStyles';
|
||||
|
||||
export const styles = theme => ({
|
||||
root: {
|
||||
zIndex: -1,
|
||||
width: '100%',
|
||||
height: '100%',
|
||||
position: 'fixed',
|
||||
top: 0,
|
||||
left: 0,
|
||||
// Remove grey highlight
|
||||
WebkitTapHighlightColor: theme.palette.common.transparent,
|
||||
backgroundColor: theme.palette.common.lightBlack,
|
||||
transition: theme.transitions.create('opacity'),
|
||||
willChange: 'opacity',
|
||||
opacity: 0
|
||||
},
|
||||
invisible: {
|
||||
backgroundColor: theme.palette.common.transparent
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* @ignore - internal component.
|
||||
*/
|
||||
function Backdrop(props) {
|
||||
const { children, classes, className, invisible } = props,
|
||||
other = _objectWithoutProperties(props, ['children', 'classes', 'className', 'invisible']);
|
||||
|
||||
const backdropClass = classNames(classes.root, {
|
||||
[classes.invisible]: invisible
|
||||
}, className);
|
||||
|
||||
return React.createElement(
|
||||
'div',
|
||||
_extends({ 'data-mui-test': 'Backdrop', className: backdropClass, 'aria-hidden': 'true' }, other),
|
||||
children
|
||||
);
|
||||
}
|
||||
|
||||
Backdrop.defaultProps = {
|
||||
invisible: false
|
||||
};
|
||||
|
||||
export default withStyles(styles, { name: 'MuiBackdrop' })(Backdrop);
|
32
goTorrentWebUI/node_modules/material-ui/es/internal/Modal.d.ts
generated
vendored
32
goTorrentWebUI/node_modules/material-ui/es/internal/Modal.d.ts
generated
vendored
@@ -1,32 +0,0 @@
|
||||
import * as React from 'react';
|
||||
import { StandardProps } from '..';
|
||||
import { BackdropProps } from './Backdrop';
|
||||
import { TransitionDuration, TransitionHandlers } from './transition';
|
||||
|
||||
export interface ModalProps extends StandardProps<
|
||||
React.HtmlHTMLAttributes<HTMLDivElement> & Partial<TransitionHandlers>,
|
||||
ModalClassKey
|
||||
> {
|
||||
BackdropClassName?: string;
|
||||
BackdropComponent?: string | React.ComponentType<BackdropProps>;
|
||||
BackdropInvisible?: boolean;
|
||||
BackdropTransitionDuration?: TransitionDuration;
|
||||
keepMounted?: boolean;
|
||||
disableBackdrop?: boolean;
|
||||
ignoreBackdropClick?: boolean;
|
||||
ignoreEscapeKeyUp?: boolean;
|
||||
modalManager?: Object;
|
||||
onBackdropClick?: React.ReactEventHandler<{}>;
|
||||
onEscapeKeyUp?: React.ReactEventHandler<{}>;
|
||||
onRequestClose?: React.ReactEventHandler<{}>;
|
||||
show?: boolean;
|
||||
}
|
||||
|
||||
export type ModalClassKey =
|
||||
| 'root'
|
||||
| 'hidden'
|
||||
;
|
||||
|
||||
declare const Modal: React.ComponentType<ModalProps>;
|
||||
|
||||
export default Modal;
|
332
goTorrentWebUI/node_modules/material-ui/es/internal/Modal.js
generated
vendored
332
goTorrentWebUI/node_modules/material-ui/es/internal/Modal.js
generated
vendored
@@ -1,332 +0,0 @@
|
||||
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; }
|
||||
|
||||
import React from 'react';
|
||||
|
||||
import ReactDOM from 'react-dom';
|
||||
import classNames from 'classnames';
|
||||
import warning from 'warning';
|
||||
import keycode from 'keycode';
|
||||
import canUseDom from 'dom-helpers/util/inDOM';
|
||||
import contains from 'dom-helpers/query/contains';
|
||||
import activeElement from 'dom-helpers/activeElement';
|
||||
import ownerDocument from 'dom-helpers/ownerDocument';
|
||||
import addEventListener from '../utils/addEventListener';
|
||||
import { createChainedFunction } from '../utils/helpers';
|
||||
import Fade from '../transitions/Fade';
|
||||
import withStyles from '../styles/withStyles';
|
||||
import createModalManager from './modalManager';
|
||||
import Backdrop from './Backdrop';
|
||||
import Portal from './Portal';
|
||||
|
||||
|
||||
// Modals don't open on the server so this won't break concurrency.
|
||||
// Could also put this on context.
|
||||
const modalManager = createModalManager();
|
||||
|
||||
export const styles = theme => ({
|
||||
root: {
|
||||
display: 'flex',
|
||||
width: '100%',
|
||||
height: '100%',
|
||||
position: 'fixed',
|
||||
zIndex: theme.zIndex.dialog,
|
||||
top: 0,
|
||||
left: 0
|
||||
},
|
||||
hidden: {
|
||||
visibility: 'hidden'
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* @ignore - internal component.
|
||||
*/
|
||||
class Modal extends React.Component {
|
||||
constructor(...args) {
|
||||
var _temp;
|
||||
|
||||
return _temp = super(...args), _initialiseProps.call(this), _temp;
|
||||
}
|
||||
|
||||
componentWillMount() {
|
||||
if (!this.props.show) {
|
||||
this.setState({ exited: true });
|
||||
}
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
this.mounted = true;
|
||||
if (this.props.show) {
|
||||
this.handleShow();
|
||||
}
|
||||
}
|
||||
|
||||
componentWillReceiveProps(nextProps) {
|
||||
if (nextProps.show && this.state.exited) {
|
||||
this.setState({ exited: false });
|
||||
}
|
||||
}
|
||||
|
||||
componentWillUpdate(nextProps) {
|
||||
if (!this.props.show && nextProps.show) {
|
||||
this.checkForFocus();
|
||||
}
|
||||
}
|
||||
|
||||
componentDidUpdate(prevProps) {
|
||||
if (!prevProps.show && this.props.show) {
|
||||
this.handleShow();
|
||||
}
|
||||
// We are waiting for the onExited callback to call handleHide.
|
||||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
if (this.props.show || !this.state.exited) {
|
||||
this.handleHide();
|
||||
}
|
||||
this.mounted = false;
|
||||
}
|
||||
|
||||
checkForFocus() {
|
||||
if (canUseDom) {
|
||||
this.lastFocus = activeElement();
|
||||
}
|
||||
}
|
||||
|
||||
restoreLastFocus() {
|
||||
if (this.lastFocus && this.lastFocus.focus) {
|
||||
this.lastFocus.focus();
|
||||
this.lastFocus = undefined;
|
||||
}
|
||||
}
|
||||
|
||||
handleShow() {
|
||||
const doc = ownerDocument(ReactDOM.findDOMNode(this));
|
||||
this.props.modalManager.add(this);
|
||||
this.onDocumentKeyUpListener = addEventListener(doc, 'keyup', this.handleDocumentKeyUp);
|
||||
this.onFocusListener = addEventListener(doc, 'focus', this.handleFocusListener, true);
|
||||
this.focus();
|
||||
}
|
||||
|
||||
focus() {
|
||||
const currentFocus = activeElement(ownerDocument(ReactDOM.findDOMNode(this)));
|
||||
const modalContent = this.modal && this.modal.lastChild;
|
||||
const focusInModal = currentFocus && contains(modalContent, currentFocus);
|
||||
|
||||
if (modalContent && !focusInModal) {
|
||||
if (!modalContent.hasAttribute('tabIndex')) {
|
||||
modalContent.setAttribute('tabIndex', -1);
|
||||
warning(false, 'Material-UI: the modal content node does not accept focus. ' + 'For the benefit of assistive technologies, ' + 'the tabIndex of the node is being set to "-1".');
|
||||
}
|
||||
|
||||
modalContent.focus();
|
||||
}
|
||||
}
|
||||
|
||||
handleHide() {
|
||||
this.props.modalManager.remove(this);
|
||||
if (this.onDocumentKeyUpListener) this.onDocumentKeyUpListener.remove();
|
||||
if (this.onFocusListener) this.onFocusListener.remove();
|
||||
this.restoreLastFocus();
|
||||
}
|
||||
|
||||
renderBackdrop(other = {}) {
|
||||
const {
|
||||
BackdropComponent,
|
||||
BackdropClassName,
|
||||
BackdropTransitionDuration,
|
||||
BackdropInvisible,
|
||||
show
|
||||
} = this.props;
|
||||
|
||||
return React.createElement(
|
||||
Fade,
|
||||
_extends({ appear: true, 'in': show, timeout: BackdropTransitionDuration }, other),
|
||||
React.createElement(BackdropComponent, {
|
||||
invisible: BackdropInvisible,
|
||||
className: BackdropClassName,
|
||||
onClick: this.handleBackdropClick
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
render() {
|
||||
const _props = this.props,
|
||||
{
|
||||
disableBackdrop,
|
||||
BackdropComponent,
|
||||
BackdropClassName,
|
||||
BackdropTransitionDuration,
|
||||
BackdropInvisible,
|
||||
ignoreBackdropClick,
|
||||
ignoreEscapeKeyUp,
|
||||
children,
|
||||
classes,
|
||||
className,
|
||||
keepMounted,
|
||||
modalManager: modalManagerProp,
|
||||
onBackdropClick,
|
||||
onEscapeKeyUp,
|
||||
onRequestClose,
|
||||
onEnter,
|
||||
onEntering,
|
||||
onEntered,
|
||||
onExit,
|
||||
onExiting,
|
||||
onExited,
|
||||
show
|
||||
} = _props,
|
||||
other = _objectWithoutProperties(_props, ['disableBackdrop', 'BackdropComponent', 'BackdropClassName', 'BackdropTransitionDuration', 'BackdropInvisible', 'ignoreBackdropClick', 'ignoreEscapeKeyUp', 'children', 'classes', 'className', 'keepMounted', 'modalManager', 'onBackdropClick', 'onEscapeKeyUp', 'onRequestClose', 'onEnter', 'onEntering', 'onEntered', 'onExit', 'onExiting', 'onExited', 'show']);
|
||||
|
||||
if (!keepMounted && !show && this.state.exited) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const transitionCallbacks = {
|
||||
onEnter,
|
||||
onEntering,
|
||||
onEntered,
|
||||
onExit,
|
||||
onExiting,
|
||||
onExited: this.handleTransitionExited
|
||||
};
|
||||
|
||||
let modalChild = React.Children.only(children);
|
||||
const { role, tabIndex } = modalChild.props;
|
||||
const childProps = {};
|
||||
|
||||
if (role === undefined) {
|
||||
childProps.role = role === undefined ? 'document' : role;
|
||||
}
|
||||
|
||||
if (tabIndex === undefined) {
|
||||
childProps.tabIndex = tabIndex == null ? -1 : tabIndex;
|
||||
}
|
||||
|
||||
let backdropProps;
|
||||
|
||||
// It's a Transition like component
|
||||
if (modalChild.props.hasOwnProperty('in')) {
|
||||
Object.keys(transitionCallbacks).forEach(key => {
|
||||
childProps[key] = createChainedFunction(transitionCallbacks[key], modalChild.props[key]);
|
||||
});
|
||||
} else {
|
||||
backdropProps = transitionCallbacks;
|
||||
}
|
||||
|
||||
if (Object.keys(childProps).length) {
|
||||
modalChild = React.cloneElement(modalChild, childProps);
|
||||
}
|
||||
|
||||
return React.createElement(
|
||||
Portal,
|
||||
{
|
||||
open: true,
|
||||
ref: node => {
|
||||
this.mountNode = node ? node.getLayer() : null;
|
||||
}
|
||||
},
|
||||
React.createElement(
|
||||
'div',
|
||||
_extends({
|
||||
'data-mui-test': 'Modal',
|
||||
className: classNames(classes.root, className, {
|
||||
[classes.hidden]: this.state.exited
|
||||
})
|
||||
}, other, {
|
||||
ref: node => {
|
||||
this.modal = node;
|
||||
}
|
||||
}),
|
||||
!disableBackdrop && (!keepMounted || show || !this.state.exited) && this.renderBackdrop(backdropProps),
|
||||
modalChild
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Modal.defaultProps = {
|
||||
BackdropComponent: Backdrop,
|
||||
BackdropTransitionDuration: 300,
|
||||
BackdropInvisible: false,
|
||||
keepMounted: false,
|
||||
disableBackdrop: false,
|
||||
ignoreBackdropClick: false,
|
||||
ignoreEscapeKeyUp: false,
|
||||
modalManager,
|
||||
show: false
|
||||
};
|
||||
|
||||
var _initialiseProps = function () {
|
||||
this.state = {
|
||||
exited: false
|
||||
};
|
||||
this.onDocumentKeyUpListener = null;
|
||||
this.onFocusListener = null;
|
||||
this.mounted = false;
|
||||
this.lastFocus = undefined;
|
||||
this.modal = null;
|
||||
this.mountNode = null;
|
||||
|
||||
this.handleFocusListener = () => {
|
||||
if (!this.mounted || !this.props.modalManager.isTopModal(this)) {
|
||||
return;
|
||||
}
|
||||
|
||||
const currentFocus = activeElement(ownerDocument(ReactDOM.findDOMNode(this)));
|
||||
const modalContent = this.modal && this.modal.lastChild;
|
||||
|
||||
if (modalContent && modalContent !== currentFocus && !contains(modalContent, currentFocus)) {
|
||||
modalContent.focus();
|
||||
}
|
||||
};
|
||||
|
||||
this.handleDocumentKeyUp = event => {
|
||||
if (!this.mounted || !this.props.modalManager.isTopModal(this)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (keycode(event) !== 'esc') {
|
||||
return;
|
||||
}
|
||||
|
||||
const { onEscapeKeyUp, onRequestClose, ignoreEscapeKeyUp } = this.props;
|
||||
|
||||
if (onEscapeKeyUp) {
|
||||
onEscapeKeyUp(event);
|
||||
}
|
||||
|
||||
if (onRequestClose && !ignoreEscapeKeyUp) {
|
||||
onRequestClose(event);
|
||||
}
|
||||
};
|
||||
|
||||
this.handleBackdropClick = event => {
|
||||
if (event.target !== event.currentTarget) {
|
||||
return;
|
||||
}
|
||||
|
||||
const { onBackdropClick, onRequestClose, ignoreBackdropClick } = this.props;
|
||||
|
||||
if (onBackdropClick) {
|
||||
onBackdropClick(event);
|
||||
}
|
||||
|
||||
if (onRequestClose && !ignoreBackdropClick) {
|
||||
onRequestClose(event);
|
||||
}
|
||||
};
|
||||
|
||||
this.handleTransitionExited = (...args) => {
|
||||
if (this.props.onExited) {
|
||||
this.props.onExited(...args);
|
||||
}
|
||||
|
||||
this.setState({ exited: true });
|
||||
this.handleHide();
|
||||
};
|
||||
};
|
||||
|
||||
export default withStyles(styles, { flip: false, name: 'MuiModal' })(Modal);
|
7
goTorrentWebUI/node_modules/material-ui/es/internal/Portal.d.ts
generated
vendored
7
goTorrentWebUI/node_modules/material-ui/es/internal/Portal.d.ts
generated
vendored
@@ -1,7 +0,0 @@
|
||||
import * as React from 'react';
|
||||
|
||||
export interface PortalProps {
|
||||
open?: boolean;
|
||||
}
|
||||
|
||||
export default class Portal extends React.Component<PortalProps> {}
|
101
goTorrentWebUI/node_modules/material-ui/es/internal/Portal.js
generated
vendored
101
goTorrentWebUI/node_modules/material-ui/es/internal/Portal.js
generated
vendored
@@ -1,101 +0,0 @@
|
||||
import React from 'react';
|
||||
|
||||
import ReactDOM from 'react-dom';
|
||||
import canUseDom from 'dom-helpers/util/inDOM';
|
||||
|
||||
/**
|
||||
* @ignore - internal component.
|
||||
*/
|
||||
class Portal extends React.Component {
|
||||
constructor(...args) {
|
||||
var _temp;
|
||||
|
||||
return _temp = super(...args), this.layer = null, _temp;
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
// Support react@15.x, will be removed at some point
|
||||
if (!ReactDOM.createPortal) {
|
||||
this.renderLayer();
|
||||
}
|
||||
}
|
||||
|
||||
componentDidUpdate() {
|
||||
// Support react@15.x, will be removed at some point
|
||||
if (!ReactDOM.createPortal) {
|
||||
this.renderLayer();
|
||||
}
|
||||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
this.unrenderLayer();
|
||||
}
|
||||
|
||||
getLayer() {
|
||||
if (!this.layer) {
|
||||
this.layer = document.createElement('div');
|
||||
this.layer.setAttribute('data-mui-portal', 'true');
|
||||
if (document.body && this.layer) {
|
||||
document.body.appendChild(this.layer);
|
||||
}
|
||||
}
|
||||
|
||||
return this.layer;
|
||||
}
|
||||
|
||||
unrenderLayer() {
|
||||
if (!this.layer) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Support react@15.x, will be removed at some point
|
||||
if (!ReactDOM.createPortal) {
|
||||
ReactDOM.unmountComponentAtNode(this.layer);
|
||||
}
|
||||
|
||||
if (document.body) {
|
||||
document.body.removeChild(this.layer);
|
||||
}
|
||||
this.layer = null;
|
||||
}
|
||||
|
||||
renderLayer() {
|
||||
const { children, open } = this.props;
|
||||
|
||||
if (open) {
|
||||
// By calling this method in componentDidMount() and
|
||||
// componentDidUpdate(), you're effectively creating a "wormhole" that
|
||||
// funnels React's hierarchical updates through to a DOM node on an
|
||||
// entirely different part of the page.
|
||||
const layerElement = React.Children.only(children);
|
||||
ReactDOM.unstable_renderSubtreeIntoContainer(this, layerElement, this.getLayer());
|
||||
} else {
|
||||
this.unrenderLayer();
|
||||
}
|
||||
}
|
||||
|
||||
render() {
|
||||
const { children, open } = this.props;
|
||||
|
||||
// Support react@15.x, will be removed at some point
|
||||
if (!ReactDOM.createPortal) {
|
||||
return null;
|
||||
}
|
||||
|
||||
// Can't be rendered server-side.
|
||||
if (canUseDom) {
|
||||
if (open) {
|
||||
return ReactDOM.createPortal(children, this.getLayer());
|
||||
}
|
||||
|
||||
this.unrenderLayer();
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Portal.defaultProps = {
|
||||
open: false
|
||||
};
|
||||
export default Portal;
|
20
goTorrentWebUI/node_modules/material-ui/es/internal/RefHolder.js
generated
vendored
Normal file
20
goTorrentWebUI/node_modules/material-ui/es/internal/RefHolder.js
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
|
||||
/**
|
||||
* @ignore - internal component.
|
||||
*
|
||||
* Internal helper component to allow attaching a ref to a
|
||||
* child element that may not accept refs (functional component).
|
||||
*/
|
||||
class RefHolder extends React.Component {
|
||||
render() {
|
||||
return this.props.children;
|
||||
}
|
||||
}
|
||||
|
||||
RefHolder.propTypes = process.env.NODE_ENV !== "production" ? {
|
||||
children: PropTypes.node
|
||||
} : {};
|
||||
|
||||
export default RefHolder;
|
25
goTorrentWebUI/node_modules/material-ui/es/internal/SwitchBase.d.ts
generated
vendored
25
goTorrentWebUI/node_modules/material-ui/es/internal/SwitchBase.d.ts
generated
vendored
@@ -2,11 +2,8 @@ import * as React from 'react';
|
||||
import { StandardProps } from '..';
|
||||
import { IconButtonProps } from '../IconButton';
|
||||
|
||||
export interface SwitchBaseProps extends StandardProps<
|
||||
IconButtonProps,
|
||||
SwitchBaseClassKey,
|
||||
'onChange'
|
||||
> {
|
||||
export interface SwitchBaseProps
|
||||
extends StandardProps<IconButtonProps, SwitchBaseClassKey, 'onChange'> {
|
||||
checked?: boolean | string;
|
||||
checkedClassName?: string;
|
||||
checkedIcon?: React.ReactNode;
|
||||
@@ -20,27 +17,19 @@ export interface SwitchBaseProps extends StandardProps<
|
||||
inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
|
||||
inputRef?: React.Ref<any>;
|
||||
name?: string;
|
||||
onChange?: (event: React.ChangeEvent<{}>, checked: boolean) => void;
|
||||
onChange?: (event: React.ChangeEvent<HTMLInputElement>, checked: boolean) => void;
|
||||
tabIndex?: number;
|
||||
value?: string;
|
||||
}
|
||||
|
||||
export type SwitchBaseClassKey =
|
||||
| 'root'
|
||||
| 'default'
|
||||
| 'checked'
|
||||
| 'disabled'
|
||||
| 'input'
|
||||
;
|
||||
export type SwitchBaseClassKey = 'root' | 'default' | 'checked' | 'disabled' | 'input';
|
||||
|
||||
export type SwitchBase = React.Component<SwitchBaseProps>
|
||||
export type SwitchBase = React.Component<SwitchBaseProps>;
|
||||
|
||||
export interface CreateSwitchBaseOptions {
|
||||
defaultIcon?: React.ReactNode;
|
||||
defaultCheckedIcon?: React.ReactNode;
|
||||
inputType?: string;
|
||||
type?: string;
|
||||
}
|
||||
|
||||
export default function createSwitch(
|
||||
options: CreateSwitchBaseOptions
|
||||
): SwitchBase;
|
||||
export default function createSwitch(options: CreateSwitchBaseOptions): SwitchBase;
|
||||
|
316
goTorrentWebUI/node_modules/material-ui/es/internal/SwitchBase.js
generated
vendored
316
goTorrentWebUI/node_modules/material-ui/es/internal/SwitchBase.js
generated
vendored
@@ -1,16 +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; }
|
||||
|
||||
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 CheckBoxOutlineBlankIcon from '../internal/svg-icons/CheckBoxOutlineBlank';
|
||||
import CheckBoxIcon from '../internal/svg-icons/CheckBox';
|
||||
import withStyles from '../styles/withStyles';
|
||||
import IconButton from '../IconButton';
|
||||
import CheckBoxOutlineBlankIcon from '../svg-icons/CheckBoxOutlineBlank';
|
||||
import CheckBoxIcon from '../svg-icons/CheckBox';
|
||||
import Icon from '../Icon';
|
||||
|
||||
export const styles = {
|
||||
root: {
|
||||
@@ -34,135 +30,193 @@ export const styles = {
|
||||
disabled: {}
|
||||
};
|
||||
|
||||
// NB: If changed, please update Checkbox, Switch and Radio
|
||||
// so that the API documentation is updated.
|
||||
/**
|
||||
* @ignore - internal component.
|
||||
*/
|
||||
class SwitchBase extends React.Component {
|
||||
constructor(...args) {
|
||||
var _temp;
|
||||
|
||||
|
||||
export default function createSwitch({
|
||||
defaultIcon = React.createElement(CheckBoxOutlineBlankIcon, null),
|
||||
defaultCheckedIcon = React.createElement(CheckBoxIcon, null),
|
||||
inputType = 'checkbox'
|
||||
} = {}) {
|
||||
/**
|
||||
* @ignore - internal component.
|
||||
*/
|
||||
class SwitchBase extends React.Component {
|
||||
constructor(...args) {
|
||||
var _temp;
|
||||
|
||||
return _temp = super(...args), this.state = {}, this.input = null, this.button = null, this.isControlled = null, this.handleInputChange = event => {
|
||||
const checked = event.target.checked;
|
||||
|
||||
if (!this.isControlled) {
|
||||
this.setState({ checked });
|
||||
}
|
||||
|
||||
if (this.props.onChange) {
|
||||
this.props.onChange(event, checked);
|
||||
}
|
||||
}, _temp;
|
||||
}
|
||||
|
||||
componentWillMount() {
|
||||
const { props } = this;
|
||||
|
||||
this.isControlled = props.checked !== undefined;
|
||||
return _temp = super(...args), this.state = {}, this.input = null, this.isControlled = null, this.handleInputChange = event => {
|
||||
const checked = event.target.checked;
|
||||
|
||||
if (!this.isControlled) {
|
||||
// not controlled, use internal state
|
||||
this.setState({
|
||||
checked: props.defaultChecked !== undefined ? props.defaultChecked : false
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
render() {
|
||||
const _props = this.props,
|
||||
{
|
||||
checked: checkedProp,
|
||||
classes,
|
||||
className: classNameProp,
|
||||
checkedClassName,
|
||||
checkedIcon,
|
||||
disabled: disabledProp,
|
||||
disabledClassName,
|
||||
icon: iconProp,
|
||||
inputProps,
|
||||
inputRef,
|
||||
name,
|
||||
onChange,
|
||||
tabIndex,
|
||||
value
|
||||
} = _props,
|
||||
other = _objectWithoutProperties(_props, ['checked', 'classes', 'className', 'checkedClassName', 'checkedIcon', 'disabled', 'disabledClassName', 'icon', 'inputProps', 'inputRef', 'name', 'onChange', 'tabIndex', 'value']);
|
||||
|
||||
const { muiFormControl } = this.context;
|
||||
let disabled = disabledProp;
|
||||
|
||||
if (muiFormControl) {
|
||||
if (typeof disabled === 'undefined') {
|
||||
disabled = muiFormControl.disabled;
|
||||
}
|
||||
this.setState({ checked });
|
||||
}
|
||||
|
||||
const checked = this.isControlled ? checkedProp : this.state.checked;
|
||||
const className = classNames(classes.root, classes.default, classNameProp, {
|
||||
[classNames(classes.checked, checkedClassName)]: checked,
|
||||
[classNames(classes.disabled, disabledClassName)]: disabled
|
||||
if (this.props.onChange) {
|
||||
this.props.onChange(event, checked);
|
||||
}
|
||||
}, _temp;
|
||||
}
|
||||
|
||||
componentWillMount() {
|
||||
const { props } = this;
|
||||
|
||||
this.isControlled = props.checked != null;
|
||||
|
||||
if (!this.isControlled) {
|
||||
// not controlled, use internal state
|
||||
this.setState({
|
||||
checked: props.defaultChecked !== undefined ? props.defaultChecked : false
|
||||
});
|
||||
|
||||
let icon = checked ? checkedIcon : iconProp;
|
||||
|
||||
if (typeof icon === 'string') {
|
||||
icon = React.createElement(
|
||||
Icon,
|
||||
null,
|
||||
icon
|
||||
);
|
||||
}
|
||||
|
||||
return React.createElement(
|
||||
IconButton,
|
||||
_extends({
|
||||
'data-mui-test': 'SwitchBase',
|
||||
component: 'span',
|
||||
className: className,
|
||||
disabled: disabled,
|
||||
tabIndex: null,
|
||||
role: undefined,
|
||||
rootRef: node => {
|
||||
this.button = node;
|
||||
}
|
||||
}, other),
|
||||
icon,
|
||||
React.createElement('input', _extends({
|
||||
type: inputType,
|
||||
name: name,
|
||||
checked: this.isControlled ? checkedProp : undefined,
|
||||
onChange: this.handleInputChange,
|
||||
className: classes.input,
|
||||
disabled: disabled,
|
||||
tabIndex: tabIndex,
|
||||
value: value
|
||||
}, inputProps, {
|
||||
ref: node => {
|
||||
this.input = node;
|
||||
if (inputRef) {
|
||||
inputRef(node);
|
||||
}
|
||||
}
|
||||
}))
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
SwitchBase.defaultProps = {
|
||||
checkedIcon: defaultCheckedIcon,
|
||||
disableRipple: false,
|
||||
icon: defaultIcon
|
||||
};
|
||||
SwitchBase.contextTypes = {
|
||||
muiFormControl: PropTypes.object
|
||||
};
|
||||
return withStyles(styles, { name: 'MuiSwitchBase' })(SwitchBase);
|
||||
}
|
||||
render() {
|
||||
const _props = this.props,
|
||||
{
|
||||
checked: checkedProp,
|
||||
checkedIcon,
|
||||
classes,
|
||||
className: classNameProp,
|
||||
disabled: disabledProp,
|
||||
icon: iconProp,
|
||||
id,
|
||||
inputProps,
|
||||
inputRef,
|
||||
name,
|
||||
onChange,
|
||||
tabIndex,
|
||||
type,
|
||||
value
|
||||
} = _props,
|
||||
other = _objectWithoutProperties(_props, ['checked', 'checkedIcon', 'classes', 'className', 'disabled', 'icon', 'id', 'inputProps', 'inputRef', 'name', 'onChange', 'tabIndex', 'type', 'value']);
|
||||
|
||||
const { muiFormControl } = this.context;
|
||||
let disabled = disabledProp;
|
||||
|
||||
if (muiFormControl) {
|
||||
if (typeof disabled === 'undefined') {
|
||||
disabled = muiFormControl.disabled;
|
||||
}
|
||||
}
|
||||
|
||||
const checked = this.isControlled ? checkedProp : this.state.checked;
|
||||
const className = classNames(classes.root, classes.default, classNameProp, {
|
||||
[classes.checked]: checked,
|
||||
[classes.disabled]: disabled
|
||||
});
|
||||
|
||||
const icon = checked ? checkedIcon : iconProp;
|
||||
|
||||
const hasLabelFor = type === 'checkbox' || type === 'radio';
|
||||
|
||||
return React.createElement(
|
||||
IconButton,
|
||||
_extends({
|
||||
component: 'span',
|
||||
className: className,
|
||||
disabled: disabled,
|
||||
tabIndex: null,
|
||||
role: undefined
|
||||
}, other),
|
||||
icon,
|
||||
React.createElement('input', _extends({
|
||||
id: hasLabelFor && id,
|
||||
type: type,
|
||||
name: name,
|
||||
checked: checked,
|
||||
onChange: this.handleInputChange,
|
||||
className: classes.input,
|
||||
disabled: disabled,
|
||||
tabIndex: tabIndex,
|
||||
value: value,
|
||||
ref: inputRef
|
||||
}, inputProps))
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
// NB: If changed, please update Checkbox, Switch and Radio
|
||||
// so that the API documentation is updated.
|
||||
SwitchBase.propTypes = process.env.NODE_ENV !== "production" ? {
|
||||
/**
|
||||
* If `true`, the component is checked.
|
||||
*/
|
||||
checked: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
|
||||
/**
|
||||
* The icon to display when the component is checked.
|
||||
*/
|
||||
checkedIcon: PropTypes.node,
|
||||
/**
|
||||
* Useful to extend the style applied to components.
|
||||
*/
|
||||
classes: PropTypes.object.isRequired,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: PropTypes.string,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
defaultChecked: PropTypes.bool,
|
||||
/**
|
||||
* If `true`, the switch will be disabled.
|
||||
*/
|
||||
disabled: PropTypes.bool,
|
||||
/**
|
||||
* If `true`, the ripple effect will be disabled.
|
||||
*/
|
||||
disableRipple: PropTypes.bool,
|
||||
/**
|
||||
* The icon to display when the component is unchecked.
|
||||
*/
|
||||
icon: PropTypes.node,
|
||||
/**
|
||||
* The id of the `input` element.
|
||||
*/
|
||||
id: PropTypes.string,
|
||||
/**
|
||||
* If `true`, the component appears indeterminate.
|
||||
*/
|
||||
indeterminate: PropTypes.bool,
|
||||
/**
|
||||
* The icon to display when the component is indeterminate.
|
||||
*/
|
||||
indeterminateIcon: PropTypes.node,
|
||||
/**
|
||||
* Properties applied to the `input` element.
|
||||
*/
|
||||
inputProps: PropTypes.object,
|
||||
/**
|
||||
* Use that property to pass a ref callback to the native input component.
|
||||
*/
|
||||
inputRef: PropTypes.func,
|
||||
/*
|
||||
* @ignore
|
||||
*/
|
||||
name: PropTypes.string,
|
||||
/**
|
||||
* Callback fired when the state is changed.
|
||||
*
|
||||
* @param {object} event The event source of the callback
|
||||
* @param {boolean} checked The `checked` value of the switch
|
||||
*/
|
||||
onChange: PropTypes.func,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
tabIndex: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
||||
/**
|
||||
* The input component property `type`.
|
||||
*/
|
||||
type: PropTypes.string,
|
||||
/**
|
||||
* The value of the component.
|
||||
*/
|
||||
value: PropTypes.string
|
||||
} : {};
|
||||
|
||||
SwitchBase.defaultProps = {
|
||||
checkedIcon: React.createElement(CheckBoxIcon, null),
|
||||
disableRipple: false,
|
||||
icon: React.createElement(CheckBoxOutlineBlankIcon, null),
|
||||
type: 'checkbox'
|
||||
};
|
||||
|
||||
SwitchBase.contextTypes = {
|
||||
muiFormControl: PropTypes.object
|
||||
};
|
||||
|
||||
export default withStyles(styles, { name: 'MuiSwitchBase' })(SwitchBase);
|
0
goTorrentWebUI/node_modules/material-ui/es/internal/dom.js
generated
vendored
0
goTorrentWebUI/node_modules/material-ui/es/internal/dom.js
generated
vendored
127
goTorrentWebUI/node_modules/material-ui/es/internal/modalManager.js
generated
vendored
127
goTorrentWebUI/node_modules/material-ui/es/internal/modalManager.js
generated
vendored
@@ -1,127 +0,0 @@
|
||||
|
||||
// Taken from https://github.com/react-bootstrap/react-overlays/blob/master/src/ModalManager.js
|
||||
|
||||
import warning from 'warning';
|
||||
import isWindow from 'dom-helpers/query/isWindow';
|
||||
import ownerDocument from 'dom-helpers/ownerDocument';
|
||||
import canUseDom from 'dom-helpers/util/inDOM';
|
||||
import getScrollbarSize from 'dom-helpers/util/scrollbarSize';
|
||||
import { hideSiblings, showSiblings, ariaHidden } from '../utils/manageAriaHidden';
|
||||
|
||||
function getPaddingRight(node) {
|
||||
return parseInt(node.style.paddingRight || 0, 10);
|
||||
}
|
||||
|
||||
// Do we have a scroll bar?
|
||||
function bodyIsOverflowing(node) {
|
||||
const doc = ownerDocument(node);
|
||||
const win = isWindow(doc);
|
||||
|
||||
// Takes in account potential non zero margin on the body.
|
||||
const style = window.getComputedStyle(doc.body);
|
||||
const marginLeft = parseInt(style.getPropertyValue('margin-left'), 10);
|
||||
const marginRight = parseInt(style.getPropertyValue('margin-right'), 10);
|
||||
|
||||
return marginLeft + doc.body.clientWidth + marginRight < win.innerWidth;
|
||||
}
|
||||
|
||||
// The container shouldn't be used on the server.
|
||||
const defaultContainer = canUseDom ? window.document.body : {};
|
||||
|
||||
/**
|
||||
* State management helper for modals/layers.
|
||||
* Simplified, but inspired by react-overlay's ModalManager class
|
||||
*
|
||||
* @internal Used by the Modal to ensure proper focus management.
|
||||
*/
|
||||
function createModalManager({ container = defaultContainer, hideSiblingNodes = true } = {}) {
|
||||
warning(container !== null, `
|
||||
Material-UI: you are most likely evaluating the code before the
|
||||
browser has a chance to reach the <body>.
|
||||
Please move the import at the end of the <body>.
|
||||
`);
|
||||
|
||||
const modals = [];
|
||||
|
||||
let prevOverflow;
|
||||
let prevPaddings = [];
|
||||
|
||||
function add(modal) {
|
||||
let modalIdx = modals.indexOf(modal);
|
||||
|
||||
if (modalIdx !== -1) {
|
||||
return modalIdx;
|
||||
}
|
||||
|
||||
modalIdx = modals.length;
|
||||
modals.push(modal);
|
||||
|
||||
if (hideSiblingNodes) {
|
||||
hideSiblings(container, modal.mountNode);
|
||||
}
|
||||
|
||||
if (modals.length === 1) {
|
||||
// Save our current overflow so we can revert
|
||||
// back to it when all modals are closed!
|
||||
prevOverflow = container.style.overflow;
|
||||
|
||||
if (bodyIsOverflowing(container)) {
|
||||
prevPaddings = [getPaddingRight(container)];
|
||||
const scrollbarSize = getScrollbarSize();
|
||||
container.style.paddingRight = `${prevPaddings[0] + scrollbarSize}px`;
|
||||
|
||||
const fixedNodes = document.querySelectorAll('.mui-fixed');
|
||||
for (let i = 0; i < fixedNodes.length; i += 1) {
|
||||
const paddingRight = getPaddingRight(fixedNodes[i]);
|
||||
prevPaddings.push(paddingRight);
|
||||
fixedNodes[i].style.paddingRight = `${paddingRight + scrollbarSize}px`;
|
||||
}
|
||||
}
|
||||
|
||||
container.style.overflow = 'hidden';
|
||||
}
|
||||
|
||||
return modalIdx;
|
||||
}
|
||||
|
||||
function remove(modal) {
|
||||
const modalIdx = modals.indexOf(modal);
|
||||
|
||||
if (modalIdx === -1) {
|
||||
return modalIdx;
|
||||
}
|
||||
|
||||
modals.splice(modalIdx, 1);
|
||||
|
||||
if (modals.length === 0) {
|
||||
container.style.overflow = prevOverflow;
|
||||
container.style.paddingRight = prevPaddings[0];
|
||||
|
||||
const fixedNodes = document.querySelectorAll('.mui-fixed');
|
||||
for (let i = 0; i < fixedNodes.length; i += 1) {
|
||||
fixedNodes[i].style.paddingRight = `${prevPaddings[i + 1]}px`;
|
||||
}
|
||||
|
||||
prevOverflow = undefined;
|
||||
prevPaddings = [];
|
||||
if (hideSiblingNodes) {
|
||||
showSiblings(container, modal.mountNode);
|
||||
}
|
||||
} else if (hideSiblingNodes) {
|
||||
// otherwise make sure the next top modal is visible to a SR
|
||||
ariaHidden(false, modals[modals.length - 1].mountNode);
|
||||
}
|
||||
|
||||
return modalIdx;
|
||||
}
|
||||
|
||||
function isTopModal(modal) {
|
||||
return !!modals.length && modals[modals.length - 1] === modal;
|
||||
}
|
||||
|
||||
const modalManager = { add, remove, isTopModal };
|
||||
|
||||
return modalManager;
|
||||
}
|
||||
|
||||
export default createModalManager;
|
20
goTorrentWebUI/node_modules/material-ui/es/internal/svg-icons/ArrowDownward.js
generated
vendored
Normal file
20
goTorrentWebUI/node_modules/material-ui/es/internal/svg-icons/ArrowDownward.js
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
import React from 'react';
|
||||
import pure from 'recompose/pure';
|
||||
import SvgIcon from '../../SvgIcon';
|
||||
|
||||
/**
|
||||
* @ignore - internal component.
|
||||
*/
|
||||
|
||||
var _ref = React.createElement('path', { d: 'M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z' });
|
||||
|
||||
let ArrowDownward = props => React.createElement(
|
||||
SvgIcon,
|
||||
props,
|
||||
_ref
|
||||
);
|
||||
|
||||
ArrowDownward = pure(ArrowDownward);
|
||||
ArrowDownward.muiName = 'SvgIcon';
|
||||
|
||||
export default ArrowDownward;
|
20
goTorrentWebUI/node_modules/material-ui/es/internal/svg-icons/ArrowDropDown.js
generated
vendored
Normal file
20
goTorrentWebUI/node_modules/material-ui/es/internal/svg-icons/ArrowDropDown.js
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
import React from 'react';
|
||||
import pure from 'recompose/pure';
|
||||
import SvgIcon from '../../SvgIcon';
|
||||
|
||||
/**
|
||||
* @ignore - internal component.
|
||||
*/
|
||||
|
||||
var _ref = React.createElement('path', { d: 'M7 10l5 5 5-5z' });
|
||||
|
||||
let ArrowDropDown = props => React.createElement(
|
||||
SvgIcon,
|
||||
props,
|
||||
_ref
|
||||
);
|
||||
|
||||
ArrowDropDown = pure(ArrowDropDown);
|
||||
ArrowDropDown.muiName = 'SvgIcon';
|
||||
|
||||
export default ArrowDropDown;
|
19
goTorrentWebUI/node_modules/material-ui/es/internal/svg-icons/Cancel.js
generated
vendored
Normal file
19
goTorrentWebUI/node_modules/material-ui/es/internal/svg-icons/Cancel.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
import React from 'react';
|
||||
import pure from 'recompose/pure';
|
||||
import SvgIcon from '../../SvgIcon';
|
||||
|
||||
/**
|
||||
* @ignore - internal component.
|
||||
*/
|
||||
|
||||
var _ref = React.createElement('path', { d: 'M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z' });
|
||||
|
||||
let Cancel = props => React.createElement(
|
||||
SvgIcon,
|
||||
props,
|
||||
_ref
|
||||
);
|
||||
Cancel = pure(Cancel);
|
||||
Cancel.muiName = 'SvgIcon';
|
||||
|
||||
export default Cancel;
|
19
goTorrentWebUI/node_modules/material-ui/es/internal/svg-icons/CheckBox.js
generated
vendored
Normal file
19
goTorrentWebUI/node_modules/material-ui/es/internal/svg-icons/CheckBox.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
import React from 'react';
|
||||
import pure from 'recompose/pure';
|
||||
import SvgIcon from '../../SvgIcon';
|
||||
|
||||
/**
|
||||
* @ignore - internal component.
|
||||
*/
|
||||
|
||||
var _ref = React.createElement('path', { d: 'M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z' });
|
||||
|
||||
let CheckBox = props => React.createElement(
|
||||
SvgIcon,
|
||||
props,
|
||||
_ref
|
||||
);
|
||||
CheckBox = pure(CheckBox);
|
||||
CheckBox.muiName = 'SvgIcon';
|
||||
|
||||
export default CheckBox;
|
19
goTorrentWebUI/node_modules/material-ui/es/internal/svg-icons/CheckBoxOutlineBlank.js
generated
vendored
Normal file
19
goTorrentWebUI/node_modules/material-ui/es/internal/svg-icons/CheckBoxOutlineBlank.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
import React from 'react';
|
||||
import pure from 'recompose/pure';
|
||||
import SvgIcon from '../../SvgIcon';
|
||||
|
||||
/**
|
||||
* @ignore - internal component.
|
||||
*/
|
||||
|
||||
var _ref = React.createElement('path', { d: 'M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z' });
|
||||
|
||||
let CheckBoxOutlineBlank = props => React.createElement(
|
||||
SvgIcon,
|
||||
props,
|
||||
_ref
|
||||
);
|
||||
CheckBoxOutlineBlank = pure(CheckBoxOutlineBlank);
|
||||
CheckBoxOutlineBlank.muiName = 'SvgIcon';
|
||||
|
||||
export default CheckBoxOutlineBlank;
|
19
goTorrentWebUI/node_modules/material-ui/es/internal/svg-icons/CheckCircle.js
generated
vendored
Normal file
19
goTorrentWebUI/node_modules/material-ui/es/internal/svg-icons/CheckCircle.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
import React from 'react';
|
||||
import pure from 'recompose/pure';
|
||||
import SvgIcon from '../../SvgIcon';
|
||||
|
||||
/**
|
||||
* @ignore - internal component.
|
||||
*/
|
||||
|
||||
var _ref = React.createElement('path', { d: 'M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z' });
|
||||
|
||||
let CheckCircle = props => React.createElement(
|
||||
SvgIcon,
|
||||
props,
|
||||
_ref
|
||||
);
|
||||
CheckCircle = pure(CheckCircle);
|
||||
CheckCircle.muiName = 'SvgIcon';
|
||||
|
||||
export default CheckCircle;
|
19
goTorrentWebUI/node_modules/material-ui/es/internal/svg-icons/IndeterminateCheckBox.js
generated
vendored
Normal file
19
goTorrentWebUI/node_modules/material-ui/es/internal/svg-icons/IndeterminateCheckBox.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
import React from 'react';
|
||||
import pure from 'recompose/pure';
|
||||
import SvgIcon from '../../SvgIcon';
|
||||
|
||||
/**
|
||||
* @ignore - internal component.
|
||||
*/
|
||||
|
||||
var _ref = React.createElement('path', { d: 'M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z' });
|
||||
|
||||
let IndeterminateCheckBox = props => React.createElement(
|
||||
SvgIcon,
|
||||
props,
|
||||
_ref
|
||||
);
|
||||
IndeterminateCheckBox = pure(IndeterminateCheckBox);
|
||||
IndeterminateCheckBox.muiName = 'SvgIcon';
|
||||
|
||||
export default IndeterminateCheckBox;
|
19
goTorrentWebUI/node_modules/material-ui/es/internal/svg-icons/KeyboardArrowLeft.js
generated
vendored
Normal file
19
goTorrentWebUI/node_modules/material-ui/es/internal/svg-icons/KeyboardArrowLeft.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
import React from 'react';
|
||||
import pure from 'recompose/pure';
|
||||
import SvgIcon from '../../SvgIcon';
|
||||
|
||||
/**
|
||||
* @ignore - internal component.
|
||||
*/
|
||||
|
||||
var _ref = React.createElement('path', { d: 'M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z' });
|
||||
|
||||
let KeyboardArrowLeft = props => React.createElement(
|
||||
SvgIcon,
|
||||
props,
|
||||
_ref
|
||||
);
|
||||
KeyboardArrowLeft = pure(KeyboardArrowLeft);
|
||||
KeyboardArrowLeft.muiName = 'SvgIcon';
|
||||
|
||||
export default KeyboardArrowLeft;
|
19
goTorrentWebUI/node_modules/material-ui/es/internal/svg-icons/KeyboardArrowRight.js
generated
vendored
Normal file
19
goTorrentWebUI/node_modules/material-ui/es/internal/svg-icons/KeyboardArrowRight.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
import React from 'react';
|
||||
import pure from 'recompose/pure';
|
||||
import SvgIcon from '../../SvgIcon';
|
||||
|
||||
/**
|
||||
* @ignore - internal component.
|
||||
*/
|
||||
|
||||
var _ref = React.createElement('path', { d: 'M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z' });
|
||||
|
||||
let KeyboardArrowRight = props => React.createElement(
|
||||
SvgIcon,
|
||||
props,
|
||||
_ref
|
||||
);
|
||||
KeyboardArrowRight = pure(KeyboardArrowRight);
|
||||
KeyboardArrowRight.muiName = 'SvgIcon';
|
||||
|
||||
export default KeyboardArrowRight;
|
19
goTorrentWebUI/node_modules/material-ui/es/internal/svg-icons/RadioButtonChecked.js
generated
vendored
Normal file
19
goTorrentWebUI/node_modules/material-ui/es/internal/svg-icons/RadioButtonChecked.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
import React from 'react';
|
||||
import pure from 'recompose/pure';
|
||||
import SvgIcon from '../../SvgIcon';
|
||||
|
||||
/**
|
||||
* @ignore - internal component.
|
||||
*/
|
||||
|
||||
var _ref = React.createElement('path', { d: 'M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z' });
|
||||
|
||||
let RadioButtonChecked = props => React.createElement(
|
||||
SvgIcon,
|
||||
props,
|
||||
_ref
|
||||
);
|
||||
RadioButtonChecked = pure(RadioButtonChecked);
|
||||
RadioButtonChecked.muiName = 'SvgIcon';
|
||||
|
||||
export default RadioButtonChecked;
|
19
goTorrentWebUI/node_modules/material-ui/es/internal/svg-icons/RadioButtonUnchecked.js
generated
vendored
Normal file
19
goTorrentWebUI/node_modules/material-ui/es/internal/svg-icons/RadioButtonUnchecked.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
import React from 'react';
|
||||
import pure from 'recompose/pure';
|
||||
import SvgIcon from '../../SvgIcon';
|
||||
|
||||
/**
|
||||
* @ignore - internal component.
|
||||
*/
|
||||
|
||||
var _ref = React.createElement('path', { d: 'M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z' });
|
||||
|
||||
let RadioButtonUnchecked = props => React.createElement(
|
||||
SvgIcon,
|
||||
props,
|
||||
_ref
|
||||
);
|
||||
RadioButtonUnchecked = pure(RadioButtonUnchecked);
|
||||
RadioButtonUnchecked.muiName = 'SvgIcon';
|
||||
|
||||
export default RadioButtonUnchecked;
|
21
goTorrentWebUI/node_modules/material-ui/es/internal/transition.d.ts
generated
vendored
21
goTorrentWebUI/node_modules/material-ui/es/internal/transition.d.ts
generated
vendored
@@ -1,21 +0,0 @@
|
||||
import * as React from 'react';
|
||||
|
||||
export type TransitionDuration = number | { enter: number, exit: number };
|
||||
export type TransitionCallback = (element: HTMLElement) => void;
|
||||
|
||||
export type TransitionHandlers = {
|
||||
onEnter: TransitionCallback;
|
||||
onEntering: TransitionCallback;
|
||||
onEntered: TransitionCallback;
|
||||
onExit: TransitionCallback;
|
||||
onExiting: TransitionCallback;
|
||||
onExited: TransitionCallback;
|
||||
};
|
||||
|
||||
export interface TransitionProps extends Partial<TransitionHandlers> {
|
||||
children: React.ReactElement<any>;
|
||||
className?: string;
|
||||
in: boolean;
|
||||
appear?: boolean;
|
||||
unmountOnExit?: boolean;
|
||||
}
|
0
goTorrentWebUI/node_modules/material-ui/es/internal/transition.js
generated
vendored
0
goTorrentWebUI/node_modules/material-ui/es/internal/transition.js
generated
vendored
Reference in New Issue
Block a user