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

View File

@@ -0,0 +1,23 @@
import * as React from 'react';
import { StandardProps } from '..';
export interface DividerProps extends StandardProps<
React.HTMLAttributes<HTMLHRElement>,
DividerClassKey
> {
absolute?: boolean;
inset?: boolean;
light?: boolean;
}
export type DividerClassKey =
| 'root'
| 'default'
| 'inset'
| 'light'
| 'absolute'
;
declare const Divider: React.ComponentType<DividerProps>;
export default Divider;

View File

@@ -0,0 +1,52 @@
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: {
height: 1,
margin: 0, // Reset browser default style.
border: 'none',
flexShrink: 0
},
default: {
backgroundColor: theme.palette.text.divider
},
inset: {
marginLeft: 72
},
light: {
backgroundColor: theme.palette.text.lightDivider
},
absolute: {
position: 'absolute',
bottom: 0,
left: 0,
width: '100%'
}
});
function Divider(props) {
const { absolute, classes, className: classNameProp, inset, light } = props,
other = _objectWithoutProperties(props, ['absolute', 'classes', 'className', 'inset', 'light']);
const className = classNames(classes.root, {
[classes.absolute]: absolute,
[classes.inset]: inset,
[light ? classes.light : classes.default]: true
}, classNameProp);
return React.createElement('hr', _extends({ className: className }, other));
}
Divider.defaultProps = {
absolute: false,
inset: false,
light: false
};
export default withStyles(styles, { name: 'MuiDivider' })(Divider);

View File

@@ -0,0 +1,2 @@
export { default } from './Divider';
export * from './Divider';

View File

@@ -0,0 +1 @@
export { default } from './Divider';