MCPcopy Create free account
hub / github.com/docker/getting-started / Overlay_Overlay

Function Overlay_Overlay

app/src/static/js/react-bootstrap.js:15347–15377  ·  view source on GitHub ↗
(_ref)

Source from the content-addressed store, hash-verified

15345}
15346
15347function Overlay_Overlay(_ref) {
15348 var overlay = _ref.children,
15349 transition = _ref.transition,
15350 outerProps = _objectWithoutPropertiesLoose(_ref, ["children", "transition"]);
15351
15352 transition = transition === true ? src_Fade : transition || null;
15353 return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(Overlay_default.a, _extends({}, outerProps, {
15354 transition: transition,
15355 __source: {
15356 fileName: Overlay_jsxFileName,
15357 lineNumber: 127
15358 },
15359 __self: this
15360 }), function (_ref2) {
15361 var overlayProps = _ref2.props,
15362 arrowProps = _ref2.arrowProps,
15363 show = _ref2.show,
15364 props = _objectWithoutPropertiesLoose(_ref2, ["props", "arrowProps", "show"]);
15365
15366 wrapRefs(overlayProps, arrowProps);
15367 if (typeof overlay === 'function') return overlay(_extends({}, props, overlayProps, {
15368 show: show,
15369 arrowProps: arrowProps
15370 }));
15371 return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.cloneElement(overlay, _extends({}, props, overlayProps, {
15372 arrowProps: arrowProps,
15373 className: classnames_default()(overlay.props.className, !transition && show && 'show'),
15374 style: _extends({}, overlay.props.style, overlayProps.style)
15375 }));
15376 });
15377}
15378
15379Overlay_Overlay.propTypes = Overlay_propTypes;
15380Overlay_Overlay.defaultProps = Overlay_defaultProps;

Callers

nothing calls this directly

Calls 3

_extendsFunction · 0.85
wrapRefsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…