react-resizable-panels 4.0.1 → 4.0.3

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.
@@ -22,41 +22,41 @@ function we(e) {
22
22
  const { element: t, orientation: n, panels: o, separators: r } = e, s = se(
23
23
  n,
24
24
  Array.from(t.children).filter((l) => l instanceof HTMLElement).map((l) => ({ element: l }))
25
- ).map(({ element: l }) => l), u = [];
25
+ ).map(({ element: l }) => l), c = [];
26
26
  let i, a;
27
27
  for (const l of s) {
28
28
  const f = o.find(
29
- (c) => c.element === l
29
+ (u) => u.element === l
30
30
  );
31
31
  if (f) {
32
32
  if (i) {
33
- const c = i.element.getBoundingClientRect(), m = l.getBoundingClientRect();
34
- u.push({
33
+ const u = i.element.getBoundingClientRect(), m = l.getBoundingClientRect();
34
+ c.push({
35
35
  group: e,
36
36
  panels: [i, f],
37
37
  separator: a,
38
38
  rect: n === "horizontal" ? new DOMRect(
39
- c.right,
39
+ u.right,
40
40
  m.top,
41
- m.left - c.right,
41
+ m.left - u.right,
42
42
  m.height
43
43
  ) : new DOMRect(
44
44
  m.left,
45
- c.bottom,
45
+ u.bottom,
46
46
  m.width,
47
- m.top - c.bottom
47
+ m.top - u.bottom
48
48
  )
49
49
  });
50
50
  }
51
51
  i = f, a = void 0;
52
52
  } else {
53
- const c = r.find(
53
+ const u = r.find(
54
54
  (m) => m.element === l
55
55
  );
56
- c ? a = c : (i = void 0, a = void 0);
56
+ u ? a = u : (i = void 0, a = void 0);
57
57
  }
58
58
  }
59
- return u;
59
+ return c;
60
60
  }
61
61
  function Ue(e, t) {
62
62
  const n = getComputedStyle(e), o = parseFloat(n.fontSize);
@@ -130,14 +130,14 @@ function pe(e) {
130
130
  const { panels: t } = e, n = ae({ group: e });
131
131
  return t.map((o) => {
132
132
  const { element: r, panelConstraints: s } = o;
133
- let u = 0;
133
+ let c = 0;
134
134
  if (s.collapsedSize) {
135
135
  const f = J({
136
136
  groupSize: n,
137
137
  panelElement: r,
138
138
  styleProp: s.collapsedSize
139
139
  });
140
- u = I(f / n * 100);
140
+ c = I(f / n * 100);
141
141
  }
142
142
  let i;
143
143
  if (s.defaultSize) {
@@ -167,7 +167,7 @@ function pe(e) {
167
167
  l = I(f / n * 100);
168
168
  }
169
169
  return {
170
- collapsedSize: u,
170
+ collapsedSize: c,
171
171
  collapsible: s.collapsible === !0,
172
172
  defaultSize: i,
173
173
  minSize: a,
@@ -191,9 +191,9 @@ class qe {
191
191
  o[0].call(null, n);
192
192
  else {
193
193
  let r = !1, s = null;
194
- const u = Array.from(o);
195
- for (let i = 0; i < u.length; i++) {
196
- const a = u[i];
194
+ const c = Array.from(o);
195
+ for (let i = 0; i < c.length; i++) {
196
+ const a = c[i];
197
197
  try {
198
198
  a.call(null, n);
199
199
  } catch (l) {
@@ -240,16 +240,16 @@ function C(e) {
240
240
  }, t.cursorFlags !== void 0 && A.emit("cursorFlagsChange", R.cursorFlags), t.interactionState !== void 0 && A.emit("interactionStateChange", R.interactionState), t.mountedGroups !== void 0 && (R.mountedGroups.forEach((o, r) => {
241
241
  o.derivedPanelConstraints.forEach((s) => {
242
242
  if (s.collapsible) {
243
- const { layout: u } = n.mountedGroups.get(r) ?? {};
244
- if (u) {
243
+ const { layout: c } = n.mountedGroups.get(r) ?? {};
244
+ if (c) {
245
245
  const i = w(
246
246
  s.collapsedSize,
247
247
  o.layout[s.panelId]
248
248
  ), a = w(
249
249
  s.collapsedSize,
250
- u[s.panelId]
250
+ c[s.panelId]
251
251
  );
252
- i && !a && (r.inMemoryLastExpandedPanelSizes[s.panelId] = u[s.panelId]);
252
+ i && !a && (r.inMemoryLastExpandedPanelSizes[s.panelId] = c[s.panelId]);
253
253
  }
254
254
  }
255
255
  });
@@ -287,11 +287,11 @@ function Je({
287
287
  return null;
288
288
  switch (n) {
289
289
  case "active": {
290
- const s = (e & Le) !== 0, u = (e & Pe) !== 0, i = (e & Ee) !== 0, a = (e & Re) !== 0;
290
+ const s = (e & Le) !== 0, c = (e & Pe) !== 0, i = (e & Ee) !== 0, a = (e & Re) !== 0;
291
291
  if (e) {
292
292
  if (s)
293
293
  return i ? "se-resize" : a ? "ne-resize" : "e-resize";
294
- if (u)
294
+ if (c)
295
295
  return i ? "sw-resize" : a ? "nw-resize" : "w-resize";
296
296
  if (i)
297
297
  return "s-resize";
@@ -349,8 +349,8 @@ function H({
349
349
  } = e;
350
350
  if (j(t, s) < 0)
351
351
  if (o) {
352
- const u = (n + s) / 2;
353
- j(t, u) < 0 ? t = n : t = s;
352
+ const c = (n + s) / 2;
353
+ j(t, c) < 0 ? t = n : t = s;
354
354
  } else
355
355
  t = s;
356
356
  return t = Math.min(r, t), t = I(t), t;
@@ -365,9 +365,9 @@ function B({
365
365
  }) {
366
366
  if (w(e, 0))
367
367
  return t;
368
- const u = Object.values(t), i = Object.values(r), a = [...u], [l, f] = o;
368
+ const c = Object.values(t), i = Object.values(r), a = [...c], [l, f] = o;
369
369
  z(l != null, "Invalid first pivot index"), z(f != null, "Invalid second pivot index");
370
- let c = 0;
370
+ let u = 0;
371
371
  if (s === "keyboard") {
372
372
  {
373
373
  const d = e < 0 ? f : l, p = n[d];
@@ -381,7 +381,7 @@ function B({
381
381
  minSize: g = 0
382
382
  } = p;
383
383
  if (h) {
384
- const x = u[d];
384
+ const x = c[d];
385
385
  if (z(
386
386
  x != null,
387
387
  `Previous layout not found for panel index ${d}`
@@ -403,7 +403,7 @@ function B({
403
403
  minSize: g = 0
404
404
  } = p;
405
405
  if (h) {
406
- const x = u[d];
406
+ const x = c[d];
407
407
  if (z(
408
408
  x != null,
409
409
  `Previous layout not found for panel index ${d}`
@@ -418,7 +418,7 @@ function B({
418
418
  const d = e < 0 ? 1 : -1;
419
419
  let p = e < 0 ? f : l, v = 0;
420
420
  for (; ; ) {
421
- const g = u[p];
421
+ const g = c[p];
422
422
  z(
423
423
  g != null,
424
424
  `Previous layout not found for panel index ${p}`
@@ -436,7 +436,7 @@ function B({
436
436
  {
437
437
  let p = e < 0 ? l : f;
438
438
  for (; p >= 0 && p < n.length; ) {
439
- const v = Math.abs(e) - Math.abs(c), h = u[p];
439
+ const v = Math.abs(e) - Math.abs(u), h = c[p];
440
440
  z(
441
441
  h != null,
442
442
  `Previous layout not found for panel index ${p}`
@@ -445,7 +445,7 @@ function B({
445
445
  panelConstraints: n[p],
446
446
  size: g
447
447
  });
448
- if (!w(h, x) && (c += h - x, a[p] = x, c.toFixed(3).localeCompare(Math.abs(e).toFixed(3), void 0, {
448
+ if (!w(h, x) && (u += h - x, a[p] = x, u.toFixed(3).localeCompare(Math.abs(e).toFixed(3), void 0, {
449
449
  numeric: !0
450
450
  }) >= 0))
451
451
  break;
@@ -455,12 +455,12 @@ function B({
455
455
  if (Qe(i, a))
456
456
  return r;
457
457
  {
458
- const d = e < 0 ? f : l, p = u[d];
458
+ const d = e < 0 ? f : l, p = c[d];
459
459
  z(
460
460
  p != null,
461
461
  `Previous layout not found for panel index ${d}`
462
462
  );
463
- const v = p + c, h = H({
463
+ const v = p + u, h = H({
464
464
  panelConstraints: n[d],
465
465
  size: v
466
466
  });
@@ -507,9 +507,9 @@ function Ce({
507
507
  pointerDownAtPoint: r
508
508
  }) {
509
509
  let s = 0;
510
- const u = new Map(o);
510
+ const c = new Map(o);
511
511
  t.forEach((i) => {
512
- const { disableCursor: a, element: l, orientation: f, panels: c } = i.group;
512
+ const { disableCursor: a, element: l, orientation: f, panels: u } = i.group;
513
513
  let m = 0;
514
514
  r ? f === "horizontal" ? m = (e.clientX - r.x) / l.offsetWidth * 100 : m = (e.clientY - r.y) / l.offsetHeight * 100 : f === "horizontal" ? m = e.clientX < 0 ? -100 : 100 : m = e.clientY < 0 ? -100 : 100;
515
515
  const S = n.get(i.group), {
@@ -522,7 +522,7 @@ function Ce({
522
522
  delta: m,
523
523
  initialLayout: S,
524
524
  panelConstraints: d,
525
- pivotIndices: i.panels.map((g) => c.indexOf(g)),
525
+ pivotIndices: i.panels.map((g) => u.indexOf(g)),
526
526
  prevLayout: p,
527
527
  trigger: "mouse-or-touch"
528
528
  });
@@ -539,7 +539,7 @@ function Ce({
539
539
  }
540
540
  }
541
541
  } else {
542
- u.set(i.group, {
542
+ c.set(i.group, {
543
543
  derivedPanelConstraints: d,
544
544
  layout: h,
545
545
  separatorToPanels: v
@@ -550,7 +550,7 @@ function Ce({
550
550
  }
551
551
  }), C({
552
552
  cursorFlags: s,
553
- mountedGroups: u
553
+ mountedGroups: c
554
554
  }), le();
555
555
  }
556
556
  function he(e) {
@@ -620,8 +620,8 @@ function $({
620
620
  if (a !== f && (s -= f - a, o[i] = f, w(s, 0)))
621
621
  break;
622
622
  }
623
- const u = Object.keys(e);
624
- return o.reduce((i, a, l) => (i[u[l]] = a, i), {});
623
+ const c = Object.keys(e);
624
+ return o.reduce((i, a, l) => (i[c[l]] = a, i), {});
625
625
  }
626
626
  function Me({
627
627
  groupId: e
@@ -643,7 +643,7 @@ function Me({
643
643
  derivedPanelConstraints: o,
644
644
  group: r,
645
645
  layout: s,
646
- separatorToPanels: u
646
+ separatorToPanels: c
647
647
  } = t(), i = $({
648
648
  layout: n,
649
649
  panelConstraints: o
@@ -652,7 +652,7 @@ function Me({
652
652
  mountedGroups: new Map(a.mountedGroups).set(r, {
653
653
  derivedPanelConstraints: o,
654
654
  layout: i,
655
- separatorToPanels: u
655
+ separatorToPanels: c
656
656
  })
657
657
  })), i;
658
658
  }
@@ -664,24 +664,24 @@ function Ge(e) {
664
664
  }
665
665
  function D(e, t) {
666
666
  const n = ee(e), o = Ge(n), r = n.separators.find(
667
- (c) => c.element === e
667
+ (u) => u.element === e
668
668
  );
669
669
  z(r, "Matching separator not found");
670
670
  const s = o.separatorToPanels.get(r);
671
671
  z(s, "Matching panels not found");
672
- const u = s.map((c) => n.panels.indexOf(c)), a = Me({ groupId: n.id }).getLayout(), l = B({
672
+ const c = s.map((u) => n.panels.indexOf(u)), a = Me({ groupId: n.id }).getLayout(), l = B({
673
673
  delta: t,
674
674
  initialLayout: a,
675
675
  panelConstraints: o.derivedPanelConstraints,
676
- pivotIndices: u,
676
+ pivotIndices: c,
677
677
  prevLayout: a,
678
678
  trigger: "keyboard"
679
679
  }), f = $({
680
680
  layout: l,
681
681
  panelConstraints: o.derivedPanelConstraints
682
682
  });
683
- U(a, f) || C((c) => ({
684
- mountedGroups: new Map(c.mountedGroups).set(n, {
683
+ U(a, f) || C((u) => ({
684
+ mountedGroups: new Map(u.mountedGroups).set(n, {
685
685
  derivedPanelConstraints: o.derivedPanelConstraints,
686
686
  layout: f,
687
687
  separatorToPanels: o.separatorToPanels
@@ -716,18 +716,18 @@ function ve(e) {
716
716
  }
717
717
  case "Enter": {
718
718
  e.preventDefault();
719
- const o = ee(t), { derivedPanelConstraints: r, layout: s, separatorToPanels: u } = Ge(o), i = o.separators.find(
720
- (c) => c.element === t
719
+ const o = ee(t), { derivedPanelConstraints: r, layout: s, separatorToPanels: c } = Ge(o), i = o.separators.find(
720
+ (u) => u.element === t
721
721
  );
722
722
  z(i, "Matching separator not found");
723
- const a = u.get(i);
723
+ const a = c.get(i);
724
724
  z(a, "Matching panels not found");
725
725
  const l = a[0], f = r.find(
726
- (c) => c.panelId === l.id
726
+ (u) => u.panelId === l.id
727
727
  );
728
728
  if (z(f, "Panel metadata not found"), f.collapsible) {
729
- const c = s[l.id], m = f.collapsedSize === c ? o.inMemoryLastExpandedPanelSizes[l.id] ?? f.minSize : f.collapsedSize;
730
- D(t, m - c);
729
+ const u = s[l.id], m = f.collapsedSize === u ? o.inMemoryLastExpandedPanelSizes[l.id] ?? f.minSize : f.collapsedSize;
730
+ D(t, m - u);
731
731
  }
732
732
  break;
733
733
  }
@@ -739,8 +739,8 @@ function ve(e) {
739
739
  (a) => a === e.currentTarget
740
740
  );
741
741
  z(s !== null, "Index not found");
742
- const u = e.shiftKey ? s > 0 ? s - 1 : r.length - 1 : s + 1 < r.length ? s + 1 : 0;
743
- r[u].focus();
742
+ const c = e.shiftKey ? s > 0 ? s - 1 : r.length - 1 : s + 1 < r.length ? s + 1 : 0;
743
+ r[c].focus();
744
744
  break;
745
745
  }
746
746
  case "Home": {
@@ -767,14 +767,14 @@ function tt(e, t, n) {
767
767
  y: 1 / 0
768
768
  };
769
769
  for (const s of t) {
770
- const u = et(n, s.rect);
770
+ const c = et(n, s.rect);
771
771
  switch (e) {
772
772
  case "horizontal": {
773
- u.x <= r.x && (o = s, r = u);
773
+ c.x <= r.x && (o = s, r = c);
774
774
  break;
775
775
  }
776
776
  case "vertical": {
777
- u.y <= r.y && (o = s, r = u);
777
+ c.y <= r.y && (o = s, r = c);
778
778
  break;
779
779
  }
780
780
  }
@@ -793,7 +793,7 @@ function Ie(e, t) {
793
793
  return t.forEach((o, r) => {
794
794
  if (r.disabled)
795
795
  return;
796
- const s = nt() ? me.coarse : me.precise, u = we(r), i = tt(r.orientation, u, {
796
+ const s = nt() ? me.coarse : me.precise, c = we(r), i = tt(r.orientation, c, {
797
797
  x: e.clientX,
798
798
  y: e.clientY
799
799
  });
@@ -803,17 +803,17 @@ function Ie(e, t) {
803
803
  function ge(e) {
804
804
  if (e.defaultPrevented)
805
805
  return;
806
- const { mountedGroups: t } = O(), n = Ie(e, t), o = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Map();
806
+ const { mountedGroups: t } = O(), n = Ie(e, t), o = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Map();
807
807
  n.forEach((i) => {
808
808
  o.add(i.group), i.panels.forEach((l) => {
809
809
  r.add(l);
810
810
  }), i.separator && s.add(i.separator);
811
811
  const a = t.get(i.group);
812
- a && u.set(i.group, a.layout);
812
+ a && c.set(i.group, a.layout);
813
813
  }), C({
814
814
  interactionState: {
815
815
  hitRegions: n,
816
- initialLayoutMap: u,
816
+ initialLayoutMap: c,
817
817
  pointerDownAtPoint: { x: e.clientX, y: e.clientY },
818
818
  state: "active"
819
819
  }
@@ -883,15 +883,15 @@ function ot(e) {
883
883
  for (const s of e)
884
884
  if (s.defaultSize !== void 0) {
885
885
  t++;
886
- const u = I(s.defaultSize);
887
- n += u, o[s.panelId] = u;
886
+ const c = I(s.defaultSize);
887
+ n += c, o[s.panelId] = c;
888
888
  } else
889
889
  o[s.panelId] = void 0;
890
890
  const r = e.length - t;
891
891
  if (r !== 0) {
892
892
  const s = I((100 - n) / r);
893
- for (const u of e)
894
- u.defaultSize === void 0 && (o[u.panelId] = s);
893
+ for (const c of e)
894
+ c.defaultSize === void 0 && (o[c.panelId] = s);
895
895
  }
896
896
  return o;
897
897
  }
@@ -899,7 +899,7 @@ function it(e, t, n) {
899
899
  const o = n[0];
900
900
  if (!o)
901
901
  return;
902
- const r = e.panels.find((u) => u.element === t);
902
+ const r = e.panels.find((c) => c.element === t);
903
903
  if (!r || !r.onResize)
904
904
  return;
905
905
  const s = ae({ group: e });
@@ -919,8 +919,8 @@ function st(e) {
919
919
  e.separators.length === 0 || e.separators.length < e.panels.length,
920
920
  "Invalid Group configuration; too many Separator components"
921
921
  );
922
- const n = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Set(), r = new ResizeObserver((c) => {
923
- for (const m of c) {
922
+ const n = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Set(), r = new ResizeObserver((u) => {
923
+ for (const m of u) {
924
924
  const { borderBoxSize: S, target: d } = m;
925
925
  d === e.element ? t && C((p) => {
926
926
  const v = p.mountedGroups.get(e);
@@ -941,17 +941,17 @@ function st(e) {
941
941
  }) : it(e, d, S);
942
942
  }
943
943
  });
944
- r.observe(e.element), e.panels.forEach((c) => {
944
+ r.observe(e.element), e.panels.forEach((u) => {
945
945
  z(
946
- !n.has(c.id),
947
- `Panel ids must be unique; id "${c.id}" was used more than once`
948
- ), n.add(c.id), c.onResize && r.observe(c.element);
946
+ !n.has(u.id),
947
+ `Panel ids must be unique; id "${u.id}" was used more than once`
948
+ ), n.add(u.id), u.onResize && r.observe(u.element);
949
949
  });
950
- const s = pe(e), u = e.panels.map(({ id: c }) => c).join(","), i = e.inMemoryLayouts[u] ?? e.defaultLayout ?? ot(s), a = $({
950
+ const s = pe(e), c = e.panels.map(({ id: u }) => u).join(","), i = e.inMemoryLayouts[c] ?? e.defaultLayout ?? ot(s), a = $({
951
951
  layout: i,
952
952
  panelConstraints: s
953
- }), l = we(e), f = C((c) => ({
954
- mountedGroups: new Map(c.mountedGroups).set(e, {
953
+ }), l = we(e), f = C((u) => ({
954
+ mountedGroups: new Map(u.mountedGroups).set(e, {
955
955
  derivedPanelConstraints: s,
956
956
  layout: a,
957
957
  separatorToPanels: new Map(
@@ -959,11 +959,11 @@ function st(e) {
959
959
  )
960
960
  })
961
961
  }));
962
- return e.element.addEventListener("pointerleave", he), e.separators.forEach((c) => {
962
+ return e.element.addEventListener("pointerleave", he), e.separators.forEach((u) => {
963
963
  z(
964
- !o.has(c.id),
965
- `Separator ids must be unique; id "${c.id}" was used more than once`
966
- ), o.add(c.id), c.element.addEventListener("keydown", ve);
964
+ !o.has(u.id),
965
+ `Separator ids must be unique; id "${u.id}" was used more than once`
966
+ ), o.add(u.id), u.element.addEventListener("keydown", ve);
967
967
  }), f.mountedGroups.size === 1 && (window.addEventListener("pointerdown", ge), window.addEventListener("pointermove", ye), window.addEventListener("pointerup", Se)), function() {
968
968
  t = !1;
969
969
  const m = C((S) => {
@@ -975,19 +975,19 @@ function st(e) {
975
975
  }), m.mountedGroups.size === 0 && (window.removeEventListener("pointerdown", ge), window.removeEventListener("pointermove", ye), window.removeEventListener("pointerup", Se)), r.disconnect();
976
976
  };
977
977
  }
978
- function ue(e) {
978
+ function ce(e) {
979
979
  const t = $e();
980
980
  return `${e ?? t}`;
981
981
  }
982
982
  const F = typeof window < "u" ? Ne : _e;
983
- function ce(e) {
983
+ function ue(e) {
984
984
  const t = T(e);
985
985
  return F(() => {
986
986
  t.current = e;
987
987
  }, [e]), xe((n) => t.current?.(n), [t]);
988
988
  }
989
989
  function fe(...e) {
990
- return ce((t) => {
990
+ return ue((t) => {
991
991
  e.forEach((n) => {
992
992
  if (n)
993
993
  switch (typeof n) {
@@ -1028,17 +1028,17 @@ function ht({
1028
1028
  disableCursor: o,
1029
1029
  disabled: r,
1030
1030
  elementRef: s,
1031
- groupRef: u,
1031
+ groupRef: c,
1032
1032
  id: i,
1033
1033
  onLayoutChange: a,
1034
1034
  orientation: l = "horizontal",
1035
1035
  style: f,
1036
- ...c
1036
+ ...u
1037
1037
  }) {
1038
- const m = T({}), S = ce((b) => {
1038
+ const m = T({}), S = ue((b) => {
1039
1039
  U(m.current, b) || (m.current = b, a?.(b));
1040
- }), d = ue(i), [p, v] = G(!1), [h, g] = G(null), [x, y] = G(n ?? {}), [L, P] = G([]), [E, K] = G([]), te = T({}), V = T({}), X = fe(g, s);
1041
- rt(d, u);
1040
+ }), d = ce(i), [p, v] = G(!1), [h, g] = G(null), [x, y] = G(n ?? {}), [L, P] = G([]), [E, K] = G([]), te = T({}), V = T({}), X = fe(g, s);
1041
+ rt(d, c);
1042
1042
  const Y = be(
1043
1043
  () => ({
1044
1044
  id: d,
@@ -1118,7 +1118,7 @@ function ht({
1118
1118
  return /* @__PURE__ */ W(Te.Provider, { value: Y, children: /* @__PURE__ */ W(
1119
1119
  "div",
1120
1120
  {
1121
- ...c,
1121
+ ...u,
1122
1122
  "aria-orientation": l,
1123
1123
  className: t,
1124
1124
  "data-group": !0,
@@ -1160,7 +1160,7 @@ function vt({
1160
1160
  () => t.getItem(re(e)),
1161
1161
  () => t.getItem(re(e))
1162
1162
  ), o = be(
1163
- () => n ? JSON.parse(n) : null,
1163
+ () => n ? JSON.parse(n) : void 0,
1164
1164
  [n]
1165
1165
  ), r = xe(
1166
1166
  (s) => at({
@@ -1192,7 +1192,7 @@ function de() {
1192
1192
  "Group Context not found; did you render a Panel or Separator outside of a Group?"
1193
1193
  ), e;
1194
1194
  }
1195
- function ut({
1195
+ function ct({
1196
1196
  groupId: e,
1197
1197
  panelId: t
1198
1198
  }) {
@@ -1200,10 +1200,10 @@ function ut({
1200
1200
  const { mountedGroups: i } = O();
1201
1201
  for (const [
1202
1202
  a,
1203
- { derivedPanelConstraints: l, layout: f, separatorToPanels: c }
1203
+ { derivedPanelConstraints: l, layout: f, separatorToPanels: u }
1204
1204
  ] of i)
1205
1205
  if (a.id === e)
1206
- return { derivedPanelConstraints: l, group: a, layout: f, separatorToPanels: c };
1206
+ return { derivedPanelConstraints: l, group: a, layout: f, separatorToPanels: u };
1207
1207
  throw Error(`Group ${e} not found`);
1208
1208
  }, o = () => {
1209
1209
  const i = n().derivedPanelConstraints.find(
@@ -1222,27 +1222,27 @@ function ut({
1222
1222
  if (i !== void 0)
1223
1223
  return i;
1224
1224
  throw Error(`Layout not found for Panel ${t}`);
1225
- }, u = (i) => {
1225
+ }, c = (i) => {
1226
1226
  const a = s();
1227
1227
  if (i === a)
1228
1228
  return;
1229
1229
  const {
1230
1230
  derivedPanelConstraints: l,
1231
1231
  group: f,
1232
- layout: c,
1232
+ layout: u,
1233
1233
  separatorToPanels: m
1234
1234
  } = n(), S = f.panels.findIndex((h) => h.id === t), d = S === f.panels.length - 1, p = B({
1235
1235
  delta: d ? a - i : i - a,
1236
- initialLayout: c,
1236
+ initialLayout: u,
1237
1237
  panelConstraints: l,
1238
1238
  pivotIndices: d ? [S - 1, S] : [S, S + 1],
1239
- prevLayout: c,
1239
+ prevLayout: u,
1240
1240
  trigger: "imperative-api"
1241
1241
  }), v = $({
1242
1242
  layout: p,
1243
1243
  panelConstraints: l
1244
1244
  });
1245
- U(c, v) || C((h) => ({
1245
+ U(u, v) || C((h) => ({
1246
1246
  mountedGroups: new Map(h.mountedGroups).set(f, {
1247
1247
  derivedPanelConstraints: l,
1248
1248
  layout: v,
@@ -1253,11 +1253,11 @@ function ut({
1253
1253
  return {
1254
1254
  collapse: () => {
1255
1255
  const { collapsible: i, collapsedSize: a } = o(), l = s();
1256
- i && l !== a && u(a);
1256
+ i && l !== a && c(a);
1257
1257
  },
1258
1258
  expand: () => {
1259
1259
  const { collapsible: i, collapsedSize: a, minSize: l } = o(), f = s();
1260
- i && f === a && u(l);
1260
+ i && f === a && c(l);
1261
1261
  },
1262
1262
  getSize: () => {
1263
1263
  const { group: i } = n(), a = s(), { element: l } = r(), f = i.orientation === "horizontal" ? l.offsetWidth : l.offsetHeight;
@@ -1275,8 +1275,8 @@ function ut({
1275
1275
  let l;
1276
1276
  switch (typeof i) {
1277
1277
  case "number": {
1278
- const { group: f } = n(), c = ae({ group: f });
1279
- l = I(i / c * 100);
1278
+ const { group: f } = n(), u = ae({ group: f });
1279
+ l = I(i / u * 100);
1280
1280
  break;
1281
1281
  }
1282
1282
  case "string": {
@@ -1284,12 +1284,12 @@ function ut({
1284
1284
  break;
1285
1285
  }
1286
1286
  }
1287
- u(l);
1287
+ c(l);
1288
1288
  }
1289
1289
  }
1290
1290
  };
1291
1291
  }
1292
- function ct(e, t) {
1292
+ function ut(e, t) {
1293
1293
  const { id: n } = de(), o = T({
1294
1294
  collapse: oe,
1295
1295
  expand: oe,
@@ -1303,7 +1303,7 @@ function ct(e, t) {
1303
1303
  ze(t, () => o.current, []), F(() => {
1304
1304
  Object.assign(
1305
1305
  o.current,
1306
- ut({ groupId: n, panelId: e })
1306
+ ct({ groupId: n, panelId: e })
1307
1307
  );
1308
1308
  });
1309
1309
  }
@@ -1314,16 +1314,16 @@ function St({
1314
1314
  collapsible: o = !1,
1315
1315
  defaultSize: r,
1316
1316
  elementRef: s,
1317
- id: u,
1317
+ id: c,
1318
1318
  maxSize: i = "100",
1319
1319
  minSize: a = "0",
1320
1320
  onResize: l,
1321
1321
  panelRef: f,
1322
- style: c,
1322
+ style: u,
1323
1323
  ...m
1324
1324
  }) {
1325
- const S = !!u, d = ue(u), [p, v] = G(null), h = fe(v, s), { id: g, registerPanel: x } = de(), y = l !== null, L = ce((E) => {
1326
- l?.(E, u);
1325
+ const S = !!c, d = ce(c), [p, v] = G(null), h = fe(v, s), { id: g, registerPanel: x } = de(), y = l !== null, L = ue((E) => {
1326
+ l?.(E, c);
1327
1327
  });
1328
1328
  F(() => {
1329
1329
  if (p !== null)
@@ -1352,7 +1352,7 @@ function St({
1352
1352
  a,
1353
1353
  L,
1354
1354
  x
1355
- ]), ct(d, f);
1355
+ ]), ut(d, f);
1356
1356
  const P = Oe(g, d);
1357
1357
  return /* @__PURE__ */ W(
1358
1358
  "div",
@@ -1380,7 +1380,7 @@ function St({
1380
1380
  style: {
1381
1381
  width: "100%",
1382
1382
  height: "100%",
1383
- ...c
1383
+ ...u
1384
1384
  },
1385
1385
  children: e
1386
1386
  }
@@ -1417,14 +1417,14 @@ function dt({
1417
1417
  panelIndex: o
1418
1418
  }) {
1419
1419
  let r, s;
1420
- const u = e[n], i = t.find(
1420
+ const c = e[n], i = t.find(
1421
1421
  (a) => a.panelId === n
1422
1422
  );
1423
1423
  if (i) {
1424
1424
  const a = i.maxSize, l = s = i.collapsible ? i.collapsedSize : i.minSize, f = [o, o + 1];
1425
1425
  s = $({
1426
1426
  layout: B({
1427
- delta: l - u,
1427
+ delta: l - c,
1428
1428
  initialLayout: e,
1429
1429
  panelConstraints: t,
1430
1430
  pivotIndices: f,
@@ -1434,7 +1434,7 @@ function dt({
1434
1434
  panelConstraints: t
1435
1435
  })[n], r = $({
1436
1436
  layout: B({
1437
- delta: a - u,
1437
+ delta: a - c,
1438
1438
  initialLayout: e,
1439
1439
  panelConstraints: t,
1440
1440
  pivotIndices: f,
@@ -1448,7 +1448,7 @@ function dt({
1448
1448
  valueControls: n,
1449
1449
  valueMax: r,
1450
1450
  valueMin: s,
1451
- valueNow: u
1451
+ valueNow: c
1452
1452
  };
1453
1453
  }
1454
1454
  function bt({
@@ -1459,16 +1459,16 @@ function bt({
1459
1459
  style: r,
1460
1460
  ...s
1461
1461
  }) {
1462
- const u = ue(o), [i, a] = G({}), [l, f] = G("inactive"), [c, m] = G(null), S = fe(m, n), {
1462
+ const c = ce(o), [i, a] = G({}), [l, f] = G("inactive"), [u, m] = G(null), S = fe(m, n), {
1463
1463
  id: d,
1464
1464
  orientation: p,
1465
1465
  registerSeparator: v
1466
1466
  } = de(), h = p === "horizontal" ? "vertical" : "horizontal";
1467
1467
  return F(() => {
1468
- if (c !== null) {
1468
+ if (u !== null) {
1469
1469
  const g = {
1470
- element: c,
1471
- id: u
1470
+ element: u,
1471
+ id: c
1472
1472
  }, x = v(g), y = A.addListener(
1473
1473
  "interactionStateChange",
1474
1474
  (P) => {
@@ -1505,7 +1505,7 @@ function bt({
1505
1505
  y(), L(), x();
1506
1506
  };
1507
1507
  }
1508
- }, [c, d, u, v]), /* @__PURE__ */ W(
1508
+ }, [u, d, c, v]), /* @__PURE__ */ W(
1509
1509
  "div",
1510
1510
  {
1511
1511
  ...s,
@@ -1517,8 +1517,8 @@ function bt({
1517
1517
  children: e,
1518
1518
  className: t,
1519
1519
  "data-separator": l,
1520
- "data-testid": u,
1521
- id: u,
1520
+ "data-testid": c,
1521
+ id: c,
1522
1522
  ref: S,
1523
1523
  role: "separator",
1524
1524
  style: {