UNPKG

@atlaskit/editor-plugin-show-diff

Version:

ShowDiff plugin for @atlaskit/editor-core

24 lines 984 B
/* 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'; const barStyles = null; export function IndicatorBar({ anchorTop, anchorBottom, anchorLeft, anchorLeftFallback }) { const leftAnchors = [anchorLeft, anchorLeftFallback, AnchorDocMarginKey].filter(Boolean).map(anchor => `anchor(--${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(${leftAnchors})`, top: `anchor(--${anchorTop} top)`, bottom: `anchor(--${anchorBottom} bottom)` }, className: ax(["_2rko1rr0 _kqswstnw _1bsb1l7b _bfhkvbh5 _lcxvglyw _18u0mgjw _17c61i8t _19pk196n _otyr196n"]) }); }