UNPKG

@accordproject/markdown-editor

Version:

A rich text editor that can read and write markdown text. Based on Slate.js.

49 lines (34 loc) 3.89 kB
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.icon = exports.vBox = exports.padding = exports.width = exports.height = exports.type = void 0; var _react = _interopRequireDefault(require("react")); const type = () => 'link'; exports.type = type; const height = () => '25px'; exports.height = height; const width = () => '25px'; exports.width = width; const padding = () => '5px 5px'; exports.padding = padding; const vBox = () => '0 0 14 14'; exports.vBox = vBox; const icon = fillColor => _react.default.createElement("g", { stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd" }, _react.default.createElement("g", { transform: "translate(-727.000000, -48.000000)", fill: fillColor, fillRule: "nonzero" }, _react.default.createElement("g", { transform: "translate(727.000000, 48.000000)" }, _react.default.createElement("path", { d: "M6.10050375,10.7181733 L4.50391944,12.3141742 L4.50391947,12.3141742 C3.86064824,12.9288446 2.84768928,12.9288446 2.20441806,12.3141743 L1.6840844,11.794424 L1.68408431,11.7944239 C1.04934725,11.1595585 1.04934725,10.1303712 1.68408449,9.49550578 L5.06741991,6.11217037 L5.06741988,6.11217039 C5.70262361,5.47769 6.73171758,5.47769 7.3669213,6.11217034 L7.88783829,6.63250399 L7.88783828,6.63250399 C8.11625426,6.86091996 8.48658948,6.86091996 8.71500546,6.63250399 C8.94342143,6.40408802 8.94342143,6.03375279 8.71500546,5.80533682 C8.71500546,5.80533682 8.71500546,5.80533682 8.71500546,5.80533682 L8.19408847,5.28500316 L8.19408844,5.28500313 C7.1029686,4.19532996 5.33545584,4.19532996 4.24433601,5.2850032 L0.86100059,8.66833862 L0.861000611,8.6683386 C-0.22953006,9.7588226 -0.229576727,11.5268837 0.860907423,12.6174144 C0.860938471,12.6174454 0.860969519,12.6174765 0.861000569,12.6175075 L1.38133422,13.1372578 L1.38133403,13.1372576 C2.4707447,14.2279516 4.23806496,14.2289958 5.32875896,13.1395851 C5.32953511,13.1388099 5.3303108,13.1380342 5.33108604,13.137258 L6.92708703,11.5418404 L6.92708703,11.5418404 C7.15501942,11.314069 7.15515009,10.9446467 6.92737869,10.7167149 C6.6996073,10.4887825 6.33018499,10.4886518 6.10225319,10.7164232 C6.10225318,10.7164232 6.10225318,10.7164232 6.10225318,10.7164232 L6.10050375,10.7181733 Z" }), _react.default.createElement("path", { d: "M13.1401748,1.37841751 L12.6198411,0.858083861 L12.6198412,0.858083983 C11.5276014,-0.228316686 9.76291196,-0.228316686 8.67067212,0.85808374 L6.97608775,2.54975145 L6.97608774,2.54975146 C6.75227485,2.78148194 6.75869385,3.15077183 6.99042404,3.3745853 C7.21647926,3.5929166 7.57486606,3.5929166 7.80091954,3.37458528 L9.49258724,1.68291757 L9.49258715,1.68291767 C10.127855,1.04914894 11.1562373,1.04914894 11.7915052,1.68291747 L12.3124222,2.20383446 L12.3124222,2.20383442 C12.9474101,2.83818065 12.9479351,3.86718128 12.3135898,4.50216917 C12.3132008,4.50255856 12.3128116,4.50294774 12.3124223,4.50333673 L8.92908684,7.88667214 L8.92908689,7.8866721 C8.62488478,8.19273795 8.21086311,8.36435472 7.77933618,8.36325572 L7.77933618,8.36325572 L7.77933619,8.36325572 C7.34826076,8.36439236 6.93465733,8.1929847 6.63075215,7.88725543 L6.63075215,7.88725543 C6.41054193,7.65209846 6.04139262,7.63998203 5.80623914,7.86019208 C5.57108217,8.08040229 5.55896574,8.4495516 5.77917579,8.68470508 C5.78761627,8.69371846 5.79634091,8.70246159 5.80533638,8.71092121 L5.8053365,8.71092133 C6.32776607,9.23599516 7.03864393,9.530091 7.77933772,9.5275885 L7.77933772,9.5275885 L7.77933771,9.5275885 C8.520224,9.5301841 9.23131361,9.23608441 9.75392226,8.71092133 L13.1372577,5.32758592 L13.1372577,5.32758593 C14.2279517,4.23772026 14.2286225,2.47002667 13.1387594,1.37933267 C13.138259,1.3788319 13.1377585,1.37833133 13.1372577,1.37783095 L13.1401748,1.37841751 Z" })))); exports.icon = icon;