@protonradio/proton-ui 0.6.18-beta.12 → 0.6.18-beta.14
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 +5 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +130 -130
- package/dist/index.es.js.map +1 -1
- package/dist/{utils-B5na7vwh.mjs → utils-DPt5Em4t.mjs} +42 -39
- package/dist/utils-DPt5Em4t.mjs.map +1 -0
- package/dist/utils-DrtQpOwS.js +2 -0
- package/dist/utils-DrtQpOwS.js.map +1 -0
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +1 -1
- package/package.json +1 -1
- package/dist/utils-B5na7vwh.mjs.map +0 -1
- package/dist/utils-DJm1pkEy.js +0 -2
- package/dist/utils-DJm1pkEy.js.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 fe, 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
|
|
3
|
+
import { useMenu as nn, useOverlay as mr, FocusScope as pt, useMenuItem as rn, useButton as Le, 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 Ce, 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 Vr, useTableCell as Hr, 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 w, i as vt, h as dn } from "./utils-
|
|
5
|
+
import { b as w, i as vt, h as dn } from "./utils-DPt5Em4t.mjs";
|
|
6
6
|
import { THEMES as le, BREAKPOINTS as fn } from "./constants.es.js";
|
|
7
|
-
import { transparentize as de, toRgba as
|
|
8
|
-
import { G as Q, S as
|
|
7
|
+
import { transparentize as de, toRgba as $e } from "color2k";
|
|
8
|
+
import { G as Q, S as Me, W as ke, D as Ae, B as Yr } from "./colors-Dwh4VIMR.mjs";
|
|
9
9
|
import { c as Na } from "./colors-Dwh4VIMR.mjs";
|
|
10
|
-
var rt = { exports: {} },
|
|
10
|
+
var rt = { exports: {} }, _e = {};
|
|
11
11
|
/**
|
|
12
12
|
* @license React
|
|
13
13
|
* react-jsx-runtime.production.min.js
|
|
@@ -19,7 +19,7 @@ var rt = { exports: {} }, $e = {};
|
|
|
19
19
|
*/
|
|
20
20
|
var Bt;
|
|
21
21
|
function qr() {
|
|
22
|
-
if (Bt) return
|
|
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 qr() {
|
|
|
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 Se = {};
|
|
35
35
|
/**
|
|
36
36
|
* @license React
|
|
37
37
|
* react-jsx-runtime.development.js
|
|
@@ -195,39 +195,39 @@ function Jr() {
|
|
|
195
195
|
B < 0 && R("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
|
-
var
|
|
199
|
-
function
|
|
198
|
+
var We = E.ReactCurrentDispatcher, Fe;
|
|
199
|
+
function Pe(a, m, b) {
|
|
200
200
|
{
|
|
201
|
-
if (
|
|
201
|
+
if (Fe === void 0)
|
|
202
202
|
try {
|
|
203
203
|
throw Error();
|
|
204
204
|
} catch (N) {
|
|
205
205
|
var _ = N.stack.trim().match(/\n( *(at )?)/);
|
|
206
|
-
|
|
206
|
+
Fe = _ && _[1] || "";
|
|
207
207
|
}
|
|
208
208
|
return `
|
|
209
|
-
` +
|
|
209
|
+
` + Fe + a;
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
|
-
var
|
|
212
|
+
var Ge = !1, Te;
|
|
213
213
|
{
|
|
214
214
|
var Kn = typeof WeakMap == "function" ? WeakMap : Map;
|
|
215
|
-
|
|
215
|
+
Te = new Kn();
|
|
216
216
|
}
|
|
217
217
|
function Et(a, m) {
|
|
218
|
-
if (!a ||
|
|
218
|
+
if (!a || Ge)
|
|
219
219
|
return "";
|
|
220
220
|
{
|
|
221
|
-
var b =
|
|
221
|
+
var b = Te.get(a);
|
|
222
222
|
if (b !== void 0)
|
|
223
223
|
return b;
|
|
224
224
|
}
|
|
225
225
|
var _;
|
|
226
|
-
|
|
226
|
+
Ge = !0;
|
|
227
227
|
var N = Error.prepareStackTrace;
|
|
228
228
|
Error.prepareStackTrace = void 0;
|
|
229
229
|
var k;
|
|
230
|
-
k =
|
|
230
|
+
k = We.current, We.current = null, Vn();
|
|
231
231
|
try {
|
|
232
232
|
if (m) {
|
|
233
233
|
var T = function() {
|
|
@@ -273,17 +273,17 @@ function Jr() {
|
|
|
273
273
|
if (V--, K--, K < 0 || C[V] !== J[K]) {
|
|
274
274
|
var ee = `
|
|
275
275
|
` + C[V].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" && Te.set(a, ee), ee;
|
|
277
277
|
}
|
|
278
278
|
while (V >= 1 && K >= 0);
|
|
279
279
|
break;
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
282
|
} finally {
|
|
283
|
-
|
|
283
|
+
Ge = !1, We.current = k, Hn(), Error.prepareStackTrace = N;
|
|
284
284
|
}
|
|
285
|
-
var ve = a ? a.displayName || a.name : "", ue = ve ?
|
|
286
|
-
return typeof a == "function" &&
|
|
285
|
+
var ve = a ? a.displayName || a.name : "", ue = ve ? Pe(ve) : "";
|
|
286
|
+
return typeof a == "function" && Te.set(a, ue), ue;
|
|
287
287
|
}
|
|
288
288
|
function Wn(a, m, b) {
|
|
289
289
|
return Et(a, !1);
|
|
@@ -292,29 +292,29 @@ function Jr() {
|
|
|
292
292
|
var m = a.prototype;
|
|
293
293
|
return !!(m && m.isReactComponent);
|
|
294
294
|
}
|
|
295
|
-
function
|
|
295
|
+
function je(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 Pe(a);
|
|
302
302
|
switch (a) {
|
|
303
303
|
case f:
|
|
304
|
-
return
|
|
304
|
+
return Pe("Suspense");
|
|
305
305
|
case d:
|
|
306
|
-
return
|
|
306
|
+
return Pe("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 je(a.type, m, b);
|
|
314
314
|
case p: {
|
|
315
315
|
var _ = a, N = _._payload, k = _._init;
|
|
316
316
|
try {
|
|
317
|
-
return
|
|
317
|
+
return je(k(N), m, b);
|
|
318
318
|
} catch {
|
|
319
319
|
}
|
|
320
320
|
}
|
|
@@ -322,9 +322,9 @@ function Jr() {
|
|
|
322
322
|
return "";
|
|
323
323
|
}
|
|
324
324
|
var ye = Object.prototype.hasOwnProperty, wt = {}, Ct = E.ReactDebugCurrentFrame;
|
|
325
|
-
function
|
|
325
|
+
function Ne(a) {
|
|
326
326
|
if (a) {
|
|
327
|
-
var m = a._owner, b =
|
|
327
|
+
var m = a._owner, b = je(a.type, a._source, m ? m.type : null);
|
|
328
328
|
Ct.setExtraStackFrame(b);
|
|
329
329
|
} else
|
|
330
330
|
Ct.setExtraStackFrame(null);
|
|
@@ -344,12 +344,12 @@ function Jr() {
|
|
|
344
344
|
} catch (V) {
|
|
345
345
|
C = V;
|
|
346
346
|
}
|
|
347
|
-
C && !(C instanceof Error) && (
|
|
347
|
+
C && !(C instanceof Error) && (Ne(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), Ne(null)), C instanceof Error && !(C.message in wt) && (wt[C.message] = !0, Ne(N), R("Failed %s type: %s", b, C.message), Ne(null));
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
351
|
var Un = Array.isArray;
|
|
352
|
-
function
|
|
352
|
+
function Ue(a) {
|
|
353
353
|
return Un(a);
|
|
354
354
|
}
|
|
355
355
|
function zn(a) {
|
|
@@ -377,8 +377,8 @@ function Jr() {
|
|
|
377
377
|
ref: !0,
|
|
378
378
|
__self: !0,
|
|
379
379
|
__source: !0
|
|
380
|
-
}, Tt, jt,
|
|
381
|
-
|
|
380
|
+
}, Tt, jt, ze;
|
|
381
|
+
ze = {};
|
|
382
382
|
function Jn(a) {
|
|
383
383
|
if (ye.call(a, "ref")) {
|
|
384
384
|
var m = Object.getOwnPropertyDescriptor(a, "ref").get;
|
|
@@ -398,7 +398,7 @@ function Jr() {
|
|
|
398
398
|
function Zn(a, m) {
|
|
399
399
|
if (typeof a.ref == "string" && xe.current && m && xe.current.stateNode !== m) {
|
|
400
400
|
var b = H(xe.current.type);
|
|
401
|
-
|
|
401
|
+
ze[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', H(xe.current.type), a.ref), ze[b] = !0);
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
404
|
function Qn(a, m) {
|
|
@@ -470,23 +470,23 @@ function Jr() {
|
|
|
470
470
|
return tr(a, C, J, N, _, xe.current, T);
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
|
-
var
|
|
473
|
+
var Ye = E.ReactCurrentOwner, Nt = E.ReactDebugCurrentFrame;
|
|
474
474
|
function he(a) {
|
|
475
475
|
if (a) {
|
|
476
|
-
var m = a._owner, b =
|
|
476
|
+
var m = a._owner, b = je(a.type, a._source, m ? m.type : null);
|
|
477
477
|
Nt.setExtraStackFrame(b);
|
|
478
478
|
} else
|
|
479
479
|
Nt.setExtraStackFrame(null);
|
|
480
480
|
}
|
|
481
|
-
var
|
|
482
|
-
|
|
483
|
-
function
|
|
481
|
+
var qe;
|
|
482
|
+
qe = !1;
|
|
483
|
+
function Je(a) {
|
|
484
484
|
return typeof a == "object" && a !== null && a.$$typeof === e;
|
|
485
485
|
}
|
|
486
486
|
function Mt() {
|
|
487
487
|
{
|
|
488
|
-
if (
|
|
489
|
-
var a = H(
|
|
488
|
+
if (Ye.current) {
|
|
489
|
+
var a = H(Ye.current.type);
|
|
490
490
|
if (a)
|
|
491
491
|
return `
|
|
492
492
|
|
|
@@ -521,25 +521,25 @@ Check the top-level render call using <` + b + ">.");
|
|
|
521
521
|
return;
|
|
522
522
|
kt[b] = !0;
|
|
523
523
|
var _ = "";
|
|
524
|
-
a && a._owner && a._owner !==
|
|
524
|
+
a && a._owner && a._owner !== Ye.current && (_ = " It was passed a child from " + H(a._owner.type) + "."), he(a), R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', b, _), he(null);
|
|
525
525
|
}
|
|
526
526
|
}
|
|
527
527
|
function Ot(a, m) {
|
|
528
528
|
{
|
|
529
529
|
if (typeof a != "object")
|
|
530
530
|
return;
|
|
531
|
-
if (
|
|
531
|
+
if (Ue(a))
|
|
532
532
|
for (var b = 0; b < a.length; b++) {
|
|
533
533
|
var _ = a[b];
|
|
534
|
-
|
|
534
|
+
Je(_) && At(_, m);
|
|
535
535
|
}
|
|
536
|
-
else if (
|
|
536
|
+
else if (Je(a))
|
|
537
537
|
a._store && (a._store.validated = !0);
|
|
538
538
|
else if (a) {
|
|
539
539
|
var N = $(a);
|
|
540
540
|
if (typeof N == "function" && N !== a.entries)
|
|
541
541
|
for (var k = N.call(a), T; !(T = k.next()).done; )
|
|
542
|
-
|
|
542
|
+
Je(T.value) && At(T.value, m);
|
|
543
543
|
}
|
|
544
544
|
}
|
|
545
545
|
}
|
|
@@ -560,8 +560,8 @@ Check the top-level render call using <` + b + ">.");
|
|
|
560
560
|
if (b) {
|
|
561
561
|
var _ = H(m);
|
|
562
562
|
Gn(b, a.props, "prop", _, a);
|
|
563
|
-
} else if (m.PropTypes !== void 0 && !
|
|
564
|
-
|
|
563
|
+
} else if (m.PropTypes !== void 0 && !qe) {
|
|
564
|
+
qe = !0;
|
|
565
565
|
var N = H(m);
|
|
566
566
|
R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", N || "Unknown");
|
|
567
567
|
}
|
|
@@ -590,7 +590,7 @@ Check the top-level render call using <` + b + ">.");
|
|
|
590
590
|
var J = rr();
|
|
591
591
|
J ? C += J : C += Mt();
|
|
592
592
|
var V;
|
|
593
|
-
a === null ? V = "null" :
|
|
593
|
+
a === null ? V = "null" : Ue(a) ? V = "array" : a !== void 0 && a.$$typeof === e ? (V = "<" + (H(a.type) || "Unknown") + " />", C = " Did you accidentally export a JSX literal instead of a component?") : V = typeof a, R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", V, C);
|
|
594
594
|
}
|
|
595
595
|
var K = nr(a, m, b, N, k);
|
|
596
596
|
if (K == null)
|
|
@@ -599,7 +599,7 @@ Check the top-level render call using <` + b + ">.");
|
|
|
599
599
|
var ee = m.children;
|
|
600
600
|
if (ee !== void 0)
|
|
601
601
|
if (_)
|
|
602
|
-
if (
|
|
602
|
+
if (Ue(ee)) {
|
|
603
603
|
for (var ve = 0; ve < ee.length; ve++)
|
|
604
604
|
Ot(ee[ve], a);
|
|
605
605
|
Object.freeze && Object.freeze(ee);
|
|
@@ -611,15 +611,15 @@ Check the top-level render call using <` + b + ">.");
|
|
|
611
611
|
if (ye.call(m, "key")) {
|
|
612
612
|
var ue = H(a), X = Object.keys(m).filter(function(fr) {
|
|
613
613
|
return fr !== "key";
|
|
614
|
-
}),
|
|
615
|
-
if (!It[ue +
|
|
614
|
+
}), Xe = X.length > 0 ? "{key: someKey, " + X.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
615
|
+
if (!It[ue + Xe]) {
|
|
616
616
|
var dr = X.length > 0 ? "{" + X.join(": ..., ") + ": ...}" : "{}";
|
|
617
617
|
R(`A props object containing a "key" prop is being spread into JSX:
|
|
618
618
|
let props = %s;
|
|
619
619
|
<%s {...props} />
|
|
620
620
|
React keys must be passed directly to JSX without using spread:
|
|
621
621
|
let props = %s;
|
|
622
|
-
<%s key={someKey} {...props} />`,
|
|
622
|
+
<%s key={someKey} {...props} />`, Xe, ue, dr, ue), It[ue + Xe] = !0;
|
|
623
623
|
}
|
|
624
624
|
}
|
|
625
625
|
return a === r ? ar(K) : ir(K), K;
|
|
@@ -632,8 +632,8 @@ 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
|
+
Se.Fragment = r, Se.jsx = cr, Se.jsxs = ur;
|
|
636
|
+
}()), Se;
|
|
637
637
|
}
|
|
638
638
|
process.env.NODE_ENV === "production" ? rt.exports = qr() : rt.exports = Jr();
|
|
639
639
|
var s = rt.exports;
|
|
@@ -856,7 +856,7 @@ function to(t) {
|
|
|
856
856
|
const e = de(t.PRIMARY.PRIMARY_LIGHTEST, 0.4), n = de(t.PRIMARY.PRIMARY_LIGHTEST, 0.8);
|
|
857
857
|
return {
|
|
858
858
|
[le.DARK]: {
|
|
859
|
-
"--proton-control__background-color":
|
|
859
|
+
"--proton-control__background-color": $e(Ze),
|
|
860
860
|
"--proton-control__text-color": Q.WHITE,
|
|
861
861
|
"--proton-control__border-color": Q.GRAY_DARK,
|
|
862
862
|
"--proton-control__shadow-color": Q.GRAY_DARK,
|
|
@@ -869,7 +869,7 @@ function to(t) {
|
|
|
869
869
|
"--proton-control__text-color": Q.GRAY_DARK,
|
|
870
870
|
"--proton-control__border-color": Q.GRAY_LIGHT,
|
|
871
871
|
"--proton-control__shadow-color": de(
|
|
872
|
-
|
|
872
|
+
$e(Ze),
|
|
873
873
|
0.9
|
|
874
874
|
),
|
|
875
875
|
"--proton-color__primary": t.BRAND.PRIMARY,
|
|
@@ -877,10 +877,10 @@ function to(t) {
|
|
|
877
877
|
"--proton-color__secondary": t.BRAND.SECONDARY
|
|
878
878
|
},
|
|
879
879
|
[le.CUSTOM_DARK]: {
|
|
880
|
-
"--proton-control__background-color":
|
|
880
|
+
"--proton-control__background-color": $e(Ze),
|
|
881
881
|
"--proton-control__text-color": Q.WHITE,
|
|
882
|
-
"--proton-control__border-color": n,
|
|
883
|
-
"--proton-control__shadow-color": e,
|
|
882
|
+
"--proton-control__border-color": $e(n),
|
|
883
|
+
"--proton-control__shadow-color": $e(e),
|
|
884
884
|
"--proton-color__primary": t.BRAND.PRIMARY,
|
|
885
885
|
"--proton-color__primary-light": t.BRAND.PRIMARY_LIGHT,
|
|
886
886
|
"--proton-color__secondary": t.BRAND.SECONDARY
|
|
@@ -923,7 +923,7 @@ function vn({
|
|
|
923
923
|
const c = e ? "a" : "button", u = c !== "a" ? {} : {
|
|
924
924
|
target: "_blank",
|
|
925
925
|
href: e
|
|
926
|
-
}, f = S(null), { buttonProps: d } =
|
|
926
|
+
}, f = S(null), { buttonProps: d } = Le(
|
|
927
927
|
{
|
|
928
928
|
onPress: n,
|
|
929
929
|
elementType: c,
|
|
@@ -985,36 +985,36 @@ const mn = {
|
|
|
985
985
|
icon: Q.GRAY_MEDIUM_LIGHT
|
|
986
986
|
},
|
|
987
987
|
success: {
|
|
988
|
-
background: Ne.SUPER_LIGHT,
|
|
989
|
-
title: Ne.DARK,
|
|
990
|
-
content: Ne.MEDIUM,
|
|
991
|
-
icon: Ne.LIGHT
|
|
992
|
-
},
|
|
993
|
-
warning: {
|
|
994
988
|
background: Me.SUPER_LIGHT,
|
|
995
989
|
title: Me.DARK,
|
|
996
990
|
content: Me.MEDIUM,
|
|
997
991
|
icon: Me.LIGHT
|
|
998
992
|
},
|
|
999
|
-
|
|
993
|
+
warning: {
|
|
1000
994
|
background: ke.SUPER_LIGHT,
|
|
1001
995
|
title: ke.DARK,
|
|
1002
996
|
content: ke.MEDIUM,
|
|
1003
997
|
icon: ke.LIGHT
|
|
998
|
+
},
|
|
999
|
+
danger: {
|
|
1000
|
+
background: Ae.SUPER_LIGHT,
|
|
1001
|
+
title: Ae.DARK,
|
|
1002
|
+
content: Ae.MEDIUM,
|
|
1003
|
+
icon: Ae.LIGHT
|
|
1004
1004
|
}
|
|
1005
1005
|
}, ro = {
|
|
1006
1006
|
default: "default",
|
|
1007
1007
|
success: "success",
|
|
1008
1008
|
warning: "warning",
|
|
1009
1009
|
danger: "danger"
|
|
1010
|
-
},
|
|
1010
|
+
}, Be = O(void 0), se = ({
|
|
1011
1011
|
variant: t = "default",
|
|
1012
1012
|
rounded: e = !0,
|
|
1013
1013
|
icon: n = !1,
|
|
1014
1014
|
compact: r = !0,
|
|
1015
1015
|
children: o,
|
|
1016
1016
|
...i
|
|
1017
|
-
}) => /* @__PURE__ */ s.jsx(
|
|
1017
|
+
}) => /* @__PURE__ */ s.jsx(Be.Provider, { value: t, children: /* @__PURE__ */ s.jsx(
|
|
1018
1018
|
"div",
|
|
1019
1019
|
{
|
|
1020
1020
|
role: "status",
|
|
@@ -1040,7 +1040,7 @@ const mn = {
|
|
|
1040
1040
|
)
|
|
1041
1041
|
}
|
|
1042
1042
|
) }), oo = ({ children: t, ...e }) => {
|
|
1043
|
-
const n = A(
|
|
1043
|
+
const n = A(Be);
|
|
1044
1044
|
if (!n) throw new Error("BannerTitle must be used within a Banner");
|
|
1045
1045
|
return /* @__PURE__ */ s.jsx(
|
|
1046
1046
|
"h3",
|
|
@@ -1055,7 +1055,7 @@ const mn = {
|
|
|
1055
1055
|
}
|
|
1056
1056
|
);
|
|
1057
1057
|
}, io = ({ children: t, ...e }) => {
|
|
1058
|
-
const n = A(
|
|
1058
|
+
const n = A(Be);
|
|
1059
1059
|
if (!n) throw new Error("BannerContent must be used within a Banner");
|
|
1060
1060
|
return /* @__PURE__ */ s.jsx(
|
|
1061
1061
|
"p",
|
|
@@ -1070,7 +1070,7 @@ const mn = {
|
|
|
1070
1070
|
}
|
|
1071
1071
|
);
|
|
1072
1072
|
}, ao = ({ children: t, icon: e, ...n }) => {
|
|
1073
|
-
const r = A(
|
|
1073
|
+
const r = A(Be);
|
|
1074
1074
|
if (!r) throw new Error("BannerIcon must be used within a Banner");
|
|
1075
1075
|
const i = hr(e) ? e : e === !0 ? mn[r] : t || null;
|
|
1076
1076
|
return i ? /* @__PURE__ */ s.jsx(
|
|
@@ -1435,7 +1435,7 @@ function va(t) {
|
|
|
1435
1435
|
{ type: "dialog" },
|
|
1436
1436
|
n,
|
|
1437
1437
|
e
|
|
1438
|
-
), { buttonProps: i } =
|
|
1438
|
+
), { buttonProps: i } = Le(r, e);
|
|
1439
1439
|
return { buttonProps: i, overlayProps: o, buttonRef: e, state: n };
|
|
1440
1440
|
}
|
|
1441
1441
|
function mt({
|
|
@@ -1643,7 +1643,7 @@ class gn {
|
|
|
1643
1643
|
this._firstChild = null, this._lastChild = null, this._previousSibling = null, this._nextSibling = null, this._parentNode = null, this.ownerDocument = e;
|
|
1644
1644
|
}
|
|
1645
1645
|
}
|
|
1646
|
-
class
|
|
1646
|
+
class Ee extends gn {
|
|
1647
1647
|
get index() {
|
|
1648
1648
|
return this._index;
|
|
1649
1649
|
}
|
|
@@ -1651,12 +1651,12 @@ class Se extends gn {
|
|
|
1651
1651
|
this._index = e, this.ownerDocument.markDirty(this);
|
|
1652
1652
|
}
|
|
1653
1653
|
get level() {
|
|
1654
|
-
return this.parentNode instanceof
|
|
1654
|
+
return this.parentNode instanceof Ee ? this.parentNode.level + (this.node.type === "item" ? 1 : 0) : 0;
|
|
1655
1655
|
}
|
|
1656
1656
|
updateNode() {
|
|
1657
1657
|
var e, n, r, o;
|
|
1658
1658
|
let i = this.ownerDocument.getMutableNode(this);
|
|
1659
|
-
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 Ee ? this.parentNode.node.key : null;
|
|
1660
1660
|
var l;
|
|
1661
1661
|
i.prevKey = (l = (e = this.previousSibling) === null || e === void 0 ? void 0 : e.node.key) !== null && l !== void 0 ? l : null;
|
|
1662
1662
|
var c;
|
|
@@ -1694,7 +1694,7 @@ class bo extends gn {
|
|
|
1694
1694
|
return this.isMounted;
|
|
1695
1695
|
}
|
|
1696
1696
|
createElement(e) {
|
|
1697
|
-
return new
|
|
1697
|
+
return new Ee(e, this);
|
|
1698
1698
|
}
|
|
1699
1699
|
/**
|
|
1700
1700
|
* Lazily gets a mutable instance of a Node. If the node has already
|
|
@@ -1733,7 +1733,7 @@ class bo extends gn {
|
|
|
1733
1733
|
return this.transactionCount > 0 ? this.collection : (this.updateCollection(), this.collection);
|
|
1734
1734
|
}
|
|
1735
1735
|
updateCollection() {
|
|
1736
|
-
for (let i of this.dirtyNodes) i instanceof
|
|
1736
|
+
for (let i of this.dirtyNodes) i instanceof Ee && i.isConnected && i.updateNode();
|
|
1737
1737
|
if (this.dirtyNodes.clear(), this.mutatedNodes.size || this.collectionMutated) {
|
|
1738
1738
|
var e, n;
|
|
1739
1739
|
let i = this.getMutableCollection();
|
|
@@ -1789,10 +1789,10 @@ function yn(t) {
|
|
|
1789
1789
|
o
|
|
1790
1790
|
]);
|
|
1791
1791
|
}
|
|
1792
|
-
const
|
|
1792
|
+
const Ie = {
|
|
1793
1793
|
prefix: String(Math.round(Math.random() * 1e10)),
|
|
1794
1794
|
current: 0
|
|
1795
|
-
}, xn = /* @__PURE__ */ g.createContext(
|
|
1795
|
+
}, xn = /* @__PURE__ */ g.createContext(Ie), go = /* @__PURE__ */ g.createContext(!1);
|
|
1796
1796
|
let yo = !!(typeof window < "u" && window.document && window.document.createElement), Qe = /* @__PURE__ */ new WeakMap();
|
|
1797
1797
|
function xo(t = !1) {
|
|
1798
1798
|
let e = A(xn), n = S(null);
|
|
@@ -1812,12 +1812,12 @@ function xo(t = !1) {
|
|
|
1812
1812
|
}
|
|
1813
1813
|
function $o(t) {
|
|
1814
1814
|
let e = A(xn);
|
|
1815
|
-
e ===
|
|
1816
|
-
let n = xo(!!t), r = e ===
|
|
1815
|
+
e === Ie && !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 === Ie && process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${e.prefix}`;
|
|
1817
1817
|
return t || `${r}-${n}`;
|
|
1818
1818
|
}
|
|
1819
1819
|
function _o(t) {
|
|
1820
|
-
let e = g.useId(), [n] = D(
|
|
1820
|
+
let e = g.useId(), [n] = D(Ve()), r = n || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${Ie.prefix}`;
|
|
1821
1821
|
return t || `${r}-${e}`;
|
|
1822
1822
|
}
|
|
1823
1823
|
g.useId;
|
|
@@ -1831,7 +1831,7 @@ function wo(t) {
|
|
|
1831
1831
|
return () => {
|
|
1832
1832
|
};
|
|
1833
1833
|
}
|
|
1834
|
-
function
|
|
1834
|
+
function Ve() {
|
|
1835
1835
|
return typeof g.useSyncExternalStore == "function" ? g.useSyncExternalStore(wo, So, Eo) : A(go);
|
|
1836
1836
|
}
|
|
1837
1837
|
if (typeof HTMLTemplateElement < "u") {
|
|
@@ -1846,7 +1846,7 @@ if (typeof HTMLTemplateElement < "u") {
|
|
|
1846
1846
|
}
|
|
1847
1847
|
const ot = /* @__PURE__ */ O(!1), Co = typeof DocumentFragment < "u" ? new DocumentFragment() : null;
|
|
1848
1848
|
function Ro(t) {
|
|
1849
|
-
let e = A(ot), n =
|
|
1849
|
+
let e = A(ot), n = Ve();
|
|
1850
1850
|
if (e)
|
|
1851
1851
|
return /* @__PURE__ */ g.createElement(g.Fragment, null, t.children);
|
|
1852
1852
|
let r = /* @__PURE__ */ g.createElement(ot.Provider, {
|
|
@@ -1947,7 +1947,7 @@ function gt(t, e = {}) {
|
|
|
1947
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]);
|
|
1948
1948
|
return i;
|
|
1949
1949
|
}
|
|
1950
|
-
function
|
|
1950
|
+
function He(t) {
|
|
1951
1951
|
const e = S(null);
|
|
1952
1952
|
return oe(() => ({
|
|
1953
1953
|
get current() {
|
|
@@ -2123,12 +2123,12 @@ function Ko() {
|
|
|
2123
2123
|
}
|
|
2124
2124
|
process.env.NODE_ENV === "production" ? it.exports = Ho() : it.exports = Ko();
|
|
2125
2125
|
var Wo = it.exports;
|
|
2126
|
-
const Sn = /* @__PURE__ */ O(!1),
|
|
2126
|
+
const Sn = /* @__PURE__ */ O(!1), we = /* @__PURE__ */ O(null);
|
|
2127
2127
|
function Fo(t) {
|
|
2128
|
-
if (A(
|
|
2128
|
+
if (A(we))
|
|
2129
2129
|
return t.content;
|
|
2130
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(
|
|
2131
|
+
return /* @__PURE__ */ g.createElement(g.Fragment, null, /* @__PURE__ */ g.createElement(Ro, null, /* @__PURE__ */ g.createElement(we.Provider, {
|
|
2132
2132
|
value: r
|
|
2133
2133
|
}, t.content)), /* @__PURE__ */ g.createElement(Go, {
|
|
2134
2134
|
render: t.children,
|
|
@@ -2139,7 +2139,7 @@ function Go({ collection: t, render: e }) {
|
|
|
2139
2139
|
return e(t);
|
|
2140
2140
|
}
|
|
2141
2141
|
function Uo(t, e, n) {
|
|
2142
|
-
let r =
|
|
2142
|
+
let r = Ve(), o = S(r);
|
|
2143
2143
|
o.current = r;
|
|
2144
2144
|
let i = ne(() => o.current ? n() : e(), [
|
|
2145
2145
|
e,
|
|
@@ -2213,7 +2213,7 @@ function Zo(t) {
|
|
|
2213
2213
|
idScope: r,
|
|
2214
2214
|
dependencies: n
|
|
2215
2215
|
});
|
|
2216
|
-
return A(
|
|
2216
|
+
return A(we) && (o = /* @__PURE__ */ g.createElement(Qo, null, o)), e = oe(() => ({
|
|
2217
2217
|
dependencies: n,
|
|
2218
2218
|
idScope: r
|
|
2219
2219
|
}), [
|
|
@@ -2224,14 +2224,14 @@ function Zo(t) {
|
|
|
2224
2224
|
}, o);
|
|
2225
2225
|
}
|
|
2226
2226
|
function Qo({ children: t }) {
|
|
2227
|
-
let e = A(
|
|
2227
|
+
let e = A(we), n = oe(() => /* @__PURE__ */ g.createElement(we.Provider, {
|
|
2228
2228
|
value: null
|
|
2229
2229
|
}, /* @__PURE__ */ g.createElement(Sn.Provider, {
|
|
2230
2230
|
value: !0
|
|
2231
2231
|
}, t)), [
|
|
2232
2232
|
t
|
|
2233
2233
|
]);
|
|
2234
|
-
return
|
|
2234
|
+
return Ve() ? /* @__PURE__ */ g.createElement(at.Provider, {
|
|
2235
2235
|
value: e
|
|
2236
2236
|
}, n) : /* @__PURE__ */ tn(n, e);
|
|
2237
2237
|
}
|
|
@@ -2275,7 +2275,7 @@ function ni(t) {
|
|
|
2275
2275
|
]);
|
|
2276
2276
|
}
|
|
2277
2277
|
const Yt = Symbol("default");
|
|
2278
|
-
function
|
|
2278
|
+
function Ke({ values: t, children: e }) {
|
|
2279
2279
|
for (let [n, r] of t)
|
|
2280
2280
|
e = /* @__PURE__ */ g.createElement(n.Provider, {
|
|
2281
2281
|
value: r
|
|
@@ -2328,8 +2328,8 @@ function wn(t, e) {
|
|
|
2328
2328
|
}
|
|
2329
2329
|
return n;
|
|
2330
2330
|
}
|
|
2331
|
-
function
|
|
2332
|
-
let r = wn(n, t.slot) || {}, { ref: o, ...i } = r, l =
|
|
2331
|
+
function Re(t, e, n) {
|
|
2332
|
+
let r = wn(n, t.slot) || {}, { ref: o, ...i } = r, l = He(oe(() => ko(e, o), [
|
|
2333
2333
|
e,
|
|
2334
2334
|
o
|
|
2335
2335
|
])), c = _n(i, t);
|
|
@@ -2452,8 +2452,8 @@ const si = /* @__PURE__ */ new Set([
|
|
|
2452
2452
|
"value"
|
|
2453
2453
|
]), ci = /* @__PURE__ */ O({});
|
|
2454
2454
|
function ui(t, e) {
|
|
2455
|
-
[t, e] =
|
|
2456
|
-
let n = t, { isPending: r } = n, { buttonProps: o, isPressed: i } =
|
|
2455
|
+
[t, e] = Re(t, e, ci), t = di(t);
|
|
2456
|
+
let n = t, { isPending: r } = n, { buttonProps: o, isPressed: i } = Le(t, e), { focusProps: l, isFocused: c, isFocusVisible: u } = Ce(t), { hoverProps: f, isHovered: d } = Rr({
|
|
2457
2457
|
...t,
|
|
2458
2458
|
isDisabled: t.isDisabled || r
|
|
2459
2459
|
}), h = {
|
|
@@ -2513,7 +2513,7 @@ const Pn = /* @__PURE__ */ Po(ui), fi = /* @__PURE__ */ O({}), lt = g.createCont
|
|
|
2513
2513
|
lt.displayName = "PressResponderContext";
|
|
2514
2514
|
const pi = /* @__PURE__ */ g.forwardRef(({ children: t, ...e }, n) => {
|
|
2515
2515
|
let r = S(!1), o = A(lt);
|
|
2516
|
-
n =
|
|
2516
|
+
n = He(n || (o == null ? void 0 : o.ref));
|
|
2517
2517
|
let i = _n(o || {}, {
|
|
2518
2518
|
...e,
|
|
2519
2519
|
ref: n,
|
|
@@ -2527,10 +2527,10 @@ const pi = /* @__PURE__ */ g.forwardRef(({ children: t, ...e }, n) => {
|
|
|
2527
2527
|
value: i
|
|
2528
2528
|
}, t);
|
|
2529
2529
|
});
|
|
2530
|
-
let
|
|
2530
|
+
let De = !1, nt = 0;
|
|
2531
2531
|
function st() {
|
|
2532
|
-
|
|
2533
|
-
|
|
2532
|
+
De = !0, setTimeout(() => {
|
|
2533
|
+
De = !1;
|
|
2534
2534
|
}, 50);
|
|
2535
2535
|
}
|
|
2536
2536
|
function Jt(t) {
|
|
@@ -2571,13 +2571,13 @@ function vi(t) {
|
|
|
2571
2571
|
}), n && n(!1), l(!1);
|
|
2572
2572
|
}, p = {};
|
|
2573
2573
|
return typeof PointerEvent < "u" ? (p.onPointerEnter = (v) => {
|
|
2574
|
-
|
|
2574
|
+
De && v.pointerType === "mouse" || d(v, v.pointerType);
|
|
2575
2575
|
}, p.onPointerLeave = (v) => {
|
|
2576
2576
|
!o && v.currentTarget.contains(v.target) && h(v, v.pointerType);
|
|
2577
2577
|
}) : (p.onTouchStart = () => {
|
|
2578
2578
|
c.ignoreEmulatedMouseEvents = !0;
|
|
2579
2579
|
}, p.onMouseEnter = (v) => {
|
|
2580
|
-
!c.ignoreEmulatedMouseEvents && !
|
|
2580
|
+
!c.ignoreEmulatedMouseEvents && !De && d(v, "mouse"), c.ignoreEmulatedMouseEvents = !1;
|
|
2581
2581
|
}, p.onMouseLeave = (v) => {
|
|
2582
2582
|
!o && v.currentTarget.contains(v.target) && h(v, "mouse");
|
|
2583
2583
|
}), {
|
|
@@ -2607,7 +2607,7 @@ function mi(t) {
|
|
|
2607
2607
|
isPointerDown: !1,
|
|
2608
2608
|
ignoreEmulatedMouseEvents: !1
|
|
2609
2609
|
}), l = Kt((u) => {
|
|
2610
|
-
n &&
|
|
2610
|
+
n && Oe(u, e) && (o && o(u), i.current.isPointerDown = !0);
|
|
2611
2611
|
}), c = Kt((u) => {
|
|
2612
2612
|
n && n(u);
|
|
2613
2613
|
});
|
|
@@ -2617,16 +2617,16 @@ function mi(t) {
|
|
|
2617
2617
|
const f = e.current, d = No(f);
|
|
2618
2618
|
if (typeof PointerEvent < "u") {
|
|
2619
2619
|
let h = (p) => {
|
|
2620
|
-
u.isPointerDown &&
|
|
2620
|
+
u.isPointerDown && Oe(p, e) && c(p), u.isPointerDown = !1;
|
|
2621
2621
|
};
|
|
2622
2622
|
return d.addEventListener("pointerdown", l, !0), d.addEventListener("pointerup", h, !0), () => {
|
|
2623
2623
|
d.removeEventListener("pointerdown", l, !0), d.removeEventListener("pointerup", h, !0);
|
|
2624
2624
|
};
|
|
2625
2625
|
} else {
|
|
2626
2626
|
let h = (v) => {
|
|
2627
|
-
u.ignoreEmulatedMouseEvents ? u.ignoreEmulatedMouseEvents = !1 : u.isPointerDown &&
|
|
2627
|
+
u.ignoreEmulatedMouseEvents ? u.ignoreEmulatedMouseEvents = !1 : u.isPointerDown && Oe(v, e) && c(v), u.isPointerDown = !1;
|
|
2628
2628
|
}, p = (v) => {
|
|
2629
|
-
u.ignoreEmulatedMouseEvents = !0, u.isPointerDown &&
|
|
2629
|
+
u.ignoreEmulatedMouseEvents = !0, u.isPointerDown && Oe(v, e) && c(v), u.isPointerDown = !1;
|
|
2630
2630
|
};
|
|
2631
2631
|
return d.addEventListener("mousedown", l, !0), d.addEventListener("mouseup", h, !0), d.addEventListener("touchstart", l, !0), d.addEventListener("touchend", p, !0), () => {
|
|
2632
2632
|
d.removeEventListener("mousedown", l, !0), d.removeEventListener("mouseup", h, !0), d.removeEventListener("touchstart", l, !0), d.removeEventListener("touchend", p, !0);
|
|
@@ -2639,7 +2639,7 @@ function mi(t) {
|
|
|
2639
2639
|
c
|
|
2640
2640
|
]);
|
|
2641
2641
|
}
|
|
2642
|
-
function
|
|
2642
|
+
function Oe(t, e) {
|
|
2643
2643
|
if (t.button > 0) return !1;
|
|
2644
2644
|
if (t.target) {
|
|
2645
2645
|
const n = t.target.ownerDocument;
|
|
@@ -2649,7 +2649,7 @@ function Ae(t, e) {
|
|
|
2649
2649
|
}
|
|
2650
2650
|
let bi = /* @__PURE__ */ g.createContext(null);
|
|
2651
2651
|
function gi(t, e) {
|
|
2652
|
-
let { children: n, ...r } = t, o =
|
|
2652
|
+
let { children: n, ...r } = t, o = He(e), i = {
|
|
2653
2653
|
...r,
|
|
2654
2654
|
ref: o
|
|
2655
2655
|
};
|
|
@@ -2662,7 +2662,7 @@ const xi = /* @__PURE__ */ O({}), $i = /* @__PURE__ */ O({}), Tn = /* @__PURE__
|
|
|
2662
2662
|
placement: "bottom"
|
|
2663
2663
|
});
|
|
2664
2664
|
function _i(t, e) {
|
|
2665
|
-
[t, e] =
|
|
2665
|
+
[t, e] = Re(t, e, Tn);
|
|
2666
2666
|
let n = t.placement, r = {
|
|
2667
2667
|
position: "absolute",
|
|
2668
2668
|
[n]: "100%",
|
|
@@ -2733,7 +2733,7 @@ function Ci(t) {
|
|
|
2733
2733
|
onResize: c
|
|
2734
2734
|
});
|
|
2735
2735
|
let u = S(null);
|
|
2736
|
-
return /* @__PURE__ */ g.createElement(
|
|
2736
|
+
return /* @__PURE__ */ g.createElement(Ke, {
|
|
2737
2737
|
values: [
|
|
2738
2738
|
[
|
|
2739
2739
|
Nn,
|
|
@@ -2771,7 +2771,7 @@ function Ci(t) {
|
|
|
2771
2771
|
}
|
|
2772
2772
|
const Ri = /* @__PURE__ */ O(null);
|
|
2773
2773
|
function Pi(t, e) {
|
|
2774
|
-
return [t, e] =
|
|
2774
|
+
return [t, e] = Re(t, e, Nn), /* @__PURE__ */ g.createElement(Fo, {
|
|
2775
2775
|
content: /* @__PURE__ */ g.createElement(Zo, t)
|
|
2776
2776
|
}, (n) => n.size > 0 && /* @__PURE__ */ g.createElement(Ti, {
|
|
2777
2777
|
props: t,
|
|
@@ -2823,7 +2823,7 @@ function Ti({ props: t, collection: e, menuRef: n }) {
|
|
|
2823
2823
|
ref: n,
|
|
2824
2824
|
slot: t.slot || void 0,
|
|
2825
2825
|
onScroll: t.onScroll
|
|
2826
|
-
}, /* @__PURE__ */ g.createElement(
|
|
2826
|
+
}, /* @__PURE__ */ g.createElement(Ke, {
|
|
2827
2827
|
values: [
|
|
2828
2828
|
[
|
|
2829
2829
|
yt,
|
|
@@ -2903,12 +2903,12 @@ function Ni(t, e, n) {
|
|
|
2903
2903
|
}
|
|
2904
2904
|
const ut = /* @__PURE__ */ O(null), Mi = /* @__PURE__ */ Jo("item", function(e, n, r) {
|
|
2905
2905
|
var o;
|
|
2906
|
-
[e, n] =
|
|
2907
|
-
let i = (o = wn(ut)) === null || o === void 0 ? void 0 : o.id, l = A(yt), c =
|
|
2906
|
+
[e, n] = Re(e, n, ut);
|
|
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({
|
|
2908
2908
|
...e,
|
|
2909
2909
|
id: i,
|
|
2910
2910
|
key: r.key
|
|
2911
|
-
}, l, c), { isFocusVisible: v, focusProps: y } =
|
|
2911
|
+
}, l, c), { isFocusVisible: v, focusProps: y } = Ce(), { hoverProps: x, isHovered: $ } = vi({
|
|
2912
2912
|
isDisabled: p.isDisabled
|
|
2913
2913
|
}), E = ge({
|
|
2914
2914
|
...e,
|
|
@@ -2938,7 +2938,7 @@ const ut = /* @__PURE__ */ O(null), Mi = /* @__PURE__ */ Jo("item", function(e,
|
|
|
2938
2938
|
"data-selection-mode": l.selectionManager.selectionMode === "none" ? void 0 : l.selectionManager.selectionMode,
|
|
2939
2939
|
"data-has-submenu": !!e["aria-haspopup"] || void 0,
|
|
2940
2940
|
"data-open": e["aria-expanded"] === "true" || void 0
|
|
2941
|
-
}, /* @__PURE__ */ g.createElement(
|
|
2941
|
+
}, /* @__PURE__ */ g.createElement(Ke, {
|
|
2942
2942
|
values: [
|
|
2943
2943
|
[
|
|
2944
2944
|
fi,
|
|
@@ -3120,7 +3120,7 @@ let Ai = In;
|
|
|
3120
3120
|
const xt = /* @__PURE__ */ O(null), Dn = /* @__PURE__ */ O(null);
|
|
3121
3121
|
function Oi(t) {
|
|
3122
3122
|
let e = cn(t), n = S(null), { triggerProps: r, tooltipProps: o } = jr(t, e, n);
|
|
3123
|
-
return /* @__PURE__ */ g.createElement(
|
|
3123
|
+
return /* @__PURE__ */ g.createElement(Ke, {
|
|
3124
3124
|
values: [
|
|
3125
3125
|
[
|
|
3126
3126
|
xt,
|
|
@@ -3140,7 +3140,7 @@ function Oi(t) {
|
|
|
3140
3140
|
}, t.children));
|
|
3141
3141
|
}
|
|
3142
3142
|
function Ii({ UNSTABLE_portalContainer: t, ...e }, n) {
|
|
3143
|
-
[e, n] =
|
|
3143
|
+
[e, n] = Re(e, n, Dn);
|
|
3144
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;
|
|
3145
3145
|
return !i.isOpen && !l ? null : /* @__PURE__ */ g.createElement(Nr, {
|
|
3146
3146
|
portalContainer: t
|
|
@@ -3344,7 +3344,7 @@ function Vi({ item: t, state: e }) {
|
|
|
3344
3344
|
}
|
|
3345
3345
|
const Bn = fe(
|
|
3346
3346
|
(t, e) => {
|
|
3347
|
-
let { buttonProps: n } =
|
|
3347
|
+
let { buttonProps: n } = Le(
|
|
3348
3348
|
{
|
|
3349
3349
|
...t,
|
|
3350
3350
|
isDisabled: t.disabled
|
|
@@ -3636,7 +3636,7 @@ function Fi({ column: t, state: e }) {
|
|
|
3636
3636
|
n
|
|
3637
3637
|
);
|
|
3638
3638
|
const { align: o = "left" } = t.props;
|
|
3639
|
-
let { isFocusVisible: i, focusProps: l } =
|
|
3639
|
+
let { isFocusVisible: i, focusProps: l } = Ce(), c = ((u = e.sortDescriptor) == null ? void 0 : u.direction) === "ascending" ? "▲" : "▼";
|
|
3640
3640
|
return /* @__PURE__ */ s.jsxs(
|
|
3641
3641
|
"th",
|
|
3642
3642
|
{
|
|
@@ -3686,7 +3686,7 @@ function Gi({ item: t, children: e, state: n }) {
|
|
|
3686
3686
|
},
|
|
3687
3687
|
n,
|
|
3688
3688
|
r
|
|
3689
|
-
), { isFocusVisible: c, focusProps: u } =
|
|
3689
|
+
), { isFocusVisible: c, focusProps: u } = Ce();
|
|
3690
3690
|
return /* @__PURE__ */ s.jsx(
|
|
3691
3691
|
"tr",
|
|
3692
3692
|
{
|
|
@@ -3703,7 +3703,7 @@ function Gi({ item: t, children: e, state: n }) {
|
|
|
3703
3703
|
);
|
|
3704
3704
|
}
|
|
3705
3705
|
function Ui({ cell: t, state: e, ...n }) {
|
|
3706
|
-
let r = S(), { gridCellProps: o } = Hr({ node: t }, e, r), { isFocusVisible: i, focusProps: l } =
|
|
3706
|
+
let r = S(), { gridCellProps: o } = Hr({ node: t }, e, r), { isFocusVisible: i, focusProps: l } = Ce();
|
|
3707
3707
|
const { align: c } = t.props;
|
|
3708
3708
|
return /* @__PURE__ */ s.jsx(
|
|
3709
3709
|
"td",
|
|
@@ -3742,14 +3742,14 @@ function Ca(t) {
|
|
|
3742
3742
|
}
|
|
3743
3743
|
function zi({ children: t, arrow: e, ...n }) {
|
|
3744
3744
|
const { className: r, style: o } = ie();
|
|
3745
|
-
return /* @__PURE__ */ s.jsxs(
|
|
3745
|
+
return console.log(n), /* @__PURE__ */ s.jsxs(
|
|
3746
3746
|
Di,
|
|
3747
3747
|
{
|
|
3748
3748
|
...n,
|
|
3749
3749
|
className: `proton__Tooltip proton-Dialog ${r}`,
|
|
3750
3750
|
style: o,
|
|
3751
3751
|
children: [
|
|
3752
|
-
e && /* @__PURE__ */ s.jsx(Si, { className:
|
|
3752
|
+
e && /* @__PURE__ */ s.jsx(Si, { className: "proton__TooltipArrow", 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" }) }) }),
|
|
3753
3753
|
t
|
|
3754
3754
|
]
|
|
3755
3755
|
}
|
|
@@ -3769,7 +3769,7 @@ function Yi({
|
|
|
3769
3769
|
...u
|
|
3770
3770
|
}) {
|
|
3771
3771
|
const [f, d] = D(!1), h = S(!1), p = S(!1);
|
|
3772
|
-
return console.log(u), /* @__PURE__ */ s.jsxs(
|
|
3772
|
+
return console.log({ tooltipProps: u }), /* @__PURE__ */ s.jsxs(
|
|
3773
3773
|
Oi,
|
|
3774
3774
|
{
|
|
3775
3775
|
delay: e,
|