@blocknote/mantine 0.39.0 → 0.40.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/blocknote-mantine.cjs +1 -1
- package/dist/blocknote-mantine.cjs.map +1 -1
- package/dist/blocknote-mantine.js +536 -577
- package/dist/blocknote-mantine.js.map +1 -1
- package/dist/webpack-stats.json +1 -1
- package/package.json +14 -9
- package/src/BlockNoteView.tsx +32 -28
- package/src/blocknoteStyles.css +794 -0
- package/src/components.tsx +0 -1
- package/src/mantineStyles.css +558 -39
- package/src/menu/Menu.tsx +41 -133
- package/src/style.css +1 -796
- package/types/src/BlockNoteView.d.ts +0 -1
- package/types/src/components.d.ts +0 -1
- package/dist/style.css +0 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { jsx as s, jsxs as v } from "react/jsx-runtime";
|
|
2
|
-
import { assertEmpty as d, isSafari as
|
|
3
|
-
import { mergeRefs as
|
|
4
|
-
import { Button as
|
|
5
|
-
import
|
|
6
|
-
import { useHover as
|
|
2
|
+
import { assertEmpty as d, isSafari as R, mergeCSSClasses as E, COLORS_DEFAULT as ie, COLORS_DARK_MODE_DEFAULT as ae } from "@blocknote/core";
|
|
3
|
+
import { mergeRefs as U, useDictionary as le, useBlockNoteContext as W, FormattingToolbarController as ce, getFormattingToolbarItems as ue, FormattingToolbar as de, elementOverflow as q, usePrefersColorScheme as me, ComponentsContext as fe, BlockNoteViewRaw as ge } from "@blocknote/react";
|
|
4
|
+
import { Button as T, ActionIcon as L, Tooltip as Z, Stack as z, Text as C, Group as h, Chip as be, Divider as he, Card as J, Skeleton as _, Avatar as pe, TextInput as Q, Menu as p, CheckIcon as B, Tabs as P, LoadingOverlay as ve, FileInput as Se, PopoverDropdown as ye, PopoverTarget as we, Popover as xe, Badge as Ce, Loader as X, Flex as Ne, MantineContext as Te, MantineProvider as ke } from "@mantine/core";
|
|
5
|
+
import N, { forwardRef as m, useState as Y, useRef as j, useEffect as $, useContext as ee, createContext as Pe, useCallback as Fe } from "react";
|
|
6
|
+
import { useHover as Me, useFocusWithin as te, mergeRefs as A, useFocusTrap as Oe } from "@mantine/hooks";
|
|
7
7
|
const ne = (e, n, t = !1) => {
|
|
8
8
|
const o = [];
|
|
9
|
-
function r(i,
|
|
10
|
-
for (const
|
|
11
|
-
const
|
|
12
|
-
typeof i[
|
|
9
|
+
function r(i, a = "--bn") {
|
|
10
|
+
for (const l in i) {
|
|
11
|
+
const c = l.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(), u = `${a}-${c}`;
|
|
12
|
+
typeof i[l] != "object" ? (typeof i[l] == "number" && (i[l] = `${i[l]}px`), t ? n.style.removeProperty(u) : n.style.setProperty(u, i[l].toString())) : r(i[l], u);
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
return r(e), o;
|
|
16
|
-
},
|
|
16
|
+
}, V = (e, n) => ne(e, n), De = {
|
|
17
17
|
colors: {
|
|
18
18
|
editor: {
|
|
19
19
|
text: void 0,
|
|
@@ -83,72 +83,72 @@ const ne = (e, n, t = !1) => {
|
|
|
83
83
|
},
|
|
84
84
|
borderRadius: void 0,
|
|
85
85
|
fontFamily: void 0
|
|
86
|
-
}, Ie = (e) => ne(De, e, !0), oe = (e) => /* @__PURE__ */ v(
|
|
87
|
-
/* @__PURE__ */ s(
|
|
88
|
-
e.secondaryTooltip && /* @__PURE__ */ s(
|
|
89
|
-
] }),
|
|
86
|
+
}, Ie = (e) => ne(De, e, !0), oe = (e) => /* @__PURE__ */ v(z, { gap: 0, className: "bn-tooltip", children: [
|
|
87
|
+
/* @__PURE__ */ s(C, { size: "sm", lineClamp: 5, children: e.mainTooltip }),
|
|
88
|
+
e.secondaryTooltip && /* @__PURE__ */ s(C, { size: "xs", lineClamp: 5, children: e.secondaryTooltip })
|
|
89
|
+
] }), O = m(
|
|
90
90
|
(e, n) => {
|
|
91
91
|
const {
|
|
92
92
|
className: t,
|
|
93
93
|
children: o,
|
|
94
94
|
mainTooltip: r,
|
|
95
95
|
secondaryTooltip: i,
|
|
96
|
-
icon:
|
|
97
|
-
isSelected:
|
|
98
|
-
isDisabled:
|
|
99
|
-
onClick:
|
|
96
|
+
icon: a,
|
|
97
|
+
isSelected: l,
|
|
98
|
+
isDisabled: c,
|
|
99
|
+
onClick: u,
|
|
100
100
|
label: g,
|
|
101
|
-
variant:
|
|
102
|
-
...
|
|
101
|
+
variant: b,
|
|
102
|
+
...S
|
|
103
103
|
} = e;
|
|
104
|
-
d(
|
|
105
|
-
const [
|
|
106
|
-
|
|
104
|
+
d(S, !1);
|
|
105
|
+
const [x, y] = Y(!1), k = o ? /* @__PURE__ */ s(
|
|
106
|
+
T,
|
|
107
107
|
{
|
|
108
108
|
"aria-label": g,
|
|
109
109
|
className: t,
|
|
110
|
-
onMouseDown: (
|
|
111
|
-
|
|
110
|
+
onMouseDown: (w) => {
|
|
111
|
+
R() && w.currentTarget.focus();
|
|
112
112
|
},
|
|
113
|
-
onClick: (
|
|
114
|
-
y(!0),
|
|
113
|
+
onClick: (w) => {
|
|
114
|
+
y(!0), u == null || u(w);
|
|
115
115
|
},
|
|
116
116
|
onPointerLeave: () => y(!1),
|
|
117
|
-
"aria-pressed":
|
|
118
|
-
"data-selected":
|
|
117
|
+
"aria-pressed": l,
|
|
118
|
+
"data-selected": l || void 0,
|
|
119
119
|
"data-test": r ? r.slice(0, 1).toLowerCase() + r.replace(/\s+/g, "").slice(1) : void 0,
|
|
120
|
-
size:
|
|
121
|
-
disabled:
|
|
120
|
+
size: b === "compact" ? "compact-xs" : "xs",
|
|
121
|
+
disabled: c || !1,
|
|
122
122
|
ref: n,
|
|
123
|
-
...
|
|
123
|
+
...S,
|
|
124
124
|
children: o
|
|
125
125
|
}
|
|
126
126
|
) : /* @__PURE__ */ s(
|
|
127
|
-
|
|
127
|
+
L,
|
|
128
128
|
{
|
|
129
129
|
className: t,
|
|
130
130
|
"aria-label": g,
|
|
131
|
-
onMouseDown: (
|
|
132
|
-
|
|
131
|
+
onMouseDown: (w) => {
|
|
132
|
+
R() && w.currentTarget.focus();
|
|
133
133
|
},
|
|
134
|
-
onClick: (
|
|
135
|
-
y(!0),
|
|
134
|
+
onClick: (w) => {
|
|
135
|
+
y(!0), u == null || u(w);
|
|
136
136
|
},
|
|
137
137
|
onPointerLeave: () => y(!1),
|
|
138
|
-
"aria-pressed":
|
|
139
|
-
"data-selected":
|
|
138
|
+
"aria-pressed": l,
|
|
139
|
+
"data-selected": l || void 0,
|
|
140
140
|
"data-test": r ? r.slice(0, 1).toLowerCase() + r.replace(/\s+/g, "").slice(1) : void 0,
|
|
141
|
-
size:
|
|
142
|
-
disabled:
|
|
141
|
+
size: b === "compact" ? 20 : 30,
|
|
142
|
+
disabled: c || !1,
|
|
143
143
|
ref: n,
|
|
144
|
-
...
|
|
145
|
-
children:
|
|
144
|
+
...S,
|
|
145
|
+
children: a
|
|
146
146
|
}
|
|
147
147
|
);
|
|
148
148
|
return r ? /* @__PURE__ */ s(
|
|
149
|
-
|
|
149
|
+
Z,
|
|
150
150
|
{
|
|
151
|
-
disabled:
|
|
151
|
+
disabled: x,
|
|
152
152
|
withinPortal: !1,
|
|
153
153
|
label: /* @__PURE__ */ s(
|
|
154
154
|
oe,
|
|
@@ -157,33 +157,33 @@ const ne = (e, n, t = !1) => {
|
|
|
157
157
|
secondaryTooltip: i
|
|
158
158
|
}
|
|
159
159
|
),
|
|
160
|
-
children:
|
|
160
|
+
children: k
|
|
161
161
|
}
|
|
162
|
-
) :
|
|
162
|
+
) : k;
|
|
163
163
|
}
|
|
164
|
-
),
|
|
164
|
+
), Re = m((e, n) => {
|
|
165
165
|
const {
|
|
166
166
|
className: t,
|
|
167
167
|
text: o,
|
|
168
168
|
icon: r,
|
|
169
169
|
isSelected: i,
|
|
170
|
-
mainTooltip:
|
|
171
|
-
secondaryTooltip:
|
|
172
|
-
onClick:
|
|
173
|
-
onMouseEnter:
|
|
170
|
+
mainTooltip: a,
|
|
171
|
+
secondaryTooltip: l,
|
|
172
|
+
onClick: c,
|
|
173
|
+
onMouseEnter: u,
|
|
174
174
|
...g
|
|
175
175
|
} = e;
|
|
176
176
|
d(g, !1);
|
|
177
|
-
const [
|
|
178
|
-
|
|
177
|
+
const [b, S] = Y(!1), x = /* @__PURE__ */ v(
|
|
178
|
+
be,
|
|
179
179
|
{
|
|
180
180
|
className: t,
|
|
181
181
|
checked: i === !0,
|
|
182
182
|
wrapperProps: {
|
|
183
|
-
onMouseEnter:
|
|
184
|
-
onMouseLeave: () =>
|
|
183
|
+
onMouseEnter: u,
|
|
184
|
+
onMouseLeave: () => S(!1),
|
|
185
185
|
onClick: (y) => {
|
|
186
|
-
|
|
186
|
+
S(!0), c == null || c(y);
|
|
187
187
|
}
|
|
188
188
|
},
|
|
189
189
|
variant: "light",
|
|
@@ -195,78 +195,78 @@ const ne = (e, n, t = !1) => {
|
|
|
195
195
|
]
|
|
196
196
|
}
|
|
197
197
|
);
|
|
198
|
-
return !
|
|
199
|
-
|
|
198
|
+
return !a || b ? x : /* @__PURE__ */ s(
|
|
199
|
+
Z,
|
|
200
200
|
{
|
|
201
201
|
refProp: "rootRef",
|
|
202
202
|
withinPortal: !1,
|
|
203
203
|
label: /* @__PURE__ */ s(
|
|
204
204
|
oe,
|
|
205
205
|
{
|
|
206
|
-
mainTooltip:
|
|
207
|
-
secondaryTooltip:
|
|
206
|
+
mainTooltip: a,
|
|
207
|
+
secondaryTooltip: l
|
|
208
208
|
}
|
|
209
209
|
),
|
|
210
|
-
children:
|
|
210
|
+
children: x
|
|
211
211
|
}
|
|
212
212
|
);
|
|
213
213
|
}), Be = m((e, n) => {
|
|
214
214
|
const { className: t, children: o, ...r } = e;
|
|
215
|
-
return d(r), /* @__PURE__ */ s(
|
|
215
|
+
return d(r), /* @__PURE__ */ s(h, { className: t, ref: n, children: o });
|
|
216
216
|
}), Ee = m((e, n) => {
|
|
217
217
|
const {
|
|
218
218
|
className: t,
|
|
219
219
|
children: o,
|
|
220
220
|
headerText: r,
|
|
221
221
|
selected: i,
|
|
222
|
-
onFocus:
|
|
223
|
-
onBlur:
|
|
224
|
-
tabIndex:
|
|
225
|
-
...
|
|
222
|
+
onFocus: a,
|
|
223
|
+
onBlur: l,
|
|
224
|
+
tabIndex: c,
|
|
225
|
+
...u
|
|
226
226
|
} = e;
|
|
227
|
-
d(
|
|
228
|
-
const g =
|
|
229
|
-
return
|
|
230
|
-
var
|
|
231
|
-
i && ((
|
|
227
|
+
d(u, !1);
|
|
228
|
+
const g = j(null);
|
|
229
|
+
return $(() => {
|
|
230
|
+
var b;
|
|
231
|
+
i && ((b = g.current) == null || b.scrollIntoView({
|
|
232
232
|
behavior: "smooth",
|
|
233
233
|
block: "center"
|
|
234
234
|
}));
|
|
235
235
|
}, [i]), /* @__PURE__ */ v(
|
|
236
|
-
|
|
236
|
+
J,
|
|
237
237
|
{
|
|
238
|
-
className:
|
|
239
|
-
onFocus:
|
|
240
|
-
onBlur:
|
|
241
|
-
tabIndex:
|
|
242
|
-
ref:
|
|
238
|
+
className: E(t, i ? "selected" : ""),
|
|
239
|
+
onFocus: a,
|
|
240
|
+
onBlur: l,
|
|
241
|
+
tabIndex: c,
|
|
242
|
+
ref: U([n, g]),
|
|
243
243
|
children: [
|
|
244
|
-
r && /* @__PURE__ */ s(
|
|
244
|
+
r && /* @__PURE__ */ s(C, { className: "bn-header-text", children: r }),
|
|
245
245
|
o
|
|
246
246
|
]
|
|
247
247
|
}
|
|
248
248
|
);
|
|
249
|
-
}),
|
|
249
|
+
}), Le = m((e, n) => {
|
|
250
250
|
const { className: t, children: o, ...r } = e;
|
|
251
|
-
return d(r, !1), /* @__PURE__ */ s(
|
|
252
|
-
}),
|
|
251
|
+
return d(r, !1), /* @__PURE__ */ s(J.Section, { className: t, ref: n, children: o });
|
|
252
|
+
}), ze = m((e, n) => {
|
|
253
253
|
const { className: t, children: o, ...r } = e;
|
|
254
254
|
return d(r, !1), /* @__PURE__ */ s(
|
|
255
|
-
|
|
255
|
+
he,
|
|
256
256
|
{
|
|
257
257
|
className: t,
|
|
258
|
-
label: /* @__PURE__ */ s(
|
|
258
|
+
label: /* @__PURE__ */ s(C, { children: o }),
|
|
259
259
|
ref: n
|
|
260
260
|
}
|
|
261
261
|
);
|
|
262
|
-
}),
|
|
263
|
-
const { authorInfo: t, timeString: o, edited: r, ...i } = e,
|
|
264
|
-
return d(i, !1), t === "loading" ? /* @__PURE__ */ v(
|
|
265
|
-
/* @__PURE__ */ s(
|
|
266
|
-
/* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
|
|
267
|
-
] }) : /* @__PURE__ */ v(
|
|
262
|
+
}), je = m((e, n) => {
|
|
263
|
+
const { authorInfo: t, timeString: o, edited: r, ...i } = e, a = le();
|
|
264
|
+
return d(i, !1), t === "loading" ? /* @__PURE__ */ v(h, { children: [
|
|
265
|
+
/* @__PURE__ */ s(_, { height: 24, width: 24 }),
|
|
266
|
+
/* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(_, { height: 12, width: 100 }) })
|
|
267
|
+
] }) : /* @__PURE__ */ v(h, { children: [
|
|
268
268
|
/* @__PURE__ */ s(
|
|
269
|
-
|
|
269
|
+
pe,
|
|
270
270
|
{
|
|
271
271
|
src: t.avatarUrl,
|
|
272
272
|
alt: t.username,
|
|
@@ -275,49 +275,49 @@ const ne = (e, n, t = !1) => {
|
|
|
275
275
|
color: "initials"
|
|
276
276
|
}
|
|
277
277
|
),
|
|
278
|
-
/* @__PURE__ */ v(
|
|
278
|
+
/* @__PURE__ */ v(C, { fz: "sm", fw: "bold", children: [
|
|
279
279
|
t.username,
|
|
280
|
-
/* @__PURE__ */ v(
|
|
280
|
+
/* @__PURE__ */ v(C, { fz: "xs", c: "dimmed", span: !0, ml: "xs", children: [
|
|
281
281
|
o,
|
|
282
282
|
" ",
|
|
283
|
-
r && `(${
|
|
283
|
+
r && `(${a.comments.edited})`
|
|
284
284
|
] })
|
|
285
285
|
] })
|
|
286
286
|
] });
|
|
287
|
-
}),
|
|
287
|
+
}), $e = m((e, n) => {
|
|
288
288
|
const {
|
|
289
289
|
className: t,
|
|
290
290
|
showActions: o,
|
|
291
291
|
authorInfo: r,
|
|
292
292
|
timeString: i,
|
|
293
|
-
edited:
|
|
294
|
-
actions:
|
|
295
|
-
children:
|
|
296
|
-
...
|
|
297
|
-
} = e, { hovered: g, ref:
|
|
298
|
-
return d(
|
|
299
|
-
|
|
300
|
-
|
|
293
|
+
edited: a,
|
|
294
|
+
actions: l,
|
|
295
|
+
children: c,
|
|
296
|
+
...u
|
|
297
|
+
} = e, { hovered: g, ref: b } = Me(), { focused: S, ref: x } = te(), y = U([n, b]);
|
|
298
|
+
return d(u, !1), /* @__PURE__ */ v(h, { pos: "relative", ref: y, className: t, children: [
|
|
299
|
+
l && (o === !0 || o === void 0 || o === "hover" && g || S) ? /* @__PURE__ */ s(
|
|
300
|
+
h,
|
|
301
301
|
{
|
|
302
|
-
ref:
|
|
302
|
+
ref: x,
|
|
303
303
|
style: {
|
|
304
304
|
position: "absolute",
|
|
305
305
|
right: 0,
|
|
306
306
|
top: 0,
|
|
307
307
|
zIndex: 10
|
|
308
308
|
},
|
|
309
|
-
children:
|
|
309
|
+
children: l
|
|
310
310
|
}
|
|
311
311
|
) : null,
|
|
312
|
-
/* @__PURE__ */ s(
|
|
313
|
-
|
|
312
|
+
/* @__PURE__ */ s(je, { ...e }),
|
|
313
|
+
c
|
|
314
314
|
] });
|
|
315
|
-
}),
|
|
316
|
-
const { className: t, autoFocus: o, onFocus: r, onBlur: i, editor:
|
|
317
|
-
d(
|
|
318
|
-
const
|
|
315
|
+
}), Ae = m((e, n) => {
|
|
316
|
+
const { className: t, autoFocus: o, onFocus: r, onBlur: i, editor: a, editable: l, ...c } = e;
|
|
317
|
+
d(c, !1);
|
|
318
|
+
const u = W();
|
|
319
319
|
return /* @__PURE__ */ s(
|
|
320
|
-
|
|
320
|
+
Ft,
|
|
321
321
|
{
|
|
322
322
|
autoFocus: o,
|
|
323
323
|
className: t,
|
|
@@ -327,236 +327,80 @@ const ne = (e, n, t = !1) => {
|
|
|
327
327
|
tableHandles: !1,
|
|
328
328
|
filePanel: !1,
|
|
329
329
|
formattingToolbar: !1,
|
|
330
|
-
editable:
|
|
331
|
-
theme:
|
|
330
|
+
editable: l,
|
|
331
|
+
theme: u == null ? void 0 : u.colorSchemePreference,
|
|
332
332
|
ref: n,
|
|
333
333
|
onFocus: r,
|
|
334
334
|
onBlur: i,
|
|
335
335
|
children: /* @__PURE__ */ s(
|
|
336
|
-
|
|
336
|
+
ce,
|
|
337
337
|
{
|
|
338
|
-
formattingToolbar:
|
|
338
|
+
formattingToolbar: _e
|
|
339
339
|
}
|
|
340
340
|
)
|
|
341
341
|
}
|
|
342
342
|
);
|
|
343
|
-
}),
|
|
344
|
-
const e =
|
|
343
|
+
}), _e = () => {
|
|
344
|
+
const e = ue([]).filter(
|
|
345
345
|
(n) => n.key !== "nestBlockButton" && n.key !== "unnestBlockButton"
|
|
346
346
|
);
|
|
347
|
-
return /* @__PURE__ */ s(
|
|
348
|
-
},
|
|
347
|
+
return /* @__PURE__ */ s(de, { blockTypeSelectItems: [], children: e });
|
|
348
|
+
}, Ve = m((e, n) => {
|
|
349
349
|
const {
|
|
350
350
|
className: t,
|
|
351
351
|
name: o,
|
|
352
352
|
label: r,
|
|
353
353
|
variant: i,
|
|
354
|
-
icon:
|
|
355
|
-
value:
|
|
356
|
-
autoFocus:
|
|
357
|
-
placeholder:
|
|
354
|
+
icon: a,
|
|
355
|
+
value: l,
|
|
356
|
+
autoFocus: c,
|
|
357
|
+
placeholder: u,
|
|
358
358
|
disabled: g,
|
|
359
|
-
onKeyDown:
|
|
360
|
-
onChange:
|
|
361
|
-
onSubmit:
|
|
359
|
+
onKeyDown: b,
|
|
360
|
+
onChange: S,
|
|
361
|
+
onSubmit: x,
|
|
362
362
|
autoComplete: y,
|
|
363
|
-
rightSection:
|
|
364
|
-
...
|
|
363
|
+
rightSection: k,
|
|
364
|
+
...w
|
|
365
365
|
} = e;
|
|
366
|
-
return d(
|
|
367
|
-
|
|
366
|
+
return d(w), /* @__PURE__ */ s(
|
|
367
|
+
Q,
|
|
368
368
|
{
|
|
369
369
|
size: "xs",
|
|
370
|
-
className:
|
|
370
|
+
className: E(
|
|
371
371
|
t || "",
|
|
372
372
|
i === "large" ? "bn-mt-input-large" : ""
|
|
373
373
|
),
|
|
374
374
|
ref: n,
|
|
375
375
|
name: o,
|
|
376
376
|
label: r,
|
|
377
|
-
leftSection:
|
|
378
|
-
value:
|
|
379
|
-
autoFocus:
|
|
380
|
-
"data-autofocus":
|
|
381
|
-
rightSection:
|
|
382
|
-
placeholder:
|
|
377
|
+
leftSection: a,
|
|
378
|
+
value: l,
|
|
379
|
+
autoFocus: c,
|
|
380
|
+
"data-autofocus": c ? "true" : void 0,
|
|
381
|
+
rightSection: k,
|
|
382
|
+
placeholder: u,
|
|
383
383
|
disabled: g,
|
|
384
|
-
onKeyDown:
|
|
385
|
-
onChange:
|
|
386
|
-
onSubmit:
|
|
384
|
+
onKeyDown: b,
|
|
385
|
+
onChange: S,
|
|
386
|
+
onSubmit: x,
|
|
387
387
|
autoComplete: y
|
|
388
388
|
}
|
|
389
389
|
);
|
|
390
|
-
})
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
className: void 0,
|
|
395
|
-
style: void 0,
|
|
396
|
-
attr: void 0
|
|
397
|
-
}, H = T.createContext && /* @__PURE__ */ T.createContext(re), He = ["attr", "size", "title"];
|
|
398
|
-
function Ke(e, n) {
|
|
399
|
-
if (e == null) return {};
|
|
400
|
-
var t = Ue(e, n), o, r;
|
|
401
|
-
if (Object.getOwnPropertySymbols) {
|
|
402
|
-
var i = Object.getOwnPropertySymbols(e);
|
|
403
|
-
for (r = 0; r < i.length; r++)
|
|
404
|
-
o = i[r], !(n.indexOf(o) >= 0) && Object.prototype.propertyIsEnumerable.call(e, o) && (t[o] = e[o]);
|
|
405
|
-
}
|
|
406
|
-
return t;
|
|
407
|
-
}
|
|
408
|
-
function Ue(e, n) {
|
|
409
|
-
if (e == null) return {};
|
|
410
|
-
var t = {};
|
|
411
|
-
for (var o in e)
|
|
412
|
-
if (Object.prototype.hasOwnProperty.call(e, o)) {
|
|
413
|
-
if (n.indexOf(o) >= 0) continue;
|
|
414
|
-
t[o] = e[o];
|
|
415
|
-
}
|
|
416
|
-
return t;
|
|
417
|
-
}
|
|
418
|
-
function F() {
|
|
419
|
-
return F = Object.assign ? Object.assign.bind() : function(e) {
|
|
420
|
-
for (var n = 1; n < arguments.length; n++) {
|
|
421
|
-
var t = arguments[n];
|
|
422
|
-
for (var o in t)
|
|
423
|
-
Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
|
|
424
|
-
}
|
|
425
|
-
return e;
|
|
426
|
-
}, F.apply(this, arguments);
|
|
427
|
-
}
|
|
428
|
-
function K(e, n) {
|
|
429
|
-
var t = Object.keys(e);
|
|
430
|
-
if (Object.getOwnPropertySymbols) {
|
|
431
|
-
var o = Object.getOwnPropertySymbols(e);
|
|
432
|
-
n && (o = o.filter(function(r) {
|
|
433
|
-
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
434
|
-
})), t.push.apply(t, o);
|
|
435
|
-
}
|
|
436
|
-
return t;
|
|
437
|
-
}
|
|
438
|
-
function O(e) {
|
|
439
|
-
for (var n = 1; n < arguments.length; n++) {
|
|
440
|
-
var t = arguments[n] != null ? arguments[n] : {};
|
|
441
|
-
n % 2 ? K(Object(t), !0).forEach(function(o) {
|
|
442
|
-
We(e, o, t[o]);
|
|
443
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : K(Object(t)).forEach(function(o) {
|
|
444
|
-
Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(t, o));
|
|
445
|
-
});
|
|
446
|
-
}
|
|
447
|
-
return e;
|
|
448
|
-
}
|
|
449
|
-
function We(e, n, t) {
|
|
450
|
-
return n = qe(n), n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
|
|
451
|
-
}
|
|
452
|
-
function qe(e) {
|
|
453
|
-
var n = Ze(e, "string");
|
|
454
|
-
return typeof n == "symbol" ? n : n + "";
|
|
455
|
-
}
|
|
456
|
-
function Ze(e, n) {
|
|
457
|
-
if (typeof e != "object" || !e) return e;
|
|
458
|
-
var t = e[Symbol.toPrimitive];
|
|
459
|
-
if (t !== void 0) {
|
|
460
|
-
var o = t.call(e, n);
|
|
461
|
-
if (typeof o != "object") return o;
|
|
462
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
463
|
-
}
|
|
464
|
-
return (n === "string" ? String : Number)(e);
|
|
465
|
-
}
|
|
466
|
-
function se(e) {
|
|
467
|
-
return e && e.map((n, t) => /* @__PURE__ */ T.createElement(n.tag, O({
|
|
468
|
-
key: t
|
|
469
|
-
}, n.attr), se(n.child)));
|
|
470
|
-
}
|
|
471
|
-
function ie(e) {
|
|
472
|
-
return (n) => /* @__PURE__ */ T.createElement(Je, F({
|
|
473
|
-
attr: O({}, e.attr)
|
|
474
|
-
}, n), se(e.child));
|
|
475
|
-
}
|
|
476
|
-
function Je(e) {
|
|
477
|
-
var n = (t) => {
|
|
478
|
-
var {
|
|
479
|
-
attr: o,
|
|
480
|
-
size: r,
|
|
481
|
-
title: i
|
|
482
|
-
} = e, l = Ke(e, He), a = r || t.size || "1em", u;
|
|
483
|
-
return t.className && (u = t.className), e.className && (u = (u ? u + " " : "") + e.className), /* @__PURE__ */ T.createElement("svg", F({
|
|
484
|
-
stroke: "currentColor",
|
|
485
|
-
fill: "currentColor",
|
|
486
|
-
strokeWidth: "0"
|
|
487
|
-
}, t.attr, o, l, {
|
|
488
|
-
className: u,
|
|
489
|
-
style: O(O({
|
|
490
|
-
color: e.color || t.color
|
|
491
|
-
}, t.style), e.style),
|
|
492
|
-
height: a,
|
|
493
|
-
width: a,
|
|
494
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
495
|
-
}), i && /* @__PURE__ */ T.createElement("title", null, i), e.children);
|
|
496
|
-
};
|
|
497
|
-
return H !== void 0 ? /* @__PURE__ */ T.createElement(H.Consumer, null, (t) => n(t)) : n(re);
|
|
498
|
-
}
|
|
499
|
-
function Qe(e) {
|
|
500
|
-
return ie({ attr: { viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true" }, child: [{ tag: "path", attr: { fillRule: "evenodd", d: "M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z", clipRule: "evenodd" }, child: [] }] })(e);
|
|
501
|
-
}
|
|
502
|
-
function Xe(e) {
|
|
503
|
-
return ie({ attr: { viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true" }, child: [{ tag: "path", attr: { fillRule: "evenodd", d: "M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z", clipRule: "evenodd" }, child: [] }] })(e);
|
|
504
|
-
}
|
|
505
|
-
const ae = Fe(void 0), Ye = m((e, n) => {
|
|
506
|
-
const {
|
|
507
|
-
children: t,
|
|
508
|
-
onOpenChange: o,
|
|
509
|
-
position: r,
|
|
510
|
-
sub: i,
|
|
511
|
-
// not used
|
|
512
|
-
...l
|
|
513
|
-
} = e;
|
|
514
|
-
d(l);
|
|
515
|
-
const [a, u] = A(!1), c = k(null), g = k(
|
|
516
|
-
void 0
|
|
517
|
-
), h = E(() => {
|
|
518
|
-
g.current && clearTimeout(g.current), g.current = setTimeout(() => {
|
|
519
|
-
u(!1);
|
|
520
|
-
}, 250);
|
|
521
|
-
}, []), p = E(() => {
|
|
522
|
-
g.current && clearTimeout(g.current), u(!0);
|
|
523
|
-
}, []);
|
|
524
|
-
return /* @__PURE__ */ s(
|
|
525
|
-
ae.Provider,
|
|
390
|
+
}), Ge = Pe(void 0), He = (e) => {
|
|
391
|
+
const { children: n, onOpenChange: t, position: o, sub: r, ...i } = e;
|
|
392
|
+
return d(i), r ? /* @__PURE__ */ s(
|
|
393
|
+
p.Sub,
|
|
526
394
|
{
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
{
|
|
534
|
-
className: "bn-menu-item bn-mt-sub-menu-item",
|
|
535
|
-
ref: R(n, c),
|
|
536
|
-
onMouseOver: p,
|
|
537
|
-
onMouseLeave: h,
|
|
538
|
-
children: /* @__PURE__ */ s(
|
|
539
|
-
S,
|
|
540
|
-
{
|
|
541
|
-
portalProps: {
|
|
542
|
-
target: c.current ? c.current.parentElement : void 0
|
|
543
|
-
},
|
|
544
|
-
middlewares: { flip: !0, shift: !0, inline: !1, size: !0 },
|
|
545
|
-
trigger: "hover",
|
|
546
|
-
opened: a,
|
|
547
|
-
onChange: o,
|
|
548
|
-
position: r,
|
|
549
|
-
children: t
|
|
550
|
-
}
|
|
551
|
-
)
|
|
552
|
-
}
|
|
553
|
-
)
|
|
395
|
+
transitionProps: { duration: 250, exitDelay: 250 },
|
|
396
|
+
withinPortal: !1,
|
|
397
|
+
middlewares: { flip: !0, shift: !0, inline: !1, size: !0 },
|
|
398
|
+
onChange: t,
|
|
399
|
+
position: o,
|
|
400
|
+
children: n
|
|
554
401
|
}
|
|
555
|
-
)
|
|
556
|
-
|
|
557
|
-
const { children: n, onOpenChange: t, position: o, sub: r, ...i } = e;
|
|
558
|
-
return d(i), r ? /* @__PURE__ */ s(Ye, { ...e }) : /* @__PURE__ */ s(
|
|
559
|
-
S,
|
|
402
|
+
) : /* @__PURE__ */ s(
|
|
403
|
+
p,
|
|
560
404
|
{
|
|
561
405
|
withinPortal: !1,
|
|
562
406
|
middlewares: { flip: !0, shift: !0, inline: !1, size: !0 },
|
|
@@ -565,42 +409,40 @@ const ae = Fe(void 0), Ye = m((e, n) => {
|
|
|
565
409
|
children: n
|
|
566
410
|
}
|
|
567
411
|
);
|
|
568
|
-
},
|
|
569
|
-
const { className: t, children: o, icon: r, checked: i, subTrigger:
|
|
570
|
-
return d(
|
|
571
|
-
|
|
412
|
+
}, Ke = m((e, n) => {
|
|
413
|
+
const { className: t, children: o, icon: r, checked: i, subTrigger: a, onClick: l, ...c } = e;
|
|
414
|
+
return d(c, !1), a ? /* @__PURE__ */ s(
|
|
415
|
+
p.Sub.Item,
|
|
572
416
|
{
|
|
573
|
-
|
|
574
|
-
c.preventDefault(), c.stopPropagation();
|
|
575
|
-
},
|
|
417
|
+
className: t,
|
|
576
418
|
ref: n,
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
419
|
+
leftSection: r,
|
|
420
|
+
rightSection: i ? /* @__PURE__ */ s(B, { size: 10 }) : i === !1 ? /* @__PURE__ */ s("div", { className: "bn-tick-space" }) : null,
|
|
421
|
+
onClick: l,
|
|
422
|
+
...c,
|
|
423
|
+
children: o
|
|
582
424
|
}
|
|
583
425
|
) : /* @__PURE__ */ s(
|
|
584
|
-
|
|
426
|
+
p.Item,
|
|
585
427
|
{
|
|
586
428
|
className: t,
|
|
587
429
|
ref: n,
|
|
588
430
|
leftSection: r,
|
|
589
|
-
rightSection: i ? /* @__PURE__ */ s(
|
|
590
|
-
onClick:
|
|
591
|
-
...
|
|
431
|
+
rightSection: i ? /* @__PURE__ */ s(B, { size: 10 }) : i === !1 ? /* @__PURE__ */ s("div", { className: "bn-tick-space" }) : null,
|
|
432
|
+
onClick: l,
|
|
433
|
+
...c,
|
|
592
434
|
children: o
|
|
593
435
|
}
|
|
594
436
|
);
|
|
595
|
-
}),
|
|
437
|
+
}), Ue = (e) => {
|
|
596
438
|
const {
|
|
597
439
|
children: n,
|
|
598
440
|
sub: t,
|
|
599
441
|
// unused
|
|
600
442
|
...o
|
|
601
443
|
} = e;
|
|
602
|
-
return d(o), /* @__PURE__ */ s(
|
|
603
|
-
},
|
|
444
|
+
return d(o), t ? /* @__PURE__ */ s(p.Sub.Target, { children: n }) : /* @__PURE__ */ s(p.Target, { children: n });
|
|
445
|
+
}, We = m((e, n) => {
|
|
604
446
|
const {
|
|
605
447
|
className: t,
|
|
606
448
|
children: o,
|
|
@@ -609,112 +451,121 @@ const ae = Fe(void 0), Ye = m((e, n) => {
|
|
|
609
451
|
...i
|
|
610
452
|
} = e;
|
|
611
453
|
d(i);
|
|
612
|
-
const
|
|
613
|
-
return /* @__PURE__ */ s(
|
|
614
|
-
|
|
454
|
+
const a = ee(Ge);
|
|
455
|
+
return r ? /* @__PURE__ */ s(
|
|
456
|
+
p.Sub.Dropdown,
|
|
615
457
|
{
|
|
616
458
|
className: t,
|
|
617
459
|
ref: n,
|
|
618
|
-
onMouseOver:
|
|
619
|
-
onMouseLeave:
|
|
460
|
+
onMouseOver: a == null ? void 0 : a.onMenuMouseOver,
|
|
461
|
+
onMouseLeave: a == null ? void 0 : a.onMenuMouseLeave,
|
|
462
|
+
children: o
|
|
463
|
+
}
|
|
464
|
+
) : /* @__PURE__ */ s(
|
|
465
|
+
p.Dropdown,
|
|
466
|
+
{
|
|
467
|
+
className: t,
|
|
468
|
+
ref: n,
|
|
469
|
+
onMouseOver: a == null ? void 0 : a.onMenuMouseOver,
|
|
470
|
+
onMouseLeave: a == null ? void 0 : a.onMenuMouseLeave,
|
|
620
471
|
children: o
|
|
621
472
|
}
|
|
622
473
|
);
|
|
623
|
-
}),
|
|
474
|
+
}), qe = m((e, n) => {
|
|
624
475
|
const { className: t, ...o } = e;
|
|
625
|
-
return d(o), /* @__PURE__ */ s(
|
|
626
|
-
}),
|
|
476
|
+
return d(o), /* @__PURE__ */ s(p.Divider, { className: t, ref: n });
|
|
477
|
+
}), Ze = m((e, n) => {
|
|
627
478
|
const { className: t, children: o, ...r } = e;
|
|
628
|
-
return d(r), /* @__PURE__ */ s(
|
|
629
|
-
}),
|
|
479
|
+
return d(r), /* @__PURE__ */ s(p.Label, { className: t, ref: n, children: o });
|
|
480
|
+
}), Je = m((e, n) => {
|
|
630
481
|
const {
|
|
631
482
|
className: t,
|
|
632
483
|
children: o,
|
|
633
484
|
icon: r,
|
|
634
485
|
onClick: i,
|
|
635
|
-
onDragEnd:
|
|
636
|
-
onDragStart:
|
|
637
|
-
draggable:
|
|
638
|
-
label:
|
|
486
|
+
onDragEnd: a,
|
|
487
|
+
onDragStart: l,
|
|
488
|
+
draggable: c,
|
|
489
|
+
label: u,
|
|
639
490
|
...g
|
|
640
491
|
} = e;
|
|
641
492
|
return d(g, !1), r ? /* @__PURE__ */ s(
|
|
642
|
-
|
|
493
|
+
L,
|
|
643
494
|
{
|
|
644
495
|
size: 24,
|
|
645
496
|
className: t,
|
|
646
497
|
ref: n,
|
|
647
498
|
onClick: i,
|
|
648
|
-
onDragEnd:
|
|
649
|
-
onDragStart:
|
|
650
|
-
draggable:
|
|
651
|
-
"aria-label":
|
|
499
|
+
onDragEnd: a,
|
|
500
|
+
onDragStart: l,
|
|
501
|
+
draggable: c,
|
|
502
|
+
"aria-label": u,
|
|
652
503
|
...g,
|
|
653
504
|
children: r
|
|
654
505
|
}
|
|
655
506
|
) : /* @__PURE__ */ s(
|
|
656
|
-
|
|
507
|
+
T,
|
|
657
508
|
{
|
|
658
509
|
className: t,
|
|
659
510
|
ref: n,
|
|
660
511
|
onClick: i,
|
|
661
|
-
onDragEnd:
|
|
662
|
-
onDragStart:
|
|
663
|
-
draggable:
|
|
664
|
-
"aria-label":
|
|
512
|
+
onDragEnd: a,
|
|
513
|
+
onDragStart: l,
|
|
514
|
+
draggable: c,
|
|
515
|
+
"aria-label": u,
|
|
665
516
|
...g,
|
|
666
517
|
children: o
|
|
667
518
|
}
|
|
668
519
|
);
|
|
669
|
-
}),
|
|
520
|
+
}), Qe = m((e, n) => {
|
|
670
521
|
const {
|
|
671
522
|
className: t,
|
|
672
523
|
tabs: o,
|
|
673
524
|
defaultOpenTab: r,
|
|
674
525
|
openTab: i,
|
|
675
|
-
setOpenTab:
|
|
676
|
-
loading:
|
|
677
|
-
...
|
|
526
|
+
setOpenTab: a,
|
|
527
|
+
loading: l,
|
|
528
|
+
...c
|
|
678
529
|
} = e;
|
|
679
|
-
return d(
|
|
680
|
-
|
|
530
|
+
return d(c), /* @__PURE__ */ s(h, { className: t, ref: n, children: /* @__PURE__ */ v(
|
|
531
|
+
P,
|
|
681
532
|
{
|
|
682
533
|
value: i,
|
|
683
534
|
defaultValue: r,
|
|
684
|
-
onChange:
|
|
535
|
+
onChange: a,
|
|
685
536
|
children: [
|
|
686
|
-
|
|
687
|
-
/* @__PURE__ */ s(
|
|
688
|
-
|
|
537
|
+
l && /* @__PURE__ */ s(ve, { visible: l }),
|
|
538
|
+
/* @__PURE__ */ s(P.List, { children: o.map((u) => /* @__PURE__ */ s(
|
|
539
|
+
P.Tab,
|
|
689
540
|
{
|
|
690
|
-
"data-test": `${
|
|
691
|
-
value:
|
|
692
|
-
children:
|
|
541
|
+
"data-test": `${u.name.toLowerCase()}-tab`,
|
|
542
|
+
value: u.name,
|
|
543
|
+
children: u.name
|
|
693
544
|
},
|
|
694
|
-
|
|
545
|
+
u.name
|
|
695
546
|
)) }),
|
|
696
|
-
o.map((
|
|
547
|
+
o.map((u) => /* @__PURE__ */ s(P.Panel, { value: u.name, children: u.tabPanel }, u.name))
|
|
697
548
|
]
|
|
698
549
|
}
|
|
699
550
|
) });
|
|
700
|
-
}),
|
|
701
|
-
const { className: t, children: o, onClick: r, label: i, ...
|
|
702
|
-
return d(
|
|
703
|
-
|
|
551
|
+
}), Xe = m((e, n) => {
|
|
552
|
+
const { className: t, children: o, onClick: r, label: i, ...a } = e;
|
|
553
|
+
return d(a), /* @__PURE__ */ s(
|
|
554
|
+
T,
|
|
704
555
|
{
|
|
705
556
|
size: "xs",
|
|
706
557
|
"aria-label": i,
|
|
707
558
|
className: t,
|
|
708
559
|
ref: n,
|
|
709
560
|
onClick: r,
|
|
710
|
-
...
|
|
561
|
+
...a,
|
|
711
562
|
children: o
|
|
712
563
|
}
|
|
713
564
|
);
|
|
714
|
-
}),
|
|
715
|
-
const { className: t, accept: o, value: r, placeholder: i, onChange:
|
|
716
|
-
return d(
|
|
717
|
-
|
|
565
|
+
}), Ye = m((e, n) => {
|
|
566
|
+
const { className: t, accept: o, value: r, placeholder: i, onChange: a, ...l } = e;
|
|
567
|
+
return d(l), /* @__PURE__ */ s(
|
|
568
|
+
Se,
|
|
718
569
|
{
|
|
719
570
|
size: "xs",
|
|
720
571
|
className: t,
|
|
@@ -722,17 +573,17 @@ const ae = Fe(void 0), Ye = m((e, n) => {
|
|
|
722
573
|
accept: o,
|
|
723
574
|
value: r,
|
|
724
575
|
placeholder: i,
|
|
725
|
-
onChange:
|
|
726
|
-
...
|
|
576
|
+
onChange: a,
|
|
577
|
+
...l
|
|
727
578
|
}
|
|
728
579
|
);
|
|
729
|
-
}),
|
|
580
|
+
}), et = m((e, n) => {
|
|
730
581
|
const { className: t, children: o, ...r } = e;
|
|
731
582
|
return d(r), /* @__PURE__ */ s("div", { className: t, ref: n, children: o });
|
|
732
|
-
}),
|
|
733
|
-
const { className: t, value: o, placeholder: r, onKeyDown: i, onChange:
|
|
734
|
-
return d(
|
|
735
|
-
|
|
583
|
+
}), tt = m((e, n) => {
|
|
584
|
+
const { className: t, value: o, placeholder: r, onKeyDown: i, onChange: a, ...l } = e;
|
|
585
|
+
return d(l), /* @__PURE__ */ s(
|
|
586
|
+
Q,
|
|
736
587
|
{
|
|
737
588
|
size: "xs",
|
|
738
589
|
"data-test": "embed-input",
|
|
@@ -741,16 +592,16 @@ const ae = Fe(void 0), Ye = m((e, n) => {
|
|
|
741
592
|
value: o,
|
|
742
593
|
placeholder: r,
|
|
743
594
|
onKeyDown: i,
|
|
744
|
-
onChange:
|
|
595
|
+
onChange: a
|
|
745
596
|
}
|
|
746
597
|
);
|
|
747
|
-
}),
|
|
598
|
+
}), nt = (e) => {
|
|
748
599
|
const { opened: n, position: t, children: o, ...r } = e;
|
|
749
|
-
return d(r), /* @__PURE__ */ s(
|
|
750
|
-
},
|
|
600
|
+
return d(r), /* @__PURE__ */ s(xe, { withinPortal: !1, opened: n, position: t, children: o });
|
|
601
|
+
}, ot = (e) => {
|
|
751
602
|
const { children: n, ...t } = e;
|
|
752
603
|
return d(t), /* @__PURE__ */ s(we, { children: n });
|
|
753
|
-
},
|
|
604
|
+
}, rt = m((e, n) => {
|
|
754
605
|
const {
|
|
755
606
|
className: t,
|
|
756
607
|
children: o,
|
|
@@ -758,11 +609,11 @@ const ae = Fe(void 0), Ye = m((e, n) => {
|
|
|
758
609
|
// unused
|
|
759
610
|
...i
|
|
760
611
|
} = e;
|
|
761
|
-
return d(i), /* @__PURE__ */ s(
|
|
762
|
-
}),
|
|
612
|
+
return d(i), /* @__PURE__ */ s(ye, { className: t, ref: n, children: o });
|
|
613
|
+
}), st = m((e, n) => {
|
|
763
614
|
const { className: t, children: o, ...r } = e;
|
|
764
615
|
return d(r, !1), /* @__PURE__ */ s(
|
|
765
|
-
|
|
616
|
+
h,
|
|
766
617
|
{
|
|
767
618
|
align: "center",
|
|
768
619
|
gap: 0,
|
|
@@ -772,50 +623,50 @@ const ae = Fe(void 0), Ye = m((e, n) => {
|
|
|
772
623
|
children: o
|
|
773
624
|
}
|
|
774
625
|
);
|
|
775
|
-
}),
|
|
626
|
+
}), it = m((e, n) => {
|
|
776
627
|
const {
|
|
777
628
|
className: t,
|
|
778
629
|
children: o,
|
|
779
630
|
icon: r,
|
|
780
631
|
onClick: i,
|
|
781
|
-
onDragEnd:
|
|
782
|
-
onDragStart:
|
|
783
|
-
draggable:
|
|
784
|
-
label:
|
|
632
|
+
onDragEnd: a,
|
|
633
|
+
onDragStart: l,
|
|
634
|
+
draggable: c,
|
|
635
|
+
label: u,
|
|
785
636
|
...g
|
|
786
637
|
} = e;
|
|
787
638
|
return d(g, !1), r ? /* @__PURE__ */ s(
|
|
788
|
-
|
|
639
|
+
L,
|
|
789
640
|
{
|
|
790
641
|
size: 24,
|
|
791
642
|
className: t,
|
|
792
643
|
ref: n,
|
|
793
644
|
onClick: i,
|
|
794
|
-
onDragEnd:
|
|
795
|
-
onDragStart:
|
|
796
|
-
draggable:
|
|
797
|
-
"aria-label":
|
|
645
|
+
onDragEnd: a,
|
|
646
|
+
onDragStart: l,
|
|
647
|
+
draggable: c,
|
|
648
|
+
"aria-label": u,
|
|
798
649
|
...g,
|
|
799
650
|
children: r
|
|
800
651
|
}
|
|
801
652
|
) : /* @__PURE__ */ s(
|
|
802
|
-
|
|
653
|
+
T,
|
|
803
654
|
{
|
|
804
655
|
className: t,
|
|
805
656
|
ref: n,
|
|
806
657
|
onClick: i,
|
|
807
|
-
onDragEnd:
|
|
808
|
-
onDragStart:
|
|
809
|
-
draggable:
|
|
810
|
-
"aria-label":
|
|
658
|
+
onDragEnd: a,
|
|
659
|
+
onDragStart: l,
|
|
660
|
+
draggable: c,
|
|
661
|
+
"aria-label": u,
|
|
811
662
|
...g,
|
|
812
663
|
children: o
|
|
813
664
|
}
|
|
814
665
|
);
|
|
815
|
-
}),
|
|
666
|
+
}), at = m((e, n) => {
|
|
816
667
|
const { className: t, children: o, id: r, ...i } = e;
|
|
817
668
|
return d(i), /* @__PURE__ */ s(
|
|
818
|
-
|
|
669
|
+
z,
|
|
819
670
|
{
|
|
820
671
|
gap: 0,
|
|
821
672
|
className: t,
|
|
@@ -825,66 +676,66 @@ const ae = Fe(void 0), Ye = m((e, n) => {
|
|
|
825
676
|
children: o
|
|
826
677
|
}
|
|
827
678
|
);
|
|
828
|
-
}),
|
|
679
|
+
}), lt = m((e, n) => {
|
|
829
680
|
const { className: t, children: o, ...r } = e;
|
|
830
|
-
return d(r), /* @__PURE__ */ s(
|
|
831
|
-
}),
|
|
832
|
-
const { className: t, isSelected: o, onClick: r, item: i, id:
|
|
833
|
-
d(
|
|
834
|
-
const
|
|
835
|
-
return
|
|
836
|
-
if (!
|
|
681
|
+
return d(r), /* @__PURE__ */ s(h, { className: t, ref: n, children: /* @__PURE__ */ s(h, { className: "bn-mt-suggestion-menu-item-title", children: o }) });
|
|
682
|
+
}), ct = m((e, n) => {
|
|
683
|
+
const { className: t, isSelected: o, onClick: r, item: i, id: a, ...l } = e;
|
|
684
|
+
d(l);
|
|
685
|
+
const c = j(null);
|
|
686
|
+
return $(() => {
|
|
687
|
+
if (!c.current || !o)
|
|
837
688
|
return;
|
|
838
|
-
const
|
|
839
|
-
|
|
689
|
+
const u = q(
|
|
690
|
+
c.current,
|
|
840
691
|
document.querySelector(".bn-suggestion-menu, #ai-suggestion-menu")
|
|
841
692
|
// TODO
|
|
842
693
|
);
|
|
843
|
-
|
|
694
|
+
u === "top" ? c.current.scrollIntoView(!0) : u === "bottom" && c.current.scrollIntoView(!1);
|
|
844
695
|
}, [o]), /* @__PURE__ */ v(
|
|
845
|
-
|
|
696
|
+
h,
|
|
846
697
|
{
|
|
847
698
|
gap: 0,
|
|
848
699
|
className: t,
|
|
849
|
-
ref:
|
|
850
|
-
id:
|
|
700
|
+
ref: A(n, c),
|
|
701
|
+
id: a,
|
|
851
702
|
role: "option",
|
|
852
|
-
onMouseDown: (
|
|
703
|
+
onMouseDown: (u) => u.preventDefault(),
|
|
853
704
|
onClick: r,
|
|
854
705
|
"aria-selected": o || void 0,
|
|
855
706
|
children: [
|
|
856
707
|
i.icon && /* @__PURE__ */ s(
|
|
857
|
-
|
|
708
|
+
h,
|
|
858
709
|
{
|
|
859
710
|
className: "bn-mt-suggestion-menu-item-section",
|
|
860
711
|
"data-position": "left",
|
|
861
712
|
children: i.icon
|
|
862
713
|
}
|
|
863
714
|
),
|
|
864
|
-
/* @__PURE__ */ v(
|
|
865
|
-
/* @__PURE__ */ s(
|
|
866
|
-
/* @__PURE__ */ s(
|
|
715
|
+
/* @__PURE__ */ v(z, { gap: 0, className: "bn-mt-suggestion-menu-item-body", children: [
|
|
716
|
+
/* @__PURE__ */ s(C, { className: "bn-mt-suggestion-menu-item-title", children: i.title }),
|
|
717
|
+
/* @__PURE__ */ s(C, { className: "bn-mt-suggestion-menu-item-subtitle", children: i.subtext })
|
|
867
718
|
] }),
|
|
868
719
|
i.badge && /* @__PURE__ */ s(
|
|
869
|
-
|
|
720
|
+
h,
|
|
870
721
|
{
|
|
871
722
|
"data-position": "right",
|
|
872
723
|
className: "bn-mt-suggestion-menu-item-section",
|
|
873
|
-
children: /* @__PURE__ */ s(
|
|
724
|
+
children: /* @__PURE__ */ s(Ce, { size: "xs", children: i.badge })
|
|
874
725
|
}
|
|
875
726
|
)
|
|
876
727
|
]
|
|
877
728
|
}
|
|
878
729
|
);
|
|
879
|
-
}),
|
|
730
|
+
}), ut = m((e, n) => {
|
|
880
731
|
const { className: t, children: o, ...r } = e;
|
|
881
|
-
return d(r), /* @__PURE__ */ s(
|
|
882
|
-
}),
|
|
732
|
+
return d(r), /* @__PURE__ */ s(h, { className: t, ref: n, children: o });
|
|
733
|
+
}), dt = m((e, n) => {
|
|
883
734
|
const { className: t, ...o } = e;
|
|
884
|
-
return d(o), /* @__PURE__ */ s(
|
|
885
|
-
}),
|
|
886
|
-
const { className: t, children: o, id: r, columns: i, ...
|
|
887
|
-
return d(
|
|
735
|
+
return d(o), /* @__PURE__ */ s(X, { className: t, type: "dots", size: 16, ref: n });
|
|
736
|
+
}), mt = m((e, n) => {
|
|
737
|
+
const { className: t, children: o, id: r, columns: i, ...a } = e;
|
|
738
|
+
return d(a), /* @__PURE__ */ s(
|
|
888
739
|
"div",
|
|
889
740
|
{
|
|
890
741
|
className: t,
|
|
@@ -895,42 +746,42 @@ const ae = Fe(void 0), Ye = m((e, n) => {
|
|
|
895
746
|
children: o
|
|
896
747
|
}
|
|
897
748
|
);
|
|
898
|
-
}),
|
|
749
|
+
}), ft = m((e, n) => {
|
|
899
750
|
const { className: t, children: o, columns: r, ...i } = e;
|
|
900
751
|
return d(i), /* @__PURE__ */ s(
|
|
901
|
-
|
|
752
|
+
h,
|
|
902
753
|
{
|
|
903
754
|
className: t,
|
|
904
755
|
style: { gridColumn: `1 / ${r + 1}` },
|
|
905
756
|
ref: n,
|
|
906
|
-
children: /* @__PURE__ */ s(
|
|
757
|
+
children: /* @__PURE__ */ s(h, { className: "bn-mt-suggestion-menu-item-title", children: o })
|
|
907
758
|
}
|
|
908
759
|
);
|
|
909
|
-
}),
|
|
910
|
-
const { className: t, isSelected: o, onClick: r, item: i, id:
|
|
911
|
-
d(
|
|
912
|
-
const
|
|
913
|
-
return
|
|
914
|
-
if (!
|
|
760
|
+
}), gt = m((e, n) => {
|
|
761
|
+
const { className: t, isSelected: o, onClick: r, item: i, id: a, ...l } = e;
|
|
762
|
+
d(l);
|
|
763
|
+
const c = j(null);
|
|
764
|
+
return $(() => {
|
|
765
|
+
if (!c.current || !o)
|
|
915
766
|
return;
|
|
916
|
-
const
|
|
917
|
-
|
|
767
|
+
const u = q(
|
|
768
|
+
c.current,
|
|
918
769
|
document.querySelector(".bn-grid-suggestion-menu")
|
|
919
770
|
);
|
|
920
|
-
|
|
771
|
+
u === "top" ? c.current.scrollIntoView(!0) : u === "bottom" && c.current.scrollIntoView(!1);
|
|
921
772
|
}, [o]), /* @__PURE__ */ s(
|
|
922
773
|
"div",
|
|
923
774
|
{
|
|
924
775
|
className: t,
|
|
925
|
-
ref:
|
|
926
|
-
id:
|
|
776
|
+
ref: A(n, c),
|
|
777
|
+
id: a,
|
|
927
778
|
role: "option",
|
|
928
779
|
onClick: r,
|
|
929
780
|
"aria-selected": o || void 0,
|
|
930
781
|
children: i.icon
|
|
931
782
|
}
|
|
932
783
|
);
|
|
933
|
-
}),
|
|
784
|
+
}), bt = m((e, n) => {
|
|
934
785
|
const {
|
|
935
786
|
className: t,
|
|
936
787
|
children: o,
|
|
@@ -939,7 +790,7 @@ const ae = Fe(void 0), Ye = m((e, n) => {
|
|
|
939
790
|
...i
|
|
940
791
|
} = e;
|
|
941
792
|
return d(i), /* @__PURE__ */ s(
|
|
942
|
-
|
|
793
|
+
X,
|
|
943
794
|
{
|
|
944
795
|
className: t,
|
|
945
796
|
style: { gridColumn: `1 / ${r + 1}` },
|
|
@@ -947,75 +798,187 @@ const ae = Fe(void 0), Ye = m((e, n) => {
|
|
|
947
798
|
ref: n
|
|
948
799
|
}
|
|
949
800
|
);
|
|
950
|
-
}),
|
|
951
|
-
const { children: t, className: o, onMouseDown: r, onClick: i, ...
|
|
952
|
-
return d(
|
|
953
|
-
|
|
801
|
+
}), ht = m((e, n) => {
|
|
802
|
+
const { children: t, className: o, onMouseDown: r, onClick: i, ...a } = e;
|
|
803
|
+
return d(a, !1), /* @__PURE__ */ s(
|
|
804
|
+
T,
|
|
954
805
|
{
|
|
955
806
|
className: o,
|
|
956
807
|
ref: n,
|
|
957
808
|
onMouseDown: r,
|
|
958
809
|
onClick: i,
|
|
959
|
-
...
|
|
810
|
+
...a,
|
|
960
811
|
children: t
|
|
961
812
|
}
|
|
962
813
|
);
|
|
963
|
-
}),
|
|
814
|
+
}), pt = m((e, n) => {
|
|
964
815
|
const {
|
|
965
816
|
className: t,
|
|
966
817
|
children: o,
|
|
967
818
|
draggable: r,
|
|
968
819
|
onDragStart: i,
|
|
969
|
-
onDragEnd:
|
|
970
|
-
style:
|
|
971
|
-
label:
|
|
972
|
-
...
|
|
820
|
+
onDragEnd: a,
|
|
821
|
+
style: l,
|
|
822
|
+
label: c,
|
|
823
|
+
...u
|
|
973
824
|
} = e;
|
|
974
|
-
return d(
|
|
975
|
-
|
|
825
|
+
return d(u, !1), /* @__PURE__ */ s(
|
|
826
|
+
T,
|
|
976
827
|
{
|
|
977
828
|
className: t,
|
|
978
829
|
ref: n,
|
|
979
|
-
"aria-label":
|
|
830
|
+
"aria-label": c,
|
|
980
831
|
draggable: r,
|
|
981
832
|
onDragStart: i,
|
|
982
|
-
onDragEnd:
|
|
983
|
-
style:
|
|
984
|
-
...
|
|
833
|
+
onDragEnd: a,
|
|
834
|
+
style: l,
|
|
835
|
+
...u,
|
|
985
836
|
children: o
|
|
986
837
|
}
|
|
987
838
|
);
|
|
988
|
-
}),
|
|
839
|
+
}), D = m(
|
|
989
840
|
(e, n) => {
|
|
990
841
|
const {
|
|
991
842
|
className: t,
|
|
992
843
|
children: o,
|
|
993
844
|
onMouseEnter: r,
|
|
994
845
|
onMouseLeave: i,
|
|
995
|
-
variant:
|
|
996
|
-
...
|
|
846
|
+
variant: a,
|
|
847
|
+
...l
|
|
997
848
|
} = e;
|
|
998
|
-
d(
|
|
999
|
-
const { ref:
|
|
849
|
+
d(l);
|
|
850
|
+
const { ref: c, focused: u } = te(), g = Oe(u), b = A(n, c, g);
|
|
1000
851
|
return /* @__PURE__ */ s(
|
|
1001
|
-
|
|
852
|
+
Ne,
|
|
1002
853
|
{
|
|
1003
854
|
className: t,
|
|
1004
|
-
ref:
|
|
855
|
+
ref: b,
|
|
1005
856
|
role: "toolbar",
|
|
1006
857
|
onMouseEnter: r,
|
|
1007
858
|
onMouseLeave: i,
|
|
1008
|
-
gap:
|
|
859
|
+
gap: a === "action-toolbar" ? 2 : void 0,
|
|
1009
860
|
children: o
|
|
1010
861
|
}
|
|
1011
862
|
);
|
|
1012
863
|
}
|
|
1013
|
-
)
|
|
864
|
+
);
|
|
865
|
+
var re = {
|
|
866
|
+
color: void 0,
|
|
867
|
+
size: void 0,
|
|
868
|
+
className: void 0,
|
|
869
|
+
style: void 0,
|
|
870
|
+
attr: void 0
|
|
871
|
+
}, G = N.createContext && /* @__PURE__ */ N.createContext(re), vt = ["attr", "size", "title"];
|
|
872
|
+
function St(e, n) {
|
|
873
|
+
if (e == null) return {};
|
|
874
|
+
var t = yt(e, n), o, r;
|
|
875
|
+
if (Object.getOwnPropertySymbols) {
|
|
876
|
+
var i = Object.getOwnPropertySymbols(e);
|
|
877
|
+
for (r = 0; r < i.length; r++)
|
|
878
|
+
o = i[r], !(n.indexOf(o) >= 0) && Object.prototype.propertyIsEnumerable.call(e, o) && (t[o] = e[o]);
|
|
879
|
+
}
|
|
880
|
+
return t;
|
|
881
|
+
}
|
|
882
|
+
function yt(e, n) {
|
|
883
|
+
if (e == null) return {};
|
|
884
|
+
var t = {};
|
|
885
|
+
for (var o in e)
|
|
886
|
+
if (Object.prototype.hasOwnProperty.call(e, o)) {
|
|
887
|
+
if (n.indexOf(o) >= 0) continue;
|
|
888
|
+
t[o] = e[o];
|
|
889
|
+
}
|
|
890
|
+
return t;
|
|
891
|
+
}
|
|
892
|
+
function F() {
|
|
893
|
+
return F = Object.assign ? Object.assign.bind() : function(e) {
|
|
894
|
+
for (var n = 1; n < arguments.length; n++) {
|
|
895
|
+
var t = arguments[n];
|
|
896
|
+
for (var o in t)
|
|
897
|
+
Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
|
|
898
|
+
}
|
|
899
|
+
return e;
|
|
900
|
+
}, F.apply(this, arguments);
|
|
901
|
+
}
|
|
902
|
+
function H(e, n) {
|
|
903
|
+
var t = Object.keys(e);
|
|
904
|
+
if (Object.getOwnPropertySymbols) {
|
|
905
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
906
|
+
n && (o = o.filter(function(r) {
|
|
907
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
908
|
+
})), t.push.apply(t, o);
|
|
909
|
+
}
|
|
910
|
+
return t;
|
|
911
|
+
}
|
|
912
|
+
function M(e) {
|
|
913
|
+
for (var n = 1; n < arguments.length; n++) {
|
|
914
|
+
var t = arguments[n] != null ? arguments[n] : {};
|
|
915
|
+
n % 2 ? H(Object(t), !0).forEach(function(o) {
|
|
916
|
+
wt(e, o, t[o]);
|
|
917
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : H(Object(t)).forEach(function(o) {
|
|
918
|
+
Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(t, o));
|
|
919
|
+
});
|
|
920
|
+
}
|
|
921
|
+
return e;
|
|
922
|
+
}
|
|
923
|
+
function wt(e, n, t) {
|
|
924
|
+
return n = xt(n), n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
|
|
925
|
+
}
|
|
926
|
+
function xt(e) {
|
|
927
|
+
var n = Ct(e, "string");
|
|
928
|
+
return typeof n == "symbol" ? n : n + "";
|
|
929
|
+
}
|
|
930
|
+
function Ct(e, n) {
|
|
931
|
+
if (typeof e != "object" || !e) return e;
|
|
932
|
+
var t = e[Symbol.toPrimitive];
|
|
933
|
+
if (t !== void 0) {
|
|
934
|
+
var o = t.call(e, n);
|
|
935
|
+
if (typeof o != "object") return o;
|
|
936
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
937
|
+
}
|
|
938
|
+
return (n === "string" ? String : Number)(e);
|
|
939
|
+
}
|
|
940
|
+
function se(e) {
|
|
941
|
+
return e && e.map((n, t) => /* @__PURE__ */ N.createElement(n.tag, M({
|
|
942
|
+
key: t
|
|
943
|
+
}, n.attr), se(n.child)));
|
|
944
|
+
}
|
|
945
|
+
function Nt(e) {
|
|
946
|
+
return (n) => /* @__PURE__ */ N.createElement(Tt, F({
|
|
947
|
+
attr: M({}, e.attr)
|
|
948
|
+
}, n), se(e.child));
|
|
949
|
+
}
|
|
950
|
+
function Tt(e) {
|
|
951
|
+
var n = (t) => {
|
|
952
|
+
var {
|
|
953
|
+
attr: o,
|
|
954
|
+
size: r,
|
|
955
|
+
title: i
|
|
956
|
+
} = e, a = St(e, vt), l = r || t.size || "1em", c;
|
|
957
|
+
return t.className && (c = t.className), e.className && (c = (c ? c + " " : "") + e.className), /* @__PURE__ */ N.createElement("svg", F({
|
|
958
|
+
stroke: "currentColor",
|
|
959
|
+
fill: "currentColor",
|
|
960
|
+
strokeWidth: "0"
|
|
961
|
+
}, t.attr, o, a, {
|
|
962
|
+
className: c,
|
|
963
|
+
style: M(M({
|
|
964
|
+
color: e.color || t.color
|
|
965
|
+
}, t.style), e.style),
|
|
966
|
+
height: l,
|
|
967
|
+
width: l,
|
|
968
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
969
|
+
}), i && /* @__PURE__ */ N.createElement("title", null, i), e.children);
|
|
970
|
+
};
|
|
971
|
+
return G !== void 0 ? /* @__PURE__ */ N.createElement(G.Consumer, null, (t) => n(t)) : n(re);
|
|
972
|
+
}
|
|
973
|
+
function kt(e) {
|
|
974
|
+
return Nt({ attr: { viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true" }, child: [{ tag: "path", attr: { fillRule: "evenodd", d: "M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z", clipRule: "evenodd" }, child: [] }] })(e);
|
|
975
|
+
}
|
|
976
|
+
const I = m((e, n) => {
|
|
1014
977
|
const { className: t, items: o, isDisabled: r, ...i } = e;
|
|
1015
978
|
d(i);
|
|
1016
|
-
const
|
|
1017
|
-
return
|
|
1018
|
-
|
|
979
|
+
const a = o.filter((l) => l.isSelected)[0];
|
|
980
|
+
return a ? /* @__PURE__ */ v(
|
|
981
|
+
p,
|
|
1019
982
|
{
|
|
1020
983
|
withinPortal: !1,
|
|
1021
984
|
transitionProps: {
|
|
@@ -1024,151 +987,147 @@ const ae = Fe(void 0), Ye = m((e, n) => {
|
|
|
1024
987
|
disabled: r,
|
|
1025
988
|
middlewares: { flip: !0, shift: !0, inline: !1, size: !0 },
|
|
1026
989
|
children: [
|
|
1027
|
-
/* @__PURE__ */ s(
|
|
1028
|
-
|
|
990
|
+
/* @__PURE__ */ s(p.Target, { children: /* @__PURE__ */ s(
|
|
991
|
+
T,
|
|
1029
992
|
{
|
|
1030
|
-
onMouseDown: (
|
|
1031
|
-
|
|
993
|
+
onMouseDown: (l) => {
|
|
994
|
+
R() && l.currentTarget.focus();
|
|
1032
995
|
},
|
|
1033
|
-
leftSection:
|
|
1034
|
-
rightSection: /* @__PURE__ */ s(
|
|
996
|
+
leftSection: a.icon,
|
|
997
|
+
rightSection: /* @__PURE__ */ s(kt, {}),
|
|
1035
998
|
size: "xs",
|
|
1036
999
|
variant: "subtle",
|
|
1037
1000
|
disabled: r,
|
|
1038
|
-
children:
|
|
1001
|
+
children: a.text
|
|
1039
1002
|
}
|
|
1040
1003
|
) }),
|
|
1041
|
-
/* @__PURE__ */ s(
|
|
1042
|
-
|
|
1004
|
+
/* @__PURE__ */ s(p.Dropdown, { className: t, ref: n, children: o.map((l) => /* @__PURE__ */ s(
|
|
1005
|
+
p.Item,
|
|
1043
1006
|
{
|
|
1044
|
-
onClick:
|
|
1045
|
-
leftSection:
|
|
1046
|
-
rightSection:
|
|
1007
|
+
onClick: l.onClick,
|
|
1008
|
+
leftSection: l.icon,
|
|
1009
|
+
rightSection: l.isSelected ? /* @__PURE__ */ s(B, { size: 10, className: "bn-tick-icon" }) : (
|
|
1047
1010
|
// Ensures space for tick even if item isn't currently selected.
|
|
1048
1011
|
/* @__PURE__ */ s("div", { className: "bn-tick-space" })
|
|
1049
1012
|
),
|
|
1050
|
-
disabled:
|
|
1051
|
-
children:
|
|
1013
|
+
disabled: l.isDisabled,
|
|
1014
|
+
children: l.text
|
|
1052
1015
|
},
|
|
1053
|
-
|
|
1016
|
+
l.text
|
|
1054
1017
|
)) })
|
|
1055
1018
|
]
|
|
1056
1019
|
}
|
|
1057
1020
|
) : null;
|
|
1058
|
-
}),
|
|
1021
|
+
}), Pt = {
|
|
1059
1022
|
FormattingToolbar: {
|
|
1060
|
-
Root:
|
|
1061
|
-
Button:
|
|
1062
|
-
Select:
|
|
1023
|
+
Root: D,
|
|
1024
|
+
Button: O,
|
|
1025
|
+
Select: I
|
|
1063
1026
|
},
|
|
1064
1027
|
FilePanel: {
|
|
1065
|
-
Root:
|
|
1066
|
-
Button:
|
|
1067
|
-
FileInput:
|
|
1068
|
-
TabPanel:
|
|
1069
|
-
TextInput:
|
|
1028
|
+
Root: Qe,
|
|
1029
|
+
Button: Xe,
|
|
1030
|
+
FileInput: Ye,
|
|
1031
|
+
TabPanel: et,
|
|
1032
|
+
TextInput: tt
|
|
1070
1033
|
},
|
|
1071
1034
|
GridSuggestionMenu: {
|
|
1072
|
-
Root:
|
|
1073
|
-
Item:
|
|
1074
|
-
EmptyItem:
|
|
1075
|
-
Loader:
|
|
1035
|
+
Root: mt,
|
|
1036
|
+
Item: gt,
|
|
1037
|
+
EmptyItem: ft,
|
|
1038
|
+
Loader: bt
|
|
1076
1039
|
},
|
|
1077
1040
|
LinkToolbar: {
|
|
1078
|
-
Root:
|
|
1079
|
-
Button:
|
|
1080
|
-
Select:
|
|
1041
|
+
Root: D,
|
|
1042
|
+
Button: O,
|
|
1043
|
+
Select: I
|
|
1081
1044
|
},
|
|
1082
1045
|
SideMenu: {
|
|
1083
|
-
Root:
|
|
1084
|
-
Button:
|
|
1046
|
+
Root: st,
|
|
1047
|
+
Button: it
|
|
1085
1048
|
},
|
|
1086
1049
|
SuggestionMenu: {
|
|
1087
|
-
Root:
|
|
1088
|
-
Item:
|
|
1089
|
-
EmptyItem:
|
|
1090
|
-
Label:
|
|
1091
|
-
Loader:
|
|
1050
|
+
Root: at,
|
|
1051
|
+
Item: ct,
|
|
1052
|
+
EmptyItem: lt,
|
|
1053
|
+
Label: ut,
|
|
1054
|
+
Loader: dt
|
|
1092
1055
|
},
|
|
1093
1056
|
TableHandle: {
|
|
1094
|
-
Root:
|
|
1095
|
-
ExtendButton:
|
|
1057
|
+
Root: pt,
|
|
1058
|
+
ExtendButton: ht
|
|
1096
1059
|
},
|
|
1097
1060
|
Generic: {
|
|
1098
1061
|
Badge: {
|
|
1099
|
-
Root:
|
|
1062
|
+
Root: Re,
|
|
1100
1063
|
Group: Be
|
|
1101
1064
|
},
|
|
1102
1065
|
Form: {
|
|
1103
1066
|
Root: (e) => /* @__PURE__ */ s("div", { children: e.children }),
|
|
1104
|
-
TextInput:
|
|
1067
|
+
TextInput: Ve
|
|
1105
1068
|
},
|
|
1106
1069
|
Menu: {
|
|
1107
|
-
Root:
|
|
1108
|
-
Trigger:
|
|
1109
|
-
Dropdown:
|
|
1110
|
-
Divider:
|
|
1111
|
-
Label:
|
|
1112
|
-
Item:
|
|
1113
|
-
Button:
|
|
1070
|
+
Root: He,
|
|
1071
|
+
Trigger: Ue,
|
|
1072
|
+
Dropdown: We,
|
|
1073
|
+
Divider: qe,
|
|
1074
|
+
Label: Ze,
|
|
1075
|
+
Item: Ke,
|
|
1076
|
+
Button: Je
|
|
1114
1077
|
},
|
|
1115
1078
|
Popover: {
|
|
1116
|
-
Root:
|
|
1117
|
-
Trigger:
|
|
1118
|
-
Content:
|
|
1079
|
+
Root: nt,
|
|
1080
|
+
Trigger: ot,
|
|
1081
|
+
Content: rt
|
|
1119
1082
|
},
|
|
1120
1083
|
Toolbar: {
|
|
1121
|
-
Root:
|
|
1122
|
-
Button:
|
|
1123
|
-
Select:
|
|
1084
|
+
Root: D,
|
|
1085
|
+
Button: O,
|
|
1086
|
+
Select: I
|
|
1124
1087
|
}
|
|
1125
1088
|
},
|
|
1126
1089
|
Comments: {
|
|
1127
|
-
Comment:
|
|
1128
|
-
Editor:
|
|
1090
|
+
Comment: $e,
|
|
1091
|
+
Editor: Ae,
|
|
1129
1092
|
Card: Ee,
|
|
1130
|
-
CardSection:
|
|
1131
|
-
ExpandSectionsPrompt:
|
|
1093
|
+
CardSection: Le,
|
|
1094
|
+
ExpandSectionsPrompt: ze
|
|
1132
1095
|
}
|
|
1133
|
-
}, Ft = {
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
const { className: n, theme: t, ...o } = e, r = q(), i = ge(), l = (r == null ? void 0 : r.colorSchemePreference) || i, a = E(
|
|
1138
|
-
(c) => {
|
|
1139
|
-
if (c && (Ie(c), typeof t == "object")) {
|
|
1096
|
+
}, Ft = (e) => {
|
|
1097
|
+
const { className: n, theme: t, ...o } = e, r = W(), i = me(), a = (r == null ? void 0 : r.colorSchemePreference) || i, l = Fe(
|
|
1098
|
+
(b) => {
|
|
1099
|
+
if (b && (Ie(b), typeof t == "object")) {
|
|
1140
1100
|
if ("light" in t && "dark" in t) {
|
|
1141
|
-
|
|
1142
|
-
t[
|
|
1143
|
-
|
|
1101
|
+
V(
|
|
1102
|
+
t[a === "dark" ? "dark" : "light"],
|
|
1103
|
+
b
|
|
1144
1104
|
);
|
|
1145
1105
|
return;
|
|
1146
1106
|
}
|
|
1147
|
-
|
|
1107
|
+
V(t, b);
|
|
1148
1108
|
return;
|
|
1149
1109
|
}
|
|
1150
1110
|
},
|
|
1151
|
-
[
|
|
1152
|
-
), u = typeof t == "string" ? t :
|
|
1153
|
-
|
|
1111
|
+
[a, t]
|
|
1112
|
+
), c = ee(Te), u = typeof t == "string" ? t : a !== "no-preference" ? a : "light", g = /* @__PURE__ */ s(fe.Provider, { value: Pt, children: /* @__PURE__ */ s(
|
|
1113
|
+
ge,
|
|
1114
|
+
{
|
|
1115
|
+
"data-mantine-color-scheme": u,
|
|
1116
|
+
className: E("bn-mantine", n || ""),
|
|
1117
|
+
theme: typeof t == "object" ? void 0 : t,
|
|
1118
|
+
...o,
|
|
1119
|
+
ref: l
|
|
1120
|
+
}
|
|
1121
|
+
) });
|
|
1122
|
+
return c ? g : /* @__PURE__ */ s(
|
|
1154
1123
|
ke,
|
|
1155
1124
|
{
|
|
1156
|
-
|
|
1157
|
-
cssVariablesSelector: ".bn-mantine",
|
|
1125
|
+
withCssVariables: !1,
|
|
1158
1126
|
getRootElement: () => {
|
|
1159
1127
|
},
|
|
1160
|
-
children:
|
|
1161
|
-
be,
|
|
1162
|
-
{
|
|
1163
|
-
"data-mantine-color-scheme": u,
|
|
1164
|
-
className: z("bn-mantine", n || ""),
|
|
1165
|
-
theme: typeof t == "object" ? void 0 : t,
|
|
1166
|
-
...o,
|
|
1167
|
-
ref: a
|
|
1168
|
-
}
|
|
1169
|
-
)
|
|
1128
|
+
children: g
|
|
1170
1129
|
}
|
|
1171
|
-
)
|
|
1130
|
+
);
|
|
1172
1131
|
}, f = [
|
|
1173
1132
|
"#FFFFFF",
|
|
1174
1133
|
"#EFEFEF",
|
|
@@ -1180,7 +1139,7 @@ const ae = Fe(void 0), Ye = m((e, n) => {
|
|
|
1180
1139
|
"#161616",
|
|
1181
1140
|
"#0F0F0F",
|
|
1182
1141
|
"#000000"
|
|
1183
|
-
],
|
|
1142
|
+
], K = {
|
|
1184
1143
|
colors: {
|
|
1185
1144
|
editor: {
|
|
1186
1145
|
text: f[5],
|
|
@@ -1209,11 +1168,11 @@ const ae = Fe(void 0), Ye = m((e, n) => {
|
|
|
1209
1168
|
shadow: f[2],
|
|
1210
1169
|
border: f[1],
|
|
1211
1170
|
sideMenu: f[2],
|
|
1212
|
-
highlights:
|
|
1171
|
+
highlights: ie
|
|
1213
1172
|
},
|
|
1214
1173
|
borderRadius: 6,
|
|
1215
1174
|
fontFamily: '"Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Open Sans", "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif'
|
|
1216
|
-
},
|
|
1175
|
+
}, Et = {
|
|
1217
1176
|
colors: {
|
|
1218
1177
|
editor: {
|
|
1219
1178
|
text: f[2],
|
|
@@ -1242,18 +1201,18 @@ const ae = Fe(void 0), Ye = m((e, n) => {
|
|
|
1242
1201
|
shadow: f[8],
|
|
1243
1202
|
border: f[7],
|
|
1244
1203
|
sideMenu: f[4],
|
|
1245
|
-
highlights:
|
|
1204
|
+
highlights: ae
|
|
1246
1205
|
},
|
|
1247
|
-
borderRadius:
|
|
1248
|
-
fontFamily:
|
|
1206
|
+
borderRadius: K.borderRadius,
|
|
1207
|
+
fontFamily: K.fontFamily
|
|
1249
1208
|
};
|
|
1250
1209
|
export {
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1210
|
+
Ft as BlockNoteView,
|
|
1211
|
+
V as applyBlockNoteCSSVariablesFromTheme,
|
|
1212
|
+
Pt as components,
|
|
1213
|
+
Et as darkDefaultTheme,
|
|
1255
1214
|
f as defaultColorScheme,
|
|
1256
|
-
|
|
1215
|
+
K as lightDefaultTheme,
|
|
1257
1216
|
Ie as removeBlockNoteCSSVariables
|
|
1258
1217
|
};
|
|
1259
1218
|
//# sourceMappingURL=blocknote-mantine.js.map
|