Added logging, changed some directory structure

This commit is contained in:
2018-01-13 21:33:40 -05:00
parent f079a5f067
commit 8e72ffb917
73656 changed files with 35284 additions and 53718 deletions

24
goTorrentWebUI/node_modules/material-ui/List/List.d.ts generated vendored Normal file
View File

@@ -0,0 +1,24 @@
import * as React from 'react';
import { StandardProps } from '..';
export interface ListProps extends StandardProps<
React.HTMLAttributes<HTMLUListElement>,
ListClassKey
> {
component?: React.ReactType;
dense?: boolean;
disablePadding?: boolean;
rootRef?: React.Ref<any>;
subheader?: React.ReactElement<any>;
}
export type ListClassKey =
| 'root'
| 'padding'
| 'dense'
| 'subheader'
;
declare const List: React.ComponentType<ListProps>;
export default List;

185
goTorrentWebUI/node_modules/material-ui/List/List.js generated vendored Normal file
View File

@@ -0,0 +1,185 @@
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.styles = undefined;
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _defineProperty2 = require('babel-runtime/helpers/defineProperty');
var _defineProperty3 = _interopRequireDefault(_defineProperty2);
var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties');
var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2);
var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
var _createClass2 = require('babel-runtime/helpers/createClass');
var _createClass3 = _interopRequireDefault(_createClass2);
var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');
var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
var _inherits2 = require('babel-runtime/helpers/inherits');
var _inherits3 = _interopRequireDefault(_inherits2);
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _propTypes = require('prop-types');
var _propTypes2 = _interopRequireDefault(_propTypes);
var _classnames = require('classnames');
var _classnames2 = _interopRequireDefault(_classnames);
var _withStyles = require('../styles/withStyles');
var _withStyles2 = _interopRequireDefault(_withStyles);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var babelPluginFlowReactPropTypes_proptype_Node = require('react').babelPluginFlowReactPropTypes_proptype_Node || require('prop-types').any;
var babelPluginFlowReactPropTypes_proptype_ElementType = require('react').babelPluginFlowReactPropTypes_proptype_ElementType || require('prop-types').any;
var styles = exports.styles = function styles(theme) {
return {
root: {
flex: '1 1 auto',
listStyle: 'none',
margin: 0,
padding: 0,
position: 'relative'
},
padding: {
paddingTop: theme.spacing.unit,
paddingBottom: theme.spacing.unit
},
dense: {
paddingTop: theme.spacing.unit / 2,
paddingBottom: theme.spacing.unit / 2
},
subheader: {
paddingTop: 0
}
};
};
var babelPluginFlowReactPropTypes_proptype_Props = {
/**
* The content of the component.
*/
children: typeof babelPluginFlowReactPropTypes_proptype_Node === 'function' ? babelPluginFlowReactPropTypes_proptype_Node : require('prop-types').shape(babelPluginFlowReactPropTypes_proptype_Node),
/**
* Useful to extend the style applied to components.
*/
classes: require('prop-types').object,
/**
* @ignore
*/
className: require('prop-types').string,
/**
* The component used for the root node.
* Either a string to use a DOM element or a component.
*/
component: typeof babelPluginFlowReactPropTypes_proptype_ElementType === 'function' ? babelPluginFlowReactPropTypes_proptype_ElementType : require('prop-types').shape(babelPluginFlowReactPropTypes_proptype_ElementType),
/**
* If `true`, compact vertical padding designed for keyboard and mouse input will be used for
* the list and list items. The property is available to descendant components as the
* `dense` context.
*/
dense: require('prop-types').bool,
/**
* If `true`, vertical padding will be removed from the list.
*/
disablePadding: require('prop-types').bool,
/**
* Use that property to pass a ref callback to the root component.
*/
rootRef: require('prop-types').func,
/**
* The content of the component, normally `ListItem`.
*/
subheader: typeof babelPluginFlowReactPropTypes_proptype_Node === 'function' ? babelPluginFlowReactPropTypes_proptype_Node : require('prop-types').shape(babelPluginFlowReactPropTypes_proptype_Node)
};
var List = function (_React$Component) {
(0, _inherits3.default)(List, _React$Component);
function List() {
(0, _classCallCheck3.default)(this, List);
return (0, _possibleConstructorReturn3.default)(this, (List.__proto__ || (0, _getPrototypeOf2.default)(List)).apply(this, arguments));
}
(0, _createClass3.default)(List, [{
key: 'getChildContext',
value: function getChildContext() {
return {
dense: this.props.dense
};
}
}, {
key: 'render',
value: function render() {
var _classNames;
var _props = this.props,
classes = _props.classes,
classNameProp = _props.className,
ComponentProp = _props.component,
disablePadding = _props.disablePadding,
children = _props.children,
dense = _props.dense,
subheader = _props.subheader,
rootRef = _props.rootRef,
other = (0, _objectWithoutProperties3.default)(_props, ['classes', 'className', 'component', 'disablePadding', 'children', 'dense', 'subheader', 'rootRef']);
var className = (0, _classnames2.default)(classes.root, (_classNames = {}, (0, _defineProperty3.default)(_classNames, classes.dense, dense && !disablePadding), (0, _defineProperty3.default)(_classNames, classes.padding, !disablePadding), (0, _defineProperty3.default)(_classNames, classes.subheader, subheader), _classNames), classNameProp);
return _react2.default.createElement(
ComponentProp,
(0, _extends3.default)({ className: className }, other, { ref: rootRef }),
subheader,
children
);
}
}]);
return List;
}(_react2.default.Component);
List.defaultProps = {
component: 'ul',
dense: false,
disablePadding: false
};
List.childContextTypes = {
dense: _propTypes2.default.bool
};
exports.default = (0, _withStyles2.default)(styles, { name: 'MuiList' })(List);

View File

