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