quoin-editor 1.3.0 → 1.4.0
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/CHANGELOG.md +9 -0
- package/THIRD_PARTY_NOTICES.md +47 -0
- package/dist/ai.cjs +21 -22
- package/dist/ai.cjs.map +1 -1
- package/dist/ai.d.cts +3 -2
- package/dist/ai.d.ts +3 -2
- package/dist/ai.js +1 -2
- package/dist/ai.js.map +1 -1
- package/dist/catalogue.cjs +15 -15
- package/dist/catalogue.d.cts +9 -8
- package/dist/catalogue.d.ts +9 -8
- package/dist/catalogue.js +8 -8
- package/dist/{chunk-HRTIY6NY.cjs → chunk-3NVFHJFS.cjs} +20 -19
- package/dist/chunk-3NVFHJFS.cjs.map +1 -0
- package/dist/{chunk-QGQFA5HD.js → chunk-3YA7FYEL.js} +7 -4
- package/dist/chunk-3YA7FYEL.js.map +1 -0
- package/dist/{chunk-5MQ2AL7L.cjs → chunk-65WK575V.cjs} +552 -96
- package/dist/chunk-65WK575V.cjs.map +1 -0
- package/dist/{chunk-OZIRHN5H.js → chunk-6LOYAC5N.js} +5 -4
- package/dist/chunk-6LOYAC5N.js.map +1 -0
- package/dist/{chunk-7RZNJR4J.cjs → chunk-7WSBPD6Z.cjs} +44 -41
- package/dist/chunk-7WSBPD6Z.cjs.map +1 -0
- package/dist/{chunk-5YQKKFYB.js → chunk-AC4AFDTI.js} +3 -3
- package/dist/{chunk-5YQKKFYB.js.map → chunk-AC4AFDTI.js.map} +1 -1
- package/dist/{chunk-3YXV6LP7.cjs → chunk-AZ2ZNSFN.cjs} +17 -18
- package/dist/chunk-AZ2ZNSFN.cjs.map +1 -0
- package/dist/{chunk-5ILVILAJ.cjs → chunk-FQDNF7MF.cjs} +41 -42
- package/dist/chunk-FQDNF7MF.cjs.map +1 -0
- package/dist/{chunk-AY5ANGXK.cjs → chunk-H5FM6I5W.cjs} +9 -9
- package/dist/{chunk-AY5ANGXK.cjs.map → chunk-H5FM6I5W.cjs.map} +1 -1
- package/dist/{chunk-DGWAVYTO.js → chunk-KRLHGVJV.js} +5 -4
- package/dist/chunk-KRLHGVJV.js.map +1 -0
- package/dist/{chunk-YFPEJP6W.js → chunk-MQTLZTIM.js} +446 -23
- package/dist/chunk-MQTLZTIM.js.map +1 -0
- package/dist/{chunk-YWYOLZWB.cjs → chunk-QPOUONJ7.cjs} +23 -22
- package/dist/chunk-QPOUONJ7.cjs.map +1 -0
- package/dist/{chunk-FWETDMCE.js → chunk-STCJWXP5.js} +3 -4
- package/dist/chunk-STCJWXP5.js.map +1 -0
- package/dist/{chunk-X2CN6FXA.cjs → chunk-VUYJGFUA.cjs} +12 -11
- package/dist/chunk-VUYJGFUA.cjs.map +1 -0
- package/dist/{chunk-R5RI4SFY.js → chunk-VVS6JJLI.js} +5 -4
- package/dist/chunk-VVS6JJLI.js.map +1 -0
- package/dist/{chunk-UWTU4V3G.js → chunk-YEQEBJPM.js} +3 -4
- package/dist/chunk-YEQEBJPM.js.map +1 -0
- package/dist/comments.cjs +21 -21
- package/dist/comments.cjs.map +1 -1
- package/dist/comments.d.cts +3 -2
- package/dist/comments.d.ts +3 -2
- package/dist/comments.js +5 -5
- package/dist/comments.js.map +1 -1
- package/dist/diff.d.cts +7 -5
- package/dist/diff.d.ts +7 -5
- package/dist/docx.d.cts +3 -2
- package/dist/docx.d.ts +3 -2
- package/dist/embed.cjs +4 -4
- package/dist/embed.d.cts +4 -3
- package/dist/embed.d.ts +4 -3
- package/dist/embed.js +2 -2
- package/dist/emoji-data.cjs +272 -263
- package/dist/emoji-data.cjs.map +1 -1
- package/dist/emoji-data.js +272 -263
- package/dist/emoji-data.js.map +1 -1
- package/dist/{emoji-extension-W7WYXOxF.d.ts → emoji-extension-C3o_Y5uC.d.cts} +3 -2
- package/dist/{emoji-extension-j6FdAXPA.d.cts → emoji-extension-gRKnbW8G.d.ts} +3 -2
- package/dist/emoji.cjs +5 -5
- package/dist/emoji.d.cts +5 -4
- package/dist/emoji.d.ts +5 -4
- package/dist/emoji.js +2 -2
- package/dist/engine.d.cts +5 -4
- package/dist/engine.d.ts +5 -4
- package/dist/{find-extension-DhVtoyGx.d.cts → find-extension-BGGsJMu4.d.cts} +3 -2
- package/dist/{find-extension-CwhUbnM7.d.ts → find-extension-B_Ctrs6T.d.ts} +3 -2
- package/dist/find.cjs +6 -6
- package/dist/find.d.cts +5 -4
- package/dist/find.d.ts +5 -4
- package/dist/find.js +2 -2
- package/dist/headless.d.cts +8 -7
- package/dist/headless.d.ts +8 -7
- package/dist/{index-CLSQdbjq.d.ts → index-CsG7OQoq.d.cts} +3 -2
- package/dist/{index-KM5kJs7H.d.cts → index-h1llgZM-.d.ts} +3 -2
- package/dist/index.cjs +12 -12
- package/dist/index.d.cts +9 -8
- package/dist/index.d.ts +9 -8
- package/dist/index.js +1 -1
- package/dist/math.cjs +4 -4
- package/dist/math.d.cts +4 -3
- package/dist/math.d.ts +4 -3
- package/dist/math.js +2 -2
- package/dist/mention.cjs +4 -4
- package/dist/mention.d.cts +3 -2
- package/dist/mention.d.ts +3 -2
- package/dist/mention.js +2 -2
- package/dist/presence.cjs +1 -1
- package/dist/presence.d.cts +4 -3
- package/dist/presence.d.ts +4 -3
- package/dist/presence.js +1 -1
- package/dist/{registry-CXegaw5k.d.cts → registry-DdQaddP1.d.cts} +2 -1
- package/dist/{registry-CXegaw5k.d.ts → registry-DdQaddP1.d.ts} +2 -1
- package/dist/{stats-extension-ByKYtIB5.d.cts → stats-extension-XqOTvRaq.d.cts} +3 -2
- package/dist/{stats-extension-DNEtte9E.d.ts → stats-extension-oD6D1cYy.d.ts} +3 -2
- package/dist/stats.cjs +1 -1
- package/dist/stats.d.cts +5 -4
- package/dist/stats.d.ts +5 -4
- package/dist/stats.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/{table-extension-DuphgC4v.d.cts → table-extension-BP47hHoz.d.cts} +3 -2
- package/dist/{table-extension-BT6DTOXL.d.ts → table-extension-v6VB59bF.d.ts} +3 -2
- package/dist/table.cjs +21 -21
- package/dist/table.d.cts +5 -4
- package/dist/table.d.ts +5 -4
- package/dist/table.js +2 -2
- package/dist/{to-html-DwhNK6-9.d.cts → to-html-1oD-CDle.d.cts} +2 -1
- package/dist/{to-html-B_NwgPSz.d.ts → to-html-CLRBCX0I.d.ts} +2 -1
- package/dist/{toc-extension-B0Datrvu.d.ts → toc-extension-CI6jNOYl.d.cts} +3 -2
- package/dist/{toc-extension-RtMspT0A.d.cts → toc-extension-CTHWjNJC.d.ts} +3 -2
- package/dist/toc.cjs +5 -5
- package/dist/toc.d.cts +5 -4
- package/dist/toc.d.ts +5 -4
- package/dist/toc.js +2 -2
- package/dist/{types-rf9DGNaS.d.ts → types-BjLcmV00.d.ts} +2 -1
- package/dist/{types-DM6gsVga.d.cts → types-DXF9p4qV.d.cts} +2 -1
- package/dist/{view-controller-BzXblb44.d.cts → view-controller-BfVSNZYZ.d.cts} +3 -2
- package/dist/{view-controller-CdzfG_xK.d.ts → view-controller-p-2x3J7Y.d.ts} +3 -2
- package/dist/view.d.cts +7 -5
- package/dist/view.d.ts +7 -5
- package/dist/yjs.d.cts +4 -4
- package/dist/yjs.d.ts +4 -4
- package/package.json +19 -18
- package/dist/chunk-3YXV6LP7.cjs.map +0 -1
- package/dist/chunk-5ILVILAJ.cjs.map +0 -1
- package/dist/chunk-5MQ2AL7L.cjs.map +0 -1
- package/dist/chunk-7RZNJR4J.cjs.map +0 -1
- package/dist/chunk-DGWAVYTO.js.map +0 -1
- package/dist/chunk-FWETDMCE.js.map +0 -1
- package/dist/chunk-HRTIY6NY.cjs.map +0 -1
- package/dist/chunk-OZIRHN5H.js.map +0 -1
- package/dist/chunk-QGQFA5HD.js.map +0 -1
- package/dist/chunk-R5RI4SFY.js.map +0 -1
- package/dist/chunk-UWTU4V3G.js.map +0 -1
- package/dist/chunk-X2CN6FXA.cjs.map +0 -1
- package/dist/chunk-YFPEJP6W.js.map +0 -1
- package/dist/chunk-YWYOLZWB.cjs.map +0 -1
|
@@ -4,7 +4,6 @@ import { createPluginKey, coreExtensions, defineExtension, duplicateBlocks, prim
|
|
|
4
4
|
import { str, blockPlainText, sanitizeHref, inlineText, parseInline, newId, createDoc, sameItems, headingLevel, sanitizeAssetUrl, blockById, sliceInline, specFor, createBlockCodec, hasMark, alignOrUndefined, optionalNumber, requireBlockIndex, SCHEME, inlineLength, paletteOrUndefined, PALETTE, addMark, text, sameValue } from './chunk-BJTOLCRR.js';
|
|
5
5
|
import * as React7 from 'react';
|
|
6
6
|
import { createContext, forwardRef, useRef, useImperativeHandle, useState, useMemo, useEffect, Fragment as Fragment$1, useContext, useSyncExternalStore, useCallback, useId, createElement } from 'react';
|
|
7
|
-
import { FileText, MessageSquare, Code, Image, Paperclip, CopyPlus, Copy, Link, ArrowUp, ArrowDown, Trash, Keyboard, Plus, GripVertical, Minus, Check, ExternalLink, Unlink, ChevronRightIcon, CircleIcon, ChevronDown, ListCollapse, Heading1, Heading2, Heading3, Baseline, AlignLeft, AlignJustify, AlignRight, AlignCenter, CheckIcon, Pencil, XIcon, Upload, Download, Repeat2, Palette, Droplet, Sticker, FileIcon, FileImage, FileMusic, FilePlay, FileArchive, Subscript, Superscript, Bold, Italic, Underline, Strikethrough, Type, List, ListOrdered, ListTodo, TextQuote, ListIndentIncrease, ListIndentDecrease, Undo2, Redo2 } from 'lucide-react';
|
|
8
7
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
9
8
|
import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
|
|
10
9
|
import { clsx } from 'clsx';
|
|
@@ -14,6 +13,418 @@ import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
|
14
13
|
import { createPortal } from 'react-dom';
|
|
15
14
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
16
15
|
|
|
16
|
+
function Icon({ name, ...props }) {
|
|
17
|
+
return /* @__PURE__ */ jsx(
|
|
18
|
+
"svg",
|
|
19
|
+
{
|
|
20
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
21
|
+
width: "24",
|
|
22
|
+
height: "24",
|
|
23
|
+
viewBox: "0 0 24 24",
|
|
24
|
+
fill: "none",
|
|
25
|
+
stroke: "currentColor",
|
|
26
|
+
strokeWidth: "2",
|
|
27
|
+
strokeLinecap: "round",
|
|
28
|
+
strokeLinejoin: "round",
|
|
29
|
+
"aria-hidden": "true",
|
|
30
|
+
"data-quoin-icon": name,
|
|
31
|
+
...props
|
|
32
|
+
}
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
var Check = (props) => /* @__PURE__ */ jsx(Icon, { name: "check", ...props, children: /* @__PURE__ */ jsx("path", { d: "M20 6 9 17l-5-5" }) });
|
|
36
|
+
var Circle = (props) => /* @__PURE__ */ jsx(Icon, { name: "circle", ...props, children: /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "10" }) });
|
|
37
|
+
var Copy = (props) => /* @__PURE__ */ jsxs(Icon, { name: "copy", ...props, children: [
|
|
38
|
+
/* @__PURE__ */ jsx("rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2" }),
|
|
39
|
+
/* @__PURE__ */ jsx("path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" })
|
|
40
|
+
] });
|
|
41
|
+
var CopyPlus = (props) => /* @__PURE__ */ jsxs(Icon, { name: "copy-plus", ...props, children: [
|
|
42
|
+
/* @__PURE__ */ jsx("line", { x1: "15", x2: "15", y1: "12", y2: "18" }),
|
|
43
|
+
/* @__PURE__ */ jsx("line", { x1: "12", x2: "18", y1: "15", y2: "15" }),
|
|
44
|
+
/* @__PURE__ */ jsx("rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2" }),
|
|
45
|
+
/* @__PURE__ */ jsx("path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" })
|
|
46
|
+
] });
|
|
47
|
+
var GripHorizontal = (props) => /* @__PURE__ */ jsxs(Icon, { name: "grip-horizontal", ...props, children: [
|
|
48
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "9", r: "1" }),
|
|
49
|
+
/* @__PURE__ */ jsx("circle", { cx: "19", cy: "9", r: "1" }),
|
|
50
|
+
/* @__PURE__ */ jsx("circle", { cx: "5", cy: "9", r: "1" }),
|
|
51
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "15", r: "1" }),
|
|
52
|
+
/* @__PURE__ */ jsx("circle", { cx: "19", cy: "15", r: "1" }),
|
|
53
|
+
/* @__PURE__ */ jsx("circle", { cx: "5", cy: "15", r: "1" })
|
|
54
|
+
] });
|
|
55
|
+
var GripVertical = (props) => /* @__PURE__ */ jsxs(Icon, { name: "grip-vertical", ...props, children: [
|
|
56
|
+
/* @__PURE__ */ jsx("circle", { cx: "9", cy: "12", r: "1" }),
|
|
57
|
+
/* @__PURE__ */ jsx("circle", { cx: "9", cy: "5", r: "1" }),
|
|
58
|
+
/* @__PURE__ */ jsx("circle", { cx: "9", cy: "19", r: "1" }),
|
|
59
|
+
/* @__PURE__ */ jsx("circle", { cx: "15", cy: "12", r: "1" }),
|
|
60
|
+
/* @__PURE__ */ jsx("circle", { cx: "15", cy: "5", r: "1" }),
|
|
61
|
+
/* @__PURE__ */ jsx("circle", { cx: "15", cy: "19", r: "1" })
|
|
62
|
+
] });
|
|
63
|
+
var Link = (props) => /* @__PURE__ */ jsxs(Icon, { name: "link", ...props, children: [
|
|
64
|
+
/* @__PURE__ */ jsx("path", { d: "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71" }),
|
|
65
|
+
/* @__PURE__ */ jsx("path", { d: "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71" })
|
|
66
|
+
] });
|
|
67
|
+
var Minus = (props) => /* @__PURE__ */ jsx(Icon, { name: "minus", ...props, children: /* @__PURE__ */ jsx("path", { d: "M5 12h14" }) });
|
|
68
|
+
var PenLine = (props) => /* @__PURE__ */ jsxs(Icon, { name: "pen-line", ...props, children: [
|
|
69
|
+
/* @__PURE__ */ jsx("path", { d: "M13 21h8" }),
|
|
70
|
+
/* @__PURE__ */ jsx("path", { d: "M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z" })
|
|
71
|
+
] });
|
|
72
|
+
var Pencil = (props) => /* @__PURE__ */ jsxs(Icon, { name: "pencil", ...props, children: [
|
|
73
|
+
/* @__PURE__ */ jsx("path", { d: "M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z" }),
|
|
74
|
+
/* @__PURE__ */ jsx("path", { d: "m15 5 4 4" })
|
|
75
|
+
] });
|
|
76
|
+
var Plus = (props) => /* @__PURE__ */ jsxs(Icon, { name: "plus", ...props, children: [
|
|
77
|
+
/* @__PURE__ */ jsx("path", { d: "M5 12h14" }),
|
|
78
|
+
/* @__PURE__ */ jsx("path", { d: "M12 5v14" })
|
|
79
|
+
] });
|
|
80
|
+
var Trash = (props) => /* @__PURE__ */ jsxs(Icon, { name: "trash", ...props, children: [
|
|
81
|
+
/* @__PURE__ */ jsx("path", { d: "M10 11v6" }),
|
|
82
|
+
/* @__PURE__ */ jsx("path", { d: "M14 11v6" }),
|
|
83
|
+
/* @__PURE__ */ jsx("path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6" }),
|
|
84
|
+
/* @__PURE__ */ jsx("path", { d: "M3 6h18" }),
|
|
85
|
+
/* @__PURE__ */ jsx("path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" })
|
|
86
|
+
] });
|
|
87
|
+
var Unlink = (props) => /* @__PURE__ */ jsxs(Icon, { name: "unlink", ...props, children: [
|
|
88
|
+
/* @__PURE__ */ jsx("path", { d: "m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71" }),
|
|
89
|
+
/* @__PURE__ */ jsx("path", { d: "m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71" }),
|
|
90
|
+
/* @__PURE__ */ jsx("line", { x1: "8", x2: "8", y1: "2", y2: "5" }),
|
|
91
|
+
/* @__PURE__ */ jsx("line", { x1: "2", x2: "5", y1: "8", y2: "8" }),
|
|
92
|
+
/* @__PURE__ */ jsx("line", { x1: "16", x2: "16", y1: "19", y2: "22" }),
|
|
93
|
+
/* @__PURE__ */ jsx("line", { x1: "19", x2: "22", y1: "16", y2: "16" })
|
|
94
|
+
] });
|
|
95
|
+
var X = (props) => /* @__PURE__ */ jsxs(Icon, { name: "x", ...props, children: [
|
|
96
|
+
/* @__PURE__ */ jsx("path", { d: "M18 6 6 18" }),
|
|
97
|
+
/* @__PURE__ */ jsx("path", { d: "m6 6 12 12" })
|
|
98
|
+
] });
|
|
99
|
+
var ArrowDown = (props) => /* @__PURE__ */ jsxs(Icon, { name: "arrow-down", ...props, children: [
|
|
100
|
+
/* @__PURE__ */ jsx("path", { d: "M12 5v14" }),
|
|
101
|
+
/* @__PURE__ */ jsx("path", { d: "m19 12-7 7-7-7" })
|
|
102
|
+
] });
|
|
103
|
+
var ArrowDownToLine = (props) => /* @__PURE__ */ jsxs(Icon, { name: "arrow-down-to-line", ...props, children: [
|
|
104
|
+
/* @__PURE__ */ jsx("path", { d: "M12 17V3" }),
|
|
105
|
+
/* @__PURE__ */ jsx("path", { d: "m6 11 6 6 6-6" }),
|
|
106
|
+
/* @__PURE__ */ jsx("path", { d: "M19 21H5" })
|
|
107
|
+
] });
|
|
108
|
+
var ArrowLeft = (props) => /* @__PURE__ */ jsxs(Icon, { name: "arrow-left", ...props, children: [
|
|
109
|
+
/* @__PURE__ */ jsx("path", { d: "m12 19-7-7 7-7" }),
|
|
110
|
+
/* @__PURE__ */ jsx("path", { d: "M19 12H5" })
|
|
111
|
+
] });
|
|
112
|
+
var ArrowLeftToLine = (props) => /* @__PURE__ */ jsxs(Icon, { name: "arrow-left-to-line", ...props, children: [
|
|
113
|
+
/* @__PURE__ */ jsx("path", { d: "M3 19V5" }),
|
|
114
|
+
/* @__PURE__ */ jsx("path", { d: "m13 6-6 6 6 6" }),
|
|
115
|
+
/* @__PURE__ */ jsx("path", { d: "M7 12h14" })
|
|
116
|
+
] });
|
|
117
|
+
var ArrowRight = (props) => /* @__PURE__ */ jsxs(Icon, { name: "arrow-right", ...props, children: [
|
|
118
|
+
/* @__PURE__ */ jsx("path", { d: "M5 12h14" }),
|
|
119
|
+
/* @__PURE__ */ jsx("path", { d: "m12 5 7 7-7 7" })
|
|
120
|
+
] });
|
|
121
|
+
var ArrowRightToLine = (props) => /* @__PURE__ */ jsxs(Icon, { name: "arrow-right-to-line", ...props, children: [
|
|
122
|
+
/* @__PURE__ */ jsx("path", { d: "M17 12H3" }),
|
|
123
|
+
/* @__PURE__ */ jsx("path", { d: "m11 18 6-6-6-6" }),
|
|
124
|
+
/* @__PURE__ */ jsx("path", { d: "M21 5v14" })
|
|
125
|
+
] });
|
|
126
|
+
var ArrowUp = (props) => /* @__PURE__ */ jsxs(Icon, { name: "arrow-up", ...props, children: [
|
|
127
|
+
/* @__PURE__ */ jsx("path", { d: "m5 12 7-7 7 7" }),
|
|
128
|
+
/* @__PURE__ */ jsx("path", { d: "M12 19V5" })
|
|
129
|
+
] });
|
|
130
|
+
var ArrowUpToLine = (props) => /* @__PURE__ */ jsxs(Icon, { name: "arrow-up-to-line", ...props, children: [
|
|
131
|
+
/* @__PURE__ */ jsx("path", { d: "M5 3h14" }),
|
|
132
|
+
/* @__PURE__ */ jsx("path", { d: "m18 13-6-6-6 6" }),
|
|
133
|
+
/* @__PURE__ */ jsx("path", { d: "M12 7v14" })
|
|
134
|
+
] });
|
|
135
|
+
var ChevronDown = (props) => /* @__PURE__ */ jsx(Icon, { name: "chevron-down", ...props, children: /* @__PURE__ */ jsx("path", { d: "m6 9 6 6 6-6" }) });
|
|
136
|
+
var ChevronRight = (props) => /* @__PURE__ */ jsx(Icon, { name: "chevron-right", ...props, children: /* @__PURE__ */ jsx("path", { d: "m9 18 6-6-6-6" }) });
|
|
137
|
+
var ChevronUp = (props) => /* @__PURE__ */ jsx(Icon, { name: "chevron-up", ...props, children: /* @__PURE__ */ jsx("path", { d: "m18 15-6-6-6 6" }) });
|
|
138
|
+
var ExternalLink = (props) => /* @__PURE__ */ jsxs(Icon, { name: "external-link", ...props, children: [
|
|
139
|
+
/* @__PURE__ */ jsx("path", { d: "M15 3h6v6" }),
|
|
140
|
+
/* @__PURE__ */ jsx("path", { d: "M10 14 21 3" }),
|
|
141
|
+
/* @__PURE__ */ jsx("path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" })
|
|
142
|
+
] });
|
|
143
|
+
var Redo2 = (props) => /* @__PURE__ */ jsxs(Icon, { name: "redo-2", ...props, children: [
|
|
144
|
+
/* @__PURE__ */ jsx("path", { d: "m15 14 5-5-5-5" }),
|
|
145
|
+
/* @__PURE__ */ jsx("path", { d: "M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13" })
|
|
146
|
+
] });
|
|
147
|
+
var Repeat2 = (props) => /* @__PURE__ */ jsxs(Icon, { name: "repeat-2", ...props, children: [
|
|
148
|
+
/* @__PURE__ */ jsx("path", { d: "m2 9 3-3 3 3" }),
|
|
149
|
+
/* @__PURE__ */ jsx("path", { d: "M13 18H7a2 2 0 0 1-2-2V6" }),
|
|
150
|
+
/* @__PURE__ */ jsx("path", { d: "m22 15-3 3-3-3" }),
|
|
151
|
+
/* @__PURE__ */ jsx("path", { d: "M11 6h6a2 2 0 0 1 2 2v10" })
|
|
152
|
+
] });
|
|
153
|
+
var SendHorizontal = (props) => /* @__PURE__ */ jsxs(Icon, { name: "send-horizontal", ...props, children: [
|
|
154
|
+
/* @__PURE__ */ jsx("path", { d: "M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z" }),
|
|
155
|
+
/* @__PURE__ */ jsx("path", { d: "M6 12h16" })
|
|
156
|
+
] });
|
|
157
|
+
var Undo2 = (props) => /* @__PURE__ */ jsxs(Icon, { name: "undo-2", ...props, children: [
|
|
158
|
+
/* @__PURE__ */ jsx("path", { d: "M9 14 4 9l5-5" }),
|
|
159
|
+
/* @__PURE__ */ jsx("path", { d: "M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11" })
|
|
160
|
+
] });
|
|
161
|
+
var AppWindow = (props) => /* @__PURE__ */ jsxs(Icon, { name: "app-window", ...props, children: [
|
|
162
|
+
/* @__PURE__ */ jsx("rect", { x: "2", y: "4", width: "20", height: "16", rx: "2" }),
|
|
163
|
+
/* @__PURE__ */ jsx("path", { d: "M10 4v4" }),
|
|
164
|
+
/* @__PURE__ */ jsx("path", { d: "M2 8h20" }),
|
|
165
|
+
/* @__PURE__ */ jsx("path", { d: "M6 4v4" })
|
|
166
|
+
] });
|
|
167
|
+
var Bookmark = (props) => /* @__PURE__ */ jsx(Icon, { name: "bookmark", ...props, children: /* @__PURE__ */ jsx("path", { d: "M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z" }) });
|
|
168
|
+
var Download = (props) => /* @__PURE__ */ jsxs(Icon, { name: "download", ...props, children: [
|
|
169
|
+
/* @__PURE__ */ jsx("path", { d: "M12 15V3" }),
|
|
170
|
+
/* @__PURE__ */ jsx("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }),
|
|
171
|
+
/* @__PURE__ */ jsx("path", { d: "m7 10 5 5 5-5" })
|
|
172
|
+
] });
|
|
173
|
+
var FileArchive = (props) => /* @__PURE__ */ jsxs(Icon, { name: "file-archive", ...props, children: [
|
|
174
|
+
/* @__PURE__ */ jsx("path", { d: "M13.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v11.5" }),
|
|
175
|
+
/* @__PURE__ */ jsx("path", { d: "M14 2v5a1 1 0 0 0 1 1h5" }),
|
|
176
|
+
/* @__PURE__ */ jsx("path", { d: "M8 12v-1" }),
|
|
177
|
+
/* @__PURE__ */ jsx("path", { d: "M8 18v-2" }),
|
|
178
|
+
/* @__PURE__ */ jsx("path", { d: "M8 7V6" }),
|
|
179
|
+
/* @__PURE__ */ jsx("circle", { cx: "8", cy: "20", r: "2" })
|
|
180
|
+
] });
|
|
181
|
+
var FileIcon = (props) => /* @__PURE__ */ jsxs(Icon, { name: "file", ...props, children: [
|
|
182
|
+
/* @__PURE__ */ jsx("path", { d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" }),
|
|
183
|
+
/* @__PURE__ */ jsx("path", { d: "M14 2v5a1 1 0 0 0 1 1h5" })
|
|
184
|
+
] });
|
|
185
|
+
var FileImage = (props) => /* @__PURE__ */ jsxs(Icon, { name: "file-image", ...props, children: [
|
|
186
|
+
/* @__PURE__ */ jsx("path", { d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" }),
|
|
187
|
+
/* @__PURE__ */ jsx("path", { d: "M14 2v5a1 1 0 0 0 1 1h5" }),
|
|
188
|
+
/* @__PURE__ */ jsx("circle", { cx: "10", cy: "12", r: "2" }),
|
|
189
|
+
/* @__PURE__ */ jsx("path", { d: "m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22" })
|
|
190
|
+
] });
|
|
191
|
+
var FileMusic = (props) => /* @__PURE__ */ jsxs(Icon, { name: "file-music", ...props, children: [
|
|
192
|
+
/* @__PURE__ */ jsx("path", { d: "M11.65 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v10.35" }),
|
|
193
|
+
/* @__PURE__ */ jsx("path", { d: "M14 2v5a1 1 0 0 0 1 1h5" }),
|
|
194
|
+
/* @__PURE__ */ jsx("path", { d: "M8 20v-7l3 1.474" }),
|
|
195
|
+
/* @__PURE__ */ jsx("circle", { cx: "6", cy: "20", r: "2" })
|
|
196
|
+
] });
|
|
197
|
+
var FilePlay = (props) => /* @__PURE__ */ jsxs(Icon, { name: "file-play", ...props, children: [
|
|
198
|
+
/* @__PURE__ */ jsx("path", { d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" }),
|
|
199
|
+
/* @__PURE__ */ jsx("path", { d: "M14 2v5a1 1 0 0 0 1 1h5" }),
|
|
200
|
+
/* @__PURE__ */ jsx("path", { d: "M15.033 13.44a.647.647 0 0 1 0 1.12l-4.065 2.352a.645.645 0 0 1-.968-.56v-4.704a.645.645 0 0 1 .967-.56z" })
|
|
201
|
+
] });
|
|
202
|
+
var FileText = (props) => /* @__PURE__ */ jsxs(Icon, { name: "file-text", ...props, children: [
|
|
203
|
+
/* @__PURE__ */ jsx("path", { d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" }),
|
|
204
|
+
/* @__PURE__ */ jsx("path", { d: "M14 2v5a1 1 0 0 0 1 1h5" }),
|
|
205
|
+
/* @__PURE__ */ jsx("path", { d: "M10 9H8" }),
|
|
206
|
+
/* @__PURE__ */ jsx("path", { d: "M16 13H8" }),
|
|
207
|
+
/* @__PURE__ */ jsx("path", { d: "M16 17H8" })
|
|
208
|
+
] });
|
|
209
|
+
var Image = (props) => /* @__PURE__ */ jsxs(Icon, { name: "image", ...props, children: [
|
|
210
|
+
/* @__PURE__ */ jsx("rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2" }),
|
|
211
|
+
/* @__PURE__ */ jsx("circle", { cx: "9", cy: "9", r: "2" }),
|
|
212
|
+
/* @__PURE__ */ jsx("path", { d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21" })
|
|
213
|
+
] });
|
|
214
|
+
var Paperclip = (props) => /* @__PURE__ */ jsx(Icon, { name: "paperclip", ...props, children: /* @__PURE__ */ jsx("path", { d: "m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551" }) });
|
|
215
|
+
var Upload = (props) => /* @__PURE__ */ jsxs(Icon, { name: "upload", ...props, children: [
|
|
216
|
+
/* @__PURE__ */ jsx("path", { d: "M12 3v12" }),
|
|
217
|
+
/* @__PURE__ */ jsx("path", { d: "m17 8-5-5-5 5" }),
|
|
218
|
+
/* @__PURE__ */ jsx("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" })
|
|
219
|
+
] });
|
|
220
|
+
var AlignCenter = (props) => /* @__PURE__ */ jsxs(Icon, { name: "align-center", ...props, children: [
|
|
221
|
+
/* @__PURE__ */ jsx("path", { d: "M21 5H3" }),
|
|
222
|
+
/* @__PURE__ */ jsx("path", { d: "M17 12H7" }),
|
|
223
|
+
/* @__PURE__ */ jsx("path", { d: "M19 19H5" })
|
|
224
|
+
] });
|
|
225
|
+
var AlignJustify = (props) => /* @__PURE__ */ jsxs(Icon, { name: "align-justify", ...props, children: [
|
|
226
|
+
/* @__PURE__ */ jsx("path", { d: "M3 5h18" }),
|
|
227
|
+
/* @__PURE__ */ jsx("path", { d: "M3 12h18" }),
|
|
228
|
+
/* @__PURE__ */ jsx("path", { d: "M3 19h18" })
|
|
229
|
+
] });
|
|
230
|
+
var AlignLeft = (props) => /* @__PURE__ */ jsxs(Icon, { name: "align-left", ...props, children: [
|
|
231
|
+
/* @__PURE__ */ jsx("path", { d: "M21 5H3" }),
|
|
232
|
+
/* @__PURE__ */ jsx("path", { d: "M15 12H3" }),
|
|
233
|
+
/* @__PURE__ */ jsx("path", { d: "M17 19H3" })
|
|
234
|
+
] });
|
|
235
|
+
var AlignRight = (props) => /* @__PURE__ */ jsxs(Icon, { name: "align-right", ...props, children: [
|
|
236
|
+
/* @__PURE__ */ jsx("path", { d: "M21 5H3" }),
|
|
237
|
+
/* @__PURE__ */ jsx("path", { d: "M21 12H9" }),
|
|
238
|
+
/* @__PURE__ */ jsx("path", { d: "M21 19H7" })
|
|
239
|
+
] });
|
|
240
|
+
var List = (props) => /* @__PURE__ */ jsxs(Icon, { name: "list", ...props, children: [
|
|
241
|
+
/* @__PURE__ */ jsx("path", { d: "M3 5h.01" }),
|
|
242
|
+
/* @__PURE__ */ jsx("path", { d: "M3 12h.01" }),
|
|
243
|
+
/* @__PURE__ */ jsx("path", { d: "M3 19h.01" }),
|
|
244
|
+
/* @__PURE__ */ jsx("path", { d: "M8 5h13" }),
|
|
245
|
+
/* @__PURE__ */ jsx("path", { d: "M8 12h13" }),
|
|
246
|
+
/* @__PURE__ */ jsx("path", { d: "M8 19h13" })
|
|
247
|
+
] });
|
|
248
|
+
var ListCollapse = (props) => /* @__PURE__ */ jsxs(Icon, { name: "list-collapse", ...props, children: [
|
|
249
|
+
/* @__PURE__ */ jsx("path", { d: "M10 5h11" }),
|
|
250
|
+
/* @__PURE__ */ jsx("path", { d: "M10 12h11" }),
|
|
251
|
+
/* @__PURE__ */ jsx("path", { d: "M10 19h11" }),
|
|
252
|
+
/* @__PURE__ */ jsx("path", { d: "m3 10 3-3-3-3" }),
|
|
253
|
+
/* @__PURE__ */ jsx("path", { d: "m3 20 3-3-3-3" })
|
|
254
|
+
] });
|
|
255
|
+
var ListIndentDecrease = (props) => /* @__PURE__ */ jsxs(Icon, { name: "list-indent-decrease", ...props, children: [
|
|
256
|
+
/* @__PURE__ */ jsx("path", { d: "M21 5H11" }),
|
|
257
|
+
/* @__PURE__ */ jsx("path", { d: "M21 12H11" }),
|
|
258
|
+
/* @__PURE__ */ jsx("path", { d: "M21 19H11" }),
|
|
259
|
+
/* @__PURE__ */ jsx("path", { d: "m7 8-4 4 4 4" })
|
|
260
|
+
] });
|
|
261
|
+
var ListIndentIncrease = (props) => /* @__PURE__ */ jsxs(Icon, { name: "list-indent-increase", ...props, children: [
|
|
262
|
+
/* @__PURE__ */ jsx("path", { d: "M21 5H11" }),
|
|
263
|
+
/* @__PURE__ */ jsx("path", { d: "M21 12H11" }),
|
|
264
|
+
/* @__PURE__ */ jsx("path", { d: "M21 19H11" }),
|
|
265
|
+
/* @__PURE__ */ jsx("path", { d: "m3 8 4 4-4 4" })
|
|
266
|
+
] });
|
|
267
|
+
var ListOrdered = (props) => /* @__PURE__ */ jsxs(Icon, { name: "list-ordered", ...props, children: [
|
|
268
|
+
/* @__PURE__ */ jsx("path", { d: "M11 5h10" }),
|
|
269
|
+
/* @__PURE__ */ jsx("path", { d: "M11 12h10" }),
|
|
270
|
+
/* @__PURE__ */ jsx("path", { d: "M11 19h10" }),
|
|
271
|
+
/* @__PURE__ */ jsx("path", { d: "M4 4h1v5" }),
|
|
272
|
+
/* @__PURE__ */ jsx("path", { d: "M4 9h2" }),
|
|
273
|
+
/* @__PURE__ */ jsx("path", { d: "M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02" })
|
|
274
|
+
] });
|
|
275
|
+
var ListTodo = (props) => /* @__PURE__ */ jsxs(Icon, { name: "list-todo", ...props, children: [
|
|
276
|
+
/* @__PURE__ */ jsx("path", { d: "M13 5h8" }),
|
|
277
|
+
/* @__PURE__ */ jsx("path", { d: "M13 12h8" }),
|
|
278
|
+
/* @__PURE__ */ jsx("path", { d: "M13 19h8" }),
|
|
279
|
+
/* @__PURE__ */ jsx("path", { d: "m3 17 2 2 4-4" }),
|
|
280
|
+
/* @__PURE__ */ jsx("rect", { x: "3", y: "4", width: "6", height: "6", rx: "1" })
|
|
281
|
+
] });
|
|
282
|
+
var Table = (props) => /* @__PURE__ */ jsxs(Icon, { name: "table", ...props, children: [
|
|
283
|
+
/* @__PURE__ */ jsx("path", { d: "M12 3v18" }),
|
|
284
|
+
/* @__PURE__ */ jsx("rect", { width: "18", height: "18", x: "3", y: "3", rx: "2" }),
|
|
285
|
+
/* @__PURE__ */ jsx("path", { d: "M3 9h18" }),
|
|
286
|
+
/* @__PURE__ */ jsx("path", { d: "M3 15h18" })
|
|
287
|
+
] });
|
|
288
|
+
var TableOfContents = (props) => /* @__PURE__ */ jsxs(Icon, { name: "table-of-contents", ...props, children: [
|
|
289
|
+
/* @__PURE__ */ jsx("path", { d: "M16 5H3" }),
|
|
290
|
+
/* @__PURE__ */ jsx("path", { d: "M16 12H3" }),
|
|
291
|
+
/* @__PURE__ */ jsx("path", { d: "M16 19H3" }),
|
|
292
|
+
/* @__PURE__ */ jsx("path", { d: "M21 5h.01" }),
|
|
293
|
+
/* @__PURE__ */ jsx("path", { d: "M21 12h.01" }),
|
|
294
|
+
/* @__PURE__ */ jsx("path", { d: "M21 19h.01" })
|
|
295
|
+
] });
|
|
296
|
+
var Droplet = (props) => /* @__PURE__ */ jsx(Icon, { name: "droplet", ...props, children: /* @__PURE__ */ jsx("path", { d: "M12 22a7 7 0 0 0 7-7c0-2-1-3.9-3-5.5s-3.5-4-4-6.5c-.5 2.5-2 4.9-4 6.5C6 11.1 5 13 5 15a7 7 0 0 0 7 7z" }) });
|
|
297
|
+
var Keyboard = (props) => /* @__PURE__ */ jsxs(Icon, { name: "keyboard", ...props, children: [
|
|
298
|
+
/* @__PURE__ */ jsx("path", { d: "M10 8h.01" }),
|
|
299
|
+
/* @__PURE__ */ jsx("path", { d: "M12 12h.01" }),
|
|
300
|
+
/* @__PURE__ */ jsx("path", { d: "M14 8h.01" }),
|
|
301
|
+
/* @__PURE__ */ jsx("path", { d: "M16 12h.01" }),
|
|
302
|
+
/* @__PURE__ */ jsx("path", { d: "M18 8h.01" }),
|
|
303
|
+
/* @__PURE__ */ jsx("path", { d: "M6 8h.01" }),
|
|
304
|
+
/* @__PURE__ */ jsx("path", { d: "M7 16h10" }),
|
|
305
|
+
/* @__PURE__ */ jsx("path", { d: "M8 12h.01" }),
|
|
306
|
+
/* @__PURE__ */ jsx("rect", { width: "20", height: "16", x: "2", y: "4", rx: "2" })
|
|
307
|
+
] });
|
|
308
|
+
var MessageSquare = (props) => /* @__PURE__ */ jsx(Icon, { name: "message-square", ...props, children: /* @__PURE__ */ jsx("path", { d: "M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z" }) });
|
|
309
|
+
var MessageSquarePlus = (props) => /* @__PURE__ */ jsxs(Icon, { name: "message-square-plus", ...props, children: [
|
|
310
|
+
/* @__PURE__ */ jsx("path", { d: "M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z" }),
|
|
311
|
+
/* @__PURE__ */ jsx("path", { d: "M12 8v6" }),
|
|
312
|
+
/* @__PURE__ */ jsx("path", { d: "M9 11h6" })
|
|
313
|
+
] });
|
|
314
|
+
var Palette = (props) => /* @__PURE__ */ jsxs(Icon, { name: "palette", ...props, children: [
|
|
315
|
+
/* @__PURE__ */ jsx("path", { d: "M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z" }),
|
|
316
|
+
/* @__PURE__ */ jsx("circle", { cx: "13.5", cy: "6.5", r: ".5", fill: "currentColor" }),
|
|
317
|
+
/* @__PURE__ */ jsx("circle", { cx: "17.5", cy: "10.5", r: ".5", fill: "currentColor" }),
|
|
318
|
+
/* @__PURE__ */ jsx("circle", { cx: "6.5", cy: "12.5", r: ".5", fill: "currentColor" }),
|
|
319
|
+
/* @__PURE__ */ jsx("circle", { cx: "8.5", cy: "7.5", r: ".5", fill: "currentColor" })
|
|
320
|
+
] });
|
|
321
|
+
var Radical = (props) => /* @__PURE__ */ jsx(Icon, { name: "radical", ...props, children: /* @__PURE__ */ jsx("path", { d: "M3 12h3.28a1 1 0 0 1 .948.684l2.298 7.934a.5.5 0 0 0 .96-.044L13.82 4.771A1 1 0 0 1 14.792 4H21" }) });
|
|
322
|
+
var Sigma = (props) => /* @__PURE__ */ jsx(Icon, { name: "sigma", ...props, children: /* @__PURE__ */ jsx("path", { d: "M18 7V5a1 1 0 0 0-1-1H6.5a.5.5 0 0 0-.4.8l4.5 6a2 2 0 0 1 0 2.4l-4.5 6a.5.5 0 0 0 .4.8H17a1 1 0 0 0 1-1v-2" }) });
|
|
323
|
+
var SmilePlus = (props) => /* @__PURE__ */ jsxs(Icon, { name: "smile-plus", ...props, children: [
|
|
324
|
+
/* @__PURE__ */ jsx("path", { d: "M13.267 2.08a10 10 0 108.653 8.653" }),
|
|
325
|
+
/* @__PURE__ */ jsx("path", { d: "M15 10V9" }),
|
|
326
|
+
/* @__PURE__ */ jsx("path", { d: "M16 5h6" }),
|
|
327
|
+
/* @__PURE__ */ jsx("path", { d: "M16.472 15a6 6 0 01-8.943 0" }),
|
|
328
|
+
/* @__PURE__ */ jsx("path", { d: "M19 2v6" }),
|
|
329
|
+
/* @__PURE__ */ jsx("path", { d: "M9 10V9" })
|
|
330
|
+
] });
|
|
331
|
+
var Sparkles = (props) => /* @__PURE__ */ jsxs(Icon, { name: "sparkles", ...props, children: [
|
|
332
|
+
/* @__PURE__ */ jsx("path", { d: "M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z" }),
|
|
333
|
+
/* @__PURE__ */ jsx("path", { d: "M20 2v4" }),
|
|
334
|
+
/* @__PURE__ */ jsx("path", { d: "M22 4h-4" }),
|
|
335
|
+
/* @__PURE__ */ jsx("circle", { cx: "4", cy: "20", r: "2" })
|
|
336
|
+
] });
|
|
337
|
+
var Sticker = (props) => /* @__PURE__ */ jsxs(Icon, { name: "sticker", ...props, children: [
|
|
338
|
+
/* @__PURE__ */ jsx("path", { d: "M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z" }),
|
|
339
|
+
/* @__PURE__ */ jsx("path", { d: "M15 3v5a1 1 0 0 0 1 1h5" }),
|
|
340
|
+
/* @__PURE__ */ jsx("path", { d: "M8 13h.01" }),
|
|
341
|
+
/* @__PURE__ */ jsx("path", { d: "M16 13h.01" }),
|
|
342
|
+
/* @__PURE__ */ jsx("path", { d: "M10 16s.8 1 2 1c1.3 0 2-1 2-1" })
|
|
343
|
+
] });
|
|
344
|
+
var Baseline = (props) => /* @__PURE__ */ jsxs(Icon, { name: "baseline", ...props, children: [
|
|
345
|
+
/* @__PURE__ */ jsx("path", { d: "M4 20h16" }),
|
|
346
|
+
/* @__PURE__ */ jsx("path", { d: "m6 16 6-12 6 12" }),
|
|
347
|
+
/* @__PURE__ */ jsx("path", { d: "M8 12h8" })
|
|
348
|
+
] });
|
|
349
|
+
var Bold = (props) => /* @__PURE__ */ jsx(Icon, { name: "bold", ...props, children: /* @__PURE__ */ jsx("path", { d: "M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8" }) });
|
|
350
|
+
var CaseSensitive = (props) => /* @__PURE__ */ jsxs(Icon, { name: "case-sensitive", ...props, children: [
|
|
351
|
+
/* @__PURE__ */ jsx("path", { d: "m2 16 4.039-9.69a.5.5 0 0 1 .923 0L11 16" }),
|
|
352
|
+
/* @__PURE__ */ jsx("path", { d: "M22 9v7" }),
|
|
353
|
+
/* @__PURE__ */ jsx("path", { d: "M3.304 13h6.392" }),
|
|
354
|
+
/* @__PURE__ */ jsx("circle", { cx: "18.5", cy: "12.5", r: "3.5" })
|
|
355
|
+
] });
|
|
356
|
+
var Code = (props) => /* @__PURE__ */ jsxs(Icon, { name: "code", ...props, children: [
|
|
357
|
+
/* @__PURE__ */ jsx("path", { d: "m16 18 6-6-6-6" }),
|
|
358
|
+
/* @__PURE__ */ jsx("path", { d: "m8 6-6 6 6 6" })
|
|
359
|
+
] });
|
|
360
|
+
var Heading1 = (props) => /* @__PURE__ */ jsxs(Icon, { name: "heading-1", ...props, children: [
|
|
361
|
+
/* @__PURE__ */ jsx("path", { d: "M4 12h8" }),
|
|
362
|
+
/* @__PURE__ */ jsx("path", { d: "M4 18V6" }),
|
|
363
|
+
/* @__PURE__ */ jsx("path", { d: "M12 18V6" }),
|
|
364
|
+
/* @__PURE__ */ jsx("path", { d: "m17 12 3-2v8" })
|
|
365
|
+
] });
|
|
366
|
+
var Heading2 = (props) => /* @__PURE__ */ jsxs(Icon, { name: "heading-2", ...props, children: [
|
|
367
|
+
/* @__PURE__ */ jsx("path", { d: "M4 12h8" }),
|
|
368
|
+
/* @__PURE__ */ jsx("path", { d: "M4 18V6" }),
|
|
369
|
+
/* @__PURE__ */ jsx("path", { d: "M12 18V6" }),
|
|
370
|
+
/* @__PURE__ */ jsx("path", { d: "M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1" })
|
|
371
|
+
] });
|
|
372
|
+
var Heading3 = (props) => /* @__PURE__ */ jsxs(Icon, { name: "heading-3", ...props, children: [
|
|
373
|
+
/* @__PURE__ */ jsx("path", { d: "M4 12h8" }),
|
|
374
|
+
/* @__PURE__ */ jsx("path", { d: "M4 18V6" }),
|
|
375
|
+
/* @__PURE__ */ jsx("path", { d: "M12 18V6" }),
|
|
376
|
+
/* @__PURE__ */ jsx("path", { d: "M17.5 10.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0 1-2 2" }),
|
|
377
|
+
/* @__PURE__ */ jsx("path", { d: "M17 17.5c2 1.5 4 .3 4-1.5a2 2 0 0 0-2-2" })
|
|
378
|
+
] });
|
|
379
|
+
var Italic = (props) => /* @__PURE__ */ jsxs(Icon, { name: "italic", ...props, children: [
|
|
380
|
+
/* @__PURE__ */ jsx("line", { x1: "19", x2: "10", y1: "4", y2: "4" }),
|
|
381
|
+
/* @__PURE__ */ jsx("line", { x1: "14", x2: "5", y1: "20", y2: "20" }),
|
|
382
|
+
/* @__PURE__ */ jsx("line", { x1: "15", x2: "9", y1: "4", y2: "20" })
|
|
383
|
+
] });
|
|
384
|
+
var Regex = (props) => /* @__PURE__ */ jsxs(Icon, { name: "regex", ...props, children: [
|
|
385
|
+
/* @__PURE__ */ jsx("path", { d: "M17 3v10" }),
|
|
386
|
+
/* @__PURE__ */ jsx("path", { d: "m12.67 5.5 8.66 5" }),
|
|
387
|
+
/* @__PURE__ */ jsx("path", { d: "m12.67 10.5 8.66-5" }),
|
|
388
|
+
/* @__PURE__ */ jsx("path", { d: "M9 17a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v2a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2v-2z" })
|
|
389
|
+
] });
|
|
390
|
+
var Strikethrough = (props) => /* @__PURE__ */ jsxs(Icon, { name: "strikethrough", ...props, children: [
|
|
391
|
+
/* @__PURE__ */ jsx("path", { d: "M16 4H9a3 3 0 0 0-2.83 4" }),
|
|
392
|
+
/* @__PURE__ */ jsx("path", { d: "M14 12a4 4 0 0 1 0 8H6" }),
|
|
393
|
+
/* @__PURE__ */ jsx("line", { x1: "4", x2: "20", y1: "12", y2: "12" })
|
|
394
|
+
] });
|
|
395
|
+
var Subscript = (props) => /* @__PURE__ */ jsxs(Icon, { name: "subscript", ...props, children: [
|
|
396
|
+
/* @__PURE__ */ jsx("path", { d: "m4 5 8 8" }),
|
|
397
|
+
/* @__PURE__ */ jsx("path", { d: "m12 5-8 8" }),
|
|
398
|
+
/* @__PURE__ */ jsx("path", { d: "M20 19h-4c0-1.5.44-2 1.5-2.5S20 15.33 20 14c0-.47-.17-.93-.48-1.29a2.11 2.11 0 0 0-2.62-.44c-.42.24-.74.62-.9 1.07" })
|
|
399
|
+
] });
|
|
400
|
+
var Superscript = (props) => /* @__PURE__ */ jsxs(Icon, { name: "superscript", ...props, children: [
|
|
401
|
+
/* @__PURE__ */ jsx("path", { d: "m4 19 8-8" }),
|
|
402
|
+
/* @__PURE__ */ jsx("path", { d: "m12 19-8-8" }),
|
|
403
|
+
/* @__PURE__ */ jsx("path", { d: "M20 12h-4c0-1.5.442-2 1.5-2.5S20 8.334 20 7.002c0-.472-.17-.93-.484-1.29a2.105 2.105 0 0 0-2.617-.436c-.42.239-.738.614-.899 1.06" })
|
|
404
|
+
] });
|
|
405
|
+
var TextQuote = (props) => /* @__PURE__ */ jsxs(Icon, { name: "text-quote", ...props, children: [
|
|
406
|
+
/* @__PURE__ */ jsx("path", { d: "M17 5H3" }),
|
|
407
|
+
/* @__PURE__ */ jsx("path", { d: "M21 12H8" }),
|
|
408
|
+
/* @__PURE__ */ jsx("path", { d: "M21 19H8" }),
|
|
409
|
+
/* @__PURE__ */ jsx("path", { d: "M3 12v7" })
|
|
410
|
+
] });
|
|
411
|
+
var Type = (props) => /* @__PURE__ */ jsxs(Icon, { name: "type", ...props, children: [
|
|
412
|
+
/* @__PURE__ */ jsx("path", { d: "M12 4v16" }),
|
|
413
|
+
/* @__PURE__ */ jsx("path", { d: "M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2" }),
|
|
414
|
+
/* @__PURE__ */ jsx("path", { d: "M9 20h6" })
|
|
415
|
+
] });
|
|
416
|
+
var Underline = (props) => /* @__PURE__ */ jsxs(Icon, { name: "underline", ...props, children: [
|
|
417
|
+
/* @__PURE__ */ jsx("path", { d: "M6 4v6a6 6 0 0 0 12 0V4" }),
|
|
418
|
+
/* @__PURE__ */ jsx("line", { x1: "4", x2: "20", y1: "20", y2: "20" })
|
|
419
|
+
] });
|
|
420
|
+
var WholeWord = (props) => /* @__PURE__ */ jsxs(Icon, { name: "whole-word", ...props, children: [
|
|
421
|
+
/* @__PURE__ */ jsx("circle", { cx: "7", cy: "12", r: "3" }),
|
|
422
|
+
/* @__PURE__ */ jsx("path", { d: "M10 9v6" }),
|
|
423
|
+
/* @__PURE__ */ jsx("circle", { cx: "17", cy: "12", r: "3" }),
|
|
424
|
+
/* @__PURE__ */ jsx("path", { d: "M14 7v8" }),
|
|
425
|
+
/* @__PURE__ */ jsx("path", { d: "M22 17v1c0 .5-.5 1-1 1H3c-.5 0-1-.5-1-1v-1" })
|
|
426
|
+
] });
|
|
427
|
+
|
|
17
428
|
// src/blocks/file/format-size.ts
|
|
18
429
|
var UNITS = ["B", "KB", "MB", "GB", "TB"];
|
|
19
430
|
function formatSize(bytes) {
|
|
@@ -604,7 +1015,7 @@ var ContextMenuItem = /* @__PURE__ */ React7.forwardRef(function ContextMenuItem
|
|
|
604
1015
|
var ContextMenuRadioGroup = /* @__PURE__ */ React7.forwardRef(function ContextMenuRadioGroup2(props, ref) {
|
|
605
1016
|
return /* @__PURE__ */ jsx(ContextMenuPrimitive.RadioGroup, { ref, "data-slot": "context-menu-radio-group", ...props });
|
|
606
1017
|
});
|
|
607
|
-
var ContextMenuRadioItem = /* @__PURE__ */ React7.forwardRef(function ContextMenuRadioItem2({ className, children, indicator = /* @__PURE__ */ jsx(
|
|
1018
|
+
var ContextMenuRadioItem = /* @__PURE__ */ React7.forwardRef(function ContextMenuRadioItem2({ className, children, indicator = /* @__PURE__ */ jsx(Circle, { className: "size-2 fill-current" }), ...props }, ref) {
|
|
608
1019
|
return /* @__PURE__ */ jsxs(
|
|
609
1020
|
ContextMenuPrimitive.RadioItem,
|
|
610
1021
|
{
|
|
@@ -656,7 +1067,7 @@ var ContextMenuSubTrigger = /* @__PURE__ */ React7.forwardRef(function ContextMe
|
|
|
656
1067
|
...props,
|
|
657
1068
|
children: [
|
|
658
1069
|
children,
|
|
659
|
-
/* @__PURE__ */ jsx(
|
|
1070
|
+
/* @__PURE__ */ jsx(ChevronRight, { className: "ml-auto size-4" })
|
|
660
1071
|
]
|
|
661
1072
|
}
|
|
662
1073
|
);
|
|
@@ -845,8 +1256,8 @@ function calloutTone(value) {
|
|
|
845
1256
|
function calloutIcon(attrs, tone) {
|
|
846
1257
|
return typeof attrs.icon === "string" && attrs.icon !== "" ? attrs.icon : TONE_ICONS[tone];
|
|
847
1258
|
}
|
|
848
|
-
function MenuIcon({ icon:
|
|
849
|
-
return /* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: "flex shrink-0", children: /* @__PURE__ */ jsx(
|
|
1259
|
+
function MenuIcon({ icon: Icon2 }) {
|
|
1260
|
+
return /* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: "flex shrink-0", children: /* @__PURE__ */ jsx(Icon2, { className: "size-4" }) });
|
|
850
1261
|
}
|
|
851
1262
|
var sharedTone = (blocks) => {
|
|
852
1263
|
const tones = new Set(blocks.map((block) => calloutTone(block.attrs.tone)));
|
|
@@ -862,7 +1273,7 @@ function CalloutMenus({ kit, controller, blocks }) {
|
|
|
862
1273
|
/* @__PURE__ */ jsx(MenuIcon, { icon: Droplet }),
|
|
863
1274
|
labels.tone
|
|
864
1275
|
] }),
|
|
865
|
-
/* @__PURE__ */ jsx(kit.SubContent, { children: /* @__PURE__ */ jsx(kit.RadioGroup, { value: sharedTone(blocks), onValueChange: (tone) => apply({ tone }), children: CALLOUT_TONES.map((tone) => /* @__PURE__ */ jsx(kit.RadioItem, { value: tone, indicator: /* @__PURE__ */ jsx(
|
|
1276
|
+
/* @__PURE__ */ jsx(kit.SubContent, { children: /* @__PURE__ */ jsx(kit.RadioGroup, { value: sharedTone(blocks), onValueChange: (tone) => apply({ tone }), children: CALLOUT_TONES.map((tone) => /* @__PURE__ */ jsx(kit.RadioItem, { value: tone, indicator: /* @__PURE__ */ jsx(Check, { className: "size-4" }), children: labels.calloutTones[tone] }, tone)) }) })
|
|
866
1277
|
] }),
|
|
867
1278
|
/* @__PURE__ */ jsxs(kit.Sub, { children: [
|
|
868
1279
|
/* @__PURE__ */ jsxs(kit.SubTrigger, { children: [
|
|
@@ -888,7 +1299,7 @@ function ColorGroups({ kit, value, onPick }) {
|
|
|
888
1299
|
const backgroundTitle = useId();
|
|
889
1300
|
const group = (key, title, titleId) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
890
1301
|
/* @__PURE__ */ jsx(kit.Label, { id: titleId, children: title }),
|
|
891
|
-
/* @__PURE__ */ jsx(kit.RadioGroup, { "aria-labelledby": titleId, value: value[key], onValueChange: (name) => onPick(key, name), children: PALETTE.map((name) => /* @__PURE__ */ jsxs(kit.RadioItem, { value: name, indicator: /* @__PURE__ */ jsx(
|
|
1302
|
+
/* @__PURE__ */ jsx(kit.RadioGroup, { "aria-labelledby": titleId, value: value[key], onValueChange: (name) => onPick(key, name), children: PALETTE.map((name) => /* @__PURE__ */ jsxs(kit.RadioItem, { value: name, indicator: /* @__PURE__ */ jsx(Check, { className: "size-4" }), children: [
|
|
892
1303
|
swatches[key](name),
|
|
893
1304
|
labels.colors[name]
|
|
894
1305
|
] }, name)) })
|
|
@@ -1385,7 +1796,7 @@ function CopyCodeButton({ code, controller }) {
|
|
|
1385
1796
|
setCopied(true);
|
|
1386
1797
|
controller.announce(labels.copied);
|
|
1387
1798
|
};
|
|
1388
|
-
const
|
|
1799
|
+
const Icon2 = copied ? Check : Copy;
|
|
1389
1800
|
return /* @__PURE__ */ jsx(
|
|
1390
1801
|
Button,
|
|
1391
1802
|
{
|
|
@@ -1396,7 +1807,7 @@ function CopyCodeButton({ code, controller }) {
|
|
|
1396
1807
|
"aria-label": labels.copyCode,
|
|
1397
1808
|
className: "quoin-code-control",
|
|
1398
1809
|
onClick: () => void copy(),
|
|
1399
|
-
children: /* @__PURE__ */ jsx(
|
|
1810
|
+
children: /* @__PURE__ */ jsx(Icon2, { "aria-hidden": "true" })
|
|
1400
1811
|
}
|
|
1401
1812
|
);
|
|
1402
1813
|
}
|
|
@@ -1801,6 +2212,8 @@ function focusInEditor(controller) {
|
|
|
1801
2212
|
const active = document.activeElement;
|
|
1802
2213
|
return active !== null && (controller.isEditorElement(active) || isBubblePart(active, controller));
|
|
1803
2214
|
}
|
|
2215
|
+
|
|
2216
|
+
// src/blocks/file/file-icon.ts
|
|
1804
2217
|
var KINDS = [
|
|
1805
2218
|
[FileImage, /^(image\/|(png|jpe?g|gif|webp|svg|heic|bmp)$)/],
|
|
1806
2219
|
[FileMusic, /^(audio\/|(mp3|wav|ogg|flac|m4a|aac)$)/],
|
|
@@ -1821,9 +2234,9 @@ function FileCard({ block, controller, readOnly }) {
|
|
|
1821
2234
|
const name = fileName(attrs);
|
|
1822
2235
|
const size = optionalNumber(attrs.size);
|
|
1823
2236
|
const href = assetHref(resolveAssetUrl, str(attrs.storageKey));
|
|
1824
|
-
const
|
|
2237
|
+
const Icon2 = fileIcon(str(attrs.mime), name);
|
|
1825
2238
|
return /* @__PURE__ */ jsxs("div", { ref: card, className: "quoin-file-card", ...selectHandlers(controller, id, card), children: [
|
|
1826
|
-
/* @__PURE__ */ jsx(
|
|
2239
|
+
/* @__PURE__ */ jsx(Icon2, { "aria-hidden": "true", className: "quoin-file-icon" }),
|
|
1827
2240
|
/* @__PURE__ */ jsx("span", { className: "quoin-file-name", children: name }),
|
|
1828
2241
|
size !== void 0 && /* @__PURE__ */ jsx("span", { className: "quoin-file-size", children: labels.fileSize(size) }),
|
|
1829
2242
|
href !== null && /* @__PURE__ */ jsxs(
|
|
@@ -1956,6 +2369,8 @@ function usePartAnchor(controller, blockId, selector) {
|
|
|
1956
2369
|
return { current: virtualAnchor(() => part()?.getBoundingClientRect() ?? null, part) };
|
|
1957
2370
|
}, [controller, blockId, selector]);
|
|
1958
2371
|
}
|
|
2372
|
+
|
|
2373
|
+
// src/blocks/void/node-toolbar-items.ts
|
|
1959
2374
|
var replaceItem = (title, run) => run ? [{ id: "replace", title, icon: Upload, run }] : [];
|
|
1960
2375
|
function deleteBlock(controller, blockId) {
|
|
1961
2376
|
runOnBlocks(controller, [blockId], deleteBlocks);
|
|
@@ -1998,7 +2413,7 @@ function bubbleItems(labels, openLink) {
|
|
|
1998
2413
|
}
|
|
1999
2414
|
function ToolbarButton({ item, state, controller, buttonRef }) {
|
|
2000
2415
|
if (item.available?.(state) === false) return null;
|
|
2001
|
-
const
|
|
2416
|
+
const Icon2 = item.icon;
|
|
2002
2417
|
return /* @__PURE__ */ jsx(
|
|
2003
2418
|
Button,
|
|
2004
2419
|
{
|
|
@@ -2010,7 +2425,7 @@ function ToolbarButton({ item, state, controller, buttonRef }) {
|
|
|
2010
2425
|
"aria-pressed": item.isActive?.(state),
|
|
2011
2426
|
className: PRESSED,
|
|
2012
2427
|
onClick: () => item.run(controller),
|
|
2013
|
-
children: /* @__PURE__ */ jsx(
|
|
2428
|
+
children: /* @__PURE__ */ jsx(Icon2, {})
|
|
2014
2429
|
}
|
|
2015
2430
|
);
|
|
2016
2431
|
}
|
|
@@ -2675,6 +3090,8 @@ function AltTextPopover({ blockId, controller, anchor, opener, alt, decorative,
|
|
|
2675
3090
|
}
|
|
2676
3091
|
);
|
|
2677
3092
|
}
|
|
3093
|
+
|
|
3094
|
+
// src/blocks/image/image-toolbar-items.ts
|
|
2678
3095
|
var ALIGNS = [
|
|
2679
3096
|
["left", AlignLeft, "alignLeft"],
|
|
2680
3097
|
["center", AlignCenter, "alignCenter"],
|
|
@@ -2823,7 +3240,7 @@ var DropdownMenuCheckboxItem = /* @__PURE__ */ React7.forwardRef(function Dropdo
|
|
|
2823
3240
|
className: cn(MENU_CHECKABLE_ITEM, className),
|
|
2824
3241
|
...props,
|
|
2825
3242
|
children: [
|
|
2826
|
-
/* @__PURE__ */ jsx("span", { className: MENU_ITEM_INDICATOR, children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(
|
|
3243
|
+
/* @__PURE__ */ jsx("span", { className: MENU_ITEM_INDICATOR, children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(Check, { className: "size-4" }) }) }),
|
|
2827
3244
|
children
|
|
2828
3245
|
]
|
|
2829
3246
|
}
|
|
@@ -2832,7 +3249,7 @@ var DropdownMenuCheckboxItem = /* @__PURE__ */ React7.forwardRef(function Dropdo
|
|
|
2832
3249
|
var DropdownMenuRadioGroup = /* @__PURE__ */ React7.forwardRef(function DropdownMenuRadioGroup2(props, ref) {
|
|
2833
3250
|
return /* @__PURE__ */ jsx(DropdownMenuPrimitive.RadioGroup, { ref, "data-slot": "dropdown-menu-radio-group", ...props });
|
|
2834
3251
|
});
|
|
2835
|
-
var DropdownMenuRadioItem = /* @__PURE__ */ React7.forwardRef(function DropdownMenuRadioItem2({ className, children, indicator = /* @__PURE__ */ jsx(
|
|
3252
|
+
var DropdownMenuRadioItem = /* @__PURE__ */ React7.forwardRef(function DropdownMenuRadioItem2({ className, children, indicator = /* @__PURE__ */ jsx(Circle, { className: "size-2 fill-current" }), ...props }, ref) {
|
|
2836
3253
|
return /* @__PURE__ */ jsxs(
|
|
2837
3254
|
DropdownMenuPrimitive.RadioItem,
|
|
2838
3255
|
{
|
|
@@ -2886,7 +3303,7 @@ var DropdownMenuSubTrigger = /* @__PURE__ */ React7.forwardRef(function Dropdown
|
|
|
2886
3303
|
...props,
|
|
2887
3304
|
children: [
|
|
2888
3305
|
children,
|
|
2889
|
-
/* @__PURE__ */ jsx(
|
|
3306
|
+
/* @__PURE__ */ jsx(ChevronRight, { className: "ml-auto size-4" })
|
|
2890
3307
|
]
|
|
2891
3308
|
}
|
|
2892
3309
|
);
|
|
@@ -3130,6 +3547,8 @@ function drawnInPlace(definitions, type) {
|
|
|
3130
3547
|
}
|
|
3131
3548
|
var drawsType = (definitions, type) => !Object.hasOwn(inPlaceRenderers, type) || blockByType(definitions, type) !== void 0;
|
|
3132
3549
|
var opensEditor = (definitions, type) => drawnInPlace(definitions, type) || !drawnAsText(definitions, type, false) && blockByType(definitions, type)?.editor !== void 0;
|
|
3550
|
+
|
|
3551
|
+
// src/gutter/turn-into-targets.ts
|
|
3133
3552
|
var HEADING_ICONS = [Heading1, Heading2, Heading3];
|
|
3134
3553
|
function turnIntoTargets(labels) {
|
|
3135
3554
|
const { blockNames } = labels;
|
|
@@ -4020,9 +4439,9 @@ function AlignDropdown({ controller, state }) {
|
|
|
4020
4439
|
const labels = useLabels();
|
|
4021
4440
|
const value = sharedAlign(state);
|
|
4022
4441
|
if (value === null) return null;
|
|
4023
|
-
const
|
|
4024
|
-
const trigger = /* @__PURE__ */ jsx(Button, { type: "button", variant: "ghost", size: "icon-sm", "aria-label": labels.align, children: /* @__PURE__ */ jsx(
|
|
4025
|
-
return /* @__PURE__ */ jsx(ToolbarMenu, { controller, trigger, children: /* @__PURE__ */ jsx(DropdownMenuRadioGroup, { value, onValueChange: (align) => controller.run(setTextAlign(align)), children: ALIGNS2.map((align) => /* @__PURE__ */ jsxs(DropdownMenuRadioItem, { value: align, indicator: /* @__PURE__ */ jsx(
|
|
4442
|
+
const Icon2 = value === "" ? AlignLeft : ICONS[value];
|
|
4443
|
+
const trigger = /* @__PURE__ */ jsx(Button, { type: "button", variant: "ghost", size: "icon-sm", "aria-label": labels.align, children: /* @__PURE__ */ jsx(Icon2, {}) });
|
|
4444
|
+
return /* @__PURE__ */ jsx(ToolbarMenu, { controller, trigger, children: /* @__PURE__ */ jsx(DropdownMenuRadioGroup, { value, onValueChange: (align) => controller.run(setTextAlign(align)), children: ALIGNS2.map((align) => /* @__PURE__ */ jsxs(DropdownMenuRadioItem, { value: align, indicator: /* @__PURE__ */ jsx(Check, { className: "size-4" }), children: [
|
|
4026
4445
|
/* @__PURE__ */ jsx(MenuIcon, { icon: ICONS[align] }),
|
|
4027
4446
|
labels[LABEL_KEYS[align]]
|
|
4028
4447
|
] }, align)) }) });
|
|
@@ -4544,6 +4963,8 @@ function dismissSuggestion(key) {
|
|
|
4544
4963
|
|
|
4545
4964
|
// src/menus/slash/slash-key.ts
|
|
4546
4965
|
var slashKey = createPluginKey("slash");
|
|
4966
|
+
|
|
4967
|
+
// src/menus/slash/slash-items.ts
|
|
4547
4968
|
var DETAILS = {
|
|
4548
4969
|
text: { group: "basic", keywords: ["paragraph", "plain"], shortcut: "Mod-Alt-0" },
|
|
4549
4970
|
heading1: { group: "basic", keywords: ["h1", "title", "#"], shortcut: "Mod-Alt-1" },
|
|
@@ -5033,6 +5454,8 @@ function slashExtension() {
|
|
|
5033
5454
|
ui: { overlays: [SlashOverlay] }
|
|
5034
5455
|
});
|
|
5035
5456
|
}
|
|
5457
|
+
|
|
5458
|
+
// src/mobile/mobile-items.tsx
|
|
5036
5459
|
function commandItem(id, title, icon, command) {
|
|
5037
5460
|
return { id, title, icon, run: (controller) => void controller.run(command) };
|
|
5038
5461
|
}
|
|
@@ -5191,7 +5614,7 @@ var DialogContent = /* @__PURE__ */ React7.forwardRef(function DialogContent2({
|
|
|
5191
5614
|
ICON_TAP_TARGET_FLOOR
|
|
5192
5615
|
),
|
|
5193
5616
|
children: [
|
|
5194
|
-
/* @__PURE__ */ jsx(
|
|
5617
|
+
/* @__PURE__ */ jsx(X, {}),
|
|
5195
5618
|
/* @__PURE__ */ jsx("span", { className: "sr-only", children: closeLabel })
|
|
5196
5619
|
]
|
|
5197
5620
|
}
|
|
@@ -6106,6 +6529,6 @@ function useAutosave({
|
|
|
6106
6529
|
return { status, error, retry: runner.retry, flush: runner.flush };
|
|
6107
6530
|
}
|
|
6108
6531
|
|
|
6109
|
-
export { BlockCanvas, Button, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuTrigger, FLOATING_TOOLBAR, FOCUS_RING, FilePickerButton, Input, MENU_ITEM, MenuIcon, Popover, PopoverAnchor, PopoverContent, QuoinProvider, SuggestionMenu, UploadField, blockFragment, bubblePart, cn, coreBlocks, dismissSuggestion, englishLabels, focusNode, formatShortcut, inlineDirection, insertBlockToWrite, insertBlocks, interceptKeys, keepFocus, linkAddress, linkedBlockId, noChange, preventDefault, rangeRect, replaceTrigger, resolveLabels, returnFocusToText, runOnBlocks, selectHandlers, selectNode, styleTargets, suggestionPlugin, toError, useAutosave, useFocusKey, useLabels, useNodeKeys, useOutsidePress, usePartAnchor, useQuoin, useRangeAnchor, useRovingFocus, virtualAnchor };
|
|
6110
|
-
//# sourceMappingURL=chunk-
|
|
6111
|
-
//# sourceMappingURL=chunk-
|
|
6532
|
+
export { AlignCenter, AlignLeft, AlignRight, AppWindow, ArrowDown, ArrowDownToLine, ArrowLeft, ArrowLeftToLine, ArrowRight, ArrowRightToLine, ArrowUp, ArrowUpToLine, BlockCanvas, Bookmark, Button, CaseSensitive, ChevronDown, ChevronUp, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuTrigger, FLOATING_TOOLBAR, FOCUS_RING, FilePickerButton, GripHorizontal, GripVertical, Input, MENU_ITEM, MenuIcon, MessageSquare, MessageSquarePlus, PenLine, Plus, Popover, PopoverAnchor, PopoverContent, QuoinProvider, Radical, Regex, SendHorizontal, Sigma, SmilePlus, Sparkles, SuggestionMenu, Table, TableOfContents, Trash, UploadField, WholeWord, X, blockFragment, bubblePart, cn, coreBlocks, dismissSuggestion, englishLabels, focusNode, formatShortcut, inlineDirection, insertBlockToWrite, insertBlocks, interceptKeys, keepFocus, linkAddress, linkedBlockId, noChange, preventDefault, rangeRect, replaceTrigger, resolveLabels, returnFocusToText, runOnBlocks, selectHandlers, selectNode, styleTargets, suggestionPlugin, toError, useAutosave, useFocusKey, useLabels, useNodeKeys, useOutsidePress, usePartAnchor, useQuoin, useRangeAnchor, useRovingFocus, virtualAnchor };
|
|
6533
|
+
//# sourceMappingURL=chunk-MQTLZTIM.js.map
|
|
6534
|
+
//# sourceMappingURL=chunk-MQTLZTIM.js.map
|