UNPKG

@atlaskit/editor-plugin-show-diff

Version:

ShowDiff plugin for @atlaskit/editor-core

25 lines 1.14 kB
/* IndicatorBar.tsx generated by @compiled/babel-plugin v2.0.0 */ import "./IndicatorBar.compiled.css"; import * as React from 'react'; import { ax, ix } from "@compiled/react/runtime"; import { AnchorDocMarginKey } from '../../pm-plugins/decorations/decorationKeys'; var barStyles = null; export function IndicatorBar(_ref) { var anchorTop = _ref.anchorTop, anchorBottom = _ref.anchorBottom, anchorLeft = _ref.anchorLeft, anchorLeftFallback = _ref.anchorLeftFallback; var leftAnchors = [anchorLeft, anchorLeftFallback, AnchorDocMarginKey].filter(Boolean).map(function (anchor) { return "anchor(--".concat(anchor, " left)"); }).join(', '); return /*#__PURE__*/React.createElement("span", { "data-testid": "diff-indicator-bar", style: { // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values left: "min(".concat(leftAnchors, ")"), top: "anchor(--".concat(anchorTop, " top)"), bottom: "anchor(--".concat(anchorBottom, " bottom)") }, className: ax(["_2rko1rr0 _kqswstnw _1bsb1l7b _bfhkvbh5 _lcxvglyw _18u0mgjw _17c61i8t _19pk196n _otyr196n"]) }); }