x-star-editor 0.2.2 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/dist/components/FileInput.js +2 -2
  2. package/dist/components/Toolbar.js +80 -67
  3. package/dist/icons/Blockquote.d.ts +4 -0
  4. package/dist/icons/Blockquote.js +16 -0
  5. package/dist/icons/Code.d.ts +4 -0
  6. package/dist/icons/Code.js +15 -0
  7. package/dist/icons/Delete.d.ts +4 -0
  8. package/dist/icons/Delete.js +15 -0
  9. package/dist/icons/Emphasis.d.ts +4 -0
  10. package/dist/icons/Emphasis.js +15 -0
  11. package/dist/icons/EnterFullscreen.d.ts +4 -0
  12. package/dist/icons/EnterFullscreen.js +15 -0
  13. package/dist/icons/ExitFullscreen.d.ts +4 -0
  14. package/dist/icons/ExitFullscreen.js +15 -0
  15. package/dist/icons/Heading.d.ts +4 -0
  16. package/dist/icons/Heading.js +15 -0
  17. package/dist/icons/Image.d.ts +4 -0
  18. package/dist/icons/Image.js +15 -0
  19. package/dist/icons/InlineCode.d.ts +4 -0
  20. package/dist/icons/InlineCode.js +19 -0
  21. package/dist/icons/InlineMath.d.ts +4 -0
  22. package/dist/icons/InlineMath.js +25 -0
  23. package/dist/icons/Link.d.ts +4 -0
  24. package/dist/icons/Link.js +15 -0
  25. package/dist/icons/Math.d.ts +4 -0
  26. package/dist/icons/Math.js +15 -0
  27. package/dist/icons/OrderedList.d.ts +4 -0
  28. package/dist/icons/OrderedList.js +15 -0
  29. package/dist/icons/Redo.d.ts +4 -0
  30. package/dist/icons/Redo.js +15 -0
  31. package/dist/icons/Strong.d.ts +4 -0
  32. package/dist/icons/Strong.js +15 -0
  33. package/dist/icons/Table.d.ts +4 -0
  34. package/dist/icons/Table.js +15 -0
  35. package/dist/icons/ThematicBreak.d.ts +4 -0
  36. package/dist/icons/ThematicBreak.js +15 -0
  37. package/dist/icons/ToHtml.d.ts +4 -0
  38. package/dist/icons/ToHtml.js +15 -0
  39. package/dist/icons/ToMarkdown.d.ts +4 -0
  40. package/dist/icons/ToMarkdown.js +15 -0
  41. package/dist/icons/Undo.d.ts +4 -0
  42. package/dist/icons/Undo.js +15 -0
  43. package/dist/icons/UnorderedList.d.ts +4 -0
  44. package/dist/icons/UnorderedList.js +15 -0
  45. package/dist/locales/en_US.d.ts +5 -0
  46. package/dist/locales/en_US.js +6 -1
  47. package/dist/locales/index.d.ts +20 -0
  48. package/dist/locales/zh_CN.d.ts +5 -0
  49. package/dist/locales/zh_CN.js +6 -1
  50. package/dist/styles/index.css +8 -69
  51. package/dist/utils/container.d.ts +2 -3
  52. package/dist/utils/container.js +2 -7
  53. package/dist/utils/markdown.d.ts +2 -2
  54. package/dist/utils/markdown.js +46 -20
  55. package/dist/x-star-editor/index.js +3 -3
  56. package/dist/x-star-md-editor/index.js +4 -3
  57. package/dist/x-star-md-viewer/index.js +32 -14
  58. package/package.json +9 -5
  59. package/dist/styles/icons/blockquote.svg +0 -18
  60. package/dist/styles/icons/code.svg +0 -18
  61. package/dist/styles/icons/delete.svg +0 -18
  62. package/dist/styles/icons/emphasis.svg +0 -18
  63. package/dist/styles/icons/fullscreen-enter.svg +0 -18
  64. package/dist/styles/icons/fullscreen-exit.svg +0 -18
  65. package/dist/styles/icons/heading.svg +0 -16
  66. package/dist/styles/icons/image.svg +0 -18
  67. package/dist/styles/icons/inline-code.svg +0 -19
  68. package/dist/styles/icons/inline-math.svg +0 -20
  69. package/dist/styles/icons/link.svg +0 -18
  70. package/dist/styles/icons/math.svg +0 -17
  71. package/dist/styles/icons/ordered-list.svg +0 -18
  72. package/dist/styles/icons/redo.svg +0 -18
  73. package/dist/styles/icons/strong.svg +0 -18
  74. package/dist/styles/icons/table.svg +0 -18
  75. package/dist/styles/icons/thematic-break.svg +0 -18
  76. package/dist/styles/icons/to-html.svg +0 -18
  77. package/dist/styles/icons/to-markdown.svg +0 -18
  78. package/dist/styles/icons/undo.svg +0 -18
  79. package/dist/styles/icons/unordered-list.svg +0 -18
