@blocknote/ariakit 0.13.5 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/blocknote-ariakit.js +578 -577
- package/dist/blocknote-ariakit.js.map +1 -1
- package/dist/blocknote-ariakit.umd.cjs +9 -9
- package/dist/blocknote-ariakit.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/dist/webpack-stats.json +1 -1
- package/package.json +4 -4
- package/src/input/Form.tsx +3 -3
- package/src/input/TextInput.tsx +6 -5
- package/src/menu/Menu.tsx +27 -17
- package/src/panel/Panel.tsx +14 -10
- package/src/panel/PanelButton.tsx +3 -3
- package/src/panel/PanelFileInput.tsx +8 -5
- package/src/panel/PanelTextInput.tsx +7 -4
- package/src/popover/Popover.tsx +10 -6
- package/src/sideMenu/SideMenu.tsx +5 -5
- package/src/sideMenu/SideMenuButton.tsx +3 -3
- package/src/suggestionMenu/SuggestionMenu.tsx +3 -3
- package/src/tableHandle/TableHandle.tsx +3 -3
- package/src/toolbar/Toolbar.tsx +3 -3
- package/src/toolbar/ToolbarButton.tsx +13 -8
- package/src/toolbar/ToolbarSelect.tsx +20 -12
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ComponentsContext as
|
|
3
|
-
import
|
|
4
|
-
import { assertEmpty as
|
|
5
|
-
var
|
|
1
|
+
import Ie, { forwardRef as R } from "react";
|
|
2
|
+
import { ComponentsContext as yr, BlockNoteViewRaw as Rr } from "@blocknote/react";
|
|
3
|
+
import { FormProvider as re, FormLabel as Er, FormInput as ne, Menu as jr, MenuButton as Me, MenuItem as Ce, MenuButtonArrow as Tr, CheckboxCheck as Ne, MenuGroupLabel as _r, MenuSeparator as kr, MenuProvider as Sr, TabProvider as Pr, TabList as Cr, Tab as Nr, TabPanel as wr, Button as te, PopoverDisclosure as Or, Popover as Dr, PopoverProvider as Fr, Group as Ae, Toolbar as Ir, TooltipProvider as Mr, TooltipAnchor as Ar, ToolbarItem as Le, Tooltip as Lr, SelectProvider as $r, Select as Wr, SelectArrow as Yr, SelectPopover as Br, SelectItem as Vr, SelectItemCheck as Ur } from "@ariakit/react";
|
|
4
|
+
import { assertEmpty as x, mergeCSSClasses as T, isSafari as Gr } from "@blocknote/core";
|
|
5
|
+
var ee = { exports: {} }, L = {};
|
|
6
6
|
/**
|
|
7
7
|
* @license React
|
|
8
8
|
* react-jsx-runtime.production.min.js
|
|
@@ -12,25 +12,25 @@ var re = { exports: {} }, $ = {};
|
|
|
12
12
|
* This source code is licensed under the MIT license found in the
|
|
13
13
|
* LICENSE file in the root directory of this source tree.
|
|
14
14
|
*/
|
|
15
|
-
var
|
|
16
|
-
function
|
|
17
|
-
if (
|
|
18
|
-
return
|
|
19
|
-
|
|
20
|
-
var a =
|
|
21
|
-
function
|
|
22
|
-
var
|
|
23
|
-
|
|
24
|
-
for (
|
|
25
|
-
|
|
26
|
-
if (
|
|
27
|
-
for (
|
|
28
|
-
|
|
29
|
-
return { $$typeof: s, type:
|
|
15
|
+
var we;
|
|
16
|
+
function qr() {
|
|
17
|
+
if (we)
|
|
18
|
+
return L;
|
|
19
|
+
we = 1;
|
|
20
|
+
var a = Ie, s = Symbol.for("react.element"), i = Symbol.for("react.fragment"), t = Object.prototype.hasOwnProperty, l = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
21
|
+
function v(h, f, b) {
|
|
22
|
+
var y, _ = {}, C = null, W = null;
|
|
23
|
+
b !== void 0 && (C = "" + b), f.key !== void 0 && (C = "" + f.key), f.ref !== void 0 && (W = f.ref);
|
|
24
|
+
for (y in f)
|
|
25
|
+
t.call(f, y) && !u.hasOwnProperty(y) && (_[y] = f[y]);
|
|
26
|
+
if (h && h.defaultProps)
|
|
27
|
+
for (y in f = h.defaultProps, f)
|
|
28
|
+
_[y] === void 0 && (_[y] = f[y]);
|
|
29
|
+
return { $$typeof: s, type: h, key: C, ref: W, props: _, _owner: l.current };
|
|
30
30
|
}
|
|
31
|
-
return
|
|
31
|
+
return L.Fragment = i, L.jsx = v, L.jsxs = v, L;
|
|
32
32
|
}
|
|
33
|
-
var
|
|
33
|
+
var $ = {};
|
|
34
34
|
/**
|
|
35
35
|
* @license React
|
|
36
36
|
* react-jsx-runtime.development.js
|
|
@@ -40,91 +40,91 @@ var B = {};
|
|
|
40
40
|
* This source code is licensed under the MIT license found in the
|
|
41
41
|
* LICENSE file in the root directory of this source tree.
|
|
42
42
|
*/
|
|
43
|
-
var
|
|
44
|
-
function
|
|
45
|
-
return
|
|
46
|
-
var a =
|
|
47
|
-
function
|
|
43
|
+
var Oe;
|
|
44
|
+
function Jr() {
|
|
45
|
+
return Oe || (Oe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
46
|
+
var a = Ie, s = Symbol.for("react.element"), i = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), v = Symbol.for("react.provider"), h = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), W = Symbol.for("react.offscreen"), ae = Symbol.iterator, $e = "@@iterator";
|
|
47
|
+
function We(e) {
|
|
48
48
|
if (e === null || typeof e != "object")
|
|
49
49
|
return null;
|
|
50
|
-
var r =
|
|
50
|
+
var r = ae && e[ae] || e[$e];
|
|
51
51
|
return typeof r == "function" ? r : null;
|
|
52
52
|
}
|
|
53
53
|
var D = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
54
|
-
function
|
|
54
|
+
function k(e) {
|
|
55
55
|
{
|
|
56
|
-
for (var r = arguments.length,
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), c = 1; c < r; c++)
|
|
57
|
+
n[c - 1] = arguments[c];
|
|
58
|
+
Ye("error", e, n);
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function Ye(e, r, n) {
|
|
62
62
|
{
|
|
63
|
-
var c = D.ReactDebugCurrentFrame,
|
|
64
|
-
|
|
65
|
-
var
|
|
66
|
-
return String(
|
|
63
|
+
var c = D.ReactDebugCurrentFrame, p = c.getStackAddendum();
|
|
64
|
+
p !== "" && (r += "%s", n = n.concat([p]));
|
|
65
|
+
var g = n.map(function(m) {
|
|
66
|
+
return String(m);
|
|
67
67
|
});
|
|
68
|
-
|
|
68
|
+
g.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, g);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
var
|
|
72
|
-
|
|
73
|
-
function
|
|
74
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
71
|
+
var Be = !1, Ve = !1, Ue = !1, Ge = !1, qe = !1, oe;
|
|
72
|
+
oe = Symbol.for("react.module.reference");
|
|
73
|
+
function Je(e) {
|
|
74
|
+
return !!(typeof e == "string" || typeof e == "function" || e === t || e === u || qe || e === l || e === b || e === y || Ge || e === W || Be || Ve || Ue || typeof e == "object" && e !== null && (e.$$typeof === C || e.$$typeof === _ || e.$$typeof === v || e.$$typeof === h || e.$$typeof === f || // This needs to include all possible module reference object
|
|
75
75
|
// types supported by any Flight configuration anywhere since
|
|
76
76
|
// we don't know which Flight build this will end up being used
|
|
77
77
|
// with.
|
|
78
|
-
e.$$typeof ===
|
|
78
|
+
e.$$typeof === oe || e.getModuleId !== void 0));
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function He(e, r, n) {
|
|
81
81
|
var c = e.displayName;
|
|
82
82
|
if (c)
|
|
83
83
|
return c;
|
|
84
|
-
var
|
|
85
|
-
return
|
|
84
|
+
var p = r.displayName || r.name || "";
|
|
85
|
+
return p !== "" ? n + "(" + p + ")" : n;
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function se(e) {
|
|
88
88
|
return e.displayName || "Context";
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function N(e) {
|
|
91
91
|
if (e == null)
|
|
92
92
|
return null;
|
|
93
|
-
if (typeof e.tag == "number" &&
|
|
93
|
+
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")
|
|
94
94
|
return e.displayName || e.name || null;
|
|
95
95
|
if (typeof e == "string")
|
|
96
96
|
return e;
|
|
97
97
|
switch (e) {
|
|
98
|
-
case
|
|
98
|
+
case t:
|
|
99
99
|
return "Fragment";
|
|
100
100
|
case i:
|
|
101
101
|
return "Portal";
|
|
102
|
-
case
|
|
102
|
+
case u:
|
|
103
103
|
return "Profiler";
|
|
104
104
|
case l:
|
|
105
105
|
return "StrictMode";
|
|
106
|
-
case
|
|
106
|
+
case b:
|
|
107
107
|
return "Suspense";
|
|
108
|
-
case
|
|
108
|
+
case y:
|
|
109
109
|
return "SuspenseList";
|
|
110
110
|
}
|
|
111
111
|
if (typeof e == "object")
|
|
112
112
|
switch (e.$$typeof) {
|
|
113
|
-
case
|
|
113
|
+
case h:
|
|
114
114
|
var r = e;
|
|
115
|
-
return
|
|
116
|
-
case
|
|
117
|
-
var
|
|
118
|
-
return
|
|
119
|
-
case
|
|
120
|
-
return
|
|
121
|
-
case
|
|
115
|
+
return se(r) + ".Consumer";
|
|
116
|
+
case v:
|
|
117
|
+
var n = e;
|
|
118
|
+
return se(n._context) + ".Provider";
|
|
119
|
+
case f:
|
|
120
|
+
return He(e, e.render, "ForwardRef");
|
|
121
|
+
case _:
|
|
122
122
|
var c = e.displayName || null;
|
|
123
|
-
return c !== null ? c :
|
|
124
|
-
case
|
|
125
|
-
var
|
|
123
|
+
return c !== null ? c : N(e.type) || "Memo";
|
|
124
|
+
case C: {
|
|
125
|
+
var p = e, g = p._payload, m = p._init;
|
|
126
126
|
try {
|
|
127
|
-
return
|
|
127
|
+
return N(m(g));
|
|
128
128
|
} catch {
|
|
129
129
|
return null;
|
|
130
130
|
}
|
|
@@ -132,18 +132,18 @@ function hr() {
|
|
|
132
132
|
}
|
|
133
133
|
return null;
|
|
134
134
|
}
|
|
135
|
-
var
|
|
136
|
-
function
|
|
135
|
+
var O = Object.assign, M = 0, ie, le, ce, ue, fe, de, ve;
|
|
136
|
+
function me() {
|
|
137
137
|
}
|
|
138
|
-
|
|
139
|
-
function
|
|
138
|
+
me.__reactDisabledLog = !0;
|
|
139
|
+
function Ke() {
|
|
140
140
|
{
|
|
141
|
-
if (
|
|
142
|
-
|
|
141
|
+
if (M === 0) {
|
|
142
|
+
ie = console.log, le = console.info, ce = console.warn, ue = console.error, fe = console.group, de = console.groupCollapsed, ve = console.groupEnd;
|
|
143
143
|
var e = {
|
|
144
144
|
configurable: !0,
|
|
145
145
|
enumerable: !0,
|
|
146
|
-
value:
|
|
146
|
+
value: me,
|
|
147
147
|
writable: !0
|
|
148
148
|
};
|
|
149
149
|
Object.defineProperties(console, {
|
|
@@ -156,336 +156,336 @@ function hr() {
|
|
|
156
156
|
groupEnd: e
|
|
157
157
|
});
|
|
158
158
|
}
|
|
159
|
-
|
|
159
|
+
M++;
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function ze() {
|
|
163
163
|
{
|
|
164
|
-
if (
|
|
164
|
+
if (M--, M === 0) {
|
|
165
165
|
var e = {
|
|
166
166
|
configurable: !0,
|
|
167
167
|
enumerable: !0,
|
|
168
168
|
writable: !0
|
|
169
169
|
};
|
|
170
170
|
Object.defineProperties(console, {
|
|
171
|
-
log:
|
|
172
|
-
value: oe
|
|
173
|
-
}),
|
|
174
|
-
info: F({}, e, {
|
|
175
|
-
value: se
|
|
176
|
-
}),
|
|
177
|
-
warn: F({}, e, {
|
|
171
|
+
log: O({}, e, {
|
|
178
172
|
value: ie
|
|
179
173
|
}),
|
|
180
|
-
|
|
174
|
+
info: O({}, e, {
|
|
181
175
|
value: le
|
|
182
176
|
}),
|
|
183
|
-
|
|
177
|
+
warn: O({}, e, {
|
|
184
178
|
value: ce
|
|
185
179
|
}),
|
|
186
|
-
|
|
180
|
+
error: O({}, e, {
|
|
187
181
|
value: ue
|
|
188
182
|
}),
|
|
189
|
-
|
|
183
|
+
group: O({}, e, {
|
|
190
184
|
value: fe
|
|
185
|
+
}),
|
|
186
|
+
groupCollapsed: O({}, e, {
|
|
187
|
+
value: de
|
|
188
|
+
}),
|
|
189
|
+
groupEnd: O({}, e, {
|
|
190
|
+
value: ve
|
|
191
191
|
})
|
|
192
192
|
});
|
|
193
193
|
}
|
|
194
|
-
|
|
194
|
+
M < 0 && k("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
|
-
var
|
|
198
|
-
function Y(e, r,
|
|
197
|
+
var q = D.ReactCurrentDispatcher, J;
|
|
198
|
+
function Y(e, r, n) {
|
|
199
199
|
{
|
|
200
|
-
if (
|
|
200
|
+
if (J === void 0)
|
|
201
201
|
try {
|
|
202
202
|
throw Error();
|
|
203
|
-
} catch (
|
|
204
|
-
var c =
|
|
205
|
-
|
|
203
|
+
} catch (p) {
|
|
204
|
+
var c = p.stack.trim().match(/\n( *(at )?)/);
|
|
205
|
+
J = c && c[1] || "";
|
|
206
206
|
}
|
|
207
207
|
return `
|
|
208
|
-
` +
|
|
208
|
+
` + J + e;
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
|
-
var
|
|
211
|
+
var H = !1, B;
|
|
212
212
|
{
|
|
213
|
-
var
|
|
214
|
-
|
|
213
|
+
var Xe = typeof WeakMap == "function" ? WeakMap : Map;
|
|
214
|
+
B = new Xe();
|
|
215
215
|
}
|
|
216
|
-
function
|
|
217
|
-
if (!e ||
|
|
216
|
+
function pe(e, r) {
|
|
217
|
+
if (!e || H)
|
|
218
218
|
return "";
|
|
219
219
|
{
|
|
220
|
-
var
|
|
221
|
-
if (
|
|
222
|
-
return
|
|
220
|
+
var n = B.get(e);
|
|
221
|
+
if (n !== void 0)
|
|
222
|
+
return n;
|
|
223
223
|
}
|
|
224
224
|
var c;
|
|
225
|
-
|
|
226
|
-
var
|
|
225
|
+
H = !0;
|
|
226
|
+
var p = Error.prepareStackTrace;
|
|
227
227
|
Error.prepareStackTrace = void 0;
|
|
228
|
-
var
|
|
229
|
-
|
|
228
|
+
var g;
|
|
229
|
+
g = q.current, q.current = null, Ke();
|
|
230
230
|
try {
|
|
231
231
|
if (r) {
|
|
232
|
-
var
|
|
232
|
+
var m = function() {
|
|
233
233
|
throw Error();
|
|
234
234
|
};
|
|
235
|
-
if (Object.defineProperty(
|
|
235
|
+
if (Object.defineProperty(m.prototype, "props", {
|
|
236
236
|
set: function() {
|
|
237
237
|
throw Error();
|
|
238
238
|
}
|
|
239
239
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
240
240
|
try {
|
|
241
|
-
Reflect.construct(
|
|
242
|
-
} catch (
|
|
243
|
-
c =
|
|
241
|
+
Reflect.construct(m, []);
|
|
242
|
+
} catch (w) {
|
|
243
|
+
c = w;
|
|
244
244
|
}
|
|
245
|
-
Reflect.construct(e, [],
|
|
245
|
+
Reflect.construct(e, [], m);
|
|
246
246
|
} else {
|
|
247
247
|
try {
|
|
248
|
-
|
|
249
|
-
} catch (
|
|
250
|
-
c =
|
|
248
|
+
m.call();
|
|
249
|
+
} catch (w) {
|
|
250
|
+
c = w;
|
|
251
251
|
}
|
|
252
|
-
e.call(
|
|
252
|
+
e.call(m.prototype);
|
|
253
253
|
}
|
|
254
254
|
} else {
|
|
255
255
|
try {
|
|
256
256
|
throw Error();
|
|
257
|
-
} catch (
|
|
258
|
-
c =
|
|
257
|
+
} catch (w) {
|
|
258
|
+
c = w;
|
|
259
259
|
}
|
|
260
260
|
e();
|
|
261
261
|
}
|
|
262
|
-
} catch (
|
|
263
|
-
if (
|
|
264
|
-
for (var
|
|
265
|
-
`),
|
|
266
|
-
`),
|
|
267
|
-
|
|
268
|
-
for (;
|
|
269
|
-
if (
|
|
270
|
-
if (
|
|
262
|
+
} catch (w) {
|
|
263
|
+
if (w && c && typeof w.stack == "string") {
|
|
264
|
+
for (var d = w.stack.split(`
|
|
265
|
+
`), S = c.stack.split(`
|
|
266
|
+
`), E = d.length - 1, j = S.length - 1; E >= 1 && j >= 0 && d[E] !== S[j]; )
|
|
267
|
+
j--;
|
|
268
|
+
for (; E >= 1 && j >= 0; E--, j--)
|
|
269
|
+
if (d[E] !== S[j]) {
|
|
270
|
+
if (E !== 1 || j !== 1)
|
|
271
271
|
do
|
|
272
|
-
if (
|
|
273
|
-
var
|
|
274
|
-
` +
|
|
275
|
-
return e.displayName &&
|
|
272
|
+
if (E--, j--, j < 0 || d[E] !== S[j]) {
|
|
273
|
+
var P = `
|
|
274
|
+
` + d[E].replace(" at new ", " at ");
|
|
275
|
+
return e.displayName && P.includes("<anonymous>") && (P = P.replace("<anonymous>", e.displayName)), typeof e == "function" && B.set(e, P), P;
|
|
276
276
|
}
|
|
277
|
-
while (
|
|
277
|
+
while (E >= 1 && j >= 0);
|
|
278
278
|
break;
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
281
|
} finally {
|
|
282
|
-
|
|
282
|
+
H = !1, q.current = g, ze(), Error.prepareStackTrace = p;
|
|
283
283
|
}
|
|
284
|
-
var
|
|
285
|
-
return typeof e == "function" &&
|
|
284
|
+
var I = e ? e.displayName || e.name : "", Pe = I ? Y(I) : "";
|
|
285
|
+
return typeof e == "function" && B.set(e, Pe), Pe;
|
|
286
286
|
}
|
|
287
|
-
function
|
|
288
|
-
return
|
|
287
|
+
function Ze(e, r, n) {
|
|
288
|
+
return pe(e, !1);
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function Qe(e) {
|
|
291
291
|
var r = e.prototype;
|
|
292
292
|
return !!(r && r.isReactComponent);
|
|
293
293
|
}
|
|
294
|
-
function
|
|
294
|
+
function V(e, r, n) {
|
|
295
295
|
if (e == null)
|
|
296
296
|
return "";
|
|
297
297
|
if (typeof e == "function")
|
|
298
|
-
return
|
|
298
|
+
return pe(e, Qe(e));
|
|
299
299
|
if (typeof e == "string")
|
|
300
300
|
return Y(e);
|
|
301
301
|
switch (e) {
|
|
302
|
-
case
|
|
302
|
+
case b:
|
|
303
303
|
return Y("Suspense");
|
|
304
|
-
case
|
|
304
|
+
case y:
|
|
305
305
|
return Y("SuspenseList");
|
|
306
306
|
}
|
|
307
307
|
if (typeof e == "object")
|
|
308
308
|
switch (e.$$typeof) {
|
|
309
|
-
case
|
|
310
|
-
return
|
|
311
|
-
case
|
|
312
|
-
return
|
|
313
|
-
case
|
|
314
|
-
var c = e,
|
|
309
|
+
case f:
|
|
310
|
+
return Ze(e.render);
|
|
311
|
+
case _:
|
|
312
|
+
return V(e.type, r, n);
|
|
313
|
+
case C: {
|
|
314
|
+
var c = e, p = c._payload, g = c._init;
|
|
315
315
|
try {
|
|
316
|
-
return
|
|
316
|
+
return V(g(p), r, n);
|
|
317
317
|
} catch {
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
321
|
return "";
|
|
322
322
|
}
|
|
323
|
-
var
|
|
324
|
-
function
|
|
323
|
+
var U = Object.prototype.hasOwnProperty, be = {}, he = D.ReactDebugCurrentFrame;
|
|
324
|
+
function G(e) {
|
|
325
325
|
if (e) {
|
|
326
|
-
var r = e._owner,
|
|
327
|
-
|
|
326
|
+
var r = e._owner, n = V(e.type, e._source, r ? r.type : null);
|
|
327
|
+
he.setExtraStackFrame(n);
|
|
328
328
|
} else
|
|
329
|
-
|
|
329
|
+
he.setExtraStackFrame(null);
|
|
330
330
|
}
|
|
331
|
-
function
|
|
331
|
+
function er(e, r, n, c, p) {
|
|
332
332
|
{
|
|
333
|
-
var
|
|
334
|
-
for (var
|
|
335
|
-
if (
|
|
336
|
-
var
|
|
333
|
+
var g = Function.call.bind(U);
|
|
334
|
+
for (var m in e)
|
|
335
|
+
if (g(e, m)) {
|
|
336
|
+
var d = void 0;
|
|
337
337
|
try {
|
|
338
|
-
if (typeof e[
|
|
339
|
-
var
|
|
340
|
-
throw
|
|
338
|
+
if (typeof e[m] != "function") {
|
|
339
|
+
var S = Error((c || "React class") + ": " + n + " type `" + m + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[m] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
340
|
+
throw S.name = "Invariant Violation", S;
|
|
341
341
|
}
|
|
342
|
-
|
|
343
|
-
} catch (
|
|
344
|
-
|
|
342
|
+
d = e[m](r, m, c, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
343
|
+
} catch (E) {
|
|
344
|
+
d = E;
|
|
345
345
|
}
|
|
346
|
-
|
|
346
|
+
d && !(d instanceof Error) && (G(p), k("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", c || "React class", n, m, typeof d), G(null)), d instanceof Error && !(d.message in be) && (be[d.message] = !0, G(p), k("Failed %s type: %s", n, d.message), G(null));
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
|
-
var
|
|
351
|
-
function
|
|
352
|
-
return
|
|
350
|
+
var rr = Array.isArray;
|
|
351
|
+
function K(e) {
|
|
352
|
+
return rr(e);
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function nr(e) {
|
|
355
355
|
{
|
|
356
|
-
var r = typeof Symbol == "function" && Symbol.toStringTag,
|
|
357
|
-
return
|
|
356
|
+
var r = typeof Symbol == "function" && Symbol.toStringTag, n = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
357
|
+
return n;
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function tr(e) {
|
|
361
361
|
try {
|
|
362
|
-
return
|
|
362
|
+
return ge(e), !1;
|
|
363
363
|
} catch {
|
|
364
364
|
return !0;
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
|
-
function
|
|
367
|
+
function ge(e) {
|
|
368
368
|
return "" + e;
|
|
369
369
|
}
|
|
370
|
-
function
|
|
371
|
-
if (
|
|
372
|
-
return
|
|
370
|
+
function xe(e) {
|
|
371
|
+
if (tr(e))
|
|
372
|
+
return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", nr(e)), ge(e);
|
|
373
373
|
}
|
|
374
|
-
var
|
|
374
|
+
var A = D.ReactCurrentOwner, ar = {
|
|
375
375
|
key: !0,
|
|
376
376
|
ref: !0,
|
|
377
377
|
__self: !0,
|
|
378
378
|
__source: !0
|
|
379
|
-
},
|
|
380
|
-
|
|
381
|
-
function
|
|
382
|
-
if (
|
|
379
|
+
}, ye, Re, z;
|
|
380
|
+
z = {};
|
|
381
|
+
function or(e) {
|
|
382
|
+
if (U.call(e, "ref")) {
|
|
383
383
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
384
384
|
if (r && r.isReactWarning)
|
|
385
385
|
return !1;
|
|
386
386
|
}
|
|
387
387
|
return e.ref !== void 0;
|
|
388
388
|
}
|
|
389
|
-
function
|
|
390
|
-
if (
|
|
389
|
+
function sr(e) {
|
|
390
|
+
if (U.call(e, "key")) {
|
|
391
391
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
392
392
|
if (r && r.isReactWarning)
|
|
393
393
|
return !1;
|
|
394
394
|
}
|
|
395
395
|
return e.key !== void 0;
|
|
396
396
|
}
|
|
397
|
-
function
|
|
398
|
-
if (typeof e.ref == "string" &&
|
|
399
|
-
var
|
|
400
|
-
|
|
397
|
+
function ir(e, r) {
|
|
398
|
+
if (typeof e.ref == "string" && A.current && r && A.current.stateNode !== r) {
|
|
399
|
+
var n = N(A.current.type);
|
|
400
|
+
z[n] || (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(A.current.type), e.ref), z[n] = !0);
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
|
-
function
|
|
403
|
+
function lr(e, r) {
|
|
404
404
|
{
|
|
405
|
-
var
|
|
406
|
-
|
|
405
|
+
var n = function() {
|
|
406
|
+
ye || (ye = !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)", r));
|
|
407
407
|
};
|
|
408
|
-
|
|
409
|
-
get:
|
|
408
|
+
n.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
409
|
+
get: n,
|
|
410
410
|
configurable: !0
|
|
411
411
|
});
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
|
-
function
|
|
414
|
+
function cr(e, r) {
|
|
415
415
|
{
|
|
416
|
-
var
|
|
417
|
-
|
|
416
|
+
var n = function() {
|
|
417
|
+
Re || (Re = !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)", r));
|
|
418
418
|
};
|
|
419
|
-
|
|
420
|
-
get:
|
|
419
|
+
n.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
420
|
+
get: n,
|
|
421
421
|
configurable: !0
|
|
422
422
|
});
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
|
-
var
|
|
426
|
-
var
|
|
425
|
+
var ur = function(e, r, n, c, p, g, m) {
|
|
426
|
+
var d = {
|
|
427
427
|
// This tag allows us to uniquely identify this as a React Element
|
|
428
428
|
$$typeof: s,
|
|
429
429
|
// Built-in properties that belong on the element
|
|
430
430
|
type: e,
|
|
431
431
|
key: r,
|
|
432
|
-
ref:
|
|
433
|
-
props:
|
|
432
|
+
ref: n,
|
|
433
|
+
props: m,
|
|
434
434
|
// Record the component responsible for creating this element.
|
|
435
|
-
_owner:
|
|
435
|
+
_owner: g
|
|
436
436
|
};
|
|
437
|
-
return
|
|
437
|
+
return d._store = {}, Object.defineProperty(d._store, "validated", {
|
|
438
438
|
configurable: !1,
|
|
439
439
|
enumerable: !1,
|
|
440
440
|
writable: !0,
|
|
441
441
|
value: !1
|
|
442
|
-
}), Object.defineProperty(
|
|
442
|
+
}), Object.defineProperty(d, "_self", {
|
|
443
443
|
configurable: !1,
|
|
444
444
|
enumerable: !1,
|
|
445
445
|
writable: !1,
|
|
446
446
|
value: c
|
|
447
|
-
}), Object.defineProperty(
|
|
447
|
+
}), Object.defineProperty(d, "_source", {
|
|
448
448
|
configurable: !1,
|
|
449
449
|
enumerable: !1,
|
|
450
450
|
writable: !1,
|
|
451
|
-
value:
|
|
452
|
-
}), Object.freeze && (Object.freeze(
|
|
451
|
+
value: p
|
|
452
|
+
}), Object.freeze && (Object.freeze(d.props), Object.freeze(d)), d;
|
|
453
453
|
};
|
|
454
|
-
function
|
|
454
|
+
function fr(e, r, n, c, p) {
|
|
455
455
|
{
|
|
456
|
-
var
|
|
457
|
-
|
|
458
|
-
for (
|
|
459
|
-
|
|
456
|
+
var g, m = {}, d = null, S = null;
|
|
457
|
+
n !== void 0 && (xe(n), d = "" + n), sr(r) && (xe(r.key), d = "" + r.key), or(r) && (S = r.ref, ir(r, p));
|
|
458
|
+
for (g in r)
|
|
459
|
+
U.call(r, g) && !ar.hasOwnProperty(g) && (m[g] = r[g]);
|
|
460
460
|
if (e && e.defaultProps) {
|
|
461
|
-
var
|
|
462
|
-
for (
|
|
463
|
-
|
|
461
|
+
var E = e.defaultProps;
|
|
462
|
+
for (g in E)
|
|
463
|
+
m[g] === void 0 && (m[g] = E[g]);
|
|
464
464
|
}
|
|
465
|
-
if (
|
|
466
|
-
var
|
|
467
|
-
|
|
465
|
+
if (d || S) {
|
|
466
|
+
var j = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
467
|
+
d && lr(m, j), S && cr(m, j);
|
|
468
468
|
}
|
|
469
|
-
return
|
|
469
|
+
return ur(e, d, S, p, c, A.current, m);
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
|
-
var
|
|
473
|
-
function
|
|
472
|
+
var X = D.ReactCurrentOwner, Ee = D.ReactDebugCurrentFrame;
|
|
473
|
+
function F(e) {
|
|
474
474
|
if (e) {
|
|
475
|
-
var r = e._owner,
|
|
476
|
-
|
|
475
|
+
var r = e._owner, n = V(e.type, e._source, r ? r.type : null);
|
|
476
|
+
Ee.setExtraStackFrame(n);
|
|
477
477
|
} else
|
|
478
|
-
|
|
478
|
+
Ee.setExtraStackFrame(null);
|
|
479
479
|
}
|
|
480
|
-
var
|
|
481
|
-
|
|
482
|
-
function
|
|
480
|
+
var Z;
|
|
481
|
+
Z = !1;
|
|
482
|
+
function Q(e) {
|
|
483
483
|
return typeof e == "object" && e !== null && e.$$typeof === s;
|
|
484
484
|
}
|
|
485
|
-
function
|
|
485
|
+
function je() {
|
|
486
486
|
{
|
|
487
|
-
if (
|
|
488
|
-
var e =
|
|
487
|
+
if (X.current) {
|
|
488
|
+
var e = N(X.current.type);
|
|
489
489
|
if (e)
|
|
490
490
|
return `
|
|
491
491
|
|
|
@@ -494,654 +494,655 @@ Check the render method of \`` + e + "`.";
|
|
|
494
494
|
return "";
|
|
495
495
|
}
|
|
496
496
|
}
|
|
497
|
-
function
|
|
497
|
+
function dr(e) {
|
|
498
498
|
{
|
|
499
499
|
if (e !== void 0) {
|
|
500
|
-
var r = e.fileName.replace(/^.*[\\\/]/, ""),
|
|
500
|
+
var r = e.fileName.replace(/^.*[\\\/]/, ""), n = e.lineNumber;
|
|
501
501
|
return `
|
|
502
502
|
|
|
503
|
-
Check your code at ` + r + ":" +
|
|
503
|
+
Check your code at ` + r + ":" + n + ".";
|
|
504
504
|
}
|
|
505
505
|
return "";
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
|
-
var
|
|
509
|
-
function
|
|
508
|
+
var Te = {};
|
|
509
|
+
function vr(e) {
|
|
510
510
|
{
|
|
511
|
-
var r =
|
|
511
|
+
var r = je();
|
|
512
512
|
if (!r) {
|
|
513
|
-
var
|
|
514
|
-
|
|
513
|
+
var n = typeof e == "string" ? e : e.displayName || e.name;
|
|
514
|
+
n && (r = `
|
|
515
515
|
|
|
516
|
-
Check the top-level render call using <` +
|
|
516
|
+
Check the top-level render call using <` + n + ">.");
|
|
517
517
|
}
|
|
518
518
|
return r;
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
|
-
function
|
|
521
|
+
function _e(e, r) {
|
|
522
522
|
{
|
|
523
523
|
if (!e._store || e._store.validated || e.key != null)
|
|
524
524
|
return;
|
|
525
525
|
e._store.validated = !0;
|
|
526
|
-
var
|
|
527
|
-
if (
|
|
526
|
+
var n = vr(r);
|
|
527
|
+
if (Te[n])
|
|
528
528
|
return;
|
|
529
|
-
|
|
529
|
+
Te[n] = !0;
|
|
530
530
|
var c = "";
|
|
531
|
-
e && e._owner && e._owner !==
|
|
531
|
+
e && e._owner && e._owner !== X.current && (c = " It was passed a child from " + N(e._owner.type) + "."), F(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.', n, c), F(null);
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
|
-
function
|
|
534
|
+
function ke(e, r) {
|
|
535
535
|
{
|
|
536
536
|
if (typeof e != "object")
|
|
537
537
|
return;
|
|
538
|
-
if (
|
|
539
|
-
for (var
|
|
540
|
-
var c = e[
|
|
541
|
-
|
|
538
|
+
if (K(e))
|
|
539
|
+
for (var n = 0; n < e.length; n++) {
|
|
540
|
+
var c = e[n];
|
|
541
|
+
Q(c) && _e(c, r);
|
|
542
542
|
}
|
|
543
|
-
else if (
|
|
543
|
+
else if (Q(e))
|
|
544
544
|
e._store && (e._store.validated = !0);
|
|
545
545
|
else if (e) {
|
|
546
|
-
var
|
|
547
|
-
if (typeof
|
|
548
|
-
for (var
|
|
549
|
-
|
|
546
|
+
var p = We(e);
|
|
547
|
+
if (typeof p == "function" && p !== e.entries)
|
|
548
|
+
for (var g = p.call(e), m; !(m = g.next()).done; )
|
|
549
|
+
Q(m.value) && _e(m.value, r);
|
|
550
550
|
}
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
|
-
function
|
|
553
|
+
function mr(e) {
|
|
554
554
|
{
|
|
555
555
|
var r = e.type;
|
|
556
556
|
if (r == null || typeof r == "string")
|
|
557
557
|
return;
|
|
558
|
-
var
|
|
558
|
+
var n;
|
|
559
559
|
if (typeof r == "function")
|
|
560
|
-
|
|
561
|
-
else if (typeof r == "object" && (r.$$typeof ===
|
|
560
|
+
n = r.propTypes;
|
|
561
|
+
else if (typeof r == "object" && (r.$$typeof === f || // Note: Memo only checks outer props here.
|
|
562
562
|
// Inner props are checked in the reconciler.
|
|
563
|
-
r.$$typeof ===
|
|
564
|
-
|
|
563
|
+
r.$$typeof === _))
|
|
564
|
+
n = r.propTypes;
|
|
565
565
|
else
|
|
566
566
|
return;
|
|
567
|
-
if (
|
|
568
|
-
var c =
|
|
569
|
-
|
|
570
|
-
} else if (r.PropTypes !== void 0 && !
|
|
571
|
-
|
|
572
|
-
var
|
|
573
|
-
|
|
567
|
+
if (n) {
|
|
568
|
+
var c = N(r);
|
|
569
|
+
er(n, e.props, "prop", c, e);
|
|
570
|
+
} else if (r.PropTypes !== void 0 && !Z) {
|
|
571
|
+
Z = !0;
|
|
572
|
+
var p = N(r);
|
|
573
|
+
k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", p || "Unknown");
|
|
574
574
|
}
|
|
575
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved &&
|
|
575
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
|
-
function
|
|
578
|
+
function pr(e) {
|
|
579
579
|
{
|
|
580
|
-
for (var r = Object.keys(e.props),
|
|
581
|
-
var c = r[
|
|
580
|
+
for (var r = Object.keys(e.props), n = 0; n < r.length; n++) {
|
|
581
|
+
var c = r[n];
|
|
582
582
|
if (c !== "children" && c !== "key") {
|
|
583
|
-
|
|
583
|
+
F(e), k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", c), F(null);
|
|
584
584
|
break;
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
|
-
e.ref !== null && (
|
|
587
|
+
e.ref !== null && (F(e), k("Invalid attribute `ref` supplied to `React.Fragment`."), F(null));
|
|
588
588
|
}
|
|
589
589
|
}
|
|
590
|
-
function
|
|
590
|
+
function Se(e, r, n, c, p, g) {
|
|
591
591
|
{
|
|
592
|
-
var
|
|
593
|
-
if (!
|
|
594
|
-
var
|
|
595
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
|
596
|
-
var
|
|
597
|
-
|
|
598
|
-
var
|
|
599
|
-
e === null ?
|
|
592
|
+
var m = Je(e);
|
|
593
|
+
if (!m) {
|
|
594
|
+
var d = "";
|
|
595
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (d += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
596
|
+
var S = dr(p);
|
|
597
|
+
S ? d += S : d += je();
|
|
598
|
+
var E;
|
|
599
|
+
e === null ? E = "null" : K(e) ? E = "array" : e !== void 0 && e.$$typeof === s ? (E = "<" + (N(e.type) || "Unknown") + " />", d = " 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, d);
|
|
600
600
|
}
|
|
601
|
-
var
|
|
602
|
-
if (
|
|
603
|
-
return
|
|
604
|
-
if (
|
|
605
|
-
var
|
|
606
|
-
if (
|
|
601
|
+
var j = fr(e, r, n, p, g);
|
|
602
|
+
if (j == null)
|
|
603
|
+
return j;
|
|
604
|
+
if (m) {
|
|
605
|
+
var P = r.children;
|
|
606
|
+
if (P !== void 0)
|
|
607
607
|
if (c)
|
|
608
|
-
if (
|
|
609
|
-
for (var
|
|
610
|
-
|
|
611
|
-
Object.freeze && Object.freeze(
|
|
608
|
+
if (K(P)) {
|
|
609
|
+
for (var I = 0; I < P.length; I++)
|
|
610
|
+
ke(P[I], e);
|
|
611
|
+
Object.freeze && Object.freeze(P);
|
|
612
612
|
} else
|
|
613
|
-
|
|
613
|
+
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.");
|
|
614
614
|
else
|
|
615
|
-
|
|
615
|
+
ke(P, e);
|
|
616
616
|
}
|
|
617
|
-
return e ===
|
|
617
|
+
return e === t ? pr(j) : mr(j), j;
|
|
618
618
|
}
|
|
619
619
|
}
|
|
620
|
-
function
|
|
621
|
-
return
|
|
620
|
+
function br(e, r, n) {
|
|
621
|
+
return Se(e, r, n, !0);
|
|
622
622
|
}
|
|
623
|
-
function
|
|
624
|
-
return
|
|
623
|
+
function hr(e, r, n) {
|
|
624
|
+
return Se(e, r, n, !1);
|
|
625
625
|
}
|
|
626
|
-
var
|
|
627
|
-
|
|
628
|
-
}()),
|
|
626
|
+
var gr = hr, xr = br;
|
|
627
|
+
$.Fragment = t, $.jsx = gr, $.jsxs = xr;
|
|
628
|
+
}()), $;
|
|
629
629
|
}
|
|
630
|
-
process.env.NODE_ENV === "production" ?
|
|
631
|
-
var o =
|
|
632
|
-
const
|
|
630
|
+
process.env.NODE_ENV === "production" ? ee.exports = qr() : ee.exports = Jr();
|
|
631
|
+
var o = ee.exports;
|
|
632
|
+
const Hr = (a) => {
|
|
633
633
|
const { children: s, ...i } = a;
|
|
634
|
-
return
|
|
635
|
-
},
|
|
634
|
+
return x(i), /* @__PURE__ */ o.jsx(re, { children: s });
|
|
635
|
+
}, Kr = R((a, s) => {
|
|
636
636
|
const {
|
|
637
637
|
className: i,
|
|
638
|
-
name:
|
|
638
|
+
name: t,
|
|
639
639
|
label: l,
|
|
640
|
-
icon:
|
|
641
|
-
value:
|
|
642
|
-
autoFocus:
|
|
643
|
-
placeholder:
|
|
644
|
-
onKeyDown:
|
|
645
|
-
onChange:
|
|
646
|
-
onSubmit:
|
|
647
|
-
...
|
|
640
|
+
icon: u,
|
|
641
|
+
value: v,
|
|
642
|
+
autoFocus: h,
|
|
643
|
+
placeholder: f,
|
|
644
|
+
onKeyDown: b,
|
|
645
|
+
onChange: y,
|
|
646
|
+
onSubmit: _,
|
|
647
|
+
...C
|
|
648
648
|
} = a;
|
|
649
|
-
return
|
|
650
|
-
a.label && /* @__PURE__ */ o.jsx(
|
|
649
|
+
return x(C), /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
650
|
+
a.label && /* @__PURE__ */ o.jsx(Er, { name: t, children: l }),
|
|
651
651
|
/* @__PURE__ */ o.jsxs("div", { className: "bn-ak-input-wrapper", children: [
|
|
652
|
-
|
|
652
|
+
u,
|
|
653
653
|
/* @__PURE__ */ o.jsx(
|
|
654
|
-
|
|
654
|
+
ne,
|
|
655
655
|
{
|
|
656
|
-
className:
|
|
656
|
+
className: T("bn-ak-input", i || ""),
|
|
657
657
|
ref: s,
|
|
658
|
-
name:
|
|
659
|
-
value:
|
|
660
|
-
autoFocus:
|
|
661
|
-
placeholder:
|
|
662
|
-
onKeyDown:
|
|
663
|
-
onChange:
|
|
664
|
-
onSubmit:
|
|
658
|
+
name: t,
|
|
659
|
+
value: v,
|
|
660
|
+
autoFocus: h,
|
|
661
|
+
placeholder: f,
|
|
662
|
+
onKeyDown: b,
|
|
663
|
+
onChange: y,
|
|
664
|
+
onSubmit: _
|
|
665
665
|
}
|
|
666
666
|
)
|
|
667
667
|
] })
|
|
668
668
|
] });
|
|
669
|
-
}),
|
|
669
|
+
}), zr = (a) => {
|
|
670
670
|
const {
|
|
671
671
|
children: s,
|
|
672
672
|
onOpenChange: i,
|
|
673
|
-
position:
|
|
673
|
+
position: t,
|
|
674
674
|
sub: l,
|
|
675
675
|
// unused
|
|
676
|
-
...
|
|
676
|
+
...u
|
|
677
677
|
} = a;
|
|
678
|
-
return
|
|
679
|
-
|
|
678
|
+
return x(u), /* @__PURE__ */ o.jsx(
|
|
679
|
+
Sr,
|
|
680
680
|
{
|
|
681
|
-
placement:
|
|
681
|
+
placement: t,
|
|
682
682
|
setOpen: i,
|
|
683
683
|
virtualFocus: !0,
|
|
684
684
|
children: s
|
|
685
685
|
}
|
|
686
686
|
);
|
|
687
|
-
},
|
|
687
|
+
}, Xr = R((a, s) => {
|
|
688
688
|
const {
|
|
689
689
|
className: i,
|
|
690
|
-
children:
|
|
690
|
+
children: t,
|
|
691
691
|
sub: l,
|
|
692
692
|
// unused
|
|
693
|
-
...
|
|
693
|
+
...u
|
|
694
694
|
} = a;
|
|
695
|
-
return
|
|
696
|
-
|
|
695
|
+
return x(u), /* @__PURE__ */ o.jsx(
|
|
696
|
+
jr,
|
|
697
697
|
{
|
|
698
|
-
|
|
698
|
+
unmountOnHide: !0,
|
|
699
|
+
className: T("bn-ak-menu", i || ""),
|
|
699
700
|
ref: s,
|
|
700
|
-
children:
|
|
701
|
+
children: t
|
|
701
702
|
}
|
|
702
703
|
);
|
|
703
|
-
}),
|
|
704
|
-
const { className: i, children:
|
|
705
|
-
return
|
|
706
|
-
|
|
704
|
+
}), Zr = R((a, s) => {
|
|
705
|
+
const { className: i, children: t, icon: l, checked: u, subTrigger: v, onClick: h, ...f } = a;
|
|
706
|
+
return x(f), v ? /* @__PURE__ */ o.jsxs(
|
|
707
|
+
Me,
|
|
707
708
|
{
|
|
708
|
-
render: /* @__PURE__ */ o.jsx(
|
|
709
|
-
className:
|
|
709
|
+
render: /* @__PURE__ */ o.jsx(Ce, {}),
|
|
710
|
+
className: T("bn-ak-menu-item", i || ""),
|
|
710
711
|
ref: s,
|
|
711
|
-
onClick:
|
|
712
|
+
onClick: h,
|
|
712
713
|
children: [
|
|
713
714
|
l,
|
|
714
|
-
|
|
715
|
-
/* @__PURE__ */ o.jsx(
|
|
716
|
-
|
|
715
|
+
t,
|
|
716
|
+
/* @__PURE__ */ o.jsx(Tr, {}),
|
|
717
|
+
u !== void 0 && /* @__PURE__ */ o.jsx(Ne, { checked: u })
|
|
717
718
|
]
|
|
718
719
|
}
|
|
719
720
|
) : /* @__PURE__ */ o.jsxs(
|
|
720
|
-
|
|
721
|
+
Ce,
|
|
721
722
|
{
|
|
722
|
-
className:
|
|
723
|
+
className: T("bn-ak-menu-item", i || ""),
|
|
723
724
|
ref: s,
|
|
724
|
-
onClick:
|
|
725
|
+
onClick: h,
|
|
725
726
|
children: [
|
|
726
727
|
l,
|
|
727
|
-
|
|
728
|
-
|
|
728
|
+
t,
|
|
729
|
+
u !== void 0 && /* @__PURE__ */ o.jsx(Ne, { checked: u })
|
|
729
730
|
]
|
|
730
731
|
}
|
|
731
732
|
);
|
|
732
|
-
}),
|
|
733
|
-
const { className: i, children:
|
|
734
|
-
return
|
|
735
|
-
|
|
733
|
+
}), Qr = R((a, s) => {
|
|
734
|
+
const { className: i, children: t, ...l } = a;
|
|
735
|
+
return x(l), /* @__PURE__ */ o.jsx(
|
|
736
|
+
_r,
|
|
736
737
|
{
|
|
737
|
-
className:
|
|
738
|
+
className: T("bn-ak-group-label", i || ""),
|
|
738
739
|
ref: s,
|
|
739
|
-
children:
|
|
740
|
+
children: t
|
|
740
741
|
}
|
|
741
742
|
);
|
|
742
|
-
}),
|
|
743
|
-
const { children: s, sub: i, ...
|
|
744
|
-
return
|
|
745
|
-
},
|
|
746
|
-
const { className: i, ...
|
|
747
|
-
return
|
|
748
|
-
|
|
743
|
+
}), en = (a) => {
|
|
744
|
+
const { children: s, sub: i, ...t } = a;
|
|
745
|
+
return x(t), i ? s : /* @__PURE__ */ o.jsx(Me, { render: s });
|
|
746
|
+
}, rn = R((a, s) => {
|
|
747
|
+
const { className: i, ...t } = a;
|
|
748
|
+
return x(t), /* @__PURE__ */ o.jsx(
|
|
749
|
+
kr,
|
|
749
750
|
{
|
|
750
|
-
className:
|
|
751
|
+
className: T("bn-ak-separator", i || ""),
|
|
751
752
|
ref: s
|
|
752
753
|
}
|
|
753
754
|
);
|
|
754
|
-
}),
|
|
755
|
+
}), nn = R((a, s) => {
|
|
755
756
|
const {
|
|
756
757
|
className: i,
|
|
757
|
-
tabs:
|
|
758
|
+
tabs: t,
|
|
758
759
|
defaultOpenTab: l,
|
|
759
|
-
openTab:
|
|
760
|
-
setOpenTab:
|
|
761
|
-
loading:
|
|
760
|
+
openTab: u,
|
|
761
|
+
setOpenTab: v,
|
|
762
|
+
loading: h,
|
|
762
763
|
// TODO: implement loading
|
|
763
|
-
...
|
|
764
|
+
...f
|
|
764
765
|
} = a;
|
|
765
|
-
return
|
|
766
|
+
return x(f), /* @__PURE__ */ o.jsx(
|
|
766
767
|
"div",
|
|
767
768
|
{
|
|
768
|
-
className:
|
|
769
|
+
className: T("bn-ak-wrapper", i || ""),
|
|
769
770
|
ref: s,
|
|
770
771
|
children: /* @__PURE__ */ o.jsxs(
|
|
771
|
-
|
|
772
|
+
Pr,
|
|
772
773
|
{
|
|
773
774
|
defaultSelectedId: l,
|
|
774
|
-
selectedId:
|
|
775
|
-
setActiveId: (
|
|
776
|
-
|
|
775
|
+
selectedId: u,
|
|
776
|
+
setActiveId: (b) => {
|
|
777
|
+
b && v(b);
|
|
777
778
|
},
|
|
778
779
|
children: [
|
|
779
|
-
/* @__PURE__ */ o.jsx(
|
|
780
|
-
/* @__PURE__ */ o.jsx("div", { className: "bn-ak-panels", children:
|
|
780
|
+
/* @__PURE__ */ o.jsx(Cr, { className: "bn-ak-tab-list", children: t.map((b) => /* @__PURE__ */ o.jsx(Nr, { className: "bn-ak-tab", id: b.name, children: b.name }, b.name)) }),
|
|
781
|
+
/* @__PURE__ */ o.jsx("div", { className: "bn-ak-panels", children: t.map((b) => /* @__PURE__ */ o.jsx(wr, { tabId: b.name, children: b.tabPanel }, b.name)) })
|
|
781
782
|
]
|
|
782
783
|
}
|
|
783
784
|
)
|
|
784
785
|
}
|
|
785
786
|
);
|
|
786
|
-
}),
|
|
787
|
-
const { className: i, children:
|
|
788
|
-
return
|
|
789
|
-
|
|
787
|
+
}), tn = R((a, s) => {
|
|
788
|
+
const { className: i, children: t, onClick: l, label: u, ...v } = a;
|
|
789
|
+
return x(v), /* @__PURE__ */ o.jsx(
|
|
790
|
+
te,
|
|
790
791
|
{
|
|
791
|
-
className:
|
|
792
|
+
className: T("bn-ak-button", i || ""),
|
|
792
793
|
onClick: l,
|
|
793
|
-
"aria-label":
|
|
794
|
+
"aria-label": u,
|
|
794
795
|
ref: s,
|
|
795
|
-
children:
|
|
796
|
+
children: t
|
|
796
797
|
}
|
|
797
798
|
);
|
|
798
|
-
}),
|
|
799
|
-
const { className: i, accept:
|
|
800
|
-
return
|
|
801
|
-
|
|
799
|
+
}), an = R((a, s) => {
|
|
800
|
+
const { className: i, accept: t, value: l, placeholder: u, onChange: v, ...h } = a;
|
|
801
|
+
return x(h), /* @__PURE__ */ o.jsx(re, { children: /* @__PURE__ */ o.jsx(
|
|
802
|
+
ne,
|
|
802
803
|
{
|
|
803
804
|
className: i,
|
|
804
805
|
ref: s,
|
|
805
806
|
name: "panel-input",
|
|
806
807
|
type: "file",
|
|
807
|
-
accept:
|
|
808
|
+
accept: t,
|
|
808
809
|
value: l ? l.name : void 0,
|
|
809
|
-
onChange: async (
|
|
810
|
-
placeholder:
|
|
810
|
+
onChange: async (f) => v == null ? void 0 : v(f.target.files[0]),
|
|
811
|
+
placeholder: u
|
|
811
812
|
}
|
|
812
813
|
) });
|
|
813
|
-
}),
|
|
814
|
-
const { className: i, children:
|
|
815
|
-
return
|
|
816
|
-
}),
|
|
817
|
-
const { className: i, value:
|
|
818
|
-
return
|
|
819
|
-
|
|
814
|
+
}), on = R((a, s) => {
|
|
815
|
+
const { className: i, children: t, ...l } = a;
|
|
816
|
+
return x(l), /* @__PURE__ */ o.jsx("div", { className: i, ref: s, children: t });
|
|
817
|
+
}), sn = R((a, s) => {
|
|
818
|
+
const { className: i, value: t, placeholder: l, onKeyDown: u, onChange: v, ...h } = a;
|
|
819
|
+
return x(h), /* @__PURE__ */ o.jsx(re, { children: /* @__PURE__ */ o.jsx(
|
|
820
|
+
ne,
|
|
820
821
|
{
|
|
821
|
-
className:
|
|
822
|
+
className: T("bn-ak-input", i || ""),
|
|
822
823
|
name: "panel-input",
|
|
823
|
-
value:
|
|
824
|
+
value: t,
|
|
824
825
|
placeholder: l,
|
|
825
|
-
onChange:
|
|
826
|
-
onKeyDown:
|
|
826
|
+
onChange: v,
|
|
827
|
+
onKeyDown: u,
|
|
827
828
|
"data-test": "embed-input",
|
|
828
829
|
ref: s
|
|
829
830
|
}
|
|
830
831
|
) });
|
|
831
|
-
}),
|
|
832
|
-
const { children: i, ...
|
|
833
|
-
return
|
|
834
|
-
}),
|
|
835
|
-
const { className: i, children:
|
|
836
|
-
return
|
|
837
|
-
|
|
832
|
+
}), ln = R((a, s) => {
|
|
833
|
+
const { children: i, ...t } = a;
|
|
834
|
+
return x(t), /* @__PURE__ */ o.jsx(Or, { render: i, ref: s });
|
|
835
|
+
}), cn = R((a, s) => {
|
|
836
|
+
const { className: i, children: t, variant: l, ...u } = a;
|
|
837
|
+
return x(u), /* @__PURE__ */ o.jsx(
|
|
838
|
+
Dr,
|
|
838
839
|
{
|
|
839
|
-
className:
|
|
840
|
+
className: T("bn-ak-popover", i || ""),
|
|
840
841
|
ref: s,
|
|
841
|
-
children:
|
|
842
|
+
children: t
|
|
842
843
|
}
|
|
843
844
|
);
|
|
844
|
-
}),
|
|
845
|
-
const { children: s, opened: i, position:
|
|
846
|
-
return
|
|
847
|
-
},
|
|
848
|
-
const { className: i, children:
|
|
849
|
-
return
|
|
850
|
-
}),
|
|
845
|
+
}), un = (a) => {
|
|
846
|
+
const { children: s, opened: i, position: t, ...l } = a;
|
|
847
|
+
return x(l), /* @__PURE__ */ o.jsx(Fr, { open: i, placement: t, children: s });
|
|
848
|
+
}, fn = R((a, s) => {
|
|
849
|
+
const { className: i, children: t, ...l } = a;
|
|
850
|
+
return x(l, !1), /* @__PURE__ */ o.jsx(Ae, { className: i, ref: s, ...l, children: t });
|
|
851
|
+
}), dn = R((a, s) => {
|
|
851
852
|
const {
|
|
852
853
|
className: i,
|
|
853
|
-
children:
|
|
854
|
+
children: t,
|
|
854
855
|
icon: l,
|
|
855
|
-
onClick:
|
|
856
|
-
label:
|
|
857
|
-
onDragEnd:
|
|
858
|
-
onDragStart:
|
|
859
|
-
draggable:
|
|
860
|
-
...
|
|
856
|
+
onClick: u,
|
|
857
|
+
label: v,
|
|
858
|
+
onDragEnd: h,
|
|
859
|
+
onDragStart: f,
|
|
860
|
+
draggable: b,
|
|
861
|
+
...y
|
|
861
862
|
} = a;
|
|
862
|
-
return y
|
|
863
|
-
|
|
863
|
+
return x(y, !1), /* @__PURE__ */ o.jsxs(
|
|
864
|
+
te,
|
|
864
865
|
{
|
|
865
|
-
onDragEnd:
|
|
866
|
-
onDragStart:
|
|
867
|
-
draggable:
|
|
868
|
-
"aria-label":
|
|
869
|
-
className:
|
|
866
|
+
onDragEnd: h,
|
|
867
|
+
onDragStart: f,
|
|
868
|
+
draggable: b,
|
|
869
|
+
"aria-label": v,
|
|
870
|
+
className: T(
|
|
870
871
|
"bn-ak-button bn-ak-secondary",
|
|
871
872
|
i || ""
|
|
872
873
|
),
|
|
873
874
|
ref: s,
|
|
874
|
-
onClick:
|
|
875
|
-
...
|
|
875
|
+
onClick: u,
|
|
876
|
+
...y,
|
|
876
877
|
children: [
|
|
877
878
|
l,
|
|
878
|
-
|
|
879
|
+
t
|
|
879
880
|
]
|
|
880
881
|
}
|
|
881
882
|
);
|
|
882
|
-
}),
|
|
883
|
-
const { className: i, children:
|
|
884
|
-
return
|
|
885
|
-
|
|
883
|
+
}), vn = R((a, s) => {
|
|
884
|
+
const { className: i, children: t, id: l, ...u } = a;
|
|
885
|
+
return x(u), /* @__PURE__ */ o.jsx(
|
|
886
|
+
Ae,
|
|
886
887
|
{
|
|
887
|
-
className:
|
|
888
|
+
className: T("bn-ak-menu", i || ""),
|
|
888
889
|
id: l,
|
|
889
890
|
role: "listbox",
|
|
890
891
|
ref: s,
|
|
891
|
-
children:
|
|
892
|
+
children: t
|
|
892
893
|
}
|
|
893
894
|
);
|
|
894
|
-
}),
|
|
895
|
-
const { className: i, item:
|
|
896
|
-
return
|
|
895
|
+
}), mn = R((a, s) => {
|
|
896
|
+
const { className: i, item: t, isSelected: l, onClick: u, id: v, ...h } = a;
|
|
897
|
+
return x(h), /* @__PURE__ */ o.jsxs(
|
|
897
898
|
"div",
|
|
898
899
|
{
|
|
899
|
-
className:
|
|
900
|
+
className: T("bn-ak-menu-item", i || ""),
|
|
900
901
|
ref: s,
|
|
901
|
-
id:
|
|
902
|
-
onClick:
|
|
902
|
+
id: v,
|
|
903
|
+
onClick: u,
|
|
903
904
|
role: "option",
|
|
904
905
|
"aria-selected": l || void 0,
|
|
905
906
|
children: [
|
|
906
|
-
|
|
907
|
+
t.icon && /* @__PURE__ */ o.jsx(
|
|
907
908
|
"div",
|
|
908
909
|
{
|
|
909
910
|
className: "bn-ak-suggestion-menu-item-section",
|
|
910
911
|
"data-position": "left",
|
|
911
|
-
children:
|
|
912
|
+
children: t.icon
|
|
912
913
|
}
|
|
913
914
|
),
|
|
914
915
|
/* @__PURE__ */ o.jsxs("div", { className: "bn-ak-suggestion-menu-item-body", children: [
|
|
915
|
-
/* @__PURE__ */ o.jsx("div", { className: "bn-ak-suggestion-menu-item-title", children:
|
|
916
|
-
/* @__PURE__ */ o.jsx("div", { className: "bn-ak-suggestion-menu-item-subtitle", children:
|
|
916
|
+
/* @__PURE__ */ o.jsx("div", { className: "bn-ak-suggestion-menu-item-title", children: t.title }),
|
|
917
|
+
/* @__PURE__ */ o.jsx("div", { className: "bn-ak-suggestion-menu-item-subtitle", children: t.subtext })
|
|
917
918
|
] }),
|
|
918
|
-
|
|
919
|
+
t.badge && /* @__PURE__ */ o.jsx(
|
|
919
920
|
"div",
|
|
920
921
|
{
|
|
921
922
|
"data-position": "right",
|
|
922
923
|
className: "bn-ak-suggestion-menu-item-section",
|
|
923
|
-
children: /* @__PURE__ */ o.jsx("div", { children:
|
|
924
|
+
children: /* @__PURE__ */ o.jsx("div", { children: t.badge })
|
|
924
925
|
}
|
|
925
926
|
)
|
|
926
927
|
]
|
|
927
928
|
}
|
|
928
929
|
);
|
|
929
|
-
}),
|
|
930
|
-
const { className: i, children:
|
|
931
|
-
return
|
|
930
|
+
}), pn = R((a, s) => {
|
|
931
|
+
const { className: i, children: t, ...l } = a;
|
|
932
|
+
return x(l), /* @__PURE__ */ o.jsx(
|
|
932
933
|
"div",
|
|
933
934
|
{
|
|
934
|
-
className:
|
|
935
|
+
className: T("bn-ak-menu-item", i || ""),
|
|
935
936
|
ref: s,
|
|
936
|
-
children: /* @__PURE__ */ o.jsx("div", { className: "bn-ak-suggestion-menu-item-label", children:
|
|
937
|
+
children: /* @__PURE__ */ o.jsx("div", { className: "bn-ak-suggestion-menu-item-label", children: t })
|
|
937
938
|
}
|
|
938
939
|
);
|
|
939
|
-
}),
|
|
940
|
-
const { className: i, children:
|
|
941
|
-
return
|
|
940
|
+
}), bn = R((a, s) => {
|
|
941
|
+
const { className: i, children: t, ...l } = a;
|
|
942
|
+
return x(l), /* @__PURE__ */ o.jsx(
|
|
942
943
|
"div",
|
|
943
944
|
{
|
|
944
|
-
className:
|
|
945
|
+
className: T("bn-ak-group-label", i || ""),
|
|
945
946
|
ref: s,
|
|
946
|
-
children:
|
|
947
|
+
children: t
|
|
947
948
|
}
|
|
948
949
|
);
|
|
949
|
-
}),
|
|
950
|
-
const { className: i, children:
|
|
951
|
-
return
|
|
952
|
-
}),
|
|
950
|
+
}), hn = R((a, s) => {
|
|
951
|
+
const { className: i, children: t, ...l } = a;
|
|
952
|
+
return x(l), /* @__PURE__ */ o.jsx("div", { className: i, ref: s, children: t });
|
|
953
|
+
}), gn = R((a, s) => {
|
|
953
954
|
const {
|
|
954
955
|
className: i,
|
|
955
|
-
children:
|
|
956
|
+
children: t,
|
|
956
957
|
draggable: l,
|
|
957
|
-
onDragStart:
|
|
958
|
-
onDragEnd:
|
|
959
|
-
style:
|
|
960
|
-
label:
|
|
961
|
-
...
|
|
958
|
+
onDragStart: u,
|
|
959
|
+
onDragEnd: v,
|
|
960
|
+
style: h,
|
|
961
|
+
label: f,
|
|
962
|
+
...b
|
|
962
963
|
} = a;
|
|
963
|
-
return
|
|
964
|
-
|
|
964
|
+
return x(b, !1), /* @__PURE__ */ o.jsx(
|
|
965
|
+
te,
|
|
965
966
|
{
|
|
966
|
-
className:
|
|
967
|
+
className: T(
|
|
967
968
|
"bn-ak-button bn-ak-secondary",
|
|
968
969
|
i || ""
|
|
969
970
|
),
|
|
970
971
|
ref: s,
|
|
971
|
-
"aria-label":
|
|
972
|
+
"aria-label": f,
|
|
972
973
|
draggable: l,
|
|
973
|
-
onDragStart:
|
|
974
|
-
onDragEnd:
|
|
975
|
-
style:
|
|
976
|
-
...
|
|
977
|
-
children:
|
|
974
|
+
onDragStart: u,
|
|
975
|
+
onDragEnd: v,
|
|
976
|
+
style: h,
|
|
977
|
+
...b,
|
|
978
|
+
children: t
|
|
978
979
|
}
|
|
979
980
|
);
|
|
980
|
-
}),
|
|
981
|
+
}), De = R(
|
|
981
982
|
(a, s) => {
|
|
982
|
-
const { className: i, children:
|
|
983
|
-
return
|
|
984
|
-
|
|
983
|
+
const { className: i, children: t, onMouseEnter: l, onMouseLeave: u, ...v } = a;
|
|
984
|
+
return x(v), /* @__PURE__ */ o.jsx(
|
|
985
|
+
Ir,
|
|
985
986
|
{
|
|
986
|
-
className:
|
|
987
|
+
className: T("bn-ak-toolbar", i || ""),
|
|
987
988
|
ref: s,
|
|
988
989
|
onMouseEnter: l,
|
|
989
|
-
onMouseLeave:
|
|
990
|
-
children:
|
|
990
|
+
onMouseLeave: u,
|
|
991
|
+
children: t
|
|
991
992
|
}
|
|
992
993
|
);
|
|
993
994
|
}
|
|
994
|
-
),
|
|
995
|
+
), Fe = R(
|
|
995
996
|
(a, s) => {
|
|
996
997
|
const {
|
|
997
998
|
className: i,
|
|
998
|
-
children:
|
|
999
|
+
children: t,
|
|
999
1000
|
mainTooltip: l,
|
|
1000
|
-
secondaryTooltip:
|
|
1001
|
-
icon:
|
|
1002
|
-
isSelected:
|
|
1003
|
-
isDisabled:
|
|
1004
|
-
onClick:
|
|
1005
|
-
label:
|
|
1006
|
-
...
|
|
1001
|
+
secondaryTooltip: u,
|
|
1002
|
+
icon: v,
|
|
1003
|
+
isSelected: h,
|
|
1004
|
+
isDisabled: f,
|
|
1005
|
+
onClick: b,
|
|
1006
|
+
label: y,
|
|
1007
|
+
..._
|
|
1007
1008
|
} = a;
|
|
1008
|
-
return
|
|
1009
|
+
return x(_, !1), /* @__PURE__ */ o.jsxs(Mr, { children: [
|
|
1009
1010
|
/* @__PURE__ */ o.jsx(
|
|
1010
|
-
|
|
1011
|
+
Ar,
|
|
1011
1012
|
{
|
|
1012
1013
|
className: "link",
|
|
1013
1014
|
render: /* @__PURE__ */ o.jsxs(
|
|
1014
|
-
|
|
1015
|
+
Le,
|
|
1015
1016
|
{
|
|
1016
|
-
"aria-label":
|
|
1017
|
-
className:
|
|
1017
|
+
"aria-label": y,
|
|
1018
|
+
className: T(
|
|
1018
1019
|
"bn-ak-button bn-ak-secondary",
|
|
1019
1020
|
i || ""
|
|
1020
1021
|
),
|
|
1021
|
-
onMouseDown: (
|
|
1022
|
-
|
|
1022
|
+
onMouseDown: (C) => {
|
|
1023
|
+
Gr() && C.currentTarget.focus();
|
|
1023
1024
|
},
|
|
1024
|
-
onClick:
|
|
1025
|
-
"aria-pressed":
|
|
1026
|
-
"data-selected":
|
|
1025
|
+
onClick: b,
|
|
1026
|
+
"aria-pressed": h,
|
|
1027
|
+
"data-selected": h ? "true" : void 0,
|
|
1027
1028
|
"data-test": a.mainTooltip.slice(0, 1).toLowerCase() + a.mainTooltip.replace(/\s+/g, "").slice(1),
|
|
1028
|
-
disabled:
|
|
1029
|
+
disabled: f || !1,
|
|
1029
1030
|
ref: s,
|
|
1030
|
-
...
|
|
1031
|
+
..._,
|
|
1031
1032
|
children: [
|
|
1032
|
-
|
|
1033
|
-
|
|
1033
|
+
v,
|
|
1034
|
+
t
|
|
1034
1035
|
]
|
|
1035
1036
|
}
|
|
1036
1037
|
)
|
|
1037
1038
|
}
|
|
1038
1039
|
),
|
|
1039
|
-
/* @__PURE__ */ o.jsxs(
|
|
1040
|
+
/* @__PURE__ */ o.jsxs(Lr, { className: "bn-ak-tooltip", children: [
|
|
1040
1041
|
/* @__PURE__ */ o.jsx("span", { children: l }),
|
|
1041
|
-
|
|
1042
|
+
u && /* @__PURE__ */ o.jsx("span", { children: u })
|
|
1042
1043
|
] })
|
|
1043
1044
|
] });
|
|
1044
1045
|
}
|
|
1045
|
-
),
|
|
1046
|
-
const { className: i, items:
|
|
1047
|
-
|
|
1048
|
-
const
|
|
1049
|
-
var
|
|
1050
|
-
(
|
|
1046
|
+
), xn = R((a, s) => {
|
|
1047
|
+
const { className: i, items: t, isDisabled: l, ...u } = a;
|
|
1048
|
+
x(u);
|
|
1049
|
+
const v = a.items.filter((f) => f.isSelected)[0], h = (f) => {
|
|
1050
|
+
var b, y;
|
|
1051
|
+
(y = (b = t.find((_) => _.text === f)).onClick) == null || y.call(b);
|
|
1051
1052
|
};
|
|
1052
|
-
return /* @__PURE__ */ o.jsxs(
|
|
1053
|
+
return /* @__PURE__ */ o.jsxs($r, { value: v.text, setValue: h, children: [
|
|
1053
1054
|
/* @__PURE__ */ o.jsxs(
|
|
1054
|
-
|
|
1055
|
+
Wr,
|
|
1055
1056
|
{
|
|
1056
1057
|
className: "bn-ak-button bn-ak-secondary",
|
|
1057
1058
|
disabled: l,
|
|
1058
1059
|
"aria-label": "Text alignment",
|
|
1059
|
-
render: /* @__PURE__ */ o.jsx(
|
|
1060
|
+
render: /* @__PURE__ */ o.jsx(Le, {}),
|
|
1060
1061
|
children: [
|
|
1061
|
-
|
|
1062
|
+
v.icon,
|
|
1062
1063
|
" ",
|
|
1063
|
-
|
|
1064
|
+
v.text,
|
|
1064
1065
|
" ",
|
|
1065
|
-
/* @__PURE__ */ o.jsx(
|
|
1066
|
+
/* @__PURE__ */ o.jsx(Yr, {})
|
|
1066
1067
|
]
|
|
1067
1068
|
}
|
|
1068
1069
|
),
|
|
1069
1070
|
/* @__PURE__ */ o.jsx(
|
|
1070
|
-
|
|
1071
|
+
Br,
|
|
1071
1072
|
{
|
|
1072
|
-
className:
|
|
1073
|
+
className: T("bn-ak-popover", i || ""),
|
|
1073
1074
|
ref: s,
|
|
1074
1075
|
gutter: 4,
|
|
1075
|
-
children:
|
|
1076
|
-
|
|
1076
|
+
children: t.map((f) => /* @__PURE__ */ o.jsxs(
|
|
1077
|
+
Vr,
|
|
1077
1078
|
{
|
|
1078
1079
|
className: "bn-ak-select-item",
|
|
1079
|
-
value:
|
|
1080
|
+
value: f.text,
|
|
1080
1081
|
children: [
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1082
|
+
f.icon,
|
|
1083
|
+
f.text,
|
|
1084
|
+
f.text === v.text && /* @__PURE__ */ o.jsx(Ur, {})
|
|
1084
1085
|
]
|
|
1085
1086
|
},
|
|
1086
|
-
|
|
1087
|
+
f.text
|
|
1087
1088
|
))
|
|
1088
1089
|
}
|
|
1089
1090
|
)
|
|
1090
1091
|
] });
|
|
1091
1092
|
});
|
|
1092
|
-
const
|
|
1093
|
+
const yn = {
|
|
1093
1094
|
FormattingToolbar: {
|
|
1094
|
-
Root:
|
|
1095
|
-
Button:
|
|
1096
|
-
Select:
|
|
1095
|
+
Root: De,
|
|
1096
|
+
Button: Fe,
|
|
1097
|
+
Select: xn
|
|
1097
1098
|
},
|
|
1098
1099
|
FilePanel: {
|
|
1099
|
-
Root:
|
|
1100
|
-
Button:
|
|
1101
|
-
FileInput:
|
|
1102
|
-
TabPanel:
|
|
1103
|
-
TextInput:
|
|
1100
|
+
Root: nn,
|
|
1101
|
+
Button: tn,
|
|
1102
|
+
FileInput: an,
|
|
1103
|
+
TabPanel: on,
|
|
1104
|
+
TextInput: sn
|
|
1104
1105
|
},
|
|
1105
1106
|
LinkToolbar: {
|
|
1106
|
-
Root:
|
|
1107
|
-
Button:
|
|
1107
|
+
Root: De,
|
|
1108
|
+
Button: Fe
|
|
1108
1109
|
},
|
|
1109
1110
|
SideMenu: {
|
|
1110
|
-
Root:
|
|
1111
|
-
Button:
|
|
1111
|
+
Root: fn,
|
|
1112
|
+
Button: dn
|
|
1112
1113
|
},
|
|
1113
1114
|
SuggestionMenu: {
|
|
1114
|
-
Root:
|
|
1115
|
-
Item:
|
|
1116
|
-
EmptyItem:
|
|
1117
|
-
Label:
|
|
1118
|
-
Loader:
|
|
1115
|
+
Root: vn,
|
|
1116
|
+
Item: mn,
|
|
1117
|
+
EmptyItem: pn,
|
|
1118
|
+
Label: bn,
|
|
1119
|
+
Loader: hn
|
|
1119
1120
|
},
|
|
1120
1121
|
TableHandle: {
|
|
1121
|
-
Root:
|
|
1122
|
+
Root: gn
|
|
1122
1123
|
},
|
|
1123
1124
|
Generic: {
|
|
1124
1125
|
Form: {
|
|
1125
|
-
Root:
|
|
1126
|
-
TextInput:
|
|
1126
|
+
Root: Hr,
|
|
1127
|
+
TextInput: Kr
|
|
1127
1128
|
},
|
|
1128
1129
|
Menu: {
|
|
1129
|
-
Root:
|
|
1130
|
-
Trigger:
|
|
1131
|
-
Dropdown:
|
|
1132
|
-
Divider:
|
|
1133
|
-
Label:
|
|
1134
|
-
Item:
|
|
1130
|
+
Root: zr,
|
|
1131
|
+
Trigger: en,
|
|
1132
|
+
Dropdown: Xr,
|
|
1133
|
+
Divider: rn,
|
|
1134
|
+
Label: Qr,
|
|
1135
|
+
Item: Zr
|
|
1135
1136
|
},
|
|
1136
1137
|
Popover: {
|
|
1137
|
-
Root:
|
|
1138
|
-
Trigger:
|
|
1139
|
-
Content:
|
|
1138
|
+
Root: un,
|
|
1139
|
+
Trigger: ln,
|
|
1140
|
+
Content: cn
|
|
1140
1141
|
}
|
|
1141
1142
|
}
|
|
1142
|
-
},
|
|
1143
|
+
}, _n = (a) => /* @__PURE__ */ o.jsx(yr.Provider, { value: yn, children: /* @__PURE__ */ o.jsx(Rr, { ...a }) });
|
|
1143
1144
|
export {
|
|
1144
|
-
|
|
1145
|
-
|
|
1145
|
+
_n as BlockNoteView,
|
|
1146
|
+
yn as components
|
|
1146
1147
|
};
|
|
1147
1148
|
//# sourceMappingURL=blocknote-ariakit.js.map
|