@@ -0,0 +1,121 @@
// @flow
import React from 'react';
import type { ElementType, Node } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import withStyles from '../styles/withStyles';
export const styles = (theme: Object) => ({
root: {
flex: '1 1 auto',
listStyle: 'none',
margin: 0,
padding: 0,
position: 'relative',
},
padding: {
paddingTop: theme.spacing.unit,
paddingBottom: theme.spacing.unit,
},
dense: {
paddingTop: theme.spacing.unit / 2,
paddingBottom: theme.spacing.unit / 2,
},
subheader: {
paddingTop: 0,
},
});
type ProvidedProps = {
classes: Object,
component: ElementType,
};
export type Props = {
/**
* The content of the component.
*/
children?: Node,
/**
* Useful to extend the style applied to components.
*/
classes?: Object,
/**
* @ignore
*/
className?: string,
/**
* The component used for the root node.
* Either a string to use a DOM element or a component.
*/
component?: ElementType,
/**
* If `true`, compact vertical padding designed for keyboard and mouse input will be used for
* the list and list items. The property is available to descendant components as the
* `dense` context.
*/
dense?: boolean,
/**
* If `true`, vertical padding will be removed from the list.
*/
disablePadding?: boolean,
/**
* Use that property to pass a ref callback to the root component.
*/
rootRef?: Function,
/**
* The content of the component, normally `ListItem`.
*/
subheader?: Node,
};
class List extends React.Component<ProvidedProps & Props> {
static defaultProps = {
component: 'ul',
dense: false,
disablePadding: false,
};
getChildContext() {
return {
dense: this.props.dense,
};
}
render() {
const {
classes,
className: classNameProp,
component: ComponentProp,
disablePadding,
children,
dense,
subheader,
rootRef,
...other
} = this.props;
const className = classNames(
classes.root,
{
[classes.dense]: dense && !disablePadding,
[classes.padding]: !disablePadding,
[classes.subheader]: subheader,
},
classNameProp,
);
return (
<ComponentProp className={className} {...other} ref={rootRef}>
{subheader}
{children}
</ComponentProp>
);
}
}
List.childContextTypes = {
dense: PropTypes.bool,
};
export default withStyles(styles, { name: 'MuiList' })(List);

View File

@@ -0,0 +1,31 @@
import * as React from 'react';
import { StandardProps, Replace } from '..';
import { ButtonBaseProps, ButtonBaseClassKey } from '../ButtonBase';
export interface ListItemProps extends StandardProps<
Replace<ButtonBaseProps, React.LiHTMLAttributes<HTMLLIElement>>,
ListItemClassKey
> {
button?: boolean;
component?: React.ReactType;
dense?: boolean;
disabled?: boolean;
disableGutters?: boolean;
divider?: boolean;
}
export type ListItemClassKey =
| ButtonBaseClassKey
| 'container'
| 'keyboardFocused'
| 'default'
| 'dense'
| 'divider'
| 'gutters'
| 'button'
| 'secondaryAction'
;
declare const ListItem: React.ComponentType<ListItemProps>;
export default ListItem;

View File

@@ -0,0 +1,265 @@
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.styles = undefined;
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _defineProperty2 = require('babel-runtime/helpers/defineProperty');
var _defineProperty3 = _interopRequireDefault(_defineProperty2);
var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties');
var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2);
var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
var _createClass2 = require('babel-runtime/helpers/createClass');
var _createClass3 = _interopRequireDefault(_createClass2);
var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');
var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
var _inherits2 = require('babel-runtime/helpers/inherits');
var _inherits3 = _interopRequireDefault(_inherits2);
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _propTypes = require('prop-types');
var _propTypes2 = _interopRequireDefault(_propTypes);
var _classnames = require('classnames');
var _classnames2 = _interopRequireDefault(_classnames);
var _withStyles = require('../styles/withStyles');
var _withStyles2 = _interopRequireDefault(_withStyles);
var _ButtonBase = require('../ButtonBase');
var _ButtonBase2 = _interopRequireDefault(_ButtonBase);
var _reactHelpers = require('../utils/reactHelpers');
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var babelPluginFlowReactPropTypes_proptype_Node = require('react').babelPluginFlowReactPropTypes_proptype_Node || require('prop-types').any;
var babelPluginFlowReactPropTypes_proptype_ElementType = require('react').babelPluginFlowReactPropTypes_proptype_ElementType || require('prop-types').any;
var styles = exports.styles = function styles(theme) {
return {
root: {
display: 'flex',
justifyContent: 'flex-start',
alignItems: 'center',
position: 'relative',
textDecoration: 'none'
},
container: {
position: 'relative'
},
keyboardFocused: {
background: theme.palette.text.divider
},
default: {
paddingTop: 12,
paddingBottom: 12
},
dense: {
paddingTop: theme.spacing.unit,
paddingBottom: theme.spacing.unit
},
disabled: {
opacity: 0.5
},
divider: {
borderBottom: '1px solid ' + theme.palette.text.lightDivider
},
gutters: {
paddingLeft: theme.spacing.unit * 2,
paddingRight: theme.spacing.unit * 2
},
button: {
transition: theme.transitions.create('background-color', {
duration: theme.transitions.duration.shortest
}),
'&:hover': {
textDecoration: 'none',
backgroundColor: theme.palette.text.divider,
// Reset on mouse devices
'@media (hover: none)': {
backgroundColor: 'transparent'
},
'&$disabled': {
backgroundColor: 'transparent'
}
}
},
secondaryAction: {
// Add some space to avoid collision as `ListItemSecondaryAction`
// is absolutely positionned.
paddingRight: theme.spacing.unit * 4
}
};
};
var babelPluginFlowReactPropTypes_proptype_Props = {
/**
* If `true`, the ListItem will be a button.
*/
button: require('prop-types').bool,
/**
* The content of the component.
*/
children: typeof babelPluginFlowReactPropTypes_proptype_Node === 'function' ? babelPluginFlowReactPropTypes_proptype_Node : require('prop-types').shape(babelPluginFlowReactPropTypes_proptype_Node),
/**
* Useful to extend the style applied to components.
*/
classes: require('prop-types').object,
/**
* @ignore
*/
className: require('prop-types').string,
/**
* The component used for the root node.
* Either a string to use a DOM element or a component.
*/
component: typeof babelPluginFlowReactPropTypes_proptype_ElementType === 'function' ? babelPluginFlowReactPropTypes_proptype_ElementType : require('prop-types').shape(babelPluginFlowReactPropTypes_proptype_ElementType),
/**
* If `true`, compact vertical padding designed for keyboard and mouse input will be used.
*/
dense: require('prop-types').bool,
/**
* @ignore
*/
disabled: require('prop-types').bool,
/**
* If `true`, the left and right padding is removed.
*/
disableGutters: require('prop-types').bool,
/**
* If `true`, a 1px light border is added to the bottom of the list item.
*/
divider: require('prop-types').bool
};
var ListItem = function (_React$Component) {
(0, _inherits3.default)(ListItem, _React$Component);
function ListItem() {
(0, _classCallCheck3.default)(this, ListItem);
return (0, _possibleConstructorReturn3.default)(this, (ListItem.__proto__ || (0, _getPrototypeOf2.default)(ListItem)).apply(this, arguments));
}
(0, _createClass3.default)(ListItem, [{
key: 'getChildContext',
value: function getChildContext() {
return {
dense: this.props.dense || this.context.dense || false
};
}
}, {
key: 'render',
value: function render() {
var _classNames;
var _props = this.props,
button = _props.button,
childrenProp = _props.children,
classes = _props.classes,
classNameProp = _props.className,
componentProp = _props.component,
dense = _props.dense,
disabled = _props.disabled,
divider = _props.divider,
disableGutters = _props.disableGutters,
other = (0, _objectWithoutProperties3.default)(_props, ['button', 'children', 'classes', 'className', 'component', 'dense', 'disabled', 'divider', 'disableGutters']);
var isDense = dense || this.context.dense || false;
var children = _react2.default.Children.toArray(childrenProp);
var hasAvatar = children.some(function (value) {
return (0, _reactHelpers.isMuiElement)(value, ['ListItemAvatar']);
});
var hasSecondaryAction = children.length && (0, _reactHelpers.isMuiElement)(children[children.length - 1], ['ListItemSecondaryAction']);
var className = (0, _classnames2.default)(classes.root, (_classNames = {}, (0, _defineProperty3.default)(_classNames, classes.gutters, !disableGutters), (0, _defineProperty3.default)(_classNames, classes.divider, divider), (0, _defineProperty3.default)(_classNames, classes.disabled, disabled), (0, _defineProperty3.default)(_classNames, classes.button, button), (0, _defineProperty3.default)(_classNames, classes.secondaryAction, hasSecondaryAction), (0, _defineProperty3.default)(_classNames, isDense || hasAvatar ? classes.dense : classes.default, true), _classNames), classNameProp);
var listItemProps = (0, _extends3.default)({ className: className, disabled: disabled }, other);
var ComponentMain = componentProp;
if (button) {
ComponentMain = _ButtonBase2.default;
listItemProps.component = componentProp || 'li';
listItemProps.keyboardFocusedClassName = classes.keyboardFocused;
}
if (hasSecondaryAction) {
return _react2.default.createElement(
'div',
{ className: classes.container },
_react2.default.createElement(
ComponentMain,
listItemProps,
children
),
children.pop()
);
}
return _react2.default.createElement(
ComponentMain,
listItemProps,
children
);
}
}]);
return ListItem;
}(_react2.default.Component);
ListItem.defaultProps = {
button: false,
component: 'li',
dense: false,
disabled: false,
disableGutters: false,
divider: false
};
ListItem.contextTypes = {
dense: _propTypes2.default.bool
};
ListItem.childContextTypes = {
dense: _propTypes2.default.bool
};
exports.default = (0, _withStyles2.default)(styles, { name: 'MuiListItem' })(ListItem);