@@ -19,7 +19,7 @@ var FileInput = function FileInput(_ref) {
19
19
  var _useState5 = useState(''),
20
20
  _useState6 = _slicedToArray(_useState5, 2),
21
21
  url = _useState6[0],
22
- setUrl = _useState6[1];
22
+ setURL = _useState6[1];
23
23
  var _useState7 = useState(''),
24
24
  _useState8 = _slicedToArray(_useState7, 2),
25
25
  description = _useState8[0],
@@ -63,7 +63,7 @@ var FileInput = function FileInput(_ref) {
63
63
  }, t('url'), /*#__PURE__*/React.createElement("input", {
64
64
  className: classNames("".concat(prefix, "input")),
65
65
  onChange: function onChange(e) {
66
- return setUrl(e.target.value);
66
+ return setURL(e.target.value);
67
67
  }
68
68
  })), /*#__PURE__*/React.createElement("label", {
69
69
  className: classNames("".concat(prefix, "field"))
@@ -2,6 +2,27 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
2
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
3
3
  import classNames from 'classnames';
4
4
  import React, { useEffect, useRef, useState } from 'react';
5
+ import SvgBlockquote from "../icons/Blockquote";
6
+ import SvgCode from "../icons/Code";
7
+ import SvgDelete from "../icons/Delete";
8
+ import SvgEmphasis from "../icons/Emphasis";
9
+ import SvgEnterFullscreen from "../icons/EnterFullscreen";
10
+ import SvgExitFullscreen from "../icons/ExitFullscreen";
11
+ import SvgHeading from "../icons/Heading";
12
+ import SvgImage from "../icons/Image";
13
+ import SvgInlineCode from "../icons/InlineCode";
14
+ import SvgInlineMath from "../icons/InlineMath";
15
+ import SvgLink from "../icons/Link";
16
+ import SvgMath from "../icons/Math";
17
+ import SvgOrderedList from "../icons/OrderedList";
18
+ import SvgRedo from "../icons/Redo";
19
+ import SvgStrong from "../icons/Strong";
20
+ import SvgTable from "../icons/Table";
21
+ import SvgThematicBreak from "../icons/ThematicBreak";
22
+ import SvgToHTML from "../icons/ToHtml";
23
+ import SvgToMarkdown from "../icons/ToMarkdown";
24
+ import SvgUndo from "../icons/Undo";
25
+ import SvgUnorderedList from "../icons/UnorderedList";
5
26
  import { getFormat } from "../locales";
6
27
  import { createSelection } from "../utils/container";
7
28
  import { prefix } from "../utils/global";
@@ -88,14 +109,14 @@ var Button = function Button(_ref) {
88
109
  }, popover)));
89
110
  };
