Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
? children
: cloneElement(children, {
className: 'Op(1) ' + children.props.className
})
return (
{child}
)
}
Overlay.propTypes = {
...BaseOverlay.propTypes,
children: PropTypes.node,
/**
* A react-overlays/lib/Transition component to use for
* the dialog and backdrop components.
* See http://react-bootstrap.github.io/react-overlays/examples/#transition
* for documentation.
*/
transition: PropTypes.element,
/**
* Set the visibility of the Overlay
*/
show: PropTypes.bool,
/**
* Specify whether the overlay should trigger
* onHide when the user clicks outside the overlay
*/
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import _extends from 'babel-runtime/helpers/extends';
import classNames from 'classnames';
import React, { cloneElement } from 'react';
import BaseOverlay from 'react-overlays/lib/Overlay';
import elementType from 'react-prop-types/lib/elementType';
import Fade from './Fade';
var propTypes = _extends({}, BaseOverlay.propTypes, {
/**
* Set the visibility of the Overlay
*/
show: React.PropTypes.bool,
/**
* Specify whether the overlay should trigger onHide when the user clicks outside the overlay
*/
rootClose: React.PropTypes.bool,
/**
* A callback invoked by the overlay when it wishes to be hidden. Required if
* `rootClose` is specified.
*/
onHide: React.PropTypes.func,
/**