@blofin/blofin-ui 0.7.46-beta.7 → 0.7.46-beta.8
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/{ProTable-b2defffb.js → ProTable-2cb6776c.js} +78 -79
- package/dist/ProTable.es.js +2 -2
- package/dist/{index-2881d797.js → index-0f37a070.js} +3 -3
- package/dist/{index-649a18c6.js → index-17741303.js} +3 -3
- package/dist/{index-9072b096.js → index-1806994f.js} +2 -2
- package/dist/{index-f9a8c2a7.js → index-1818a795.js} +2 -2
- package/dist/{index-2ec61202.js → index-1883882b.js} +2 -2
- package/dist/{index-5f0330ed.js → index-1b9e5c9f.js} +2 -2
- package/dist/{index-0950c0b4.js → index-1e647ab8.js} +2 -2
- package/dist/{index-1d1bfe69.js → index-1e899736.js} +2 -2
- package/dist/{index-a011a539.js → index-21547544.js} +2 -2
- package/dist/{index-6513b327.js → index-227f3284.js} +2 -2
- package/dist/{index-82143974.js → index-229481b4.js} +3 -3
- package/dist/{index-239f56a0.js → index-238f6114.js} +2 -2
- package/dist/{index-fa8bac01.js → index-23d59612.js} +3 -3
- package/dist/{index-56c106c5.js → index-2673a393.js} +2 -2
- package/dist/{index-4f9a4312.js → index-2c6b1c23.js} +3 -3
- package/dist/{index-3d2d3a5d.js → index-2d602cf5.js} +2 -2
- package/dist/{index-e4a74c94.js → index-2fb7ac48.js} +2 -2
- package/dist/{index-72a0ce80.js → index-3077fe30.js} +2 -2
- package/dist/{index-8fdc7345.js → index-32a15c95.js} +2 -2
- package/dist/{index-f344eda3.js → index-333d0ae1.js} +2 -2
- package/dist/{index-d0dcda88.js → index-3e03c6a6.js} +2 -2
- package/dist/{index-bd237f22.js → index-3ea476c2.js} +2 -2
- package/dist/{index-27cdee5f.js → index-40656faa.js} +4 -4
- package/dist/{index-48fd6ee8.js → index-45d755b3.js} +3 -3
- package/dist/{index-92ebc0b3.js → index-4b3d54dc.js} +2 -2
- package/dist/{index-383de4a4.js → index-4fb496ea.js} +2 -2
- package/dist/{index-f0bfebcf.js → index-5092f72a.js} +2 -2
- package/dist/{index-20ebd2c4.js → index-56c02fe8.js} +2 -2
- package/dist/{index-2c59b6c1.js → index-5c31b85e.js} +3 -3
- package/dist/{index-264087d9.js → index-5fb8c4dc.js} +2 -2
- package/dist/{index-746aee8c.js → index-5fff7389.js} +2 -2
- package/dist/{index-5c3ae320.js → index-60f7f55e.js} +3 -3
- package/dist/{index-08a031e6.js → index-6733e1be.js} +2 -2
- package/dist/{index-1166f97a.js → index-6e40f9c1.js} +3 -3
- package/dist/{index-1dd8cee5.js → index-709e0109.js} +2 -2
- package/dist/{index-1920996a.js → index-74eaca84.js} +2 -2
- package/dist/{index-46e2305b.js → index-79644c60.js} +2 -2
- package/dist/{index-af2fdd10.js → index-7b12e1f5.js} +2 -2
- package/dist/{index-5457324d.js → index-7c68dce8.js} +2 -2
- package/dist/{index-80e148f1.js → index-7e6af658.js} +4 -4
- package/dist/{index-aa036036.js → index-7feca25a.js} +2 -2
- package/dist/{index-f7cf342f.js → index-830a7da3.js} +1 -1
- package/dist/{index-a6d0a98a.js → index-8675d33d.js} +2 -2
- package/dist/{index-df7d80d1.js → index-885dc245.js} +2 -2
- package/dist/{index-8a20442c.js → index-8a9c88c2.js} +2 -2
- package/dist/{index-56fc7254.js → index-98dac01c.js} +2 -2
- package/dist/{index-a6d9ebf0.js → index-998efde3.js} +2 -2
- package/dist/{index-253bb3d0.js → index-99b3b10c.js} +3 -3
- package/dist/{index-a7b29b5f.js → index-9dc1297b.js} +2 -2
- package/dist/{index-b4ab6abf.js → index-9dc6a4b8.js} +1 -1
- package/dist/{index-97bc9b5a.js → index-9fdb2a4e.js} +2 -2
- package/dist/{index-249f1ddd.js → index-a2e40b7a.js} +2 -2
- package/dist/{index-1e3d32f6.js → index-a3300c33.js} +3 -3
- package/dist/{index-b33e71a4.js → index-a428c023.js} +2 -2
- package/dist/{index-361e08e1.js → index-a6efa084.js} +2 -2
- package/dist/{index-ad36bfaf.js → index-aa0eebcf.js} +2 -2
- package/dist/{index-9c97f5e5.js → index-aa7373d6.js} +2 -2
- package/dist/{index-05ca0d3e.js → index-ace65a37.js} +2 -2
- package/dist/{index-7aa0be27.js → index-b169d3bc.js} +2 -2
- package/dist/{index-f9116936.js → index-b32683e0.js} +2 -2
- package/dist/{index-146f365a.js → index-b57ea03a.js} +2 -2
- package/dist/{index-832d52e1.js → index-b5bfefd1.js} +2 -2
- package/dist/{index-d4231cce.js → index-b9930a00.js} +2 -2
- package/dist/{index-00b2e6f6.js → index-bae6f6c4.js} +2 -2
- package/dist/{index-b6041218.js → index-bf3e07e9.js} +2 -2
- package/dist/{index-f2410964.js → index-c09244aa.js} +2 -2
- package/dist/{index-7fc8ba37.js → index-c146c364.js} +2 -2
- package/dist/{index-46931b47.js → index-c36ee1a7.js} +2 -2
- package/dist/{index-c0c26186.js → index-c4263968.js} +2 -2
- package/dist/{index-5bca828b.js → index-c7e82c88.js} +1 -1
- package/dist/{index-aa182014.js → index-c858616f.js} +2 -2
- package/dist/{index-1ad7bb6d.js → index-cca0c393.js} +2 -2
- package/dist/{index-97ee8d78.js → index-ceeec500.js} +2 -2
- package/dist/{index-7099d19f.js → index-cef30182.js} +2 -2
- package/dist/{index-824d0040.js → index-d519d836.js} +3 -3
- package/dist/{index-4531c56c.js → index-db5f63f4.js} +3 -3
- package/dist/{index-cae1c474.js → index-db7b3f38.js} +2 -2
- package/dist/{index-2b4c3f01.js → index-dca941d9.js} +2 -2
- package/dist/{index-0590c1ae.js → index-dcbc136e.js} +2 -2
- package/dist/{index-7a33b1fd.js → index-e3b72207.js} +84 -84
- package/dist/{index-d80d0539.js → index-e5a27f23.js} +2 -2
- package/dist/{index-88769569.js → index-ea3eab58.js} +2 -2
- package/dist/{index-66d71769.js → index-ebe58492.js} +2 -2
- package/dist/{index-9456f163.js → index-ec6a2ecb.js} +2 -2
- package/dist/{index-1a42d8c8.js → index-f6fb1bec.js} +2 -2
- package/dist/{index-e53959ce.js → index-fa08c640.js} +3 -3
- package/dist/{index-061ed081.js → index-fa2fcb5e.js} +3 -3
- package/dist/{index-eaf32072.js → index-fdb7abd1.js} +2 -2
- package/dist/index.es.js +2 -2
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { j as z } from "./jsx-runtime-82a9ddf6.js";
|
|
2
2
|
import * as Ce from "react";
|
|
3
|
-
import
|
|
3
|
+
import V, { useLayoutEffect as Fn, useEffect as M, useRef as L, useMemo as O, useCallback as X, useState as ee, createContext as Je, memo as $n, useReducer as Wn, useContext as Ee } from "react";
|
|
4
4
|
import { c as $, a as Me, u as Hn } from "./index-6ffbeca8.js";
|
|
5
5
|
import { unstable_batchedUpdates as rt, createPortal as Xn } from "react-dom";
|
|
6
|
-
var
|
|
6
|
+
var U = /* @__PURE__ */ ((e) => (e.default = "default", e.desc = "desc", e.asc = "asc", e))(U || {});
|
|
7
7
|
const Yn = $("bu-w-full bu-rounded-lg", {
|
|
8
8
|
variants: {
|
|
9
9
|
theme: {
|
|
@@ -182,21 +182,21 @@ function ze(e) {
|
|
|
182
182
|
function Et(e) {
|
|
183
183
|
return "nodeType" in e;
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function q(e) {
|
|
186
186
|
var t, n;
|
|
187
187
|
return e ? ze(e) ? e : Et(e) && (t = (n = e.ownerDocument) == null ? void 0 : n.defaultView) != null ? t : window : window;
|
|
188
188
|
}
|
|
189
189
|
function It(e) {
|
|
190
190
|
const {
|
|
191
191
|
Document: t
|
|
192
|
-
} =
|
|
192
|
+
} = q(e);
|
|
193
193
|
return e instanceof t;
|
|
194
194
|
}
|
|
195
195
|
function _e(e) {
|
|
196
|
-
return ze(e) ? !1 : e instanceof
|
|
196
|
+
return ze(e) ? !1 : e instanceof q(e).HTMLElement;
|
|
197
197
|
}
|
|
198
198
|
function dn(e) {
|
|
199
|
-
return e instanceof
|
|
199
|
+
return e instanceof q(e).SVGElement;
|
|
200
200
|
}
|
|
201
201
|
function je(e) {
|
|
202
202
|
return e ? ze(e) ? e.document : Et(e) ? It(e) ? e : _e(e) || dn(e) ? e.ownerDocument : document : document : document;
|
|
@@ -288,7 +288,7 @@ function Tt(e) {
|
|
|
288
288
|
return !1;
|
|
289
289
|
const {
|
|
290
290
|
KeyboardEvent: t
|
|
291
|
-
} =
|
|
291
|
+
} = q(e.target);
|
|
292
292
|
return t && e instanceof t;
|
|
293
293
|
}
|
|
294
294
|
function sr(e) {
|
|
@@ -296,7 +296,7 @@ function sr(e) {
|
|
|
296
296
|
return !1;
|
|
297
297
|
const {
|
|
298
298
|
TouchEvent: t
|
|
299
|
-
} =
|
|
299
|
+
} = q(e.target);
|
|
300
300
|
return t && e instanceof t;
|
|
301
301
|
}
|
|
302
302
|
function St(e) {
|
|
@@ -377,7 +377,7 @@ function cr(e) {
|
|
|
377
377
|
id: t,
|
|
378
378
|
value: n
|
|
379
379
|
} = e;
|
|
380
|
-
return
|
|
380
|
+
return V.createElement("div", {
|
|
381
381
|
id: t,
|
|
382
382
|
style: lr
|
|
383
383
|
}, n);
|
|
@@ -402,7 +402,7 @@ function ur(e) {
|
|
|
402
402
|
clipPath: "inset(100%)",
|
|
403
403
|
whiteSpace: "nowrap"
|
|
404
404
|
};
|
|
405
|
-
return
|
|
405
|
+
return V.createElement("div", {
|
|
406
406
|
id: t,
|
|
407
407
|
style: o,
|
|
408
408
|
role: "status",
|
|
@@ -539,10 +539,10 @@ function vr(e) {
|
|
|
539
539
|
}
|
|
540
540
|
}), [i, t])), !l)
|
|
541
541
|
return null;
|
|
542
|
-
const u =
|
|
542
|
+
const u = V.createElement(V.Fragment, null, V.createElement(cr, {
|
|
543
543
|
id: r,
|
|
544
544
|
value: o.draggable
|
|
545
|
-
}),
|
|
545
|
+
}), V.createElement(ur, {
|
|
546
546
|
id: a,
|
|
547
547
|
announcement: s
|
|
548
548
|
}));
|
|
@@ -750,7 +750,7 @@ function Pe(e, t) {
|
|
|
750
750
|
const {
|
|
751
751
|
transform: d,
|
|
752
752
|
transformOrigin: u
|
|
753
|
-
} =
|
|
753
|
+
} = q(e).getComputedStyle(e);
|
|
754
754
|
d && (n = Tr(n, d, u));
|
|
755
755
|
}
|
|
756
756
|
const {
|
|
@@ -787,10 +787,10 @@ function Nr(e) {
|
|
|
787
787
|
};
|
|
788
788
|
}
|
|
789
789
|
function Or(e, t) {
|
|
790
|
-
return t === void 0 && (t =
|
|
790
|
+
return t === void 0 && (t = q(e).getComputedStyle(e)), t.position === "fixed";
|
|
791
791
|
}
|
|
792
792
|
function Mr(e, t) {
|
|
793
|
-
t === void 0 && (t =
|
|
793
|
+
t === void 0 && (t = q(e).getComputedStyle(e));
|
|
794
794
|
const n = /(auto|scroll|overlay)/;
|
|
795
795
|
return ["overflow", "overflowX", "overflowY"].some((o) => {
|
|
796
796
|
const i = t[o];
|
|
@@ -806,7 +806,7 @@ function At(e, t) {
|
|
|
806
806
|
return n.push(o.scrollingElement), n;
|
|
807
807
|
if (!_e(o) || dn(o) || n.includes(o))
|
|
808
808
|
return n;
|
|
809
|
-
const i =
|
|
809
|
+
const i = q(e).getComputedStyle(o);
|
|
810
810
|
return o !== e && Mr(o, i) && n.push(o), Or(o, i) ? n : r(o.parentNode);
|
|
811
811
|
}
|
|
812
812
|
return e ? r(e) : n;
|
|
@@ -984,7 +984,7 @@ class Ye {
|
|
|
984
984
|
function Wr(e) {
|
|
985
985
|
const {
|
|
986
986
|
EventTarget: t
|
|
987
|
-
} =
|
|
987
|
+
} = q(e);
|
|
988
988
|
return e instanceof t ? e : je(e);
|
|
989
989
|
}
|
|
990
990
|
function xt(e, t) {
|
|
@@ -1044,7 +1044,7 @@ class Ot {
|
|
|
1044
1044
|
target: n
|
|
1045
1045
|
}
|
|
1046
1046
|
} = t;
|
|
1047
|
-
this.props = t, this.listeners = new Ye(je(n)), this.windowListeners = new Ye(
|
|
1047
|
+
this.props = t, this.listeners = new Ye(je(n)), this.windowListeners = new Ye(q(n)), this.handleKeyDown = this.handleKeyDown.bind(this), this.handleCancel = this.handleCancel.bind(this), this.attach();
|
|
1048
1048
|
}
|
|
1049
1049
|
attach() {
|
|
1050
1050
|
this.handleStart(), this.windowListeners.add(re.Resize, this.handleCancel), this.windowListeners.add(re.VisibilityChange, this.handleCancel), setTimeout(() => this.listeners.add(re.Keydown, this.handleKeyDown));
|
|
@@ -1109,29 +1109,29 @@ class Ot {
|
|
|
1109
1109
|
y: Math.min(b === E.Down ? y.bottom - y.height / 2 : y.bottom, Math.max(b === E.Down ? y.top : y.top + y.height / 2, c.y))
|
|
1110
1110
|
}, I = b === E.Right && !p || b === E.Left && !m, N = b === E.Down && !C || b === E.Up && !w;
|
|
1111
1111
|
if (I && x.x !== c.x) {
|
|
1112
|
-
const S = g.scrollLeft + h.x,
|
|
1113
|
-
if (
|
|
1112
|
+
const S = g.scrollLeft + h.x, G = b === E.Right && S <= D.x || b === E.Left && S >= R.x;
|
|
1113
|
+
if (G && !h.y) {
|
|
1114
1114
|
g.scrollTo({
|
|
1115
1115
|
left: S,
|
|
1116
1116
|
behavior: a
|
|
1117
1117
|
});
|
|
1118
1118
|
return;
|
|
1119
1119
|
}
|
|
1120
|
-
|
|
1120
|
+
G ? f.x = g.scrollLeft - S : f.x = b === E.Right ? g.scrollLeft - D.x : g.scrollLeft - R.x, f.x && g.scrollBy({
|
|
1121
1121
|
left: -f.x,
|
|
1122
1122
|
behavior: a
|
|
1123
1123
|
});
|
|
1124
1124
|
break;
|
|
1125
1125
|
} else if (N && x.y !== c.y) {
|
|
1126
|
-
const S = g.scrollTop + h.y,
|
|
1127
|
-
if (
|
|
1126
|
+
const S = g.scrollTop + h.y, G = b === E.Down && S <= D.y || b === E.Up && S >= R.y;
|
|
1127
|
+
if (G && !h.x) {
|
|
1128
1128
|
g.scrollTo({
|
|
1129
1129
|
top: S,
|
|
1130
1130
|
behavior: a
|
|
1131
1131
|
});
|
|
1132
1132
|
return;
|
|
1133
1133
|
}
|
|
1134
|
-
|
|
1134
|
+
G ? f.y = g.scrollTop - S : f.y = b === E.Down ? g.scrollTop - D.y : g.scrollTop - R.y, f.y && g.scrollBy({
|
|
1135
1135
|
top: -f.y,
|
|
1136
1136
|
behavior: a
|
|
1137
1137
|
});
|
|
@@ -1200,7 +1200,7 @@ class Mt {
|
|
|
1200
1200
|
} = t, {
|
|
1201
1201
|
target: s
|
|
1202
1202
|
} = i;
|
|
1203
|
-
this.props = t, this.events = n, this.document = je(s), this.documentListeners = new Ye(this.document), this.listeners = new Ye(r), this.windowListeners = new Ye(
|
|
1203
|
+
this.props = t, this.events = n, this.document = je(s), this.documentListeners = new Ye(this.document), this.listeners = new Ye(r), this.windowListeners = new Ye(q(s)), this.initialCoordinates = (o = St(i)) != null ? o : ie, this.handleStart = this.handleStart.bind(this), this.handleMove = this.handleMove.bind(this), this.handleEnd = this.handleEnd.bind(this), this.handleCancel = this.handleCancel.bind(this), this.handleKeydown = this.handleKeydown.bind(this), this.removeTextSelection = this.removeTextSelection.bind(this), this.attach();
|
|
1204
1204
|
}
|
|
1205
1205
|
attach() {
|
|
1206
1206
|
const {
|
|
@@ -1819,7 +1819,7 @@ function Dn(e) {
|
|
|
1819
1819
|
const tn = [];
|
|
1820
1820
|
function lo(e, t) {
|
|
1821
1821
|
t === void 0 && (t = Pe);
|
|
1822
|
-
const [n] = e, r = Dn(n ?
|
|
1822
|
+
const [n] = e, r = Dn(n ? q(n) : null), [o, i] = ee(tn);
|
|
1823
1823
|
function s() {
|
|
1824
1824
|
i(() => e.length ? e.map((l) => yn(l) ? r : new Nt(t(l), l)) : tn);
|
|
1825
1825
|
}
|
|
@@ -2191,18 +2191,18 @@ const So = /* @__PURE__ */ $n(function(t) {
|
|
|
2191
2191
|
droppable: {
|
|
2192
2192
|
containers: N
|
|
2193
2193
|
}
|
|
2194
|
-
} = b, S = y != null ? x.get(y) : null,
|
|
2194
|
+
} = b, S = y != null ? x.get(y) : null, G = L({
|
|
2195
2195
|
initial: null,
|
|
2196
2196
|
translated: null
|
|
2197
|
-
}),
|
|
2197
|
+
}), Y = O(() => {
|
|
2198
2198
|
var H;
|
|
2199
2199
|
return y != null ? {
|
|
2200
2200
|
id: y,
|
|
2201
2201
|
// It's possible for the active node to unmount while dragging
|
|
2202
2202
|
data: (H = S == null ? void 0 : S.data) != null ? H : ho,
|
|
2203
|
-
rect:
|
|
2203
|
+
rect: G
|
|
2204
2204
|
} : null;
|
|
2205
|
-
}, [y, S]), T = L(null), [J,
|
|
2205
|
+
}, [y, S]), T = L(null), [J, K] = ee(null), [k, se] = ee(null), j = Ve(v, Object.values(v)), ae = Qe("DndDescribedBy", s), le = O(() => N.getEnabled(), [N]), W = wo(h), {
|
|
2206
2206
|
droppableRects: he,
|
|
2207
2207
|
measureDroppableContainers: Re,
|
|
2208
2208
|
measuringScheduled: Be
|
|
@@ -2233,7 +2233,7 @@ const So = /* @__PURE__ */ $n(function(t) {
|
|
|
2233
2233
|
scrollAdjustedTranslate: null
|
|
2234
2234
|
}), Ie = N.getNodeFor((n = ce.current.over) == null ? void 0 : n.id), be = uo({
|
|
2235
2235
|
measure: W.dragOverlay.measure
|
|
2236
|
-
}), ke = (r = be.nodeRef.current) != null ? r : te, Te = R ? (o = be.rect) != null ? o : A : null, jt = !!(be.nodeRef.current && be.rect), Pt = ro(jt ? null : A), gt = Dn(ke ?
|
|
2236
|
+
}), ke = (r = be.nodeRef.current) != null ? r : te, Te = R ? (o = be.rect) != null ? o : A : null, jt = !!(be.nodeRef.current && be.rect), Pt = ro(jt ? null : A), gt = Dn(ke ? q(ke) : null), ye = oo(R ? Ie ?? te : null), tt = lo(ye), nt = xo(f, {
|
|
2237
2237
|
transform: {
|
|
2238
2238
|
x: I.x - Pt.x,
|
|
2239
2239
|
y: I.y - Pt.y,
|
|
@@ -2241,7 +2241,7 @@ const So = /* @__PURE__ */ $n(function(t) {
|
|
|
2241
2241
|
scaleY: 1
|
|
2242
2242
|
},
|
|
2243
2243
|
activatorEvent: k,
|
|
2244
|
-
active:
|
|
2244
|
+
active: Y,
|
|
2245
2245
|
activeNodeRect: A,
|
|
2246
2246
|
containerNodeRect: Fe,
|
|
2247
2247
|
draggingNodeRect: Te,
|
|
@@ -2250,8 +2250,8 @@ const So = /* @__PURE__ */ $n(function(t) {
|
|
|
2250
2250
|
scrollableAncestors: ye,
|
|
2251
2251
|
scrollableAncestorRects: tt,
|
|
2252
2252
|
windowRect: gt
|
|
2253
|
-
}), Bt = et ? Le(et, I) : null, Ft = io(ye), Nn = en(Ft), On = en(Ft, [A]), Ae = Le(nt, Nn), Ne = Te ? Ir(Te, nt) : null, $e =
|
|
2254
|
-
active:
|
|
2253
|
+
}), Bt = et ? Le(et, I) : null, Ft = io(ye), Nn = en(Ft), On = en(Ft, [A]), Ae = Le(nt, Nn), Ne = Te ? Ir(Te, nt) : null, $e = Y && Ne ? c({
|
|
2254
|
+
active: Y,
|
|
2255
2255
|
collisionRect: Ne,
|
|
2256
2256
|
droppableRects: he,
|
|
2257
2257
|
droppableContainers: le,
|
|
@@ -2318,7 +2318,7 @@ const So = /* @__PURE__ */ $n(function(t) {
|
|
|
2318
2318
|
active: {
|
|
2319
2319
|
id: me,
|
|
2320
2320
|
data: de.data,
|
|
2321
|
-
rect:
|
|
2321
|
+
rect: G
|
|
2322
2322
|
}
|
|
2323
2323
|
};
|
|
2324
2324
|
rt(() => {
|
|
@@ -2329,7 +2329,7 @@ const So = /* @__PURE__ */ $n(function(t) {
|
|
|
2329
2329
|
}), p({
|
|
2330
2330
|
type: "onDragStart",
|
|
2331
2331
|
event: We
|
|
2332
|
-
}),
|
|
2332
|
+
}), K(bt.current), se(Q);
|
|
2333
2333
|
});
|
|
2334
2334
|
},
|
|
2335
2335
|
onMove(F) {
|
|
@@ -2366,7 +2366,7 @@ const So = /* @__PURE__ */ $n(function(t) {
|
|
|
2366
2366
|
T.current = null, rt(() => {
|
|
2367
2367
|
w({
|
|
2368
2368
|
type: F
|
|
2369
|
-
}), D(De.Uninitialized), Wt(null),
|
|
2369
|
+
}), D(De.Uninitialized), Wt(null), K(null), se(null), bt.current = null;
|
|
2370
2370
|
const Xe = F === P.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
2371
2371
|
if (Se) {
|
|
2372
2372
|
const vt = j.current[Xe];
|
|
@@ -2470,7 +2470,7 @@ const So = /* @__PURE__ */ $n(function(t) {
|
|
|
2470
2470
|
), fe(() => {
|
|
2471
2471
|
ce.current = {
|
|
2472
2472
|
activatorEvent: k,
|
|
2473
|
-
active:
|
|
2473
|
+
active: Y,
|
|
2474
2474
|
activeNode: te,
|
|
2475
2475
|
collisionRect: Ne,
|
|
2476
2476
|
collisions: $e,
|
|
@@ -2482,11 +2482,11 @@ const So = /* @__PURE__ */ $n(function(t) {
|
|
|
2482
2482
|
over: xe,
|
|
2483
2483
|
scrollableAncestors: ye,
|
|
2484
2484
|
scrollAdjustedTranslate: Ae
|
|
2485
|
-
},
|
|
2485
|
+
}, G.current = {
|
|
2486
2486
|
initial: Te,
|
|
2487
2487
|
translated: Ne
|
|
2488
2488
|
};
|
|
2489
|
-
}, [
|
|
2489
|
+
}, [Y, te, $e, Ne, x, ke, Te, he, N, xe, ye, Ae]), qr({
|
|
2490
2490
|
...pe,
|
|
2491
2491
|
delta: I,
|
|
2492
2492
|
draggingRect: Ne,
|
|
@@ -2495,7 +2495,7 @@ const So = /* @__PURE__ */ $n(function(t) {
|
|
|
2495
2495
|
scrollableAncestorRects: tt
|
|
2496
2496
|
});
|
|
2497
2497
|
const jn = O(() => ({
|
|
2498
|
-
active:
|
|
2498
|
+
active: Y,
|
|
2499
2499
|
activeNode: te,
|
|
2500
2500
|
activeNodeRect: A,
|
|
2501
2501
|
activatorEvent: k,
|
|
@@ -2512,10 +2512,10 @@ const So = /* @__PURE__ */ $n(function(t) {
|
|
|
2512
2512
|
measuringConfiguration: W,
|
|
2513
2513
|
measuringScheduled: Be,
|
|
2514
2514
|
windowRect: gt
|
|
2515
|
-
}), [
|
|
2515
|
+
}), [Y, te, A, k, $e, Fe, be, x, N, he, xe, Re, ye, tt, W, Be, gt]), Pn = O(() => ({
|
|
2516
2516
|
activatorEvent: k,
|
|
2517
2517
|
activators: Xt,
|
|
2518
|
-
active:
|
|
2518
|
+
active: Y,
|
|
2519
2519
|
activeNodeRect: A,
|
|
2520
2520
|
ariaDescribedById: {
|
|
2521
2521
|
draggable: ae
|
|
@@ -2524,18 +2524,18 @@ const So = /* @__PURE__ */ $n(function(t) {
|
|
|
2524
2524
|
draggableNodes: x,
|
|
2525
2525
|
over: xe,
|
|
2526
2526
|
measureDroppableContainers: Re
|
|
2527
|
-
}), [k, Xt,
|
|
2528
|
-
return
|
|
2527
|
+
}), [k, Xt, Y, A, w, ae, x, xe, Re]);
|
|
2528
|
+
return V.createElement(hn.Provider, {
|
|
2529
2529
|
value: m
|
|
2530
|
-
},
|
|
2530
|
+
}, V.createElement(ht.Provider, {
|
|
2531
2531
|
value: Pn
|
|
2532
|
-
},
|
|
2532
|
+
}, V.createElement(Cn.Provider, {
|
|
2533
2533
|
value: jn
|
|
2534
|
-
},
|
|
2534
|
+
}, V.createElement(Rn.Provider, {
|
|
2535
2535
|
value: Ln
|
|
2536
|
-
}, d)),
|
|
2536
|
+
}, d)), V.createElement(yo, {
|
|
2537
2537
|
disabled: (a == null ? void 0 : a.restoreFocus) === !1
|
|
2538
|
-
})),
|
|
2538
|
+
})), V.createElement(vr, {
|
|
2539
2539
|
...a,
|
|
2540
2540
|
hiddenTextDescribedById: ae
|
|
2541
2541
|
}));
|
|
@@ -2771,7 +2771,7 @@ const En = (e) => {
|
|
|
2771
2771
|
scaleX: a.width / s.width,
|
|
2772
2772
|
scaleY: a.height / s.height
|
|
2773
2773
|
};
|
|
2774
|
-
}, In = "Sortable", kn = /* @__PURE__ */
|
|
2774
|
+
}, In = "Sortable", kn = /* @__PURE__ */ V.createContext({
|
|
2775
2775
|
activeIndex: -1,
|
|
2776
2776
|
containerId: In,
|
|
2777
2777
|
disableTransforms: !1,
|
|
@@ -2820,7 +2820,7 @@ function zo(e) {
|
|
|
2820
2820
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2821
2821
|
[g, c, C.draggable, C.droppable, m, f, b, l, h, o]
|
|
2822
2822
|
);
|
|
2823
|
-
return
|
|
2823
|
+
return V.createElement(kn.Provider, {
|
|
2824
2824
|
value: D
|
|
2825
2825
|
}, t);
|
|
2826
2826
|
}
|
|
@@ -2927,11 +2927,11 @@ function Wo(e) {
|
|
|
2927
2927
|
}
|
|
2928
2928
|
}), {
|
|
2929
2929
|
active: S,
|
|
2930
|
-
activatorEvent:
|
|
2931
|
-
activeNodeRect:
|
|
2930
|
+
activatorEvent: G,
|
|
2931
|
+
activeNodeRect: Y,
|
|
2932
2932
|
attributes: T,
|
|
2933
2933
|
setNodeRef: J,
|
|
2934
|
-
listeners:
|
|
2934
|
+
listeners: K,
|
|
2935
2935
|
isDragging: k,
|
|
2936
2936
|
over: se,
|
|
2937
2937
|
setActivatorNodeRef: j,
|
|
@@ -2946,7 +2946,7 @@ function Wo(e) {
|
|
|
2946
2946
|
disabled: m.draggable
|
|
2947
2947
|
}), le = rr(N, J), W = !!S, he = W && !v && ot(h) && ot(b), Re = !w && k, Be = Re && he ? ae : null, et = he ? Be ?? (a ?? p)({
|
|
2948
2948
|
rects: g,
|
|
2949
|
-
activeNodeRect:
|
|
2949
|
+
activeNodeRect: Y,
|
|
2950
2950
|
activeIndex: h,
|
|
2951
2951
|
overIndex: b,
|
|
2952
2952
|
index: C
|
|
@@ -3004,7 +3004,7 @@ function Wo(e) {
|
|
|
3004
3004
|
isOver: I,
|
|
3005
3005
|
isSorting: W,
|
|
3006
3006
|
isDragging: k,
|
|
3007
|
-
listeners:
|
|
3007
|
+
listeners: K,
|
|
3008
3008
|
node: x,
|
|
3009
3009
|
overIndex: b,
|
|
3010
3010
|
over: se,
|
|
@@ -3022,7 +3022,7 @@ function Wo(e) {
|
|
|
3022
3022
|
Fe && A.current.newIndex === C
|
|
3023
3023
|
)
|
|
3024
3024
|
return Bo;
|
|
3025
|
-
if (!(Re && !Tt(
|
|
3025
|
+
if (!(Re && !Tt(G) || !d) && (W || ce))
|
|
3026
3026
|
return qe.Transition.toString({
|
|
3027
3027
|
...d,
|
|
3028
3028
|
property: An
|
|
@@ -3192,7 +3192,7 @@ const Xo = ({ className: e }) => /* @__PURE__ */ z.jsxs(
|
|
|
3192
3192
|
}, u = (c, h) => {
|
|
3193
3193
|
if (!c.filter || !c.key)
|
|
3194
3194
|
return null;
|
|
3195
|
-
const f = n[c.key] ||
|
|
3195
|
+
const f = n[c.key] || U.default, v = l === "dark" ? "#EBECF5" : "#0A0A0A", g = "#F80", b = f !== U.default;
|
|
3196
3196
|
return /* @__PURE__ */ z.jsx(
|
|
3197
3197
|
"span",
|
|
3198
3198
|
{
|
|
@@ -3220,16 +3220,16 @@ const Xo = ({ className: e }) => /* @__PURE__ */ z.jsxs(
|
|
|
3220
3220
|
"path",
|
|
3221
3221
|
{
|
|
3222
3222
|
d: "M5.4847 3.04301V4.10942H0.151367V3.04301L2.81803 0.376343L5.4847 3.04301Z",
|
|
3223
|
-
fill: f ===
|
|
3224
|
-
fillOpacity: f ===
|
|
3223
|
+
fill: f === U.asc ? g : v,
|
|
3224
|
+
fillOpacity: f === U.asc ? "1" : "0.2"
|
|
3225
3225
|
}
|
|
3226
3226
|
),
|
|
3227
3227
|
/* @__PURE__ */ z.jsx(
|
|
3228
3228
|
"path",
|
|
3229
3229
|
{
|
|
3230
3230
|
d: "M5.4847 5.89067V6.95707L2.81803 9.62374L0.151367 6.95707V5.89067H5.4847Z",
|
|
3231
|
-
fill: f ===
|
|
3232
|
-
fillOpacity: f ===
|
|
3231
|
+
fill: f === U.desc ? g : v,
|
|
3232
|
+
fillOpacity: f === U.desc ? "1" : "0.2"
|
|
3233
3233
|
}
|
|
3234
3234
|
)
|
|
3235
3235
|
]
|
|
@@ -3338,12 +3338,12 @@ const Xo = ({ className: e }) => /* @__PURE__ */ z.jsxs(
|
|
|
3338
3338
|
w(t);
|
|
3339
3339
|
}, [t]);
|
|
3340
3340
|
const y = (T, J) => {
|
|
3341
|
-
const
|
|
3341
|
+
const K = p[T] || U.default;
|
|
3342
3342
|
let k;
|
|
3343
|
-
|
|
3343
|
+
K === U.default ? k = U.desc : K === U.desc ? k = U.asc : k = U.default;
|
|
3344
3344
|
const se = J || "single";
|
|
3345
3345
|
let j;
|
|
3346
|
-
if (se === "single" ? j = { [T]: k } : (j = { ...p, [T]: k }, k ===
|
|
3346
|
+
if (se === "single" ? j = { [T]: k } : (j = { ...p, [T]: k }, k === U.default && delete j[T]), m(j), l)
|
|
3347
3347
|
if (se === "single")
|
|
3348
3348
|
l({ sortKey: T, sort: k });
|
|
3349
3349
|
else {
|
|
@@ -3356,24 +3356,24 @@ const Xo = ({ className: e }) => /* @__PURE__ */ z.jsxs(
|
|
|
3356
3356
|
}, x = (T) => {
|
|
3357
3357
|
D(T.active.id);
|
|
3358
3358
|
}, I = (T) => {
|
|
3359
|
-
const { active: J, over:
|
|
3360
|
-
D(null), !(!
|
|
3361
|
-
const se = k.findIndex((le) => le.key === J.id), j = k.findIndex((le) => le.key ===
|
|
3359
|
+
const { active: J, over: K } = T;
|
|
3360
|
+
D(null), !(!K || J.id === K.id) && w((k) => {
|
|
3361
|
+
const se = k.findIndex((le) => le.key === J.id), j = k.findIndex((le) => le.key === K.id);
|
|
3362
3362
|
if (se === -1 || j === -1 || k[j].fixed)
|
|
3363
3363
|
return k;
|
|
3364
3364
|
const ae = zt(k, se, j);
|
|
3365
3365
|
return c && c(ae), ae;
|
|
3366
3366
|
});
|
|
3367
|
-
}, N = b.filter((T) => !T.fixed && T.key).map((T) => T.key),
|
|
3368
|
-
const T = b.reduce((J,
|
|
3369
|
-
if (
|
|
3370
|
-
const k = parseInt(
|
|
3367
|
+
}, N = b.filter((T) => !T.fixed && T.key).map((T) => T.key), G = (() => {
|
|
3368
|
+
const T = b.reduce((J, K) => {
|
|
3369
|
+
if (K.width) {
|
|
3370
|
+
const k = parseInt(K.width);
|
|
3371
3371
|
return J + (isNaN(k) ? 150 : k);
|
|
3372
3372
|
}
|
|
3373
3373
|
return J + 150;
|
|
3374
3374
|
}, 0);
|
|
3375
3375
|
return T > 0 ? `${T}px` : void 0;
|
|
3376
|
-
})(),
|
|
3376
|
+
})(), Y = () => /* @__PURE__ */ z.jsx(
|
|
3377
3377
|
"div",
|
|
3378
3378
|
{
|
|
3379
3379
|
className: oe.container({ theme: g }),
|
|
@@ -3384,8 +3384,7 @@ const Xo = ({ className: e }) => /* @__PURE__ */ z.jsxs(
|
|
|
3384
3384
|
className: oe.table(),
|
|
3385
3385
|
style: {
|
|
3386
3386
|
tableLayout: d,
|
|
3387
|
-
|
|
3388
|
-
minWidth: d === "fixed" ? Y : void 0
|
|
3387
|
+
minWidth: d === "fixed" ? G : void 0
|
|
3389
3388
|
},
|
|
3390
3389
|
children: [
|
|
3391
3390
|
/* @__PURE__ */ z.jsx(
|
|
@@ -3431,13 +3430,13 @@ const Xo = ({ className: e }) => /* @__PURE__ */ z.jsxs(
|
|
|
3431
3430
|
{
|
|
3432
3431
|
items: N,
|
|
3433
3432
|
strategy: Mo,
|
|
3434
|
-
children:
|
|
3433
|
+
children: Y()
|
|
3435
3434
|
}
|
|
3436
3435
|
)
|
|
3437
3436
|
}
|
|
3438
|
-
) :
|
|
3437
|
+
) : Y();
|
|
3439
3438
|
};
|
|
3440
3439
|
export {
|
|
3441
3440
|
Zo as P,
|
|
3442
|
-
|
|
3441
|
+
U as S
|
|
3443
3442
|
};
|
package/dist/ProTable.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as r } from "./ProTable-
|
|
2
|
-
import { S as f } from "./ProTable-
|
|
1
|
+
import { P as r } from "./ProTable-2cb6776c.js";
|
|
2
|
+
import { S as f } from "./ProTable-2cb6776c.js";
|
|
3
3
|
import "./jsx-runtime-82a9ddf6.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "./index-6ffbeca8.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { f as m, l as o, m as a } from "./index-
|
|
1
|
+
import { f as m, l as o, m as a } from "./index-c7e82c88.js";
|
|
2
2
|
import { f as r } from "./index-0f855a91.js";
|
|
3
|
-
import { a as t } from "./index-
|
|
3
|
+
import { a as t } from "./index-e3b72207.js";
|
|
4
4
|
import "./Badge.es.js";
|
|
5
5
|
import "./jsx-runtime-82a9ddf6.js";
|
|
6
6
|
import "react";
|
|
@@ -13,7 +13,7 @@ import "react-dom";
|
|
|
13
13
|
import "./close-c67ec245.js";
|
|
14
14
|
import "./Drawer.es.js";
|
|
15
15
|
import "./Slider.es.js";
|
|
16
|
-
import "./ProTable-
|
|
16
|
+
import "./ProTable-2cb6776c.js";
|
|
17
17
|
import "./Divider.es.js";
|
|
18
18
|
var i = {
|
|
19
19
|
full: "EEEE d MMMM y",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as m, b as i, c as h, d as u } from "./index-
|
|
2
|
-
import { i as f } from "./index-
|
|
1
|
+
import { a as m, b as i, c as h, d as u } from "./index-e3b72207.js";
|
|
2
|
+
import { i as f } from "./index-9dc6a4b8.js";
|
|
3
3
|
import "./Badge.es.js";
|
|
4
4
|
import "./jsx-runtime-82a9ddf6.js";
|
|
5
5
|
import "react";
|
|
@@ -12,7 +12,7 @@ import "react-dom";
|
|
|
12
12
|
import "./close-c67ec245.js";
|
|
13
13
|
import "./Drawer.es.js";
|
|
14
14
|
import "./Slider.es.js";
|
|
15
|
-
import "./ProTable-
|
|
15
|
+
import "./ProTable-2cb6776c.js";
|
|
16
16
|
import "./Divider.es.js";
|
|
17
17
|
function b(t, e) {
|
|
18
18
|
return e === 1 && t.one ? t.one : e >= 2 && e <= 4 && t.twoFour ? t.twoFour : t.other;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as d, b as i, c as m, d as u } from "./index-
|
|
1
|
+
import { a as d, b as i, c as m, d as u } from "./index-e3b72207.js";
|
|
2
2
|
import "./Badge.es.js";
|
|
3
3
|
import "./jsx-runtime-82a9ddf6.js";
|
|
4
4
|
import "react";
|
|
@@ -11,7 +11,7 @@ import "react-dom";
|
|
|
11
11
|
import "./close-c67ec245.js";
|
|
12
12
|
import "./Drawer.es.js";
|
|
13
13
|
import "./Slider.es.js";
|
|
14
|
-
import "./ProTable-
|
|
14
|
+
import "./ProTable-2cb6776c.js";
|
|
15
15
|
import "./Divider.es.js";
|
|
16
16
|
var s = {
|
|
17
17
|
lessThanXSeconds: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as m, b as r, c as u, d as h } from "./index-
|
|
1
|
+
import { a as m, b as r, c as u, d as h } from "./index-e3b72207.js";
|
|
2
2
|
import "./Badge.es.js";
|
|
3
3
|
import "./jsx-runtime-82a9ddf6.js";
|
|
4
4
|
import "react";
|
|
@@ -11,7 +11,7 @@ import "react-dom";
|
|
|
11
11
|
import "./close-c67ec245.js";
|
|
12
12
|
import "./Drawer.es.js";
|
|
13
13
|
import "./Slider.es.js";
|
|
14
|
-
import "./ProTable-
|
|
14
|
+
import "./ProTable-2cb6776c.js";
|
|
15
15
|
import "./Divider.es.js";
|
|
16
16
|
var g = {
|
|
17
17
|
lessThanXSeconds: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as s, b as o, c as m, d as l } from "./index-
|
|
1
|
+
import { a as s, b as o, c as m, d as l } from "./index-e3b72207.js";
|
|
2
2
|
import "./Badge.es.js";
|
|
3
3
|
import "./jsx-runtime-82a9ddf6.js";
|
|
4
4
|
import "react";
|
|
@@ -11,7 +11,7 @@ import "react-dom";
|
|
|
11
11
|
import "./close-c67ec245.js";
|
|
12
12
|
import "./Drawer.es.js";
|
|
13
13
|
import "./Slider.es.js";
|
|
14
|
-
import "./ProTable-
|
|
14
|
+
import "./ProTable-2cb6776c.js";
|
|
15
15
|
import "./Divider.es.js";
|
|
16
16
|
var d = {
|
|
17
17
|
lessThanXSeconds: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as m, b as i, c as s, d } from "./index-
|
|
1
|
+
import { a as m, b as i, c as s, d } from "./index-e3b72207.js";
|
|
2
2
|
import "./Badge.es.js";
|
|
3
3
|
import "./jsx-runtime-82a9ddf6.js";
|
|
4
4
|
import "react";
|
|
@@ -11,7 +11,7 @@ import "react-dom";
|
|
|
11
11
|
import "./close-c67ec245.js";
|
|
12
12
|
import "./Drawer.es.js";
|
|
13
13
|
import "./Slider.es.js";
|
|
14
|
-
import "./ProTable-
|
|
14
|
+
import "./ProTable-2cb6776c.js";
|
|
15
15
|
import "./Divider.es.js";
|
|
16
16
|
var u = {
|
|
17
17
|
lessThanXSeconds: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as m, b as i, c as u, d } from "./index-
|
|
1
|
+
import { a as m, b as i, c as u, d } from "./index-e3b72207.js";
|
|
2
2
|
import "./Badge.es.js";
|
|
3
3
|
import "./jsx-runtime-82a9ddf6.js";
|
|
4
4
|
import "react";
|
|
@@ -11,7 +11,7 @@ import "react-dom";
|
|
|
11
11
|
import "./close-c67ec245.js";
|
|
12
12
|
import "./Drawer.es.js";
|
|
13
13
|
import "./Slider.es.js";
|
|
14
|
-
import "./ProTable-
|
|
14
|
+
import "./ProTable-2cb6776c.js";
|
|
15
15
|
import "./Divider.es.js";
|
|
16
16
|
var s = {
|
|
17
17
|
lessThanXSeconds: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as o, a as u, c as l, d } from "./index-
|
|
1
|
+
import { b as o, a as u, c as l, d } from "./index-e3b72207.js";
|
|
2
2
|
import "./Badge.es.js";
|
|
3
3
|
import "./jsx-runtime-82a9ddf6.js";
|
|
4
4
|
import "react";
|
|
@@ -11,7 +11,7 @@ import "react-dom";
|
|
|
11
11
|
import "./close-c67ec245.js";
|
|
12
12
|
import "./Drawer.es.js";
|
|
13
13
|
import "./Slider.es.js";
|
|
14
|
-
import "./ProTable-
|
|
14
|
+
import "./ProTable-2cb6776c.js";
|
|
15
15
|
import "./Divider.es.js";
|
|
16
16
|
var h = {
|
|
17
17
|
locale: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as s, b as n, c as u, d as i } from "./index-
|
|
1
|
+
import { a as s, b as n, c as u, d as i } from "./index-e3b72207.js";
|
|
2
2
|
import "./Badge.es.js";
|
|
3
3
|
import "./jsx-runtime-82a9ddf6.js";
|
|
4
4
|
import "react";
|
|
@@ -11,7 +11,7 @@ import "react-dom";
|
|
|
11
11
|
import "./close-c67ec245.js";
|
|
12
12
|
import "./Drawer.es.js";
|
|
13
13
|
import "./Slider.es.js";
|
|
14
|
-
import "./ProTable-
|
|
14
|
+
import "./ProTable-2cb6776c.js";
|
|
15
15
|
import "./Divider.es.js";
|
|
16
16
|
var d = {
|
|
17
17
|
lessThanXSeconds: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as m, b as i, c as s, d as n } from "./index-
|
|
1
|
+
import { a as m, b as i, c as s, d as n } from "./index-e3b72207.js";
|
|
2
2
|
import "./Badge.es.js";
|
|
3
3
|
import "./jsx-runtime-82a9ddf6.js";
|
|
4
4
|
import "react";
|
|
@@ -11,7 +11,7 @@ import "react-dom";
|
|
|
11
11
|
import "./close-c67ec245.js";
|
|
12
12
|
import "./Drawer.es.js";
|
|
13
13
|
import "./Slider.es.js";
|
|
14
|
-
import "./ProTable-
|
|
14
|
+
import "./ProTable-2cb6776c.js";
|
|
15
15
|
import "./Divider.es.js";
|
|
16
16
|
var u = {
|
|
17
17
|
lessThanXSeconds: {
|