ritext 1.0.23 → 1.0.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (132) hide show
  1. package/README.md +1 -30
  2. package/dist/chunk-EN4BPI7N.mjs +1213 -0
  3. package/dist/chunk-FJQ4FZRS.mjs +98 -0
  4. package/dist/chunk-M4ORWR74.mjs +31 -0
  5. package/dist/chunk-SJFT7WNM.mjs +38 -0
  6. package/dist/chunk-W367UGID.mjs +55 -0
  7. package/dist/{chunk-FWCSY2DS.mjs → chunk-WNQUEZJF.mjs} +22 -1
  8. package/dist/{chunk-D47XME55.mjs → chunk-WXCHG3NQ.mjs} +8 -2
  9. package/dist/chunk-WZKGD3DD.mjs +231 -0
  10. package/dist/extension/backgroundcolor.d.mts +16 -0
  11. package/dist/extension/backgroundcolor.d.ts +16 -0
  12. package/dist/extension/backgroundcolor.js +668 -0
  13. package/dist/extension/backgroundcolor.mjs +107 -0
  14. package/dist/extension/base.d.mts +6 -0
  15. package/dist/extension/base.d.ts +6 -0
  16. package/dist/extension/base.js +65 -0
  17. package/dist/extension/base.mjs +22 -0
  18. package/dist/extension/blockquote.d.mts +10 -0
  19. package/dist/extension/blockquote.d.ts +10 -0
  20. package/dist/extension/blockquote.js +239 -0
  21. package/dist/extension/blockquote.mjs +46 -0
  22. package/dist/extension/bold.d.mts +7 -2
  23. package/dist/extension/bold.d.ts +7 -2
  24. package/dist/extension/bold.js +22 -45
  25. package/dist/extension/bold.mjs +13 -35
  26. package/dist/extension/bulletlist.d.mts +10 -0
  27. package/dist/extension/bulletlist.d.ts +10 -0
  28. package/dist/extension/bulletlist.js +241 -0
  29. package/dist/extension/bulletlist.mjs +46 -0
  30. package/dist/extension/clearformat.d.mts +1 -1
  31. package/dist/extension/clearformat.d.ts +1 -1
  32. package/dist/extension/clearformat.js +11 -6
  33. package/dist/extension/clearformat.mjs +8 -35
  34. package/dist/extension/color.d.mts +17 -0
  35. package/dist/extension/color.d.ts +17 -0
  36. package/dist/extension/color.js +580 -0
  37. package/dist/extension/color.mjs +12 -0
  38. package/dist/extension/emoji.d.mts +15 -0
  39. package/dist/extension/emoji.d.ts +15 -0
  40. package/dist/extension/emoji.js +421 -0
  41. package/dist/extension/emoji.mjs +158 -0
  42. package/dist/extension/font-family.d.mts +8 -11
  43. package/dist/extension/font-family.d.ts +8 -11
  44. package/dist/extension/font-family.js +11 -12
  45. package/dist/extension/font-family.mjs +10 -11
  46. package/dist/extension/font-size.d.mts +8 -11
  47. package/dist/extension/font-size.d.ts +8 -11
  48. package/dist/extension/font-size.js +10 -12
  49. package/dist/extension/font-size.mjs +9 -11
  50. package/dist/extension/heading.d.mts +10 -10
  51. package/dist/extension/heading.d.ts +10 -10
  52. package/dist/extension/heading.js +68 -80
  53. package/dist/extension/heading.mjs +40 -206
  54. package/dist/extension/history.d.mts +4 -2
  55. package/dist/extension/history.d.ts +4 -2
  56. package/dist/extension/history.js +16 -9
  57. package/dist/extension/history.mjs +16 -64
  58. package/dist/extension/horizontalrule.d.mts +10 -0
  59. package/dist/extension/horizontalrule.d.ts +10 -0
  60. package/dist/extension/horizontalrule.js +242 -0
  61. package/dist/extension/horizontalrule.mjs +42 -0
  62. package/dist/extension/image.d.mts +26 -0
  63. package/dist/extension/image.d.ts +26 -0
  64. package/dist/extension/image.js +1611 -0
  65. package/dist/extension/image.mjs +1153 -0
  66. package/dist/extension/indentoutdent.d.mts +21 -0
  67. package/dist/extension/indentoutdent.d.ts +21 -0
  68. package/dist/extension/indentoutdent.js +380 -0
  69. package/dist/extension/indentoutdent.mjs +164 -0
  70. package/dist/extension/italic.d.mts +7 -2
  71. package/dist/extension/italic.d.ts +7 -2
  72. package/dist/extension/italic.js +22 -45
  73. package/dist/extension/italic.mjs +14 -40
  74. package/dist/extension/lineheight.d.mts +15 -0
  75. package/dist/extension/lineheight.d.ts +15 -0
  76. package/dist/extension/lineheight.js +342 -0
  77. package/dist/extension/lineheight.mjs +87 -0
  78. package/dist/extension/link.d.mts +15 -0
  79. package/dist/extension/link.d.ts +15 -0
  80. package/dist/extension/link.js +588 -0
  81. package/dist/extension/link.mjs +278 -0
  82. package/dist/extension/orderedlist.d.mts +10 -0
  83. package/dist/extension/orderedlist.d.ts +10 -0
  84. package/dist/extension/orderedlist.js +241 -0
  85. package/dist/extension/orderedlist.mjs +46 -0
  86. package/dist/extension/strike.d.mts +8 -3
  87. package/dist/extension/strike.d.ts +8 -3
  88. package/dist/extension/strike.js +22 -45
  89. package/dist/extension/strike.mjs +14 -40
  90. package/dist/extension/subandsuperscript.d.mts +7 -10
  91. package/dist/extension/subandsuperscript.d.ts +7 -10
  92. package/dist/extension/subandsuperscript.js +66 -77
  93. package/dist/extension/subandsuperscript.mjs +18 -48
  94. package/dist/extension/subscript.d.mts +4 -2
  95. package/dist/extension/subscript.d.ts +4 -2
  96. package/dist/extension/subscript.js +20 -45
  97. package/dist/extension/subscript.mjs +10 -10
  98. package/dist/extension/superscript.d.mts +4 -2
  99. package/dist/extension/superscript.d.ts +4 -2
  100. package/dist/extension/superscript.js +20 -45
  101. package/dist/extension/superscript.mjs +10 -10
  102. package/dist/extension/table.d.mts +12 -0
  103. package/dist/extension/table.d.ts +12 -0
  104. package/dist/extension/table.js +585 -0
  105. package/dist/extension/table.mjs +324 -0
  106. package/dist/extension/tasklist.d.mts +10 -0
  107. package/dist/extension/tasklist.d.ts +10 -0
  108. package/dist/extension/tasklist.js +246 -0
  109. package/dist/extension/tasklist.mjs +52 -0
  110. package/dist/extension/textalign.d.mts +15 -0
  111. package/dist/extension/textalign.d.ts +15 -0
  112. package/dist/extension/textalign.js +404 -0
  113. package/dist/extension/textalign.mjs +79 -0
  114. package/dist/extension/underline.d.mts +7 -2
  115. package/dist/extension/underline.d.ts +7 -2
  116. package/dist/extension/underline.js +22 -45
  117. package/dist/extension/underline.mjs +14 -39
  118. package/dist/index.css +683 -31
  119. package/dist/index.d.mts +3 -1
  120. package/dist/index.d.ts +3 -1
  121. package/dist/index.js +306 -24
  122. package/dist/index.mjs +141 -13
  123. package/dist/tiptap-ext.type-B3TtT7-J.d.mts +43 -0
  124. package/dist/tiptap-ext.type-B3TtT7-J.d.ts +43 -0
  125. package/package.json +41 -28
  126. package/dist/chunk-2YUUKIIT.mjs +0 -149
  127. package/dist/chunk-7QOFJIQ3.mjs +0 -90
  128. package/dist/chunk-GSHINFPO.mjs +0 -53
  129. package/dist/chunk-LMOTHRGQ.mjs +0 -37
  130. package/dist/chunk-MBF77NHS.mjs +0 -37
  131. package/dist/tiptap-ext.type-DrneAC5G.d.mts +0 -39
  132. package/dist/tiptap-ext.type-DrneAC5G.d.ts +0 -39
