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