View File

@@ -0,0 +1,190 @@
// @flow
import React from 'react';
import type { ElementType, Node } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import withStyles from '../styles/withStyles';
import ButtonBase from '../ButtonBase';
import { isMuiElement } from '../utils/reactHelpers';
export const styles = (theme: Object) => ({
root: {
display: 'flex',
justifyContent: 'flex-start',
alignItems: 'center',
position: 'relative',
textDecoration: 'none',
},
container: {
position: 'relative',
},
keyboardFocused: {
background: theme.palette.text.divider,
},
default: {
paddingTop: 12,
paddingBottom: 12,
},
dense: {
paddingTop: theme.spacing.unit,
paddingBottom: theme.spacing.unit,
},
disabled: {
opacity: 0.5,
},
divider: {
borderBottom: `1px solid ${theme.palette.text.lightDivider}`,
},
gutters: {
paddingLeft: theme.spacing.unit * 2,
paddingRight: theme.spacing.unit * 2,
},
button: {
transition: theme.transitions.create('background-color', {
duration: theme.transitions.duration.shortest,
}),
'&:hover': {
textDecoration: 'none',
backgroundColor: theme.palette.text.divider,
// Reset on mouse devices
'@media (hover: none)': {
backgroundColor: 'transparent',
},
'&$disabled': {
backgroundColor: 'transparent',
},
},
},
secondaryAction: {
// Add some space to avoid collision as `ListItemSecondaryAction`
// is absolutely positionned.
paddingRight: theme.spacing.unit * 4,
},
});
type ProvidedProps = {
classes: Object,
component: ElementType,
};
export type Props = {
/**
* If `true`, the ListItem will be a button.
*/
button?: boolean,
/**
* The content of the component.
*/
children?: Node,
/**
* Useful to extend the style applied to components.
*/
classes?: Object,
/**
* @ignore
*/
className?: string,
/**
* The component used for the root node.
* Either a string to use a DOM element or a component.
*/
component?: ElementType,
/**
* If `true`, compact vertical padding designed for keyboard and mouse input will be used.
*/
dense?: boolean,
/**
* @ignore
*/
disabled?: boolean,
/**
* If `true`, the left and right padding is removed.
*/
disableGutters?: boolean,
/**
* If `true`, a 1px light border is added to the bottom of the list item.
*/
divider?: boolean,
};
class ListItem extends React.Component<ProvidedProps & Props> {
static defaultProps = {
button: false,
component: 'li',
dense: false,
disabled: false,
disableGutters: false,
divider: false,
};
getChildContext() {
return {
dense: this.props.dense || this.context.dense || false,
};
}
render() {
const {
button,
children: childrenProp,
classes,
className: classNameProp,
component: componentProp,
dense,
disabled,
divider,
disableGutters,
...other
} = this.props;
const isDense = dense || this.context.dense || false;
const children = React.Children.toArray(childrenProp);
const hasAvatar = children.some(value => isMuiElement(value, ['ListItemAvatar']));
const hasSecondaryAction =
children.length && isMuiElement(children[children.length - 1], ['ListItemSecondaryAction']);
const className = classNames(
classes.root,
{
[classes.gutters]: !disableGutters,
[classes.divider]: divider,
[classes.disabled]: disabled,
[classes.button]: button,
[classes.secondaryAction]: hasSecondaryAction,
[isDense || hasAvatar ? classes.dense : classes.default]: true,
},
classNameProp,
);
const listItemProps = { className, disabled, ...other };
let ComponentMain = componentProp;
if (button) {
ComponentMain = ButtonBase;
listItemProps.component = componentProp || 'li';
listItemProps.keyboardFocusedClassName = classes.keyboardFocused;
}
if (hasSecondaryAction) {
return (
<div className={classes.container}>
<ComponentMain {...listItemProps}>{children}</ComponentMain>
{children.pop()}
</div>
);
}
return <ComponentMain {...listItemProps}>{children}</ComponentMain>;
}
}
ListItem.contextTypes = {
dense: PropTypes.bool,
};
ListItem.childContextTypes = {
dense: PropTypes.bool,
};
export default withStyles(styles, { name: 'MuiListItem' })(ListItem);

