UNPKG

1.65 kBJavaScriptView Raw
1import _extends from "@babel/runtime/helpers/esm/extends";
2import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3import * as React from 'react';
4import PropTypes from 'prop-types';
5import clsx from 'clsx';
6import { withStyles } from '@material-ui/core/styles';
7export var styles = function styles() {
8 return {
9 /* Styles applied to the root element. */
10 root: {
11 display: 'flex',
12 flexDirection: 'column',
13 flex: 0,
14 alignItems: 'center'
15 }
16 };
17};
18var TimelineSeparator = /*#__PURE__*/React.forwardRef(function TimelineSeparator(props, ref) {
19 var classes = props.classes,
20 className = props.className,
21 other = _objectWithoutProperties(props, ["classes", "className"]);
22
23 return /*#__PURE__*/React.createElement("div", _extends({
24 className: clsx(classes.root, className),
25 ref: ref
26 }, other));
27});
28process.env.NODE_ENV !== "production" ? TimelineSeparator.propTypes = {
29 // ----------------------------- Warning --------------------------------
30 // | These PropTypes are generated from the TypeScript type definitions |
31 // | To update them edit the d.ts file and run "yarn proptypes" |
32 // ----------------------------------------------------------------------
33
34 /**
35 * The content of the component.
36 */
37 children: PropTypes.node,
38
39 /**
40 * Override or extend the styles applied to the component.
41 * See [CSS API](#css) below for more details.
42 */
43 classes: PropTypes.object,
44
45 /**
46 * @ignore
47 */
48 className: PropTypes.string
49} : void 0;
50export default withStyles(styles, {
51 name: 'MuiTimelineSeparator'
52})(TimelineSeparator);
\No newline at end of file