@blocknote/mantine 0.41.1 → 0.42.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/dist/blocknote-mantine.cjs +1 -1
- package/dist/blocknote-mantine.cjs.map +1 -1
- package/dist/blocknote-mantine.js +233 -231
- package/dist/blocknote-mantine.js.map +1 -1
- package/dist/webpack-stats.json +1 -1
- package/package.json +16 -16
- package/src/blocknoteStyles.css +3 -5
- package/src/comments/Card.tsx +3 -14
- package/src/comments/Comment.tsx +3 -4
- package/src/popover/Popover.tsx +7 -1
- package/types/src/comments/Comment.d.ts +1 -0
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { jsx as s, jsxs as v } from "react/jsx-runtime";
|
|
2
|
-
import { assertEmpty as
|
|
3
|
-
import { mergeRefs as
|
|
4
|
-
import { Button as T, ActionIcon as
|
|
5
|
-
import N, { forwardRef as m, useState as
|
|
6
|
-
import { useHover as
|
|
7
|
-
const
|
|
2
|
+
import { assertEmpty as u, isSafari as R, mergeCSSClasses as B, COLORS_DEFAULT as re, COLORS_DARK_MODE_DEFAULT as se } from "@blocknote/core";
|
|
3
|
+
import { mergeRefs as ie, useDictionary as ae, useBlockNoteContext as H, FormattingToolbarController as le, getFormattingToolbarItems as ce, FormattingToolbar as de, elementOverflow as K, usePrefersColorScheme as ue, ComponentsContext as me, BlockNoteViewRaw as ge } from "@blocknote/react";
|
|
4
|
+
import { Button as T, ActionIcon as E, Tooltip as U, Stack as L, Text as C, Group as h, Chip as fe, Divider as be, Card as W, Skeleton as $, Avatar as he, TextInput as q, Menu as p, CheckIcon as z, Tabs as k, LoadingOverlay as pe, FileInput as ve, PopoverDropdown as Se, PopoverTarget as ye, Popover as we, Badge as xe, Loader as Z, Flex as Ce, MantineContext as Ne, MantineProvider as Te } from "@mantine/core";
|
|
5
|
+
import N, { forwardRef as m, useState as J, useContext as Q, createContext as Pe, useRef as X, useEffect as Y, useCallback as ke } from "react";
|
|
6
|
+
import { useHover as Fe, mergeRefs as j, useFocusWithin as Me, useFocusTrap as Oe } from "@mantine/hooks";
|
|
7
|
+
const ee = (e, n, t = !1) => {
|
|
8
8
|
const o = [];
|
|
9
9
|
function r(i, a = "--bn") {
|
|
10
10
|
for (const l in i) {
|
|
11
|
-
const c = l.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(),
|
|
12
|
-
typeof i[l] != "object" ? (typeof i[l] == "number" && (i[l] = `${i[l]}px`), t ? n.style.removeProperty(
|
|
11
|
+
const c = l.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(), d = `${a}-${c}`;
|
|
12
|
+
typeof i[l] != "object" ? (typeof i[l] == "number" && (i[l] = `${i[l]}px`), t ? n.style.removeProperty(d) : n.style.setProperty(d, i[l].toString())) : r(i[l], d);
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
return r(e), o;
|
|
16
|
-
},
|
|
16
|
+
}, A = (e, n) => ee(e, n), De = {
|
|
17
17
|
colors: {
|
|
18
18
|
editor: {
|
|
19
19
|
text: void 0,
|
|
@@ -83,7 +83,7 @@ const ne = (e, n, t = !1) => {
|
|
|
83
83
|
},
|
|
84
84
|
borderRadius: void 0,
|
|
85
85
|
fontFamily: void 0
|
|
86
|
-
}, Ie = (e) =>
|
|
86
|
+
}, Ie = (e) => ee(De, e, !0), te = (e) => /* @__PURE__ */ v(L, { gap: 0, className: "bn-tooltip", children: [
|
|
87
87
|
/* @__PURE__ */ s(C, { size: "sm", lineClamp: 5, children: e.mainTooltip }),
|
|
88
88
|
e.secondaryTooltip && /* @__PURE__ */ s(C, { size: "xs", lineClamp: 5, children: e.secondaryTooltip })
|
|
89
89
|
] }), O = m(
|
|
@@ -96,22 +96,22 @@ const ne = (e, n, t = !1) => {
|
|
|
96
96
|
icon: a,
|
|
97
97
|
isSelected: l,
|
|
98
98
|
isDisabled: c,
|
|
99
|
-
onClick:
|
|
100
|
-
label:
|
|
99
|
+
onClick: d,
|
|
100
|
+
label: f,
|
|
101
101
|
variant: b,
|
|
102
102
|
...S
|
|
103
103
|
} = e;
|
|
104
|
-
|
|
105
|
-
const [x, y] =
|
|
104
|
+
u(S, !1);
|
|
105
|
+
const [x, y] = J(!1), P = o ? /* @__PURE__ */ s(
|
|
106
106
|
T,
|
|
107
107
|
{
|
|
108
|
-
"aria-label":
|
|
108
|
+
"aria-label": f,
|
|
109
109
|
className: t,
|
|
110
110
|
onMouseDown: (w) => {
|
|
111
111
|
R() && w.currentTarget.focus();
|
|
112
112
|
},
|
|
113
113
|
onClick: (w) => {
|
|
114
|
-
y(!0),
|
|
114
|
+
y(!0), d == null || d(w);
|
|
115
115
|
},
|
|
116
116
|
onPointerLeave: () => y(!1),
|
|
117
117
|
"aria-pressed": l,
|
|
@@ -124,15 +124,15 @@ const ne = (e, n, t = !1) => {
|
|
|
124
124
|
children: o
|
|
125
125
|
}
|
|
126
126
|
) : /* @__PURE__ */ s(
|
|
127
|
-
|
|
127
|
+
E,
|
|
128
128
|
{
|
|
129
129
|
className: t,
|
|
130
|
-
"aria-label":
|
|
130
|
+
"aria-label": f,
|
|
131
131
|
onMouseDown: (w) => {
|
|
132
132
|
R() && w.currentTarget.focus();
|
|
133
133
|
},
|
|
134
134
|
onClick: (w) => {
|
|
135
|
-
y(!0),
|
|
135
|
+
y(!0), d == null || d(w);
|
|
136
136
|
},
|
|
137
137
|
onPointerLeave: () => y(!1),
|
|
138
138
|
"aria-pressed": l,
|
|
@@ -146,20 +146,20 @@ const ne = (e, n, t = !1) => {
|
|
|
146
146
|
}
|
|
147
147
|
);
|
|
148
148
|
return r ? /* @__PURE__ */ s(
|
|
149
|
-
|
|
149
|
+
U,
|
|
150
150
|
{
|
|
151
151
|
disabled: x,
|
|
152
152
|
withinPortal: !1,
|
|
153
153
|
label: /* @__PURE__ */ s(
|
|
154
|
-
|
|
154
|
+
te,
|
|
155
155
|
{
|
|
156
156
|
mainTooltip: r,
|
|
157
157
|
secondaryTooltip: i
|
|
158
158
|
}
|
|
159
159
|
),
|
|
160
|
-
children:
|
|
160
|
+
children: P
|
|
161
161
|
}
|
|
162
|
-
) :
|
|
162
|
+
) : P;
|
|
163
163
|
}
|
|
164
164
|
), Re = m((e, n) => {
|
|
165
165
|
const {
|
|
@@ -170,17 +170,17 @@ const ne = (e, n, t = !1) => {
|
|
|
170
170
|
mainTooltip: a,
|
|
171
171
|
secondaryTooltip: l,
|
|
172
172
|
onClick: c,
|
|
173
|
-
onMouseEnter:
|
|
174
|
-
...
|
|
173
|
+
onMouseEnter: d,
|
|
174
|
+
...f
|
|
175
175
|
} = e;
|
|
176
|
-
|
|
177
|
-
const [b, S] =
|
|
178
|
-
|
|
176
|
+
u(f, !1);
|
|
177
|
+
const [b, S] = J(!1), x = /* @__PURE__ */ v(
|
|
178
|
+
fe,
|
|
179
179
|
{
|
|
180
180
|
className: t,
|
|
181
181
|
checked: i === !0,
|
|
182
182
|
wrapperProps: {
|
|
183
|
-
onMouseEnter:
|
|
183
|
+
onMouseEnter: d,
|
|
184
184
|
onMouseLeave: () => S(!1),
|
|
185
185
|
onClick: (y) => {
|
|
186
186
|
S(!0), c == null || c(y);
|
|
@@ -196,12 +196,12 @@ const ne = (e, n, t = !1) => {
|
|
|
196
196
|
}
|
|
197
197
|
);
|
|
198
198
|
return !a || b ? x : /* @__PURE__ */ s(
|
|
199
|
-
|
|
199
|
+
U,
|
|
200
200
|
{
|
|
201
201
|
refProp: "rootRef",
|
|
202
202
|
withinPortal: !1,
|
|
203
203
|
label: /* @__PURE__ */ s(
|
|
204
|
-
|
|
204
|
+
te,
|
|
205
205
|
{
|
|
206
206
|
mainTooltip: a,
|
|
207
207
|
secondaryTooltip: l
|
|
@@ -210,10 +210,10 @@ const ne = (e, n, t = !1) => {
|
|
|
210
210
|
children: x
|
|
211
211
|
}
|
|
212
212
|
);
|
|
213
|
-
}),
|
|
213
|
+
}), ze = m((e, n) => {
|
|
214
214
|
const { className: t, children: o, ...r } = e;
|
|
215
|
-
return
|
|
216
|
-
}),
|
|
215
|
+
return u(r), /* @__PURE__ */ s(h, { className: t, ref: n, children: o });
|
|
216
|
+
}), Be = m((e, n) => {
|
|
217
217
|
const {
|
|
218
218
|
className: t,
|
|
219
219
|
children: o,
|
|
@@ -222,37 +222,29 @@ const ne = (e, n, t = !1) => {
|
|
|
222
222
|
onFocus: a,
|
|
223
223
|
onBlur: l,
|
|
224
224
|
tabIndex: c,
|
|
225
|
-
...
|
|
225
|
+
...d
|
|
226
226
|
} = e;
|
|
227
|
-
d
|
|
228
|
-
|
|
229
|
-
return $(() => {
|
|
230
|
-
var b;
|
|
231
|
-
i && ((b = g.current) == null || b.scrollIntoView({
|
|
232
|
-
behavior: "smooth",
|
|
233
|
-
block: "center"
|
|
234
|
-
}));
|
|
235
|
-
}, [i]), /* @__PURE__ */ v(
|
|
236
|
-
J,
|
|
227
|
+
return u(d, !1), /* @__PURE__ */ v(
|
|
228
|
+
W,
|
|
237
229
|
{
|
|
238
|
-
className:
|
|
230
|
+
className: B(t, i ? "selected" : ""),
|
|
239
231
|
onFocus: a,
|
|
240
232
|
onBlur: l,
|
|
241
233
|
tabIndex: c,
|
|
242
|
-
ref:
|
|
234
|
+
ref: n,
|
|
243
235
|
children: [
|
|
244
236
|
r && /* @__PURE__ */ s(C, { className: "bn-header-text", children: r }),
|
|
245
237
|
o
|
|
246
238
|
]
|
|
247
239
|
}
|
|
248
240
|
);
|
|
249
|
-
}),
|
|
241
|
+
}), Ee = m((e, n) => {
|
|
250
242
|
const { className: t, children: o, ...r } = e;
|
|
251
|
-
return
|
|
252
|
-
}),
|
|
243
|
+
return u(r, !1), /* @__PURE__ */ s(W.Section, { className: t, ref: n, children: o });
|
|
244
|
+
}), Le = m((e, n) => {
|
|
253
245
|
const { className: t, children: o, ...r } = e;
|
|
254
|
-
return
|
|
255
|
-
|
|
246
|
+
return u(r, !1), /* @__PURE__ */ s(
|
|
247
|
+
be,
|
|
256
248
|
{
|
|
257
249
|
className: t,
|
|
258
250
|
label: /* @__PURE__ */ s(C, { children: o }),
|
|
@@ -260,13 +252,13 @@ const ne = (e, n, t = !1) => {
|
|
|
260
252
|
}
|
|
261
253
|
);
|
|
262
254
|
}), je = m((e, n) => {
|
|
263
|
-
const { authorInfo: t, timeString: o, edited: r, ...i } = e, a =
|
|
264
|
-
return
|
|
265
|
-
/* @__PURE__ */ s(
|
|
266
|
-
/* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
|
|
255
|
+
const { authorInfo: t, timeString: o, edited: r, ...i } = e, a = ae();
|
|
256
|
+
return u(i, !1), t === "loading" ? /* @__PURE__ */ v(h, { children: [
|
|
257
|
+
/* @__PURE__ */ s($, { height: 24, width: 24 }),
|
|
258
|
+
/* @__PURE__ */ s("div", { children: /* @__PURE__ */ s($, { height: 12, width: 100 }) })
|
|
267
259
|
] }) : /* @__PURE__ */ v(h, { children: [
|
|
268
260
|
/* @__PURE__ */ s(
|
|
269
|
-
|
|
261
|
+
he,
|
|
270
262
|
{
|
|
271
263
|
src: t.avatarUrl,
|
|
272
264
|
alt: t.username,
|
|
@@ -292,14 +284,14 @@ const ne = (e, n, t = !1) => {
|
|
|
292
284
|
timeString: i,
|
|
293
285
|
edited: a,
|
|
294
286
|
actions: l,
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
287
|
+
emojiPickerOpen: c,
|
|
288
|
+
children: d,
|
|
289
|
+
...f
|
|
290
|
+
} = e, { hovered: b, ref: S } = Fe(), x = ie([n, S]);
|
|
291
|
+
return u(f, !1), /* @__PURE__ */ v(h, { pos: "relative", ref: x, className: t, children: [
|
|
292
|
+
l && (o === !0 || o === void 0 || o === "hover" && b || c) ? /* @__PURE__ */ s(
|
|
300
293
|
h,
|
|
301
294
|
{
|
|
302
|
-
ref: x,
|
|
303
295
|
style: {
|
|
304
296
|
position: "absolute",
|
|
305
297
|
right: 0,
|
|
@@ -310,12 +302,12 @@ const ne = (e, n, t = !1) => {
|
|
|
310
302
|
}
|
|
311
303
|
) : null,
|
|
312
304
|
/* @__PURE__ */ s(je, { ...e }),
|
|
313
|
-
|
|
305
|
+
d
|
|
314
306
|
] });
|
|
315
307
|
}), Ae = m((e, n) => {
|
|
316
308
|
const { className: t, autoFocus: o, onFocus: r, onBlur: i, editor: a, editable: l, ...c } = e;
|
|
317
|
-
|
|
318
|
-
const
|
|
309
|
+
u(c, !1);
|
|
310
|
+
const d = H();
|
|
319
311
|
return /* @__PURE__ */ s(
|
|
320
312
|
Ft,
|
|
321
313
|
{
|
|
@@ -328,12 +320,12 @@ const ne = (e, n, t = !1) => {
|
|
|
328
320
|
filePanel: !1,
|
|
329
321
|
formattingToolbar: !1,
|
|
330
322
|
editable: l,
|
|
331
|
-
theme:
|
|
323
|
+
theme: d == null ? void 0 : d.colorSchemePreference,
|
|
332
324
|
ref: n,
|
|
333
325
|
onFocus: r,
|
|
334
326
|
onBlur: i,
|
|
335
327
|
children: /* @__PURE__ */ s(
|
|
336
|
-
|
|
328
|
+
le,
|
|
337
329
|
{
|
|
338
330
|
formattingToolbar: _e
|
|
339
331
|
}
|
|
@@ -341,7 +333,7 @@ const ne = (e, n, t = !1) => {
|
|
|
341
333
|
}
|
|
342
334
|
);
|
|
343
335
|
}), _e = () => {
|
|
344
|
-
const e =
|
|
336
|
+
const e = ce([]).filter(
|
|
345
337
|
(n) => n.key !== "nestBlockButton" && n.key !== "unnestBlockButton"
|
|
346
338
|
);
|
|
347
339
|
return /* @__PURE__ */ s(de, { blockTypeSelectItems: [], children: e });
|
|
@@ -354,20 +346,20 @@ const ne = (e, n, t = !1) => {
|
|
|
354
346
|
icon: a,
|
|
355
347
|
value: l,
|
|
356
348
|
autoFocus: c,
|
|
357
|
-
placeholder:
|
|
358
|
-
disabled:
|
|
349
|
+
placeholder: d,
|
|
350
|
+
disabled: f,
|
|
359
351
|
onKeyDown: b,
|
|
360
352
|
onChange: S,
|
|
361
353
|
onSubmit: x,
|
|
362
354
|
autoComplete: y,
|
|
363
|
-
rightSection:
|
|
355
|
+
rightSection: P,
|
|
364
356
|
...w
|
|
365
357
|
} = e;
|
|
366
|
-
return
|
|
367
|
-
|
|
358
|
+
return u(w), /* @__PURE__ */ s(
|
|
359
|
+
q,
|
|
368
360
|
{
|
|
369
361
|
size: "xs",
|
|
370
|
-
className:
|
|
362
|
+
className: B(
|
|
371
363
|
t || "",
|
|
372
364
|
i === "large" ? "bn-mt-input-large" : ""
|
|
373
365
|
),
|
|
@@ -378,9 +370,9 @@ const ne = (e, n, t = !1) => {
|
|
|
378
370
|
value: l,
|
|
379
371
|
autoFocus: c,
|
|
380
372
|
"data-autofocus": c ? "true" : void 0,
|
|
381
|
-
rightSection:
|
|
382
|
-
placeholder:
|
|
383
|
-
disabled:
|
|
373
|
+
rightSection: P,
|
|
374
|
+
placeholder: d,
|
|
375
|
+
disabled: f,
|
|
384
376
|
onKeyDown: b,
|
|
385
377
|
onChange: S,
|
|
386
378
|
onSubmit: x,
|
|
@@ -389,7 +381,7 @@ const ne = (e, n, t = !1) => {
|
|
|
389
381
|
);
|
|
390
382
|
}), Ge = Pe(void 0), He = (e) => {
|
|
391
383
|
const { children: n, onOpenChange: t, position: o, sub: r, ...i } = e;
|
|
392
|
-
return
|
|
384
|
+
return u(i), r ? /* @__PURE__ */ s(
|
|
393
385
|
p.Sub,
|
|
394
386
|
{
|
|
395
387
|
transitionProps: { duration: 250, exitDelay: 250 },
|
|
@@ -411,13 +403,13 @@ const ne = (e, n, t = !1) => {
|
|
|
411
403
|
);
|
|
412
404
|
}, Ke = m((e, n) => {
|
|
413
405
|
const { className: t, children: o, icon: r, checked: i, subTrigger: a, onClick: l, ...c } = e;
|
|
414
|
-
return
|
|
406
|
+
return u(c, !1), a ? /* @__PURE__ */ s(
|
|
415
407
|
p.Sub.Item,
|
|
416
408
|
{
|
|
417
409
|
className: t,
|
|
418
410
|
ref: n,
|
|
419
411
|
leftSection: r,
|
|
420
|
-
rightSection: i ? /* @__PURE__ */ s(
|
|
412
|
+
rightSection: i ? /* @__PURE__ */ s(z, { size: 10 }) : i === !1 ? /* @__PURE__ */ s("div", { className: "bn-tick-space" }) : null,
|
|
421
413
|
onClick: l,
|
|
422
414
|
...c,
|
|
423
415
|
children: o
|
|
@@ -428,7 +420,7 @@ const ne = (e, n, t = !1) => {
|
|
|
428
420
|
className: t,
|
|
429
421
|
ref: n,
|
|
430
422
|
leftSection: r,
|
|
431
|
-
rightSection: i ? /* @__PURE__ */ s(
|
|
423
|
+
rightSection: i ? /* @__PURE__ */ s(z, { size: 10 }) : i === !1 ? /* @__PURE__ */ s("div", { className: "bn-tick-space" }) : null,
|
|
432
424
|
onClick: l,
|
|
433
425
|
...c,
|
|
434
426
|
children: o
|
|
@@ -441,7 +433,7 @@ const ne = (e, n, t = !1) => {
|
|
|
441
433
|
// unused
|
|
442
434
|
...o
|
|
443
435
|
} = e;
|
|
444
|
-
return
|
|
436
|
+
return u(o), t ? /* @__PURE__ */ s(p.Sub.Target, { children: n }) : /* @__PURE__ */ s(p.Target, { children: n });
|
|
445
437
|
}, We = m((e, n) => {
|
|
446
438
|
const {
|
|
447
439
|
className: t,
|
|
@@ -450,8 +442,8 @@ const ne = (e, n, t = !1) => {
|
|
|
450
442
|
//unused
|
|
451
443
|
...i
|
|
452
444
|
} = e;
|
|
453
|
-
|
|
454
|
-
const a =
|
|
445
|
+
u(i);
|
|
446
|
+
const a = Q(Ge);
|
|
455
447
|
return r ? /* @__PURE__ */ s(
|
|
456
448
|
p.Sub.Dropdown,
|
|
457
449
|
{
|
|
@@ -473,10 +465,10 @@ const ne = (e, n, t = !1) => {
|
|
|
473
465
|
);
|
|
474
466
|
}), qe = m((e, n) => {
|
|
475
467
|
const { className: t, ...o } = e;
|
|
476
|
-
return
|
|
468
|
+
return u(o), /* @__PURE__ */ s(p.Divider, { className: t, ref: n });
|
|
477
469
|
}), Ze = m((e, n) => {
|
|
478
470
|
const { className: t, children: o, ...r } = e;
|
|
479
|
-
return
|
|
471
|
+
return u(r), /* @__PURE__ */ s(p.Label, { className: t, ref: n, children: o });
|
|
480
472
|
}), Je = m((e, n) => {
|
|
481
473
|
const {
|
|
482
474
|
className: t,
|
|
@@ -486,11 +478,11 @@ const ne = (e, n, t = !1) => {
|
|
|
486
478
|
onDragEnd: a,
|
|
487
479
|
onDragStart: l,
|
|
488
480
|
draggable: c,
|
|
489
|
-
label:
|
|
490
|
-
...
|
|
481
|
+
label: d,
|
|
482
|
+
...f
|
|
491
483
|
} = e;
|
|
492
|
-
return
|
|
493
|
-
|
|
484
|
+
return u(f, !1), r ? /* @__PURE__ */ s(
|
|
485
|
+
E,
|
|
494
486
|
{
|
|
495
487
|
size: 24,
|
|
496
488
|
className: t,
|
|
@@ -499,8 +491,8 @@ const ne = (e, n, t = !1) => {
|
|
|
499
491
|
onDragEnd: a,
|
|
500
492
|
onDragStart: l,
|
|
501
493
|
draggable: c,
|
|
502
|
-
"aria-label":
|
|
503
|
-
...
|
|
494
|
+
"aria-label": d,
|
|
495
|
+
...f,
|
|
504
496
|
children: r
|
|
505
497
|
}
|
|
506
498
|
) : /* @__PURE__ */ s(
|
|
@@ -512,8 +504,8 @@ const ne = (e, n, t = !1) => {
|
|
|
512
504
|
onDragEnd: a,
|
|
513
505
|
onDragStart: l,
|
|
514
506
|
draggable: c,
|
|
515
|
-
"aria-label":
|
|
516
|
-
...
|
|
507
|
+
"aria-label": d,
|
|
508
|
+
...f,
|
|
517
509
|
children: o
|
|
518
510
|
}
|
|
519
511
|
);
|
|
@@ -527,30 +519,30 @@ const ne = (e, n, t = !1) => {
|
|
|
527
519
|
loading: l,
|
|
528
520
|
...c
|
|
529
521
|
} = e;
|
|
530
|
-
return
|
|
531
|
-
|
|
522
|
+
return u(c), /* @__PURE__ */ s(h, { className: t, ref: n, children: /* @__PURE__ */ v(
|
|
523
|
+
k,
|
|
532
524
|
{
|
|
533
525
|
value: i,
|
|
534
526
|
defaultValue: r,
|
|
535
527
|
onChange: a,
|
|
536
528
|
children: [
|
|
537
|
-
l && /* @__PURE__ */ s(
|
|
538
|
-
/* @__PURE__ */ s(
|
|
539
|
-
|
|
529
|
+
l && /* @__PURE__ */ s(pe, { visible: l }),
|
|
530
|
+
/* @__PURE__ */ s(k.List, { children: o.map((d) => /* @__PURE__ */ s(
|
|
531
|
+
k.Tab,
|
|
540
532
|
{
|
|
541
|
-
"data-test": `${
|
|
542
|
-
value:
|
|
543
|
-
children:
|
|
533
|
+
"data-test": `${d.name.toLowerCase()}-tab`,
|
|
534
|
+
value: d.name,
|
|
535
|
+
children: d.name
|
|
544
536
|
},
|
|
545
|
-
|
|
537
|
+
d.name
|
|
546
538
|
)) }),
|
|
547
|
-
o.map((
|
|
539
|
+
o.map((d) => /* @__PURE__ */ s(k.Panel, { value: d.name, children: d.tabPanel }, d.name))
|
|
548
540
|
]
|
|
549
541
|
}
|
|
550
542
|
) });
|
|
551
543
|
}), Xe = m((e, n) => {
|
|
552
544
|
const { className: t, children: o, onClick: r, label: i, ...a } = e;
|
|
553
|
-
return
|
|
545
|
+
return u(a), /* @__PURE__ */ s(
|
|
554
546
|
T,
|
|
555
547
|
{
|
|
556
548
|
size: "xs",
|
|
@@ -564,8 +556,8 @@ const ne = (e, n, t = !1) => {
|
|
|
564
556
|
);
|
|
565
557
|
}), Ye = m((e, n) => {
|
|
566
558
|
const { className: t, accept: o, value: r, placeholder: i, onChange: a, ...l } = e;
|
|
567
|
-
return
|
|
568
|
-
|
|
559
|
+
return u(l), /* @__PURE__ */ s(
|
|
560
|
+
ve,
|
|
569
561
|
{
|
|
570
562
|
size: "xs",
|
|
571
563
|
className: t,
|
|
@@ -579,11 +571,11 @@ const ne = (e, n, t = !1) => {
|
|
|
579
571
|
);
|
|
580
572
|
}), et = m((e, n) => {
|
|
581
573
|
const { className: t, children: o, ...r } = e;
|
|
582
|
-
return
|
|
574
|
+
return u(r), /* @__PURE__ */ s("div", { className: t, ref: n, children: o });
|
|
583
575
|
}), tt = m((e, n) => {
|
|
584
576
|
const { className: t, value: o, placeholder: r, onKeyDown: i, onChange: a, ...l } = e;
|
|
585
|
-
return
|
|
586
|
-
|
|
577
|
+
return u(l), /* @__PURE__ */ s(
|
|
578
|
+
q,
|
|
587
579
|
{
|
|
588
580
|
size: "xs",
|
|
589
581
|
"data-test": "embed-input",
|
|
@@ -597,10 +589,20 @@ const ne = (e, n, t = !1) => {
|
|
|
597
589
|
);
|
|
598
590
|
}), nt = (e) => {
|
|
599
591
|
const { opened: n, position: t, children: o, ...r } = e;
|
|
600
|
-
return
|
|
592
|
+
return u(r), /* @__PURE__ */ s(
|
|
593
|
+
we,
|
|
594
|
+
{
|
|
595
|
+
middlewares: { size: { padding: 20 } },
|
|
596
|
+
withinPortal: !1,
|
|
597
|
+
opened: n,
|
|
598
|
+
position: t,
|
|
599
|
+
zIndex: 1e4,
|
|
600
|
+
children: o
|
|
601
|
+
}
|
|
602
|
+
);
|
|
601
603
|
}, ot = (e) => {
|
|
602
604
|
const { children: n, ...t } = e;
|
|
603
|
-
return
|
|
605
|
+
return u(t), /* @__PURE__ */ s(ye, { children: n });
|
|
604
606
|
}, rt = m((e, n) => {
|
|
605
607
|
const {
|
|
606
608
|
className: t,
|
|
@@ -609,10 +611,10 @@ const ne = (e, n, t = !1) => {
|
|
|
609
611
|
// unused
|
|
610
612
|
...i
|
|
611
613
|
} = e;
|
|
612
|
-
return
|
|
614
|
+
return u(i), /* @__PURE__ */ s(Se, { className: t, ref: n, children: o });
|
|
613
615
|
}), st = m((e, n) => {
|
|
614
616
|
const { className: t, children: o, ...r } = e;
|
|
615
|
-
return
|
|
617
|
+
return u(r, !1), /* @__PURE__ */ s(
|
|
616
618
|
h,
|
|
617
619
|
{
|
|
618
620
|
align: "center",
|
|
@@ -632,11 +634,11 @@ const ne = (e, n, t = !1) => {
|
|
|
632
634
|
onDragEnd: a,
|
|
633
635
|
onDragStart: l,
|
|
634
636
|
draggable: c,
|
|
635
|
-
label:
|
|
636
|
-
...
|
|
637
|
+
label: d,
|
|
638
|
+
...f
|
|
637
639
|
} = e;
|
|
638
|
-
return
|
|
639
|
-
|
|
640
|
+
return u(f, !1), r ? /* @__PURE__ */ s(
|
|
641
|
+
E,
|
|
640
642
|
{
|
|
641
643
|
size: 24,
|
|
642
644
|
className: t,
|
|
@@ -645,8 +647,8 @@ const ne = (e, n, t = !1) => {
|
|
|
645
647
|
onDragEnd: a,
|
|
646
648
|
onDragStart: l,
|
|
647
649
|
draggable: c,
|
|
648
|
-
"aria-label":
|
|
649
|
-
...
|
|
650
|
+
"aria-label": d,
|
|
651
|
+
...f,
|
|
650
652
|
children: r
|
|
651
653
|
}
|
|
652
654
|
) : /* @__PURE__ */ s(
|
|
@@ -658,15 +660,15 @@ const ne = (e, n, t = !1) => {
|
|
|
658
660
|
onDragEnd: a,
|
|
659
661
|
onDragStart: l,
|
|
660
662
|
draggable: c,
|
|
661
|
-
"aria-label":
|
|
662
|
-
...
|
|
663
|
+
"aria-label": d,
|
|
664
|
+
...f,
|
|
663
665
|
children: o
|
|
664
666
|
}
|
|
665
667
|
);
|
|
666
668
|
}), at = m((e, n) => {
|
|
667
669
|
const { className: t, children: o, id: r, ...i } = e;
|
|
668
|
-
return
|
|
669
|
-
|
|
670
|
+
return u(i), /* @__PURE__ */ s(
|
|
671
|
+
L,
|
|
670
672
|
{
|
|
671
673
|
gap: 0,
|
|
672
674
|
className: t,
|
|
@@ -678,29 +680,29 @@ const ne = (e, n, t = !1) => {
|
|
|
678
680
|
);
|
|
679
681
|
}), lt = m((e, n) => {
|
|
680
682
|
const { className: t, children: o, ...r } = e;
|
|
681
|
-
return
|
|
683
|
+
return u(r), /* @__PURE__ */ s(h, { className: t, ref: n, children: /* @__PURE__ */ s(h, { className: "bn-mt-suggestion-menu-item-title", children: o }) });
|
|
682
684
|
}), ct = m((e, n) => {
|
|
683
685
|
const { className: t, isSelected: o, onClick: r, item: i, id: a, ...l } = e;
|
|
684
|
-
|
|
685
|
-
const c =
|
|
686
|
-
return
|
|
686
|
+
u(l);
|
|
687
|
+
const c = X(null);
|
|
688
|
+
return Y(() => {
|
|
687
689
|
if (!c.current || !o)
|
|
688
690
|
return;
|
|
689
|
-
const
|
|
691
|
+
const d = K(
|
|
690
692
|
c.current,
|
|
691
693
|
document.querySelector(".bn-suggestion-menu, #ai-suggestion-menu")
|
|
692
694
|
// TODO
|
|
693
695
|
);
|
|
694
|
-
|
|
696
|
+
d === "top" ? c.current.scrollIntoView(!0) : d === "bottom" && c.current.scrollIntoView(!1);
|
|
695
697
|
}, [o]), /* @__PURE__ */ v(
|
|
696
698
|
h,
|
|
697
699
|
{
|
|
698
700
|
gap: 0,
|
|
699
701
|
className: t,
|
|
700
|
-
ref:
|
|
702
|
+
ref: j(n, c),
|
|
701
703
|
id: a,
|
|
702
704
|
role: "option",
|
|
703
|
-
onMouseDown: (
|
|
705
|
+
onMouseDown: (d) => d.preventDefault(),
|
|
704
706
|
onClick: r,
|
|
705
707
|
"aria-selected": o || void 0,
|
|
706
708
|
children: [
|
|
@@ -712,7 +714,7 @@ const ne = (e, n, t = !1) => {
|
|
|
712
714
|
children: i.icon
|
|
713
715
|
}
|
|
714
716
|
),
|
|
715
|
-
/* @__PURE__ */ v(
|
|
717
|
+
/* @__PURE__ */ v(L, { gap: 0, className: "bn-mt-suggestion-menu-item-body", children: [
|
|
716
718
|
/* @__PURE__ */ s(C, { className: "bn-mt-suggestion-menu-item-title", children: i.title }),
|
|
717
719
|
/* @__PURE__ */ s(C, { className: "bn-mt-suggestion-menu-item-subtitle", children: i.subtext })
|
|
718
720
|
] }),
|
|
@@ -721,21 +723,21 @@ const ne = (e, n, t = !1) => {
|
|
|
721
723
|
{
|
|
722
724
|
"data-position": "right",
|
|
723
725
|
className: "bn-mt-suggestion-menu-item-section",
|
|
724
|
-
children: /* @__PURE__ */ s(
|
|
726
|
+
children: /* @__PURE__ */ s(xe, { size: "xs", children: i.badge })
|
|
725
727
|
}
|
|
726
728
|
)
|
|
727
729
|
]
|
|
728
730
|
}
|
|
729
731
|
);
|
|
730
|
-
}), ut = m((e, n) => {
|
|
731
|
-
const { className: t, children: o, ...r } = e;
|
|
732
|
-
return d(r), /* @__PURE__ */ s(h, { className: t, ref: n, children: o });
|
|
733
732
|
}), dt = m((e, n) => {
|
|
733
|
+
const { className: t, children: o, ...r } = e;
|
|
734
|
+
return u(r), /* @__PURE__ */ s(h, { className: t, ref: n, children: o });
|
|
735
|
+
}), ut = m((e, n) => {
|
|
734
736
|
const { className: t, ...o } = e;
|
|
735
|
-
return
|
|
737
|
+
return u(o), /* @__PURE__ */ s(Z, { className: t, type: "dots", size: 16, ref: n });
|
|
736
738
|
}), mt = m((e, n) => {
|
|
737
739
|
const { className: t, children: o, id: r, columns: i, ...a } = e;
|
|
738
|
-
return
|
|
740
|
+
return u(a), /* @__PURE__ */ s(
|
|
739
741
|
"div",
|
|
740
742
|
{
|
|
741
743
|
className: t,
|
|
@@ -746,9 +748,9 @@ const ne = (e, n, t = !1) => {
|
|
|
746
748
|
children: o
|
|
747
749
|
}
|
|
748
750
|
);
|
|
749
|
-
}),
|
|
751
|
+
}), gt = m((e, n) => {
|
|
750
752
|
const { className: t, children: o, columns: r, ...i } = e;
|
|
751
|
-
return
|
|
753
|
+
return u(i), /* @__PURE__ */ s(
|
|
752
754
|
h,
|
|
753
755
|
{
|
|
754
756
|
className: t,
|
|
@@ -757,23 +759,23 @@ const ne = (e, n, t = !1) => {
|
|
|
757
759
|
children: /* @__PURE__ */ s(h, { className: "bn-mt-suggestion-menu-item-title", children: o })
|
|
758
760
|
}
|
|
759
761
|
);
|
|
760
|
-
}),
|
|
762
|
+
}), ft = m((e, n) => {
|
|
761
763
|
const { className: t, isSelected: o, onClick: r, item: i, id: a, ...l } = e;
|
|
762
|
-
|
|
763
|
-
const c =
|
|
764
|
-
return
|
|
764
|
+
u(l);
|
|
765
|
+
const c = X(null);
|
|
766
|
+
return Y(() => {
|
|
765
767
|
if (!c.current || !o)
|
|
766
768
|
return;
|
|
767
|
-
const
|
|
769
|
+
const d = K(
|
|
768
770
|
c.current,
|
|
769
771
|
document.querySelector(".bn-grid-suggestion-menu")
|
|
770
772
|
);
|
|
771
|
-
|
|
773
|
+
d === "top" ? c.current.scrollIntoView(!0) : d === "bottom" && c.current.scrollIntoView(!1);
|
|
772
774
|
}, [o]), /* @__PURE__ */ s(
|
|
773
775
|
"div",
|
|
774
776
|
{
|
|
775
777
|
className: t,
|
|
776
|
-
ref:
|
|
778
|
+
ref: j(n, c),
|
|
777
779
|
id: a,
|
|
778
780
|
role: "option",
|
|
779
781
|
onClick: r,
|
|
@@ -789,8 +791,8 @@ const ne = (e, n, t = !1) => {
|
|
|
789
791
|
columns: r,
|
|
790
792
|
...i
|
|
791
793
|
} = e;
|
|
792
|
-
return
|
|
793
|
-
|
|
794
|
+
return u(i), /* @__PURE__ */ s(
|
|
795
|
+
Z,
|
|
794
796
|
{
|
|
795
797
|
className: t,
|
|
796
798
|
style: { gridColumn: `1 / ${r + 1}` },
|
|
@@ -800,7 +802,7 @@ const ne = (e, n, t = !1) => {
|
|
|
800
802
|
);
|
|
801
803
|
}), ht = m((e, n) => {
|
|
802
804
|
const { children: t, className: o, onMouseDown: r, onClick: i, ...a } = e;
|
|
803
|
-
return
|
|
805
|
+
return u(a, !1), /* @__PURE__ */ s(
|
|
804
806
|
T,
|
|
805
807
|
{
|
|
806
808
|
className: o,
|
|
@@ -820,9 +822,9 @@ const ne = (e, n, t = !1) => {
|
|
|
820
822
|
onDragEnd: a,
|
|
821
823
|
style: l,
|
|
822
824
|
label: c,
|
|
823
|
-
...
|
|
825
|
+
...d
|
|
824
826
|
} = e;
|
|
825
|
-
return d
|
|
827
|
+
return u(d, !1), /* @__PURE__ */ s(
|
|
826
828
|
T,
|
|
827
829
|
{
|
|
828
830
|
className: t,
|
|
@@ -832,7 +834,7 @@ const ne = (e, n, t = !1) => {
|
|
|
832
834
|
onDragStart: i,
|
|
833
835
|
onDragEnd: a,
|
|
834
836
|
style: l,
|
|
835
|
-
...
|
|
837
|
+
...d,
|
|
836
838
|
children: o
|
|
837
839
|
}
|
|
838
840
|
);
|
|
@@ -846,10 +848,10 @@ const ne = (e, n, t = !1) => {
|
|
|
846
848
|
variant: a,
|
|
847
849
|
...l
|
|
848
850
|
} = e;
|
|
849
|
-
|
|
850
|
-
const { ref: c, focused:
|
|
851
|
+
u(l);
|
|
852
|
+
const { ref: c, focused: d } = Me(), f = Oe(d), b = j(n, c, f);
|
|
851
853
|
return /* @__PURE__ */ s(
|
|
852
|
-
|
|
854
|
+
Ce,
|
|
853
855
|
{
|
|
854
856
|
className: t,
|
|
855
857
|
ref: b,
|
|
@@ -862,13 +864,13 @@ const ne = (e, n, t = !1) => {
|
|
|
862
864
|
);
|
|
863
865
|
}
|
|
864
866
|
);
|
|
865
|
-
var
|
|
867
|
+
var ne = {
|
|
866
868
|
color: void 0,
|
|
867
869
|
size: void 0,
|
|
868
870
|
className: void 0,
|
|
869
871
|
style: void 0,
|
|
870
872
|
attr: void 0
|
|
871
|
-
},
|
|
873
|
+
}, _ = N.createContext && /* @__PURE__ */ N.createContext(ne), vt = ["attr", "size", "title"];
|
|
872
874
|
function St(e, n) {
|
|
873
875
|
if (e == null) return {};
|
|
874
876
|
var t = yt(e, n), o, r;
|
|
@@ -899,7 +901,7 @@ function F() {
|
|
|
899
901
|
return e;
|
|
900
902
|
}, F.apply(this, arguments);
|
|
901
903
|
}
|
|
902
|
-
function
|
|
904
|
+
function V(e, n) {
|
|
903
905
|
var t = Object.keys(e);
|
|
904
906
|
if (Object.getOwnPropertySymbols) {
|
|
905
907
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -912,9 +914,9 @@ function H(e, n) {
|
|
|
912
914
|
function M(e) {
|
|
913
915
|
for (var n = 1; n < arguments.length; n++) {
|
|
914
916
|
var t = arguments[n] != null ? arguments[n] : {};
|
|
915
|
-
n % 2 ?
|
|
917
|
+
n % 2 ? V(Object(t), !0).forEach(function(o) {
|
|
916
918
|
wt(e, o, t[o]);
|
|
917
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
919
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : V(Object(t)).forEach(function(o) {
|
|
918
920
|
Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(t, o));
|
|
919
921
|
});
|
|
920
922
|
}
|
|
@@ -937,15 +939,15 @@ function Ct(e, n) {
|
|
|
937
939
|
}
|
|
938
940
|
return (n === "string" ? String : Number)(e);
|
|
939
941
|
}
|
|
940
|
-
function
|
|
942
|
+
function oe(e) {
|
|
941
943
|
return e && e.map((n, t) => /* @__PURE__ */ N.createElement(n.tag, M({
|
|
942
944
|
key: t
|
|
943
|
-
}, n.attr),
|
|
945
|
+
}, n.attr), oe(n.child)));
|
|
944
946
|
}
|
|
945
947
|
function Nt(e) {
|
|
946
948
|
return (n) => /* @__PURE__ */ N.createElement(Tt, F({
|
|
947
949
|
attr: M({}, e.attr)
|
|
948
|
-
}, n),
|
|
950
|
+
}, n), oe(e.child));
|
|
949
951
|
}
|
|
950
952
|
function Tt(e) {
|
|
951
953
|
var n = (t) => {
|
|
@@ -968,14 +970,14 @@ function Tt(e) {
|
|
|
968
970
|
xmlns: "http://www.w3.org/2000/svg"
|
|
969
971
|
}), i && /* @__PURE__ */ N.createElement("title", null, i), e.children);
|
|
970
972
|
};
|
|
971
|
-
return
|
|
973
|
+
return _ !== void 0 ? /* @__PURE__ */ N.createElement(_.Consumer, null, (t) => n(t)) : n(ne);
|
|
972
974
|
}
|
|
973
|
-
function
|
|
975
|
+
function Pt(e) {
|
|
974
976
|
return Nt({ attr: { viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true" }, child: [{ tag: "path", attr: { fillRule: "evenodd", d: "M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z", clipRule: "evenodd" }, child: [] }] })(e);
|
|
975
977
|
}
|
|
976
978
|
const I = m((e, n) => {
|
|
977
979
|
const { className: t, items: o, isDisabled: r, ...i } = e;
|
|
978
|
-
|
|
980
|
+
u(i);
|
|
979
981
|
const a = o.filter((l) => l.isSelected)[0];
|
|
980
982
|
return a ? /* @__PURE__ */ v(
|
|
981
983
|
p,
|
|
@@ -994,7 +996,7 @@ const I = m((e, n) => {
|
|
|
994
996
|
R() && l.currentTarget.focus();
|
|
995
997
|
},
|
|
996
998
|
leftSection: a.icon,
|
|
997
|
-
rightSection: /* @__PURE__ */ s(
|
|
999
|
+
rightSection: /* @__PURE__ */ s(Pt, {}),
|
|
998
1000
|
size: "xs",
|
|
999
1001
|
variant: "subtle",
|
|
1000
1002
|
disabled: r,
|
|
@@ -1006,7 +1008,7 @@ const I = m((e, n) => {
|
|
|
1006
1008
|
{
|
|
1007
1009
|
onClick: l.onClick,
|
|
1008
1010
|
leftSection: l.icon,
|
|
1009
|
-
rightSection: l.isSelected ? /* @__PURE__ */ s(
|
|
1011
|
+
rightSection: l.isSelected ? /* @__PURE__ */ s(z, { size: 10, className: "bn-tick-icon" }) : (
|
|
1010
1012
|
// Ensures space for tick even if item isn't currently selected.
|
|
1011
1013
|
/* @__PURE__ */ s("div", { className: "bn-tick-space" })
|
|
1012
1014
|
),
|
|
@@ -1018,7 +1020,7 @@ const I = m((e, n) => {
|
|
|
1018
1020
|
]
|
|
1019
1021
|
}
|
|
1020
1022
|
) : null;
|
|
1021
|
-
}),
|
|
1023
|
+
}), kt = {
|
|
1022
1024
|
FormattingToolbar: {
|
|
1023
1025
|
Root: D,
|
|
1024
1026
|
Button: O,
|
|
@@ -1033,8 +1035,8 @@ const I = m((e, n) => {
|
|
|
1033
1035
|
},
|
|
1034
1036
|
GridSuggestionMenu: {
|
|
1035
1037
|
Root: mt,
|
|
1036
|
-
Item:
|
|
1037
|
-
EmptyItem:
|
|
1038
|
+
Item: ft,
|
|
1039
|
+
EmptyItem: gt,
|
|
1038
1040
|
Loader: bt
|
|
1039
1041
|
},
|
|
1040
1042
|
LinkToolbar: {
|
|
@@ -1050,8 +1052,8 @@ const I = m((e, n) => {
|
|
|
1050
1052
|
Root: at,
|
|
1051
1053
|
Item: ct,
|
|
1052
1054
|
EmptyItem: lt,
|
|
1053
|
-
Label:
|
|
1054
|
-
Loader:
|
|
1055
|
+
Label: dt,
|
|
1056
|
+
Loader: ut
|
|
1055
1057
|
},
|
|
1056
1058
|
TableHandle: {
|
|
1057
1059
|
Root: pt,
|
|
@@ -1060,7 +1062,7 @@ const I = m((e, n) => {
|
|
|
1060
1062
|
Generic: {
|
|
1061
1063
|
Badge: {
|
|
1062
1064
|
Root: Re,
|
|
1063
|
-
Group:
|
|
1065
|
+
Group: ze
|
|
1064
1066
|
},
|
|
1065
1067
|
Form: {
|
|
1066
1068
|
Root: (e) => /* @__PURE__ */ s("div", { children: e.children }),
|
|
@@ -1089,46 +1091,46 @@ const I = m((e, n) => {
|
|
|
1089
1091
|
Comments: {
|
|
1090
1092
|
Comment: $e,
|
|
1091
1093
|
Editor: Ae,
|
|
1092
|
-
Card:
|
|
1093
|
-
CardSection:
|
|
1094
|
-
ExpandSectionsPrompt:
|
|
1094
|
+
Card: Be,
|
|
1095
|
+
CardSection: Ee,
|
|
1096
|
+
ExpandSectionsPrompt: Le
|
|
1095
1097
|
}
|
|
1096
1098
|
}, Ft = (e) => {
|
|
1097
|
-
const { className: n, theme: t, ...o } = e, r =
|
|
1099
|
+
const { className: n, theme: t, ...o } = e, r = H(), i = ue(), a = (r == null ? void 0 : r.colorSchemePreference) || i, l = ke(
|
|
1098
1100
|
(b) => {
|
|
1099
1101
|
if (b && (Ie(b), typeof t == "object")) {
|
|
1100
1102
|
if ("light" in t && "dark" in t) {
|
|
1101
|
-
|
|
1103
|
+
A(
|
|
1102
1104
|
t[a === "dark" ? "dark" : "light"],
|
|
1103
1105
|
b
|
|
1104
1106
|
);
|
|
1105
1107
|
return;
|
|
1106
1108
|
}
|
|
1107
|
-
|
|
1109
|
+
A(t, b);
|
|
1108
1110
|
return;
|
|
1109
1111
|
}
|
|
1110
1112
|
},
|
|
1111
1113
|
[a, t]
|
|
1112
|
-
), c =
|
|
1114
|
+
), c = Q(Ne), d = typeof t == "string" ? t : a !== "no-preference" ? a : "light", f = /* @__PURE__ */ s(me.Provider, { value: kt, children: /* @__PURE__ */ s(
|
|
1113
1115
|
ge,
|
|
1114
1116
|
{
|
|
1115
|
-
"data-mantine-color-scheme":
|
|
1116
|
-
className:
|
|
1117
|
+
"data-mantine-color-scheme": d,
|
|
1118
|
+
className: B("bn-mantine", n || ""),
|
|
1117
1119
|
theme: typeof t == "object" ? void 0 : t,
|
|
1118
1120
|
...o,
|
|
1119
1121
|
ref: l
|
|
1120
1122
|
}
|
|
1121
1123
|
) });
|
|
1122
|
-
return c ?
|
|
1123
|
-
|
|
1124
|
+
return c ? f : /* @__PURE__ */ s(
|
|
1125
|
+
Te,
|
|
1124
1126
|
{
|
|
1125
1127
|
withCssVariables: !1,
|
|
1126
1128
|
getRootElement: () => {
|
|
1127
1129
|
},
|
|
1128
|
-
children:
|
|
1130
|
+
children: f
|
|
1129
1131
|
}
|
|
1130
1132
|
);
|
|
1131
|
-
},
|
|
1133
|
+
}, g = [
|
|
1132
1134
|
"#FFFFFF",
|
|
1133
1135
|
"#EFEFEF",
|
|
1134
1136
|
"#CFCFCF",
|
|
@@ -1139,80 +1141,80 @@ const I = m((e, n) => {
|
|
|
1139
1141
|
"#161616",
|
|
1140
1142
|
"#0F0F0F",
|
|
1141
1143
|
"#000000"
|
|
1142
|
-
],
|
|
1144
|
+
], G = {
|
|
1143
1145
|
colors: {
|
|
1144
1146
|
editor: {
|
|
1145
|
-
text:
|
|
1146
|
-
background:
|
|
1147
|
+
text: g[5],
|
|
1148
|
+
background: g[0]
|
|
1147
1149
|
},
|
|
1148
1150
|
menu: {
|
|
1149
|
-
text:
|
|
1150
|
-
background:
|
|
1151
|
+
text: g[5],
|
|
1152
|
+
background: g[0]
|
|
1151
1153
|
},
|
|
1152
1154
|
tooltip: {
|
|
1153
|
-
text:
|
|
1154
|
-
background:
|
|
1155
|
+
text: g[5],
|
|
1156
|
+
background: g[1]
|
|
1155
1157
|
},
|
|
1156
1158
|
hovered: {
|
|
1157
|
-
text:
|
|
1158
|
-
background:
|
|
1159
|
+
text: g[5],
|
|
1160
|
+
background: g[1]
|
|
1159
1161
|
},
|
|
1160
1162
|
selected: {
|
|
1161
|
-
text:
|
|
1162
|
-
background:
|
|
1163
|
+
text: g[0],
|
|
1164
|
+
background: g[5]
|
|
1163
1165
|
},
|
|
1164
1166
|
disabled: {
|
|
1165
|
-
text:
|
|
1166
|
-
background:
|
|
1167
|
+
text: g[3],
|
|
1168
|
+
background: g[1]
|
|
1167
1169
|
},
|
|
1168
|
-
shadow:
|
|
1169
|
-
border:
|
|
1170
|
-
sideMenu:
|
|
1171
|
-
highlights:
|
|
1170
|
+
shadow: g[2],
|
|
1171
|
+
border: g[1],
|
|
1172
|
+
sideMenu: g[2],
|
|
1173
|
+
highlights: re
|
|
1172
1174
|
},
|
|
1173
1175
|
borderRadius: 6,
|
|
1174
1176
|
fontFamily: '"Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Open Sans", "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif'
|
|
1175
|
-
},
|
|
1177
|
+
}, Bt = {
|
|
1176
1178
|
colors: {
|
|
1177
1179
|
editor: {
|
|
1178
|
-
text:
|
|
1179
|
-
background:
|
|
1180
|
+
text: g[2],
|
|
1181
|
+
background: g[6]
|
|
1180
1182
|
},
|
|
1181
1183
|
menu: {
|
|
1182
|
-
text:
|
|
1183
|
-
background:
|
|
1184
|
+
text: g[2],
|
|
1185
|
+
background: g[6]
|
|
1184
1186
|
},
|
|
1185
1187
|
tooltip: {
|
|
1186
|
-
text:
|
|
1187
|
-
background:
|
|
1188
|
+
text: g[2],
|
|
1189
|
+
background: g[7]
|
|
1188
1190
|
},
|
|
1189
1191
|
hovered: {
|
|
1190
|
-
text:
|
|
1191
|
-
background:
|
|
1192
|
+
text: g[2],
|
|
1193
|
+
background: g[7]
|
|
1192
1194
|
},
|
|
1193
1195
|
selected: {
|
|
1194
|
-
text:
|
|
1195
|
-
background:
|
|
1196
|
+
text: g[2],
|
|
1197
|
+
background: g[8]
|
|
1196
1198
|
},
|
|
1197
1199
|
disabled: {
|
|
1198
|
-
text:
|
|
1199
|
-
background:
|
|
1200
|
+
text: g[5],
|
|
1201
|
+
background: g[7]
|
|
1200
1202
|
},
|
|
1201
|
-
shadow:
|
|
1202
|
-
border:
|
|
1203
|
-
sideMenu:
|
|
1204
|
-
highlights:
|
|
1203
|
+
shadow: g[8],
|
|
1204
|
+
border: g[7],
|
|
1205
|
+
sideMenu: g[4],
|
|
1206
|
+
highlights: se
|
|
1205
1207
|
},
|
|
1206
|
-
borderRadius:
|
|
1207
|
-
fontFamily:
|
|
1208
|
+
borderRadius: G.borderRadius,
|
|
1209
|
+
fontFamily: G.fontFamily
|
|
1208
1210
|
};
|
|
1209
1211
|
export {
|
|
1210
1212
|
Ft as BlockNoteView,
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1213
|
+
A as applyBlockNoteCSSVariablesFromTheme,
|
|
1214
|
+
kt as components,
|
|
1215
|
+
Bt as darkDefaultTheme,
|
|
1216
|
+
g as defaultColorScheme,
|
|
1217
|
+
G as lightDefaultTheme,
|
|
1216
1218
|
Ie as removeBlockNoteCSSVariables
|
|
1217
1219
|
};
|
|
1218
1220
|
//# sourceMappingURL=blocknote-mantine.js.map
|