View File

@@ -0,0 +1,12 @@
import { StandardProps } from '..';
export interface ListItemAvatarProps extends StandardProps<{}, ListItemAvatarClassKey> {}
export type ListItemAvatarClassKey =
| 'root'
| 'icon'
;
declare const ListItemAvatar: React.ComponentType<ListItemAvatarProps>;
export default ListItemAvatar;

View File

@@ -0,0 +1,105 @@
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.styles = undefined;
var _defineProperty2 = require('babel-runtime/helpers/defineProperty');
var _defineProperty3 = _interopRequireDefault(_defineProperty2);
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties');
var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2);
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _propTypes = require('prop-types');
var _propTypes2 = _interopRequireDefault(_propTypes);
var _classnames = require('classnames');
var _classnames2 = _interopRequireDefault(_classnames);
var _warning = require('warning');
var _warning2 = _interopRequireDefault(_warning);
var _withStyles = require('../styles/withStyles');
var _withStyles2 = _interopRequireDefault(_withStyles);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var babelPluginFlowReactPropTypes_proptype_Element = require('react').babelPluginFlowReactPropTypes_proptype_Element || require('prop-types').any;
var styles = exports.styles = function styles(theme) {
return {
root: {
width: 36,
height: 36,
fontSize: theme.typography.pxToRem(18),
marginRight: 4
},
icon: {
width: 20,
height: 20,
fontSize: theme.typography.pxToRem(20)
}
};
};
var babelPluginFlowReactPropTypes_proptype_Props = {
/**
* The content of the component, normally `Avatar`.
*/
children: typeof babelPluginFlowReactPropTypes_proptype_Element === 'function' ? babelPluginFlowReactPropTypes_proptype_Element.isRequired ? babelPluginFlowReactPropTypes_proptype_Element.isRequired : babelPluginFlowReactPropTypes_proptype_Element : require('prop-types').shape(babelPluginFlowReactPropTypes_proptype_Element).isRequired,
/**
* Useful to extend the style applied to components.
*/
classes: require('prop-types').object,
/**
* @ignore
*/
className: require('prop-types').string
};
/**
* It's a simple wrapper to apply the `dense` mode styles to `Avatar`.
*/
function ListItemAvatar(props, context) {
if (context.dense === undefined) {
process.env.NODE_ENV !== "production" ? (0, _warning2.default)(false, 'Material-UI: <ListItemAvatar> is a simple wrapper to apply the dense styles\n to <Avatar>. You do not need it unless you are controlling the <List> dense property.') : void 0;
return props.children;
}
var children = props.children,
classes = props.classes,
classNameProp = props.className,
other = (0, _objectWithoutProperties3.default)(props, ['children', 'classes', 'className']);
return _react2.default.cloneElement(children, (0, _extends3.default)({
className: (0, _classnames2.default)((0, _defineProperty3.default)({}, classes.root, context.dense), classNameProp, children.props.className),
childrenClassName: (0, _classnames2.default)((0, _defineProperty3.default)({}, classes.icon, context.dense), children.props.childrenClassName)
}, other));
}
ListItemAvatar.contextTypes = {
dense: _propTypes2.default.bool
};
ListItemAvatar.muiName = 'ListItemAvatar';
exports.default = (0, _withStyles2.default)(styles, { name: 'MuiListItemAvatar' })(ListItemAvatar);

View File

@@ -0,0 +1,78 @@
// @flow
import React from 'react';
import type { Element } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import warning from 'warning';
import withStyles from '../styles/withStyles';
export const styles = (theme: Object) => ({
root: {
width: 36,
height: 36,
fontSize: theme.typography.pxToRem(18),
marginRight: 4,
},
icon: {
width: 20,
height: 20,
fontSize: theme.typography.pxToRem(20),
},
});
type ProvidedProps = {
classes: Object,
};
export type Props = {
/**
* The content of the component, normally `Avatar`.
*/
children: Element<any>,
/**
* Useful to extend the style applied to components.
*/
classes?: Object,
/**
* @ignore
*/
className?: string,
};
/**
* It's a simple wrapper to apply the `dense` mode styles to `Avatar`.
*/
function ListItemAvatar(props: ProvidedProps & Props, context: { dense: boolean }) {
if (context.dense === undefined) {
warning(
false,
`Material-UI: <ListItemAvatar> is a simple wrapper to apply the dense styles
to <Avatar>. You do not need it unless you are controlling the <List> dense property.`,
);
return props.children;
}
const { children, classes, className: classNameProp, ...other } = props;
return React.cloneElement(children, {
className: classNames(
{ [classes.root]: context.dense },
classNameProp,
children.props.className,
),
childrenClassName: classNames(
{ [classes.icon]: context.dense },
children.props.childrenClassName,
),
...other,
});
}
ListItemAvatar.contextTypes = {
dense: PropTypes.bool,
};
ListItemAvatar.muiName = 'ListItemAvatar';
export default withStyles(styles, { name: 'MuiListItemAvatar' })(ListItemAvatar);

