@protonradio/proton-ui 0.6.18-beta.12 → 0.6.18-beta.13

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
@@ -2,7 +2,7 @@ import g, { useLayoutEffect as pr, useState as D, useRef as S, createElement as
2
2
  import en, { createPortal as tn } from "react-dom";
3
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";
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-B5na7vwh.mjs";
5
+ import { b as E, i as vt, h as dn } from "./utils-B5na7vwh.mjs";
6
6
  import { THEMES as le, BREAKPOINTS as fn } from "./constants.es.js";
7
7
  import { transparentize as de, toRgba as Xe } from "color2k";
8
8
  import { G as Q, S as Ne, W as Me, D as ke, B as Yr } from "./colors-Dwh4VIMR.mjs";
@@ -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 E = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
54
+ var w = 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 _ = E.ReactDebugCurrentFrame, N = _.getStackAddendum();
64
+ var _ = w.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,7 +195,7 @@ 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 = E.ReactCurrentDispatcher, We;
198
+ var Ke = w.ReactCurrentDispatcher, We;
199
199
  function Re(a, m, b) {
200
200
  {
201
201
  if (We === void 0)
@@ -321,7 +321,7 @@ function Jr() {
321
321
  }
322
322
  return "";
323
323
  }
324
- var ye = Object.prototype.hasOwnProperty, wt = {}, Ct = E.ReactDebugCurrentFrame;
324
+ var ye = Object.prototype.hasOwnProperty, wt = {}, Ct = w.ReactDebugCurrentFrame;
325
325
  function je(a) {
326
326
  if (a) {
327
327
  var m = a._owner, b = Te(a.type, a._source, m ? m.type : null);
@@ -372,7 +372,7 @@ 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 = E.ReactCurrentOwner, qn = {
375
+ var xe = w.ReactCurrentOwner, qn = {
376
376
  key: !0,
377
377
  ref: !0,
378
378
  __self: !0,
@@ -470,7 +470,7 @@ function Jr() {
470
470
  return tr(a, C, J, N, _, xe.current, T);
471
471
  }
472
472
  }
473
- var ze = E.ReactCurrentOwner, Nt = E.ReactDebugCurrentFrame;
473
+ var ze = w.ReactCurrentOwner, Nt = w.ReactDebugCurrentFrame;
474
474
  function he(a) {
475
475
  if (a) {
476
476
  var m = a._owner, b = Te(a.type, a._source, m ? m.type : null);
@@ -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), [$, 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(() => {
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(() => {
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 && E(R.current.scrollHeight);
709
+ e && R.current && w(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: w(
744
+ className: E(
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: w("proton-ActionMenu__card", p),
751
+ className: E("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: w(
759
+ className: E(
760
760
  "proton-ActionMenu__list",
761
761
  n === "none" && "proton-ActionMenu__list--disabled"
762
762
  ),
@@ -902,7 +902,7 @@ const ua = {
902
902
  role: "status",
903
903
  "aria-live": "polite",
904
904
  "data-testid": n["data-testid"],
905
- className: w(
905
+ className: E(
906
906
  "proton-Badge",
907
907
  t && `proton-Badge--${t}`,
908
908
  r
@@ -937,7 +937,7 @@ function vn({
937
937
  {
938
938
  ...d,
939
939
  ...u,
940
- className: w(
940
+ className: E(
941
941
  "proton-Button",
942
942
  `proton-Button--${t}`,
943
943
  o && "proton-Button--disabled"
@@ -1019,7 +1019,7 @@ const mn = {
1019
1019
  {
1020
1020
  role: "status",
1021
1021
  "aria-live": "polite",
1022
- className: w(
1022
+ className: E(
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: w(
1031
+ className: E(
1032
1032
  "proton-Banner__wrapper",
1033
1033
  r && "proton-Banner__wrapper--compact"
1034
1034
  ),
@@ -1045,7 +1045,7 @@ const mn = {
1045
1045
  return /* @__PURE__ */ s.jsx(
1046
1046
  "h3",
1047
1047
  {
1048
- className: w(
1048
+ className: E(
1049
1049
  "proton-Banner",
1050
1050
  "proton-Banner__title",
1051
1051
  `proton-Banner--${n}__title`
@@ -1060,7 +1060,7 @@ const mn = {
1060
1060
  return /* @__PURE__ */ s.jsx(
1061
1061
  "p",
1062
1062
  {
1063
- className: w(
1063
+ className: E(
1064
1064
  "proton-Banner",
1065
1065
  "proton-Banner__content",
1066
1066
  `proton-Banner--${n}__content`
@@ -1078,7 +1078,7 @@ const mn = {
1078
1078
  {
1079
1079
  "aria-hidden": "true",
1080
1080
  "data-testid": n["data-testid"],
1081
- className: w("proton-Banner__icon", `proton-Banner--${r}__icon`),
1081
+ className: E("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: w(
1119
+ className: E(
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: w("proton-Dialog", l), children: [
1135
+ return /* @__PURE__ */ s.jsxs("div", { ...o, ref: r, className: E("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: E, palette: R, theme: j } = ie(), P = x || $, { labelProps: L, inputProps: M, descriptionProps: G, errorMessageProps: z } = xr(
1181
+ const $ = S(null), { className: w, 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: w(
1220
+ className: E(
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: w(
1237
+ className: E(
1238
1238
  "proton-Input",
1239
1239
  i && "proton-Input--error",
1240
1240
  c && !f && "proton-Input__label-top",
1241
- E
1241
+ w
1242
1242
  )
1243
1243
  }
1244
1244
  ),
@@ -1246,7 +1246,7 @@ const po = fe(
1246
1246
  "label",
1247
1247
  {
1248
1248
  ...L,
1249
- className: w(
1249
+ className: E(
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: w(
1260
+ className: E(
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: w("proton-Input__error", "proton-Input__text"),
1273
+ className: E("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: (E) => u == null ? void 0 : u(E),
1333
+ onChange: (w) => u == null ? void 0 : u(w),
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: (E) => d.setValue(E),
1354
+ onChange: (w) => d.setValue(w),
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 E;
1370
- return (E = h.current) == null ? void 0 : E.focus();
1369
+ var w;
1370
+ return (w = h.current) == null ? void 0 : w.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: w(
1389
+ className: E(
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 E;
1398
- $(), (E = h.current) == null || E.focus();
1397
+ var w;
1398
+ $(), (w = h.current) == null || w.focus();
1399
1399
  },
1400
1400
  children: /* @__PURE__ */ s.jsxs(
1401
1401
  "svg",
@@ -1461,7 +1461,7 @@ function mt({
1461
1461
  {
1462
1462
  ...f,
1463
1463
  ref: l,
1464
- className: w("proton-Popover", c),
1464
+ className: E("proton-Popover", c),
1465
1465
  style: { ...u, ...f.style },
1466
1466
  "data-testid": o["data-testid"] || void 0,
1467
1467
  children: [
@@ -2117,7 +2117,7 @@ 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, E = $ ? y : p, R = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : E;
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;
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
  }
@@ -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 E = {
2474
+ let w = {
2475
2475
  "aria-labelledby": x || v
2476
2476
  };
2477
- (!$.current && c && r || $.current && c && !r) && qt(E, "assertive"), $.current = r;
2477
+ (!$.current && c && r || $.current && c && !r) && qt(w, "assertive"), $.current = r;
2478
2478
  }, [
2479
2479
  r,
2480
2480
  c,
@@ -2910,7 +2910,7 @@ const ut = /* @__PURE__ */ O(null), Mi = /* @__PURE__ */ Jo("item", function(e,
2910
2910
  key: r.key
2911
2911
  }, l, c), { isFocusVisible: v, focusProps: y } = we(), { hoverProps: x, isHovered: $ } = vi({
2912
2912
  isDisabled: p.isDisabled
2913
- }), E = ge({
2913
+ }), w = 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
- ...E,
2930
+ ...w,
2931
2931
  ref: c,
2932
2932
  "data-disabled": p.isDisabled || void 0,
2933
2933
  "data-hovered": $ || void 0,
@@ -2954,7 +2954,7 @@ const ut = /* @__PURE__ */ O(null), Mi = /* @__PURE__ */ Jo("item", function(e,
2954
2954
  h
2955
2955
  ]
2956
2956
  ]
2957
- }, E.children));
2957
+ }, w.children));
2958
2958
  });
2959
2959
  function kn(t) {
2960
2960
  return null;
@@ -3292,8 +3292,8 @@ function xa({
3292
3292
  target: "_blank",
3293
3293
  rel: "noopener noreferrer",
3294
3294
  onAction: () => {
3295
- var E;
3296
- (E = $.onAction) == null || E.call($, $.key), setTimeout(() => {
3295
+ var w;
3296
+ (w = $.onAction) == null || w.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: w(
3334
+ className: E(
3335
3335
  "proton-ListBox__item",
3336
3336
  i && "proton-ListBox__item--focused",
3337
3337
  o && "proton-ListBox__item--selected",
@@ -3356,7 +3356,7 @@ const Bn = fe(
3356
3356
  {
3357
3357
  ...n,
3358
3358
  ref: e,
3359
- className: w(
3359
+ className: E(
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: E, menuProps: R } = an(
3395
+ }, p = un(h), v = S(null), y = S(null), { labelProps: x, triggerProps: $, valueProps: w, 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", { ...E, className: "proton-Select__value", children: p.selectedItem ? p.selectedItem.rendered : "Select an option" }),
3441
+ /* @__PURE__ */ s.jsx("div", { ...w, 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: w(
3445
+ className: E(
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: E, valueProps: R, menuProps: j } = an(
3509
+ }, p = un(h), v = Ln(fn.MEDIUM), y = S(null), x = S(null), { labelProps: $, triggerProps: w, 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
- ...E,
3549
+ ...w,
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: w(
3559
+ className: E(
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: w(
3607
+ className: E(
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: w("proton-Table__headerRow"), ...o, ref: r, children: n });
3629
+ return /* @__PURE__ */ s.jsx("tr", { className: E("proton-Table__headerRow"), ...o, ref: r, children: n });
3630
3630
  }
3631
3631
  function Fi({ column: t, state: e }) {
3632
3632
  var u, f;
@@ -3642,7 +3642,7 @@ function Fi({ column: t, state: e }) {
3642
3642
  {
3643
3643
  ...me(r, l),
3644
3644
  colSpan: t.colspan,
3645
- className: w(
3645
+ className: E(
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: w("proton-Table__headerSortIcon"),
3657
+ className: E("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: w(
3674
+ className: E(
3675
3675
  "proton-Table__rowGroup",
3676
3676
  t === "thead" ? "proton-Table__rowGroup--header" : "proton-Table__rowGroup--body"
3677
3677
  ),
@@ -3690,7 +3690,7 @@ function Gi({ item: t, children: e, state: n }) {
3690
3690
  return /* @__PURE__ */ s.jsx(
3691
3691
  "tr",
3692
3692
  {
3693
- className: w(
3693
+ className: E(
3694
3694
  "proton-Table__row",
3695
3695
  o ? "proton-Table__row--selected" : null,
3696
3696
  l ? "proton-Table__row--pressed" : null,
@@ -3709,7 +3709,7 @@ function Ui({ cell: t, state: e, ...n }) {
3709
3709
  "td",
3710
3710
  {
3711
3711
  ...me(o, l),
3712
- className: w(
3712
+ className: E(
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: w("proton-Table"), children: [
3731
+ return /* @__PURE__ */ s.jsxs("table", { ...o, ref: n, className: E("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
  {
@@ -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
- className: `proton__Tooltip proton-Dialog ${r}`,
3749
+ className: E("proton__Tooltip", "proton-Dialog", r),
3750
3750
  style: o,
3751
3751
  children: [
3752
- e && /* @__PURE__ */ s.jsx(Si, { className: `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: 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" }) }) }),
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,
@@ -3811,7 +3811,7 @@ const Ra = ({
3811
3811
  return /* @__PURE__ */ s.jsx(
3812
3812
  "span",
3813
3813
  {
3814
- className: w(
3814
+ className: E(
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: w(
3837
+ className: E(
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: w("proton-Waveform__bar-wrapper"),
3863
+ className: E("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: w(
3872
+ className: E(
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: w(
3889
+ className: E(
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([]), [$, 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;
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;
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
- E(q);
3951
+ w(q);
3952
3952
  }, te = () => {
3953
- E(null);
3953
+ w(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: w("proton-Waveform", d), "data-testid": f, children: [
3959
+ return /* @__PURE__ */ s.jsxs("div", { className: E("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: w(
4050
+ className: E(
4051
4051
  "proton-Waveform__timestamp",
4052
4052
  `proton-Waveform__timestamp--${t}`
4053
4053
  ),