@empoleon/tiptap
Version:
Rich text editor based on tiptap
381 lines (378 loc) • 19.2 kB
JavaScript
import { createComponent, mergeProps, template, spread } from 'solid-js/web';
var _tmpl$ = /*#__PURE__*/template(`<svg>`),
2 = /*#__PURE__*/template(`<svg><path stroke=none d="M0 0h24v24H0z"fill=none></svg>`, false, true, false),
3 = /*#__PURE__*/template(`<svg><path d="M7 5h6a3.5 3.5 0 0 1 0 7h-6z"></svg>`, false, true, false),
4 = /*#__PURE__*/template(`<svg><path d="M13 12h1a3.5 3.5 0 0 1 0 7h-7v-7"></svg>`, false, true, false),
5 = /*#__PURE__*/template(`<svg><path d="M11 5l6 0"></svg>`, false, true, false),
6 = /*#__PURE__*/template(`<svg><path d="M7 19l6 0"></svg>`, false, true, false),
7 = /*#__PURE__*/template(`<svg><path d="M14 5l-4 14"></svg>`, false, true, false),
8 = /*#__PURE__*/template(`<svg><path d="M7 5v5a5 5 0 0 0 10 0v-5"></svg>`, false, true, false),
9 = /*#__PURE__*/template(`<svg><path d="M5 19h14"></svg>`, false, true, false),
0 = /*#__PURE__*/template(`<svg><path d="M5 12l14 0"></svg>`, false, true, false),
1 = /*#__PURE__*/template(`<svg><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"></svg>`, false, true, false),
10 = /*#__PURE__*/template(`<svg><path d="M17 15l4 4m0 -4l-4 4"></svg>`, false, true, false),
11 = /*#__PURE__*/template(`<svg><path d="M7 6v-1h11v1"></svg>`, false, true, false),
12 = /*#__PURE__*/template(`<svg><path d="M7 19l4 0"></svg>`, false, true, false),
13 = /*#__PURE__*/template(`<svg><path d="M13 5l-4 14"></svg>`, false, true, false),
14 = /*#__PURE__*/template(`<svg><path d="M19 18v-8l-2 2"></svg>`, false, true, false),
15 = /*#__PURE__*/template(`<svg><path d="M4 6v12"></svg>`, false, true, false),
16 = /*#__PURE__*/template(`<svg><path d="M12 6v12"></svg>`, false, true, false),
17 = /*#__PURE__*/template(`<svg><path d="M11 18h2"></svg>`, false, true, false),
18 = /*#__PURE__*/template(`<svg><path d="M3 18h2"></svg>`, false, true, false),
19 = /*#__PURE__*/template(`<svg><path d="M4 12h8"></svg>`, false, true, false),
20 = /*#__PURE__*/template(`<svg><path d="M3 6h2"></svg>`, false, true, false),
21 = /*#__PURE__*/template(`<svg><path d="M11 6h2"></svg>`, false, true, false),
22 = /*#__PURE__*/template(`<svg><path d="M17 12a2 2 0 1 1 4 0c0 .591 -.417 1.318 -.816 1.858l-3.184 4.143l4 0"></svg>`, false, true, false),
23 = /*#__PURE__*/template(`<svg><path d="M19 14a2 2 0 1 0 -2 -2"></svg>`, false, true, false),
24 = /*#__PURE__*/template(`<svg><path d="M17 16a2 2 0 1 0 2 -2"></svg>`, false, true, false),
25 = /*#__PURE__*/template(`<svg><path d="M20 18v-8l-4 6h5"></svg>`, false, true, false),
26 = /*#__PURE__*/template(`<svg><path d="M17 18h2a2 2 0 1 0 0 -4h-2v-4h4"></svg>`, false, true, false),
27 = /*#__PURE__*/template(`<svg><path d="M19 14a2 2 0 1 0 0 4a2 2 0 0 0 0 -4z"></svg>`, false, true, false),
28 = /*#__PURE__*/template(`<svg><path d="M21 12a2 2 0 1 0 -4 0v4"></svg>`, false, true, false),
29 = /*#__PURE__*/template(`<svg><path d="M9 6l11 0"></svg>`, false, true, false),
30 = /*#__PURE__*/template(`<svg><path d="M9 12l11 0"></svg>`, false, true, false),
31 = /*#__PURE__*/template(`<svg><path d="M9 18l11 0"></svg>`, false, true, false),
32 = /*#__PURE__*/template(`<svg><path d="M5 6l0 .01"></svg>`, false, true, false),
33 = /*#__PURE__*/template(`<svg><path d="M5 12l0 .01"></svg>`, false, true, false),
34 = /*#__PURE__*/template(`<svg><path d="M5 18l0 .01"></svg>`, false, true, false),
35 = /*#__PURE__*/template(`<svg><path d="M11 6h9"></svg>`, false, true, false),
36 = /*#__PURE__*/template(`<svg><path d="M11 12h9"></svg>`, false, true, false),
37 = /*#__PURE__*/template(`<svg><path d="M12 18h8"></svg>`, false, true, false),
38 = /*#__PURE__*/template(`<svg><path d="M4 16a2 2 0 1 1 4 0c0 .591 -.5 1 -1 1.5l-3 2.5h4"></svg>`, false, true, false),
39 = /*#__PURE__*/template(`<svg><path d="M6 10v-6l-2 2"></svg>`, false, true, false),
40 = /*#__PURE__*/template(`<svg><path d="M17 22v-2"></svg>`, false, true, false),
41 = /*#__PURE__*/template(`<svg><path d="M9 15l6 -6"></svg>`, false, true, false),
42 = /*#__PURE__*/template(`<svg><path d="M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464"></svg>`, false, true, false),
43 = /*#__PURE__*/template(`<svg><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"></svg>`, false, true, false),
44 = /*#__PURE__*/template(`<svg><path d="M20 17h2"></svg>`, false, true, false),
45 = /*#__PURE__*/template(`<svg><path d="M2 7h2"></svg>`, false, true, false),
46 = /*#__PURE__*/template(`<svg><path d="M7 2v2"></svg>`, false, true, false),
47 = /*#__PURE__*/template(`<svg><path d="M6 15h15"></svg>`, false, true, false),
48 = /*#__PURE__*/template(`<svg><path d="M21 19h-15"></svg>`, false, true, false),
49 = /*#__PURE__*/template(`<svg><path d="M15 11h6"></svg>`, false, true, false),
50 = /*#__PURE__*/template(`<svg><path d="M21 7h-6"></svg>`, false, true, false),
51 = /*#__PURE__*/template(`<svg><path d="M9 9h1a1 1 0 1 1 -1 1v-2.5a2 2 0 0 1 2 -2"></svg>`, false, true, false),
52 = /*#__PURE__*/template(`<svg><path d="M3 9h1a1 1 0 1 1 -1 1v-2.5a2 2 0 0 1 2 -2"></svg>`, false, true, false),
53 = /*#__PURE__*/template(`<svg><path d="M4 6l16 0"></svg>`, false, true, false),
54 = /*#__PURE__*/template(`<svg><path d="M4 12l10 0"></svg>`, false, true, false),
55 = /*#__PURE__*/template(`<svg><path d="M4 18l14 0"></svg>`, false, true, false),
56 = /*#__PURE__*/template(`<svg><path d="M10 12l10 0"></svg>`, false, true, false),
57 = /*#__PURE__*/template(`<svg><path d="M6 18l14 0"></svg>`, false, true, false),
58 = /*#__PURE__*/template(`<svg><path d="M8 12l8 0"></svg>`, false, true, false),
59 = /*#__PURE__*/template(`<svg><path d="M6 18l12 0"></svg>`, false, true, false),
60 = /*#__PURE__*/template(`<svg><path d="M4 12l16 0"></svg>`, false, true, false),
61 = /*#__PURE__*/template(`<svg><path d="M4 18l12 0"></svg>`, false, true, false),
62 = /*#__PURE__*/template(`<svg><path d="M5 7l8 10m-8 0l8 -10"></svg>`, false, true, false),
63 = /*#__PURE__*/template(`<svg><path d="M21 20h-4l3.5 -4a1.73 1.73 0 0 0 -3.5 -2"></svg>`, false, true, false),
64 = /*#__PURE__*/template(`<svg><path d="M21 11h-4l3.5 -4a1.73 1.73 0 0 0 -3.5 -2"></svg>`, false, true, false),
65 = /*#__PURE__*/template(`<svg><path d="M7 8l-4 4l4 4"></svg>`, false, true, false),
66 = /*#__PURE__*/template(`<svg><path d="M17 8l4 4l-4 4"></svg>`, false, true, false),
67 = /*#__PURE__*/template(`<svg><path d="M14 4l-4 16"></svg>`, false, true, false),
68 = /*#__PURE__*/template(`<svg><path d="M3 19h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4"></svg>`, false, true, false),
69 = /*#__PURE__*/template(`<svg><path d="M12.5 5.5l4 4"></svg>`, false, true, false),
70 = /*#__PURE__*/template(`<svg><path d="M4.5 13.5l4 4"></svg>`, false, true, false),
71 = /*#__PURE__*/template(`<svg><path d="M21 15v4h-8l4 -4z"></svg>`, false, true, false),
72 = /*#__PURE__*/template(`<svg><path d="M5 12h2"></svg>`, false, true, false),
73 = /*#__PURE__*/template(`<svg><path d="M17 12h2"></svg>`, false, true, false),
74 = /*#__PURE__*/template(`<svg><path d="M11 12h2"></svg>`, false, true, false),
75 = /*#__PURE__*/template(`<svg><path d="M20.042 16.045a9 9 0 0 0 -12.087 -12.087m-2.318 1.677a9 9 0 1 0 12.725 12.73"></svg>`, false, true, false),
76 = /*#__PURE__*/template(`<svg><path d="M3 3l18 18"></svg>`, false, true, false),
77 = /*#__PURE__*/template(`<svg><path d="M11 7l6 6"></svg>`, false, true, false),
78 = /*#__PURE__*/template(`<svg><path d="M4 16l11.7 -11.7a1 1 0 0 1 1.4 0l2.6 2.6a1 1 0 0 1 0 1.4l-11.7 11.7h-4v-4z"></svg>`, false, true, false),
79 = /*#__PURE__*/template(`<svg><path d="M18 6l-12 12"></svg>`, false, true, false),
80 = /*#__PURE__*/template(`<svg><path d="M6 6l12 12"></svg>`, false, true, false),
81 = /*#__PURE__*/template(`<svg><path d="M12 21a9 9 0 0 1 0 -18c4.97 0 9 3.582 9 8c0 1.06 -.474 2.078 -1.318 2.828c-.844 .75 -1.989 1.172 -3.182 1.172h-2.5a2 2 0 0 0 -1 3.75a1.3 1.3 0 0 1 -1 2.25"></svg>`, false, true, false),
82 = /*#__PURE__*/template(`<svg><path d="M8.5 10.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"></svg>`, false, true, false),
83 = /*#__PURE__*/template(`<svg><path d="M12.5 7.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"></svg>`, false, true, false),
84 = /*#__PURE__*/template(`<svg><path d="M16.5 10.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"></svg>`, false, true, false),
85 = /*#__PURE__*/template(`<svg><path d="M5 12l5 5l10 -10"></svg>`, false, true, false),
86 = /*#__PURE__*/template(`<svg><path d="M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6"></svg>`, false, true, false),
87 = /*#__PURE__*/template(`<svg><path d="M11 13l9 -9"></svg>`, false, true, false),
88 = /*#__PURE__*/template(`<svg><path d="M15 4h5v5"></svg>`, false, true, false),
89 = /*#__PURE__*/template(`<svg><path d="M9 14l-4 -4l4 -4"></svg>`, false, true, false),
90 = /*#__PURE__*/template(`<svg><path d="M5 10h11a4 4 0 1 1 0 8h-1"></svg>`, false, true, false),
91 = /*#__PURE__*/template(`<svg><path d="M15 14l4 -4l-4 -4"></svg>`, false, true, false),
92 = /*#__PURE__*/template(`<svg><path d="M19 10h-11a4 4 0 1 0 0 8h1"></svg>`, false, true, false),
93 = /*#__PURE__*/template(`<svg><path d="M3.5 5.5l1.5 1.5l2.5 -2.5"></svg>`, false, true, false),
94 = /*#__PURE__*/template(`<svg><path d="M3.5 11.5l1.5 1.5l2.5 -2.5"></svg>`, false, true, false),
95 = /*#__PURE__*/template(`<svg><path d="M3.5 17.5l1.5 1.5l2.5 -2.5"></svg>`, false, true, false),
96 = /*#__PURE__*/template(`<svg><path d="M11 6l9 0"></svg>`, false, true, false),
97 = /*#__PURE__*/template(`<svg><path d="M11 12l9 0"></svg>`, false, true, false),
98 = /*#__PURE__*/template(`<svg><path d="M11 18l9 0"></svg>`, false, true, false),
99 = /*#__PURE__*/template(`<svg><path d="M20 6l-11 0"></svg>`, false, true, false),
100 = /*#__PURE__*/template(`<svg><path d="M20 12l-7 0"></svg>`, false, true, false),
101 = /*#__PURE__*/template(`<svg><path d="M20 18l-11 0"></svg>`, false, true, false),
102 = /*#__PURE__*/template(`<svg><path d="M4 8l4 4l-4 4"></svg>`, false, true, false),
103 = /*#__PURE__*/template(`<svg><path d="M20 6l-7 0"></svg>`, false, true, false),
104 = /*#__PURE__*/template(`<svg><path d="M20 12l-9 0"></svg>`, false, true, false),
105 = /*#__PURE__*/template(`<svg><path d="M20 18l-7 0"></svg>`, false, true, false),
106 = /*#__PURE__*/template(`<svg><path d="M8 8l-4 4l4 4"></svg>`, false, true, false);
function IconBase(props) {
return (() => {
var _el$ = _tmpl$();
spread(_el$, mergeProps(props, {
"xmlns": "http://www.w3.org/2000/svg",
"viewBox": "0 0 24 24",
"stroke-width": "1.5",
"stroke": "currentColor",
"fill": "none",
"stroke-linecap": "round",
"stroke-linejoin": "round"
}), true, false);
return _el$;
})();
}
function IconBold(props) {
return createComponent(IconBase, mergeProps(props, {
get children() {
return [_tmpl$2(), _tmpl$3(), _tmpl$4()];
}
}));
}
function IconItalic(props) {
return createComponent(IconBase, mergeProps(props, {
get children() {
return [_tmpl$2(), _tmpl$5(), _tmpl$6(), _tmpl$7()];
}
}));
}
function IconUnderline(props) {
return createComponent(IconBase, mergeProps(props, {
get children() {
return [_tmpl$2(), _tmpl$8(), _tmpl$9()];
}
}));
}
function IconStrikethrough(props) {
return createComponent(IconBase, mergeProps(props, {
get children() {
return [_tmpl$2(), _tmpl$0(), _tmpl$1()];
}
}));
}
function IconClearFormatting(props) {
return createComponent(IconBase, mergeProps(props, {
get children() {
return [_tmpl$2(), _tmpl$10(), _tmpl$11(), _tmpl$12(), _tmpl$13()];
}
}));
}
function IconH1(props) {
return createComponent(IconBase, mergeProps(props, {
get children() {
return [_tmpl$2(), _tmpl$14(), _tmpl$15(), _tmpl$16(), _tmpl$17(), _tmpl$18(), _tmpl$19(), _tmpl$20(), _tmpl$21()];
}
}));
}
function IconH2(props) {
return createComponent(IconBase, mergeProps(props, {
get children() {
return [_tmpl$2(), _tmpl$22(), _tmpl$15(), _tmpl$16(), _tmpl$17(), _tmpl$18(), _tmpl$19(), _tmpl$20(), _tmpl$21()];
}
}));
}
function IconH3(props) {
return createComponent(IconBase, mergeProps(props, {
get children() {
return [_tmpl$2(), _tmpl$23(), _tmpl$24(), _tmpl$15(), _tmpl$16(), _tmpl$17(), _tmpl$18(), _tmpl$19(), _tmpl$20(), _tmpl$21()];
}
}));
}
function IconH4(props) {
return createComponent(IconBase, mergeProps(props, {
get children() {
return [_tmpl$2(), _tmpl$25(), _tmpl$15(), _tmpl$16(), _tmpl$17(), _tmpl$18(), _tmpl$19(), _tmpl$20(), _tmpl$21()];
}
}));
}
function IconH5(props) {
return createComponent(IconBase, mergeProps(props, {
get children() {
return [_tmpl$2(), _tmpl$26(), _tmpl$15(), _tmpl$16(), _tmpl$17(), _tmpl$18(), _tmpl$19(), _tmpl$20(), _tmpl$21()];
}
}));
}
function IconH6(props) {
return createComponent(IconBase, mergeProps(props, {
get children() {
return [_tmpl$2(), _tmpl$27(), _tmpl$28(), _tmpl$15(), _tmpl$16(), _tmpl$17(), _tmpl$18(), _tmpl$19(), _tmpl$20(), _tmpl$21()];
}
}));
}
function IconList(props) {
return createComponent(IconBase, mergeProps(props, {
get children() {
return [_tmpl$2(), _tmpl$29(), _tmpl$30(), _tmpl$31(), _tmpl$32(), _tmpl$33(), _tmpl$34()];
}
}));
}
function IconListNumbers(props) {
return createComponent(IconBase, mergeProps(props, {
get children() {
return [_tmpl$2(), _tmpl$35(), _tmpl$36(), _tmpl$37(), _tmpl$38(), _tmpl$39()];
}
}));
}
function IconUnlink(props) {
return createComponent(IconBase, mergeProps(props, {
get children() {
return [_tmpl$2(), _tmpl$40(), _tmpl$41(), _tmpl$42(), _tmpl$43(), _tmpl$44(), _tmpl$45(), _tmpl$46()];
}
}));
}
function IconBlockquote(props) {
return createComponent(IconBase, mergeProps(props, {
get children() {
return [_tmpl$2(), _tmpl$47(), _tmpl$48(), _tmpl$49(), _tmpl$50(), _tmpl$51(), _tmpl$52()];
}
}));
}
function IconAlignLeft(props) {
return createComponent(IconBase, mergeProps(props, {
get children() {
return [_tmpl$2(), _tmpl$53(), _tmpl$54(), _tmpl$55()];
}
}));
}
function IconAlignRight(props) {
return createComponent(IconBase, mergeProps(props, {
get children() {
return [_tmpl$2(), _tmpl$53(), _tmpl$56(), _tmpl$57()];
}
}));
}
function IconAlignCenter(props) {
return createComponent(IconBase, mergeProps(props, {
get children() {
return [_tmpl$2(), _tmpl$53(), _tmpl$58(), _tmpl$59()];
}
}));
}
function IconAlignJustified(props) {
return createComponent(IconBase, mergeProps(props, {
get children() {
return [_tmpl$2(), _tmpl$53(), _tmpl$60(), _tmpl$61()];
}
}));
}
function IconSubscript(props) {
return createComponent(IconBase, mergeProps(props, {
get children() {
return [_tmpl$2(), _tmpl$62(), _tmpl$63()];
}
}));
}
function IconSuperscript(props) {
return createComponent(IconBase, mergeProps(props, {
get children() {
return [_tmpl$2(), _tmpl$62(), _tmpl$64()];
}
}));
}
function IconCode(props) {
return createComponent(IconBase, mergeProps(props, {
get children() {
return [_tmpl$2(), _tmpl$65(), _tmpl$66(), _tmpl$67()];
}
}));
}
function IconHighlight(props) {
return createComponent(IconBase, mergeProps(props, {
get children() {
return [_tmpl$2(), _tmpl$68(), _tmpl$69(), _tmpl$70(), _tmpl$71()];
}
}));
}
function IconLineDashed(props) {
return createComponent(IconBase, mergeProps(props, {
get children() {
return [_tmpl$2(), _tmpl$72(), _tmpl$73(), _tmpl$74()];
}
}));
}
function IconCircleOff(props) {
return createComponent(IconBase, mergeProps(props, {
get children() {
return [_tmpl$2(), _tmpl$75(), _tmpl$76()];
}
}));
}
function IconColorPicker(props) {
return createComponent(IconBase, mergeProps(props, {
get children() {
return [_tmpl$2(), _tmpl$77(), _tmpl$78()];
}
}));
}
function IconX(props) {
return createComponent(IconBase, mergeProps(props, {
get children() {
return [_tmpl$2(), _tmpl$79(), _tmpl$80()];
}
}));
}
function IconPalette(props) {
return createComponent(IconBase, mergeProps(props, {
get children() {
return [_tmpl$2(), _tmpl$81(), _tmpl$82(), _tmpl$83(), _tmpl$84()];
}
}));
}
function IconCheck(props) {
return createComponent(IconBase, mergeProps(props, {
get children() {
return [_tmpl$2(), _tmpl$85()];
}
}));
}
function IconLink(props) {
return createComponent(IconBase, mergeProps(props, {
get children() {
return [_tmpl$2(), _tmpl$41(), _tmpl$42(), _tmpl$43()];
}
}));
}
function IconExternalLink(props) {
return createComponent(IconBase, mergeProps(props, {
get children() {
return [_tmpl$2(), _tmpl$86(), _tmpl$87(), _tmpl$88()];
}
}));
}
function IconArrowBackUp(props) {
return createComponent(IconBase, mergeProps(props, {
get children() {
return [_tmpl$2(), _tmpl$89(), _tmpl$90()];
}
}));
}
function IconArrowForwardUp(props) {
return createComponent(IconBase, mergeProps(props, {
get children() {
return [_tmpl$2(), _tmpl$91(), _tmpl$92()];
}
}));
}
function IconListCheck(props) {
return createComponent(IconBase, mergeProps(props, {
get children() {
return [_tmpl$2(), _tmpl$93(), _tmpl$94(), _tmpl$95(), _tmpl$96(), _tmpl$97(), _tmpl$98()];
}
}));
}
function IconIndentIncrease(props) {
return createComponent(IconBase, mergeProps(props, {
get children() {
return [_tmpl$2(), _tmpl$99(), _tmpl$100(), _tmpl$101(), _tmpl$102()];
}
}));
}
function IconIndentDecrease(props) {
return createComponent(IconBase, mergeProps(props, {
get children() {
return [_tmpl$2(), _tmpl$103(), _tmpl$104(), _tmpl$105(), _tmpl$106()];
}
}));
}
export { IconAlignCenter, IconAlignJustified, IconAlignLeft, IconAlignRight, IconArrowBackUp, IconArrowForwardUp, IconBase, IconBlockquote, IconBold, IconCheck, IconCircleOff, IconClearFormatting, IconCode, IconColorPicker, IconExternalLink, IconH1, IconH2, IconH3, IconH4, IconH5, IconH6, IconHighlight, IconIndentDecrease, IconIndentIncrease, IconItalic, IconLineDashed, IconLink, IconList, IconListCheck, IconListNumbers, IconPalette, IconStrikethrough, IconSubscript, IconSuperscript, IconUnderline, IconUnlink, IconX };
sourceMappingURL=Icons.mjs.map