@blocknote/mantine 0.46.2 → 0.47.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 +267 -267
- package/dist/blocknote-mantine.js.map +1 -1
- package/dist/webpack-stats.json +1 -1
- package/package.json +3 -3
- package/src/form/TextInput.tsx +2 -0
- package/src/suggestionMenu/SuggestionMenuItem.tsx +2 -4
- package/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuItem.tsx +3 -4
- package/types/src/form/TextInput.d.ts +4 -2
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { jsx as s, jsxs as v } from "react/jsx-runtime";
|
|
2
|
-
import { assertEmpty as u, isSafari as R, mergeCSSClasses as B, COLORS_DEFAULT as
|
|
3
|
-
import { mergeRefs as ie, useDictionary as
|
|
4
|
-
import { Button as T, ActionIcon as E, Tooltip as U, Stack as L, Text as C, Group as b, Chip as
|
|
5
|
-
import N, { forwardRef as m, useState as J, useContext as Q, createContext as Pe, useRef as X, useEffect as Y, useCallback as
|
|
6
|
-
import { useHover as
|
|
2
|
+
import { assertEmpty as u, isSafari as R, mergeCSSClasses as B, COLORS_DEFAULT as se, COLORS_DARK_MODE_DEFAULT as ae } from "@blocknote/core";
|
|
3
|
+
import { mergeRefs as ie, useDictionary as le, useBlockNoteContext as V, FormattingToolbarController as ce, getFormattingToolbarItems as de, FormattingToolbar as ue, elementOverflow as K, usePrefersColorScheme as me, ComponentsContext as ge, BlockNoteViewRaw as fe } from "@blocknote/react";
|
|
4
|
+
import { Button as T, ActionIcon as E, Tooltip as U, Stack as L, Text as C, Group as b, Chip as he, Divider as be, Card as W, Skeleton as $, Avatar as pe, TextInput as Z, Menu as p, CheckIcon as z, Tabs as P, LoadingOverlay as ve, FileInput as Se, PopoverDropdown as ye, PopoverTarget as we, Popover as xe, Badge as Ce, Loader as q, Flex as Ne, MantineContext as Te, MantineProvider as ke } 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 Fe } from "react";
|
|
6
|
+
import { useHover as Me, mergeRefs as j, useFocusWithin as Oe, useFocusTrap as De } from "@mantine/hooks";
|
|
7
7
|
const ee = (e, n, t = !1) => {
|
|
8
8
|
const o = [];
|
|
9
|
-
function r(
|
|
10
|
-
for (const l in
|
|
11
|
-
const c = l.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(), d = `${
|
|
12
|
-
typeof
|
|
9
|
+
function r(a, i = "--bn") {
|
|
10
|
+
for (const l in a) {
|
|
11
|
+
const c = l.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(), d = `${i}-${c}`;
|
|
12
|
+
typeof a[l] != "object" ? (typeof a[l] == "number" && (a[l] = `${a[l]}px`), t ? n.style.removeProperty(d) : n.style.setProperty(d, a[l].toString())) : r(a[l], d);
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
return r(e), o;
|
|
16
|
-
}, A = (e, n) => ee(e, n),
|
|
16
|
+
}, A = (e, n) => ee(e, n), Ie = {
|
|
17
17
|
colors: {
|
|
18
18
|
editor: {
|
|
19
19
|
text: void 0,
|
|
@@ -83,7 +83,7 @@ const ee = (e, n, t = !1) => {
|
|
|
83
83
|
},
|
|
84
84
|
borderRadius: void 0,
|
|
85
85
|
fontFamily: void 0
|
|
86
|
-
},
|
|
86
|
+
}, Re = (e) => ee(Ie, 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(
|
|
@@ -92,8 +92,8 @@ const ee = (e, n, t = !1) => {
|
|
|
92
92
|
className: t,
|
|
93
93
|
children: o,
|
|
94
94
|
mainTooltip: r,
|
|
95
|
-
secondaryTooltip:
|
|
96
|
-
icon:
|
|
95
|
+
secondaryTooltip: a,
|
|
96
|
+
icon: i,
|
|
97
97
|
isSelected: l,
|
|
98
98
|
isDisabled: c,
|
|
99
99
|
onClick: d,
|
|
@@ -102,7 +102,7 @@ const ee = (e, n, t = !1) => {
|
|
|
102
102
|
...S
|
|
103
103
|
} = e;
|
|
104
104
|
u(S, !1);
|
|
105
|
-
const [x, y] = J(!1),
|
|
105
|
+
const [x, y] = J(!1), k = o ? /* @__PURE__ */ s(
|
|
106
106
|
T,
|
|
107
107
|
{
|
|
108
108
|
"aria-label": f,
|
|
@@ -142,7 +142,7 @@ const ee = (e, n, t = !1) => {
|
|
|
142
142
|
disabled: c || !1,
|
|
143
143
|
ref: n,
|
|
144
144
|
...S,
|
|
145
|
-
children:
|
|
145
|
+
children: i
|
|
146
146
|
}
|
|
147
147
|
);
|
|
148
148
|
return r ? /* @__PURE__ */ s(
|
|
@@ -154,20 +154,20 @@ const ee = (e, n, t = !1) => {
|
|
|
154
154
|
te,
|
|
155
155
|
{
|
|
156
156
|
mainTooltip: r,
|
|
157
|
-
secondaryTooltip:
|
|
157
|
+
secondaryTooltip: a
|
|
158
158
|
}
|
|
159
159
|
),
|
|
160
|
-
children:
|
|
160
|
+
children: k
|
|
161
161
|
}
|
|
162
|
-
) :
|
|
162
|
+
) : k;
|
|
163
163
|
}
|
|
164
|
-
),
|
|
164
|
+
), ze = m((e, n) => {
|
|
165
165
|
const {
|
|
166
166
|
className: t,
|
|
167
167
|
text: o,
|
|
168
168
|
icon: r,
|
|
169
|
-
isSelected:
|
|
170
|
-
mainTooltip:
|
|
169
|
+
isSelected: a,
|
|
170
|
+
mainTooltip: i,
|
|
171
171
|
secondaryTooltip: l,
|
|
172
172
|
onClick: c,
|
|
173
173
|
onMouseEnter: d,
|
|
@@ -175,10 +175,10 @@ const ee = (e, n, t = !1) => {
|
|
|
175
175
|
} = e;
|
|
176
176
|
u(f, !1);
|
|
177
177
|
const [h, S] = J(!1), x = /* @__PURE__ */ v(
|
|
178
|
-
|
|
178
|
+
he,
|
|
179
179
|
{
|
|
180
180
|
className: t,
|
|
181
|
-
checked:
|
|
181
|
+
checked: a === !0,
|
|
182
182
|
wrapperProps: {
|
|
183
183
|
onMouseEnter: d,
|
|
184
184
|
onMouseLeave: () => S(!1),
|
|
@@ -195,7 +195,7 @@ const ee = (e, n, t = !1) => {
|
|
|
195
195
|
]
|
|
196
196
|
}
|
|
197
197
|
);
|
|
198
|
-
return !
|
|
198
|
+
return !i || h ? x : /* @__PURE__ */ s(
|
|
199
199
|
U,
|
|
200
200
|
{
|
|
201
201
|
refProp: "rootRef",
|
|
@@ -203,23 +203,23 @@ const ee = (e, n, t = !1) => {
|
|
|
203
203
|
label: /* @__PURE__ */ s(
|
|
204
204
|
te,
|
|
205
205
|
{
|
|
206
|
-
mainTooltip:
|
|
206
|
+
mainTooltip: i,
|
|
207
207
|
secondaryTooltip: l
|
|
208
208
|
}
|
|
209
209
|
),
|
|
210
210
|
children: x
|
|
211
211
|
}
|
|
212
212
|
);
|
|
213
|
-
}),
|
|
213
|
+
}), Be = m((e, n) => {
|
|
214
214
|
const { className: t, children: o, ...r } = e;
|
|
215
215
|
return u(r), /* @__PURE__ */ s(b, { className: t, ref: n, children: o });
|
|
216
|
-
}),
|
|
216
|
+
}), Ee = m((e, n) => {
|
|
217
217
|
const {
|
|
218
218
|
className: t,
|
|
219
219
|
children: o,
|
|
220
220
|
headerText: r,
|
|
221
|
-
selected:
|
|
222
|
-
onFocus:
|
|
221
|
+
selected: a,
|
|
222
|
+
onFocus: i,
|
|
223
223
|
onBlur: l,
|
|
224
224
|
tabIndex: c,
|
|
225
225
|
...d
|
|
@@ -227,8 +227,8 @@ const ee = (e, n, t = !1) => {
|
|
|
227
227
|
return u(d, !1), /* @__PURE__ */ v(
|
|
228
228
|
W,
|
|
229
229
|
{
|
|
230
|
-
className: B(t,
|
|
231
|
-
onFocus:
|
|
230
|
+
className: B(t, a ? "selected" : ""),
|
|
231
|
+
onFocus: i,
|
|
232
232
|
onBlur: l,
|
|
233
233
|
tabIndex: c,
|
|
234
234
|
ref: n,
|
|
@@ -238,27 +238,27 @@ const ee = (e, n, t = !1) => {
|
|
|
238
238
|
]
|
|
239
239
|
}
|
|
240
240
|
);
|
|
241
|
-
}),
|
|
241
|
+
}), Le = m((e, n) => {
|
|
242
242
|
const { className: t, children: o, ...r } = e;
|
|
243
243
|
return u(r, !1), /* @__PURE__ */ s(W.Section, { className: t, ref: n, children: o });
|
|
244
|
-
}),
|
|
244
|
+
}), je = m((e, n) => {
|
|
245
245
|
const { className: t, children: o, ...r } = e;
|
|
246
246
|
return u(r, !1), /* @__PURE__ */ s(
|
|
247
|
-
|
|
247
|
+
be,
|
|
248
248
|
{
|
|
249
249
|
className: t,
|
|
250
250
|
label: /* @__PURE__ */ s(C, { children: o }),
|
|
251
251
|
ref: n
|
|
252
252
|
}
|
|
253
253
|
);
|
|
254
|
-
}),
|
|
255
|
-
const { authorInfo: t, timeString: o, edited: r, ...
|
|
256
|
-
return u(
|
|
254
|
+
}), $e = m((e, n) => {
|
|
255
|
+
const { authorInfo: t, timeString: o, edited: r, ...a } = e, i = le();
|
|
256
|
+
return u(a, !1), t === "loading" ? /* @__PURE__ */ v(b, { children: [
|
|
257
257
|
/* @__PURE__ */ s($, { height: 24, width: 24 }),
|
|
258
258
|
/* @__PURE__ */ s("div", { children: /* @__PURE__ */ s($, { height: 12, width: 100 }) })
|
|
259
259
|
] }) : /* @__PURE__ */ v(b, { children: [
|
|
260
260
|
/* @__PURE__ */ s(
|
|
261
|
-
|
|
261
|
+
pe,
|
|
262
262
|
{
|
|
263
263
|
src: t.avatarUrl,
|
|
264
264
|
alt: t.username,
|
|
@@ -272,22 +272,22 @@ const ee = (e, n, t = !1) => {
|
|
|
272
272
|
/* @__PURE__ */ v(C, { fz: "xs", c: "dimmed", span: !0, ml: "xs", children: [
|
|
273
273
|
o,
|
|
274
274
|
" ",
|
|
275
|
-
r && `(${
|
|
275
|
+
r && `(${i.comments.edited})`
|
|
276
276
|
] })
|
|
277
277
|
] })
|
|
278
278
|
] });
|
|
279
|
-
}),
|
|
279
|
+
}), Ae = m((e, n) => {
|
|
280
280
|
const {
|
|
281
281
|
className: t,
|
|
282
282
|
showActions: o,
|
|
283
283
|
authorInfo: r,
|
|
284
|
-
timeString:
|
|
285
|
-
edited:
|
|
284
|
+
timeString: a,
|
|
285
|
+
edited: i,
|
|
286
286
|
actions: l,
|
|
287
287
|
emojiPickerOpen: c,
|
|
288
288
|
children: d,
|
|
289
289
|
...f
|
|
290
|
-
} = e, { hovered: h, ref: S } =
|
|
290
|
+
} = e, { hovered: h, ref: S } = Me(), x = ie([n, S]);
|
|
291
291
|
return u(f, !1), /* @__PURE__ */ v(b, { pos: "relative", ref: x, className: t, children: [
|
|
292
292
|
l && (o === !0 || o === void 0 || o === "hover" && h || c) ? /* @__PURE__ */ s(
|
|
293
293
|
b,
|
|
@@ -301,15 +301,15 @@ const ee = (e, n, t = !1) => {
|
|
|
301
301
|
children: l
|
|
302
302
|
}
|
|
303
303
|
) : null,
|
|
304
|
-
/* @__PURE__ */ s(
|
|
304
|
+
/* @__PURE__ */ s($e, { ...e }),
|
|
305
305
|
d
|
|
306
306
|
] });
|
|
307
|
-
}),
|
|
308
|
-
const { className: t, autoFocus: o, onFocus: r, onBlur:
|
|
307
|
+
}), _e = m((e, n) => {
|
|
308
|
+
const { className: t, autoFocus: o, onFocus: r, onBlur: a, editor: i, editable: l, ...c } = e;
|
|
309
309
|
u(c, !1);
|
|
310
|
-
const d =
|
|
310
|
+
const d = V();
|
|
311
311
|
return /* @__PURE__ */ s(
|
|
312
|
-
|
|
312
|
+
Mt,
|
|
313
313
|
{
|
|
314
314
|
autoFocus: o,
|
|
315
315
|
className: t,
|
|
@@ -323,27 +323,27 @@ const ee = (e, n, t = !1) => {
|
|
|
323
323
|
theme: d == null ? void 0 : d.colorSchemePreference,
|
|
324
324
|
ref: n,
|
|
325
325
|
onFocus: r,
|
|
326
|
-
onBlur:
|
|
326
|
+
onBlur: a,
|
|
327
327
|
children: /* @__PURE__ */ s(
|
|
328
|
-
|
|
328
|
+
ce,
|
|
329
329
|
{
|
|
330
|
-
formattingToolbar:
|
|
330
|
+
formattingToolbar: Ge
|
|
331
331
|
}
|
|
332
332
|
)
|
|
333
333
|
}
|
|
334
334
|
);
|
|
335
|
-
}),
|
|
336
|
-
const e =
|
|
335
|
+
}), Ge = () => {
|
|
336
|
+
const e = de([]).filter(
|
|
337
337
|
(n) => n.key !== "nestBlockButton" && n.key !== "unnestBlockButton"
|
|
338
338
|
);
|
|
339
|
-
return /* @__PURE__ */ s(
|
|
340
|
-
},
|
|
339
|
+
return /* @__PURE__ */ s(ue, { blockTypeSelectItems: [], children: e });
|
|
340
|
+
}, He = m((e, n) => {
|
|
341
341
|
const {
|
|
342
342
|
className: t,
|
|
343
343
|
name: o,
|
|
344
344
|
label: r,
|
|
345
|
-
variant:
|
|
346
|
-
icon:
|
|
345
|
+
variant: a,
|
|
346
|
+
icon: i,
|
|
347
347
|
value: l,
|
|
348
348
|
autoFocus: c,
|
|
349
349
|
placeholder: d,
|
|
@@ -352,36 +352,38 @@ const ee = (e, n, t = !1) => {
|
|
|
352
352
|
onChange: S,
|
|
353
353
|
onSubmit: x,
|
|
354
354
|
autoComplete: y,
|
|
355
|
-
|
|
356
|
-
|
|
355
|
+
"aria-activedescendant": k,
|
|
356
|
+
rightSection: w,
|
|
357
|
+
...re
|
|
357
358
|
} = e;
|
|
358
|
-
return u(
|
|
359
|
+
return u(re), /* @__PURE__ */ s(
|
|
359
360
|
Z,
|
|
360
361
|
{
|
|
361
362
|
size: "xs",
|
|
362
363
|
className: B(
|
|
363
364
|
t || "",
|
|
364
|
-
|
|
365
|
+
a === "large" ? "bn-mt-input-large" : ""
|
|
365
366
|
),
|
|
366
367
|
ref: n,
|
|
367
368
|
name: o,
|
|
368
369
|
label: r,
|
|
369
|
-
leftSection:
|
|
370
|
+
leftSection: i,
|
|
370
371
|
value: l,
|
|
371
372
|
autoFocus: c,
|
|
372
373
|
"data-autofocus": c ? "true" : void 0,
|
|
373
|
-
rightSection:
|
|
374
|
+
rightSection: w,
|
|
374
375
|
placeholder: d,
|
|
375
376
|
disabled: f,
|
|
376
377
|
onKeyDown: h,
|
|
377
378
|
onChange: S,
|
|
378
379
|
onSubmit: x,
|
|
379
|
-
autoComplete: y
|
|
380
|
+
autoComplete: y,
|
|
381
|
+
"aria-activedescendant": k
|
|
380
382
|
}
|
|
381
383
|
);
|
|
382
|
-
}),
|
|
383
|
-
const { children: n, onOpenChange: t, position: o, sub: r, ...
|
|
384
|
-
return u(
|
|
384
|
+
}), Ve = Pe(void 0), Ke = (e) => {
|
|
385
|
+
const { children: n, onOpenChange: t, position: o, sub: r, ...a } = e;
|
|
386
|
+
return u(a), r ? /* @__PURE__ */ s(
|
|
385
387
|
p.Sub,
|
|
386
388
|
{
|
|
387
389
|
transitionProps: { duration: 250, exitDelay: 250 },
|
|
@@ -402,15 +404,15 @@ const ee = (e, n, t = !1) => {
|
|
|
402
404
|
children: n
|
|
403
405
|
}
|
|
404
406
|
);
|
|
405
|
-
},
|
|
406
|
-
const { className: t, children: o, icon: r, checked:
|
|
407
|
-
return u(c, !1),
|
|
407
|
+
}, Ue = m((e, n) => {
|
|
408
|
+
const { className: t, children: o, icon: r, checked: a, subTrigger: i, onClick: l, ...c } = e;
|
|
409
|
+
return u(c, !1), i ? /* @__PURE__ */ s(
|
|
408
410
|
p.Sub.Item,
|
|
409
411
|
{
|
|
410
412
|
className: t,
|
|
411
413
|
ref: n,
|
|
412
414
|
leftSection: r,
|
|
413
|
-
rightSection:
|
|
415
|
+
rightSection: a ? /* @__PURE__ */ s(z, { size: 10 }) : a === !1 ? /* @__PURE__ */ s("div", { className: "bn-tick-space" }) : null,
|
|
414
416
|
onClick: l,
|
|
415
417
|
...c,
|
|
416
418
|
children: o
|
|
@@ -421,13 +423,13 @@ const ee = (e, n, t = !1) => {
|
|
|
421
423
|
className: t,
|
|
422
424
|
ref: n,
|
|
423
425
|
leftSection: r,
|
|
424
|
-
rightSection:
|
|
426
|
+
rightSection: a ? /* @__PURE__ */ s(z, { size: 10 }) : a === !1 ? /* @__PURE__ */ s("div", { className: "bn-tick-space" }) : null,
|
|
425
427
|
onClick: l,
|
|
426
428
|
...c,
|
|
427
429
|
children: o
|
|
428
430
|
}
|
|
429
431
|
);
|
|
430
|
-
}),
|
|
432
|
+
}), We = (e) => {
|
|
431
433
|
const {
|
|
432
434
|
children: n,
|
|
433
435
|
sub: t,
|
|
@@ -435,23 +437,23 @@ const ee = (e, n, t = !1) => {
|
|
|
435
437
|
...o
|
|
436
438
|
} = e;
|
|
437
439
|
return u(o), t ? /* @__PURE__ */ s(p.Sub.Target, { children: n }) : /* @__PURE__ */ s(p.Target, { children: n });
|
|
438
|
-
},
|
|
440
|
+
}, Ze = m((e, n) => {
|
|
439
441
|
const {
|
|
440
442
|
className: t,
|
|
441
443
|
children: o,
|
|
442
444
|
sub: r,
|
|
443
445
|
//unused
|
|
444
|
-
...
|
|
446
|
+
...a
|
|
445
447
|
} = e;
|
|
446
|
-
u(
|
|
447
|
-
const
|
|
448
|
+
u(a);
|
|
449
|
+
const i = Q(Ve);
|
|
448
450
|
return r ? /* @__PURE__ */ s(
|
|
449
451
|
p.Sub.Dropdown,
|
|
450
452
|
{
|
|
451
453
|
className: t,
|
|
452
454
|
ref: n,
|
|
453
|
-
onMouseOver:
|
|
454
|
-
onMouseLeave:
|
|
455
|
+
onMouseOver: i == null ? void 0 : i.onMenuMouseOver,
|
|
456
|
+
onMouseLeave: i == null ? void 0 : i.onMenuMouseLeave,
|
|
455
457
|
children: o
|
|
456
458
|
}
|
|
457
459
|
) : /* @__PURE__ */ s(
|
|
@@ -459,24 +461,24 @@ const ee = (e, n, t = !1) => {
|
|
|
459
461
|
{
|
|
460
462
|
className: t,
|
|
461
463
|
ref: n,
|
|
462
|
-
onMouseOver:
|
|
463
|
-
onMouseLeave:
|
|
464
|
+
onMouseOver: i == null ? void 0 : i.onMenuMouseOver,
|
|
465
|
+
onMouseLeave: i == null ? void 0 : i.onMenuMouseLeave,
|
|
464
466
|
children: o
|
|
465
467
|
}
|
|
466
468
|
);
|
|
467
|
-
}),
|
|
469
|
+
}), qe = m((e, n) => {
|
|
468
470
|
const { className: t, ...o } = e;
|
|
469
471
|
return u(o), /* @__PURE__ */ s(p.Divider, { className: t, ref: n });
|
|
470
|
-
}),
|
|
472
|
+
}), Je = m((e, n) => {
|
|
471
473
|
const { className: t, children: o, ...r } = e;
|
|
472
474
|
return u(r), /* @__PURE__ */ s(p.Label, { className: t, ref: n, children: o });
|
|
473
|
-
}),
|
|
475
|
+
}), Qe = m((e, n) => {
|
|
474
476
|
const {
|
|
475
477
|
className: t,
|
|
476
478
|
children: o,
|
|
477
479
|
icon: r,
|
|
478
|
-
onClick:
|
|
479
|
-
onDragEnd:
|
|
480
|
+
onClick: a,
|
|
481
|
+
onDragEnd: i,
|
|
480
482
|
onDragStart: l,
|
|
481
483
|
draggable: c,
|
|
482
484
|
label: d,
|
|
@@ -488,8 +490,8 @@ const ee = (e, n, t = !1) => {
|
|
|
488
490
|
size: 24,
|
|
489
491
|
className: t,
|
|
490
492
|
ref: n,
|
|
491
|
-
onClick:
|
|
492
|
-
onDragEnd:
|
|
493
|
+
onClick: a,
|
|
494
|
+
onDragEnd: i,
|
|
493
495
|
onDragStart: l,
|
|
494
496
|
draggable: c,
|
|
495
497
|
"aria-label": d,
|
|
@@ -501,8 +503,8 @@ const ee = (e, n, t = !1) => {
|
|
|
501
503
|
{
|
|
502
504
|
className: t,
|
|
503
505
|
ref: n,
|
|
504
|
-
onClick:
|
|
505
|
-
onDragEnd:
|
|
506
|
+
onClick: a,
|
|
507
|
+
onDragEnd: i,
|
|
506
508
|
onDragStart: l,
|
|
507
509
|
draggable: c,
|
|
508
510
|
"aria-label": d,
|
|
@@ -510,26 +512,26 @@ const ee = (e, n, t = !1) => {
|
|
|
510
512
|
children: o
|
|
511
513
|
}
|
|
512
514
|
);
|
|
513
|
-
}),
|
|
515
|
+
}), Xe = m((e, n) => {
|
|
514
516
|
const {
|
|
515
517
|
className: t,
|
|
516
518
|
tabs: o,
|
|
517
519
|
defaultOpenTab: r,
|
|
518
|
-
openTab:
|
|
519
|
-
setOpenTab:
|
|
520
|
+
openTab: a,
|
|
521
|
+
setOpenTab: i,
|
|
520
522
|
loading: l,
|
|
521
523
|
...c
|
|
522
524
|
} = e;
|
|
523
525
|
return u(c), /* @__PURE__ */ s(b, { className: t, ref: n, children: /* @__PURE__ */ v(
|
|
524
|
-
|
|
526
|
+
P,
|
|
525
527
|
{
|
|
526
|
-
value:
|
|
528
|
+
value: a,
|
|
527
529
|
defaultValue: r,
|
|
528
|
-
onChange:
|
|
530
|
+
onChange: i,
|
|
529
531
|
children: [
|
|
530
|
-
l && /* @__PURE__ */ s(
|
|
531
|
-
/* @__PURE__ */ s(
|
|
532
|
-
|
|
532
|
+
l && /* @__PURE__ */ s(ve, { visible: l }),
|
|
533
|
+
/* @__PURE__ */ s(P.List, { children: o.map((d) => /* @__PURE__ */ s(
|
|
534
|
+
P.Tab,
|
|
533
535
|
{
|
|
534
536
|
"data-test": `${d.name.toLowerCase()}-tab`,
|
|
535
537
|
value: d.name,
|
|
@@ -537,44 +539,44 @@ const ee = (e, n, t = !1) => {
|
|
|
537
539
|
},
|
|
538
540
|
d.name
|
|
539
541
|
)) }),
|
|
540
|
-
o.map((d) => /* @__PURE__ */ s(
|
|
542
|
+
o.map((d) => /* @__PURE__ */ s(P.Panel, { value: d.name, children: d.tabPanel }, d.name))
|
|
541
543
|
]
|
|
542
544
|
}
|
|
543
545
|
) });
|
|
544
|
-
}),
|
|
545
|
-
const { className: t, children: o, onClick: r, label:
|
|
546
|
-
return u(
|
|
546
|
+
}), Ye = m((e, n) => {
|
|
547
|
+
const { className: t, children: o, onClick: r, label: a, ...i } = e;
|
|
548
|
+
return u(i), /* @__PURE__ */ s(
|
|
547
549
|
T,
|
|
548
550
|
{
|
|
549
551
|
size: "xs",
|
|
550
|
-
"aria-label":
|
|
552
|
+
"aria-label": a,
|
|
551
553
|
className: t,
|
|
552
554
|
ref: n,
|
|
553
555
|
onClick: r,
|
|
554
|
-
...
|
|
556
|
+
...i,
|
|
555
557
|
children: o
|
|
556
558
|
}
|
|
557
559
|
);
|
|
558
|
-
}),
|
|
559
|
-
const { className: t, accept: o, value: r, placeholder:
|
|
560
|
+
}), et = m((e, n) => {
|
|
561
|
+
const { className: t, accept: o, value: r, placeholder: a, onChange: i, ...l } = e;
|
|
560
562
|
return u(l), /* @__PURE__ */ s(
|
|
561
|
-
|
|
563
|
+
Se,
|
|
562
564
|
{
|
|
563
565
|
size: "xs",
|
|
564
566
|
className: t,
|
|
565
567
|
ref: n,
|
|
566
568
|
accept: o,
|
|
567
569
|
value: r,
|
|
568
|
-
placeholder:
|
|
569
|
-
onChange:
|
|
570
|
+
placeholder: a,
|
|
571
|
+
onChange: i,
|
|
570
572
|
...l
|
|
571
573
|
}
|
|
572
574
|
);
|
|
573
|
-
}),
|
|
575
|
+
}), tt = m((e, n) => {
|
|
574
576
|
const { className: t, children: o, ...r } = e;
|
|
575
577
|
return u(r), /* @__PURE__ */ s("div", { className: t, ref: n, children: o });
|
|
576
|
-
}),
|
|
577
|
-
const { className: t, value: o, placeholder: r, onKeyDown:
|
|
578
|
+
}), nt = m((e, n) => {
|
|
579
|
+
const { className: t, value: o, placeholder: r, onKeyDown: a, onChange: i, ...l } = e;
|
|
578
580
|
return u(l), /* @__PURE__ */ s(
|
|
579
581
|
Z,
|
|
580
582
|
{
|
|
@@ -584,14 +586,14 @@ const ee = (e, n, t = !1) => {
|
|
|
584
586
|
ref: n,
|
|
585
587
|
value: o,
|
|
586
588
|
placeholder: r,
|
|
587
|
-
onKeyDown:
|
|
588
|
-
onChange:
|
|
589
|
+
onKeyDown: a,
|
|
590
|
+
onChange: i
|
|
589
591
|
}
|
|
590
592
|
);
|
|
591
|
-
}),
|
|
592
|
-
const { open: n, onOpenChange: t, position: o, children: r, ...
|
|
593
|
-
return u(
|
|
594
|
-
|
|
593
|
+
}), ot = (e) => {
|
|
594
|
+
const { open: n, onOpenChange: t, position: o, children: r, ...a } = e;
|
|
595
|
+
return u(a), /* @__PURE__ */ s(
|
|
596
|
+
xe,
|
|
595
597
|
{
|
|
596
598
|
middlewares: { size: { padding: 20 } },
|
|
597
599
|
withinPortal: !1,
|
|
@@ -602,19 +604,19 @@ const ee = (e, n, t = !1) => {
|
|
|
602
604
|
children: r
|
|
603
605
|
}
|
|
604
606
|
);
|
|
605
|
-
},
|
|
607
|
+
}, rt = (e) => {
|
|
606
608
|
const { children: n, ...t } = e;
|
|
607
|
-
return u(t), /* @__PURE__ */ s(
|
|
608
|
-
},
|
|
609
|
+
return u(t), /* @__PURE__ */ s(we, { children: n });
|
|
610
|
+
}, st = m((e, n) => {
|
|
609
611
|
const {
|
|
610
612
|
className: t,
|
|
611
613
|
children: o,
|
|
612
614
|
variant: r,
|
|
613
615
|
// unused
|
|
614
|
-
...
|
|
616
|
+
...a
|
|
615
617
|
} = e;
|
|
616
|
-
return u(
|
|
617
|
-
}),
|
|
618
|
+
return u(a), /* @__PURE__ */ s(ye, { className: t, ref: n, children: o });
|
|
619
|
+
}), at = m((e, n) => {
|
|
618
620
|
const { className: t, children: o, ...r } = e;
|
|
619
621
|
return u(r, !1), /* @__PURE__ */ s(
|
|
620
622
|
b,
|
|
@@ -632,8 +634,8 @@ const ee = (e, n, t = !1) => {
|
|
|
632
634
|
className: t,
|
|
633
635
|
children: o,
|
|
634
636
|
icon: r,
|
|
635
|
-
onClick:
|
|
636
|
-
onDragEnd:
|
|
637
|
+
onClick: a,
|
|
638
|
+
onDragEnd: i,
|
|
637
639
|
onDragStart: l,
|
|
638
640
|
draggable: c,
|
|
639
641
|
label: d,
|
|
@@ -645,8 +647,8 @@ const ee = (e, n, t = !1) => {
|
|
|
645
647
|
size: 24,
|
|
646
648
|
className: t,
|
|
647
649
|
ref: n,
|
|
648
|
-
onClick:
|
|
649
|
-
onDragEnd:
|
|
650
|
+
onClick: a,
|
|
651
|
+
onDragEnd: i,
|
|
650
652
|
onDragStart: l,
|
|
651
653
|
draggable: c,
|
|
652
654
|
"aria-label": d,
|
|
@@ -658,8 +660,8 @@ const ee = (e, n, t = !1) => {
|
|
|
658
660
|
{
|
|
659
661
|
className: t,
|
|
660
662
|
ref: n,
|
|
661
|
-
onClick:
|
|
662
|
-
onDragEnd:
|
|
663
|
+
onClick: a,
|
|
664
|
+
onDragEnd: i,
|
|
663
665
|
onDragStart: l,
|
|
664
666
|
draggable: c,
|
|
665
667
|
"aria-label": d,
|
|
@@ -667,9 +669,9 @@ const ee = (e, n, t = !1) => {
|
|
|
667
669
|
children: o
|
|
668
670
|
}
|
|
669
671
|
);
|
|
670
|
-
}),
|
|
671
|
-
const { className: t, children: o, id: r, ...
|
|
672
|
-
return u(
|
|
672
|
+
}), lt = m((e, n) => {
|
|
673
|
+
const { className: t, children: o, id: r, ...a } = e;
|
|
674
|
+
return u(a), /* @__PURE__ */ s(
|
|
673
675
|
L,
|
|
674
676
|
{
|
|
675
677
|
gap: 0,
|
|
@@ -680,77 +682,76 @@ const ee = (e, n, t = !1) => {
|
|
|
680
682
|
children: o
|
|
681
683
|
}
|
|
682
684
|
);
|
|
683
|
-
}),
|
|
685
|
+
}), ct = m((e, n) => {
|
|
684
686
|
const { className: t, children: o, ...r } = e;
|
|
685
687
|
return u(r), /* @__PURE__ */ s(b, { className: t, ref: n, children: /* @__PURE__ */ s(b, { className: "bn-mt-suggestion-menu-item-title", children: o }) });
|
|
686
|
-
}),
|
|
687
|
-
const { className: t, isSelected: o, onClick: r, item:
|
|
688
|
+
}), dt = m((e, n) => {
|
|
689
|
+
const { className: t, isSelected: o, onClick: r, item: a, id: i, ...l } = e;
|
|
688
690
|
u(l);
|
|
689
691
|
const c = X(null);
|
|
690
692
|
return Y(() => {
|
|
691
693
|
if (!c.current || !o)
|
|
692
694
|
return;
|
|
693
|
-
|
|
695
|
+
K(c.current, c.current.closest(
|
|
694
696
|
".bn-suggestion-menu, #ai-suggestion-menu"
|
|
695
|
-
));
|
|
696
|
-
d === "top" ? c.current.scrollIntoView(!0) : d === "bottom" && c.current.scrollIntoView(!1);
|
|
697
|
+
)) !== "none" && c.current.scrollIntoView({ block: "nearest" });
|
|
697
698
|
}, [o]), /* @__PURE__ */ v(
|
|
698
699
|
b,
|
|
699
700
|
{
|
|
700
701
|
gap: 0,
|
|
701
702
|
className: t,
|
|
702
703
|
ref: j(n, c),
|
|
703
|
-
id:
|
|
704
|
+
id: i,
|
|
704
705
|
role: "option",
|
|
705
706
|
onMouseDown: (d) => d.preventDefault(),
|
|
706
707
|
onClick: r,
|
|
707
708
|
"aria-selected": o || void 0,
|
|
708
709
|
children: [
|
|
709
|
-
|
|
710
|
+
a.icon && /* @__PURE__ */ s(
|
|
710
711
|
b,
|
|
711
712
|
{
|
|
712
713
|
className: "bn-mt-suggestion-menu-item-section",
|
|
713
714
|
"data-position": "left",
|
|
714
|
-
children:
|
|
715
|
+
children: a.icon
|
|
715
716
|
}
|
|
716
717
|
),
|
|
717
718
|
/* @__PURE__ */ v(L, { gap: 0, className: "bn-mt-suggestion-menu-item-body", children: [
|
|
718
|
-
/* @__PURE__ */ s(C, { className: "bn-mt-suggestion-menu-item-title", children:
|
|
719
|
-
/* @__PURE__ */ s(C, { className: "bn-mt-suggestion-menu-item-subtitle", children:
|
|
719
|
+
/* @__PURE__ */ s(C, { className: "bn-mt-suggestion-menu-item-title", children: a.title }),
|
|
720
|
+
/* @__PURE__ */ s(C, { className: "bn-mt-suggestion-menu-item-subtitle", children: a.subtext })
|
|
720
721
|
] }),
|
|
721
|
-
|
|
722
|
+
a.badge && /* @__PURE__ */ s(
|
|
722
723
|
b,
|
|
723
724
|
{
|
|
724
725
|
"data-position": "right",
|
|
725
726
|
className: "bn-mt-suggestion-menu-item-section",
|
|
726
|
-
children: /* @__PURE__ */ s(
|
|
727
|
+
children: /* @__PURE__ */ s(Ce, { size: "xs", children: a.badge })
|
|
727
728
|
}
|
|
728
729
|
)
|
|
729
730
|
]
|
|
730
731
|
}
|
|
731
732
|
);
|
|
732
|
-
}),
|
|
733
|
+
}), ut = m((e, n) => {
|
|
733
734
|
const { className: t, children: o, ...r } = e;
|
|
734
735
|
return u(r), /* @__PURE__ */ s(b, { className: t, ref: n, children: o });
|
|
735
|
-
}),
|
|
736
|
+
}), mt = m((e, n) => {
|
|
736
737
|
const { className: t, ...o } = e;
|
|
737
738
|
return u(o), /* @__PURE__ */ s(q, { className: t, type: "dots", size: 16, ref: n });
|
|
738
|
-
}),
|
|
739
|
-
const { className: t, children: o, id: r, columns:
|
|
740
|
-
return u(
|
|
739
|
+
}), gt = m((e, n) => {
|
|
740
|
+
const { className: t, children: o, id: r, columns: a, ...i } = e;
|
|
741
|
+
return u(i), /* @__PURE__ */ s(
|
|
741
742
|
"div",
|
|
742
743
|
{
|
|
743
744
|
className: t,
|
|
744
|
-
style: { gridTemplateColumns: `repeat(${
|
|
745
|
+
style: { gridTemplateColumns: `repeat(${a}, 1fr)` },
|
|
745
746
|
ref: n,
|
|
746
747
|
id: r,
|
|
747
748
|
role: "grid",
|
|
748
749
|
children: o
|
|
749
750
|
}
|
|
750
751
|
);
|
|
751
|
-
}),
|
|
752
|
-
const { className: t, children: o, columns: r, ...
|
|
753
|
-
return u(
|
|
752
|
+
}), ft = m((e, n) => {
|
|
753
|
+
const { className: t, children: o, columns: r, ...a } = e;
|
|
754
|
+
return u(a), /* @__PURE__ */ s(
|
|
754
755
|
b,
|
|
755
756
|
{
|
|
756
757
|
className: t,
|
|
@@ -759,39 +760,38 @@ const ee = (e, n, t = !1) => {
|
|
|
759
760
|
children: /* @__PURE__ */ s(b, { className: "bn-mt-suggestion-menu-item-title", children: o })
|
|
760
761
|
}
|
|
761
762
|
);
|
|
762
|
-
}),
|
|
763
|
-
const { className: t, isSelected: o, onClick: r, item:
|
|
763
|
+
}), ht = m((e, n) => {
|
|
764
|
+
const { className: t, isSelected: o, onClick: r, item: a, id: i, ...l } = e;
|
|
764
765
|
u(l);
|
|
765
766
|
const c = X(null);
|
|
766
767
|
return Y(() => {
|
|
767
768
|
if (!c.current || !o)
|
|
768
769
|
return;
|
|
769
|
-
|
|
770
|
+
K(
|
|
770
771
|
c.current,
|
|
771
772
|
c.current.closest(".bn-grid-suggestion-menu")
|
|
772
|
-
);
|
|
773
|
-
d === "top" ? c.current.scrollIntoView(!0) : d === "bottom" && c.current.scrollIntoView(!1);
|
|
773
|
+
) !== "none" && c.current.scrollIntoView({ block: "nearest" });
|
|
774
774
|
}, [o]), /* @__PURE__ */ s(
|
|
775
775
|
"div",
|
|
776
776
|
{
|
|
777
777
|
className: t,
|
|
778
778
|
ref: j(n, c),
|
|
779
|
-
id:
|
|
779
|
+
id: i,
|
|
780
780
|
role: "option",
|
|
781
781
|
onClick: r,
|
|
782
782
|
"aria-selected": o || void 0,
|
|
783
|
-
children:
|
|
783
|
+
children: a.icon
|
|
784
784
|
}
|
|
785
785
|
);
|
|
786
|
-
}),
|
|
786
|
+
}), bt = m((e, n) => {
|
|
787
787
|
const {
|
|
788
788
|
className: t,
|
|
789
789
|
children: o,
|
|
790
790
|
// unused, using "dots" instead
|
|
791
791
|
columns: r,
|
|
792
|
-
...
|
|
792
|
+
...a
|
|
793
793
|
} = e;
|
|
794
|
-
return u(
|
|
794
|
+
return u(a), /* @__PURE__ */ s(
|
|
795
795
|
q,
|
|
796
796
|
{
|
|
797
797
|
className: t,
|
|
@@ -800,26 +800,26 @@ const ee = (e, n, t = !1) => {
|
|
|
800
800
|
ref: n
|
|
801
801
|
}
|
|
802
802
|
);
|
|
803
|
-
}),
|
|
804
|
-
const { children: t, className: o, onMouseDown: r, onClick:
|
|
805
|
-
return u(
|
|
803
|
+
}), pt = m((e, n) => {
|
|
804
|
+
const { children: t, className: o, onMouseDown: r, onClick: a, ...i } = e;
|
|
805
|
+
return u(i, !1), /* @__PURE__ */ s(
|
|
806
806
|
T,
|
|
807
807
|
{
|
|
808
808
|
className: o,
|
|
809
809
|
ref: n,
|
|
810
810
|
onMouseDown: r,
|
|
811
|
-
onClick:
|
|
812
|
-
...
|
|
811
|
+
onClick: a,
|
|
812
|
+
...i,
|
|
813
813
|
children: t
|
|
814
814
|
}
|
|
815
815
|
);
|
|
816
|
-
}),
|
|
816
|
+
}), vt = m((e, n) => {
|
|
817
817
|
const {
|
|
818
818
|
className: t,
|
|
819
819
|
children: o,
|
|
820
820
|
draggable: r,
|
|
821
|
-
onDragStart:
|
|
822
|
-
onDragEnd:
|
|
821
|
+
onDragStart: a,
|
|
822
|
+
onDragEnd: i,
|
|
823
823
|
style: l,
|
|
824
824
|
label: c,
|
|
825
825
|
...d
|
|
@@ -831,8 +831,8 @@ const ee = (e, n, t = !1) => {
|
|
|
831
831
|
ref: n,
|
|
832
832
|
"aria-label": c,
|
|
833
833
|
draggable: r,
|
|
834
|
-
onDragStart:
|
|
835
|
-
onDragEnd:
|
|
834
|
+
onDragStart: a,
|
|
835
|
+
onDragEnd: i,
|
|
836
836
|
style: l,
|
|
837
837
|
...d,
|
|
838
838
|
children: o
|
|
@@ -844,21 +844,21 @@ const ee = (e, n, t = !1) => {
|
|
|
844
844
|
className: t,
|
|
845
845
|
children: o,
|
|
846
846
|
onMouseEnter: r,
|
|
847
|
-
onMouseLeave:
|
|
848
|
-
variant:
|
|
847
|
+
onMouseLeave: a,
|
|
848
|
+
variant: i,
|
|
849
849
|
...l
|
|
850
850
|
} = e;
|
|
851
851
|
u(l);
|
|
852
|
-
const { ref: c, focused: d } =
|
|
852
|
+
const { ref: c, focused: d } = Oe(), f = De(d), h = j(n, c, f);
|
|
853
853
|
return /* @__PURE__ */ s(
|
|
854
|
-
|
|
854
|
+
Ne,
|
|
855
855
|
{
|
|
856
856
|
className: t,
|
|
857
857
|
ref: h,
|
|
858
858
|
role: "toolbar",
|
|
859
859
|
onMouseEnter: r,
|
|
860
|
-
onMouseLeave:
|
|
861
|
-
gap:
|
|
860
|
+
onMouseLeave: a,
|
|
861
|
+
gap: i === "action-toolbar" ? 2 : void 0,
|
|
862
862
|
children: o
|
|
863
863
|
}
|
|
864
864
|
);
|
|
@@ -870,18 +870,18 @@ var ne = {
|
|
|
870
870
|
className: void 0,
|
|
871
871
|
style: void 0,
|
|
872
872
|
attr: void 0
|
|
873
|
-
}, _ = N.createContext && /* @__PURE__ */ N.createContext(ne),
|
|
874
|
-
function
|
|
873
|
+
}, _ = N.createContext && /* @__PURE__ */ N.createContext(ne), St = ["attr", "size", "title"];
|
|
874
|
+
function yt(e, n) {
|
|
875
875
|
if (e == null) return {};
|
|
876
|
-
var t =
|
|
876
|
+
var t = wt(e, n), o, r;
|
|
877
877
|
if (Object.getOwnPropertySymbols) {
|
|
878
|
-
var
|
|
879
|
-
for (r = 0; r <
|
|
880
|
-
o =
|
|
878
|
+
var a = Object.getOwnPropertySymbols(e);
|
|
879
|
+
for (r = 0; r < a.length; r++)
|
|
880
|
+
o = a[r], !(n.indexOf(o) >= 0) && Object.prototype.propertyIsEnumerable.call(e, o) && (t[o] = e[o]);
|
|
881
881
|
}
|
|
882
882
|
return t;
|
|
883
883
|
}
|
|
884
|
-
function
|
|
884
|
+
function wt(e, n) {
|
|
885
885
|
if (e == null) return {};
|
|
886
886
|
var t = {};
|
|
887
887
|
for (var o in e)
|
|
@@ -901,7 +901,7 @@ function F() {
|
|
|
901
901
|
return e;
|
|
902
902
|
}, F.apply(this, arguments);
|
|
903
903
|
}
|
|
904
|
-
function
|
|
904
|
+
function G(e, n) {
|
|
905
905
|
var t = Object.keys(e);
|
|
906
906
|
if (Object.getOwnPropertySymbols) {
|
|
907
907
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -914,22 +914,22 @@ function V(e, n) {
|
|
|
914
914
|
function M(e) {
|
|
915
915
|
for (var n = 1; n < arguments.length; n++) {
|
|
916
916
|
var t = arguments[n] != null ? arguments[n] : {};
|
|
917
|
-
n % 2 ?
|
|
918
|
-
|
|
919
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
917
|
+
n % 2 ? G(Object(t), !0).forEach(function(o) {
|
|
918
|
+
xt(e, o, t[o]);
|
|
919
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : G(Object(t)).forEach(function(o) {
|
|
920
920
|
Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(t, o));
|
|
921
921
|
});
|
|
922
922
|
}
|
|
923
923
|
return e;
|
|
924
924
|
}
|
|
925
|
-
function
|
|
926
|
-
return n =
|
|
925
|
+
function xt(e, n, t) {
|
|
926
|
+
return n = Ct(n), n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
|
|
927
927
|
}
|
|
928
|
-
function
|
|
929
|
-
var n =
|
|
928
|
+
function Ct(e) {
|
|
929
|
+
var n = Nt(e, "string");
|
|
930
930
|
return typeof n == "symbol" ? n : n + "";
|
|
931
931
|
}
|
|
932
|
-
function
|
|
932
|
+
function Nt(e, n) {
|
|
933
933
|
if (typeof e != "object" || !e) return e;
|
|
934
934
|
var t = e[Symbol.toPrimitive];
|
|
935
935
|
if (t !== void 0) {
|
|
@@ -944,23 +944,23 @@ function oe(e) {
|
|
|
944
944
|
key: t
|
|
945
945
|
}, n.attr), oe(n.child)));
|
|
946
946
|
}
|
|
947
|
-
function
|
|
948
|
-
return (n) => /* @__PURE__ */ N.createElement(
|
|
947
|
+
function Tt(e) {
|
|
948
|
+
return (n) => /* @__PURE__ */ N.createElement(kt, F({
|
|
949
949
|
attr: M({}, e.attr)
|
|
950
950
|
}, n), oe(e.child));
|
|
951
951
|
}
|
|
952
|
-
function
|
|
952
|
+
function kt(e) {
|
|
953
953
|
var n = (t) => {
|
|
954
954
|
var {
|
|
955
955
|
attr: o,
|
|
956
956
|
size: r,
|
|
957
|
-
title:
|
|
958
|
-
} = e,
|
|
957
|
+
title: a
|
|
958
|
+
} = e, i = yt(e, St), l = r || t.size || "1em", c;
|
|
959
959
|
return t.className && (c = t.className), e.className && (c = (c ? c + " " : "") + e.className), /* @__PURE__ */ N.createElement("svg", F({
|
|
960
960
|
stroke: "currentColor",
|
|
961
961
|
fill: "currentColor",
|
|
962
962
|
strokeWidth: "0"
|
|
963
|
-
}, t.attr, o,
|
|
963
|
+
}, t.attr, o, i, {
|
|
964
964
|
className: c,
|
|
965
965
|
style: M(M({
|
|
966
966
|
color: e.color || t.color
|
|
@@ -968,18 +968,18 @@ function Tt(e) {
|
|
|
968
968
|
height: l,
|
|
969
969
|
width: l,
|
|
970
970
|
xmlns: "http://www.w3.org/2000/svg"
|
|
971
|
-
}),
|
|
971
|
+
}), a && /* @__PURE__ */ N.createElement("title", null, a), e.children);
|
|
972
972
|
};
|
|
973
973
|
return _ !== void 0 ? /* @__PURE__ */ N.createElement(_.Consumer, null, (t) => n(t)) : n(ne);
|
|
974
974
|
}
|
|
975
975
|
function Pt(e) {
|
|
976
|
-
return
|
|
976
|
+
return Tt({ 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);
|
|
977
977
|
}
|
|
978
978
|
const I = m((e, n) => {
|
|
979
|
-
const { className: t, items: o, isDisabled: r, ...
|
|
980
|
-
u(
|
|
981
|
-
const
|
|
982
|
-
return
|
|
979
|
+
const { className: t, items: o, isDisabled: r, ...a } = e;
|
|
980
|
+
u(a);
|
|
981
|
+
const i = o.filter((l) => l.isSelected)[0];
|
|
982
|
+
return i ? /* @__PURE__ */ v(
|
|
983
983
|
p,
|
|
984
984
|
{
|
|
985
985
|
withinPortal: !1,
|
|
@@ -995,12 +995,12 @@ const I = m((e, n) => {
|
|
|
995
995
|
onMouseDown: (l) => {
|
|
996
996
|
R() && l.currentTarget.focus();
|
|
997
997
|
},
|
|
998
|
-
leftSection:
|
|
998
|
+
leftSection: i.icon,
|
|
999
999
|
rightSection: /* @__PURE__ */ s(Pt, {}),
|
|
1000
1000
|
size: "xs",
|
|
1001
1001
|
variant: "subtle",
|
|
1002
1002
|
disabled: r,
|
|
1003
|
-
children:
|
|
1003
|
+
children: i.text
|
|
1004
1004
|
}
|
|
1005
1005
|
) }),
|
|
1006
1006
|
/* @__PURE__ */ s(p.Dropdown, { className: t, ref: n, children: o.map((l) => /* @__PURE__ */ s(
|
|
@@ -1020,24 +1020,24 @@ const I = m((e, n) => {
|
|
|
1020
1020
|
]
|
|
1021
1021
|
}
|
|
1022
1022
|
) : null;
|
|
1023
|
-
}),
|
|
1023
|
+
}), Ft = {
|
|
1024
1024
|
FormattingToolbar: {
|
|
1025
1025
|
Root: D,
|
|
1026
1026
|
Button: O,
|
|
1027
1027
|
Select: I
|
|
1028
1028
|
},
|
|
1029
1029
|
FilePanel: {
|
|
1030
|
-
Root:
|
|
1031
|
-
Button:
|
|
1032
|
-
FileInput:
|
|
1033
|
-
TabPanel:
|
|
1034
|
-
TextInput:
|
|
1030
|
+
Root: Xe,
|
|
1031
|
+
Button: Ye,
|
|
1032
|
+
FileInput: et,
|
|
1033
|
+
TabPanel: tt,
|
|
1034
|
+
TextInput: nt
|
|
1035
1035
|
},
|
|
1036
1036
|
GridSuggestionMenu: {
|
|
1037
|
-
Root:
|
|
1038
|
-
Item:
|
|
1039
|
-
EmptyItem:
|
|
1040
|
-
Loader:
|
|
1037
|
+
Root: gt,
|
|
1038
|
+
Item: ht,
|
|
1039
|
+
EmptyItem: ft,
|
|
1040
|
+
Loader: bt
|
|
1041
1041
|
},
|
|
1042
1042
|
LinkToolbar: {
|
|
1043
1043
|
Root: D,
|
|
@@ -1045,42 +1045,42 @@ const I = m((e, n) => {
|
|
|
1045
1045
|
Select: I
|
|
1046
1046
|
},
|
|
1047
1047
|
SideMenu: {
|
|
1048
|
-
Root:
|
|
1048
|
+
Root: at,
|
|
1049
1049
|
Button: it
|
|
1050
1050
|
},
|
|
1051
1051
|
SuggestionMenu: {
|
|
1052
|
-
Root:
|
|
1053
|
-
Item:
|
|
1054
|
-
EmptyItem:
|
|
1055
|
-
Label:
|
|
1056
|
-
Loader:
|
|
1052
|
+
Root: lt,
|
|
1053
|
+
Item: dt,
|
|
1054
|
+
EmptyItem: ct,
|
|
1055
|
+
Label: ut,
|
|
1056
|
+
Loader: mt
|
|
1057
1057
|
},
|
|
1058
1058
|
TableHandle: {
|
|
1059
|
-
Root:
|
|
1060
|
-
ExtendButton:
|
|
1059
|
+
Root: vt,
|
|
1060
|
+
ExtendButton: pt
|
|
1061
1061
|
},
|
|
1062
1062
|
Generic: {
|
|
1063
1063
|
Badge: {
|
|
1064
|
-
Root:
|
|
1065
|
-
Group:
|
|
1064
|
+
Root: ze,
|
|
1065
|
+
Group: Be
|
|
1066
1066
|
},
|
|
1067
1067
|
Form: {
|
|
1068
1068
|
Root: (e) => /* @__PURE__ */ s("div", { children: e.children }),
|
|
1069
|
-
TextInput:
|
|
1069
|
+
TextInput: He
|
|
1070
1070
|
},
|
|
1071
1071
|
Menu: {
|
|
1072
|
-
Root:
|
|
1073
|
-
Trigger:
|
|
1074
|
-
Dropdown:
|
|
1075
|
-
Divider:
|
|
1076
|
-
Label:
|
|
1077
|
-
Item:
|
|
1078
|
-
Button:
|
|
1072
|
+
Root: Ke,
|
|
1073
|
+
Trigger: We,
|
|
1074
|
+
Dropdown: Ze,
|
|
1075
|
+
Divider: qe,
|
|
1076
|
+
Label: Je,
|
|
1077
|
+
Item: Ue,
|
|
1078
|
+
Button: Qe
|
|
1079
1079
|
},
|
|
1080
1080
|
Popover: {
|
|
1081
|
-
Root:
|
|
1082
|
-
Trigger:
|
|
1083
|
-
Content:
|
|
1081
|
+
Root: ot,
|
|
1082
|
+
Trigger: rt,
|
|
1083
|
+
Content: st
|
|
1084
1084
|
},
|
|
1085
1085
|
Toolbar: {
|
|
1086
1086
|
Root: D,
|
|
@@ -1089,19 +1089,19 @@ const I = m((e, n) => {
|
|
|
1089
1089
|
}
|
|
1090
1090
|
},
|
|
1091
1091
|
Comments: {
|
|
1092
|
-
Comment:
|
|
1093
|
-
Editor:
|
|
1094
|
-
Card:
|
|
1095
|
-
CardSection:
|
|
1096
|
-
ExpandSectionsPrompt:
|
|
1092
|
+
Comment: Ae,
|
|
1093
|
+
Editor: _e,
|
|
1094
|
+
Card: Ee,
|
|
1095
|
+
CardSection: Le,
|
|
1096
|
+
ExpandSectionsPrompt: je
|
|
1097
1097
|
}
|
|
1098
|
-
},
|
|
1099
|
-
const { className: n, theme: t, ...o } = e, r =
|
|
1098
|
+
}, Mt = (e) => {
|
|
1099
|
+
const { className: n, theme: t, ...o } = e, r = V(), a = me(), i = (r == null ? void 0 : r.colorSchemePreference) || a, l = Fe(
|
|
1100
1100
|
(h) => {
|
|
1101
|
-
if (h && (
|
|
1101
|
+
if (h && (Re(h), typeof t == "object")) {
|
|
1102
1102
|
if ("light" in t && "dark" in t) {
|
|
1103
1103
|
A(
|
|
1104
|
-
t[
|
|
1104
|
+
t[i === "dark" ? "dark" : "light"],
|
|
1105
1105
|
h
|
|
1106
1106
|
);
|
|
1107
1107
|
return;
|
|
@@ -1110,9 +1110,9 @@ const I = m((e, n) => {
|
|
|
1110
1110
|
return;
|
|
1111
1111
|
}
|
|
1112
1112
|
},
|
|
1113
|
-
[
|
|
1114
|
-
), c = Q(
|
|
1115
|
-
|
|
1113
|
+
[i, t]
|
|
1114
|
+
), c = Q(Te), d = typeof t == "string" ? t : i !== "no-preference" ? i : "light", f = /* @__PURE__ */ s(ge.Provider, { value: Ft, children: /* @__PURE__ */ s(
|
|
1115
|
+
fe,
|
|
1116
1116
|
{
|
|
1117
1117
|
"data-mantine-color-scheme": d,
|
|
1118
1118
|
className: B("bn-mantine", n || ""),
|
|
@@ -1122,7 +1122,7 @@ const I = m((e, n) => {
|
|
|
1122
1122
|
}
|
|
1123
1123
|
) });
|
|
1124
1124
|
return c ? f : /* @__PURE__ */ s(
|
|
1125
|
-
|
|
1125
|
+
ke,
|
|
1126
1126
|
{
|
|
1127
1127
|
withCssVariables: !1,
|
|
1128
1128
|
getRootElement: () => {
|
|
@@ -1141,7 +1141,7 @@ const I = m((e, n) => {
|
|
|
1141
1141
|
"#161616",
|
|
1142
1142
|
"#0F0F0F",
|
|
1143
1143
|
"#000000"
|
|
1144
|
-
],
|
|
1144
|
+
], H = {
|
|
1145
1145
|
colors: {
|
|
1146
1146
|
editor: {
|
|
1147
1147
|
text: g[5],
|
|
@@ -1170,11 +1170,11 @@ const I = m((e, n) => {
|
|
|
1170
1170
|
shadow: g[2],
|
|
1171
1171
|
border: g[1],
|
|
1172
1172
|
sideMenu: g[2],
|
|
1173
|
-
highlights:
|
|
1173
|
+
highlights: se
|
|
1174
1174
|
},
|
|
1175
1175
|
borderRadius: 6,
|
|
1176
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'
|
|
1177
|
-
},
|
|
1177
|
+
}, Et = {
|
|
1178
1178
|
colors: {
|
|
1179
1179
|
editor: {
|
|
1180
1180
|
text: g[2],
|
|
@@ -1203,18 +1203,18 @@ const I = m((e, n) => {
|
|
|
1203
1203
|
shadow: g[8],
|
|
1204
1204
|
border: g[7],
|
|
1205
1205
|
sideMenu: g[4],
|
|
1206
|
-
highlights:
|
|
1206
|
+
highlights: ae
|
|
1207
1207
|
},
|
|
1208
|
-
borderRadius:
|
|
1209
|
-
fontFamily:
|
|
1208
|
+
borderRadius: H.borderRadius,
|
|
1209
|
+
fontFamily: H.fontFamily
|
|
1210
1210
|
};
|
|
1211
1211
|
export {
|
|
1212
|
-
|
|
1212
|
+
Mt as BlockNoteView,
|
|
1213
1213
|
A as applyBlockNoteCSSVariablesFromTheme,
|
|
1214
|
-
|
|
1215
|
-
|
|
1214
|
+
Ft as components,
|
|
1215
|
+
Et as darkDefaultTheme,
|
|
1216
1216
|
g as defaultColorScheme,
|
|
1217
|
-
|
|
1218
|
-
|
|
1217
|
+
H as lightDefaultTheme,
|
|
1218
|
+
Re as removeBlockNoteCSSVariables
|
|
1219
1219
|
};
|
|
1220
1220
|
//# sourceMappingURL=blocknote-mantine.js.map
|