@blocknote/mantine 0.18.1 → 0.19.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.js +209 -283
- package/dist/blocknote-mantine.js.map +1 -1
- package/dist/blocknote-mantine.umd.cjs +1 -1
- package/dist/blocknote-mantine.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/dist/webpack-stats.json +1 -1
- package/package.json +4 -5
- package/src/defaultThemes copy.ts +159 -0
- package/src/defaultThemes.ts +3 -76
- package/types/src/defaultThemes copy.d.ts +143 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsx as i, jsxs as
|
|
2
|
-
import { assertEmpty as d, isSafari as M, mergeCSSClasses as
|
|
3
|
-
import { elementOverflow as
|
|
4
|
-
import { TextInput as B, Menu as
|
|
5
|
-
import
|
|
6
|
-
import { mergeRefs as
|
|
7
|
-
const
|
|
1
|
+
import { jsx as i, jsxs as S } from "react/jsx-runtime";
|
|
2
|
+
import { assertEmpty as d, isSafari as M, COLORS_DEFAULT as q, COLORS_DARK_MODE_DEFAULT as Z, mergeCSSClasses as J } from "@blocknote/core";
|
|
3
|
+
import { elementOverflow as z, useBlockNoteContext as Q, usePrefersColorScheme as X, ComponentsContext as Y, BlockNoteViewRaw as ee } from "@blocknote/react";
|
|
4
|
+
import { TextInput as B, Menu as b, CheckIcon as _, Group as v, Tabs as w, LoadingOverlay as te, Button as x, FileInput as ne, Popover as re, PopoverTarget as oe, PopoverDropdown as se, ActionIcon as $, Loader as V, Stack as O, Text as N, Badge as ie, Tooltip as ae, MantineProvider as le } from "@mantine/core";
|
|
5
|
+
import y, { forwardRef as g, createContext as ce, useState as ue, useRef as C, useCallback as F, useContext as de, useEffect as A } from "react";
|
|
6
|
+
import { mergeRefs as P, useFocusWithin as me, useFocusTrap as ge } from "@mantine/hooks";
|
|
7
|
+
const G = (e, n, t = !1) => {
|
|
8
8
|
const r = [];
|
|
9
9
|
function o(s, l = "--bn") {
|
|
10
10
|
for (const a in s) {
|
|
@@ -13,7 +13,7 @@ const H = (e, n, t = !1) => {
|
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
return o(e), r;
|
|
16
|
-
},
|
|
16
|
+
}, D = (e, n) => G(e, n), fe = {
|
|
17
17
|
colors: {
|
|
18
18
|
editor: {
|
|
19
19
|
text: void 0,
|
|
@@ -83,7 +83,7 @@ const H = (e, n, t = !1) => {
|
|
|
83
83
|
},
|
|
84
84
|
borderRadius: void 0,
|
|
85
85
|
fontFamily: void 0
|
|
86
|
-
}, be = (e) =>
|
|
86
|
+
}, be = (e) => G(fe, e, !0), ve = g((e, n) => {
|
|
87
87
|
const {
|
|
88
88
|
className: t,
|
|
89
89
|
name: r,
|
|
@@ -93,8 +93,8 @@ const H = (e, n, t = !1) => {
|
|
|
93
93
|
autoFocus: a,
|
|
94
94
|
placeholder: c,
|
|
95
95
|
onKeyDown: u,
|
|
96
|
-
onChange:
|
|
97
|
-
onSubmit:
|
|
96
|
+
onChange: f,
|
|
97
|
+
onSubmit: p,
|
|
98
98
|
...h
|
|
99
99
|
} = e;
|
|
100
100
|
return d(h), /* @__PURE__ */ i(
|
|
@@ -111,21 +111,21 @@ const H = (e, n, t = !1) => {
|
|
|
111
111
|
"data-autofocus": a ? "true" : void 0,
|
|
112
112
|
placeholder: c,
|
|
113
113
|
onKeyDown: u,
|
|
114
|
-
onChange:
|
|
115
|
-
onSubmit:
|
|
114
|
+
onChange: f,
|
|
115
|
+
onSubmit: p
|
|
116
116
|
}
|
|
117
117
|
);
|
|
118
118
|
});
|
|
119
|
-
var
|
|
119
|
+
var H = {
|
|
120
120
|
color: void 0,
|
|
121
121
|
size: void 0,
|
|
122
122
|
className: void 0,
|
|
123
123
|
style: void 0,
|
|
124
124
|
attr: void 0
|
|
125
|
-
},
|
|
126
|
-
function
|
|
125
|
+
}, I = y.createContext && /* @__PURE__ */ y.createContext(H), pe = ["attr", "size", "title"];
|
|
126
|
+
function he(e, n) {
|
|
127
127
|
if (e == null) return {};
|
|
128
|
-
var t =
|
|
128
|
+
var t = ye(e, n), r, o;
|
|
129
129
|
if (Object.getOwnPropertySymbols) {
|
|
130
130
|
var s = Object.getOwnPropertySymbols(e);
|
|
131
131
|
for (o = 0; o < s.length; o++)
|
|
@@ -133,7 +133,7 @@ function pe(e, n) {
|
|
|
133
133
|
}
|
|
134
134
|
return t;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function ye(e, n) {
|
|
137
137
|
if (e == null) return {};
|
|
138
138
|
var t = {};
|
|
139
139
|
for (var r in e)
|
|
@@ -143,17 +143,17 @@ function ve(e, n) {
|
|
|
143
143
|
}
|
|
144
144
|
return t;
|
|
145
145
|
}
|
|
146
|
-
function
|
|
147
|
-
return
|
|
146
|
+
function k() {
|
|
147
|
+
return k = Object.assign ? Object.assign.bind() : function(e) {
|
|
148
148
|
for (var n = 1; n < arguments.length; n++) {
|
|
149
149
|
var t = arguments[n];
|
|
150
150
|
for (var r in t)
|
|
151
151
|
Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r]);
|
|
152
152
|
}
|
|
153
153
|
return e;
|
|
154
|
-
},
|
|
154
|
+
}, k.apply(this, arguments);
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function R(e, n) {
|
|
157
157
|
var t = Object.keys(e);
|
|
158
158
|
if (Object.getOwnPropertySymbols) {
|
|
159
159
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -163,25 +163,25 @@ function D(e, n) {
|
|
|
163
163
|
}
|
|
164
164
|
return t;
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function T(e) {
|
|
167
167
|
for (var n = 1; n < arguments.length; n++) {
|
|
168
168
|
var t = arguments[n] != null ? arguments[n] : {};
|
|
169
|
-
n % 2 ?
|
|
170
|
-
|
|
171
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
169
|
+
n % 2 ? R(Object(t), !0).forEach(function(r) {
|
|
170
|
+
Se(e, r, t[r]);
|
|
171
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : R(Object(t)).forEach(function(r) {
|
|
172
172
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
173
173
|
});
|
|
174
174
|
}
|
|
175
175
|
return e;
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function Se(e, n, t) {
|
|
178
178
|
return n = xe(n), n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
|
|
179
179
|
}
|
|
180
180
|
function xe(e) {
|
|
181
|
-
var n =
|
|
181
|
+
var n = we(e, "string");
|
|
182
182
|
return typeof n == "symbol" ? n : n + "";
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function we(e, n) {
|
|
185
185
|
if (typeof e != "object" || !e) return e;
|
|
186
186
|
var t = e[Symbol.toPrimitive];
|
|
187
187
|
if (t !== void 0) {
|
|
@@ -192,45 +192,45 @@ function ye(e, n) {
|
|
|
192
192
|
return (n === "string" ? String : Number)(e);
|
|
193
193
|
}
|
|
194
194
|
function K(e) {
|
|
195
|
-
return e && e.map((n, t) => /* @__PURE__ */
|
|
195
|
+
return e && e.map((n, t) => /* @__PURE__ */ y.createElement(n.tag, T({
|
|
196
196
|
key: t
|
|
197
197
|
}, n.attr), K(n.child)));
|
|
198
198
|
}
|
|
199
|
-
function
|
|
200
|
-
return (n) => /* @__PURE__ */
|
|
201
|
-
attr:
|
|
199
|
+
function U(e) {
|
|
200
|
+
return (n) => /* @__PURE__ */ y.createElement(Ne, k({
|
|
201
|
+
attr: T({}, e.attr)
|
|
202
202
|
}, n), K(e.child));
|
|
203
203
|
}
|
|
204
|
-
function
|
|
204
|
+
function Ne(e) {
|
|
205
205
|
var n = (t) => {
|
|
206
206
|
var {
|
|
207
207
|
attr: r,
|
|
208
208
|
size: o,
|
|
209
209
|
title: s
|
|
210
|
-
} = e, l =
|
|
211
|
-
return t.className && (c = t.className), e.className && (c = (c ? c + " " : "") + e.className), /* @__PURE__ */
|
|
210
|
+
} = e, l = he(e, pe), a = o || t.size || "1em", c;
|
|
211
|
+
return t.className && (c = t.className), e.className && (c = (c ? c + " " : "") + e.className), /* @__PURE__ */ y.createElement("svg", k({
|
|
212
212
|
stroke: "currentColor",
|
|
213
213
|
fill: "currentColor",
|
|
214
214
|
strokeWidth: "0"
|
|
215
215
|
}, t.attr, r, l, {
|
|
216
216
|
className: c,
|
|
217
|
-
style:
|
|
217
|
+
style: T(T({
|
|
218
218
|
color: e.color || t.color
|
|
219
219
|
}, t.style), e.style),
|
|
220
220
|
height: a,
|
|
221
221
|
width: a,
|
|
222
222
|
xmlns: "http://www.w3.org/2000/svg"
|
|
223
|
-
}), s && /* @__PURE__ */
|
|
223
|
+
}), s && /* @__PURE__ */ y.createElement("title", null, s), e.children);
|
|
224
224
|
};
|
|
225
|
-
return
|
|
225
|
+
return I !== void 0 ? /* @__PURE__ */ y.createElement(I.Consumer, null, (t) => n(t)) : n(H);
|
|
226
226
|
}
|
|
227
|
-
function
|
|
228
|
-
return
|
|
227
|
+
function Ce(e) {
|
|
228
|
+
return U({ tag: "svg", 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);
|
|
229
229
|
}
|
|
230
|
-
function
|
|
231
|
-
return
|
|
230
|
+
function ke(e) {
|
|
231
|
+
return U({ tag: "svg", attr: { viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true" }, child: [{ tag: "path", attr: { fillRule: "evenodd", d: "M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z", clipRule: "evenodd" }, child: [] }] })(e);
|
|
232
232
|
}
|
|
233
|
-
const
|
|
233
|
+
const W = ce(void 0), Te = g((e, n) => {
|
|
234
234
|
const {
|
|
235
235
|
children: t,
|
|
236
236
|
onOpenChange: r,
|
|
@@ -240,29 +240,29 @@ const q = ae(void 0), Ne = b((e, n) => {
|
|
|
240
240
|
...l
|
|
241
241
|
} = e;
|
|
242
242
|
d(l);
|
|
243
|
-
const [a, c] =
|
|
244
|
-
|
|
243
|
+
const [a, c] = ue(!1), u = C(null), f = C(), p = F(() => {
|
|
244
|
+
f.current && clearTimeout(f.current), f.current = setTimeout(() => {
|
|
245
245
|
c(!1);
|
|
246
246
|
}, 250);
|
|
247
247
|
}, []), h = F(() => {
|
|
248
|
-
|
|
248
|
+
f.current && clearTimeout(f.current), c(!0);
|
|
249
249
|
}, []);
|
|
250
250
|
return /* @__PURE__ */ i(
|
|
251
|
-
|
|
251
|
+
W.Provider,
|
|
252
252
|
{
|
|
253
253
|
value: {
|
|
254
254
|
onMenuMouseOver: h,
|
|
255
|
-
onMenuMouseLeave:
|
|
255
|
+
onMenuMouseLeave: p
|
|
256
256
|
},
|
|
257
257
|
children: /* @__PURE__ */ i(
|
|
258
|
-
|
|
258
|
+
b.Item,
|
|
259
259
|
{
|
|
260
260
|
className: "bn-menu-item bn-mt-sub-menu-item",
|
|
261
|
-
ref:
|
|
261
|
+
ref: P(n, u),
|
|
262
262
|
onMouseOver: h,
|
|
263
|
-
onMouseLeave:
|
|
263
|
+
onMouseLeave: p,
|
|
264
264
|
children: /* @__PURE__ */ i(
|
|
265
|
-
|
|
265
|
+
b,
|
|
266
266
|
{
|
|
267
267
|
portalProps: {
|
|
268
268
|
target: u.current ? u.current.parentElement : void 0
|
|
@@ -280,10 +280,10 @@ const q = ae(void 0), Ne = b((e, n) => {
|
|
|
280
280
|
)
|
|
281
281
|
}
|
|
282
282
|
);
|
|
283
|
-
}),
|
|
283
|
+
}), Pe = (e) => {
|
|
284
284
|
const { children: n, onOpenChange: t, position: r, sub: o, ...s } = e;
|
|
285
|
-
return d(s), o ? /* @__PURE__ */ i(
|
|
286
|
-
|
|
285
|
+
return d(s), o ? /* @__PURE__ */ i(Te, { ...e }) : /* @__PURE__ */ i(
|
|
286
|
+
b,
|
|
287
287
|
{
|
|
288
288
|
withinPortal: !1,
|
|
289
289
|
middlewares: { flip: !0, shift: !0, inline: !1, size: !0 },
|
|
@@ -293,32 +293,32 @@ const q = ae(void 0), Ne = b((e, n) => {
|
|
|
293
293
|
children: n
|
|
294
294
|
}
|
|
295
295
|
);
|
|
296
|
-
},
|
|
296
|
+
}, Me = g((e, n) => {
|
|
297
297
|
const { className: t, children: r, icon: o, checked: s, subTrigger: l, onClick: a, ...c } = e;
|
|
298
|
-
return d(c, !1), l ? /* @__PURE__ */
|
|
298
|
+
return d(c, !1), l ? /* @__PURE__ */ S("div", { ref: n, ...c, children: [
|
|
299
299
|
r,
|
|
300
|
-
/* @__PURE__ */ i(
|
|
300
|
+
/* @__PURE__ */ i(ke, { size: 15 })
|
|
301
301
|
] }) : /* @__PURE__ */ i(
|
|
302
|
-
|
|
302
|
+
b.Item,
|
|
303
303
|
{
|
|
304
304
|
className: t,
|
|
305
305
|
ref: n,
|
|
306
306
|
leftSection: o,
|
|
307
|
-
rightSection: s ? /* @__PURE__ */ i(
|
|
307
|
+
rightSection: s ? /* @__PURE__ */ i(_, { size: 10 }) : s === !1 ? /* @__PURE__ */ i("div", { className: "bn-tick-space" }) : null,
|
|
308
308
|
onClick: a,
|
|
309
309
|
...c,
|
|
310
310
|
children: r
|
|
311
311
|
}
|
|
312
312
|
);
|
|
313
|
-
}),
|
|
313
|
+
}), Fe = (e) => {
|
|
314
314
|
const {
|
|
315
315
|
children: n,
|
|
316
316
|
sub: t,
|
|
317
317
|
// unused
|
|
318
318
|
...r
|
|
319
319
|
} = e;
|
|
320
|
-
return d(r), /* @__PURE__ */ i(
|
|
321
|
-
},
|
|
320
|
+
return d(r), /* @__PURE__ */ i(b.Target, { children: n });
|
|
321
|
+
}, Oe = g((e, n) => {
|
|
322
322
|
const {
|
|
323
323
|
className: t,
|
|
324
324
|
children: r,
|
|
@@ -327,9 +327,9 @@ const q = ae(void 0), Ne = b((e, n) => {
|
|
|
327
327
|
...s
|
|
328
328
|
} = e;
|
|
329
329
|
d(s);
|
|
330
|
-
const l =
|
|
330
|
+
const l = de(W);
|
|
331
331
|
return /* @__PURE__ */ i(
|
|
332
|
-
|
|
332
|
+
b.Dropdown,
|
|
333
333
|
{
|
|
334
334
|
className: t,
|
|
335
335
|
ref: n,
|
|
@@ -338,13 +338,13 @@ const q = ae(void 0), Ne = b((e, n) => {
|
|
|
338
338
|
children: r
|
|
339
339
|
}
|
|
340
340
|
);
|
|
341
|
-
}),
|
|
341
|
+
}), De = g((e, n) => {
|
|
342
342
|
const { className: t, ...r } = e;
|
|
343
|
-
return d(r), /* @__PURE__ */ i(
|
|
344
|
-
}),
|
|
343
|
+
return d(r), /* @__PURE__ */ i(b.Divider, { className: t, ref: n });
|
|
344
|
+
}), Ie = g((e, n) => {
|
|
345
345
|
const { className: t, children: r, ...o } = e;
|
|
346
|
-
return d(o), /* @__PURE__ */ i(
|
|
347
|
-
}),
|
|
346
|
+
return d(o), /* @__PURE__ */ i(b.Label, { className: t, ref: n, children: r });
|
|
347
|
+
}), Re = g((e, n) => {
|
|
348
348
|
const {
|
|
349
349
|
className: t,
|
|
350
350
|
tabs: r,
|
|
@@ -354,14 +354,14 @@ const q = ae(void 0), Ne = b((e, n) => {
|
|
|
354
354
|
loading: a,
|
|
355
355
|
...c
|
|
356
356
|
} = e;
|
|
357
|
-
return d(c), /* @__PURE__ */ i(
|
|
357
|
+
return d(c), /* @__PURE__ */ i(v, { className: t, ref: n, children: /* @__PURE__ */ S(
|
|
358
358
|
w,
|
|
359
359
|
{
|
|
360
360
|
value: s,
|
|
361
361
|
defaultValue: o,
|
|
362
362
|
onChange: l,
|
|
363
363
|
children: [
|
|
364
|
-
a && /* @__PURE__ */ i(
|
|
364
|
+
a && /* @__PURE__ */ i(te, { visible: a }),
|
|
365
365
|
/* @__PURE__ */ i(w.List, { children: r.map((u) => /* @__PURE__ */ i(
|
|
366
366
|
w.Tab,
|
|
367
367
|
{
|
|
@@ -375,10 +375,10 @@ const q = ae(void 0), Ne = b((e, n) => {
|
|
|
375
375
|
]
|
|
376
376
|
}
|
|
377
377
|
) });
|
|
378
|
-
}),
|
|
378
|
+
}), Le = g((e, n) => {
|
|
379
379
|
const { className: t, children: r, onClick: o, label: s, ...l } = e;
|
|
380
380
|
return d(l), /* @__PURE__ */ i(
|
|
381
|
-
|
|
381
|
+
x,
|
|
382
382
|
{
|
|
383
383
|
size: "xs",
|
|
384
384
|
"aria-label": s,
|
|
@@ -389,10 +389,10 @@ const q = ae(void 0), Ne = b((e, n) => {
|
|
|
389
389
|
children: r
|
|
390
390
|
}
|
|
391
391
|
);
|
|
392
|
-
}),
|
|
392
|
+
}), Ee = g((e, n) => {
|
|
393
393
|
const { className: t, accept: r, value: o, placeholder: s, onChange: l, ...a } = e;
|
|
394
394
|
return d(a), /* @__PURE__ */ i(
|
|
395
|
-
|
|
395
|
+
ne,
|
|
396
396
|
{
|
|
397
397
|
size: "xs",
|
|
398
398
|
className: t,
|
|
@@ -404,10 +404,10 @@ const q = ae(void 0), Ne = b((e, n) => {
|
|
|
404
404
|
...a
|
|
405
405
|
}
|
|
406
406
|
);
|
|
407
|
-
}), je =
|
|
407
|
+
}), je = g((e, n) => {
|
|
408
408
|
const { className: t, children: r, ...o } = e;
|
|
409
409
|
return d(o), /* @__PURE__ */ i("div", { className: t, ref: n, children: r });
|
|
410
|
-
}), ze =
|
|
410
|
+
}), ze = g((e, n) => {
|
|
411
411
|
const { className: t, value: r, placeholder: o, onKeyDown: s, onChange: l, ...a } = e;
|
|
412
412
|
return d(a), /* @__PURE__ */ i(
|
|
413
413
|
B,
|
|
@@ -422,10 +422,10 @@ const q = ae(void 0), Ne = b((e, n) => {
|
|
|
422
422
|
onChange: l
|
|
423
423
|
}
|
|
424
424
|
);
|
|
425
|
-
}),
|
|
425
|
+
}), Be = (e) => {
|
|
426
426
|
const { children: n, opened: t, position: r, ...o } = e;
|
|
427
427
|
return d(o), /* @__PURE__ */ i(
|
|
428
|
-
|
|
428
|
+
re,
|
|
429
429
|
{
|
|
430
430
|
withinPortal: !1,
|
|
431
431
|
zIndex: 1e4,
|
|
@@ -434,10 +434,10 @@ const q = ae(void 0), Ne = b((e, n) => {
|
|
|
434
434
|
children: n
|
|
435
435
|
}
|
|
436
436
|
);
|
|
437
|
-
},
|
|
437
|
+
}, _e = (e) => {
|
|
438
438
|
const { children: n, ...t } = e;
|
|
439
|
-
return d(t), /* @__PURE__ */ i(
|
|
440
|
-
},
|
|
439
|
+
return d(t), /* @__PURE__ */ i(oe, { children: n });
|
|
440
|
+
}, $e = g((e, n) => {
|
|
441
441
|
const {
|
|
442
442
|
className: t,
|
|
443
443
|
children: r,
|
|
@@ -445,11 +445,11 @@ const q = ae(void 0), Ne = b((e, n) => {
|
|
|
445
445
|
// unused
|
|
446
446
|
...s
|
|
447
447
|
} = e;
|
|
448
|
-
return d(s), /* @__PURE__ */ i(
|
|
449
|
-
}),
|
|
448
|
+
return d(s), /* @__PURE__ */ i(se, { className: t, ref: n, children: r });
|
|
449
|
+
}), Ve = g((e, n) => {
|
|
450
450
|
const { className: t, children: r, ...o } = e;
|
|
451
451
|
return d(o, !1), /* @__PURE__ */ i(
|
|
452
|
-
|
|
452
|
+
v,
|
|
453
453
|
{
|
|
454
454
|
align: "center",
|
|
455
455
|
gap: 0,
|
|
@@ -459,7 +459,7 @@ const q = ae(void 0), Ne = b((e, n) => {
|
|
|
459
459
|
children: r
|
|
460
460
|
}
|
|
461
461
|
);
|
|
462
|
-
}),
|
|
462
|
+
}), Ae = g((e, n) => {
|
|
463
463
|
const {
|
|
464
464
|
className: t,
|
|
465
465
|
children: r,
|
|
@@ -469,10 +469,10 @@ const q = ae(void 0), Ne = b((e, n) => {
|
|
|
469
469
|
onDragStart: a,
|
|
470
470
|
draggable: c,
|
|
471
471
|
label: u,
|
|
472
|
-
...
|
|
472
|
+
...f
|
|
473
473
|
} = e;
|
|
474
|
-
return d(
|
|
475
|
-
|
|
474
|
+
return d(f, !1), o ? /* @__PURE__ */ i(
|
|
475
|
+
$,
|
|
476
476
|
{
|
|
477
477
|
size: 24,
|
|
478
478
|
className: t,
|
|
@@ -482,11 +482,11 @@ const q = ae(void 0), Ne = b((e, n) => {
|
|
|
482
482
|
onDragStart: a,
|
|
483
483
|
draggable: c,
|
|
484
484
|
"aria-label": u,
|
|
485
|
-
...
|
|
485
|
+
...f,
|
|
486
486
|
children: o
|
|
487
487
|
}
|
|
488
488
|
) : /* @__PURE__ */ i(
|
|
489
|
-
|
|
489
|
+
x,
|
|
490
490
|
{
|
|
491
491
|
className: t,
|
|
492
492
|
ref: n,
|
|
@@ -495,11 +495,11 @@ const q = ae(void 0), Ne = b((e, n) => {
|
|
|
495
495
|
onDragStart: a,
|
|
496
496
|
draggable: c,
|
|
497
497
|
"aria-label": u,
|
|
498
|
-
...
|
|
498
|
+
...f,
|
|
499
499
|
children: r
|
|
500
500
|
}
|
|
501
501
|
);
|
|
502
|
-
}), Ge =
|
|
502
|
+
}), Ge = g((e, n) => {
|
|
503
503
|
const { className: t, children: r, id: o, columns: s, ...l } = e;
|
|
504
504
|
return d(l), /* @__PURE__ */ i(
|
|
505
505
|
"div",
|
|
@@ -512,25 +512,25 @@ const q = ae(void 0), Ne = b((e, n) => {
|
|
|
512
512
|
children: r
|
|
513
513
|
}
|
|
514
514
|
);
|
|
515
|
-
}),
|
|
515
|
+
}), He = g((e, n) => {
|
|
516
516
|
const { className: t, children: r, columns: o, ...s } = e;
|
|
517
517
|
return d(s), /* @__PURE__ */ i(
|
|
518
|
-
|
|
518
|
+
v,
|
|
519
519
|
{
|
|
520
520
|
className: t,
|
|
521
521
|
style: { gridColumn: `1 / ${o + 1}` },
|
|
522
522
|
ref: n,
|
|
523
|
-
children: /* @__PURE__ */ i(
|
|
523
|
+
children: /* @__PURE__ */ i(v, { className: "bn-mt-suggestion-menu-item-title", children: r })
|
|
524
524
|
}
|
|
525
525
|
);
|
|
526
|
-
}),
|
|
526
|
+
}), Ke = g((e, n) => {
|
|
527
527
|
const { className: t, isSelected: r, onClick: o, item: s, id: l, ...a } = e;
|
|
528
528
|
d(a);
|
|
529
|
-
const c =
|
|
530
|
-
return
|
|
529
|
+
const c = C(null);
|
|
530
|
+
return A(() => {
|
|
531
531
|
if (!c.current || !r)
|
|
532
532
|
return;
|
|
533
|
-
const u =
|
|
533
|
+
const u = z(
|
|
534
534
|
c.current,
|
|
535
535
|
document.querySelector(".bn-grid-suggestion-menu")
|
|
536
536
|
);
|
|
@@ -539,7 +539,7 @@ const q = ae(void 0), Ne = b((e, n) => {
|
|
|
539
539
|
"div",
|
|
540
540
|
{
|
|
541
541
|
className: t,
|
|
542
|
-
ref:
|
|
542
|
+
ref: P(n, c),
|
|
543
543
|
id: l,
|
|
544
544
|
role: "option",
|
|
545
545
|
onClick: o,
|
|
@@ -547,7 +547,7 @@ const q = ae(void 0), Ne = b((e, n) => {
|
|
|
547
547
|
children: s.icon
|
|
548
548
|
}
|
|
549
549
|
);
|
|
550
|
-
}),
|
|
550
|
+
}), Ue = g((e, n) => {
|
|
551
551
|
const {
|
|
552
552
|
className: t,
|
|
553
553
|
children: r,
|
|
@@ -556,7 +556,7 @@ const q = ae(void 0), Ne = b((e, n) => {
|
|
|
556
556
|
...s
|
|
557
557
|
} = e;
|
|
558
558
|
return d(s), /* @__PURE__ */ i(
|
|
559
|
-
|
|
559
|
+
V,
|
|
560
560
|
{
|
|
561
561
|
className: t,
|
|
562
562
|
style: { gridColumn: `1 / ${o + 1}` },
|
|
@@ -564,7 +564,7 @@ const q = ae(void 0), Ne = b((e, n) => {
|
|
|
564
564
|
ref: n
|
|
565
565
|
}
|
|
566
566
|
);
|
|
567
|
-
}),
|
|
567
|
+
}), We = g((e, n) => {
|
|
568
568
|
const { className: t, children: r, id: o, ...s } = e;
|
|
569
569
|
return d(s), /* @__PURE__ */ i(
|
|
570
570
|
O,
|
|
@@ -577,67 +577,67 @@ const q = ae(void 0), Ne = b((e, n) => {
|
|
|
577
577
|
children: r
|
|
578
578
|
}
|
|
579
579
|
);
|
|
580
|
-
}),
|
|
580
|
+
}), qe = g((e, n) => {
|
|
581
581
|
const { className: t, children: r, ...o } = e;
|
|
582
|
-
return d(o), /* @__PURE__ */ i(
|
|
583
|
-
}),
|
|
582
|
+
return d(o), /* @__PURE__ */ i(v, { className: t, ref: n, children: /* @__PURE__ */ i(v, { className: "bn-mt-suggestion-menu-item-title", children: r }) });
|
|
583
|
+
}), Ze = g((e, n) => {
|
|
584
584
|
const { className: t, isSelected: r, onClick: o, item: s, id: l, ...a } = e;
|
|
585
585
|
d(a);
|
|
586
|
-
const c =
|
|
587
|
-
return
|
|
586
|
+
const c = C(null);
|
|
587
|
+
return A(() => {
|
|
588
588
|
if (!c.current || !r)
|
|
589
589
|
return;
|
|
590
|
-
const u =
|
|
590
|
+
const u = z(
|
|
591
591
|
c.current,
|
|
592
592
|
document.querySelector(".bn-suggestion-menu")
|
|
593
593
|
);
|
|
594
594
|
u === "top" ? c.current.scrollIntoView(!0) : u === "bottom" && c.current.scrollIntoView(!1);
|
|
595
|
-
}, [r]), /* @__PURE__ */
|
|
596
|
-
|
|
595
|
+
}, [r]), /* @__PURE__ */ S(
|
|
596
|
+
v,
|
|
597
597
|
{
|
|
598
598
|
gap: 0,
|
|
599
599
|
className: t,
|
|
600
|
-
ref:
|
|
600
|
+
ref: P(n, c),
|
|
601
601
|
id: l,
|
|
602
602
|
role: "option",
|
|
603
603
|
onClick: o,
|
|
604
604
|
"aria-selected": r || void 0,
|
|
605
605
|
children: [
|
|
606
606
|
s.icon && /* @__PURE__ */ i(
|
|
607
|
-
|
|
607
|
+
v,
|
|
608
608
|
{
|
|
609
609
|
className: "bn-mt-suggestion-menu-item-section",
|
|
610
610
|
"data-position": "left",
|
|
611
611
|
children: s.icon
|
|
612
612
|
}
|
|
613
613
|
),
|
|
614
|
-
/* @__PURE__ */
|
|
615
|
-
/* @__PURE__ */ i(
|
|
616
|
-
/* @__PURE__ */ i(
|
|
614
|
+
/* @__PURE__ */ S(O, { gap: 0, className: "bn-mt-suggestion-menu-item-body", children: [
|
|
615
|
+
/* @__PURE__ */ i(N, { className: "bn-mt-suggestion-menu-item-title", children: s.title }),
|
|
616
|
+
/* @__PURE__ */ i(N, { className: "bn-mt-suggestion-menu-item-subtitle", children: s.subtext })
|
|
617
617
|
] }),
|
|
618
618
|
s.badge && /* @__PURE__ */ i(
|
|
619
|
-
|
|
619
|
+
v,
|
|
620
620
|
{
|
|
621
621
|
"data-position": "right",
|
|
622
622
|
className: "bn-mt-suggestion-menu-item-section",
|
|
623
|
-
children: /* @__PURE__ */ i(
|
|
623
|
+
children: /* @__PURE__ */ i(ie, { size: "xs", children: s.badge })
|
|
624
624
|
}
|
|
625
625
|
)
|
|
626
626
|
]
|
|
627
627
|
}
|
|
628
628
|
);
|
|
629
|
-
}),
|
|
629
|
+
}), Je = g((e, n) => {
|
|
630
630
|
const { className: t, children: r, ...o } = e;
|
|
631
|
-
return d(o), /* @__PURE__ */ i(
|
|
632
|
-
}),
|
|
631
|
+
return d(o), /* @__PURE__ */ i(v, { className: t, ref: n, children: r });
|
|
632
|
+
}), Qe = g((e, n) => {
|
|
633
633
|
const {
|
|
634
634
|
className: t,
|
|
635
635
|
children: r,
|
|
636
636
|
// unused, using "dots" instead
|
|
637
637
|
...o
|
|
638
638
|
} = e;
|
|
639
|
-
return d(o), /* @__PURE__ */ i(
|
|
640
|
-
}),
|
|
639
|
+
return d(o), /* @__PURE__ */ i(V, { className: t, type: "dots", ref: n });
|
|
640
|
+
}), Xe = g((e, n) => {
|
|
641
641
|
const {
|
|
642
642
|
className: t,
|
|
643
643
|
children: r,
|
|
@@ -649,7 +649,7 @@ const q = ae(void 0), Ne = b((e, n) => {
|
|
|
649
649
|
...u
|
|
650
650
|
} = e;
|
|
651
651
|
return d(u, !1), /* @__PURE__ */ i(
|
|
652
|
-
|
|
652
|
+
x,
|
|
653
653
|
{
|
|
654
654
|
className: t,
|
|
655
655
|
ref: n,
|
|
@@ -662,10 +662,10 @@ const q = ae(void 0), Ne = b((e, n) => {
|
|
|
662
662
|
children: r
|
|
663
663
|
}
|
|
664
664
|
);
|
|
665
|
-
}),
|
|
665
|
+
}), Ye = g((e, n) => {
|
|
666
666
|
const { children: t, className: r, onMouseDown: o, onClick: s, ...l } = e;
|
|
667
667
|
return d(l, !1), /* @__PURE__ */ i(
|
|
668
|
-
|
|
668
|
+
x,
|
|
669
669
|
{
|
|
670
670
|
className: r,
|
|
671
671
|
ref: n,
|
|
@@ -675,16 +675,16 @@ const q = ae(void 0), Ne = b((e, n) => {
|
|
|
675
675
|
children: t
|
|
676
676
|
}
|
|
677
677
|
);
|
|
678
|
-
}),
|
|
678
|
+
}), L = g(
|
|
679
679
|
(e, n) => {
|
|
680
680
|
const { className: t, children: r, onMouseEnter: o, onMouseLeave: s, ...l } = e;
|
|
681
681
|
d(l);
|
|
682
|
-
const { ref: a, focused: c } =
|
|
682
|
+
const { ref: a, focused: c } = me(), u = ge(c), f = P(n, a, u);
|
|
683
683
|
return /* @__PURE__ */ i(
|
|
684
|
-
|
|
684
|
+
v,
|
|
685
685
|
{
|
|
686
686
|
className: t,
|
|
687
|
-
ref:
|
|
687
|
+
ref: f,
|
|
688
688
|
role: "toolbar",
|
|
689
689
|
onMouseEnter: o,
|
|
690
690
|
onMouseLeave: s,
|
|
@@ -692,10 +692,10 @@ const q = ae(void 0), Ne = b((e, n) => {
|
|
|
692
692
|
}
|
|
693
693
|
);
|
|
694
694
|
}
|
|
695
|
-
),
|
|
696
|
-
/* @__PURE__ */ i(
|
|
697
|
-
e.secondaryTooltip && /* @__PURE__ */ i(
|
|
698
|
-
] }),
|
|
695
|
+
), et = (e) => /* @__PURE__ */ S(O, { gap: 0, className: "bn-tooltip", children: [
|
|
696
|
+
/* @__PURE__ */ i(N, { size: "sm", children: e.mainTooltip }),
|
|
697
|
+
e.secondaryTooltip && /* @__PURE__ */ i(N, { size: "xs", children: e.secondaryTooltip })
|
|
698
|
+
] }), E = g(
|
|
699
699
|
(e, n) => {
|
|
700
700
|
const {
|
|
701
701
|
className: t,
|
|
@@ -706,24 +706,24 @@ const q = ae(void 0), Ne = b((e, n) => {
|
|
|
706
706
|
isSelected: a,
|
|
707
707
|
isDisabled: c,
|
|
708
708
|
onClick: u,
|
|
709
|
-
label:
|
|
710
|
-
...
|
|
709
|
+
label: f,
|
|
710
|
+
...p
|
|
711
711
|
} = e;
|
|
712
|
-
return d(
|
|
713
|
-
|
|
712
|
+
return d(p, !1), /* @__PURE__ */ i(
|
|
713
|
+
ae,
|
|
714
714
|
{
|
|
715
715
|
withinPortal: !1,
|
|
716
716
|
label: /* @__PURE__ */ i(
|
|
717
|
-
|
|
717
|
+
et,
|
|
718
718
|
{
|
|
719
719
|
mainTooltip: o,
|
|
720
720
|
secondaryTooltip: s
|
|
721
721
|
}
|
|
722
722
|
),
|
|
723
723
|
children: r ? /* @__PURE__ */ i(
|
|
724
|
-
|
|
724
|
+
x,
|
|
725
725
|
{
|
|
726
|
-
"aria-label":
|
|
726
|
+
"aria-label": f,
|
|
727
727
|
className: t,
|
|
728
728
|
onMouseDown: (h) => {
|
|
729
729
|
M() && h.currentTarget.focus();
|
|
@@ -735,14 +735,14 @@ const q = ae(void 0), Ne = b((e, n) => {
|
|
|
735
735
|
size: "xs",
|
|
736
736
|
disabled: c || !1,
|
|
737
737
|
ref: n,
|
|
738
|
-
...
|
|
738
|
+
...p,
|
|
739
739
|
children: r
|
|
740
740
|
}
|
|
741
741
|
) : /* @__PURE__ */ i(
|
|
742
|
-
|
|
742
|
+
$,
|
|
743
743
|
{
|
|
744
744
|
className: t,
|
|
745
|
-
"aria-label":
|
|
745
|
+
"aria-label": f,
|
|
746
746
|
onMouseDown: (h) => {
|
|
747
747
|
M() && h.currentTarget.focus();
|
|
748
748
|
},
|
|
@@ -753,19 +753,19 @@ const q = ae(void 0), Ne = b((e, n) => {
|
|
|
753
753
|
size: 30,
|
|
754
754
|
disabled: c || !1,
|
|
755
755
|
ref: n,
|
|
756
|
-
...
|
|
756
|
+
...p,
|
|
757
757
|
children: l
|
|
758
758
|
}
|
|
759
759
|
)
|
|
760
760
|
}
|
|
761
761
|
);
|
|
762
762
|
}
|
|
763
|
-
),
|
|
763
|
+
), tt = g((e, n) => {
|
|
764
764
|
const { className: t, items: r, isDisabled: o, ...s } = e;
|
|
765
765
|
d(s);
|
|
766
766
|
const l = r.filter((a) => a.isSelected)[0];
|
|
767
|
-
return l ? /* @__PURE__ */
|
|
768
|
-
|
|
767
|
+
return l ? /* @__PURE__ */ S(
|
|
768
|
+
b,
|
|
769
769
|
{
|
|
770
770
|
withinPortal: !1,
|
|
771
771
|
transitionProps: {
|
|
@@ -774,26 +774,26 @@ const q = ae(void 0), Ne = b((e, n) => {
|
|
|
774
774
|
disabled: o,
|
|
775
775
|
middlewares: { flip: !0, shift: !0, inline: !1, size: !0 },
|
|
776
776
|
children: [
|
|
777
|
-
/* @__PURE__ */ i(
|
|
778
|
-
|
|
777
|
+
/* @__PURE__ */ i(b.Target, { children: /* @__PURE__ */ i(
|
|
778
|
+
x,
|
|
779
779
|
{
|
|
780
780
|
onMouseDown: (a) => {
|
|
781
781
|
M() && a.currentTarget.focus();
|
|
782
782
|
},
|
|
783
783
|
leftSection: l.icon,
|
|
784
|
-
rightSection: /* @__PURE__ */ i(
|
|
784
|
+
rightSection: /* @__PURE__ */ i(Ce, {}),
|
|
785
785
|
size: "xs",
|
|
786
786
|
variant: "subtle",
|
|
787
787
|
disabled: o,
|
|
788
788
|
children: l.text
|
|
789
789
|
}
|
|
790
790
|
) }),
|
|
791
|
-
/* @__PURE__ */ i(
|
|
792
|
-
|
|
791
|
+
/* @__PURE__ */ i(b.Dropdown, { className: t, ref: n, children: r.map((a) => /* @__PURE__ */ i(
|
|
792
|
+
b.Item,
|
|
793
793
|
{
|
|
794
794
|
onClick: a.onClick,
|
|
795
795
|
leftSection: a.icon,
|
|
796
|
-
rightSection: a.isSelected ? /* @__PURE__ */ i(
|
|
796
|
+
rightSection: a.isSelected ? /* @__PURE__ */ i(_, { size: 10, className: "bn-tick-icon" }) : (
|
|
797
797
|
// Ensures space for tick even if item isn't currently selected.
|
|
798
798
|
/* @__PURE__ */ i("div", { className: "bn-tick-space" })
|
|
799
799
|
),
|
|
@@ -816,7 +816,7 @@ const q = ae(void 0), Ne = b((e, n) => {
|
|
|
816
816
|
"#161616",
|
|
817
817
|
"#0F0F0F",
|
|
818
818
|
"#000000"
|
|
819
|
-
],
|
|
819
|
+
], j = {
|
|
820
820
|
colors: {
|
|
821
821
|
editor: {
|
|
822
822
|
text: m[5],
|
|
@@ -845,48 +845,11 @@ const q = ae(void 0), Ne = b((e, n) => {
|
|
|
845
845
|
shadow: m[2],
|
|
846
846
|
border: m[1],
|
|
847
847
|
sideMenu: m[2],
|
|
848
|
-
highlights:
|
|
849
|
-
gray: {
|
|
850
|
-
text: "#9b9a97",
|
|
851
|
-
background: "#ebeced"
|
|
852
|
-
},
|
|
853
|
-
brown: {
|
|
854
|
-
text: "#64473a",
|
|
855
|
-
background: "#e9e5e3"
|
|
856
|
-
},
|
|
857
|
-
red: {
|
|
858
|
-
text: "#e03e3e",
|
|
859
|
-
background: "#fbe4e4"
|
|
860
|
-
},
|
|
861
|
-
orange: {
|
|
862
|
-
text: "#d9730d",
|
|
863
|
-
background: "#f6e9d9"
|
|
864
|
-
},
|
|
865
|
-
yellow: {
|
|
866
|
-
text: "#dfab01",
|
|
867
|
-
background: "#fbf3db"
|
|
868
|
-
},
|
|
869
|
-
green: {
|
|
870
|
-
text: "#4d6461",
|
|
871
|
-
background: "#ddedea"
|
|
872
|
-
},
|
|
873
|
-
blue: {
|
|
874
|
-
text: "#0b6e99",
|
|
875
|
-
background: "#ddebf1"
|
|
876
|
-
},
|
|
877
|
-
purple: {
|
|
878
|
-
text: "#6940a5",
|
|
879
|
-
background: "#eae4f2"
|
|
880
|
-
},
|
|
881
|
-
pink: {
|
|
882
|
-
text: "#ad1a72",
|
|
883
|
-
background: "#f4dfeb"
|
|
884
|
-
}
|
|
885
|
-
}
|
|
848
|
+
highlights: q
|
|
886
849
|
},
|
|
887
850
|
borderRadius: 6,
|
|
888
851
|
fontFamily: '"Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Open Sans", "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif'
|
|
889
|
-
},
|
|
852
|
+
}, ut = {
|
|
890
853
|
colors: {
|
|
891
854
|
editor: {
|
|
892
855
|
text: m[2],
|
|
@@ -915,135 +878,98 @@ const q = ae(void 0), Ne = b((e, n) => {
|
|
|
915
878
|
shadow: m[8],
|
|
916
879
|
border: m[7],
|
|
917
880
|
sideMenu: m[4],
|
|
918
|
-
highlights:
|
|
919
|
-
gray: {
|
|
920
|
-
text: "#bebdb8",
|
|
921
|
-
background: "#9b9a97"
|
|
922
|
-
},
|
|
923
|
-
brown: {
|
|
924
|
-
text: "#8e6552",
|
|
925
|
-
background: "#64473a"
|
|
926
|
-
},
|
|
927
|
-
red: {
|
|
928
|
-
text: "#ec4040",
|
|
929
|
-
background: "#be3434"
|
|
930
|
-
},
|
|
931
|
-
orange: {
|
|
932
|
-
text: "#e3790d",
|
|
933
|
-
background: "#b7600a"
|
|
934
|
-
},
|
|
935
|
-
yellow: {
|
|
936
|
-
text: "#dfab01",
|
|
937
|
-
background: "#b58b00"
|
|
938
|
-
},
|
|
939
|
-
green: {
|
|
940
|
-
text: "#6b8b87",
|
|
941
|
-
background: "#4d6461"
|
|
942
|
-
},
|
|
943
|
-
blue: {
|
|
944
|
-
text: "#0e87bc",
|
|
945
|
-
background: "#0b6e99"
|
|
946
|
-
},
|
|
947
|
-
purple: {
|
|
948
|
-
text: "#8552d7",
|
|
949
|
-
background: "#6940a5"
|
|
950
|
-
},
|
|
951
|
-
pink: {
|
|
952
|
-
text: "#da208f",
|
|
953
|
-
background: "#ad1a72"
|
|
954
|
-
}
|
|
955
|
-
}
|
|
881
|
+
highlights: Z
|
|
956
882
|
},
|
|
957
|
-
borderRadius:
|
|
958
|
-
fontFamily:
|
|
959
|
-
},
|
|
883
|
+
borderRadius: j.borderRadius,
|
|
884
|
+
fontFamily: j.fontFamily
|
|
885
|
+
}, nt = {
|
|
960
886
|
FormattingToolbar: {
|
|
961
|
-
Root:
|
|
962
|
-
Button:
|
|
963
|
-
Select:
|
|
887
|
+
Root: L,
|
|
888
|
+
Button: E,
|
|
889
|
+
Select: tt
|
|
964
890
|
},
|
|
965
891
|
FilePanel: {
|
|
966
|
-
Root:
|
|
967
|
-
Button:
|
|
968
|
-
FileInput:
|
|
892
|
+
Root: Re,
|
|
893
|
+
Button: Le,
|
|
894
|
+
FileInput: Ee,
|
|
969
895
|
TabPanel: je,
|
|
970
896
|
TextInput: ze
|
|
971
897
|
},
|
|
972
898
|
GridSuggestionMenu: {
|
|
973
899
|
Root: Ge,
|
|
974
|
-
Item:
|
|
975
|
-
EmptyItem:
|
|
976
|
-
Loader:
|
|
900
|
+
Item: Ke,
|
|
901
|
+
EmptyItem: He,
|
|
902
|
+
Loader: Ue
|
|
977
903
|
},
|
|
978
904
|
LinkToolbar: {
|
|
979
|
-
Root:
|
|
980
|
-
Button:
|
|
905
|
+
Root: L,
|
|
906
|
+
Button: E
|
|
981
907
|
},
|
|
982
908
|
SideMenu: {
|
|
983
|
-
Root:
|
|
984
|
-
Button:
|
|
909
|
+
Root: Ve,
|
|
910
|
+
Button: Ae
|
|
985
911
|
},
|
|
986
912
|
SuggestionMenu: {
|
|
987
|
-
Root:
|
|
988
|
-
Item:
|
|
989
|
-
EmptyItem:
|
|
990
|
-
Label:
|
|
991
|
-
Loader:
|
|
913
|
+
Root: We,
|
|
914
|
+
Item: Ze,
|
|
915
|
+
EmptyItem: qe,
|
|
916
|
+
Label: Je,
|
|
917
|
+
Loader: Qe
|
|
992
918
|
},
|
|
993
919
|
TableHandle: {
|
|
994
|
-
Root:
|
|
995
|
-
ExtendButton:
|
|
920
|
+
Root: Xe,
|
|
921
|
+
ExtendButton: Ye
|
|
996
922
|
},
|
|
997
923
|
Generic: {
|
|
998
924
|
Form: {
|
|
999
925
|
Root: (e) => /* @__PURE__ */ i("div", { children: e.children }),
|
|
1000
|
-
TextInput:
|
|
926
|
+
TextInput: ve
|
|
1001
927
|
},
|
|
1002
928
|
Menu: {
|
|
1003
|
-
Root:
|
|
1004
|
-
Trigger:
|
|
1005
|
-
Dropdown:
|
|
1006
|
-
Divider:
|
|
1007
|
-
Label:
|
|
1008
|
-
Item:
|
|
929
|
+
Root: Pe,
|
|
930
|
+
Trigger: Fe,
|
|
931
|
+
Dropdown: Oe,
|
|
932
|
+
Divider: De,
|
|
933
|
+
Label: Ie,
|
|
934
|
+
Item: Me
|
|
1009
935
|
},
|
|
1010
936
|
Popover: {
|
|
1011
|
-
Root:
|
|
1012
|
-
Trigger:
|
|
1013
|
-
Content:
|
|
937
|
+
Root: Be,
|
|
938
|
+
Trigger: _e,
|
|
939
|
+
Content: $e
|
|
1014
940
|
}
|
|
1015
941
|
}
|
|
1016
|
-
},
|
|
942
|
+
}, rt = {
|
|
1017
943
|
// Removes button press effect
|
|
1018
944
|
activeClassName: ""
|
|
1019
|
-
},
|
|
1020
|
-
const { className: n, theme: t, ...r } = e, o =
|
|
945
|
+
}, dt = (e) => {
|
|
946
|
+
const { className: n, theme: t, ...r } = e, o = Q(), s = X(), l = (o == null ? void 0 : o.colorSchemePreference) || s, a = F(
|
|
1021
947
|
(c) => {
|
|
1022
948
|
if (c && (be(c), typeof t == "object")) {
|
|
1023
949
|
if ("light" in t && "dark" in t) {
|
|
1024
|
-
|
|
950
|
+
D(
|
|
1025
951
|
t[l === "dark" ? "dark" : "light"],
|
|
1026
952
|
c
|
|
1027
953
|
);
|
|
1028
954
|
return;
|
|
1029
955
|
}
|
|
1030
|
-
|
|
956
|
+
D(t, c);
|
|
1031
957
|
return;
|
|
1032
958
|
}
|
|
1033
959
|
},
|
|
1034
960
|
[l, t]
|
|
1035
961
|
);
|
|
1036
|
-
return /* @__PURE__ */ i(
|
|
1037
|
-
|
|
962
|
+
return /* @__PURE__ */ i(Y.Provider, { value: nt, children: /* @__PURE__ */ i(
|
|
963
|
+
le,
|
|
1038
964
|
{
|
|
1039
|
-
theme:
|
|
965
|
+
theme: rt,
|
|
1040
966
|
cssVariablesSelector: ".bn-mantine",
|
|
1041
967
|
getRootElement: () => {
|
|
1042
968
|
},
|
|
1043
969
|
children: /* @__PURE__ */ i(
|
|
1044
|
-
|
|
970
|
+
ee,
|
|
1045
971
|
{
|
|
1046
|
-
className:
|
|
972
|
+
className: J("bn-mantine", n || ""),
|
|
1047
973
|
theme: typeof t == "object" ? void 0 : t,
|
|
1048
974
|
...r,
|
|
1049
975
|
ref: a
|
|
@@ -1053,12 +979,12 @@ const q = ae(void 0), Ne = b((e, n) => {
|
|
|
1053
979
|
) });
|
|
1054
980
|
};
|
|
1055
981
|
export {
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
982
|
+
dt as BlockNoteView,
|
|
983
|
+
D as applyBlockNoteCSSVariablesFromTheme,
|
|
984
|
+
nt as components,
|
|
985
|
+
ut as darkDefaultTheme,
|
|
1060
986
|
m as defaultColorScheme,
|
|
1061
|
-
|
|
987
|
+
j as lightDefaultTheme,
|
|
1062
988
|
be as removeBlockNoteCSSVariables
|
|
1063
989
|
};
|
|
1064
990
|
//# sourceMappingURL=blocknote-mantine.js.map
|