@protonradio/proton-ui 0.6.18-beta.13 → 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.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 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 Vr, useTableCell as Hr, useTable as Kr } from "react-aria";
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 E, i as vt, h as dn } from "./utils-B5na7vwh.mjs";
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 Xe } from "color2k";
8
- import { G as Q, S as Ne, W as Me, D as ke, B as Yr } from "./colors-Dwh4VIMR.mjs";
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: {} }, $e = {};
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 $e;
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 $e.Fragment = n, $e.jsx = l, $e.jsxs = l, $e;
32
+ return _e.Fragment = n, _e.jsx = l, _e.jsxs = l, _e;
33
33
  }
34
- var _e = {};
34
+ var Se = {};
35
35
  /**
36
36
  * @license React
37
37
  * react-jsx-runtime.development.js
@@ -51,7 +51,7 @@ function Jr() {
51
51
  var m = y && a[y] || a[x];
52
52
  return typeof m == "function" ? m : null;
53
53
  }
54
- var w = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
54
+ var E = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
55
55
  function R(a) {
56
56
  {
57
57
  for (var m = arguments.length, b = new Array(m > 1 ? m - 1 : 0), _ = 1; _ < m; _++)
@@ -61,7 +61,7 @@ function Jr() {
61
61
  }
62
62
  function j(a, m, b) {
63
63
  {
64
- var _ = w.ReactDebugCurrentFrame, N = _.getStackAddendum();
64
+ var _ = E.ReactDebugCurrentFrame, N = _.getStackAddendum();
65
65
  N !== "" && (m += "%s", b = b.concat([N]));
66
66
  var k = b.map(function(T) {
67
67
  return String(T);
@@ -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 Ke = w.ReactCurrentDispatcher, We;
199
- function Re(a, m, b) {
198
+ var We = E.ReactCurrentDispatcher, Fe;
199
+ function Pe(a, m, b) {
200
200
  {
201
- if (We === void 0)
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
- We = _ && _[1] || "";
206
+ Fe = _ && _[1] || "";
207
207
  }
208
208
  return `
209
- ` + We + a;
209
+ ` + Fe + a;
210
210
  }
211
211
  }
212
- var Fe = !1, Pe;
212
+ var Ge = !1, Te;
213
213
  {
214
214
  var Kn = typeof WeakMap == "function" ? WeakMap : Map;
215
- Pe = new Kn();
215
+ Te = new Kn();
216
216
  }
217
217
  function Et(a, m) {
218
- if (!a || Fe)
218
+ if (!a || Ge)
219
219
  return "";
220
220
  {
221
- var b = Pe.get(a);
221
+ var b = Te.get(a);
222
222
  if (b !== void 0)
223
223
  return b;
224
224
  }
225
225
  var _;
226
- Fe = !0;
226
+ Ge = !0;
227
227
  var N = Error.prepareStackTrace;
228
228
  Error.prepareStackTrace = void 0;
229
229
  var k;
230
- k = Ke.current, Ke.current = null, Vn();
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" && Pe.set(a, ee), ee;
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
- Fe = !1, Ke.current = k, Hn(), Error.prepareStackTrace = N;
283
+ Ge = !1, We.current = k, Hn(), Error.prepareStackTrace = N;
284
284
  }
285
- var ve = a ? a.displayName || a.name : "", ue = ve ? Re(ve) : "";
286
- return typeof a == "function" && Pe.set(a, ue), ue;
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,39 +292,39 @@ function Jr() {
292
292
  var m = a.prototype;
293
293
  return !!(m && m.isReactComponent);
294
294
  }
295
- function Te(a, m, b) {
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 Re(a);
301
+ return Pe(a);
302
302
  switch (a) {
303
303
  case f:
304
- return Re("Suspense");
304
+ return Pe("Suspense");
305
305
  case d:
306
- return Re("SuspenseList");
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 Te(a.type, m, b);
313
+ return je(a.type, m, b);
314
314
  case p: {
315
315
  var _ = a, N = _._payload, k = _._init;
316
316
  try {
317
- return Te(k(N), m, b);
317
+ return je(k(N), m, b);
318
318
  } catch {
319
319
  }
320
320
  }
321
321
  }
322
322
  return "";
323
323
  }
324
- var ye = Object.prototype.hasOwnProperty, wt = {}, Ct = w.ReactDebugCurrentFrame;
325
- function je(a) {
324
+ var ye = Object.prototype.hasOwnProperty, wt = {}, Ct = E.ReactDebugCurrentFrame;
325
+ function Ne(a) {
326
326
  if (a) {
327
- var m = a._owner, b = Te(a.type, a._source, m ? m.type : null);
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) && (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));
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 Ge(a) {
352
+ function Ue(a) {
353
353
  return Un(a);
354
354
  }
355
355
  function zn(a) {
@@ -372,13 +372,13 @@ function Jr() {
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 xe = w.ReactCurrentOwner, qn = {
375
+ var xe = E.ReactCurrentOwner, qn = {
376
376
  key: !0,
377
377
  ref: !0,
378
378
  __self: !0,
379
379
  __source: !0
380
- }, Tt, jt, Ue;
381
- Ue = {};
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
- 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', H(xe.current.type), a.ref), Ue[b] = !0);
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 ze = w.ReactCurrentOwner, Nt = w.ReactDebugCurrentFrame;
473
+ var Ye = E.ReactCurrentOwner, Nt = E.ReactDebugCurrentFrame;
474
474
  function he(a) {
475
475
  if (a) {
476
- var m = a._owner, b = Te(a.type, a._source, m ? m.type : null);
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 Ye;
482
- Ye = !1;
483
- function qe(a) {
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 (ze.current) {
489
- var a = H(ze.current.type);
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 !== ze.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);
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 (Ge(a))
531
+ if (Ue(a))
532
532
  for (var b = 0; b < a.length; b++) {
533
533
  var _ = a[b];
534
- qe(_) && At(_, m);
534
+ Je(_) && At(_, m);
535
535
  }
536
- else if (qe(a))
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
- qe(T.value) && At(T.value, m);
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 && !Ye) {
564
- Ye = !0;
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" : Ge(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);
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 (Ge(ee)) {
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
- }), Je = X.length > 0 ? "{key: someKey, " + X.join(": ..., ") + ": ...}" : "{key: someKey}";
615
- if (!It[ue + Je]) {
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} />`, Je, ue, dr, ue), It[ue + Je] = !0;
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
- _e.Fragment = r, _e.jsx = cr, _e.jsxs = ur;
636
- }()), _e;
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;
@@ -669,8 +669,8 @@ const Zr = ({ children: t }) => {
669
669
  "data-testid": h
670
670
  }) => {
671
671
  Xr(e);
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
- x(!0), w(0), setTimeout(() => {
672
+ const { className: p, theme: v } = ie(), [y, x] = D(!1), [$, E] = D(0), R = S(null), j = S(null), P = S(window.location.pathname), L = c && c.length > 0, M = () => {
673
+ x(!0), E(0), setTimeout(() => {
674
674
  d == null || d(), x(!1);
675
675
  }, 300);
676
676
  }, G = L ? sn({
@@ -706,7 +706,7 @@ const Zr = ({ children: t }) => {
706
706
  j
707
707
  );
708
708
  F(() => {
709
- e && R.current && w(R.current.scrollHeight);
709
+ e && R.current && E(R.current.scrollHeight);
710
710
  }, [e, R]), F(() => {
711
711
  const I = (H) => {
712
712
  H.key === "Escape" && M();
@@ -741,14 +741,14 @@ const Zr = ({ children: t }) => {
741
741
  "div",
742
742
  {
743
743
  "data-testid": h || "ActionMenu-wrapper",
744
- className: E(
744
+ className: w(
745
745
  "proton-ActionMenu__wrapper",
746
746
  te && "proton-ActionMenu__wrapper--scrollable"
747
747
  ),
748
748
  children: /* @__PURE__ */ s.jsx(
749
749
  "div",
750
750
  {
751
- className: E("proton-ActionMenu__card", p),
751
+ className: w("proton-ActionMenu__card", p),
752
752
  "data-testid": "ActionMenu-content",
753
753
  style: { height: `${$}px` },
754
754
  children: /* @__PURE__ */ s.jsx("div", { ref: j, children: /* @__PURE__ */ s.jsx("div", { ...z, ref: R, children: ce ? /* @__PURE__ */ s.jsxs(pt, { autoFocus: !0, contain: !0, children: [
@@ -756,7 +756,7 @@ const Zr = ({ children: t }) => {
756
756
  L && /* @__PURE__ */ s.jsx(
757
757
  "div",
758
758
  {
759
- className: E(
759
+ className: w(
760
760
  "proton-ActionMenu__list",
761
761
  n === "none" && "proton-ActionMenu__list--disabled"
762
762
  ),
@@ -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": Xe(Ze),
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
- Xe(Ze),
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": Xe(Ze),
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
@@ -902,7 +902,7 @@ const ua = {
902
902
  role: "status",
903
903
  "aria-live": "polite",
904
904
  "data-testid": n["data-testid"],
905
- className: E(
905
+ className: w(
906
906
  "proton-Badge",
907
907
  t && `proton-Badge--${t}`,
908
908
  r
@@ -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 } = De(
926
+ }, f = S(null), { buttonProps: d } = Le(
927
927
  {
928
928
  onPress: n,
929
929
  elementType: c,
@@ -937,7 +937,7 @@ function vn({
937
937
  {
938
938
  ...d,
939
939
  ...u,
940
- className: E(
940
+ className: w(
941
941
  "proton-Button",
942
942
  `proton-Button--${t}`,
943
943
  o && "proton-Button--disabled"
@@ -985,41 +985,41 @@ 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
- danger: {
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
- }, Le = O(void 0), se = ({
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(Le.Provider, { value: t, children: /* @__PURE__ */ s.jsx(
1017
+ }) => /* @__PURE__ */ s.jsx(Be.Provider, { value: t, children: /* @__PURE__ */ s.jsx(
1018
1018
  "div",
1019
1019
  {
1020
1020
  role: "status",
1021
1021
  "aria-live": "polite",
1022
- className: E(
1022
+ className: w(
1023
1023
  "proton-Banner",
1024
1024
  `proton-Banner--${t}`,
1025
1025
  e && "proton-Banner--rounded"
@@ -1028,7 +1028,7 @@ const mn = {
1028
1028
  children: /* @__PURE__ */ s.jsxs(
1029
1029
  "div",
1030
1030
  {
1031
- className: E(
1031
+ className: w(
1032
1032
  "proton-Banner__wrapper",
1033
1033
  r && "proton-Banner__wrapper--compact"
1034
1034
  ),
@@ -1040,12 +1040,12 @@ const mn = {
1040
1040
  )
1041
1041
  }
1042
1042
  ) }), oo = ({ children: t, ...e }) => {
1043
- const n = A(Le);
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",
1047
1047
  {
1048
- className: E(
1048
+ className: w(
1049
1049
  "proton-Banner",
1050
1050
  "proton-Banner__title",
1051
1051
  `proton-Banner--${n}__title`
@@ -1055,12 +1055,12 @@ const mn = {
1055
1055
  }
1056
1056
  );
1057
1057
  }, io = ({ children: t, ...e }) => {
1058
- const n = A(Le);
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",
1062
1062
  {
1063
- className: E(
1063
+ className: w(
1064
1064
  "proton-Banner",
1065
1065
  "proton-Banner__content",
1066
1066
  `proton-Banner--${n}__content`
@@ -1070,7 +1070,7 @@ const mn = {
1070
1070
  }
1071
1071
  );
1072
1072
  }, ao = ({ children: t, icon: e, ...n }) => {
1073
- const r = A(Le);
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(
@@ -1078,7 +1078,7 @@ const mn = {
1078
1078
  {
1079
1079
  "aria-hidden": "true",
1080
1080
  "data-testid": n["data-testid"],
1081
- className: E("proton-Banner__icon", `proton-Banner--${r}__icon`),
1081
+ className: w("proton-Banner__icon", `proton-Banner--${r}__icon`),
1082
1082
  children: i
1083
1083
  }
1084
1084
  ) : null;
@@ -1116,7 +1116,7 @@ co.Option = function(e) {
1116
1116
  return /* @__PURE__ */ s.jsxs(
1117
1117
  "label",
1118
1118
  {
1119
- className: E(
1119
+ className: w(
1120
1120
  "proton-ButtonGroup__option",
1121
1121
  l && "proton-ButtonGroup__option--selected"
1122
1122
  ),
@@ -1132,7 +1132,7 @@ co.Option = function(e) {
1132
1132
  function fa({ title: t, children: e, ...n }) {
1133
1133
  let r = S(null), { dialogProps: o, titleProps: i } = yr(n, r);
1134
1134
  const { className: l } = ie();
1135
- return /* @__PURE__ */ s.jsxs("div", { ...o, ref: r, className: E("proton-Dialog", l), children: [
1135
+ return /* @__PURE__ */ s.jsxs("div", { ...o, ref: r, className: w("proton-Dialog", l), children: [
1136
1136
  t && /* @__PURE__ */ s.jsx("h3", { ...i, className: "proton-Dialog__header", children: t }),
1137
1137
  e
1138
1138
  ] });
@@ -1178,7 +1178,7 @@ const po = fe(
1178
1178
  autoComplete: v,
1179
1179
  "data-testid": y
1180
1180
  }, x) => {
1181
- const $ = S(null), { className: w, palette: R, theme: j } = ie(), P = x || $, { labelProps: L, inputProps: M, descriptionProps: G, errorMessageProps: z } = xr(
1181
+ const $ = S(null), { className: E, palette: R, theme: j } = ie(), P = x || $, { labelProps: L, inputProps: M, descriptionProps: G, errorMessageProps: z } = xr(
1182
1182
  {
1183
1183
  label: c,
1184
1184
  name: u,
@@ -1217,7 +1217,7 @@ const po = fe(
1217
1217
  t && /* @__PURE__ */ s.jsx(
1218
1218
  "div",
1219
1219
  {
1220
- className: E(
1220
+ className: w(
1221
1221
  "proton-Input__descriptor",
1222
1222
  "proton-Input__prefix"
1223
1223
  ),
@@ -1234,11 +1234,11 @@ const po = fe(
1234
1234
  "aria-invalid": !!i,
1235
1235
  ref: P,
1236
1236
  style: te,
1237
- className: E(
1237
+ className: w(
1238
1238
  "proton-Input",
1239
1239
  i && "proton-Input--error",
1240
1240
  c && !f && "proton-Input__label-top",
1241
- w
1241
+ E
1242
1242
  )
1243
1243
  }
1244
1244
  ),
@@ -1246,7 +1246,7 @@ const po = fe(
1246
1246
  "label",
1247
1247
  {
1248
1248
  ...L,
1249
- className: E(
1249
+ className: w(
1250
1250
  "proton-Input__label",
1251
1251
  f && "proton-Input__label--hide",
1252
1252
  h && "proton-Input__label--filled"
@@ -1257,7 +1257,7 @@ const po = fe(
1257
1257
  e && /* @__PURE__ */ s.jsx(
1258
1258
  "div",
1259
1259
  {
1260
- className: E(
1260
+ className: w(
1261
1261
  "proton-Input__descriptor",
1262
1262
  "proton-Input__suffix"
1263
1263
  ),
@@ -1270,7 +1270,7 @@ const po = fe(
1270
1270
  {
1271
1271
  ...z,
1272
1272
  role: "alert",
1273
- className: E("proton-Input__error", "proton-Input__text"),
1273
+ className: w("proton-Input__error", "proton-Input__text"),
1274
1274
  id: `${u}-error`,
1275
1275
  children: i
1276
1276
  }
@@ -1330,7 +1330,7 @@ const ha = ({
1330
1330
  const d = vo({
1331
1331
  defaultValue: i,
1332
1332
  value: l,
1333
- onChange: (w) => u == null ? void 0 : u(w),
1333
+ onChange: (E) => u == null ? void 0 : u(E),
1334
1334
  onClear: () => f == null ? void 0 : f(),
1335
1335
  label: e
1336
1336
  }), h = S(null), { inputProps: p, clearButtonProps: v } = _r(
@@ -1351,7 +1351,7 @@ const ha = ({
1351
1351
  {
1352
1352
  ...p,
1353
1353
  type: "search",
1354
- onChange: (w) => d.setValue(w),
1354
+ onChange: (E) => d.setValue(E),
1355
1355
  value: y,
1356
1356
  name: t,
1357
1357
  placeholder: e,
@@ -1366,8 +1366,8 @@ const ha = ({
1366
1366
  height: "1.6em",
1367
1367
  viewBox: "0 0 24 24",
1368
1368
  onClick: () => {
1369
- var w;
1370
- return (w = h.current) == null ? void 0 : w.focus();
1369
+ var E;
1370
+ return (E = h.current) == null ? void 0 : E.focus();
1371
1371
  },
1372
1372
  children: [
1373
1373
  /* @__PURE__ */ s.jsx("title", { children: "Magnifying Glass" }),
@@ -1386,7 +1386,7 @@ const ha = ({
1386
1386
  {
1387
1387
  "aria-label": v["aria-label"],
1388
1388
  type: "button",
1389
- className: E(
1389
+ className: w(
1390
1390
  "proton-SearchInput__button",
1391
1391
  "proton-Input__descriptor",
1392
1392
  "proton-Input__suffix",
@@ -1394,8 +1394,8 @@ const ha = ({
1394
1394
  ),
1395
1395
  "data-testid": `${c}-clear`,
1396
1396
  onClick: () => {
1397
- var w;
1398
- $(), (w = h.current) == null || w.focus();
1397
+ var E;
1398
+ $(), (E = h.current) == null || E.focus();
1399
1399
  },
1400
1400
  children: /* @__PURE__ */ s.jsxs(
1401
1401
  "svg",
@@ -1435,7 +1435,7 @@ function va(t) {
1435
1435
  { type: "dialog" },
1436
1436
  n,
1437
1437
  e
1438
- ), { buttonProps: i } = De(r, e);
1438
+ ), { buttonProps: i } = Le(r, e);
1439
1439
  return { buttonProps: i, overlayProps: o, buttonRef: e, state: n };
1440
1440
  }
1441
1441
  function mt({
@@ -1461,7 +1461,7 @@ function mt({
1461
1461
  {
1462
1462
  ...f,
1463
1463
  ref: l,
1464
- className: E("proton-Popover", c),
1464
+ className: w("proton-Popover", c),
1465
1465
  style: { ...u, ...f.style },
1466
1466
  "data-testid": o["data-testid"] || void 0,
1467
1467
  children: [
@@ -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 Se extends gn {
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 Se ? this.parentNode.level + (this.node.type === "item" ? 1 : 0) : 0;
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 Se ? this.parentNode.node.key : null;
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 Se(e, this);
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 Se && i.isConnected && i.updateNode();
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 Oe = {
1792
+ const Ie = {
1793
1793
  prefix: String(Math.round(Math.random() * 1e10)),
1794
1794
  current: 0
1795
- }, xn = /* @__PURE__ */ g.createContext(Oe), go = /* @__PURE__ */ g.createContext(!1);
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 === 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}`;
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(Be()), r = n || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${Oe.prefix}`;
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 Be() {
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 = Be();
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 Ve(t) {
1950
+ function He(t) {
1951
1951
  const e = S(null);
1952
1952
  return oe(() => ({
1953
1953
  get current() {
@@ -2117,18 +2117,18 @@ function Ko() {
2117
2117
  function y(j, P, L) {
2118
2118
  return P();
2119
2119
  }
2120
- var x = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", $ = !x, w = $ ? y : p, R = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : w;
2120
+ var x = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", $ = !x, E = $ ? y : p, R = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : E;
2121
2121
  tt.useSyncExternalStore = R, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
2122
2122
  }()), tt;
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), Ee = /* @__PURE__ */ O(null);
2126
+ const Sn = /* @__PURE__ */ O(!1), we = /* @__PURE__ */ O(null);
2127
2127
  function Fo(t) {
2128
- if (A(Ee))
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(Ee.Provider, {
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 = Be(), o = S(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(Ee) && (o = /* @__PURE__ */ g.createElement(Qo, null, o)), e = oe(() => ({
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(Ee), n = oe(() => /* @__PURE__ */ g.createElement(Ee.Provider, {
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 Be() ? /* @__PURE__ */ g.createElement(at.Provider, {
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 He({ values: t, children: e }) {
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 Ce(t, e, n) {
2332
- let r = wn(n, t.slot) || {}, { ref: o, ...i } = r, l = Ve(oe(() => ko(e, o), [
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] = 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({
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 = {
@@ -2471,10 +2471,10 @@ function ui(t, e) {
2471
2471
  r && (x ? x = `${x} ${y}` : o["aria-label"] && (x = `${v} ${y}`));
2472
2472
  let $ = S(r);
2473
2473
  return F(() => {
2474
- let w = {
2474
+ let E = {
2475
2475
  "aria-labelledby": x || v
2476
2476
  };
2477
- (!$.current && c && r || $.current && c && !r) && qt(w, "assertive"), $.current = r;
2477
+ (!$.current && c && r || $.current && c && !r) && qt(E, "assertive"), $.current = r;
2478
2478
  }, [
2479
2479
  r,
2480
2480
  c,
@@ -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 = Ve(n || (o == null ? void 0 : o.ref));
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 Ie = !1, nt = 0;
2530
+ let De = !1, nt = 0;
2531
2531
  function st() {
2532
- Ie = !0, setTimeout(() => {
2533
- Ie = !1;
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
- Ie && v.pointerType === "mouse" || d(v, v.pointerType);
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 && !Ie && d(v, "mouse"), c.ignoreEmulatedMouseEvents = !1;
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 && Ae(u, e) && (o && o(u), i.current.isPointerDown = !0);
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 && Ae(p, e) && c(p), u.isPointerDown = !1;
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 && Ae(v, e) && c(v), u.isPointerDown = !1;
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 && Ae(v, e) && c(v), u.isPointerDown = !1;
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 Ae(t, e) {
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 = Ve(e), i = {
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] = Ce(t, e, Tn);
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(He, {
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] = Ce(t, e, Nn), /* @__PURE__ */ g.createElement(Fo, {
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(He, {
2826
+ }, /* @__PURE__ */ g.createElement(Ke, {
2827
2827
  values: [
2828
2828
  [
2829
2829
  yt,
@@ -2903,14 +2903,14 @@ 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] = Ce(e, n, ut);
2907
- let i = (o = wn(ut)) === null || o === void 0 ? void 0 : o.id, l = A(yt), c = Ve(n), { menuItemProps: u, labelProps: f, descriptionProps: d, keyboardShortcutProps: h, ...p } = rn({
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 } = we(), { hoverProps: x, isHovered: $ } = vi({
2911
+ }, l, c), { isFocusVisible: v, focusProps: y } = Ce(), { hoverProps: x, isHovered: $ } = vi({
2912
2912
  isDisabled: p.isDisabled
2913
- }), w = ge({
2913
+ }), E = ge({
2914
2914
  ...e,
2915
2915
  id: void 0,
2916
2916
  children: r.rendered,
@@ -2927,7 +2927,7 @@ const ut = /* @__PURE__ */ O(null), Mi = /* @__PURE__ */ Jo("item", function(e,
2927
2927
  }), R = e.href ? "a" : "div";
2928
2928
  return /* @__PURE__ */ g.createElement(R, {
2929
2929
  ...me(u, y, x),
2930
- ...w,
2930
+ ...E,
2931
2931
  ref: c,
2932
2932
  "data-disabled": p.isDisabled || void 0,
2933
2933
  "data-hovered": $ || void 0,
@@ -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(He, {
2941
+ }, /* @__PURE__ */ g.createElement(Ke, {
2942
2942
  values: [
2943
2943
  [
2944
2944
  fi,
@@ -2954,7 +2954,7 @@ const ut = /* @__PURE__ */ O(null), Mi = /* @__PURE__ */ Jo("item", function(e,
2954
2954
  h
2955
2955
  ]
2956
2956
  ]
2957
- }, w.children));
2957
+ }, E.children));
2958
2958
  });
2959
2959
  function kn(t) {
2960
2960
  return null;
@@ -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(He, {
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] = Ce(e, n, Dn);
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
@@ -3292,8 +3292,8 @@ function xa({
3292
3292
  target: "_blank",
3293
3293
  rel: "noopener noreferrer",
3294
3294
  onAction: () => {
3295
- var w;
3296
- (w = $.onAction) == null || w.call($, $.key), setTimeout(() => {
3295
+ var E;
3296
+ (E = $.onAction) == null || E.call($, $.key), setTimeout(() => {
3297
3297
  h(!1);
3298
3298
  }, 200);
3299
3299
  },
@@ -3331,7 +3331,7 @@ function Vi({ item: t, state: e }) {
3331
3331
  "li",
3332
3332
  {
3333
3333
  ...r,
3334
- className: E(
3334
+ className: w(
3335
3335
  "proton-ListBox__item",
3336
3336
  i && "proton-ListBox__item--focused",
3337
3337
  o && "proton-ListBox__item--selected",
@@ -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 } = De(
3347
+ let { buttonProps: n } = Le(
3348
3348
  {
3349
3349
  ...t,
3350
3350
  isDisabled: t.disabled
@@ -3356,7 +3356,7 @@ const Bn = fe(
3356
3356
  {
3357
3357
  ...n,
3358
3358
  ref: e,
3359
- className: E(
3359
+ className: w(
3360
3360
  "proton-Select__trigger",
3361
3361
  t.disabled && "proton-Select__trigger--disabled",
3362
3362
  !t.isOpen && "proton-Select__trigger--closed",
@@ -3392,7 +3392,7 @@ function Hi({
3392
3392
  onOpenChange: (j) => {
3393
3393
  j ? l == null || l() : c == null || c();
3394
3394
  }
3395
- }, p = un(h), v = S(null), y = S(null), { labelProps: x, triggerProps: $, valueProps: w, menuProps: R } = an(
3395
+ }, p = un(h), v = S(null), y = S(null), { labelProps: x, triggerProps: $, valueProps: E, menuProps: R } = an(
3396
3396
  { ...h, label: t || e },
3397
3397
  p,
3398
3398
  v
@@ -3438,11 +3438,11 @@ function Hi({
3438
3438
  disabled: n,
3439
3439
  "data-testid": f,
3440
3440
  children: [
3441
- /* @__PURE__ */ s.jsx("div", { ...w, className: "proton-Select__value", children: p.selectedItem ? p.selectedItem.rendered : "Select an option" }),
3441
+ /* @__PURE__ */ s.jsx("div", { ...E, className: "proton-Select__value", children: p.selectedItem ? p.selectedItem.rendered : "Select an option" }),
3442
3442
  /* @__PURE__ */ s.jsx(
3443
3443
  "div",
3444
3444
  {
3445
- className: E(
3445
+ className: w(
3446
3446
  "proton-Select__trigger_icon",
3447
3447
  p.isOpen && "proton-Select__trigger_icon--flipped"
3448
3448
  ),
@@ -3506,7 +3506,7 @@ function Ki({
3506
3506
  items: u,
3507
3507
  "data-testid": f,
3508
3508
  children: d
3509
- }, p = un(h), v = Ln(fn.MEDIUM), y = S(null), x = S(null), { labelProps: $, triggerProps: w, valueProps: R, menuProps: j } = an(
3509
+ }, p = un(h), v = Ln(fn.MEDIUM), y = S(null), x = S(null), { labelProps: $, triggerProps: E, valueProps: R, menuProps: j } = an(
3510
3510
  { ...h, label: t || e },
3511
3511
  p,
3512
3512
  y
@@ -3546,7 +3546,7 @@ function Ki({
3546
3546
  /* @__PURE__ */ s.jsxs(
3547
3547
  Bn,
3548
3548
  {
3549
- ...w,
3549
+ ...E,
3550
3550
  isOpen: p.isOpen,
3551
3551
  ref: y,
3552
3552
  disabled: n,
@@ -3556,7 +3556,7 @@ function Ki({
3556
3556
  /* @__PURE__ */ s.jsx(
3557
3557
  "div",
3558
3558
  {
3559
- className: E(
3559
+ className: w(
3560
3560
  "proton-Select__trigger_icon",
3561
3561
  p.isOpen && "proton-Select__trigger_icon--flipped"
3562
3562
  ),
@@ -3604,7 +3604,7 @@ function Sa(t) {
3604
3604
  return /* @__PURE__ */ s.jsxs(
3605
3605
  "label",
3606
3606
  {
3607
- className: E(
3607
+ className: w(
3608
3608
  "proton-Switch",
3609
3609
  t.isDisabled && "proton-Switch--disabled",
3610
3610
  r.isSelected && "proton-Switch--on"
@@ -3626,7 +3626,7 @@ function Sa(t) {
3626
3626
  }
3627
3627
  function Wi({ item: t, state: e, children: n }) {
3628
3628
  let r = S(), { rowProps: o } = Dr({ node: t }, e, r);
3629
- return /* @__PURE__ */ s.jsx("tr", { className: E("proton-Table__headerRow"), ...o, ref: r, children: n });
3629
+ return /* @__PURE__ */ s.jsx("tr", { className: w("proton-Table__headerRow"), ...o, ref: r, children: n });
3630
3630
  }
3631
3631
  function Fi({ column: t, state: e }) {
3632
3632
  var u, f;
@@ -3636,13 +3636,13 @@ 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 } = we(), c = ((u = e.sortDescriptor) == null ? void 0 : u.direction) === "ascending" ? "▲" : "▼";
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
  {
3643
3643
  ...me(r, l),
3644
3644
  colSpan: t.colspan,
3645
- className: E(
3645
+ className: w(
3646
3646
  "proton-Table__header",
3647
3647
  `proton-Table__header--${o}`,
3648
3648
  i ? "proton-Table__header--focused" : null
@@ -3654,7 +3654,7 @@ function Fi({ column: t, state: e }) {
3654
3654
  "span",
3655
3655
  {
3656
3656
  "aria-hidden": "true",
3657
- className: E("proton-Table__headerSortIcon"),
3657
+ className: w("proton-Table__headerSortIcon"),
3658
3658
  style: {
3659
3659
  visibility: ((f = e.sortDescriptor) == null ? void 0 : f.column) === t.key ? "visible" : "hidden"
3660
3660
  },
@@ -3671,7 +3671,7 @@ function Xt({ type: t, children: e }) {
3671
3671
  t,
3672
3672
  {
3673
3673
  ...n,
3674
- className: E(
3674
+ className: w(
3675
3675
  "proton-Table__rowGroup",
3676
3676
  t === "thead" ? "proton-Table__rowGroup--header" : "proton-Table__rowGroup--body"
3677
3677
  ),
@@ -3686,11 +3686,11 @@ function Gi({ item: t, children: e, state: n }) {
3686
3686
  },
3687
3687
  n,
3688
3688
  r
3689
- ), { isFocusVisible: c, focusProps: u } = we();
3689
+ ), { isFocusVisible: c, focusProps: u } = Ce();
3690
3690
  return /* @__PURE__ */ s.jsx(
3691
3691
  "tr",
3692
3692
  {
3693
- className: E(
3693
+ className: w(
3694
3694
  "proton-Table__row",
3695
3695
  o ? "proton-Table__row--selected" : null,
3696
3696
  l ? "proton-Table__row--pressed" : null,
@@ -3703,13 +3703,13 @@ 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 } = we();
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",
3710
3710
  {
3711
3711
  ...me(o, l),
3712
- className: E(
3712
+ className: w(
3713
3713
  "proton-Table__cell",
3714
3714
  i ? "proton-Table__cell--focused" : null,
3715
3715
  `proton-Table__cell--${c}`
@@ -3728,7 +3728,7 @@ function Ca(t) {
3728
3728
  e,
3729
3729
  n
3730
3730
  );
3731
- return /* @__PURE__ */ s.jsxs("table", { ...o, ref: n, className: E("proton-Table"), children: [
3731
+ return /* @__PURE__ */ s.jsxs("table", { ...o, ref: n, className: w("proton-Table"), children: [
3732
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
3733
  Fi,
3734
3734
  {
@@ -3746,10 +3746,10 @@ function zi({ children: t, arrow: e, ...n }) {
3746
3746
  Di,
3747
3747
  {
3748
3748
  ...n,
3749
- className: E("proton__Tooltip", "proton-Dialog", r),
3749
+ className: `proton__Tooltip proton-Dialog ${r}`,
3750
3750
  style: o,
3751
3751
  children: [
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" }) }) }),
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
  }
@@ -3811,7 +3811,7 @@ const Ra = ({
3811
3811
  return /* @__PURE__ */ s.jsx(
3812
3812
  "span",
3813
3813
  {
3814
- className: E(
3814
+ className: w(
3815
3815
  "proton-TextEmphasis",
3816
3816
  n && "proton-TextEmphasis--tooltip",
3817
3817
  o
@@ -3834,7 +3834,7 @@ const Ra = ({
3834
3834
  return /* @__PURE__ */ s.jsx(
3835
3835
  "span",
3836
3836
  {
3837
- className: E(
3837
+ className: w(
3838
3838
  "proton-TextEmphasis",
3839
3839
  n && "proton-TextEmphasis--tooltip",
3840
3840
  o
@@ -3860,7 +3860,7 @@ function qi({
3860
3860
  return /* @__PURE__ */ s.jsxs(
3861
3861
  "div",
3862
3862
  {
3863
- className: E("proton-Waveform__bar-wrapper"),
3863
+ className: w("proton-Waveform__bar-wrapper"),
3864
3864
  style: {
3865
3865
  width: `${l}px`,
3866
3866
  marginRight: `${c}px`
@@ -3869,7 +3869,7 @@ function qi({
3869
3869
  /* @__PURE__ */ s.jsx(
3870
3870
  "div",
3871
3871
  {
3872
- className: E(
3872
+ className: w(
3873
3873
  "proton-Waveform__bar",
3874
3874
  "proton-Waveform__bar--upper",
3875
3875
  e && "proton-Waveform__bar--disabled",
@@ -3886,7 +3886,7 @@ function qi({
3886
3886
  /* @__PURE__ */ s.jsx(
3887
3887
  "div",
3888
3888
  {
3889
- className: E(
3889
+ className: w(
3890
3890
  "proton-Waveform__bar",
3891
3891
  "proton-Waveform__bar--lower",
3892
3892
  e && "proton-Waveform__bar--disabled",
@@ -3927,7 +3927,7 @@ function Pa({
3927
3927
  "data-testid": f
3928
3928
  }) {
3929
3929
  var Z;
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.BRAND.PRIMARY : void 0), z = e;
3930
+ const { className: d, palette: h, theme: p } = ie(), v = S(null), [y, x] = D([]), [$, E] = D(null), [R, j] = D(!1), [P, L] = D(!1), M = t || Ji, G = u || (p === "custom-dark" ? h.BRAND.PRIMARY : void 0), z = e;
3931
3931
  F(() => {
3932
3932
  if (!v.current) return;
3933
3933
  const B = (q) => {
@@ -3948,15 +3948,15 @@ function Pa({
3948
3948
  const W = (B) => {
3949
3949
  if (!v.current) return;
3950
3950
  const U = v.current.getBoundingClientRect(), q = (B.clientX - U.left) / U.width * l;
3951
- w(q);
3951
+ E(q);
3952
3952
  }, te = () => {
3953
- w(null);
3953
+ E(null);
3954
3954
  }, ce = e + z, I = (B, U) => {
3955
3955
  var ae;
3956
3956
  const Y = B / l * 100;
3957
3957
  return (U === "start" ? Math.floor(Y / 100 * y.length) : Math.ceil(Y / 100 * y.length)) * ce / ((ae = v.current) == null ? void 0 : ae.clientWidth) * 100;
3958
3958
  }, H = (Z = v.current) == null ? void 0 : Z.clientWidth;
3959
- return /* @__PURE__ */ s.jsxs("div", { className: E("proton-Waveform", d), "data-testid": f, children: [
3959
+ return /* @__PURE__ */ s.jsxs("div", { className: w("proton-Waveform", d), "data-testid": f, children: [
3960
3960
  i && /* @__PURE__ */ s.jsx(
3961
3961
  Zt,
3962
3962
  {
@@ -4047,7 +4047,7 @@ function Zt({
4047
4047
  return /* @__PURE__ */ s.jsx(
4048
4048
  "div",
4049
4049
  {
4050
- className: E(
4050
+ className: w(
4051
4051
  "proton-Waveform__timestamp",
4052
4052
  `proton-Waveform__timestamp--${t}`
4053
4053
  ),