@@ -0,0 +1,1213 @@
1
+ import {
2
+ __objRest,
3
+ __spreadProps,
4
+ __spreadValues
5
+ } from "./chunk-WNQUEZJF.mjs";
6
+
7
+ // src/lib/icons/index.tsx
8
+ import { jsx, jsxs } from "react/jsx-runtime";
9
+ var AlignLeft = (_a) => {
10
+ var _b = _a, { size = 17, className } = _b, props = __objRest(_b, ["size", "className"]);
11
+ return /* @__PURE__ */ jsxs(
12
+ "svg",
13
+ __spreadProps(__spreadValues({
14
+ xmlns: "http://www.w3.org/2000/svg",
15
+ width: size,
16
+ height: size,
17
+ viewBox: "0 0 24 24",
18
+ fill: "none",
19
+ stroke: "currentColor",
20
+ strokeWidth: "2",
21
+ strokeLinecap: "round",
22
+ strokeLinejoin: "round"
23
+ }, props), {
24
+ children: [
25
+ /* @__PURE__ */ jsx("path", { d: "M21 5H3" }),
26
+ /* @__PURE__ */ jsx("path", { d: "M15 12H3" }),
27
+ /* @__PURE__ */ jsx("path", { d: "M17 19H3" })
28
+ ]
29
+ })
30
+ );
31
+ };
32
+ var AlignCenter = (_a) => {
33
+ var _b = _a, { size = 17, className } = _b, props = __objRest(_b, ["size", "className"]);
34
+ return /* @__PURE__ */ jsxs(
35
+ "svg",
36
+ __spreadProps(__spreadValues({
37
+ xmlns: "http://www.w3.org/2000/svg",
38
+ width: size,
39
+ height: size,
40
+ viewBox: "0 0 24 24",
41
+ fill: "none",
42
+ stroke: "currentColor",
43
+ strokeWidth: "2",
44
+ strokeLinecap: "round",
45
+ strokeLinejoin: "round"
46
+ }, props), {
47
+ children: [
48
+ /* @__PURE__ */ jsx("path", { d: "M21 5H3" }),
49
+ /* @__PURE__ */ jsx("path", { d: "M17 12H7" }),
50
+ /* @__PURE__ */ jsx("path", { d: "M19 19H5" })
51
+ ]
52
+ })
53
+ );
54
+ };
55
+ var AlignRight = (_a) => {
56
+ var _b = _a, { size = 17, className } = _b, props = __objRest(_b, ["size", "className"]);
57
+ return /* @__PURE__ */ jsxs(
58
+ "svg",
59
+ __spreadProps(__spreadValues({
60
+ xmlns: "http://www.w3.org/2000/svg",
61
+ width: size,
62
+ height: size,
63
+ viewBox: "0 0 24 24",
64
+ fill: "none",
65
+ stroke: "currentColor",
66
+ strokeWidth: "2",
67
+ strokeLinecap: "round",
68
+ strokeLinejoin: "round"
69
+ }, props), {
70
+ children: [
71
+ /* @__PURE__ */ jsx("path", { d: "M21 5H3" }),
72
+ /* @__PURE__ */ jsx("path", { d: "M21 12H9" }),
73
+ /* @__PURE__ */ jsx("path", { d: "M21 19H7" })
74
+ ]
75
+ })
76
+ );
77
+ };
78
+ var AlignJustify = (_a) => {
79
+ var _b = _a, { size = 17, className } = _b, props = __objRest(_b, ["size", "className"]);
80
+ return /* @__PURE__ */ jsxs(
81
+ "svg",
82
+ __spreadProps(__spreadValues({
83
+ xmlns: "http://www.w3.org/2000/svg",
84
+ width: size,
85
+ height: size,
86
+ viewBox: "0 0 24 24",
87
+ fill: "none",
88
+ stroke: "currentColor",
89
+ strokeWidth: "2",
90
+ strokeLinecap: "round",
91
+ strokeLinejoin: "round"
92
+ }, props), {
93
+ children: [
94
+ /* @__PURE__ */ jsx("path", { d: "M3 5h18" }),
95
+ /* @__PURE__ */ jsx("path", { d: "M3 12h18" }),
96
+ /* @__PURE__ */ jsx("path", { d: "M3 19h18" })
97
+ ]
98
+ })
99
+ );
100
+ };
101
+ var ArrowIcon = (_a) => {
102
+ var _b = _a, { size = 17, className } = _b, props = __objRest(_b, ["size", "className"]);
103
+ return /* @__PURE__ */ jsx(
104
+ "svg",
105
+ __spreadProps(__spreadValues({
106
+ xmlns: "http://www.w3.org/2000/svg",
107
+ viewBox: "0 0 48 48",
108
+ fill: "none",
109
+ stroke: "currentColor",
110
+ strokeWidth: 2,
111
+ strokeLinecap: "round",
112
+ strokeLinejoin: "round",
113
+ width: size,
114
+ height: size,
115
+ className
116
+ }, props), {
117
+ children: /* @__PURE__ */ jsx("path", { fill: "currentColor", stroke: "currentColor", strokeLinejoin: "round", strokeWidth: "4", d: "M36 19L24 31L12 19z" })
118
+ })
119
+ );
120
+ };
121
+ var BoldIcon = (_a) => {
122
+ var _b = _a, { size = 17, className } = _b, props = __objRest(_b, ["size", "className"]);
123
+ return /* @__PURE__ */ jsx(
124
+ "svg",
125
+ __spreadProps(__spreadValues({
126
+ xmlns: "http://www.w3.org/2000/svg",
127
+ viewBox: "0 0 24 24",
128
+ fill: "none",
129
+ stroke: "currentColor",
130
+ strokeWidth: 2,
131
+ strokeLinecap: "round",
132
+ strokeLinejoin: "round",
133
+ width: size,
134
+ height: size,
135
+ className
136
+ }, props), {
137
+ 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" })
138
+ })
139
+ );
140
+ };
141
+ var ClearIcon = (_a) => {
142
+ var _b = _a, { size = 17, className } = _b, props = __objRest(_b, ["size", "className"]);
143
+ return /* @__PURE__ */ jsxs(
144
+ "svg",
145
+ __spreadProps(__spreadValues({
146
+ xmlns: "http://www.w3.org/2000/svg",
147
+ width: size,
148
+ height: size,
149
+ viewBox: "0 0 24 24",
150
+ fill: "none",
151
+ stroke: "currentColor",
152
+ strokeWidth: 2,
153
+ strokeLinecap: "round",
154
+ strokeLinejoin: "round"
155
+ }, props), {
156
+ children: [
157
+ /* @__PURE__ */ jsx("path", { d: "M21 21H8a2 2 0 0 1-1.42-.587l-3.994-3.999a2 2 0 0 1 0-2.828l10-10a2 2 0 0 1 2.829 0l5.999 6a2 2 0 0 1 0 2.828L12.834 21" }),
158
+ /* @__PURE__ */ jsx("path", { d: "m5.082 11.09 8.828 8.828" })
159
+ ]
160
+ })
161
+ );
162
+ };
163
+ var H1Icon = (_a) => {
164
+ var _b = _a, { size = 17, className } = _b, props = __objRest(_b, ["size", "className"]);
165
+ return /* @__PURE__ */ jsxs(
166
+ "svg",
167
+ __spreadProps(__spreadValues({
168
+ xmlns: "http://www.w3.org/2000/svg",
169
+ width: size,
170
+ height: size,
171
+ viewBox: "0 0 24 24",
172
+ fill: "none",
173
+ stroke: "currentColor",
174
+ strokeWidth: 2,
175
+ strokeLinecap: "round",
176
+ strokeLinejoin: "round"
177
+ }, props), {
178
+ children: [
179
+ /* @__PURE__ */ jsx("path", { d: "M4 12h8" }),
180
+ /* @__PURE__ */ jsx("path", { d: "M4 18V6" }),
181
+ /* @__PURE__ */ jsx("path", { d: "M12 18V6" }),
182
+ /* @__PURE__ */ jsx("path", { d: "m17 12 3-2v8" })
183
+ ]
184
+ })
185
+ );
186
+ };
187
+ var H2Icon = (_a) => {
188
+ var _b = _a, { size = 17, className } = _b, props = __objRest(_b, ["size", "className"]);
189
+ return /* @__PURE__ */ jsxs(
190
+ "svg",
191
+ __spreadProps(__spreadValues({
192
+ xmlns: "http://www.w3.org/2000/svg",
193
+ width: size,
194
+ height: size,
195
+ viewBox: "0 0 24 24",
196
+ fill: "none",
197
+ stroke: "currentColor",
198
+ strokeWidth: 2,
199
+ strokeLinecap: "round",
200
+ strokeLinejoin: "round"
201
+ }, props), {
202
+ children: [
203
+ /* @__PURE__ */ jsx("path", { d: "M4 12h8" }),
204
+ /* @__PURE__ */ jsx("path", { d: "M4 18V6" }),
205
+ /* @__PURE__ */ jsx("path", { d: "M12 18V6" }),
206
+ /* @__PURE__ */ jsx("path", { d: "M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1" })
207
+ ]
208
+ })
209
+ );
210
+ };
211
+ var H3Icon = (_a) => {
212
+ var _b = _a, { size = 17, className } = _b, props = __objRest(_b, ["size", "className"]);
213
+ return /* @__PURE__ */ jsxs(
214
+ "svg",
215
+ __spreadProps(__spreadValues({
216
+ xmlns: "http://www.w3.org/2000/svg",
217
+ width: size,
218
+ height: size,
219
+ viewBox: "0 0 24 24",
220
+ fill: "none",
221
+ stroke: "currentColor",
222
+ strokeWidth: 2,
223
+ strokeLinecap: "round",
224
+ strokeLinejoin: "round"
225
+ }, props), {
226
+ children: [
227
+ /* @__PURE__ */ jsx("path", { d: "M4 12h8" }),
228
+ /* @__PURE__ */ jsx("path", { d: "M4 18V6" }),
229
+ /* @__PURE__ */ jsx("path", { d: "M12 18V6" }),
230
+ /* @__PURE__ */ jsx("path", { d: "M17.5 10.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0 1-2 2" }),
231
+ /* @__PURE__ */ jsx("path", { d: "M17 17.5c2 1.5 4 .3 4-1.5a2 2 0 0 0-2-2" })
232
+ ]
233
+ })
234
+ );
235
+ };
236
+ var H4Icon = (_a) => {
237
+ var _b = _a, { size = 17, className } = _b, props = __objRest(_b, ["size", "className"]);
238
+ return /* @__PURE__ */ jsxs(
239
+ "svg",
240
+ __spreadProps(__spreadValues({
241
+ xmlns: "http://www.w3.org/2000/svg",
242
+ width: size,
243
+ height: size,
244
+ viewBox: "0 0 24 24",
245
+ fill: "none",
246
+ stroke: "currentColor",
247
+ strokeWidth: 2,
248
+ strokeLinecap: "round",
249
+ strokeLinejoin: "round"
250
+ }, props), {
251
+ children: [
252
+ /* @__PURE__ */ jsx("path", { d: "M12 18V6" }),
253
+ /* @__PURE__ */ jsx("path", { d: "M17 10v3a1 1 0 0 0 1 1h3" }),
254
+ /* @__PURE__ */ jsx("path", { d: "M21 10v8" }),
255
+ /* @__PURE__ */ jsx("path", { d: "M4 12h8" }),
256
+ /* @__PURE__ */ jsx("path", { d: "M4 18V6" })
257
+ ]
258
+ })
259
+ );
260
+ };
261
+ var H5Icon = (_a) => {
262
+ var _b = _a, { size = 17, className } = _b, props = __objRest(_b, ["size", "className"]);
263
+ return /* @__PURE__ */ jsxs(
264
+ "svg",
265
+ __spreadProps(__spreadValues({
266
+ xmlns: "http://www.w3.org/2000/svg",
267
+ width: size,
268
+ height: size,
269
+ viewBox: "0 0 24 24",
270
+ fill: "none",
271
+ stroke: "currentColor",
272
+ strokeWidth: 2,
273
+ strokeLinecap: "round",
274
+ strokeLinejoin: "round"
275
+ }, props), {
276
+ children: [
277
+ /* @__PURE__ */ jsx("path", { d: "M4 12h8" }),
278
+ /* @__PURE__ */ jsx("path", { d: "M4 18V6" }),
279
+ /* @__PURE__ */ jsx("path", { d: "M12 18V6" }),
280
+ /* @__PURE__ */ jsx("path", { d: "M17 13v-3h4" }),
281
+ /* @__PURE__ */ jsx("path", { d: "M17 17.7c.4.2.8.3 1.3.3 1.5 0 2.7-1.1 2.7-2.5S19.8 13 18.3 13H17" })
282
+ ]
283
+ })
284
+ );
285
+ };
286
+ var H6Icon = (_a) => {
287
+ var _b = _a, { size = 17, className } = _b, props = __objRest(_b, ["size", "className"]);
288
+ return /* @__PURE__ */ jsxs(
289
+ "svg",
290
+ __spreadProps(__spreadValues({
291
+ xmlns: "http://www.w3.org/2000/svg",
292
+ width: size,
293
+ height: size,
294
+ viewBox: "0 0 24 24",
295
+ fill: "none",
296
+ stroke: "currentColor",
297
+ strokeWidth: 2,
298
+ strokeLinecap: "round",
299
+ strokeLinejoin: "round"
300
+ }, props), {
301
+ children: [
302
+ /* @__PURE__ */ jsx("path", { d: "M4 12h8" }),
303
+ /* @__PURE__ */ jsx("path", { d: "M4 18V6" }),
304
+ /* @__PURE__ */ jsx("path", { d: "M12 18V6" }),
305
+ /* @__PURE__ */ jsx("circle", { cx: "19", cy: "16", r: "2" }),
306
+ /* @__PURE__ */ jsx("path", { d: "M20 10c-2 2-3 3.5-3 6" })
307
+ ]
308
+ })
309
+ );
310
+ };
311
+ var Pilcrow = (_a) => {
312
+ var _b = _a, { size = 17, className } = _b, props = __objRest(_b, ["size", "className"]);
313
+ return /* @__PURE__ */ jsxs(
314
+ "svg",
315
+ __spreadProps(__spreadValues({
316
+ xmlns: "http://www.w3.org/2000/svg",
317
+ width: size,
318
+ height: size,
319
+ viewBox: "0 0 24 24",
320
+ fill: "none",
321
+ stroke: "currentColor",
322
+ strokeWidth: 2,
323
+ strokeLinecap: "round",
324
+ strokeLinejoin: "round"
325
+ }, props), {
326
+ children: [
327
+ /* @__PURE__ */ jsx("path", { d: "M13 4v16" }),
328
+ /* @__PURE__ */ jsx("path", { d: "M17 4v16" }),
329
+ /* @__PURE__ */ jsx("path", { d: "M19 4H9.5a4.5 4.5 0 0 0 0 9H13" })
330
+ ]
331
+ })
332
+ );
333
+ };
334
+ var Redo2 = (_a) => {
335
+ var _b = _a, { size = 17, className } = _b, props = __objRest(_b, ["size", "className"]);
336
+ return /* @__PURE__ */ jsxs(
337
+ "svg",
338
+ __spreadProps(__spreadValues({
339
+ xmlns: "http://www.w3.org/2000/svg",
340
+ viewBox: "0 0 24 24",
341
+ fill: "none",
342
+ stroke: "currentColor",
343
+ strokeWidth: 2,
344
+ strokeLinecap: "round",
345
+ strokeLinejoin: "round",
346
+ width: size,
347
+ height: size,
348
+ className
349
+ }, props), {
350
+ children: [
351
+ /* @__PURE__ */ jsx("path", { d: "m15 14 5-5-5-5" }),
352
+ /* @__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" })
353
+ ]
354
+ })
355
+ );
356
+ };
357
+ var Undo2 = (_a) => {
358
+ var _b = _a, { size = 17, className } = _b, props = __objRest(_b, ["size", "className"]);
359
+ return /* @__PURE__ */ jsxs(
360
+ "svg",
361
+ __spreadProps(__spreadValues({
362
+ xmlns: "http://www.w3.org/2000/svg",
363
+ viewBox: "0 0 24 24",
364
+ fill: "none",
365
+ stroke: "currentColor",
366
+ strokeWidth: "2",
367
+ strokeLinecap: "round",
368
+ strokeLinejoin: "round",
369
+ width: size,
370
+ height: size,
371
+ className
372
+ }, props), {
373
+ children: [
374
+ /* @__PURE__ */ jsx("path", { d: "M9 14 4 9l5-5" }),
375
+ /* @__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" })
376
+ ]
377
+ })
378
+ );
379
+ };
380
+ var ColorIcon = ({ fill }) => {
381
+ return /* @__PURE__ */ jsx(
382
+ "svg",
383
+ {
384
+ height: "18px",
385
+ version: "1.1",
386
+ viewBox: "0 0 240 240",
387
+ width: "18px",
388
+ xmlns: "http://www.w3.org/2000/svg",
389
+ children: /* @__PURE__ */ jsx("g", { fill: "none", fillRule: "evenodd", stroke: "none", strokeWidth: 1, children: /* @__PURE__ */ jsx("g", { transform: "translate(0.000000, 0.500000)", children: /* @__PURE__ */ jsxs("g", { transform: "translate(39.000000, 17.353553)", children: [
390
+ /* @__PURE__ */ jsx(
391
+ "path",
392
+ {
393
+ d: "M11,201.146447 L167,201.146447 C173.075132,201.146447 178,206.071314 178,212.146447 C178,218.221579 173.075132,223.146447 167,223.146447 L11,223.146447 C4.92486775,223.146447 7.43989126e-16,218.221579 0,212.146447 C-7.43989126e-16,206.071314 4.92486775,201.146447 11,201.146447 Z",
394
+ fill: typeof fill === "string" ? fill : "#000",
395
+ fillRule: "evenodd"
396
+ }
397
+ ),
398
+ /* @__PURE__ */ jsx(
399
+ "path",
400
+ {
401
+ d: "M72.3425855,16.8295583 C75.799482,7.50883712 86.1577877,2.75526801 95.4785089,6.21216449 C100.284516,7.99463061 104.096358,11.7387855 105.968745,16.4968188 L106.112518,16.8745422 L159.385152,161.694068 C161.291848,166.877345 158.635655,172.624903 153.452378,174.531599 C148.358469,176.405421 142.719567,173.872338 140.716873,168.864661 L140.614848,168.598825 L89.211,28.86 L37.3759214,168.623816 C35.4885354,173.712715 29.8981043,176.351047 24.7909589,174.617647 L24.5226307,174.522368 C19.4337312,172.634982 16.7953993,167.044551 18.5287999,161.937406 L18.6240786,161.669077 L72.3425855,16.8295583 Z",
402
+ fill: "currentColor",
403
+ fillRule: "nonzero"
404
+ }
405
+ ),
406
+ /* @__PURE__ */ jsx(
407
+ "path",
408
+ {
409
+ d: "M121,103.146447 C126.522847,103.146447 131,107.623599 131,113.146447 C131,118.575687 126.673329,122.994378 121.279905,123.142605 L121,123.146447 L55,123.146447 C49.4771525,123.146447 45,118.669294 45,113.146447 C45,107.717207 49.3266708,103.298515 54.7200952,103.150288 L55,103.146447 L121,103.146447 Z",
410
+ fill: "currentColor",
411
+ fillRule: "nonzero"
412
+ }
413
+ )
414
+ ] }) }) })
415
+ }
416
+ );
417
+ };
418
+ var BackgroundIcon = ({ fill }) => {
419
+ return /* @__PURE__ */ jsx(
420
+ "svg",
421
+ {
422
+ height: "18px",
423
+ version: "1.1",
424
+ viewBox: "0 0 256 256",
425
+ width: "18px",
426
+ xmlns: "http://www.w3.org/2000/svg",
427
+ children: /* @__PURE__ */ jsx("g", { fill: "none", fillRule: "evenodd", stroke: "none", strokeWidth: 1, children: /* @__PURE__ */ jsxs("g", { id: "icon/\u80CC\u666F\u989C\u8272", children: [
428
+ /* @__PURE__ */ jsx("g", { fill: "currentColor", children: /* @__PURE__ */ jsxs("g", { transform: "translate(119.502295, 137.878331) rotate(-135.000000) translate(-119.502295, -137.878331) translate(48.002295, 31.757731)", children: [
429
+ /* @__PURE__ */ jsx(
430
+ "path",
431
+ {
432
+ d: "M100.946943,60.8084699 L43.7469427,60.8084699 C37.2852111,60.8084699 32.0469427,66.0467383 32.0469427,72.5084699 L32.0469427,118.70847 C32.0469427,125.170201 37.2852111,130.40847 43.7469427,130.40847 L100.946943,130.40847 C107.408674,130.40847 112.646943,125.170201 112.646943,118.70847 L112.646943,72.5084699 C112.646943,66.0467383 107.408674,60.8084699 100.946943,60.8084699 Z M93.646,79.808 L93.646,111.408 L51.046,111.408 L51.046,79.808 L93.646,79.808 Z",
433
+ fillRule: "nonzero"
434
+ }
435
+ ),
436
+ /* @__PURE__ */ jsx(
437
+ "path",
438
+ {
439
+ d: "M87.9366521,16.90916 L87.9194966,68.2000001 C87.9183543,69.4147389 86.9334998,70.399264 85.7187607,70.4 L56.9423078,70.4 C55.7272813,70.4 54.7423078,69.4150264 54.7423078,68.2 L54.7423078,39.4621057 C54.7423078,37.2523513 55.5736632,35.1234748 57.0711706,33.4985176 L76.4832996,12.4342613 C78.9534987,9.75382857 83.1289108,9.5834005 85.8093436,12.0535996 C87.1658473,13.303709 87.9372691,15.0644715 87.9366521,16.90916 Z",
440
+ fillRule: "evenodd"
441
+ }
442
+ ),
443
+ /* @__PURE__ */ jsx(
444
+ "path",
445
+ {
446
+ d: "M131.3,111.241199 L11.7,111.241199 C5.23826843,111.241199 0,116.479467 0,122.941199 L0,200.541199 C0,207.002931 5.23826843,212.241199 11.7,212.241199 L131.3,212.241199 C137.761732,212.241199 143,207.002931 143,200.541199 L143,122.941199 C143,116.479467 137.761732,111.241199 131.3,111.241199 Z M124,130.241 L124,193.241 L19,193.241 L19,130.241 L124,130.241 Z",
447
+ fillRule: "nonzero"
448
+ }
449
+ )
450
+ ] }) }),
451
+ /* @__PURE__ */ jsx(
452
+ "path",
453
+ {
454
+ d: "M51,218 L205,218 C211.075132,218 216,222.924868 216,229 C216,235.075132 211.075132,240 205,240 L51,240 C44.9248678,240 40,235.075132 40,229 C40,222.924868 44.9248678,218 51,218 Z",
455
+ fill: typeof fill === "string" ? fill : "none",
456
+ id: "\u77E9\u5F62"
457
+ }
458
+ )
459
+ ] }) })
460
+ }
461
+ );
462
+ };
463
+ var Palette = (_a) => {
464
+ var _b = _a, { size = 17, className } = _b, props = __objRest(_b, ["size", "className"]);
465
+ return /* @__PURE__ */ jsxs(
466
+ "svg",
467
+ __spreadProps(__spreadValues({
468
+ xmlns: "http://www.w3.org/2000/svg",
469
+ width: size,
470
+ height: size,
471
+ viewBox: "0 0 24 24",
472
+ fill: "none",
473
+ stroke: "currentColor",
474
+ strokeWidth: "2",
475
+ strokeLinecap: "round",
476
+ strokeLinejoin: "round"
477
+ }, props), {
478
+ children: [
479
+ /* @__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" }),
480
+ /* @__PURE__ */ jsx("circle", { cx: "13.5", cy: "6.5", r: ".5", fill: "currentColor" }),
481
+ /* @__PURE__ */ jsx("circle", { cx: "17.5", cy: "10.5", r: ".5", fill: "currentColor" }),
482
+ /* @__PURE__ */ jsx("circle", { cx: "6.5", cy: "12.5", r: ".5", fill: "currentColor" }),
483
+ /* @__PURE__ */ jsx("circle", { cx: "8.5", cy: "7.5", r: ".5", fill: "currentColor" })
484
+ ]
485
+ })
486
+ );
487
+ };
488
+ var IndentIcon = (_a) => {
489
+ var _b = _a, { size = 17, className } = _b, props = __objRest(_b, ["size", "className"]);
490
+ return /* @__PURE__ */ jsxs(
491
+ "svg",
492
+ __spreadProps(__spreadValues({
493
+ xmlns: "http://www.w3.org/2000/svg",
494
+ width: size,
495
+ height: size,
496
+ viewBox: "0 0 24 24",
497
+ fill: "none",
498
+ stroke: "currentColor",
499
+ strokeWidth: "2",
500
+ strokeLinecap: "round",
501
+ strokeLinejoin: "round"
502
+ }, props), {
503
+ children: [
504
+ /* @__PURE__ */ jsx("path", { d: "M21 5H11" }),
505
+ /* @__PURE__ */ jsx("path", { d: "M21 12H11" }),
506
+ /* @__PURE__ */ jsx("path", { d: "M21 19H11" }),
507
+ /* @__PURE__ */ jsx("path", { d: "m3 8 4 4-4 4" })
508
+ ]
509
+ })
510
+ );
511
+ };
512
+ var OutdentIcon = (_a) => {
513
+ var _b = _a, { size = 17, className } = _b, props = __objRest(_b, ["size", "className"]);
514
+ return /* @__PURE__ */ jsxs(
515
+ "svg",
516
+ __spreadProps(__spreadValues({
517
+ xmlns: "http://www.w3.org/2000/svg",
518
+ width: size,
519
+ height: size,
520
+ viewBox: "0 0 24 24",
521
+ fill: "none",
522
+ stroke: "currentColor",
523
+ strokeWidth: "2",
524
+ strokeLinecap: "round",
525
+ strokeLinejoin: "round"
526
+ }, props), {
527
+ children: [
528
+ /* @__PURE__ */ jsx("path", { d: "M21 5H11" }),
529
+ /* @__PURE__ */ jsx("path", { d: "M21 12H11" }),
530
+ /* @__PURE__ */ jsx("path", { d: "M21 19H11" }),
531
+ /* @__PURE__ */ jsx("path", { d: "m7 8-4 4 4 4" })
532
+ ]
533
+ })
534
+ );
535
+ };
536
+ var ItalicIcon = (_a) => {
537
+ var _b = _a, { size = 17, className } = _b, props = __objRest(_b, ["size", "className"]);
538
+ return /* @__PURE__ */ jsxs(
539
+ "svg",
540
+ __spreadProps(__spreadValues({
541
+ xmlns: "http://www.w3.org/2000/svg",
542
+ viewBox: "0 0 24 24",
543
+ fill: "none",
544
+ stroke: "currentColor",
545
+ strokeWidth: 2,
546
+ strokeLinecap: "round",
547
+ strokeLinejoin: "round",
548
+ width: size,
549
+ height: size,
550
+ className
551
+ }, props), {
552
+ children: [
553
+ /* @__PURE__ */ jsx("line", { x1: "19", x2: "10", y1: "4", y2: "4" }),
554
+ /* @__PURE__ */ jsx("line", { x1: "14", x2: "5", y1: "20", y2: "20" }),
555
+ /* @__PURE__ */ jsx("line", { x1: "15", x2: "9", y1: "4", y2: "20" })
556
+ ]
557
+ })
558
+ );
559
+ };
560
+ var FormatLineHeight = (props) => {
561
+ return /* @__PURE__ */ jsx("svg", __spreadProps(__spreadValues({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24" }, props), { children: /* @__PURE__ */ jsx(
562
+ "path",
563
+ {
564
+ fill: "currentColor",
565
+ d: "M21 22H3v-2h18zm0-18H3V2h18zm-11 9.7h4l-2-5.4zM11.2 6h1.7l4.7 12h-2l-.9-2.6H9.4L8.5 18h-2z"
566
+ }
567
+ ) }));
568
+ };
569
+ var BulletListIcon = (_a) => {
570
+ var _b = _a, { size = 17, className } = _b, props = __objRest(_b, ["size", "className"]);
571
+ return /* @__PURE__ */ jsxs(
572
+ "svg",
573
+ __spreadProps(__spreadValues({
574
+ xmlns: "http://www.w3.org/2000/svg",
575
+ width: size,
576
+ height: size,
577
+ viewBox: "0 0 24 24",
578
+ fill: "none",
579
+ stroke: "currentColor",
580
+ strokeWidth: "2",
581
+ strokeLinecap: "round",
582
+ strokeLinejoin: "round"
583
+ }, props), {
584
+ children: [
585
+ /* @__PURE__ */ jsx("path", { d: "M3 5h.01" }),
586
+ /* @__PURE__ */ jsx("path", { d: "M3 12h.01" }),
587
+ /* @__PURE__ */ jsx("path", { d: "M3 19h.01" }),
588
+ /* @__PURE__ */ jsx("path", { d: "M8 5h13" }),
589
+ /* @__PURE__ */ jsx("path", { d: "M8 12h13" }),
590
+ /* @__PURE__ */ jsx("path", { d: "M8 19h13" })
591
+ ]
592
+ })
593
+ );
594
+ };
595
+ var OrderListIcon = (_a) => {
596
+ var _b = _a, { size = 17, className } = _b, props = __objRest(_b, ["size", "className"]);
597
+ return /* @__PURE__ */ jsxs(
598
+ "svg",
599
+ __spreadProps(__spreadValues({
600
+ xmlns: "http://www.w3.org/2000/svg",
601
+ width: size,
602
+ height: size,
603
+ viewBox: "0 0 24 24",
604
+ fill: "none",
605
+ stroke: "currentColor",
606
+ strokeWidth: "2",
607
+ strokeLinecap: "round",
608
+ strokeLinejoin: "round"
609
+ }, props), {
610
+ children: [
611
+ /* @__PURE__ */ jsx("path", { d: "M11 5h10" }),
612
+ /* @__PURE__ */ jsx("path", { d: "M11 12h10" }),
613
+ /* @__PURE__ */ jsx("path", { d: "M11 19h10" }),
614
+ /* @__PURE__ */ jsx("path", { d: "M4 4h1v5" }),
615
+ /* @__PURE__ */ jsx("path", { d: "M4 9h2" }),
616
+ /* @__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" })
617
+ ]
618
+ })
619
+ );
620
+ };
621
+ var TaskListIcon = (_a) => {
622
+ var _b = _a, { size = 17, className } = _b, props = __objRest(_b, ["size", "className"]);
623
+ return /* @__PURE__ */ jsxs(
624
+ "svg",
625
+ __spreadProps(__spreadValues({
626
+ xmlns: "http://www.w3.org/2000/svg",
627
+ width: size,
628
+ height: size,
629
+ viewBox: "0 0 24 24",
630
+ fill: "none",
631
+ stroke: "currentColor",
632
+ strokeWidth: "2",
633
+ strokeLinecap: "round",
634
+ strokeLinejoin: "round"
635
+ }, props), {
636
+ children: [
637
+ /* @__PURE__ */ jsx("path", { d: "M13 5h8" }),
638
+ /* @__PURE__ */ jsx("path", { d: "M13 12h8" }),
639
+ /* @__PURE__ */ jsx("path", { d: "M13 19h8" }),
640
+ /* @__PURE__ */ jsx("path", { d: "m3 17 2 2 4-4" }),
641
+ /* @__PURE__ */ jsx("rect", { x: "3", y: "4", width: "6", height: "6", rx: "1" })
642
+ ]
643
+ })
644
+ );
645
+ };
646
+ var LinkIcon = (_a) => {
647
+ var _b = _a, { size = 17, className } = _b, props = __objRest(_b, ["size", "className"]);
648
+ return /* @__PURE__ */ jsxs(
649
+ "svg",
650
+ __spreadProps(__spreadValues({
651
+ xmlns: "http://www.w3.org/2000/svg",
652
+ width: size,
653
+ height: size,
654
+ viewBox: "0 0 24 24",
655
+ fill: "none",
656
+ stroke: "currentColor",
657
+ strokeWidth: "2",
658
+ strokeLinecap: "round",
659
+ strokeLinejoin: "round"
660
+ }, props), {
661
+ children: [
662
+ /* @__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" }),
663
+ /* @__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" })
664
+ ]
665
+ })
666
+ );
667
+ };
668
+ var ImageUpIcon = (_a) => {
669
+ var _b = _a, { size = 17, className } = _b, props = __objRest(_b, ["size", "className"]);
670
+ return /* @__PURE__ */ jsxs(
671
+ "svg",
672
+ __spreadProps(__spreadValues({
673
+ xmlns: "http://www.w3.org/2000/svg",
674
+ width: size,
675
+ height: size,
676
+ viewBox: "0 0 24 24",
677
+ fill: "none",
678
+ stroke: "currentColor",
679
+ strokeWidth: "2",
680
+ strokeLinecap: "round",
681
+ strokeLinejoin: "round"
682
+ }, props), {
683
+ children: [
684
+ /* @__PURE__ */ jsx("path", { d: "M10.3 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10l-3.1-3.1a2 2 0 0 0-2.814.014L6 21" }),
685
+ /* @__PURE__ */ jsx("path", { d: "m14 19.5 3-3 3 3" }),
686
+ /* @__PURE__ */ jsx("path", { d: "M17 22v-5.5" }),
687
+ /* @__PURE__ */ jsx("circle", { cx: "9", cy: "9", r: "2" })
688
+ ]
689
+ })
690
+ );
691
+ };
692
+ var StrikeIcon = (_a) => {
693
+ var _b = _a, { size = 17, className } = _b, props = __objRest(_b, ["size", "className"]);
694
+ return /* @__PURE__ */ jsxs(
695
+ "svg",
696
+ __spreadProps(__spreadValues({
697
+ xmlns: "http://www.w3.org/2000/svg",
698
+ viewBox: "0 0 24 24",
699
+ fill: "none",
700
+ stroke: "currentColor",
701
+ strokeWidth: 2,
702
+ strokeLinecap: "round",
703
+ strokeLinejoin: "round",
704
+ width: size,
705
+ height: size,
706
+ className
707
+ }, props), {
708
+ children: [
709
+ /* @__PURE__ */ jsx("path", { d: "M16 4H9a3 3 0 0 0-2.83 4" }),
710
+ /* @__PURE__ */ jsx("path", { d: "M14 12a4 4 0 0 1 0 8H6" }),
711
+ /* @__PURE__ */ jsx("line", { x1: "4", x2: "20", y1: "12", y2: "12" })
712
+ ]
713
+ })
714
+ );
715
+ };
716
+ var SubAndSupIcon = (_a) => {
717
+ var _b = _a, { size = 17, className } = _b, props = __objRest(_b, ["size", "className"]);
718
+ return /* @__PURE__ */ jsxs(
719
+ "svg",
720
+ __spreadProps(__spreadValues({
721
+ xmlns: "http://www.w3.org/2000/svg",
722
+ viewBox: "0 0 24 24",
723
+ fill: "none",
724
+ stroke: "currentColor",
725
+ strokeWidth: 2,
726
+ strokeLinecap: "round",
727
+ strokeLinejoin: "round",
728
+ width: size,
729
+ height: size,
730
+ className
731
+ }, props), {
732
+ children: [
733
+ /* @__PURE__ */ jsx("path", { d: "M12 4v16" }),
734
+ /* @__PURE__ */ jsx("path", { d: "M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2" }),
735
+ /* @__PURE__ */ jsx("path", { d: "M9 20h6" })
736
+ ]
737
+ })
738
+ );
739
+ };
740
+ var SubIcon = (_a) => {
741
+ var _b = _a, { size = 17, className } = _b, props = __objRest(_b, ["size", "className"]);
742
+ return /* @__PURE__ */ jsxs(
743
+ "svg",
744
+ __spreadProps(__spreadValues({
745
+ xmlns: "http://www.w3.org/2000/svg",
746
+ viewBox: "0 0 24 24",
747
+ fill: "none",
748
+ stroke: "currentColor",
749
+ strokeWidth: 2,
750
+ strokeLinecap: "round",
751
+ strokeLinejoin: "round",
752
+ width: size,
753
+ height: size,
754
+ className
755
+ }, props), {
756
+ children: [
757
+ /* @__PURE__ */ jsx("path", { d: "m4 5 8 8" }),
758
+ /* @__PURE__ */ jsx("path", { d: "m12 5-8 8" }),
759
+ /* @__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" })
760
+ ]
761
+ })
762
+ );
763
+ };
764
+ var SupIcon = (_a) => {
765
+ var _b = _a, { size = 17, className } = _b, props = __objRest(_b, ["size", "className"]);
766
+ return /* @__PURE__ */ jsxs(
767
+ "svg",
768
+ __spreadProps(__spreadValues({
769
+ xmlns: "http://www.w3.org/2000/svg",
770
+ viewBox: "0 0 24 24",
771
+ fill: "none",
772
+ stroke: "currentColor",
773
+ strokeWidth: 2,
774
+ strokeLinecap: "round",
775
+ strokeLinejoin: "round",
776
+ width: size,
777
+ height: size,
778
+ className
779
+ }, props), {
780
+ children: [
781
+ /* @__PURE__ */ jsx("path", { d: "m4 19 8-8" }),
782
+ /* @__PURE__ */ jsx("path", { d: "m12 19-8-8" }),
783
+ /* @__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" })
784
+ ]
785
+ })
786
+ );
787
+ };
788
+ var UnderIcon = (_a) => {
789
+ var _b = _a, { size = 17, className } = _b, props = __objRest(_b, ["size", "className"]);
790
+ return /* @__PURE__ */ jsxs(
791
+ "svg",
792
+ __spreadProps(__spreadValues({
793
+ xmlns: "http://www.w3.org/2000/svg",
794
+ viewBox: "0 0 24 24",
795
+ fill: "none",
796
+ stroke: "currentColor",
797
+ strokeWidth: 2,
798
+ strokeLinecap: "round",
799
+ strokeLinejoin: "round",
800
+ width: size,
801
+ height: size,
802
+ className
803
+ }, props), {
804
+ children: [
805
+ /* @__PURE__ */ jsx("path", { d: "M6 4v6a6 6 0 0 0 12 0V4" }),
806
+ /* @__PURE__ */ jsx("line", { x1: "4", x2: "20", y1: "20", y2: "20" })
807
+ ]
808
+ })
809
+ );
810
+ };
811
+ var CloseIcon = (_a) => {
812
+ var _b = _a, { size = 17, className } = _b, props = __objRest(_b, ["size", "className"]);
813
+ return /* @__PURE__ */ jsxs(
814
+ "svg",
815
+ __spreadProps(__spreadValues({
816
+ xmlns: "http://www.w3.org/2000/svg",
817
+ viewBox: "0 0 24 24",
818
+ fill: "none",
819
+ stroke: "currentColor",
820
+ strokeWidth: 2,
821
+ strokeLinecap: "round",
822
+ strokeLinejoin: "round",
823
+ width: size,
824
+ height: size,
825
+ className
826
+ }, props), {
827
+ children: [
828
+ /* @__PURE__ */ jsx("path", { d: "M18 6 6 18" }),
829
+ /* @__PURE__ */ jsx("path", { d: "m6 6 12 12" })
830
+ ]
831
+ })
832
+ );
833
+ };
834
+ var ImageIcon = (_a) => {
835
+ var _b = _a, { size = 17, className } = _b, props = __objRest(_b, ["size", "className"]);
836
+ return /* @__PURE__ */ jsxs(
837
+ "svg",
838
+ __spreadProps(__spreadValues({
839
+ xmlns: "http://www.w3.org/2000/svg",
840
+ viewBox: "0 0 24 24",
841
+ fill: "none",
842
+ stroke: "currentColor",
843
+ strokeWidth: 2,
844
+ strokeLinecap: "round",
845
+ strokeLinejoin: "round",
846
+ width: size,
847
+ height: size,
848
+ className
849
+ }, props), {
850
+ children: [
851
+ /* @__PURE__ */ jsx("rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2" }),
852
+ /* @__PURE__ */ jsx("circle", { cx: "9", cy: "9", r: "2" }),
853
+ /* @__PURE__ */ jsx("path", { d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21" })
854
+ ]
855
+ })
856
+ );
857
+ };
858
+ var FlipHorizontal = (_a) => {
859
+ var _b = _a, { size = 17, className } = _b, props = __objRest(_b, ["size", "className"]);
860
+ return /* @__PURE__ */ jsxs(
861
+ "svg",
862
+ __spreadProps(__spreadValues({
863
+ xmlns: "http://www.w3.org/2000/svg",
864
+ viewBox: "0 0 24 24",
865
+ fill: "none",
866
+ stroke: "currentColor",
867
+ strokeWidth: 2,
868
+ strokeLinecap: "round",
869
+ strokeLinejoin: "round",
870
+ width: size,
871
+ height: size,
872
+ className
873
+ }, props), {
874
+ children: [
875
+ /* @__PURE__ */ jsx("path", { d: "m3 7 5 5-5 5V7" }),
876
+ /* @__PURE__ */ jsx("path", { d: "m21 7-5 5 5 5V7" }),
877
+ /* @__PURE__ */ jsx("path", { d: "M12 20v2" }),
878
+ /* @__PURE__ */ jsx("path", { d: "M12 14v2" }),
879
+ /* @__PURE__ */ jsx("path", { d: "M12 8v2" }),
880
+ /* @__PURE__ */ jsx("path", { d: "M12 2v2" })
881
+ ]
882
+ })
883
+ );
884
+ };
885
+ var FlipVertical = (_a) => {
886
+ var _b = _a, { size = 17, className } = _b, props = __objRest(_b, ["size", "className"]);
887
+ return /* @__PURE__ */ jsxs(
888
+ "svg",
889
+ __spreadProps(__spreadValues({
890
+ xmlns: "http://www.w3.org/2000/svg",
891
+ viewBox: "0 0 24 24",
892
+ fill: "none",
893
+ stroke: "currentColor",
894
+ strokeWidth: 2,
895
+ strokeLinecap: "round",
896
+ strokeLinejoin: "round",
897
+ width: size,
898
+ height: size,
899
+ className
900
+ }, props), {
901
+ children: [
902
+ /* @__PURE__ */ jsx("path", { d: "m17 3-5 5-5-5h10" }),
903
+ /* @__PURE__ */ jsx("path", { d: "m17 21-5-5-5 5h10" }),
904
+ /* @__PURE__ */ jsx("path", { d: "M4 12H2" }),
905
+ /* @__PURE__ */ jsx("path", { d: "M10 12H8" }),
906
+ /* @__PURE__ */ jsx("path", { d: "M16 12h-2" }),
907
+ /* @__PURE__ */ jsx("path", { d: "M22 12h-2" })
908
+ ]
909
+ })
910
+ );
911
+ };
912
+ var TrashIcon = (_a) => {
913
+ var _b = _a, { size = 17, className } = _b, props = __objRest(_b, ["size", "className"]);
914
+ return /* @__PURE__ */ jsxs(
915
+ "svg",
916
+ __spreadProps(__spreadValues({
917
+ xmlns: "http://www.w3.org/2000/svg",
918
+ viewBox: "0 0 24 24",
919
+ fill: "none",
920
+ stroke: "currentColor",
921
+ strokeWidth: 2,
922
+ strokeLinecap: "round",
923
+ strokeLinejoin: "round",
924
+ width: size,
925
+ height: size,
926
+ className
927
+ }, props), {
928
+ children: [
929
+ /* @__PURE__ */ jsx("path", { d: "M10 11v6" }),
930
+ /* @__PURE__ */ jsx("path", { d: "M14 11v6" }),
931
+ /* @__PURE__ */ jsx("path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6" }),
932
+ /* @__PURE__ */ jsx("path", { d: "M3 6h18" }),
933
+ /* @__PURE__ */ jsx("path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" })
934
+ ]
935
+ })
936
+ );
937
+ };
938
+ var BlockquoteLeft = (_a) => {
939
+ var _b = _a, { size = 17, className } = _b, props = __objRest(_b, ["size", "className"]);
940
+ return /* @__PURE__ */ jsx(
941
+ "svg",
942
+ __spreadProps(__spreadValues({
943
+ xmlns: "http://www.w3.org/2000/svg",
944
+ width: size,
945
+ height: size,
946
+ viewBox: "0 0 24 24"
947
+ }, props), {
948
+ children: /* @__PURE__ */ jsx(
949
+ "path",
950
+ {
951
+ fill: "none",
952
+ stroke: "currentColor",
953
+ strokeLinecap: "round",
954
+ strokeLinejoin: "round",
955
+ strokeWidth: "2",
956
+ d: "M6 15h15m0 4H6m9-8h6m0-4h-6M9 9h1a1 1 0 1 1-1 1V7.5a2 2 0 0 1 2-2M3 9h1a1 1 0 1 1-1 1V7.5a2 2 0 0 1 2-2"
957
+ }
958
+ )
959
+ })
960
+ );
961
+ };
962
+ var MinusIcon = (_a) => {
963
+ var _b = _a, { size = 17, className } = _b, props = __objRest(_b, ["size", "className"]);
964
+ return /* @__PURE__ */ jsx(
965
+ "svg",
966
+ __spreadProps(__spreadValues({
967
+ xmlns: "http://www.w3.org/2000/svg",
968
+ viewBox: "0 0 24 24",
969
+ fill: "none",
970
+ stroke: "currentColor",
971
+ strokeWidth: 2,
972
+ strokeLinecap: "round",
973
+ strokeLinejoin: "round",
974
+ width: size,
975
+ height: size,
976
+ className
977
+ }, props), {
978
+ children: /* @__PURE__ */ jsx("path", { d: "M5 12h14" })
979
+ })
980
+ );
981
+ };
982
+ var TabelIcon = (_a) => {
983
+ var _b = _a, { size = 17, className } = _b, props = __objRest(_b, ["size", "className"]);
984
+ return /* @__PURE__ */ jsxs(
985
+ "svg",
986
+ __spreadProps(__spreadValues({
987
+ xmlns: "http://www.w3.org/2000/svg",
988
+ viewBox: "0 0 24 24",
989
+ fill: "none",
990
+ stroke: "currentColor",
991
+ strokeWidth: 2,
992
+ strokeLinecap: "round",
993
+ strokeLinejoin: "round",
994
+ width: size,
995
+ height: size,
996
+ className
997
+ }, props), {
998
+ children: [
999
+ /* @__PURE__ */ jsx("path", { d: "M12 3v18" }),
1000
+ /* @__PURE__ */ jsx("rect", { width: "18", height: "18", x: "3", y: "3", rx: "2" }),
1001
+ /* @__PURE__ */ jsx("path", { d: "M3 9h18" }),
1002
+ /* @__PURE__ */ jsx("path", { d: "M3 15h18" })
1003
+ ]
1004
+ })
1005
+ );
1006
+ };
1007
+ var DragVerticalIcon = (_a) => {
1008
+ var _b = _a, { size = 17, className } = _b, props = __objRest(_b, ["size", "className"]);
1009
+ return /* @__PURE__ */ jsxs(
1010
+ "svg",
1011
+ __spreadProps(__spreadValues({
1012
+ xmlns: "http://www.w3.org/2000/svg",
1013
+ viewBox: "0 0 24 24",
1014
+ fill: "none",
1015
+ stroke: "currentColor",
1016
+ strokeWidth: 2,
1017
+ strokeLinecap: "round",
1018
+ strokeLinejoin: "round",
1019
+ width: size,
1020
+ height: size,
1021
+ className
1022
+ }, props), {
1023
+ children: [
1024
+ /* @__PURE__ */ jsx("circle", { cx: "9", cy: "12", r: "1" }),
1025
+ /* @__PURE__ */ jsx("circle", { cx: "9", cy: "5", r: "1" }),
1026
+ /* @__PURE__ */ jsx("circle", { cx: "9", cy: "19", r: "1" }),
1027
+ /* @__PURE__ */ jsx("circle", { cx: "15", cy: "12", r: "1" }),
1028
+ /* @__PURE__ */ jsx("circle", { cx: "15", cy: "5", r: "1" }),
1029
+ /* @__PURE__ */ jsx("circle", { cx: "15", cy: "19", r: "1" })
1030
+ ]
1031
+ })
1032
+ );
1033
+ };
1034
+ var PlusIcon = (_a) => {
1035
+ var _b = _a, { size = 17, className } = _b, props = __objRest(_b, ["size", "className"]);
1036
+ return /* @__PURE__ */ jsxs(
1037
+ "svg",
1038
+ __spreadProps(__spreadValues({
1039
+ xmlns: "http://www.w3.org/2000/svg",
1040
+ viewBox: "0 0 24 24",
1041
+ fill: "none",
1042
+ stroke: "currentColor",
1043
+ strokeWidth: 2,
1044
+ strokeLinecap: "round",
1045
+ strokeLinejoin: "round",
1046
+ width: size,
1047
+ height: size,
1048
+ className
1049
+ }, props), {
1050
+ children: [
1051
+ /* @__PURE__ */ jsx("path", { d: "M5 12h14" }),
1052
+ /* @__PURE__ */ jsx("path", { d: "M12 5v14" })
1053
+ ]
1054
+ })
1055
+ );
1056
+ };
1057
+ var EmojiIcon = (_a) => {
1058
+ var _b = _a, { size = 17, className } = _b, props = __objRest(_b, ["size", "className"]);
1059
+ return /* @__PURE__ */ jsxs(
1060
+ "svg",
1061
+ __spreadProps(__spreadValues({
1062
+ xmlns: "http://www.w3.org/2000/svg",
1063
+ viewBox: "0 0 24 24",
1064
+ fill: "none",
1065
+ stroke: "currentColor",
1066
+ strokeWidth: 2,
1067
+ strokeLinecap: "round",
1068
+ strokeLinejoin: "round",
1069
+ width: size,
1070
+ height: size,
1071
+ className
1072
+ }, props), {
1073
+ children: [
1074
+ /* @__PURE__ */ jsx("path", { d: "M22 11v1a10 10 0 1 1-9-10" }),
1075
+ /* @__PURE__ */ jsx("path", { d: "M8 14s1.5 2 4 2 4-2 4-2" }),
1076
+ /* @__PURE__ */ jsx("line", { x1: "9", x2: "9.01", y1: "9", y2: "9" }),
1077
+ /* @__PURE__ */ jsx("line", { x1: "15", x2: "15.01", y1: "9", y2: "9" }),
1078
+ /* @__PURE__ */ jsx("path", { d: "M16 5h6" }),
1079
+ /* @__PURE__ */ jsx("path", { d: "M19 2v6" })
1080
+ ]
1081
+ })
1082
+ );
1083
+ };
1084
+
1085
+ // src/lib/components/_com/Tooltip.tsx
1086
+ import { useState, Fragment, cloneElement, isValidElement, useId } from "react";
1087
+ import { useFloating, offset, flip, shift, autoUpdate, useInteractions, useHover, useDismiss, FloatingPortal } from "@floating-ui/react";
1088
+ import { AnimatePresence, motion } from "motion/react";
1089
+ import { twMerge } from "tailwind-merge";
1090
+ import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
1091
+ var Tooltip = ({ placement = "top", children, content, className }) => {
1092
+ const [open, setOpen] = useState(false);
1093
+ const { x, y, refs, strategy, context, placement: resolvedPlacement } = useFloating({
1094
+ open,
1095
+ onOpenChange: setOpen,
1096
+ placement,
1097
+ middleware: [offset(8), flip(), shift({ padding: 8 })],
1098
+ whileElementsMounted: autoUpdate
1099
+ });
1100
+ const hover = useHover(context);
1101
+ const dismiss = useDismiss(context);
1102
+ const { getReferenceProps, getFloatingProps } = useInteractions([hover, dismiss]);
1103
+ const id = useId();
1104
+ function mergeRefs(...refsToMerge) {
1105
+ return (node) => {
1106
+ for (const r of refsToMerge) {
1107
+ if (!r) continue;
1108
+ if (typeof r === "function") r(node);
1109
+ else r.current = node;
1110
+ }
1111
+ };
1112
+ }
1113
+ const side = resolvedPlacement.split("-")[0];
1114
+ const enterOffset = 6;
1115
+ const getInitial = () => {
1116
+ switch (side) {
1117
+ case "top":
1118
+ return { opacity: 0, y: enterOffset };
1119
+ case "bottom":
1120
+ return { opacity: 0, y: -enterOffset };
1121
+ case "left":
1122
+ return { opacity: 0, x: enterOffset };
1123
+ case "right":
1124
+ return { opacity: 0, x: -enterOffset };
1125
+ default:
1126
+ return { opacity: 0 };
1127
+ }
1128
+ };
1129
+ const getExit = () => __spreadProps(__spreadValues({}, getInitial()), { opacity: 0 });
1130
+ return /* @__PURE__ */ jsxs2(Fragment, { children: [
1131
+ isValidElement(children) ? cloneElement(children, __spreadProps(__spreadValues({}, getReferenceProps({
1132
+ onFocus: () => setOpen(true),
1133
+ onBlur: () => setOpen(false),
1134
+ "aria-describedby": open ? id : void 0
1135
+ /* eslint-disable @typescript-eslint/no-explicit-any */
1136
+ })), {
1137
+ /* eslint-disable @typescript-eslint/no-explicit-any */
1138
+ ref: mergeRefs(children.props.ref, refs.setReference)
1139
+ })) : children,
1140
+ /* @__PURE__ */ jsx2(FloatingPortal, { children: /* @__PURE__ */ jsx2(AnimatePresence, { children: open && /* @__PURE__ */ jsx2(
1141
+ motion.div,
1142
+ __spreadProps(__spreadValues({
1143
+ ref: refs.setFloating
1144
+ }, getFloatingProps({
1145
+ role: "tooltip",
1146
+ id,
1147
+ style: {
1148
+ position: strategy,
1149
+ top: y != null ? y : 0,
1150
+ left: x != null ? x : 0,
1151
+ pointerEvents: "none"
1152
+ }
1153
+ })), {
1154
+ initial: getInitial(),
1155
+ animate: { opacity: 1, x: 0, y: 0, scale: 1 },
1156
+ exit: getExit(),
1157
+ transition: { type: "spring", stiffness: 420, damping: 30, mass: 0.6 },
1158
+ className: twMerge("bg-white border border-solid border-gray-200/50 py-1 px-3 rounded-lg text-sm shadow-lg shadow-gray-50 text-center", className),
1159
+ children: content
1160
+ }),
1161
+ "tooltip"
1162
+ ) }) })
1163
+ ] });
1164
+ };
1165
+ var Tooltip_default = Tooltip;
1166
+
1167
+ export {
1168
+ AlignLeft,
1169
+ AlignCenter,
1170
+ AlignRight,
1171
+ AlignJustify,
1172
+ ArrowIcon,
1173
+ BoldIcon,
1174
+ ClearIcon,
1175
+ H1Icon,
1176
+ H2Icon,
1177
+ H3Icon,
1178
+ H4Icon,
1179
+ H5Icon,
1180
+ H6Icon,
1181
+ Pilcrow,
1182
+ Redo2,
1183
+ Undo2,
1184
+ ColorIcon,
1185
+ BackgroundIcon,
1186
+ Palette,
1187
+ IndentIcon,
1188
+ OutdentIcon,
1189
+ ItalicIcon,
1190
+ FormatLineHeight,
1191
+ BulletListIcon,
1192
+ OrderListIcon,
1193
+ TaskListIcon,
1194
+ LinkIcon,
1195
+ ImageUpIcon,
1196
+ StrikeIcon,
1197
+ SubAndSupIcon,
1198
+ SubIcon,
1199
+ SupIcon,
1200
+ UnderIcon,
1201
+ CloseIcon,
1202
+ ImageIcon,
1203
+ FlipHorizontal,
1204
+ FlipVertical,
1205
+ TrashIcon,
1206
+ BlockquoteLeft,
1207
+ MinusIcon,
1208
+ TabelIcon,
1209
+ DragVerticalIcon,
1210
+ PlusIcon,
1211
+ EmojiIcon,
1212
+ Tooltip_default
1213
+ };