View File

@@ -0,0 +1,11 @@
import { StandardProps } from '..';
export interface ListItemIconProps extends StandardProps<{}, ListItemIconClassKey> {}
export type ListItemIconClassKey =
| 'root'
;
declare const ListItemIcon: React.ComponentType<ListItemIconProps>;
export default ListItemIcon;

View File

@@ -0,0 +1,78 @@
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.styles = undefined;
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties');
var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2);
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _classnames = require('classnames');
var _classnames2 = _interopRequireDefault(_classnames);
var _withStyles = require('../styles/withStyles');
var _withStyles2 = _interopRequireDefault(_withStyles);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var babelPluginFlowReactPropTypes_proptype_Element = require('react').babelPluginFlowReactPropTypes_proptype_Element || require('prop-types').any;
var styles = exports.styles = function styles(theme) {
return {
root: {
height: 24,
marginRight: theme.spacing.unit * 2,
width: 24,
color: theme.palette.action.active,
flexShrink: 0
}
};
};
var babelPluginFlowReactPropTypes_proptype_Props = {
/**
* The content of the component, normally `Icon`, `SvgIcon`,
* or a `material-ui-icons` SVG icon component.
*/
children: typeof babelPluginFlowReactPropTypes_proptype_Element === 'function' ? babelPluginFlowReactPropTypes_proptype_Element.isRequired ? babelPluginFlowReactPropTypes_proptype_Element.isRequired : babelPluginFlowReactPropTypes_proptype_Element : require('prop-types').shape(babelPluginFlowReactPropTypes_proptype_Element).isRequired,
/**
* Useful to extend the style applied to components.
*/
classes: require('prop-types').object,
/**
* @ignore
*/
className: require('prop-types').string
};
/**
* A simple wrapper to apply `List` styles to an `Icon` or `SvgIcon`.
*/
function ListItemIcon(props) {
var children = props.children,
classes = props.classes,
classNameProp = props.className,
other = (0, _objectWithoutProperties3.default)(props, ['children', 'classes', 'className']);
return _react2.default.cloneElement(children, (0, _extends3.default)({
className: (0, _classnames2.default)(classes.root, classNameProp, children.props.className)
}, other));
}
exports.default = (0, _withStyles2.default)(styles, { name: 'MuiListItemIcon' })(ListItemIcon);

View File

@@ -0,0 +1,50 @@
// @flow
import React from 'react';
import type { Element } from 'react';
import classNames from 'classnames';
import withStyles from '../styles/withStyles';
export const styles = (theme: Object) => ({
root: {
height: 24,
marginRight: theme.spacing.unit * 2,
width: 24,
color: theme.palette.action.active,
flexShrink: 0,
},
});
type ProvidedProps = {
classes: Object,
};
export type Props = {
/**
* The content of the component, normally `Icon`, `SvgIcon`,
* or a `material-ui-icons` SVG icon component.
*/
children: Element<any>,
/**
* Useful to extend the style applied to components.
*/
classes?: Object,
/**
* @ignore
*/
className?: string,
};
/**
* A simple wrapper to apply `List` styles to an `Icon` or `SvgIcon`.
*/
function ListItemIcon(props: ProvidedProps & Props) {
const { children, classes, className: classNameProp, ...other } = props;
return React.cloneElement(children, {
className: classNames(classes.root, classNameProp, children.props.className),
...other,
});
}
export default withStyles(styles, { name: 'MuiListItemIcon' })(ListItemIcon);

View File

@@ -0,0 +1,11 @@
import { StandardProps } from '..';
export interface ListItemSecondaryActionProps extends StandardProps<{}, ListItemSecondaryActionClassKey> {}
export type ListItemSecondaryActionClassKey =
| 'root'
;
declare const ListItemSecondaryAction: React.ComponentType<ListItemSecondaryActionProps>;
export default ListItemSecondaryAction;

View File

@@ -0,0 +1,78 @@
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.styles = undefined;
var _defineProperty2 = require('babel-runtime/helpers/defineProperty');
var _defineProperty3 = _interopRequireDefault(_defineProperty2);
var _ref; // weak
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _classnames = require('classnames');
var _classnames2 = _interopRequireDefault(_classnames);
var _withStyles = require('../styles/withStyles');
var _withStyles2 = _interopRequireDefault(_withStyles);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var babelPluginFlowReactPropTypes_proptype_Node = require('react').babelPluginFlowReactPropTypes_proptype_Node || require('prop-types').any;
var styles = exports.styles = function styles(theme) {
return {
root: {
position: 'absolute',
right: 4,
top: '50%',
marginTop: -theme.spacing.unit * 3
}
};
};
var babelPluginFlowReactPropTypes_proptype_Props = {
/**
* The content of the component, normally an `IconButton` or selection control.
*/
children: typeof babelPluginFlowReactPropTypes_proptype_Node === 'function' ? babelPluginFlowReactPropTypes_proptype_Node : require('prop-types').shape(babelPluginFlowReactPropTypes_proptype_Node),
/**
* Useful to extend the style applied to components.
*/
classes: require('prop-types').object,
/**
* @ignore
*/
className: require('prop-types').string
};
function ListItemSecondaryAction(props) {
var children = props.children,
classes = props.classes,
className = props.className;
return _react2.default.createElement(
'div',
{ className: (0, _classnames2.default)(classes.root, className) },
children
);
}
ListItemSecondaryAction.propTypes = process.env.NODE_ENV !== "production" ? (_ref = {
classes: require('prop-types').object.isRequired,
children: typeof babelPluginFlowReactPropTypes_proptype_Node === 'function' ? babelPluginFlowReactPropTypes_proptype_Node : require('prop-types').shape(babelPluginFlowReactPropTypes_proptype_Node)
}, (0, _defineProperty3.default)(_ref, 'classes', require('prop-types').object), (0, _defineProperty3.default)(_ref, 'className', require('prop-types').string), _ref) : {};
ListItemSecondaryAction.muiName = 'ListItemSecondaryAction';
exports.default = (0, _withStyles2.default)(styles, { name: 'MuiListItemSecondaryAction' })(ListItemSecondaryAction);

