@use-kona/editor 0.1.3 → 0.1.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.
- package/dist/index.d.ts +0 -1
- package/dist/index.js +1 -2
- package/dist/plugins/CodeBlockPlugin/index.d.ts +1 -0
- package/dist/plugins/FloatingMenuPlugin/FloatingMenu.js +15 -28
- package/dist/plugins/FloatingMenuPlugin/types.d.ts +4 -1
- package/dist/plugins/HighlightsPlugin/HighlightsPlugin.d.ts +1 -0
- package/dist/plugins/HighlightsPlugin/HighlightsPlugin.js +3 -0
- package/dist/plugins/index.d.ts +1 -1
- package/package.json +12 -11
- package/src/index.ts +0 -1
- package/src/plugins/CodeBlockPlugin/index.ts +1 -0
- package/src/plugins/FloatingMenuPlugin/FloatingMenu.tsx +13 -22
- package/src/plugins/FloatingMenuPlugin/types.ts +4 -1
- package/src/plugins/HighlightsPlugin/HighlightsPlugin.tsx +4 -0
- package/src/plugins/index.ts +1 -1
- package/dist/examples/Backdrop.d.ts +0 -5
- package/dist/examples/Backdrop.js +0 -13
- package/dist/examples/Backdrop.module.js +0 -5
- package/dist/examples/Backdrop_module.css +0 -6
- package/dist/examples/CodeBlock.d.ts +0 -12
- package/dist/examples/CodeBlock.js +0 -163
- package/dist/examples/CodeBlock.module.js +0 -9
- package/dist/examples/CodeBlock_module.css +0 -66
- package/dist/examples/DragBlock.d.ts +0 -11
- package/dist/examples/DragBlock.js +0 -38
- package/dist/examples/DragBlock.module.js +0 -9
- package/dist/examples/DragBlock_module.css +0 -43
- package/dist/examples/DragHandler.d.ts +0 -2
- package/dist/examples/DragHandler.js +0 -44
- package/dist/examples/DragHandler.module.js +0 -8
- package/dist/examples/DragHandler_module.css +0 -18
- package/dist/examples/Editor.d.ts +0 -8
- package/dist/examples/Editor.js +0 -44
- package/dist/examples/Editor.module.js +0 -12
- package/dist/examples/Editor_module.css +0 -127
- package/dist/examples/Emoji.d.ts +0 -5
- package/dist/examples/Emoji.js +0 -8
- package/dist/examples/EmojiSelector.d.ts +0 -16
- package/dist/examples/EmojiSelector.js +0 -91
- package/dist/examples/EmojiSelector.module.js +0 -7
- package/dist/examples/EmojiSelector_module.css +0 -36
- package/dist/examples/FloatingMenu.d.ts +0 -19
- package/dist/examples/FloatingMenu.js +0 -244
- package/dist/examples/FloatingMenu.module.js +0 -9
- package/dist/examples/FloatingMenu_module.css +0 -75
- package/dist/examples/LinksHint.d.ts +0 -7
- package/dist/examples/LinksHint.js +0 -50
- package/dist/examples/LinksHint.module.js +0 -6
- package/dist/examples/LinksHint_module.css +0 -28
- package/dist/examples/Menu.d.ts +0 -6
- package/dist/examples/Menu.js +0 -94
- package/dist/examples/Menu.module.js +0 -8
- package/dist/examples/Menu_module.css +0 -38
- package/dist/examples/colors.d.ts +0 -10
- package/dist/examples/colors.js +0 -12
- package/dist/examples/getCommands.d.ts +0 -2
- package/dist/examples/getCommands.js +0 -100
- package/dist/examples/getPlugins.d.ts +0 -2
- package/dist/examples/getPlugins.js +0 -144
- package/dist/examples/getShortcuts.d.ts +0 -2
- package/dist/examples/getShortcuts.js +0 -90
- package/dist/examples/icons/bold.d.ts +0 -2
- package/dist/examples/icons/bold.js +0 -27
- package/dist/examples/icons/check.d.ts +0 -2
- package/dist/examples/icons/check.js +0 -24
- package/dist/examples/icons/chevronRight.d.ts +0 -2
- package/dist/examples/icons/chevronRight.js +0 -24
- package/dist/examples/icons/code.d.ts +0 -2
- package/dist/examples/icons/code.js +0 -30
- package/dist/examples/icons/color.d.ts +0 -2
- package/dist/examples/icons/color.js +0 -30
- package/dist/examples/icons/copy.d.ts +0 -2
- package/dist/examples/icons/copy.js +0 -27
- package/dist/examples/icons/cross.d.ts +0 -2
- package/dist/examples/icons/cross.js +0 -27
- package/dist/examples/icons/drag.d.ts +0 -2
- package/dist/examples/icons/drag.js +0 -39
- package/dist/examples/icons/edit.d.ts +0 -2
- package/dist/examples/icons/edit.js +0 -30
- package/dist/examples/icons/external.d.ts +0 -2
- package/dist/examples/icons/external.js +0 -30
- package/dist/examples/icons/heading1.d.ts +0 -2
- package/dist/examples/icons/heading1.js +0 -45
- package/dist/examples/icons/heading2.d.ts +0 -2
- package/dist/examples/icons/heading2.js +0 -45
- package/dist/examples/icons/heading3.d.ts +0 -2
- package/dist/examples/icons/heading3.js +0 -48
- package/dist/examples/icons/italic.d.ts +0 -2
- package/dist/examples/icons/italic.js +0 -30
- package/dist/examples/icons/link.d.ts +0 -2
- package/dist/examples/icons/link.js +0 -30
- package/dist/examples/icons/ol.d.ts +0 -2
- package/dist/examples/icons/ol.js +0 -36
- package/dist/examples/icons/strikethrough.d.ts +0 -2
- package/dist/examples/icons/strikethrough.js +0 -27
- package/dist/examples/icons/text.d.ts +0 -2
- package/dist/examples/icons/text.js +0 -22
- package/dist/examples/icons/types.d.ts +0 -3
- package/dist/examples/icons/types.js +0 -0
- package/dist/examples/icons/ul.d.ts +0 -2
- package/dist/examples/icons/ul.js +0 -39
- package/dist/examples/icons/underline.d.ts +0 -2
- package/dist/examples/icons/underline.js +0 -27
- package/dist/examples/store.d.ts +0 -9
- package/dist/examples/store.js +0 -7
- package/dist/examples/styles.module.js +0 -11
- package/dist/examples/styles_module.css +0 -78
- package/dist/examples/text.d.ts +0 -3
- package/dist/examples/text.js +0 -65
- package/dist/examples/ui/Button/Button.d.ts +0 -8
- package/dist/examples/ui/Button/Button.js +0 -15
- package/dist/examples/ui/Button/ButtonWrapper.d.ts +0 -4
- package/dist/examples/ui/Button/ButtonWrapper.js +0 -14
- package/dist/examples/ui/Button/index.d.ts +0 -2
- package/dist/examples/ui/Button/index.js +0 -3
- package/dist/examples/ui/Button/styles.module.js +0 -10
- package/dist/examples/ui/Button/styles_module.css +0 -72
- package/dist/examples/ui/Button/types.d.ts +0 -1
- package/dist/examples/ui/Button/types.js +0 -0
- package/dist/examples/ui/Dropdown/Dropdown.d.ts +0 -16
- package/dist/examples/ui/Dropdown/Dropdown.js +0 -75
- package/dist/examples/ui/Dropdown/index.d.ts +0 -1
- package/dist/examples/ui/Dropdown/index.js +0 -2
- package/dist/examples/ui/Menu/Menu.d.ts +0 -41
- package/dist/examples/ui/Menu/Menu.js +0 -404
- package/dist/examples/ui/Menu/MenuDelimiter.d.ts +0 -1
- package/dist/examples/ui/Menu/MenuDelimiter.js +0 -6
- package/dist/examples/ui/Menu/MenuHotkey.d.ts +0 -6
- package/dist/examples/ui/Menu/MenuHotkey.js +0 -12
- package/dist/examples/ui/Menu/MenuIcon.d.ts +0 -6
- package/dist/examples/ui/Menu/MenuIcon.js +0 -12
- package/dist/examples/ui/Menu/MenuItem.d.ts +0 -6
- package/dist/examples/ui/Menu/MenuItem.js +0 -17
- package/dist/examples/ui/Menu/MenuTitle.d.ts +0 -6
- package/dist/examples/ui/Menu/MenuTitle.js +0 -12
- package/dist/examples/ui/Menu/SafeSpace.d.ts +0 -6
- package/dist/examples/ui/Menu/SafeSpace.js +0 -65
- package/dist/examples/ui/Menu/index.d.ts +0 -2
- package/dist/examples/ui/Menu/index.js +0 -2
- package/dist/examples/ui/Menu/styles.module.js +0 -21
- package/dist/examples/ui/Menu/styles_module.css +0 -140
- package/dist/examples/ui/Menu/types.d.ts +0 -16
- package/dist/examples/ui/Menu/types.js +0 -0
- package/dist/examples/ui/useMenuPosition.d.ts +0 -18
- package/dist/examples/ui/useMenuPosition.js +0 -51
- package/dist/examples/ui/useMergeRefs.d.ts +0 -23
- package/dist/examples/ui/useMergeRefs.js +0 -11
- package/src/examples/Backdrop.module.css +0 -8
- package/src/examples/Backdrop.tsx +0 -16
- package/src/examples/CodeBlock.module.css +0 -65
- package/src/examples/CodeBlock.tsx +0 -109
- package/src/examples/DragBlock.module.css +0 -42
- package/src/examples/DragBlock.tsx +0 -57
- package/src/examples/DragHandler.module.css +0 -17
- package/src/examples/DragHandler.tsx +0 -39
- package/src/examples/Editor.module.css +0 -129
- package/src/examples/Editor.tsx +0 -68
- package/src/examples/Emoji.tsx +0 -9
- package/src/examples/EmojiSelector.module.css +0 -35
- package/src/examples/EmojiSelector.tsx +0 -115
- package/src/examples/FloatingMenu.module.css +0 -74
- package/src/examples/FloatingMenu.tsx +0 -278
- package/src/examples/LinksHint.module.css +0 -27
- package/src/examples/LinksHint.tsx +0 -58
- package/src/examples/Menu.module.css +0 -37
- package/src/examples/Menu.tsx +0 -94
- package/src/examples/colors.ts +0 -11
- package/src/examples/getCommands.tsx +0 -92
- package/src/examples/getPlugins.tsx +0 -164
- package/src/examples/getShortcuts.ts +0 -107
- package/src/examples/icons/bold.tsx +0 -20
- package/src/examples/icons/check.tsx +0 -19
- package/src/examples/icons/chevronRight.tsx +0 -19
- package/src/examples/icons/code.tsx +0 -21
- package/src/examples/icons/color.tsx +0 -23
- package/src/examples/icons/copy.tsx +0 -20
- package/src/examples/icons/cross.tsx +0 -20
- package/src/examples/icons/drag.tsx +0 -24
- package/src/examples/icons/edit.tsx +0 -21
- package/src/examples/icons/external.tsx +0 -21
- package/src/examples/icons/heading1.tsx +0 -26
- package/src/examples/icons/heading2.tsx +0 -26
- package/src/examples/icons/heading3.tsx +0 -27
- package/src/examples/icons/italic.tsx +0 -21
- package/src/examples/icons/link.tsx +0 -21
- package/src/examples/icons/ol.tsx +0 -23
- package/src/examples/icons/strikethrough.tsx +0 -20
- package/src/examples/icons/text.tsx +0 -18
- package/src/examples/icons/types.ts +0 -3
- package/src/examples/icons/ul.tsx +0 -24
- package/src/examples/icons/underline.tsx +0 -20
- package/src/examples/store.ts +0 -16
- package/src/examples/styles.module.css +0 -77
- package/src/examples/text.tsx +0 -138
- package/src/examples/ui/Button/Button.tsx +0 -34
- package/src/examples/ui/Button/ButtonWrapper.tsx +0 -22
- package/src/examples/ui/Button/index.ts +0 -2
- package/src/examples/ui/Button/styles.module.css +0 -75
- package/src/examples/ui/Button/types.ts +0 -1
- package/src/examples/ui/Dropdown/Dropdown.tsx +0 -101
- package/src/examples/ui/Dropdown/index.ts +0 -1
- package/src/examples/ui/Menu/Menu.tsx +0 -576
- package/src/examples/ui/Menu/MenuDelimiter.tsx +0 -3
- package/src/examples/ui/Menu/MenuHotkey.tsx +0 -17
- package/src/examples/ui/Menu/MenuIcon.tsx +0 -17
- package/src/examples/ui/Menu/MenuItem.tsx +0 -45
- package/src/examples/ui/Menu/MenuTitle.tsx +0 -17
- package/src/examples/ui/Menu/SafeSpace.tsx +0 -84
- package/src/examples/ui/Menu/index.ts +0 -2
- package/src/examples/ui/Menu/styles.module.css +0 -143
- package/src/examples/ui/Menu/types.ts +0 -18
- package/src/examples/ui/useMenuPosition.ts +0 -72
- package/src/examples/ui/useMergeRefs.ts +0 -39
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
import { useStore } from '@nanostores/react';
|
|
2
|
-
import type { Editor } from 'slate';
|
|
3
|
-
import {
|
|
4
|
-
BasicFormattingPlugin,
|
|
5
|
-
BreaksPlugin,
|
|
6
|
-
CodeBlockPlugin,
|
|
7
|
-
type Commands,
|
|
8
|
-
CommandsPlugin,
|
|
9
|
-
DnDPlugin,
|
|
10
|
-
EmojiPlugin,
|
|
11
|
-
FloatingMenuPlugin,
|
|
12
|
-
HeadingsPlugin,
|
|
13
|
-
HighlightsPlugin,
|
|
14
|
-
LinksPlugin,
|
|
15
|
-
ListsPlugin,
|
|
16
|
-
MenuPlugin,
|
|
17
|
-
NodeIdPlugin,
|
|
18
|
-
PlaceholderPlugin,
|
|
19
|
-
ShortcutsPlugin,
|
|
20
|
-
TableOfContentsPlugin,
|
|
21
|
-
} from '../plugins';
|
|
22
|
-
import type { CodeElement } from '../plugins/CodeBlockPlugin/types';
|
|
23
|
-
import { Backdrop } from './Backdrop';
|
|
24
|
-
import { CodeBlock } from './CodeBlock';
|
|
25
|
-
import { colors } from './colors';
|
|
26
|
-
import { DragBlock } from './DragBlock';
|
|
27
|
-
import { Emoji } from './Emoji';
|
|
28
|
-
import { EmojiSelector } from './EmojiSelector';
|
|
29
|
-
import { FloatingMenu } from './FloatingMenu';
|
|
30
|
-
import { getCommands } from './getCommands';
|
|
31
|
-
import { getShortcuts } from './getShortcuts';
|
|
32
|
-
import { LinksHint } from './LinksHint';
|
|
33
|
-
import { Menu } from './Menu';
|
|
34
|
-
import { $store } from './store';
|
|
35
|
-
|
|
36
|
-
export const getPlugins = () => {
|
|
37
|
-
const floatingMenuPlugin = new FloatingMenuPlugin({
|
|
38
|
-
ignoreNodes: [CodeBlockPlugin.CODE_ELEMENT],
|
|
39
|
-
renderMenu: (editor: Editor, commands: Commands) => {
|
|
40
|
-
return (
|
|
41
|
-
<FloatingMenu $store={$store} editor={editor} commands={commands} />
|
|
42
|
-
);
|
|
43
|
-
},
|
|
44
|
-
renderBackdrop: (commands) => {
|
|
45
|
-
const handleClose = () => {
|
|
46
|
-
commands.onClose();
|
|
47
|
-
$store.setKey('isFloatingMenuOpen', false);
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
return <Backdrop onClose={handleClose} />;
|
|
51
|
-
},
|
|
52
|
-
onShow: () => {
|
|
53
|
-
$store.setKey('isFloatingMenuOpen', true);
|
|
54
|
-
return true;
|
|
55
|
-
},
|
|
56
|
-
onHide: () => {
|
|
57
|
-
if ($store.get().floatingMenuMode === 'main') {
|
|
58
|
-
$store.setKey('isFloatingMenuOpen', false);
|
|
59
|
-
$store.setKey('url', undefined);
|
|
60
|
-
return false;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
return true;
|
|
64
|
-
},
|
|
65
|
-
});
|
|
66
|
-
|
|
67
|
-
return [
|
|
68
|
-
new BasicFormattingPlugin(),
|
|
69
|
-
new EmojiPlugin({
|
|
70
|
-
ignoreNodes: [CodeBlockPlugin.CODE_LINE_ELEMENT],
|
|
71
|
-
onSearch: (query) => $store.setKey('emojiSearch', query),
|
|
72
|
-
renderMenu: ({ insertEmoji }) => {
|
|
73
|
-
return (
|
|
74
|
-
<EmojiSelector
|
|
75
|
-
onConfirm={(...params) => {
|
|
76
|
-
insertEmoji(...params);
|
|
77
|
-
$store.setKey('emojiSearch', '');
|
|
78
|
-
}}
|
|
79
|
-
/>
|
|
80
|
-
);
|
|
81
|
-
},
|
|
82
|
-
renderEmoji: (emoji) => {
|
|
83
|
-
return <Emoji id={emoji} />;
|
|
84
|
-
},
|
|
85
|
-
}),
|
|
86
|
-
new PlaceholderPlugin({
|
|
87
|
-
focused: 'Write / to open command menu',
|
|
88
|
-
unfocused: 'Write / to open command menu',
|
|
89
|
-
ignoreNodes: [CodeBlockPlugin.CODE_LINE_ELEMENT],
|
|
90
|
-
}),
|
|
91
|
-
new NodeIdPlugin({
|
|
92
|
-
generateId: () => Math.random().toString(36).substring(2, 15),
|
|
93
|
-
}),
|
|
94
|
-
new HeadingsPlugin(),
|
|
95
|
-
new MenuPlugin({
|
|
96
|
-
renderMenu: ({ editor }) => {
|
|
97
|
-
return <Menu editor={editor} />;
|
|
98
|
-
},
|
|
99
|
-
}),
|
|
100
|
-
new DnDPlugin({
|
|
101
|
-
renderBlock: (params) => {
|
|
102
|
-
return <DragBlock {...params} />;
|
|
103
|
-
},
|
|
104
|
-
onDropFiles: () => {},
|
|
105
|
-
ignoreNodes: [
|
|
106
|
-
CodeBlockPlugin.CODE_LINE_ELEMENT,
|
|
107
|
-
ListsPlugin.BULLETED_LIST_ELEMENT,
|
|
108
|
-
ListsPlugin.NUMBERED_LIST_ELEMENT,
|
|
109
|
-
],
|
|
110
|
-
}),
|
|
111
|
-
new ShortcutsPlugin({
|
|
112
|
-
shortcuts: getShortcuts(),
|
|
113
|
-
ignoreNodes: [
|
|
114
|
-
CodeBlockPlugin.CODE_ELEMENT,
|
|
115
|
-
CodeBlockPlugin.CODE_LINE_ELEMENT,
|
|
116
|
-
],
|
|
117
|
-
}),
|
|
118
|
-
new LinksPlugin({
|
|
119
|
-
renderHint: (methods) => (
|
|
120
|
-
<LinksHint floatingMenuPlugin={floatingMenuPlugin} methods={methods} />
|
|
121
|
-
),
|
|
122
|
-
}),
|
|
123
|
-
new CommandsPlugin({
|
|
124
|
-
commands: getCommands(),
|
|
125
|
-
renderMenu: (children) => {
|
|
126
|
-
return <div>{children}</div>;
|
|
127
|
-
},
|
|
128
|
-
ignoreNodes: [CodeBlockPlugin.CODE_LINE_ELEMENT],
|
|
129
|
-
}),
|
|
130
|
-
new TableOfContentsPlugin({
|
|
131
|
-
levels: {
|
|
132
|
-
[HeadingsPlugin.HeadingLevel1]: 1,
|
|
133
|
-
[HeadingsPlugin.HeadingLevel2]: 2,
|
|
134
|
-
[HeadingsPlugin.HeadingLevel3]: 3,
|
|
135
|
-
},
|
|
136
|
-
}),
|
|
137
|
-
floatingMenuPlugin,
|
|
138
|
-
new HighlightsPlugin({
|
|
139
|
-
colors,
|
|
140
|
-
}),
|
|
141
|
-
new BreaksPlugin({
|
|
142
|
-
breakNodes: [
|
|
143
|
-
HeadingsPlugin.HeadingLevel1,
|
|
144
|
-
HeadingsPlugin.HeadingLevel2,
|
|
145
|
-
HeadingsPlugin.HeadingLevel3,
|
|
146
|
-
],
|
|
147
|
-
}),
|
|
148
|
-
new ListsPlugin({}),
|
|
149
|
-
new CodeBlockPlugin({
|
|
150
|
-
renderCodeBlock: (value, onChange, params) => {
|
|
151
|
-
return (
|
|
152
|
-
<CodeBlock
|
|
153
|
-
value={value}
|
|
154
|
-
onChange={onChange}
|
|
155
|
-
params={{
|
|
156
|
-
...params,
|
|
157
|
-
element: params.element as CodeElement,
|
|
158
|
-
}}
|
|
159
|
-
/>
|
|
160
|
-
);
|
|
161
|
-
},
|
|
162
|
-
}),
|
|
163
|
-
];
|
|
164
|
-
};
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { Editor, Transforms } from 'slate';
|
|
2
|
-
import { type ChangeMatch, HeadingsPlugin, type Shortcut } from '../plugins';
|
|
3
|
-
|
|
4
|
-
export const getShortcuts = (): Shortcut[] => {
|
|
5
|
-
return [
|
|
6
|
-
{
|
|
7
|
-
trigger: ' ',
|
|
8
|
-
before: /\*\*/g,
|
|
9
|
-
after: /\*\*/g,
|
|
10
|
-
change(editor: Editor, match) {
|
|
11
|
-
replaceWithMarkedText(editor, match, 'bold');
|
|
12
|
-
},
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
trigger: ' ',
|
|
16
|
-
before: /\*/g,
|
|
17
|
-
after: /\*/g,
|
|
18
|
-
change(editor: Editor, match) {
|
|
19
|
-
replaceWithMarkedText(editor, match, 'italic');
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
trigger: ' ',
|
|
24
|
-
before: /~~/g,
|
|
25
|
-
after: /~~/g,
|
|
26
|
-
change(editor: Editor, match) {
|
|
27
|
-
replaceWithMarkedText(editor, match, 'strikethrough');
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
trigger: ' ',
|
|
32
|
-
before: /^###/g,
|
|
33
|
-
change(editor, match) {
|
|
34
|
-
replaceWithHeading(editor, match, HeadingsPlugin.HeadingLevel3);
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
trigger: ' ',
|
|
39
|
-
before: /^##/g,
|
|
40
|
-
change(editor, match) {
|
|
41
|
-
replaceWithHeading(editor, match, HeadingsPlugin.HeadingLevel2);
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
trigger: ' ',
|
|
46
|
-
before: /^#/g,
|
|
47
|
-
change(editor, match) {
|
|
48
|
-
replaceWithHeading(editor, match, HeadingsPlugin.HeadingLevel1);
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
];
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
const replaceWithHeading = (
|
|
55
|
-
editor: Editor,
|
|
56
|
-
match: ChangeMatch,
|
|
57
|
-
type: string,
|
|
58
|
-
) => {
|
|
59
|
-
Editor.withoutNormalizing(editor, () => {
|
|
60
|
-
const { selection } = editor;
|
|
61
|
-
|
|
62
|
-
if (selection) {
|
|
63
|
-
Transforms.delete(editor, {
|
|
64
|
-
at: selection.focus,
|
|
65
|
-
distance: match.before?.[0].length,
|
|
66
|
-
reverse: true,
|
|
67
|
-
unit: 'character',
|
|
68
|
-
});
|
|
69
|
-
|
|
70
|
-
Transforms.setNodes(editor, {
|
|
71
|
-
type,
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
const replaceWithMarkedText = (
|
|
78
|
-
editor: Editor,
|
|
79
|
-
match: ChangeMatch,
|
|
80
|
-
mark: string,
|
|
81
|
-
) => {
|
|
82
|
-
Editor.withoutNormalizing(editor, () => {
|
|
83
|
-
if (!editor.selection) {
|
|
84
|
-
return;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
Transforms.delete(editor, {
|
|
88
|
-
at: editor.selection?.focus,
|
|
89
|
-
distance: match.text?.length || 0,
|
|
90
|
-
reverse: true,
|
|
91
|
-
unit: 'character',
|
|
92
|
-
});
|
|
93
|
-
Transforms.insertText(editor, match.cleanText || '');
|
|
94
|
-
Transforms.setSelection(editor, {
|
|
95
|
-
anchor: editor.selection?.focus,
|
|
96
|
-
focus: {
|
|
97
|
-
path: editor.selection?.focus.path,
|
|
98
|
-
offset: editor.selection?.focus.offset - (match.cleanText?.length || 0),
|
|
99
|
-
},
|
|
100
|
-
});
|
|
101
|
-
Editor.addMark(editor, mark, true);
|
|
102
|
-
Transforms.setSelection(editor, {
|
|
103
|
-
anchor: editor.selection.anchor,
|
|
104
|
-
focus: editor.selection.anchor,
|
|
105
|
-
});
|
|
106
|
-
});
|
|
107
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { IconProps } from './types';
|
|
2
|
-
|
|
3
|
-
export const BoldIcon = ({ size }: IconProps) => (
|
|
4
|
-
<svg
|
|
5
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
-
width={size}
|
|
7
|
-
height={size}
|
|
8
|
-
viewBox="0 0 24 24"
|
|
9
|
-
fill="none"
|
|
10
|
-
stroke="currentColor"
|
|
11
|
-
strokeWidth={1.5}
|
|
12
|
-
strokeLinecap="round"
|
|
13
|
-
strokeLinejoin="round"
|
|
14
|
-
className="icon icon-tabler icons-tabler-outline icon-tabler-bold"
|
|
15
|
-
>
|
|
16
|
-
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
|
|
17
|
-
<path d="M7 5h6a3.5 3.5 0 0 1 0 7h-6z" />
|
|
18
|
-
<path d="M13 12h1a3.5 3.5 0 0 1 0 7h-7v-7" />
|
|
19
|
-
</svg>
|
|
20
|
-
);
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { IconProps } from './types';
|
|
2
|
-
|
|
3
|
-
export const CheckIcon = ({ size }: IconProps) => (
|
|
4
|
-
<svg
|
|
5
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
-
width={size}
|
|
7
|
-
height={size}
|
|
8
|
-
viewBox="0 0 24 24"
|
|
9
|
-
fill="none"
|
|
10
|
-
stroke="currentColor"
|
|
11
|
-
strokeWidth={1.5}
|
|
12
|
-
strokeLinecap="round"
|
|
13
|
-
strokeLinejoin="round"
|
|
14
|
-
className="icon icon-tabler icons-tabler-outline icon-tabler-check"
|
|
15
|
-
>
|
|
16
|
-
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
|
|
17
|
-
<path d="M5 12l5 5l10 -10" />
|
|
18
|
-
</svg>
|
|
19
|
-
);
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { IconProps } from './types';
|
|
2
|
-
|
|
3
|
-
export const ChevronRightIcon = ({ size }: IconProps) => (
|
|
4
|
-
<svg
|
|
5
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
-
width={size}
|
|
7
|
-
height={size}
|
|
8
|
-
viewBox="0 0 24 24"
|
|
9
|
-
fill="none"
|
|
10
|
-
stroke="currentColor"
|
|
11
|
-
stroke-width="1.25"
|
|
12
|
-
stroke-linecap="round"
|
|
13
|
-
stroke-linejoin="round"
|
|
14
|
-
className="icon icon-tabler icons-tabler-outline icon-tabler-chevron-right"
|
|
15
|
-
>
|
|
16
|
-
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
|
|
17
|
-
<path d="M9 6l6 6l-6 6" />
|
|
18
|
-
</svg>
|
|
19
|
-
);
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { IconProps } from './types';
|
|
2
|
-
|
|
3
|
-
export const CodeIcon = ({ size }: IconProps) => (
|
|
4
|
-
<svg
|
|
5
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
-
width={size}
|
|
7
|
-
height={size}
|
|
8
|
-
viewBox="0 0 24 24"
|
|
9
|
-
fill="none"
|
|
10
|
-
stroke="currentColor"
|
|
11
|
-
strokeWidth={1.5}
|
|
12
|
-
strokeLinecap="round"
|
|
13
|
-
strokeLinejoin="round"
|
|
14
|
-
className="icon icon-tabler icons-tabler-outline icon-tabler-code"
|
|
15
|
-
>
|
|
16
|
-
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
|
|
17
|
-
<path d="M7 8l-4 4l4 4" />
|
|
18
|
-
<path d="M17 8l4 4l-4 4" />
|
|
19
|
-
<path d="M14 4l-4 16" />
|
|
20
|
-
</svg>
|
|
21
|
-
);
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { IconProps } from './types';
|
|
2
|
-
|
|
3
|
-
export const ColorIcon = ({ size }: IconProps) => {
|
|
4
|
-
return (
|
|
5
|
-
<svg
|
|
6
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
-
width={size}
|
|
8
|
-
height={size}
|
|
9
|
-
viewBox="0 0 24 24"
|
|
10
|
-
fill="none"
|
|
11
|
-
stroke="currentColor"
|
|
12
|
-
strokeWidth={1.5}
|
|
13
|
-
strokeLinecap="round"
|
|
14
|
-
strokeLinejoin="round"
|
|
15
|
-
className="icon icon-tabler icons-tabler-outline icon-tabler-paint"
|
|
16
|
-
>
|
|
17
|
-
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
|
|
18
|
-
<path d="M5 3m0 2a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2z" />
|
|
19
|
-
<path d="M19 6h1a2 2 0 0 1 2 2a5 5 0 0 1 -5 5l-5 0v2" />
|
|
20
|
-
<path d="M10 15m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z" />
|
|
21
|
-
</svg>
|
|
22
|
-
);
|
|
23
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { IconProps } from './types';
|
|
2
|
-
|
|
3
|
-
export const CopyIcon = ({ size }: IconProps) => (
|
|
4
|
-
<svg
|
|
5
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
-
width={size}
|
|
7
|
-
height={size}
|
|
8
|
-
viewBox="0 0 24 24"
|
|
9
|
-
fill="none"
|
|
10
|
-
stroke="currentColor"
|
|
11
|
-
strokeWidth={1.5}
|
|
12
|
-
strokeLinecap="round"
|
|
13
|
-
strokeLinejoin="round"
|
|
14
|
-
className="icon icon-tabler icons-tabler-outline icon-tabler-copy"
|
|
15
|
-
>
|
|
16
|
-
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
|
|
17
|
-
<path d="M7 7m0 2.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667z" />
|
|
18
|
-
<path d="M4.012 16.737a2.005 2.005 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1" />
|
|
19
|
-
</svg>
|
|
20
|
-
);
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { IconProps } from './types';
|
|
2
|
-
|
|
3
|
-
export const CrossIcon = ({ size }: IconProps) => (
|
|
4
|
-
<svg
|
|
5
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
-
width={size}
|
|
7
|
-
height={size}
|
|
8
|
-
viewBox="0 0 24 24"
|
|
9
|
-
fill="none"
|
|
10
|
-
stroke="currentColor"
|
|
11
|
-
strokeWidth={1.5}
|
|
12
|
-
strokeLinecap="round"
|
|
13
|
-
strokeLinejoin="round"
|
|
14
|
-
className="icon icon-tabler icons-tabler-outline icon-tabler-x"
|
|
15
|
-
>
|
|
16
|
-
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
|
|
17
|
-
<path d="M18 6l-12 12" />
|
|
18
|
-
<path d="M6 6l12 12" />
|
|
19
|
-
</svg>
|
|
20
|
-
);
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { IconProps } from './types';
|
|
2
|
-
|
|
3
|
-
export const DragIcon = ({ size }: IconProps) => (
|
|
4
|
-
<svg
|
|
5
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
-
width={size}
|
|
7
|
-
height={size}
|
|
8
|
-
viewBox="0 0 24 24"
|
|
9
|
-
fill="none"
|
|
10
|
-
stroke="currentColor"
|
|
11
|
-
strokeWidth={1.5}
|
|
12
|
-
strokeLinecap="round"
|
|
13
|
-
strokeLinejoin="round"
|
|
14
|
-
className="icon icon-tabler icons-tabler-outline icon-tabler-grip-vertical"
|
|
15
|
-
>
|
|
16
|
-
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
|
|
17
|
-
<path d="M9 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" />
|
|
18
|
-
<path d="M9 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" />
|
|
19
|
-
<path d="M9 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" />
|
|
20
|
-
<path d="M15 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" />
|
|
21
|
-
<path d="M15 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" />
|
|
22
|
-
<path d="M15 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" />
|
|
23
|
-
</svg>
|
|
24
|
-
);
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { IconProps } from './types';
|
|
2
|
-
|
|
3
|
-
export const EditIcon = ({ size }: IconProps) => (
|
|
4
|
-
<svg
|
|
5
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
-
width={size}
|
|
7
|
-
height={size}
|
|
8
|
-
viewBox="0 0 24 24"
|
|
9
|
-
fill="none"
|
|
10
|
-
stroke="currentColor"
|
|
11
|
-
strokeWidth={1.5}
|
|
12
|
-
strokeLinecap="round"
|
|
13
|
-
strokeLinejoin="round"
|
|
14
|
-
className="icon icon-tabler icons-tabler-outline icon-tabler-edit"
|
|
15
|
-
>
|
|
16
|
-
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
|
|
17
|
-
<path d="M7 7h-1a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-1" />
|
|
18
|
-
<path d="M20.385 6.585a2.1 2.1 0 0 0 -2.97 -2.97l-8.415 8.385v3h3l8.385 -8.415z" />
|
|
19
|
-
<path d="M16 5l3 3" />
|
|
20
|
-
</svg>
|
|
21
|
-
);
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { IconProps } from './types';
|
|
2
|
-
|
|
3
|
-
export const ExternalIcon = ({ size }: IconProps) => (
|
|
4
|
-
<svg
|
|
5
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
-
width={size}
|
|
7
|
-
height={size}
|
|
8
|
-
viewBox="0 0 24 24"
|
|
9
|
-
fill="none"
|
|
10
|
-
stroke="currentColor"
|
|
11
|
-
strokeWidth={1.5}
|
|
12
|
-
strokeLinecap="round"
|
|
13
|
-
strokeLinejoin="round"
|
|
14
|
-
className="icon icon-tabler icons-tabler-outline icon-tabler-external-link"
|
|
15
|
-
>
|
|
16
|
-
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
|
|
17
|
-
<path d="M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6" />
|
|
18
|
-
<path d="M11 13l9 -9" />
|
|
19
|
-
<path d="M15 4h5v5" />
|
|
20
|
-
</svg>
|
|
21
|
-
);
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { IconProps } from './types';
|
|
2
|
-
|
|
3
|
-
export const Heading1Icon = ({ size }: IconProps) => (
|
|
4
|
-
<svg
|
|
5
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
-
width={size}
|
|
7
|
-
height={size}
|
|
8
|
-
viewBox="0 0 24 24"
|
|
9
|
-
fill="none"
|
|
10
|
-
stroke="currentColor"
|
|
11
|
-
strokeWidth={1.5}
|
|
12
|
-
strokeLinecap="round"
|
|
13
|
-
strokeLinejoin="round"
|
|
14
|
-
className="icon icon-tabler icons-tabler-outline icon-tabler-h-1"
|
|
15
|
-
>
|
|
16
|
-
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
|
|
17
|
-
<path d="M19 18v-8l-2 2" />
|
|
18
|
-
<path d="M4 6v12" />
|
|
19
|
-
<path d="M12 6v12" />
|
|
20
|
-
<path d="M11 18h2" />
|
|
21
|
-
<path d="M3 18h2" />
|
|
22
|
-
<path d="M4 12h8" />
|
|
23
|
-
<path d="M3 6h2" />
|
|
24
|
-
<path d="M11 6h2" />
|
|
25
|
-
</svg>
|
|
26
|
-
);
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { IconProps } from './types';
|
|
2
|
-
|
|
3
|
-
export const Heading2Icon = ({ size }: IconProps) => (
|
|
4
|
-
<svg
|
|
5
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
-
width={size}
|
|
7
|
-
height={size}
|
|
8
|
-
viewBox="0 0 24 24"
|
|
9
|
-
fill="none"
|
|
10
|
-
stroke="currentColor"
|
|
11
|
-
strokeWidth={1.5}
|
|
12
|
-
strokeLinecap="round"
|
|
13
|
-
strokeLinejoin="round"
|
|
14
|
-
className="icon icon-tabler icons-tabler-outline icon-tabler-h-2"
|
|
15
|
-
>
|
|
16
|
-
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
|
|
17
|
-
<path d="M17 12a2 2 0 1 1 4 0c0 .591 -.417 1.318 -.816 1.858l-3.184 4.143l4 0" />
|
|
18
|
-
<path d="M4 6v12" />
|
|
19
|
-
<path d="M12 6v12" />
|
|
20
|
-
<path d="M11 18h2" />
|
|
21
|
-
<path d="M3 18h2" />
|
|
22
|
-
<path d="M4 12h8" />
|
|
23
|
-
<path d="M3 6h2" />
|
|
24
|
-
<path d="M11 6h2" />
|
|
25
|
-
</svg>
|
|
26
|
-
);
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { IconProps } from './types';
|
|
2
|
-
|
|
3
|
-
export const Heading3Icon = ({ size }: IconProps) => (
|
|
4
|
-
<svg
|
|
5
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
-
width={size}
|
|
7
|
-
height={size}
|
|
8
|
-
viewBox="0 0 24 24"
|
|
9
|
-
fill="none"
|
|
10
|
-
stroke="currentColor"
|
|
11
|
-
strokeWidth={1.5}
|
|
12
|
-
strokeLinecap="round"
|
|
13
|
-
strokeLinejoin="round"
|
|
14
|
-
className="icon icon-tabler icons-tabler-outline icon-tabler-h-3"
|
|
15
|
-
>
|
|
16
|
-
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
|
|
17
|
-
<path d="M19 14a2 2 0 1 0 -2 -2" />
|
|
18
|
-
<path d="M17 16a2 2 0 1 0 2 -2" />
|
|
19
|
-
<path d="M4 6v12" />
|
|
20
|
-
<path d="M12 6v12" />
|
|
21
|
-
<path d="M11 18h2" />
|
|
22
|
-
<path d="M3 18h2" />
|
|
23
|
-
<path d="M4 12h8" />
|
|
24
|
-
<path d="M3 6h2" />
|
|
25
|
-
<path d="M11 6h2" />
|
|
26
|
-
</svg>
|
|
27
|
-
);
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { IconProps } from './types';
|
|
2
|
-
|
|
3
|
-
export const ItalicIcon = ({ size }: IconProps) => (
|
|
4
|
-
<svg
|
|
5
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
-
width={size}
|
|
7
|
-
height={size}
|
|
8
|
-
viewBox="0 0 24 24"
|
|
9
|
-
fill="none"
|
|
10
|
-
stroke="currentColor"
|
|
11
|
-
strokeWidth={1.5}
|
|
12
|
-
strokeLinecap="round"
|
|
13
|
-
strokeLinejoin="round"
|
|
14
|
-
className="icon icon-tabler icons-tabler-outline icon-tabler-italic"
|
|
15
|
-
>
|
|
16
|
-
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
|
|
17
|
-
<path d="M11 5l6 0" />
|
|
18
|
-
<path d="M7 19l6 0" />
|
|
19
|
-
<path d="M14 5l-4 14" />
|
|
20
|
-
</svg>
|
|
21
|
-
);
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { IconProps } from './types';
|
|
2
|
-
|
|
3
|
-
export const LinkIcon = ({ size }: IconProps) => (
|
|
4
|
-
<svg
|
|
5
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
-
width={size}
|
|
7
|
-
height={size}
|
|
8
|
-
viewBox="0 0 24 24"
|
|
9
|
-
fill="none"
|
|
10
|
-
stroke="currentColor"
|
|
11
|
-
strokeWidth={1.5}
|
|
12
|
-
strokeLinecap="round"
|
|
13
|
-
strokeLinejoin="round"
|
|
14
|
-
className="icon icon-tabler icons-tabler-outline icon-tabler-link"
|
|
15
|
-
>
|
|
16
|
-
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
|
|
17
|
-
<path d="M9 15l6 -6" />
|
|
18
|
-
<path d="M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464" />
|
|
19
|
-
<path d="M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463" />
|
|
20
|
-
</svg>
|
|
21
|
-
);
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { IconProps } from './types';
|
|
2
|
-
|
|
3
|
-
export const OlIcon = ({ size }: IconProps) => (
|
|
4
|
-
<svg
|
|
5
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
-
width={size}
|
|
7
|
-
height={size}
|
|
8
|
-
viewBox="0 0 24 24"
|
|
9
|
-
fill="none"
|
|
10
|
-
stroke="currentColor"
|
|
11
|
-
strokeWidth={1.5}
|
|
12
|
-
strokeLinecap="round"
|
|
13
|
-
strokeLinejoin="round"
|
|
14
|
-
className="icon icon-tabler icons-tabler-outline icon-tabler-list-numbers"
|
|
15
|
-
>
|
|
16
|
-
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
|
|
17
|
-
<path d="M11 6h9" />
|
|
18
|
-
<path d="M11 12h9" />
|
|
19
|
-
<path d="M12 18h8" />
|
|
20
|
-
<path d="M4 16a2 2 0 1 1 4 0c0 .591 -.5 1 -1 1.5l-3 2.5h4" />
|
|
21
|
-
<path d="M6 10v-6l-2 2" />
|
|
22
|
-
</svg>
|
|
23
|
-
);
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { IconProps } from './types';
|
|
2
|
-
|
|
3
|
-
export const StrikethroughIcon = ({ size }: IconProps) => (
|
|
4
|
-
<svg
|
|
5
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
-
width={size}
|
|
7
|
-
height={size}
|
|
8
|
-
viewBox="0 0 24 24"
|
|
9
|
-
fill="none"
|
|
10
|
-
stroke="currentColor"
|
|
11
|
-
strokeWidth={1.5}
|
|
12
|
-
strokeLinecap="round"
|
|
13
|
-
strokeLinejoin="round"
|
|
14
|
-
className="icon icon-tabler icons-tabler-outline icon-tabler-strikethrough"
|
|
15
|
-
>
|
|
16
|
-
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
|
|
17
|
-
<path d="M5 12l14 0" />
|
|
18
|
-
<path d="M16 6.5a4 2 0 0 0 -4 -1.5h-1a3.5 3.5 0 0 0 0 7h2a3.5 3.5 0 0 1 0 7h-1.5a4 2 0 0 1 -4 -1.5" />
|
|
19
|
-
</svg>
|
|
20
|
-
);
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { IconProps } from './types';
|
|
2
|
-
|
|
3
|
-
export const TextIcon = ({ size }: IconProps) => (
|
|
4
|
-
<svg
|
|
5
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
-
width={size}
|
|
7
|
-
height={size}
|
|
8
|
-
fill="none"
|
|
9
|
-
stroke="currentColor"
|
|
10
|
-
strokeLinecap="round"
|
|
11
|
-
strokeLinejoin="round"
|
|
12
|
-
strokeWidth={1.25}
|
|
13
|
-
viewBox="0 0 24 24"
|
|
14
|
-
>
|
|
15
|
-
<path stroke="none" d="M0 0h24v24H0z" />
|
|
16
|
-
<path d="M4 6h16M4 12h10M4 18h14" />
|
|
17
|
-
</svg>
|
|
18
|
-
);
|