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