View File

@@ -0,0 +1,44 @@
// @flow weak
import React from 'react';
import type { Node } from 'react';
import classNames from 'classnames';
import withStyles from '../styles/withStyles';
export const styles = (theme: Object) => ({
root: {
position: 'absolute',
right: 4,
top: '50%',
marginTop: -theme.spacing.unit * 3,
},
});
type ProvidedProps = {
classes: Object,
};
export type Props = {
/**
* The content of the component, normally an `IconButton` or selection control.
*/
children?: Node,
/**
* Useful to extend the style applied to components.
*/
classes?: Object,
/**
* @ignore
*/
className?: string,
};
function ListItemSecondaryAction(props: ProvidedProps & Props) {
const { children, classes, className } = props;
return <div className={classNames(classes.root, className)}>{children}</div>;
}
ListItemSecondaryAction.muiName = 'ListItemSecondaryAction';
export default withStyles(styles, { name: 'MuiListItemSecondaryAction' })(ListItemSecondaryAction);

View File

@@ -0,0 +1,24 @@
import * as React from 'react';
import { StandardProps } from '..';
export interface ListItemTextProps extends StandardProps<
React.HTMLAttributes<HTMLDivElement>,
ListItemTextClassKey
> {
disableTypography?: boolean;
inset?: boolean;
primary?: React.ReactNode;
secondary?: React.ReactNode;
}
export type ListItemTextClassKey =
| 'root'
| 'inset'
| 'dense'
| 'text'
| 'textDense'
;
declare const ListItemText: React.ComponentType<ListItemTextProps>;
export default ListItemText;

View File

@@ -0,0 +1,148 @@
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.styles = undefined;
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _defineProperty2 = require('babel-runtime/helpers/defineProperty');
var _defineProperty3 = _interopRequireDefault(_defineProperty2);
var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties');
var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2);
var _ref; // weak
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _propTypes = require('prop-types');
var _propTypes2 = _interopRequireDefault(_propTypes);
var _classnames = require('classnames');
var _classnames2 = _interopRequireDefault(_classnames);
var _withStyles = require('../styles/withStyles');
var _withStyles2 = _interopRequireDefault(_withStyles);
var _Typography = require('../Typography');
var _Typography2 = _interopRequireDefault(_Typography);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var babelPluginFlowReactPropTypes_proptype_Node = require('react').babelPluginFlowReactPropTypes_proptype_Node || require('prop-types').any;
var styles = exports.styles = function styles(theme) {
return {
root: {
flex: '1 1 auto',
padding: '0 16px',
'&:first-child': {
paddingLeft: 0
}
},
inset: {
'&:first-child': {
paddingLeft: theme.spacing.unit * 7
}
},
dense: {
fontSize: theme.typography.pxToRem(13)
},
text: {}, // Present to allow external customization
textDense: {
fontSize: 'inherit'
}
};
};
var babelPluginFlowReactPropTypes_proptype_Props = {
/**
* Useful to extend the style applied to components.
*/
classes: require('prop-types').object,
/**
* @ignore
*/
className: require('prop-types').string,
/**
* If `true`, the children won't be wrapped by a typography component.
* For instance, that can be useful to can render an h4 instead of a
*/
disableTypography: require('prop-types').bool,
/**
* If `true`, the children will be indented.
* This should be used if there is no left avatar or left icon.
*/
inset: require('prop-types').bool,
primary: typeof babelPluginFlowReactPropTypes_proptype_Node === 'function' ? babelPluginFlowReactPropTypes_proptype_Node : require('prop-types').shape(babelPluginFlowReactPropTypes_proptype_Node),
secondary: typeof babelPluginFlowReactPropTypes_proptype_Node === 'function' ? babelPluginFlowReactPropTypes_proptype_Node : require('prop-types').shape(babelPluginFlowReactPropTypes_proptype_Node)
};
function ListItemText(props, context) {
var _classNames;
var classes = props.classes,
classNameProp = props.className,
disableTypography = props.disableTypography,
primary = props.primary,
secondary = props.secondary,
inset = props.inset,
other = (0, _objectWithoutProperties3.default)(props, ['classes', 'className', 'disableTypography', 'primary', 'secondary', 'inset']);
var dense = context.dense;
var className = (0, _classnames2.default)(classes.root, (_classNames = {}, (0, _defineProperty3.default)(_classNames, classes.dense, dense), (0, _defineProperty3.default)(_classNames, classes.inset, inset), _classNames), classNameProp);
return _react2.default.createElement(
'div',
(0, _extends3.default)({ className: className }, other),
primary && (disableTypography ? primary : _react2.default.createElement(
_Typography2.default,
{
type: 'subheading',
className: (0, _classnames2.default)(classes.text, (0, _defineProperty3.default)({}, classes.textDense, dense))
},
primary
)),
secondary && (disableTypography ? secondary : _react2.default.createElement(
_Typography2.default,
{
color: 'secondary',
type: 'body1',
className: (0, _classnames2.default)(classes.text, (0, _defineProperty3.default)({}, classes.textDense, dense))
},
secondary
))
);
}
ListItemText.propTypes = process.env.NODE_ENV !== "production" ? (_ref = {
classes: require('prop-types').object.isRequired
}, (0, _defineProperty3.default)(_ref, 'classes', require('prop-types').object), (0, _defineProperty3.default)(_ref, 'className', require('prop-types').string), (0, _defineProperty3.default)(_ref, 'disableTypography', require('prop-types').bool), (0, _defineProperty3.default)(_ref, 'inset', require('prop-types').bool), (0, _defineProperty3.default)(_ref, 'primary', typeof babelPluginFlowReactPropTypes_proptype_Node === 'function' ? babelPluginFlowReactPropTypes_proptype_Node : require('prop-types').shape(babelPluginFlowReactPropTypes_proptype_Node)), (0, _defineProperty3.default)(_ref, 'secondary', typeof babelPluginFlowReactPropTypes_proptype_Node === 'function' ? babelPluginFlowReactPropTypes_proptype_Node : require('prop-types').shape(babelPluginFlowReactPropTypes_proptype_Node)), _ref) : {};
ListItemText.defaultProps = {
disableTypography: false,
primary: false,
secondary: false,
inset: false
};
ListItemText.contextTypes = {
dense: _propTypes2.default.bool
};
exports.default = (0, _withStyles2.default)(styles, { name: 'MuiListItemText' })(ListItemText);

