UNPKG

@atlaskit/editor-core

Version:

A package contains Atlassian editor core functionality

22 lines 1.25 kB
import * as tslib_1 from "tslib"; import * as React from 'react'; import { PureComponent } from 'react'; import Popup from '../Popup'; import { Container } from './styles'; var FloatingToolbar = (function (_super) { tslib_1.__extends(FloatingToolbar, _super); function FloatingToolbar() { return _super !== null && _super.apply(this, arguments) || this; } FloatingToolbar.prototype.render = function () { var _a = this.props, children = _a.children, className = _a.className, target = _a.target, offset = _a.offset, fitWidth = _a.fitWidth, fitHeight = _a.fitHeight, popupsMountPoint = _a.popupsMountPoint, popupsBoundariesElement = _a.popupsBoundariesElement, onPositionCalculated = _a.onPositionCalculated; if (!target) { return null; } return (React.createElement(Popup, { target: target, offset: offset, fitWidth: fitWidth, fitHeight: fitHeight, mountTo: popupsMountPoint, boundariesElement: popupsBoundariesElement, onPositionCalculated: onPositionCalculated }, React.createElement(Container, { className: "" + (className || '') }, children))); }; return FloatingToolbar; }(PureComponent)); export default FloatingToolbar; //# sourceMappingURL=index.js.map