90
111
  export var getDefaultToolbarItemMap = function getDefaultToolbarItemMap() {
112
+ var _SvgEnterFullscreen, _t;
91
113
  var locale = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
92
114
  var onInsertFile = arguments.length > 1 ? arguments[1] : undefined;
93
- var iconPrefix = "".concat(prefix, "icon-");
94
115
  var t = getFormat(locale, 'toolbarItem');
95
116
  return {
96
117
  blockquote: {
97
- children: /*#__PURE__*/React.createElement("div", {
98
- className: classNames("".concat(prefix, "icon"), "".concat(iconPrefix, "blockquote"))
118
+ children: /*#__PURE__*/React.createElement(SvgBlockquote, {
119
+ className: classNames("".concat(prefix, "icon"))
99
120
  }),
100
121
  tooltip: t('blockquote'),
101
122
  onClick: function onClick(exec) {
@@ -105,8 +126,8 @@ export var getDefaultToolbarItemMap = function getDefaultToolbarItemMap() {
105
126
  }
106
127
  },
107
128
  code: {
108
- children: /*#__PURE__*/React.createElement("div", {
109
- className: classNames("".concat(prefix, "icon"), "".concat(iconPrefix, "code"))
129
+ children: /*#__PURE__*/React.createElement(SvgCode, {
130
+ className: classNames("".concat(prefix, "icon"))
110
131
  }),
111
132
  tooltip: t('code'),
112
133
  popoverRender: function popoverRender(exec, close) {
@@ -126,8 +147,8 @@ export var getDefaultToolbarItemMap = function getDefaultToolbarItemMap() {
126
147
  }
127
148
  },
128
149
  delete: {
129
- children: /*#__PURE__*/React.createElement("div", {
130
- className: classNames("".concat(prefix, "icon"), "".concat(iconPrefix, "delete"))
150
+ children: /*#__PURE__*/React.createElement(SvgDelete, {
151
+ className: classNames("".concat(prefix, "icon"))
131
152
  }),
132
153
  tooltip: t('delete'),
133
154
  onClick: function onClick(exec) {
@@ -137,8 +158,8 @@ export var getDefaultToolbarItemMap = function getDefaultToolbarItemMap() {
137
158
  }
138
159
  },
139
160
  emphasis: {
140
- children: /*#__PURE__*/React.createElement("div", {
141
- className: classNames("".concat(prefix, "icon"), "".concat(iconPrefix, "emphasis"))
161
+ children: /*#__PURE__*/React.createElement(SvgEmphasis, {
162
+ className: classNames("".concat(prefix, "icon"))
142
163
  }),
143
164
  tooltip: t('emphasis'),
144
165
  onClick: function onClick(exec) {
@@ -147,20 +168,17 @@ export var getDefaultToolbarItemMap = function getDefaultToolbarItemMap() {
147
168
  }));
148
169
  }
149
170
  },
150
- // fullscreen: {
151
- // children: (
152
- // <div
153
- // className={classNames(
154
- // `${prefix}icon`,
155
- // `${iconPrefix}fullscreen-enter`,
156
- // )}
157
- // />
158
- // ),
159
- // },
160
-
171
+ fullscreen: {
172
+ children: (_SvgEnterFullscreen = /*#__PURE__*/React.createElement(SvgEnterFullscreen, {
173
+ className: classNames("".concat(prefix, "icon"))
174
+ })) !== null && _SvgEnterFullscreen !== void 0 ? _SvgEnterFullscreen : /*#__PURE__*/React.createElement(SvgExitFullscreen, {
175
+ className: classNames("".concat(prefix, "icon"))
176
+ }),
177
+ tooltip: (_t = t('enterFullscreen')) !== null && _t !== void 0 ? _t : t('exitFullscreen')
178
+ },
161
179
  heading: {
162
- children: /*#__PURE__*/React.createElement("div", {
163
- className: classNames("".concat(prefix, "icon"), "".concat(iconPrefix, "heading"))
180
+ children: /*#__PURE__*/React.createElement(SvgHeading, {
181
+ className: classNames("".concat(prefix, "icon"))
164
182
  }),
165
183
  tooltip: t('heading'),
166
184
  popoverRender: function popoverRender(exec, close) {
@@ -183,8 +201,8 @@ export var getDefaultToolbarItemMap = function getDefaultToolbarItemMap() {
183
201
  }
184
202
  },
185
203
  image: {
186
- children: /*#__PURE__*/React.createElement("div", {
187
- className: classNames("".concat(prefix, "icon"), "".concat(iconPrefix, "image"))
204
+ children: /*#__PURE__*/React.createElement(SvgImage, {
205
+ className: classNames("".concat(prefix, "icon"))
188
206
  }),
189
207
  tooltip: t('image'),
190
208
  popoverRender: function popoverRender(exec, close) {
@@ -209,8 +227,8 @@ export var getDefaultToolbarItemMap = function getDefaultToolbarItemMap() {
209
227
  }
210
228
  },
211
229
  inlineCode: {
212
- children: /*#__PURE__*/React.createElement("div", {
213
- className: classNames("".concat(prefix, "icon"), "".concat(iconPrefix, "inline-code"))
230
+ children: /*#__PURE__*/React.createElement(SvgInlineCode, {
231
+ className: classNames("".concat(prefix, "icon"))
214
232
  }),
215
233
  tooltip: t('inlineCode'),
216
234
  onClick: function onClick(exec) {
@@ -220,8 +238,8 @@ export var getDefaultToolbarItemMap = function getDefaultToolbarItemMap() {
220
238
  }
221
239
  },
222
240
  inlineMath: {
223
- children: /*#__PURE__*/React.createElement("div", {
224
- className: classNames("".concat(prefix, "icon"), "".concat(iconPrefix, "inline-math"))
241
+ children: /*#__PURE__*/React.createElement(SvgInlineMath, {
242
+ className: classNames("".concat(prefix, "icon"))
225
243
  }),
226
244
  tooltip: t('inlineMath'),
227
245
  onClick: function onClick(exec) {
@@ -231,8 +249,8 @@ export var getDefaultToolbarItemMap = function getDefaultToolbarItemMap() {
231
249
  }
232
250
  },
233
251
  link: {
234
- children: /*#__PURE__*/React.createElement("div", {
235
- className: classNames("".concat(prefix, "icon"), "".concat(iconPrefix, "link"))
252
+ children: /*#__PURE__*/React.createElement(SvgLink, {
253
+ className: classNames("".concat(prefix, "icon"))
236
254
  }),
237
255
  tooltip: t('link'),
238
256
  popoverRender: function popoverRender(exec, close) {
@@ -257,8 +275,8 @@ export var getDefaultToolbarItemMap = function getDefaultToolbarItemMap() {
257
275
  }
258
276
  },
259
277
  math: {
260
- children: /*#__PURE__*/React.createElement("div", {
261
- className: classNames("".concat(prefix, "icon"), "".concat(iconPrefix, "math"))
278
+ children: /*#__PURE__*/React.createElement(SvgMath, {
279
+ className: classNames("".concat(prefix, "icon"))
262
280
  }),
263
281
  tooltip: t('math'),
264
282
  onClick: function onClick(exec) {
@@ -267,19 +285,17 @@ export var getDefaultToolbarItemMap = function getDefaultToolbarItemMap() {
267
285
  }));
268
286
  }
269
287
  },
270
- // orderedList: {
271
- // children: (
272
- // <div
273
- // className={classNames(`${prefix}icon`, `${iconPrefix}ordered-list`)}
274
- // />
275
- // ),
276
- // },
277
-
288
+ orderedList: {
289
+ children: /*#__PURE__*/React.createElement(SvgOrderedList, {
290
+ className: classNames("".concat(prefix, "icon"))
291
+ }),
292
+ tooltip: t('orderedList')
293
+ },
278
294
  redo: function redo(_ref2) {
279
295
  var history = _ref2.history;
280
296
  return {
281
- children: /*#__PURE__*/React.createElement("div", {
282
- className: classNames("".concat(prefix, "icon"), "".concat(iconPrefix, "redo"))
297
+ children: /*#__PURE__*/React.createElement(SvgRedo, {
298
+ className: classNames("".concat(prefix, "icon"))
283
299
  }),
284
300
  disabled: history.index === history.states.length - 1,
285
301
  tooltip: t('redo'),
@@ -289,8 +305,8 @@ export var getDefaultToolbarItemMap = function getDefaultToolbarItemMap() {
289
305
  };
290
306
  },
291
307
  strong: {
292
- children: /*#__PURE__*/React.createElement("div", {
293
- className: classNames("".concat(prefix, "icon"), "".concat(iconPrefix, "strong"))
308
+ children: /*#__PURE__*/React.createElement(SvgStrong, {
309
+ className: classNames("".concat(prefix, "icon"))
294
310
  }),
295
311
  tooltip: t('strong'),
296
312
  onClick: function onClick(exec) {
@@ -299,15 +315,15 @@ export var getDefaultToolbarItemMap = function getDefaultToolbarItemMap() {
299
315
  }));
300
316
  }
301
317
  },
302
- // table: {
303
- // children: (
304
- // <div className={classNames(`${prefix}icon`, `${iconPrefix}table`)} />
305
- // ),
306
- // },
307
-
318
+ table: {
319
+ children: /*#__PURE__*/React.createElement(SvgTable, {
320
+ className: classNames("".concat(prefix, "icon"))
321
+ }),
322
+ tooltip: t('table')
323
+ },
308
324
  thematicBreak: {
309
- children: /*#__PURE__*/React.createElement("div", {
310
- className: classNames("".concat(prefix, "icon"), "".concat(iconPrefix, "thematic-break"))
325
+ children: /*#__PURE__*/React.createElement(SvgThematicBreak, {
326
+ className: classNames("".concat(prefix, "icon"))
311
327
  }),
312
328
  tooltip: t('thematicBreak'),
313
329
  onClick: function onClick(exec) {
@@ -317,8 +333,8 @@ export var getDefaultToolbarItemMap = function getDefaultToolbarItemMap() {
317
333
  }
318
334
  },
319
335
  toHTML: {
320
- children: /*#__PURE__*/React.createElement("div", {
321
- className: classNames("".concat(prefix, "icon"), "".concat(iconPrefix, "to-html"))
336
+ children: /*#__PURE__*/React.createElement(SvgToHTML, {
337
+ className: classNames("".concat(prefix, "icon"))
322
338
  }),
323
339
  tooltip: t('toHTML'),
324
340
  onClick: function onClick(exec) {
@@ -338,8 +354,8 @@ export var getDefaultToolbarItemMap = function getDefaultToolbarItemMap() {
338
354
  }
339
355
  },
340
356
  toMarkdown: {
341
- children: /*#__PURE__*/React.createElement("div", {
342
- className: classNames("".concat(prefix, "icon"), "".concat(iconPrefix, "to-markdown"))
357
+ children: /*#__PURE__*/React.createElement(SvgToMarkdown, {
358
+ className: classNames("".concat(prefix, "icon"))
343
359
  }),
344
360
  tooltip: t('toMarkdown'),
345
361
  onClick: function onClick(exec) {
@@ -361,8 +377,8 @@ export var getDefaultToolbarItemMap = function getDefaultToolbarItemMap() {
361
377
  undo: function undo(_ref5) {
362
378
  var history = _ref5.history;
363
379
  return {
364
- children: /*#__PURE__*/React.createElement("div", {
365
- className: classNames("".concat(prefix, "icon"), "".concat(iconPrefix, "undo"))
380
+ children: /*#__PURE__*/React.createElement(SvgUndo, {
381
+ className: classNames("".concat(prefix, "icon"))
366
382
  }),
367
383
  disabled: !history.index,
368
384
  tooltip: t('undo'),
@@ -370,18 +386,15 @@ export var getDefaultToolbarItemMap = function getDefaultToolbarItemMap() {
370
386
  return exec(undoHandler());
371
387
  }
372
388
  };
389
+ },
390
+ unorderedList: {
391
+ children: /*#__PURE__*/React.createElement(SvgUnorderedList, {
392
+ className: classNames("".concat(prefix, "icon"))
393
+ }),
394
+ tooltip: t('unorderedList')
373
395
  }
374
-
375
- // unorderedList: {
376
- // children: (
377
- // <div
378
- // className={classNames(`${prefix}icon`, `${iconPrefix}unordered-list`)}
379
- // />
380
- // ),
381
- // },
382
396
  };
383
397
  };
384
-
385
398
  export var getDefaultToolbarItems = function getDefaultToolbarItems() {
386
399
  return [['heading', 'strong', 'emphasis', 'delete'], ['thematicBreak', 'blockquote'],
387
400
  // ['table', 'orderedList', 'unorderedList'],
@@ -0,0 +1,4 @@
1
+ import type { SVGProps } from 'react';
2
+ import React from 'react';
3
+ declare const SvgBlockquote: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default SvgBlockquote;
@@ -0,0 +1,16 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
2
+ import React from 'react';
3
+ var SvgBlockquote = function SvgBlockquote(props) {
4
+ return /*#__PURE__*/React.createElement("svg", _extends({
5
+ xmlns: "http://www.w3.org/2000/svg",
6
+ width: "1em",
7
+ height: "1em",
8
+ viewBox: "0 0 24 24"
9
+ }, props), /*#__PURE__*/React.createElement("g", {
10
+ fill: "currentColor",
11
+ fillRule: "evenodd"
12
+ }, /*#__PURE__*/React.createElement("path", {
13
+ d: "M10.75 8.067c-1.93 1.24-3.003 2.683-3.217 4.33-.334 2.563 1.958 3.818 3.12 2.69 1.161-1.127.465-2.558-.376-2.949-.841-.39-1.355-.255-1.266-.777.09-.523 1.287-1.972 2.338-2.647a.192.192 0 0 0 .029-.262l-.26-.337c-.113-.147-.221-.142-.367-.048ZM15.834 8.067c-1.93 1.24-3.003 2.683-3.218 4.33-.334 2.563 1.959 3.818 3.12 2.69 1.161-1.127.465-2.558-.376-2.949-.84-.39-1.355-.255-1.265-.777.09-.523 1.286-1.972 2.337-2.647a.192.192 0 0 0 .03-.262l-.26-.337c-.114-.147-.222-.142-.368-.048Z"
14
+ })));
15
+ };
16
+ export default SvgBlockquote;
@@ -0,0 +1,4 @@
1
+ import type { SVGProps } from 'react';
2
+ import React from 'react';
3
+ declare const SvgCode: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default SvgCode;
@@ -0,0 +1,15 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
2
+ import React from 'react';
3
+ var SvgCode = function SvgCode(props) {
4
+ return /*#__PURE__*/React.createElement("svg", _extends({
5
+ xmlns: "http://www.w3.org/2000/svg",
6
+ width: "1em",
7
+ height: "1em",
8
+ viewBox: "0 0 24 24"
9
+ }, props), /*#__PURE__*/React.createElement("path", {
10
+ fill: "currentColor",
11
+ fillRule: "nonzero",
12
+ d: "M8 15.47v-2.153c0-.482-.336-.872-.75-.872H7v-.93h.25c.414 0 .75-.391.75-.873V8.49c0-.964.672-1.745 1.5-1.745h.5v1.163h-.5a.467.467 0 0 0-.354.17A.633.633 0 0 0 9 8.49v2.384c0 .503-.277.948-.687 1.106.41.157.687.602.687 1.105v2.384c0 .155.053.303.146.412.094.109.221.17.354.17h.5v1.163h-.5c-.828 0-1.5-.781-1.5-1.745Zm8.143 0c0 .963-.672 1.744-1.5 1.744h-.5v-1.163h.5c.276 0 .5-.26.5-.582v-2.384c0-.503.277-.948.687-1.105-.41-.158-.687-.603-.687-1.106V8.49c0-.321-.224-.582-.5-.582h-.5V6.745h.5c.828 0 1.5.781 1.5 1.745v2.152c0 .482.336.872.75.872h.25v.93h-.25c-.414 0-.75.391-.75.873v2.152Z"
13
+ }));
14
+ };
15
+ export default SvgCode;
@@ -0,0 +1,4 @@
1
+ import type { SVGProps } from 'react';
2
+ import React from 'react';
3
+ declare const SvgDelete: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default SvgDelete;
@@ -0,0 +1,15 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
2
+ import React from 'react';
3
+ var SvgDelete = function SvgDelete(props) {
4
+ return /*#__PURE__*/React.createElement("svg", _extends({
5
+ xmlns: "http://www.w3.org/2000/svg",
6
+ width: "1em",
7
+ height: "1em",
8
+ viewBox: "0 0 24 24"
9
+ }, props), /*#__PURE__*/React.createElement("path", {
10
+ fill: "currentColor",
11
+ fillRule: "nonzero",
12
+ d: "M18.016 11.48h-5.224l-.432-.082-.422-.079c-.7-.137-1.123-.273-1.46-.467-.48-.28-.713-.66-.713-1.164 0-.506.207-.926.601-1.217.388-.287.94-.439 1.597-.439.75 0 1.328.197 1.72.586.2.196.346.438.435.719.018.056.038.136.059.243a.139.139 0 0 0 .135.112h.995a.139.139 0 0 0 .138-.138V9.54a2.584 2.584 0 0 0-.844-1.727c-.606-.553-1.499-.844-2.58-.844-.988 0-1.878.247-2.505.696-.35.251-.62.563-.801.925-.185.37-.278.799-.278 1.27 0 .404.078.745.237 1.046.113.215.268.404.466.574H5.984a.11.11 0 0 0-.109.11v.82c0 .06.05.11.11.11h5.922l.08.016c.423.085.677.142.911.208.315.089.555.182.755.294.49.276.729.672.729 1.216 0 .483-.212.914-.596 1.215-.417.326-1.034.497-1.785.497-.597 0-1.103-.116-1.506-.342a1.738 1.738 0 0 1-.853-1.073.14.14 0 0 0-.133-.102h-1.09a.139.139 0 0 0-.138.138v.013l.008.078c.09.668.415 1.214.967 1.625.644.475 1.55.727 2.622.727 1.151 0 2.117-.27 2.792-.784.342-.258.604-.576.78-.943.179-.37.27-.791.27-1.25 0-.436-.08-.8-.243-1.114a1.882 1.882 0 0 0-.298-.42h2.837c.06 0 .109-.05.109-.11v-.82a.11.11 0 0 0-.11-.109Z"
13
+ }));
14
+ };
15
+ export default SvgDelete;
@@ -0,0 +1,4 @@
1
+ import type { SVGProps } from 'react';
2
+ import React from 'react';
3
+ declare const SvgEmphasis: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default SvgEmphasis;
@@ -0,0 +1,15 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
2
+ import React from 'react';
3
+ var SvgEmphasis = function SvgEmphasis(props) {
4
+ return /*#__PURE__*/React.createElement("svg", _extends({
5
+ xmlns: "http://www.w3.org/2000/svg",
6
+ width: "1em",
7
+ height: "1em",
8
+ viewBox: "0 0 24 24"
9
+ }, props), /*#__PURE__*/React.createElement("path", {
10
+ fill: "currentColor",
11
+ fillRule: "nonzero",
12
+ d: "M15.91 7.188h-5.906a.11.11 0 0 0-.11.109v.875c0 .06.05.11.11.11h2.477l-2.133 7.437H8.131a.11.11 0 0 0-.11.11v.874c0 .06.05.11.11.11h5.906c.06 0 .11-.05.11-.11v-.875a.11.11 0 0 0-.11-.11h-2.551l2.133-7.437h2.291c.06 0 .11-.049.11-.11v-.874a.11.11 0 0 0-.11-.11Z"
13
+ }));
14
+ };
15
+ export default SvgEmphasis;
@@ -0,0 +1,4 @@
1
+ import type { SVGProps } from 'react';
2
+ import React from 'react';
3
+ declare const SvgEnterFullscreen: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default SvgEnterFullscreen;
@@ -0,0 +1,15 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
2
+ import React from 'react';
3
+ var SvgEnterFullscreen = function SvgEnterFullscreen(props) {
4
+ return /*#__PURE__*/React.createElement("svg", _extends({
5
+ xmlns: "http://www.w3.org/2000/svg",
6
+ width: "1em",
7
+ height: "1em",
8
+ viewBox: "0 0 24 24"
9
+ }, props), /*#__PURE__*/React.createElement("path", {
10
+ fill: "currentColor",
11
+ fillRule: "nonzero",
12
+ d: "M9.795 6.5h-2.88a.415.415 0 0 0-.415.415v2.906c0 .114.093.207.208.207h.622a.208.208 0 0 0 .208-.207V7.538h2.257a.208.208 0 0 0 .207-.208v-.622a.208.208 0 0 0-.207-.208Zm7.497 7.472h-.622a.208.208 0 0 0-.208.207v2.283h-2.257a.208.208 0 0 0-.207.208v.622c0 .115.093.208.207.208h2.88c.23 0 .415-.185.415-.415v-2.906a.208.208 0 0 0-.208-.207Zm-7.497 2.49H7.538V14.18a.208.208 0 0 0-.208-.207h-.622a.208.208 0 0 0-.208.207v2.906c0 .23.185.415.415.415h2.88a.208.208 0 0 0 .207-.208v-.622a.208.208 0 0 0-.207-.208Zm7.29-9.962h-2.88a.208.208 0 0 0-.207.208v.622c0 .114.093.208.207.208h2.257V9.82c0 .114.094.207.208.207h.622a.208.208 0 0 0 .208-.207V6.915a.415.415 0 0 0-.415-.415Z"
13
+ }));
14
+ };
15
+ export default SvgEnterFullscreen;
@@ -0,0 +1,4 @@
1
+ import type { SVGProps } from 'react';
2
+ import React from 'react';
3
+ declare const SvgExitFullscreen: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default SvgExitFullscreen;
@@ -0,0 +1,15 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
2
+ import React from 'react';
3
+ var SvgExitFullscreen = function SvgExitFullscreen(props) {
4
+ return /*#__PURE__*/React.createElement("svg", _extends({
5
+ xmlns: "http://www.w3.org/2000/svg",
6
+ width: "1em",
7
+ height: "1em",
8
+ viewBox: "0 0 24 24"
9
+ }, props), /*#__PURE__*/React.createElement("path", {
10
+ fill: "currentColor",
11
+ fillRule: "nonzero",
12
+ d: "M9.587 13.972h-2.88a.208.208 0 0 0-.207.207v.623c0 .114.093.207.208.207h2.257v2.283c0 .115.093.208.207.208h.623a.208.208 0 0 0 .207-.208v-2.905a.415.415 0 0 0-.415-.415ZM9.795 6.5h-.623a.208.208 0 0 0-.207.208V8.99H6.708a.208.208 0 0 0-.208.207v.623c0 .114.093.207.208.207h2.88c.229 0 .414-.185.414-.415V6.708a.208.208 0 0 0-.207-.208Zm7.497 7.472h-2.88a.415.415 0 0 0-.414.415v2.905c0 .115.093.208.207.208h.623a.208.208 0 0 0 .207-.208V15.01h2.257a.208.208 0 0 0 .208-.207v-.623a.208.208 0 0 0-.208-.207Zm0-4.981h-2.257V6.708a.208.208 0 0 0-.207-.208h-.623a.208.208 0 0 0-.207.208v2.905c0 .23.185.415.415.415h2.88a.208.208 0 0 0 .207-.207v-.623a.208.208 0 0 0-.208-.207Z"
13
+ }));
14
+ };
15
+ export default SvgExitFullscreen;
@@ -0,0 +1,4 @@
1
+ import type { SVGProps } from 'react';
2
+ import React from 'react';
3
+ declare const SvgHeading: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default SvgHeading;
@@ -0,0 +1,15 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
2
+ import React from 'react';
3
+ var SvgHeading = function SvgHeading(props) {
4
+ return /*#__PURE__*/React.createElement("svg", _extends({
5
+ xmlns: "http://www.w3.org/2000/svg",
6
+ width: "1em",
7
+ height: "1em",
8
+ viewBox: "0 0 24 24"
9
+ }, props), /*#__PURE__*/React.createElement("path", {
10
+ fill: "currentColor",
11
+ fillRule: "nonzero",
12
+ d: "M9.524 7.331c.06 0 .11.08.11.179v4.208h4.9V7.51c0-.079.032-.146.075-.17l.035-.009h.88c.06 0 .11.08.11.179v9.643c0 .098-.05.178-.11.178h-.88c-.06 0-.11-.08-.11-.178v-4.335h-4.9v4.335c0 .078-.032.145-.075.17l-.035.008h-.88c-.06 0-.11-.08-.11-.178V7.51c0-.098.05-.179.11-.179Z"
13
+ }));
14
+ };
15
+ export default SvgHeading;
@@ -0,0 +1,4 @@
1
+ import type { SVGProps } from 'react';
2
+ import React from 'react';
3
+ declare const SvgImage: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default SvgImage;
@@ -0,0 +1,15 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
2
+ import React from 'react';
3
+ var SvgImage = function SvgImage(props) {
4
+ return /*#__PURE__*/React.createElement("svg", _extends({
5
+ xmlns: "http://www.w3.org/2000/svg",
6
+ width: "1em",
7
+ height: "1em",
8
+ viewBox: "0 0 24 24"
9
+ }, props), /*#__PURE__*/React.createElement("path", {
10
+ fill: "currentColor",
11
+ fillRule: "nonzero",
12
+ d: "M17.688 7.188H6.313a.437.437 0 0 0-.438.437v8.75c0 .242.196.438.438.438h11.375a.437.437 0 0 0 .437-.438v-8.75a.437.437 0 0 0-.438-.438Zm-.547 8.64H6.859v-.545l1.894-2.247 2.052 2.434 3.192-3.784 3.144 3.726v.416Zm0-1.774-3.06-3.629a.109.109 0 0 0-.167 0l-3.109 3.686-1.969-2.334a.109.109 0 0 0-.166 0l-1.81 2.147V8.172h10.28v5.882Zm-7.985-2.82a1.203 1.203 0 1 0 0-2.406 1.203 1.203 0 0 0 0 2.406Zm0-1.586a.382.382 0 1 1 .002.765.382.382 0 0 1-.002-.765Z"
13
+ }));
14
+ };
15
+ export default SvgImage;
@@ -0,0 +1,4 @@
1
+ import type { SVGProps } from 'react';
2
+ import React from 'react';
3
+ declare const SvgInlineCode: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default SvgInlineCode;
@@ -0,0 +1,19 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
2
+ import React from 'react';
3
+ var SvgInlineCode = function SvgInlineCode(props) {
4
+ return /*#__PURE__*/React.createElement("svg", _extends({
5
+ xmlns: "http://www.w3.org/2000/svg",
6
+ width: "1em",
7
+ height: "1em",
8
+ viewBox: "0 0 24 24"
9
+ }, props), /*#__PURE__*/React.createElement("g", {
10
+ fill: "currentColor",
11
+ fillRule: "nonzero"
12
+ }, /*#__PURE__*/React.createElement("path", {
13
+ d: "m10.994 16.609 3.044-8.842c.003-.007.005-.015.006-.022l-3.05 8.864Z",
14
+ opacity: 0.224
15
+ }), /*#__PURE__*/React.createElement("path", {
16
+ d: "M14.04 7.306h-.923a.11.11 0 0 0-.104.074L9.85 16.566a.11.11 0 0 0 .104.145h.927a.11.11 0 0 0 .104-.073l.01-.03 3.05-8.863.101-.292a.111.111 0 0 0-.105-.146Zm4.011 4.559a.236.236 0 0 0-.037-.037L15.02 9.486a.109.109 0 0 0-.176.086v1.111c0 .035.015.066.042.087L16.458 12l-1.572 1.23a.11.11 0 0 0-.042.087v1.111a.11.11 0 0 0 .176.086l2.994-2.342a.22.22 0 0 0 .037-.307ZM8.98 9.485l-2.994 2.343a.22.22 0 0 0 0 .345l2.994 2.341c.019.015.042.024.067.024.06 0 .11-.05.11-.11v-1.111a.106.106 0 0 0-.043-.087L7.542 12l1.572-1.23a.11.11 0 0 0 .042-.087V9.572a.109.109 0 0 0-.176-.086Z"
17
+ })));
18
+ };
19
+ export default SvgInlineCode;
@@ -0,0 +1,4 @@
1
+ import type { SVGProps } from 'react';
2
+ import React from 'react';
3
+ declare const SvgInlineMath: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default SvgInlineMath;
@@ -0,0 +1,25 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
2
+ import React from 'react';
3
+ var SvgInlineMath = function SvgInlineMath(props) {
4
+ return /*#__PURE__*/React.createElement("svg", _extends({
5
+ xmlns: "http://www.w3.org/2000/svg",
6
+ width: "1em",
7
+ height: "1em",
8
+ viewBox: "0 0 24 24"
9
+ }, props), /*#__PURE__*/React.createElement("g", {
10
+ fill: "currentColor",
11
+ fillRule: "evenodd",
12
+ transform: "translate(5 5)"
13
+ }, /*#__PURE__*/React.createElement("rect", {
14
+ width: 10,
15
+ height: 1,
16
+ x: 2,
17
+ y: 3,
18
+ rx: 0.1
19
+ }), /*#__PURE__*/React.createElement("path", {
20
+ d: "M4 4h1v6.9a.1.1 0 0 1-.1.1h-.8a.1.1 0 0 1-.1-.1V4ZM9 4h1v7h-.5a.5.5 0 0 1-.5-.5V4Z"
21
+ }), /*#__PURE__*/React.createElement("path", {
22
+ d: "M9 10h3.4a.1.1 0 0 1 .1.1v.8a.1.1 0 0 1-.1.1H9.5a.5.5 0 0 1-.5-.5V10Z"
23
+ })));
24
+ };
25
+ export default SvgInlineMath;
@@ -0,0 +1,4 @@
1
+ import type { SVGProps } from 'react';
2
+ import React from 'react';
3
+ declare const SvgLink: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default SvgLink;
@@ -0,0 +1,15 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
2
+ import React from 'react';
3
+ var SvgLink = function SvgLink(props) {
4
+ return /*#__PURE__*/React.createElement("svg", _extends({
5
+ xmlns: "http://www.w3.org/2000/svg",
6
+ width: "1em",
7
+ height: "1em",
8
+ viewBox: "0 0 24 24"
9
+ }, props), /*#__PURE__*/React.createElement("path", {
10
+ fill: "currentColor",
11
+ fillRule: "nonzero",
12
+ d: "M12.848 14.097a.11.11 0 0 0-.155 0l-1.589 1.589a1.964 1.964 0 0 1-2.789 0 1.964 1.964 0 0 1 0-2.79l1.59-1.588a.11.11 0 0 0 0-.154l-.545-.544a.11.11 0 0 0-.155 0l-1.588 1.588a2.956 2.956 0 0 0 0 4.184 2.957 2.957 0 0 0 4.183 0l1.59-1.589a.11.11 0 0 0 0-.154l-.542-.542Zm3.535-6.48a2.956 2.956 0 0 0-4.183 0l-1.59 1.588a.11.11 0 0 0 0 .155l.542.543a.11.11 0 0 0 .155 0l1.589-1.589a1.964 1.964 0 0 1 2.789 0 1.964 1.964 0 0 1 0 2.79l-1.59 1.588a.11.11 0 0 0 0 .154l.545.544a.11.11 0 0 0 .155 0l1.588-1.588a2.96 2.96 0 0 0 0-4.185Zm-3.042 2.473a.11.11 0 0 0-.154 0l-3.097 3.095a.11.11 0 0 0 0 .155l.541.541a.11.11 0 0 0 .155 0l3.095-3.095a.11.11 0 0 0 0-.155l-.54-.541Z"
13
+ }));
14
+ };
15
+ export default SvgLink;
@@ -0,0 +1,4 @@
1
+ import type { SVGProps } from 'react';
2
+ import React from 'react';
3
+ declare const SvgMath: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default SvgMath;
@@ -0,0 +1,15 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
2
+ import React from 'react';
3
+ var SvgMath = function SvgMath(props) {
4
+ return /*#__PURE__*/React.createElement("svg", _extends({
5
+ xmlns: "http://www.w3.org/2000/svg",
6
+ width: "1em",
7
+ height: "1em",
8
+ viewBox: "0 0 24 24"
9
+ }, props), /*#__PURE__*/React.createElement("path", {
10
+ fill: "currentColor",
11
+ fillRule: "evenodd",
12
+ d: "M15.7 7a.1.1 0 0 1 .074.033.2.2 0 0 1 .077.093l.891 2.242a.1.1 0 0 1-.093.137h-.784a.1.1 0 0 1-.093-.063l-.575-1.443H8.708l3.867 3.865a.2.2 0 0 1 .038.23l-.038.053-.566.565-3.284 3.282H15.2l.572-1.436a.1.1 0 0 1 .054-.055l.039-.008h.784a.1.1 0 0 1 .093.137l-.891 2.242a.2.2 0 0 1-.186.126H14.8l-7.3-.006a.2.2 0 0 1-.2-.2v-.8h.01l3.992-3.989-4.002-4V7.2c0-.11.09-.2.2-.2h8.2Z"
13
+ }));
14
+ };
15
+ export default SvgMath;
@@ -0,0 +1,4 @@
1
+ import type { SVGProps } from 'react';
2
+ import React from 'react';
3
+ declare const SvgOrderedList: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default SvgOrderedList;
@@ -0,0 +1,15 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
2
+ import React from 'react';
3
+ var SvgOrderedList = function SvgOrderedList(props) {
4
+ return /*#__PURE__*/React.createElement("svg", _extends({
5
+ xmlns: "http://www.w3.org/2000/svg",
6
+ width: "1em",
7
+ height: "1em",
8
+ viewBox: "0 0 24 24"
9
+ }, props), /*#__PURE__*/React.createElement("path", {
10
+ fill: "currentColor",
11
+ fillRule: "nonzero",
12
+ d: "M17.578 15.39H9.594a.11.11 0 0 0-.11.11v.766c0 .06.05.109.11.109h7.984c.06 0 .11-.05.11-.11V15.5a.11.11 0 0 0-.11-.11Zm0-7.765H9.594a.11.11 0 0 0-.11.11V8.5c0 .06.05.11.11.11h7.984c.06 0 .11-.05.11-.11v-.766a.11.11 0 0 0-.11-.109Zm0 3.883H9.594a.11.11 0 0 0-.11.11v.765c0 .06.05.11.11.11h7.984c.06 0 .11-.05.11-.11v-.766a.11.11 0 0 0-.11-.11Zm-9.625 3.226H6.367a.055.055 0 0 0-.054.055v.465c0 .03.024.055.054.055h.99v.28h-.488a.055.055 0 0 0-.055.055v.464c0 .03.025.055.055.055h.488v.294h-.99a.055.055 0 0 0-.054.055v.465c0 .03.024.054.054.054h1.586c.03 0 .055-.024.055-.054v-2.188a.055.055 0 0 0-.055-.055ZM6.367 7.57h.52v1.64c0 .031.024.056.054.056h.547c.03 0 .055-.025.055-.055V7.078a.11.11 0 0 0-.11-.11H6.368a.055.055 0 0 0-.054.055v.493c0 .03.024.054.054.054Zm1.586 3.282H6.367a.055.055 0 0 0-.054.054v.492c0 .03.024.055.054.055h.935l-.96 1.062a.113.113 0 0 0-.03.074v.505c0 .03.025.054.055.054h1.586c.03 0 .055-.024.055-.054v-.492a.055.055 0 0 0-.055-.055h-.935l.961-1.062a.113.113 0 0 0 .029-.074v-.505a.055.055 0 0 0-.055-.054Z"
13
+ }));
14
+ };
15
+ export default SvgOrderedList;
@@ -0,0 +1,4 @@
1
+ import type { SVGProps } from 'react';
2
+ import React from 'react';
3
+ declare const SvgRedo: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default SvgRedo;
@@ -0,0 +1,15 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
2
+ import React from 'react';
3
+ var SvgRedo = function SvgRedo(props) {
4
+ return /*#__PURE__*/React.createElement("svg", _extends({
5
+ xmlns: "http://www.w3.org/2000/svg",
6
+ width: "1em",
7
+ height: "1em",
8
+ viewBox: "0 0 24 24"
9
+ }, props), /*#__PURE__*/React.createElement("path", {
10
+ fill: "currentColor",
11
+ fillRule: "nonzero",
12
+ d: "M8.158 8.309h5.838V7.297a.11.11 0 0 1 .176-.086l1.942 1.531a.11.11 0 0 1 0 .172l-1.942 1.532a.11.11 0 0 1-.176-.087V9.348H8.322v6.425h8.285c.06 0 .11.05.11.11v.82c0 .06-.05.11-.11.11H8.158a.876.876 0 0 1-.875-.875V9.184c0-.483.393-.875.875-.875Z"
13
+ }));
14
+ };
15
+ export default SvgRedo;