@protonradio/proton-ui 0.6.18-beta.18 → 0.6.18-beta.2
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/index-C_MMhG34.mjs +1759 -0
- package/dist/index-C_MMhG34.mjs.map +1 -0
- package/dist/index-DdgXcT07.js +14 -0
- package/dist/index-DdgXcT07.js.map +1 -0
- package/dist/index.cjs.js +11 -11
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +229 -224
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.d.ts +18 -25
- package/dist/utils.es.js +8 -9
- package/package.json +2 -2
- package/dist/utils-DNt-oc_W.js +0 -2
- package/dist/utils-DNt-oc_W.js.map +0 -1
- package/dist/utils-KXsOHJro.mjs +0 -122
- package/dist/utils-KXsOHJro.mjs.map +0 -1
package/dist/index.es.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import B, { useRef as M, useCallback as X, useState as j, useContext as Y, useEffect as L, createContext as ee, useMemo as H, useLayoutEffect as Mc, createElement as bi, isValidElement as Fc, forwardRef as
|
|
1
|
+
import B, { useRef as M, useCallback as X, useState as j, useContext as Y, useEffect as L, createContext as ee, useMemo as H, useLayoutEffect as Mc, createElement as bi, isValidElement as Fc, forwardRef as ft, cloneElement as Ic } from "react";
|
|
2
2
|
import Cn, { flushSync as _c, createPortal as gi } from "react-dom";
|
|
3
|
-
import { c as U, i as Lr, h as $i } from "./
|
|
3
|
+
import { c as U, i as Lr, h as $i, a as Dt, b as Gn } from "./index-C_MMhG34.mjs";
|
|
4
4
|
import { THEMES as ze, BREAKPOINTS as yi } from "./constants.es.js";
|
|
5
|
-
import { transparentize as st, toRgba as Gn } from "color2k";
|
|
6
5
|
import { G as ye, S as tn, W as nn, D as rn, B as Nc } from "./colors-Dwh4VIMR.mjs";
|
|
7
|
-
import { c as
|
|
6
|
+
import { c as c4 } from "./colors-Dwh4VIMR.mjs";
|
|
8
7
|
var dr = { exports: {} }, Ft = {};
|
|
9
8
|
/**
|
|
10
9
|
* @license React
|
|
@@ -194,7 +193,7 @@ function Lc() {
|
|
|
194
193
|
}
|
|
195
194
|
}
|
|
196
195
|
var Se = E.ReactCurrentDispatcher, Ye;
|
|
197
|
-
function
|
|
196
|
+
function vt(h, K, N) {
|
|
198
197
|
{
|
|
199
198
|
if (Ye === void 0)
|
|
200
199
|
try {
|
|
@@ -207,21 +206,21 @@ function Lc() {
|
|
|
207
206
|
` + Ye + h;
|
|
208
207
|
}
|
|
209
208
|
}
|
|
210
|
-
var
|
|
209
|
+
var ht = !1, mt;
|
|
211
210
|
{
|
|
212
211
|
var le = typeof WeakMap == "function" ? WeakMap : Map;
|
|
213
|
-
|
|
212
|
+
mt = new le();
|
|
214
213
|
}
|
|
215
|
-
function
|
|
216
|
-
if (!h ||
|
|
214
|
+
function bt(h, K) {
|
|
215
|
+
if (!h || ht)
|
|
217
216
|
return "";
|
|
218
217
|
{
|
|
219
|
-
var N =
|
|
218
|
+
var N = mt.get(h);
|
|
220
219
|
if (N !== void 0)
|
|
221
220
|
return N;
|
|
222
221
|
}
|
|
223
222
|
var V;
|
|
224
|
-
|
|
223
|
+
ht = !0;
|
|
225
224
|
var J = Error.prepareStackTrace;
|
|
226
225
|
Error.prepareStackTrace = void 0;
|
|
227
226
|
var te;
|
|
@@ -271,20 +270,20 @@ function Lc() {
|
|
|
271
270
|
if (ie--, se--, se < 0 || G[ie] !== he[se]) {
|
|
272
271
|
var Ce = `
|
|
273
272
|
` + G[ie].replace(" at new ", " at ");
|
|
274
|
-
return h.displayName && Ce.includes("<anonymous>") && (Ce = Ce.replace("<anonymous>", h.displayName)), typeof h == "function" &&
|
|
273
|
+
return h.displayName && Ce.includes("<anonymous>") && (Ce = Ce.replace("<anonymous>", h.displayName)), typeof h == "function" && mt.set(h, Ce), Ce;
|
|
275
274
|
}
|
|
276
275
|
while (ie >= 1 && se >= 0);
|
|
277
276
|
break;
|
|
278
277
|
}
|
|
279
278
|
}
|
|
280
279
|
} finally {
|
|
281
|
-
|
|
280
|
+
ht = !1, Se.current = te, ke(), Error.prepareStackTrace = J;
|
|
282
281
|
}
|
|
283
|
-
var
|
|
284
|
-
return typeof h == "function" &&
|
|
282
|
+
var $t = h ? h.displayName || h.name : "", it = $t ? vt($t) : "";
|
|
283
|
+
return typeof h == "function" && mt.set(h, it), it;
|
|
285
284
|
}
|
|
286
285
|
function On(h, K, N) {
|
|
287
|
-
return
|
|
286
|
+
return bt(h, !1);
|
|
288
287
|
}
|
|
289
288
|
function cc(h) {
|
|
290
289
|
var K = h.prototype;
|
|
@@ -294,14 +293,14 @@ function Lc() {
|
|
|
294
293
|
if (h == null)
|
|
295
294
|
return "";
|
|
296
295
|
if (typeof h == "function")
|
|
297
|
-
return
|
|
296
|
+
return bt(h, cc(h));
|
|
298
297
|
if (typeof h == "string")
|
|
299
|
-
return
|
|
298
|
+
return vt(h);
|
|
300
299
|
switch (h) {
|
|
301
300
|
case s:
|
|
302
|
-
return
|
|
301
|
+
return vt("Suspense");
|
|
303
302
|
case c:
|
|
304
|
-
return
|
|
303
|
+
return vt("SuspenseList");
|
|
305
304
|
}
|
|
306
305
|
if (typeof h == "object")
|
|
307
306
|
switch (h.$$typeof) {
|
|
@@ -469,7 +468,7 @@ function Lc() {
|
|
|
469
468
|
}
|
|
470
469
|
}
|
|
471
470
|
var Vn = E.ReactCurrentOwner, ml = E.ReactDebugCurrentFrame;
|
|
472
|
-
function
|
|
471
|
+
function gt(h) {
|
|
473
472
|
if (h) {
|
|
474
473
|
var K = h._owner, N = Qt(h.type, h._source, K ? K.type : null);
|
|
475
474
|
ml.setExtraStackFrame(N);
|
|
@@ -519,7 +518,7 @@ Check the top-level render call using <` + N + ">.");
|
|
|
519
518
|
return;
|
|
520
519
|
gl[N] = !0;
|
|
521
520
|
var V = "";
|
|
522
|
-
h && h._owner && h._owner !== Vn.current && (V = " It was passed a child from " + x(h._owner.type) + "."),
|
|
521
|
+
h && h._owner && h._owner !== Vn.current && (V = " It was passed a child from " + x(h._owner.type) + "."), gt(h), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', N, V), gt(null);
|
|
523
522
|
}
|
|
524
523
|
}
|
|
525
524
|
function yl(h, K) {
|
|
@@ -571,11 +570,11 @@ Check the top-level render call using <` + N + ">.");
|
|
|
571
570
|
for (var K = Object.keys(h.props), N = 0; N < K.length; N++) {
|
|
572
571
|
var V = K[N];
|
|
573
572
|
if (V !== "children" && V !== "key") {
|
|
574
|
-
|
|
573
|
+
gt(h), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", V), gt(null);
|
|
575
574
|
break;
|
|
576
575
|
}
|
|
577
576
|
}
|
|
578
|
-
h.ref !== null && (
|
|
577
|
+
h.ref !== null && (gt(h), S("Invalid attribute `ref` supplied to `React.Fragment`."), gt(null));
|
|
579
578
|
}
|
|
580
579
|
}
|
|
581
580
|
var xl = {};
|
|
@@ -598,8 +597,8 @@ Check the top-level render call using <` + N + ">.");
|
|
|
598
597
|
if (Ce !== void 0)
|
|
599
598
|
if (V)
|
|
600
599
|
if (zn(Ce)) {
|
|
601
|
-
for (var
|
|
602
|
-
yl(Ce[
|
|
600
|
+
for (var $t = 0; $t < Ce.length; $t++)
|
|
601
|
+
yl(Ce[$t], h);
|
|
603
602
|
Object.freeze && Object.freeze(Ce);
|
|
604
603
|
} else
|
|
605
604
|
S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
@@ -905,7 +904,7 @@ const nt = He(function() {
|
|
|
905
904
|
function qt() {
|
|
906
905
|
return Y(dd);
|
|
907
906
|
}
|
|
908
|
-
function
|
|
907
|
+
function st(t, e, n = !0) {
|
|
909
908
|
var r, l;
|
|
910
909
|
let { metaKey: i, ctrlKey: o, altKey: a, shiftKey: u } = e;
|
|
911
910
|
cd() && (!((l = window.event) === null || l === void 0 || (r = l.type) === null || r === void 0) && r.startsWith("key")) && t.target === "_blank" && (nt() ? i = !0 : o = !0);
|
|
@@ -923,9 +922,9 @@ function ct(t, e, n = !0) {
|
|
|
923
922
|
bubbles: !0,
|
|
924
923
|
cancelable: !0
|
|
925
924
|
});
|
|
926
|
-
|
|
925
|
+
st.isOpening = n, Le(t), t.dispatchEvent(s), st.isOpening = !1;
|
|
927
926
|
}
|
|
928
|
-
|
|
927
|
+
st.isOpening = !1;
|
|
929
928
|
function fd(t, e) {
|
|
930
929
|
if (t instanceof HTMLAnchorElement) e(t);
|
|
931
930
|
else if (t.hasAttribute("data-href")) {
|
|
@@ -934,7 +933,7 @@ function fd(t, e) {
|
|
|
934
933
|
}
|
|
935
934
|
}
|
|
936
935
|
function pd(t, e) {
|
|
937
|
-
fd(t, (n) =>
|
|
936
|
+
fd(t, (n) => st(n, e));
|
|
938
937
|
}
|
|
939
938
|
function vd(t) {
|
|
940
939
|
let e = qt();
|
|
@@ -962,7 +961,7 @@ function Ci(t) {
|
|
|
962
961
|
referrerPolicy: t == null ? void 0 : t.referrerPolicy
|
|
963
962
|
};
|
|
964
963
|
}
|
|
965
|
-
let
|
|
964
|
+
let St = /* @__PURE__ */ new Map(), fr = /* @__PURE__ */ new Set();
|
|
966
965
|
function wl() {
|
|
967
966
|
if (typeof window > "u") return;
|
|
968
967
|
function t(r) {
|
|
@@ -970,14 +969,14 @@ function wl() {
|
|
|
970
969
|
}
|
|
971
970
|
let e = (r) => {
|
|
972
971
|
if (!t(r) || !r.target) return;
|
|
973
|
-
let l =
|
|
974
|
-
l || (l = /* @__PURE__ */ new Set(),
|
|
972
|
+
let l = St.get(r.target);
|
|
973
|
+
l || (l = /* @__PURE__ */ new Set(), St.set(r.target, l), r.target.addEventListener("transitioncancel", n, {
|
|
975
974
|
once: !0
|
|
976
975
|
})), l.add(r.propertyName);
|
|
977
976
|
}, n = (r) => {
|
|
978
977
|
if (!t(r) || !r.target) return;
|
|
979
|
-
let l =
|
|
980
|
-
if (l && (l.delete(r.propertyName), l.size === 0 && (r.target.removeEventListener("transitioncancel", n),
|
|
978
|
+
let l = St.get(r.target);
|
|
979
|
+
if (l && (l.delete(r.propertyName), l.size === 0 && (r.target.removeEventListener("transitioncancel", n), St.delete(r.target)), St.size === 0)) {
|
|
981
980
|
for (let i of fr) i();
|
|
982
981
|
fr.clear();
|
|
983
982
|
}
|
|
@@ -987,7 +986,7 @@ function wl() {
|
|
|
987
986
|
typeof document < "u" && (document.readyState !== "loading" ? wl() : document.addEventListener("DOMContentLoaded", wl));
|
|
988
987
|
function wi(t) {
|
|
989
988
|
requestAnimationFrame(() => {
|
|
990
|
-
|
|
989
|
+
St.size === 0 ? t() : fr.add(t);
|
|
991
990
|
});
|
|
992
991
|
}
|
|
993
992
|
function Pi() {
|
|
@@ -1238,24 +1237,24 @@ function lt(t, e, n) {
|
|
|
1238
1237
|
function hr(t, e = -1 / 0, n = 1 / 0) {
|
|
1239
1238
|
return Math.min(Math.max(t, e), n);
|
|
1240
1239
|
}
|
|
1241
|
-
let
|
|
1240
|
+
let wt = "default", mr = "", fn = /* @__PURE__ */ new WeakMap();
|
|
1242
1241
|
function kl(t) {
|
|
1243
1242
|
if (Pn()) {
|
|
1244
|
-
if (
|
|
1243
|
+
if (wt === "default") {
|
|
1245
1244
|
const e = re(t);
|
|
1246
1245
|
mr = e.documentElement.style.webkitUserSelect, e.documentElement.style.webkitUserSelect = "none";
|
|
1247
1246
|
}
|
|
1248
|
-
|
|
1247
|
+
wt = "disabled";
|
|
1249
1248
|
} else (t instanceof HTMLElement || t instanceof SVGElement) && (fn.set(t, t.style.userSelect), t.style.userSelect = "none");
|
|
1250
1249
|
}
|
|
1251
1250
|
function on(t) {
|
|
1252
1251
|
if (Pn()) {
|
|
1253
|
-
if (
|
|
1254
|
-
|
|
1252
|
+
if (wt !== "disabled") return;
|
|
1253
|
+
wt = "restoring", setTimeout(() => {
|
|
1255
1254
|
wi(() => {
|
|
1256
|
-
if (
|
|
1255
|
+
if (wt === "restoring") {
|
|
1257
1256
|
const e = re(t);
|
|
1258
|
-
e.documentElement.style.webkitUserSelect === "none" && (e.documentElement.style.webkitUserSelect = mr || ""), mr = "",
|
|
1257
|
+
e.documentElement.style.webkitUserSelect === "none" && (e.documentElement.style.webkitUserSelect = mr || ""), mr = "", wt = "default";
|
|
1259
1258
|
}
|
|
1260
1259
|
});
|
|
1261
1260
|
}, 300);
|
|
@@ -1408,7 +1407,7 @@ function je(t) {
|
|
|
1408
1407
|
} else T.key === "Meta" && (v.metaKeyEvents = /* @__PURE__ */ new Map());
|
|
1409
1408
|
},
|
|
1410
1409
|
onClick(T) {
|
|
1411
|
-
if (!(T && !T.currentTarget.contains(T.target)) && T && T.button === 0 && !v.isTriggeringEvent && !
|
|
1410
|
+
if (!(T && !T.currentTarget.contains(T.target)) && T && T.button === 0 && !v.isTriggeringEvent && !st.isOpening) {
|
|
1412
1411
|
let I = !0;
|
|
1413
1412
|
if (o && T.preventDefault(), !v.ignoreClickAfterPress && !v.ignoreEmulatedMouseEvents && !v.isPressed && (v.pointerType === "virtual" || vr(T.nativeEvent))) {
|
|
1414
1413
|
!o && !u && Le(T.currentTarget);
|
|
@@ -1424,7 +1423,7 @@ function je(t) {
|
|
|
1424
1423
|
var x;
|
|
1425
1424
|
Kl(T.target, T.key) && T.preventDefault();
|
|
1426
1425
|
let D = T.target;
|
|
1427
|
-
y(Ie(v.target, T), "keyboard", v.target.contains(D)), E(), T.key !== "Enter" && Vr(v.target) && v.target.contains(D) && !T[Bl] && (T[Bl] = !0,
|
|
1426
|
+
y(Ie(v.target, T), "keyboard", v.target.contains(D)), E(), T.key !== "Enter" && Vr(v.target) && v.target.contains(D) && !T[Bl] && (T[Bl] = !0, st(v.target, T, !1)), v.isPressed = !1, (x = v.metaKeyEvents) === null || x === void 0 || x.delete(T.key);
|
|
1428
1427
|
} else if (T.key === "Meta" && (!((I = v.metaKeyEvents) === null || I === void 0) && I.size)) {
|
|
1429
1428
|
var R;
|
|
1430
1429
|
let D = v.metaKeyEvents;
|
|
@@ -1445,12 +1444,12 @@ function je(t) {
|
|
|
1445
1444
|
}, A.onMouseDown = (D) => {
|
|
1446
1445
|
D.currentTarget.contains(D.target) && D.button === 0 && (Zn(D.currentTarget) && D.preventDefault(), D.stopPropagation());
|
|
1447
1446
|
}, A.onPointerUp = (D) => {
|
|
1448
|
-
!D.currentTarget.contains(D.target) || v.pointerType === "virtual" || D.button === 0 &&
|
|
1447
|
+
!D.currentTarget.contains(D.target) || v.pointerType === "virtual" || D.button === 0 && yt(D, D.currentTarget) && k(D, v.pointerType || D.pointerType);
|
|
1449
1448
|
};
|
|
1450
1449
|
let T = (D) => {
|
|
1451
|
-
D.pointerId === v.activePointerId && (v.target &&
|
|
1450
|
+
D.pointerId === v.activePointerId && (v.target && yt(D, v.target) ? !v.isOverTarget && v.pointerType != null && (v.isOverTarget = !0, S(Ie(v.target, D), v.pointerType)) : v.target && v.isOverTarget && v.pointerType != null && (v.isOverTarget = !1, y(Ie(v.target, D), v.pointerType, !1), P(D)));
|
|
1452
1451
|
}, I = (D) => {
|
|
1453
|
-
D.pointerId === v.activePointerId && v.isPressed && D.button === 0 && v.target && (
|
|
1452
|
+
D.pointerId === v.activePointerId && v.isPressed && D.button === 0 && v.target && (yt(D, v.target) && v.pointerType != null ? y(Ie(v.target, D), v.pointerType) : v.isOverTarget && v.pointerType != null && y(Ie(v.target, D), v.pointerType, !1), v.isPressed = !1, v.isOverTarget = !1, v.activePointerId = null, v.pointerType = null, E(), c || on(v.target), "ontouchend" in v.target && D.pointerType !== "mouse" && g(v.target, "touchend", x, {
|
|
1454
1453
|
once: !0
|
|
1455
1454
|
}));
|
|
1456
1455
|
}, x = (D) => {
|
|
@@ -1486,7 +1485,7 @@ function je(t) {
|
|
|
1486
1485
|
v.ignoreEmulatedMouseEvents = !1;
|
|
1487
1486
|
return;
|
|
1488
1487
|
}
|
|
1489
|
-
v.target &&
|
|
1488
|
+
v.target && yt(x, v.target) && v.pointerType != null ? y(Ie(v.target, x), v.pointerType) : v.target && v.isOverTarget && v.pointerType != null && y(Ie(v.target, x), v.pointerType, !1), v.isOverTarget = !1;
|
|
1490
1489
|
}
|
|
1491
1490
|
};
|
|
1492
1491
|
A.onTouchStart = (x) => {
|
|
@@ -1501,7 +1500,7 @@ function je(t) {
|
|
|
1501
1500
|
return;
|
|
1502
1501
|
}
|
|
1503
1502
|
let R = Al(x.nativeEvent, v.activePointerId), D = !0;
|
|
1504
|
-
R &&
|
|
1503
|
+
R && yt(R, x.currentTarget) ? !v.isOverTarget && v.pointerType != null && (v.isOverTarget = !0, D = S(qe(v.target, x), v.pointerType)) : v.isOverTarget && v.pointerType != null && (v.isOverTarget = !1, D = y(qe(v.target, x), v.pointerType, !1), P(qe(v.target, x))), D && x.stopPropagation();
|
|
1505
1504
|
}, A.onTouchEnd = (x) => {
|
|
1506
1505
|
if (!x.currentTarget.contains(x.target)) return;
|
|
1507
1506
|
if (!v.isPressed) {
|
|
@@ -1509,7 +1508,7 @@ function je(t) {
|
|
|
1509
1508
|
return;
|
|
1510
1509
|
}
|
|
1511
1510
|
let R = Al(x.nativeEvent, v.activePointerId), D = !0;
|
|
1512
|
-
R &&
|
|
1511
|
+
R && yt(R, x.currentTarget) && v.pointerType != null ? (k(qe(v.target, x), v.pointerType), D = y(qe(v.target, x), v.pointerType)) : v.isOverTarget && v.pointerType != null && (D = y(qe(v.target, x), v.pointerType, !1)), D && x.stopPropagation(), v.isPressed = !1, v.activePointerId = null, v.isOverTarget = !1, v.ignoreEmulatedMouseEvents = !0, v.target && !c && on(v.target), E();
|
|
1513
1512
|
}, A.onTouchCancel = (x) => {
|
|
1514
1513
|
x.currentTarget.contains(x.target) && (x.stopPropagation(), v.isPressed && C(qe(v.target, x)));
|
|
1515
1514
|
};
|
|
@@ -1605,7 +1604,7 @@ function Pd(t) {
|
|
|
1605
1604
|
function Dd(t, e) {
|
|
1606
1605
|
return !(t.left > e.right || e.left > t.right || t.top > e.bottom || e.top > t.bottom);
|
|
1607
1606
|
}
|
|
1608
|
-
function
|
|
1607
|
+
function yt(t, e) {
|
|
1609
1608
|
let n = e.getBoundingClientRect(), r = Pd(t);
|
|
1610
1609
|
return Dd(n, r);
|
|
1611
1610
|
}
|
|
@@ -1744,7 +1743,7 @@ function Bn(t) {
|
|
|
1744
1743
|
}
|
|
1745
1744
|
};
|
|
1746
1745
|
}
|
|
1747
|
-
let Ve = null, Wt = /* @__PURE__ */ new Set(), jt = /* @__PURE__ */ new Map(),
|
|
1746
|
+
let Ve = null, Wt = /* @__PURE__ */ new Set(), jt = /* @__PURE__ */ new Map(), ct = !1, br = !1;
|
|
1748
1747
|
const Kd = {
|
|
1749
1748
|
Tab: !0,
|
|
1750
1749
|
Escape: !0
|
|
@@ -1756,26 +1755,26 @@ function Md(t) {
|
|
|
1756
1755
|
return !(t.metaKey || !nt() && t.altKey || t.ctrlKey || t.key === "Control" || t.key === "Shift" || t.key === "Meta");
|
|
1757
1756
|
}
|
|
1758
1757
|
function hn(t) {
|
|
1759
|
-
|
|
1758
|
+
ct = !0, Md(t) && (Ve = "keyboard", An("keyboard", t));
|
|
1760
1759
|
}
|
|
1761
1760
|
function Pe(t) {
|
|
1762
|
-
Ve = "pointer", (t.type === "mousedown" || t.type === "pointerdown") && (
|
|
1761
|
+
Ve = "pointer", (t.type === "mousedown" || t.type === "pointerdown") && (ct = !0, An("pointer", t));
|
|
1763
1762
|
}
|
|
1764
1763
|
function Fi(t) {
|
|
1765
|
-
vr(t) && (
|
|
1764
|
+
vr(t) && (ct = !0, Ve = "virtual");
|
|
1766
1765
|
}
|
|
1767
1766
|
function Ii(t) {
|
|
1768
|
-
t.target === window || t.target === document || (!
|
|
1767
|
+
t.target === window || t.target === document || (!ct && !br && (Ve = "virtual", An("virtual", t)), ct = !1, br = !1);
|
|
1769
1768
|
}
|
|
1770
1769
|
function _i() {
|
|
1771
|
-
|
|
1770
|
+
ct = !1, br = !0;
|
|
1772
1771
|
}
|
|
1773
1772
|
function mn(t) {
|
|
1774
1773
|
if (typeof window > "u" || jt.get(De(t))) return;
|
|
1775
1774
|
const e = De(t), n = re(t);
|
|
1776
1775
|
let r = e.HTMLElement.prototype.focus;
|
|
1777
1776
|
e.HTMLElement.prototype.focus = function() {
|
|
1778
|
-
|
|
1777
|
+
ct = !0, r.apply(this, arguments);
|
|
1779
1778
|
}, n.addEventListener("keydown", hn, !0), n.addEventListener("keyup", hn, !0), n.addEventListener("click", Fi, !0), e.addEventListener("focus", Ii, !0), e.addEventListener("blur", _i, !1), typeof PointerEvent < "u" ? (n.addEventListener("pointerdown", Pe, !0), n.addEventListener("pointermove", Pe, !0), n.addEventListener("pointerup", Pe, !0)) : (n.addEventListener("mousedown", Pe, !0), n.addEventListener("mousemove", Pe, !0), n.addEventListener("mouseup", Pe, !0)), e.addEventListener("beforeunload", () => {
|
|
1780
1779
|
Ni(t);
|
|
1781
1780
|
}, {
|
|
@@ -1796,7 +1795,7 @@ function Fd(t) {
|
|
|
1796
1795
|
}, e.addEventListener("DOMContentLoaded", n)), () => Ni(t, n);
|
|
1797
1796
|
}
|
|
1798
1797
|
typeof document < "u" && Fd();
|
|
1799
|
-
function
|
|
1798
|
+
function dt() {
|
|
1800
1799
|
return Ve !== "pointer";
|
|
1801
1800
|
}
|
|
1802
1801
|
function bn() {
|
|
@@ -1836,7 +1835,7 @@ function _d(t, e, n) {
|
|
|
1836
1835
|
function Nd(t, e, n) {
|
|
1837
1836
|
mn(), L(() => {
|
|
1838
1837
|
let r = (l, i) => {
|
|
1839
|
-
_d(!!(n != null && n.isTextInput), l, i) && t(
|
|
1838
|
+
_d(!!(n != null && n.isTextInput), l, i) && t(dt());
|
|
1840
1839
|
};
|
|
1841
1840
|
return Wt.add(r), () => {
|
|
1842
1841
|
Wt.delete(r);
|
|
@@ -2516,7 +2515,7 @@ let de = new Wr();
|
|
|
2516
2515
|
function Zt(t = {}) {
|
|
2517
2516
|
let { autoFocus: e = !1, isTextInput: n, within: r } = t, l = M({
|
|
2518
2517
|
isFocused: !1,
|
|
2519
|
-
isFocusVisible: e ||
|
|
2518
|
+
isFocusVisible: e || dt()
|
|
2520
2519
|
}), [i, o] = j(!1), [a, u] = j(() => l.current.isFocused && l.current.isFocusVisible), s = X(() => u(l.current.isFocused && l.current.isFocusVisible), []), c = X((p) => {
|
|
2521
2520
|
l.current.isFocused = p, o(p), s();
|
|
2522
2521
|
}, [
|
|
@@ -2674,7 +2673,7 @@ function We() {
|
|
|
2674
2673
|
return Y(af) || t;
|
|
2675
2674
|
}
|
|
2676
2675
|
const uf = Symbol.for("react-aria.i18n.locale"), sf = Symbol.for("react-aria.i18n.strings");
|
|
2677
|
-
let
|
|
2676
|
+
let xt;
|
|
2678
2677
|
class Mn {
|
|
2679
2678
|
/** Returns a localized string for the given key and locale. */
|
|
2680
2679
|
getStringForLocale(e, n) {
|
|
@@ -2690,15 +2689,15 @@ class Mn {
|
|
|
2690
2689
|
static getGlobalDictionaryForPackage(e) {
|
|
2691
2690
|
if (typeof window > "u") return null;
|
|
2692
2691
|
let n = window[uf];
|
|
2693
|
-
if (
|
|
2692
|
+
if (xt === void 0) {
|
|
2694
2693
|
let l = window[sf];
|
|
2695
2694
|
if (!l) return null;
|
|
2696
|
-
|
|
2697
|
-
for (let i in l)
|
|
2695
|
+
xt = {};
|
|
2696
|
+
for (let i in l) xt[i] = new Mn({
|
|
2698
2697
|
[n]: l[i]
|
|
2699
2698
|
}, n);
|
|
2700
2699
|
}
|
|
2701
|
-
let r =
|
|
2700
|
+
let r = xt == null ? void 0 : xt[e];
|
|
2702
2701
|
if (!r) throw new Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);
|
|
2703
2702
|
return r;
|
|
2704
2703
|
}
|
|
@@ -2754,7 +2753,7 @@ function pf(t) {
|
|
|
2754
2753
|
function vf(t, e) {
|
|
2755
2754
|
return e && Mn.getGlobalDictionaryForPackage(e) || pf(t);
|
|
2756
2755
|
}
|
|
2757
|
-
function
|
|
2756
|
+
function pt(t, e) {
|
|
2758
2757
|
let { locale: n } = We(), r = vf(t, e);
|
|
2759
2758
|
return H(() => new ff(n, r), [
|
|
2760
2759
|
n,
|
|
@@ -3653,11 +3652,11 @@ function If(t = {}) {
|
|
|
3653
3652
|
]);
|
|
3654
3653
|
}
|
|
3655
3654
|
function _f() {
|
|
3656
|
-
return Me(
|
|
3655
|
+
return Me(Pt(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`), Pt(document.documentElement, "overflow", "hidden"));
|
|
3657
3656
|
}
|
|
3658
3657
|
function Nf() {
|
|
3659
3658
|
let t, e, n = (s) => {
|
|
3660
|
-
t = Ze(s.target, !0), !(t === document.documentElement && t === document.body) && t instanceof HTMLElement && window.getComputedStyle(t).overscrollBehavior === "auto" && (e =
|
|
3659
|
+
t = Ze(s.target, !0), !(t === document.documentElement && t === document.body) && t instanceof HTMLElement && window.getComputedStyle(t).overscrollBehavior === "auto" && (e = Pt(t, "overscrollBehavior", "contain"));
|
|
3661
3660
|
}, r = (s) => {
|
|
3662
3661
|
if (!t || t === document.documentElement || t === document.body) {
|
|
3663
3662
|
s.preventDefault();
|
|
@@ -3683,7 +3682,7 @@ function Nf() {
|
|
|
3683
3682
|
let s = () => {
|
|
3684
3683
|
window.scrollTo(0, 0);
|
|
3685
3684
|
}, c = window.pageXOffset, d = window.pageYOffset;
|
|
3686
|
-
o = Me(Nt(window, "scroll", s),
|
|
3685
|
+
o = Me(Nt(window, "scroll", s), Pt(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`), Pt(document.documentElement, "overflow", "hidden"), Pt(document.body, "marginTop", `-${d}px`), () => {
|
|
3687
3686
|
window.scrollTo(c, d);
|
|
3688
3687
|
}), window.scrollTo(0, 0);
|
|
3689
3688
|
}, u = Me(Nt(document, "touchstart", n, {
|
|
@@ -3700,7 +3699,7 @@ function Nf() {
|
|
|
3700
3699
|
e == null || e(), o == null || o(), u();
|
|
3701
3700
|
};
|
|
3702
3701
|
}
|
|
3703
|
-
function
|
|
3702
|
+
function Pt(t, e, n) {
|
|
3704
3703
|
let r = t.style[e];
|
|
3705
3704
|
return t.style[e] = n, () => {
|
|
3706
3705
|
t.style[e] = r;
|
|
@@ -3950,7 +3949,7 @@ function Vf(t) {
|
|
|
3950
3949
|
return t && t.__esModule ? t.default : t;
|
|
3951
3950
|
}
|
|
3952
3951
|
function Hf(t) {
|
|
3953
|
-
let { onDismiss: e, ...n } = t, r =
|
|
3952
|
+
let { onDismiss: e, ...n } = t, r = pt(Vf(Oo), "@react-aria/overlays"), l = Di(n, r.format("dismiss")), i = () => {
|
|
3954
3953
|
e && e();
|
|
3955
3954
|
};
|
|
3956
3955
|
return /* @__PURE__ */ B.createElement(qr, null, /* @__PURE__ */ B.createElement("button", {
|
|
@@ -4096,7 +4095,7 @@ function Jf(t, e) {
|
|
|
4096
4095
|
function Pr(t) {
|
|
4097
4096
|
return ud() ? t.altKey : t.ctrlKey;
|
|
4098
4097
|
}
|
|
4099
|
-
function
|
|
4098
|
+
function Ct(t) {
|
|
4100
4099
|
return nt() ? t.metaKey : t.ctrlKey;
|
|
4101
4100
|
}
|
|
4102
4101
|
const Qf = 1e3;
|
|
@@ -4173,15 +4172,15 @@ function Vo(t) {
|
|
|
4173
4172
|
case "Home":
|
|
4174
4173
|
if (n.getFirstKey) {
|
|
4175
4174
|
w.preventDefault();
|
|
4176
|
-
let O = n.getFirstKey(e.focusedKey,
|
|
4177
|
-
e.setFocusedKey(O),
|
|
4175
|
+
let O = n.getFirstKey(e.focusedKey, Ct(w));
|
|
4176
|
+
e.setFocusedKey(O), Ct(w) && w.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(O) : u && e.replaceSelection(O);
|
|
4178
4177
|
}
|
|
4179
4178
|
break;
|
|
4180
4179
|
case "End":
|
|
4181
4180
|
if (n.getLastKey) {
|
|
4182
4181
|
w.preventDefault();
|
|
4183
|
-
let O = n.getLastKey(e.focusedKey,
|
|
4184
|
-
e.setFocusedKey(O),
|
|
4182
|
+
let O = n.getLastKey(e.focusedKey, Ct(w));
|
|
4183
|
+
e.setFocusedKey(O), Ct(w) && w.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(O) : u && e.replaceSelection(O);
|
|
4185
4184
|
}
|
|
4186
4185
|
break;
|
|
4187
4186
|
case "PageDown":
|
|
@@ -4197,7 +4196,7 @@ function Vo(t) {
|
|
|
4197
4196
|
}
|
|
4198
4197
|
break;
|
|
4199
4198
|
case "a":
|
|
4200
|
-
|
|
4199
|
+
Ct(w) && e.selectionMode === "multiple" && a !== !0 && (w.preventDefault(), e.selectAll());
|
|
4201
4200
|
break;
|
|
4202
4201
|
case "Escape":
|
|
4203
4202
|
!o && e.selectedKeys.size !== 0 && (w.stopPropagation(), w.preventDefault(), e.clearSelection());
|
|
@@ -4311,7 +4310,7 @@ function _n(t) {
|
|
|
4311
4310
|
return;
|
|
4312
4311
|
} else if (c === "override" || c === "none") return;
|
|
4313
4312
|
}
|
|
4314
|
-
e.selectionMode === "single" ? e.isSelected(n) && !e.disallowEmptySelection ? e.toggleSelection(n) : e.replaceSelection(n) : F && F.shiftKey ? e.extendSelection(n) : e.selectionBehavior === "toggle" || F && (
|
|
4313
|
+
e.selectionMode === "single" ? e.isSelected(n) && !e.disallowEmptySelection ? e.toggleSelection(n) : e.replaceSelection(n) : F && F.shiftKey ? e.extendSelection(n) : e.selectionBehavior === "toggle" || F && (Ct(F) || F.pointerType === "touch" || F.pointerType === "virtual") ? e.toggleSelection(n) : e.replaceSelection(n);
|
|
4315
4314
|
}
|
|
4316
4315
|
};
|
|
4317
4316
|
L(() => {
|
|
@@ -4363,7 +4362,7 @@ function _n(t) {
|
|
|
4363
4362
|
}), D = (F) => {
|
|
4364
4363
|
C.current === "touch" && _.current && F.preventDefault();
|
|
4365
4364
|
}, z = e.isLink(n) ? (F) => {
|
|
4366
|
-
|
|
4365
|
+
st.isOpening || F.preventDefault();
|
|
4367
4366
|
} : void 0;
|
|
4368
4367
|
return {
|
|
4369
4368
|
itemProps: W(p, g || S ? T : {}, P ? R : {}, {
|
|
@@ -4663,7 +4662,7 @@ Go.getCollectionNode = function* (e) {
|
|
|
4663
4662
|
}
|
|
4664
4663
|
};
|
|
4665
4664
|
};
|
|
4666
|
-
let
|
|
4665
|
+
let jh = Go;
|
|
4667
4666
|
class rp {
|
|
4668
4667
|
build(e, n) {
|
|
4669
4668
|
return this.context = n, ei(() => this.iterateCollection(e));
|
|
@@ -4921,7 +4920,7 @@ function ip(t, e, n) {
|
|
|
4921
4920
|
}), { hoverProps: x } = Tt({
|
|
4922
4921
|
isDisabled: u || !m,
|
|
4923
4922
|
onHoverStart() {
|
|
4924
|
-
|
|
4923
|
+
dt() || (e.selectionManager.setFocused(!0), e.selectionManager.setFocusedKey(i));
|
|
4925
4924
|
}
|
|
4926
4925
|
}), R = ve(P == null ? void 0 : P.props);
|
|
4927
4926
|
delete R.id;
|
|
@@ -4939,7 +4938,7 @@ function ip(t, e, n) {
|
|
|
4939
4938
|
id: k
|
|
4940
4939
|
},
|
|
4941
4940
|
isFocused: w,
|
|
4942
|
-
isFocusVisible: w &&
|
|
4941
|
+
isFocusVisible: w && dt(),
|
|
4943
4942
|
isSelected: c,
|
|
4944
4943
|
isDisabled: u,
|
|
4945
4944
|
isPressed: A,
|
|
@@ -5141,7 +5140,7 @@ function Ba(t, e, n) {
|
|
|
5141
5140
|
default:
|
|
5142
5141
|
"continuePropagation" in p && p.continuePropagation();
|
|
5143
5142
|
}
|
|
5144
|
-
}, c =
|
|
5143
|
+
}, c = pt(op(Ta), "@react-aria/menu"), { longPressProps: d } = ji({
|
|
5145
5144
|
isDisabled: l || i !== "longPress",
|
|
5146
5145
|
accessibilityDescription: c.format("longPressMessage"),
|
|
5147
5146
|
onLongPressStart() {
|
|
@@ -5210,9 +5209,9 @@ function Ma(t, e, n) {
|
|
|
5210
5209
|
let _ = (P = t.isDisabled) !== null && P !== void 0 ? P : e.selectionManager.isDisabled(l);
|
|
5211
5210
|
var v;
|
|
5212
5211
|
let A = (v = t.isSelected) !== null && v !== void 0 ? v : e.selectionManager.isSelected(l), w = Aa.get(e), T = e.collection.getItem(l), I = t.onClose || w.onClose, x = qt(), R = (le) => {
|
|
5213
|
-
var
|
|
5212
|
+
var bt;
|
|
5214
5213
|
if (!C) {
|
|
5215
|
-
if (!(T == null || (
|
|
5214
|
+
if (!(T == null || (bt = T.props) === null || bt === void 0) && bt.onAction ? T.props.onAction() : t.onAction && t.onAction(l), w.onAction) {
|
|
5216
5215
|
let On = w.onAction;
|
|
5217
5216
|
On(l);
|
|
5218
5217
|
}
|
|
@@ -5260,7 +5259,7 @@ function Ma(t, e, n) {
|
|
|
5260
5259
|
}), { hoverProps: Se } = Tt({
|
|
5261
5260
|
isDisabled: _,
|
|
5262
5261
|
onHoverStart(le) {
|
|
5263
|
-
|
|
5262
|
+
dt() || (e.selectionManager.setFocused(!0), e.selectionManager.setFocusedKey(l)), p == null || p(le);
|
|
5264
5263
|
},
|
|
5265
5264
|
onHoverChange: m,
|
|
5266
5265
|
onHoverEnd: $
|
|
@@ -5283,20 +5282,20 @@ function Ma(t, e, n) {
|
|
|
5283
5282
|
}
|
|
5284
5283
|
},
|
|
5285
5284
|
onKeyUp: E
|
|
5286
|
-
}), { focusProps:
|
|
5285
|
+
}), { focusProps: vt } = Bn({
|
|
5287
5286
|
onBlur: k,
|
|
5288
5287
|
onFocus: S,
|
|
5289
5288
|
onFocusChange: y
|
|
5290
|
-
}),
|
|
5291
|
-
delete
|
|
5292
|
-
let
|
|
5289
|
+
}), ht = ve(T.props);
|
|
5290
|
+
delete ht.id;
|
|
5291
|
+
let mt = Ci(T.props);
|
|
5293
5292
|
return {
|
|
5294
5293
|
menuItemProps: {
|
|
5295
5294
|
...ue,
|
|
5296
|
-
...W(
|
|
5295
|
+
...W(ht, mt, C ? {
|
|
5297
5296
|
onFocus: Ee.onFocus,
|
|
5298
5297
|
"data-key": Ee["data-key"]
|
|
5299
|
-
} : Ee, O, Se, Ye,
|
|
5298
|
+
} : Ee, O, Se, Ye, vt),
|
|
5300
5299
|
tabIndex: Ee.tabIndex != null ? -1 : void 0
|
|
5301
5300
|
},
|
|
5302
5301
|
labelProps: {
|
|
@@ -5500,7 +5499,7 @@ function mp(t) {
|
|
|
5500
5499
|
}
|
|
5501
5500
|
Ut.none;
|
|
5502
5501
|
const or = /* @__PURE__ */ new Map();
|
|
5503
|
-
function
|
|
5502
|
+
function Et(t, e) {
|
|
5504
5503
|
let n = or.get(t);
|
|
5505
5504
|
if (!n) {
|
|
5506
5505
|
let r = /* @__PURE__ */ new Set(), l = (i) => {
|
|
@@ -5539,7 +5538,7 @@ function bp(t) {
|
|
|
5539
5538
|
});
|
|
5540
5539
|
return L(() => {
|
|
5541
5540
|
if (!e)
|
|
5542
|
-
return Me(
|
|
5541
|
+
return Me(Et("beforecopy", l), Et("copy", i), Et("beforecut", o), Et("cut", a), Et("beforepaste", u), Et("paste", s));
|
|
5543
5542
|
}, [
|
|
5544
5543
|
e,
|
|
5545
5544
|
l,
|
|
@@ -6196,7 +6195,7 @@ function yp(t, e) {
|
|
|
6196
6195
|
let { getRowText: n = (o) => {
|
|
6197
6196
|
var a, u, s, c;
|
|
6198
6197
|
return (c = (a = (u = e.collection).getTextValue) === null || a === void 0 ? void 0 : a.call(u, o)) !== null && c !== void 0 ? c : (s = e.collection.getItem(o)) === null || s === void 0 ? void 0 : s.textValue;
|
|
6199
|
-
} } = t, r =
|
|
6198
|
+
} } = t, r = pt($p(tl), "@react-aria/grid"), l = e.selectionManager.rawSelection, i = M(l);
|
|
6200
6199
|
ki(() => {
|
|
6201
6200
|
var o;
|
|
6202
6201
|
if (!e.selectionManager.isFocused) {
|
|
@@ -6239,7 +6238,7 @@ function xp(t) {
|
|
|
6239
6238
|
return t && t.__esModule ? t.default : t;
|
|
6240
6239
|
}
|
|
6241
6240
|
function Ep(t) {
|
|
6242
|
-
let e =
|
|
6241
|
+
let e = pt(xp(tl), "@react-aria/grid"), n = Li(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window, l = H(() => {
|
|
6243
6242
|
let o = t.selectionManager.selectionMode, a = t.selectionManager.selectionBehavior, u;
|
|
6244
6243
|
return r && (u = e.format("longPressToSelect")), a === "replace" && o !== "none" && t.hasItemActions ? u : void 0;
|
|
6245
6244
|
}, [
|
|
@@ -6430,7 +6429,7 @@ function bu(t, e, n) {
|
|
|
6430
6429
|
},
|
|
6431
6430
|
onFocus: (y) => {
|
|
6432
6431
|
if (d.current = r.key, y.target !== n.current) {
|
|
6433
|
-
|
|
6432
|
+
dt() || e.selectionManager.setFocusedKey(r.key);
|
|
6434
6433
|
return;
|
|
6435
6434
|
}
|
|
6436
6435
|
requestAnimationFrame(() => {
|
|
@@ -6750,7 +6749,7 @@ function kp(t) {
|
|
|
6750
6749
|
return t && t.__esModule ? t.default : t;
|
|
6751
6750
|
}
|
|
6752
6751
|
function Tp(t, e, n) {
|
|
6753
|
-
let r =
|
|
6752
|
+
let r = pt(kp(Qu), "@react-aria/searchfield"), { isDisabled: l, isReadOnly: i, onSubmit: o, onClear: a, type: u = "search" } = t, s = (E) => {
|
|
6754
6753
|
const S = E.key;
|
|
6755
6754
|
S === "Enter" && (l || i) && E.preventDefault(), !(l || i) && (S === "Enter" && o && (E.preventDefault(), o(e.value)), S === "Escape" && (e.value === "" ? E.continuePropagation() : (e.setValue(""), a && a())));
|
|
6756
6755
|
}, c = () => {
|
|
@@ -7542,7 +7541,7 @@ function Np(t, e, n) {
|
|
|
7542
7541
|
keyboardDelegate: c
|
|
7543
7542
|
}, e, n);
|
|
7544
7543
|
l && (f["aria-rowcount"] = e.collection.size + e.collection.headerRows.length), Sn() && "expandedKeys" in e && (f.role = "treegrid");
|
|
7545
|
-
let { column: p, direction: m } = e.sortDescriptor || {}, $ =
|
|
7544
|
+
let { column: p, direction: m } = e.sortDescriptor || {}, $ = pt(_p(rl), "@react-aria/table"), g = H(() => {
|
|
7546
7545
|
var S;
|
|
7547
7546
|
let y = (S = e.collection.columns.find((k) => k.key === p)) === null || S === void 0 ? void 0 : S.textValue;
|
|
7548
7547
|
return m && p ? $.format(`${m}Sort`, {
|
|
@@ -7583,7 +7582,7 @@ function Lp(t, e, n) {
|
|
|
7583
7582
|
ref: n
|
|
7584
7583
|
}), { focusableProps: c } = Bt({}, n), d = null, f = ((r = e.sortDescriptor) === null || r === void 0 ? void 0 : r.column) === i.key, p = (l = e.sortDescriptor) === null || l === void 0 ? void 0 : l.direction;
|
|
7585
7584
|
i.props.allowsSorting && !vn() && (d = f ? p : "none");
|
|
7586
|
-
let m =
|
|
7585
|
+
let m = pt(Rp(rl), "@react-aria/table"), $;
|
|
7587
7586
|
o && ($ = `${m.format("sortable")}`, f && p && vn() && ($ = `${$}, ${m.format(p)}`));
|
|
7588
7587
|
let g = kn($), E = e.collection.size === 0;
|
|
7589
7588
|
return L(() => {
|
|
@@ -7706,7 +7705,7 @@ function Wp(t, e, n) {
|
|
|
7706
7705
|
}, f = () => {
|
|
7707
7706
|
a.current = !1, o.current = !1, s(!0);
|
|
7708
7707
|
}, p = () => {
|
|
7709
|
-
|
|
7708
|
+
dt() && (a.current = !0, u());
|
|
7710
7709
|
}, m = () => {
|
|
7711
7710
|
a.current = !1, o.current = !1, s(!0);
|
|
7712
7711
|
}, { hoverProps: $ } = Tt({
|
|
@@ -8700,7 +8699,7 @@ Os.getCollectionNode = function* (e, n) {
|
|
|
8700
8699
|
}), yield* i;
|
|
8701
8700
|
}
|
|
8702
8701
|
};
|
|
8703
|
-
let
|
|
8702
|
+
let Vh = Os;
|
|
8704
8703
|
function zs(t) {
|
|
8705
8704
|
return null;
|
|
8706
8705
|
}
|
|
@@ -8730,7 +8729,7 @@ zs.getCollectionNode = function* (e) {
|
|
|
8730
8729
|
}
|
|
8731
8730
|
};
|
|
8732
8731
|
};
|
|
8733
|
-
let
|
|
8732
|
+
let Hh = zs;
|
|
8734
8733
|
function js(t) {
|
|
8735
8734
|
return null;
|
|
8736
8735
|
}
|
|
@@ -8823,7 +8822,7 @@ Kr.getCollectionNode = function* (e, n) {
|
|
|
8823
8822
|
}
|
|
8824
8823
|
};
|
|
8825
8824
|
};
|
|
8826
|
-
let
|
|
8825
|
+
let Wh = Kr;
|
|
8827
8826
|
function Vs(t) {
|
|
8828
8827
|
return null;
|
|
8829
8828
|
}
|
|
@@ -9133,7 +9132,7 @@ const pv = ({ children: t }) => {
|
|
|
9133
9132
|
[ze.DARK]: "proton-ui__theme--dark",
|
|
9134
9133
|
[ze.CUSTOM_DARK]: "proton-ui__theme--custom-dark",
|
|
9135
9134
|
[ze.LIGHT]: "proton-ui__theme--light"
|
|
9136
|
-
},
|
|
9135
|
+
}, Uh = ({
|
|
9137
9136
|
theme: t,
|
|
9138
9137
|
children: e,
|
|
9139
9138
|
palette: n
|
|
@@ -9162,12 +9161,15 @@ const pv = ({ children: t }) => {
|
|
|
9162
9161
|
children: /* @__PURE__ */ b.jsx("div", { ref: r, children: e })
|
|
9163
9162
|
}
|
|
9164
9163
|
);
|
|
9165
|
-
}, ur =
|
|
9164
|
+
}, ur = [83, 82, 83];
|
|
9166
9165
|
function mv(t) {
|
|
9167
|
-
const e =
|
|
9166
|
+
const e = Dt(t.PRIMARY.PRIMARY_LIGHTEST).alpha(0.6);
|
|
9168
9167
|
return {
|
|
9169
9168
|
[ze.DARK]: {
|
|
9170
|
-
"--proton-control__background-color": Gn(
|
|
9169
|
+
"--proton-control__background-color": Gn(
|
|
9170
|
+
ur,
|
|
9171
|
+
1
|
|
9172
|
+
),
|
|
9171
9173
|
"--proton-control__text-color": ye.WHITE,
|
|
9172
9174
|
"--proton-control__border-color": ye.GRAY_DARK,
|
|
9173
9175
|
"--proton-control__shadow-color": ye.GRAY_DARK,
|
|
@@ -9179,33 +9181,36 @@ function mv(t) {
|
|
|
9179
9181
|
"--proton-control__background-color": ye.WHITE,
|
|
9180
9182
|
"--proton-control__text-color": ye.GRAY_DARK,
|
|
9181
9183
|
"--proton-control__border-color": ye.GRAY_LIGHT,
|
|
9182
|
-
"--proton-control__shadow-color":
|
|
9183
|
-
|
|
9184
|
-
0.
|
|
9184
|
+
"--proton-control__shadow-color": Gn(
|
|
9185
|
+
ur,
|
|
9186
|
+
0.1
|
|
9185
9187
|
),
|
|
9186
9188
|
"--proton-color__primary": t.BRAND.PRIMARY,
|
|
9187
9189
|
"--proton-color__primary-light": t.BRAND.PRIMARY_LIGHT,
|
|
9188
9190
|
"--proton-color__secondary": t.BRAND.SECONDARY
|
|
9189
9191
|
},
|
|
9190
9192
|
[ze.CUSTOM_DARK]: {
|
|
9191
|
-
"--proton-control__background-color": Gn(
|
|
9193
|
+
"--proton-control__background-color": Gn(
|
|
9194
|
+
ur,
|
|
9195
|
+
1
|
|
9196
|
+
),
|
|
9192
9197
|
"--proton-control__text-color": ye.WHITE,
|
|
9193
|
-
"--proton-control__border-color":
|
|
9194
|
-
"--proton-control__shadow-color": e,
|
|
9198
|
+
"--proton-control__border-color": t.PRIMARY.PRIMARY_LIGHTEST,
|
|
9199
|
+
"--proton-control__shadow-color": e.css(),
|
|
9195
9200
|
"--proton-color__primary": t.BRAND.PRIMARY,
|
|
9196
9201
|
"--proton-color__primary-light": t.BRAND.PRIMARY_LIGHT,
|
|
9197
9202
|
"--proton-color__secondary": t.BRAND.SECONDARY
|
|
9198
9203
|
}
|
|
9199
9204
|
};
|
|
9200
9205
|
}
|
|
9201
|
-
const
|
|
9206
|
+
const Gh = {
|
|
9202
9207
|
primary: "primary",
|
|
9203
9208
|
secondary: "secondary",
|
|
9204
9209
|
transparent: "transparent",
|
|
9205
9210
|
success: "success",
|
|
9206
9211
|
warning: "warning",
|
|
9207
9212
|
danger: "danger"
|
|
9208
|
-
},
|
|
9213
|
+
}, Yh = ({ variant: t, children: e, ...n }) => {
|
|
9209
9214
|
const { className: r } = Fe();
|
|
9210
9215
|
return /* @__PURE__ */ b.jsx(
|
|
9211
9216
|
"div",
|
|
@@ -9440,7 +9445,7 @@ Cv.Option = function(e) {
|
|
|
9440
9445
|
}
|
|
9441
9446
|
);
|
|
9442
9447
|
};
|
|
9443
|
-
function
|
|
9448
|
+
function qh({ title: t, children: e, ...n }) {
|
|
9444
9449
|
let r = M(null), { dialogProps: l, titleProps: i } = up(n, r);
|
|
9445
9450
|
const { className: o } = Fe();
|
|
9446
9451
|
return /* @__PURE__ */ b.jsxs("div", { ...l, ref: r, className: U("proton-Dialog", o), children: [
|
|
@@ -9457,7 +9462,7 @@ function Pv(t) {
|
|
|
9457
9462
|
};
|
|
9458
9463
|
return /* @__PURE__ */ b.jsx("svg", { style: e, ...t, children: /* @__PURE__ */ b.jsx("use", { href: `${wv}#${t.id}` }) });
|
|
9459
9464
|
}
|
|
9460
|
-
function
|
|
9465
|
+
function Xh(t) {
|
|
9461
9466
|
const [e, n] = j("");
|
|
9462
9467
|
return L(() => {
|
|
9463
9468
|
}, []), e ? /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
|
|
@@ -9471,7 +9476,7 @@ function Z4(t) {
|
|
|
9471
9476
|
/* @__PURE__ */ b.jsx(Pv, { ...t })
|
|
9472
9477
|
] }) : null;
|
|
9473
9478
|
}
|
|
9474
|
-
const Dv =
|
|
9479
|
+
const Dv = ft(
|
|
9475
9480
|
({
|
|
9476
9481
|
prefix: t,
|
|
9477
9482
|
suffix: e,
|
|
@@ -9514,11 +9519,11 @@ const Dv = pt(
|
|
|
9514
9519
|
"--input-background": (() => {
|
|
9515
9520
|
switch (y) {
|
|
9516
9521
|
case ze.CUSTOM_DARK:
|
|
9517
|
-
return
|
|
9522
|
+
return Dt(S.PRIMARY.PRIMARY_SUPER_LIGHT).alpha(0.4).css();
|
|
9518
9523
|
case ze.DARK:
|
|
9519
|
-
return
|
|
9524
|
+
return Dt(ye.GRAY_MEDIUM).alpha(0.5).css();
|
|
9520
9525
|
default:
|
|
9521
|
-
return ye.WHITE;
|
|
9526
|
+
return Dt(ye.WHITE).css();
|
|
9522
9527
|
}
|
|
9523
9528
|
})()
|
|
9524
9529
|
};
|
|
@@ -9588,7 +9593,7 @@ const Dv = pt(
|
|
|
9588
9593
|
) : n && r === "bottom" ? /* @__PURE__ */ b.jsx("div", { ..._, className: "proton-Input__text", children: n }) : null
|
|
9589
9594
|
] });
|
|
9590
9595
|
}
|
|
9591
|
-
),
|
|
9596
|
+
), Zh = ({
|
|
9592
9597
|
name: t = "search",
|
|
9593
9598
|
placeholder: e = "Search...",
|
|
9594
9599
|
autoComplete: n,
|
|
@@ -9703,7 +9708,7 @@ const Dv = pt(
|
|
|
9703
9708
|
}
|
|
9704
9709
|
);
|
|
9705
9710
|
};
|
|
9706
|
-
function
|
|
9711
|
+
function Jh(t) {
|
|
9707
9712
|
const e = M(null), n = Nn(t || {}), { triggerProps: r, overlayProps: l } = lo(
|
|
9708
9713
|
{ type: "dialog" },
|
|
9709
9714
|
n,
|
|
@@ -10086,7 +10091,7 @@ function Av(t) {
|
|
|
10086
10091
|
}
|
|
10087
10092
|
function Kv(t) {
|
|
10088
10093
|
let e = (n, r) => Y(Mr) ? null : t(n, r);
|
|
10089
|
-
return e.displayName = t.displayName || t.name,
|
|
10094
|
+
return e.displayName = t.displayName || t.name, ft(e);
|
|
10090
10095
|
}
|
|
10091
10096
|
var Fr = { exports: {} }, sr = {};
|
|
10092
10097
|
/**
|
|
@@ -10282,7 +10287,7 @@ function zv(t, e, n, r, l, i) {
|
|
|
10282
10287
|
}, l);
|
|
10283
10288
|
}
|
|
10284
10289
|
function jv(t, e) {
|
|
10285
|
-
let n = ({ node: l }) => e(l.props, l.props.ref, l), r =
|
|
10290
|
+
let n = ({ node: l }) => e(l.props, l.props.ref, l), r = ft((l, i) => {
|
|
10286
10291
|
if (!Y(Qs)) {
|
|
10287
10292
|
if (e.length >= 3) throw new Error(e.name + " cannot be rendered outside a collection.");
|
|
10288
10293
|
return e(l, i);
|
|
@@ -10498,9 +10503,9 @@ const Jv = /* @__PURE__ */ ee(null), Qv = /* @__PURE__ */ new Set([
|
|
|
10498
10503
|
"formTarget",
|
|
10499
10504
|
"name",
|
|
10500
10505
|
"value"
|
|
10501
|
-
]),
|
|
10502
|
-
function
|
|
10503
|
-
[t, e] = Jt(t, e,
|
|
10506
|
+
]), eh = /* @__PURE__ */ ee({});
|
|
10507
|
+
function th(t, e) {
|
|
10508
|
+
[t, e] = Jt(t, e, eh), t = nh(t);
|
|
10504
10509
|
let n = t, { isPending: r } = n, { buttonProps: l, isPressed: i } = In(t, e), { focusProps: o, isFocused: a, isFocusVisible: u } = Zt(t), { hoverProps: s, isHovered: c } = Tt({
|
|
10505
10510
|
...t,
|
|
10506
10511
|
isDisabled: t.isDisabled || r
|
|
@@ -10551,13 +10556,13 @@ function t4(t, e) {
|
|
|
10551
10556
|
}
|
|
10552
10557
|
}, f.children));
|
|
10553
10558
|
}
|
|
10554
|
-
function
|
|
10559
|
+
function nh(t) {
|
|
10555
10560
|
return t.isPending && (t.onPress = void 0, t.onPressStart = void 0, t.onPressEnd = void 0, t.onPressChange = void 0, t.onPressUp = void 0, t.onKeyDown = void 0, t.onKeyUp = void 0, t.onClick = void 0, t.href = void 0), t;
|
|
10556
10561
|
}
|
|
10557
|
-
const rc = /* @__PURE__ */ Kv(
|
|
10562
|
+
const rc = /* @__PURE__ */ Kv(th), rh = /* @__PURE__ */ ee({}), lh = /* @__PURE__ */ ee({}), ih = /* @__PURE__ */ ee({}), lc = /* @__PURE__ */ ee({
|
|
10558
10563
|
placement: "bottom"
|
|
10559
10564
|
});
|
|
10560
|
-
function
|
|
10565
|
+
function oh(t, e) {
|
|
10561
10566
|
[t, e] = Jt(t, e, lc);
|
|
10562
10567
|
let n = t.placement, r = {
|
|
10563
10568
|
position: "absolute",
|
|
@@ -10581,8 +10586,8 @@ function o4(t, e) {
|
|
|
10581
10586
|
"data-placement": n
|
|
10582
10587
|
});
|
|
10583
10588
|
}
|
|
10584
|
-
const
|
|
10585
|
-
function
|
|
10589
|
+
const ah = /* @__PURE__ */ ft(oh), _r = /* @__PURE__ */ ee(null), uh = /* @__PURE__ */ ee(null), sh = /* @__PURE__ */ ee({}), ic = /* @__PURE__ */ ee(null), ul = /* @__PURE__ */ ee(null), oc = /* @__PURE__ */ ee(null);
|
|
10590
|
+
function ch(t) {
|
|
10586
10591
|
let e = qp(t), n = M(null), { menuTriggerProps: r, menuProps: l } = Ba({
|
|
10587
10592
|
...t,
|
|
10588
10593
|
type: "menu"
|
|
@@ -10606,7 +10611,7 @@ function c4(t) {
|
|
|
10606
10611
|
}
|
|
10607
10612
|
],
|
|
10608
10613
|
[
|
|
10609
|
-
|
|
10614
|
+
uh,
|
|
10610
10615
|
e
|
|
10611
10616
|
],
|
|
10612
10617
|
[
|
|
@@ -10632,17 +10637,17 @@ function c4(t) {
|
|
|
10632
10637
|
isPressed: e.isOpen
|
|
10633
10638
|
}, t.children));
|
|
10634
10639
|
}
|
|
10635
|
-
const
|
|
10636
|
-
function
|
|
10640
|
+
const dh = /* @__PURE__ */ ee(null);
|
|
10641
|
+
function fh(t, e) {
|
|
10637
10642
|
return [t, e] = Jt(t, e, ic), /* @__PURE__ */ B.createElement(_v, {
|
|
10638
10643
|
content: /* @__PURE__ */ B.createElement(Hv, t)
|
|
10639
|
-
}, (n) => n.size > 0 && /* @__PURE__ */ B.createElement(
|
|
10644
|
+
}, (n) => n.size > 0 && /* @__PURE__ */ B.createElement(ph, {
|
|
10640
10645
|
props: t,
|
|
10641
10646
|
collection: n,
|
|
10642
10647
|
menuRef: e
|
|
10643
10648
|
}));
|
|
10644
10649
|
}
|
|
10645
|
-
function
|
|
10650
|
+
function ph({ props: t, collection: e, menuRef: n }) {
|
|
10646
10651
|
let r = Ws({
|
|
10647
10652
|
...t,
|
|
10648
10653
|
collection: e,
|
|
@@ -10693,7 +10698,7 @@ function p4({ props: t, collection: e, menuRef: n }) {
|
|
|
10693
10698
|
r
|
|
10694
10699
|
],
|
|
10695
10700
|
[
|
|
10696
|
-
|
|
10701
|
+
ih,
|
|
10697
10702
|
{
|
|
10698
10703
|
elementType: "div"
|
|
10699
10704
|
}
|
|
@@ -10707,11 +10712,11 @@ function p4({ props: t, collection: e, menuRef: n }) {
|
|
|
10707
10712
|
[
|
|
10708
10713
|
Uv,
|
|
10709
10714
|
{
|
|
10710
|
-
render:
|
|
10715
|
+
render: hh
|
|
10711
10716
|
}
|
|
10712
10717
|
],
|
|
10713
10718
|
[
|
|
10714
|
-
|
|
10719
|
+
dh,
|
|
10715
10720
|
{
|
|
10716
10721
|
parentMenuRef: n
|
|
10717
10722
|
}
|
|
@@ -10735,8 +10740,8 @@ function p4({ props: t, collection: e, menuRef: n }) {
|
|
|
10735
10740
|
}
|
|
10736
10741
|
}));
|
|
10737
10742
|
}
|
|
10738
|
-
const
|
|
10739
|
-
function
|
|
10743
|
+
const vh = /* @__PURE__ */ ft(fh);
|
|
10744
|
+
function hh(t, e, n) {
|
|
10740
10745
|
var r, l;
|
|
10741
10746
|
let i = Y(ul), { CollectionBranch: o } = Y(ec), [a, u] = qv();
|
|
10742
10747
|
var s;
|
|
@@ -10754,7 +10759,7 @@ function h4(t, e, n) {
|
|
|
10754
10759
|
...d,
|
|
10755
10760
|
...f,
|
|
10756
10761
|
ref: e
|
|
10757
|
-
}, /* @__PURE__ */ B.createElement(
|
|
10762
|
+
}, /* @__PURE__ */ B.createElement(lh.Provider, {
|
|
10758
10763
|
value: {
|
|
10759
10764
|
...c,
|
|
10760
10765
|
ref: a
|
|
@@ -10764,7 +10769,7 @@ function h4(t, e, n) {
|
|
|
10764
10769
|
parent: n
|
|
10765
10770
|
})));
|
|
10766
10771
|
}
|
|
10767
|
-
const Nr = /* @__PURE__ */ ee(null),
|
|
10772
|
+
const Nr = /* @__PURE__ */ ee(null), mh = /* @__PURE__ */ jv("item", function(e, n, r) {
|
|
10768
10773
|
var l;
|
|
10769
10774
|
[e, n] = Jt(e, n, Nr);
|
|
10770
10775
|
let i = (l = tc(Nr)) === null || l === void 0 ? void 0 : l.id, o = Y(ul), a = Dn(n), { menuItemProps: u, labelProps: s, descriptionProps: c, keyboardShortcutProps: d, ...f } = Ma({
|
|
@@ -10804,7 +10809,7 @@ const Nr = /* @__PURE__ */ ee(null), m4 = /* @__PURE__ */ jv("item", function(e,
|
|
|
10804
10809
|
}, /* @__PURE__ */ B.createElement(Ln, {
|
|
10805
10810
|
values: [
|
|
10806
10811
|
[
|
|
10807
|
-
|
|
10812
|
+
rh,
|
|
10808
10813
|
{
|
|
10809
10814
|
slots: {
|
|
10810
10815
|
label: s,
|
|
@@ -10813,13 +10818,13 @@ const Nr = /* @__PURE__ */ ee(null), m4 = /* @__PURE__ */ jv("item", function(e,
|
|
|
10813
10818
|
}
|
|
10814
10819
|
],
|
|
10815
10820
|
[
|
|
10816
|
-
|
|
10821
|
+
sh,
|
|
10817
10822
|
d
|
|
10818
10823
|
]
|
|
10819
10824
|
]
|
|
10820
10825
|
}, E.children));
|
|
10821
10826
|
}), sl = /* @__PURE__ */ ee(null), ac = /* @__PURE__ */ ee(null);
|
|
10822
|
-
function
|
|
10827
|
+
function bh(t) {
|
|
10823
10828
|
let e = Hs(t), n = M(null), { triggerProps: r, tooltipProps: l } = Wp(t, e, n);
|
|
10824
10829
|
return /* @__PURE__ */ B.createElement(Ln, {
|
|
10825
10830
|
values: [
|
|
@@ -10840,19 +10845,19 @@ function b4(t) {
|
|
|
10840
10845
|
ref: n
|
|
10841
10846
|
}, t.children));
|
|
10842
10847
|
}
|
|
10843
|
-
function
|
|
10848
|
+
function gh({ UNSTABLE_portalContainer: t, ...e }, n) {
|
|
10844
10849
|
[e, n] = Jt(e, n, ac);
|
|
10845
10850
|
let r = Y(sl), l = Hs(e), i = e.isOpen != null || e.defaultOpen != null || !r ? l : r, o = Zv(n, i.isOpen) || e.isExiting || !1;
|
|
10846
10851
|
return !i.isOpen && !o ? null : /* @__PURE__ */ B.createElement(jf, {
|
|
10847
10852
|
portalContainer: t
|
|
10848
|
-
}, /* @__PURE__ */ B.createElement(
|
|
10853
|
+
}, /* @__PURE__ */ B.createElement(yh, {
|
|
10849
10854
|
...e,
|
|
10850
10855
|
tooltipRef: n,
|
|
10851
10856
|
isExiting: o
|
|
10852
10857
|
}));
|
|
10853
10858
|
}
|
|
10854
|
-
const $
|
|
10855
|
-
function
|
|
10859
|
+
const $h = /* @__PURE__ */ ft(gh);
|
|
10860
|
+
function yh(t) {
|
|
10856
10861
|
let e = Y(sl), n = M(null), [r, l] = j(0);
|
|
10857
10862
|
Q(() => {
|
|
10858
10863
|
n.current && e.isOpen && l(n.current.getBoundingClientRect().width);
|
|
@@ -10913,14 +10918,14 @@ function uc(t, e = "down") {
|
|
|
10913
10918
|
return i.addEventListener("change", o), () => i.removeEventListener("change", o);
|
|
10914
10919
|
}, [n]), r;
|
|
10915
10920
|
}
|
|
10916
|
-
const
|
|
10921
|
+
const xh = ({ size: t }) => /* @__PURE__ */ b.jsx("svg", { viewBox: "0 0 24 24", width: t, height: t, children: /* @__PURE__ */ b.jsx(
|
|
10917
10922
|
"path",
|
|
10918
10923
|
{
|
|
10919
10924
|
fill: "currentColor",
|
|
10920
10925
|
d: "M4 14c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm8 0c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm8 0c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"
|
|
10921
10926
|
}
|
|
10922
10927
|
) });
|
|
10923
|
-
function
|
|
10928
|
+
function Qh({
|
|
10924
10929
|
renderTrigger: t,
|
|
10925
10930
|
menuId: e,
|
|
10926
10931
|
size: n = 24,
|
|
@@ -10942,7 +10947,7 @@ function eh({
|
|
|
10942
10947
|
onPress: () => d((g) => !g),
|
|
10943
10948
|
isDisabled: l,
|
|
10944
10949
|
className: `proton-ResponsiveMenuTrigger__button ${u}`,
|
|
10945
|
-
children: /* @__PURE__ */ b.jsx(
|
|
10950
|
+
children: /* @__PURE__ */ b.jsx(xh, { size: n })
|
|
10946
10951
|
}
|
|
10947
10952
|
), $ = t ? t(
|
|
10948
10953
|
{ ...p, onClick: () => d((g) => !g) },
|
|
@@ -10965,7 +10970,7 @@ function eh({
|
|
|
10965
10970
|
"data-testid": a
|
|
10966
10971
|
}
|
|
10967
10972
|
)
|
|
10968
|
-
] }) : /* @__PURE__ */ b.jsxs(
|
|
10973
|
+
] }) : /* @__PURE__ */ b.jsxs(ch, { children: [
|
|
10969
10974
|
$,
|
|
10970
10975
|
c && /* @__PURE__ */ b.jsx(
|
|
10971
10976
|
ol,
|
|
@@ -10980,14 +10985,14 @@ function eh({
|
|
|
10980
10985
|
triggerRef: f,
|
|
10981
10986
|
arrow: !1,
|
|
10982
10987
|
children: /* @__PURE__ */ b.jsx(
|
|
10983
|
-
|
|
10988
|
+
vh,
|
|
10984
10989
|
{
|
|
10985
10990
|
className: "proton-ListBox proton-ResponsiveMenuTrigger__menu",
|
|
10986
10991
|
id: e,
|
|
10987
10992
|
autoFocus: !0,
|
|
10988
10993
|
"data-testid": a,
|
|
10989
10994
|
children: r.map((g) => /* @__PURE__ */ b.jsx(
|
|
10990
|
-
|
|
10995
|
+
mh,
|
|
10991
10996
|
{
|
|
10992
10997
|
href: g.to,
|
|
10993
10998
|
target: "_blank",
|
|
@@ -11018,11 +11023,11 @@ const Rr = (t) => {
|
|
|
11018
11023
|
ref: e,
|
|
11019
11024
|
"data-testid": "listbox",
|
|
11020
11025
|
className: "proton-ListBox",
|
|
11021
|
-
children: [...n.collection].map((l) => /* @__PURE__ */ b.jsx(
|
|
11026
|
+
children: [...n.collection].map((l) => /* @__PURE__ */ b.jsx(Eh, { item: l, state: n }, l.key))
|
|
11022
11027
|
}
|
|
11023
11028
|
) });
|
|
11024
11029
|
};
|
|
11025
|
-
function
|
|
11030
|
+
function Eh({ item: t, state: e }) {
|
|
11026
11031
|
let n = M(null), { optionProps: r, isSelected: l, isFocused: i, isDisabled: o } = ip(
|
|
11027
11032
|
{ key: t.key },
|
|
11028
11033
|
e,
|
|
@@ -11043,7 +11048,7 @@ function E4({ item: t, state: e }) {
|
|
|
11043
11048
|
}
|
|
11044
11049
|
);
|
|
11045
11050
|
}
|
|
11046
|
-
const sc =
|
|
11051
|
+
const sc = ft(
|
|
11047
11052
|
(t, e) => {
|
|
11048
11053
|
let { buttonProps: n } = In(
|
|
11049
11054
|
{
|
|
@@ -11068,7 +11073,7 @@ const sc = pt(
|
|
|
11068
11073
|
);
|
|
11069
11074
|
}
|
|
11070
11075
|
);
|
|
11071
|
-
function
|
|
11076
|
+
function Sh({
|
|
11072
11077
|
label: t,
|
|
11073
11078
|
name: e,
|
|
11074
11079
|
isDisabled: n,
|
|
@@ -11178,11 +11183,11 @@ function S4({
|
|
|
11178
11183
|
}
|
|
11179
11184
|
);
|
|
11180
11185
|
}
|
|
11181
|
-
const
|
|
11182
|
-
Menu:
|
|
11186
|
+
const e4 = {
|
|
11187
|
+
Menu: Sh,
|
|
11183
11188
|
Option: Zr
|
|
11184
11189
|
};
|
|
11185
|
-
function
|
|
11190
|
+
function Ch({
|
|
11186
11191
|
label: t,
|
|
11187
11192
|
name: e,
|
|
11188
11193
|
isDisabled: n,
|
|
@@ -11292,11 +11297,11 @@ function C4({
|
|
|
11292
11297
|
}
|
|
11293
11298
|
);
|
|
11294
11299
|
}
|
|
11295
|
-
const
|
|
11296
|
-
Menu:
|
|
11300
|
+
const t4 = {
|
|
11301
|
+
Menu: Ch,
|
|
11297
11302
|
Option: Zr
|
|
11298
11303
|
};
|
|
11299
|
-
function
|
|
11304
|
+
function n4(t) {
|
|
11300
11305
|
let e = {
|
|
11301
11306
|
...t,
|
|
11302
11307
|
isSelected: t.isOn,
|
|
@@ -11325,11 +11330,11 @@ function rh(t) {
|
|
|
11325
11330
|
}
|
|
11326
11331
|
);
|
|
11327
11332
|
}
|
|
11328
|
-
function
|
|
11333
|
+
function wh({ item: t, state: e, children: n }) {
|
|
11329
11334
|
let r = M(), { rowProps: l } = zp({ node: t }, e);
|
|
11330
11335
|
return /* @__PURE__ */ b.jsx("tr", { className: U("proton-Table__headerRow"), ...l, ref: r, children: n });
|
|
11331
11336
|
}
|
|
11332
|
-
function
|
|
11337
|
+
function Ph({ column: t, state: e }) {
|
|
11333
11338
|
var u, s;
|
|
11334
11339
|
let n = M(), { columnHeaderProps: r } = Lp(
|
|
11335
11340
|
{ node: t },
|
|
@@ -11380,7 +11385,7 @@ function hi({ type: t, children: e }) {
|
|
|
11380
11385
|
}
|
|
11381
11386
|
);
|
|
11382
11387
|
}
|
|
11383
|
-
function
|
|
11388
|
+
function Dh({ item: t, children: e, state: n }) {
|
|
11384
11389
|
let r = M(), l = n.selectionManager.isSelected(t.key), { rowProps: i, isPressed: o } = Op(
|
|
11385
11390
|
{
|
|
11386
11391
|
node: t
|
|
@@ -11403,7 +11408,7 @@ function D4({ item: t, children: e, state: n }) {
|
|
|
11403
11408
|
}
|
|
11404
11409
|
);
|
|
11405
11410
|
}
|
|
11406
|
-
function
|
|
11411
|
+
function kh({ cell: t, state: e, ...n }) {
|
|
11407
11412
|
let r = M(), { gridCellProps: l } = jp({ node: t }, e, r), { isFocusVisible: i, focusProps: o } = Zt();
|
|
11408
11413
|
const { align: a } = t.props;
|
|
11409
11414
|
return /* @__PURE__ */ b.jsx(
|
|
@@ -11420,8 +11425,8 @@ function k4({ cell: t, state: e, ...n }) {
|
|
|
11420
11425
|
}
|
|
11421
11426
|
);
|
|
11422
11427
|
}
|
|
11423
|
-
const
|
|
11424
|
-
function
|
|
11428
|
+
const r4 = ov, l4 = av;
|
|
11429
|
+
function i4(t) {
|
|
11425
11430
|
let e = iv({
|
|
11426
11431
|
...t
|
|
11427
11432
|
}), n = M(), { collection: r } = e, { gridProps: l } = Np(
|
|
@@ -11430,33 +11435,33 @@ function oh(t) {
|
|
|
11430
11435
|
n
|
|
11431
11436
|
);
|
|
11432
11437
|
return /* @__PURE__ */ b.jsxs("table", { ...l, ref: n, className: U("proton-Table"), children: [
|
|
11433
|
-
/* @__PURE__ */ b.jsx(hi, { type: "thead", children: r.headerRows.map((i) => /* @__PURE__ */ b.jsx(
|
|
11434
|
-
|
|
11438
|
+
/* @__PURE__ */ b.jsx(hi, { type: "thead", children: r.headerRows.map((i) => /* @__PURE__ */ b.jsx(wh, { item: i, state: e, children: Array.from(r.getChildren(i.key)).map((o) => /* @__PURE__ */ b.jsx(
|
|
11439
|
+
Ph,
|
|
11435
11440
|
{
|
|
11436
11441
|
column: o,
|
|
11437
11442
|
state: e
|
|
11438
11443
|
},
|
|
11439
11444
|
o.key
|
|
11440
11445
|
)) }, i.key)) }),
|
|
11441
|
-
/* @__PURE__ */ b.jsx(hi, { type: "tbody", children: Array.from(r.body.childNodes).map((i) => /* @__PURE__ */ b.jsx(
|
|
11446
|
+
/* @__PURE__ */ b.jsx(hi, { type: "tbody", children: Array.from(r.body.childNodes).map((i) => /* @__PURE__ */ b.jsx(Dh, { item: i, state: e, children: Array.from(r.getChildren(i.key)).map((o) => /* @__PURE__ */ b.jsx(kh, { cell: o, state: e }, o.key)) }, i.key)) })
|
|
11442
11447
|
] });
|
|
11443
11448
|
}
|
|
11444
|
-
function
|
|
11449
|
+
function Th({ children: t, arrow: e, ...n }) {
|
|
11445
11450
|
const { className: r, style: l } = Fe();
|
|
11446
11451
|
return /* @__PURE__ */ b.jsxs(
|
|
11447
|
-
$
|
|
11452
|
+
$h,
|
|
11448
11453
|
{
|
|
11449
11454
|
...n,
|
|
11450
11455
|
className: U("proton__Tooltip", "proton-Dialog", r),
|
|
11451
11456
|
style: l,
|
|
11452
11457
|
children: [
|
|
11453
|
-
e && /* @__PURE__ */ b.jsx(
|
|
11458
|
+
e && /* @__PURE__ */ b.jsx(ah, { className: U("proton__TooltipArrow", r), children: /* @__PURE__ */ b.jsx("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ b.jsx("path", { d: "M0 0 L4 4 L8 0" }) }) }),
|
|
11454
11459
|
t
|
|
11455
11460
|
]
|
|
11456
11461
|
}
|
|
11457
11462
|
);
|
|
11458
11463
|
}
|
|
11459
|
-
function
|
|
11464
|
+
function Bh({
|
|
11460
11465
|
children: t,
|
|
11461
11466
|
// trigger props
|
|
11462
11467
|
delay: e = 500,
|
|
@@ -11471,7 +11476,7 @@ function B4({
|
|
|
11471
11476
|
}) {
|
|
11472
11477
|
const [s, c] = j(!1), d = M(!1), f = M(!1);
|
|
11473
11478
|
return /* @__PURE__ */ b.jsxs(
|
|
11474
|
-
|
|
11479
|
+
bh,
|
|
11475
11480
|
{
|
|
11476
11481
|
delay: e,
|
|
11477
11482
|
closeDelay: n,
|
|
@@ -11493,19 +11498,19 @@ function B4({
|
|
|
11493
11498
|
children: t
|
|
11494
11499
|
}
|
|
11495
11500
|
),
|
|
11496
|
-
/* @__PURE__ */ b.jsx(
|
|
11501
|
+
/* @__PURE__ */ b.jsx(Th, { ...u, children: a })
|
|
11497
11502
|
]
|
|
11498
11503
|
}
|
|
11499
11504
|
);
|
|
11500
11505
|
}
|
|
11501
|
-
const
|
|
11506
|
+
const o4 = ({
|
|
11502
11507
|
to: t,
|
|
11503
11508
|
children: e,
|
|
11504
11509
|
tooltipProps: n,
|
|
11505
11510
|
"data-testid": r
|
|
11506
11511
|
}) => {
|
|
11507
|
-
const { className: l, palette: i, theme: o } = Fe(), a = n ? /* @__PURE__ */ b.jsx(
|
|
11508
|
-
"--text-emphasis-highlight": o === ze.CUSTOM_DARK ?
|
|
11512
|
+
const { className: l, palette: i, theme: o } = Fe(), a = n ? /* @__PURE__ */ b.jsx(Bh, { delay: 50, closeDelay: 75, ...n, children: e }) : e, u = {
|
|
11513
|
+
"--text-emphasis-highlight": o === ze.CUSTOM_DARK ? Dt(i.SECONDARY.SECONDARY_LIGHT).alpha(0.7).css() : Dt(Nc.PRIMARY).alpha(0.5).css()
|
|
11509
11514
|
};
|
|
11510
11515
|
if (t) {
|
|
11511
11516
|
const s = Lr(t);
|
|
@@ -11546,7 +11551,7 @@ const ah = ({
|
|
|
11546
11551
|
}
|
|
11547
11552
|
);
|
|
11548
11553
|
};
|
|
11549
|
-
function
|
|
11554
|
+
function Ah({
|
|
11550
11555
|
amplitude: t,
|
|
11551
11556
|
isDisabled: e,
|
|
11552
11557
|
isPlayed: n,
|
|
@@ -11614,8 +11619,8 @@ function A4({
|
|
|
11614
11619
|
}
|
|
11615
11620
|
);
|
|
11616
11621
|
}
|
|
11617
|
-
const
|
|
11618
|
-
function
|
|
11622
|
+
const Kh = _h(100);
|
|
11623
|
+
function a4({
|
|
11619
11624
|
data: t,
|
|
11620
11625
|
resolution: e = 2,
|
|
11621
11626
|
startDuration: n,
|
|
@@ -11628,11 +11633,11 @@ function uh({
|
|
|
11628
11633
|
"data-testid": s
|
|
11629
11634
|
}) {
|
|
11630
11635
|
var R;
|
|
11631
|
-
const { className: c, palette: d, theme: f } = Fe(), p = M(null), [m, $] = j([]), [g, E] = j(null), [S, y] = j(!1), [k, C] = j(!1), P = t ||
|
|
11636
|
+
const { className: c, palette: d, theme: f } = Fe(), p = M(null), [m, $] = j([]), [g, E] = j(null), [S, y] = j(!1), [k, C] = j(!1), P = t || Kh, _ = u || (f === "custom-dark" ? d.SECONDARY.SECONDARY_SUPER_LIGHT : void 0), v = e;
|
|
11632
11637
|
L(() => {
|
|
11633
11638
|
if (!p.current) return;
|
|
11634
11639
|
const D = (Z) => {
|
|
11635
|
-
const ue = Math.floor(Z / (e + v)), fe =
|
|
11640
|
+
const ue = Math.floor(Z / (e + v)), fe = Fh(P, ue);
|
|
11636
11641
|
$(fe);
|
|
11637
11642
|
}, z = p.current.clientWidth;
|
|
11638
11643
|
D(z);
|
|
@@ -11701,7 +11706,7 @@ function uh({
|
|
|
11701
11706
|
m.map((D, z) => {
|
|
11702
11707
|
const F = z / m.length * o, Z = n !== void 0 && r !== void 0 && (F < n || F > r), ue = l === 0 ? !1 : F <= l, fe = g !== null && F <= g;
|
|
11703
11708
|
return /* @__PURE__ */ b.jsx(
|
|
11704
|
-
|
|
11709
|
+
Ah,
|
|
11705
11710
|
{
|
|
11706
11711
|
amplitude: D,
|
|
11707
11712
|
isDisabled: Z,
|
|
@@ -11753,29 +11758,29 @@ function mi({
|
|
|
11753
11758
|
`proton-Waveform__timestamp--${t}`
|
|
11754
11759
|
),
|
|
11755
11760
|
style: { backgroundColor: e },
|
|
11756
|
-
children:
|
|
11761
|
+
children: Mh(n)
|
|
11757
11762
|
}
|
|
11758
11763
|
);
|
|
11759
11764
|
}
|
|
11760
|
-
function
|
|
11765
|
+
function Mh(t) {
|
|
11761
11766
|
const e = Math.floor(t / 60), n = Math.floor(t % 60);
|
|
11762
11767
|
return `${e}:${n < 10 ? "0" : ""}${n.toFixed(0)}`;
|
|
11763
11768
|
}
|
|
11764
|
-
function
|
|
11769
|
+
function Fh(t, e) {
|
|
11765
11770
|
const n = t.length, r = n / e, l = new Array(e).fill(0).map((i, o) => {
|
|
11766
11771
|
const a = o * r, u = Math.floor(a), s = Math.min(u + 1, n - 1), c = a - u;
|
|
11767
11772
|
return t[u] * (1 - c) + t[s] * c;
|
|
11768
11773
|
});
|
|
11769
|
-
return
|
|
11774
|
+
return Ih(l);
|
|
11770
11775
|
}
|
|
11771
|
-
function
|
|
11776
|
+
function Ih(t) {
|
|
11772
11777
|
const e = Math.min(...t), n = Math.max(...t);
|
|
11773
11778
|
return t.map((r) => {
|
|
11774
11779
|
const l = (r - e) / (n - e);
|
|
11775
11780
|
return Math.max(l * 0.8 + 0.1, 0.1);
|
|
11776
11781
|
});
|
|
11777
11782
|
}
|
|
11778
|
-
function
|
|
11783
|
+
function _h(t) {
|
|
11779
11784
|
return Array.from({ length: t }, (e, n) => {
|
|
11780
11785
|
const l = n / (t - 1) * 6 * 2 * Math.PI - Math.PI / 2;
|
|
11781
11786
|
return Math.sin(l) * 0.5 + 0.5;
|
|
@@ -11783,35 +11788,35 @@ function _4(t) {
|
|
|
11783
11788
|
}
|
|
11784
11789
|
export {
|
|
11785
11790
|
Us as ActionMenu,
|
|
11786
|
-
|
|
11787
|
-
|
|
11791
|
+
Yh as Badge,
|
|
11792
|
+
Gh as BadgeVariants,
|
|
11788
11793
|
Ue as Banner,
|
|
11789
11794
|
Ys as Button,
|
|
11790
11795
|
Cv as ButtonGroup,
|
|
11791
|
-
|
|
11792
|
-
|
|
11793
|
-
|
|
11794
|
-
|
|
11795
|
-
|
|
11796
|
+
c4 as COLORS,
|
|
11797
|
+
l4 as Cell,
|
|
11798
|
+
r4 as Column,
|
|
11799
|
+
qh as Dialog,
|
|
11800
|
+
Xh as Icon,
|
|
11796
11801
|
Dv as Input,
|
|
11797
11802
|
ol as Popover,
|
|
11798
|
-
|
|
11799
|
-
|
|
11800
|
-
|
|
11801
|
-
|
|
11802
|
-
|
|
11803
|
-
|
|
11804
|
-
|
|
11803
|
+
Qh as ResponsiveMenuTrigger,
|
|
11804
|
+
t4 as ResponsiveSelect,
|
|
11805
|
+
Wh as Row,
|
|
11806
|
+
Zh as SearchInput,
|
|
11807
|
+
jh as Section,
|
|
11808
|
+
e4 as Select,
|
|
11809
|
+
n4 as Switch,
|
|
11805
11810
|
ze as THEMES,
|
|
11806
|
-
|
|
11807
|
-
|
|
11808
|
-
|
|
11809
|
-
|
|
11810
|
-
|
|
11811
|
-
|
|
11812
|
-
|
|
11813
|
-
|
|
11814
|
-
|
|
11811
|
+
i4 as Table,
|
|
11812
|
+
Hh as TableBody,
|
|
11813
|
+
Vh as TableHeader,
|
|
11814
|
+
o4 as TextEmphasis,
|
|
11815
|
+
Uh as ThemeProvider,
|
|
11816
|
+
Th as Tooltip,
|
|
11817
|
+
Bh as TooltipTrigger,
|
|
11818
|
+
a4 as Waveform,
|
|
11819
|
+
Jh as usePopoverTrigger,
|
|
11815
11820
|
Fe as useTheme
|
|
11816
11821
|
};
|
|
11817
11822
|
//# sourceMappingURL=index.es.js.map
|