@blocknote/mantine 0.15.11 → 0.17.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.js +161 -161
- package/dist/blocknote-mantine.js.map +1 -1
- package/dist/blocknote-mantine.umd.cjs +1 -1
- package/dist/blocknote-mantine.umd.cjs.map +1 -1
- package/dist/webpack-stats.json +1 -1
- package/package.json +4 -4
- package/src/defaultThemes.ts +1 -1
- package/src/index.tsx +27 -27
- package/types/src/index.d.ts +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import D, { forwardRef as R,
|
|
1
|
+
import D, { forwardRef as R, createContext as Br, useState as Yr, useRef as Z, useCallback as fe, useContext as Ur, useEffect as He } from "react";
|
|
2
2
|
import { assertEmpty as p, isSafari as ve, mergeCSSClasses as Gr } from "@blocknote/core";
|
|
3
3
|
import { elementOverflow as Je, useBlockNoteContext as Kr, usePrefersColorScheme as qr, ComponentsContext as Hr, BlockNoteViewRaw as Jr } from "@blocknote/react";
|
|
4
|
-
import {
|
|
4
|
+
import { TextInput as Xe, Menu as O, CheckIcon as Ze, Group as F, Tabs as X, LoadingOverlay as Xr, Button as U, FileInput as Zr, Popover as Qr, PopoverTarget as et, PopoverDropdown as rt, ActionIcon as Qe, Loader as er, Stack as me, Text as Q, Badge as tt, Tooltip as nt, MantineProvider as ot } from "@mantine/core";
|
|
5
5
|
import { mergeRefs as te, useFocusWithin as at, useFocusTrap as it } from "@mantine/hooks";
|
|
6
6
|
var be = { exports: {} }, B = {};
|
|
7
7
|
/**
|
|
@@ -713,68 +713,35 @@ const rr = (r, n, t = !1) => {
|
|
|
713
713
|
borderRadius: void 0,
|
|
714
714
|
fontFamily: void 0
|
|
715
715
|
}, ct = (r) => rr(ut, r, !0), dt = R((r, n) => {
|
|
716
|
-
const { className: t, children: o, id: i, columns: u, ...f } = r;
|
|
717
|
-
return p(f), /* @__PURE__ */ l.jsx(
|
|
718
|
-
"div",
|
|
719
|
-
{
|
|
720
|
-
className: t,
|
|
721
|
-
style: { gridTemplateColumns: `repeat(${u}, 1fr)` },
|
|
722
|
-
ref: n,
|
|
723
|
-
id: i,
|
|
724
|
-
role: "grid",
|
|
725
|
-
children: o
|
|
726
|
-
}
|
|
727
|
-
);
|
|
728
|
-
}), ft = R((r, n) => {
|
|
729
|
-
const { className: t, children: o, columns: i, ...u } = r;
|
|
730
|
-
return p(u), /* @__PURE__ */ l.jsx(
|
|
731
|
-
F,
|
|
732
|
-
{
|
|
733
|
-
className: t,
|
|
734
|
-
style: { gridColumn: `1 / ${i + 1}` },
|
|
735
|
-
ref: n,
|
|
736
|
-
children: /* @__PURE__ */ l.jsx(F, { className: "bn-mt-suggestion-menu-item-title", children: o })
|
|
737
|
-
}
|
|
738
|
-
);
|
|
739
|
-
}), vt = R((r, n) => {
|
|
740
|
-
const { className: t, isSelected: o, onClick: i, item: u, id: f, ...c } = r;
|
|
741
|
-
p(c);
|
|
742
|
-
const d = Z(null);
|
|
743
|
-
return He(() => {
|
|
744
|
-
if (!d.current || !o)
|
|
745
|
-
return;
|
|
746
|
-
const b = Je(
|
|
747
|
-
d.current,
|
|
748
|
-
document.querySelector(".bn-grid-suggestion-menu")
|
|
749
|
-
);
|
|
750
|
-
b === "top" ? d.current.scrollIntoView(!0) : b === "bottom" && d.current.scrollIntoView(!1);
|
|
751
|
-
}, [o]), /* @__PURE__ */ l.jsx(
|
|
752
|
-
"div",
|
|
753
|
-
{
|
|
754
|
-
className: t,
|
|
755
|
-
ref: te(n, d),
|
|
756
|
-
id: f,
|
|
757
|
-
role: "option",
|
|
758
|
-
onClick: i,
|
|
759
|
-
"aria-selected": o || void 0,
|
|
760
|
-
children: u.icon
|
|
761
|
-
}
|
|
762
|
-
);
|
|
763
|
-
}), bt = R((r, n) => {
|
|
764
716
|
const {
|
|
765
717
|
className: t,
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
718
|
+
name: o,
|
|
719
|
+
label: i,
|
|
720
|
+
icon: u,
|
|
721
|
+
value: f,
|
|
722
|
+
autoFocus: c,
|
|
723
|
+
placeholder: d,
|
|
724
|
+
onKeyDown: b,
|
|
725
|
+
onChange: h,
|
|
726
|
+
onSubmit: w,
|
|
727
|
+
...T
|
|
770
728
|
} = r;
|
|
771
|
-
return p(
|
|
729
|
+
return p(T), /* @__PURE__ */ l.jsx(
|
|
772
730
|
Xe,
|
|
773
731
|
{
|
|
732
|
+
size: "xs",
|
|
774
733
|
className: t,
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
734
|
+
ref: n,
|
|
735
|
+
name: o,
|
|
736
|
+
label: i,
|
|
737
|
+
leftSection: u,
|
|
738
|
+
value: f,
|
|
739
|
+
autoFocus: c,
|
|
740
|
+
"data-autofocus": c ? "true" : void 0,
|
|
741
|
+
placeholder: d,
|
|
742
|
+
onKeyDown: b,
|
|
743
|
+
onChange: h,
|
|
744
|
+
onSubmit: w
|
|
778
745
|
}
|
|
779
746
|
);
|
|
780
747
|
});
|
|
@@ -784,10 +751,10 @@ var tr = {
|
|
|
784
751
|
className: void 0,
|
|
785
752
|
style: void 0,
|
|
786
753
|
attr: void 0
|
|
787
|
-
}, Ye = D.createContext && /* @__PURE__ */ D.createContext(tr),
|
|
788
|
-
function
|
|
754
|
+
}, Ye = D.createContext && /* @__PURE__ */ D.createContext(tr), ft = ["attr", "size", "title"];
|
|
755
|
+
function vt(r, n) {
|
|
789
756
|
if (r == null) return {};
|
|
790
|
-
var t =
|
|
757
|
+
var t = bt(r, n), o, i;
|
|
791
758
|
if (Object.getOwnPropertySymbols) {
|
|
792
759
|
var u = Object.getOwnPropertySymbols(r);
|
|
793
760
|
for (i = 0; i < u.length; i++)
|
|
@@ -795,7 +762,7 @@ function gt(r, n) {
|
|
|
795
762
|
}
|
|
796
763
|
return t;
|
|
797
764
|
}
|
|
798
|
-
function
|
|
765
|
+
function bt(r, n) {
|
|
799
766
|
if (r == null) return {};
|
|
800
767
|
var t = {};
|
|
801
768
|
for (var o in r)
|
|
@@ -829,21 +796,21 @@ function re(r) {
|
|
|
829
796
|
for (var n = 1; n < arguments.length; n++) {
|
|
830
797
|
var t = arguments[n] != null ? arguments[n] : {};
|
|
831
798
|
n % 2 ? Ue(Object(t), !0).forEach(function(o) {
|
|
832
|
-
|
|
799
|
+
mt(r, o, t[o]);
|
|
833
800
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : Ue(Object(t)).forEach(function(o) {
|
|
834
801
|
Object.defineProperty(r, o, Object.getOwnPropertyDescriptor(t, o));
|
|
835
802
|
});
|
|
836
803
|
}
|
|
837
804
|
return r;
|
|
838
805
|
}
|
|
839
|
-
function
|
|
840
|
-
return n =
|
|
806
|
+
function mt(r, n, t) {
|
|
807
|
+
return n = gt(n), n in r ? Object.defineProperty(r, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[n] = t, r;
|
|
841
808
|
}
|
|
842
|
-
function
|
|
843
|
-
var n =
|
|
809
|
+
function gt(r) {
|
|
810
|
+
var n = pt(r, "string");
|
|
844
811
|
return typeof n == "symbol" ? n : n + "";
|
|
845
812
|
}
|
|
846
|
-
function
|
|
813
|
+
function pt(r, n) {
|
|
847
814
|
if (typeof r != "object" || !r) return r;
|
|
848
815
|
var t = r[Symbol.toPrimitive];
|
|
849
816
|
if (t !== void 0) {
|
|
@@ -859,17 +826,17 @@ function nr(r) {
|
|
|
859
826
|
}, n.attr), nr(n.child)));
|
|
860
827
|
}
|
|
861
828
|
function or(r) {
|
|
862
|
-
return (n) => /* @__PURE__ */ D.createElement(
|
|
829
|
+
return (n) => /* @__PURE__ */ D.createElement(ht, ee({
|
|
863
830
|
attr: re({}, r.attr)
|
|
864
831
|
}, n), nr(r.child));
|
|
865
832
|
}
|
|
866
|
-
function
|
|
833
|
+
function ht(r) {
|
|
867
834
|
var n = (t) => {
|
|
868
835
|
var {
|
|
869
836
|
attr: o,
|
|
870
837
|
size: i,
|
|
871
838
|
title: u
|
|
872
|
-
} = r, f =
|
|
839
|
+
} = r, f = vt(r, ft), c = i || t.size || "1em", d;
|
|
873
840
|
return t.className && (d = t.className), r.className && (d = (d ? d + " " : "") + r.className), /* @__PURE__ */ D.createElement("svg", ee({
|
|
874
841
|
stroke: "currentColor",
|
|
875
842
|
fill: "currentColor",
|
|
@@ -886,13 +853,13 @@ function jt(r) {
|
|
|
886
853
|
};
|
|
887
854
|
return Ye !== void 0 ? /* @__PURE__ */ D.createElement(Ye.Consumer, null, (t) => n(t)) : n(tr);
|
|
888
855
|
}
|
|
889
|
-
function
|
|
856
|
+
function xt(r) {
|
|
890
857
|
return or({ tag: "svg", attr: { viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true" }, child: [{ tag: "path", attr: { fillRule: "evenodd", d: "M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z", clipRule: "evenodd" }, child: [] }] })(r);
|
|
891
858
|
}
|
|
892
|
-
function
|
|
859
|
+
function yt(r) {
|
|
893
860
|
return or({ tag: "svg", attr: { viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true" }, child: [{ tag: "path", attr: { fillRule: "evenodd", d: "M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z", clipRule: "evenodd" }, child: [] }] })(r);
|
|
894
861
|
}
|
|
895
|
-
const ar = Br(void 0),
|
|
862
|
+
const ar = Br(void 0), jt = R((r, n) => {
|
|
896
863
|
const {
|
|
897
864
|
children: t,
|
|
898
865
|
onOpenChange: o,
|
|
@@ -942,9 +909,9 @@ const ar = Br(void 0), St = R((r, n) => {
|
|
|
942
909
|
)
|
|
943
910
|
}
|
|
944
911
|
);
|
|
945
|
-
}),
|
|
912
|
+
}), Rt = (r) => {
|
|
946
913
|
const { children: n, onOpenChange: t, position: o, sub: i, ...u } = r;
|
|
947
|
-
return p(u), i ? /* @__PURE__ */ l.jsx(
|
|
914
|
+
return p(u), i ? /* @__PURE__ */ l.jsx(jt, { ...r }) : /* @__PURE__ */ l.jsx(
|
|
948
915
|
O,
|
|
949
916
|
{
|
|
950
917
|
withinPortal: !1,
|
|
@@ -955,11 +922,11 @@ const ar = Br(void 0), St = R((r, n) => {
|
|
|
955
922
|
children: n
|
|
956
923
|
}
|
|
957
924
|
);
|
|
958
|
-
},
|
|
925
|
+
}, Et = R((r, n) => {
|
|
959
926
|
const { className: t, children: o, icon: i, checked: u, subTrigger: f, onClick: c, ...d } = r;
|
|
960
927
|
return p(d, !1), f ? /* @__PURE__ */ l.jsxs("div", { ref: n, ...d, children: [
|
|
961
928
|
o,
|
|
962
|
-
/* @__PURE__ */ l.jsx(
|
|
929
|
+
/* @__PURE__ */ l.jsx(yt, { size: 15 })
|
|
963
930
|
] }) : /* @__PURE__ */ l.jsx(
|
|
964
931
|
O.Item,
|
|
965
932
|
{
|
|
@@ -972,7 +939,7 @@ const ar = Br(void 0), St = R((r, n) => {
|
|
|
972
939
|
children: o
|
|
973
940
|
}
|
|
974
941
|
);
|
|
975
|
-
}),
|
|
942
|
+
}), St = (r) => {
|
|
976
943
|
const {
|
|
977
944
|
children: n,
|
|
978
945
|
sub: t,
|
|
@@ -980,7 +947,7 @@ const ar = Br(void 0), St = R((r, n) => {
|
|
|
980
947
|
...o
|
|
981
948
|
} = r;
|
|
982
949
|
return p(o), /* @__PURE__ */ l.jsx(O.Target, { children: n });
|
|
983
|
-
},
|
|
950
|
+
}, wt = R((r, n) => {
|
|
984
951
|
const {
|
|
985
952
|
className: t,
|
|
986
953
|
children: o,
|
|
@@ -1000,13 +967,13 @@ const ar = Br(void 0), St = R((r, n) => {
|
|
|
1000
967
|
children: o
|
|
1001
968
|
}
|
|
1002
969
|
);
|
|
1003
|
-
}),
|
|
970
|
+
}), Tt = R((r, n) => {
|
|
1004
971
|
const { className: t, ...o } = r;
|
|
1005
972
|
return p(o), /* @__PURE__ */ l.jsx(O.Divider, { className: t, ref: n });
|
|
1006
|
-
}),
|
|
973
|
+
}), kt = R((r, n) => {
|
|
1007
974
|
const { className: t, children: o, ...i } = r;
|
|
1008
975
|
return p(i), /* @__PURE__ */ l.jsx(O.Label, { className: t, ref: n, children: o });
|
|
1009
|
-
}),
|
|
976
|
+
}), Pt = R((r, n) => {
|
|
1010
977
|
const {
|
|
1011
978
|
className: t,
|
|
1012
979
|
tabs: o,
|
|
@@ -1037,7 +1004,7 @@ const ar = Br(void 0), St = R((r, n) => {
|
|
|
1037
1004
|
]
|
|
1038
1005
|
}
|
|
1039
1006
|
) });
|
|
1040
|
-
}),
|
|
1007
|
+
}), _t = R((r, n) => {
|
|
1041
1008
|
const { className: t, children: o, onClick: i, label: u, ...f } = r;
|
|
1042
1009
|
return p(f), /* @__PURE__ */ l.jsx(
|
|
1043
1010
|
U,
|
|
@@ -1051,7 +1018,7 @@ const ar = Br(void 0), St = R((r, n) => {
|
|
|
1051
1018
|
children: o
|
|
1052
1019
|
}
|
|
1053
1020
|
);
|
|
1054
|
-
}),
|
|
1021
|
+
}), Ct = R((r, n) => {
|
|
1055
1022
|
const { className: t, accept: o, value: i, placeholder: u, onChange: f, ...c } = r;
|
|
1056
1023
|
return p(c), /* @__PURE__ */ l.jsx(
|
|
1057
1024
|
Zr,
|
|
@@ -1066,13 +1033,13 @@ const ar = Br(void 0), St = R((r, n) => {
|
|
|
1066
1033
|
...c
|
|
1067
1034
|
}
|
|
1068
1035
|
);
|
|
1069
|
-
}),
|
|
1036
|
+
}), Ot = R((r, n) => {
|
|
1070
1037
|
const { className: t, children: o, ...i } = r;
|
|
1071
1038
|
return p(i), /* @__PURE__ */ l.jsx("div", { className: t, ref: n, children: o });
|
|
1072
|
-
}),
|
|
1039
|
+
}), Ft = R((r, n) => {
|
|
1073
1040
|
const { className: t, value: o, placeholder: i, onKeyDown: u, onChange: f, ...c } = r;
|
|
1074
1041
|
return p(c), /* @__PURE__ */ l.jsx(
|
|
1075
|
-
|
|
1042
|
+
Xe,
|
|
1076
1043
|
{
|
|
1077
1044
|
size: "xs",
|
|
1078
1045
|
"data-test": "embed-input",
|
|
@@ -1084,7 +1051,7 @@ const ar = Br(void 0), St = R((r, n) => {
|
|
|
1084
1051
|
onChange: f
|
|
1085
1052
|
}
|
|
1086
1053
|
);
|
|
1087
|
-
}),
|
|
1054
|
+
}), Nt = (r) => {
|
|
1088
1055
|
const { children: n, opened: t, position: o, ...i } = r;
|
|
1089
1056
|
return p(i), /* @__PURE__ */ l.jsx(
|
|
1090
1057
|
Qr,
|
|
@@ -1096,10 +1063,10 @@ const ar = Br(void 0), St = R((r, n) => {
|
|
|
1096
1063
|
children: n
|
|
1097
1064
|
}
|
|
1098
1065
|
);
|
|
1099
|
-
},
|
|
1066
|
+
}, Dt = (r) => {
|
|
1100
1067
|
const { children: n, ...t } = r;
|
|
1101
1068
|
return p(t), /* @__PURE__ */ l.jsx(et, { children: n });
|
|
1102
|
-
},
|
|
1069
|
+
}, Mt = R((r, n) => {
|
|
1103
1070
|
const {
|
|
1104
1071
|
className: t,
|
|
1105
1072
|
children: o,
|
|
@@ -1108,7 +1075,7 @@ const ar = Br(void 0), St = R((r, n) => {
|
|
|
1108
1075
|
...u
|
|
1109
1076
|
} = r;
|
|
1110
1077
|
return p(u), /* @__PURE__ */ l.jsx(rt, { className: t, ref: n, children: o });
|
|
1111
|
-
}),
|
|
1078
|
+
}), It = R((r, n) => {
|
|
1112
1079
|
const { className: t, children: o, ...i } = r;
|
|
1113
1080
|
return p(i, !1), /* @__PURE__ */ l.jsx(
|
|
1114
1081
|
F,
|
|
@@ -1121,7 +1088,7 @@ const ar = Br(void 0), St = R((r, n) => {
|
|
|
1121
1088
|
children: o
|
|
1122
1089
|
}
|
|
1123
1090
|
);
|
|
1124
|
-
}),
|
|
1091
|
+
}), Lt = R((r, n) => {
|
|
1125
1092
|
const {
|
|
1126
1093
|
className: t,
|
|
1127
1094
|
children: o,
|
|
@@ -1134,7 +1101,7 @@ const ar = Br(void 0), St = R((r, n) => {
|
|
|
1134
1101
|
...h
|
|
1135
1102
|
} = r;
|
|
1136
1103
|
return p(h, !1), i ? /* @__PURE__ */ l.jsx(
|
|
1137
|
-
|
|
1104
|
+
Qe,
|
|
1138
1105
|
{
|
|
1139
1106
|
size: 24,
|
|
1140
1107
|
className: t,
|
|
@@ -1161,7 +1128,72 @@ const ar = Br(void 0), St = R((r, n) => {
|
|
|
1161
1128
|
children: o
|
|
1162
1129
|
}
|
|
1163
1130
|
);
|
|
1131
|
+
}), At = R((r, n) => {
|
|
1132
|
+
const { className: t, children: o, id: i, columns: u, ...f } = r;
|
|
1133
|
+
return p(f), /* @__PURE__ */ l.jsx(
|
|
1134
|
+
"div",
|
|
1135
|
+
{
|
|
1136
|
+
className: t,
|
|
1137
|
+
style: { gridTemplateColumns: `repeat(${u}, 1fr)` },
|
|
1138
|
+
ref: n,
|
|
1139
|
+
id: i,
|
|
1140
|
+
role: "grid",
|
|
1141
|
+
children: o
|
|
1142
|
+
}
|
|
1143
|
+
);
|
|
1144
|
+
}), $t = R((r, n) => {
|
|
1145
|
+
const { className: t, children: o, columns: i, ...u } = r;
|
|
1146
|
+
return p(u), /* @__PURE__ */ l.jsx(
|
|
1147
|
+
F,
|
|
1148
|
+
{
|
|
1149
|
+
className: t,
|
|
1150
|
+
style: { gridColumn: `1 / ${i + 1}` },
|
|
1151
|
+
ref: n,
|
|
1152
|
+
children: /* @__PURE__ */ l.jsx(F, { className: "bn-mt-suggestion-menu-item-title", children: o })
|
|
1153
|
+
}
|
|
1154
|
+
);
|
|
1155
|
+
}), zt = R((r, n) => {
|
|
1156
|
+
const { className: t, isSelected: o, onClick: i, item: u, id: f, ...c } = r;
|
|
1157
|
+
p(c);
|
|
1158
|
+
const d = Z(null);
|
|
1159
|
+
return He(() => {
|
|
1160
|
+
if (!d.current || !o)
|
|
1161
|
+
return;
|
|
1162
|
+
const b = Je(
|
|
1163
|
+
d.current,
|
|
1164
|
+
document.querySelector(".bn-grid-suggestion-menu")
|
|
1165
|
+
);
|
|
1166
|
+
b === "top" ? d.current.scrollIntoView(!0) : b === "bottom" && d.current.scrollIntoView(!1);
|
|
1167
|
+
}, [o]), /* @__PURE__ */ l.jsx(
|
|
1168
|
+
"div",
|
|
1169
|
+
{
|
|
1170
|
+
className: t,
|
|
1171
|
+
ref: te(n, d),
|
|
1172
|
+
id: f,
|
|
1173
|
+
role: "option",
|
|
1174
|
+
onClick: i,
|
|
1175
|
+
"aria-selected": o || void 0,
|
|
1176
|
+
children: u.icon
|
|
1177
|
+
}
|
|
1178
|
+
);
|
|
1164
1179
|
}), Wt = R((r, n) => {
|
|
1180
|
+
const {
|
|
1181
|
+
className: t,
|
|
1182
|
+
children: o,
|
|
1183
|
+
// unused, using "dots" instead
|
|
1184
|
+
columns: i,
|
|
1185
|
+
...u
|
|
1186
|
+
} = r;
|
|
1187
|
+
return p(u), /* @__PURE__ */ l.jsx(
|
|
1188
|
+
er,
|
|
1189
|
+
{
|
|
1190
|
+
className: t,
|
|
1191
|
+
style: { gridColumn: `1 / ${i + 1}` },
|
|
1192
|
+
type: "dots",
|
|
1193
|
+
ref: n
|
|
1194
|
+
}
|
|
1195
|
+
);
|
|
1196
|
+
}), Vt = R((r, n) => {
|
|
1165
1197
|
const { className: t, children: o, id: i, ...u } = r;
|
|
1166
1198
|
return p(u), /* @__PURE__ */ l.jsx(
|
|
1167
1199
|
me,
|
|
@@ -1174,10 +1206,10 @@ const ar = Br(void 0), St = R((r, n) => {
|
|
|
1174
1206
|
children: o
|
|
1175
1207
|
}
|
|
1176
1208
|
);
|
|
1177
|
-
}),
|
|
1209
|
+
}), Bt = R((r, n) => {
|
|
1178
1210
|
const { className: t, children: o, ...i } = r;
|
|
1179
1211
|
return p(i), /* @__PURE__ */ l.jsx(F, { className: t, ref: n, children: /* @__PURE__ */ l.jsx(F, { className: "bn-mt-suggestion-menu-item-title", children: o }) });
|
|
1180
|
-
}),
|
|
1212
|
+
}), Yt = R((r, n) => {
|
|
1181
1213
|
const { className: t, isSelected: o, onClick: i, item: u, id: f, ...c } = r;
|
|
1182
1214
|
p(c);
|
|
1183
1215
|
const d = Z(null);
|
|
@@ -1223,18 +1255,18 @@ const ar = Br(void 0), St = R((r, n) => {
|
|
|
1223
1255
|
]
|
|
1224
1256
|
}
|
|
1225
1257
|
);
|
|
1226
|
-
}),
|
|
1258
|
+
}), Ut = R((r, n) => {
|
|
1227
1259
|
const { className: t, children: o, ...i } = r;
|
|
1228
1260
|
return p(i), /* @__PURE__ */ l.jsx(F, { className: t, ref: n, children: o });
|
|
1229
|
-
}),
|
|
1261
|
+
}), Gt = R((r, n) => {
|
|
1230
1262
|
const {
|
|
1231
1263
|
className: t,
|
|
1232
1264
|
children: o,
|
|
1233
1265
|
// unused, using "dots" instead
|
|
1234
1266
|
...i
|
|
1235
1267
|
} = r;
|
|
1236
|
-
return p(i), /* @__PURE__ */ l.jsx(
|
|
1237
|
-
}),
|
|
1268
|
+
return p(i), /* @__PURE__ */ l.jsx(er, { className: t, type: "dots", ref: n });
|
|
1269
|
+
}), Kt = R((r, n) => {
|
|
1238
1270
|
const {
|
|
1239
1271
|
className: t,
|
|
1240
1272
|
children: o,
|
|
@@ -1259,38 +1291,6 @@ const ar = Br(void 0), St = R((r, n) => {
|
|
|
1259
1291
|
children: o
|
|
1260
1292
|
}
|
|
1261
1293
|
);
|
|
1262
|
-
}), Kt = R((r, n) => {
|
|
1263
|
-
const {
|
|
1264
|
-
className: t,
|
|
1265
|
-
name: o,
|
|
1266
|
-
label: i,
|
|
1267
|
-
icon: u,
|
|
1268
|
-
value: f,
|
|
1269
|
-
autoFocus: c,
|
|
1270
|
-
placeholder: d,
|
|
1271
|
-
onKeyDown: b,
|
|
1272
|
-
onChange: h,
|
|
1273
|
-
onSubmit: w,
|
|
1274
|
-
...T
|
|
1275
|
-
} = r;
|
|
1276
|
-
return p(T), /* @__PURE__ */ l.jsx(
|
|
1277
|
-
Qe,
|
|
1278
|
-
{
|
|
1279
|
-
size: "xs",
|
|
1280
|
-
className: t,
|
|
1281
|
-
ref: n,
|
|
1282
|
-
name: o,
|
|
1283
|
-
label: i,
|
|
1284
|
-
leftSection: u,
|
|
1285
|
-
value: f,
|
|
1286
|
-
autoFocus: c,
|
|
1287
|
-
"data-autofocus": c ? "true" : void 0,
|
|
1288
|
-
placeholder: d,
|
|
1289
|
-
onKeyDown: b,
|
|
1290
|
-
onChange: h,
|
|
1291
|
-
onSubmit: w
|
|
1292
|
-
}
|
|
1293
|
-
);
|
|
1294
1294
|
}), Ge = R(
|
|
1295
1295
|
(r, n) => {
|
|
1296
1296
|
const { className: t, children: o, onMouseEnter: i, onMouseLeave: u, ...f } = r;
|
|
@@ -1355,7 +1355,7 @@ const ar = Br(void 0), St = R((r, n) => {
|
|
|
1355
1355
|
children: o
|
|
1356
1356
|
}
|
|
1357
1357
|
) : /* @__PURE__ */ l.jsx(
|
|
1358
|
-
|
|
1358
|
+
Qe,
|
|
1359
1359
|
{
|
|
1360
1360
|
className: t,
|
|
1361
1361
|
"aria-label": h,
|
|
@@ -1397,7 +1397,7 @@ const ar = Br(void 0), St = R((r, n) => {
|
|
|
1397
1397
|
ve() && c.currentTarget.focus();
|
|
1398
1398
|
},
|
|
1399
1399
|
leftSection: f.icon,
|
|
1400
|
-
rightSection: /* @__PURE__ */ l.jsx(
|
|
1400
|
+
rightSection: /* @__PURE__ */ l.jsx(xt, {}),
|
|
1401
1401
|
size: "xs",
|
|
1402
1402
|
variant: "subtle",
|
|
1403
1403
|
disabled: i,
|
|
@@ -1579,53 +1579,53 @@ const ar = Br(void 0), St = R((r, n) => {
|
|
|
1579
1579
|
Select: Ht
|
|
1580
1580
|
},
|
|
1581
1581
|
FilePanel: {
|
|
1582
|
-
Root:
|
|
1583
|
-
Button:
|
|
1584
|
-
FileInput:
|
|
1585
|
-
TabPanel:
|
|
1586
|
-
TextInput:
|
|
1582
|
+
Root: Pt,
|
|
1583
|
+
Button: _t,
|
|
1584
|
+
FileInput: Ct,
|
|
1585
|
+
TabPanel: Ot,
|
|
1586
|
+
TextInput: Ft
|
|
1587
1587
|
},
|
|
1588
1588
|
GridSuggestionMenu: {
|
|
1589
|
-
Root:
|
|
1590
|
-
Item:
|
|
1591
|
-
EmptyItem:
|
|
1592
|
-
Loader:
|
|
1589
|
+
Root: At,
|
|
1590
|
+
Item: zt,
|
|
1591
|
+
EmptyItem: $t,
|
|
1592
|
+
Loader: Wt
|
|
1593
1593
|
},
|
|
1594
1594
|
LinkToolbar: {
|
|
1595
1595
|
Root: Ge,
|
|
1596
1596
|
Button: Ke
|
|
1597
1597
|
},
|
|
1598
1598
|
SideMenu: {
|
|
1599
|
-
Root:
|
|
1600
|
-
Button:
|
|
1599
|
+
Root: It,
|
|
1600
|
+
Button: Lt
|
|
1601
1601
|
},
|
|
1602
1602
|
SuggestionMenu: {
|
|
1603
|
-
Root:
|
|
1604
|
-
Item:
|
|
1605
|
-
EmptyItem:
|
|
1606
|
-
Label:
|
|
1607
|
-
Loader:
|
|
1603
|
+
Root: Vt,
|
|
1604
|
+
Item: Yt,
|
|
1605
|
+
EmptyItem: Bt,
|
|
1606
|
+
Label: Ut,
|
|
1607
|
+
Loader: Gt
|
|
1608
1608
|
},
|
|
1609
1609
|
TableHandle: {
|
|
1610
|
-
Root:
|
|
1610
|
+
Root: Kt
|
|
1611
1611
|
},
|
|
1612
1612
|
Generic: {
|
|
1613
1613
|
Form: {
|
|
1614
1614
|
Root: (r) => /* @__PURE__ */ l.jsx("div", { children: r.children }),
|
|
1615
|
-
TextInput:
|
|
1615
|
+
TextInput: dt
|
|
1616
1616
|
},
|
|
1617
1617
|
Menu: {
|
|
1618
|
-
Root:
|
|
1619
|
-
Trigger:
|
|
1620
|
-
Dropdown:
|
|
1621
|
-
Divider:
|
|
1622
|
-
Label:
|
|
1623
|
-
Item:
|
|
1618
|
+
Root: Rt,
|
|
1619
|
+
Trigger: St,
|
|
1620
|
+
Dropdown: wt,
|
|
1621
|
+
Divider: Tt,
|
|
1622
|
+
Label: kt,
|
|
1623
|
+
Item: Et
|
|
1624
1624
|
},
|
|
1625
1625
|
Popover: {
|
|
1626
|
-
Root:
|
|
1627
|
-
Trigger:
|
|
1628
|
-
Content:
|
|
1626
|
+
Root: Nt,
|
|
1627
|
+
Trigger: Dt,
|
|
1628
|
+
Content: Mt
|
|
1629
1629
|
}
|
|
1630
1630
|
}
|
|
1631
1631
|
}, Xt = {
|