@protonradio/proton-ui 0.6.18-beta.3 → 0.6.18-beta.4
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 +335 -341
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/utils-CZtPrc3N.js +2 -0
- package/dist/utils-CZtPrc3N.js.map +1 -0
- package/dist/{utils-D71ZKfny.mjs → utils-CfkXFGhc.mjs} +41 -41
- package/dist/utils-CfkXFGhc.mjs.map +1 -0
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +1 -1
- package/package.json +1 -2
- package/dist/utils-C8gwYqRQ.js +0 -2
- package/dist/utils-C8gwYqRQ.js.map +0 -1
- package/dist/utils-D71ZKfny.mjs.map +0 -1
package/dist/index.es.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import g, { useLayoutEffect as pr, useState as D, useRef as S, createElement as Qt, useEffect as F, createContext as O, useContext as A, useMemo as oe, isValidElement as hr, forwardRef as de, useCallback as ne, cloneElement as vr } from "react";
|
|
2
2
|
import en, { createPortal as tn } from "react-dom";
|
|
3
|
-
import { useMenu as nn, useOverlay as mr, FocusScope as pt, useMenuItem as rn, useButton as De, useRadioGroup as br, useRadio as gr, VisuallyHidden as on, useDialog as yr, useTextField as xr, useClipboard as _r, useSearchField as $r, useOverlayTrigger as Sr, usePopover as Er, Overlay as wr, DismissButton as Cr, useFocusRing as
|
|
3
|
+
import { useMenu as nn, useOverlay as mr, FocusScope as pt, useMenuItem as rn, useButton as De, useRadioGroup as br, useRadio as gr, VisuallyHidden as on, useDialog as yr, useTextField as xr, useClipboard as _r, useSearchField as $r, useOverlayTrigger as Sr, usePopover as Er, Overlay as wr, DismissButton as Cr, useFocusRing as we, useHover as Rr, useId as Lt, mergeProps as me, useMenuTrigger as Pr, useMenuSection as Tr, useTooltipTrigger as jr, OverlayContainer as Nr, useOverlayPosition as Mr, useTooltip as kr, useListBox as Ar, useOption as Or, useSelect as an, HiddenSelect as ln, useSwitch as Ir, useTableHeaderRow as Dr, useTableColumnHeader as Lr, useTableRowGroup as Br, useTableRow as Hr, useTableCell as Vr, useTable as Kr } from "react-aria";
|
|
4
4
|
import { useTreeState as sn, Item as ht, useRadioGroupState as Wr, useOverlayTriggerState as Fr, useMenuTriggerState as Gr, useTooltipTriggerState as cn, useSelectState as un, useToggleState as Ur, useTableState as zr } from "react-stately";
|
|
5
|
-
import { b as E, i as vt, h as dn
|
|
5
|
+
import { b as E, i as vt, h as dn } from "./utils-CfkXFGhc.mjs";
|
|
6
6
|
import { THEMES as le, BREAKPOINTS as fn } from "./constants.es.js";
|
|
7
|
-
import {
|
|
8
|
-
import { G as Q, S as
|
|
9
|
-
import { c as
|
|
10
|
-
var rt = { exports: {} },
|
|
7
|
+
import { transparentize as ve, toRgba as Xe } from "color2k";
|
|
8
|
+
import { G as Q, S as Ne, W as Me, D as ke, B as Yr } from "./colors-Dwh4VIMR.mjs";
|
|
9
|
+
import { c as Na } from "./colors-Dwh4VIMR.mjs";
|
|
10
|
+
var rt = { exports: {} }, _e = {};
|
|
11
11
|
/**
|
|
12
12
|
* @license React
|
|
13
13
|
* react-jsx-runtime.production.min.js
|
|
@@ -18,8 +18,8 @@ var rt = { exports: {} }, xe = {};
|
|
|
18
18
|
* LICENSE file in the root directory of this source tree.
|
|
19
19
|
*/
|
|
20
20
|
var Bt;
|
|
21
|
-
function
|
|
22
|
-
if (Bt) return
|
|
21
|
+
function qr() {
|
|
22
|
+
if (Bt) return _e;
|
|
23
23
|
Bt = 1;
|
|
24
24
|
var t = g, e = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, o = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
25
25
|
function l(c, u, f) {
|
|
@@ -29,9 +29,9 @@ function Jr() {
|
|
|
29
29
|
if (c && c.defaultProps) for (d in u = c.defaultProps, u) h[d] === void 0 && (h[d] = u[d]);
|
|
30
30
|
return { $$typeof: e, type: c, key: p, ref: v, props: h, _owner: o.current };
|
|
31
31
|
}
|
|
32
|
-
return
|
|
32
|
+
return _e.Fragment = n, _e.jsx = l, _e.jsxs = l, _e;
|
|
33
33
|
}
|
|
34
|
-
var
|
|
34
|
+
var $e = {};
|
|
35
35
|
/**
|
|
36
36
|
* @license React
|
|
37
37
|
* react-jsx-runtime.development.js
|
|
@@ -42,7 +42,7 @@ var _e = {};
|
|
|
42
42
|
* LICENSE file in the root directory of this source tree.
|
|
43
43
|
*/
|
|
44
44
|
var Ht;
|
|
45
|
-
function
|
|
45
|
+
function Jr() {
|
|
46
46
|
return Ht || (Ht = 1, process.env.NODE_ENV !== "production" && function() {
|
|
47
47
|
var t = g, e = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), c = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), y = Symbol.iterator, x = "@@iterator";
|
|
48
48
|
function _(a) {
|
|
@@ -196,7 +196,7 @@ function Xr() {
|
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
198
|
var Ke = w.ReactCurrentDispatcher, We;
|
|
199
|
-
function
|
|
199
|
+
function Re(a, m, b) {
|
|
200
200
|
{
|
|
201
201
|
if (We === void 0)
|
|
202
202
|
try {
|
|
@@ -209,16 +209,16 @@ function Xr() {
|
|
|
209
209
|
` + We + a;
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
|
-
var Fe = !1,
|
|
212
|
+
var Fe = !1, Pe;
|
|
213
213
|
{
|
|
214
214
|
var Kn = typeof WeakMap == "function" ? WeakMap : Map;
|
|
215
|
-
|
|
215
|
+
Pe = new Kn();
|
|
216
216
|
}
|
|
217
217
|
function Et(a, m) {
|
|
218
218
|
if (!a || Fe)
|
|
219
219
|
return "";
|
|
220
220
|
{
|
|
221
|
-
var b =
|
|
221
|
+
var b = Pe.get(a);
|
|
222
222
|
if (b !== void 0)
|
|
223
223
|
return b;
|
|
224
224
|
}
|
|
@@ -273,7 +273,7 @@ function Xr() {
|
|
|
273
273
|
if (H--, K--, K < 0 || C[H] !== J[K]) {
|
|
274
274
|
var ee = `
|
|
275
275
|
` + C[H].replace(" at new ", " at ");
|
|
276
|
-
return a.displayName && ee.includes("<anonymous>") && (ee = ee.replace("<anonymous>", a.displayName)), typeof a == "function" &&
|
|
276
|
+
return a.displayName && ee.includes("<anonymous>") && (ee = ee.replace("<anonymous>", a.displayName)), typeof a == "function" && Pe.set(a, ee), ee;
|
|
277
277
|
}
|
|
278
278
|
while (H >= 1 && K >= 0);
|
|
279
279
|
break;
|
|
@@ -282,8 +282,8 @@ function Xr() {
|
|
|
282
282
|
} finally {
|
|
283
283
|
Fe = !1, Ke.current = k, Vn(), Error.prepareStackTrace = N;
|
|
284
284
|
}
|
|
285
|
-
var he = a ? a.displayName || a.name : "", ue = he ?
|
|
286
|
-
return typeof a == "function" &&
|
|
285
|
+
var he = a ? a.displayName || a.name : "", ue = he ? Re(he) : "";
|
|
286
|
+
return typeof a == "function" && Pe.set(a, ue), ue;
|
|
287
287
|
}
|
|
288
288
|
function Wn(a, m, b) {
|
|
289
289
|
return Et(a, !1);
|
|
@@ -292,46 +292,46 @@ function Xr() {
|
|
|
292
292
|
var m = a.prototype;
|
|
293
293
|
return !!(m && m.isReactComponent);
|
|
294
294
|
}
|
|
295
|
-
function
|
|
295
|
+
function Te(a, m, b) {
|
|
296
296
|
if (a == null)
|
|
297
297
|
return "";
|
|
298
298
|
if (typeof a == "function")
|
|
299
299
|
return Et(a, Fn(a));
|
|
300
300
|
if (typeof a == "string")
|
|
301
|
-
return
|
|
301
|
+
return Re(a);
|
|
302
302
|
switch (a) {
|
|
303
303
|
case f:
|
|
304
|
-
return
|
|
304
|
+
return Re("Suspense");
|
|
305
305
|
case d:
|
|
306
|
-
return
|
|
306
|
+
return Re("SuspenseList");
|
|
307
307
|
}
|
|
308
308
|
if (typeof a == "object")
|
|
309
309
|
switch (a.$$typeof) {
|
|
310
310
|
case u:
|
|
311
311
|
return Wn(a.render);
|
|
312
312
|
case h:
|
|
313
|
-
return
|
|
313
|
+
return Te(a.type, m, b);
|
|
314
314
|
case p: {
|
|
315
315
|
var $ = a, N = $._payload, k = $._init;
|
|
316
316
|
try {
|
|
317
|
-
return
|
|
317
|
+
return Te(k(N), m, b);
|
|
318
318
|
} catch {
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
322
|
return "";
|
|
323
323
|
}
|
|
324
|
-
var
|
|
325
|
-
function
|
|
324
|
+
var ye = Object.prototype.hasOwnProperty, wt = {}, Ct = w.ReactDebugCurrentFrame;
|
|
325
|
+
function je(a) {
|
|
326
326
|
if (a) {
|
|
327
|
-
var m = a._owner, b =
|
|
327
|
+
var m = a._owner, b = Te(a.type, a._source, m ? m.type : null);
|
|
328
328
|
Ct.setExtraStackFrame(b);
|
|
329
329
|
} else
|
|
330
330
|
Ct.setExtraStackFrame(null);
|
|
331
331
|
}
|
|
332
332
|
function Gn(a, m, b, $, N) {
|
|
333
333
|
{
|
|
334
|
-
var k = Function.call.bind(
|
|
334
|
+
var k = Function.call.bind(ye);
|
|
335
335
|
for (var T in a)
|
|
336
336
|
if (k(a, T)) {
|
|
337
337
|
var C = void 0;
|
|
@@ -344,7 +344,7 @@ function Xr() {
|
|
|
344
344
|
} catch (H) {
|
|
345
345
|
C = H;
|
|
346
346
|
}
|
|
347
|
-
C && !(C instanceof Error) && (
|
|
347
|
+
C && !(C instanceof Error) && (je(N), R("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", $ || "React class", b, T, typeof C), je(null)), C instanceof Error && !(C.message in wt) && (wt[C.message] = !0, je(N), R("Failed %s type: %s", b, C.message), je(null));
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
350
|
}
|
|
@@ -372,7 +372,7 @@ function Xr() {
|
|
|
372
372
|
if (Yn(a))
|
|
373
373
|
return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", zn(a)), Rt(a);
|
|
374
374
|
}
|
|
375
|
-
var
|
|
375
|
+
var xe = w.ReactCurrentOwner, qn = {
|
|
376
376
|
key: !0,
|
|
377
377
|
ref: !0,
|
|
378
378
|
__self: !0,
|
|
@@ -380,7 +380,7 @@ function Xr() {
|
|
|
380
380
|
}, Tt, jt, Ue;
|
|
381
381
|
Ue = {};
|
|
382
382
|
function Jn(a) {
|
|
383
|
-
if (
|
|
383
|
+
if (ye.call(a, "ref")) {
|
|
384
384
|
var m = Object.getOwnPropertyDescriptor(a, "ref").get;
|
|
385
385
|
if (m && m.isReactWarning)
|
|
386
386
|
return !1;
|
|
@@ -388,7 +388,7 @@ function Xr() {
|
|
|
388
388
|
return a.ref !== void 0;
|
|
389
389
|
}
|
|
390
390
|
function Xn(a) {
|
|
391
|
-
if (
|
|
391
|
+
if (ye.call(a, "key")) {
|
|
392
392
|
var m = Object.getOwnPropertyDescriptor(a, "key").get;
|
|
393
393
|
if (m && m.isReactWarning)
|
|
394
394
|
return !1;
|
|
@@ -396,9 +396,9 @@ function Xr() {
|
|
|
396
396
|
return a.key !== void 0;
|
|
397
397
|
}
|
|
398
398
|
function Zn(a, m) {
|
|
399
|
-
if (typeof a.ref == "string" &&
|
|
400
|
-
var b = V(
|
|
401
|
-
Ue[b] || (R('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', V(
|
|
399
|
+
if (typeof a.ref == "string" && xe.current && m && xe.current.stateNode !== m) {
|
|
400
|
+
var b = V(xe.current.type);
|
|
401
|
+
Ue[b] || (R('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', V(xe.current.type), a.ref), Ue[b] = !0);
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
404
|
function Qn(a, m) {
|
|
@@ -457,7 +457,7 @@ function Xr() {
|
|
|
457
457
|
var k, T = {}, C = null, J = null;
|
|
458
458
|
b !== void 0 && (Pt(b), C = "" + b), Xn(m) && (Pt(m.key), C = "" + m.key), Jn(m) && (J = m.ref, Zn(m, N));
|
|
459
459
|
for (k in m)
|
|
460
|
-
|
|
460
|
+
ye.call(m, k) && !qn.hasOwnProperty(k) && (T[k] = m[k]);
|
|
461
461
|
if (a && a.defaultProps) {
|
|
462
462
|
var H = a.defaultProps;
|
|
463
463
|
for (k in H)
|
|
@@ -467,13 +467,13 @@ function Xr() {
|
|
|
467
467
|
var K = typeof a == "function" ? a.displayName || a.name || "Unknown" : a;
|
|
468
468
|
C && Qn(T, K), J && er(T, K);
|
|
469
469
|
}
|
|
470
|
-
return tr(a, C, J, N, $,
|
|
470
|
+
return tr(a, C, J, N, $, xe.current, T);
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
473
|
var ze = w.ReactCurrentOwner, Nt = w.ReactDebugCurrentFrame;
|
|
474
474
|
function pe(a) {
|
|
475
475
|
if (a) {
|
|
476
|
-
var m = a._owner, b =
|
|
476
|
+
var m = a._owner, b = Te(a.type, a._source, m ? m.type : null);
|
|
477
477
|
Nt.setExtraStackFrame(b);
|
|
478
478
|
} else
|
|
479
479
|
Nt.setExtraStackFrame(null);
|
|
@@ -608,7 +608,7 @@ Check the top-level render call using <` + b + ">.");
|
|
|
608
608
|
else
|
|
609
609
|
Ot(ee, a);
|
|
610
610
|
}
|
|
611
|
-
if (
|
|
611
|
+
if (ye.call(m, "key")) {
|
|
612
612
|
var ue = V(a), X = Object.keys(m).filter(function(fr) {
|
|
613
613
|
return fr !== "key";
|
|
614
614
|
}), Je = X.length > 0 ? "{key: someKey, " + X.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
@@ -632,12 +632,12 @@ React keys must be passed directly to JSX without using spread:
|
|
|
632
632
|
return Dt(a, m, b, !1);
|
|
633
633
|
}
|
|
634
634
|
var cr = sr, ur = lr;
|
|
635
|
-
|
|
636
|
-
}()),
|
|
635
|
+
$e.Fragment = r, $e.jsx = cr, $e.jsxs = ur;
|
|
636
|
+
}()), $e;
|
|
637
637
|
}
|
|
638
|
-
process.env.NODE_ENV === "production" ? rt.exports =
|
|
638
|
+
process.env.NODE_ENV === "production" ? rt.exports = qr() : rt.exports = Jr();
|
|
639
639
|
var s = rt.exports;
|
|
640
|
-
function
|
|
640
|
+
function Xr(t = !0) {
|
|
641
641
|
pr(() => {
|
|
642
642
|
if (!t) return;
|
|
643
643
|
const e = window.getComputedStyle(document.body).overflow;
|
|
@@ -646,7 +646,7 @@ function Zr(t = !0) {
|
|
|
646
646
|
};
|
|
647
647
|
}, [t]);
|
|
648
648
|
}
|
|
649
|
-
const
|
|
649
|
+
const Zr = ({ children: t }) => {
|
|
650
650
|
const { className: e, style: n } = ie(), r = (() => {
|
|
651
651
|
let o = document.getElementById("action-menus-root");
|
|
652
652
|
return o || (o = document.createElement("div"), o.id = "action-menus-root", document.body.appendChild(o)), o.className = e, Object.entries(n).forEach(([i, l]) => {
|
|
@@ -668,7 +668,7 @@ const Qr = ({ children: t }) => {
|
|
|
668
668
|
onClose: d,
|
|
669
669
|
"data-testid": h
|
|
670
670
|
}) => {
|
|
671
|
-
|
|
671
|
+
Xr(e);
|
|
672
672
|
const { className: p, theme: v } = ie(), [y, x] = D(!1), [_, w] = D(0), R = S(null), j = S(null), P = S(window.location.pathname), L = c && c.length > 0, M = () => {
|
|
673
673
|
x(!0), w(0), setTimeout(() => {
|
|
674
674
|
d == null || d(), x(!1);
|
|
@@ -718,7 +718,7 @@ const Qr = ({ children: t }) => {
|
|
|
718
718
|
u && (P.current && P.current !== location.pathname && M(), P.current = location.pathname);
|
|
719
719
|
}, [y, u]);
|
|
720
720
|
const te = R.current ? R.current.getBoundingClientRect().height > window.innerHeight : !1, ce = i || L || l;
|
|
721
|
-
return e ? /* @__PURE__ */ s.jsxs(
|
|
721
|
+
return e ? /* @__PURE__ */ s.jsxs(Zr, { children: [
|
|
722
722
|
/* @__PURE__ */ s.jsx(
|
|
723
723
|
"div",
|
|
724
724
|
{
|
|
@@ -761,7 +761,7 @@ const Qr = ({ children: t }) => {
|
|
|
761
761
|
n === "none" && "proton-ActionMenu__list--disabled"
|
|
762
762
|
),
|
|
763
763
|
children: Array.from(G.collection).map((I) => /* @__PURE__ */ s.jsx(
|
|
764
|
-
|
|
764
|
+
Qr,
|
|
765
765
|
{
|
|
766
766
|
item: I,
|
|
767
767
|
state: G,
|
|
@@ -793,7 +793,7 @@ const Qr = ({ children: t }) => {
|
|
|
793
793
|
}
|
|
794
794
|
)
|
|
795
795
|
] }) : null;
|
|
796
|
-
},
|
|
796
|
+
}, Qr = ({ to: t, state: e, item: n }) => {
|
|
797
797
|
const r = S(null), { menuItemProps: o } = rn({ key: n.key }, e, r), i = t ? "a" : "div", l = t && vt(t);
|
|
798
798
|
return /* @__PURE__ */ Qt(
|
|
799
799
|
i,
|
|
@@ -818,17 +818,17 @@ const Qr = ({ children: t }) => {
|
|
|
818
818
|
if (t === void 0)
|
|
819
819
|
throw new Error("useTheme must be used within a ThemeProvider");
|
|
820
820
|
return t;
|
|
821
|
-
},
|
|
821
|
+
}, eo = {
|
|
822
822
|
[le.DARK]: "proton-ui__theme--dark",
|
|
823
823
|
[le.CUSTOM_DARK]: "proton-ui__theme--custom-dark",
|
|
824
824
|
[le.LIGHT]: "proton-ui__theme--light"
|
|
825
|
-
},
|
|
825
|
+
}, ca = ({
|
|
826
826
|
theme: t,
|
|
827
827
|
children: e,
|
|
828
828
|
palette: n
|
|
829
829
|
}) => {
|
|
830
|
-
const r = S(null), o =
|
|
831
|
-
() =>
|
|
830
|
+
const r = S(null), o = eo[t], i = oe(
|
|
831
|
+
() => to(n),
|
|
832
832
|
[n]
|
|
833
833
|
);
|
|
834
834
|
return F(() => {
|
|
@@ -851,15 +851,12 @@ const Qr = ({ children: t }) => {
|
|
|
851
851
|
children: /* @__PURE__ */ s.jsx("div", { ref: r, children: e })
|
|
852
852
|
}
|
|
853
853
|
);
|
|
854
|
-
}, Ze =
|
|
855
|
-
function
|
|
856
|
-
const e =
|
|
854
|
+
}, Ze = "rgb(83, 82, 83)";
|
|
855
|
+
function to(t) {
|
|
856
|
+
const e = ve(t.PRIMARY.PRIMARY_LIGHTEST, 0.4);
|
|
857
857
|
return {
|
|
858
858
|
[le.DARK]: {
|
|
859
|
-
"--proton-control__background-color": Xe(
|
|
860
|
-
Ze,
|
|
861
|
-
1
|
|
862
|
-
),
|
|
859
|
+
"--proton-control__background-color": Xe(Ze),
|
|
863
860
|
"--proton-control__text-color": Q.WHITE,
|
|
864
861
|
"--proton-control__border-color": Q.GRAY_DARK,
|
|
865
862
|
"--proton-control__shadow-color": Q.GRAY_DARK,
|
|
@@ -871,19 +868,16 @@ function no(t) {
|
|
|
871
868
|
"--proton-control__background-color": Q.WHITE,
|
|
872
869
|
"--proton-control__text-color": Q.GRAY_DARK,
|
|
873
870
|
"--proton-control__border-color": Q.GRAY_LIGHT,
|
|
874
|
-
"--proton-control__shadow-color":
|
|
875
|
-
Ze,
|
|
876
|
-
0.
|
|
871
|
+
"--proton-control__shadow-color": ve(
|
|
872
|
+
Xe(Ze),
|
|
873
|
+
0.9
|
|
877
874
|
),
|
|
878
875
|
"--proton-color__primary": t.BRAND.PRIMARY,
|
|
879
876
|
"--proton-color__primary-light": t.BRAND.PRIMARY_LIGHT,
|
|
880
877
|
"--proton-color__secondary": t.BRAND.SECONDARY
|
|
881
878
|
},
|
|
882
879
|
[le.CUSTOM_DARK]: {
|
|
883
|
-
"--proton-control__background-color": Xe(
|
|
884
|
-
Ze,
|
|
885
|
-
1
|
|
886
|
-
),
|
|
880
|
+
"--proton-control__background-color": Xe(Ze),
|
|
887
881
|
"--proton-control__text-color": Q.WHITE,
|
|
888
882
|
"--proton-control__border-color": t.PRIMARY.PRIMARY_LIGHTEST,
|
|
889
883
|
"--proton-control__shadow-color": e,
|
|
@@ -893,14 +887,14 @@ function no(t) {
|
|
|
893
887
|
}
|
|
894
888
|
};
|
|
895
889
|
}
|
|
896
|
-
const
|
|
890
|
+
const ua = {
|
|
897
891
|
primary: "primary",
|
|
898
892
|
secondary: "secondary",
|
|
899
893
|
transparent: "transparent",
|
|
900
894
|
success: "success",
|
|
901
895
|
warning: "warning",
|
|
902
896
|
danger: "danger"
|
|
903
|
-
},
|
|
897
|
+
}, da = ({ variant: t, children: e, ...n }) => {
|
|
904
898
|
const { className: r } = ie();
|
|
905
899
|
return /* @__PURE__ */ s.jsx(
|
|
906
900
|
"div",
|
|
@@ -983,7 +977,7 @@ const mn = {
|
|
|
983
977
|
d: "M10 18a8 8 0 100-16 8 8 0 000 16zM8.28 7.22a.75.75 0 00-1.06 1.06L8.94 10l-1.72 1.72a.75.75 0 101.06 1.06L10 11.06l1.72 1.72a.75.75 0 101.06-1.06L11.06 10l1.72-1.72a.75.75 0 00-1.06-1.06L10 8.94 8.28 7.22z"
|
|
984
978
|
}
|
|
985
979
|
) })
|
|
986
|
-
},
|
|
980
|
+
}, no = {
|
|
987
981
|
default: {
|
|
988
982
|
background: Q.GRAY_LIGHTEST,
|
|
989
983
|
title: Q.GRAY_DARK,
|
|
@@ -991,24 +985,24 @@ const mn = {
|
|
|
991
985
|
icon: Q.GRAY_MEDIUM_LIGHT
|
|
992
986
|
},
|
|
993
987
|
success: {
|
|
994
|
-
background: je.SUPER_LIGHT,
|
|
995
|
-
title: je.DARK,
|
|
996
|
-
content: je.MEDIUM,
|
|
997
|
-
icon: je.LIGHT
|
|
998
|
-
},
|
|
999
|
-
warning: {
|
|
1000
988
|
background: Ne.SUPER_LIGHT,
|
|
1001
989
|
title: Ne.DARK,
|
|
1002
990
|
content: Ne.MEDIUM,
|
|
1003
991
|
icon: Ne.LIGHT
|
|
1004
992
|
},
|
|
1005
|
-
|
|
993
|
+
warning: {
|
|
1006
994
|
background: Me.SUPER_LIGHT,
|
|
1007
995
|
title: Me.DARK,
|
|
1008
996
|
content: Me.MEDIUM,
|
|
1009
997
|
icon: Me.LIGHT
|
|
998
|
+
},
|
|
999
|
+
danger: {
|
|
1000
|
+
background: ke.SUPER_LIGHT,
|
|
1001
|
+
title: ke.DARK,
|
|
1002
|
+
content: ke.MEDIUM,
|
|
1003
|
+
icon: ke.LIGHT
|
|
1010
1004
|
}
|
|
1011
|
-
},
|
|
1005
|
+
}, ro = {
|
|
1012
1006
|
default: "default",
|
|
1013
1007
|
success: "success",
|
|
1014
1008
|
warning: "warning",
|
|
@@ -1045,7 +1039,7 @@ const mn = {
|
|
|
1045
1039
|
}
|
|
1046
1040
|
)
|
|
1047
1041
|
}
|
|
1048
|
-
) }),
|
|
1042
|
+
) }), oo = ({ children: t, ...e }) => {
|
|
1049
1043
|
const n = A(Le);
|
|
1050
1044
|
if (!n) throw new Error("BannerTitle must be used within a Banner");
|
|
1051
1045
|
return /* @__PURE__ */ s.jsx(
|
|
@@ -1060,7 +1054,7 @@ const mn = {
|
|
|
1060
1054
|
children: t
|
|
1061
1055
|
}
|
|
1062
1056
|
);
|
|
1063
|
-
},
|
|
1057
|
+
}, io = ({ children: t, ...e }) => {
|
|
1064
1058
|
const n = A(Le);
|
|
1065
1059
|
if (!n) throw new Error("BannerContent must be used within a Banner");
|
|
1066
1060
|
return /* @__PURE__ */ s.jsx(
|
|
@@ -1075,7 +1069,7 @@ const mn = {
|
|
|
1075
1069
|
children: t
|
|
1076
1070
|
}
|
|
1077
1071
|
);
|
|
1078
|
-
},
|
|
1072
|
+
}, ao = ({ children: t, icon: e, ...n }) => {
|
|
1079
1073
|
const r = A(Le);
|
|
1080
1074
|
if (!r) throw new Error("BannerIcon must be used within a Banner");
|
|
1081
1075
|
const i = hr(e) ? e : e === !0 ? mn[r] : t || null;
|
|
@@ -1088,17 +1082,17 @@ const mn = {
|
|
|
1088
1082
|
children: i
|
|
1089
1083
|
}
|
|
1090
1084
|
) : null;
|
|
1091
|
-
},
|
|
1092
|
-
se.Title =
|
|
1093
|
-
se.Content =
|
|
1094
|
-
se.Icon =
|
|
1095
|
-
se.Action =
|
|
1096
|
-
se.Actions =
|
|
1097
|
-
se.colors =
|
|
1085
|
+
}, lo = ({ children: t, ...e }) => /* @__PURE__ */ s.jsx(vn, { ...e, children: t }), so = ({ children: t }) => /* @__PURE__ */ s.jsx("div", { className: "proton-Banner__actions", children: t });
|
|
1086
|
+
se.Title = oo;
|
|
1087
|
+
se.Content = io;
|
|
1088
|
+
se.Icon = ao;
|
|
1089
|
+
se.Action = lo;
|
|
1090
|
+
se.Actions = so;
|
|
1091
|
+
se.colors = no;
|
|
1098
1092
|
se.icons = mn;
|
|
1099
|
-
se.variants =
|
|
1093
|
+
se.variants = ro;
|
|
1100
1094
|
let bn = O(null);
|
|
1101
|
-
function
|
|
1095
|
+
function co(t) {
|
|
1102
1096
|
let e = {
|
|
1103
1097
|
...t,
|
|
1104
1098
|
"data-testid": void 0
|
|
@@ -1114,7 +1108,7 @@ function uo(t) {
|
|
|
1114
1108
|
}
|
|
1115
1109
|
);
|
|
1116
1110
|
}
|
|
1117
|
-
|
|
1111
|
+
co.Option = function(e) {
|
|
1118
1112
|
let n = {
|
|
1119
1113
|
...e,
|
|
1120
1114
|
"data-testid": void 0
|
|
@@ -1135,7 +1129,7 @@ uo.Option = function(e) {
|
|
|
1135
1129
|
}
|
|
1136
1130
|
);
|
|
1137
1131
|
};
|
|
1138
|
-
function
|
|
1132
|
+
function fa({ title: t, children: e, ...n }) {
|
|
1139
1133
|
let r = S(null), { dialogProps: o, titleProps: i } = yr(n, r);
|
|
1140
1134
|
const { className: l } = ie();
|
|
1141
1135
|
return /* @__PURE__ */ s.jsxs("div", { ...o, ref: r, className: E("proton-Dialog", l), children: [
|
|
@@ -1143,16 +1137,16 @@ function pa({ title: t, children: e, ...n }) {
|
|
|
1143
1137
|
e
|
|
1144
1138
|
] });
|
|
1145
1139
|
}
|
|
1146
|
-
const
|
|
1147
|
-
function
|
|
1140
|
+
const uo = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cdefs%3e%3csymbol%20id='external-link'%20viewBox='0%200%20512%20512'%3e%3cpath%20d='M384%20224v184a40%2040%200%2001-40%2040H104a40%2040%200%2001-40-40V168a40%2040%200%200140-40h167.48M336%2064h112v112M224%20288L440%2072'%20fill='none'%20stroke='currentColor'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='32'/%3e%3c/symbol%3e%3csymbol%20id='caret-down'%20viewBox='0%200%20512%20512'%3e%3cpath%20fill='currentColor'%20d='M233.4%20406.6c12.5%2012.5%2032.8%2012.5%2045.3%200l192-192c12.5-12.5%2012.5-32.8%200-45.3s-32.8-12.5-45.3%200L256%20338.7L86.6%20169.4c-12.5-12.5-32.8-12.5-45.3%200s-12.5%2032.8%200%2045.3l192%20192z'/%3e%3c/symbol%3e%3c/defs%3e%3c/svg%3e";
|
|
1141
|
+
function fo(t) {
|
|
1148
1142
|
let e = {
|
|
1149
1143
|
height: t.size || void 0,
|
|
1150
1144
|
width: t.size || void 0,
|
|
1151
1145
|
color: t.color || void 0
|
|
1152
1146
|
};
|
|
1153
|
-
return /* @__PURE__ */ s.jsx("svg", { style: e, ...t, children: /* @__PURE__ */ s.jsx("use", { href: `${
|
|
1147
|
+
return /* @__PURE__ */ s.jsx("svg", { style: e, ...t, children: /* @__PURE__ */ s.jsx("use", { href: `${uo}#${t.id}` }) });
|
|
1154
1148
|
}
|
|
1155
|
-
function
|
|
1149
|
+
function pa(t) {
|
|
1156
1150
|
const [e, n] = D("");
|
|
1157
1151
|
return F(() => {
|
|
1158
1152
|
}, []), e ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
@@ -1163,10 +1157,10 @@ function ha(t) {
|
|
|
1163
1157
|
style: { display: "none" }
|
|
1164
1158
|
}
|
|
1165
1159
|
),
|
|
1166
|
-
/* @__PURE__ */ s.jsx(
|
|
1160
|
+
/* @__PURE__ */ s.jsx(fo, { ...t })
|
|
1167
1161
|
] }) : null;
|
|
1168
1162
|
}
|
|
1169
|
-
const
|
|
1163
|
+
const po = de(
|
|
1170
1164
|
({
|
|
1171
1165
|
prefix: t,
|
|
1172
1166
|
suffix: e,
|
|
@@ -1209,9 +1203,9 @@ const ho = de(
|
|
|
1209
1203
|
"--input-background": (() => {
|
|
1210
1204
|
switch (j) {
|
|
1211
1205
|
case le.CUSTOM_DARK:
|
|
1212
|
-
return
|
|
1206
|
+
return ve(R.PRIMARY.PRIMARY_SUPER_LIGHT, 0.6);
|
|
1213
1207
|
case le.DARK:
|
|
1214
|
-
return
|
|
1208
|
+
return ve(Q.GRAY_MEDIUM, 0.5);
|
|
1215
1209
|
default:
|
|
1216
1210
|
return Q.WHITE;
|
|
1217
1211
|
}
|
|
@@ -1284,7 +1278,7 @@ const ho = de(
|
|
|
1284
1278
|
] });
|
|
1285
1279
|
}
|
|
1286
1280
|
);
|
|
1287
|
-
function
|
|
1281
|
+
function ho(t, e, n) {
|
|
1288
1282
|
let [r, o] = D(t || e), i = S(t !== void 0), l = t !== void 0;
|
|
1289
1283
|
F(() => {
|
|
1290
1284
|
let f = i.current;
|
|
@@ -1310,8 +1304,8 @@ function vo(t, e, n) {
|
|
|
1310
1304
|
u
|
|
1311
1305
|
];
|
|
1312
1306
|
}
|
|
1313
|
-
function
|
|
1314
|
-
let [e, n] =
|
|
1307
|
+
function vo(t) {
|
|
1308
|
+
let [e, n] = ho(Vt(t.value), Vt(t.defaultValue) || "", t.onChange);
|
|
1315
1309
|
return {
|
|
1316
1310
|
value: e,
|
|
1317
1311
|
setValue: n
|
|
@@ -1321,7 +1315,7 @@ function Vt(t) {
|
|
|
1321
1315
|
if (t != null)
|
|
1322
1316
|
return t.toString();
|
|
1323
1317
|
}
|
|
1324
|
-
const
|
|
1318
|
+
const ha = ({
|
|
1325
1319
|
name: t = "search",
|
|
1326
1320
|
placeholder: e = "Search...",
|
|
1327
1321
|
autoComplete: n,
|
|
@@ -1333,7 +1327,7 @@ const va = ({
|
|
|
1333
1327
|
onChange: u,
|
|
1334
1328
|
onClear: f
|
|
1335
1329
|
}) => {
|
|
1336
|
-
const d =
|
|
1330
|
+
const d = vo({
|
|
1337
1331
|
defaultValue: i,
|
|
1338
1332
|
value: l,
|
|
1339
1333
|
onChange: (w) => u == null ? void 0 : u(w),
|
|
@@ -1353,7 +1347,7 @@ const va = ({
|
|
|
1353
1347
|
"data-testid": c,
|
|
1354
1348
|
role: "search",
|
|
1355
1349
|
children: /* @__PURE__ */ s.jsx(
|
|
1356
|
-
|
|
1350
|
+
po,
|
|
1357
1351
|
{
|
|
1358
1352
|
...p,
|
|
1359
1353
|
type: "search",
|
|
@@ -1436,7 +1430,7 @@ const va = ({
|
|
|
1436
1430
|
}
|
|
1437
1431
|
);
|
|
1438
1432
|
};
|
|
1439
|
-
function
|
|
1433
|
+
function va(t) {
|
|
1440
1434
|
const e = S(null), n = Fr(t || {}), { triggerProps: r, overlayProps: o } = Sr(
|
|
1441
1435
|
{ type: "dialog" },
|
|
1442
1436
|
n,
|
|
@@ -1503,7 +1497,7 @@ class bt {
|
|
|
1503
1497
|
this.value = null, this.level = 0, this.hasChildNodes = !1, this.rendered = null, this.textValue = "", this["aria-label"] = void 0, this.index = 0, this.parentKey = null, this.prevKey = null, this.nextKey = null, this.firstChildKey = null, this.lastChildKey = null, this.props = {}, this.type = e, this.key = n;
|
|
1504
1498
|
}
|
|
1505
1499
|
}
|
|
1506
|
-
class
|
|
1500
|
+
class mo {
|
|
1507
1501
|
get size() {
|
|
1508
1502
|
return this.keyMap.size;
|
|
1509
1503
|
}
|
|
@@ -1649,7 +1643,7 @@ class gn {
|
|
|
1649
1643
|
this._firstChild = null, this._lastChild = null, this._previousSibling = null, this._nextSibling = null, this._parentNode = null, this.ownerDocument = e;
|
|
1650
1644
|
}
|
|
1651
1645
|
}
|
|
1652
|
-
class
|
|
1646
|
+
class Se extends gn {
|
|
1653
1647
|
get index() {
|
|
1654
1648
|
return this._index;
|
|
1655
1649
|
}
|
|
@@ -1657,12 +1651,12 @@ class $e extends gn {
|
|
|
1657
1651
|
this._index = e, this.ownerDocument.markDirty(this);
|
|
1658
1652
|
}
|
|
1659
1653
|
get level() {
|
|
1660
|
-
return this.parentNode instanceof
|
|
1654
|
+
return this.parentNode instanceof Se ? this.parentNode.level + (this.node.type === "item" ? 1 : 0) : 0;
|
|
1661
1655
|
}
|
|
1662
1656
|
updateNode() {
|
|
1663
1657
|
var e, n, r, o;
|
|
1664
1658
|
let i = this.ownerDocument.getMutableNode(this);
|
|
1665
|
-
i.index = this.index, i.level = this.level, i.parentKey = this.parentNode instanceof
|
|
1659
|
+
i.index = this.index, i.level = this.level, i.parentKey = this.parentNode instanceof Se ? this.parentNode.node.key : null;
|
|
1666
1660
|
var l;
|
|
1667
1661
|
i.prevKey = (l = (e = this.previousSibling) === null || e === void 0 ? void 0 : e.node.key) !== null && l !== void 0 ? l : null;
|
|
1668
1662
|
var c;
|
|
@@ -1695,12 +1689,12 @@ class $e extends gn {
|
|
|
1695
1689
|
super(n), this.nodeType = 8, this._index = 0, this.hasSetProps = !1, this.node = new bt(e, `react-aria-${++n.nodeId}`), this.ownerDocument.startTransaction();
|
|
1696
1690
|
}
|
|
1697
1691
|
}
|
|
1698
|
-
class
|
|
1692
|
+
class bo extends gn {
|
|
1699
1693
|
get isConnected() {
|
|
1700
1694
|
return this.isMounted;
|
|
1701
1695
|
}
|
|
1702
1696
|
createElement(e) {
|
|
1703
|
-
return new
|
|
1697
|
+
return new Se(e, this);
|
|
1704
1698
|
}
|
|
1705
1699
|
/**
|
|
1706
1700
|
* Lazily gets a mutable instance of a Node. If the node has already
|
|
@@ -1739,7 +1733,7 @@ class go extends gn {
|
|
|
1739
1733
|
return this.transactionCount > 0 ? this.collection : (this.updateCollection(), this.collection);
|
|
1740
1734
|
}
|
|
1741
1735
|
updateCollection() {
|
|
1742
|
-
for (let i of this.dirtyNodes) i instanceof
|
|
1736
|
+
for (let i of this.dirtyNodes) i instanceof Se && i.isConnected && i.updateNode();
|
|
1743
1737
|
if (this.dirtyNodes.clear(), this.mutatedNodes.size || this.collectionMutated) {
|
|
1744
1738
|
var e, n;
|
|
1745
1739
|
let i = this.getMutableCollection();
|
|
@@ -1798,9 +1792,9 @@ function yn(t) {
|
|
|
1798
1792
|
const Oe = {
|
|
1799
1793
|
prefix: String(Math.round(Math.random() * 1e10)),
|
|
1800
1794
|
current: 0
|
|
1801
|
-
}, xn = /* @__PURE__ */ g.createContext(Oe),
|
|
1802
|
-
let
|
|
1803
|
-
function
|
|
1795
|
+
}, xn = /* @__PURE__ */ g.createContext(Oe), go = /* @__PURE__ */ g.createContext(!1);
|
|
1796
|
+
let yo = !!(typeof window < "u" && window.document && window.document.createElement), Qe = /* @__PURE__ */ new WeakMap();
|
|
1797
|
+
function xo(t = !1) {
|
|
1804
1798
|
let e = A(xn), n = S(null);
|
|
1805
1799
|
if (n.current === null && !t) {
|
|
1806
1800
|
var r, o;
|
|
@@ -1816,29 +1810,29 @@ function _o(t = !1) {
|
|
|
1816
1810
|
}
|
|
1817
1811
|
return n.current;
|
|
1818
1812
|
}
|
|
1819
|
-
function
|
|
1813
|
+
function _o(t) {
|
|
1820
1814
|
let e = A(xn);
|
|
1821
|
-
e === Oe && !
|
|
1822
|
-
let n =
|
|
1815
|
+
e === Oe && !yo && console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
|
|
1816
|
+
let n = xo(!!t), r = e === Oe && process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${e.prefix}`;
|
|
1823
1817
|
return t || `${r}-${n}`;
|
|
1824
1818
|
}
|
|
1825
|
-
function
|
|
1819
|
+
function $o(t) {
|
|
1826
1820
|
let e = g.useId(), [n] = D(Be()), r = n || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${Oe.prefix}`;
|
|
1827
1821
|
return t || `${r}-${e}`;
|
|
1828
1822
|
}
|
|
1829
1823
|
g.useId;
|
|
1830
|
-
function
|
|
1824
|
+
function So() {
|
|
1831
1825
|
return !1;
|
|
1832
1826
|
}
|
|
1833
|
-
function
|
|
1827
|
+
function Eo() {
|
|
1834
1828
|
return !0;
|
|
1835
1829
|
}
|
|
1836
|
-
function
|
|
1830
|
+
function wo(t) {
|
|
1837
1831
|
return () => {
|
|
1838
1832
|
};
|
|
1839
1833
|
}
|
|
1840
1834
|
function Be() {
|
|
1841
|
-
return typeof g.useSyncExternalStore == "function" ? g.useSyncExternalStore(
|
|
1835
|
+
return typeof g.useSyncExternalStore == "function" ? g.useSyncExternalStore(wo, So, Eo) : A(go);
|
|
1842
1836
|
}
|
|
1843
1837
|
if (typeof HTMLTemplateElement < "u") {
|
|
1844
1838
|
const t = Object.getOwnPropertyDescriptor(Node.prototype, "firstChild").get;
|
|
@@ -1850,8 +1844,8 @@ if (typeof HTMLTemplateElement < "u") {
|
|
|
1850
1844
|
}
|
|
1851
1845
|
});
|
|
1852
1846
|
}
|
|
1853
|
-
const ot = /* @__PURE__ */ O(!1),
|
|
1854
|
-
function
|
|
1847
|
+
const ot = /* @__PURE__ */ O(!1), Co = typeof DocumentFragment < "u" ? new DocumentFragment() : null;
|
|
1848
|
+
function Ro(t) {
|
|
1855
1849
|
let e = A(ot), n = Be();
|
|
1856
1850
|
if (e)
|
|
1857
1851
|
return /* @__PURE__ */ g.createElement(g.Fragment, null, t.children);
|
|
@@ -1860,17 +1854,17 @@ function Po(t) {
|
|
|
1860
1854
|
}, t.children);
|
|
1861
1855
|
return n ? /* @__PURE__ */ g.createElement("template", {
|
|
1862
1856
|
"data-react-aria-hidden": !0
|
|
1863
|
-
}, r) : /* @__PURE__ */ tn(r,
|
|
1857
|
+
}, r) : /* @__PURE__ */ tn(r, Co);
|
|
1864
1858
|
}
|
|
1865
|
-
function
|
|
1859
|
+
function Po(t) {
|
|
1866
1860
|
let e = (n, r) => A(ot) ? null : t(n, r);
|
|
1867
1861
|
return e.displayName = t.displayName || t.name, de(e);
|
|
1868
1862
|
}
|
|
1869
|
-
const
|
|
1863
|
+
const be = typeof document < "u" ? g.useLayoutEffect : () => {
|
|
1870
1864
|
};
|
|
1871
1865
|
function Kt(t) {
|
|
1872
1866
|
const e = S(null);
|
|
1873
|
-
return
|
|
1867
|
+
return be(() => {
|
|
1874
1868
|
e.current = t;
|
|
1875
1869
|
}, [
|
|
1876
1870
|
t
|
|
@@ -1880,7 +1874,7 @@ function Kt(t) {
|
|
|
1880
1874
|
}, []);
|
|
1881
1875
|
}
|
|
1882
1876
|
let Wt = /* @__PURE__ */ new Map();
|
|
1883
|
-
function
|
|
1877
|
+
function To(t, e) {
|
|
1884
1878
|
if (t === e) return t;
|
|
1885
1879
|
let n = Wt.get(t);
|
|
1886
1880
|
if (n)
|
|
@@ -1888,12 +1882,12 @@ function jo(t, e) {
|
|
|
1888
1882
|
let r = Wt.get(e);
|
|
1889
1883
|
return r ? (r.forEach((o) => o(t)), t) : e;
|
|
1890
1884
|
}
|
|
1891
|
-
function
|
|
1885
|
+
function jo(...t) {
|
|
1892
1886
|
return (...e) => {
|
|
1893
1887
|
for (let n of t) typeof n == "function" && n(...e);
|
|
1894
1888
|
};
|
|
1895
1889
|
}
|
|
1896
|
-
const
|
|
1890
|
+
const No = (t) => {
|
|
1897
1891
|
var e;
|
|
1898
1892
|
return (e = t == null ? void 0 : t.ownerDocument) !== null && e !== void 0 ? e : document;
|
|
1899
1893
|
};
|
|
@@ -1906,7 +1900,7 @@ function _n(t) {
|
|
|
1906
1900
|
} else for (n in t) t[n] && (r && (r += " "), r += n);
|
|
1907
1901
|
return r;
|
|
1908
1902
|
}
|
|
1909
|
-
function
|
|
1903
|
+
function Mo() {
|
|
1910
1904
|
for (var t, e, n = 0, r = "", o = arguments.length; n < o; n++) (t = arguments[n]) && (e = _n(t)) && (r && (r += " "), r += e);
|
|
1911
1905
|
return r;
|
|
1912
1906
|
}
|
|
@@ -1921,25 +1915,25 @@ function $n(...t) {
|
|
|
1921
1915
|
typeof i == "function" && typeof l == "function" && // This is a lot faster than a regex.
|
|
1922
1916
|
o[0] === "o" && o[1] === "n" && o.charCodeAt(2) >= /* 'A' */
|
|
1923
1917
|
65 && o.charCodeAt(2) <= /* 'Z' */
|
|
1924
|
-
90 ? e[o] =
|
|
1918
|
+
90 ? e[o] = jo(i, l) : (o === "className" || o === "UNSAFE_className") && typeof i == "string" && typeof l == "string" ? e[o] = Mo(i, l) : o === "id" && i && l ? e.id = To(i, l) : e[o] = l !== void 0 ? l : i;
|
|
1925
1919
|
}
|
|
1926
1920
|
}
|
|
1927
1921
|
return e;
|
|
1928
1922
|
}
|
|
1929
|
-
function
|
|
1923
|
+
function ko(...t) {
|
|
1930
1924
|
return t.length === 1 && t[0] ? t[0] : (e) => {
|
|
1931
1925
|
for (let n of t)
|
|
1932
1926
|
typeof n == "function" ? n(e) : n != null && (n.current = e);
|
|
1933
1927
|
};
|
|
1934
1928
|
}
|
|
1935
|
-
const
|
|
1929
|
+
const Ao = /* @__PURE__ */ new Set([
|
|
1936
1930
|
"id"
|
|
1937
|
-
]),
|
|
1931
|
+
]), Oo = /* @__PURE__ */ new Set([
|
|
1938
1932
|
"aria-label",
|
|
1939
1933
|
"aria-labelledby",
|
|
1940
1934
|
"aria-describedby",
|
|
1941
1935
|
"aria-details"
|
|
1942
|
-
]),
|
|
1936
|
+
]), Io = /* @__PURE__ */ new Set([
|
|
1943
1937
|
"href",
|
|
1944
1938
|
"hrefLang",
|
|
1945
1939
|
"target",
|
|
@@ -1947,10 +1941,10 @@ const Oo = /* @__PURE__ */ new Set([
|
|
|
1947
1941
|
"download",
|
|
1948
1942
|
"ping",
|
|
1949
1943
|
"referrerPolicy"
|
|
1950
|
-
]),
|
|
1944
|
+
]), Do = /^(data-.*)$/;
|
|
1951
1945
|
function gt(t, e = {}) {
|
|
1952
1946
|
let { labelable: n, isLink: r, propNames: o } = e, i = {};
|
|
1953
|
-
for (const l in t) Object.prototype.hasOwnProperty.call(t, l) && (
|
|
1947
|
+
for (const l in t) Object.prototype.hasOwnProperty.call(t, l) && (Ao.has(l) || n && Oo.has(l) || r && Io.has(l) || o != null && o.has(l) || Do.test(l)) && (i[l] = t[l]);
|
|
1954
1948
|
return i;
|
|
1955
1949
|
}
|
|
1956
1950
|
function He(t) {
|
|
@@ -1966,15 +1960,15 @@ function He(t) {
|
|
|
1966
1960
|
t
|
|
1967
1961
|
]);
|
|
1968
1962
|
}
|
|
1969
|
-
function
|
|
1963
|
+
function Lo() {
|
|
1970
1964
|
return typeof window.ResizeObserver < "u";
|
|
1971
1965
|
}
|
|
1972
|
-
function
|
|
1966
|
+
function Bo(t) {
|
|
1973
1967
|
const { ref: e, box: n, onResize: r } = t;
|
|
1974
1968
|
F(() => {
|
|
1975
1969
|
let o = e == null ? void 0 : e.current;
|
|
1976
1970
|
if (o)
|
|
1977
|
-
if (
|
|
1971
|
+
if (Lo()) {
|
|
1978
1972
|
const i = new window.ResizeObserver((l) => {
|
|
1979
1973
|
l.length && r();
|
|
1980
1974
|
});
|
|
@@ -1993,8 +1987,8 @@ function Ho(t) {
|
|
|
1993
1987
|
n
|
|
1994
1988
|
]);
|
|
1995
1989
|
}
|
|
1996
|
-
function
|
|
1997
|
-
|
|
1990
|
+
function Ho(t, e) {
|
|
1991
|
+
be(() => {
|
|
1998
1992
|
if (t && t.ref && e)
|
|
1999
1993
|
return t.ref.current = e.current, () => {
|
|
2000
1994
|
t.ref && (t.ref.current = null);
|
|
@@ -2012,7 +2006,7 @@ var it = { exports: {} }, et = {};
|
|
|
2012
2006
|
* LICENSE file in the root directory of this source tree.
|
|
2013
2007
|
*/
|
|
2014
2008
|
var Ft;
|
|
2015
|
-
function
|
|
2009
|
+
function Vo() {
|
|
2016
2010
|
if (Ft) return et;
|
|
2017
2011
|
Ft = 1;
|
|
2018
2012
|
var t = g;
|
|
@@ -2057,7 +2051,7 @@ var tt = {};
|
|
|
2057
2051
|
* LICENSE file in the root directory of this source tree.
|
|
2058
2052
|
*/
|
|
2059
2053
|
var Gt;
|
|
2060
|
-
function
|
|
2054
|
+
function Ko() {
|
|
2061
2055
|
return Gt || (Gt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
2062
2056
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
2063
2057
|
var t = g, e = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
@@ -2127,35 +2121,35 @@ function Wo() {
|
|
|
2127
2121
|
tt.useSyncExternalStore = R, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
2128
2122
|
}()), tt;
|
|
2129
2123
|
}
|
|
2130
|
-
process.env.NODE_ENV === "production" ? it.exports =
|
|
2131
|
-
var
|
|
2132
|
-
const Sn = /* @__PURE__ */ O(!1),
|
|
2133
|
-
function
|
|
2134
|
-
if (A(
|
|
2124
|
+
process.env.NODE_ENV === "production" ? it.exports = Vo() : it.exports = Ko();
|
|
2125
|
+
var Wo = it.exports;
|
|
2126
|
+
const Sn = /* @__PURE__ */ O(!1), Ee = /* @__PURE__ */ O(null);
|
|
2127
|
+
function Fo(t) {
|
|
2128
|
+
if (A(Ee))
|
|
2135
2129
|
return t.content;
|
|
2136
|
-
let { collection: n, document: r } =
|
|
2137
|
-
return /* @__PURE__ */ g.createElement(g.Fragment, null, /* @__PURE__ */ g.createElement(
|
|
2130
|
+
let { collection: n, document: r } = Yo(t.createCollection);
|
|
2131
|
+
return /* @__PURE__ */ g.createElement(g.Fragment, null, /* @__PURE__ */ g.createElement(Ro, null, /* @__PURE__ */ g.createElement(Ee.Provider, {
|
|
2138
2132
|
value: r
|
|
2139
|
-
}, t.content)), /* @__PURE__ */ g.createElement(
|
|
2133
|
+
}, t.content)), /* @__PURE__ */ g.createElement(Go, {
|
|
2140
2134
|
render: t.children,
|
|
2141
2135
|
collection: n
|
|
2142
2136
|
}));
|
|
2143
2137
|
}
|
|
2144
|
-
function
|
|
2138
|
+
function Go({ collection: t, render: e }) {
|
|
2145
2139
|
return e(t);
|
|
2146
2140
|
}
|
|
2147
|
-
function
|
|
2141
|
+
function Uo(t, e, n) {
|
|
2148
2142
|
let r = Be(), o = S(r);
|
|
2149
2143
|
o.current = r;
|
|
2150
2144
|
let i = ne(() => o.current ? n() : e(), [
|
|
2151
2145
|
e,
|
|
2152
2146
|
n
|
|
2153
2147
|
]);
|
|
2154
|
-
return
|
|
2148
|
+
return Wo.useSyncExternalStore(t, i);
|
|
2155
2149
|
}
|
|
2156
|
-
const
|
|
2157
|
-
function
|
|
2158
|
-
let [e] = D(() => new
|
|
2150
|
+
const zo = typeof g.useSyncExternalStore == "function" ? g.useSyncExternalStore : Uo;
|
|
2151
|
+
function Yo(t) {
|
|
2152
|
+
let [e] = D(() => new bo((t == null ? void 0 : t()) || new mo())), n = ne((l) => e.subscribe(l), [
|
|
2159
2153
|
e
|
|
2160
2154
|
]), r = ne(() => {
|
|
2161
2155
|
let l = e.getCollection();
|
|
@@ -2164,8 +2158,8 @@ function qo(t) {
|
|
|
2164
2158
|
e
|
|
2165
2159
|
]), o = ne(() => (e.isSSR = !0, e.getCollection()), [
|
|
2166
2160
|
e
|
|
2167
|
-
]), i =
|
|
2168
|
-
return
|
|
2161
|
+
]), i = zo(n, r, o);
|
|
2162
|
+
return be(() => (e.isMounted = !0, () => {
|
|
2169
2163
|
e.isMounted = !1;
|
|
2170
2164
|
}), [
|
|
2171
2165
|
e
|
|
@@ -2175,7 +2169,7 @@ function qo(t) {
|
|
|
2175
2169
|
};
|
|
2176
2170
|
}
|
|
2177
2171
|
const at = /* @__PURE__ */ O(null);
|
|
2178
|
-
function
|
|
2172
|
+
function qo(t, e, n, r, o, i) {
|
|
2179
2173
|
let l = ne((u) => {
|
|
2180
2174
|
u == null || u.setProps(e, n, r, i);
|
|
2181
2175
|
}, [
|
|
@@ -2194,32 +2188,32 @@ function Jo(t, e, n, r, o, i) {
|
|
|
2194
2188
|
ref: l
|
|
2195
2189
|
}, o);
|
|
2196
2190
|
}
|
|
2197
|
-
function
|
|
2191
|
+
function Jo(t, e) {
|
|
2198
2192
|
let n = ({ node: o }) => e(o.props, o.props.ref, o), r = de((o, i) => {
|
|
2199
2193
|
if (!A(Sn)) {
|
|
2200
2194
|
if (e.length >= 3) throw new Error(e.name + " cannot be rendered outside a collection.");
|
|
2201
2195
|
return e(o, i);
|
|
2202
2196
|
}
|
|
2203
|
-
return
|
|
2197
|
+
return qo(t, o, i, "children" in o ? o.children : null, null, (c) => /* @__PURE__ */ g.createElement(n, {
|
|
2204
2198
|
node: c
|
|
2205
2199
|
}));
|
|
2206
2200
|
});
|
|
2207
2201
|
return r.displayName = e.name, r;
|
|
2208
2202
|
}
|
|
2209
|
-
function
|
|
2203
|
+
function Xo(t) {
|
|
2210
2204
|
return yn({
|
|
2211
2205
|
...t,
|
|
2212
2206
|
addIdAndValue: !0
|
|
2213
2207
|
});
|
|
2214
2208
|
}
|
|
2215
2209
|
const Ut = /* @__PURE__ */ O(null);
|
|
2216
|
-
function
|
|
2217
|
-
let e = A(Ut), n = ((e == null ? void 0 : e.dependencies) || []).concat(t.dependencies), r = t.idScope || (e == null ? void 0 : e.idScope), o =
|
|
2210
|
+
function Zo(t) {
|
|
2211
|
+
let e = A(Ut), n = ((e == null ? void 0 : e.dependencies) || []).concat(t.dependencies), r = t.idScope || (e == null ? void 0 : e.idScope), o = Xo({
|
|
2218
2212
|
...t,
|
|
2219
2213
|
idScope: r,
|
|
2220
2214
|
dependencies: n
|
|
2221
2215
|
});
|
|
2222
|
-
return A(
|
|
2216
|
+
return A(Ee) && (o = /* @__PURE__ */ g.createElement(Qo, null, o)), e = oe(() => ({
|
|
2223
2217
|
dependencies: n,
|
|
2224
2218
|
idScope: r
|
|
2225
2219
|
}), [
|
|
@@ -2229,8 +2223,8 @@ function Qo(t) {
|
|
|
2229
2223
|
value: e
|
|
2230
2224
|
}, o);
|
|
2231
2225
|
}
|
|
2232
|
-
function
|
|
2233
|
-
let e = A(
|
|
2226
|
+
function Qo({ children: t }) {
|
|
2227
|
+
let e = A(Ee), n = oe(() => /* @__PURE__ */ g.createElement(Ee.Provider, {
|
|
2234
2228
|
value: null
|
|
2235
2229
|
}, /* @__PURE__ */ g.createElement(Sn.Provider, {
|
|
2236
2230
|
value: !0
|
|
@@ -2241,7 +2235,7 @@ function ei({ children: t }) {
|
|
|
2241
2235
|
value: e
|
|
2242
2236
|
}, n) : /* @__PURE__ */ tn(n, e);
|
|
2243
2237
|
}
|
|
2244
|
-
const
|
|
2238
|
+
const ei = /* @__PURE__ */ O(null), ti = {
|
|
2245
2239
|
CollectionRoot({ collection: t, renderDropIndicator: e }) {
|
|
2246
2240
|
return zt(t, null, e);
|
|
2247
2241
|
},
|
|
@@ -2272,8 +2266,8 @@ function zt(t, e, n) {
|
|
|
2272
2266
|
}
|
|
2273
2267
|
});
|
|
2274
2268
|
}
|
|
2275
|
-
const En = /* @__PURE__ */ O(
|
|
2276
|
-
function
|
|
2269
|
+
const En = /* @__PURE__ */ O(ti);
|
|
2270
|
+
function ni(t) {
|
|
2277
2271
|
return oe(() => t != null ? /* @__PURE__ */ new Set([
|
|
2278
2272
|
t
|
|
2279
2273
|
]) : null, [
|
|
@@ -2288,7 +2282,7 @@ function Ve({ values: t, children: e }) {
|
|
|
2288
2282
|
}, e);
|
|
2289
2283
|
return e;
|
|
2290
2284
|
}
|
|
2291
|
-
function
|
|
2285
|
+
function ge(t) {
|
|
2292
2286
|
let { className: e, style: n, children: r, defaultClassName: o, defaultChildren: i, defaultStyle: l, values: c } = t;
|
|
2293
2287
|
return oe(() => {
|
|
2294
2288
|
let u, f, d;
|
|
@@ -2334,8 +2328,8 @@ function wn(t, e) {
|
|
|
2334
2328
|
}
|
|
2335
2329
|
return n;
|
|
2336
2330
|
}
|
|
2337
|
-
function
|
|
2338
|
-
let r = wn(n, t.slot) || {}, { ref: o, ...i } = r, l = He(oe(() =>
|
|
2331
|
+
function Ce(t, e, n) {
|
|
2332
|
+
let r = wn(n, t.slot) || {}, { ref: o, ...i } = r, l = He(oe(() => ko(e, o), [
|
|
2339
2333
|
e,
|
|
2340
2334
|
o
|
|
2341
2335
|
])), c = $n(i, t);
|
|
@@ -2359,22 +2353,22 @@ function we(t, e, n) {
|
|
|
2359
2353
|
l
|
|
2360
2354
|
];
|
|
2361
2355
|
}
|
|
2362
|
-
function
|
|
2356
|
+
function ri() {
|
|
2363
2357
|
let [t, e] = D(!0), n = S(!1), r = ne((o) => {
|
|
2364
2358
|
n.current = !0, e(!!o);
|
|
2365
2359
|
}, []);
|
|
2366
|
-
return
|
|
2360
|
+
return be(() => {
|
|
2367
2361
|
n.current || e(!1);
|
|
2368
2362
|
}, []), [
|
|
2369
2363
|
r,
|
|
2370
2364
|
t
|
|
2371
2365
|
];
|
|
2372
2366
|
}
|
|
2373
|
-
function
|
|
2367
|
+
function oi(t, e = !0) {
|
|
2374
2368
|
let [n, r] = D(!0);
|
|
2375
2369
|
return Cn(t, n && e, ne(() => r(!1), [])), n && e;
|
|
2376
2370
|
}
|
|
2377
|
-
function
|
|
2371
|
+
function ii(t, e) {
|
|
2378
2372
|
let [n, r] = D(!1), [o, i] = D("idle");
|
|
2379
2373
|
return !e && t.current && o === "idle" && (n = !0, r(!0), i("exiting")), !t.current && o === "exited" && i("idle"), Cn(t, n, ne(() => {
|
|
2380
2374
|
i("exited"), r(!1);
|
|
@@ -2382,7 +2376,7 @@ function ai(t, e) {
|
|
|
2382
2376
|
}
|
|
2383
2377
|
function Cn(t, e, n) {
|
|
2384
2378
|
let r = S(null);
|
|
2385
|
-
e && t.current && (r.current = window.getComputedStyle(t.current).animation),
|
|
2379
|
+
e && t.current && (r.current = window.getComputedStyle(t.current).animation), be(() => {
|
|
2386
2380
|
if (e && t.current) {
|
|
2387
2381
|
let o = window.getComputedStyle(t.current);
|
|
2388
2382
|
if (o.animationName && o.animationName !== "none" && o.animation !== r.current) {
|
|
@@ -2402,14 +2396,14 @@ function Cn(t, e, n) {
|
|
|
2402
2396
|
n
|
|
2403
2397
|
]);
|
|
2404
2398
|
}
|
|
2405
|
-
const
|
|
2399
|
+
const ai = /* @__PURE__ */ O(null), Rn = 7e3;
|
|
2406
2400
|
let re = null;
|
|
2407
2401
|
function qt(t, e = "assertive", n = Rn) {
|
|
2408
|
-
re ? re.announce(t, e, n) : (re = new
|
|
2402
|
+
re ? re.announce(t, e, n) : (re = new li(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? re.announce(t, e, n) : setTimeout(() => {
|
|
2409
2403
|
re != null && re.isAttached() && (re == null || re.announce(t, e, n));
|
|
2410
2404
|
}, 100));
|
|
2411
2405
|
}
|
|
2412
|
-
class
|
|
2406
|
+
class li {
|
|
2413
2407
|
isAttached() {
|
|
2414
2408
|
var e;
|
|
2415
2409
|
return (e = this.node) === null || e === void 0 ? void 0 : e.isConnected;
|
|
@@ -2447,7 +2441,7 @@ class si {
|
|
|
2447
2441
|
}), this.assertiveLog = this.createLog("assertive"), this.node.appendChild(this.assertiveLog), this.politeLog = this.createLog("polite"), this.node.appendChild(this.politeLog), document.body.prepend(this.node));
|
|
2448
2442
|
}
|
|
2449
2443
|
}
|
|
2450
|
-
const
|
|
2444
|
+
const si = /* @__PURE__ */ new Set([
|
|
2451
2445
|
"form",
|
|
2452
2446
|
"formAction",
|
|
2453
2447
|
"formEncType",
|
|
@@ -2456,10 +2450,10 @@ const ci = /* @__PURE__ */ new Set([
|
|
|
2456
2450
|
"formTarget",
|
|
2457
2451
|
"name",
|
|
2458
2452
|
"value"
|
|
2459
|
-
]),
|
|
2460
|
-
function
|
|
2461
|
-
[t, e] =
|
|
2462
|
-
let n = t, { isPending: r } = n, { buttonProps: o, isPressed: i } = De(t, e), { focusProps: l, isFocused: c, isFocusVisible: u } =
|
|
2453
|
+
]), ci = /* @__PURE__ */ O({});
|
|
2454
|
+
function ui(t, e) {
|
|
2455
|
+
[t, e] = Ce(t, e, ci), t = di(t);
|
|
2456
|
+
let n = t, { isPending: r } = n, { buttonProps: o, isPressed: i } = De(t, e), { focusProps: l, isFocused: c, isFocusVisible: u } = we(t), { hoverProps: f, isHovered: d } = Rr({
|
|
2463
2457
|
...t,
|
|
2464
2458
|
isDisabled: t.isDisabled || r
|
|
2465
2459
|
}), h = {
|
|
@@ -2469,7 +2463,7 @@ function di(t, e) {
|
|
|
2469
2463
|
isFocusVisible: u,
|
|
2470
2464
|
isDisabled: t.isDisabled || !1,
|
|
2471
2465
|
isPending: r ?? !1
|
|
2472
|
-
}, p =
|
|
2466
|
+
}, p = ge({
|
|
2473
2467
|
...t,
|
|
2474
2468
|
values: h,
|
|
2475
2469
|
defaultClassName: "react-aria-Button"
|
|
@@ -2488,9 +2482,9 @@ function di(t, e) {
|
|
|
2488
2482
|
v
|
|
2489
2483
|
]), /* @__PURE__ */ g.createElement("button", {
|
|
2490
2484
|
...gt(t, {
|
|
2491
|
-
propNames:
|
|
2485
|
+
propNames: si
|
|
2492
2486
|
}),
|
|
2493
|
-
...
|
|
2487
|
+
...me(o, l, f),
|
|
2494
2488
|
...p,
|
|
2495
2489
|
id: v,
|
|
2496
2490
|
ref: e,
|
|
@@ -2503,21 +2497,21 @@ function di(t, e) {
|
|
|
2503
2497
|
"data-focused": c || void 0,
|
|
2504
2498
|
"data-pending": r || void 0,
|
|
2505
2499
|
"data-focus-visible": u || void 0
|
|
2506
|
-
}, /* @__PURE__ */ g.createElement(
|
|
2500
|
+
}, /* @__PURE__ */ g.createElement(ai.Provider, {
|
|
2507
2501
|
value: {
|
|
2508
2502
|
id: y
|
|
2509
2503
|
}
|
|
2510
2504
|
}, p.children));
|
|
2511
2505
|
}
|
|
2512
|
-
function
|
|
2506
|
+
function di(t) {
|
|
2513
2507
|
return t.isPending && (t.onPress = void 0, t.onPressStart = void 0, t.onPressEnd = void 0, t.onPressChange = void 0, t.onPressUp = void 0, t.onKeyDown = void 0, t.onKeyUp = void 0, t.onClick = void 0, t.href = void 0), t;
|
|
2514
2508
|
}
|
|
2515
|
-
const Pn = /* @__PURE__ */
|
|
2509
|
+
const Pn = /* @__PURE__ */ Po(ui), fi = /* @__PURE__ */ O({}), lt = g.createContext({
|
|
2516
2510
|
register: () => {
|
|
2517
2511
|
}
|
|
2518
2512
|
});
|
|
2519
2513
|
lt.displayName = "PressResponderContext";
|
|
2520
|
-
const
|
|
2514
|
+
const pi = /* @__PURE__ */ g.forwardRef(({ children: t, ...e }, n) => {
|
|
2521
2515
|
let r = S(!1), o = A(lt);
|
|
2522
2516
|
n = He(n || (o == null ? void 0 : o.ref));
|
|
2523
2517
|
let i = $n(o || {}, {
|
|
@@ -2527,7 +2521,7 @@ const hi = /* @__PURE__ */ g.forwardRef(({ children: t, ...e }, n) => {
|
|
|
2527
2521
|
r.current = !0, o && o.register();
|
|
2528
2522
|
}
|
|
2529
2523
|
});
|
|
2530
|
-
return
|
|
2524
|
+
return Ho(o, n), F(() => {
|
|
2531
2525
|
r.current || (console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component."), r.current = !0);
|
|
2532
2526
|
}, []), /* @__PURE__ */ g.createElement(lt.Provider, {
|
|
2533
2527
|
value: i
|
|
@@ -2542,20 +2536,20 @@ function st() {
|
|
|
2542
2536
|
function Jt(t) {
|
|
2543
2537
|
t.pointerType === "touch" && st();
|
|
2544
2538
|
}
|
|
2545
|
-
function
|
|
2539
|
+
function hi() {
|
|
2546
2540
|
if (!(typeof document > "u"))
|
|
2547
2541
|
return typeof PointerEvent < "u" ? document.addEventListener("pointerup", Jt) : document.addEventListener("touchend", st), nt++, () => {
|
|
2548
2542
|
nt--, !(nt > 0) && (typeof PointerEvent < "u" ? document.removeEventListener("pointerup", Jt) : document.removeEventListener("touchend", st));
|
|
2549
2543
|
};
|
|
2550
2544
|
}
|
|
2551
|
-
function
|
|
2545
|
+
function vi(t) {
|
|
2552
2546
|
let { onHoverStart: e, onHoverChange: n, onHoverEnd: r, isDisabled: o } = t, [i, l] = D(!1), c = S({
|
|
2553
2547
|
isHovered: !1,
|
|
2554
2548
|
ignoreEmulatedMouseEvents: !1,
|
|
2555
2549
|
pointerType: "",
|
|
2556
2550
|
target: null
|
|
2557
2551
|
}).current;
|
|
2558
|
-
F(
|
|
2552
|
+
F(hi, []);
|
|
2559
2553
|
let { hoverProps: u, triggerHoverEnd: f } = oe(() => {
|
|
2560
2554
|
let d = (v, y) => {
|
|
2561
2555
|
if (c.pointerType = y, o || y === "touch" || c.isHovered || !v.currentTarget.contains(v.target)) return;
|
|
@@ -2608,31 +2602,31 @@ function mi(t) {
|
|
|
2608
2602
|
isHovered: i
|
|
2609
2603
|
};
|
|
2610
2604
|
}
|
|
2611
|
-
function
|
|
2605
|
+
function mi(t) {
|
|
2612
2606
|
let { ref: e, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: o } = t, i = S({
|
|
2613
2607
|
isPointerDown: !1,
|
|
2614
2608
|
ignoreEmulatedMouseEvents: !1
|
|
2615
2609
|
}), l = Kt((u) => {
|
|
2616
|
-
n &&
|
|
2610
|
+
n && Ae(u, e) && (o && o(u), i.current.isPointerDown = !0);
|
|
2617
2611
|
}), c = Kt((u) => {
|
|
2618
2612
|
n && n(u);
|
|
2619
2613
|
});
|
|
2620
2614
|
F(() => {
|
|
2621
2615
|
let u = i.current;
|
|
2622
2616
|
if (r) return;
|
|
2623
|
-
const f = e.current, d =
|
|
2617
|
+
const f = e.current, d = No(f);
|
|
2624
2618
|
if (typeof PointerEvent < "u") {
|
|
2625
2619
|
let h = (p) => {
|
|
2626
|
-
u.isPointerDown &&
|
|
2620
|
+
u.isPointerDown && Ae(p, e) && c(p), u.isPointerDown = !1;
|
|
2627
2621
|
};
|
|
2628
2622
|
return d.addEventListener("pointerdown", l, !0), d.addEventListener("pointerup", h, !0), () => {
|
|
2629
2623
|
d.removeEventListener("pointerdown", l, !0), d.removeEventListener("pointerup", h, !0);
|
|
2630
2624
|
};
|
|
2631
2625
|
} else {
|
|
2632
2626
|
let h = (v) => {
|
|
2633
|
-
u.ignoreEmulatedMouseEvents ? u.ignoreEmulatedMouseEvents = !1 : u.isPointerDown &&
|
|
2627
|
+
u.ignoreEmulatedMouseEvents ? u.ignoreEmulatedMouseEvents = !1 : u.isPointerDown && Ae(v, e) && c(v), u.isPointerDown = !1;
|
|
2634
2628
|
}, p = (v) => {
|
|
2635
|
-
u.ignoreEmulatedMouseEvents = !0, u.isPointerDown &&
|
|
2629
|
+
u.ignoreEmulatedMouseEvents = !0, u.isPointerDown && Ae(v, e) && c(v), u.isPointerDown = !1;
|
|
2636
2630
|
};
|
|
2637
2631
|
return d.addEventListener("mousedown", l, !0), d.addEventListener("mouseup", h, !0), d.addEventListener("touchstart", l, !0), d.addEventListener("touchend", p, !0), () => {
|
|
2638
2632
|
d.removeEventListener("mousedown", l, !0), d.removeEventListener("mouseup", h, !0), d.removeEventListener("touchstart", l, !0), d.removeEventListener("touchend", p, !0);
|
|
@@ -2645,7 +2639,7 @@ function bi(t) {
|
|
|
2645
2639
|
c
|
|
2646
2640
|
]);
|
|
2647
2641
|
}
|
|
2648
|
-
function
|
|
2642
|
+
function Ae(t, e) {
|
|
2649
2643
|
if (t.button > 0) return !1;
|
|
2650
2644
|
if (t.target) {
|
|
2651
2645
|
const n = t.target.ownerDocument;
|
|
@@ -2653,27 +2647,27 @@ function ke(t, e) {
|
|
|
2653
2647
|
}
|
|
2654
2648
|
return e.current && !e.current.contains(t.target);
|
|
2655
2649
|
}
|
|
2656
|
-
let
|
|
2657
|
-
function
|
|
2650
|
+
let bi = /* @__PURE__ */ g.createContext(null);
|
|
2651
|
+
function gi(t, e) {
|
|
2658
2652
|
let { children: n, ...r } = t, o = He(e), i = {
|
|
2659
2653
|
...r,
|
|
2660
2654
|
ref: o
|
|
2661
2655
|
};
|
|
2662
|
-
return /* @__PURE__ */ g.createElement(
|
|
2656
|
+
return /* @__PURE__ */ g.createElement(bi.Provider, {
|
|
2663
2657
|
value: i
|
|
2664
2658
|
}, n);
|
|
2665
2659
|
}
|
|
2666
|
-
let
|
|
2667
|
-
const
|
|
2660
|
+
let yi = /* @__PURE__ */ g.forwardRef(gi);
|
|
2661
|
+
const xi = /* @__PURE__ */ O({}), _i = /* @__PURE__ */ O({}), Tn = /* @__PURE__ */ O({
|
|
2668
2662
|
placement: "bottom"
|
|
2669
2663
|
});
|
|
2670
|
-
function
|
|
2671
|
-
[t, e] =
|
|
2664
|
+
function $i(t, e) {
|
|
2665
|
+
[t, e] = Ce(t, e, Tn);
|
|
2672
2666
|
let n = t.placement, r = {
|
|
2673
2667
|
position: "absolute",
|
|
2674
2668
|
[n]: "100%",
|
|
2675
2669
|
transform: n === "top" || n === "bottom" ? "translateX(-50%)" : "translateY(-50%)"
|
|
2676
|
-
}, o =
|
|
2670
|
+
}, o = ge({
|
|
2677
2671
|
...t,
|
|
2678
2672
|
defaultClassName: "react-aria-OverlayArrow",
|
|
2679
2673
|
values: {
|
|
@@ -2691,7 +2685,7 @@ function Si(t, e) {
|
|
|
2691
2685
|
"data-placement": n
|
|
2692
2686
|
});
|
|
2693
2687
|
}
|
|
2694
|
-
const
|
|
2688
|
+
const Si = /* @__PURE__ */ de($i), ct = /* @__PURE__ */ O(null), Ei = /* @__PURE__ */ O(null), wi = /* @__PURE__ */ O({});
|
|
2695
2689
|
function jn(t) {
|
|
2696
2690
|
return null;
|
|
2697
2691
|
}
|
|
@@ -2723,9 +2717,9 @@ jn.getCollectionNode = function* (e) {
|
|
|
2723
2717
|
}
|
|
2724
2718
|
};
|
|
2725
2719
|
};
|
|
2726
|
-
let
|
|
2720
|
+
let ma = jn;
|
|
2727
2721
|
const Nn = /* @__PURE__ */ O(null), yt = /* @__PURE__ */ O(null), Mn = /* @__PURE__ */ O(null);
|
|
2728
|
-
function
|
|
2722
|
+
function Ci(t) {
|
|
2729
2723
|
let e = Gr(t), n = S(null), { menuTriggerProps: r, menuProps: o } = Pr({
|
|
2730
2724
|
...t,
|
|
2731
2725
|
type: "menu"
|
|
@@ -2734,7 +2728,7 @@ function Ri(t) {
|
|
|
2734
2728
|
}, [
|
|
2735
2729
|
n
|
|
2736
2730
|
]);
|
|
2737
|
-
|
|
2731
|
+
Bo({
|
|
2738
2732
|
ref: n,
|
|
2739
2733
|
onResize: c
|
|
2740
2734
|
});
|
|
@@ -2749,7 +2743,7 @@ function Ri(t) {
|
|
|
2749
2743
|
}
|
|
2750
2744
|
],
|
|
2751
2745
|
[
|
|
2752
|
-
|
|
2746
|
+
Ei,
|
|
2753
2747
|
e
|
|
2754
2748
|
],
|
|
2755
2749
|
[
|
|
@@ -2769,23 +2763,23 @@ function Ri(t) {
|
|
|
2769
2763
|
}
|
|
2770
2764
|
]
|
|
2771
2765
|
]
|
|
2772
|
-
}, /* @__PURE__ */ g.createElement(
|
|
2766
|
+
}, /* @__PURE__ */ g.createElement(pi, {
|
|
2773
2767
|
...r,
|
|
2774
2768
|
ref: n,
|
|
2775
2769
|
isPressed: e.isOpen
|
|
2776
2770
|
}, t.children));
|
|
2777
2771
|
}
|
|
2778
|
-
const
|
|
2779
|
-
function
|
|
2780
|
-
return [t, e] =
|
|
2781
|
-
content: /* @__PURE__ */ g.createElement(
|
|
2782
|
-
}, (n) => n.size > 0 && /* @__PURE__ */ g.createElement(
|
|
2772
|
+
const Ri = /* @__PURE__ */ O(null);
|
|
2773
|
+
function Pi(t, e) {
|
|
2774
|
+
return [t, e] = Ce(t, e, Nn), /* @__PURE__ */ g.createElement(Fo, {
|
|
2775
|
+
content: /* @__PURE__ */ g.createElement(Zo, t)
|
|
2776
|
+
}, (n) => n.size > 0 && /* @__PURE__ */ g.createElement(Ti, {
|
|
2783
2777
|
props: t,
|
|
2784
2778
|
collection: n,
|
|
2785
2779
|
menuRef: e
|
|
2786
2780
|
}));
|
|
2787
2781
|
}
|
|
2788
|
-
function
|
|
2782
|
+
function Ti({ props: t, collection: e, menuRef: n }) {
|
|
2789
2783
|
let r = sn({
|
|
2790
2784
|
...t,
|
|
2791
2785
|
collection: e,
|
|
@@ -2794,7 +2788,7 @@ function ji({ props: t, collection: e, menuRef: n }) {
|
|
|
2794
2788
|
...t,
|
|
2795
2789
|
isVirtualized: l
|
|
2796
2790
|
}, r, n), f = A(Mn), d = A(ct), h = (d == null ? void 0 : d.trigger) === "SubmenuTrigger";
|
|
2797
|
-
|
|
2791
|
+
mi({
|
|
2798
2792
|
ref: n,
|
|
2799
2793
|
onInteractOutside: (_) => {
|
|
2800
2794
|
f && !(o != null && o.contains(_.target)) && f.close();
|
|
@@ -2816,7 +2810,7 @@ function ji({ props: t, collection: e, menuRef: n }) {
|
|
|
2816
2810
|
v,
|
|
2817
2811
|
o
|
|
2818
2812
|
]);
|
|
2819
|
-
let x =
|
|
2813
|
+
let x = ge({
|
|
2820
2814
|
defaultClassName: "react-aria-Menu",
|
|
2821
2815
|
className: t.className,
|
|
2822
2816
|
style: t.style,
|
|
@@ -2836,7 +2830,7 @@ function ji({ props: t, collection: e, menuRef: n }) {
|
|
|
2836
2830
|
r
|
|
2837
2831
|
],
|
|
2838
2832
|
[
|
|
2839
|
-
|
|
2833
|
+
_i,
|
|
2840
2834
|
{
|
|
2841
2835
|
elementType: "div"
|
|
2842
2836
|
}
|
|
@@ -2848,13 +2842,13 @@ function ji({ props: t, collection: e, menuRef: n }) {
|
|
|
2848
2842
|
}
|
|
2849
2843
|
],
|
|
2850
2844
|
[
|
|
2851
|
-
|
|
2845
|
+
ei,
|
|
2852
2846
|
{
|
|
2853
|
-
render:
|
|
2847
|
+
render: Ni
|
|
2854
2848
|
}
|
|
2855
2849
|
],
|
|
2856
2850
|
[
|
|
2857
|
-
|
|
2851
|
+
Ri,
|
|
2858
2852
|
{
|
|
2859
2853
|
parentMenuRef: n
|
|
2860
2854
|
}
|
|
@@ -2866,7 +2860,7 @@ function ji({ props: t, collection: e, menuRef: n }) {
|
|
|
2866
2860
|
]
|
|
2867
2861
|
}, /* @__PURE__ */ g.createElement(c, {
|
|
2868
2862
|
collection: e,
|
|
2869
|
-
persistedKeys:
|
|
2863
|
+
persistedKeys: ni(r.selectionManager.focusedKey),
|
|
2870
2864
|
scrollRef: n
|
|
2871
2865
|
}))), /* @__PURE__ */ g.createElement("div", {
|
|
2872
2866
|
ref: i,
|
|
@@ -2878,15 +2872,15 @@ function ji({ props: t, collection: e, menuRef: n }) {
|
|
|
2878
2872
|
}
|
|
2879
2873
|
}));
|
|
2880
2874
|
}
|
|
2881
|
-
const
|
|
2882
|
-
function
|
|
2875
|
+
const ji = /* @__PURE__ */ de(Pi);
|
|
2876
|
+
function Ni(t, e, n) {
|
|
2883
2877
|
var r, o;
|
|
2884
|
-
let i = A(yt), { CollectionBranch: l } = A(En), [c, u] =
|
|
2878
|
+
let i = A(yt), { CollectionBranch: l } = A(En), [c, u] = ri();
|
|
2885
2879
|
var f;
|
|
2886
2880
|
let { headingProps: d, groupProps: h } = Tr({
|
|
2887
2881
|
heading: u,
|
|
2888
2882
|
"aria-label": (f = n.props["aria-label"]) !== null && f !== void 0 ? f : void 0
|
|
2889
|
-
}), p =
|
|
2883
|
+
}), p = ge({
|
|
2890
2884
|
defaultClassName: "react-aria-Section",
|
|
2891
2885
|
className: (r = n.props) === null || r === void 0 ? void 0 : r.className,
|
|
2892
2886
|
style: (o = n.props) === null || o === void 0 ? void 0 : o.style,
|
|
@@ -2897,7 +2891,7 @@ function Mi(t, e, n) {
|
|
|
2897
2891
|
...h,
|
|
2898
2892
|
...p,
|
|
2899
2893
|
ref: e
|
|
2900
|
-
}, /* @__PURE__ */ g.createElement(
|
|
2894
|
+
}, /* @__PURE__ */ g.createElement(xi.Provider, {
|
|
2901
2895
|
value: {
|
|
2902
2896
|
...d,
|
|
2903
2897
|
ref: c
|
|
@@ -2907,16 +2901,16 @@ function Mi(t, e, n) {
|
|
|
2907
2901
|
parent: n
|
|
2908
2902
|
})));
|
|
2909
2903
|
}
|
|
2910
|
-
const ut = /* @__PURE__ */ O(null),
|
|
2904
|
+
const ut = /* @__PURE__ */ O(null), Mi = /* @__PURE__ */ Jo("item", function(e, n, r) {
|
|
2911
2905
|
var o;
|
|
2912
|
-
[e, n] =
|
|
2906
|
+
[e, n] = Ce(e, n, ut);
|
|
2913
2907
|
let i = (o = wn(ut)) === null || o === void 0 ? void 0 : o.id, l = A(yt), c = He(n), { menuItemProps: u, labelProps: f, descriptionProps: d, keyboardShortcutProps: h, ...p } = rn({
|
|
2914
2908
|
...e,
|
|
2915
2909
|
id: i,
|
|
2916
2910
|
key: r.key
|
|
2917
|
-
}, l, c), { isFocusVisible: v, focusProps: y } =
|
|
2911
|
+
}, l, c), { isFocusVisible: v, focusProps: y } = we(), { hoverProps: x, isHovered: _ } = vi({
|
|
2918
2912
|
isDisabled: p.isDisabled
|
|
2919
|
-
}), w =
|
|
2913
|
+
}), w = ge({
|
|
2920
2914
|
...e,
|
|
2921
2915
|
id: void 0,
|
|
2922
2916
|
children: r.rendered,
|
|
@@ -2932,7 +2926,7 @@ const ut = /* @__PURE__ */ O(null), ki = /* @__PURE__ */ Xo("item", function(e,
|
|
|
2932
2926
|
}
|
|
2933
2927
|
}), R = e.href ? "a" : "div";
|
|
2934
2928
|
return /* @__PURE__ */ g.createElement(R, {
|
|
2935
|
-
...
|
|
2929
|
+
...me(u, y, x),
|
|
2936
2930
|
...w,
|
|
2937
2931
|
ref: c,
|
|
2938
2932
|
"data-disabled": p.isDisabled || void 0,
|
|
@@ -2947,7 +2941,7 @@ const ut = /* @__PURE__ */ O(null), ki = /* @__PURE__ */ Xo("item", function(e,
|
|
|
2947
2941
|
}, /* @__PURE__ */ g.createElement(Ve, {
|
|
2948
2942
|
values: [
|
|
2949
2943
|
[
|
|
2950
|
-
|
|
2944
|
+
fi,
|
|
2951
2945
|
{
|
|
2952
2946
|
slots: {
|
|
2953
2947
|
label: f,
|
|
@@ -2956,7 +2950,7 @@ const ut = /* @__PURE__ */ O(null), ki = /* @__PURE__ */ Xo("item", function(e,
|
|
|
2956
2950
|
}
|
|
2957
2951
|
],
|
|
2958
2952
|
[
|
|
2959
|
-
|
|
2953
|
+
wi,
|
|
2960
2954
|
h
|
|
2961
2955
|
]
|
|
2962
2956
|
]
|
|
@@ -2984,7 +2978,7 @@ kn.getCollectionNode = function* (e, n) {
|
|
|
2984
2978
|
}), yield* i;
|
|
2985
2979
|
}
|
|
2986
2980
|
};
|
|
2987
|
-
let
|
|
2981
|
+
let ba = kn;
|
|
2988
2982
|
function An(t) {
|
|
2989
2983
|
return null;
|
|
2990
2984
|
}
|
|
@@ -3014,7 +3008,7 @@ An.getCollectionNode = function* (e) {
|
|
|
3014
3008
|
}
|
|
3015
3009
|
};
|
|
3016
3010
|
};
|
|
3017
|
-
let
|
|
3011
|
+
let ga = An;
|
|
3018
3012
|
function On(t) {
|
|
3019
3013
|
return null;
|
|
3020
3014
|
}
|
|
@@ -3048,7 +3042,7 @@ On.getCollectionNode = function* (e, n) {
|
|
|
3048
3042
|
};
|
|
3049
3043
|
f(n);
|
|
3050
3044
|
};
|
|
3051
|
-
let
|
|
3045
|
+
let ki = On;
|
|
3052
3046
|
function dt(t) {
|
|
3053
3047
|
return null;
|
|
3054
3048
|
}
|
|
@@ -3107,7 +3101,7 @@ dt.getCollectionNode = function* (e, n) {
|
|
|
3107
3101
|
}
|
|
3108
3102
|
};
|
|
3109
3103
|
};
|
|
3110
|
-
let
|
|
3104
|
+
let ya = dt;
|
|
3111
3105
|
function In(t) {
|
|
3112
3106
|
return null;
|
|
3113
3107
|
}
|
|
@@ -3122,9 +3116,9 @@ In.getCollectionNode = function* (e) {
|
|
|
3122
3116
|
hasChildNodes: !1
|
|
3123
3117
|
};
|
|
3124
3118
|
};
|
|
3125
|
-
let
|
|
3119
|
+
let Ai = In;
|
|
3126
3120
|
const xt = /* @__PURE__ */ O(null), Dn = /* @__PURE__ */ O(null);
|
|
3127
|
-
function
|
|
3121
|
+
function Oi(t) {
|
|
3128
3122
|
let e = cn(t), n = S(null), { triggerProps: r, tooltipProps: o } = jr(t, e, n);
|
|
3129
3123
|
return /* @__PURE__ */ g.createElement(Ve, {
|
|
3130
3124
|
values: [
|
|
@@ -3140,26 +3134,26 @@ function Ii(t) {
|
|
|
3140
3134
|
}
|
|
3141
3135
|
]
|
|
3142
3136
|
]
|
|
3143
|
-
}, /* @__PURE__ */ g.createElement(
|
|
3137
|
+
}, /* @__PURE__ */ g.createElement(yi, {
|
|
3144
3138
|
...r,
|
|
3145
3139
|
ref: n
|
|
3146
3140
|
}, t.children));
|
|
3147
3141
|
}
|
|
3148
|
-
function
|
|
3149
|
-
[e, n] =
|
|
3150
|
-
let r = A(xt), o = cn(e), i = e.isOpen != null || e.defaultOpen != null || !r ? o : r, l =
|
|
3142
|
+
function Ii({ UNSTABLE_portalContainer: t, ...e }, n) {
|
|
3143
|
+
[e, n] = Ce(e, n, Dn);
|
|
3144
|
+
let r = A(xt), o = cn(e), i = e.isOpen != null || e.defaultOpen != null || !r ? o : r, l = ii(n, i.isOpen) || e.isExiting || !1;
|
|
3151
3145
|
return !i.isOpen && !l ? null : /* @__PURE__ */ g.createElement(Nr, {
|
|
3152
3146
|
portalContainer: t
|
|
3153
|
-
}, /* @__PURE__ */ g.createElement(
|
|
3147
|
+
}, /* @__PURE__ */ g.createElement(Li, {
|
|
3154
3148
|
...e,
|
|
3155
3149
|
tooltipRef: n,
|
|
3156
3150
|
isExiting: l
|
|
3157
3151
|
}));
|
|
3158
3152
|
}
|
|
3159
|
-
const
|
|
3160
|
-
function
|
|
3153
|
+
const Di = /* @__PURE__ */ de(Ii);
|
|
3154
|
+
function Li(t) {
|
|
3161
3155
|
let e = A(xt), n = S(null), [r, o] = D(0);
|
|
3162
|
-
|
|
3156
|
+
be(() => {
|
|
3163
3157
|
n.current && e.isOpen && o(n.current.getBoundingClientRect().width);
|
|
3164
3158
|
}, [
|
|
3165
3159
|
e.isOpen,
|
|
@@ -3175,7 +3169,7 @@ function Bi(t) {
|
|
|
3175
3169
|
arrowSize: r,
|
|
3176
3170
|
arrowBoundaryOffset: t.arrowBoundaryOffset,
|
|
3177
3171
|
shouldFlip: t.shouldFlip
|
|
3178
|
-
}), u =
|
|
3172
|
+
}), u = oi(t.tooltipRef, !!c) || t.isEntering || !1, f = ge({
|
|
3179
3173
|
...t,
|
|
3180
3174
|
defaultClassName: "react-aria-Tooltip",
|
|
3181
3175
|
values: {
|
|
@@ -3185,7 +3179,7 @@ function Bi(t) {
|
|
|
3185
3179
|
state: e
|
|
3186
3180
|
}
|
|
3187
3181
|
});
|
|
3188
|
-
t =
|
|
3182
|
+
t = me(t, i);
|
|
3189
3183
|
let { tooltipProps: d } = kr(t, e);
|
|
3190
3184
|
return /* @__PURE__ */ g.createElement("div", {
|
|
3191
3185
|
...d,
|
|
@@ -3218,14 +3212,14 @@ function Ln(t, e = "down") {
|
|
|
3218
3212
|
return i.addEventListener("change", l), () => i.removeEventListener("change", l);
|
|
3219
3213
|
}, [n]), r;
|
|
3220
3214
|
}
|
|
3221
|
-
const
|
|
3215
|
+
const Bi = ({ size: t }) => /* @__PURE__ */ s.jsx("svg", { viewBox: "0 0 24 24", width: t, height: t, children: /* @__PURE__ */ s.jsx(
|
|
3222
3216
|
"path",
|
|
3223
3217
|
{
|
|
3224
3218
|
fill: "currentColor",
|
|
3225
3219
|
d: "M4 14c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm8 0c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm8 0c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"
|
|
3226
3220
|
}
|
|
3227
3221
|
) });
|
|
3228
|
-
function
|
|
3222
|
+
function xa({
|
|
3229
3223
|
renderTrigger: t,
|
|
3230
3224
|
menuId: e,
|
|
3231
3225
|
size: n = 24,
|
|
@@ -3247,7 +3241,7 @@ function _a({
|
|
|
3247
3241
|
onPress: () => h((_) => !_),
|
|
3248
3242
|
isDisabled: o,
|
|
3249
3243
|
className: `proton-ResponsiveMenuTrigger__button ${u}`,
|
|
3250
|
-
children: /* @__PURE__ */ s.jsx(
|
|
3244
|
+
children: /* @__PURE__ */ s.jsx(Bi, { size: n })
|
|
3251
3245
|
}
|
|
3252
3246
|
), x = t ? t(
|
|
3253
3247
|
{ ...v, onClick: () => h((_) => !_) },
|
|
@@ -3270,7 +3264,7 @@ function _a({
|
|
|
3270
3264
|
"data-testid": c
|
|
3271
3265
|
}
|
|
3272
3266
|
)
|
|
3273
|
-
] }) : /* @__PURE__ */ s.jsxs(
|
|
3267
|
+
] }) : /* @__PURE__ */ s.jsxs(Ci, { children: [
|
|
3274
3268
|
x,
|
|
3275
3269
|
d && /* @__PURE__ */ s.jsx(
|
|
3276
3270
|
mt,
|
|
@@ -3285,14 +3279,14 @@ function _a({
|
|
|
3285
3279
|
triggerRef: p,
|
|
3286
3280
|
arrow: !1,
|
|
3287
3281
|
children: /* @__PURE__ */ s.jsx(
|
|
3288
|
-
|
|
3282
|
+
ji,
|
|
3289
3283
|
{
|
|
3290
3284
|
className: "proton-ListBox proton-ResponsiveMenuTrigger__menu",
|
|
3291
3285
|
id: e,
|
|
3292
3286
|
autoFocus: !0,
|
|
3293
3287
|
"data-testid": c,
|
|
3294
3288
|
children: r.map((_) => /* @__PURE__ */ s.jsx(
|
|
3295
|
-
|
|
3289
|
+
Mi,
|
|
3296
3290
|
{
|
|
3297
3291
|
href: _.to,
|
|
3298
3292
|
target: "_blank",
|
|
@@ -3323,11 +3317,11 @@ const ft = (t) => {
|
|
|
3323
3317
|
ref: e,
|
|
3324
3318
|
"data-testid": "listbox",
|
|
3325
3319
|
className: "proton-ListBox",
|
|
3326
|
-
children: [...n.collection].map((o) => /* @__PURE__ */ s.jsx(
|
|
3320
|
+
children: [...n.collection].map((o) => /* @__PURE__ */ s.jsx(Hi, { item: o, state: n }, o.key))
|
|
3327
3321
|
}
|
|
3328
3322
|
) });
|
|
3329
3323
|
};
|
|
3330
|
-
function
|
|
3324
|
+
function Hi({ item: t, state: e }) {
|
|
3331
3325
|
let n = S(null), { optionProps: r, isSelected: o, isFocused: i, isDisabled: l } = Or(
|
|
3332
3326
|
{ key: t.key },
|
|
3333
3327
|
e,
|
|
@@ -3373,7 +3367,7 @@ const Bn = de(
|
|
|
3373
3367
|
);
|
|
3374
3368
|
}
|
|
3375
3369
|
);
|
|
3376
|
-
function
|
|
3370
|
+
function Vi({
|
|
3377
3371
|
label: t,
|
|
3378
3372
|
name: e,
|
|
3379
3373
|
isDisabled: n,
|
|
@@ -3483,11 +3477,11 @@ function Ki({
|
|
|
3483
3477
|
}
|
|
3484
3478
|
);
|
|
3485
3479
|
}
|
|
3486
|
-
const
|
|
3487
|
-
Menu:
|
|
3480
|
+
const _a = {
|
|
3481
|
+
Menu: Vi,
|
|
3488
3482
|
Option: ht
|
|
3489
3483
|
};
|
|
3490
|
-
function
|
|
3484
|
+
function Ki({
|
|
3491
3485
|
label: t,
|
|
3492
3486
|
name: e,
|
|
3493
3487
|
isDisabled: n,
|
|
@@ -3597,11 +3591,11 @@ function Wi({
|
|
|
3597
3591
|
}
|
|
3598
3592
|
);
|
|
3599
3593
|
}
|
|
3600
|
-
const
|
|
3601
|
-
Menu:
|
|
3594
|
+
const $a = {
|
|
3595
|
+
Menu: Ki,
|
|
3602
3596
|
Option: ht
|
|
3603
3597
|
};
|
|
3604
|
-
function
|
|
3598
|
+
function Sa(t) {
|
|
3605
3599
|
let e = {
|
|
3606
3600
|
...t,
|
|
3607
3601
|
isSelected: t.isOn,
|
|
@@ -3630,11 +3624,11 @@ function Ea(t) {
|
|
|
3630
3624
|
}
|
|
3631
3625
|
);
|
|
3632
3626
|
}
|
|
3633
|
-
function
|
|
3627
|
+
function Wi({ item: t, state: e, children: n }) {
|
|
3634
3628
|
let r = S(), { rowProps: o } = Dr({ node: t }, e, r);
|
|
3635
3629
|
return /* @__PURE__ */ s.jsx("tr", { className: E("proton-Table__headerRow"), ...o, ref: r, children: n });
|
|
3636
3630
|
}
|
|
3637
|
-
function
|
|
3631
|
+
function Fi({ column: t, state: e }) {
|
|
3638
3632
|
var u, f;
|
|
3639
3633
|
let n = S(), { columnHeaderProps: r } = Lr(
|
|
3640
3634
|
{ node: t },
|
|
@@ -3642,11 +3636,11 @@ function Gi({ column: t, state: e }) {
|
|
|
3642
3636
|
n
|
|
3643
3637
|
);
|
|
3644
3638
|
const { align: o = "left" } = t.props;
|
|
3645
|
-
let { isFocusVisible: i, focusProps: l } =
|
|
3639
|
+
let { isFocusVisible: i, focusProps: l } = we(), c = ((u = e.sortDescriptor) == null ? void 0 : u.direction) === "ascending" ? "▲" : "▼";
|
|
3646
3640
|
return /* @__PURE__ */ s.jsxs(
|
|
3647
3641
|
"th",
|
|
3648
3642
|
{
|
|
3649
|
-
...
|
|
3643
|
+
...me(r, l),
|
|
3650
3644
|
colSpan: t.colspan,
|
|
3651
3645
|
className: E(
|
|
3652
3646
|
"proton-Table__header",
|
|
@@ -3685,14 +3679,14 @@ function Xt({ type: t, children: e }) {
|
|
|
3685
3679
|
}
|
|
3686
3680
|
);
|
|
3687
3681
|
}
|
|
3688
|
-
function
|
|
3682
|
+
function Gi({ item: t, children: e, state: n }) {
|
|
3689
3683
|
let r = S(), o = n.selectionManager.isSelected(t.key), { rowProps: i, isPressed: l } = Hr(
|
|
3690
3684
|
{
|
|
3691
3685
|
node: t
|
|
3692
3686
|
},
|
|
3693
3687
|
n,
|
|
3694
3688
|
r
|
|
3695
|
-
), { isFocusVisible: c, focusProps: u } =
|
|
3689
|
+
), { isFocusVisible: c, focusProps: u } = we();
|
|
3696
3690
|
return /* @__PURE__ */ s.jsx(
|
|
3697
3691
|
"tr",
|
|
3698
3692
|
{
|
|
@@ -3702,19 +3696,19 @@ function Ui({ item: t, children: e, state: n }) {
|
|
|
3702
3696
|
l ? "proton-Table__row--pressed" : null,
|
|
3703
3697
|
c ? "proton-Table__row--focused" : null
|
|
3704
3698
|
),
|
|
3705
|
-
...
|
|
3699
|
+
...me(i, u),
|
|
3706
3700
|
ref: r,
|
|
3707
3701
|
children: e
|
|
3708
3702
|
}
|
|
3709
3703
|
);
|
|
3710
3704
|
}
|
|
3711
|
-
function
|
|
3712
|
-
let r = S(), { gridCellProps: o } = Vr({ node: t }, e, r), { isFocusVisible: i, focusProps: l } =
|
|
3705
|
+
function Ui({ cell: t, state: e, ...n }) {
|
|
3706
|
+
let r = S(), { gridCellProps: o } = Vr({ node: t }, e, r), { isFocusVisible: i, focusProps: l } = we();
|
|
3713
3707
|
const { align: c } = t.props;
|
|
3714
3708
|
return /* @__PURE__ */ s.jsx(
|
|
3715
3709
|
"td",
|
|
3716
3710
|
{
|
|
3717
|
-
...
|
|
3711
|
+
...me(o, l),
|
|
3718
3712
|
className: E(
|
|
3719
3713
|
"proton-Table__cell",
|
|
3720
3714
|
i ? "proton-Table__cell--focused" : null,
|
|
@@ -3725,8 +3719,8 @@ function zi({ cell: t, state: e, ...n }) {
|
|
|
3725
3719
|
}
|
|
3726
3720
|
);
|
|
3727
3721
|
}
|
|
3728
|
-
const
|
|
3729
|
-
function
|
|
3722
|
+
const Ea = ki, wa = Ai;
|
|
3723
|
+
function Ca(t) {
|
|
3730
3724
|
let e = zr({
|
|
3731
3725
|
...t
|
|
3732
3726
|
}), n = S(), { collection: r } = e, { gridProps: o } = Kr(
|
|
@@ -3735,33 +3729,33 @@ function Ra(t) {
|
|
|
3735
3729
|
n
|
|
3736
3730
|
);
|
|
3737
3731
|
return /* @__PURE__ */ s.jsxs("table", { ...o, ref: n, className: E("proton-Table"), children: [
|
|
3738
|
-
/* @__PURE__ */ s.jsx(Xt, { type: "thead", children: r.headerRows.map((i) => /* @__PURE__ */ s.jsx(
|
|
3739
|
-
|
|
3732
|
+
/* @__PURE__ */ s.jsx(Xt, { type: "thead", children: r.headerRows.map((i) => /* @__PURE__ */ s.jsx(Wi, { item: i, state: e, children: Array.from(r.getChildren(i.key)).map((l) => /* @__PURE__ */ s.jsx(
|
|
3733
|
+
Fi,
|
|
3740
3734
|
{
|
|
3741
3735
|
column: l,
|
|
3742
3736
|
state: e
|
|
3743
3737
|
},
|
|
3744
3738
|
l.key
|
|
3745
3739
|
)) }, i.key)) }),
|
|
3746
|
-
/* @__PURE__ */ s.jsx(Xt, { type: "tbody", children: Array.from(r.body.childNodes).map((i) => /* @__PURE__ */ s.jsx(
|
|
3740
|
+
/* @__PURE__ */ s.jsx(Xt, { type: "tbody", children: Array.from(r.body.childNodes).map((i) => /* @__PURE__ */ s.jsx(Gi, { item: i, state: e, children: Array.from(r.getChildren(i.key)).map((l) => /* @__PURE__ */ s.jsx(Ui, { cell: l, state: e }, l.key)) }, i.key)) })
|
|
3747
3741
|
] });
|
|
3748
3742
|
}
|
|
3749
|
-
function
|
|
3743
|
+
function zi({ children: t, arrow: e, ...n }) {
|
|
3750
3744
|
const { className: r, style: o } = ie();
|
|
3751
3745
|
return /* @__PURE__ */ s.jsxs(
|
|
3752
|
-
|
|
3746
|
+
Di,
|
|
3753
3747
|
{
|
|
3754
3748
|
...n,
|
|
3755
3749
|
className: E("proton__Tooltip", "proton-Dialog", r),
|
|
3756
3750
|
style: o,
|
|
3757
3751
|
children: [
|
|
3758
|
-
e && /* @__PURE__ */ s.jsx(
|
|
3752
|
+
e && /* @__PURE__ */ s.jsx(Si, { className: E("proton__TooltipArrow", r), children: /* @__PURE__ */ s.jsx("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ s.jsx("path", { d: "M0 0 L4 4 L8 0" }) }) }),
|
|
3759
3753
|
t
|
|
3760
3754
|
]
|
|
3761
3755
|
}
|
|
3762
3756
|
);
|
|
3763
3757
|
}
|
|
3764
|
-
function
|
|
3758
|
+
function Yi({
|
|
3765
3759
|
children: t,
|
|
3766
3760
|
// trigger props
|
|
3767
3761
|
delay: e = 500,
|
|
@@ -3776,7 +3770,7 @@ function qi({
|
|
|
3776
3770
|
}) {
|
|
3777
3771
|
const [f, d] = D(!1), h = S(!1), p = S(!1);
|
|
3778
3772
|
return /* @__PURE__ */ s.jsxs(
|
|
3779
|
-
|
|
3773
|
+
Oi,
|
|
3780
3774
|
{
|
|
3781
3775
|
delay: e,
|
|
3782
3776
|
closeDelay: n,
|
|
@@ -3798,19 +3792,19 @@ function qi({
|
|
|
3798
3792
|
children: t
|
|
3799
3793
|
}
|
|
3800
3794
|
),
|
|
3801
|
-
/* @__PURE__ */ s.jsx(
|
|
3795
|
+
/* @__PURE__ */ s.jsx(zi, { ...u, children: c })
|
|
3802
3796
|
]
|
|
3803
3797
|
}
|
|
3804
3798
|
);
|
|
3805
3799
|
}
|
|
3806
|
-
const
|
|
3800
|
+
const Ra = ({
|
|
3807
3801
|
to: t,
|
|
3808
3802
|
children: e,
|
|
3809
3803
|
tooltipProps: n,
|
|
3810
3804
|
"data-testid": r
|
|
3811
3805
|
}) => {
|
|
3812
|
-
const { className: o, palette: i, theme: l } = ie(), c = n ? /* @__PURE__ */ s.jsx(
|
|
3813
|
-
"--text-emphasis-highlight": l === le.CUSTOM_DARK ?
|
|
3806
|
+
const { className: o, palette: i, theme: l } = ie(), c = n ? /* @__PURE__ */ s.jsx(Yi, { delay: 50, closeDelay: 75, ...n, children: e }) : e, u = {
|
|
3807
|
+
"--text-emphasis-highlight": l === le.CUSTOM_DARK ? ve(i.SECONDARY.SECONDARY_LIGHT, 0.3) : ve(Yr.PRIMARY, 0.5)
|
|
3814
3808
|
};
|
|
3815
3809
|
if (t) {
|
|
3816
3810
|
const f = vt(t);
|
|
@@ -3851,7 +3845,7 @@ const Pa = ({
|
|
|
3851
3845
|
}
|
|
3852
3846
|
);
|
|
3853
3847
|
};
|
|
3854
|
-
function
|
|
3848
|
+
function qi({
|
|
3855
3849
|
amplitude: t,
|
|
3856
3850
|
isDisabled: e,
|
|
3857
3851
|
isPlayed: n,
|
|
@@ -3919,8 +3913,8 @@ function Ji({
|
|
|
3919
3913
|
}
|
|
3920
3914
|
);
|
|
3921
3915
|
}
|
|
3922
|
-
const
|
|
3923
|
-
function
|
|
3916
|
+
const Ji = ea(100);
|
|
3917
|
+
function Pa({
|
|
3924
3918
|
data: t,
|
|
3925
3919
|
resolution: e = 2,
|
|
3926
3920
|
startDuration: n,
|
|
@@ -3933,11 +3927,11 @@ function Ta({
|
|
|
3933
3927
|
"data-testid": f
|
|
3934
3928
|
}) {
|
|
3935
3929
|
var Z;
|
|
3936
|
-
const { className: d, palette: h, theme: p } = ie(), v = S(null), [y, x] = D([]), [_, w] = D(null), [R, j] = D(!1), [P, L] = D(!1), M = t ||
|
|
3930
|
+
const { className: d, palette: h, theme: p } = ie(), v = S(null), [y, x] = D([]), [_, w] = D(null), [R, j] = D(!1), [P, L] = D(!1), M = t || Ji, G = u || (p === "custom-dark" ? h.SECONDARY.SECONDARY_SUPER_LIGHT : void 0), z = e;
|
|
3937
3931
|
F(() => {
|
|
3938
3932
|
if (!v.current) return;
|
|
3939
3933
|
const B = (q) => {
|
|
3940
|
-
const ae = Math.floor(q / (e + z)), fe =
|
|
3934
|
+
const ae = Math.floor(q / (e + z)), fe = Zi(M, ae);
|
|
3941
3935
|
x(fe);
|
|
3942
3936
|
}, U = v.current.clientWidth;
|
|
3943
3937
|
B(U);
|
|
@@ -4006,7 +4000,7 @@ function Ta({
|
|
|
4006
4000
|
y.map((B, U) => {
|
|
4007
4001
|
const Y = U / y.length * l, q = n !== void 0 && r !== void 0 && (Y < n || Y > r), ae = o === 0 ? !1 : Y <= o, fe = _ !== null && Y <= _;
|
|
4008
4002
|
return /* @__PURE__ */ s.jsx(
|
|
4009
|
-
|
|
4003
|
+
qi,
|
|
4010
4004
|
{
|
|
4011
4005
|
amplitude: B,
|
|
4012
4006
|
isDisabled: q,
|
|
@@ -4058,29 +4052,29 @@ function Zt({
|
|
|
4058
4052
|
`proton-Waveform__timestamp--${t}`
|
|
4059
4053
|
),
|
|
4060
4054
|
style: { backgroundColor: e },
|
|
4061
|
-
children:
|
|
4055
|
+
children: Xi(n)
|
|
4062
4056
|
}
|
|
4063
4057
|
);
|
|
4064
4058
|
}
|
|
4065
|
-
function
|
|
4059
|
+
function Xi(t) {
|
|
4066
4060
|
const e = Math.floor(t / 60), n = Math.floor(t % 60);
|
|
4067
4061
|
return `${e}:${n < 10 ? "0" : ""}${n.toFixed(0)}`;
|
|
4068
4062
|
}
|
|
4069
|
-
function
|
|
4063
|
+
function Zi(t, e) {
|
|
4070
4064
|
const n = t.length, r = n / e, o = new Array(e).fill(0).map((i, l) => {
|
|
4071
4065
|
const c = l * r, u = Math.floor(c), f = Math.min(u + 1, n - 1), d = c - u;
|
|
4072
4066
|
return t[u] * (1 - d) + t[f] * d;
|
|
4073
4067
|
});
|
|
4074
|
-
return
|
|
4068
|
+
return Qi(o);
|
|
4075
4069
|
}
|
|
4076
|
-
function
|
|
4070
|
+
function Qi(t) {
|
|
4077
4071
|
const e = Math.min(...t), n = Math.max(...t);
|
|
4078
4072
|
return t.map((r) => {
|
|
4079
4073
|
const o = (r - e) / (n - e);
|
|
4080
4074
|
return Math.max(o * 0.8 + 0.1, 0.1);
|
|
4081
4075
|
});
|
|
4082
4076
|
}
|
|
4083
|
-
function
|
|
4077
|
+
function ea(t) {
|
|
4084
4078
|
return Array.from({ length: t }, (e, n) => {
|
|
4085
4079
|
const o = n / (t - 1) * 6 * 2 * Math.PI - Math.PI / 2;
|
|
4086
4080
|
return Math.sin(o) * 0.5 + 0.5;
|
|
@@ -4088,35 +4082,35 @@ function ta(t) {
|
|
|
4088
4082
|
}
|
|
4089
4083
|
export {
|
|
4090
4084
|
pn as ActionMenu,
|
|
4091
|
-
|
|
4092
|
-
|
|
4085
|
+
da as Badge,
|
|
4086
|
+
ua as BadgeVariants,
|
|
4093
4087
|
se as Banner,
|
|
4094
4088
|
vn as Button,
|
|
4095
|
-
|
|
4096
|
-
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
|
|
4089
|
+
co as ButtonGroup,
|
|
4090
|
+
Na as COLORS,
|
|
4091
|
+
wa as Cell,
|
|
4092
|
+
Ea as Column,
|
|
4093
|
+
fa as Dialog,
|
|
4094
|
+
pa as Icon,
|
|
4095
|
+
po as Input,
|
|
4102
4096
|
mt as Popover,
|
|
4103
|
-
|
|
4104
|
-
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4097
|
+
xa as ResponsiveMenuTrigger,
|
|
4098
|
+
$a as ResponsiveSelect,
|
|
4099
|
+
ya as Row,
|
|
4100
|
+
ha as SearchInput,
|
|
4101
|
+
ma as Section,
|
|
4102
|
+
_a as Select,
|
|
4103
|
+
Sa as Switch,
|
|
4110
4104
|
le as THEMES,
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
|
|
4105
|
+
Ca as Table,
|
|
4106
|
+
ga as TableBody,
|
|
4107
|
+
ba as TableHeader,
|
|
4108
|
+
Ra as TextEmphasis,
|
|
4109
|
+
ca as ThemeProvider,
|
|
4110
|
+
zi as Tooltip,
|
|
4111
|
+
Yi as TooltipTrigger,
|
|
4112
|
+
Pa as Waveform,
|
|
4113
|
+
va as usePopoverTrigger,
|
|
4120
4114
|
ie as useTheme
|
|
4121
4115
|
};
|
|
4122
4116
|
//# sourceMappingURL=index.es.js.map
|