@blocknote/mantine 0.18.1 → 0.19.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,19 +1,19 @@
1
- import { jsx as i, jsxs as y } from "react/jsx-runtime";
2
- import { assertEmpty as d, isSafari as M, mergeCSSClasses as U } from "@blocknote/core";
3
- import { elementOverflow as E, useBlockNoteContext as Z, usePrefersColorScheme as J, ComponentsContext as Q, BlockNoteViewRaw as X } from "@blocknote/react";
4
- import { TextInput as B, Menu as f, CheckIcon as $, Group as p, Tabs as w, LoadingOverlay as Y, Button as k, FileInput as ee, Popover as te, PopoverTarget as ne, PopoverDropdown as re, ActionIcon as V, Loader as G, Stack as O, Text as S, Badge as oe, Tooltip as se, MantineProvider as ie } from "@mantine/core";
5
- import x, { forwardRef as b, createContext as ae, useState as le, useRef as N, useCallback as F, useContext as ce, useEffect as _ } from "react";
6
- import { mergeRefs as T, useFocusWithin as ue, useFocusTrap as de } from "@mantine/hooks";
7
- const H = (e, n, t = !1) => {
8
- const r = [];
9
- function o(s, l = "--bn") {
1
+ import { jsx as i, jsxs as S } from "react/jsx-runtime";
2
+ import { assertEmpty as d, isSafari as M, COLORS_DEFAULT as q, COLORS_DARK_MODE_DEFAULT as Z, mergeCSSClasses as J } from "@blocknote/core";
3
+ import { elementOverflow as z, useBlockNoteContext as Q, usePrefersColorScheme as X, ComponentsContext as Y, BlockNoteViewRaw as ee } from "@blocknote/react";
4
+ import { TextInput as B, Menu as b, CheckIcon as _, Group as p, Tabs as w, LoadingOverlay as te, Button as x, FileInput as ne, Popover as oe, PopoverTarget as re, PopoverDropdown as se, ActionIcon as $, Loader as V, Stack as O, Text as N, Badge as ie, Tooltip as ae, MantineProvider as le } from "@mantine/core";
5
+ import y, { forwardRef as g, createContext as ce, useState as ue, useRef as C, useCallback as F, useContext as de, useEffect as A } from "react";
6
+ import { mergeRefs as T, useFocusWithin as me, useFocusTrap as ge } from "@mantine/hooks";
7
+ const G = (e, n, t = !1) => {
8
+ const o = [];
9
+ function r(s, l = "--bn") {
10
10
  for (const a in s) {
11
11
  const c = a.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(), u = `${l}-${c}`;
12
- typeof s[a] != "object" ? (typeof s[a] == "number" && (s[a] = `${s[a]}px`), t ? n.style.removeProperty(u) : n.style.setProperty(u, s[a].toString())) : o(s[a], u);
12
+ typeof s[a] != "object" ? (typeof s[a] == "number" && (s[a] = `${s[a]}px`), t ? n.style.removeProperty(u) : n.style.setProperty(u, s[a].toString())) : r(s[a], u);
13
13
  }
14
14
  }
15
- return o(e), r;
16
- }, I = (e, n) => H(e, n), me = {
15
+ return r(e), o;
16
+ }, D = (e, n) => G(e, n), fe = {
17
17
  colors: {
18
18
  editor: {
19
19
  text: void 0,
@@ -83,17 +83,17 @@ const H = (e, n, t = !1) => {
83
83
  },
84
84
  borderRadius: void 0,
85
85
  fontFamily: void 0
86
- }, be = (e) => H(me, e, !0), ge = b((e, n) => {
86
+ }, be = (e) => G(fe, e, !0), pe = g((e, n) => {
87
87
  const {
88
88
  className: t,
89
- name: r,
90
- label: o,
89
+ name: o,
90
+ label: r,
91
91
  icon: s,
92
92
  value: l,
93
93
  autoFocus: a,
94
94
  placeholder: c,
95
95
  onKeyDown: u,
96
- onChange: g,
96
+ onChange: f,
97
97
  onSubmit: v,
98
98
  ...h
99
99
  } = e;
@@ -103,116 +103,116 @@ const H = (e, n, t = !1) => {
103
103
  size: "xs",
104
104
  className: t,
105
105
  ref: n,
106
- name: r,
107
- label: o,
106
+ name: o,
107
+ label: r,
108
108
  leftSection: s,
109
109
  value: l,
110
110
  autoFocus: a,
111
111
  "data-autofocus": a ? "true" : void 0,
112
112
  placeholder: c,
113
113
  onKeyDown: u,
114
- onChange: g,
114
+ onChange: f,
115
115
  onSubmit: v
116
116
  }
117
117
  );
118
118
  });
119
- var A = {
119
+ var H = {
120
120
  color: void 0,
121
121
  size: void 0,
122
122
  className: void 0,
123
123
  style: void 0,
124
124
  attr: void 0
125
- }, R = x.createContext && /* @__PURE__ */ x.createContext(A), fe = ["attr", "size", "title"];
126
- function pe(e, n) {
125
+ }, I = y.createContext && /* @__PURE__ */ y.createContext(H), ve = ["attr", "size", "title"];
126
+ function he(e, n) {
127
127
  if (e == null) return {};
128
- var t = ve(e, n), r, o;
128
+ var t = ye(e, n), o, r;
129
129
  if (Object.getOwnPropertySymbols) {
130
130
  var s = Object.getOwnPropertySymbols(e);
131
- for (o = 0; o < s.length; o++)
132
- r = s[o], !(n.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (t[r] = e[r]);
131
+ for (r = 0; r < s.length; r++)
132
+ o = s[r], !(n.indexOf(o) >= 0) && Object.prototype.propertyIsEnumerable.call(e, o) && (t[o] = e[o]);
133
133
  }
134
134
  return t;
135
135
  }
136
- function ve(e, n) {
136
+ function ye(e, n) {
137
137
  if (e == null) return {};
138
138
  var t = {};
139
- for (var r in e)
140
- if (Object.prototype.hasOwnProperty.call(e, r)) {
141
- if (n.indexOf(r) >= 0) continue;
142
- t[r] = e[r];
139
+ for (var o in e)
140
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
141
+ if (n.indexOf(o) >= 0) continue;
142
+ t[o] = e[o];
143
143
  }
144
144
  return t;
145
145
  }
146
- function C() {
147
- return C = Object.assign ? Object.assign.bind() : function(e) {
146
+ function k() {
147
+ return k = Object.assign ? Object.assign.bind() : function(e) {
148
148
  for (var n = 1; n < arguments.length; n++) {
149
149
  var t = arguments[n];
150
- for (var r in t)
151
- Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r]);
150
+ for (var o in t)
151
+ Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
152
152
  }
153
153
  return e;
154
- }, C.apply(this, arguments);
154
+ }, k.apply(this, arguments);
155
155
  }
156
- function D(e, n) {
156
+ function R(e, n) {
157
157
  var t = Object.keys(e);
158
158
  if (Object.getOwnPropertySymbols) {
159
- var r = Object.getOwnPropertySymbols(e);
160
- n && (r = r.filter(function(o) {
161
- return Object.getOwnPropertyDescriptor(e, o).enumerable;
162
- })), t.push.apply(t, r);
159
+ var o = Object.getOwnPropertySymbols(e);
160
+ n && (o = o.filter(function(r) {
161
+ return Object.getOwnPropertyDescriptor(e, r).enumerable;
162
+ })), t.push.apply(t, o);
163
163
  }
164
164
  return t;
165
165
  }
166
166
  function P(e) {
167
167
  for (var n = 1; n < arguments.length; n++) {
168
168
  var t = arguments[n] != null ? arguments[n] : {};
169
- n % 2 ? D(Object(t), !0).forEach(function(r) {
170
- he(e, r, t[r]);
171
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : D(Object(t)).forEach(function(r) {
172
- Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
169
+ n % 2 ? R(Object(t), !0).forEach(function(o) {
170
+ Se(e, o, t[o]);
171
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : R(Object(t)).forEach(function(o) {
172
+ Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(t, o));
173
173
  });
174
174
  }
175
175
  return e;
176
176
  }
177
- function he(e, n, t) {
177
+ function Se(e, n, t) {
178
178
  return n = xe(n), n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
179
179
  }
180
180
  function xe(e) {
181
- var n = ye(e, "string");
181
+ var n = we(e, "string");
182
182
  return typeof n == "symbol" ? n : n + "";
183
183
  }
184
- function ye(e, n) {
184
+ function we(e, n) {
185
185
  if (typeof e != "object" || !e) return e;
186
186
  var t = e[Symbol.toPrimitive];
187
187
  if (t !== void 0) {
188
- var r = t.call(e, n || "default");
189
- if (typeof r != "object") return r;
188
+ var o = t.call(e, n || "default");
189
+ if (typeof o != "object") return o;
190
190
  throw new TypeError("@@toPrimitive must return a primitive value.");
191
191
  }
192
192
  return (n === "string" ? String : Number)(e);
193
193
  }
194
194
  function K(e) {
195
- return e && e.map((n, t) => /* @__PURE__ */ x.createElement(n.tag, P({
195
+ return e && e.map((n, t) => /* @__PURE__ */ y.createElement(n.tag, P({
196
196
  key: t
197
197
  }, n.attr), K(n.child)));
198
198
  }
199
- function W(e) {
200
- return (n) => /* @__PURE__ */ x.createElement(ke, C({
199
+ function U(e) {
200
+ return (n) => /* @__PURE__ */ y.createElement(Ne, k({
201
201
  attr: P({}, e.attr)
202
202
  }, n), K(e.child));
203
203
  }
204
- function ke(e) {
204
+ function Ne(e) {
205
205
  var n = (t) => {
206
206
  var {
207
- attr: r,
208
- size: o,
207
+ attr: o,
208
+ size: r,
209
209
  title: s
210
- } = e, l = pe(e, fe), a = o || t.size || "1em", c;
211
- return t.className && (c = t.className), e.className && (c = (c ? c + " " : "") + e.className), /* @__PURE__ */ x.createElement("svg", C({
210
+ } = e, l = he(e, ve), a = r || t.size || "1em", c;
211
+ return t.className && (c = t.className), e.className && (c = (c ? c + " " : "") + e.className), /* @__PURE__ */ y.createElement("svg", k({
212
212
  stroke: "currentColor",
213
213
  fill: "currentColor",
214
214
  strokeWidth: "0"
215
- }, t.attr, r, l, {
215
+ }, t.attr, o, l, {
216
216
  className: c,
217
217
  style: P(P({
218
218
  color: e.color || t.color
@@ -220,49 +220,49 @@ function ke(e) {
220
220
  height: a,
221
221
  width: a,
222
222
  xmlns: "http://www.w3.org/2000/svg"
223
- }), s && /* @__PURE__ */ x.createElement("title", null, s), e.children);
223
+ }), s && /* @__PURE__ */ y.createElement("title", null, s), e.children);
224
224
  };
225
- return R !== void 0 ? /* @__PURE__ */ x.createElement(R.Consumer, null, (t) => n(t)) : n(A);
225
+ return I !== void 0 ? /* @__PURE__ */ y.createElement(I.Consumer, null, (t) => n(t)) : n(H);
226
226
  }
227
- function we(e) {
228
- return W({ tag: "svg", attr: { viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true" }, child: [{ tag: "path", attr: { fillRule: "evenodd", d: "M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z", clipRule: "evenodd" }, child: [] }] })(e);
227
+ function Ce(e) {
228
+ return U({ tag: "svg", attr: { viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true" }, child: [{ tag: "path", attr: { fillRule: "evenodd", d: "M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z", clipRule: "evenodd" }, child: [] }] })(e);
229
229
  }
230
- function Se(e) {
231
- return W({ tag: "svg", attr: { viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true" }, child: [{ tag: "path", attr: { fillRule: "evenodd", d: "M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z", clipRule: "evenodd" }, child: [] }] })(e);
230
+ function ke(e) {
231
+ return U({ tag: "svg", attr: { viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true" }, child: [{ tag: "path", attr: { fillRule: "evenodd", d: "M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z", clipRule: "evenodd" }, child: [] }] })(e);
232
232
  }
233
- const q = ae(void 0), Ne = b((e, n) => {
233
+ const W = ce(void 0), Pe = g((e, n) => {
234
234
  const {
235
235
  children: t,
236
- onOpenChange: r,
237
- position: o,
236
+ onOpenChange: o,
237
+ position: r,
238
238
  sub: s,
239
239
  // not used
240
240
  ...l
241
241
  } = e;
242
242
  d(l);
243
- const [a, c] = le(!1), u = N(null), g = N(), v = F(() => {
244
- g.current && clearTimeout(g.current), g.current = setTimeout(() => {
243
+ const [a, c] = ue(!1), u = C(null), f = C(), v = F(() => {
244
+ f.current && clearTimeout(f.current), f.current = setTimeout(() => {
245
245
  c(!1);
246
246
  }, 250);
247
247
  }, []), h = F(() => {
248
- g.current && clearTimeout(g.current), c(!0);
248
+ f.current && clearTimeout(f.current), c(!0);
249
249
  }, []);
250
250
  return /* @__PURE__ */ i(
251
- q.Provider,
251
+ W.Provider,
252
252
  {
253
253
  value: {
254
254
  onMenuMouseOver: h,
255
255
  onMenuMouseLeave: v
256
256
  },
257
257
  children: /* @__PURE__ */ i(
258
- f.Item,
258
+ b.Item,
259
259
  {
260
260
  className: "bn-menu-item bn-mt-sub-menu-item",
261
261
  ref: T(n, u),
262
262
  onMouseOver: h,
263
263
  onMouseLeave: v,
264
264
  children: /* @__PURE__ */ i(
265
- f,
265
+ b,
266
266
  {
267
267
  portalProps: {
268
268
  target: u.current ? u.current.parentElement : void 0
@@ -270,9 +270,9 @@ const q = ae(void 0), Ne = b((e, n) => {
270
270
  middlewares: { flip: !0, shift: !0, inline: !1, size: !0 },
271
271
  trigger: "hover",
272
272
  opened: a,
273
- onClose: () => r == null ? void 0 : r(!1),
274
- onOpen: () => r == null ? void 0 : r(!0),
275
- position: o,
273
+ onClose: () => o == null ? void 0 : o(!1),
274
+ onOpen: () => o == null ? void 0 : o(!0),
275
+ position: r,
276
276
  children: t
277
277
  }
278
278
  )
@@ -280,89 +280,99 @@ const q = ae(void 0), Ne = b((e, n) => {
280
280
  )
281
281
  }
282
282
  );
283
- }), Ce = (e) => {
284
- const { children: n, onOpenChange: t, position: r, sub: o, ...s } = e;
285
- return d(s), o ? /* @__PURE__ */ i(Ne, { ...e }) : /* @__PURE__ */ i(
286
- f,
283
+ }), Te = (e) => {
284
+ const { children: n, onOpenChange: t, position: o, sub: r, ...s } = e;
285
+ return d(s), r ? /* @__PURE__ */ i(Pe, { ...e }) : /* @__PURE__ */ i(
286
+ b,
287
287
  {
288
288
  withinPortal: !1,
289
289
  middlewares: { flip: !0, shift: !0, inline: !1, size: !0 },
290
290
  onClose: () => t == null ? void 0 : t(!1),
291
291
  onOpen: () => t == null ? void 0 : t(!0),
292
- position: r,
292
+ position: o,
293
293
  children: n
294
294
  }
295
295
  );
296
- }, Pe = b((e, n) => {
297
- const { className: t, children: r, icon: o, checked: s, subTrigger: l, onClick: a, ...c } = e;
298
- return d(c, !1), l ? /* @__PURE__ */ y("div", { ref: n, ...c, children: [
299
- r,
300
- /* @__PURE__ */ i(Se, { size: 15 })
301
- ] }) : /* @__PURE__ */ i(
302
- f.Item,
296
+ }, Me = g((e, n) => {
297
+ const { className: t, children: o, icon: r, checked: s, subTrigger: l, onClick: a, ...c } = e;
298
+ return d(c, !1), l ? /* @__PURE__ */ S(
299
+ "div",
300
+ {
301
+ onClick: (u) => {
302
+ u.preventDefault(), u.stopPropagation();
303
+ },
304
+ ref: n,
305
+ ...c,
306
+ children: [
307
+ o,
308
+ /* @__PURE__ */ i(ke, { size: 15 })
309
+ ]
310
+ }
311
+ ) : /* @__PURE__ */ i(
312
+ b.Item,
303
313
  {
304
314
  className: t,
305
315
  ref: n,
306
- leftSection: o,
307
- rightSection: s ? /* @__PURE__ */ i($, { size: 10 }) : s === !1 ? /* @__PURE__ */ i("div", { className: "bn-tick-space" }) : null,
316
+ leftSection: r,
317
+ rightSection: s ? /* @__PURE__ */ i(_, { size: 10 }) : s === !1 ? /* @__PURE__ */ i("div", { className: "bn-tick-space" }) : null,
308
318
  onClick: a,
309
319
  ...c,
310
- children: r
320
+ children: o
311
321
  }
312
322
  );
313
- }), Te = (e) => {
323
+ }), Fe = (e) => {
314
324
  const {
315
325
  children: n,
316
326
  sub: t,
317
327
  // unused
318
- ...r
328
+ ...o
319
329
  } = e;
320
- return d(r), /* @__PURE__ */ i(f.Target, { children: n });
321
- }, Me = b((e, n) => {
330
+ return d(o), /* @__PURE__ */ i(b.Target, { children: n });
331
+ }, Oe = g((e, n) => {
322
332
  const {
323
333
  className: t,
324
- children: r,
325
- sub: o,
334
+ children: o,
335
+ sub: r,
326
336
  //unused
327
337
  ...s
328
338
  } = e;
329
339
  d(s);
330
- const l = ce(q);
340
+ const l = de(W);
331
341
  return /* @__PURE__ */ i(
332
- f.Dropdown,
342
+ b.Dropdown,
333
343
  {
334
344
  className: t,
335
345
  ref: n,
336
346
  onMouseOver: l == null ? void 0 : l.onMenuMouseOver,
337
347
  onMouseLeave: l == null ? void 0 : l.onMenuMouseLeave,
338
- children: r
348
+ children: o
339
349
  }
340
350
  );
341
- }), Fe = b((e, n) => {
342
- const { className: t, ...r } = e;
343
- return d(r), /* @__PURE__ */ i(f.Divider, { className: t, ref: n });
344
- }), Oe = b((e, n) => {
345
- const { className: t, children: r, ...o } = e;
346
- return d(o), /* @__PURE__ */ i(f.Label, { className: t, ref: n, children: r });
347
- }), Ie = b((e, n) => {
351
+ }), De = g((e, n) => {
352
+ const { className: t, ...o } = e;
353
+ return d(o), /* @__PURE__ */ i(b.Divider, { className: t, ref: n });
354
+ }), Ie = g((e, n) => {
355
+ const { className: t, children: o, ...r } = e;
356
+ return d(r), /* @__PURE__ */ i(b.Label, { className: t, ref: n, children: o });
357
+ }), Re = g((e, n) => {
348
358
  const {
349
359
  className: t,
350
- tabs: r,
351
- defaultOpenTab: o,
360
+ tabs: o,
361
+ defaultOpenTab: r,
352
362
  openTab: s,
353
363
  setOpenTab: l,
354
364
  loading: a,
355
365
  ...c
356
366
  } = e;
357
- return d(c), /* @__PURE__ */ i(p, { className: t, ref: n, children: /* @__PURE__ */ y(
367
+ return d(c), /* @__PURE__ */ i(p, { className: t, ref: n, children: /* @__PURE__ */ S(
358
368
  w,
359
369
  {
360
370
  value: s,
361
- defaultValue: o,
371
+ defaultValue: r,
362
372
  onChange: l,
363
373
  children: [
364
- a && /* @__PURE__ */ i(Y, { visible: a }),
365
- /* @__PURE__ */ i(w.List, { children: r.map((u) => /* @__PURE__ */ i(
374
+ a && /* @__PURE__ */ i(te, { visible: a }),
375
+ /* @__PURE__ */ i(w.List, { children: o.map((u) => /* @__PURE__ */ i(
366
376
  w.Tab,
367
377
  {
368
378
  "data-test": `${u.name.toLowerCase()}-tab`,
@@ -371,44 +381,44 @@ const q = ae(void 0), Ne = b((e, n) => {
371
381
  },
372
382
  u.name
373
383
  )) }),
374
- r.map((u) => /* @__PURE__ */ i(w.Panel, { value: u.name, children: u.tabPanel }, u.name))
384
+ o.map((u) => /* @__PURE__ */ i(w.Panel, { value: u.name, children: u.tabPanel }, u.name))
375
385
  ]
376
386
  }
377
387
  ) });
378
- }), Re = b((e, n) => {
379
- const { className: t, children: r, onClick: o, label: s, ...l } = e;
388
+ }), Le = g((e, n) => {
389
+ const { className: t, children: o, onClick: r, label: s, ...l } = e;
380
390
  return d(l), /* @__PURE__ */ i(
381
- k,
391
+ x,
382
392
  {
383
393
  size: "xs",
384
394
  "aria-label": s,
385
395
  className: t,
386
396
  ref: n,
387
- onClick: o,
397
+ onClick: r,
388
398
  ...l,
389
- children: r
399
+ children: o
390
400
  }
391
401
  );
392
- }), De = b((e, n) => {
393
- const { className: t, accept: r, value: o, placeholder: s, onChange: l, ...a } = e;
402
+ }), Ee = g((e, n) => {
403
+ const { className: t, accept: o, value: r, placeholder: s, onChange: l, ...a } = e;
394
404
  return d(a), /* @__PURE__ */ i(
395
- ee,
405
+ ne,
396
406
  {
397
407
  size: "xs",
398
408
  className: t,
399
409
  ref: n,
400
- accept: r,
401
- value: o,
410
+ accept: o,
411
+ value: r,
402
412
  placeholder: s,
403
413
  onChange: l,
404
414
  ...a
405
415
  }
406
416
  );
407
- }), je = b((e, n) => {
408
- const { className: t, children: r, ...o } = e;
409
- return d(o), /* @__PURE__ */ i("div", { className: t, ref: n, children: r });
410
- }), ze = b((e, n) => {
411
- const { className: t, value: r, placeholder: o, onKeyDown: s, onChange: l, ...a } = e;
417
+ }), je = g((e, n) => {
418
+ const { className: t, children: o, ...r } = e;
419
+ return d(r), /* @__PURE__ */ i("div", { className: t, ref: n, children: o });
420
+ }), ze = g((e, n) => {
421
+ const { className: t, value: o, placeholder: r, onKeyDown: s, onChange: l, ...a } = e;
412
422
  return d(a), /* @__PURE__ */ i(
413
423
  B,
414
424
  {
@@ -416,63 +426,63 @@ const q = ae(void 0), Ne = b((e, n) => {
416
426
  "data-test": "embed-input",
417
427
  className: t,
418
428
  ref: n,
419
- value: r,
420
- placeholder: o,
429
+ value: o,
430
+ placeholder: r,
421
431
  onKeyDown: s,
422
432
  onChange: l
423
433
  }
424
434
  );
425
- }), Le = (e) => {
426
- const { children: n, opened: t, position: r, ...o } = e;
427
- return d(o), /* @__PURE__ */ i(
428
- te,
435
+ }), Be = (e) => {
436
+ const { children: n, opened: t, position: o, ...r } = e;
437
+ return d(r), /* @__PURE__ */ i(
438
+ oe,
429
439
  {
430
440
  withinPortal: !1,
431
441
  zIndex: 1e4,
432
442
  opened: t,
433
- position: r,
443
+ position: o,
434
444
  children: n
435
445
  }
436
446
  );
437
- }, Ee = (e) => {
447
+ }, _e = (e) => {
438
448
  const { children: n, ...t } = e;
439
- return d(t), /* @__PURE__ */ i(ne, { children: n });
440
- }, Be = b((e, n) => {
449
+ return d(t), /* @__PURE__ */ i(re, { children: n });
450
+ }, $e = g((e, n) => {
441
451
  const {
442
452
  className: t,
443
- children: r,
444
- variant: o,
453
+ children: o,
454
+ variant: r,
445
455
  // unused
446
456
  ...s
447
457
  } = e;
448
- return d(s), /* @__PURE__ */ i(re, { className: t, ref: n, children: r });
449
- }), $e = b((e, n) => {
450
- const { className: t, children: r, ...o } = e;
451
- return d(o, !1), /* @__PURE__ */ i(
458
+ return d(s), /* @__PURE__ */ i(se, { className: t, ref: n, children: o });
459
+ }), Ve = g((e, n) => {
460
+ const { className: t, children: o, ...r } = e;
461
+ return d(r, !1), /* @__PURE__ */ i(
452
462
  p,
453
463
  {
454
464
  align: "center",
455
465
  gap: 0,
456
466
  className: t,
457
467
  ref: n,
458
- ...o,
459
- children: r
468
+ ...r,
469
+ children: o
460
470
  }
461
471
  );
462
- }), Ve = b((e, n) => {
472
+ }), Ae = g((e, n) => {
463
473
  const {
464
474
  className: t,
465
- children: r,
466
- icon: o,
475
+ children: o,
476
+ icon: r,
467
477
  onClick: s,
468
478
  onDragEnd: l,
469
479
  onDragStart: a,
470
480
  draggable: c,
471
481
  label: u,
472
- ...g
482
+ ...f
473
483
  } = e;
474
- return d(g, !1), o ? /* @__PURE__ */ i(
475
- V,
484
+ return d(f, !1), r ? /* @__PURE__ */ i(
485
+ $,
476
486
  {
477
487
  size: 24,
478
488
  className: t,
@@ -482,11 +492,11 @@ const q = ae(void 0), Ne = b((e, n) => {
482
492
  onDragStart: a,
483
493
  draggable: c,
484
494
  "aria-label": u,
485
- ...g,
486
- children: o
495
+ ...f,
496
+ children: r
487
497
  }
488
498
  ) : /* @__PURE__ */ i(
489
- k,
499
+ x,
490
500
  {
491
501
  className: t,
492
502
  ref: n,
@@ -495,104 +505,104 @@ const q = ae(void 0), Ne = b((e, n) => {
495
505
  onDragStart: a,
496
506
  draggable: c,
497
507
  "aria-label": u,
498
- ...g,
499
- children: r
508
+ ...f,
509
+ children: o
500
510
  }
501
511
  );
502
- }), Ge = b((e, n) => {
503
- const { className: t, children: r, id: o, columns: s, ...l } = e;
512
+ }), Ge = g((e, n) => {
513
+ const { className: t, children: o, id: r, columns: s, ...l } = e;
504
514
  return d(l), /* @__PURE__ */ i(
505
515
  "div",
506
516
  {
507
517
  className: t,
508
518
  style: { gridTemplateColumns: `repeat(${s}, 1fr)` },
509
519
  ref: n,
510
- id: o,
520
+ id: r,
511
521
  role: "grid",
512
- children: r
522
+ children: o
513
523
  }
514
524
  );
515
- }), _e = b((e, n) => {
516
- const { className: t, children: r, columns: o, ...s } = e;
525
+ }), He = g((e, n) => {
526
+ const { className: t, children: o, columns: r, ...s } = e;
517
527
  return d(s), /* @__PURE__ */ i(
518
528
  p,
519
529
  {
520
530
  className: t,
521
- style: { gridColumn: `1 / ${o + 1}` },
531
+ style: { gridColumn: `1 / ${r + 1}` },
522
532
  ref: n,
523
- children: /* @__PURE__ */ i(p, { className: "bn-mt-suggestion-menu-item-title", children: r })
533
+ children: /* @__PURE__ */ i(p, { className: "bn-mt-suggestion-menu-item-title", children: o })
524
534
  }
525
535
  );
526
- }), He = b((e, n) => {
527
- const { className: t, isSelected: r, onClick: o, item: s, id: l, ...a } = e;
536
+ }), Ke = g((e, n) => {
537
+ const { className: t, isSelected: o, onClick: r, item: s, id: l, ...a } = e;
528
538
  d(a);
529
- const c = N(null);
530
- return _(() => {
531
- if (!c.current || !r)
539
+ const c = C(null);
540
+ return A(() => {
541
+ if (!c.current || !o)
532
542
  return;
533
- const u = E(
543
+ const u = z(
534
544
  c.current,
535
545
  document.querySelector(".bn-grid-suggestion-menu")
536
546
  );
537
547
  u === "top" ? c.current.scrollIntoView(!0) : u === "bottom" && c.current.scrollIntoView(!1);
538
- }, [r]), /* @__PURE__ */ i(
548
+ }, [o]), /* @__PURE__ */ i(
539
549
  "div",
540
550
  {
541
551
  className: t,
542
552
  ref: T(n, c),
543
553
  id: l,
544
554
  role: "option",
545
- onClick: o,
546
- "aria-selected": r || void 0,
555
+ onClick: r,
556
+ "aria-selected": o || void 0,
547
557
  children: s.icon
548
558
  }
549
559
  );
550
- }), Ae = b((e, n) => {
560
+ }), Ue = g((e, n) => {
551
561
  const {
552
562
  className: t,
553
- children: r,
563
+ children: o,
554
564
  // unused, using "dots" instead
555
- columns: o,
565
+ columns: r,
556
566
  ...s
557
567
  } = e;
558
568
  return d(s), /* @__PURE__ */ i(
559
- G,
569
+ V,
560
570
  {
561
571
  className: t,
562
- style: { gridColumn: `1 / ${o + 1}` },
572
+ style: { gridColumn: `1 / ${r + 1}` },
563
573
  type: "dots",
564
574
  ref: n
565
575
  }
566
576
  );
567
- }), Ke = b((e, n) => {
568
- const { className: t, children: r, id: o, ...s } = e;
577
+ }), We = g((e, n) => {
578
+ const { className: t, children: o, id: r, ...s } = e;
569
579
  return d(s), /* @__PURE__ */ i(
570
580
  O,
571
581
  {
572
582
  gap: 0,
573
583
  className: t,
574
584
  ref: n,
575
- id: o,
585
+ id: r,
576
586
  role: "listbox",
577
- children: r
587
+ children: o
578
588
  }
579
589
  );
580
- }), We = b((e, n) => {
581
- const { className: t, children: r, ...o } = e;
582
- return d(o), /* @__PURE__ */ i(p, { className: t, ref: n, children: /* @__PURE__ */ i(p, { className: "bn-mt-suggestion-menu-item-title", children: r }) });
583
- }), qe = b((e, n) => {
584
- const { className: t, isSelected: r, onClick: o, item: s, id: l, ...a } = e;
590
+ }), qe = g((e, n) => {
591
+ const { className: t, children: o, ...r } = e;
592
+ return d(r), /* @__PURE__ */ i(p, { className: t, ref: n, children: /* @__PURE__ */ i(p, { className: "bn-mt-suggestion-menu-item-title", children: o }) });
593
+ }), Ze = g((e, n) => {
594
+ const { className: t, isSelected: o, onClick: r, item: s, id: l, ...a } = e;
585
595
  d(a);
586
- const c = N(null);
587
- return _(() => {
588
- if (!c.current || !r)
596
+ const c = C(null);
597
+ return A(() => {
598
+ if (!c.current || !o)
589
599
  return;
590
- const u = E(
600
+ const u = z(
591
601
  c.current,
592
602
  document.querySelector(".bn-suggestion-menu")
593
603
  );
594
604
  u === "top" ? c.current.scrollIntoView(!0) : u === "bottom" && c.current.scrollIntoView(!1);
595
- }, [r]), /* @__PURE__ */ y(
605
+ }, [o]), /* @__PURE__ */ S(
596
606
  p,
597
607
  {
598
608
  gap: 0,
@@ -600,8 +610,8 @@ const q = ae(void 0), Ne = b((e, n) => {
600
610
  ref: T(n, c),
601
611
  id: l,
602
612
  role: "option",
603
- onClick: o,
604
- "aria-selected": r || void 0,
613
+ onClick: r,
614
+ "aria-selected": o || void 0,
605
615
  children: [
606
616
  s.icon && /* @__PURE__ */ i(
607
617
  p,
@@ -611,37 +621,37 @@ const q = ae(void 0), Ne = b((e, n) => {
611
621
  children: s.icon
612
622
  }
613
623
  ),
614
- /* @__PURE__ */ y(O, { gap: 0, className: "bn-mt-suggestion-menu-item-body", children: [
615
- /* @__PURE__ */ i(S, { className: "bn-mt-suggestion-menu-item-title", children: s.title }),
616
- /* @__PURE__ */ i(S, { className: "bn-mt-suggestion-menu-item-subtitle", children: s.subtext })
624
+ /* @__PURE__ */ S(O, { gap: 0, className: "bn-mt-suggestion-menu-item-body", children: [
625
+ /* @__PURE__ */ i(N, { className: "bn-mt-suggestion-menu-item-title", children: s.title }),
626
+ /* @__PURE__ */ i(N, { className: "bn-mt-suggestion-menu-item-subtitle", children: s.subtext })
617
627
  ] }),
618
628
  s.badge && /* @__PURE__ */ i(
619
629
  p,
620
630
  {
621
631
  "data-position": "right",
622
632
  className: "bn-mt-suggestion-menu-item-section",
623
- children: /* @__PURE__ */ i(oe, { size: "xs", children: s.badge })
633
+ children: /* @__PURE__ */ i(ie, { size: "xs", children: s.badge })
624
634
  }
625
635
  )
626
636
  ]
627
637
  }
628
638
  );
629
- }), Ue = b((e, n) => {
630
- const { className: t, children: r, ...o } = e;
631
- return d(o), /* @__PURE__ */ i(p, { className: t, ref: n, children: r });
632
- }), Ze = b((e, n) => {
639
+ }), Je = g((e, n) => {
640
+ const { className: t, children: o, ...r } = e;
641
+ return d(r), /* @__PURE__ */ i(p, { className: t, ref: n, children: o });
642
+ }), Qe = g((e, n) => {
633
643
  const {
634
644
  className: t,
635
- children: r,
645
+ children: o,
636
646
  // unused, using "dots" instead
637
- ...o
647
+ ...r
638
648
  } = e;
639
- return d(o), /* @__PURE__ */ i(G, { className: t, type: "dots", ref: n });
640
- }), Je = b((e, n) => {
649
+ return d(r), /* @__PURE__ */ i(V, { className: t, type: "dots", ref: n });
650
+ }), Xe = g((e, n) => {
641
651
  const {
642
652
  className: t,
643
- children: r,
644
- draggable: o,
653
+ children: o,
654
+ draggable: r,
645
655
  onDragStart: s,
646
656
  onDragEnd: l,
647
657
  style: a,
@@ -649,81 +659,81 @@ const q = ae(void 0), Ne = b((e, n) => {
649
659
  ...u
650
660
  } = e;
651
661
  return d(u, !1), /* @__PURE__ */ i(
652
- k,
662
+ x,
653
663
  {
654
664
  className: t,
655
665
  ref: n,
656
666
  "aria-label": c,
657
- draggable: o,
667
+ draggable: r,
658
668
  onDragStart: s,
659
669
  onDragEnd: l,
660
670
  style: a,
661
671
  ...u,
662
- children: r
672
+ children: o
663
673
  }
664
674
  );
665
- }), Qe = b((e, n) => {
666
- const { children: t, className: r, onMouseDown: o, onClick: s, ...l } = e;
675
+ }), Ye = g((e, n) => {
676
+ const { children: t, className: o, onMouseDown: r, onClick: s, ...l } = e;
667
677
  return d(l, !1), /* @__PURE__ */ i(
668
- k,
678
+ x,
669
679
  {
670
- className: r,
680
+ className: o,
671
681
  ref: n,
672
- onMouseDown: o,
682
+ onMouseDown: r,
673
683
  onClick: s,
674
684
  ...l,
675
685
  children: t
676
686
  }
677
687
  );
678
- }), j = b(
688
+ }), L = g(
679
689
  (e, n) => {
680
- const { className: t, children: r, onMouseEnter: o, onMouseLeave: s, ...l } = e;
690
+ const { className: t, children: o, onMouseEnter: r, onMouseLeave: s, ...l } = e;
681
691
  d(l);
682
- const { ref: a, focused: c } = ue(), u = de(c), g = T(n, a, u);
692
+ const { ref: a, focused: c } = me(), u = ge(c), f = T(n, a, u);
683
693
  return /* @__PURE__ */ i(
684
694
  p,
685
695
  {
686
696
  className: t,
687
- ref: g,
697
+ ref: f,
688
698
  role: "toolbar",
689
- onMouseEnter: o,
699
+ onMouseEnter: r,
690
700
  onMouseLeave: s,
691
- children: r
701
+ children: o
692
702
  }
693
703
  );
694
704
  }
695
- ), Xe = (e) => /* @__PURE__ */ y(O, { gap: 0, className: "bn-tooltip", children: [
696
- /* @__PURE__ */ i(S, { size: "sm", children: e.mainTooltip }),
697
- e.secondaryTooltip && /* @__PURE__ */ i(S, { size: "xs", children: e.secondaryTooltip })
698
- ] }), z = b(
705
+ ), et = (e) => /* @__PURE__ */ S(O, { gap: 0, className: "bn-tooltip", children: [
706
+ /* @__PURE__ */ i(N, { size: "sm", children: e.mainTooltip }),
707
+ e.secondaryTooltip && /* @__PURE__ */ i(N, { size: "xs", children: e.secondaryTooltip })
708
+ ] }), E = g(
699
709
  (e, n) => {
700
710
  const {
701
711
  className: t,
702
- children: r,
703
- mainTooltip: o,
712
+ children: o,
713
+ mainTooltip: r,
704
714
  secondaryTooltip: s,
705
715
  icon: l,
706
716
  isSelected: a,
707
717
  isDisabled: c,
708
718
  onClick: u,
709
- label: g,
719
+ label: f,
710
720
  ...v
711
721
  } = e;
712
722
  return d(v, !1), /* @__PURE__ */ i(
713
- se,
723
+ ae,
714
724
  {
715
725
  withinPortal: !1,
716
726
  label: /* @__PURE__ */ i(
717
- Xe,
727
+ et,
718
728
  {
719
- mainTooltip: o,
729
+ mainTooltip: r,
720
730
  secondaryTooltip: s
721
731
  }
722
732
  ),
723
- children: r ? /* @__PURE__ */ i(
724
- k,
733
+ children: o ? /* @__PURE__ */ i(
734
+ x,
725
735
  {
726
- "aria-label": g,
736
+ "aria-label": f,
727
737
  className: t,
728
738
  onMouseDown: (h) => {
729
739
  M() && h.currentTarget.focus();
@@ -731,25 +741,25 @@ const q = ae(void 0), Ne = b((e, n) => {
731
741
  onClick: u,
732
742
  "aria-pressed": a,
733
743
  "data-selected": a || void 0,
734
- "data-test": o.slice(0, 1).toLowerCase() + o.replace(/\s+/g, "").slice(1),
744
+ "data-test": r.slice(0, 1).toLowerCase() + r.replace(/\s+/g, "").slice(1),
735
745
  size: "xs",
736
746
  disabled: c || !1,
737
747
  ref: n,
738
748
  ...v,
739
- children: r
749
+ children: o
740
750
  }
741
751
  ) : /* @__PURE__ */ i(
742
- V,
752
+ $,
743
753
  {
744
754
  className: t,
745
- "aria-label": g,
755
+ "aria-label": f,
746
756
  onMouseDown: (h) => {
747
757
  M() && h.currentTarget.focus();
748
758
  },
749
759
  onClick: u,
750
760
  "aria-pressed": a,
751
761
  "data-selected": a || void 0,
752
- "data-test": o.slice(0, 1).toLowerCase() + o.replace(/\s+/g, "").slice(1),
762
+ "data-test": r.slice(0, 1).toLowerCase() + r.replace(/\s+/g, "").slice(1),
753
763
  size: 30,
754
764
  disabled: c || !1,
755
765
  ref: n,
@@ -760,40 +770,40 @@ const q = ae(void 0), Ne = b((e, n) => {
760
770
  }
761
771
  );
762
772
  }
763
- ), Ye = b((e, n) => {
764
- const { className: t, items: r, isDisabled: o, ...s } = e;
773
+ ), tt = g((e, n) => {
774
+ const { className: t, items: o, isDisabled: r, ...s } = e;
765
775
  d(s);
766
- const l = r.filter((a) => a.isSelected)[0];
767
- return l ? /* @__PURE__ */ y(
768
- f,
776
+ const l = o.filter((a) => a.isSelected)[0];
777
+ return l ? /* @__PURE__ */ S(
778
+ b,
769
779
  {
770
780
  withinPortal: !1,
771
781
  transitionProps: {
772
782
  exitDuration: 0
773
783
  },
774
- disabled: o,
784
+ disabled: r,
775
785
  middlewares: { flip: !0, shift: !0, inline: !1, size: !0 },
776
786
  children: [
777
- /* @__PURE__ */ i(f.Target, { children: /* @__PURE__ */ i(
778
- k,
787
+ /* @__PURE__ */ i(b.Target, { children: /* @__PURE__ */ i(
788
+ x,
779
789
  {
780
790
  onMouseDown: (a) => {
781
791
  M() && a.currentTarget.focus();
782
792
  },
783
793
  leftSection: l.icon,
784
- rightSection: /* @__PURE__ */ i(we, {}),
794
+ rightSection: /* @__PURE__ */ i(Ce, {}),
785
795
  size: "xs",
786
796
  variant: "subtle",
787
- disabled: o,
797
+ disabled: r,
788
798
  children: l.text
789
799
  }
790
800
  ) }),
791
- /* @__PURE__ */ i(f.Dropdown, { className: t, ref: n, children: r.map((a) => /* @__PURE__ */ i(
792
- f.Item,
801
+ /* @__PURE__ */ i(b.Dropdown, { className: t, ref: n, children: o.map((a) => /* @__PURE__ */ i(
802
+ b.Item,
793
803
  {
794
804
  onClick: a.onClick,
795
805
  leftSection: a.icon,
796
- rightSection: a.isSelected ? /* @__PURE__ */ i($, { size: 10, className: "bn-tick-icon" }) : (
806
+ rightSection: a.isSelected ? /* @__PURE__ */ i(_, { size: 10, className: "bn-tick-icon" }) : (
797
807
  // Ensures space for tick even if item isn't currently selected.
798
808
  /* @__PURE__ */ i("div", { className: "bn-tick-space" })
799
809
  ),
@@ -816,7 +826,7 @@ const q = ae(void 0), Ne = b((e, n) => {
816
826
  "#161616",
817
827
  "#0F0F0F",
818
828
  "#000000"
819
- ], L = {
829
+ ], j = {
820
830
  colors: {
821
831
  editor: {
822
832
  text: m[5],
@@ -845,48 +855,11 @@ const q = ae(void 0), Ne = b((e, n) => {
845
855
  shadow: m[2],
846
856
  border: m[1],
847
857
  sideMenu: m[2],
848
- highlights: {
849
- gray: {
850
- text: "#9b9a97",
851
- background: "#ebeced"
852
- },
853
- brown: {
854
- text: "#64473a",
855
- background: "#e9e5e3"
856
- },
857
- red: {
858
- text: "#e03e3e",
859
- background: "#fbe4e4"
860
- },
861
- orange: {
862
- text: "#d9730d",
863
- background: "#f6e9d9"
864
- },
865
- yellow: {
866
- text: "#dfab01",
867
- background: "#fbf3db"
868
- },
869
- green: {
870
- text: "#4d6461",
871
- background: "#ddedea"
872
- },
873
- blue: {
874
- text: "#0b6e99",
875
- background: "#ddebf1"
876
- },
877
- purple: {
878
- text: "#6940a5",
879
- background: "#eae4f2"
880
- },
881
- pink: {
882
- text: "#ad1a72",
883
- background: "#f4dfeb"
884
- }
885
- }
858
+ highlights: q
886
859
  },
887
860
  borderRadius: 6,
888
861
  fontFamily: '"Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Open Sans", "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif'
889
- }, lt = {
862
+ }, ut = {
890
863
  colors: {
891
864
  editor: {
892
865
  text: m[2],
@@ -915,137 +888,100 @@ const q = ae(void 0), Ne = b((e, n) => {
915
888
  shadow: m[8],
916
889
  border: m[7],
917
890
  sideMenu: m[4],
918
- highlights: {
919
- gray: {
920
- text: "#bebdb8",
921
- background: "#9b9a97"
922
- },
923
- brown: {
924
- text: "#8e6552",
925
- background: "#64473a"
926
- },
927
- red: {
928
- text: "#ec4040",
929
- background: "#be3434"
930
- },
931
- orange: {
932
- text: "#e3790d",
933
- background: "#b7600a"
934
- },
935
- yellow: {
936
- text: "#dfab01",
937
- background: "#b58b00"
938
- },
939
- green: {
940
- text: "#6b8b87",
941
- background: "#4d6461"
942
- },
943
- blue: {
944
- text: "#0e87bc",
945
- background: "#0b6e99"
946
- },
947
- purple: {
948
- text: "#8552d7",
949
- background: "#6940a5"
950
- },
951
- pink: {
952
- text: "#da208f",
953
- background: "#ad1a72"
954
- }
955
- }
891
+ highlights: Z
956
892
  },
957
- borderRadius: L.borderRadius,
958
- fontFamily: L.fontFamily
959
- }, et = {
893
+ borderRadius: j.borderRadius,
894
+ fontFamily: j.fontFamily
895
+ }, nt = {
960
896
  FormattingToolbar: {
961
- Root: j,
962
- Button: z,
963
- Select: Ye
897
+ Root: L,
898
+ Button: E,
899
+ Select: tt
964
900
  },
965
901
  FilePanel: {
966
- Root: Ie,
967
- Button: Re,
968
- FileInput: De,
902
+ Root: Re,
903
+ Button: Le,
904
+ FileInput: Ee,
969
905
  TabPanel: je,
970
906
  TextInput: ze
971
907
  },
972
908
  GridSuggestionMenu: {
973
909
  Root: Ge,
974
- Item: He,
975
- EmptyItem: _e,
976
- Loader: Ae
910
+ Item: Ke,
911
+ EmptyItem: He,
912
+ Loader: Ue
977
913
  },
978
914
  LinkToolbar: {
979
- Root: j,
980
- Button: z
915
+ Root: L,
916
+ Button: E
981
917
  },
982
918
  SideMenu: {
983
- Root: $e,
984
- Button: Ve
919
+ Root: Ve,
920
+ Button: Ae
985
921
  },
986
922
  SuggestionMenu: {
987
- Root: Ke,
988
- Item: qe,
989
- EmptyItem: We,
990
- Label: Ue,
991
- Loader: Ze
923
+ Root: We,
924
+ Item: Ze,
925
+ EmptyItem: qe,
926
+ Label: Je,
927
+ Loader: Qe
992
928
  },
993
929
  TableHandle: {
994
- Root: Je,
995
- ExtendButton: Qe
930
+ Root: Xe,
931
+ ExtendButton: Ye
996
932
  },
997
933
  Generic: {
998
934
  Form: {
999
935
  Root: (e) => /* @__PURE__ */ i("div", { children: e.children }),
1000
- TextInput: ge
936
+ TextInput: pe
1001
937
  },
1002
938
  Menu: {
1003
- Root: Ce,
1004
- Trigger: Te,
1005
- Dropdown: Me,
1006
- Divider: Fe,
1007
- Label: Oe,
1008
- Item: Pe
939
+ Root: Te,
940
+ Trigger: Fe,
941
+ Dropdown: Oe,
942
+ Divider: De,
943
+ Label: Ie,
944
+ Item: Me
1009
945
  },
1010
946
  Popover: {
1011
- Root: Le,
1012
- Trigger: Ee,
1013
- Content: Be
947
+ Root: Be,
948
+ Trigger: _e,
949
+ Content: $e
1014
950
  }
1015
951
  }
1016
- }, tt = {
952
+ }, ot = {
1017
953
  // Removes button press effect
1018
954
  activeClassName: ""
1019
- }, ct = (e) => {
1020
- const { className: n, theme: t, ...r } = e, o = Z(), s = J(), l = (o == null ? void 0 : o.colorSchemePreference) || s, a = F(
955
+ }, dt = (e) => {
956
+ const { className: n, theme: t, ...o } = e, r = Q(), s = X(), l = (r == null ? void 0 : r.colorSchemePreference) || s, a = F(
1021
957
  (c) => {
1022
958
  if (c && (be(c), typeof t == "object")) {
1023
959
  if ("light" in t && "dark" in t) {
1024
- I(
960
+ D(
1025
961
  t[l === "dark" ? "dark" : "light"],
1026
962
  c
1027
963
  );
1028
964
  return;
1029
965
  }
1030
- I(t, c);
966
+ D(t, c);
1031
967
  return;
1032
968
  }
1033
969
  },
1034
970
  [l, t]
1035
971
  );
1036
- return /* @__PURE__ */ i(Q.Provider, { value: et, children: /* @__PURE__ */ i(
1037
- ie,
972
+ return /* @__PURE__ */ i(Y.Provider, { value: nt, children: /* @__PURE__ */ i(
973
+ le,
1038
974
  {
1039
- theme: tt,
975
+ theme: ot,
1040
976
  cssVariablesSelector: ".bn-mantine",
1041
977
  getRootElement: () => {
1042
978
  },
1043
979
  children: /* @__PURE__ */ i(
1044
- X,
980
+ ee,
1045
981
  {
1046
- className: U("bn-mantine", n || ""),
982
+ className: J("bn-mantine", n || ""),
1047
983
  theme: typeof t == "object" ? void 0 : t,
1048
- ...r,
984
+ ...o,
1049
985
  ref: a
1050
986
  }
1051
987
  )
@@ -1053,12 +989,12 @@ const q = ae(void 0), Ne = b((e, n) => {
1053
989
  ) });
1054
990
  };
1055
991
  export {
1056
- ct as BlockNoteView,
1057
- I as applyBlockNoteCSSVariablesFromTheme,
1058
- et as components,
1059
- lt as darkDefaultTheme,
992
+ dt as BlockNoteView,
993
+ D as applyBlockNoteCSSVariablesFromTheme,
994
+ nt as components,
995
+ ut as darkDefaultTheme,
1060
996
  m as defaultColorScheme,
1061
- L as lightDefaultTheme,
997
+ j as lightDefaultTheme,
1062
998
  be as removeBlockNoteCSSVariables
1063
999
  };
1064
1000
  //# sourceMappingURL=blocknote-mantine.js.map