View File

@@ -0,0 +1,119 @@
// @flow weak
import React from 'react';
import type { Node } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import withStyles from '../styles/withStyles';
import Typography from '../Typography';
export const styles = (theme: Object) => ({
root: {
flex: '1 1 auto',
padding: '0 16px',
'&:first-child': {
paddingLeft: 0,
},
},
inset: {
'&:first-child': {
paddingLeft: theme.spacing.unit * 7,
},
},
dense: {
fontSize: theme.typography.pxToRem(13),
},
text: {}, // Present to allow external customization
textDense: {
fontSize: 'inherit',
},
});
type ProvidedProps = {
classes: Object,
};
export type Props = {
/**
* Useful to extend the style applied to components.
*/
classes?: Object,
/**
* @ignore
*/
className?: string,
/**
* If `true`, the children won't be wrapped by a typography component.
* For instance, that can be useful to can render an h4 instead of a
*/
disableTypography?: boolean,
/**
* If `true`, the children will be indented.
* This should be used if there is no left avatar or left icon.
*/
inset?: boolean,
primary?: Node,
secondary?: Node,
};
function ListItemText(props: ProvidedProps & Props, context) {
const {
classes,
className: classNameProp,
disableTypography,
primary,
secondary,
inset,
...other
} = props;
const { dense } = context;
const className = classNames(
classes.root,
{
[classes.dense]: dense,
[classes.inset]: inset,
},
classNameProp,
);
return (
<div className={className} {...other}>
{primary &&
(disableTypography ? (
primary
) : (
<Typography
type="subheading"
className={classNames(classes.text, { [classes.textDense]: dense })}
>
{primary}
</Typography>
))}
{secondary &&
(disableTypography ? (
secondary
) : (
<Typography
color="secondary"
type="body1"
className={classNames(classes.text, { [classes.textDense]: dense })}
>
{secondary}
</Typography>
))}
</div>
);
}
ListItemText.defaultProps = {
disableTypography: false,
primary: false,
secondary: false,
inset: false,
};
ListItemText.contextTypes = {
dense: PropTypes.bool,
};
export default withStyles(styles, { name: 'MuiListItemText' })(ListItemText);

View File

@@ -0,0 +1,23 @@
import * as React from 'react';
import { StandardProps } from '..';
export interface ListSubheaderProps extends StandardProps<
React.HTMLAttributes<HTMLDivElement>,
ListSubheaderClassKey
> {
color?: 'default' | 'primary' | 'inherit';
inset?: boolean;
disableSticky?: boolean;
}
export type ListSubheaderClassKey =
| 'root'
| 'colorPrimary'
| 'colorInherit'
| 'inset'
| 'sticky'
;
declare const ListSubheader: React.ComponentType<ListSubheaderProps>;
export default ListSubheader;

View File

@@ -0,0 +1,135 @@
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.styles = undefined;
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _defineProperty2 = require('babel-runtime/helpers/defineProperty');
var _defineProperty3 = _interopRequireDefault(_defineProperty2);
var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties');
var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2);
var _ref; // weak
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _classnames = require('classnames');
var _classnames2 = _interopRequireDefault(_classnames);
var _withStyles = require('../styles/withStyles');
var _withStyles2 = _interopRequireDefault(_withStyles);
var _helpers = require('../utils/helpers');
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var babelPluginFlowReactPropTypes_proptype_Node = require('react').babelPluginFlowReactPropTypes_proptype_Node || require('prop-types').any;
var styles = exports.styles = function styles(theme) {
return {
root: {
boxSizing: 'border-box',
lineHeight: '48px',
paddingLeft: theme.spacing.unit * 2,
paddingRight: theme.spacing.unit * 2,
color: theme.palette.text.secondary,
fontFamily: theme.typography.fontFamily,
fontWeight: theme.typography.fontWeightMedium,
fontSize: theme.typography.pxToRem(theme.typography.fontSize)
},
colorPrimary: {
color: theme.palette.primary[500]
},
colorInherit: {
color: 'inherit'
},
inset: {
paddingLeft: theme.spacing.unit * 9
},
sticky: {
position: 'sticky',
top: 0,
zIndex: 1,
backgroundColor: 'inherit'
}
};
};
var babelPluginFlowReactPropTypes_proptype_Props = {
/**
* The content of the component.
*/
children: typeof babelPluginFlowReactPropTypes_proptype_Node === 'function' ? babelPluginFlowReactPropTypes_proptype_Node : require('prop-types').shape(babelPluginFlowReactPropTypes_proptype_Node),
/**
* Useful to extend the style applied to components.
*/
classes: require('prop-types').object,
/**
* @ignore
*/
className: require('prop-types').string,
/**
* The color of the component. It's using the theme palette when that makes sense.
*/
color: require('prop-types').oneOf(['default', 'primary', 'inherit']),
/**
* If `true`, the List Subheader will not stick to the top during scroll.
*/
disableSticky: require('prop-types').bool,
/**
* If `true`, the List Subheader will be indented.
*/
inset: require('prop-types').bool
};
function ListSubheader(props) {
var _classNames;
var children = props.children,
classes = props.classes,
classNameProp = props.className,
color = props.color,
disableSticky = props.disableSticky,
inset = props.inset,
other = (0, _objectWithoutProperties3.default)(props, ['children', 'classes', 'className', 'color', 'disableSticky', 'inset']);
var className = (0, _classnames2.default)(classes.root, (_classNames = {}, (0, _defineProperty3.default)(_classNames, classes['color' + (0, _helpers.capitalizeFirstLetter)(color)], color !== 'default'), (0, _defineProperty3.default)(_classNames, classes.inset, inset), (0, _defineProperty3.default)(_classNames, classes.sticky, !disableSticky), _classNames), classNameProp);
return _react2.default.createElement(
'div',
(0, _extends3.default)({ className: className }, other),
children
);
}
ListSubheader.propTypes = process.env.NODE_ENV !== "production" ? (_ref = {
classes: require('prop-types').object.isRequired,
children: typeof babelPluginFlowReactPropTypes_proptype_Node === 'function' ? babelPluginFlowReactPropTypes_proptype_Node : require('prop-types').shape(babelPluginFlowReactPropTypes_proptype_Node)
}, (0, _defineProperty3.default)(_ref, 'classes', require('prop-types').object), (0, _defineProperty3.default)(_ref, 'className', require('prop-types').string), (0, _defineProperty3.default)(_ref, 'color', require('prop-types').oneOf(['default', 'primary', 'inherit'])), (0, _defineProperty3.default)(_ref, 'disableSticky', require('prop-types').bool), (0, _defineProperty3.default)(_ref, 'inset', require('prop-types').bool), _ref) : {};
ListSubheader.defaultProps = {
color: 'default',
disableSticky: false,
inset: false
};
ListSubheader.muiName = 'ListSubheader';
exports.default = (0, _withStyles2.default)(styles, { name: 'MuiListSubheader' })(ListSubheader);

