@blocknote/mantine 0.14.5 → 0.15.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 +641 -573
- package/dist/blocknote-mantine.js.map +1 -1
- package/dist/blocknote-mantine.umd.cjs +11 -11
- 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 -4
- package/src/index.tsx +11 -2
- package/src/style.css +47 -0
- package/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenu.tsx +23 -0
- package/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuEmptyItem.tsx +25 -0
- package/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuItem.tsx +42 -0
- package/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuLoader.tsx +28 -0
- package/types/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenu.d.ts +7 -0
- package/types/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuEmptyItem.d.ts +6 -0
- package/types/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuItem.d.ts +8 -0
- package/types/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuLoader.d.ts +6 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import D, { forwardRef as R,
|
|
2
|
-
import { assertEmpty as
|
|
3
|
-
import { elementOverflow as
|
|
4
|
-
import {
|
|
5
|
-
import { mergeRefs as
|
|
6
|
-
var
|
|
1
|
+
import D, { forwardRef as R, useRef as Z, useEffect as Je, createContext as Br, useState as Yr, useCallback as fe, useContext as Ur } from "react";
|
|
2
|
+
import { assertEmpty as h, isSafari as ve, mergeCSSClasses as Gr } from "@blocknote/core";
|
|
3
|
+
import { elementOverflow as qe, useBlockNoteContext as Kr, usePrefersColorScheme as Hr, ComponentsContext as Jr, BlockNoteViewRaw as qr } from "@blocknote/react";
|
|
4
|
+
import { Group as F, Loader as Xe, Menu as O, CheckIcon as Ze, Tabs as X, LoadingOverlay as Xr, Button as U, FileInput as Zr, TextInput as Qe, Popover as Qr, PopoverTarget as et, PopoverDropdown as rt, ActionIcon as er, Stack as me, Text as Q, Badge as tt, Tooltip as nt, MantineProvider as ot } from "@mantine/core";
|
|
5
|
+
import { mergeRefs as te, useFocusWithin as at, useFocusTrap as it } from "@mantine/hooks";
|
|
6
|
+
var be = { exports: {} }, B = {};
|
|
7
7
|
/**
|
|
8
8
|
* @license React
|
|
9
9
|
* react-jsx-runtime.production.min.js
|
|
@@ -16,20 +16,20 @@ var ve = { exports: {} }, V = {};
|
|
|
16
16
|
var We;
|
|
17
17
|
function st() {
|
|
18
18
|
if (We)
|
|
19
|
-
return
|
|
19
|
+
return B;
|
|
20
20
|
We = 1;
|
|
21
|
-
var r = D, n = Symbol.for("react.element"), t = Symbol.for("react.fragment"),
|
|
21
|
+
var r = D, n = Symbol.for("react.element"), t = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, i = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
22
22
|
function f(c, d, b) {
|
|
23
|
-
var
|
|
24
|
-
b !== void 0 && (
|
|
25
|
-
for (
|
|
26
|
-
|
|
23
|
+
var x, w = {}, T = null, G = null;
|
|
24
|
+
b !== void 0 && (T = "" + b), d.key !== void 0 && (T = "" + d.key), d.ref !== void 0 && (G = d.ref);
|
|
25
|
+
for (x in d)
|
|
26
|
+
o.call(d, x) && !u.hasOwnProperty(x) && (w[x] = d[x]);
|
|
27
27
|
if (c && c.defaultProps)
|
|
28
|
-
for (
|
|
29
|
-
w[
|
|
30
|
-
return { $$typeof: n, type: c, key:
|
|
28
|
+
for (x in d = c.defaultProps, d)
|
|
29
|
+
w[x] === void 0 && (w[x] = d[x]);
|
|
30
|
+
return { $$typeof: n, type: c, key: T, ref: G, props: w, _owner: i.current };
|
|
31
31
|
}
|
|
32
|
-
return
|
|
32
|
+
return B.Fragment = t, B.jsx = f, B.jsxs = f, B;
|
|
33
33
|
}
|
|
34
34
|
var Y = {};
|
|
35
35
|
/**
|
|
@@ -41,62 +41,62 @@ var Y = {};
|
|
|
41
41
|
* This source code is licensed under the MIT license found in the
|
|
42
42
|
* LICENSE file in the root directory of this source tree.
|
|
43
43
|
*/
|
|
44
|
-
var
|
|
44
|
+
var Ve;
|
|
45
45
|
function lt() {
|
|
46
|
-
return
|
|
47
|
-
var r = D, n = Symbol.for("react.element"), t = Symbol.for("react.portal"),
|
|
48
|
-
function
|
|
46
|
+
return Ve || (Ve = 1, process.env.NODE_ENV !== "production" && function() {
|
|
47
|
+
var r = D, n = Symbol.for("react.element"), t = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), c = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), x = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), G = Symbol.for("react.offscreen"), ge = Symbol.iterator, ir = "@@iterator";
|
|
48
|
+
function sr(e) {
|
|
49
49
|
if (e === null || typeof e != "object")
|
|
50
50
|
return null;
|
|
51
|
-
var
|
|
52
|
-
return typeof
|
|
51
|
+
var a = ge && e[ge] || e[ir];
|
|
52
|
+
return typeof a == "function" ? a : null;
|
|
53
53
|
}
|
|
54
54
|
var L = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
55
|
-
function
|
|
55
|
+
function k(e) {
|
|
56
56
|
{
|
|
57
|
-
for (var
|
|
57
|
+
for (var a = arguments.length, s = new Array(a > 1 ? a - 1 : 0), v = 1; v < a; v++)
|
|
58
58
|
s[v - 1] = arguments[v];
|
|
59
|
-
|
|
59
|
+
lr("error", e, s);
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function lr(e, a, s) {
|
|
63
63
|
{
|
|
64
|
-
var v = L.ReactDebugCurrentFrame,
|
|
65
|
-
|
|
66
|
-
var
|
|
67
|
-
return String(
|
|
64
|
+
var v = L.ReactDebugCurrentFrame, p = v.getStackAddendum();
|
|
65
|
+
p !== "" && (a += "%s", s = s.concat([p]));
|
|
66
|
+
var j = s.map(function(g) {
|
|
67
|
+
return String(g);
|
|
68
68
|
});
|
|
69
|
-
|
|
69
|
+
j.unshift("Warning: " + a), Function.prototype.apply.call(console[e], console, j);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
var
|
|
73
|
-
|
|
74
|
-
function
|
|
75
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
72
|
+
var ur = !1, cr = !1, dr = !1, fr = !1, vr = !1, pe;
|
|
73
|
+
pe = Symbol.for("react.module.reference");
|
|
74
|
+
function br(e) {
|
|
75
|
+
return !!(typeof e == "string" || typeof e == "function" || e === o || e === u || vr || e === i || e === b || e === x || fr || e === G || ur || cr || dr || typeof e == "object" && e !== null && (e.$$typeof === T || e.$$typeof === w || e.$$typeof === f || e.$$typeof === c || e.$$typeof === d || // This needs to include all possible module reference object
|
|
76
76
|
// types supported by any Flight configuration anywhere since
|
|
77
77
|
// we don't know which Flight build this will end up being used
|
|
78
78
|
// with.
|
|
79
|
-
e.$$typeof ===
|
|
79
|
+
e.$$typeof === pe || e.getModuleId !== void 0));
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function mr(e, a, s) {
|
|
82
82
|
var v = e.displayName;
|
|
83
83
|
if (v)
|
|
84
84
|
return v;
|
|
85
|
-
var
|
|
86
|
-
return
|
|
85
|
+
var p = a.displayName || a.name || "";
|
|
86
|
+
return p !== "" ? s + "(" + p + ")" : s;
|
|
87
87
|
}
|
|
88
88
|
function he(e) {
|
|
89
89
|
return e.displayName || "Context";
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function N(e) {
|
|
92
92
|
if (e == null)
|
|
93
93
|
return null;
|
|
94
|
-
if (typeof e.tag == "number" &&
|
|
94
|
+
if (typeof e.tag == "number" && k("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
95
95
|
return e.displayName || e.name || null;
|
|
96
96
|
if (typeof e == "string")
|
|
97
97
|
return e;
|
|
98
98
|
switch (e) {
|
|
99
|
-
case
|
|
99
|
+
case o:
|
|
100
100
|
return "Fragment";
|
|
101
101
|
case t:
|
|
102
102
|
return "Portal";
|
|
@@ -106,26 +106,26 @@ function lt() {
|
|
|
106
106
|
return "StrictMode";
|
|
107
107
|
case b:
|
|
108
108
|
return "Suspense";
|
|
109
|
-
case
|
|
109
|
+
case x:
|
|
110
110
|
return "SuspenseList";
|
|
111
111
|
}
|
|
112
112
|
if (typeof e == "object")
|
|
113
113
|
switch (e.$$typeof) {
|
|
114
114
|
case c:
|
|
115
|
-
var
|
|
116
|
-
return he(
|
|
115
|
+
var a = e;
|
|
116
|
+
return he(a) + ".Consumer";
|
|
117
117
|
case f:
|
|
118
118
|
var s = e;
|
|
119
119
|
return he(s._context) + ".Provider";
|
|
120
120
|
case d:
|
|
121
|
-
return
|
|
121
|
+
return mr(e, e.render, "ForwardRef");
|
|
122
122
|
case w:
|
|
123
123
|
var v = e.displayName || null;
|
|
124
|
-
return v !== null ? v :
|
|
125
|
-
case
|
|
126
|
-
var
|
|
124
|
+
return v !== null ? v : N(e.type) || "Memo";
|
|
125
|
+
case T: {
|
|
126
|
+
var p = e, j = p._payload, g = p._init;
|
|
127
127
|
try {
|
|
128
|
-
return
|
|
128
|
+
return N(g(j));
|
|
129
129
|
} catch {
|
|
130
130
|
return null;
|
|
131
131
|
}
|
|
@@ -133,18 +133,18 @@ function lt() {
|
|
|
133
133
|
}
|
|
134
134
|
return null;
|
|
135
135
|
}
|
|
136
|
-
var M = Object.assign, z = 0, xe, ye, je, Re, Ee,
|
|
137
|
-
function
|
|
136
|
+
var M = Object.assign, z = 0, xe, ye, je, Re, Ee, Se, we;
|
|
137
|
+
function Te() {
|
|
138
138
|
}
|
|
139
|
-
|
|
140
|
-
function
|
|
139
|
+
Te.__reactDisabledLog = !0;
|
|
140
|
+
function gr() {
|
|
141
141
|
{
|
|
142
142
|
if (z === 0) {
|
|
143
|
-
xe = console.log, ye = console.info, je = console.warn, Re = console.error, Ee = console.group,
|
|
143
|
+
xe = console.log, ye = console.info, je = console.warn, Re = console.error, Ee = console.group, Se = console.groupCollapsed, we = console.groupEnd;
|
|
144
144
|
var e = {
|
|
145
145
|
configurable: !0,
|
|
146
146
|
enumerable: !0,
|
|
147
|
-
value:
|
|
147
|
+
value: Te,
|
|
148
148
|
writable: !0
|
|
149
149
|
};
|
|
150
150
|
Object.defineProperties(console, {
|
|
@@ -160,7 +160,7 @@ function lt() {
|
|
|
160
160
|
z++;
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function pr() {
|
|
164
164
|
{
|
|
165
165
|
if (z--, z === 0) {
|
|
166
166
|
var e = {
|
|
@@ -185,37 +185,37 @@ function lt() {
|
|
|
185
185
|
value: Ee
|
|
186
186
|
}),
|
|
187
187
|
groupCollapsed: M({}, e, {
|
|
188
|
-
value:
|
|
188
|
+
value: Se
|
|
189
189
|
}),
|
|
190
190
|
groupEnd: M({}, e, {
|
|
191
191
|
value: we
|
|
192
192
|
})
|
|
193
193
|
});
|
|
194
194
|
}
|
|
195
|
-
z < 0 &&
|
|
195
|
+
z < 0 && k("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
|
-
var
|
|
199
|
-
function
|
|
198
|
+
var ne = L.ReactCurrentDispatcher, oe;
|
|
199
|
+
function K(e, a, s) {
|
|
200
200
|
{
|
|
201
|
-
if (
|
|
201
|
+
if (oe === void 0)
|
|
202
202
|
try {
|
|
203
203
|
throw Error();
|
|
204
|
-
} catch (
|
|
205
|
-
var v =
|
|
206
|
-
|
|
204
|
+
} catch (p) {
|
|
205
|
+
var v = p.stack.trim().match(/\n( *(at )?)/);
|
|
206
|
+
oe = v && v[1] || "";
|
|
207
207
|
}
|
|
208
208
|
return `
|
|
209
|
-
` +
|
|
209
|
+
` + oe + e;
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
|
-
var
|
|
212
|
+
var ae = !1, H;
|
|
213
213
|
{
|
|
214
|
-
var
|
|
215
|
-
H = new
|
|
214
|
+
var hr = typeof WeakMap == "function" ? WeakMap : Map;
|
|
215
|
+
H = new hr();
|
|
216
216
|
}
|
|
217
|
-
function
|
|
218
|
-
if (!e ||
|
|
217
|
+
function ke(e, a) {
|
|
218
|
+
if (!e || ae)
|
|
219
219
|
return "";
|
|
220
220
|
{
|
|
221
221
|
var s = H.get(e);
|
|
@@ -223,188 +223,188 @@ function lt() {
|
|
|
223
223
|
return s;
|
|
224
224
|
}
|
|
225
225
|
var v;
|
|
226
|
-
|
|
227
|
-
var
|
|
226
|
+
ae = !0;
|
|
227
|
+
var p = Error.prepareStackTrace;
|
|
228
228
|
Error.prepareStackTrace = void 0;
|
|
229
|
-
var
|
|
230
|
-
|
|
229
|
+
var j;
|
|
230
|
+
j = ne.current, ne.current = null, gr();
|
|
231
231
|
try {
|
|
232
|
-
if (
|
|
233
|
-
var
|
|
232
|
+
if (a) {
|
|
233
|
+
var g = function() {
|
|
234
234
|
throw Error();
|
|
235
235
|
};
|
|
236
|
-
if (Object.defineProperty(
|
|
236
|
+
if (Object.defineProperty(g.prototype, "props", {
|
|
237
237
|
set: function() {
|
|
238
238
|
throw Error();
|
|
239
239
|
}
|
|
240
240
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
241
241
|
try {
|
|
242
|
-
Reflect.construct(
|
|
243
|
-
} catch (
|
|
244
|
-
v =
|
|
242
|
+
Reflect.construct(g, []);
|
|
243
|
+
} catch (P) {
|
|
244
|
+
v = P;
|
|
245
245
|
}
|
|
246
|
-
Reflect.construct(e, [],
|
|
246
|
+
Reflect.construct(e, [], g);
|
|
247
247
|
} else {
|
|
248
248
|
try {
|
|
249
|
-
|
|
250
|
-
} catch (
|
|
251
|
-
v =
|
|
249
|
+
g.call();
|
|
250
|
+
} catch (P) {
|
|
251
|
+
v = P;
|
|
252
252
|
}
|
|
253
|
-
e.call(
|
|
253
|
+
e.call(g.prototype);
|
|
254
254
|
}
|
|
255
255
|
} else {
|
|
256
256
|
try {
|
|
257
257
|
throw Error();
|
|
258
|
-
} catch (
|
|
259
|
-
v =
|
|
258
|
+
} catch (P) {
|
|
259
|
+
v = P;
|
|
260
260
|
}
|
|
261
261
|
e();
|
|
262
262
|
}
|
|
263
|
-
} catch (
|
|
264
|
-
if (
|
|
265
|
-
for (var
|
|
266
|
-
`),
|
|
267
|
-
`), E =
|
|
268
|
-
|
|
269
|
-
for (; E >= 1 &&
|
|
270
|
-
if (
|
|
271
|
-
if (E !== 1 ||
|
|
263
|
+
} catch (P) {
|
|
264
|
+
if (P && v && typeof P.stack == "string") {
|
|
265
|
+
for (var m = P.stack.split(`
|
|
266
|
+
`), C = v.stack.split(`
|
|
267
|
+
`), E = m.length - 1, S = C.length - 1; E >= 1 && S >= 0 && m[E] !== C[S]; )
|
|
268
|
+
S--;
|
|
269
|
+
for (; E >= 1 && S >= 0; E--, S--)
|
|
270
|
+
if (m[E] !== C[S]) {
|
|
271
|
+
if (E !== 1 || S !== 1)
|
|
272
272
|
do
|
|
273
|
-
if (E--,
|
|
274
|
-
var
|
|
275
|
-
` +
|
|
276
|
-
return e.displayName &&
|
|
273
|
+
if (E--, S--, S < 0 || m[E] !== C[S]) {
|
|
274
|
+
var _ = `
|
|
275
|
+
` + m[E].replace(" at new ", " at ");
|
|
276
|
+
return e.displayName && _.includes("<anonymous>") && (_ = _.replace("<anonymous>", e.displayName)), typeof e == "function" && H.set(e, _), _;
|
|
277
277
|
}
|
|
278
|
-
while (E >= 1 &&
|
|
278
|
+
while (E >= 1 && S >= 0);
|
|
279
279
|
break;
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
282
|
} finally {
|
|
283
|
-
|
|
283
|
+
ae = !1, ne.current = j, pr(), Error.prepareStackTrace = p;
|
|
284
284
|
}
|
|
285
|
-
var $ = e ? e.displayName || e.name : "", I = $ ?
|
|
285
|
+
var $ = e ? e.displayName || e.name : "", I = $ ? K($) : "";
|
|
286
286
|
return typeof e == "function" && H.set(e, I), I;
|
|
287
287
|
}
|
|
288
|
-
function
|
|
289
|
-
return
|
|
288
|
+
function xr(e, a, s) {
|
|
289
|
+
return ke(e, !1);
|
|
290
290
|
}
|
|
291
|
-
function
|
|
292
|
-
var
|
|
293
|
-
return !!(
|
|
291
|
+
function yr(e) {
|
|
292
|
+
var a = e.prototype;
|
|
293
|
+
return !!(a && a.isReactComponent);
|
|
294
294
|
}
|
|
295
|
-
function J(e,
|
|
295
|
+
function J(e, a, s) {
|
|
296
296
|
if (e == null)
|
|
297
297
|
return "";
|
|
298
298
|
if (typeof e == "function")
|
|
299
|
-
return
|
|
299
|
+
return ke(e, yr(e));
|
|
300
300
|
if (typeof e == "string")
|
|
301
|
-
return
|
|
301
|
+
return K(e);
|
|
302
302
|
switch (e) {
|
|
303
303
|
case b:
|
|
304
|
-
return
|
|
305
|
-
case
|
|
306
|
-
return
|
|
304
|
+
return K("Suspense");
|
|
305
|
+
case x:
|
|
306
|
+
return K("SuspenseList");
|
|
307
307
|
}
|
|
308
308
|
if (typeof e == "object")
|
|
309
309
|
switch (e.$$typeof) {
|
|
310
310
|
case d:
|
|
311
|
-
return
|
|
311
|
+
return xr(e.render);
|
|
312
312
|
case w:
|
|
313
|
-
return J(e.type,
|
|
314
|
-
case
|
|
315
|
-
var v = e,
|
|
313
|
+
return J(e.type, a, s);
|
|
314
|
+
case T: {
|
|
315
|
+
var v = e, p = v._payload, j = v._init;
|
|
316
316
|
try {
|
|
317
|
-
return J(
|
|
317
|
+
return J(j(p), a, s);
|
|
318
318
|
} catch {
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
322
|
return "";
|
|
323
323
|
}
|
|
324
|
-
var W = Object.prototype.hasOwnProperty,
|
|
324
|
+
var W = Object.prototype.hasOwnProperty, Ce = {}, Pe = L.ReactDebugCurrentFrame;
|
|
325
325
|
function q(e) {
|
|
326
326
|
if (e) {
|
|
327
|
-
var
|
|
328
|
-
|
|
327
|
+
var a = e._owner, s = J(e.type, e._source, a ? a.type : null);
|
|
328
|
+
Pe.setExtraStackFrame(s);
|
|
329
329
|
} else
|
|
330
|
-
|
|
330
|
+
Pe.setExtraStackFrame(null);
|
|
331
331
|
}
|
|
332
|
-
function
|
|
332
|
+
function jr(e, a, s, v, p) {
|
|
333
333
|
{
|
|
334
|
-
var
|
|
335
|
-
for (var
|
|
336
|
-
if (
|
|
337
|
-
var
|
|
334
|
+
var j = Function.call.bind(W);
|
|
335
|
+
for (var g in e)
|
|
336
|
+
if (j(e, g)) {
|
|
337
|
+
var m = void 0;
|
|
338
338
|
try {
|
|
339
|
-
if (typeof e[
|
|
340
|
-
var
|
|
341
|
-
throw
|
|
339
|
+
if (typeof e[g] != "function") {
|
|
340
|
+
var C = Error((v || "React class") + ": " + s + " type `" + g + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[g] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
341
|
+
throw C.name = "Invariant Violation", C;
|
|
342
342
|
}
|
|
343
|
-
|
|
343
|
+
m = e[g](a, g, v, s, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
344
344
|
} catch (E) {
|
|
345
|
-
|
|
345
|
+
m = E;
|
|
346
346
|
}
|
|
347
|
-
|
|
347
|
+
m && !(m instanceof Error) && (q(p), k("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", v || "React class", s, g, typeof m), q(null)), m instanceof Error && !(m.message in Ce) && (Ce[m.message] = !0, q(p), k("Failed %s type: %s", s, m.message), q(null));
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
|
-
var
|
|
352
|
-
function
|
|
353
|
-
return
|
|
351
|
+
var Rr = Array.isArray;
|
|
352
|
+
function ie(e) {
|
|
353
|
+
return Rr(e);
|
|
354
354
|
}
|
|
355
|
-
function
|
|
355
|
+
function Er(e) {
|
|
356
356
|
{
|
|
357
|
-
var
|
|
357
|
+
var a = typeof Symbol == "function" && Symbol.toStringTag, s = a && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
358
358
|
return s;
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
|
-
function
|
|
361
|
+
function Sr(e) {
|
|
362
362
|
try {
|
|
363
|
-
return
|
|
363
|
+
return _e(e), !1;
|
|
364
364
|
} catch {
|
|
365
365
|
return !0;
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
|
-
function
|
|
368
|
+
function _e(e) {
|
|
369
369
|
return "" + e;
|
|
370
370
|
}
|
|
371
371
|
function Oe(e) {
|
|
372
|
-
if (
|
|
373
|
-
return
|
|
372
|
+
if (Sr(e))
|
|
373
|
+
return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Er(e)), _e(e);
|
|
374
374
|
}
|
|
375
|
-
var
|
|
375
|
+
var V = L.ReactCurrentOwner, wr = {
|
|
376
376
|
key: !0,
|
|
377
377
|
ref: !0,
|
|
378
378
|
__self: !0,
|
|
379
379
|
__source: !0
|
|
380
|
-
}, Fe,
|
|
381
|
-
|
|
382
|
-
function
|
|
380
|
+
}, Fe, Ne, se;
|
|
381
|
+
se = {};
|
|
382
|
+
function Tr(e) {
|
|
383
383
|
if (W.call(e, "ref")) {
|
|
384
|
-
var
|
|
385
|
-
if (
|
|
384
|
+
var a = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
385
|
+
if (a && a.isReactWarning)
|
|
386
386
|
return !1;
|
|
387
387
|
}
|
|
388
388
|
return e.ref !== void 0;
|
|
389
389
|
}
|
|
390
|
-
function
|
|
390
|
+
function kr(e) {
|
|
391
391
|
if (W.call(e, "key")) {
|
|
392
|
-
var
|
|
393
|
-
if (
|
|
392
|
+
var a = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
393
|
+
if (a && a.isReactWarning)
|
|
394
394
|
return !1;
|
|
395
395
|
}
|
|
396
396
|
return e.key !== void 0;
|
|
397
397
|
}
|
|
398
|
-
function
|
|
399
|
-
if (typeof e.ref == "string" &&
|
|
400
|
-
var s =
|
|
401
|
-
|
|
398
|
+
function Cr(e, a) {
|
|
399
|
+
if (typeof e.ref == "string" && V.current && a && V.current.stateNode !== a) {
|
|
400
|
+
var s = N(V.current.type);
|
|
401
|
+
se[s] || (k('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', N(V.current.type), e.ref), se[s] = !0);
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
|
-
function
|
|
404
|
+
function Pr(e, a) {
|
|
405
405
|
{
|
|
406
406
|
var s = function() {
|
|
407
|
-
Fe || (Fe = !0,
|
|
407
|
+
Fe || (Fe = !0, k("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", a));
|
|
408
408
|
};
|
|
409
409
|
s.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
410
410
|
get: s,
|
|
@@ -412,10 +412,10 @@ function lt() {
|
|
|
412
412
|
});
|
|
413
413
|
}
|
|
414
414
|
}
|
|
415
|
-
function
|
|
415
|
+
function _r(e, a) {
|
|
416
416
|
{
|
|
417
417
|
var s = function() {
|
|
418
|
-
|
|
418
|
+
Ne || (Ne = !0, k("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", a));
|
|
419
419
|
};
|
|
420
420
|
s.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
421
421
|
get: s,
|
|
@@ -423,70 +423,70 @@ function lt() {
|
|
|
423
423
|
});
|
|
424
424
|
}
|
|
425
425
|
}
|
|
426
|
-
var
|
|
427
|
-
var
|
|
426
|
+
var Or = function(e, a, s, v, p, j, g) {
|
|
427
|
+
var m = {
|
|
428
428
|
// This tag allows us to uniquely identify this as a React Element
|
|
429
429
|
$$typeof: n,
|
|
430
430
|
// Built-in properties that belong on the element
|
|
431
431
|
type: e,
|
|
432
|
-
key:
|
|
432
|
+
key: a,
|
|
433
433
|
ref: s,
|
|
434
|
-
props:
|
|
434
|
+
props: g,
|
|
435
435
|
// Record the component responsible for creating this element.
|
|
436
|
-
_owner:
|
|
436
|
+
_owner: j
|
|
437
437
|
};
|
|
438
|
-
return
|
|
438
|
+
return m._store = {}, Object.defineProperty(m._store, "validated", {
|
|
439
439
|
configurable: !1,
|
|
440
440
|
enumerable: !1,
|
|
441
441
|
writable: !0,
|
|
442
442
|
value: !1
|
|
443
|
-
}), Object.defineProperty(
|
|
443
|
+
}), Object.defineProperty(m, "_self", {
|
|
444
444
|
configurable: !1,
|
|
445
445
|
enumerable: !1,
|
|
446
446
|
writable: !1,
|
|
447
447
|
value: v
|
|
448
|
-
}), Object.defineProperty(
|
|
448
|
+
}), Object.defineProperty(m, "_source", {
|
|
449
449
|
configurable: !1,
|
|
450
450
|
enumerable: !1,
|
|
451
451
|
writable: !1,
|
|
452
|
-
value:
|
|
453
|
-
}), Object.freeze && (Object.freeze(
|
|
452
|
+
value: p
|
|
453
|
+
}), Object.freeze && (Object.freeze(m.props), Object.freeze(m)), m;
|
|
454
454
|
};
|
|
455
|
-
function
|
|
455
|
+
function Fr(e, a, s, v, p) {
|
|
456
456
|
{
|
|
457
|
-
var
|
|
458
|
-
s !== void 0 && (Oe(s),
|
|
459
|
-
for (
|
|
460
|
-
W.call(
|
|
457
|
+
var j, g = {}, m = null, C = null;
|
|
458
|
+
s !== void 0 && (Oe(s), m = "" + s), kr(a) && (Oe(a.key), m = "" + a.key), Tr(a) && (C = a.ref, Cr(a, p));
|
|
459
|
+
for (j in a)
|
|
460
|
+
W.call(a, j) && !wr.hasOwnProperty(j) && (g[j] = a[j]);
|
|
461
461
|
if (e && e.defaultProps) {
|
|
462
462
|
var E = e.defaultProps;
|
|
463
|
-
for (
|
|
464
|
-
|
|
463
|
+
for (j in E)
|
|
464
|
+
g[j] === void 0 && (g[j] = E[j]);
|
|
465
465
|
}
|
|
466
|
-
if (
|
|
467
|
-
var
|
|
468
|
-
|
|
466
|
+
if (m || C) {
|
|
467
|
+
var S = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
468
|
+
m && Pr(g, S), C && _r(g, S);
|
|
469
469
|
}
|
|
470
|
-
return
|
|
470
|
+
return Or(e, m, C, p, v, V.current, g);
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
|
-
var
|
|
473
|
+
var le = L.ReactCurrentOwner, De = L.ReactDebugCurrentFrame;
|
|
474
474
|
function A(e) {
|
|
475
475
|
if (e) {
|
|
476
|
-
var
|
|
477
|
-
|
|
476
|
+
var a = e._owner, s = J(e.type, e._source, a ? a.type : null);
|
|
477
|
+
De.setExtraStackFrame(s);
|
|
478
478
|
} else
|
|
479
|
-
|
|
479
|
+
De.setExtraStackFrame(null);
|
|
480
480
|
}
|
|
481
|
-
var
|
|
482
|
-
|
|
483
|
-
function
|
|
481
|
+
var ue;
|
|
482
|
+
ue = !1;
|
|
483
|
+
function ce(e) {
|
|
484
484
|
return typeof e == "object" && e !== null && e.$$typeof === n;
|
|
485
485
|
}
|
|
486
486
|
function Me() {
|
|
487
487
|
{
|
|
488
|
-
if (
|
|
489
|
-
var e =
|
|
488
|
+
if (le.current) {
|
|
489
|
+
var e = N(le.current.type);
|
|
490
490
|
if (e)
|
|
491
491
|
return `
|
|
492
492
|
|
|
@@ -495,166 +495,166 @@ Check the render method of \`` + e + "`.";
|
|
|
495
495
|
return "";
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
|
-
function
|
|
498
|
+
function Nr(e) {
|
|
499
499
|
{
|
|
500
500
|
if (e !== void 0) {
|
|
501
|
-
var
|
|
501
|
+
var a = e.fileName.replace(/^.*[\\\/]/, ""), s = e.lineNumber;
|
|
502
502
|
return `
|
|
503
503
|
|
|
504
|
-
Check your code at ` +
|
|
504
|
+
Check your code at ` + a + ":" + s + ".";
|
|
505
505
|
}
|
|
506
506
|
return "";
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
509
|
var Ie = {};
|
|
510
|
-
function
|
|
510
|
+
function Dr(e) {
|
|
511
511
|
{
|
|
512
|
-
var
|
|
513
|
-
if (!
|
|
512
|
+
var a = Me();
|
|
513
|
+
if (!a) {
|
|
514
514
|
var s = typeof e == "string" ? e : e.displayName || e.name;
|
|
515
|
-
s && (
|
|
515
|
+
s && (a = `
|
|
516
516
|
|
|
517
517
|
Check the top-level render call using <` + s + ">.");
|
|
518
518
|
}
|
|
519
|
-
return
|
|
519
|
+
return a;
|
|
520
520
|
}
|
|
521
521
|
}
|
|
522
|
-
function Le(e,
|
|
522
|
+
function Le(e, a) {
|
|
523
523
|
{
|
|
524
524
|
if (!e._store || e._store.validated || e.key != null)
|
|
525
525
|
return;
|
|
526
526
|
e._store.validated = !0;
|
|
527
|
-
var s =
|
|
527
|
+
var s = Dr(a);
|
|
528
528
|
if (Ie[s])
|
|
529
529
|
return;
|
|
530
530
|
Ie[s] = !0;
|
|
531
531
|
var v = "";
|
|
532
|
-
e && e._owner && e._owner !==
|
|
532
|
+
e && e._owner && e._owner !== le.current && (v = " It was passed a child from " + N(e._owner.type) + "."), A(e), k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', s, v), A(null);
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
|
-
function Ae(e,
|
|
535
|
+
function Ae(e, a) {
|
|
536
536
|
{
|
|
537
537
|
if (typeof e != "object")
|
|
538
538
|
return;
|
|
539
|
-
if (
|
|
539
|
+
if (ie(e))
|
|
540
540
|
for (var s = 0; s < e.length; s++) {
|
|
541
541
|
var v = e[s];
|
|
542
|
-
|
|
542
|
+
ce(v) && Le(v, a);
|
|
543
543
|
}
|
|
544
|
-
else if (
|
|
544
|
+
else if (ce(e))
|
|
545
545
|
e._store && (e._store.validated = !0);
|
|
546
546
|
else if (e) {
|
|
547
|
-
var
|
|
548
|
-
if (typeof
|
|
549
|
-
for (var
|
|
550
|
-
|
|
547
|
+
var p = sr(e);
|
|
548
|
+
if (typeof p == "function" && p !== e.entries)
|
|
549
|
+
for (var j = p.call(e), g; !(g = j.next()).done; )
|
|
550
|
+
ce(g.value) && Le(g.value, a);
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
|
-
function
|
|
554
|
+
function Mr(e) {
|
|
555
555
|
{
|
|
556
|
-
var
|
|
557
|
-
if (
|
|
556
|
+
var a = e.type;
|
|
557
|
+
if (a == null || typeof a == "string")
|
|
558
558
|
return;
|
|
559
559
|
var s;
|
|
560
|
-
if (typeof
|
|
561
|
-
s =
|
|
562
|
-
else if (typeof
|
|
560
|
+
if (typeof a == "function")
|
|
561
|
+
s = a.propTypes;
|
|
562
|
+
else if (typeof a == "object" && (a.$$typeof === d || // Note: Memo only checks outer props here.
|
|
563
563
|
// Inner props are checked in the reconciler.
|
|
564
|
-
|
|
565
|
-
s =
|
|
564
|
+
a.$$typeof === w))
|
|
565
|
+
s = a.propTypes;
|
|
566
566
|
else
|
|
567
567
|
return;
|
|
568
568
|
if (s) {
|
|
569
|
-
var v =
|
|
570
|
-
|
|
571
|
-
} else if (
|
|
572
|
-
|
|
573
|
-
var
|
|
574
|
-
|
|
569
|
+
var v = N(a);
|
|
570
|
+
jr(s, e.props, "prop", v, e);
|
|
571
|
+
} else if (a.PropTypes !== void 0 && !ue) {
|
|
572
|
+
ue = !0;
|
|
573
|
+
var p = N(a);
|
|
574
|
+
k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", p || "Unknown");
|
|
575
575
|
}
|
|
576
|
-
typeof
|
|
576
|
+
typeof a.getDefaultProps == "function" && !a.getDefaultProps.isReactClassApproved && k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
|
-
function
|
|
579
|
+
function Ir(e) {
|
|
580
580
|
{
|
|
581
|
-
for (var
|
|
582
|
-
var v =
|
|
581
|
+
for (var a = Object.keys(e.props), s = 0; s < a.length; s++) {
|
|
582
|
+
var v = a[s];
|
|
583
583
|
if (v !== "children" && v !== "key") {
|
|
584
|
-
A(e),
|
|
584
|
+
A(e), k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), A(null);
|
|
585
585
|
break;
|
|
586
586
|
}
|
|
587
587
|
}
|
|
588
|
-
e.ref !== null && (A(e),
|
|
588
|
+
e.ref !== null && (A(e), k("Invalid attribute `ref` supplied to `React.Fragment`."), A(null));
|
|
589
589
|
}
|
|
590
590
|
}
|
|
591
591
|
var $e = {};
|
|
592
|
-
function ze(e,
|
|
592
|
+
function ze(e, a, s, v, p, j) {
|
|
593
593
|
{
|
|
594
|
-
var
|
|
595
|
-
if (!
|
|
596
|
-
var
|
|
597
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
|
598
|
-
var
|
|
599
|
-
|
|
594
|
+
var g = br(e);
|
|
595
|
+
if (!g) {
|
|
596
|
+
var m = "";
|
|
597
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (m += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
598
|
+
var C = Nr(p);
|
|
599
|
+
C ? m += C : m += Me();
|
|
600
600
|
var E;
|
|
601
|
-
e === null ? E = "null" :
|
|
601
|
+
e === null ? E = "null" : ie(e) ? E = "array" : e !== void 0 && e.$$typeof === n ? (E = "<" + (N(e.type) || "Unknown") + " />", m = " Did you accidentally export a JSX literal instead of a component?") : E = typeof e, k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", E, m);
|
|
602
602
|
}
|
|
603
|
-
var
|
|
604
|
-
if (
|
|
605
|
-
return
|
|
606
|
-
if (
|
|
607
|
-
var
|
|
608
|
-
if (
|
|
603
|
+
var S = Fr(e, a, s, p, j);
|
|
604
|
+
if (S == null)
|
|
605
|
+
return S;
|
|
606
|
+
if (g) {
|
|
607
|
+
var _ = a.children;
|
|
608
|
+
if (_ !== void 0)
|
|
609
609
|
if (v)
|
|
610
|
-
if (
|
|
611
|
-
for (var $ = 0; $ <
|
|
612
|
-
Ae(
|
|
613
|
-
Object.freeze && Object.freeze(
|
|
610
|
+
if (ie(_)) {
|
|
611
|
+
for (var $ = 0; $ < _.length; $++)
|
|
612
|
+
Ae(_[$], e);
|
|
613
|
+
Object.freeze && Object.freeze(_);
|
|
614
614
|
} else
|
|
615
|
-
|
|
615
|
+
k("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
616
616
|
else
|
|
617
|
-
Ae(
|
|
617
|
+
Ae(_, e);
|
|
618
618
|
}
|
|
619
|
-
if (W.call(
|
|
620
|
-
var I =
|
|
621
|
-
return
|
|
622
|
-
}),
|
|
623
|
-
if (!$e[I +
|
|
624
|
-
var
|
|
625
|
-
|
|
619
|
+
if (W.call(a, "key")) {
|
|
620
|
+
var I = N(e), P = Object.keys(a).filter(function(Vr) {
|
|
621
|
+
return Vr !== "key";
|
|
622
|
+
}), de = P.length > 0 ? "{key: someKey, " + P.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
623
|
+
if (!$e[I + de]) {
|
|
624
|
+
var Wr = P.length > 0 ? "{" + P.join(": ..., ") + ": ...}" : "{}";
|
|
625
|
+
k(`A props object containing a "key" prop is being spread into JSX:
|
|
626
626
|
let props = %s;
|
|
627
627
|
<%s {...props} />
|
|
628
628
|
React keys must be passed directly to JSX without using spread:
|
|
629
629
|
let props = %s;
|
|
630
|
-
<%s key={someKey} {...props} />`,
|
|
630
|
+
<%s key={someKey} {...props} />`, de, I, Wr, I), $e[I + de] = !0;
|
|
631
631
|
}
|
|
632
632
|
}
|
|
633
|
-
return e ===
|
|
633
|
+
return e === o ? Ir(S) : Mr(S), S;
|
|
634
634
|
}
|
|
635
635
|
}
|
|
636
|
-
function
|
|
637
|
-
return ze(e,
|
|
636
|
+
function Lr(e, a, s) {
|
|
637
|
+
return ze(e, a, s, !0);
|
|
638
638
|
}
|
|
639
|
-
function
|
|
640
|
-
return ze(e,
|
|
639
|
+
function Ar(e, a, s) {
|
|
640
|
+
return ze(e, a, s, !1);
|
|
641
641
|
}
|
|
642
|
-
var
|
|
643
|
-
Y.Fragment =
|
|
642
|
+
var $r = Ar, zr = Lr;
|
|
643
|
+
Y.Fragment = o, Y.jsx = $r, Y.jsxs = zr;
|
|
644
644
|
}()), Y;
|
|
645
645
|
}
|
|
646
|
-
process.env.NODE_ENV === "production" ?
|
|
647
|
-
var l =
|
|
648
|
-
const
|
|
649
|
-
const
|
|
646
|
+
process.env.NODE_ENV === "production" ? be.exports = st() : be.exports = lt();
|
|
647
|
+
var l = be.exports;
|
|
648
|
+
const rr = (r, n, t = !1) => {
|
|
649
|
+
const o = [];
|
|
650
650
|
function i(u, f = "--bn") {
|
|
651
651
|
for (const c in u) {
|
|
652
652
|
const d = c.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(), b = `${f}-${d}`;
|
|
653
653
|
typeof u[c] != "object" ? (typeof u[c] == "number" && (u[c] = `${u[c]}px`), t ? n.style.removeProperty(b) : n.style.setProperty(b, u[c].toString())) : i(u[c], b);
|
|
654
654
|
}
|
|
655
655
|
}
|
|
656
|
-
return i(r),
|
|
657
|
-
},
|
|
656
|
+
return i(r), o;
|
|
657
|
+
}, Be = (r, n) => rr(r, n), ut = {
|
|
658
658
|
colors: {
|
|
659
659
|
editor: {
|
|
660
660
|
text: void 0,
|
|
@@ -724,143 +724,173 @@ const Ze = (r, n, t = !1) => {
|
|
|
724
724
|
},
|
|
725
725
|
borderRadius: void 0,
|
|
726
726
|
fontFamily: void 0
|
|
727
|
-
}, ct = (r) =>
|
|
727
|
+
}, ct = (r) => rr(ut, r, !0), dt = R((r, n) => {
|
|
728
|
+
const { className: t, children: o, id: i, columns: u, ...f } = r;
|
|
729
|
+
return h(f), /* @__PURE__ */ l.jsx(
|
|
730
|
+
"div",
|
|
731
|
+
{
|
|
732
|
+
className: t,
|
|
733
|
+
style: { gridTemplateColumns: `repeat(${u}, 1fr)` },
|
|
734
|
+
ref: n,
|
|
735
|
+
id: i,
|
|
736
|
+
role: "grid",
|
|
737
|
+
children: o
|
|
738
|
+
}
|
|
739
|
+
);
|
|
740
|
+
}), ft = R((r, n) => {
|
|
741
|
+
const { className: t, children: o, columns: i, ...u } = r;
|
|
742
|
+
return h(u), /* @__PURE__ */ l.jsx(
|
|
743
|
+
F,
|
|
744
|
+
{
|
|
745
|
+
className: t,
|
|
746
|
+
style: { gridColumn: `1 / ${i + 1}` },
|
|
747
|
+
ref: n,
|
|
748
|
+
children: /* @__PURE__ */ l.jsx(F, { className: "bn-mt-suggestion-menu-item-title", children: o })
|
|
749
|
+
}
|
|
750
|
+
);
|
|
751
|
+
}), vt = R((r, n) => {
|
|
752
|
+
const { className: t, isSelected: o, onClick: i, item: u, id: f, ...c } = r;
|
|
753
|
+
h(c);
|
|
754
|
+
const d = Z(null);
|
|
755
|
+
return Je(() => {
|
|
756
|
+
if (!d.current || !o)
|
|
757
|
+
return;
|
|
758
|
+
const b = qe(d.current);
|
|
759
|
+
b === "top" ? d.current.scrollIntoView(!0) : b === "bottom" && d.current.scrollIntoView(!1);
|
|
760
|
+
}, [o]), /* @__PURE__ */ l.jsx(
|
|
761
|
+
"div",
|
|
762
|
+
{
|
|
763
|
+
className: t,
|
|
764
|
+
ref: te(n, d),
|
|
765
|
+
id: f,
|
|
766
|
+
role: "option",
|
|
767
|
+
onClick: i,
|
|
768
|
+
"aria-selected": o || void 0,
|
|
769
|
+
children: u.icon
|
|
770
|
+
}
|
|
771
|
+
);
|
|
772
|
+
}), bt = R((r, n) => {
|
|
728
773
|
const {
|
|
729
774
|
className: t,
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
autoFocus: c,
|
|
735
|
-
placeholder: d,
|
|
736
|
-
onKeyDown: b,
|
|
737
|
-
onChange: h,
|
|
738
|
-
onSubmit: w,
|
|
739
|
-
...k
|
|
775
|
+
children: o,
|
|
776
|
+
// unused, using "dots" instead
|
|
777
|
+
columns: i,
|
|
778
|
+
...u
|
|
740
779
|
} = r;
|
|
741
|
-
return
|
|
742
|
-
|
|
780
|
+
return h(u), /* @__PURE__ */ l.jsx(
|
|
781
|
+
Xe,
|
|
743
782
|
{
|
|
744
|
-
size: "xs",
|
|
745
783
|
className: t,
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
leftSection: u,
|
|
750
|
-
value: f,
|
|
751
|
-
autoFocus: c,
|
|
752
|
-
"data-autofocus": c ? "true" : void 0,
|
|
753
|
-
placeholder: d,
|
|
754
|
-
onKeyDown: b,
|
|
755
|
-
onChange: h,
|
|
756
|
-
onSubmit: w
|
|
784
|
+
style: { gridColumn: `1 / ${i + 1}` },
|
|
785
|
+
type: "dots",
|
|
786
|
+
ref: n
|
|
757
787
|
}
|
|
758
788
|
);
|
|
759
789
|
});
|
|
760
|
-
var
|
|
790
|
+
var tr = {
|
|
761
791
|
color: void 0,
|
|
762
792
|
size: void 0,
|
|
763
793
|
className: void 0,
|
|
764
794
|
style: void 0,
|
|
765
795
|
attr: void 0
|
|
766
|
-
}, Ye = D.createContext && /* @__PURE__ */ D.createContext(
|
|
767
|
-
function
|
|
796
|
+
}, Ye = D.createContext && /* @__PURE__ */ D.createContext(tr), mt = ["attr", "size", "title"];
|
|
797
|
+
function gt(r, n) {
|
|
768
798
|
if (r == null)
|
|
769
799
|
return {};
|
|
770
|
-
var t =
|
|
800
|
+
var t = pt(r, n), o, i;
|
|
771
801
|
if (Object.getOwnPropertySymbols) {
|
|
772
802
|
var u = Object.getOwnPropertySymbols(r);
|
|
773
803
|
for (i = 0; i < u.length; i++)
|
|
774
|
-
|
|
804
|
+
o = u[i], !(n.indexOf(o) >= 0) && Object.prototype.propertyIsEnumerable.call(r, o) && (t[o] = r[o]);
|
|
775
805
|
}
|
|
776
806
|
return t;
|
|
777
807
|
}
|
|
778
|
-
function
|
|
808
|
+
function pt(r, n) {
|
|
779
809
|
if (r == null)
|
|
780
810
|
return {};
|
|
781
811
|
var t = {};
|
|
782
|
-
for (var
|
|
783
|
-
if (Object.prototype.hasOwnProperty.call(r,
|
|
784
|
-
if (n.indexOf(
|
|
812
|
+
for (var o in r)
|
|
813
|
+
if (Object.prototype.hasOwnProperty.call(r, o)) {
|
|
814
|
+
if (n.indexOf(o) >= 0)
|
|
785
815
|
continue;
|
|
786
|
-
t[
|
|
816
|
+
t[o] = r[o];
|
|
787
817
|
}
|
|
788
818
|
return t;
|
|
789
819
|
}
|
|
790
|
-
function
|
|
791
|
-
return
|
|
820
|
+
function ee() {
|
|
821
|
+
return ee = Object.assign ? Object.assign.bind() : function(r) {
|
|
792
822
|
for (var n = 1; n < arguments.length; n++) {
|
|
793
823
|
var t = arguments[n];
|
|
794
|
-
for (var
|
|
795
|
-
Object.prototype.hasOwnProperty.call(t,
|
|
824
|
+
for (var o in t)
|
|
825
|
+
Object.prototype.hasOwnProperty.call(t, o) && (r[o] = t[o]);
|
|
796
826
|
}
|
|
797
827
|
return r;
|
|
798
|
-
},
|
|
828
|
+
}, ee.apply(this, arguments);
|
|
799
829
|
}
|
|
800
830
|
function Ue(r, n) {
|
|
801
831
|
var t = Object.keys(r);
|
|
802
832
|
if (Object.getOwnPropertySymbols) {
|
|
803
|
-
var
|
|
804
|
-
n && (
|
|
833
|
+
var o = Object.getOwnPropertySymbols(r);
|
|
834
|
+
n && (o = o.filter(function(i) {
|
|
805
835
|
return Object.getOwnPropertyDescriptor(r, i).enumerable;
|
|
806
|
-
})), t.push.apply(t,
|
|
836
|
+
})), t.push.apply(t, o);
|
|
807
837
|
}
|
|
808
838
|
return t;
|
|
809
839
|
}
|
|
810
|
-
function
|
|
840
|
+
function re(r) {
|
|
811
841
|
for (var n = 1; n < arguments.length; n++) {
|
|
812
842
|
var t = arguments[n] != null ? arguments[n] : {};
|
|
813
|
-
n % 2 ? Ue(Object(t), !0).forEach(function(
|
|
814
|
-
|
|
815
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : Ue(Object(t)).forEach(function(
|
|
816
|
-
Object.defineProperty(r,
|
|
843
|
+
n % 2 ? Ue(Object(t), !0).forEach(function(o) {
|
|
844
|
+
ht(r, o, t[o]);
|
|
845
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : Ue(Object(t)).forEach(function(o) {
|
|
846
|
+
Object.defineProperty(r, o, Object.getOwnPropertyDescriptor(t, o));
|
|
817
847
|
});
|
|
818
848
|
}
|
|
819
849
|
return r;
|
|
820
850
|
}
|
|
821
|
-
function
|
|
822
|
-
return n =
|
|
851
|
+
function ht(r, n, t) {
|
|
852
|
+
return n = xt(n), n in r ? Object.defineProperty(r, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[n] = t, r;
|
|
823
853
|
}
|
|
824
|
-
function
|
|
825
|
-
var n =
|
|
854
|
+
function xt(r) {
|
|
855
|
+
var n = yt(r, "string");
|
|
826
856
|
return typeof n == "symbol" ? n : n + "";
|
|
827
857
|
}
|
|
828
|
-
function
|
|
858
|
+
function yt(r, n) {
|
|
829
859
|
if (typeof r != "object" || !r)
|
|
830
860
|
return r;
|
|
831
861
|
var t = r[Symbol.toPrimitive];
|
|
832
862
|
if (t !== void 0) {
|
|
833
|
-
var
|
|
834
|
-
if (typeof
|
|
835
|
-
return
|
|
863
|
+
var o = t.call(r, n || "default");
|
|
864
|
+
if (typeof o != "object")
|
|
865
|
+
return o;
|
|
836
866
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
837
867
|
}
|
|
838
868
|
return (n === "string" ? String : Number)(r);
|
|
839
869
|
}
|
|
840
|
-
function
|
|
841
|
-
return r && r.map((n, t) => /* @__PURE__ */ D.createElement(n.tag,
|
|
870
|
+
function nr(r) {
|
|
871
|
+
return r && r.map((n, t) => /* @__PURE__ */ D.createElement(n.tag, re({
|
|
842
872
|
key: t
|
|
843
|
-
}, n.attr),
|
|
873
|
+
}, n.attr), nr(n.child)));
|
|
844
874
|
}
|
|
845
|
-
function
|
|
846
|
-
return (n) => /* @__PURE__ */ D.createElement(
|
|
847
|
-
attr:
|
|
848
|
-
}, n),
|
|
875
|
+
function or(r) {
|
|
876
|
+
return (n) => /* @__PURE__ */ D.createElement(jt, ee({
|
|
877
|
+
attr: re({}, r.attr)
|
|
878
|
+
}, n), nr(r.child));
|
|
849
879
|
}
|
|
850
|
-
function
|
|
880
|
+
function jt(r) {
|
|
851
881
|
var n = (t) => {
|
|
852
882
|
var {
|
|
853
|
-
attr:
|
|
883
|
+
attr: o,
|
|
854
884
|
size: i,
|
|
855
885
|
title: u
|
|
856
|
-
} = r, f =
|
|
857
|
-
return t.className && (d = t.className), r.className && (d = (d ? d + " " : "") + r.className), /* @__PURE__ */ D.createElement("svg",
|
|
886
|
+
} = r, f = gt(r, mt), c = i || t.size || "1em", d;
|
|
887
|
+
return t.className && (d = t.className), r.className && (d = (d ? d + " " : "") + r.className), /* @__PURE__ */ D.createElement("svg", ee({
|
|
858
888
|
stroke: "currentColor",
|
|
859
889
|
fill: "currentColor",
|
|
860
890
|
strokeWidth: "0"
|
|
861
|
-
}, t.attr,
|
|
891
|
+
}, t.attr, o, f, {
|
|
862
892
|
className: d,
|
|
863
|
-
style:
|
|
893
|
+
style: re(re({
|
|
864
894
|
color: r.color || t.color
|
|
865
895
|
}, t.style), r.style),
|
|
866
896
|
height: c,
|
|
@@ -868,44 +898,44 @@ function ht(r) {
|
|
|
868
898
|
xmlns: "http://www.w3.org/2000/svg"
|
|
869
899
|
}), u && /* @__PURE__ */ D.createElement("title", null, u), r.children);
|
|
870
900
|
};
|
|
871
|
-
return Ye !== void 0 ? /* @__PURE__ */ D.createElement(Ye.Consumer, null, (t) => n(t)) : n(
|
|
901
|
+
return Ye !== void 0 ? /* @__PURE__ */ D.createElement(Ye.Consumer, null, (t) => n(t)) : n(tr);
|
|
872
902
|
}
|
|
873
|
-
function
|
|
874
|
-
return
|
|
903
|
+
function Rt(r) {
|
|
904
|
+
return or({ 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: [] }] })(r);
|
|
875
905
|
}
|
|
876
|
-
function
|
|
877
|
-
return
|
|
906
|
+
function Et(r) {
|
|
907
|
+
return or({ 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: [] }] })(r);
|
|
878
908
|
}
|
|
879
|
-
const
|
|
909
|
+
const ar = Br(void 0), St = R((r, n) => {
|
|
880
910
|
const {
|
|
881
911
|
children: t,
|
|
882
|
-
onOpenChange:
|
|
912
|
+
onOpenChange: o,
|
|
883
913
|
position: i,
|
|
884
914
|
sub: u,
|
|
885
915
|
// not used
|
|
886
916
|
...f
|
|
887
917
|
} = r;
|
|
888
|
-
|
|
889
|
-
const [c, d] =
|
|
890
|
-
|
|
918
|
+
h(f);
|
|
919
|
+
const [c, d] = Yr(!1), b = Z(null), x = Z(), w = fe(() => {
|
|
920
|
+
x.current && clearTimeout(x.current), x.current = setTimeout(() => {
|
|
891
921
|
d(!1);
|
|
892
922
|
}, 250);
|
|
893
|
-
}, []),
|
|
894
|
-
|
|
923
|
+
}, []), T = fe(() => {
|
|
924
|
+
x.current && clearTimeout(x.current), d(!0);
|
|
895
925
|
}, []);
|
|
896
926
|
return /* @__PURE__ */ l.jsx(
|
|
897
|
-
|
|
927
|
+
ar.Provider,
|
|
898
928
|
{
|
|
899
929
|
value: {
|
|
900
|
-
onMenuMouseOver:
|
|
930
|
+
onMenuMouseOver: T,
|
|
901
931
|
onMenuMouseLeave: w
|
|
902
932
|
},
|
|
903
933
|
children: /* @__PURE__ */ l.jsx(
|
|
904
934
|
O.Item,
|
|
905
935
|
{
|
|
906
936
|
className: "bn-menu-item bn-mt-sub-menu-item",
|
|
907
|
-
ref:
|
|
908
|
-
onMouseOver:
|
|
937
|
+
ref: te(n, b),
|
|
938
|
+
onMouseOver: T,
|
|
909
939
|
onMouseLeave: w,
|
|
910
940
|
children: /* @__PURE__ */ l.jsx(
|
|
911
941
|
O,
|
|
@@ -916,8 +946,8 @@ const tr = zr(void 0), jt = R((r, n) => {
|
|
|
916
946
|
middlewares: { flip: !0, shift: !0, inline: !1, size: !0 },
|
|
917
947
|
trigger: "hover",
|
|
918
948
|
opened: c,
|
|
919
|
-
onClose: () =>
|
|
920
|
-
onOpen: () =>
|
|
949
|
+
onClose: () => o == null ? void 0 : o(!1),
|
|
950
|
+
onOpen: () => o == null ? void 0 : o(!0),
|
|
921
951
|
position: i,
|
|
922
952
|
children: t
|
|
923
953
|
}
|
|
@@ -926,54 +956,54 @@ const tr = zr(void 0), jt = R((r, n) => {
|
|
|
926
956
|
)
|
|
927
957
|
}
|
|
928
958
|
);
|
|
929
|
-
}),
|
|
930
|
-
const { children: n, onOpenChange: t, position:
|
|
931
|
-
return
|
|
959
|
+
}), wt = (r) => {
|
|
960
|
+
const { children: n, onOpenChange: t, position: o, sub: i, ...u } = r;
|
|
961
|
+
return h(u), i ? /* @__PURE__ */ l.jsx(St, { ...r }) : /* @__PURE__ */ l.jsx(
|
|
932
962
|
O,
|
|
933
963
|
{
|
|
934
964
|
withinPortal: !1,
|
|
935
965
|
middlewares: { flip: !0, shift: !0, inline: !1, size: !0 },
|
|
936
966
|
onClose: () => t == null ? void 0 : t(!1),
|
|
937
967
|
onOpen: () => t == null ? void 0 : t(!0),
|
|
938
|
-
position:
|
|
968
|
+
position: o,
|
|
939
969
|
children: n
|
|
940
970
|
}
|
|
941
971
|
);
|
|
942
|
-
},
|
|
943
|
-
const { className: t, children:
|
|
944
|
-
return
|
|
945
|
-
|
|
946
|
-
/* @__PURE__ */ l.jsx(
|
|
972
|
+
}, Tt = R((r, n) => {
|
|
973
|
+
const { className: t, children: o, icon: i, checked: u, subTrigger: f, onClick: c, ...d } = r;
|
|
974
|
+
return h(d, !1), f ? /* @__PURE__ */ l.jsxs("div", { ref: n, ...d, children: [
|
|
975
|
+
o,
|
|
976
|
+
/* @__PURE__ */ l.jsx(Et, { size: 15 })
|
|
947
977
|
] }) : /* @__PURE__ */ l.jsx(
|
|
948
978
|
O.Item,
|
|
949
979
|
{
|
|
950
980
|
className: t,
|
|
951
981
|
ref: n,
|
|
952
982
|
leftSection: i,
|
|
953
|
-
rightSection: u ? /* @__PURE__ */ l.jsx(
|
|
983
|
+
rightSection: u ? /* @__PURE__ */ l.jsx(Ze, { size: 10 }) : u === !1 ? /* @__PURE__ */ l.jsx("div", { className: "bn-tick-space" }) : null,
|
|
954
984
|
onClick: c,
|
|
955
985
|
...d,
|
|
956
|
-
children:
|
|
986
|
+
children: o
|
|
957
987
|
}
|
|
958
988
|
);
|
|
959
|
-
}),
|
|
989
|
+
}), kt = (r) => {
|
|
960
990
|
const {
|
|
961
991
|
children: n,
|
|
962
992
|
sub: t,
|
|
963
993
|
// unused
|
|
964
|
-
...
|
|
994
|
+
...o
|
|
965
995
|
} = r;
|
|
966
|
-
return
|
|
967
|
-
},
|
|
996
|
+
return h(o), /* @__PURE__ */ l.jsx(O.Target, { children: n });
|
|
997
|
+
}, Ct = R((r, n) => {
|
|
968
998
|
const {
|
|
969
999
|
className: t,
|
|
970
|
-
children:
|
|
1000
|
+
children: o,
|
|
971
1001
|
sub: i,
|
|
972
1002
|
//unused
|
|
973
1003
|
...u
|
|
974
1004
|
} = r;
|
|
975
|
-
|
|
976
|
-
const f =
|
|
1005
|
+
h(u);
|
|
1006
|
+
const f = Ur(ar);
|
|
977
1007
|
return /* @__PURE__ */ l.jsx(
|
|
978
1008
|
O.Dropdown,
|
|
979
1009
|
{
|
|
@@ -981,34 +1011,34 @@ const tr = zr(void 0), jt = R((r, n) => {
|
|
|
981
1011
|
ref: n,
|
|
982
1012
|
onMouseOver: f == null ? void 0 : f.onMenuMouseOver,
|
|
983
1013
|
onMouseLeave: f == null ? void 0 : f.onMenuMouseLeave,
|
|
984
|
-
children:
|
|
1014
|
+
children: o
|
|
985
1015
|
}
|
|
986
1016
|
);
|
|
987
|
-
}), kt = R((r, n) => {
|
|
988
|
-
const { className: t, ...a } = r;
|
|
989
|
-
return j(a), /* @__PURE__ */ l.jsx(O.Divider, { className: t, ref: n });
|
|
990
|
-
}), St = R((r, n) => {
|
|
991
|
-
const { className: t, children: a, ...i } = r;
|
|
992
|
-
return j(i), /* @__PURE__ */ l.jsx(O.Label, { className: t, ref: n, children: a });
|
|
993
1017
|
}), Pt = R((r, n) => {
|
|
1018
|
+
const { className: t, ...o } = r;
|
|
1019
|
+
return h(o), /* @__PURE__ */ l.jsx(O.Divider, { className: t, ref: n });
|
|
1020
|
+
}), _t = R((r, n) => {
|
|
1021
|
+
const { className: t, children: o, ...i } = r;
|
|
1022
|
+
return h(i), /* @__PURE__ */ l.jsx(O.Label, { className: t, ref: n, children: o });
|
|
1023
|
+
}), Ot = R((r, n) => {
|
|
994
1024
|
const {
|
|
995
1025
|
className: t,
|
|
996
|
-
tabs:
|
|
1026
|
+
tabs: o,
|
|
997
1027
|
defaultOpenTab: i,
|
|
998
1028
|
openTab: u,
|
|
999
1029
|
setOpenTab: f,
|
|
1000
1030
|
loading: c,
|
|
1001
1031
|
...d
|
|
1002
1032
|
} = r;
|
|
1003
|
-
return
|
|
1033
|
+
return h(d), /* @__PURE__ */ l.jsx(F, { className: t, ref: n, children: /* @__PURE__ */ l.jsxs(
|
|
1004
1034
|
X,
|
|
1005
1035
|
{
|
|
1006
1036
|
value: u,
|
|
1007
1037
|
defaultValue: i,
|
|
1008
1038
|
onChange: f,
|
|
1009
1039
|
children: [
|
|
1010
|
-
c && /* @__PURE__ */ l.jsx(
|
|
1011
|
-
/* @__PURE__ */ l.jsx(X.List, { children:
|
|
1040
|
+
c && /* @__PURE__ */ l.jsx(Xr, { visible: c }),
|
|
1041
|
+
/* @__PURE__ */ l.jsx(X.List, { children: o.map((b) => /* @__PURE__ */ l.jsx(
|
|
1012
1042
|
X.Tab,
|
|
1013
1043
|
{
|
|
1014
1044
|
"data-test": `${b.name.toLowerCase()}-tab`,
|
|
@@ -1017,13 +1047,13 @@ const tr = zr(void 0), jt = R((r, n) => {
|
|
|
1017
1047
|
},
|
|
1018
1048
|
b.name
|
|
1019
1049
|
)) }),
|
|
1020
|
-
|
|
1050
|
+
o.map((b) => /* @__PURE__ */ l.jsx(X.Panel, { value: b.name, children: b.tabPanel }, b.name))
|
|
1021
1051
|
]
|
|
1022
1052
|
}
|
|
1023
1053
|
) });
|
|
1024
|
-
}),
|
|
1025
|
-
const { className: t, children:
|
|
1026
|
-
return
|
|
1054
|
+
}), Ft = R((r, n) => {
|
|
1055
|
+
const { className: t, children: o, onClick: i, label: u, ...f } = r;
|
|
1056
|
+
return h(f), /* @__PURE__ */ l.jsx(
|
|
1027
1057
|
U,
|
|
1028
1058
|
{
|
|
1029
1059
|
size: "xs",
|
|
@@ -1032,93 +1062,93 @@ const tr = zr(void 0), jt = R((r, n) => {
|
|
|
1032
1062
|
ref: n,
|
|
1033
1063
|
onClick: i,
|
|
1034
1064
|
...f,
|
|
1035
|
-
children:
|
|
1065
|
+
children: o
|
|
1036
1066
|
}
|
|
1037
1067
|
);
|
|
1038
|
-
}),
|
|
1039
|
-
const { className: t, accept:
|
|
1040
|
-
return
|
|
1041
|
-
|
|
1068
|
+
}), Nt = R((r, n) => {
|
|
1069
|
+
const { className: t, accept: o, value: i, placeholder: u, onChange: f, ...c } = r;
|
|
1070
|
+
return h(c), /* @__PURE__ */ l.jsx(
|
|
1071
|
+
Zr,
|
|
1042
1072
|
{
|
|
1043
1073
|
size: "xs",
|
|
1044
1074
|
className: t,
|
|
1045
1075
|
ref: n,
|
|
1046
|
-
accept:
|
|
1076
|
+
accept: o,
|
|
1047
1077
|
value: i,
|
|
1048
1078
|
placeholder: u,
|
|
1049
1079
|
onChange: f,
|
|
1050
1080
|
...c
|
|
1051
1081
|
}
|
|
1052
1082
|
);
|
|
1053
|
-
}),
|
|
1054
|
-
const { className: t, children:
|
|
1055
|
-
return
|
|
1056
|
-
}),
|
|
1057
|
-
const { className: t, value:
|
|
1058
|
-
return
|
|
1059
|
-
|
|
1083
|
+
}), Dt = R((r, n) => {
|
|
1084
|
+
const { className: t, children: o, ...i } = r;
|
|
1085
|
+
return h(i), /* @__PURE__ */ l.jsx("div", { className: t, ref: n, children: o });
|
|
1086
|
+
}), Mt = R((r, n) => {
|
|
1087
|
+
const { className: t, value: o, placeholder: i, onKeyDown: u, onChange: f, ...c } = r;
|
|
1088
|
+
return h(c), /* @__PURE__ */ l.jsx(
|
|
1089
|
+
Qe,
|
|
1060
1090
|
{
|
|
1061
1091
|
size: "xs",
|
|
1062
1092
|
"data-test": "embed-input",
|
|
1063
1093
|
className: t,
|
|
1064
1094
|
ref: n,
|
|
1065
|
-
value:
|
|
1095
|
+
value: o,
|
|
1066
1096
|
placeholder: i,
|
|
1067
1097
|
onKeyDown: u,
|
|
1068
1098
|
onChange: f
|
|
1069
1099
|
}
|
|
1070
1100
|
);
|
|
1071
|
-
}),
|
|
1072
|
-
const { children: n, opened: t, position:
|
|
1073
|
-
return
|
|
1074
|
-
|
|
1101
|
+
}), It = (r) => {
|
|
1102
|
+
const { children: n, opened: t, position: o, ...i } = r;
|
|
1103
|
+
return h(i), /* @__PURE__ */ l.jsx(
|
|
1104
|
+
Qr,
|
|
1075
1105
|
{
|
|
1076
1106
|
withinPortal: !1,
|
|
1077
1107
|
zIndex: 1e4,
|
|
1078
1108
|
opened: t,
|
|
1079
|
-
position:
|
|
1109
|
+
position: o,
|
|
1080
1110
|
children: n
|
|
1081
1111
|
}
|
|
1082
1112
|
);
|
|
1083
|
-
},
|
|
1113
|
+
}, Lt = (r) => {
|
|
1084
1114
|
const { children: n, ...t } = r;
|
|
1085
|
-
return
|
|
1086
|
-
},
|
|
1115
|
+
return h(t), /* @__PURE__ */ l.jsx(et, { children: n });
|
|
1116
|
+
}, At = R((r, n) => {
|
|
1087
1117
|
const {
|
|
1088
1118
|
className: t,
|
|
1089
|
-
children:
|
|
1119
|
+
children: o,
|
|
1090
1120
|
variant: i,
|
|
1091
1121
|
// unused
|
|
1092
1122
|
...u
|
|
1093
1123
|
} = r;
|
|
1094
|
-
return
|
|
1095
|
-
}),
|
|
1096
|
-
const { className: t, children:
|
|
1097
|
-
return
|
|
1098
|
-
|
|
1124
|
+
return h(u), /* @__PURE__ */ l.jsx(rt, { className: t, ref: n, children: o });
|
|
1125
|
+
}), $t = R((r, n) => {
|
|
1126
|
+
const { className: t, children: o, ...i } = r;
|
|
1127
|
+
return h(i, !1), /* @__PURE__ */ l.jsx(
|
|
1128
|
+
F,
|
|
1099
1129
|
{
|
|
1100
1130
|
align: "center",
|
|
1101
1131
|
gap: 0,
|
|
1102
1132
|
className: t,
|
|
1103
1133
|
ref: n,
|
|
1104
1134
|
...i,
|
|
1105
|
-
children:
|
|
1135
|
+
children: o
|
|
1106
1136
|
}
|
|
1107
1137
|
);
|
|
1108
|
-
}),
|
|
1138
|
+
}), zt = R((r, n) => {
|
|
1109
1139
|
const {
|
|
1110
1140
|
className: t,
|
|
1111
|
-
children:
|
|
1141
|
+
children: o,
|
|
1112
1142
|
icon: i,
|
|
1113
1143
|
onClick: u,
|
|
1114
1144
|
onDragEnd: f,
|
|
1115
1145
|
onDragStart: c,
|
|
1116
1146
|
draggable: d,
|
|
1117
1147
|
label: b,
|
|
1118
|
-
...
|
|
1148
|
+
...x
|
|
1119
1149
|
} = r;
|
|
1120
|
-
return
|
|
1121
|
-
|
|
1150
|
+
return h(x, !1), i ? /* @__PURE__ */ l.jsx(
|
|
1151
|
+
er,
|
|
1122
1152
|
{
|
|
1123
1153
|
size: 24,
|
|
1124
1154
|
className: t,
|
|
@@ -1128,7 +1158,7 @@ const tr = zr(void 0), jt = R((r, n) => {
|
|
|
1128
1158
|
onDragStart: c,
|
|
1129
1159
|
draggable: d,
|
|
1130
1160
|
"aria-label": b,
|
|
1131
|
-
...
|
|
1161
|
+
...x,
|
|
1132
1162
|
children: i
|
|
1133
1163
|
}
|
|
1134
1164
|
) : /* @__PURE__ */ l.jsx(
|
|
@@ -1141,84 +1171,84 @@ const tr = zr(void 0), jt = R((r, n) => {
|
|
|
1141
1171
|
onDragStart: c,
|
|
1142
1172
|
draggable: d,
|
|
1143
1173
|
"aria-label": b,
|
|
1144
|
-
...
|
|
1145
|
-
children:
|
|
1174
|
+
...x,
|
|
1175
|
+
children: o
|
|
1146
1176
|
}
|
|
1147
1177
|
);
|
|
1148
|
-
}),
|
|
1149
|
-
const { className: t, children:
|
|
1150
|
-
return
|
|
1151
|
-
|
|
1178
|
+
}), Wt = R((r, n) => {
|
|
1179
|
+
const { className: t, children: o, id: i, ...u } = r;
|
|
1180
|
+
return h(u), /* @__PURE__ */ l.jsx(
|
|
1181
|
+
me,
|
|
1152
1182
|
{
|
|
1153
1183
|
gap: 0,
|
|
1154
1184
|
className: t,
|
|
1155
1185
|
ref: n,
|
|
1156
1186
|
id: i,
|
|
1157
1187
|
role: "listbox",
|
|
1158
|
-
children:
|
|
1188
|
+
children: o
|
|
1159
1189
|
}
|
|
1160
1190
|
);
|
|
1161
|
-
}),
|
|
1162
|
-
const { className: t, children:
|
|
1163
|
-
return
|
|
1164
|
-
}),
|
|
1165
|
-
const { className: t, isSelected:
|
|
1166
|
-
|
|
1167
|
-
const d =
|
|
1168
|
-
return
|
|
1169
|
-
if (!d.current || !
|
|
1191
|
+
}), Vt = R((r, n) => {
|
|
1192
|
+
const { className: t, children: o, ...i } = r;
|
|
1193
|
+
return h(i), /* @__PURE__ */ l.jsx(F, { className: t, ref: n, children: /* @__PURE__ */ l.jsx(F, { className: "bn-mt-suggestion-menu-item-title", children: o }) });
|
|
1194
|
+
}), Bt = R((r, n) => {
|
|
1195
|
+
const { className: t, isSelected: o, onClick: i, item: u, id: f, ...c } = r;
|
|
1196
|
+
h(c);
|
|
1197
|
+
const d = Z(null);
|
|
1198
|
+
return Je(() => {
|
|
1199
|
+
if (!d.current || !o)
|
|
1170
1200
|
return;
|
|
1171
|
-
const b =
|
|
1201
|
+
const b = qe(d.current);
|
|
1172
1202
|
b === "top" ? d.current.scrollIntoView(!0) : b === "bottom" && d.current.scrollIntoView(!1);
|
|
1173
|
-
}, [
|
|
1174
|
-
|
|
1203
|
+
}, [o]), /* @__PURE__ */ l.jsxs(
|
|
1204
|
+
F,
|
|
1175
1205
|
{
|
|
1176
1206
|
gap: 0,
|
|
1177
1207
|
className: t,
|
|
1178
|
-
ref:
|
|
1208
|
+
ref: te(n, d),
|
|
1179
1209
|
id: f,
|
|
1180
1210
|
role: "option",
|
|
1181
1211
|
onClick: i,
|
|
1182
|
-
"aria-selected":
|
|
1212
|
+
"aria-selected": o || void 0,
|
|
1183
1213
|
children: [
|
|
1184
1214
|
u.icon && /* @__PURE__ */ l.jsx(
|
|
1185
|
-
|
|
1215
|
+
F,
|
|
1186
1216
|
{
|
|
1187
1217
|
className: "bn-mt-suggestion-menu-item-section",
|
|
1188
1218
|
"data-position": "left",
|
|
1189
1219
|
children: u.icon
|
|
1190
1220
|
}
|
|
1191
1221
|
),
|
|
1192
|
-
/* @__PURE__ */ l.jsxs(
|
|
1193
|
-
/* @__PURE__ */ l.jsx(
|
|
1194
|
-
/* @__PURE__ */ l.jsx(
|
|
1222
|
+
/* @__PURE__ */ l.jsxs(me, { gap: 0, className: "bn-mt-suggestion-menu-item-body", children: [
|
|
1223
|
+
/* @__PURE__ */ l.jsx(Q, { className: "bn-mt-suggestion-menu-item-title", children: u.title }),
|
|
1224
|
+
/* @__PURE__ */ l.jsx(Q, { className: "bn-mt-suggestion-menu-item-subtitle", children: u.subtext })
|
|
1195
1225
|
] }),
|
|
1196
1226
|
u.badge && /* @__PURE__ */ l.jsx(
|
|
1197
|
-
|
|
1227
|
+
F,
|
|
1198
1228
|
{
|
|
1199
1229
|
"data-position": "right",
|
|
1200
1230
|
className: "bn-mt-suggestion-menu-item-section",
|
|
1201
|
-
children: /* @__PURE__ */ l.jsx(
|
|
1231
|
+
children: /* @__PURE__ */ l.jsx(tt, { size: "xs", children: u.badge })
|
|
1202
1232
|
}
|
|
1203
1233
|
)
|
|
1204
1234
|
]
|
|
1205
1235
|
}
|
|
1206
1236
|
);
|
|
1207
|
-
}),
|
|
1208
|
-
const { className: t, children:
|
|
1209
|
-
return
|
|
1210
|
-
}),
|
|
1237
|
+
}), Yt = R((r, n) => {
|
|
1238
|
+
const { className: t, children: o, ...i } = r;
|
|
1239
|
+
return h(i), /* @__PURE__ */ l.jsx(F, { className: t, ref: n, children: o });
|
|
1240
|
+
}), Ut = R((r, n) => {
|
|
1211
1241
|
const {
|
|
1212
1242
|
className: t,
|
|
1213
|
-
children:
|
|
1243
|
+
children: o,
|
|
1214
1244
|
// unused, using "dots" instead
|
|
1215
1245
|
...i
|
|
1216
1246
|
} = r;
|
|
1217
|
-
return
|
|
1218
|
-
}),
|
|
1247
|
+
return h(i), /* @__PURE__ */ l.jsx(Xe, { className: t, type: "dots", ref: n });
|
|
1248
|
+
}), Gt = R((r, n) => {
|
|
1219
1249
|
const {
|
|
1220
1250
|
className: t,
|
|
1221
|
-
children:
|
|
1251
|
+
children: o,
|
|
1222
1252
|
draggable: i,
|
|
1223
1253
|
onDragStart: u,
|
|
1224
1254
|
onDragEnd: f,
|
|
@@ -1226,7 +1256,7 @@ const tr = zr(void 0), jt = R((r, n) => {
|
|
|
1226
1256
|
label: d,
|
|
1227
1257
|
...b
|
|
1228
1258
|
} = r;
|
|
1229
|
-
return
|
|
1259
|
+
return h(b, !1), /* @__PURE__ */ l.jsx(
|
|
1230
1260
|
U,
|
|
1231
1261
|
{
|
|
1232
1262
|
className: t,
|
|
@@ -1237,61 +1267,93 @@ const tr = zr(void 0), jt = R((r, n) => {
|
|
|
1237
1267
|
onDragEnd: f,
|
|
1238
1268
|
style: c,
|
|
1239
1269
|
...b,
|
|
1240
|
-
children:
|
|
1270
|
+
children: o
|
|
1241
1271
|
}
|
|
1242
1272
|
);
|
|
1243
|
-
}),
|
|
1273
|
+
}), Kt = R((r, n) => {
|
|
1274
|
+
const {
|
|
1275
|
+
className: t,
|
|
1276
|
+
name: o,
|
|
1277
|
+
label: i,
|
|
1278
|
+
icon: u,
|
|
1279
|
+
value: f,
|
|
1280
|
+
autoFocus: c,
|
|
1281
|
+
placeholder: d,
|
|
1282
|
+
onKeyDown: b,
|
|
1283
|
+
onChange: x,
|
|
1284
|
+
onSubmit: w,
|
|
1285
|
+
...T
|
|
1286
|
+
} = r;
|
|
1287
|
+
return h(T), /* @__PURE__ */ l.jsx(
|
|
1288
|
+
Qe,
|
|
1289
|
+
{
|
|
1290
|
+
size: "xs",
|
|
1291
|
+
className: t,
|
|
1292
|
+
ref: n,
|
|
1293
|
+
name: o,
|
|
1294
|
+
label: i,
|
|
1295
|
+
leftSection: u,
|
|
1296
|
+
value: f,
|
|
1297
|
+
autoFocus: c,
|
|
1298
|
+
"data-autofocus": c ? "true" : void 0,
|
|
1299
|
+
placeholder: d,
|
|
1300
|
+
onKeyDown: b,
|
|
1301
|
+
onChange: x,
|
|
1302
|
+
onSubmit: w
|
|
1303
|
+
}
|
|
1304
|
+
);
|
|
1305
|
+
}), Ge = R(
|
|
1244
1306
|
(r, n) => {
|
|
1245
|
-
const { className: t, children:
|
|
1246
|
-
|
|
1247
|
-
const { ref: c, focused: d } =
|
|
1307
|
+
const { className: t, children: o, onMouseEnter: i, onMouseLeave: u, ...f } = r;
|
|
1308
|
+
h(f);
|
|
1309
|
+
const { ref: c, focused: d } = at(), b = it(d), x = te(n, c, b);
|
|
1248
1310
|
return /* @__PURE__ */ l.jsx(
|
|
1249
|
-
|
|
1311
|
+
F,
|
|
1250
1312
|
{
|
|
1251
1313
|
className: t,
|
|
1252
|
-
ref:
|
|
1314
|
+
ref: x,
|
|
1253
1315
|
role: "toolbar",
|
|
1254
1316
|
onMouseEnter: i,
|
|
1255
1317
|
onMouseLeave: u,
|
|
1256
|
-
children:
|
|
1318
|
+
children: o
|
|
1257
1319
|
}
|
|
1258
1320
|
);
|
|
1259
1321
|
}
|
|
1260
|
-
),
|
|
1261
|
-
/* @__PURE__ */ l.jsx(
|
|
1262
|
-
r.secondaryTooltip && /* @__PURE__ */ l.jsx(
|
|
1263
|
-
] }),
|
|
1322
|
+
), Ht = (r) => /* @__PURE__ */ l.jsxs(me, { gap: 0, className: "bn-tooltip", children: [
|
|
1323
|
+
/* @__PURE__ */ l.jsx(Q, { size: "sm", children: r.mainTooltip }),
|
|
1324
|
+
r.secondaryTooltip && /* @__PURE__ */ l.jsx(Q, { size: "xs", children: r.secondaryTooltip })
|
|
1325
|
+
] }), Ke = R(
|
|
1264
1326
|
(r, n) => {
|
|
1265
1327
|
const {
|
|
1266
1328
|
className: t,
|
|
1267
|
-
children:
|
|
1329
|
+
children: o,
|
|
1268
1330
|
mainTooltip: i,
|
|
1269
1331
|
secondaryTooltip: u,
|
|
1270
1332
|
icon: f,
|
|
1271
1333
|
isSelected: c,
|
|
1272
1334
|
isDisabled: d,
|
|
1273
1335
|
onClick: b,
|
|
1274
|
-
label:
|
|
1336
|
+
label: x,
|
|
1275
1337
|
...w
|
|
1276
1338
|
} = r;
|
|
1277
|
-
return
|
|
1339
|
+
return h(w, !1), /* @__PURE__ */ l.jsx(
|
|
1278
1340
|
nt,
|
|
1279
1341
|
{
|
|
1280
1342
|
withinPortal: !1,
|
|
1281
1343
|
label: /* @__PURE__ */ l.jsx(
|
|
1282
|
-
|
|
1344
|
+
Ht,
|
|
1283
1345
|
{
|
|
1284
1346
|
mainTooltip: i,
|
|
1285
1347
|
secondaryTooltip: u
|
|
1286
1348
|
}
|
|
1287
1349
|
),
|
|
1288
|
-
children:
|
|
1350
|
+
children: o ? /* @__PURE__ */ l.jsx(
|
|
1289
1351
|
U,
|
|
1290
1352
|
{
|
|
1291
|
-
"aria-label":
|
|
1353
|
+
"aria-label": x,
|
|
1292
1354
|
className: t,
|
|
1293
|
-
onMouseDown: (
|
|
1294
|
-
|
|
1355
|
+
onMouseDown: (T) => {
|
|
1356
|
+
ve() && T.currentTarget.focus();
|
|
1295
1357
|
},
|
|
1296
1358
|
onClick: b,
|
|
1297
1359
|
"aria-pressed": c,
|
|
@@ -1301,15 +1363,15 @@ const tr = zr(void 0), jt = R((r, n) => {
|
|
|
1301
1363
|
disabled: d || !1,
|
|
1302
1364
|
ref: n,
|
|
1303
1365
|
...w,
|
|
1304
|
-
children:
|
|
1366
|
+
children: o
|
|
1305
1367
|
}
|
|
1306
1368
|
) : /* @__PURE__ */ l.jsx(
|
|
1307
|
-
|
|
1369
|
+
er,
|
|
1308
1370
|
{
|
|
1309
1371
|
className: t,
|
|
1310
|
-
"aria-label":
|
|
1311
|
-
onMouseDown: (
|
|
1312
|
-
|
|
1372
|
+
"aria-label": x,
|
|
1373
|
+
onMouseDown: (T) => {
|
|
1374
|
+
ve() && T.currentTarget.focus();
|
|
1313
1375
|
},
|
|
1314
1376
|
onClick: b,
|
|
1315
1377
|
"aria-pressed": c,
|
|
@@ -1325,10 +1387,10 @@ const tr = zr(void 0), jt = R((r, n) => {
|
|
|
1325
1387
|
}
|
|
1326
1388
|
);
|
|
1327
1389
|
}
|
|
1328
|
-
),
|
|
1329
|
-
const { className: t, items:
|
|
1330
|
-
|
|
1331
|
-
const f =
|
|
1390
|
+
), Jt = R((r, n) => {
|
|
1391
|
+
const { className: t, items: o, isDisabled: i, ...u } = r;
|
|
1392
|
+
h(u);
|
|
1393
|
+
const f = o.filter((c) => c.isSelected)[0];
|
|
1332
1394
|
return f ? /* @__PURE__ */ l.jsxs(
|
|
1333
1395
|
O,
|
|
1334
1396
|
{
|
|
@@ -1343,22 +1405,22 @@ const tr = zr(void 0), jt = R((r, n) => {
|
|
|
1343
1405
|
U,
|
|
1344
1406
|
{
|
|
1345
1407
|
onMouseDown: (c) => {
|
|
1346
|
-
|
|
1408
|
+
ve() && c.currentTarget.focus();
|
|
1347
1409
|
},
|
|
1348
1410
|
leftSection: f.icon,
|
|
1349
|
-
rightSection: /* @__PURE__ */ l.jsx(
|
|
1411
|
+
rightSection: /* @__PURE__ */ l.jsx(Rt, {}),
|
|
1350
1412
|
size: "xs",
|
|
1351
1413
|
variant: "subtle",
|
|
1352
1414
|
disabled: i,
|
|
1353
1415
|
children: f.text
|
|
1354
1416
|
}
|
|
1355
1417
|
) }),
|
|
1356
|
-
/* @__PURE__ */ l.jsx(O.Dropdown, { className: t, ref: n, children:
|
|
1418
|
+
/* @__PURE__ */ l.jsx(O.Dropdown, { className: t, ref: n, children: o.map((c) => /* @__PURE__ */ l.jsx(
|
|
1357
1419
|
O.Item,
|
|
1358
1420
|
{
|
|
1359
1421
|
onClick: c.onClick,
|
|
1360
1422
|
leftSection: c.icon,
|
|
1361
|
-
rightSection: c.isSelected ? /* @__PURE__ */ l.jsx(
|
|
1423
|
+
rightSection: c.isSelected ? /* @__PURE__ */ l.jsx(Ze, { size: 10, className: "bn-tick-icon" }) : (
|
|
1362
1424
|
// Ensures space for tick even if item isn't currently selected.
|
|
1363
1425
|
/* @__PURE__ */ l.jsx("div", { className: "bn-tick-space" })
|
|
1364
1426
|
),
|
|
@@ -1371,7 +1433,7 @@ const tr = zr(void 0), jt = R((r, n) => {
|
|
|
1371
1433
|
}
|
|
1372
1434
|
) : null;
|
|
1373
1435
|
});
|
|
1374
|
-
const
|
|
1436
|
+
const y = [
|
|
1375
1437
|
"#FFFFFF",
|
|
1376
1438
|
"#EFEFEF",
|
|
1377
1439
|
"#CFCFCF",
|
|
@@ -1385,32 +1447,32 @@ const x = [
|
|
|
1385
1447
|
], He = {
|
|
1386
1448
|
colors: {
|
|
1387
1449
|
editor: {
|
|
1388
|
-
text:
|
|
1389
|
-
background:
|
|
1450
|
+
text: y[5],
|
|
1451
|
+
background: y[0]
|
|
1390
1452
|
},
|
|
1391
1453
|
menu: {
|
|
1392
|
-
text:
|
|
1393
|
-
background:
|
|
1454
|
+
text: y[5],
|
|
1455
|
+
background: y[0]
|
|
1394
1456
|
},
|
|
1395
1457
|
tooltip: {
|
|
1396
|
-
text:
|
|
1397
|
-
background:
|
|
1458
|
+
text: y[5],
|
|
1459
|
+
background: y[1]
|
|
1398
1460
|
},
|
|
1399
1461
|
hovered: {
|
|
1400
|
-
text:
|
|
1401
|
-
background:
|
|
1462
|
+
text: y[5],
|
|
1463
|
+
background: y[1]
|
|
1402
1464
|
},
|
|
1403
1465
|
selected: {
|
|
1404
|
-
text:
|
|
1405
|
-
background:
|
|
1466
|
+
text: y[0],
|
|
1467
|
+
background: y[5]
|
|
1406
1468
|
},
|
|
1407
1469
|
disabled: {
|
|
1408
|
-
text:
|
|
1409
|
-
background:
|
|
1470
|
+
text: y[3],
|
|
1471
|
+
background: y[1]
|
|
1410
1472
|
},
|
|
1411
|
-
shadow:
|
|
1412
|
-
border:
|
|
1413
|
-
sideMenu:
|
|
1473
|
+
shadow: y[2],
|
|
1474
|
+
border: y[1],
|
|
1475
|
+
sideMenu: y[2],
|
|
1414
1476
|
highlights: {
|
|
1415
1477
|
gray: {
|
|
1416
1478
|
text: "#9b9a97",
|
|
@@ -1452,35 +1514,35 @@ const x = [
|
|
|
1452
1514
|
},
|
|
1453
1515
|
borderRadius: 6,
|
|
1454
1516
|
fontFamily: '"Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Open Sans", "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif'
|
|
1455
|
-
},
|
|
1517
|
+
}, nn = {
|
|
1456
1518
|
colors: {
|
|
1457
1519
|
editor: {
|
|
1458
|
-
text:
|
|
1459
|
-
background:
|
|
1520
|
+
text: y[2],
|
|
1521
|
+
background: y[6]
|
|
1460
1522
|
},
|
|
1461
1523
|
menu: {
|
|
1462
|
-
text:
|
|
1463
|
-
background:
|
|
1524
|
+
text: y[2],
|
|
1525
|
+
background: y[6]
|
|
1464
1526
|
},
|
|
1465
1527
|
tooltip: {
|
|
1466
|
-
text:
|
|
1467
|
-
background:
|
|
1528
|
+
text: y[2],
|
|
1529
|
+
background: y[7]
|
|
1468
1530
|
},
|
|
1469
1531
|
hovered: {
|
|
1470
|
-
text:
|
|
1471
|
-
background:
|
|
1532
|
+
text: y[2],
|
|
1533
|
+
background: y[7]
|
|
1472
1534
|
},
|
|
1473
1535
|
selected: {
|
|
1474
|
-
text:
|
|
1475
|
-
background:
|
|
1536
|
+
text: y[2],
|
|
1537
|
+
background: y[8]
|
|
1476
1538
|
},
|
|
1477
1539
|
disabled: {
|
|
1478
|
-
text:
|
|
1479
|
-
background:
|
|
1540
|
+
text: y[5],
|
|
1541
|
+
background: y[7]
|
|
1480
1542
|
},
|
|
1481
|
-
shadow:
|
|
1482
|
-
border:
|
|
1483
|
-
sideMenu:
|
|
1543
|
+
shadow: y[8],
|
|
1544
|
+
border: y[7],
|
|
1545
|
+
sideMenu: y[4],
|
|
1484
1546
|
highlights: {
|
|
1485
1547
|
gray: {
|
|
1486
1548
|
text: "#bebdb8",
|
|
@@ -1522,89 +1584,95 @@ const x = [
|
|
|
1522
1584
|
},
|
|
1523
1585
|
borderRadius: He.borderRadius,
|
|
1524
1586
|
fontFamily: He.fontFamily
|
|
1525
|
-
},
|
|
1587
|
+
}, qt = {
|
|
1526
1588
|
FormattingToolbar: {
|
|
1527
|
-
Root:
|
|
1528
|
-
Button:
|
|
1529
|
-
Select:
|
|
1589
|
+
Root: Ge,
|
|
1590
|
+
Button: Ke,
|
|
1591
|
+
Select: Jt
|
|
1530
1592
|
},
|
|
1531
1593
|
FilePanel: {
|
|
1532
|
-
Root:
|
|
1533
|
-
Button:
|
|
1534
|
-
FileInput:
|
|
1535
|
-
TabPanel:
|
|
1536
|
-
TextInput:
|
|
1594
|
+
Root: Ot,
|
|
1595
|
+
Button: Ft,
|
|
1596
|
+
FileInput: Nt,
|
|
1597
|
+
TabPanel: Dt,
|
|
1598
|
+
TextInput: Mt
|
|
1599
|
+
},
|
|
1600
|
+
GridSuggestionMenu: {
|
|
1601
|
+
Root: dt,
|
|
1602
|
+
Item: vt,
|
|
1603
|
+
EmptyItem: ft,
|
|
1604
|
+
Loader: bt
|
|
1537
1605
|
},
|
|
1538
1606
|
LinkToolbar: {
|
|
1539
|
-
Root:
|
|
1540
|
-
Button:
|
|
1607
|
+
Root: Ge,
|
|
1608
|
+
Button: Ke
|
|
1541
1609
|
},
|
|
1542
1610
|
SideMenu: {
|
|
1543
|
-
Root:
|
|
1544
|
-
Button:
|
|
1611
|
+
Root: $t,
|
|
1612
|
+
Button: zt
|
|
1545
1613
|
},
|
|
1546
1614
|
SuggestionMenu: {
|
|
1547
|
-
Root:
|
|
1548
|
-
Item:
|
|
1549
|
-
EmptyItem:
|
|
1550
|
-
Label:
|
|
1551
|
-
Loader:
|
|
1615
|
+
Root: Wt,
|
|
1616
|
+
Item: Bt,
|
|
1617
|
+
EmptyItem: Vt,
|
|
1618
|
+
Label: Yt,
|
|
1619
|
+
Loader: Ut
|
|
1552
1620
|
},
|
|
1553
1621
|
TableHandle: {
|
|
1554
|
-
Root:
|
|
1622
|
+
Root: Gt
|
|
1555
1623
|
},
|
|
1556
1624
|
Generic: {
|
|
1557
1625
|
Form: {
|
|
1558
1626
|
Root: (r) => /* @__PURE__ */ l.jsx("div", { children: r.children }),
|
|
1559
|
-
TextInput:
|
|
1627
|
+
TextInput: Kt
|
|
1560
1628
|
},
|
|
1561
1629
|
Menu: {
|
|
1562
|
-
Root:
|
|
1563
|
-
Trigger:
|
|
1564
|
-
Dropdown:
|
|
1565
|
-
Divider:
|
|
1566
|
-
Label:
|
|
1567
|
-
Item:
|
|
1630
|
+
Root: wt,
|
|
1631
|
+
Trigger: kt,
|
|
1632
|
+
Dropdown: Ct,
|
|
1633
|
+
Divider: Pt,
|
|
1634
|
+
Label: _t,
|
|
1635
|
+
Item: Tt
|
|
1568
1636
|
},
|
|
1569
1637
|
Popover: {
|
|
1570
|
-
Root:
|
|
1571
|
-
Trigger:
|
|
1572
|
-
Content:
|
|
1638
|
+
Root: It,
|
|
1639
|
+
Trigger: Lt,
|
|
1640
|
+
Content: At
|
|
1573
1641
|
}
|
|
1574
1642
|
}
|
|
1575
|
-
},
|
|
1643
|
+
}, Xt = {
|
|
1576
1644
|
// Removes button press effect
|
|
1577
1645
|
activeClassName: ""
|
|
1578
|
-
},
|
|
1579
|
-
const { className: n, theme: t, ...
|
|
1646
|
+
}, on = (r) => {
|
|
1647
|
+
const { className: n, theme: t, ...o } = r, i = Kr(), u = Hr(), f = (i == null ? void 0 : i.colorSchemePreference) || u, c = fe(
|
|
1580
1648
|
(d) => {
|
|
1581
1649
|
if (d && (ct(d), typeof t == "object")) {
|
|
1582
1650
|
if ("light" in t && "dark" in t) {
|
|
1583
|
-
|
|
1651
|
+
Be(
|
|
1584
1652
|
t[f === "dark" ? "dark" : "light"],
|
|
1585
1653
|
d
|
|
1586
1654
|
);
|
|
1587
1655
|
return;
|
|
1588
1656
|
}
|
|
1589
|
-
|
|
1657
|
+
Be(t, d);
|
|
1590
1658
|
return;
|
|
1591
1659
|
}
|
|
1592
1660
|
},
|
|
1593
1661
|
[f, t]
|
|
1594
1662
|
);
|
|
1595
|
-
return /* @__PURE__ */ l.jsx(
|
|
1596
|
-
|
|
1663
|
+
return /* @__PURE__ */ l.jsx(Jr.Provider, { value: qt, children: /* @__PURE__ */ l.jsx(
|
|
1664
|
+
ot,
|
|
1597
1665
|
{
|
|
1598
|
-
theme:
|
|
1666
|
+
theme: Xt,
|
|
1599
1667
|
cssVariablesSelector: ".bn-mantine",
|
|
1600
1668
|
getRootElement: () => {
|
|
1601
1669
|
},
|
|
1602
1670
|
children: /* @__PURE__ */ l.jsx(
|
|
1603
|
-
|
|
1671
|
+
qr,
|
|
1604
1672
|
{
|
|
1605
|
-
className:
|
|
1673
|
+
className: Gr("bn-mantine", n || ""),
|
|
1606
1674
|
theme: typeof t == "object" ? void 0 : t,
|
|
1607
|
-
...
|
|
1675
|
+
...o,
|
|
1608
1676
|
ref: c
|
|
1609
1677
|
}
|
|
1610
1678
|
)
|
|
@@ -1612,11 +1680,11 @@ const x = [
|
|
|
1612
1680
|
) });
|
|
1613
1681
|
};
|
|
1614
1682
|
export {
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1683
|
+
on as BlockNoteView,
|
|
1684
|
+
Be as applyBlockNoteCSSVariablesFromTheme,
|
|
1685
|
+
qt as components,
|
|
1686
|
+
nn as darkDefaultTheme,
|
|
1687
|
+
y as defaultColorScheme,
|
|
1620
1688
|
He as lightDefaultTheme,
|
|
1621
1689
|
ct as removeBlockNoteCSSVariables
|
|
1622
1690
|
};
|