@protonradio/proton-ui 0.11.0-beta.18 → 0.11.0-beta.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +10 -10
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +412 -413
- package/dist/index.es.js.map +1 -1
- package/dist/utils.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import B, { useRef as N, useCallback as se, useState as q, useMemo as U, useEffect as Y, useContext as G, createContext as te, forwardRef as Fe, useLayoutEffect as _c, createElement as si, isValidElement as jc, cloneElement as zc } from "react";
|
|
2
|
-
import { useLayoutEffect as ue, useEffectEvent as $e, isFocusable as ai, getOwnerWindow as Se, focusWithoutScrolling as He, isIOS as hl, getOwnerDocument as re, runAfterTransition as ci, useGlobalListeners as mn, nodeContains as ae, getEventTarget as ee, isVirtualPointerEvent as Vc, isVirtualClick as Gn, mergeProps as W, useSyncRef as di, chain as it, isMac as ml, openLink as Yn, getActiveElement as Ce, useObjectRef as _t, useDescription as gn, isWebKit as fi, clamp as qn, useResizeObserver as ir, createShadowTreeWalker as Hc, isAndroid as Xn, isChrome as Uc, isTabbable as Wc, useId as
|
|
2
|
+
import { useLayoutEffect as ue, useEffectEvent as $e, isFocusable as ai, getOwnerWindow as Se, focusWithoutScrolling as He, isIOS as hl, getOwnerDocument as re, runAfterTransition as ci, useGlobalListeners as mn, nodeContains as ae, getEventTarget as ee, isVirtualPointerEvent as Vc, isVirtualClick as Gn, mergeProps as W, useSyncRef as di, chain as it, isMac as ml, openLink as Yn, getActiveElement as Ce, useObjectRef as _t, useDescription as gn, isWebKit as fi, clamp as qn, useResizeObserver as ir, createShadowTreeWalker as Hc, isAndroid as Xn, isChrome as Uc, isTabbable as Wc, useId as Ne, getScrollParent as et, useLabels as pi, isAppleDevice as Gc, useRouter as gl, useEvent as Gt, FOCUS_EVENT as Yc, useUpdateLayoutEffect as or, CLEAR_FOCUS_EVENT as qc, scrollIntoView as Xc, scrollIntoViewport as tt, isCtrlKeyPressed as $t, isScrollable as ur, filterDOMProps as ge, useSlotId as rt, useLinkProps as vi, useFormReset as bn, mergeRefs as hi, useExitAnimation as mi, useEnterAnimation as gi, useUpdateEffect as bi, useSyntheticLinkProps as Zc } from "@react-aria/utils";
|
|
3
3
|
import Jc, { flushSync as yi, createPortal as Qc } from "react-dom";
|
|
4
4
|
import { u as ed, a as $i, b as bl } from "./useBreakpoint-CjRyGKN-.mjs";
|
|
5
|
+
import { i as yl, c as V, h as xi, a as Ei } from "./navigation-Bj7Pex9j.mjs";
|
|
5
6
|
import { m as td, n as nd, L as ld, o as kt, p as sr, q as rd, t as ar } from "./darkTheme-DUWn6YJ-.mjs";
|
|
6
7
|
import { T as id, a as od } from "./theme-DQsfWeLo.mjs";
|
|
7
|
-
import { i as yl, c as V, h as xi, a as Ei } from "./navigation-Bj7Pex9j.mjs";
|
|
8
8
|
import { useButton as ud, useFocusRing as sd, useHover as Si, useId as cr, mergeProps as $l, useLocale as ad, usePopover as cd, DismissButton as dr, Overlay as fr, useSubmenuTrigger as dd, useMenu as fd, FocusScope as pd, useMenuSection as vd, useMenuItem as hd, useTooltipTrigger as md, OverlayContainer as gd, useOverlayPosition as bd, useTooltip as yd, Focusable as $d } from "react-aria";
|
|
9
9
|
import { useOverlayTriggerState as xd, useSubmenuTriggerState as Ed, useTreeState as Sd, useMenuTriggerState as Cd, useTooltipTriggerState as Ci } from "react-stately";
|
|
10
10
|
import { B as xl } from "./breakpoint-9y1_8U_b.mjs";
|
|
@@ -45,58 +45,58 @@ var Tt = {};
|
|
|
45
45
|
var vr;
|
|
46
46
|
function Dd() {
|
|
47
47
|
return vr || (vr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
48
|
-
var t = B, e = Symbol.for("react.element"), n = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), u = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), a = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), c = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), v = Symbol.iterator,
|
|
49
|
-
function $(
|
|
50
|
-
if (
|
|
48
|
+
var t = B, e = Symbol.for("react.element"), n = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), u = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), a = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), c = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), v = Symbol.iterator, b = "@@iterator";
|
|
49
|
+
function $(y) {
|
|
50
|
+
if (y === null || typeof y != "object")
|
|
51
51
|
return null;
|
|
52
|
-
var K = v &&
|
|
52
|
+
var K = v && y[v] || y[b];
|
|
53
53
|
return typeof K == "function" ? K : null;
|
|
54
54
|
}
|
|
55
55
|
var x = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
56
|
-
function E(
|
|
56
|
+
function E(y) {
|
|
57
57
|
{
|
|
58
58
|
for (var K = arguments.length, L = new Array(K > 1 ? K - 1 : 0), H = 1; H < K; H++)
|
|
59
59
|
L[H - 1] = arguments[H];
|
|
60
|
-
P("error",
|
|
60
|
+
P("error", y, L);
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
function P(
|
|
63
|
+
function P(y, K, L) {
|
|
64
64
|
{
|
|
65
65
|
var H = x.ReactDebugCurrentFrame, ne = H.getStackAddendum();
|
|
66
66
|
ne !== "" && (K += "%s", L = L.concat([ne]));
|
|
67
67
|
var ie = L.map(function(J) {
|
|
68
68
|
return String(J);
|
|
69
69
|
});
|
|
70
|
-
ie.unshift("Warning: " + K), Function.prototype.apply.call(console[
|
|
70
|
+
ie.unshift("Warning: " + K), Function.prototype.apply.call(console[y], console, ie);
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
var k = !1, S = !1, D = !1, I = !1, M = !1, j;
|
|
74
74
|
j = Symbol.for("react.module.reference");
|
|
75
|
-
function A(
|
|
76
|
-
return !!(typeof
|
|
75
|
+
function A(y) {
|
|
76
|
+
return !!(typeof y == "string" || typeof y == "function" || y === l || y === i || M || y === r || y === a || y === d || I || y === p || k || S || D || typeof y == "object" && y !== null && (y.$$typeof === f || y.$$typeof === c || y.$$typeof === o || y.$$typeof === u || y.$$typeof === s || // This needs to include all possible module reference object
|
|
77
77
|
// types supported by any Flight configuration anywhere since
|
|
78
78
|
// we don't know which Flight build this will end up being used
|
|
79
79
|
// with.
|
|
80
|
-
|
|
80
|
+
y.$$typeof === j || y.getModuleId !== void 0));
|
|
81
81
|
}
|
|
82
|
-
function g(
|
|
83
|
-
var H =
|
|
82
|
+
function g(y, K, L) {
|
|
83
|
+
var H = y.displayName;
|
|
84
84
|
if (H)
|
|
85
85
|
return H;
|
|
86
86
|
var ne = K.displayName || K.name || "";
|
|
87
87
|
return ne !== "" ? L + "(" + ne + ")" : L;
|
|
88
88
|
}
|
|
89
|
-
function F(
|
|
90
|
-
return
|
|
89
|
+
function F(y) {
|
|
90
|
+
return y.displayName || "Context";
|
|
91
91
|
}
|
|
92
|
-
function R(
|
|
93
|
-
if (
|
|
92
|
+
function R(y) {
|
|
93
|
+
if (y == null)
|
|
94
94
|
return null;
|
|
95
|
-
if (typeof
|
|
96
|
-
return
|
|
97
|
-
if (typeof
|
|
98
|
-
return
|
|
99
|
-
switch (
|
|
95
|
+
if (typeof y.tag == "number" && E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof y == "function")
|
|
96
|
+
return y.displayName || y.name || null;
|
|
97
|
+
if (typeof y == "string")
|
|
98
|
+
return y;
|
|
99
|
+
switch (y) {
|
|
100
100
|
case l:
|
|
101
101
|
return "Fragment";
|
|
102
102
|
case n:
|
|
@@ -110,21 +110,21 @@ function Dd() {
|
|
|
110
110
|
case d:
|
|
111
111
|
return "SuspenseList";
|
|
112
112
|
}
|
|
113
|
-
if (typeof
|
|
114
|
-
switch (
|
|
113
|
+
if (typeof y == "object")
|
|
114
|
+
switch (y.$$typeof) {
|
|
115
115
|
case u:
|
|
116
|
-
var K =
|
|
116
|
+
var K = y;
|
|
117
117
|
return F(K) + ".Consumer";
|
|
118
118
|
case o:
|
|
119
|
-
var L =
|
|
119
|
+
var L = y;
|
|
120
120
|
return F(L._context) + ".Provider";
|
|
121
121
|
case s:
|
|
122
|
-
return g(
|
|
122
|
+
return g(y, y.render, "ForwardRef");
|
|
123
123
|
case c:
|
|
124
|
-
var H =
|
|
125
|
-
return H !== null ? H : R(
|
|
124
|
+
var H = y.displayName || null;
|
|
125
|
+
return H !== null ? H : R(y.type) || "Memo";
|
|
126
126
|
case f: {
|
|
127
|
-
var ne =
|
|
127
|
+
var ne = y, ie = ne._payload, J = ne._init;
|
|
128
128
|
try {
|
|
129
129
|
return R(J(ie));
|
|
130
130
|
} catch {
|
|
@@ -138,24 +138,24 @@ function Dd() {
|
|
|
138
138
|
function be() {
|
|
139
139
|
}
|
|
140
140
|
be.__reactDisabledLog = !0;
|
|
141
|
-
function
|
|
141
|
+
function Me() {
|
|
142
142
|
{
|
|
143
143
|
if (O === 0) {
|
|
144
144
|
h = console.log, T = console.info, C = console.warn, _ = console.error, Z = console.group, le = console.groupCollapsed, me = console.groupEnd;
|
|
145
|
-
var
|
|
145
|
+
var y = {
|
|
146
146
|
configurable: !0,
|
|
147
147
|
enumerable: !0,
|
|
148
148
|
value: be,
|
|
149
149
|
writable: !0
|
|
150
150
|
};
|
|
151
151
|
Object.defineProperties(console, {
|
|
152
|
-
info:
|
|
153
|
-
log:
|
|
154
|
-
warn:
|
|
155
|
-
error:
|
|
156
|
-
group:
|
|
157
|
-
groupCollapsed:
|
|
158
|
-
groupEnd:
|
|
152
|
+
info: y,
|
|
153
|
+
log: y,
|
|
154
|
+
warn: y,
|
|
155
|
+
error: y,
|
|
156
|
+
group: y,
|
|
157
|
+
groupCollapsed: y,
|
|
158
|
+
groupEnd: y
|
|
159
159
|
});
|
|
160
160
|
}
|
|
161
161
|
O++;
|
|
@@ -164,31 +164,31 @@ function Dd() {
|
|
|
164
164
|
function Ue() {
|
|
165
165
|
{
|
|
166
166
|
if (O--, O === 0) {
|
|
167
|
-
var
|
|
167
|
+
var y = {
|
|
168
168
|
configurable: !0,
|
|
169
169
|
enumerable: !0,
|
|
170
170
|
writable: !0
|
|
171
171
|
};
|
|
172
172
|
Object.defineProperties(console, {
|
|
173
|
-
log: w({},
|
|
173
|
+
log: w({}, y, {
|
|
174
174
|
value: h
|
|
175
175
|
}),
|
|
176
|
-
info: w({},
|
|
176
|
+
info: w({}, y, {
|
|
177
177
|
value: T
|
|
178
178
|
}),
|
|
179
|
-
warn: w({},
|
|
179
|
+
warn: w({}, y, {
|
|
180
180
|
value: C
|
|
181
181
|
}),
|
|
182
|
-
error: w({},
|
|
182
|
+
error: w({}, y, {
|
|
183
183
|
value: _
|
|
184
184
|
}),
|
|
185
|
-
group: w({},
|
|
185
|
+
group: w({}, y, {
|
|
186
186
|
value: Z
|
|
187
187
|
}),
|
|
188
|
-
groupCollapsed: w({},
|
|
188
|
+
groupCollapsed: w({}, y, {
|
|
189
189
|
value: le
|
|
190
190
|
}),
|
|
191
|
-
groupEnd: w({},
|
|
191
|
+
groupEnd: w({}, y, {
|
|
192
192
|
value: me
|
|
193
193
|
})
|
|
194
194
|
});
|
|
@@ -197,7 +197,7 @@ function Dd() {
|
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
199
|
var xe = x.ReactCurrentDispatcher, Le;
|
|
200
|
-
function Oe(
|
|
200
|
+
function Oe(y, K, L) {
|
|
201
201
|
{
|
|
202
202
|
if (Le === void 0)
|
|
203
203
|
try {
|
|
@@ -207,7 +207,7 @@ function Dd() {
|
|
|
207
207
|
Le = H && H[1] || "";
|
|
208
208
|
}
|
|
209
209
|
return `
|
|
210
|
-
` + Le +
|
|
210
|
+
` + Le + y;
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
213
|
var We = !1, _e;
|
|
@@ -215,11 +215,11 @@ function Dd() {
|
|
|
215
215
|
var z = typeof WeakMap == "function" ? WeakMap : Map;
|
|
216
216
|
_e = new z();
|
|
217
217
|
}
|
|
218
|
-
function ke(
|
|
219
|
-
if (!
|
|
218
|
+
function ke(y, K) {
|
|
219
|
+
if (!y || We)
|
|
220
220
|
return "";
|
|
221
221
|
{
|
|
222
|
-
var L = _e.get(
|
|
222
|
+
var L = _e.get(y);
|
|
223
223
|
if (L !== void 0)
|
|
224
224
|
return L;
|
|
225
225
|
}
|
|
@@ -228,7 +228,7 @@ function Dd() {
|
|
|
228
228
|
var ne = Error.prepareStackTrace;
|
|
229
229
|
Error.prepareStackTrace = void 0;
|
|
230
230
|
var ie;
|
|
231
|
-
ie = xe.current, xe.current = null,
|
|
231
|
+
ie = xe.current, xe.current = null, Me();
|
|
232
232
|
try {
|
|
233
233
|
if (K) {
|
|
234
234
|
var J = function() {
|
|
@@ -244,14 +244,14 @@ function Dd() {
|
|
|
244
244
|
} catch (Pe) {
|
|
245
245
|
H = Pe;
|
|
246
246
|
}
|
|
247
|
-
Reflect.construct(
|
|
247
|
+
Reflect.construct(y, [], J);
|
|
248
248
|
} else {
|
|
249
249
|
try {
|
|
250
250
|
J.call();
|
|
251
251
|
} catch (Pe) {
|
|
252
252
|
H = Pe;
|
|
253
253
|
}
|
|
254
|
-
|
|
254
|
+
y.call(J.prototype);
|
|
255
255
|
}
|
|
256
256
|
} else {
|
|
257
257
|
try {
|
|
@@ -259,7 +259,7 @@ function Dd() {
|
|
|
259
259
|
} catch (Pe) {
|
|
260
260
|
H = Pe;
|
|
261
261
|
}
|
|
262
|
-
|
|
262
|
+
y();
|
|
263
263
|
}
|
|
264
264
|
} catch (Pe) {
|
|
265
265
|
if (Pe && H && typeof Pe.stack == "string") {
|
|
@@ -274,7 +274,7 @@ function Dd() {
|
|
|
274
274
|
if (ce--, fe--, fe < 0 || X[ce] !== Ee[fe]) {
|
|
275
275
|
var Te = `
|
|
276
276
|
` + X[ce].replace(" at new ", " at ");
|
|
277
|
-
return
|
|
277
|
+
return y.displayName && Te.includes("<anonymous>") && (Te = Te.replace("<anonymous>", y.displayName)), typeof y == "function" && _e.set(y, Te), Te;
|
|
278
278
|
}
|
|
279
279
|
while (ce >= 1 && fe >= 0);
|
|
280
280
|
break;
|
|
@@ -283,37 +283,37 @@ function Dd() {
|
|
|
283
283
|
} finally {
|
|
284
284
|
We = !1, xe.current = ie, Ue(), Error.prepareStackTrace = ne;
|
|
285
285
|
}
|
|
286
|
-
var gt =
|
|
287
|
-
return typeof
|
|
286
|
+
var gt = y ? y.displayName || y.name : "", st = gt ? Oe(gt) : "";
|
|
287
|
+
return typeof y == "function" && _e.set(y, st), st;
|
|
288
288
|
}
|
|
289
|
-
function Be(
|
|
290
|
-
return ke(
|
|
289
|
+
function Be(y, K, L) {
|
|
290
|
+
return ke(y, !1);
|
|
291
291
|
}
|
|
292
|
-
function ht(
|
|
293
|
-
var K =
|
|
292
|
+
function ht(y) {
|
|
293
|
+
var K = y.prototype;
|
|
294
294
|
return !!(K && K.isReactComponent);
|
|
295
295
|
}
|
|
296
|
-
function Q(
|
|
297
|
-
if (
|
|
296
|
+
function Q(y, K, L) {
|
|
297
|
+
if (y == null)
|
|
298
298
|
return "";
|
|
299
|
-
if (typeof
|
|
300
|
-
return ke(
|
|
301
|
-
if (typeof
|
|
302
|
-
return Oe(
|
|
303
|
-
switch (
|
|
299
|
+
if (typeof y == "function")
|
|
300
|
+
return ke(y, ht(y));
|
|
301
|
+
if (typeof y == "string")
|
|
302
|
+
return Oe(y);
|
|
303
|
+
switch (y) {
|
|
304
304
|
case a:
|
|
305
305
|
return Oe("Suspense");
|
|
306
306
|
case d:
|
|
307
307
|
return Oe("SuspenseList");
|
|
308
308
|
}
|
|
309
|
-
if (typeof
|
|
310
|
-
switch (
|
|
309
|
+
if (typeof y == "object")
|
|
310
|
+
switch (y.$$typeof) {
|
|
311
311
|
case s:
|
|
312
|
-
return Be(
|
|
312
|
+
return Be(y.render);
|
|
313
313
|
case c:
|
|
314
|
-
return Q(
|
|
314
|
+
return Q(y.type);
|
|
315
315
|
case f: {
|
|
316
|
-
var H =
|
|
316
|
+
var H = y, ne = H._payload, ie = H._init;
|
|
317
317
|
try {
|
|
318
318
|
return Q(ie(ne));
|
|
319
319
|
} catch {
|
|
@@ -323,25 +323,25 @@ function Dd() {
|
|
|
323
323
|
return "";
|
|
324
324
|
}
|
|
325
325
|
var Ge = Object.prototype.hasOwnProperty, Ut = {}, Yl = x.ReactDebugCurrentFrame;
|
|
326
|
-
function Wt(
|
|
327
|
-
if (
|
|
328
|
-
var K = Q(
|
|
326
|
+
function Wt(y) {
|
|
327
|
+
if (y) {
|
|
328
|
+
var K = Q(y.type);
|
|
329
329
|
Yl.setExtraStackFrame(K);
|
|
330
330
|
} else
|
|
331
331
|
Yl.setExtraStackFrame(null);
|
|
332
332
|
}
|
|
333
|
-
function gc(
|
|
333
|
+
function gc(y, K, L, H, ne) {
|
|
334
334
|
{
|
|
335
335
|
var ie = Function.call.bind(Ge);
|
|
336
|
-
for (var J in
|
|
337
|
-
if (ie(
|
|
336
|
+
for (var J in y)
|
|
337
|
+
if (ie(y, J)) {
|
|
338
338
|
var X = void 0;
|
|
339
339
|
try {
|
|
340
|
-
if (typeof
|
|
341
|
-
var Ee = Error((H || "React class") + ": " + L + " type `" + J + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof
|
|
340
|
+
if (typeof y[J] != "function") {
|
|
341
|
+
var Ee = Error((H || "React class") + ": " + L + " type `" + J + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof y[J] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
342
342
|
throw Ee.name = "Invariant Violation", Ee;
|
|
343
343
|
}
|
|
344
|
-
X =
|
|
344
|
+
X = y[J](K, J, H, L, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
345
345
|
} catch (ce) {
|
|
346
346
|
X = ce;
|
|
347
347
|
}
|
|
@@ -350,28 +350,28 @@ function Dd() {
|
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
352
|
var bc = Array.isArray;
|
|
353
|
-
function kn(
|
|
354
|
-
return bc(
|
|
353
|
+
function kn(y) {
|
|
354
|
+
return bc(y);
|
|
355
355
|
}
|
|
356
|
-
function yc(
|
|
356
|
+
function yc(y) {
|
|
357
357
|
{
|
|
358
|
-
var K = typeof Symbol == "function" && Symbol.toStringTag, L = K &&
|
|
358
|
+
var K = typeof Symbol == "function" && Symbol.toStringTag, L = K && y[Symbol.toStringTag] || y.constructor.name || "Object";
|
|
359
359
|
return L;
|
|
360
360
|
}
|
|
361
361
|
}
|
|
362
|
-
function $c(
|
|
362
|
+
function $c(y) {
|
|
363
363
|
try {
|
|
364
364
|
return !1;
|
|
365
365
|
} catch {
|
|
366
366
|
return !0;
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
|
-
function xc(
|
|
370
|
-
return "" +
|
|
369
|
+
function xc(y) {
|
|
370
|
+
return "" + y;
|
|
371
371
|
}
|
|
372
|
-
function ql(
|
|
372
|
+
function ql(y) {
|
|
373
373
|
if ($c())
|
|
374
|
-
return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", yc(
|
|
374
|
+
return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", yc(y)), xc(y);
|
|
375
375
|
}
|
|
376
376
|
var wt = x.ReactCurrentOwner, Ec = {
|
|
377
377
|
key: !0,
|
|
@@ -380,56 +380,56 @@ function Dd() {
|
|
|
380
380
|
__source: !0
|
|
381
381
|
}, Xl, Zl, Bn;
|
|
382
382
|
Bn = {};
|
|
383
|
-
function Sc(
|
|
384
|
-
if (Ge.call(
|
|
385
|
-
var K = Object.getOwnPropertyDescriptor(
|
|
383
|
+
function Sc(y) {
|
|
384
|
+
if (Ge.call(y, "ref")) {
|
|
385
|
+
var K = Object.getOwnPropertyDescriptor(y, "ref").get;
|
|
386
386
|
if (K && K.isReactWarning)
|
|
387
387
|
return !1;
|
|
388
388
|
}
|
|
389
|
-
return
|
|
389
|
+
return y.ref !== void 0;
|
|
390
390
|
}
|
|
391
|
-
function Cc(
|
|
392
|
-
if (Ge.call(
|
|
393
|
-
var K = Object.getOwnPropertyDescriptor(
|
|
391
|
+
function Cc(y) {
|
|
392
|
+
if (Ge.call(y, "key")) {
|
|
393
|
+
var K = Object.getOwnPropertyDescriptor(y, "key").get;
|
|
394
394
|
if (K && K.isReactWarning)
|
|
395
395
|
return !1;
|
|
396
396
|
}
|
|
397
|
-
return
|
|
397
|
+
return y.key !== void 0;
|
|
398
398
|
}
|
|
399
|
-
function Pc(
|
|
400
|
-
if (typeof
|
|
399
|
+
function Pc(y, K) {
|
|
400
|
+
if (typeof y.ref == "string" && wt.current && K && wt.current.stateNode !== K) {
|
|
401
401
|
var L = R(wt.current.type);
|
|
402
|
-
Bn[L] || (E('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', R(wt.current.type),
|
|
402
|
+
Bn[L] || (E('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', R(wt.current.type), y.ref), Bn[L] = !0);
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
|
-
function Dc(
|
|
405
|
+
function Dc(y, K) {
|
|
406
406
|
{
|
|
407
407
|
var L = function() {
|
|
408
408
|
Xl || (Xl = !0, E("%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));
|
|
409
409
|
};
|
|
410
|
-
L.isReactWarning = !0, Object.defineProperty(
|
|
410
|
+
L.isReactWarning = !0, Object.defineProperty(y, "key", {
|
|
411
411
|
get: L,
|
|
412
412
|
configurable: !0
|
|
413
413
|
});
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
|
-
function wc(
|
|
416
|
+
function wc(y, K) {
|
|
417
417
|
{
|
|
418
418
|
var L = function() {
|
|
419
419
|
Zl || (Zl = !0, E("%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));
|
|
420
420
|
};
|
|
421
|
-
L.isReactWarning = !0, Object.defineProperty(
|
|
421
|
+
L.isReactWarning = !0, Object.defineProperty(y, "ref", {
|
|
422
422
|
get: L,
|
|
423
423
|
configurable: !0
|
|
424
424
|
});
|
|
425
425
|
}
|
|
426
426
|
}
|
|
427
|
-
var kc = function(
|
|
427
|
+
var kc = function(y, K, L, H, ne, ie, J) {
|
|
428
428
|
var X = {
|
|
429
429
|
// This tag allows us to uniquely identify this as a React Element
|
|
430
430
|
$$typeof: e,
|
|
431
431
|
// Built-in properties that belong on the element
|
|
432
|
-
type:
|
|
432
|
+
type: y,
|
|
433
433
|
key: K,
|
|
434
434
|
ref: L,
|
|
435
435
|
props: J,
|
|
@@ -453,58 +453,58 @@ function Dd() {
|
|
|
453
453
|
value: ne
|
|
454
454
|
}), Object.freeze && (Object.freeze(X.props), Object.freeze(X)), X;
|
|
455
455
|
};
|
|
456
|
-
function Bc(
|
|
456
|
+
function Bc(y, K, L, H, ne) {
|
|
457
457
|
{
|
|
458
458
|
var ie, J = {}, X = null, Ee = null;
|
|
459
459
|
L !== void 0 && (ql(L), X = "" + L), Cc(K) && (ql(K.key), X = "" + K.key), Sc(K) && (Ee = K.ref, Pc(K, ne));
|
|
460
460
|
for (ie in K)
|
|
461
461
|
Ge.call(K, ie) && !Ec.hasOwnProperty(ie) && (J[ie] = K[ie]);
|
|
462
|
-
if (
|
|
463
|
-
var ce =
|
|
462
|
+
if (y && y.defaultProps) {
|
|
463
|
+
var ce = y.defaultProps;
|
|
464
464
|
for (ie in ce)
|
|
465
465
|
J[ie] === void 0 && (J[ie] = ce[ie]);
|
|
466
466
|
}
|
|
467
467
|
if (X || Ee) {
|
|
468
|
-
var fe = typeof
|
|
468
|
+
var fe = typeof y == "function" ? y.displayName || y.name || "Unknown" : y;
|
|
469
469
|
X && Dc(J, fe), Ee && wc(J, fe);
|
|
470
470
|
}
|
|
471
|
-
return kc(
|
|
471
|
+
return kc(y, X, Ee, ne, H, wt.current, J);
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
474
|
var Tn = x.ReactCurrentOwner, Jl = x.ReactDebugCurrentFrame;
|
|
475
|
-
function mt(
|
|
476
|
-
if (
|
|
477
|
-
var K = Q(
|
|
475
|
+
function mt(y) {
|
|
476
|
+
if (y) {
|
|
477
|
+
var K = Q(y.type);
|
|
478
478
|
Jl.setExtraStackFrame(K);
|
|
479
479
|
} else
|
|
480
480
|
Jl.setExtraStackFrame(null);
|
|
481
481
|
}
|
|
482
482
|
var Kn;
|
|
483
483
|
Kn = !1;
|
|
484
|
-
function An(
|
|
485
|
-
return typeof
|
|
484
|
+
function An(y) {
|
|
485
|
+
return typeof y == "object" && y !== null && y.$$typeof === e;
|
|
486
486
|
}
|
|
487
487
|
function Ql() {
|
|
488
488
|
{
|
|
489
489
|
if (Tn.current) {
|
|
490
|
-
var
|
|
491
|
-
if (
|
|
490
|
+
var y = R(Tn.current.type);
|
|
491
|
+
if (y)
|
|
492
492
|
return `
|
|
493
493
|
|
|
494
|
-
Check the render method of \`` +
|
|
494
|
+
Check the render method of \`` + y + "`.";
|
|
495
495
|
}
|
|
496
496
|
return "";
|
|
497
497
|
}
|
|
498
498
|
}
|
|
499
|
-
function Tc(
|
|
499
|
+
function Tc(y) {
|
|
500
500
|
return "";
|
|
501
501
|
}
|
|
502
502
|
var er = {};
|
|
503
|
-
function Kc(
|
|
503
|
+
function Kc(y) {
|
|
504
504
|
{
|
|
505
505
|
var K = Ql();
|
|
506
506
|
if (!K) {
|
|
507
|
-
var L = typeof
|
|
507
|
+
var L = typeof y == "string" ? y : y.displayName || y.name;
|
|
508
508
|
L && (K = `
|
|
509
509
|
|
|
510
510
|
Check the top-level render call using <` + L + ">.");
|
|
@@ -512,41 +512,41 @@ Check the top-level render call using <` + L + ">.");
|
|
|
512
512
|
return K;
|
|
513
513
|
}
|
|
514
514
|
}
|
|
515
|
-
function tr(
|
|
515
|
+
function tr(y, K) {
|
|
516
516
|
{
|
|
517
|
-
if (!
|
|
517
|
+
if (!y._store || y._store.validated || y.key != null)
|
|
518
518
|
return;
|
|
519
|
-
|
|
519
|
+
y._store.validated = !0;
|
|
520
520
|
var L = Kc(K);
|
|
521
521
|
if (er[L])
|
|
522
522
|
return;
|
|
523
523
|
er[L] = !0;
|
|
524
524
|
var H = "";
|
|
525
|
-
|
|
525
|
+
y && y._owner && y._owner !== Tn.current && (H = " It was passed a child from " + R(y._owner.type) + "."), mt(y), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', L, H), mt(null);
|
|
526
526
|
}
|
|
527
527
|
}
|
|
528
|
-
function nr(
|
|
528
|
+
function nr(y, K) {
|
|
529
529
|
{
|
|
530
|
-
if (typeof
|
|
530
|
+
if (typeof y != "object")
|
|
531
531
|
return;
|
|
532
|
-
if (kn(
|
|
533
|
-
for (var L = 0; L <
|
|
534
|
-
var H =
|
|
532
|
+
if (kn(y))
|
|
533
|
+
for (var L = 0; L < y.length; L++) {
|
|
534
|
+
var H = y[L];
|
|
535
535
|
An(H) && tr(H, K);
|
|
536
536
|
}
|
|
537
|
-
else if (An(
|
|
538
|
-
|
|
539
|
-
else if (
|
|
540
|
-
var ne = $(
|
|
541
|
-
if (typeof ne == "function" && ne !==
|
|
542
|
-
for (var ie = ne.call(
|
|
537
|
+
else if (An(y))
|
|
538
|
+
y._store && (y._store.validated = !0);
|
|
539
|
+
else if (y) {
|
|
540
|
+
var ne = $(y);
|
|
541
|
+
if (typeof ne == "function" && ne !== y.entries)
|
|
542
|
+
for (var ie = ne.call(y), J; !(J = ie.next()).done; )
|
|
543
543
|
An(J.value) && tr(J.value, K);
|
|
544
544
|
}
|
|
545
545
|
}
|
|
546
546
|
}
|
|
547
|
-
function Ac(
|
|
547
|
+
function Ac(y) {
|
|
548
548
|
{
|
|
549
|
-
var K =
|
|
549
|
+
var K = y.type;
|
|
550
550
|
if (K == null || typeof K == "string")
|
|
551
551
|
return;
|
|
552
552
|
var L;
|
|
@@ -560,7 +560,7 @@ Check the top-level render call using <` + L + ">.");
|
|
|
560
560
|
return;
|
|
561
561
|
if (L) {
|
|
562
562
|
var H = R(K);
|
|
563
|
-
gc(L,
|
|
563
|
+
gc(L, y.props, "prop", H, y);
|
|
564
564
|
} else if (K.PropTypes !== void 0 && !Kn) {
|
|
565
565
|
Kn = !0;
|
|
566
566
|
var ne = R(K);
|
|
@@ -569,31 +569,31 @@ Check the top-level render call using <` + L + ">.");
|
|
|
569
569
|
typeof K.getDefaultProps == "function" && !K.getDefaultProps.isReactClassApproved && E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
570
570
|
}
|
|
571
571
|
}
|
|
572
|
-
function Fc(
|
|
572
|
+
function Fc(y) {
|
|
573
573
|
{
|
|
574
|
-
for (var K = Object.keys(
|
|
574
|
+
for (var K = Object.keys(y.props), L = 0; L < K.length; L++) {
|
|
575
575
|
var H = K[L];
|
|
576
576
|
if (H !== "children" && H !== "key") {
|
|
577
|
-
mt(
|
|
577
|
+
mt(y), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", H), mt(null);
|
|
578
578
|
break;
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
|
-
|
|
581
|
+
y.ref !== null && (mt(y), E("Invalid attribute `ref` supplied to `React.Fragment`."), mt(null));
|
|
582
582
|
}
|
|
583
583
|
}
|
|
584
584
|
var lr = {};
|
|
585
|
-
function rr(
|
|
585
|
+
function rr(y, K, L, H, ne, ie) {
|
|
586
586
|
{
|
|
587
|
-
var J = A(
|
|
587
|
+
var J = A(y);
|
|
588
588
|
if (!J) {
|
|
589
589
|
var X = "";
|
|
590
|
-
(
|
|
590
|
+
(y === void 0 || typeof y == "object" && y !== null && Object.keys(y).length === 0) && (X += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
591
591
|
var Ee = Tc();
|
|
592
592
|
Ee ? X += Ee : X += Ql();
|
|
593
593
|
var ce;
|
|
594
|
-
|
|
594
|
+
y === null ? ce = "null" : kn(y) ? ce = "array" : y !== void 0 && y.$$typeof === e ? (ce = "<" + (R(y.type) || "Unknown") + " />", X = " Did you accidentally export a JSX literal instead of a component?") : ce = typeof y, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ce, X);
|
|
595
595
|
}
|
|
596
|
-
var fe = Bc(
|
|
596
|
+
var fe = Bc(y, K, L, ne, ie);
|
|
597
597
|
if (fe == null)
|
|
598
598
|
return fe;
|
|
599
599
|
if (J) {
|
|
@@ -602,15 +602,15 @@ Check the top-level render call using <` + L + ">.");
|
|
|
602
602
|
if (H)
|
|
603
603
|
if (kn(Te)) {
|
|
604
604
|
for (var gt = 0; gt < Te.length; gt++)
|
|
605
|
-
nr(Te[gt],
|
|
605
|
+
nr(Te[gt], y);
|
|
606
606
|
Object.freeze && Object.freeze(Te);
|
|
607
607
|
} else
|
|
608
608
|
E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
609
609
|
else
|
|
610
|
-
nr(Te,
|
|
610
|
+
nr(Te, y);
|
|
611
611
|
}
|
|
612
612
|
if (Ge.call(K, "key")) {
|
|
613
|
-
var st = R(
|
|
613
|
+
var st = R(y), Pe = Object.keys(K).filter(function(Oc) {
|
|
614
614
|
return Oc !== "key";
|
|
615
615
|
}), Fn = Pe.length > 0 ? "{key: someKey, " + Pe.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
616
616
|
if (!lr[st + Fn]) {
|
|
@@ -623,14 +623,14 @@ React keys must be passed directly to JSX without using spread:
|
|
|
623
623
|
<%s key={someKey} {...props} />`, Fn, st, Lc, st), lr[st + Fn] = !0;
|
|
624
624
|
}
|
|
625
625
|
}
|
|
626
|
-
return
|
|
626
|
+
return y === l ? Fc(fe) : Ac(fe), fe;
|
|
627
627
|
}
|
|
628
628
|
}
|
|
629
|
-
function Mc(
|
|
630
|
-
return rr(
|
|
629
|
+
function Mc(y, K, L) {
|
|
630
|
+
return rr(y, K, L, !0);
|
|
631
631
|
}
|
|
632
|
-
function Ic(
|
|
633
|
-
return rr(
|
|
632
|
+
function Ic(y, K, L) {
|
|
633
|
+
return rr(y, K, L, !1);
|
|
634
634
|
}
|
|
635
635
|
var Nc = Ic, Rc = Mc;
|
|
636
636
|
Tt.Fragment = l, Tt.jsx = Nc, Tt.jsxs = Rc;
|
|
@@ -986,7 +986,7 @@ class qt {
|
|
|
986
986
|
}
|
|
987
987
|
const br = Symbol("linkClicked");
|
|
988
988
|
function Xe(t) {
|
|
989
|
-
let { onPress: e, onPressChange: n, onPressStart: l, onPressEnd: r, onPressUp: i, onClick: o, isDisabled: u, isPressed: s, preventFocusOnPress: a, shouldCancelOnPointerExit: d, allowTextSelectionOnPress: c, ref: f, ...p } = Ad(t), [v,
|
|
989
|
+
let { onPress: e, onPressChange: n, onPressStart: l, onPressEnd: r, onPressUp: i, onClick: o, isDisabled: u, isPressed: s, preventFocusOnPress: a, shouldCancelOnPointerExit: d, allowTextSelectionOnPress: c, ref: f, ...p } = Ad(t), [v, b] = q(!1), $ = N({
|
|
990
990
|
isPressed: !1,
|
|
991
991
|
ignoreEmulatedMouseEvents: !1,
|
|
992
992
|
didFirePressStart: !1,
|
|
@@ -1004,7 +1004,7 @@ function Xe(t) {
|
|
|
1004
1004
|
let O = new qt("pressstart", F, g);
|
|
1005
1005
|
l(O), w = O.shouldStopPropagation;
|
|
1006
1006
|
}
|
|
1007
|
-
return n && n(!0), R.isTriggeringEvent = !1, R.didFirePressStart = !0,
|
|
1007
|
+
return n && n(!0), R.isTriggeringEvent = !1, R.didFirePressStart = !0, b(!0), w;
|
|
1008
1008
|
}), k = $e((g, F, R = !0) => {
|
|
1009
1009
|
let w = $.current;
|
|
1010
1010
|
if (!w.didFirePressStart) return !1;
|
|
@@ -1014,7 +1014,7 @@ function Xe(t) {
|
|
|
1014
1014
|
let h = new qt("pressend", F, g);
|
|
1015
1015
|
r(h), O = h.shouldStopPropagation;
|
|
1016
1016
|
}
|
|
1017
|
-
if (n && n(!1),
|
|
1017
|
+
if (n && n(!1), b(!1), e && R && !u) {
|
|
1018
1018
|
let h = new qt("press", F, g);
|
|
1019
1019
|
e(h), O && (O = h.shouldStopPropagation);
|
|
1020
1020
|
}
|
|
@@ -1552,10 +1552,10 @@ function Vt(t) {
|
|
|
1552
1552
|
if (!i.current.isFocusWithin && p === ee(c.nativeEvent)) {
|
|
1553
1553
|
l && l(c), r && r(!0), i.current.isFocusWithin = !0, a(c);
|
|
1554
1554
|
let v = c.currentTarget;
|
|
1555
|
-
o(f, "focus", (
|
|
1556
|
-
if (i.current.isFocusWithin && !ae(v,
|
|
1555
|
+
o(f, "focus", (b) => {
|
|
1556
|
+
if (i.current.isFocusWithin && !ae(v, b.target)) {
|
|
1557
1557
|
let $ = new f.defaultView.FocusEvent("blur", {
|
|
1558
|
-
relatedTarget:
|
|
1558
|
+
relatedTarget: b.target
|
|
1559
1559
|
});
|
|
1560
1560
|
oo($, v);
|
|
1561
1561
|
let x = El($);
|
|
@@ -1609,11 +1609,11 @@ function go(t) {
|
|
|
1609
1609
|
}).current;
|
|
1610
1610
|
Y(Jd, []);
|
|
1611
1611
|
let { addGlobalListener: s, removeAllGlobalListeners: a } = mn(), { hoverProps: d, triggerHoverEnd: c } = U(() => {
|
|
1612
|
-
let f = (
|
|
1613
|
-
if (u.pointerType = $, r || $ === "touch" || u.isHovered || !
|
|
1612
|
+
let f = (b, $) => {
|
|
1613
|
+
if (u.pointerType = $, r || $ === "touch" || u.isHovered || !b.currentTarget.contains(b.target)) return;
|
|
1614
1614
|
u.isHovered = !0;
|
|
1615
|
-
let x =
|
|
1616
|
-
u.target = x, s(re(
|
|
1615
|
+
let x = b.currentTarget;
|
|
1616
|
+
u.target = x, s(re(b.target), "pointerover", (E) => {
|
|
1617
1617
|
u.isHovered && u.target && !ae(u.target, E.target) && p(E, E.pointerType);
|
|
1618
1618
|
}, {
|
|
1619
1619
|
capture: !0
|
|
@@ -1622,7 +1622,7 @@ function go(t) {
|
|
|
1622
1622
|
target: x,
|
|
1623
1623
|
pointerType: $
|
|
1624
1624
|
}), n && n(!0), o(!0);
|
|
1625
|
-
}, p = (
|
|
1625
|
+
}, p = (b, $) => {
|
|
1626
1626
|
let x = u.target;
|
|
1627
1627
|
u.pointerType = "", u.target = null, !($ === "touch" || !u.isHovered || !x) && (u.isHovered = !1, a(), l && l({
|
|
1628
1628
|
type: "hoverend",
|
|
@@ -1630,16 +1630,16 @@ function go(t) {
|
|
|
1630
1630
|
pointerType: $
|
|
1631
1631
|
}), n && n(!1), o(!1));
|
|
1632
1632
|
}, v = {};
|
|
1633
|
-
return typeof PointerEvent < "u" ? (v.onPointerEnter = (
|
|
1634
|
-
sn &&
|
|
1635
|
-
}, v.onPointerLeave = (
|
|
1636
|
-
!r &&
|
|
1633
|
+
return typeof PointerEvent < "u" ? (v.onPointerEnter = (b) => {
|
|
1634
|
+
sn && b.pointerType === "mouse" || f(b, b.pointerType);
|
|
1635
|
+
}, v.onPointerLeave = (b) => {
|
|
1636
|
+
!r && b.currentTarget.contains(b.target) && p(b, b.pointerType);
|
|
1637
1637
|
}) : process.env.NODE_ENV === "test" && (v.onTouchStart = () => {
|
|
1638
1638
|
u.ignoreEmulatedMouseEvents = !0;
|
|
1639
|
-
}, v.onMouseEnter = (
|
|
1640
|
-
!u.ignoreEmulatedMouseEvents && !sn && f(
|
|
1641
|
-
}, v.onMouseLeave = (
|
|
1642
|
-
!r &&
|
|
1639
|
+
}, v.onMouseEnter = (b) => {
|
|
1640
|
+
!u.ignoreEmulatedMouseEvents && !sn && f(b, "mouse"), u.ignoreEmulatedMouseEvents = !1;
|
|
1641
|
+
}, v.onMouseLeave = (b) => {
|
|
1642
|
+
!r && b.currentTarget.contains(b.target) && p(b, "mouse");
|
|
1643
1643
|
}), {
|
|
1644
1644
|
hoverProps: v,
|
|
1645
1645
|
triggerHoverEnd: p
|
|
@@ -2003,12 +2003,12 @@ function Tr(t) {
|
|
|
2003
2003
|
}, Zt[t];
|
|
2004
2004
|
}
|
|
2005
2005
|
function Ln(t, e, n, l, r, i, o, u, s, a) {
|
|
2006
|
-
let { placement: d, crossPlacement: c, axis: f, crossAxis: p, size: v, crossSize:
|
|
2006
|
+
let { placement: d, crossPlacement: c, axis: f, crossAxis: p, size: v, crossSize: b } = l, $ = {};
|
|
2007
2007
|
var x;
|
|
2008
2008
|
$[p] = (x = t[p]) !== null && x !== void 0 ? x : 0;
|
|
2009
2009
|
var E, P, k, S;
|
|
2010
|
-
c === "center" ? $[p] += (((E = t[
|
|
2011
|
-
const D = t[p] - n[
|
|
2010
|
+
c === "center" ? $[p] += (((E = t[b]) !== null && E !== void 0 ? E : 0) - ((P = n[b]) !== null && P !== void 0 ? P : 0)) / 2 : c !== p && ($[p] += ((k = t[b]) !== null && k !== void 0 ? k : 0) - ((S = n[b]) !== null && S !== void 0 ? S : 0)), $[p] += i;
|
|
2011
|
+
const D = t[p] - n[b] + s + a, I = t[p] + t[b] - s - a;
|
|
2012
2012
|
if ($[p] = qn($[p], D, I), d === f) {
|
|
2013
2013
|
const M = u ? o[v] : e[$o[v]];
|
|
2014
2014
|
$[an[f]] = Math.floor(M - t[f] + r);
|
|
@@ -2019,11 +2019,11 @@ function bf(t, e, n, l, r, i, o, u) {
|
|
|
2019
2019
|
const s = l ? n.height : e[$o.height];
|
|
2020
2020
|
var a;
|
|
2021
2021
|
let d = t.top != null ? n.top + t.top : n.top + (s - ((a = t.bottom) !== null && a !== void 0 ? a : 0) - o);
|
|
2022
|
-
var c, f, p, v,
|
|
2022
|
+
var c, f, p, v, b, $;
|
|
2023
2023
|
let x = u !== "top" ? (
|
|
2024
2024
|
// We want the distance between the top of the overlay to the bottom of the boundary
|
|
2025
2025
|
Math.max(0, e.height + e.top + ((c = e.scroll.top) !== null && c !== void 0 ? c : 0) - d - (((f = r.top) !== null && f !== void 0 ? f : 0) + ((p = r.bottom) !== null && p !== void 0 ? p : 0) + i))
|
|
2026
|
-
) : Math.max(0, d + o - (e.top + ((v = e.scroll.top) !== null && v !== void 0 ? v : 0)) - (((
|
|
2026
|
+
) : Math.max(0, d + o - (e.top + ((v = e.scroll.top) !== null && v !== void 0 ? v : 0)) - (((b = r.top) !== null && b !== void 0 ? b : 0) + (($ = r.bottom) !== null && $ !== void 0 ? $ : 0) + i));
|
|
2027
2027
|
return Math.min(e.height - i * 2, x);
|
|
2028
2028
|
}
|
|
2029
2029
|
function Kr(t, e, n, l, r, i) {
|
|
@@ -2033,22 +2033,22 @@ function Kr(t, e, n, l, r, i) {
|
|
|
2033
2033
|
var c;
|
|
2034
2034
|
return Math.max(0, t[s] + t[u] + t.scroll[u] - e[u] - n[u] - n[s] - ((c = l[u]) !== null && c !== void 0 ? c : 0) - l[an[u]] - r);
|
|
2035
2035
|
}
|
|
2036
|
-
function yf(t, e, n, l, r, i, o, u, s, a, d, c, f, p, v,
|
|
2037
|
-
let $ = Tr(t), { size: x, crossAxis: E, crossSize: P, placement: k, crossPlacement: S } = $, D = Ln(e, u, n, $, d, c, a, f, v,
|
|
2036
|
+
function yf(t, e, n, l, r, i, o, u, s, a, d, c, f, p, v, b) {
|
|
2037
|
+
let $ = Tr(t), { size: x, crossAxis: E, crossSize: P, placement: k, crossPlacement: S } = $, D = Ln(e, u, n, $, d, c, a, f, v, b), I = d, M = Kr(u, a, e, r, i + d, $);
|
|
2038
2038
|
if (o && l[x] > M) {
|
|
2039
|
-
let
|
|
2040
|
-
Kr(u, a, e, r, i + d,
|
|
2039
|
+
let Me = Tr(`${an[k]} ${S}`), Ue = Ln(e, u, n, Me, d, c, a, f, v, b);
|
|
2040
|
+
Kr(u, a, e, r, i + d, Me) > M && ($ = Me, D = Ue, I = d);
|
|
2041
2041
|
}
|
|
2042
2042
|
let j = "bottom";
|
|
2043
2043
|
$.axis === "top" ? $.placement === "top" ? j = "top" : $.placement === "bottom" && (j = "bottom") : $.crossAxis === "top" && ($.crossPlacement === "top" ? j = "bottom" : $.crossPlacement === "bottom" && (j = "top"));
|
|
2044
2044
|
let A = Br(E, D[E], n[P], u, s, i, a);
|
|
2045
2045
|
D[E] += A;
|
|
2046
2046
|
let g = bf(D, u, a, f, r, i, n.height, j);
|
|
2047
|
-
p && p < g && (g = p), n.height = Math.min(n.height, g), D = Ln(e, u, n, $, I, c, a, f, v,
|
|
2047
|
+
p && p < g && (g = p), n.height = Math.min(n.height, g), D = Ln(e, u, n, $, I, c, a, f, v, b), A = Br(E, D[E], n[P], u, s, i, a), D[E] += A;
|
|
2048
2048
|
let F = {}, R = e[E] + 0.5 * e[P] - D[E] - r[Ve[E]];
|
|
2049
|
-
const w = v / 2 +
|
|
2049
|
+
const w = v / 2 + b;
|
|
2050
2050
|
var O, h, T, C;
|
|
2051
|
-
const _ = Ve[E] === "left" ? ((O = r.left) !== null && O !== void 0 ? O : 0) + ((h = r.right) !== null && h !== void 0 ? h : 0) : ((T = r.top) !== null && T !== void 0 ? T : 0) + ((C = r.bottom) !== null && C !== void 0 ? C : 0), Z = n[P] - _ - v / 2 -
|
|
2051
|
+
const _ = Ve[E] === "left" ? ((O = r.left) !== null && O !== void 0 ? O : 0) + ((h = r.right) !== null && h !== void 0 ? h : 0) : ((T = r.top) !== null && T !== void 0 ? T : 0) + ((C = r.bottom) !== null && C !== void 0 ? C : 0), Z = n[P] - _ - v / 2 - b, le = e[E] + v / 2 - (D[E] + r[Ve[E]]), me = e[E] + e[P] - v / 2 - (D[E] + r[Ve[E]]), be = qn(R, le, me);
|
|
2052
2052
|
return F[E] = qn(be, w, Z), {
|
|
2053
2053
|
position: D,
|
|
2054
2054
|
maxHeight: g,
|
|
@@ -2059,8 +2059,8 @@ function yf(t, e, n, l, r, i, o, u, s, a, d, c, f, p, v, y) {
|
|
|
2059
2059
|
}
|
|
2060
2060
|
function $f(t) {
|
|
2061
2061
|
let { placement: e, targetNode: n, overlayNode: l, scrollNode: r, padding: i, shouldFlip: o, boundaryElement: u, offset: s, crossOffset: a, maxHeight: d, arrowSize: c = 0, arrowBoundaryOffset: f = 0 } = t, p = l instanceof HTMLElement ? xf(l) : document.documentElement, v = p === document.documentElement;
|
|
2062
|
-
const
|
|
2063
|
-
let $ = !!
|
|
2062
|
+
const b = window.getComputedStyle(p).position;
|
|
2063
|
+
let $ = !!b && b !== "static", x = v ? St(n) : Ar(n, p);
|
|
2064
2064
|
if (!v) {
|
|
2065
2065
|
let { marginTop: F, marginLeft: R } = window.getComputedStyle(n);
|
|
2066
2066
|
x.top += parseInt(F, 10) || 0, x.left += parseInt(R, 10) || 0;
|
|
@@ -2131,7 +2131,7 @@ function Ef(t) {
|
|
|
2131
2131
|
}
|
|
2132
2132
|
let de = typeof document < "u" ? window.visualViewport : null;
|
|
2133
2133
|
function Sf(t) {
|
|
2134
|
-
let { direction: e } = Je(), { arrowSize: n = 0, targetRef: l, overlayRef: r, scrollRef: i = r, placement: o = "bottom", containerPadding: u = 12, shouldFlip: s = !0, boundaryElement: a = typeof document < "u" ? document.body : null, offset: d = 0, crossOffset: c = 0, shouldUpdatePosition: f = !0, isOpen: p = !0, onClose: v, maxHeight:
|
|
2134
|
+
let { direction: e } = Je(), { arrowSize: n = 0, targetRef: l, overlayRef: r, scrollRef: i = r, placement: o = "bottom", containerPadding: u = 12, shouldFlip: s = !0, boundaryElement: a = typeof document < "u" ? document.body : null, offset: d = 0, crossOffset: c = 0, shouldUpdatePosition: f = !0, isOpen: p = !0, onClose: v, maxHeight: b, arrowBoundaryOffset: $ = 0 } = t, [x, E] = q(null), P = [
|
|
2135
2135
|
f,
|
|
2136
2136
|
o,
|
|
2137
2137
|
r.current,
|
|
@@ -2144,7 +2144,7 @@ function Sf(t) {
|
|
|
2144
2144
|
c,
|
|
2145
2145
|
p,
|
|
2146
2146
|
e,
|
|
2147
|
-
|
|
2147
|
+
b,
|
|
2148
2148
|
$,
|
|
2149
2149
|
n
|
|
2150
2150
|
], k = N(de == null ? void 0 : de.scale);
|
|
@@ -2170,7 +2170,7 @@ function Sf(t) {
|
|
|
2170
2170
|
}
|
|
2171
2171
|
}
|
|
2172
2172
|
let w = r.current;
|
|
2173
|
-
if (!
|
|
2173
|
+
if (!b && r.current) {
|
|
2174
2174
|
var O;
|
|
2175
2175
|
w.style.top = "0px", w.style.bottom = "";
|
|
2176
2176
|
var h;
|
|
@@ -2186,7 +2186,7 @@ function Sf(t) {
|
|
|
2186
2186
|
boundaryElement: a,
|
|
2187
2187
|
offset: d,
|
|
2188
2188
|
crossOffset: c,
|
|
2189
|
-
maxHeight:
|
|
2189
|
+
maxHeight: b,
|
|
2190
2190
|
arrowSize: n,
|
|
2191
2191
|
arrowBoundaryOffset: $
|
|
2192
2192
|
});
|
|
@@ -2306,11 +2306,11 @@ function Dl(t) {
|
|
|
2306
2306
|
n
|
|
2307
2307
|
]), ue(() => {
|
|
2308
2308
|
var f;
|
|
2309
|
-
let p = (f = i.current) === null || f === void 0 ? void 0 : f.nextSibling, v = [],
|
|
2309
|
+
let p = (f = i.current) === null || f === void 0 ? void 0 : f.nextSibling, v = [], b = ($) => $.stopPropagation();
|
|
2310
2310
|
for (; p && p !== o.current; )
|
|
2311
|
-
v.push(p), p.addEventListener(ll,
|
|
2311
|
+
v.push(p), p.addEventListener(ll, b), p = p.nextSibling;
|
|
2312
2312
|
return u.current = v, () => {
|
|
2313
|
-
for (let $ of v) $.removeEventListener(ll,
|
|
2313
|
+
for (let $ of v) $.removeEventListener(ll, b);
|
|
2314
2314
|
};
|
|
2315
2315
|
}, [
|
|
2316
2316
|
e
|
|
@@ -2325,8 +2325,8 @@ function Dl(t) {
|
|
|
2325
2325
|
u
|
|
2326
2326
|
]), ue(() => () => {
|
|
2327
2327
|
var f, p, v;
|
|
2328
|
-
let
|
|
2329
|
-
(u === oe || cn(u, oe)) && (!
|
|
2328
|
+
let b = (v = (p = pe.getTreeNode(u)) === null || p === void 0 || (f = p.parent) === null || f === void 0 ? void 0 : f.scopeRef) !== null && v !== void 0 ? v : null;
|
|
2329
|
+
(u === oe || cn(u, oe)) && (!b || pe.getTreeNode(b)) && (oe = b), pe.removeTreeNode(u);
|
|
2330
2330
|
}, [
|
|
2331
2331
|
u
|
|
2332
2332
|
]);
|
|
@@ -2823,7 +2823,7 @@ function wo(t, e, n) {
|
|
|
2823
2823
|
});
|
|
2824
2824
|
let i;
|
|
2825
2825
|
l === "menu" ? i = !0 : l === "listbox" && (i = "listbox");
|
|
2826
|
-
let o =
|
|
2826
|
+
let o = Ne();
|
|
2827
2827
|
return {
|
|
2828
2828
|
triggerProps: {
|
|
2829
2829
|
"aria-haspopup": i,
|
|
@@ -3243,8 +3243,8 @@ function Gf(t, e) {
|
|
|
3243
3243
|
isDisabled: i || !e.isOpen
|
|
3244
3244
|
}), ue(() => {
|
|
3245
3245
|
if (e.isOpen && l.current) {
|
|
3246
|
-
var
|
|
3247
|
-
return i ? Wf((
|
|
3246
|
+
var b, $;
|
|
3247
|
+
return i ? Wf((b = r == null ? void 0 : r.current) !== null && b !== void 0 ? b : l.current) : cu([
|
|
3248
3248
|
($ = r == null ? void 0 : r.current) !== null && $ !== void 0 ? $ : l.current
|
|
3249
3249
|
]);
|
|
3250
3250
|
}
|
|
@@ -3310,7 +3310,7 @@ function qf(t) {
|
|
|
3310
3310
|
return t && t.__esModule ? t.default : t;
|
|
3311
3311
|
}
|
|
3312
3312
|
function vu(t, e, n) {
|
|
3313
|
-
let { type: l = "menu", isDisabled: r, trigger: i = "press" } = t, o =
|
|
3313
|
+
let { type: l = "menu", isDisabled: r, trigger: i = "press" } = t, o = Ne(), { triggerProps: u, overlayProps: s } = wo({
|
|
3314
3314
|
type: l
|
|
3315
3315
|
}, e, n), a = (p) => {
|
|
3316
3316
|
if (!r && !(i === "longPress" && !p.altKey) && n && n.current)
|
|
@@ -3372,7 +3372,7 @@ function tn(t, e) {
|
|
|
3372
3372
|
}
|
|
3373
3373
|
const mu = /* @__PURE__ */ new WeakMap();
|
|
3374
3374
|
function Xf(t) {
|
|
3375
|
-
let e =
|
|
3375
|
+
let e = Ne();
|
|
3376
3376
|
return mu.set(t, e), e;
|
|
3377
3377
|
}
|
|
3378
3378
|
function Zf(t) {
|
|
@@ -3407,12 +3407,12 @@ function Qf(t) {
|
|
|
3407
3407
|
return t.length === 1 || !/^[A-Z]/i.test(t) ? t : "";
|
|
3408
3408
|
}
|
|
3409
3409
|
function bu(t) {
|
|
3410
|
-
let { selectionManager: e, keyboardDelegate: n, ref: l, autoFocus: r = !1, shouldFocusWrap: i = !1, disallowEmptySelection: o = !1, disallowSelectAll: u = !1, escapeKeyBehavior: s = "clearSelection", selectOnFocus: a = e.selectionBehavior === "replace", disallowTypeAhead: d = !1, shouldUseVirtualFocus: c, allowsTabNavigation: f = !1, isVirtualized: p, scrollRef: v = l, linkBehavior:
|
|
3410
|
+
let { selectionManager: e, keyboardDelegate: n, ref: l, autoFocus: r = !1, shouldFocusWrap: i = !1, disallowEmptySelection: o = !1, disallowSelectAll: u = !1, escapeKeyBehavior: s = "clearSelection", selectOnFocus: a = e.selectionBehavior === "replace", disallowTypeAhead: d = !1, shouldUseVirtualFocus: c, allowsTabNavigation: f = !1, isVirtualized: p, scrollRef: v = l, linkBehavior: b = "action" } = t, { direction: $ } = Je(), x = gl(), E = (h) => {
|
|
3411
3411
|
var T;
|
|
3412
3412
|
if (h.altKey && h.key === "Tab" && h.preventDefault(), !(!((T = l.current) === null || T === void 0) && T.contains(h.target))) return;
|
|
3413
3413
|
const C = (z, ke) => {
|
|
3414
3414
|
if (z != null) {
|
|
3415
|
-
if (e.isLink(z) &&
|
|
3415
|
+
if (e.isLink(z) && b === "selection" && a && !ol(h)) {
|
|
3416
3416
|
yi(() => {
|
|
3417
3417
|
e.setFocusedKey(z, ke);
|
|
3418
3418
|
});
|
|
@@ -3420,7 +3420,7 @@ function bu(t) {
|
|
|
3420
3420
|
Be && x.open(Be, h, ht.href, ht.routerOptions);
|
|
3421
3421
|
return;
|
|
3422
3422
|
}
|
|
3423
|
-
if (e.setFocusedKey(z, ke), e.isLink(z) &&
|
|
3423
|
+
if (e.setFocusedKey(z, ke), e.isLink(z) && b === "override") return;
|
|
3424
3424
|
h.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(z) : a && !ol(h) && e.replaceSelection(z);
|
|
3425
3425
|
}
|
|
3426
3426
|
};
|
|
@@ -3434,9 +3434,9 @@ function bu(t) {
|
|
|
3434
3434
|
break;
|
|
3435
3435
|
case "ArrowUp":
|
|
3436
3436
|
if (n.getKeyAbove) {
|
|
3437
|
-
var me, be,
|
|
3437
|
+
var me, be, Me;
|
|
3438
3438
|
let z = e.focusedKey != null ? (me = n.getKeyAbove) === null || me === void 0 ? void 0 : me.call(n, e.focusedKey) : (be = n.getLastKey) === null || be === void 0 ? void 0 : be.call(n);
|
|
3439
|
-
z == null && i && (z = (
|
|
3439
|
+
z == null && i && (z = (Me = n.getLastKey) === null || Me === void 0 ? void 0 : Me.call(n, e.focusedKey)), z != null && (h.preventDefault(), C(z));
|
|
3440
3440
|
}
|
|
3441
3441
|
break;
|
|
3442
3442
|
case "ArrowLeft":
|
|
@@ -3621,7 +3621,7 @@ function bu(t) {
|
|
|
3621
3621
|
}
|
|
3622
3622
|
function En(t) {
|
|
3623
3623
|
let { id: e, selectionManager: n, key: l, ref: r, shouldSelectOnPressUp: i, shouldUseVirtualFocus: o, focus: u, isDisabled: s, onAction: a, allowsDifferentPressOrigin: d, linkBehavior: c = "action" } = t, f = gl();
|
|
3624
|
-
e =
|
|
3624
|
+
e = Ne(e);
|
|
3625
3625
|
let p = (C) => {
|
|
3626
3626
|
if (C.pointerType === "keyboard" && ol(C)) n.toggleSelection(l);
|
|
3627
3627
|
else {
|
|
@@ -3655,7 +3655,7 @@ function En(t) {
|
|
|
3655
3655
|
} : s && (v.onMouseDown = (C) => {
|
|
3656
3656
|
C.preventDefault();
|
|
3657
3657
|
});
|
|
3658
|
-
let
|
|
3658
|
+
let b = n.isLink(l) && c === "override", $ = n.isLink(l) && c !== "selection" && c !== "none", x = !s && n.canSelectItem(l) && !b, E = (a || $) && !s, P = E && (n.selectionBehavior === "replace" ? !x : !x || n.isEmpty), k = E && x && n.selectionBehavior === "replace", S = P || k, D = N(null), I = S && x, M = N(!1), j = N(!1), A = (C) => {
|
|
3659
3659
|
if (a && a(), $ && r.current) {
|
|
3660
3660
|
let _ = n.getItemProps(l);
|
|
3661
3661
|
f.open(r.current, C, _.href, _.routerOptions);
|
|
@@ -4121,7 +4121,7 @@ class np {
|
|
|
4121
4121
|
if (e.key == null || e.type == null) return;
|
|
4122
4122
|
let f = this;
|
|
4123
4123
|
var p, v;
|
|
4124
|
-
let
|
|
4124
|
+
let b = {
|
|
4125
4125
|
type: e.type,
|
|
4126
4126
|
props: e.props,
|
|
4127
4127
|
key: e.key,
|
|
@@ -4139,17 +4139,17 @@ class np {
|
|
|
4139
4139
|
if (!e.hasChildNodes || !e.childNodes) return;
|
|
4140
4140
|
let $ = 0;
|
|
4141
4141
|
for (let x of e.childNodes()) {
|
|
4142
|
-
x.key != null && (x.key = `${
|
|
4142
|
+
x.key != null && (x.key = `${b.key}${x.key}`);
|
|
4143
4143
|
let E = f.getFullNode({
|
|
4144
4144
|
...x,
|
|
4145
4145
|
index: $
|
|
4146
|
-
}, f.getChildState(n, x),
|
|
4146
|
+
}, f.getChildState(n, x), b.key, b);
|
|
4147
4147
|
for (let P of E)
|
|
4148
4148
|
$++, yield P;
|
|
4149
4149
|
}
|
|
4150
4150
|
})
|
|
4151
4151
|
};
|
|
4152
|
-
yield
|
|
4152
|
+
yield b;
|
|
4153
4153
|
}
|
|
4154
4154
|
constructor() {
|
|
4155
4155
|
this.cache = /* @__PURE__ */ new WeakMap();
|
|
@@ -4238,7 +4238,7 @@ function Cu(t) {
|
|
|
4238
4238
|
return l(t), Vr.set(t, n), n;
|
|
4239
4239
|
}
|
|
4240
4240
|
function rp(t, e, n) {
|
|
4241
|
-
let { id: l, key: r, closeOnSelect: i, isVirtualized: o, "aria-haspopup": u, onPressStart: s, onPressUp: a, onPress: d, onPressChange: c, onPressEnd: f, onHoverStart: p, onHoverChange: v, onHoverEnd:
|
|
4241
|
+
let { id: l, key: r, closeOnSelect: i, isVirtualized: o, "aria-haspopup": u, onPressStart: s, onPressUp: a, onPress: d, onPressChange: c, onPressEnd: f, onHoverStart: p, onHoverChange: v, onHoverEnd: b, onKeyDown: $, onKeyUp: x, onFocus: E, onFocusChange: P, onBlur: k, selectionManager: S = e.selectionManager } = t, D = !!u, I = D && t["aria-expanded"] === "true";
|
|
4242
4242
|
var M;
|
|
4243
4243
|
let j = (M = t.isDisabled) !== null && M !== void 0 ? M : S.isDisabled(r);
|
|
4244
4244
|
var A;
|
|
@@ -4272,7 +4272,7 @@ function rp(t, e, n) {
|
|
|
4272
4272
|
Q.pointerType === "keyboard" && h(Q), s == null || s(Q);
|
|
4273
4273
|
}, be = () => {
|
|
4274
4274
|
!D && w && (i ?? (S.selectionMode !== "multiple" || S.isLink(r))) && w();
|
|
4275
|
-
},
|
|
4275
|
+
}, Me = (Q) => {
|
|
4276
4276
|
Q.pointerType === "mouse" && (h(Q), be()), a == null || a(Q);
|
|
4277
4277
|
}, Ue = (Q) => {
|
|
4278
4278
|
Q.pointerType !== "keyboard" && Q.pointerType !== "mouse" && (h(Q), be()), d == null || d(Q);
|
|
@@ -4292,7 +4292,7 @@ function rp(t, e, n) {
|
|
|
4292
4292
|
}), { pressProps: Oe, isPressed: We } = Xe({
|
|
4293
4293
|
onPressStart: me,
|
|
4294
4294
|
onPress: Ue,
|
|
4295
|
-
onPressUp:
|
|
4295
|
+
onPressUp: Me,
|
|
4296
4296
|
onPressChange: c,
|
|
4297
4297
|
onPressEnd: f,
|
|
4298
4298
|
isDisabled: j
|
|
@@ -4302,7 +4302,7 @@ function rp(t, e, n) {
|
|
|
4302
4302
|
!dt() && !(I && u) && (S.setFocused(!0), S.setFocusedKey(r)), p == null || p(Q);
|
|
4303
4303
|
},
|
|
4304
4304
|
onHoverChange: v,
|
|
4305
|
-
onHoverEnd:
|
|
4305
|
+
onHoverEnd: b
|
|
4306
4306
|
}), { keyboardProps: z } = mo({
|
|
4307
4307
|
onKeyDown: (Q) => {
|
|
4308
4308
|
if (Q.repeat) {
|
|
@@ -4417,9 +4417,9 @@ class ip {
|
|
|
4417
4417
|
this.lastKey = (o = r == null ? void 0 : r.key) !== null && o !== void 0 ? o : null;
|
|
4418
4418
|
}
|
|
4419
4419
|
}
|
|
4420
|
-
class
|
|
4420
|
+
class Ie extends Set {
|
|
4421
4421
|
constructor(e, n, l) {
|
|
4422
|
-
super(e), e instanceof
|
|
4422
|
+
super(e), e instanceof Ie ? (this.anchorKey = n ?? e.anchorKey, this.currentKey = l ?? e.currentKey) : (this.anchorKey = n ?? null, this.currentKey = l ?? null);
|
|
4423
4423
|
}
|
|
4424
4424
|
}
|
|
4425
4425
|
function ot(t, e, n) {
|
|
@@ -4435,8 +4435,8 @@ function ot(t, e, n) {
|
|
|
4435
4435
|
n && (Object.is(u, f) || n(f, ...p)), o || (u = f);
|
|
4436
4436
|
};
|
|
4437
4437
|
typeof a == "function" ? (process.env.NODE_ENV !== "production" && console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"), r((p, ...v) => {
|
|
4438
|
-
let
|
|
4439
|
-
return c(
|
|
4438
|
+
let b = a(o ? u : p, ...v);
|
|
4439
|
+
return c(b, ...d), o ? p : b;
|
|
4440
4440
|
})) : (o || r(a), c(a, ...d));
|
|
4441
4441
|
}, [
|
|
4442
4442
|
o,
|
|
@@ -4457,9 +4457,9 @@ function op(t, e) {
|
|
|
4457
4457
|
function Sn(t) {
|
|
4458
4458
|
let { selectionMode: e = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: l, selectionBehavior: r = "toggle", disabledBehavior: i = "all" } = t, o = N(!1), [, u] = q(!1), s = N(null), a = N(null), [, d] = q(null), c = U(() => Hr(t.selectedKeys), [
|
|
4459
4459
|
t.selectedKeys
|
|
4460
|
-
]), f = U(() => Hr(t.defaultSelectedKeys, new
|
|
4460
|
+
]), f = U(() => Hr(t.defaultSelectedKeys, new Ie()), [
|
|
4461
4461
|
t.defaultSelectedKeys
|
|
4462
|
-
]), [p, v] = ot(c, f, t.onSelectionChange),
|
|
4462
|
+
]), [p, v] = ot(c, f, t.onSelectionChange), b = U(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
|
|
4463
4463
|
t.disabledKeys
|
|
4464
4464
|
]), [$, x] = q(r);
|
|
4465
4465
|
r === "replace" && $ === "toggle" && typeof p == "object" && p.size === 0 && x("replace");
|
|
@@ -4492,12 +4492,12 @@ function Sn(t) {
|
|
|
4492
4492
|
setSelectedKeys(P) {
|
|
4493
4493
|
(l || !op(P, p)) && v(P);
|
|
4494
4494
|
},
|
|
4495
|
-
disabledKeys:
|
|
4495
|
+
disabledKeys: b,
|
|
4496
4496
|
disabledBehavior: i
|
|
4497
4497
|
};
|
|
4498
4498
|
}
|
|
4499
4499
|
function Hr(t, e) {
|
|
4500
|
-
return t ? t === "all" ? "all" : new
|
|
4500
|
+
return t ? t === "all" ? "all" : new Ie(t) : e;
|
|
4501
4501
|
}
|
|
4502
4502
|
class Pt {
|
|
4503
4503
|
/**
|
|
@@ -4625,14 +4625,14 @@ class Pt {
|
|
|
4625
4625
|
let n = this.getKey(e);
|
|
4626
4626
|
if (n == null) return;
|
|
4627
4627
|
let l;
|
|
4628
|
-
if (this.state.selectedKeys === "all") l = new
|
|
4628
|
+
if (this.state.selectedKeys === "all") l = new Ie([
|
|
4629
4629
|
n
|
|
4630
4630
|
], n, n);
|
|
4631
4631
|
else {
|
|
4632
4632
|
let o = this.state.selectedKeys;
|
|
4633
4633
|
var r;
|
|
4634
4634
|
let u = (r = o.anchorKey) !== null && r !== void 0 ? r : n;
|
|
4635
|
-
l = new
|
|
4635
|
+
l = new Ie(o, u, n);
|
|
4636
4636
|
var i;
|
|
4637
4637
|
for (let s of this.getKeyRange(u, (i = o.currentKey) !== null && i !== void 0 ? i : n)) l.delete(s);
|
|
4638
4638
|
for (let s of this.getKeyRange(n, u)) this.canSelectItem(s) && l.add(s);
|
|
@@ -4671,7 +4671,7 @@ class Pt {
|
|
|
4671
4671
|
}
|
|
4672
4672
|
let n = this.getKey(e);
|
|
4673
4673
|
if (n == null) return;
|
|
4674
|
-
let l = new
|
|
4674
|
+
let l = new Ie(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
|
|
4675
4675
|
l.has(n) ? l.delete(n) : this.canSelectItem(n) && (l.add(n), l.anchorKey = n, l.currentKey = n), !(this.disallowEmptySelection && l.size === 0) && this.state.setSelectedKeys(l);
|
|
4676
4676
|
}
|
|
4677
4677
|
/**
|
|
@@ -4681,9 +4681,9 @@ class Pt {
|
|
|
4681
4681
|
if (this.selectionMode === "none") return;
|
|
4682
4682
|
let n = this.getKey(e);
|
|
4683
4683
|
if (n == null) return;
|
|
4684
|
-
let l = this.canSelectItem(n) ? new
|
|
4684
|
+
let l = this.canSelectItem(n) ? new Ie([
|
|
4685
4685
|
n
|
|
4686
|
-
], n, n) : new
|
|
4686
|
+
], n, n) : new Ie();
|
|
4687
4687
|
this.state.setSelectedKeys(l);
|
|
4688
4688
|
}
|
|
4689
4689
|
/**
|
|
@@ -4691,7 +4691,7 @@ class Pt {
|
|
|
4691
4691
|
*/
|
|
4692
4692
|
setSelectedKeys(e) {
|
|
4693
4693
|
if (this.selectionMode === "none") return;
|
|
4694
|
-
let n = new
|
|
4694
|
+
let n = new Ie();
|
|
4695
4695
|
for (let l of e) {
|
|
4696
4696
|
let r = this.getKey(l);
|
|
4697
4697
|
if (r != null && (n.add(r), this.selectionMode === "single"))
|
|
@@ -4724,7 +4724,7 @@ class Pt {
|
|
|
4724
4724
|
* Removes all keys from the selection.
|
|
4725
4725
|
*/
|
|
4726
4726
|
clearSelection() {
|
|
4727
|
-
!this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new
|
|
4727
|
+
!this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new Ie());
|
|
4728
4728
|
}
|
|
4729
4729
|
/**
|
|
4730
4730
|
* Toggles between select all and an empty selection.
|
|
@@ -4807,15 +4807,15 @@ function sp(t, e) {
|
|
|
4807
4807
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
4808
4808
|
}
|
|
4809
4809
|
function Cn(t, e) {
|
|
4810
|
-
let { elementType: n = "button", isDisabled: l, onPress: r, onPressStart: i, onPressEnd: o, onPressUp: u, onPressChange: s, preventFocusOnPress: a, allowFocusWhenDisabled: d, onClick: c, href: f, target: p, rel: v, type:
|
|
4810
|
+
let { elementType: n = "button", isDisabled: l, onPress: r, onPressStart: i, onPressEnd: o, onPressUp: u, onPressChange: s, preventFocusOnPress: a, allowFocusWhenDisabled: d, onClick: c, href: f, target: p, rel: v, type: b = "button" } = t, $;
|
|
4811
4811
|
n === "button" ? $ = {
|
|
4812
|
-
type:
|
|
4812
|
+
type: b,
|
|
4813
4813
|
disabled: l
|
|
4814
4814
|
} : $ = {
|
|
4815
4815
|
role: "button",
|
|
4816
4816
|
href: n === "a" && !l ? f : void 0,
|
|
4817
4817
|
target: n === "a" ? p : void 0,
|
|
4818
|
-
type: n === "input" ?
|
|
4818
|
+
type: n === "input" ? b : void 0,
|
|
4819
4819
|
disabled: n === "input" ? l : void 0,
|
|
4820
4820
|
"aria-disabled": !l || n === "input" ? void 0 : l,
|
|
4821
4821
|
rel: n === "a" ? v : void 0
|
|
@@ -4846,56 +4846,7 @@ function Cn(t, e) {
|
|
|
4846
4846
|
})
|
|
4847
4847
|
};
|
|
4848
4848
|
}
|
|
4849
|
-
const
|
|
4850
|
-
const n = e === id.DARK ? td : nd;
|
|
4851
|
-
if (t) {
|
|
4852
|
-
const l = cp(t);
|
|
4853
|
-
return {
|
|
4854
|
-
...n,
|
|
4855
|
-
...l
|
|
4856
|
-
};
|
|
4857
|
-
}
|
|
4858
|
-
return n;
|
|
4859
|
-
}, cp = (t) => ({
|
|
4860
|
-
"--proton-color__primary": t.BRAND.PRIMARY,
|
|
4861
|
-
"--proton-color__primary-light": t.BRAND.PRIMARY_LIGHT,
|
|
4862
|
-
"--proton-color__primary-super-light": t.BRAND.PRIMARY_SUPER_LIGHT,
|
|
4863
|
-
"--proton-color__secondary": t.BRAND.SECONDARY,
|
|
4864
|
-
"--proton-color__secondary-light": t.BRAND.SECONDARY_LIGHT,
|
|
4865
|
-
"--proton-color__secondary-super-light": t.BRAND.SECONDARY_SUPER_LIGHT
|
|
4866
|
-
//TODO: add newly generated grayscale color scale
|
|
4867
|
-
}), Pu = te(void 0), Me = () => {
|
|
4868
|
-
const t = G(Pu);
|
|
4869
|
-
if (t === void 0)
|
|
4870
|
-
throw new Error("useTheme must be used within a ThemeProvider");
|
|
4871
|
-
return t;
|
|
4872
|
-
}, dp = ({
|
|
4873
|
-
theme: t,
|
|
4874
|
-
children: e,
|
|
4875
|
-
palette: n = ld
|
|
4876
|
-
}) => {
|
|
4877
|
-
const l = N(null), r = od[t], i = U(
|
|
4878
|
-
() => ap(n, t),
|
|
4879
|
-
[n, t]
|
|
4880
|
-
);
|
|
4881
|
-
return Y(() => {
|
|
4882
|
-
l.current && (l.current.className = r, Object.entries(i).forEach(([o, u]) => {
|
|
4883
|
-
l.current.style.setProperty(o, u);
|
|
4884
|
-
}));
|
|
4885
|
-
}, [t, r, n, i]), /* @__PURE__ */ m.jsx(
|
|
4886
|
-
Pu.Provider,
|
|
4887
|
-
{
|
|
4888
|
-
value: {
|
|
4889
|
-
theme: t,
|
|
4890
|
-
style: i,
|
|
4891
|
-
palette: n,
|
|
4892
|
-
className: r,
|
|
4893
|
-
hasPalette: !!n
|
|
4894
|
-
},
|
|
4895
|
-
children: /* @__PURE__ */ m.jsx("div", { ref: l, children: e })
|
|
4896
|
-
}
|
|
4897
|
-
);
|
|
4898
|
-
}, j0 = {
|
|
4849
|
+
const j0 = {
|
|
4899
4850
|
primary: "primary",
|
|
4900
4851
|
secondary: "secondary",
|
|
4901
4852
|
success: "success",
|
|
@@ -4925,31 +4876,30 @@ const ap = (t, e) => {
|
|
|
4925
4876
|
target: i || (p ? "_blank" : void 0),
|
|
4926
4877
|
href: r,
|
|
4927
4878
|
rel: p || i === "_blank" ? "noopener noreferrer" : void 0
|
|
4928
|
-
},
|
|
4879
|
+
}, b = N(null), $ = N(null), { buttonProps: x } = Cn(
|
|
4929
4880
|
{
|
|
4930
4881
|
onPress: o,
|
|
4931
4882
|
elementType: f,
|
|
4932
4883
|
type: u || "button",
|
|
4933
4884
|
isDisabled: s
|
|
4934
4885
|
},
|
|
4935
|
-
|
|
4886
|
+
b
|
|
4936
4887
|
);
|
|
4937
4888
|
return _c(() => {
|
|
4938
|
-
typeof c == "function" ? c(
|
|
4889
|
+
typeof c == "function" ? c(b.current) : c && (c.current = b.current);
|
|
4939
4890
|
}, [c]), /* @__PURE__ */ m.jsxs(
|
|
4940
4891
|
f,
|
|
4941
4892
|
{
|
|
4942
|
-
...
|
|
4893
|
+
...x,
|
|
4943
4894
|
...v,
|
|
4944
4895
|
className: V(
|
|
4945
4896
|
"proton-Button",
|
|
4946
4897
|
`proton-Button--${t}`,
|
|
4947
4898
|
n && "proton-Button--fullWidth",
|
|
4948
4899
|
s && "proton-Button--disabled",
|
|
4949
|
-
e && `proton-Button--${e}
|
|
4950
|
-
y
|
|
4900
|
+
e && `proton-Button--${e}`
|
|
4951
4901
|
),
|
|
4952
|
-
ref:
|
|
4902
|
+
ref: b,
|
|
4953
4903
|
"data-testid": a,
|
|
4954
4904
|
children: [
|
|
4955
4905
|
l && /* @__PURE__ */ m.jsx(
|
|
@@ -4959,7 +4909,7 @@ const ap = (t, e) => {
|
|
|
4959
4909
|
"proton-Button__icon-decorator",
|
|
4960
4910
|
n && "proton-Button__icon-decorator--fullWidth"
|
|
4961
4911
|
),
|
|
4962
|
-
ref:
|
|
4912
|
+
ref: $,
|
|
4963
4913
|
children: l
|
|
4964
4914
|
}
|
|
4965
4915
|
),
|
|
@@ -4970,9 +4920,58 @@ const ap = (t, e) => {
|
|
|
4970
4920
|
}
|
|
4971
4921
|
);
|
|
4972
4922
|
Dt.displayName = "ProtonUIButton";
|
|
4973
|
-
const
|
|
4923
|
+
const ap = (t, e) => {
|
|
4924
|
+
const n = e === id.DARK ? td : nd;
|
|
4925
|
+
if (t) {
|
|
4926
|
+
const l = cp(t);
|
|
4927
|
+
return {
|
|
4928
|
+
...n,
|
|
4929
|
+
...l
|
|
4930
|
+
};
|
|
4931
|
+
}
|
|
4932
|
+
return n;
|
|
4933
|
+
}, cp = (t) => ({
|
|
4934
|
+
"--proton-color__primary": t.BRAND.PRIMARY,
|
|
4935
|
+
"--proton-color__primary-light": t.BRAND.PRIMARY_LIGHT,
|
|
4936
|
+
"--proton-color__primary-super-light": t.BRAND.PRIMARY_SUPER_LIGHT,
|
|
4937
|
+
"--proton-color__secondary": t.BRAND.SECONDARY,
|
|
4938
|
+
"--proton-color__secondary-light": t.BRAND.SECONDARY_LIGHT,
|
|
4939
|
+
"--proton-color__secondary-super-light": t.BRAND.SECONDARY_SUPER_LIGHT
|
|
4940
|
+
//TODO: add newly generated grayscale color scale
|
|
4941
|
+
}), Pu = te(void 0), Re = () => {
|
|
4942
|
+
const t = G(Pu);
|
|
4943
|
+
if (t === void 0)
|
|
4944
|
+
throw new Error("useTheme must be used within a ThemeProvider");
|
|
4945
|
+
return t;
|
|
4946
|
+
}, dp = ({
|
|
4947
|
+
theme: t,
|
|
4948
|
+
children: e,
|
|
4949
|
+
palette: n = ld
|
|
4950
|
+
}) => {
|
|
4951
|
+
const l = N(null), r = od[t], i = U(
|
|
4952
|
+
() => ap(n, t),
|
|
4953
|
+
[n, t]
|
|
4954
|
+
);
|
|
4955
|
+
return Y(() => {
|
|
4956
|
+
l.current && (l.current.className = r, Object.entries(i).forEach(([o, u]) => {
|
|
4957
|
+
l.current.style.setProperty(o, u);
|
|
4958
|
+
}));
|
|
4959
|
+
}, [t, r, n, i]), /* @__PURE__ */ m.jsx(
|
|
4960
|
+
Pu.Provider,
|
|
4961
|
+
{
|
|
4962
|
+
value: {
|
|
4963
|
+
theme: t,
|
|
4964
|
+
style: i,
|
|
4965
|
+
palette: n,
|
|
4966
|
+
className: r,
|
|
4967
|
+
hasPalette: !!n
|
|
4968
|
+
},
|
|
4969
|
+
children: /* @__PURE__ */ m.jsx("div", { ref: l, children: e })
|
|
4970
|
+
}
|
|
4971
|
+
);
|
|
4972
|
+
}, Al = Fe(
|
|
4974
4973
|
({ fadeIn: t = !1, onClose: e, children: n }, l) => {
|
|
4975
|
-
const { theme: r, palette: i } =
|
|
4974
|
+
const { theme: r, palette: i } = Re();
|
|
4976
4975
|
return Y(() => {
|
|
4977
4976
|
if (!e) return;
|
|
4978
4977
|
const o = (u) => {
|
|
@@ -5059,7 +5058,7 @@ const Du = ({
|
|
|
5059
5058
|
"data-testid": f
|
|
5060
5059
|
}) => {
|
|
5061
5060
|
ed(t);
|
|
5062
|
-
const { theme: p } =
|
|
5061
|
+
const { theme: p } = Re(), [v, b] = q(0), [$, x] = q([]), [E, P] = q({
|
|
5063
5062
|
title: a,
|
|
5064
5063
|
actions: s,
|
|
5065
5064
|
key: null,
|
|
@@ -5068,7 +5067,7 @@ const Du = ({
|
|
|
5068
5067
|
onClose: c,
|
|
5069
5068
|
overlayRef: I
|
|
5070
5069
|
}), g = k && k.length > 0, F = () => {
|
|
5071
|
-
|
|
5070
|
+
b(0), A();
|
|
5072
5071
|
}, R = up({
|
|
5073
5072
|
items: k,
|
|
5074
5073
|
children: k.map((C) => /* @__PURE__ */ si(Eu, { ...C, key: C.key, textValue: C.key }, C.label)),
|
|
@@ -5130,7 +5129,7 @@ const Du = ({
|
|
|
5130
5129
|
}
|
|
5131
5130
|
}
|
|
5132
5131
|
Y(() => {
|
|
5133
|
-
t && S.current &&
|
|
5132
|
+
t && S.current && b(S.current.scrollHeight);
|
|
5134
5133
|
}, [t, S, $]);
|
|
5135
5134
|
const T = i || g || o;
|
|
5136
5135
|
return t ? /* @__PURE__ */ m.jsx(Al, { fadeIn: !0, ref: I, onClose: F, children: /* @__PURE__ */ m.jsx(
|
|
@@ -5447,7 +5446,7 @@ function yp(t, e, n) {
|
|
|
5447
5446
|
M.stopPropagation(), e.setSelectedValue(l);
|
|
5448
5447
|
}, { pressProps: f, isPressed: p } = Xe({
|
|
5449
5448
|
isDisabled: u
|
|
5450
|
-
}), { pressProps: v, isPressed:
|
|
5449
|
+
}), { pressProps: v, isPressed: b } = Xe({
|
|
5451
5450
|
isDisabled: u,
|
|
5452
5451
|
onPress() {
|
|
5453
5452
|
var M;
|
|
@@ -5484,13 +5483,13 @@ function yp(t, e, n) {
|
|
|
5484
5483
|
}),
|
|
5485
5484
|
isDisabled: u,
|
|
5486
5485
|
isSelected: d,
|
|
5487
|
-
isPressed: p ||
|
|
5486
|
+
isPressed: p || b
|
|
5488
5487
|
};
|
|
5489
5488
|
}
|
|
5490
5489
|
function Fu(t) {
|
|
5491
5490
|
let { id: e, label: n, "aria-labelledby": l, "aria-label": r, labelElementType: i = "label" } = t;
|
|
5492
|
-
e =
|
|
5493
|
-
let o =
|
|
5491
|
+
e = Ne(e);
|
|
5492
|
+
let o = Ne(), u = {};
|
|
5494
5493
|
n ? (l = l ? `${o} ${l}` : o, u = {
|
|
5495
5494
|
id: o,
|
|
5496
5495
|
htmlFor: i === "label" ? e : void 0
|
|
@@ -5536,7 +5535,7 @@ function Il(t) {
|
|
|
5536
5535
|
};
|
|
5537
5536
|
}
|
|
5538
5537
|
function $p(t, e) {
|
|
5539
|
-
let { name: n, isReadOnly: l, isRequired: r, isDisabled: i, orientation: o = "vertical", validationBehavior: u = "aria" } = t, { direction: s } = Je(), { isInvalid: a, validationErrors: d, validationDetails: c } = e.displayValidation, { labelProps: f, fieldProps: p, descriptionProps: v, errorMessageProps:
|
|
5538
|
+
let { name: n, isReadOnly: l, isRequired: r, isDisabled: i, orientation: o = "vertical", validationBehavior: u = "aria" } = t, { direction: s } = Je(), { isInvalid: a, validationErrors: d, validationDetails: c } = e.displayValidation, { labelProps: f, fieldProps: p, descriptionProps: v, errorMessageProps: b } = Il({
|
|
5540
5539
|
...t,
|
|
5541
5540
|
// Radio group is not an HTML input element so it
|
|
5542
5541
|
// shouldn't be labeled by a <label> element.
|
|
@@ -5575,11 +5574,11 @@ function $p(t, e) {
|
|
|
5575
5574
|
from: k.target
|
|
5576
5575
|
}), I;
|
|
5577
5576
|
S === "next" ? (I = D.nextNode(), I || (D.currentNode = k.currentTarget, I = D.firstChild())) : (I = D.previousNode(), I || (D.currentNode = k.currentTarget, I = D.lastChild())), I && (I.focus(), e.setSelectedValue(I.value));
|
|
5578
|
-
}, P =
|
|
5577
|
+
}, P = Ne(n);
|
|
5579
5578
|
return Au.set(e, {
|
|
5580
5579
|
name: P,
|
|
5581
5580
|
descriptionId: v.id,
|
|
5582
|
-
errorMessageId:
|
|
5581
|
+
errorMessageId: b.id,
|
|
5583
5582
|
validationBehavior: u
|
|
5584
5583
|
}), {
|
|
5585
5584
|
radioGroupProps: W($, {
|
|
@@ -5597,7 +5596,7 @@ function $p(t, e) {
|
|
|
5597
5596
|
}),
|
|
5598
5597
|
labelProps: f,
|
|
5599
5598
|
descriptionProps: v,
|
|
5600
|
-
errorMessageProps:
|
|
5599
|
+
errorMessageProps: b,
|
|
5601
5600
|
isInvalid: a,
|
|
5602
5601
|
validationErrors: d,
|
|
5603
5602
|
validationDetails: c
|
|
@@ -5656,8 +5655,8 @@ function Ep(t) {
|
|
|
5656
5655
|
let d = G(xp), c = U(() => l ? Array.isArray(l) ? l.flatMap((A) => sl(d[A])) : sl(d[l]) : [], [
|
|
5657
5656
|
d,
|
|
5658
5657
|
l
|
|
5659
|
-
]), [f, p] = q(d), [v,
|
|
5660
|
-
d !== f && (p(d),
|
|
5658
|
+
]), [f, p] = q(d), [v, b] = q(!1);
|
|
5659
|
+
d !== f && (p(d), b(!1));
|
|
5661
5660
|
let $ = U(() => Wr(v ? [] : c), [
|
|
5662
5661
|
v,
|
|
5663
5662
|
c
|
|
@@ -5675,10 +5674,10 @@ function Ep(t) {
|
|
|
5675
5674
|
},
|
|
5676
5675
|
resetValidation() {
|
|
5677
5676
|
let A = Ft;
|
|
5678
|
-
Vn(A, k.current) || (k.current = A, P(A)), u === "native" && I(!1),
|
|
5677
|
+
Vn(A, k.current) || (k.current = A, P(A)), u === "native" && I(!1), b(!0);
|
|
5679
5678
|
},
|
|
5680
5679
|
commitValidation() {
|
|
5681
|
-
u === "native" && I(!0),
|
|
5680
|
+
u === "native" && I(!0), b(!0);
|
|
5682
5681
|
}
|
|
5683
5682
|
};
|
|
5684
5683
|
}
|
|
@@ -6281,16 +6280,16 @@ function Ap() {
|
|
|
6281
6280
|
}
|
|
6282
6281
|
var n = typeof Object.is == "function" ? Object.is : e, l = t.useState, r = t.useEffect, i = t.useLayoutEffect, o = t.useDebugValue;
|
|
6283
6282
|
function u(c, f) {
|
|
6284
|
-
var p = f(), v = l({ inst: { value: p, getSnapshot: f } }),
|
|
6283
|
+
var p = f(), v = l({ inst: { value: p, getSnapshot: f } }), b = v[0].inst, $ = v[1];
|
|
6285
6284
|
return i(
|
|
6286
6285
|
function() {
|
|
6287
|
-
|
|
6286
|
+
b.value = p, b.getSnapshot = f, s(b) && $({ inst: b });
|
|
6288
6287
|
},
|
|
6289
6288
|
[c, p, f]
|
|
6290
6289
|
), r(
|
|
6291
6290
|
function() {
|
|
6292
|
-
return s(
|
|
6293
|
-
s(
|
|
6291
|
+
return s(b) && $({ inst: b }), c(function() {
|
|
6292
|
+
s(b) && $({ inst: b });
|
|
6294
6293
|
});
|
|
6295
6294
|
},
|
|
6296
6295
|
[c]
|
|
@@ -6332,22 +6331,22 @@ function Fp() {
|
|
|
6332
6331
|
d || r.startTransition === void 0 || (d = !0, console.error(
|
|
6333
6332
|
"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."
|
|
6334
6333
|
));
|
|
6335
|
-
var
|
|
6334
|
+
var b = v();
|
|
6336
6335
|
if (!c) {
|
|
6337
6336
|
var $ = v();
|
|
6338
|
-
i(
|
|
6337
|
+
i(b, $) || (console.error(
|
|
6339
6338
|
"The result of getSnapshot should be cached to avoid an infinite loop"
|
|
6340
6339
|
), c = !0);
|
|
6341
6340
|
}
|
|
6342
6341
|
$ = o({
|
|
6343
|
-
inst: { value:
|
|
6342
|
+
inst: { value: b, getSnapshot: v }
|
|
6344
6343
|
});
|
|
6345
6344
|
var x = $[0].inst, E = $[1];
|
|
6346
6345
|
return s(
|
|
6347
6346
|
function() {
|
|
6348
|
-
x.value =
|
|
6347
|
+
x.value = b, x.getSnapshot = v, n(x) && E({ inst: x });
|
|
6349
6348
|
},
|
|
6350
|
-
[p,
|
|
6349
|
+
[p, b, v]
|
|
6351
6350
|
), u(
|
|
6352
6351
|
function() {
|
|
6353
6352
|
return n(x) && E({ inst: x }), p(function() {
|
|
@@ -6355,14 +6354,14 @@ function Fp() {
|
|
|
6355
6354
|
});
|
|
6356
6355
|
},
|
|
6357
6356
|
[p]
|
|
6358
|
-
), a(
|
|
6357
|
+
), a(b), b;
|
|
6359
6358
|
}
|
|
6360
6359
|
function n(p) {
|
|
6361
6360
|
var v = p.getSnapshot;
|
|
6362
6361
|
p = p.value;
|
|
6363
6362
|
try {
|
|
6364
|
-
var
|
|
6365
|
-
return !i(p,
|
|
6363
|
+
var b = v();
|
|
6364
|
+
return !i(p, b);
|
|
6366
6365
|
} catch {
|
|
6367
6366
|
return !0;
|
|
6368
6367
|
}
|
|
@@ -6575,8 +6574,8 @@ const Hp = /* @__PURE__ */ new Set([
|
|
|
6575
6574
|
...e,
|
|
6576
6575
|
values: f,
|
|
6577
6576
|
defaultClassName: "react-aria-Button"
|
|
6578
|
-
}), v = cr(i.id),
|
|
6579
|
-
r && ($ ? $ = `${$} ${
|
|
6577
|
+
}), v = cr(i.id), b = cr(), $ = i["aria-labelledby"];
|
|
6578
|
+
r && ($ ? $ = `${$} ${b}` : i["aria-label"] && ($ = `${v} ${b}`));
|
|
6580
6579
|
let x = N(r);
|
|
6581
6580
|
return Y(() => {
|
|
6582
6581
|
let E = {
|
|
@@ -6608,7 +6607,7 @@ const Hp = /* @__PURE__ */ new Set([
|
|
|
6608
6607
|
"data-focus-visible": a || void 0
|
|
6609
6608
|
}, /* @__PURE__ */ B.createElement(zp.Provider, {
|
|
6610
6609
|
value: {
|
|
6611
|
-
id:
|
|
6610
|
+
id: b
|
|
6612
6611
|
}
|
|
6613
6612
|
}, p.children));
|
|
6614
6613
|
});
|
|
@@ -6648,7 +6647,7 @@ function Xp(t, e, n) {
|
|
|
6648
6647
|
onFocusWithin: t.onFocus,
|
|
6649
6648
|
onBlurWithin: t.onBlur,
|
|
6650
6649
|
onFocusWithinChange: t.onFocusChange
|
|
6651
|
-
}), s =
|
|
6650
|
+
}), s = Ne(t.id);
|
|
6652
6651
|
Ol.set(e, {
|
|
6653
6652
|
id: s,
|
|
6654
6653
|
shouldUseVirtualFocus: t.shouldUseVirtualFocus,
|
|
@@ -6686,8 +6685,8 @@ function Zp(t, e, n) {
|
|
|
6686
6685
|
let f = (c = t.shouldSelectOnPressUp) !== null && c !== void 0 ? c : o == null ? void 0 : o.shouldSelectOnPressUp;
|
|
6687
6686
|
var p;
|
|
6688
6687
|
let v = (p = t.shouldFocusOnHover) !== null && p !== void 0 ? p : o == null ? void 0 : o.shouldFocusOnHover;
|
|
6689
|
-
var
|
|
6690
|
-
let $ = (
|
|
6688
|
+
var b;
|
|
6689
|
+
let $ = (b = t.shouldUseVirtualFocus) !== null && b !== void 0 ? b : o == null ? void 0 : o.shouldUseVirtualFocus;
|
|
6691
6690
|
var x;
|
|
6692
6691
|
let E = (x = t.isVirtualized) !== null && x !== void 0 ? x : o == null ? void 0 : o.isVirtualized, P = rt(), k = rt(), S = {
|
|
6693
6692
|
role: "option",
|
|
@@ -6748,7 +6747,7 @@ function qu(t, e) {
|
|
|
6748
6747
|
let { inputElementType: n = "input", isDisabled: l = !1, isRequired: r = !1, isReadOnly: i = !1, type: o = "text", validationBehavior: u = "aria" } = t, [s, a] = ot(t.value, t.defaultValue || "", t.onChange), { focusableProps: d } = zt(t, e), c = Nl({
|
|
6749
6748
|
...t,
|
|
6750
6749
|
value: s
|
|
6751
|
-
}), { isInvalid: f, validationErrors: p, validationDetails: v } = c.displayValidation, { labelProps:
|
|
6750
|
+
}), { isInvalid: f, validationErrors: p, validationDetails: v } = c.displayValidation, { labelProps: b, fieldProps: $, descriptionProps: x, errorMessageProps: E } = Il({
|
|
6752
6751
|
...t,
|
|
6753
6752
|
isInvalid: f,
|
|
6754
6753
|
errorMessage: t.errorMessage || p
|
|
@@ -6772,7 +6771,7 @@ function qu(t, e) {
|
|
|
6772
6771
|
}, [
|
|
6773
6772
|
e
|
|
6774
6773
|
]), {
|
|
6775
|
-
labelProps:
|
|
6774
|
+
labelProps: b,
|
|
6776
6775
|
inputProps: W(P, n === "input" ? k : void 0, {
|
|
6777
6776
|
disabled: l,
|
|
6778
6777
|
readOnly: i,
|
|
@@ -7004,7 +7003,7 @@ function Qp(t, e, n) {
|
|
|
7004
7003
|
}, c = () => {
|
|
7005
7004
|
var x;
|
|
7006
7005
|
(x = n.current) === null || x === void 0 || x.focus();
|
|
7007
|
-
}, { labelProps: f, inputProps: p, descriptionProps: v, errorMessageProps:
|
|
7006
|
+
}, { labelProps: f, inputProps: p, descriptionProps: v, errorMessageProps: b, ...$ } = qu({
|
|
7008
7007
|
...t,
|
|
7009
7008
|
value: e.value,
|
|
7010
7009
|
onChange: e.setValue,
|
|
@@ -7027,7 +7026,7 @@ function Qp(t, e, n) {
|
|
|
7027
7026
|
onPressStart: c
|
|
7028
7027
|
},
|
|
7029
7028
|
descriptionProps: v,
|
|
7030
|
-
errorMessageProps:
|
|
7029
|
+
errorMessageProps: b,
|
|
7031
7030
|
...$
|
|
7032
7031
|
};
|
|
7033
7032
|
}
|
|
@@ -7142,7 +7141,7 @@ function ov({ state: t, isExiting: e, UNSTABLE_portalContainer: n, ...l }) {
|
|
|
7142
7141
|
// If this is a submenu/subdialog, use the root popover's container
|
|
7143
7142
|
// to detect outside interaction and add aria-hidden.
|
|
7144
7143
|
groupRef: a ? s : u
|
|
7145
|
-
}, t),
|
|
7144
|
+
}, t), b = l.popoverRef, $ = gi(b, !!v) || l.isEntering || !1, x = vt({
|
|
7146
7145
|
...l,
|
|
7147
7146
|
defaultClassName: "react-aria-Popover",
|
|
7148
7147
|
values: {
|
|
@@ -7153,15 +7152,15 @@ function ov({ state: t, isExiting: e, UNSTABLE_portalContainer: n, ...l }) {
|
|
|
7153
7152
|
}
|
|
7154
7153
|
}), E = !l.isNonModal || l.trigger === "SubmenuTrigger", [P, k] = q(!1);
|
|
7155
7154
|
ue(() => {
|
|
7156
|
-
|
|
7155
|
+
b.current && k(E && !b.current.querySelector("[role=dialog]"));
|
|
7157
7156
|
}, [
|
|
7158
|
-
|
|
7157
|
+
b,
|
|
7159
7158
|
E
|
|
7160
7159
|
]), Y(() => {
|
|
7161
|
-
P &&
|
|
7160
|
+
P && b.current && !b.current.contains(document.activeElement) && ye(b.current);
|
|
7162
7161
|
}, [
|
|
7163
7162
|
P,
|
|
7164
|
-
|
|
7163
|
+
b
|
|
7165
7164
|
]);
|
|
7166
7165
|
let S = {
|
|
7167
7166
|
...c.style,
|
|
@@ -7173,7 +7172,7 @@ function ov({ state: t, isExiting: e, UNSTABLE_portalContainer: n, ...l }) {
|
|
|
7173
7172
|
tabIndex: P ? -1 : void 0,
|
|
7174
7173
|
"aria-label": l["aria-label"],
|
|
7175
7174
|
"aria-labelledby": l["aria-labelledby"],
|
|
7176
|
-
ref:
|
|
7175
|
+
ref: b,
|
|
7177
7176
|
slot: l.slot || void 0,
|
|
7178
7177
|
style: S,
|
|
7179
7178
|
dir: l.dir,
|
|
@@ -7395,7 +7394,7 @@ function Rs(t, e, n, l = "react-aria-MenuSection") {
|
|
|
7395
7394
|
className: (r = n.props) === null || r === void 0 ? void 0 : r.className,
|
|
7396
7395
|
style: (i = n.props) === null || i === void 0 ? void 0 : i.style,
|
|
7397
7396
|
values: {}
|
|
7398
|
-
}), v = G(pn),
|
|
7397
|
+
}), v = G(pn), b = Sn(t), $ = t.selectionMode != null ? new cv(v, b) : v;
|
|
7399
7398
|
return /* @__PURE__ */ B.createElement("section", {
|
|
7400
7399
|
...ge(t),
|
|
7401
7400
|
...f,
|
|
@@ -7428,7 +7427,7 @@ const dv = /* @__PURE__ */ Uu("section", Rs), vn = /* @__PURE__ */ te(null), fv
|
|
|
7428
7427
|
id: i,
|
|
7429
7428
|
key: l.key,
|
|
7430
7429
|
selectionManager: s
|
|
7431
|
-
}, o, u), { hoverProps: v, isHovered:
|
|
7430
|
+
}, o, u), { hoverProps: v, isHovered: b } = Si({
|
|
7432
7431
|
isDisabled: p.isDisabled
|
|
7433
7432
|
}), $ = vt({
|
|
7434
7433
|
...e,
|
|
@@ -7437,7 +7436,7 @@ const dv = /* @__PURE__ */ Uu("section", Rs), vn = /* @__PURE__ */ te(null), fv
|
|
|
7437
7436
|
defaultClassName: "react-aria-MenuItem",
|
|
7438
7437
|
values: {
|
|
7439
7438
|
...p,
|
|
7440
|
-
isHovered:
|
|
7439
|
+
isHovered: b,
|
|
7441
7440
|
isFocusVisible: p.isFocusVisible,
|
|
7442
7441
|
selectionMode: s.selectionMode,
|
|
7443
7442
|
selectionBehavior: s.selectionBehavior,
|
|
@@ -7450,7 +7449,7 @@ const dv = /* @__PURE__ */ Uu("section", Rs), vn = /* @__PURE__ */ te(null), fv
|
|
|
7450
7449
|
...$,
|
|
7451
7450
|
ref: u,
|
|
7452
7451
|
"data-disabled": p.isDisabled || void 0,
|
|
7453
|
-
"data-hovered":
|
|
7452
|
+
"data-hovered": b || void 0,
|
|
7454
7453
|
"data-focused": p.isFocused || void 0,
|
|
7455
7454
|
"data-focus-visible": p.isFocusVisible || void 0,
|
|
7456
7455
|
"data-pressed": p.isPressed || void 0,
|
|
@@ -7486,9 +7485,9 @@ function pv(t) {
|
|
|
7486
7485
|
let v = e.getItem(s);
|
|
7487
7486
|
if ((v == null ? void 0 : v.type) === "item") {
|
|
7488
7487
|
var d, c;
|
|
7489
|
-
let
|
|
7488
|
+
let b = he(v, e);
|
|
7490
7489
|
var f, p;
|
|
7491
|
-
a === "last" ? s = (f = (d = lt(
|
|
7490
|
+
a === "last" ? s = (f = (d = lt(b)) === null || d === void 0 ? void 0 : d.key) !== null && f !== void 0 ? f : null : s = (p = (c = Ye(b)) === null || c === void 0 ? void 0 : c.key) !== null && p !== void 0 ? p : null;
|
|
7492
7491
|
}
|
|
7493
7492
|
}
|
|
7494
7493
|
i(s, a);
|
|
@@ -7515,9 +7514,9 @@ function pv(t) {
|
|
|
7515
7514
|
p < c.length - 1 ? p++ : (p > a.index && (p = a.index), p--);
|
|
7516
7515
|
}
|
|
7517
7516
|
if (v) {
|
|
7518
|
-
const
|
|
7517
|
+
const b = v.hasChildNodes ? [
|
|
7519
7518
|
...he(v, e)
|
|
7520
|
-
] : [], $ = v.hasChildNodes && a !== s && s && s.index <
|
|
7519
|
+
] : [], $ = v.hasChildNodes && a !== s && s && s.index < b.length ? b[s.index].key : v.key;
|
|
7521
7520
|
l.setFocusedKey($);
|
|
7522
7521
|
} else l.setFocusedKey(null);
|
|
7523
7522
|
}
|
|
@@ -7590,16 +7589,16 @@ class vv {
|
|
|
7590
7589
|
let n = (c) => {
|
|
7591
7590
|
let f = this.keyMap.get(c.key);
|
|
7592
7591
|
e.visitNode && (c = e.visitNode(c)), this.keyMap.set(c.key, c);
|
|
7593
|
-
let p = /* @__PURE__ */ new Set(), v = null,
|
|
7592
|
+
let p = /* @__PURE__ */ new Set(), v = null, b = !1;
|
|
7594
7593
|
if (c.type === "item") {
|
|
7595
7594
|
var $;
|
|
7596
7595
|
for (let S of c.childNodes) if ((($ = S.props) === null || $ === void 0 ? void 0 : $.colSpan) !== void 0) {
|
|
7597
|
-
|
|
7596
|
+
b = !0;
|
|
7598
7597
|
break;
|
|
7599
7598
|
}
|
|
7600
7599
|
}
|
|
7601
7600
|
for (let S of c.childNodes) {
|
|
7602
|
-
if (S.type === "cell" &&
|
|
7601
|
+
if (S.type === "cell" && b) {
|
|
7603
7602
|
var x, E;
|
|
7604
7603
|
S.colspan = (x = S.props) === null || x === void 0 ? void 0 : x.colSpan, S.colSpan = (E = S.props) === null || E === void 0 ? void 0 : E.colSpan;
|
|
7605
7604
|
var P, k;
|
|
@@ -7650,9 +7649,9 @@ function hv(t, e) {
|
|
|
7650
7649
|
if (l.has(p)) {
|
|
7651
7650
|
var r, i;
|
|
7652
7651
|
(i = (r = p).colSpan) !== null && i !== void 0 || (r.colSpan = 0), p.colSpan++, p.colspan = p.colSpan;
|
|
7653
|
-
let { column: v, index:
|
|
7654
|
-
if (
|
|
7655
|
-
for (let $ =
|
|
7652
|
+
let { column: v, index: b } = l.get(p);
|
|
7653
|
+
if (b > f.length) break;
|
|
7654
|
+
for (let $ = b; $ < f.length; $++) v.splice($, 0, null);
|
|
7656
7655
|
for (let $ = f.length; $ < v.length; $++)
|
|
7657
7656
|
v[$] && l.has(v[$]) && (l.get(v[$]).index = $);
|
|
7658
7657
|
} else
|
|
@@ -7669,12 +7668,12 @@ function hv(t, e) {
|
|
|
7669
7668
|
let c = o - 1;
|
|
7670
7669
|
for (let f of d) {
|
|
7671
7670
|
if (f) {
|
|
7672
|
-
let p = u[c], v = p.reduce((
|
|
7671
|
+
let p = u[c], v = p.reduce((b, $) => {
|
|
7673
7672
|
var x;
|
|
7674
|
-
return
|
|
7673
|
+
return b + ((x = $.colSpan) !== null && x !== void 0 ? x : 1);
|
|
7675
7674
|
}, 0);
|
|
7676
7675
|
if (v < s) {
|
|
7677
|
-
let
|
|
7676
|
+
let b = {
|
|
7678
7677
|
type: "placeholder",
|
|
7679
7678
|
key: "placeholder-" + f.key,
|
|
7680
7679
|
colspan: s - v,
|
|
@@ -7687,7 +7686,7 @@ function hv(t, e) {
|
|
|
7687
7686
|
childNodes: [],
|
|
7688
7687
|
textValue: ""
|
|
7689
7688
|
};
|
|
7690
|
-
p.length > 0 && (p[p.length - 1].nextKey =
|
|
7689
|
+
p.length > 0 && (p[p.length - 1].nextKey = b.key, b.prevKey = p[p.length - 1].key), p.push(b);
|
|
7691
7690
|
}
|
|
7692
7691
|
p.length > 0 && (p[p.length - 1].nextKey = f.key, f.prevKey = p[p.length - 1].key), f.level = c, f.colIndex = s, p.push(f);
|
|
7693
7692
|
}
|
|
@@ -8208,7 +8207,7 @@ function kv({
|
|
|
8208
8207
|
title: o,
|
|
8209
8208
|
triggerRef: u
|
|
8210
8209
|
}) {
|
|
8211
|
-
const { className: s, style: a } =
|
|
8210
|
+
const { className: s, style: a } = Re();
|
|
8212
8211
|
return /* @__PURE__ */ m.jsx(
|
|
8213
8212
|
Fs,
|
|
8214
8213
|
{
|
|
@@ -8319,7 +8318,7 @@ function Bv({
|
|
|
8319
8318
|
const c = U(
|
|
8320
8319
|
() => l.map((D) => ({ ...D, id: D.key })),
|
|
8321
8320
|
[l]
|
|
8322
|
-
), f = bl(xl.SMALL), p = wv({}), { isOpen: v, setOpen:
|
|
8321
|
+
), f = bl(xl.SMALL), p = wv({}), { isOpen: v, setOpen: b } = p, $ = N(null), { menuTriggerProps: x, menuProps: E } = vu(
|
|
8323
8322
|
{},
|
|
8324
8323
|
p,
|
|
8325
8324
|
$
|
|
@@ -8340,7 +8339,7 @@ function Bv({
|
|
|
8340
8339
|
}
|
|
8341
8340
|
), S = t ? t({
|
|
8342
8341
|
isOpen: v,
|
|
8343
|
-
setIsOpen:
|
|
8342
|
+
setIsOpen: b,
|
|
8344
8343
|
disabled: r,
|
|
8345
8344
|
triggerRef: $
|
|
8346
8345
|
}) : k;
|
|
@@ -8354,7 +8353,7 @@ function Bv({
|
|
|
8354
8353
|
actions: c,
|
|
8355
8354
|
title: n,
|
|
8356
8355
|
isOpen: v,
|
|
8357
|
-
onClose: () =>
|
|
8356
|
+
onClose: () => b(!1),
|
|
8358
8357
|
showCancel: !0,
|
|
8359
8358
|
"data-testid": u,
|
|
8360
8359
|
selectionMode: "single",
|
|
@@ -8367,7 +8366,7 @@ function Bv({
|
|
|
8367
8366
|
kv,
|
|
8368
8367
|
{
|
|
8369
8368
|
isOpen: v,
|
|
8370
|
-
setIsOpen:
|
|
8369
|
+
setIsOpen: b,
|
|
8371
8370
|
items: c,
|
|
8372
8371
|
selectedKey: a,
|
|
8373
8372
|
disabledKeys: d,
|
|
@@ -8503,7 +8502,7 @@ const Y0 = ({
|
|
|
8503
8502
|
hasPrimaryGradient: e = !1,
|
|
8504
8503
|
"data-testid": n
|
|
8505
8504
|
}) => {
|
|
8506
|
-
const { hasPalette: l, palette: r, style: i } =
|
|
8505
|
+
const { hasPalette: l, palette: r, style: i } = Re(), o = i["--proton-control__background-color-light"];
|
|
8507
8506
|
let u = o, s = kt(o, 0.01);
|
|
8508
8507
|
if (l && (u = kt(o, 0.1), s = kt(o, 0.12), e)) {
|
|
8509
8508
|
const a = kt(r.PRIMARY.MEDIUM_LIGHT, 0.88), d = kt(r.PRIMARY.LIGHT, 0.84);
|
|
@@ -8535,7 +8534,7 @@ function q0({
|
|
|
8535
8534
|
imageUrl: e = "",
|
|
8536
8535
|
onLoad: n
|
|
8537
8536
|
}) {
|
|
8538
|
-
const { palette: l } =
|
|
8537
|
+
const { palette: l } = Re(), r = rd(l.BASE_COLOR), i = Av(r);
|
|
8539
8538
|
return /* @__PURE__ */ m.jsxs(
|
|
8540
8539
|
"div",
|
|
8541
8540
|
{
|
|
@@ -8586,8 +8585,8 @@ const Vl = Fe(
|
|
|
8586
8585
|
autoFocus: f,
|
|
8587
8586
|
autoComplete: p,
|
|
8588
8587
|
"data-testid": v
|
|
8589
|
-
},
|
|
8590
|
-
const $ = N(null), x = N(null), E = N(null), P = N(null), { className: k } =
|
|
8588
|
+
}, b) => {
|
|
8589
|
+
const $ = N(null), x = N(null), E = N(null), P = N(null), { className: k } = Re(), S = b || $, { labelProps: D, inputProps: I, descriptionProps: M, errorMessageProps: j } = qu(
|
|
8591
8590
|
{
|
|
8592
8591
|
label: u,
|
|
8593
8592
|
name: s,
|
|
@@ -8814,7 +8813,7 @@ const Z0 = ({
|
|
|
8814
8813
|
{ ...c, placeholder: e, "aria-label": e },
|
|
8815
8814
|
c,
|
|
8816
8815
|
f
|
|
8817
|
-
), { value:
|
|
8816
|
+
), { value: b, setValue: $ } = c, x = () => {
|
|
8818
8817
|
d && d(), a == null || a(""), $("");
|
|
8819
8818
|
};
|
|
8820
8819
|
return /* @__PURE__ */ m.jsx(
|
|
@@ -8829,7 +8828,7 @@ const Z0 = ({
|
|
|
8829
8828
|
...p,
|
|
8830
8829
|
type: "search",
|
|
8831
8830
|
onChange: (E) => c.setValue(E),
|
|
8832
|
-
value:
|
|
8831
|
+
value: b,
|
|
8833
8832
|
name: t,
|
|
8834
8833
|
placeholder: e,
|
|
8835
8834
|
autoComplete: n,
|
|
@@ -8868,7 +8867,7 @@ const Z0 = ({
|
|
|
8868
8867
|
"proton-SearchInput__button",
|
|
8869
8868
|
"proton-Input__descriptor",
|
|
8870
8869
|
"proton-Input__suffix",
|
|
8871
|
-
!(l && (
|
|
8870
|
+
!(l && (b == null ? void 0 : b.length) > 0) && "proton-SearchInput__button--hide"
|
|
8872
8871
|
),
|
|
8873
8872
|
"data-testid": `${s}-clear`,
|
|
8874
8873
|
onClick: () => {
|
|
@@ -9024,7 +9023,7 @@ function Ov({
|
|
|
9024
9023
|
offset: l,
|
|
9025
9024
|
...r
|
|
9026
9025
|
}) {
|
|
9027
|
-
const i = N(null), { popoverRef: o = i } = r, { className: u, style: s } =
|
|
9026
|
+
const i = N(null), { popoverRef: o = i } = r, { className: u, style: s } = Re();
|
|
9028
9027
|
let { popoverProps: a, underlayProps: d, arrowProps: c, placement: f } = Gf(
|
|
9029
9028
|
{
|
|
9030
9029
|
...r,
|
|
@@ -9103,16 +9102,16 @@ function _v(t, e, n) {
|
|
|
9103
9102
|
onTypeSelect(M) {
|
|
9104
9103
|
e.setSelectedKey(M);
|
|
9105
9104
|
}
|
|
9106
|
-
}), { isInvalid: v, validationErrors:
|
|
9105
|
+
}), { isInvalid: v, validationErrors: b, validationDetails: $ } = e.displayValidation, { labelProps: x, fieldProps: E, descriptionProps: P, errorMessageProps: k } = Il({
|
|
9107
9106
|
...t,
|
|
9108
9107
|
labelElementType: "span",
|
|
9109
9108
|
isInvalid: v,
|
|
9110
|
-
errorMessage: t.errorMessage ||
|
|
9109
|
+
errorMessage: t.errorMessage || b
|
|
9111
9110
|
});
|
|
9112
9111
|
p.onKeyDown = p.onKeyDownCapture, delete p.onKeyDownCapture;
|
|
9113
9112
|
let S = ge(t, {
|
|
9114
9113
|
labelable: !0
|
|
9115
|
-
}), D = W(p, d, E), I =
|
|
9114
|
+
}), D = W(p, d, E), I = Ne();
|
|
9116
9115
|
return Js.set(e, {
|
|
9117
9116
|
isDisabled: r,
|
|
9118
9117
|
isRequired: i,
|
|
@@ -9166,7 +9165,7 @@ function _v(t, e, n) {
|
|
|
9166
9165
|
descriptionProps: P,
|
|
9167
9166
|
errorMessageProps: k,
|
|
9168
9167
|
isInvalid: v,
|
|
9169
|
-
validationErrors:
|
|
9168
|
+
validationErrors: b,
|
|
9170
9169
|
validationDetails: $
|
|
9171
9170
|
};
|
|
9172
9171
|
}
|
|
@@ -9326,10 +9325,10 @@ function Hv(t, e) {
|
|
|
9326
9325
|
var l, r;
|
|
9327
9326
|
const p = ((l = c == null ? void 0 : c.length) !== null && l !== void 0 ? l : 0) - ((r = f == null ? void 0 : f.length) !== null && r !== void 0 ? r : 0);
|
|
9328
9327
|
var i, o, u;
|
|
9329
|
-
let v = Math.min(p > 1 ? Math.max(((i = d == null ? void 0 : d.index) !== null && i !== void 0 ? i : 0) - p + 1, 0) : (o = d == null ? void 0 : d.index) !== null && o !== void 0 ? o : 0, ((u = f == null ? void 0 : f.length) !== null && u !== void 0 ? u : 0) - 1),
|
|
9328
|
+
let v = Math.min(p > 1 ? Math.max(((i = d == null ? void 0 : d.index) !== null && i !== void 0 ? i : 0) - p + 1, 0) : (o = d == null ? void 0 : d.index) !== null && o !== void 0 ? o : 0, ((u = f == null ? void 0 : f.length) !== null && u !== void 0 ? u : 0) - 1), b = null, $ = !1;
|
|
9330
9329
|
for (; v >= 0; ) {
|
|
9331
9330
|
if (!e.isDisabled(f[v].key)) {
|
|
9332
|
-
|
|
9331
|
+
b = f[v];
|
|
9333
9332
|
break;
|
|
9334
9333
|
}
|
|
9335
9334
|
if (v < f.length - 1 && !$) v++;
|
|
@@ -9339,7 +9338,7 @@ function Hv(t, e) {
|
|
|
9339
9338
|
v > ((s = d == null ? void 0 : d.index) !== null && s !== void 0 ? s : 0) && (v = (a = d == null ? void 0 : d.index) !== null && a !== void 0 ? a : 0), v--;
|
|
9340
9339
|
}
|
|
9341
9340
|
}
|
|
9342
|
-
e.setFocusedKey(
|
|
9341
|
+
e.setFocusedKey(b ? b.key : null);
|
|
9343
9342
|
}
|
|
9344
9343
|
n.current = t;
|
|
9345
9344
|
}, [
|
|
@@ -9466,13 +9465,13 @@ function qv({
|
|
|
9466
9465
|
},
|
|
9467
9466
|
"data-testid": d,
|
|
9468
9467
|
children: a.map((S) => /* @__PURE__ */ m.jsx(Eu, { textValue: S.label, children: S.label }, S.key))
|
|
9469
|
-
}, f = Wv(c), p = bl(xl.MEDIUM), v = N(null),
|
|
9468
|
+
}, f = Wv(c), p = bl(xl.MEDIUM), v = N(null), b = N(null), { labelProps: $, triggerProps: x, valueProps: E, menuProps: P } = _v(
|
|
9470
9469
|
{ ...c, label: t || e },
|
|
9471
9470
|
f,
|
|
9472
9471
|
v
|
|
9473
9472
|
);
|
|
9474
9473
|
Y(() => {
|
|
9475
|
-
f.isOpen &&
|
|
9474
|
+
f.isOpen && b.current && v.current && !b.current.style.minWidth && (b.current.style.minWidth = `${v.current.offsetWidth}px`);
|
|
9476
9475
|
}, [f.isOpen]);
|
|
9477
9476
|
const k = a.map((S) => ({
|
|
9478
9477
|
key: S.key,
|
|
@@ -9559,7 +9558,7 @@ function qv({
|
|
|
9559
9558
|
{
|
|
9560
9559
|
state: f,
|
|
9561
9560
|
triggerRef: v,
|
|
9562
|
-
popoverRef:
|
|
9561
|
+
popoverRef: b,
|
|
9563
9562
|
placement: "bottom start",
|
|
9564
9563
|
"data-testid": "select-popover",
|
|
9565
9564
|
children: /* @__PURE__ */ m.jsx(Gv, { ...P, state: f })
|
|
@@ -9575,7 +9574,7 @@ function Xv(t, e, n) {
|
|
|
9575
9574
|
D.stopPropagation(), e.setSelected(D.target.checked);
|
|
9576
9575
|
}, p = u != null, v = s != null || a != null;
|
|
9577
9576
|
!p && !v && process.env.NODE_ENV !== "production" && console.warn("If you do not provide children, you must specify an aria-label for accessibility");
|
|
9578
|
-
let { pressProps:
|
|
9577
|
+
let { pressProps: b, isPressed: $ } = Xe({
|
|
9579
9578
|
isDisabled: l
|
|
9580
9579
|
}), { pressProps: x, isPressed: E } = Xe({
|
|
9581
9580
|
onPress() {
|
|
@@ -9583,7 +9582,7 @@ function Xv(t, e, n) {
|
|
|
9583
9582
|
e.toggle(), (D = n.current) === null || D === void 0 || D.focus();
|
|
9584
9583
|
},
|
|
9585
9584
|
isDisabled: l || r
|
|
9586
|
-
}), { focusableProps: P } = zt(t, n), k = W(
|
|
9585
|
+
}), { focusableProps: P } = zt(t, n), k = W(b, P), S = ge(t, {
|
|
9587
9586
|
labelable: !0
|
|
9588
9587
|
});
|
|
9589
9588
|
return bn(n, e.isSelected, e.setSelected), {
|
|
@@ -10920,10 +10919,10 @@ function o0(t, e, n) {
|
|
|
10920
10919
|
let p = xn({
|
|
10921
10920
|
usage: "search",
|
|
10922
10921
|
sensitivity: "base"
|
|
10923
|
-
}), { direction: v } = Je(),
|
|
10922
|
+
}), { direction: v } = Je(), b = e.selectionManager.disabledBehavior, $ = U(() => i || new Ia({
|
|
10924
10923
|
collection: e.collection,
|
|
10925
10924
|
disabledKeys: e.disabledKeys,
|
|
10926
|
-
disabledBehavior:
|
|
10925
|
+
disabledBehavior: b,
|
|
10927
10926
|
ref: n,
|
|
10928
10927
|
direction: v,
|
|
10929
10928
|
collator: p,
|
|
@@ -10932,7 +10931,7 @@ function o0(t, e, n) {
|
|
|
10932
10931
|
i,
|
|
10933
10932
|
e.collection,
|
|
10934
10933
|
e.disabledKeys,
|
|
10935
|
-
|
|
10934
|
+
b,
|
|
10936
10935
|
n,
|
|
10937
10936
|
v,
|
|
10938
10937
|
p,
|
|
@@ -10945,7 +10944,7 @@ function o0(t, e, n) {
|
|
|
10945
10944
|
scrollRef: u,
|
|
10946
10945
|
disallowTypeAhead: r,
|
|
10947
10946
|
escapeKeyBehavior: c
|
|
10948
|
-
}), E =
|
|
10947
|
+
}), E = Ne(t.id);
|
|
10949
10948
|
Wl.set(e, {
|
|
10950
10949
|
keyboardDelegate: $,
|
|
10951
10950
|
actions: {
|
|
@@ -11004,8 +11003,8 @@ function u0() {
|
|
|
11004
11003
|
function s0(t, e, n) {
|
|
11005
11004
|
var l, r;
|
|
11006
11005
|
let { node: i, isVirtualized: o, shouldSelectOnPressUp: u, onAction: s } = t, { actions: a } = Wl.get(e), d = a.onRowAction ? () => {
|
|
11007
|
-
var
|
|
11008
|
-
return (
|
|
11006
|
+
var b;
|
|
11007
|
+
return (b = a.onRowAction) === null || b === void 0 ? void 0 : b.call(a, i.key);
|
|
11009
11008
|
} : s, { itemProps: c, ...f } = En({
|
|
11010
11009
|
selectionManager: e.selectionManager,
|
|
11011
11010
|
key: i.key,
|
|
@@ -11048,7 +11047,7 @@ function mc(t, e, n) {
|
|
|
11048
11047
|
shouldSelectOnPressUp: o,
|
|
11049
11048
|
onAction: d ? () => d(l.key) : u,
|
|
11050
11049
|
isDisabled: e.collection.size === 0
|
|
11051
|
-
}),
|
|
11050
|
+
}), b = (P) => {
|
|
11052
11051
|
if (!P.currentTarget.contains(P.target) || e.isKeyboardNavigationDisabled || !n.current || !document.activeElement) return;
|
|
11053
11052
|
let k = we(n.current);
|
|
11054
11053
|
switch (k.currentNode = document.activeElement, P.key) {
|
|
@@ -11112,7 +11111,7 @@ function mc(t, e, n) {
|
|
|
11112
11111
|
});
|
|
11113
11112
|
}, x = W(p, {
|
|
11114
11113
|
role: "gridcell",
|
|
11115
|
-
onKeyDownCapture:
|
|
11114
|
+
onKeyDownCapture: b,
|
|
11116
11115
|
"aria-colspan": l.colSpan,
|
|
11117
11116
|
"aria-colindex": l.colIndex != null ? l.colIndex + 1 : void 0,
|
|
11118
11117
|
colSpan: r ? void 0 : l.colSpan,
|
|
@@ -11245,7 +11244,7 @@ function d0(t, e, n) {
|
|
|
11245
11244
|
u,
|
|
11246
11245
|
i,
|
|
11247
11246
|
o
|
|
11248
|
-
]), c =
|
|
11247
|
+
]), c = Ne(t.id);
|
|
11249
11248
|
Hl.set(e, c);
|
|
11250
11249
|
let { gridProps: f } = o0({
|
|
11251
11250
|
...t,
|
|
@@ -11253,10 +11252,10 @@ function d0(t, e, n) {
|
|
|
11253
11252
|
keyboardDelegate: d
|
|
11254
11253
|
}, e, n);
|
|
11255
11254
|
r && (f["aria-rowcount"] = e.collection.size + e.collection.headerRows.length), hn() && "expandedKeys" in e && (f.role = "treegrid");
|
|
11256
|
-
let { column: p, direction: v } = e.sortDescriptor || {},
|
|
11255
|
+
let { column: p, direction: v } = e.sortDescriptor || {}, b = ft(c0(Ul), "@react-aria/table"), $ = U(() => {
|
|
11257
11256
|
var E, P;
|
|
11258
11257
|
let k = (P = (E = e.collection.columns.find((S) => S.key === p)) === null || E === void 0 ? void 0 : E.textValue) !== null && P !== void 0 ? P : "";
|
|
11259
|
-
return v && p ?
|
|
11258
|
+
return v && p ? b.format(`${v}Sort`, {
|
|
11260
11259
|
columnName: k
|
|
11261
11260
|
}) : void 0;
|
|
11262
11261
|
}, [
|
|
@@ -11294,9 +11293,9 @@ function p0(t, e, n) {
|
|
|
11294
11293
|
ref: n
|
|
11295
11294
|
}), { focusableProps: d } = zt({}, n), c, f = ((l = e.sortDescriptor) === null || l === void 0 ? void 0 : l.column) === i.key, p = (r = e.sortDescriptor) === null || r === void 0 ? void 0 : r.direction;
|
|
11296
11295
|
i.props.allowsSorting && !Xn() && (c = f ? p : "none");
|
|
11297
|
-
let v = ft(f0(Ul), "@react-aria/table"),
|
|
11298
|
-
o && (
|
|
11299
|
-
let $ = gn(
|
|
11296
|
+
let v = ft(f0(Ul), "@react-aria/table"), b;
|
|
11297
|
+
o && (b = `${v.format("sortable")}`, f && p && Xn() && (b = `${b}, ${v.format(p)}`));
|
|
11298
|
+
let $ = gn(b), x = e.collection.size === 0;
|
|
11300
11299
|
return Y(() => {
|
|
11301
11300
|
x && e.selectionManager.focusedKey === i.key && e.selectionManager.setFocusedKey(null);
|
|
11302
11301
|
}, [
|
|
@@ -11341,14 +11340,14 @@ function v0(t, e, n) {
|
|
|
11341
11340
|
if (S != null) {
|
|
11342
11341
|
var a, d, c, f, p, v;
|
|
11343
11342
|
let D = ((a = S.props) === null || a === void 0 ? void 0 : a.UNSTABLE_childItems) || ((c = S.props) === null || c === void 0 || (d = c.children) === null || d === void 0 ? void 0 : d.length) > e.userColumnCount;
|
|
11344
|
-
var
|
|
11343
|
+
var b, $, x, E;
|
|
11345
11344
|
s = {
|
|
11346
11345
|
onKeyDown: (I) => {
|
|
11347
11346
|
(I.key === ii.expand[u] && e.selectionManager.focusedKey === S.key && D && e.expandedKeys !== "all" && !e.expandedKeys.has(S.key) || I.key === ii.collapse[u] && e.selectionManager.focusedKey === S.key && D && (e.expandedKeys === "all" || e.expandedKeys.has(S.key))) && (e.toggleKey(S.key), I.stopPropagation());
|
|
11348
11347
|
},
|
|
11349
11348
|
"aria-expanded": D ? e.expandedKeys === "all" || e.expandedKeys.has(l.key) : void 0,
|
|
11350
11349
|
"aria-level": S.level,
|
|
11351
|
-
"aria-posinset": ((
|
|
11350
|
+
"aria-posinset": ((b = S.indexOfType) !== null && b !== void 0 ? b : 0) + 1,
|
|
11352
11351
|
"aria-setsize": S.level > 1 ? ((x = (f = lt(($ = (p = e.keyMap.get(S.parentKey)) === null || p === void 0 ? void 0 : p.childNodes) !== null && $ !== void 0 ? $ : [])) === null || f === void 0 ? void 0 : f.indexOfType) !== null && x !== void 0 ? x : 0) + 1 : ((E = (v = lt(e.collection.body.childNodes)) === null || v === void 0 ? void 0 : v.indexOfType) !== null && E !== void 0 ? E : 0) + 1
|
|
11353
11352
|
};
|
|
11354
11353
|
}
|
|
@@ -11561,7 +11560,7 @@ const oh = ({
|
|
|
11561
11560
|
}
|
|
11562
11561
|
);
|
|
11563
11562
|
function E0({ children: t, arrow: e, ...n }) {
|
|
11564
|
-
const { style: l, className: r } =
|
|
11563
|
+
const { style: l, className: r } = Re();
|
|
11565
11564
|
return /* @__PURE__ */ m.jsxs(
|
|
11566
11565
|
Pv,
|
|
11567
11566
|
{
|
|
@@ -11631,7 +11630,7 @@ const uh = ({
|
|
|
11631
11630
|
tooltipProps: n,
|
|
11632
11631
|
"data-testid": l
|
|
11633
11632
|
}) => {
|
|
11634
|
-
const { className: r } =
|
|
11633
|
+
const { className: r } = Re(), i = n ? /* @__PURE__ */ m.jsx(S0, { delay: 50, closeDelay: 75, ...n, children: e }) : e;
|
|
11635
11634
|
if (t) {
|
|
11636
11635
|
const o = yl(t);
|
|
11637
11636
|
return /* @__PURE__ */ m.jsx(
|
|
@@ -11673,7 +11672,7 @@ const uh = ({
|
|
|
11673
11672
|
height: e = "1.5rem",
|
|
11674
11673
|
borderRadius: n = "4px"
|
|
11675
11674
|
}) => {
|
|
11676
|
-
const { hasPalette: l, palette: r } =
|
|
11675
|
+
const { hasPalette: l, palette: r } = Re(), i = {
|
|
11677
11676
|
"--tombstone-custom-background": r.PRIMARY.MEDIUM,
|
|
11678
11677
|
"--tombstone-custom-primary": ar(r.PRIMARY.DARK, 0.9),
|
|
11679
11678
|
"--tombstone-custom-secondary": ar(r.SECONDARY.DARK, 0.7)
|
|
@@ -11777,7 +11776,7 @@ function ah({
|
|
|
11777
11776
|
"data-testid": d
|
|
11778
11777
|
}) {
|
|
11779
11778
|
var R;
|
|
11780
|
-
const { className: c } =
|
|
11779
|
+
const { className: c } = Re(), f = N(null), [p, v] = q([]), [b, $] = q(null), [x, E] = q(!1), [P, k] = q(!1), S = t || P0, D = e;
|
|
11781
11780
|
Y(() => {
|
|
11782
11781
|
if (!f.current) return;
|
|
11783
11782
|
const w = (T) => {
|
|
@@ -11833,17 +11832,17 @@ function ah({
|
|
|
11833
11832
|
}
|
|
11834
11833
|
}
|
|
11835
11834
|
),
|
|
11836
|
-
|
|
11835
|
+
b !== null && /* @__PURE__ */ m.jsx(
|
|
11837
11836
|
"div",
|
|
11838
11837
|
{
|
|
11839
11838
|
className: "proton-Waveform__hover-line",
|
|
11840
11839
|
style: {
|
|
11841
|
-
left: `${
|
|
11840
|
+
left: `${b / o * 100}%`
|
|
11842
11841
|
}
|
|
11843
11842
|
}
|
|
11844
11843
|
),
|
|
11845
11844
|
p.map((w, O) => {
|
|
11846
|
-
const h = O / p.length * o, T = n !== void 0 && l !== void 0 && (h < n || h > l), C = r === 0 ? !1 : h <= r, _ =
|
|
11845
|
+
const h = O / p.length * o, T = n !== void 0 && l !== void 0 && (h < n || h > l), C = r === 0 ? !1 : h <= r, _ = b !== null && h <= b;
|
|
11847
11846
|
return /* @__PURE__ */ m.jsx(
|
|
11848
11847
|
C0,
|
|
11849
11848
|
{
|
|
@@ -11954,6 +11953,6 @@ export {
|
|
|
11954
11953
|
S0 as TooltipTrigger,
|
|
11955
11954
|
ah as Waveform,
|
|
11956
11955
|
Q0 as usePopoverTrigger,
|
|
11957
|
-
|
|
11956
|
+
Re as useTheme
|
|
11958
11957
|
};
|
|
11959
11958
|
//# sourceMappingURL=index.es.js.map
|