UNPKG

@atlaskit/editor-core

Version:

A package contains Atlassian editor core functionality

20 lines 1.7 kB
import * as tslib_1 from "tslib"; import * as React from 'react'; import { Component } from 'react'; import styled from 'styled-components'; import { akBorderRadius, akColorN30, akColorN50, } from '@atlaskit/util-shared-styles'; // tslint:disable-next-line:variable-name var InlineNode = (_a = ["\n align-items: center;\n background: ", ";\n border: 1px dashed ", ";\n border-radius: ", ";\n box-sizing: border-box;\n cursor: default;\n display: inline-flex;\n font-size: 13px;\n margin: 0 2px;\n min-height: 24px;\n padding: 0 10px;\n user-select: all;\n vertical-align: middle;\n white-space: nowrap;\n\n '&.ProseMirror-selectednode' {\n background: ", ";\n outline: none;\n }\n"], _a.raw = ["\n align-items: center;\n background: ", ";\n border: 1px dashed ", ";\n border-radius: ", ";\n box-sizing: border-box;\n cursor: default;\n display: inline-flex;\n font-size: 13px;\n margin: 0 2px;\n min-height: 24px;\n padding: 0 10px;\n user-select: all;\n vertical-align: middle;\n white-space: nowrap;\n\n '&.ProseMirror-selectednode' {\n background: ", ";\n outline: none;\n }\n"], styled.span(_a, akColorN30, akColorN50, akBorderRadius, akColorN50)); var UnsupportedInlineNode = (function (_super) { tslib_1.__extends(UnsupportedInlineNode, _super); function UnsupportedInlineNode() { return _super !== null && _super.apply(this, arguments) || this; } UnsupportedInlineNode.prototype.render = function () { return (React.createElement(InlineNode, null, "Unsupported content")); }; return UnsupportedInlineNode; }(Component)); export default UnsupportedInlineNode; var _a; //# sourceMappingURL=unsupported-inline.js.map