@protonradio/proton-ui 0.7.21 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +73 -73
- package/dist/colors-BdogYmJi.js.map +1 -1
- package/dist/colors-Dwh4VIMR.mjs.map +1 -1
- package/dist/constants.cjs.js.map +1 -1
- package/dist/constants.es.js.map +1 -1
- package/dist/icons.svg +10 -10
- package/dist/index.cjs.js +7 -7
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +8 -4
- package/dist/index.es.js +383 -380
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/{utils-Bc2wVuvD.mjs → utils-CJd9wFM9.mjs} +125 -134
- package/dist/utils-CJd9wFM9.mjs.map +1 -0
- package/dist/utils-CUykmxAN.js +2 -0
- package/dist/utils-CUykmxAN.js.map +1 -0
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/utils.es.js +1 -1
- package/package.json +91 -91
- package/dist/utils-BUwoPI1e.js +0 -2
- package/dist/utils-BUwoPI1e.js.map +0 -1
- package/dist/utils-Bc2wVuvD.mjs.map +0 -1
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import A, { useRef as M, useCallback as X, useState as z, useContext as Y, useEffect as L, createContext as Q, useMemo as V, useLayoutEffect as Kc, createElement as bi, isValidElement as Mc, forwardRef as dt, cloneElement as Ic } from "react";
|
|
2
2
|
import Cn, { flushSync as Fc, createPortal as gi } from "react-dom";
|
|
3
|
-
import { e as W, i as Nr, h as yi, a as _c, D as en, t as El } from "./utils-
|
|
3
|
+
import { e as W, i as Nr, h as yi, a as _c, D as en, t as El } from "./utils-CJd9wFM9.mjs";
|
|
4
4
|
import { THEMES as Pt, BREAKPOINTS as $i } from "./constants.es.js";
|
|
5
5
|
import { transparentize as Gn, parseToRgba as Rc } from "color2k";
|
|
6
6
|
import { G as ge, S as tn, W as nn, D as rn } from "./colors-Dwh4VIMR.mjs";
|
|
@@ -50,7 +50,7 @@ function Lc() {
|
|
|
50
50
|
return typeof K == "function" ? K : null;
|
|
51
51
|
}
|
|
52
52
|
var C = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
53
|
-
function
|
|
53
|
+
function S(h) {
|
|
54
54
|
{
|
|
55
55
|
for (var K = arguments.length, _ = new Array(K > 1 ? K - 1 : 0), j = 1; j < K; j++)
|
|
56
56
|
_[j - 1] = arguments[j];
|
|
@@ -67,16 +67,16 @@ function Lc() {
|
|
|
67
67
|
ee.unshift("Warning: " + K), Function.prototype.apply.call(console[h], console, ee);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
var D = !1,
|
|
70
|
+
var D = !1, P = !1, k = !1, R = !1, v = !1, B;
|
|
71
71
|
B = Symbol.for("react.module.reference");
|
|
72
|
-
function
|
|
73
|
-
return !!(typeof h == "string" || typeof h == "function" || h === r || h === i || v || h === l || h === s || h === c || R || h === p || D ||
|
|
72
|
+
function E(h) {
|
|
73
|
+
return !!(typeof h == "string" || typeof h == "function" || h === r || h === i || v || h === l || h === s || h === c || R || h === p || D || P || k || typeof h == "object" && h !== null && (h.$$typeof === f || h.$$typeof === d || h.$$typeof === o || h.$$typeof === a || h.$$typeof === u || // This needs to include all possible module reference object
|
|
74
74
|
// types supported by any Flight configuration anywhere since
|
|
75
75
|
// we don't know which Flight build this will end up being used
|
|
76
76
|
// with.
|
|
77
77
|
h.$$typeof === B || h.getModuleId !== void 0));
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function w(h, K, _) {
|
|
80
80
|
var j = h.displayName;
|
|
81
81
|
if (j)
|
|
82
82
|
return j;
|
|
@@ -89,7 +89,7 @@ function Lc() {
|
|
|
89
89
|
function x(h) {
|
|
90
90
|
if (h == null)
|
|
91
91
|
return null;
|
|
92
|
-
if (typeof h.tag == "number" &&
|
|
92
|
+
if (typeof h.tag == "number" && S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof h == "function")
|
|
93
93
|
return h.displayName || h.name || null;
|
|
94
94
|
if (typeof h == "string")
|
|
95
95
|
return h;
|
|
@@ -116,7 +116,7 @@ function Lc() {
|
|
|
116
116
|
var _ = h;
|
|
117
117
|
return I(_._context) + ".Provider";
|
|
118
118
|
case u:
|
|
119
|
-
return
|
|
119
|
+
return w(h, h.render, "ForwardRef");
|
|
120
120
|
case d:
|
|
121
121
|
var j = h.displayName || null;
|
|
122
122
|
return j !== null ? j : x(h.type) || "Memo";
|
|
@@ -190,7 +190,7 @@ function Lc() {
|
|
|
190
190
|
})
|
|
191
191
|
});
|
|
192
192
|
}
|
|
193
|
-
T < 0 &&
|
|
193
|
+
T < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
196
|
var Se = C.ReactCurrentDispatcher, Ge;
|
|
@@ -342,7 +342,7 @@ function Lc() {
|
|
|
342
342
|
} catch (le) {
|
|
343
343
|
G = le;
|
|
344
344
|
}
|
|
345
|
-
G && !(G instanceof Error) && (Qt(Z),
|
|
345
|
+
G && !(G instanceof Error) && (Qt(Z), S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", j || "React class", _, q, typeof G), Qt(null)), G instanceof Error && !(G.message in sl) && (sl[G.message] = !0, Qt(Z), S("Failed %s type: %s", _, G.message), Qt(null));
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
348
|
}
|
|
@@ -368,7 +368,7 @@ function Lc() {
|
|
|
368
368
|
}
|
|
369
369
|
function fl(h) {
|
|
370
370
|
if (pc(h))
|
|
371
|
-
return
|
|
371
|
+
return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", fc(h)), dl(h);
|
|
372
372
|
}
|
|
373
373
|
var Kt = C.ReactCurrentOwner, vc = {
|
|
374
374
|
key: !0,
|
|
@@ -396,13 +396,13 @@ function Lc() {
|
|
|
396
396
|
function bc(h, K) {
|
|
397
397
|
if (typeof h.ref == "string" && Kt.current && K && Kt.current.stateNode !== K) {
|
|
398
398
|
var _ = x(Kt.current.type);
|
|
399
|
-
jn[_] || (
|
|
399
|
+
jn[_] || (S('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', x(Kt.current.type), h.ref), jn[_] = !0);
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
402
|
function gc(h, K) {
|
|
403
403
|
{
|
|
404
404
|
var _ = function() {
|
|
405
|
-
pl || (pl = !0,
|
|
405
|
+
pl || (pl = !0, S("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", K));
|
|
406
406
|
};
|
|
407
407
|
_.isReactWarning = !0, Object.defineProperty(h, "key", {
|
|
408
408
|
get: _,
|
|
@@ -413,7 +413,7 @@ function Lc() {
|
|
|
413
413
|
function yc(h, K) {
|
|
414
414
|
{
|
|
415
415
|
var _ = function() {
|
|
416
|
-
vl || (vl = !0,
|
|
416
|
+
vl || (vl = !0, S("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", K));
|
|
417
417
|
};
|
|
418
418
|
_.isReactWarning = !0, Object.defineProperty(h, "ref", {
|
|
419
419
|
get: _,
|
|
@@ -519,7 +519,7 @@ Check the top-level render call using <` + _ + ">.");
|
|
|
519
519
|
return;
|
|
520
520
|
bl[_] = !0;
|
|
521
521
|
var j = "";
|
|
522
|
-
h && h._owner && h._owner !== Vn.current && (j = " It was passed a child from " + x(h._owner.type) + "."), bt(h),
|
|
522
|
+
h && h._owner && h._owner !== Vn.current && (j = " It was passed a child from " + x(h._owner.type) + "."), bt(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.', _, j), bt(null);
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
525
|
function yl(h, K) {
|
|
@@ -561,9 +561,9 @@ Check the top-level render call using <` + _ + ">.");
|
|
|
561
561
|
} else if (K.PropTypes !== void 0 && !Hn) {
|
|
562
562
|
Hn = !0;
|
|
563
563
|
var Z = x(K);
|
|
564
|
-
|
|
564
|
+
S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Z || "Unknown");
|
|
565
565
|
}
|
|
566
|
-
typeof K.getDefaultProps == "function" && !K.getDefaultProps.isReactClassApproved &&
|
|
566
|
+
typeof K.getDefaultProps == "function" && !K.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
567
567
|
}
|
|
568
568
|
}
|
|
569
569
|
function wc(h) {
|
|
@@ -571,24 +571,24 @@ Check the top-level render call using <` + _ + ">.");
|
|
|
571
571
|
for (var K = Object.keys(h.props), _ = 0; _ < K.length; _++) {
|
|
572
572
|
var j = K[_];
|
|
573
573
|
if (j !== "children" && j !== "key") {
|
|
574
|
-
bt(h),
|
|
574
|
+
bt(h), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", j), bt(null);
|
|
575
575
|
break;
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
|
-
h.ref !== null && (bt(h),
|
|
578
|
+
h.ref !== null && (bt(h), S("Invalid attribute `ref` supplied to `React.Fragment`."), bt(null));
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
581
|
var $l = {};
|
|
582
582
|
function xl(h, K, _, j, Z, ee) {
|
|
583
583
|
{
|
|
584
|
-
var q =
|
|
584
|
+
var q = E(h);
|
|
585
585
|
if (!q) {
|
|
586
586
|
var G = "";
|
|
587
587
|
(h === void 0 || typeof h == "object" && h !== null && Object.keys(h).length === 0) && (G += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
588
588
|
var pe = Ec();
|
|
589
589
|
pe ? G += pe : G += ml();
|
|
590
590
|
var le;
|
|
591
|
-
h === null ? le = "null" : zn(h) ? le = "array" : h !== void 0 && h.$$typeof === e ? (le = "<" + (x(h.type) || "Unknown") + " />", G = " Did you accidentally export a JSX literal instead of a component?") : le = typeof h,
|
|
591
|
+
h === null ? le = "null" : zn(h) ? le = "array" : h !== void 0 && h.$$typeof === e ? (le = "<" + (x(h.type) || "Unknown") + " />", G = " Did you accidentally export a JSX literal instead of a component?") : le = typeof h, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", le, G);
|
|
592
592
|
}
|
|
593
593
|
var ae = xc(h, K, _, Z, ee);
|
|
594
594
|
if (ae == null)
|
|
@@ -602,7 +602,7 @@ Check the top-level render call using <` + _ + ">.");
|
|
|
602
602
|
yl(Ce[gt], h);
|
|
603
603
|
Object.freeze && Object.freeze(Ce);
|
|
604
604
|
} else
|
|
605
|
-
|
|
605
|
+
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.");
|
|
606
606
|
else
|
|
607
607
|
yl(Ce, h);
|
|
608
608
|
}
|
|
@@ -612,7 +612,7 @@ Check the top-level render call using <` + _ + ">.");
|
|
|
612
612
|
}), Un = me.length > 0 ? "{key: someKey, " + me.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
613
613
|
if (!$l[lt + Un]) {
|
|
614
614
|
var Ac = me.length > 0 ? "{" + me.join(": ..., ") + ": ...}" : "{}";
|
|
615
|
-
|
|
615
|
+
S(`A props object containing a "key" prop is being spread into JSX:
|
|
616
616
|
let props = %s;
|
|
617
617
|
<%s {...props} />
|
|
618
618
|
React keys must be passed directly to JSX without using spread:
|
|
@@ -1353,79 +1353,79 @@ function ze(t) {
|
|
|
1353
1353
|
target: null,
|
|
1354
1354
|
isOverTarget: !1,
|
|
1355
1355
|
pointerType: null
|
|
1356
|
-
}), { addGlobalListener: g, removeAllGlobalListeners: C } = Pi(),
|
|
1357
|
-
let
|
|
1358
|
-
if (o ||
|
|
1359
|
-
let
|
|
1360
|
-
if (
|
|
1356
|
+
}), { addGlobalListener: g, removeAllGlobalListeners: C } = Pi(), S = oe((v, B) => {
|
|
1357
|
+
let E = y.current;
|
|
1358
|
+
if (o || E.didFirePressStart) return !1;
|
|
1359
|
+
let w = !0;
|
|
1360
|
+
if (E.isTriggeringEvent = !0, r) {
|
|
1361
1361
|
let I = new un("pressstart", B, v);
|
|
1362
|
-
r(I),
|
|
1362
|
+
r(I), w = I.shouldStopPropagation;
|
|
1363
1363
|
}
|
|
1364
|
-
return n && n(!0),
|
|
1365
|
-
}), $ = oe((v, B,
|
|
1366
|
-
let
|
|
1367
|
-
if (!
|
|
1368
|
-
|
|
1364
|
+
return n && n(!0), E.isTriggeringEvent = !1, E.didFirePressStart = !0, m(!0), w;
|
|
1365
|
+
}), $ = oe((v, B, E = !0) => {
|
|
1366
|
+
let w = y.current;
|
|
1367
|
+
if (!w.didFirePressStart) return !1;
|
|
1368
|
+
w.ignoreClickAfterPress = !0, w.didFirePressStart = !1, w.isTriggeringEvent = !0;
|
|
1369
1369
|
let I = !0;
|
|
1370
1370
|
if (l) {
|
|
1371
1371
|
let x = new un("pressend", B, v);
|
|
1372
1372
|
l(x), I = x.shouldStopPropagation;
|
|
1373
1373
|
}
|
|
1374
|
-
if (n && n(!1), m(!1), e &&
|
|
1374
|
+
if (n && n(!1), m(!1), e && E && !o) {
|
|
1375
1375
|
let x = new un("press", B, v);
|
|
1376
1376
|
e(x), I && (I = x.shouldStopPropagation);
|
|
1377
1377
|
}
|
|
1378
|
-
return
|
|
1378
|
+
return w.isTriggeringEvent = !1, I;
|
|
1379
1379
|
}), D = oe((v, B) => {
|
|
1380
|
-
let
|
|
1380
|
+
let E = y.current;
|
|
1381
1381
|
if (o) return !1;
|
|
1382
1382
|
if (i) {
|
|
1383
|
-
|
|
1384
|
-
let
|
|
1385
|
-
return i(
|
|
1383
|
+
E.isTriggeringEvent = !0;
|
|
1384
|
+
let w = new un("pressup", B, v);
|
|
1385
|
+
return i(w), E.isTriggeringEvent = !1, w.shouldStopPropagation;
|
|
1386
1386
|
}
|
|
1387
1387
|
return !0;
|
|
1388
|
-
}),
|
|
1388
|
+
}), P = oe((v) => {
|
|
1389
1389
|
let B = y.current;
|
|
1390
1390
|
B.isPressed && B.target && (B.isOverTarget && B.pointerType != null && $(Fe(B.target, v), B.pointerType, !1), B.isPressed = !1, B.isOverTarget = !1, B.activePointerId = null, B.pointerType = null, C(), c || on(B.target));
|
|
1391
1391
|
}), k = oe((v) => {
|
|
1392
|
-
s &&
|
|
1392
|
+
s && P(v);
|
|
1393
1393
|
}), R = V(() => {
|
|
1394
1394
|
let v = y.current, B = {
|
|
1395
|
-
onKeyDown(
|
|
1396
|
-
if (Xn(
|
|
1395
|
+
onKeyDown(w) {
|
|
1396
|
+
if (Xn(w.nativeEvent, w.currentTarget) && w.currentTarget.contains(w.target)) {
|
|
1397
1397
|
var I;
|
|
1398
|
-
Kl(
|
|
1398
|
+
Kl(w.target, w.key) && w.preventDefault();
|
|
1399
1399
|
let x = !0;
|
|
1400
|
-
if (!v.isPressed && !
|
|
1401
|
-
v.target =
|
|
1402
|
-
let F =
|
|
1400
|
+
if (!v.isPressed && !w.repeat) {
|
|
1401
|
+
v.target = w.currentTarget, v.isPressed = !0, x = S(w, "keyboard");
|
|
1402
|
+
let F = w.currentTarget, T = (U) => {
|
|
1403
1403
|
Xn(U, F) && !U.repeat && F.contains(U.target) && v.target && D(Fe(v.target, U), "keyboard");
|
|
1404
1404
|
};
|
|
1405
|
-
g(ne(
|
|
1405
|
+
g(ne(w.currentTarget), "keyup", Ie(T, E), !0);
|
|
1406
1406
|
}
|
|
1407
|
-
x &&
|
|
1408
|
-
} else
|
|
1407
|
+
x && w.stopPropagation(), w.metaKey && tt() && ((I = v.metaKeyEvents) === null || I === void 0 || I.set(w.key, w.nativeEvent));
|
|
1408
|
+
} else w.key === "Meta" && (v.metaKeyEvents = /* @__PURE__ */ new Map());
|
|
1409
1409
|
},
|
|
1410
|
-
onClick(
|
|
1411
|
-
if (!(
|
|
1410
|
+
onClick(w) {
|
|
1411
|
+
if (!(w && !w.currentTarget.contains(w.target)) && w && w.button === 0 && !v.isTriggeringEvent && !ut.isOpening) {
|
|
1412
1412
|
let I = !0;
|
|
1413
|
-
if (o &&
|
|
1414
|
-
!o && !u && Le(
|
|
1415
|
-
let x =
|
|
1413
|
+
if (o && w.preventDefault(), !v.ignoreClickAfterPress && !v.ignoreEmulatedMouseEvents && !v.isPressed && (v.pointerType === "virtual" || pr(w.nativeEvent))) {
|
|
1414
|
+
!o && !u && Le(w.currentTarget);
|
|
1415
|
+
let x = S(w, "virtual"), F = D(w, "virtual"), T = $(w, "virtual");
|
|
1416
1416
|
I = x && F && T;
|
|
1417
1417
|
}
|
|
1418
|
-
v.ignoreEmulatedMouseEvents = !1, v.ignoreClickAfterPress = !1, I &&
|
|
1418
|
+
v.ignoreEmulatedMouseEvents = !1, v.ignoreClickAfterPress = !1, I && w.stopPropagation();
|
|
1419
1419
|
}
|
|
1420
1420
|
}
|
|
1421
|
-
},
|
|
1421
|
+
}, E = (w) => {
|
|
1422
1422
|
var I;
|
|
1423
|
-
if (v.isPressed && v.target && Xn(
|
|
1423
|
+
if (v.isPressed && v.target && Xn(w, v.target)) {
|
|
1424
1424
|
var x;
|
|
1425
|
-
Kl(
|
|
1426
|
-
let T =
|
|
1427
|
-
$(Fe(v.target,
|
|
1428
|
-
} else if (
|
|
1425
|
+
Kl(w.target, w.key) && w.preventDefault();
|
|
1426
|
+
let T = w.target;
|
|
1427
|
+
$(Fe(v.target, w), "keyboard", v.target.contains(T)), C(), w.key !== "Enter" && jr(v.target) && v.target.contains(T) && !w[Al] && (w[Al] = !0, ut(v.target, w, !1)), v.isPressed = !1, (x = v.metaKeyEvents) === null || x === void 0 || x.delete(w.key);
|
|
1428
|
+
} else if (w.key === "Meta" && (!((I = v.metaKeyEvents) === null || I === void 0) && I.size)) {
|
|
1429
1429
|
var F;
|
|
1430
1430
|
let T = v.metaKeyEvents;
|
|
1431
1431
|
v.metaKeyEvents = void 0;
|
|
@@ -1441,14 +1441,14 @@ function ze(t) {
|
|
|
1441
1441
|
}
|
|
1442
1442
|
Zn(T.currentTarget) && T.preventDefault(), v.pointerType = T.pointerType;
|
|
1443
1443
|
let U = !0;
|
|
1444
|
-
v.isPressed || (v.isPressed = !0, v.isOverTarget = !0, v.activePointerId = T.pointerId, v.target = T.currentTarget, !o && !u && Le(T.currentTarget), c || kl(v.target), U =
|
|
1444
|
+
v.isPressed || (v.isPressed = !0, v.isOverTarget = !0, v.activePointerId = T.pointerId, v.target = T.currentTarget, !o && !u && Le(T.currentTarget), c || kl(v.target), U = S(T, v.pointerType), g(ne(T.currentTarget), "pointermove", w, !1), g(ne(T.currentTarget), "pointerup", I, !1), g(ne(T.currentTarget), "pointercancel", F, !1)), U && T.stopPropagation();
|
|
1445
1445
|
}, B.onMouseDown = (T) => {
|
|
1446
1446
|
T.currentTarget.contains(T.target) && T.button === 0 && (Zn(T.currentTarget) && T.preventDefault(), T.stopPropagation());
|
|
1447
1447
|
}, B.onPointerUp = (T) => {
|
|
1448
1448
|
!T.currentTarget.contains(T.target) || v.pointerType === "virtual" || T.button === 0 && yt(T, T.currentTarget) && D(T, v.pointerType || T.pointerType);
|
|
1449
1449
|
};
|
|
1450
|
-
let
|
|
1451
|
-
T.pointerId === v.activePointerId && (v.target && yt(T, v.target) ? !v.isOverTarget && v.pointerType != null && (v.isOverTarget = !0,
|
|
1450
|
+
let w = (T) => {
|
|
1451
|
+
T.pointerId === v.activePointerId && (v.target && yt(T, v.target) ? !v.isOverTarget && v.pointerType != null && (v.isOverTarget = !0, S(Fe(v.target, T), v.pointerType)) : v.target && v.isOverTarget && v.pointerType != null && (v.isOverTarget = !1, $(Fe(v.target, T), v.pointerType, !1), k(T)));
|
|
1452
1452
|
}, I = (T) => {
|
|
1453
1453
|
T.pointerId === v.activePointerId && v.isPressed && T.button === 0 && v.target && (yt(T, v.target) && v.pointerType != null ? $(Fe(v.target, T), v.pointerType) : v.isOverTarget && v.pointerType != null && $(Fe(v.target, T), v.pointerType, !1), v.isPressed = !1, v.isOverTarget = !1, v.activePointerId = null, v.pointerType = null, C(), c || on(v.target), "ontouchend" in v.target && T.pointerType !== "mouse" && g(v.target, "touchend", x, {
|
|
1454
1454
|
once: !0
|
|
@@ -1456,10 +1456,10 @@ function ze(t) {
|
|
|
1456
1456
|
}, x = (T) => {
|
|
1457
1457
|
Bi(T.currentTarget) && T.preventDefault();
|
|
1458
1458
|
}, F = (T) => {
|
|
1459
|
-
|
|
1459
|
+
P(T);
|
|
1460
1460
|
};
|
|
1461
1461
|
B.onDragStart = (T) => {
|
|
1462
|
-
T.currentTarget.contains(T.target) &&
|
|
1462
|
+
T.currentTarget.contains(T.target) && P(T);
|
|
1463
1463
|
};
|
|
1464
1464
|
} else {
|
|
1465
1465
|
B.onMouseDown = (x) => {
|
|
@@ -1468,11 +1468,11 @@ function ze(t) {
|
|
|
1468
1468
|
x.stopPropagation();
|
|
1469
1469
|
return;
|
|
1470
1470
|
}
|
|
1471
|
-
v.isPressed = !0, v.isOverTarget = !0, v.target = x.currentTarget, v.pointerType = pr(x.nativeEvent) ? "virtual" : "mouse", !o && !u && Le(x.currentTarget),
|
|
1471
|
+
v.isPressed = !0, v.isOverTarget = !0, v.target = x.currentTarget, v.pointerType = pr(x.nativeEvent) ? "virtual" : "mouse", !o && !u && Le(x.currentTarget), S(x, v.pointerType) && x.stopPropagation(), g(ne(x.currentTarget), "mouseup", w, !1);
|
|
1472
1472
|
}, B.onMouseEnter = (x) => {
|
|
1473
1473
|
if (!x.currentTarget.contains(x.target)) return;
|
|
1474
1474
|
let F = !0;
|
|
1475
|
-
v.isPressed && !v.ignoreEmulatedMouseEvents && v.pointerType != null && (v.isOverTarget = !0, F =
|
|
1475
|
+
v.isPressed && !v.ignoreEmulatedMouseEvents && v.pointerType != null && (v.isOverTarget = !0, F = S(x, v.pointerType)), F && x.stopPropagation();
|
|
1476
1476
|
}, B.onMouseLeave = (x) => {
|
|
1477
1477
|
if (!x.currentTarget.contains(x.target)) return;
|
|
1478
1478
|
let F = !0;
|
|
@@ -1480,7 +1480,7 @@ function ze(t) {
|
|
|
1480
1480
|
}, B.onMouseUp = (x) => {
|
|
1481
1481
|
x.currentTarget.contains(x.target) && !v.ignoreEmulatedMouseEvents && x.button === 0 && D(x, v.pointerType || "mouse");
|
|
1482
1482
|
};
|
|
1483
|
-
let
|
|
1483
|
+
let w = (x) => {
|
|
1484
1484
|
if (x.button === 0) {
|
|
1485
1485
|
if (v.isPressed = !1, C(), v.ignoreEmulatedMouseEvents) {
|
|
1486
1486
|
v.ignoreEmulatedMouseEvents = !1;
|
|
@@ -1493,7 +1493,7 @@ function ze(t) {
|
|
|
1493
1493
|
if (!x.currentTarget.contains(x.target)) return;
|
|
1494
1494
|
let F = wd(x.nativeEvent);
|
|
1495
1495
|
if (!F) return;
|
|
1496
|
-
v.activePointerId = F.identifier, v.ignoreEmulatedMouseEvents = !0, v.isOverTarget = !0, v.isPressed = !0, v.target = x.currentTarget, v.pointerType = "touch", !o && !u && Le(x.currentTarget), c || kl(v.target),
|
|
1496
|
+
v.activePointerId = F.identifier, v.ignoreEmulatedMouseEvents = !0, v.isOverTarget = !0, v.isPressed = !0, v.target = x.currentTarget, v.pointerType = "touch", !o && !u && Le(x.currentTarget), c || kl(v.target), S(Ye(v.target, x), v.pointerType) && x.stopPropagation(), g(De(x.currentTarget), "scroll", I, !0);
|
|
1497
1497
|
}, B.onTouchMove = (x) => {
|
|
1498
1498
|
if (!x.currentTarget.contains(x.target)) return;
|
|
1499
1499
|
if (!v.isPressed) {
|
|
@@ -1501,7 +1501,7 @@ function ze(t) {
|
|
|
1501
1501
|
return;
|
|
1502
1502
|
}
|
|
1503
1503
|
let F = Bl(x.nativeEvent, v.activePointerId), T = !0;
|
|
1504
|
-
F && yt(F, x.currentTarget) ? !v.isOverTarget && v.pointerType != null && (v.isOverTarget = !0, T =
|
|
1504
|
+
F && yt(F, x.currentTarget) ? !v.isOverTarget && v.pointerType != null && (v.isOverTarget = !0, T = S(Ye(v.target, x), v.pointerType)) : v.isOverTarget && v.pointerType != null && (v.isOverTarget = !1, T = $(Ye(v.target, x), v.pointerType, !1), k(Ye(v.target, x))), T && x.stopPropagation();
|
|
1505
1505
|
}, B.onTouchEnd = (x) => {
|
|
1506
1506
|
if (!x.currentTarget.contains(x.target)) return;
|
|
1507
1507
|
if (!v.isPressed) {
|
|
@@ -1511,10 +1511,10 @@ function ze(t) {
|
|
|
1511
1511
|
let F = Bl(x.nativeEvent, v.activePointerId), T = !0;
|
|
1512
1512
|
F && yt(F, x.currentTarget) && v.pointerType != null ? (D(Ye(v.target, x), v.pointerType), T = $(Ye(v.target, x), v.pointerType)) : v.isOverTarget && v.pointerType != null && (T = $(Ye(v.target, x), v.pointerType, !1)), T && x.stopPropagation(), v.isPressed = !1, v.activePointerId = null, v.isOverTarget = !1, v.ignoreEmulatedMouseEvents = !0, v.target && !c && on(v.target), C();
|
|
1513
1513
|
}, B.onTouchCancel = (x) => {
|
|
1514
|
-
x.currentTarget.contains(x.target) && (x.stopPropagation(), v.isPressed &&
|
|
1514
|
+
x.currentTarget.contains(x.target) && (x.stopPropagation(), v.isPressed && P(Ye(v.target, x)));
|
|
1515
1515
|
};
|
|
1516
1516
|
let I = (x) => {
|
|
1517
|
-
v.isPressed && x.target.contains(v.target) &&
|
|
1517
|
+
v.isPressed && x.target.contains(v.target) && P({
|
|
1518
1518
|
currentTarget: v.target,
|
|
1519
1519
|
shiftKey: !1,
|
|
1520
1520
|
ctrlKey: !1,
|
|
@@ -1523,7 +1523,7 @@ function ze(t) {
|
|
|
1523
1523
|
});
|
|
1524
1524
|
};
|
|
1525
1525
|
B.onDragStart = (x) => {
|
|
1526
|
-
x.currentTarget.contains(x.target) &&
|
|
1526
|
+
x.currentTarget.contains(x.target) && P(x);
|
|
1527
1527
|
};
|
|
1528
1528
|
}
|
|
1529
1529
|
return B;
|
|
@@ -1533,10 +1533,10 @@ function ze(t) {
|
|
|
1533
1533
|
u,
|
|
1534
1534
|
C,
|
|
1535
1535
|
c,
|
|
1536
|
-
|
|
1536
|
+
P,
|
|
1537
1537
|
k,
|
|
1538
1538
|
$,
|
|
1539
|
-
|
|
1539
|
+
S,
|
|
1540
1540
|
D
|
|
1541
1541
|
]);
|
|
1542
1542
|
return L(() => () => {
|
|
@@ -2799,7 +2799,7 @@ function Fn(t, e) {
|
|
|
2799
2799
|
"aria-disabled": !r || n === "input" ? void 0 : r,
|
|
2800
2800
|
rel: n === "a" ? m : void 0
|
|
2801
2801
|
};
|
|
2802
|
-
let { pressProps: C, isPressed:
|
|
2802
|
+
let { pressProps: C, isPressed: S } = ze({
|
|
2803
2803
|
onPressStart: i,
|
|
2804
2804
|
onPressEnd: o,
|
|
2805
2805
|
onPressChange: u,
|
|
@@ -2814,14 +2814,14 @@ function Fn(t, e) {
|
|
|
2814
2814
|
labelable: !0
|
|
2815
2815
|
}));
|
|
2816
2816
|
return {
|
|
2817
|
-
isPressed:
|
|
2817
|
+
isPressed: S,
|
|
2818
2818
|
buttonProps: H(g, D, {
|
|
2819
2819
|
"aria-haspopup": t["aria-haspopup"],
|
|
2820
2820
|
"aria-expanded": t["aria-expanded"],
|
|
2821
2821
|
"aria-controls": t["aria-controls"],
|
|
2822
2822
|
"aria-pressed": t["aria-pressed"],
|
|
2823
|
-
onClick: (
|
|
2824
|
-
d && (d(
|
|
2823
|
+
onClick: (P) => {
|
|
2824
|
+
d && (d(P), console.warn("onClick is deprecated, please use onPress"));
|
|
2825
2825
|
}
|
|
2826
2826
|
})
|
|
2827
2827
|
};
|
|
@@ -2986,7 +2986,7 @@ function $f(t) {
|
|
|
2986
2986
|
l
|
|
2987
2987
|
]);
|
|
2988
2988
|
i != null && i.validationDetails.valid && (i = null);
|
|
2989
|
-
let c = Y(yf), d = V(() => r ? Array.isArray(r) ? r.flatMap((
|
|
2989
|
+
let c = Y(yf), d = V(() => r ? Array.isArray(r) ? r.flatMap((E) => Er(c[E])) : Er(c[r]) : [], [
|
|
2990
2990
|
c,
|
|
2991
2991
|
r
|
|
2992
2992
|
]), [f, p] = z(c), [m, y] = z(!1);
|
|
@@ -2994,21 +2994,21 @@ function $f(t) {
|
|
|
2994
2994
|
let g = V(() => jl(m ? [] : d), [
|
|
2995
2995
|
m,
|
|
2996
2996
|
d
|
|
2997
|
-
]), C = M(Ft), [
|
|
2997
|
+
]), C = M(Ft), [S, $] = z(Ft), D = M(Ft), P = () => {
|
|
2998
2998
|
if (!k) return;
|
|
2999
2999
|
R(!1);
|
|
3000
|
-
let
|
|
3001
|
-
er(
|
|
3000
|
+
let E = s || i || C.current;
|
|
3001
|
+
er(E, D.current) || (D.current = E, $(E));
|
|
3002
3002
|
}, [k, R] = z(!1);
|
|
3003
|
-
return L(
|
|
3003
|
+
return L(P), {
|
|
3004
3004
|
realtimeValidation: u || g || s || i || Ft,
|
|
3005
|
-
displayValidation: a === "native" ? u || g ||
|
|
3006
|
-
updateValidation(
|
|
3007
|
-
a === "aria" && !er(
|
|
3005
|
+
displayValidation: a === "native" ? u || g || S : u || g || s || i || S,
|
|
3006
|
+
updateValidation(E) {
|
|
3007
|
+
a === "aria" && !er(S, E) ? $(E) : C.current = E;
|
|
3008
3008
|
},
|
|
3009
3009
|
resetValidation() {
|
|
3010
|
-
let
|
|
3011
|
-
er(
|
|
3010
|
+
let E = Ft;
|
|
3011
|
+
er(E, D.current) || (D.current = E, $(E)), a === "native" && R(!1), y(!0);
|
|
3012
3012
|
},
|
|
3013
3013
|
commitValidation() {
|
|
3014
3014
|
a === "native" && R(!0), y(!0);
|
|
@@ -3044,19 +3044,19 @@ function Ef(t, e, n) {
|
|
|
3044
3044
|
!p && !m && console.warn("If you do not provide children, you must specify an aria-label for accessibility");
|
|
3045
3045
|
let { pressProps: y, isPressed: g } = ze({
|
|
3046
3046
|
isDisabled: r
|
|
3047
|
-
}), { pressProps: C, isPressed:
|
|
3047
|
+
}), { pressProps: C, isPressed: S } = ze({
|
|
3048
3048
|
isDisabled: r || l,
|
|
3049
3049
|
onPress() {
|
|
3050
3050
|
e.toggle();
|
|
3051
3051
|
}
|
|
3052
|
-
}), { focusableProps: $ } = Tt(t, n), D = H(y, $),
|
|
3052
|
+
}), { focusableProps: $ } = Tt(t, n), D = H(y, $), P = fe(t, {
|
|
3053
3053
|
labelable: !0
|
|
3054
3054
|
});
|
|
3055
3055
|
return Tn(n, e.isSelected, e.setSelected), {
|
|
3056
3056
|
labelProps: H(C, {
|
|
3057
3057
|
onClick: (k) => k.preventDefault()
|
|
3058
3058
|
}),
|
|
3059
|
-
inputProps: H(
|
|
3059
|
+
inputProps: H(P, {
|
|
3060
3060
|
"aria-invalid": d || c === "invalid" || void 0,
|
|
3061
3061
|
"aria-errormessage": t["aria-errormessage"],
|
|
3062
3062
|
"aria-controls": t["aria-controls"],
|
|
@@ -3071,7 +3071,7 @@ function Ef(t, e, n) {
|
|
|
3071
3071
|
...D
|
|
3072
3072
|
}),
|
|
3073
3073
|
isSelected: e.isSelected,
|
|
3074
|
-
isPressed: g ||
|
|
3074
|
+
isPressed: g || S,
|
|
3075
3075
|
isDisabled: r,
|
|
3076
3076
|
isReadOnly: l,
|
|
3077
3077
|
isInvalid: d || c === "invalid"
|
|
@@ -3176,7 +3176,7 @@ function Qi(t, e) {
|
|
|
3176
3176
|
let { inputElementType: n = "input", isDisabled: r = !1, isRequired: l = !1, isReadOnly: i = !1, type: o = "text", validationBehavior: a = "aria" } = t, [u, s] = rt(t.value, t.defaultValue || "", t.onChange), { focusableProps: c } = Tt(t, e), d = Ur({
|
|
3177
3177
|
...t,
|
|
3178
3178
|
value: u
|
|
3179
|
-
}), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: y, fieldProps: g, descriptionProps: C, errorMessageProps:
|
|
3179
|
+
}), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: y, fieldProps: g, descriptionProps: C, errorMessageProps: S } = Gr({
|
|
3180
3180
|
...t,
|
|
3181
3181
|
isInvalid: f,
|
|
3182
3182
|
errorMessage: t.errorMessage || p
|
|
@@ -3189,9 +3189,9 @@ function Qi(t, e) {
|
|
|
3189
3189
|
};
|
|
3190
3190
|
return Tn(e, u, s), Wr(t, d, e), L(() => {
|
|
3191
3191
|
if (e.current instanceof De(e.current).HTMLTextAreaElement) {
|
|
3192
|
-
let
|
|
3193
|
-
Object.defineProperty(
|
|
3194
|
-
get: () =>
|
|
3192
|
+
let P = e.current;
|
|
3193
|
+
Object.defineProperty(P, "defaultValue", {
|
|
3194
|
+
get: () => P.value,
|
|
3195
3195
|
set: () => {
|
|
3196
3196
|
},
|
|
3197
3197
|
configurable: !0
|
|
@@ -3212,7 +3212,7 @@ function Qi(t, e) {
|
|
|
3212
3212
|
"aria-autocomplete": t["aria-autocomplete"],
|
|
3213
3213
|
"aria-haspopup": t["aria-haspopup"],
|
|
3214
3214
|
value: u,
|
|
3215
|
-
onChange: (
|
|
3215
|
+
onChange: (P) => s(P.target.value),
|
|
3216
3216
|
autoComplete: t.autoComplete,
|
|
3217
3217
|
autoCapitalize: t.autoCapitalize,
|
|
3218
3218
|
maxLength: t.maxLength,
|
|
@@ -3237,7 +3237,7 @@ function Qi(t, e) {
|
|
|
3237
3237
|
...g
|
|
3238
3238
|
}),
|
|
3239
3239
|
descriptionProps: C,
|
|
3240
|
-
errorMessageProps:
|
|
3240
|
+
errorMessageProps: S,
|
|
3241
3241
|
isInvalid: f,
|
|
3242
3242
|
validationErrors: p,
|
|
3243
3243
|
validationDetails: m
|
|
@@ -3323,8 +3323,8 @@ function Ul(t) {
|
|
|
3323
3323
|
function tr(t, e, n, r, l, i, o, a, u, s) {
|
|
3324
3324
|
let { placement: c, crossPlacement: d, axis: f, crossAxis: p, size: m, crossSize: y } = r, g = {};
|
|
3325
3325
|
g[p] = t[p], d === "center" ? g[p] += (t[y] - n[y]) / 2 : d !== p && (g[p] += t[y] - n[y]), g[p] += i;
|
|
3326
|
-
const C = t[p] - n[y] + u + s,
|
|
3327
|
-
if (g[p] = vr(g[p], C,
|
|
3326
|
+
const C = t[p] - n[y] + u + s, S = t[p] + t[y] - u - s;
|
|
3327
|
+
if (g[p] = vr(g[p], C, S), c === f) {
|
|
3328
3328
|
const $ = a ? o[m] : e[eo[m]];
|
|
3329
3329
|
g[En[f]] = Math.floor($ - t[f] + l);
|
|
3330
3330
|
} else g[f] = Math.floor(t[f] + t[m] + l);
|
|
@@ -3343,22 +3343,22 @@ function Gl(t, e, n, r, l, i) {
|
|
|
3343
3343
|
return o === a ? Math.max(0, n[a] - t[a] - t.scroll[a] + e[a] - r[a] - r[En[a]] - l) : Math.max(0, t[u] + t[a] + t.scroll[a] - e[a] - n[a] - n[u] - r[a] - r[En[a]] - l);
|
|
3344
3344
|
}
|
|
3345
3345
|
function kf(t, e, n, r, l, i, o, a, u, s, c, d, f, p, m, y) {
|
|
3346
|
-
let g = Ul(t), { size: C, crossAxis:
|
|
3346
|
+
let g = Ul(t), { size: C, crossAxis: S, crossSize: $, placement: D, crossPlacement: P } = g, k = tr(e, a, n, g, c, d, s, f, m, y), R = c, v = Gl(a, s, e, l, i + c, g);
|
|
3347
3347
|
if (o && r[C] > v) {
|
|
3348
|
-
let xe = Ul(`${En[D]} ${
|
|
3348
|
+
let xe = Ul(`${En[D]} ${P}`), Be = tr(e, a, n, xe, c, d, s, f, m, y);
|
|
3349
3349
|
Gl(a, s, e, l, i + c, xe) > v && (g = xe, k = Be, R = c);
|
|
3350
3350
|
}
|
|
3351
3351
|
let B = "bottom";
|
|
3352
3352
|
g.axis === "top" ? g.placement === "top" ? B = "top" : g.placement === "bottom" && (B = "bottom") : g.crossAxis === "top" && (g.crossPlacement === "top" ? B = "bottom" : g.crossPlacement === "bottom" && (B = "top"));
|
|
3353
|
-
let
|
|
3354
|
-
k[
|
|
3355
|
-
let
|
|
3356
|
-
p && p <
|
|
3357
|
-
let I = {}, x = e[
|
|
3358
|
-
const F = m / 2 + y, T = Me[
|
|
3359
|
-
return I[
|
|
3353
|
+
let E = Wl(S, k[S], n[$], a, u, i, s);
|
|
3354
|
+
k[S] += E;
|
|
3355
|
+
let w = Df(k, a, s, f, l, i, n.height, B);
|
|
3356
|
+
p && p < w && (w = p), n.height = Math.min(n.height, w), k = tr(e, a, n, g, R, d, s, f, m, y), E = Wl(S, k[S], n[$], a, u, i, s), k[S] += E;
|
|
3357
|
+
let I = {}, x = e[S] + 0.5 * e[$] - k[S] - l[Me[S]];
|
|
3358
|
+
const F = m / 2 + y, T = Me[S] === "left" ? l.left + l.right : l.top + l.bottom, U = n[$] - T - m / 2 - y, N = e[S] + m / 2 - (k[S] + l[Me[S]]), ce = e[S] + e[$] - m / 2 - (k[S] + l[Me[S]]), ye = vr(x, N, ce);
|
|
3359
|
+
return I[S] = vr(ye, F, U), {
|
|
3360
3360
|
position: k,
|
|
3361
|
-
maxHeight:
|
|
3361
|
+
maxHeight: w,
|
|
3362
3362
|
arrowOffsetLeft: I.left,
|
|
3363
3363
|
arrowOffsetTop: I.top,
|
|
3364
3364
|
placement: g.placement
|
|
@@ -3372,10 +3372,10 @@ function Tf(t) {
|
|
|
3372
3372
|
let { marginTop: v, marginLeft: B } = window.getComputedStyle(n);
|
|
3373
3373
|
C.top += parseInt(v, 10) || 0, C.left += parseInt(B, 10) || 0;
|
|
3374
3374
|
}
|
|
3375
|
-
let
|
|
3376
|
-
|
|
3377
|
-
let D = wf(l),
|
|
3378
|
-
return p.tagName === "HTML" && a.tagName === "BODY" && (k.scroll.top = 0, k.scroll.left = 0), kf(e, C,
|
|
3375
|
+
let S = Dt(r), $ = Pf(r);
|
|
3376
|
+
S.width += $.left + $.right, S.height += $.top + $.bottom;
|
|
3377
|
+
let D = wf(l), P = Hl(a), k = Hl(p), R = a.tagName === "BODY" ? Dt(p) : Yl(p, a);
|
|
3378
|
+
return p.tagName === "HTML" && a.tagName === "BODY" && (k.scroll.top = 0, k.scroll.left = 0), kf(e, C, S, D, $, i, o, P, k, R, u, s, g, c, d, f);
|
|
3379
3379
|
}
|
|
3380
3380
|
function Dt(t) {
|
|
3381
3381
|
let { top: e, left: n, width: r, height: l } = t.getBoundingClientRect(), { scrollTop: i, scrollLeft: o, clientTop: a, clientLeft: u } = document.documentElement;
|
|
@@ -3437,7 +3437,7 @@ function Bf(t) {
|
|
|
3437
3437
|
}
|
|
3438
3438
|
let ie = typeof document < "u" && window.visualViewport;
|
|
3439
3439
|
function no(t) {
|
|
3440
|
-
let { direction: e } = He(), { arrowSize: n = 0, targetRef: r, overlayRef: l, scrollRef: i = l, placement: o = "bottom", containerPadding: a = 12, shouldFlip: u = !0, boundaryElement: s = typeof document < "u" ? document.body : null, offset: c = 0, crossOffset: d = 0, shouldUpdatePosition: f = !0, isOpen: p = !0, onClose: m, maxHeight: y, arrowBoundaryOffset: g = 0 } = t, [C,
|
|
3440
|
+
let { direction: e } = He(), { arrowSize: n = 0, targetRef: r, overlayRef: l, scrollRef: i = l, placement: o = "bottom", containerPadding: a = 12, shouldFlip: u = !0, boundaryElement: s = typeof document < "u" ? document.body : null, offset: c = 0, crossOffset: d = 0, shouldUpdatePosition: f = !0, isOpen: p = !0, onClose: m, maxHeight: y, arrowBoundaryOffset: g = 0 } = t, [C, S] = z({
|
|
3441
3441
|
position: {},
|
|
3442
3442
|
arrowOffsetLeft: void 0,
|
|
3443
3443
|
arrowOffsetTop: void 0,
|
|
@@ -3465,7 +3465,7 @@ function no(t) {
|
|
|
3465
3465
|
}, [
|
|
3466
3466
|
p
|
|
3467
3467
|
]);
|
|
3468
|
-
let
|
|
3468
|
+
let P = X(() => {
|
|
3469
3469
|
if (f === !1 || !p || !l.current || !r.current || !s || (ie == null ? void 0 : ie.scale) !== D.current) return;
|
|
3470
3470
|
let B = null;
|
|
3471
3471
|
if (i.current && i.current.contains(document.activeElement)) {
|
|
@@ -3475,12 +3475,12 @@ function no(t) {
|
|
|
3475
3475
|
offset: F.top - T.top
|
|
3476
3476
|
}, B.offset > T.height / 2 && (B.type = "bottom", B.offset = F.bottom - T.bottom);
|
|
3477
3477
|
}
|
|
3478
|
-
let
|
|
3478
|
+
let E = l.current;
|
|
3479
3479
|
if (!y && l.current) {
|
|
3480
|
-
var
|
|
3481
|
-
|
|
3480
|
+
var w;
|
|
3481
|
+
E.style.top = "0px", E.style.bottom = "";
|
|
3482
3482
|
var I;
|
|
3483
|
-
|
|
3483
|
+
E.style.maxHeight = ((I = (w = window.visualViewport) === null || w === void 0 ? void 0 : w.height) !== null && I !== void 0 ? I : window.innerHeight) + "px";
|
|
3484
3484
|
}
|
|
3485
3485
|
let x = Tf({
|
|
3486
3486
|
placement: Mf(o, e),
|
|
@@ -3496,33 +3496,33 @@ function no(t) {
|
|
|
3496
3496
|
arrowSize: n,
|
|
3497
3497
|
arrowBoundaryOffset: g
|
|
3498
3498
|
});
|
|
3499
|
-
if (
|
|
3499
|
+
if (E.style.top = "", E.style.bottom = "", E.style.left = "", E.style.right = "", Object.keys(x.position).forEach((F) => E.style[F] = x.position[F] + "px"), E.style.maxHeight = x.maxHeight != null ? x.maxHeight + "px" : void 0, B) {
|
|
3500
3500
|
let F = document.activeElement.getBoundingClientRect(), T = i.current.getBoundingClientRect(), U = F[B.type] - T[B.type];
|
|
3501
3501
|
i.current.scrollTop += U - B.offset;
|
|
3502
3502
|
}
|
|
3503
|
-
|
|
3503
|
+
S(x);
|
|
3504
3504
|
}, $);
|
|
3505
|
-
J(
|
|
3505
|
+
J(P, $), Kf(P), fr({
|
|
3506
3506
|
ref: l,
|
|
3507
|
-
onResize:
|
|
3507
|
+
onResize: P
|
|
3508
3508
|
}), fr({
|
|
3509
3509
|
ref: r,
|
|
3510
|
-
onResize:
|
|
3510
|
+
onResize: P
|
|
3511
3511
|
});
|
|
3512
3512
|
let k = M(!1);
|
|
3513
3513
|
J(() => {
|
|
3514
|
-
let B,
|
|
3514
|
+
let B, E = () => {
|
|
3515
3515
|
k.current = !0, clearTimeout(B), B = setTimeout(() => {
|
|
3516
3516
|
k.current = !1;
|
|
3517
|
-
}, 500),
|
|
3518
|
-
},
|
|
3519
|
-
k.current &&
|
|
3517
|
+
}, 500), P();
|
|
3518
|
+
}, w = () => {
|
|
3519
|
+
k.current && E();
|
|
3520
3520
|
};
|
|
3521
|
-
return ie == null || ie.addEventListener("resize",
|
|
3522
|
-
ie == null || ie.removeEventListener("resize",
|
|
3521
|
+
return ie == null || ie.addEventListener("resize", E), ie == null || ie.addEventListener("scroll", w), () => {
|
|
3522
|
+
ie == null || ie.removeEventListener("resize", E), ie == null || ie.removeEventListener("scroll", w);
|
|
3523
3523
|
};
|
|
3524
3524
|
}, [
|
|
3525
|
-
|
|
3525
|
+
P
|
|
3526
3526
|
]);
|
|
3527
3527
|
let R = X(() => {
|
|
3528
3528
|
k.current || m();
|
|
@@ -3554,7 +3554,7 @@ function no(t) {
|
|
|
3554
3554
|
top: C.arrowOffsetTop
|
|
3555
3555
|
}
|
|
3556
3556
|
},
|
|
3557
|
-
updatePosition:
|
|
3557
|
+
updatePosition: P
|
|
3558
3558
|
};
|
|
3559
3559
|
}
|
|
3560
3560
|
function Kf(t) {
|
|
@@ -4125,86 +4125,86 @@ function tp(t) {
|
|
|
4125
4125
|
return t.length === 1 || !/^[A-Z]/i.test(t) ? t : "";
|
|
4126
4126
|
}
|
|
4127
4127
|
function jo(t) {
|
|
4128
|
-
let { selectionManager: e, keyboardDelegate: n, ref: r, autoFocus: l = !1, shouldFocusWrap: i = !1, disallowEmptySelection: o = !1, disallowSelectAll: a = !1, selectOnFocus: u = e.selectionBehavior === "replace", disallowTypeAhead: s = !1, shouldUseVirtualFocus: c, allowsTabNavigation: d = !1, isVirtualized: f, scrollRef: p = r, linkBehavior: m = "action" } = t, { direction: y } = He(), g = Yt(), C = (
|
|
4129
|
-
if (
|
|
4130
|
-
const
|
|
4128
|
+
let { selectionManager: e, keyboardDelegate: n, ref: r, autoFocus: l = !1, shouldFocusWrap: i = !1, disallowEmptySelection: o = !1, disallowSelectAll: a = !1, selectOnFocus: u = e.selectionBehavior === "replace", disallowTypeAhead: s = !1, shouldUseVirtualFocus: c, allowsTabNavigation: d = !1, isVirtualized: f, scrollRef: p = r, linkBehavior: m = "action" } = t, { direction: y } = He(), g = Yt(), C = (E) => {
|
|
4129
|
+
if (E.altKey && E.key === "Tab" && E.preventDefault(), !r.current.contains(E.target)) return;
|
|
4130
|
+
const w = (O, ke) => {
|
|
4131
4131
|
if (O != null) {
|
|
4132
|
-
if (e.isLink(O) && m === "selection" && u && !wr(
|
|
4132
|
+
if (e.isLink(O) && m === "selection" && u && !wr(E)) {
|
|
4133
4133
|
Fc(() => {
|
|
4134
4134
|
e.setFocusedKey(O, ke);
|
|
4135
4135
|
});
|
|
4136
4136
|
let Se = p.current.querySelector(`[data-key="${CSS.escape(O.toString())}"]`), Ge = e.getItemProps(O);
|
|
4137
|
-
g.open(Se,
|
|
4137
|
+
g.open(Se, E, Ge.href, Ge.routerOptions);
|
|
4138
4138
|
return;
|
|
4139
4139
|
}
|
|
4140
4140
|
if (e.setFocusedKey(O, ke), e.isLink(O) && m === "override") return;
|
|
4141
|
-
|
|
4141
|
+
E.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(O) : u && !wr(E) && e.replaceSelection(O);
|
|
4142
4142
|
}
|
|
4143
4143
|
};
|
|
4144
|
-
switch (
|
|
4144
|
+
switch (E.key) {
|
|
4145
4145
|
case "ArrowDown":
|
|
4146
4146
|
if (n.getKeyBelow) {
|
|
4147
4147
|
var I, x, F;
|
|
4148
4148
|
let O = e.focusedKey != null ? (I = n.getKeyBelow) === null || I === void 0 ? void 0 : I.call(n, e.focusedKey) : (x = n.getFirstKey) === null || x === void 0 ? void 0 : x.call(n);
|
|
4149
|
-
O == null && i && (O = (F = n.getFirstKey) === null || F === void 0 ? void 0 : F.call(n, e.focusedKey)), O != null && (
|
|
4149
|
+
O == null && i && (O = (F = n.getFirstKey) === null || F === void 0 ? void 0 : F.call(n, e.focusedKey)), O != null && (E.preventDefault(), w(O));
|
|
4150
4150
|
}
|
|
4151
4151
|
break;
|
|
4152
4152
|
case "ArrowUp":
|
|
4153
4153
|
if (n.getKeyAbove) {
|
|
4154
4154
|
var T, U, N;
|
|
4155
4155
|
let O = e.focusedKey != null ? (T = n.getKeyAbove) === null || T === void 0 ? void 0 : T.call(n, e.focusedKey) : (U = n.getLastKey) === null || U === void 0 ? void 0 : U.call(n);
|
|
4156
|
-
O == null && i && (O = (N = n.getLastKey) === null || N === void 0 ? void 0 : N.call(n, e.focusedKey)), O != null && (
|
|
4156
|
+
O == null && i && (O = (N = n.getLastKey) === null || N === void 0 ? void 0 : N.call(n, e.focusedKey)), O != null && (E.preventDefault(), w(O));
|
|
4157
4157
|
}
|
|
4158
4158
|
break;
|
|
4159
4159
|
case "ArrowLeft":
|
|
4160
4160
|
if (n.getKeyLeftOf) {
|
|
4161
4161
|
var ce, ye, xe;
|
|
4162
4162
|
let O = (ce = n.getKeyLeftOf) === null || ce === void 0 ? void 0 : ce.call(n, e.focusedKey);
|
|
4163
|
-
O == null && i && (O = y === "rtl" ? (ye = n.getFirstKey) === null || ye === void 0 ? void 0 : ye.call(n, e.focusedKey) : (xe = n.getLastKey) === null || xe === void 0 ? void 0 : xe.call(n, e.focusedKey)), O != null && (
|
|
4163
|
+
O == null && i && (O = y === "rtl" ? (ye = n.getFirstKey) === null || ye === void 0 ? void 0 : ye.call(n, e.focusedKey) : (xe = n.getLastKey) === null || xe === void 0 ? void 0 : xe.call(n, e.focusedKey)), O != null && (E.preventDefault(), w(O, y === "rtl" ? "first" : "last"));
|
|
4164
4164
|
}
|
|
4165
4165
|
break;
|
|
4166
4166
|
case "ArrowRight":
|
|
4167
4167
|
if (n.getKeyRightOf) {
|
|
4168
4168
|
var Be, Ee, Ue;
|
|
4169
4169
|
let O = (Be = n.getKeyRightOf) === null || Be === void 0 ? void 0 : Be.call(n, e.focusedKey);
|
|
4170
|
-
O == null && i && (O = y === "rtl" ? (Ee = n.getLastKey) === null || Ee === void 0 ? void 0 : Ee.call(n, e.focusedKey) : (Ue = n.getFirstKey) === null || Ue === void 0 ? void 0 : Ue.call(n, e.focusedKey)), O != null && (
|
|
4170
|
+
O == null && i && (O = y === "rtl" ? (Ee = n.getLastKey) === null || Ee === void 0 ? void 0 : Ee.call(n, e.focusedKey) : (Ue = n.getFirstKey) === null || Ue === void 0 ? void 0 : Ue.call(n, e.focusedKey)), O != null && (E.preventDefault(), w(O, y === "rtl" ? "last" : "first"));
|
|
4171
4171
|
}
|
|
4172
4172
|
break;
|
|
4173
4173
|
case "Home":
|
|
4174
4174
|
if (n.getFirstKey) {
|
|
4175
|
-
|
|
4176
|
-
let O = n.getFirstKey(e.focusedKey, St(
|
|
4177
|
-
e.setFocusedKey(O), St(
|
|
4175
|
+
E.preventDefault();
|
|
4176
|
+
let O = n.getFirstKey(e.focusedKey, St(E));
|
|
4177
|
+
e.setFocusedKey(O), St(E) && E.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(O) : u && e.replaceSelection(O);
|
|
4178
4178
|
}
|
|
4179
4179
|
break;
|
|
4180
4180
|
case "End":
|
|
4181
4181
|
if (n.getLastKey) {
|
|
4182
|
-
|
|
4183
|
-
let O = n.getLastKey(e.focusedKey, St(
|
|
4184
|
-
e.setFocusedKey(O), St(
|
|
4182
|
+
E.preventDefault();
|
|
4183
|
+
let O = n.getLastKey(e.focusedKey, St(E));
|
|
4184
|
+
e.setFocusedKey(O), St(E) && E.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(O) : u && e.replaceSelection(O);
|
|
4185
4185
|
}
|
|
4186
4186
|
break;
|
|
4187
4187
|
case "PageDown":
|
|
4188
4188
|
if (n.getKeyPageBelow) {
|
|
4189
4189
|
let O = n.getKeyPageBelow(e.focusedKey);
|
|
4190
|
-
O != null && (
|
|
4190
|
+
O != null && (E.preventDefault(), w(O));
|
|
4191
4191
|
}
|
|
4192
4192
|
break;
|
|
4193
4193
|
case "PageUp":
|
|
4194
4194
|
if (n.getKeyPageAbove) {
|
|
4195
4195
|
let O = n.getKeyPageAbove(e.focusedKey);
|
|
4196
|
-
O != null && (
|
|
4196
|
+
O != null && (E.preventDefault(), w(O));
|
|
4197
4197
|
}
|
|
4198
4198
|
break;
|
|
4199
4199
|
case "a":
|
|
4200
|
-
St(
|
|
4200
|
+
St(E) && e.selectionMode === "multiple" && a !== !0 && (E.preventDefault(), e.selectAll());
|
|
4201
4201
|
break;
|
|
4202
4202
|
case "Escape":
|
|
4203
|
-
!o && e.selectedKeys.size !== 0 && (
|
|
4203
|
+
!o && e.selectedKeys.size !== 0 && (E.stopPropagation(), E.preventDefault(), e.clearSelection());
|
|
4204
4204
|
break;
|
|
4205
4205
|
case "Tab":
|
|
4206
4206
|
if (!d) {
|
|
4207
|
-
if (
|
|
4207
|
+
if (E.shiftKey) r.current.focus();
|
|
4208
4208
|
else {
|
|
4209
4209
|
let O = $e(r.current, {
|
|
4210
4210
|
tabbable: !0
|
|
@@ -4217,29 +4217,29 @@ function jo(t) {
|
|
|
4217
4217
|
break;
|
|
4218
4218
|
}
|
|
4219
4219
|
}
|
|
4220
|
-
},
|
|
4220
|
+
}, S = M({
|
|
4221
4221
|
top: 0,
|
|
4222
4222
|
left: 0
|
|
4223
4223
|
});
|
|
4224
4224
|
Pl(p, "scroll", f ? null : () => {
|
|
4225
|
-
|
|
4225
|
+
S.current = {
|
|
4226
4226
|
top: p.current.scrollTop,
|
|
4227
4227
|
left: p.current.scrollLeft
|
|
4228
4228
|
};
|
|
4229
4229
|
});
|
|
4230
|
-
let $ = (
|
|
4230
|
+
let $ = (E) => {
|
|
4231
4231
|
if (e.isFocused) {
|
|
4232
|
-
|
|
4232
|
+
E.currentTarget.contains(E.target) || e.setFocused(!1);
|
|
4233
4233
|
return;
|
|
4234
4234
|
}
|
|
4235
|
-
if (
|
|
4235
|
+
if (E.currentTarget.contains(E.target)) {
|
|
4236
4236
|
if (e.setFocused(!0), e.focusedKey == null) {
|
|
4237
4237
|
let x = (T) => {
|
|
4238
4238
|
T != null && (e.setFocusedKey(T), u && e.replaceSelection(T));
|
|
4239
|
-
}, F =
|
|
4240
|
-
var
|
|
4241
|
-
F &&
|
|
4242
|
-
} else f || (p.current.scrollTop =
|
|
4239
|
+
}, F = E.relatedTarget;
|
|
4240
|
+
var w, I;
|
|
4241
|
+
F && E.currentTarget.compareDocumentPosition(F) & Node.DOCUMENT_POSITION_FOLLOWING ? x((w = e.lastSelectedKey) !== null && w !== void 0 ? w : n.getLastKey()) : x((I = e.firstSelectedKey) !== null && I !== void 0 ? I : n.getFirstKey());
|
|
4242
|
+
} else f || (p.current.scrollTop = S.current.top, p.current.scrollLeft = S.current.left);
|
|
4243
4243
|
if (e.focusedKey != null) {
|
|
4244
4244
|
let x = p.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);
|
|
4245
4245
|
x && (x.contains(document.activeElement) || Le(x), bn() === "keyboard" && Ze(x, {
|
|
@@ -4247,44 +4247,44 @@ function jo(t) {
|
|
|
4247
4247
|
}));
|
|
4248
4248
|
}
|
|
4249
4249
|
}
|
|
4250
|
-
}, D = (
|
|
4251
|
-
|
|
4250
|
+
}, D = (E) => {
|
|
4251
|
+
E.currentTarget.contains(E.relatedTarget) || e.setFocused(!1);
|
|
4252
4252
|
};
|
|
4253
|
-
const
|
|
4253
|
+
const P = M(l);
|
|
4254
4254
|
L(() => {
|
|
4255
|
-
if (
|
|
4256
|
-
let
|
|
4257
|
-
l === "first" && (
|
|
4258
|
-
let
|
|
4259
|
-
if (
|
|
4260
|
-
for (let I of
|
|
4261
|
-
|
|
4255
|
+
if (P.current) {
|
|
4256
|
+
let E = null;
|
|
4257
|
+
l === "first" && (E = n.getFirstKey()), l === "last" && (E = n.getLastKey());
|
|
4258
|
+
let w = e.selectedKeys;
|
|
4259
|
+
if (w.size) {
|
|
4260
|
+
for (let I of w) if (e.canSelectItem(I)) {
|
|
4261
|
+
E = I;
|
|
4262
4262
|
break;
|
|
4263
4263
|
}
|
|
4264
4264
|
}
|
|
4265
|
-
e.setFocused(!0), e.setFocusedKey(
|
|
4265
|
+
e.setFocused(!0), e.setFocusedKey(E), E == null && !c && ve(r.current);
|
|
4266
4266
|
}
|
|
4267
4267
|
}, []);
|
|
4268
4268
|
let k = M(e.focusedKey);
|
|
4269
4269
|
L(() => {
|
|
4270
|
-
if (e.isFocused && e.focusedKey != null && (e.focusedKey !== k.current ||
|
|
4271
|
-
let
|
|
4272
|
-
if (!
|
|
4270
|
+
if (e.isFocused && e.focusedKey != null && (e.focusedKey !== k.current || P.current) && (p != null && p.current)) {
|
|
4271
|
+
let E = bn(), w = r.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);
|
|
4272
|
+
if (!w)
|
|
4273
4273
|
return;
|
|
4274
|
-
(
|
|
4274
|
+
(E === "keyboard" || P.current) && (Ti(p.current, w), E !== "virtual" && Ze(w, {
|
|
4275
4275
|
containingElement: r.current
|
|
4276
4276
|
}));
|
|
4277
4277
|
}
|
|
4278
|
-
!c && e.isFocused && e.focusedKey == null && k.current != null && ve(r.current), k.current = e.focusedKey,
|
|
4279
|
-
}), Pl(r, "react-aria-focus-scope-restore", (
|
|
4280
|
-
|
|
4278
|
+
!c && e.isFocused && e.focusedKey == null && k.current != null && ve(r.current), k.current = e.focusedKey, P.current = !1;
|
|
4279
|
+
}), Pl(r, "react-aria-focus-scope-restore", (E) => {
|
|
4280
|
+
E.preventDefault(), e.setFocused(!0);
|
|
4281
4281
|
});
|
|
4282
4282
|
let R = {
|
|
4283
4283
|
onKeyDown: C,
|
|
4284
4284
|
onFocus: $,
|
|
4285
4285
|
onBlur: D,
|
|
4286
|
-
onMouseDown(
|
|
4287
|
-
p.current ===
|
|
4286
|
+
onMouseDown(E) {
|
|
4287
|
+
p.current === E.target && E.preventDefault();
|
|
4288
4288
|
}
|
|
4289
4289
|
}, { typeSelectProps: v } = zo({
|
|
4290
4290
|
keyboardDelegate: n,
|
|
@@ -4333,40 +4333,40 @@ function _n(t) {
|
|
|
4333
4333
|
} : a && (p.onMouseDown = (N) => {
|
|
4334
4334
|
N.preventDefault();
|
|
4335
4335
|
});
|
|
4336
|
-
let m = e.isLink(n) && c === "override", y = e.isLink(n) && c !== "selection" && c !== "none", g = !a && e.canSelectItem(n) && !m, C = (u || y) && !a,
|
|
4336
|
+
let m = e.isLink(n) && c === "override", y = e.isLink(n) && c !== "selection" && c !== "none", g = !a && e.canSelectItem(n) && !m, C = (u || y) && !a, S = C && (e.selectionBehavior === "replace" ? !g : !g || e.isEmpty), $ = C && g && e.selectionBehavior === "replace", D = S || $, P = M(null), k = D && g, R = M(!1), v = M(!1), B = (N) => {
|
|
4337
4337
|
if (u && u(), y) {
|
|
4338
4338
|
let ce = e.getItemProps(n);
|
|
4339
4339
|
d.open(r.current, N, ce.href, ce.routerOptions);
|
|
4340
4340
|
}
|
|
4341
|
-
},
|
|
4342
|
-
l ? (
|
|
4343
|
-
|
|
4344
|
-
}, s ? (
|
|
4341
|
+
}, E = {};
|
|
4342
|
+
l ? (E.onPressStart = (N) => {
|
|
4343
|
+
P.current = N.pointerType, R.current = k, N.pointerType === "keyboard" && (!D || Ql()) && f(N);
|
|
4344
|
+
}, s ? (E.onPressUp = S ? null : (N) => {
|
|
4345
4345
|
N.pointerType !== "keyboard" && g && f(N);
|
|
4346
|
-
},
|
|
4347
|
-
if (
|
|
4346
|
+
}, E.onPress = S ? B : null) : E.onPress = (N) => {
|
|
4347
|
+
if (S || $ && N.pointerType !== "mouse") {
|
|
4348
4348
|
if (N.pointerType === "keyboard" && !Jl()) return;
|
|
4349
4349
|
B(N);
|
|
4350
4350
|
} else N.pointerType !== "keyboard" && g && f(N);
|
|
4351
|
-
}) : (
|
|
4352
|
-
|
|
4353
|
-
},
|
|
4351
|
+
}) : (E.onPressStart = (N) => {
|
|
4352
|
+
P.current = N.pointerType, R.current = k, v.current = S, g && (N.pointerType === "mouse" && !S || N.pointerType === "keyboard" && (!C || Ql())) && f(N);
|
|
4353
|
+
}, E.onPress = (N) => {
|
|
4354
4354
|
(N.pointerType === "touch" || N.pointerType === "pen" || N.pointerType === "virtual" || N.pointerType === "keyboard" && D && Jl() || N.pointerType === "mouse" && v.current) && (D ? B(N) : g && f(N));
|
|
4355
|
-
}), p["data-key"] = n,
|
|
4356
|
-
let { pressProps:
|
|
4357
|
-
|
|
4355
|
+
}), p["data-key"] = n, E.preventFocusOnPress = i;
|
|
4356
|
+
let { pressProps: w, isPressed: I } = ze(E), x = $ ? (N) => {
|
|
4357
|
+
P.current === "mouse" && (N.stopPropagation(), N.preventDefault(), B(N));
|
|
4358
4358
|
} : void 0, { longPressProps: F } = ji({
|
|
4359
4359
|
isDisabled: !k,
|
|
4360
4360
|
onLongPress(N) {
|
|
4361
4361
|
N.pointerType === "touch" && (f(N), e.setSelectionBehavior("toggle"));
|
|
4362
4362
|
}
|
|
4363
4363
|
}), T = (N) => {
|
|
4364
|
-
|
|
4364
|
+
P.current === "touch" && R.current && N.preventDefault();
|
|
4365
4365
|
}, U = e.isLink(n) ? (N) => {
|
|
4366
4366
|
ut.isOpening || N.preventDefault();
|
|
4367
4367
|
} : void 0;
|
|
4368
4368
|
return {
|
|
4369
|
-
itemProps: H(p, g ||
|
|
4369
|
+
itemProps: H(p, g || S ? w : {}, k ? F : {}, {
|
|
4370
4370
|
onDoubleClick: x,
|
|
4371
4371
|
onDragStartCapture: T,
|
|
4372
4372
|
onClick: U
|
|
@@ -4893,27 +4893,27 @@ function op(t, e, n) {
|
|
|
4893
4893
|
var y;
|
|
4894
4894
|
let g = (y = t.shouldUseVirtualFocus) !== null && y !== void 0 ? y : o == null ? void 0 : o.shouldUseVirtualFocus;
|
|
4895
4895
|
var C;
|
|
4896
|
-
let
|
|
4896
|
+
let S = (C = t.isVirtualized) !== null && C !== void 0 ? C : o == null ? void 0 : o.isVirtualized, $ = et(), D = et(), P = {
|
|
4897
4897
|
role: "option",
|
|
4898
4898
|
"aria-disabled": u || void 0,
|
|
4899
4899
|
"aria-selected": e.selectionManager.selectionMode !== "none" ? c : void 0
|
|
4900
4900
|
};
|
|
4901
|
-
tt() && Or() || (
|
|
4901
|
+
tt() && Or() || (P["aria-label"] = t["aria-label"], P["aria-labelledby"] = $, P["aria-describedby"] = D);
|
|
4902
4902
|
let k = e.collection.getItem(i);
|
|
4903
|
-
if (
|
|
4903
|
+
if (S) {
|
|
4904
4904
|
let U = Number(k == null ? void 0 : k.index);
|
|
4905
|
-
|
|
4905
|
+
P["aria-posinset"] = Number.isNaN(U) ? void 0 : U + 1, P["aria-setsize"] = Go(e.collection);
|
|
4906
4906
|
}
|
|
4907
4907
|
let R = o != null && o.onAction ? () => {
|
|
4908
4908
|
var U;
|
|
4909
4909
|
return o == null || (U = o.onAction) === null || U === void 0 ? void 0 : U.call(o, i);
|
|
4910
|
-
} : void 0, { itemProps: v, isPressed: B, isFocused:
|
|
4910
|
+
} : void 0, { itemProps: v, isPressed: B, isFocused: E, hasAction: w, allowsSelection: I } = _n({
|
|
4911
4911
|
selectionManager: e.selectionManager,
|
|
4912
4912
|
key: i,
|
|
4913
4913
|
ref: n,
|
|
4914
4914
|
shouldSelectOnPressUp: f,
|
|
4915
4915
|
allowsDifferentPressOrigin: f && m,
|
|
4916
|
-
isVirtualized:
|
|
4916
|
+
isVirtualized: S,
|
|
4917
4917
|
shouldUseVirtualFocus: g,
|
|
4918
4918
|
isDisabled: u,
|
|
4919
4919
|
onAction: R || !(k == null || (r = k.props) === null || r === void 0) && r.onAction ? Ie(k == null || (l = k.props) === null || l === void 0 ? void 0 : l.onAction, R) : void 0,
|
|
@@ -4928,7 +4928,7 @@ function op(t, e, n) {
|
|
|
4928
4928
|
let T = Ci(k == null ? void 0 : k.props);
|
|
4929
4929
|
return {
|
|
4930
4930
|
optionProps: {
|
|
4931
|
-
...
|
|
4931
|
+
...P,
|
|
4932
4932
|
...H(F, v, x, T),
|
|
4933
4933
|
id: Qf(e, i)
|
|
4934
4934
|
},
|
|
@@ -4938,13 +4938,13 @@ function op(t, e, n) {
|
|
|
4938
4938
|
descriptionProps: {
|
|
4939
4939
|
id: D
|
|
4940
4940
|
},
|
|
4941
|
-
isFocused:
|
|
4942
|
-
isFocusVisible:
|
|
4941
|
+
isFocused: E,
|
|
4942
|
+
isFocusVisible: E && ct(),
|
|
4943
4943
|
isSelected: c,
|
|
4944
4944
|
isDisabled: u,
|
|
4945
4945
|
isPressed: B,
|
|
4946
4946
|
allowsSelection: I,
|
|
4947
|
-
hasAction:
|
|
4947
|
+
hasAction: w
|
|
4948
4948
|
};
|
|
4949
4949
|
}
|
|
4950
4950
|
var Yo = {};
|
|
@@ -5205,21 +5205,21 @@ function Ba(t, e, n) {
|
|
|
5205
5205
|
};
|
|
5206
5206
|
}
|
|
5207
5207
|
function Ka(t, e, n) {
|
|
5208
|
-
let { id: r, key: l, closeOnSelect: i, isVirtualized: o, "aria-haspopup": a, onPressStart: u, onPressUp: s, onPress: c, onPressChange: d, onPressEnd: f, onHoverStart: p, onHoverChange: m, onHoverEnd: y, onKeyDown: g, onKeyUp: C, onFocus:
|
|
5208
|
+
let { id: r, key: l, closeOnSelect: i, isVirtualized: o, "aria-haspopup": a, onPressStart: u, onPressUp: s, onPress: c, onPressChange: d, onPressEnd: f, onHoverStart: p, onHoverChange: m, onHoverEnd: y, onKeyDown: g, onKeyUp: C, onFocus: S, onFocusChange: $, onBlur: D } = t, P = !!a;
|
|
5209
5209
|
var k;
|
|
5210
5210
|
let R = (k = t.isDisabled) !== null && k !== void 0 ? k : e.selectionManager.isDisabled(l);
|
|
5211
5211
|
var v;
|
|
5212
|
-
let B = (v = t.isSelected) !== null && v !== void 0 ? v : e.selectionManager.isSelected(l),
|
|
5212
|
+
let B = (v = t.isSelected) !== null && v !== void 0 ? v : e.selectionManager.isSelected(l), E = Aa.get(e), w = e.collection.getItem(l), I = t.onClose || E.onClose, x = Yt(), F = (re) => {
|
|
5213
5213
|
var mt;
|
|
5214
|
-
if (!
|
|
5215
|
-
if (!(
|
|
5216
|
-
let On =
|
|
5214
|
+
if (!P) {
|
|
5215
|
+
if (!(w == null || (mt = w.props) === null || mt === void 0) && mt.onAction ? w.props.onAction() : t.onAction && t.onAction(l), E.onAction) {
|
|
5216
|
+
let On = E.onAction;
|
|
5217
5217
|
On(l);
|
|
5218
5218
|
}
|
|
5219
|
-
re.target instanceof HTMLAnchorElement && x.open(re.target, re,
|
|
5219
|
+
re.target instanceof HTMLAnchorElement && x.open(re.target, re, w.props.href, w.props.routerOptions);
|
|
5220
5220
|
}
|
|
5221
5221
|
}, T = "menuitem";
|
|
5222
|
-
|
|
5222
|
+
P || (e.selectionManager.selectionMode === "single" ? T = "menuitemradio" : e.selectionManager.selectionMode === "multiple" && (T = "menuitemcheckbox"));
|
|
5223
5223
|
let U = et(), N = et(), ce = et(), ye = {
|
|
5224
5224
|
id: r,
|
|
5225
5225
|
"aria-disabled": R || void 0,
|
|
@@ -5234,11 +5234,11 @@ function Ka(t, e, n) {
|
|
|
5234
5234
|
"aria-haspopup": a,
|
|
5235
5235
|
"aria-expanded": t["aria-expanded"]
|
|
5236
5236
|
};
|
|
5237
|
-
e.selectionManager.selectionMode !== "none" && !
|
|
5237
|
+
e.selectionManager.selectionMode !== "none" && !P && (ye["aria-checked"] = B), o && (ye["aria-posinset"] = w == null ? void 0 : w.index, ye["aria-setsize"] = Go(e.collection));
|
|
5238
5238
|
let xe = (re) => {
|
|
5239
5239
|
re.pointerType === "keyboard" && F(re), u == null || u(re);
|
|
5240
5240
|
}, Be = (re) => {
|
|
5241
|
-
re.pointerType !== "keyboard" && (F(re), !
|
|
5241
|
+
re.pointerType !== "keyboard" && (F(re), !P && I && (i ?? (e.selectionManager.selectionMode !== "multiple" || e.selectionManager.isLink(l))) && I()), s == null || s(re);
|
|
5242
5242
|
}, { itemProps: Ee, isFocused: Ue } = _n({
|
|
5243
5243
|
selectionManager: e.selectionManager,
|
|
5244
5244
|
key: l,
|
|
@@ -5272,28 +5272,28 @@ function Ka(t, e, n) {
|
|
|
5272
5272
|
}
|
|
5273
5273
|
switch (re.key) {
|
|
5274
5274
|
case " ":
|
|
5275
|
-
!R && e.selectionManager.selectionMode === "none" && !
|
|
5275
|
+
!R && e.selectionManager.selectionMode === "none" && !P && i !== !1 && I && I();
|
|
5276
5276
|
break;
|
|
5277
5277
|
case "Enter":
|
|
5278
|
-
!R && i !== !1 && !
|
|
5278
|
+
!R && i !== !1 && !P && I && I();
|
|
5279
5279
|
break;
|
|
5280
5280
|
default:
|
|
5281
|
-
|
|
5281
|
+
P || re.continuePropagation(), g == null || g(re);
|
|
5282
5282
|
break;
|
|
5283
5283
|
}
|
|
5284
5284
|
},
|
|
5285
5285
|
onKeyUp: C
|
|
5286
5286
|
}), { focusProps: pt } = An({
|
|
5287
5287
|
onBlur: D,
|
|
5288
|
-
onFocus:
|
|
5288
|
+
onFocus: S,
|
|
5289
5289
|
onFocusChange: $
|
|
5290
|
-
}), vt = fe(
|
|
5290
|
+
}), vt = fe(w.props);
|
|
5291
5291
|
delete vt.id;
|
|
5292
|
-
let ht = Ci(
|
|
5292
|
+
let ht = Ci(w.props);
|
|
5293
5293
|
return {
|
|
5294
5294
|
menuItemProps: {
|
|
5295
5295
|
...ye,
|
|
5296
|
-
...H(vt, ht,
|
|
5296
|
+
...H(vt, ht, P ? {
|
|
5297
5297
|
onFocus: Ee.onFocus,
|
|
5298
5298
|
"data-key": Ee["data-key"]
|
|
5299
5299
|
} : Ee, O, Se, Ge, pt),
|
|
@@ -6291,7 +6291,7 @@ function Cp(t, e, n) {
|
|
|
6291
6291
|
let C = Sp({
|
|
6292
6292
|
selectionManager: c,
|
|
6293
6293
|
hasItemActions: !!(u || s)
|
|
6294
|
-
}),
|
|
6294
|
+
}), S = fe(t, {
|
|
6295
6295
|
labelable: !0
|
|
6296
6296
|
}), $ = X((R) => {
|
|
6297
6297
|
if (c.isFocused) {
|
|
@@ -6307,10 +6307,10 @@ function Cp(t, e, n) {
|
|
|
6307
6307
|
}), [
|
|
6308
6308
|
$,
|
|
6309
6309
|
y.onBlur
|
|
6310
|
-
]),
|
|
6310
|
+
]), P = ef(n, {
|
|
6311
6311
|
isDisabled: e.collection.size !== 0
|
|
6312
6312
|
}), k = H(
|
|
6313
|
-
|
|
6313
|
+
S,
|
|
6314
6314
|
{
|
|
6315
6315
|
role: "grid",
|
|
6316
6316
|
id: g,
|
|
@@ -6319,7 +6319,7 @@ function Cp(t, e, n) {
|
|
|
6319
6319
|
e.isKeyboardNavigationDisabled ? D : y,
|
|
6320
6320
|
// If collection is empty, make sure the grid is tabbable unless there is a child tabbable element.
|
|
6321
6321
|
e.collection.size === 0 && {
|
|
6322
|
-
tabIndex:
|
|
6322
|
+
tabIndex: P ? -1 : 0
|
|
6323
6323
|
},
|
|
6324
6324
|
C
|
|
6325
6325
|
);
|
|
@@ -6385,9 +6385,9 @@ function mu(t, e, n) {
|
|
|
6385
6385
|
let D = $e(n.current);
|
|
6386
6386
|
switch (D.currentNode = document.activeElement, $.key) {
|
|
6387
6387
|
case "ArrowLeft": {
|
|
6388
|
-
let
|
|
6389
|
-
if (i === "child" &&
|
|
6390
|
-
ve(
|
|
6388
|
+
let P = u === "rtl" ? D.nextNode() : D.previousNode();
|
|
6389
|
+
if (i === "child" && P === n.current && (P = null), $.preventDefault(), $.stopPropagation(), P)
|
|
6390
|
+
ve(P), Ze(P, {
|
|
6391
6391
|
containingElement: Xe(n.current)
|
|
6392
6392
|
});
|
|
6393
6393
|
else {
|
|
@@ -6397,16 +6397,16 @@ function mu(t, e, n) {
|
|
|
6397
6397
|
}
|
|
6398
6398
|
i === "cell" && u === "rtl" ? (ve(n.current), Ze(n.current, {
|
|
6399
6399
|
containingElement: Xe(n.current)
|
|
6400
|
-
})) : (D.currentNode = n.current,
|
|
6400
|
+
})) : (D.currentNode = n.current, P = u === "rtl" ? D.firstChild() : ar(D), P && (ve(P), Ze(P, {
|
|
6401
6401
|
containingElement: Xe(n.current)
|
|
6402
6402
|
})));
|
|
6403
6403
|
}
|
|
6404
6404
|
break;
|
|
6405
6405
|
}
|
|
6406
6406
|
case "ArrowRight": {
|
|
6407
|
-
let
|
|
6408
|
-
if (i === "child" &&
|
|
6409
|
-
ve(
|
|
6407
|
+
let P = u === "rtl" ? D.previousNode() : D.nextNode();
|
|
6408
|
+
if (i === "child" && P === n.current && (P = null), $.preventDefault(), $.stopPropagation(), P)
|
|
6409
|
+
ve(P), Ze(P, {
|
|
6410
6410
|
containingElement: Xe(n.current)
|
|
6411
6411
|
});
|
|
6412
6412
|
else {
|
|
@@ -6416,7 +6416,7 @@ function mu(t, e, n) {
|
|
|
6416
6416
|
}
|
|
6417
6417
|
i === "cell" && u === "ltr" ? (ve(n.current), Ze(n.current, {
|
|
6418
6418
|
containingElement: Xe(n.current)
|
|
6419
|
-
})) : (D.currentNode = n.current,
|
|
6419
|
+
})) : (D.currentNode = n.current, P = u === "rtl" ? ar(D) : D.firstChild(), P && (ve(P), Ze(P, {
|
|
6420
6420
|
containingElement: Xe(n.current)
|
|
6421
6421
|
})));
|
|
6422
6422
|
}
|
|
@@ -6438,11 +6438,11 @@ function mu(t, e, n) {
|
|
|
6438
6438
|
});
|
|
6439
6439
|
}
|
|
6440
6440
|
});
|
|
6441
|
-
var
|
|
6442
|
-
return l && (C["aria-colindex"] = ((
|
|
6443
|
-
let D = $.currentTarget,
|
|
6441
|
+
var S;
|
|
6442
|
+
return l && (C["aria-colindex"] = ((S = r.colIndex) !== null && S !== void 0 ? S : r.index) + 1), o && C.tabIndex != null && C.onPointerDown == null && (C.onPointerDown = ($) => {
|
|
6443
|
+
let D = $.currentTarget, P = D.getAttribute("tabindex");
|
|
6444
6444
|
D.removeAttribute("tabindex"), requestAnimationFrame(() => {
|
|
6445
|
-
D.setAttribute("tabindex",
|
|
6445
|
+
D.setAttribute("tabindex", P);
|
|
6446
6446
|
});
|
|
6447
6447
|
}), {
|
|
6448
6448
|
gridCellProps: C,
|
|
@@ -6473,18 +6473,18 @@ function Dp(t, e, n) {
|
|
|
6473
6473
|
}
|
|
6474
6474
|
}), { focusableProps: g } = Tt(H(t, {
|
|
6475
6475
|
onFocus: () => e.setLastFocusedValue(r)
|
|
6476
|
-
}), n), C = H(f, g),
|
|
6476
|
+
}), n), C = H(f, g), S = fe(t, {
|
|
6477
6477
|
labelable: !0
|
|
6478
6478
|
}), $ = -1;
|
|
6479
6479
|
e.selectedValue != null ? e.selectedValue === r && ($ = 0) : (e.lastFocusedValue === r || e.lastFocusedValue == null) && ($ = 0), a && ($ = void 0);
|
|
6480
|
-
let { name: D, descriptionId:
|
|
6480
|
+
let { name: D, descriptionId: P, errorMessageId: k, validationBehavior: R } = bu.get(e);
|
|
6481
6481
|
return Tn(n, e.selectedValue, e.setSelectedValue), Wr({
|
|
6482
6482
|
validationBehavior: R
|
|
6483
6483
|
}, e, n), {
|
|
6484
6484
|
labelProps: H(m, {
|
|
6485
6485
|
onClick: (v) => v.preventDefault()
|
|
6486
6486
|
}),
|
|
6487
|
-
inputProps: H(
|
|
6487
|
+
inputProps: H(S, {
|
|
6488
6488
|
...C,
|
|
6489
6489
|
type: "radio",
|
|
6490
6490
|
name: D,
|
|
@@ -6497,7 +6497,7 @@ function Dp(t, e, n) {
|
|
|
6497
6497
|
"aria-describedby": [
|
|
6498
6498
|
t["aria-describedby"],
|
|
6499
6499
|
e.isInvalid ? k : null,
|
|
6500
|
-
|
|
6500
|
+
P
|
|
6501
6501
|
].filter(Boolean).join(" ") || void 0
|
|
6502
6502
|
}),
|
|
6503
6503
|
isDisabled: a,
|
|
@@ -6517,25 +6517,25 @@ function kp(t, e) {
|
|
|
6517
6517
|
labelable: !0
|
|
6518
6518
|
}), { focusWithinProps: C } = qt({
|
|
6519
6519
|
onBlurWithin(D) {
|
|
6520
|
-
var
|
|
6521
|
-
(
|
|
6520
|
+
var P;
|
|
6521
|
+
(P = t.onBlur) === null || P === void 0 || P.call(t, D), e.selectedValue || e.setLastFocusedValue(null);
|
|
6522
6522
|
},
|
|
6523
6523
|
onFocusWithin: t.onFocus,
|
|
6524
6524
|
onFocusWithinChange: t.onFocusChange
|
|
6525
|
-
}),
|
|
6526
|
-
let
|
|
6525
|
+
}), S = (D) => {
|
|
6526
|
+
let P;
|
|
6527
6527
|
switch (D.key) {
|
|
6528
6528
|
case "ArrowRight":
|
|
6529
|
-
u === "rtl" && o !== "vertical" ?
|
|
6529
|
+
u === "rtl" && o !== "vertical" ? P = "prev" : P = "next";
|
|
6530
6530
|
break;
|
|
6531
6531
|
case "ArrowLeft":
|
|
6532
|
-
u === "rtl" && o !== "vertical" ?
|
|
6532
|
+
u === "rtl" && o !== "vertical" ? P = "next" : P = "prev";
|
|
6533
6533
|
break;
|
|
6534
6534
|
case "ArrowDown":
|
|
6535
|
-
|
|
6535
|
+
P = "next";
|
|
6536
6536
|
break;
|
|
6537
6537
|
case "ArrowUp":
|
|
6538
|
-
|
|
6538
|
+
P = "prev";
|
|
6539
6539
|
break;
|
|
6540
6540
|
default:
|
|
6541
6541
|
return;
|
|
@@ -6544,7 +6544,7 @@ function kp(t, e) {
|
|
|
6544
6544
|
let k = $e(D.currentTarget, {
|
|
6545
6545
|
from: D.target
|
|
6546
6546
|
}), R;
|
|
6547
|
-
|
|
6547
|
+
P === "next" ? (R = k.nextNode(), R || (k.currentNode = D.currentTarget, R = k.firstChild())) : (R = k.previousNode(), R || (k.currentNode = D.currentTarget, R = k.lastChild())), R && (R.focus(), e.setSelectedValue(R.value));
|
|
6548
6548
|
}, $ = he(n);
|
|
6549
6549
|
return bu.set(e, {
|
|
6550
6550
|
name: $,
|
|
@@ -6555,7 +6555,7 @@ function kp(t, e) {
|
|
|
6555
6555
|
radioGroupProps: H(g, {
|
|
6556
6556
|
// https://www.w3.org/TR/wai-aria-1.2/#radiogroup
|
|
6557
6557
|
role: "radiogroup",
|
|
6558
|
-
onKeyDown:
|
|
6558
|
+
onKeyDown: S,
|
|
6559
6559
|
"aria-invalid": e.isInvalid || void 0,
|
|
6560
6560
|
"aria-errormessage": t["aria-errormessage"],
|
|
6561
6561
|
"aria-readonly": r || void 0,
|
|
@@ -6751,8 +6751,8 @@ function Tp(t) {
|
|
|
6751
6751
|
}
|
|
6752
6752
|
function Ap(t, e, n) {
|
|
6753
6753
|
let r = ft(Tp(Ju), "@react-aria/searchfield"), { isDisabled: l, isReadOnly: i, onSubmit: o, onClear: a, type: u = "search" } = t, s = (C) => {
|
|
6754
|
-
const
|
|
6755
|
-
|
|
6754
|
+
const S = C.key;
|
|
6755
|
+
S === "Enter" && (l || i) && C.preventDefault(), !(l || i) && (S === "Enter" && o && (C.preventDefault(), o(e.value)), S === "Escape" && (e.value === "" ? C.continuePropagation() : (e.setValue(""), a && a())));
|
|
6756
6756
|
}, c = () => {
|
|
6757
6757
|
e.setValue(""), a && a();
|
|
6758
6758
|
}, d = () => {
|
|
@@ -6819,16 +6819,16 @@ function es(t, e, n) {
|
|
|
6819
6819
|
onTypeSelect(v) {
|
|
6820
6820
|
e.setSelectedKey(v);
|
|
6821
6821
|
}
|
|
6822
|
-
}), { isInvalid: m, validationErrors: y, validationDetails: g } = e.displayValidation, { labelProps: C, fieldProps:
|
|
6822
|
+
}), { isInvalid: m, validationErrors: y, validationDetails: g } = e.displayValidation, { labelProps: C, fieldProps: S, descriptionProps: $, errorMessageProps: D } = Gr({
|
|
6823
6823
|
...t,
|
|
6824
6824
|
labelElementType: "span",
|
|
6825
6825
|
isInvalid: m,
|
|
6826
6826
|
errorMessage: t.errorMessage || y
|
|
6827
6827
|
});
|
|
6828
6828
|
p.onKeyDown = p.onKeyDownCapture, delete p.onKeyDownCapture;
|
|
6829
|
-
let
|
|
6829
|
+
let P = fe(t, {
|
|
6830
6830
|
labelable: !0
|
|
6831
|
-
}), k = H(p, c,
|
|
6831
|
+
}), k = H(p, c, S), R = he();
|
|
6832
6832
|
return Qu.set(e, {
|
|
6833
6833
|
isDisabled: l,
|
|
6834
6834
|
isRequired: i,
|
|
@@ -6841,7 +6841,7 @@ function es(t, e, n) {
|
|
|
6841
6841
|
t.isDisabled || (n.current.focus(), Ni("keyboard"));
|
|
6842
6842
|
}
|
|
6843
6843
|
},
|
|
6844
|
-
triggerProps: H(
|
|
6844
|
+
triggerProps: H(P, {
|
|
6845
6845
|
...k,
|
|
6846
6846
|
isDisabled: l,
|
|
6847
6847
|
onKeyDown: Ie(k.onKeyDown, f, t.onKeyDown),
|
|
@@ -6872,8 +6872,8 @@ function es(t, e, n) {
|
|
|
6872
6872
|
v.currentTarget.contains(v.relatedTarget) || (t.onBlur && t.onBlur(v), t.onFocusChange && t.onFocusChange(!1), e.setFocused(!1));
|
|
6873
6873
|
},
|
|
6874
6874
|
"aria-labelledby": [
|
|
6875
|
-
|
|
6876
|
-
k["aria-label"] && !
|
|
6875
|
+
S["aria-labelledby"],
|
|
6876
|
+
k["aria-label"] && !S["aria-labelledby"] ? k.id : null
|
|
6877
6877
|
].filter(Boolean).join(" ")
|
|
6878
6878
|
},
|
|
6879
6879
|
descriptionProps: $,
|
|
@@ -7543,8 +7543,8 @@ function Np(t, e, n) {
|
|
|
7543
7543
|
}, e, n);
|
|
7544
7544
|
l && (f["aria-rowcount"] = e.collection.size + e.collection.headerRows.length), Sn() && "expandedKeys" in e && (f.role = "treegrid");
|
|
7545
7545
|
let { column: p, direction: m } = e.sortDescriptor || {}, y = ft(Rp(nl), "@react-aria/table"), g = V(() => {
|
|
7546
|
-
var
|
|
7547
|
-
let $ = (
|
|
7546
|
+
var S;
|
|
7547
|
+
let $ = (S = e.collection.columns.find((D) => D.key === p)) === null || S === void 0 ? void 0 : S.textValue;
|
|
7548
7548
|
return m && p ? y.format(`${m}Sort`, {
|
|
7549
7549
|
columnName: $
|
|
7550
7550
|
}) : void 0;
|
|
@@ -7688,8 +7688,8 @@ function Up(t, e, n) {
|
|
|
7688
7688
|
!o.current && !a.current && e.close(C);
|
|
7689
7689
|
};
|
|
7690
7690
|
L(() => {
|
|
7691
|
-
let C = (
|
|
7692
|
-
n && n.current &&
|
|
7691
|
+
let C = (S) => {
|
|
7692
|
+
n && n.current && S.key === "Escape" && (S.stopPropagation(), e.close(!0));
|
|
7693
7693
|
};
|
|
7694
7694
|
if (e.isOpen)
|
|
7695
7695
|
return document.addEventListener("keydown", C, !0), () => {
|
|
@@ -7804,9 +7804,9 @@ function rl(t) {
|
|
|
7804
7804
|
t.disabledKeys
|
|
7805
7805
|
]), [g, C] = z(l);
|
|
7806
7806
|
l === "replace" && g === "toggle" && typeof p == "object" && p.size === 0 && C("replace");
|
|
7807
|
-
let
|
|
7807
|
+
let S = M(l);
|
|
7808
7808
|
return L(() => {
|
|
7809
|
-
l !==
|
|
7809
|
+
l !== S.current && (C(l), S.current = l);
|
|
7810
7810
|
}, [
|
|
7811
7811
|
l
|
|
7812
7812
|
]), {
|
|
@@ -8119,7 +8119,7 @@ function Yp(t) {
|
|
|
8119
8119
|
const s = M(null);
|
|
8120
8120
|
return L(() => {
|
|
8121
8121
|
if (r.focusedKey != null && !a.getItem(r.focusedKey) && s.current) {
|
|
8122
|
-
const C = s.current.getItem(r.focusedKey),
|
|
8122
|
+
const C = s.current.getItem(r.focusedKey), S = [
|
|
8123
8123
|
...s.current.getKeys()
|
|
8124
8124
|
].map((v) => {
|
|
8125
8125
|
const B = s.current.getItem(v);
|
|
@@ -8131,19 +8131,19 @@ function Yp(t) {
|
|
|
8131
8131
|
return (B == null ? void 0 : B.type) === "item" ? B : null;
|
|
8132
8132
|
}).filter((v) => v !== null);
|
|
8133
8133
|
var c, d;
|
|
8134
|
-
const D = ((c =
|
|
8134
|
+
const D = ((c = S == null ? void 0 : S.length) !== null && c !== void 0 ? c : 0) - ((d = $ == null ? void 0 : $.length) !== null && d !== void 0 ? d : 0);
|
|
8135
8135
|
var f, p, m;
|
|
8136
|
-
let
|
|
8137
|
-
for (;
|
|
8138
|
-
if (!u.isDisabled($[
|
|
8139
|
-
k = $[
|
|
8136
|
+
let P = Math.min(D > 1 ? Math.max(((f = C == null ? void 0 : C.index) !== null && f !== void 0 ? f : 0) - D + 1, 0) : (p = C == null ? void 0 : C.index) !== null && p !== void 0 ? p : 0, ((m = $ == null ? void 0 : $.length) !== null && m !== void 0 ? m : 0) - 1), k = null, R = !1;
|
|
8137
|
+
for (; P >= 0; ) {
|
|
8138
|
+
if (!u.isDisabled($[P].key)) {
|
|
8139
|
+
k = $[P];
|
|
8140
8140
|
break;
|
|
8141
8141
|
}
|
|
8142
|
-
if (
|
|
8142
|
+
if (P < $.length - 1 && !R) P++;
|
|
8143
8143
|
else {
|
|
8144
8144
|
R = !0;
|
|
8145
8145
|
var y, g;
|
|
8146
|
-
|
|
8146
|
+
P > ((y = C == null ? void 0 : C.index) !== null && y !== void 0 ? y : 0) && (P = (g = C == null ? void 0 : C.index) !== null && g !== void 0 ? g : 0), P--;
|
|
8147
8147
|
}
|
|
8148
8148
|
}
|
|
8149
8149
|
r.setFocusedKey(k ? k.key : null);
|
|
@@ -9014,39 +9014,39 @@ const bv = ({ children: t }) => {
|
|
|
9014
9014
|
"data-testid": c
|
|
9015
9015
|
}) => {
|
|
9016
9016
|
hv(t);
|
|
9017
|
-
const { className: d, theme: f } = Ae(), [p, m] = z(!1), [y, g] = z(0), C = M(null),
|
|
9017
|
+
const { className: d, theme: f } = Ae(), [p, m] = z(!1), [y, g] = z(0), C = M(null), S = M(null), $ = M(window.location.pathname), D = o && o.length > 0, P = () => {
|
|
9018
9018
|
m(!0), g(0), setTimeout(() => {
|
|
9019
9019
|
s == null || s(), m(!1);
|
|
9020
9020
|
}, 300);
|
|
9021
9021
|
}, k = D ? Hs({
|
|
9022
9022
|
items: o,
|
|
9023
|
-
children: o.map((
|
|
9023
|
+
children: o.map((E) => /* @__PURE__ */ bi(Xr, { ...E, key: E.key }, E.label)),
|
|
9024
9024
|
selectedKeys: new Set(n),
|
|
9025
|
-
onSelectionChange: (
|
|
9025
|
+
onSelectionChange: (E) => u == null ? void 0 : u(E),
|
|
9026
9026
|
selectionMode: e,
|
|
9027
9027
|
disabledKeys: r
|
|
9028
9028
|
}) : null, { menuProps: R } = D ? Ba(
|
|
9029
9029
|
{
|
|
9030
9030
|
autoFocus: !0,
|
|
9031
9031
|
shouldFocusWrap: !0,
|
|
9032
|
-
onAction: (
|
|
9033
|
-
var
|
|
9034
|
-
return (I = (
|
|
9032
|
+
onAction: (E) => {
|
|
9033
|
+
var w, I;
|
|
9034
|
+
return (I = (w = o.find((x) => x.key === E)) == null ? void 0 : w.onAction) == null ? void 0 : I.call(w, E);
|
|
9035
9035
|
},
|
|
9036
9036
|
onClose: () => s == null ? void 0 : s(),
|
|
9037
9037
|
disabledKeys: r,
|
|
9038
|
-
onSelectionChange: (
|
|
9038
|
+
onSelectionChange: (E) => u == null ? void 0 : u(E),
|
|
9039
9039
|
selectionMode: e,
|
|
9040
9040
|
selectedKeys: n,
|
|
9041
9041
|
"aria-label": "Action Menu"
|
|
9042
9042
|
},
|
|
9043
9043
|
k,
|
|
9044
|
-
|
|
9044
|
+
S
|
|
9045
9045
|
) : { menuProps: {} };
|
|
9046
9046
|
L(() => {
|
|
9047
9047
|
t && C.current && g(C.current.scrollHeight);
|
|
9048
9048
|
}, [t, C]), L(() => {
|
|
9049
|
-
a && ($.current && $.current !== location.pathname &&
|
|
9049
|
+
a && ($.current && $.current !== location.pathname && P(), $.current = location.pathname);
|
|
9050
9050
|
}, [p, a]);
|
|
9051
9051
|
const v = C.current ? C.current.getBoundingClientRect().height > window.innerHeight : !1, B = l || D || i;
|
|
9052
9052
|
return t ? /* @__PURE__ */ b.jsx(bv, { children: /* @__PURE__ */ b.jsx(
|
|
@@ -9056,7 +9056,7 @@ const bv = ({ children: t }) => {
|
|
|
9056
9056
|
style: {
|
|
9057
9057
|
opacity: p ? 0 : 1
|
|
9058
9058
|
},
|
|
9059
|
-
children: /* @__PURE__ */ b.jsx(mv, { fadeIn: !0, onClose:
|
|
9059
|
+
children: /* @__PURE__ */ b.jsx(mv, { fadeIn: !0, onClose: P, children: /* @__PURE__ */ b.jsx(
|
|
9060
9060
|
"div",
|
|
9061
9061
|
{
|
|
9062
9062
|
"data-testid": c || "ActionMenu-wrapper",
|
|
@@ -9070,8 +9070,8 @@ const bv = ({ children: t }) => {
|
|
|
9070
9070
|
className: W("proton-ActionMenu__card", d),
|
|
9071
9071
|
"data-testid": "ActionMenu-content",
|
|
9072
9072
|
style: { height: `${y}px` },
|
|
9073
|
-
children: /* @__PURE__ */ b.jsx("div", { ref:
|
|
9074
|
-
l && /* @__PURE__ */ b.jsx("div", { className: "proton-ActionMenu__content", children: typeof l == "function" ? l({ close:
|
|
9073
|
+
children: /* @__PURE__ */ b.jsx("div", { ref: S, children: /* @__PURE__ */ b.jsx("div", { ...R, ref: C, children: B ? /* @__PURE__ */ b.jsxs(Kn, { autoFocus: !0, contain: !0, children: [
|
|
9074
|
+
l && /* @__PURE__ */ b.jsx("div", { className: "proton-ActionMenu__content", children: typeof l == "function" ? l({ close: P }) : l }),
|
|
9075
9075
|
D && /* @__PURE__ */ b.jsx(
|
|
9076
9076
|
"div",
|
|
9077
9077
|
{
|
|
@@ -9079,14 +9079,14 @@ const bv = ({ children: t }) => {
|
|
|
9079
9079
|
"proton-ActionMenu__list",
|
|
9080
9080
|
e === "none" && "proton-ActionMenu__list--disabled"
|
|
9081
9081
|
),
|
|
9082
|
-
children: Array.from(k.collection).map((
|
|
9082
|
+
children: Array.from(k.collection).map((E) => /* @__PURE__ */ b.jsx(
|
|
9083
9083
|
gv,
|
|
9084
9084
|
{
|
|
9085
|
-
item:
|
|
9085
|
+
item: E,
|
|
9086
9086
|
state: k,
|
|
9087
|
-
to:
|
|
9087
|
+
to: E.props.to
|
|
9088
9088
|
},
|
|
9089
|
-
|
|
9089
|
+
E.key
|
|
9090
9090
|
))
|
|
9091
9091
|
}
|
|
9092
9092
|
),
|
|
@@ -9099,7 +9099,7 @@ const bv = ({ children: t }) => {
|
|
|
9099
9099
|
Gs,
|
|
9100
9100
|
{
|
|
9101
9101
|
variant: f === "dark" || f === "custom-dark" ? "translucent" : "secondary",
|
|
9102
|
-
onPress:
|
|
9102
|
+
onPress: P,
|
|
9103
9103
|
"data-testid": "ActionMenuItem-cancel",
|
|
9104
9104
|
children: "Cancel"
|
|
9105
9105
|
}
|
|
@@ -9255,40 +9255,42 @@ const Jh = {
|
|
|
9255
9255
|
};
|
|
9256
9256
|
function Gs({
|
|
9257
9257
|
variant: t = "primary",
|
|
9258
|
-
|
|
9259
|
-
|
|
9260
|
-
|
|
9261
|
-
|
|
9262
|
-
|
|
9263
|
-
|
|
9258
|
+
to: e,
|
|
9259
|
+
target: n,
|
|
9260
|
+
onPress: r,
|
|
9261
|
+
type: l,
|
|
9262
|
+
isDisabled: i,
|
|
9263
|
+
"data-testid": o,
|
|
9264
|
+
children: a
|
|
9264
9265
|
}) {
|
|
9265
|
-
const
|
|
9266
|
-
target: "_blank",
|
|
9267
|
-
href: e
|
|
9268
|
-
|
|
9266
|
+
const u = e ? "a" : "button", s = e && Nr(e), c = u !== "a" ? {} : {
|
|
9267
|
+
target: n || (s ? "_blank" : void 0),
|
|
9268
|
+
href: e,
|
|
9269
|
+
rel: s || n === "_blank" ? "noopener noreferrer" : void 0
|
|
9270
|
+
}, d = M(null), { buttonProps: f } = Fn(
|
|
9269
9271
|
{
|
|
9270
|
-
onPress:
|
|
9271
|
-
elementType:
|
|
9272
|
-
type:
|
|
9273
|
-
isDisabled:
|
|
9272
|
+
onPress: r,
|
|
9273
|
+
elementType: u,
|
|
9274
|
+
type: l || "button",
|
|
9275
|
+
isDisabled: i
|
|
9274
9276
|
},
|
|
9275
|
-
|
|
9277
|
+
d
|
|
9276
9278
|
);
|
|
9277
9279
|
return /* @__PURE__ */ b.jsxs(
|
|
9278
|
-
|
|
9280
|
+
u,
|
|
9279
9281
|
{
|
|
9282
|
+
...f,
|
|
9280
9283
|
...c,
|
|
9281
|
-
...u,
|
|
9282
9284
|
className: W(
|
|
9283
9285
|
"proton-Button",
|
|
9284
9286
|
`proton-Button--${t}`,
|
|
9285
|
-
|
|
9287
|
+
i && "proton-Button--disabled"
|
|
9286
9288
|
),
|
|
9287
|
-
ref:
|
|
9288
|
-
"data-testid":
|
|
9289
|
+
ref: d,
|
|
9290
|
+
"data-testid": o,
|
|
9289
9291
|
children: [
|
|
9290
|
-
|
|
9291
|
-
e &&
|
|
9292
|
+
a,
|
|
9293
|
+
e && s && /* @__PURE__ */ b.jsx("svg", { viewBox: "0 0 512 512", width: "0.8em", height: "0.8em", children: /* @__PURE__ */ b.jsx(
|
|
9292
9294
|
"path",
|
|
9293
9295
|
{
|
|
9294
9296
|
d: "M384 224v184a40 40 0 01-40 40H104a40 40 0 01-40-40V168a40 40 0 0140-40h167.48M336 64h112v112M224 288L440 72",
|
|
@@ -9519,7 +9521,7 @@ const Kv = dt(
|
|
|
9519
9521
|
autoComplete: p,
|
|
9520
9522
|
"data-testid": m
|
|
9521
9523
|
}, y) => {
|
|
9522
|
-
const g = M(null), { className: C } = Ae(),
|
|
9524
|
+
const g = M(null), { className: C, palette: S, theme: $ } = Ae(), D = y || g, { labelProps: P, inputProps: k, descriptionProps: R, errorMessageProps: v } = Qi(
|
|
9523
9525
|
{
|
|
9524
9526
|
label: a,
|
|
9525
9527
|
name: u,
|
|
@@ -9535,14 +9537,14 @@ const Kv = dt(
|
|
|
9535
9537
|
value: d,
|
|
9536
9538
|
onChange: o
|
|
9537
9539
|
},
|
|
9538
|
-
|
|
9539
|
-
), { clipboardProps:
|
|
9540
|
+
D
|
|
9541
|
+
), { clipboardProps: B } = gp({
|
|
9540
9542
|
getItems() {
|
|
9541
9543
|
return [{ "text/plain": d }];
|
|
9542
9544
|
}
|
|
9543
9545
|
});
|
|
9544
9546
|
return /* @__PURE__ */ b.jsxs("div", { className: "proton-Input__container", children: [
|
|
9545
|
-
n && r === "top" && /* @__PURE__ */ b.jsx("div", { ...
|
|
9547
|
+
n && r === "top" && /* @__PURE__ */ b.jsx("div", { ...R, className: "proton-Input__text", children: n }),
|
|
9546
9548
|
/* @__PURE__ */ b.jsxs("div", { className: "proton-Input__container-inner", children: [
|
|
9547
9549
|
t && /* @__PURE__ */ b.jsx(
|
|
9548
9550
|
"div",
|
|
@@ -9557,12 +9559,12 @@ const Kv = dt(
|
|
|
9557
9559
|
/* @__PURE__ */ b.jsx(
|
|
9558
9560
|
"input",
|
|
9559
9561
|
{
|
|
9560
|
-
...
|
|
9561
|
-
...
|
|
9562
|
+
...k,
|
|
9563
|
+
...B,
|
|
9562
9564
|
"data-testid": m,
|
|
9563
9565
|
id: `${u}-input`,
|
|
9564
9566
|
"aria-invalid": !!i,
|
|
9565
|
-
ref:
|
|
9567
|
+
ref: D,
|
|
9566
9568
|
className: W(
|
|
9567
9569
|
"proton-Input",
|
|
9568
9570
|
i && "proton-Input--error",
|
|
@@ -9574,9 +9576,10 @@ const Kv = dt(
|
|
|
9574
9576
|
/* @__PURE__ */ b.jsx(
|
|
9575
9577
|
"label",
|
|
9576
9578
|
{
|
|
9577
|
-
|
|
9579
|
+
...P,
|
|
9578
9580
|
className: W(
|
|
9579
9581
|
"proton-Input__label",
|
|
9582
|
+
s && "proton-Input__label--hide",
|
|
9580
9583
|
d && "proton-Input__label--filled"
|
|
9581
9584
|
),
|
|
9582
9585
|
children: a
|
|
@@ -9596,13 +9599,13 @@ const Kv = dt(
|
|
|
9596
9599
|
i ? /* @__PURE__ */ b.jsx(
|
|
9597
9600
|
"div",
|
|
9598
9601
|
{
|
|
9599
|
-
...
|
|
9602
|
+
...v,
|
|
9600
9603
|
role: "alert",
|
|
9601
9604
|
className: W("proton-Input__error", "proton-Input__text"),
|
|
9602
9605
|
id: `${u}-error`,
|
|
9603
9606
|
children: i
|
|
9604
9607
|
}
|
|
9605
|
-
) : n && r === "bottom" ? /* @__PURE__ */ b.jsx("div", { ...
|
|
9608
|
+
) : n && r === "bottom" ? /* @__PURE__ */ b.jsx("div", { ...R, className: "proton-Input__text", children: n }) : null
|
|
9606
9609
|
] });
|
|
9607
9610
|
}
|
|
9608
9611
|
), n4 = ({
|
|
@@ -9621,11 +9624,11 @@ const Kv = dt(
|
|
|
9621
9624
|
const d = ev({
|
|
9622
9625
|
defaultValue: o,
|
|
9623
9626
|
value: a,
|
|
9624
|
-
onChange: (
|
|
9627
|
+
onChange: (S) => s == null ? void 0 : s(S),
|
|
9625
9628
|
onClear: () => c == null ? void 0 : c(),
|
|
9626
9629
|
label: e
|
|
9627
9630
|
}), f = M(null), { inputProps: p, clearButtonProps: m } = Ap(
|
|
9628
|
-
{ ...d, placeholder: e
|
|
9631
|
+
{ ...d, placeholder: e },
|
|
9629
9632
|
d,
|
|
9630
9633
|
f
|
|
9631
9634
|
), { value: y, setValue: g } = d, C = () => {
|
|
@@ -9642,7 +9645,7 @@ const Kv = dt(
|
|
|
9642
9645
|
{
|
|
9643
9646
|
...p,
|
|
9644
9647
|
type: "search",
|
|
9645
|
-
onChange: (
|
|
9648
|
+
onChange: (S) => d.setValue(S),
|
|
9646
9649
|
value: y,
|
|
9647
9650
|
name: t,
|
|
9648
9651
|
placeholder: e,
|
|
@@ -9658,8 +9661,8 @@ const Kv = dt(
|
|
|
9658
9661
|
height: "1.6em",
|
|
9659
9662
|
viewBox: "0 0 24 24",
|
|
9660
9663
|
onClick: () => {
|
|
9661
|
-
var
|
|
9662
|
-
return (
|
|
9664
|
+
var S;
|
|
9665
|
+
return (S = f.current) == null ? void 0 : S.focus();
|
|
9663
9666
|
},
|
|
9664
9667
|
children: [
|
|
9665
9668
|
/* @__PURE__ */ b.jsx("title", { children: "Magnifying Glass" }),
|
|
@@ -9686,8 +9689,8 @@ const Kv = dt(
|
|
|
9686
9689
|
),
|
|
9687
9690
|
"data-testid": `${u}-clear`,
|
|
9688
9691
|
onClick: () => {
|
|
9689
|
-
var
|
|
9690
|
-
C(), (
|
|
9692
|
+
var S;
|
|
9693
|
+
C(), (S = f.current) == null || S.focus();
|
|
9691
9694
|
},
|
|
9692
9695
|
children: /* @__PURE__ */ b.jsxs(
|
|
9693
9696
|
"svg",
|
|
@@ -10171,16 +10174,16 @@ function Lv() {
|
|
|
10171
10174
|
var t = A, e = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
10172
10175
|
function n($) {
|
|
10173
10176
|
{
|
|
10174
|
-
for (var D = arguments.length,
|
|
10175
|
-
|
|
10176
|
-
r("error", $,
|
|
10177
|
+
for (var D = arguments.length, P = new Array(D > 1 ? D - 1 : 0), k = 1; k < D; k++)
|
|
10178
|
+
P[k - 1] = arguments[k];
|
|
10179
|
+
r("error", $, P);
|
|
10177
10180
|
}
|
|
10178
10181
|
}
|
|
10179
|
-
function r($, D,
|
|
10182
|
+
function r($, D, P) {
|
|
10180
10183
|
{
|
|
10181
10184
|
var k = e.ReactDebugCurrentFrame, R = k.getStackAddendum();
|
|
10182
|
-
R !== "" && (D += "%s",
|
|
10183
|
-
var v =
|
|
10185
|
+
R !== "" && (D += "%s", P = P.concat([R]));
|
|
10186
|
+
var v = P.map(function(B) {
|
|
10184
10187
|
return String(B);
|
|
10185
10188
|
});
|
|
10186
10189
|
v.unshift("Warning: " + D), Function.prototype.apply.call(console[$], console, v);
|
|
@@ -10190,7 +10193,7 @@ function Lv() {
|
|
|
10190
10193
|
return $ === D && ($ !== 0 || 1 / $ === 1 / D) || $ !== $ && D !== D;
|
|
10191
10194
|
}
|
|
10192
10195
|
var i = typeof Object.is == "function" ? Object.is : l, o = t.useState, a = t.useEffect, u = t.useLayoutEffect, s = t.useDebugValue, c = !1, d = !1;
|
|
10193
|
-
function f($, D,
|
|
10196
|
+
function f($, D, P) {
|
|
10194
10197
|
c || t.startTransition !== void 0 && (c = !0, n("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
|
|
10195
10198
|
var k = D();
|
|
10196
10199
|
if (!d) {
|
|
@@ -10202,37 +10205,37 @@ function Lv() {
|
|
|
10202
10205
|
value: k,
|
|
10203
10206
|
getSnapshot: D
|
|
10204
10207
|
}
|
|
10205
|
-
}), B = v[0].inst,
|
|
10208
|
+
}), B = v[0].inst, E = v[1];
|
|
10206
10209
|
return u(function() {
|
|
10207
|
-
B.value = k, B.getSnapshot = D, p(B) &&
|
|
10210
|
+
B.value = k, B.getSnapshot = D, p(B) && E({
|
|
10208
10211
|
inst: B
|
|
10209
10212
|
});
|
|
10210
10213
|
}, [$, k, D]), a(function() {
|
|
10211
|
-
p(B) &&
|
|
10214
|
+
p(B) && E({
|
|
10212
10215
|
inst: B
|
|
10213
10216
|
});
|
|
10214
|
-
var
|
|
10215
|
-
p(B) &&
|
|
10217
|
+
var w = function() {
|
|
10218
|
+
p(B) && E({
|
|
10216
10219
|
inst: B
|
|
10217
10220
|
});
|
|
10218
10221
|
};
|
|
10219
|
-
return $(
|
|
10222
|
+
return $(w);
|
|
10220
10223
|
}, [$]), s(k), k;
|
|
10221
10224
|
}
|
|
10222
10225
|
function p($) {
|
|
10223
|
-
var D = $.getSnapshot,
|
|
10226
|
+
var D = $.getSnapshot, P = $.value;
|
|
10224
10227
|
try {
|
|
10225
10228
|
var k = D();
|
|
10226
|
-
return !i(
|
|
10229
|
+
return !i(P, k);
|
|
10227
10230
|
} catch {
|
|
10228
10231
|
return !0;
|
|
10229
10232
|
}
|
|
10230
10233
|
}
|
|
10231
|
-
function m($, D,
|
|
10234
|
+
function m($, D, P) {
|
|
10232
10235
|
return D();
|
|
10233
10236
|
}
|
|
10234
|
-
var y = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", g = !y, C = g ? m : f,
|
|
10235
|
-
sr.useSyncExternalStore =
|
|
10237
|
+
var y = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", g = !y, C = g ? m : f, S = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : C;
|
|
10238
|
+
sr.useSyncExternalStore = S, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
10236
10239
|
}()), sr;
|
|
10237
10240
|
}
|
|
10238
10241
|
process.env.NODE_ENV === "production" ? Mr.exports = Nv() : Mr.exports = Lv();
|
|
@@ -10808,8 +10811,8 @@ const _r = /* @__PURE__ */ Q(null), xh = /* @__PURE__ */ Gv("item", function(e,
|
|
|
10808
10811
|
hasSubmenu: !!e["aria-haspopup"],
|
|
10809
10812
|
isOpen: e["aria-expanded"] === "true"
|
|
10810
10813
|
}
|
|
10811
|
-
}),
|
|
10812
|
-
return /* @__PURE__ */ A.createElement(
|
|
10814
|
+
}), S = e.href ? "a" : "div";
|
|
10815
|
+
return /* @__PURE__ */ A.createElement(S, {
|
|
10813
10816
|
...H(u, m, y),
|
|
10814
10817
|
...C,
|
|
10815
10818
|
ref: a,
|
|
@@ -11114,7 +11117,7 @@ function kh({
|
|
|
11114
11117
|
onOpenChange: ($) => {
|
|
11115
11118
|
$ ? o == null || o() : a == null || a();
|
|
11116
11119
|
}
|
|
11117
|
-
}, f = Rs(d), p = M(null), m = M(null), { labelProps: y, triggerProps: g, valueProps: C, menuProps:
|
|
11120
|
+
}, f = Rs(d), p = M(null), m = M(null), { labelProps: y, triggerProps: g, valueProps: C, menuProps: S } = es(
|
|
11118
11121
|
{ ...d, label: t || e },
|
|
11119
11122
|
f,
|
|
11120
11123
|
p
|
|
@@ -11193,7 +11196,7 @@ function kh({
|
|
|
11193
11196
|
popoverRef: m,
|
|
11194
11197
|
placement: "bottom start",
|
|
11195
11198
|
"data-testid": "select-popover",
|
|
11196
|
-
children: /* @__PURE__ */ b.jsx(Rr, { ...
|
|
11199
|
+
children: /* @__PURE__ */ b.jsx(Rr, { ...S, state: f })
|
|
11197
11200
|
}
|
|
11198
11201
|
) })
|
|
11199
11202
|
]
|
|
@@ -11229,7 +11232,7 @@ function Th({
|
|
|
11229
11232
|
items: u,
|
|
11230
11233
|
"data-testid": s,
|
|
11231
11234
|
children: c
|
|
11232
|
-
}, f = Rs(d), p = ac($i.MEDIUM), m = M(null), y = M(null), { labelProps: g, triggerProps: C, valueProps:
|
|
11235
|
+
}, f = Rs(d), p = ac($i.MEDIUM), m = M(null), y = M(null), { labelProps: g, triggerProps: C, valueProps: S, menuProps: $ } = es(
|
|
11233
11236
|
{ ...d, label: t || e },
|
|
11234
11237
|
f,
|
|
11235
11238
|
m
|
|
@@ -11275,7 +11278,7 @@ function Th({
|
|
|
11275
11278
|
disabled: n,
|
|
11276
11279
|
"data-testid": s,
|
|
11277
11280
|
children: [
|
|
11278
|
-
/* @__PURE__ */ b.jsx("div", { ...
|
|
11281
|
+
/* @__PURE__ */ b.jsx("div", { ...S, children: f.selectedItem ? f.selectedItem.rendered : "Select an option" }),
|
|
11279
11282
|
/* @__PURE__ */ b.jsx(
|
|
11280
11283
|
"div",
|
|
11281
11284
|
{
|
|
@@ -11567,7 +11570,7 @@ function Fh({
|
|
|
11567
11570
|
p && !d.current && (f.current = !0), i && i(p), d.current || c(p), d.current = !1;
|
|
11568
11571
|
},
|
|
11569
11572
|
children: [
|
|
11570
|
-
|
|
11573
|
+
/* @__PURE__ */ b.jsx(
|
|
11571
11574
|
nc,
|
|
11572
11575
|
{
|
|
11573
11576
|
className: "proton__TooltipTrigger",
|
|
@@ -11707,36 +11710,36 @@ function h4({
|
|
|
11707
11710
|
onClick: a,
|
|
11708
11711
|
"data-testid": u
|
|
11709
11712
|
}) {
|
|
11710
|
-
var
|
|
11711
|
-
const { className: s } = Ae(), c = M(null), [d, f] = z([]), [p, m] = z(null), [y, g] = z(!1), [C,
|
|
11713
|
+
var E;
|
|
11714
|
+
const { className: s } = Ae(), c = M(null), [d, f] = z([]), [p, m] = z(null), [y, g] = z(!1), [C, S] = z(!1), $ = t || Rh, D = e;
|
|
11712
11715
|
L(() => {
|
|
11713
11716
|
if (!c.current) return;
|
|
11714
|
-
const
|
|
11717
|
+
const w = (F) => {
|
|
11715
11718
|
const T = Math.floor(F / (e + D)), U = Lh($, T);
|
|
11716
11719
|
f(U);
|
|
11717
11720
|
}, I = c.current.clientWidth;
|
|
11718
|
-
|
|
11721
|
+
w(I);
|
|
11719
11722
|
const x = new ResizeObserver((F) => {
|
|
11720
|
-
F && F[0] &&
|
|
11723
|
+
F && F[0] && w(F[0].contentRect.width);
|
|
11721
11724
|
});
|
|
11722
11725
|
return x.observe(c.current), () => x.disconnect();
|
|
11723
11726
|
}, [$, e, D]), L(() => {
|
|
11724
|
-
const
|
|
11727
|
+
const w = setTimeout(() => g(!0), 50), I = setTimeout(() => S(!0), 500);
|
|
11725
11728
|
return () => {
|
|
11726
|
-
clearTimeout(
|
|
11729
|
+
clearTimeout(w), clearTimeout(I);
|
|
11727
11730
|
};
|
|
11728
11731
|
}, []);
|
|
11729
|
-
const
|
|
11732
|
+
const P = (w) => {
|
|
11730
11733
|
if (!c.current) return;
|
|
11731
|
-
const I = c.current.getBoundingClientRect(), F = (
|
|
11734
|
+
const I = c.current.getBoundingClientRect(), F = (w.clientX - I.left) / I.width * o;
|
|
11732
11735
|
m(F);
|
|
11733
11736
|
}, k = () => {
|
|
11734
11737
|
m(null);
|
|
11735
|
-
}, R = e + D, v = (
|
|
11738
|
+
}, R = e + D, v = (w, I) => {
|
|
11736
11739
|
var T;
|
|
11737
|
-
const x =
|
|
11740
|
+
const x = w / o * 100;
|
|
11738
11741
|
return (I === "start" ? Math.floor(x / 100 * d.length) : Math.ceil(x / 100 * d.length)) * R / ((T = c.current) == null ? void 0 : T.clientWidth) * 100;
|
|
11739
|
-
}, B = (
|
|
11742
|
+
}, B = (E = c.current) == null ? void 0 : E.clientWidth;
|
|
11740
11743
|
return /* @__PURE__ */ b.jsxs("div", { className: W("proton-Waveform", s), "data-testid": u, children: [
|
|
11741
11744
|
i && /* @__PURE__ */ b.jsx(mi, { direction: "left", seconds: l }),
|
|
11742
11745
|
/* @__PURE__ */ b.jsxs(
|
|
@@ -11744,12 +11747,12 @@ function h4({
|
|
|
11744
11747
|
{
|
|
11745
11748
|
ref: c,
|
|
11746
11749
|
className: "proton-Waveform__container",
|
|
11747
|
-
onMouseMove:
|
|
11750
|
+
onMouseMove: P,
|
|
11748
11751
|
onMouseLeave: k,
|
|
11749
|
-
onClick: (
|
|
11752
|
+
onClick: (w) => {
|
|
11750
11753
|
if (!c.current) return;
|
|
11751
|
-
const I = c.current.getBoundingClientRect(), F = (
|
|
11752
|
-
a == null || a(F,
|
|
11754
|
+
const I = c.current.getBoundingClientRect(), F = (w.clientX - I.left) / I.width * o;
|
|
11755
|
+
a == null || a(F, w);
|
|
11753
11756
|
},
|
|
11754
11757
|
children: [
|
|
11755
11758
|
n !== void 0 && r !== void 0 && /* @__PURE__ */ b.jsx(
|
|
@@ -11771,12 +11774,12 @@ function h4({
|
|
|
11771
11774
|
}
|
|
11772
11775
|
}
|
|
11773
11776
|
),
|
|
11774
|
-
d.map((
|
|
11777
|
+
d.map((w, I) => {
|
|
11775
11778
|
const x = I / d.length * o, F = n !== void 0 && r !== void 0 && (x < n || x > r), T = l === 0 ? !1 : x <= l, U = p !== null && x <= p;
|
|
11776
11779
|
return /* @__PURE__ */ b.jsx(
|
|
11777
11780
|
_h,
|
|
11778
11781
|
{
|
|
11779
|
-
amplitude:
|
|
11782
|
+
amplitude: w,
|
|
11780
11783
|
isDisabled: F,
|
|
11781
11784
|
isPlayed: T,
|
|
11782
11785
|
isHovered: U,
|