View File

@@ -0,0 +1,103 @@
// @flow weak
import React from 'react';
import type { Node } from 'react';
import classNames from 'classnames';
import withStyles from '../styles/withStyles';
import { capitalizeFirstLetter } from '../utils/helpers';
export const styles = (theme: Object) => ({
root: {
boxSizing: 'border-box',
lineHeight: '48px',
paddingLeft: theme.spacing.unit * 2,
paddingRight: theme.spacing.unit * 2,
color: theme.palette.text.secondary,
fontFamily: theme.typography.fontFamily,
fontWeight: theme.typography.fontWeightMedium,
fontSize: theme.typography.pxToRem(theme.typography.fontSize),
},
colorPrimary: {
color: theme.palette.primary[500],
},
colorInherit: {
color: 'inherit',
},
inset: {
paddingLeft: theme.spacing.unit * 9,
},
sticky: {
position: 'sticky',
top: 0,
zIndex: 1,
backgroundColor: 'inherit',
},
});
type ProvidedProps = {
classes: Object,
};
export type Props = {
/**
* The content of the component.
*/
children?: Node,
/**
* Useful to extend the style applied to components.
*/
classes?: Object,
/**
* @ignore
*/
className?: string,
/**
* The color of the component. It's using the theme palette when that makes sense.
*/
color?: 'default' | 'primary' | 'inherit',
/**
* If `true`, the List Subheader will not stick to the top during scroll.
*/
disableSticky?: boolean,
/**
* If `true`, the List Subheader will be indented.
*/
inset?: boolean,
};
function ListSubheader(props: ProvidedProps & Props) {
const {
children,
classes,
className: classNameProp,
color,
disableSticky,
inset,
...other
} = props;
const className = classNames(
classes.root,
{
[classes[`color${capitalizeFirstLetter(color)}`]]: color !== 'default',
[classes.inset]: inset,
[classes.sticky]: !disableSticky,
},
classNameProp,
);
return (
<div className={className} {...other}>
{children}
</div>
);
}
ListSubheader.defaultProps = {
color: 'default',
disableSticky: false,
inset: false,
};
ListSubheader.muiName = 'ListSubheader';
export default withStyles(styles, { name: 'MuiListSubheader' })(ListSubheader);

View File

@@ -0,0 +1,14 @@
export { default } from './List';
export * from './List';
export { default as ListItem } from './ListItem';
export * from './ListItem';
export { default as ListItemAvatar } from './ListItemAvatar';
export * from './ListItemAvatar';
export { default as ListItemText } from './ListItemText';
export * from './ListItemText';
export { default as ListItemIcon } from './ListItemIcon';
export * from './ListItemIcon';
export { default as ListItemSecondaryAction } from './ListItemSecondaryAction';
export * from './ListItemSecondaryAction';
export { default as ListSubheader } from './ListSubheader';
export * from './ListSubheader';

70
goTorrentWebUI/node_modules/material-ui/List/index.js generated vendored Normal file
View File

@@ -0,0 +1,70 @@
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _List = require('./List');
Object.defineProperty(exports, 'default', {
enumerable: true,
get: function get() {
return _interopRequireDefault(_List).default;
}
});
var _ListItem = require('./ListItem');
Object.defineProperty(exports, 'ListItem', {
enumerable: true,
get: function get() {
return _interopRequireDefault(_ListItem).default;
}
});
var _ListItemAvatar = require('./ListItemAvatar');
Object.defineProperty(exports, 'ListItemAvatar', {
enumerable: true,
get: function get() {
return _interopRequireDefault(_ListItemAvatar).default;
}
});
var _ListItemText = require('./ListItemText');
Object.defineProperty(exports, 'ListItemText', {
enumerable: true,
get: function get() {
return _interopRequireDefault(_ListItemText).default;
}
});
var _ListItemIcon = require('./ListItemIcon');
Object.defineProperty(exports, 'ListItemIcon', {
enumerable: true,
get: function get() {
return _interopRequireDefault(_ListItemIcon).default;
}
});
var _ListItemSecondaryAction = require('./ListItemSecondaryAction');
Object.defineProperty(exports, 'ListItemSecondaryAction', {
enumerable: true,
get: function get() {
return _interopRequireDefault(_ListItemSecondaryAction).default;
}
});
var _ListSubheader = require('./ListSubheader');
Object.defineProperty(exports, 'ListSubheader', {
enumerable: true,
get: function get() {
return _interopRequireDefault(_ListSubheader).default;
}
});
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

View File

@@ -0,0 +1,9 @@
// @flow
export { default } from './List';
export { default as ListItem } from './ListItem';
export { default as ListItemAvatar } from './ListItemAvatar';
export { default as ListItemText } from './ListItemText';
export { default as ListItemIcon } from './ListItemIcon';
export { default as ListItemSecondaryAction } from './ListItemSecondaryAction';
export { default as ListSubheader } from './ListSubheader';