@opencxh/ui-kit 3.140.1 → 3.141.0

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.js CHANGED
@@ -22,8 +22,8 @@ function Le(t, r, { gap: n = 6, matchWidth: s = !1, placement: a = "bottom-start
22
22
  const f = () => {
23
23
  const d = r.current;
24
24
  if (!d) return;
25
- const p = d.getBoundingClientRect(), h = window.innerHeight - p.bottom, u = p.top, b = a.startsWith("top"), v = b ? u < 200 && h > u : h < 200 && u > h, w = b !== v, g = { position: "fixed" };
26
- w ? (g.bottom = window.innerHeight - p.top + n, g.maxHeight = Math.max(120, u - n * 2)) : (g.top = p.bottom + n, g.maxHeight = Math.max(120, h - n * 2)), a.endsWith("end") ? g.right = window.innerWidth - p.right : g.left = p.left, s && (g.width = p.width), o(g);
25
+ const v = d.getBoundingClientRect(), h = window.innerHeight - v.bottom, u = v.top, b = a.startsWith("top"), p = b ? u < 200 && h > u : h < 200 && u > h, w = b !== p, g = { position: "fixed" };
26
+ w ? (g.bottom = window.innerHeight - v.top + n, g.maxHeight = Math.max(120, u - n * 2)) : (g.top = v.bottom + n, g.maxHeight = Math.max(120, h - n * 2)), a.endsWith("end") ? g.right = window.innerWidth - v.right : g.left = v.left, s && (g.width = v.width), o(g);
27
27
  };
28
28
  return f(), window.addEventListener("scroll", f, !0), window.addEventListener("resize", f), () => {
29
29
  window.removeEventListener("scroll", f, !0), window.removeEventListener("resize", f);
@@ -165,11 +165,11 @@ const Vt = {
165
165
  iconOnly: o = !1,
166
166
  shape: f = "default",
167
167
  className: d,
168
- children: p,
168
+ children: v,
169
169
  disabled: h,
170
170
  ...u
171
171
  }, b) => {
172
- const v = h || s;
172
+ const p = h || s;
173
173
  return /* @__PURE__ */ i(
174
174
  "button",
175
175
  {
@@ -191,7 +191,7 @@ const Vt = {
191
191
  s && "cursor-wait",
192
192
  d
193
193
  ),
194
- disabled: v,
194
+ disabled: p,
195
195
  "aria-busy": s || void 0,
196
196
  ...u,
197
197
  children: [
@@ -203,9 +203,9 @@ const Vt = {
203
203
  }
204
204
  ),
205
205
  !s && a && /* @__PURE__ */ e("span", { className: "flex items-center justify-center shrink-0", children: a }),
206
- !o && p,
206
+ !o && v,
207
207
  !s && l && /* @__PURE__ */ e("span", { className: "flex items-center justify-center shrink-0", children: l }),
208
- o && !s && !a && !l && p
208
+ o && !s && !a && !l && v
209
209
  ]
210
210
  }
211
211
  );
@@ -268,7 +268,7 @@ const Kt = {
268
268
  "aria-label": o,
269
269
  ...f
270
270
  }) => {
271
- const d = typeof r == "number" ? r : Wt(r), p = c(
271
+ const d = typeof r == "number" ? r : Wt(r), v = c(
272
272
  "inline-block shrink-0",
273
273
  Kt[n],
274
274
  s && [
@@ -279,7 +279,7 @@ const Kt = {
279
279
  ), h = {
280
280
  size: d,
281
281
  strokeWidth: 2,
282
- className: p,
282
+ className: v,
283
283
  onClick: s ? a : void 0,
284
284
  "aria-label": o,
285
285
  "aria-hidden": o ? void 0 : !0,
@@ -311,28 +311,28 @@ const Qe = ({
311
311
  disabled: o = !1,
312
312
  triggerLabel: f
313
313
  }) => {
314
- const [d, p] = j(!1), h = se(null), u = se(null), b = Le(d, u, { placement: n });
314
+ const [d, v] = j(!1), h = se(null), u = se(null), b = Le(d, u, { placement: n });
315
315
  G(() => {
316
316
  if (!d) return;
317
317
  const g = (_) => {
318
- h.current && !h.current.contains(_.target) && p(!1);
318
+ h.current && !h.current.contains(_.target) && v(!1);
319
319
  }, x = (_) => {
320
- _.key === "Escape" && p(!1);
320
+ _.key === "Escape" && v(!1);
321
321
  };
322
322
  return document.addEventListener("mousedown", g), document.addEventListener("keydown", x), () => {
323
323
  document.removeEventListener("mousedown", g), document.removeEventListener("keydown", x);
324
324
  };
325
325
  }, [d]);
326
- const v = (g) => {
327
- g.stopPropagation(), !o && p((x) => !x);
328
- }, w = () => p(!1);
326
+ const p = (g) => {
327
+ g.stopPropagation(), !o && v((x) => !x);
328
+ }, w = () => v(!1);
329
329
  return /* @__PURE__ */ i("div", { ref: h, className: c("relative inline-flex", a), children: [
330
330
  /* @__PURE__ */ e(
331
331
  "button",
332
332
  {
333
333
  ref: u,
334
334
  type: "button",
335
- onClick: v,
335
+ onClick: p,
336
336
  disabled: o,
337
337
  "aria-label": f,
338
338
  "aria-expanded": d,
@@ -390,13 +390,13 @@ function Xt({
390
390
  caret: o = !1,
391
391
  menu: f,
392
392
  menuClassName: d,
393
- onClear: p,
393
+ onClear: v,
394
394
  clearLabel: h = "Filter wissen",
395
395
  onClick: u,
396
396
  title: b,
397
- className: v
397
+ className: p
398
398
  }) {
399
- const w = l && !!p, g = s === "pill" ? "rounded-full" : "rounded-md", x = Jt({ active: l, tone: n, shape: s, size: a, className: v }), _ = /* @__PURE__ */ i(ke, { children: [
399
+ const w = l && !!v, g = s === "pill" ? "rounded-full" : "rounded-md", x = Jt({ active: l, tone: n, shape: s, size: a, className: p }), _ = /* @__PURE__ */ i(ke, { children: [
400
400
  r,
401
401
  t,
402
402
  o && /* @__PURE__ */ e(Z, { icon: $e, size: "xs" })
@@ -405,7 +405,7 @@ function Xt({
405
405
  {
406
406
  type: "button",
407
407
  "aria-label": h,
408
- onClick: p,
408
+ onClick: v,
409
409
  className: c("inline-flex h-full items-center pr-3 focus-visible:outline-none focus-visible:focus-ring", g),
410
410
  children: /* @__PURE__ */ e(Z, { icon: we, size: "xs" })
411
411
  }
@@ -461,7 +461,7 @@ const Zt = {
461
461
  children: o,
462
462
  href: f,
463
463
  target: d,
464
- rel: p,
464
+ rel: v,
465
465
  ...h
466
466
  }) => {
467
467
  const u = a || f && (f.startsWith("http") || f.startsWith("mailto:")), b = c(
@@ -478,14 +478,14 @@ const Zt = {
478
478
  ],
479
479
  s && "pointer-events-none cursor-not-allowed text-text-disabled opacity-50",
480
480
  l
481
- ), v = {
481
+ ), p = {
482
482
  ...h,
483
483
  href: s ? void 0 : f,
484
484
  target: u ? "_blank" : d,
485
- rel: u ? "noopener noreferrer" : p,
485
+ rel: u ? "noopener noreferrer" : v,
486
486
  "aria-disabled": s || void 0
487
487
  };
488
- return /* @__PURE__ */ i("a", { className: b, ...v, children: [
488
+ return /* @__PURE__ */ i("a", { className: b, ...p, children: [
489
489
  o,
490
490
  u && /* @__PURE__ */ e(yt, { className: "size-icon-sm shrink-0", "aria-hidden": !0 })
491
491
  ] });
@@ -515,12 +515,12 @@ function rr({
515
515
  o
516
516
  ),
517
517
  children: t.map((d) => {
518
- const p = d.value === r;
518
+ const v = d.value === r;
519
519
  return /* @__PURE__ */ e(
520
520
  "button",
521
521
  {
522
522
  role: "tab",
523
- "aria-selected": p,
523
+ "aria-selected": v,
524
524
  type: "button",
525
525
  onClick: () => n(d.value),
526
526
  className: c(
@@ -529,7 +529,7 @@ function rr({
529
529
  "focus-visible:outline-none focus-visible:focus-ring",
530
530
  l && "min-w-0 flex-1",
531
531
  tr[s],
532
- p ? "bg-surface text-text font-medium shadow-sm" : "text-text-muted hover:text-text"
532
+ v ? "bg-surface text-text font-medium shadow-sm" : "text-text-muted hover:text-text"
533
533
  ),
534
534
  children: d.label
535
535
  },
@@ -557,7 +557,7 @@ function et({
557
557
  disabled: o = !1,
558
558
  loading: f = !1,
559
559
  menuPlacement: d = "bottom-end",
560
- menuLabel: p = "More options"
560
+ menuLabel: v = "More options"
561
561
  }) {
562
562
  const h = o || f, u = l.length > 0;
563
563
  return (
@@ -584,7 +584,7 @@ function et({
584
584
  {
585
585
  placement: d,
586
586
  disabled: h,
587
- triggerLabel: p,
587
+ triggerLabel: v,
588
588
  className: "min-w-menu py-1",
589
589
  trigger: /* @__PURE__ */ e(
590
590
  "span",
@@ -600,25 +600,25 @@ function et({
600
600
  children: /* @__PURE__ */ e($e, { className: "size-icon-md" })
601
601
  }
602
602
  ),
603
- children: (b) => /* @__PURE__ */ e(ke, { children: l.map((v) => /* @__PURE__ */ i(
603
+ children: (b) => /* @__PURE__ */ e(ke, { children: l.map((p) => /* @__PURE__ */ i(
604
604
  "button",
605
605
  {
606
606
  type: "button",
607
607
  onClick: () => {
608
- v.onClick(), b();
608
+ p.onClick(), b();
609
609
  },
610
610
  className: c(
611
611
  "flex w-full items-center gap-2 px-3 py-1.5 text-left text-sm",
612
612
  "transition-colors duration-fast ease-out",
613
613
  "focus-visible:outline-none focus-visible:focus-ring",
614
- v.variant === "destructive" ? "text-danger-fg hover:bg-danger-soft" : "text-text hover:bg-surface-hover"
614
+ p.variant === "destructive" ? "text-danger-fg hover:bg-danger-soft" : "text-text hover:bg-surface-hover"
615
615
  ),
616
616
  children: [
617
- v.icon && /* @__PURE__ */ e("span", { className: "shrink-0", children: v.icon }),
618
- v.label
617
+ p.icon && /* @__PURE__ */ e("span", { className: "shrink-0", children: p.icon }),
618
+ p.label
619
619
  ]
620
620
  },
621
- v.id
621
+ p.id
622
622
  )) })
623
623
  }
624
624
  )
@@ -651,9 +651,9 @@ const ar = {
651
651
  labelClassName: o,
652
652
  className: f,
653
653
  id: d,
654
- ...p
654
+ ...v
655
655
  }, h) => {
656
- const u = ce.useId(), b = d || `checkbox-${u}`, v = !!n, w = ce.useRef(null), g = ce.useCallback(
656
+ const u = ce.useId(), b = d || `checkbox-${u}`, p = !!n, w = ce.useRef(null), g = ce.useCallback(
657
657
  (x) => {
658
658
  w.current = x, typeof h == "function" ? h(x) : h && typeof h == "object" && (h.current = x);
659
659
  },
@@ -669,7 +669,7 @@ const ar = {
669
669
  ref: g,
670
670
  id: b,
671
671
  type: "checkbox",
672
- "aria-invalid": v || void 0,
672
+ "aria-invalid": p || void 0,
673
673
  className: c(
674
674
  // radius-xs (5px): its own step on the scale. At 16px the 9px
675
675
  // button radius reads as a circle and the 7px chip radius still
@@ -680,10 +680,10 @@ const ar = {
680
680
  "focus-visible:outline-none focus-visible:focus-ring",
681
681
  "disabled:cursor-not-allowed disabled:bg-surface-hover",
682
682
  ar[s],
683
- v ? "border-danger-border" : "border-border-strong",
683
+ p ? "border-danger-border" : "border-border-strong",
684
684
  f
685
685
  ),
686
- ...p
686
+ ...v
687
687
  }
688
688
  ),
689
689
  t && /* @__PURE__ */ i("div", { className: "flex-1", children: [
@@ -693,7 +693,7 @@ const ar = {
693
693
  htmlFor: b,
694
694
  className: c(
695
695
  "cursor-pointer",
696
- v ? "text-danger-fg" : "text-text",
696
+ p ? "text-danger-fg" : "text-text",
697
697
  or[s],
698
698
  o
699
699
  ),
@@ -718,13 +718,13 @@ const cr = () => /* @__PURE__ */ e(Z, { icon: Nt, size: "md", color: "current" }
718
718
  className: o,
719
719
  minDate: f,
720
720
  maxDate: d,
721
- format: p = "MM/dd/yyyy",
721
+ format: v = "MM/dd/yyyy",
722
722
  withTime: h = !1
723
723
  }, u) => {
724
- const [b, v] = j(!1), [w, g] = j(() => t || /* @__PURE__ */ new Date()), x = se(null), _ = se(null), S = Le(b, _);
724
+ const [b, p] = j(!1), [w, g] = j(() => t || /* @__PURE__ */ new Date()), x = se(null), _ = se(null), S = Le(b, _);
725
725
  G(() => {
726
726
  const m = (z) => {
727
- x.current && !x.current.contains(z.target) && v(!1);
727
+ x.current && !x.current.contains(z.target) && p(!1);
728
728
  };
729
729
  return b && document.addEventListener("mousedown", m), () => {
730
730
  document.removeEventListener("mousedown", m);
@@ -732,7 +732,7 @@ const cr = () => /* @__PURE__ */ e(Z, { icon: Nt, size: "md", color: "current" }
732
732
  }, [b]);
733
733
  const q = (m) => {
734
734
  if (!m) return "";
735
- const z = m.getDate().toString().padStart(2, "0"), y = (m.getMonth() + 1).toString().padStart(2, "0"), $ = m.getFullYear(), N = p === "dd/MM/yyyy" ? `${z}/${y}/${$}` : p === "yyyy-MM-dd" ? `${$}-${y}-${z}` : `${y}/${z}/${$}`;
735
+ const z = m.getDate().toString().padStart(2, "0"), y = (m.getMonth() + 1).toString().padStart(2, "0"), $ = m.getFullYear(), N = v === "dd/MM/yyyy" ? `${z}/${y}/${$}` : v === "yyyy-MM-dd" ? `${$}-${y}-${z}` : `${y}/${z}/${$}`;
736
736
  return h ? `${N} ${A(m)}` : N;
737
737
  }, A = (m) => `${m.getHours().toString().padStart(2, "0")}:${m.getMinutes().toString().padStart(2, "0")}`, J = (m) => {
738
738
  const [z, y] = m.split(":").map(Number);
@@ -753,14 +753,14 @@ const cr = () => /* @__PURE__ */ e(Z, { icon: Nt, size: "md", color: "current" }
753
753
  y.setHours(t?.getHours() ?? 0, t?.getMinutes() ?? 0, 0, 0), r?.(y);
754
754
  return;
755
755
  }
756
- r?.(m), v(!1);
756
+ r?.(m), p(!1);
757
757
  }
758
758
  }, H = () => {
759
759
  g(new Date(w.getFullYear(), w.getMonth() - 1, 1));
760
760
  }, te = () => {
761
761
  g(new Date(w.getFullYear(), w.getMonth() + 1, 1));
762
762
  }, Y = () => {
763
- r?.(null), v(!1);
763
+ r?.(null), p(!1);
764
764
  }, K = c(
765
765
  "w-full border border-border-strong rounded-tile transition-colors duration-fast",
766
766
  "bg-surface text-text",
@@ -800,7 +800,7 @@ const cr = () => /* @__PURE__ */ e(Z, { icon: Nt, size: "md", color: "current" }
800
800
  disabled: s,
801
801
  required: a,
802
802
  readOnly: !0,
803
- onClick: () => !s && v(!b),
803
+ onClick: () => !s && p(!b),
804
804
  className: c(K, "pr-10 cursor-pointer")
805
805
  }
806
806
  ),
@@ -808,7 +808,7 @@ const cr = () => /* @__PURE__ */ e(Z, { icon: Nt, size: "md", color: "current" }
808
808
  "button",
809
809
  {
810
810
  type: "button",
811
- onClick: () => !s && v(!b),
811
+ onClick: () => !s && p(!b),
812
812
  disabled: s,
813
813
  className: "absolute inset-y-0 right-0 flex items-center pr-3 text-text-muted hover:text-text-muted",
814
814
  children: /* @__PURE__ */ e(cr, {})
@@ -886,7 +886,7 @@ const cr = () => /* @__PURE__ */ e(Z, { icon: Nt, size: "md", color: "current" }
886
886
  /* @__PURE__ */ e(
887
887
  "button",
888
888
  {
889
- onClick: () => v(!1),
889
+ onClick: () => p(!1),
890
890
  className: "text-sm text-info-fg hover:underline",
891
891
  children: "Close"
892
892
  }
@@ -910,11 +910,11 @@ const cr = () => /* @__PURE__ */ e(Z, { icon: Nt, size: "md", color: "current" }
910
910
  options: o,
911
911
  placeholder: f,
912
912
  containerClassName: d,
913
- labelClassName: p,
913
+ labelClassName: v,
914
914
  className: h,
915
915
  id: u,
916
916
  searchable: b,
917
- multiple: v,
917
+ multiple: p,
918
918
  value: w,
919
919
  onChange: g,
920
920
  allowCreate: x,
@@ -955,12 +955,12 @@ const cr = () => /* @__PURE__ */ e(Z, { icon: Nt, size: "md", color: "current" }
955
955
  () => Array.isArray(w) ? w.map(Te) : w == null ? void 0 : Te(w),
956
956
  [w]
957
957
  ), N = (T) => {
958
- if (v) {
958
+ if (p) {
959
959
  const C = Array.isArray($) ? $ : [], D = C.includes(T) ? C.filter((O) => O !== T) : [...C, T];
960
960
  g?.(D);
961
961
  } else
962
962
  g?.(T), I(!1), te("");
963
- }, W = v ? null : k.find((T) => T.value === $), re = v ? k.filter(
963
+ }, W = p ? null : k.find((T) => T.value === $), re = p ? k.filter(
964
964
  (T) => Array.isArray($) && $.includes(T.value)
965
965
  ) : [], ee = b && H ? k.filter(
966
966
  (T) => T.label.toLowerCase().includes(H.toLowerCase())
@@ -972,11 +972,11 @@ const cr = () => /* @__PURE__ */ e(Z, { icon: Nt, size: "md", color: "current" }
972
972
  label: C
973
973
  };
974
974
  if (z(k, D.value) || z(k, D.label)) {
975
- N(D.value), te(""), v || I(!1);
975
+ N(D.value), te(""), p || I(!1);
976
976
  return;
977
977
  }
978
- m((O) => [...O, D]), N(D.value), te(""), v || I(!1);
979
- }, B = () => v ? re.length > 0 ? re.map((T) => T.label).join(", ") : f || "Select options" : W?.label || f || "Select an option";
978
+ m((O) => [...O, D]), N(D.value), te(""), p || I(!1);
979
+ }, B = () => p ? re.length > 0 ? re.map((T) => T.label).join(", ") : f || "Select options" : W?.label || f || "Select an option";
980
980
  return /* @__PURE__ */ i(
981
981
  "div",
982
982
  {
@@ -996,7 +996,7 @@ const cr = () => /* @__PURE__ */ e(Z, { icon: Nt, size: "md", color: "current" }
996
996
  className: c(
997
997
  "block text-xs font-semibold uppercase tracking-label mb-1.5",
998
998
  J ? "text-danger-fg" : "text-text-muted",
999
- p
999
+ v
1000
1000
  ),
1001
1001
  children: t
1002
1002
  }
@@ -1067,7 +1067,7 @@ const cr = () => /* @__PURE__ */ e(Z, { icon: Nt, size: "md", color: "current" }
1067
1067
  }
1068
1068
  ),
1069
1069
  /* @__PURE__ */ i("ul", { className: "min-h-0 flex-1 overflow-auto py-1", children: [
1070
- f && !v && /* @__PURE__ */ e(
1070
+ f && !p && /* @__PURE__ */ e(
1071
1071
  "li",
1072
1072
  {
1073
1073
  className: "cursor-pointer px-3 py-1.5 text-sm text-text-muted hover:bg-surface-hover",
@@ -1078,7 +1078,7 @@ const cr = () => /* @__PURE__ */ e(Z, { icon: Nt, size: "md", color: "current" }
1078
1078
  }
1079
1079
  ),
1080
1080
  ee.map((T) => {
1081
- const C = v ? Array.isArray($) && $.includes(T.value) : $ === T.value;
1081
+ const C = p ? Array.isArray($) && $.includes(T.value) : $ === T.value;
1082
1082
  return /* @__PURE__ */ e(
1083
1083
  "li",
1084
1084
  {
@@ -1090,7 +1090,7 @@ const cr = () => /* @__PURE__ */ e(Z, { icon: Nt, size: "md", color: "current" }
1090
1090
  C && "bg-accent-soft text-accent font-semibold"
1091
1091
  ),
1092
1092
  children: /* @__PURE__ */ i("div", { className: "flex items-center", children: [
1093
- v && /* @__PURE__ */ e(
1093
+ p && /* @__PURE__ */ e(
1094
1094
  "input",
1095
1095
  {
1096
1096
  type: "checkbox",
@@ -1140,11 +1140,11 @@ const mr = {
1140
1140
  endIcon: o,
1141
1141
  loading: f = !1,
1142
1142
  containerClassName: d,
1143
- labelClassName: p,
1143
+ labelClassName: v,
1144
1144
  className: h,
1145
1145
  id: u,
1146
1146
  ...b
1147
- }, v) => {
1147
+ }, p) => {
1148
1148
  const w = ce.useId(), g = u || `textfield-${w}`, x = !!n, _ = n || r ? `${g}-description` : void 0;
1149
1149
  return /* @__PURE__ */ i("div", { className: c("flex flex-col", a && "w-full", d), children: [
1150
1150
  t && /* @__PURE__ */ e(
@@ -1154,7 +1154,7 @@ const mr = {
1154
1154
  className: c(
1155
1155
  tt,
1156
1156
  x ? "text-danger-fg" : "text-text-muted",
1157
- p
1157
+ v
1158
1158
  ),
1159
1159
  children: t
1160
1160
  }
@@ -1164,7 +1164,7 @@ const mr = {
1164
1164
  /* @__PURE__ */ e(
1165
1165
  "input",
1166
1166
  {
1167
- ref: v,
1167
+ ref: p,
1168
1168
  id: g,
1169
1169
  "aria-invalid": x || void 0,
1170
1170
  "aria-describedby": _,
@@ -1209,11 +1209,11 @@ function fr({
1209
1209
  templatePlaceholder: o,
1210
1210
  showTemplate: f = !0
1211
1211
  }) {
1212
- const [d, p] = j([]);
1212
+ const [d, v] = j([]);
1213
1213
  G(() => {
1214
1214
  let u = !0;
1215
1215
  return Promise.resolve(n?.()).then((b) => {
1216
- u && b && p(b.data ?? []);
1216
+ u && b && v(b.data ?? []);
1217
1217
  }).catch(() => {
1218
1218
  }), () => {
1219
1219
  u = !1;
@@ -1265,11 +1265,11 @@ const ve = (...t) => t.filter(Boolean).join(" "), hr = (t) => /* @__PURE__ */ e(
1265
1265
  loading: o = !1,
1266
1266
  containerClassName: f,
1267
1267
  labelClassName: d,
1268
- className: p,
1268
+ className: v,
1269
1269
  id: h,
1270
1270
  options: u,
1271
1271
  onRemoteSearch: b,
1272
- onSelect: v,
1272
+ onSelect: p,
1273
1273
  debounceTime: w = 500,
1274
1274
  showAllOnOpen: g = !1,
1275
1275
  value: x,
@@ -1315,7 +1315,7 @@ const ve = (...t) => t.filter(Boolean).join(" "), hr = (t) => /* @__PURE__ */ e(
1315
1315
  const B = P.target.value;
1316
1316
  te(B), K(!0), z(!0), _ && _(P);
1317
1317
  }, N = (P) => {
1318
- te(P.label), K(!1), z(!1), v && v(P.value);
1318
+ te(P.label), K(!1), z(!1), p && p(P.value);
1319
1319
  }, W = () => {
1320
1320
  (u.length > 0 || b) && (K(!0), z(!1));
1321
1321
  }, re = o || ie, ee = Y && (y.length > 0 || re), X = pe(() => q || I, [q]);
@@ -1365,7 +1365,7 @@ const ve = (...t) => t.filter(Boolean).join(" "), hr = (t) => /* @__PURE__ */ e(
1365
1365
  // Altijd padding rechts voor de dropdown/loading icon
1366
1366
  // State styles
1367
1367
  J ? "border-danger-border text-danger-fg focus-visible:focus-ring" : "border-border-strong text-text",
1368
- p || ""
1368
+ v || ""
1369
1369
  ),
1370
1370
  ...S
1371
1371
  }
@@ -1445,7 +1445,7 @@ const st = be(
1445
1445
  className: o,
1446
1446
  disabled: f,
1447
1447
  ...d
1448
- }, p) => /* @__PURE__ */ i(
1448
+ }, v) => /* @__PURE__ */ i(
1449
1449
  "div",
1450
1450
  {
1451
1451
  className: c(
@@ -1463,7 +1463,7 @@ const st = be(
1463
1463
  /* @__PURE__ */ e(
1464
1464
  "input",
1465
1465
  {
1466
- ref: p,
1466
+ ref: v,
1467
1467
  type: "search",
1468
1468
  value: t,
1469
1469
  disabled: f,
@@ -1564,12 +1564,12 @@ const vr = ({
1564
1564
  showCheck: f = !0,
1565
1565
  header: d
1566
1566
  }) => {
1567
- const [p, h] = j(!1), [u, b] = j(null), [v, w] = j({ top: 0, left: 0 }), g = se(null), x = se(null), _ = se(null), S = se(null), q = Le(p, x, { placement: a }), A = se(null), J = () => Array.from(
1567
+ const [v, h] = j(!1), [u, b] = j(null), [p, w] = j({ top: 0, left: 0 }), g = se(null), x = se(null), _ = se(null), S = se(null), q = Le(v, x, { placement: a }), A = se(null), J = () => Array.from(
1568
1568
  S.current?.querySelectorAll("button[data-option-value]:not(:disabled)") ?? []
1569
1569
  );
1570
1570
  G(() => {
1571
- p && J()[0]?.focus();
1572
- }, [p]);
1571
+ v && J()[0]?.focus();
1572
+ }, [v]);
1573
1573
  const V = (m) => {
1574
1574
  if (!["ArrowDown", "ArrowUp", "Home", "End"].includes(m.key)) return;
1575
1575
  const y = J();
@@ -1582,17 +1582,17 @@ const vr = ({
1582
1582
  const m = (z) => {
1583
1583
  g.current && (!g.current.contains(z.target) || _.current && !_.current.contains(z.target)) && (h(!1), b(null), A.current && (clearTimeout(A.current), A.current = null));
1584
1584
  };
1585
- return p && document.addEventListener("mousedown", m), () => {
1585
+ return v && document.addEventListener("mousedown", m), () => {
1586
1586
  document.removeEventListener("mousedown", m);
1587
1587
  };
1588
- }, [p]), G(() => {
1588
+ }, [v]), G(() => {
1589
1589
  const m = (z) => {
1590
1590
  z.key === "Escape" && (h(!1), b(null), x.current?.focus(), A.current && (clearTimeout(A.current), A.current = null));
1591
1591
  };
1592
- return p && document.addEventListener("keydown", m), () => {
1592
+ return v && document.addEventListener("keydown", m), () => {
1593
1593
  document.removeEventListener("keydown", m);
1594
1594
  };
1595
- }, [p]), G(() => {
1595
+ }, [v]), G(() => {
1596
1596
  if (u && g.current) {
1597
1597
  const m = g.current.querySelector(
1598
1598
  `[data-option-value="${u}"]`
@@ -1609,7 +1609,7 @@ const vr = ({
1609
1609
  A.current && clearTimeout(A.current);
1610
1610
  }, []);
1611
1611
  const I = (m) => {
1612
- m.stopPropagation(), !l && (h(!p), b(null), A.current && (clearTimeout(A.current), A.current = null));
1612
+ m.stopPropagation(), !l && (h(!v), b(null), A.current && (clearTimeout(A.current), A.current = null));
1613
1613
  }, H = (m, z, y) => {
1614
1614
  m.stopPropagation(), !z.disabled && !z.divider && (!z.children || z.children.length === 0) && (s?.(z.value, y), h(!1), b(null));
1615
1615
  }, te = (m) => {
@@ -1643,14 +1643,14 @@ const vr = ({
1643
1643
  onClick: I,
1644
1644
  disabled: l,
1645
1645
  "aria-haspopup": "menu",
1646
- "aria-expanded": p,
1646
+ "aria-expanded": v,
1647
1647
  className: c("inline-flex items-center justify-center", {
1648
1648
  "opacity-50 cursor-not-allowed": l
1649
1649
  }),
1650
1650
  children: t
1651
1651
  }
1652
1652
  ),
1653
- p && /* @__PURE__ */ e("div", { ref: S, className: ie, style: q, onKeyDown: V, children: /* @__PURE__ */ i("div", { className: "p-2", role: "menu", children: [
1653
+ v && /* @__PURE__ */ e("div", { ref: S, className: ie, style: q, onKeyDown: V, children: /* @__PURE__ */ i("div", { className: "p-2", role: "menu", children: [
1654
1654
  d && (typeof d == "string" ? /* @__PURE__ */ e("div", { className: "text-xs font-medium text-text-muted uppercase tracking-label px-3 py-2", children: d }) : d),
1655
1655
  r.map((m, z) => {
1656
1656
  if (m.divider)
@@ -1701,8 +1701,8 @@ const vr = ({
1701
1701
  ref: _,
1702
1702
  className: k,
1703
1703
  style: {
1704
- top: `${v.top}px`,
1705
- left: `${v.left}px`
1704
+ top: `${p.top}px`,
1705
+ left: `${p.left}px`
1706
1706
  },
1707
1707
  onMouseEnter: () => {
1708
1708
  A.current && (clearTimeout(A.current), A.current = null), b(m.value);
@@ -1905,11 +1905,11 @@ const Sr = (t) => {
1905
1905
  onSearchChange: o,
1906
1906
  filters: f = [],
1907
1907
  toolbarActions: d = [],
1908
- paginated: p = !1,
1908
+ paginated: v = !1,
1909
1909
  defaultPageSize: h = 10,
1910
1910
  actions: u = [],
1911
1911
  onRowClick: b,
1912
- selectable: v = !1,
1912
+ selectable: p = !1,
1913
1913
  selectedRows: w = [],
1914
1914
  onSelectionChange: g,
1915
1915
  getRowKey: x = (te, Y) => Y,
@@ -1956,10 +1956,10 @@ const Sr = (t) => {
1956
1956
  return oe < F ? ue = -1 : oe > F && (ue = 1), m.direction === "desc" ? -ue : ue;
1957
1957
  }) : W;
1958
1958
  }, [W, m, r]), ee = pe(() => {
1959
- if (!p) return re;
1959
+ if (!v) return re;
1960
1960
  const E = y.page * y.pageSize, U = E + y.pageSize;
1961
1961
  return re.slice(E, U);
1962
- }, [re, y, p]), X = xe(
1962
+ }, [re, y, v]), X = xe(
1963
1963
  (E) => {
1964
1964
  r.find((ne) => ne.id === E)?.sortable && z((ne) => ne.column !== E ? { column: E, direction: "asc" } : ne.direction === "asc" ? { column: E, direction: "desc" } : { column: null, direction: null });
1965
1965
  },
@@ -1996,7 +1996,7 @@ const Sr = (t) => {
1996
1996
  return w.some(
1997
1997
  (ne, oe) => x(ne, oe) === U
1998
1998
  );
1999
- }), Q = Nr[J], ae = H ? "bg-surface-sunk" : "bg-surface", de = c("text-text", Q), ge = s || f.length > 0 || d.length > 0, he = p && C > 0, Pe = he || S !== void 0;
1999
+ }), Q = Nr[J], ae = H ? "bg-surface-sunk" : "bg-surface", de = c("text-text", Q), ge = s || f.length > 0 || d.length > 0, he = v && C > 0, Pe = he || S !== void 0;
2000
2000
  return /* @__PURE__ */ i("div", { className: c("flex min-w-0 flex-col", V), children: [
2001
2001
  ge && /* @__PURE__ */ i("div", { className: "flex flex-wrap items-center gap-2 pb-3", children: [
2002
2002
  s && /* @__PURE__ */ e(
@@ -2013,7 +2013,7 @@ const Sr = (t) => {
2013
2013
  ] }),
2014
2014
  /* @__PURE__ */ e("div", { className: "relative w-full overflow-x-auto rounded-lg ring-1 ring-border", children: /* @__PURE__ */ i("table", { ref: N, className: "min-w-full border-collapse text-base text-text", children: [
2015
2015
  /* @__PURE__ */ e("thead", { className: c(ae, "h-control-lg"), children: /* @__PURE__ */ i("tr", { children: [
2016
- v && /* @__PURE__ */ e("th", { className: c(de, "w-10"), children: /* @__PURE__ */ e(
2016
+ p && /* @__PURE__ */ e("th", { className: c(de, "w-10"), children: /* @__PURE__ */ e(
2017
2017
  ye,
2018
2018
  {
2019
2019
  size: "sm",
@@ -2061,7 +2061,7 @@ const Sr = (t) => {
2061
2061
  u.length > 0 && /* @__PURE__ */ e("th", { className: c(de, "w-10"), children: /* @__PURE__ */ e("span", { className: "sr-only", children: "Actions" }) })
2062
2062
  ] }) }),
2063
2063
  /* @__PURE__ */ e("tbody", { children: n ? Array.from({ length: kr }).map((E, U) => /* @__PURE__ */ i("tr", { className: "animate-pulse border-t border-border-subtle", "aria-hidden": !0, children: [
2064
- v && /* @__PURE__ */ e("td", { className: c(de, "h-row-lg"), children: /* @__PURE__ */ e("span", { className: "block size-4 rounded-xs bg-surface-hover" }) }),
2064
+ p && /* @__PURE__ */ e("td", { className: c(de, "h-row-lg"), children: /* @__PURE__ */ e("span", { className: "block size-4 rounded-xs bg-surface-hover" }) }),
2065
2065
  r.map((ne, oe) => /* @__PURE__ */ e("td", { className: c(de, "h-row-lg"), style: { width: ne.width }, children: /* @__PURE__ */ e(
2066
2066
  "span",
2067
2067
  {
@@ -2073,7 +2073,7 @@ const Sr = (t) => {
2073
2073
  ] }, `skeleton-${U}`)) : ee.length === 0 ? /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e(
2074
2074
  "td",
2075
2075
  {
2076
- colSpan: r.length + (v ? 1 : 0) + (u.length > 0 ? 1 : 0),
2076
+ colSpan: r.length + (p ? 1 : 0) + (u.length > 0 ? 1 : 0),
2077
2077
  className: c(
2078
2078
  de,
2079
2079
  "border-t border-border-subtle py-10 text-center text-text-muted"
@@ -2101,7 +2101,7 @@ const Sr = (t) => {
2101
2101
  F.stopPropagation(), b?.(E, U);
2102
2102
  },
2103
2103
  children: [
2104
- v && /* @__PURE__ */ e("td", { className: de, children: /* @__PURE__ */ e(
2104
+ p && /* @__PURE__ */ e("td", { className: de, children: /* @__PURE__ */ e(
2105
2105
  ye,
2106
2106
  {
2107
2107
  size: "sm",
@@ -2247,12 +2247,12 @@ const Sr = (t) => {
2247
2247
  }) => {
2248
2248
  const [f, d] = j(
2249
2249
  r || n || t[0]?.id || ""
2250
- ), p = n || f, h = (g) => {
2250
+ ), v = n || f, h = (g) => {
2251
2251
  s ? s(g) : d(g);
2252
2252
  }, u = {
2253
- activeTab: p,
2253
+ activeTab: v,
2254
2254
  setActiveTab: h
2255
- }, b = t.find((g) => g.id === p), v = c(
2255
+ }, b = t.find((g) => g.id === v), p = c(
2256
2256
  "flex",
2257
2257
  {
2258
2258
  "border-b border-border px-2": a === "default" || a === "underline",
@@ -2287,16 +2287,16 @@ const Sr = (t) => {
2287
2287
  return c(_, S, q, A, J, V);
2288
2288
  };
2289
2289
  return /* @__PURE__ */ e(Er.Provider, { value: u, children: /* @__PURE__ */ i("div", { children: [
2290
- /* @__PURE__ */ e("div", { className: v, role: "tablist", children: t.map((g) => /* @__PURE__ */ e(
2290
+ /* @__PURE__ */ e("div", { className: p, role: "tablist", children: t.map((g) => /* @__PURE__ */ e(
2291
2291
  "button",
2292
2292
  {
2293
2293
  type: "button",
2294
2294
  role: "tab",
2295
- "aria-selected": p === g.id,
2295
+ "aria-selected": v === g.id,
2296
2296
  "aria-controls": `tabpanel-${g.id}`,
2297
2297
  disabled: g.disabled,
2298
2298
  onClick: () => !g.disabled && h(g.id),
2299
- className: w(g, p === g.id),
2299
+ className: w(g, v === g.id),
2300
2300
  children: /* @__PURE__ */ i("span", { className: "flex items-center gap-2", children: [
2301
2301
  g.label,
2302
2302
  g.badge && /* @__PURE__ */ e("span", { className: "inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium bg-surface-hover text-text-muted", children: g.badge })
@@ -2308,8 +2308,8 @@ const Sr = (t) => {
2308
2308
  "div",
2309
2309
  {
2310
2310
  role: "tabpanel",
2311
- id: `tabpanel-${p}`,
2312
- "aria-labelledby": `tab-${p}`,
2311
+ id: `tabpanel-${v}`,
2312
+ "aria-labelledby": `tab-${v}`,
2313
2313
  className: "mt-4",
2314
2314
  children: b.content
2315
2315
  }
@@ -2332,7 +2332,7 @@ function at({
2332
2332
  className: o,
2333
2333
  backdropClassName: f,
2334
2334
  children: d,
2335
- footer: p,
2335
+ footer: v,
2336
2336
  showCloseButton: h = !0
2337
2337
  }) {
2338
2338
  const u = se(null), b = se(null);
@@ -2345,7 +2345,7 @@ function at({
2345
2345
  }, [t, l, r]), G(() => (t ? (b.current = document.activeElement, u.current && u.current.focus(), document.body.style.overflow = "hidden") : (b.current && b.current.focus(), document.body.style.overflow = ""), () => {
2346
2346
  document.body.style.overflow = "";
2347
2347
  }), [t]);
2348
- const v = (w) => {
2348
+ const p = (w) => {
2349
2349
  a && w.target === w.currentTarget && r();
2350
2350
  };
2351
2351
  return t ? /* @__PURE__ */ e(
@@ -2357,7 +2357,7 @@ function at({
2357
2357
  // 'animate-fade-in',
2358
2358
  f
2359
2359
  ),
2360
- onClick: v,
2360
+ onClick: p,
2361
2361
  children: /* @__PURE__ */ i(
2362
2362
  "div",
2363
2363
  {
@@ -2394,7 +2394,7 @@ function at({
2394
2394
  )
2395
2395
  ] }),
2396
2396
  /* @__PURE__ */ e("div", { className: "p-6", children: d }),
2397
- p && /* @__PURE__ */ e("div", { className: "px-6 py-4", children: p })
2397
+ v && /* @__PURE__ */ e("div", { className: "px-6 py-4", children: v })
2398
2398
  ]
2399
2399
  }
2400
2400
  )
@@ -2443,12 +2443,12 @@ const Mr = {
2443
2443
  italic: o = !1,
2444
2444
  underline: f = !1,
2445
2445
  lineHeight: d = "normal",
2446
- as: p,
2446
+ as: v,
2447
2447
  className: h,
2448
2448
  children: u,
2449
2449
  ...b
2450
2450
  }) => {
2451
- const v = p || Lr(t), w = t === "caption", g = t === "label", x = t === "code", _ = c(
2451
+ const p = v || Lr(t), w = t === "caption", g = t === "label", x = t === "code", _ = c(
2452
2452
  "font-sans",
2453
2453
  // Variant — caption and label pin their own size/weight
2454
2454
  w && "text-xs text-text-subtle",
@@ -2467,7 +2467,7 @@ const Mr = {
2467
2467
  l && "truncate",
2468
2468
  h
2469
2469
  );
2470
- return /* @__PURE__ */ e(v, { className: _, ...b, children: u });
2470
+ return /* @__PURE__ */ e(p, { className: _, ...b, children: u });
2471
2471
  };
2472
2472
  function Lr(t) {
2473
2473
  return {
@@ -2487,11 +2487,11 @@ const Pr = ({
2487
2487
  accept: o,
2488
2488
  onListFiles: f,
2489
2489
  onListMounts: d,
2490
- onUploadFile: p,
2490
+ onUploadFile: v,
2491
2491
  onDownloadFile: h,
2492
2492
  onRegisterFile: u
2493
2493
  }) => {
2494
- const [b, v] = j(!1), [w, g] = j([]), [x, _] = j(null), [S, q] = j("/"), [A, J] = j([]), [V, I] = j(!1), [H, te] = j(""), [Y, K] = j(
2494
+ const [b, p] = j(!1), [w, g] = j([]), [x, _] = j(null), [S, q] = j("/"), [A, J] = j([]), [V, I] = j(!1), [H, te] = j(""), [Y, K] = j(
2495
2495
  typeof t == "object" ? t : null
2496
2496
  ), [ie, k] = j(!1), [m, z] = j(""), y = se(null);
2497
2497
  G(() => {
@@ -2537,7 +2537,7 @@ const Pr = ({
2537
2537
  providerKey: L.name,
2538
2538
  ownerId: "me"
2539
2539
  };
2540
- K(de), r(de, ae), v(!1);
2540
+ K(de), r(de, ae), p(!1);
2541
2541
  } catch (Q) {
2542
2542
  console.error("Local file selection failed", Q);
2543
2543
  } finally {
@@ -2549,7 +2549,7 @@ const Pr = ({
2549
2549
  if (!(!L || !x)) {
2550
2550
  I(!0);
2551
2551
  try {
2552
- const Q = await L.arrayBuffer(), ae = await p?.({
2552
+ const Q = await L.arrayBuffer(), ae = await v?.({
2553
2553
  file: new Uint8Array(Q),
2554
2554
  filename: L.name,
2555
2555
  mimeType: L.type || "application/octet-stream",
@@ -2558,7 +2558,7 @@ const Pr = ({
2558
2558
  });
2559
2559
  if (ae?.data) {
2560
2560
  const de = ae.data;
2561
- K(de), r(de, new Uint8Array(Q)), v(!1);
2561
+ K(de), r(de, new Uint8Array(Q)), p(!1);
2562
2562
  }
2563
2563
  } catch (Q) {
2564
2564
  console.error("Upload failed", Q);
@@ -2591,7 +2591,7 @@ const Pr = ({
2591
2591
  I(!0);
2592
2592
  try {
2593
2593
  const L = await h?.(M.id);
2594
- K(M), r(M, L), v(!1);
2594
+ K(M), r(M, L), p(!1);
2595
2595
  } catch (L) {
2596
2596
  console.error("Failed to download file", L);
2597
2597
  } finally {
@@ -2696,7 +2696,7 @@ const Pr = ({
2696
2696
  /* @__PURE__ */ i(
2697
2697
  "div",
2698
2698
  {
2699
- onClick: () => !l && v(!0),
2699
+ onClick: () => !l && p(!0),
2700
2700
  className: c(
2701
2701
  "flex items-center gap-3 px-3 py-2 border rounded-lg cursor-pointer transition-colors",
2702
2702
  "hover:border-border-strong bg-surface",
@@ -2723,7 +2723,7 @@ const Pr = ({
2723
2723
  {
2724
2724
  open: b,
2725
2725
  onClose: () => {
2726
- v(!1), _(null), q("/"), k(!1);
2726
+ p(!1), _(null), q("/"), k(!1);
2727
2727
  },
2728
2728
  title: x ? `Explorer: ${x.name}` : "Select Storage Mount",
2729
2729
  size: "lg",
@@ -2874,11 +2874,11 @@ const Pr = ({
2874
2874
  containerClassName: o,
2875
2875
  labelClassName: f,
2876
2876
  className: d,
2877
- id: p,
2877
+ id: v,
2878
2878
  rows: h = 4,
2879
2879
  ...u
2880
2880
  }, b) => {
2881
- const v = ce.useId(), w = p || `textarea-${v}`, g = !!n, x = n || r ? `${w}-description` : void 0;
2881
+ const p = ce.useId(), w = v || `textarea-${p}`, g = !!n, x = n || r ? `${w}-description` : void 0;
2882
2882
  return /* @__PURE__ */ i("div", { className: c("flex flex-col", a && "w-full", o), children: [
2883
2883
  t && /* @__PURE__ */ e(
2884
2884
  "label",
@@ -3027,11 +3027,11 @@ const ts = ({
3027
3027
  validate: o,
3028
3028
  submitButton: f = { label: "Submit", variant: "primary" },
3029
3029
  cancelButton: d = { label: "Cancel", variant: "outline" },
3030
- showButtons: p = !0,
3030
+ showButtons: v = !0,
3031
3031
  layout: h = "vertical",
3032
3032
  size: u = "md",
3033
3033
  loading: b = !1,
3034
- className: v,
3034
+ className: p,
3035
3035
  ref: w,
3036
3036
  sdk: g
3037
3037
  }) => {
@@ -3569,12 +3569,12 @@ const ts = ({
3569
3569
  "max-w-6xl": u === "lg",
3570
3570
  "max-w-full": u === "full"
3571
3571
  },
3572
- v
3572
+ p
3573
3573
  ), ie = u === "full" ? "md" : u;
3574
3574
  return /* @__PURE__ */ i("form", { ref: w, onSubmit: H, className: K, children: [
3575
- !p && /* @__PURE__ */ e("button", { type: "submit", className: "hidden", tabIndex: -1, "aria-hidden": !0 }),
3575
+ !v && /* @__PURE__ */ e("button", { type: "submit", className: "hidden", tabIndex: -1, "aria-hidden": !0 }),
3576
3576
  /* @__PURE__ */ e("div", { className: "flex flex-col", children: t.map(Y) }),
3577
- p && /* @__PURE__ */ e("div", { className: "flex items-center gap-2 border-t border-border-subtle py-4", children: /* @__PURE__ */ i(ke, { children: [
3577
+ v && /* @__PURE__ */ e("div", { className: "flex items-center gap-2 border-t border-border-subtle py-4", children: /* @__PURE__ */ i(ke, { children: [
3578
3578
  /* @__PURE__ */ e("div", { className: "ml-auto" }),
3579
3579
  s && /* @__PURE__ */ e(
3580
3580
  le,
@@ -3794,7 +3794,7 @@ function Be({
3794
3794
  tableColumns: f,
3795
3795
  tableRows: d
3796
3796
  }) {
3797
- const p = r ?? (o ? "table" : "text"), h = n ?? d ?? Kr[p], u = s ?? f ?? (p === "cards" ? 3 : 6), b = /* @__PURE__ */ e("div", { className: c("w-full animate-pulse", l), "aria-hidden": !0, children: a ?? /* @__PURE__ */ e(Ur, { shape: p, rows: h, columns: u }) });
3797
+ const v = r ?? (o ? "table" : "text"), h = n ?? d ?? Kr[v], u = s ?? f ?? (v === "cards" ? 3 : 6), b = /* @__PURE__ */ e("div", { className: c("w-full animate-pulse", l), "aria-hidden": !0, children: a ?? /* @__PURE__ */ e(Ur, { shape: v, rows: h, columns: u }) });
3798
3798
  return t === "inline" ? b : /* @__PURE__ */ e("main", { className: "flex-1 bg-surface p-6", children: b });
3799
3799
  }
3800
3800
  const Wr = {
@@ -4320,11 +4320,11 @@ const fs = ({
4320
4320
  showError: o = !0,
4321
4321
  fallback: f,
4322
4322
  loadingContent: d,
4323
- errorContent: p,
4323
+ errorContent: v,
4324
4324
  className: h,
4325
4325
  onLoad: u,
4326
4326
  onError: b,
4327
- ...v
4327
+ ...p
4328
4328
  }) => {
4329
4329
  const [w, g] = j(!0), [x, _] = j(!1), [S, q] = j(t), A = (K) => {
4330
4330
  g(!1), _(!1), u?.(K);
@@ -4379,7 +4379,7 @@ const fs = ({
4379
4379
  /* @__PURE__ */ e(
4380
4380
  "img",
4381
4381
  {
4382
- ...v,
4382
+ ...p,
4383
4383
  src: S,
4384
4384
  alt: r,
4385
4385
  className: I,
@@ -4388,7 +4388,7 @@ const fs = ({
4388
4388
  }
4389
4389
  ),
4390
4390
  w && l && /* @__PURE__ */ e("div", { className: H, children: d || te }),
4391
- x && o && /* @__PURE__ */ e("div", { className: H, children: p || Y })
4391
+ x && o && /* @__PURE__ */ e("div", { className: H, children: v || Y })
4392
4392
  ] });
4393
4393
  };
4394
4394
  function hs({
@@ -4424,11 +4424,11 @@ function xs({
4424
4424
  onSelect: o,
4425
4425
  onActiveIndexChange: f,
4426
4426
  isActive: d,
4427
- unread: p,
4427
+ unread: v,
4428
4428
  dimmed: h,
4429
4429
  groupBy: u,
4430
4430
  groups: b,
4431
- renderGroupHeader: v,
4431
+ renderGroupHeader: p,
4432
4432
  stickyGroupHeaders: w = !1,
4433
4433
  collapsibleGroups: g = !1,
4434
4434
  hideGroupCount: x = !1,
@@ -4494,7 +4494,7 @@ function xs({
4494
4494
  if (t.length === 0 && H)
4495
4495
  return /* @__PURE__ */ e("div", { className: ee, children: H });
4496
4496
  const X = t.length > 0 && S.length === t.length, P = S.length > 0 && !X, B = (C, D, O) => {
4497
- const R = d?.(C, D) ?? !1, M = p?.(C, D) ?? !1, L = h?.(C, D) ?? !1, Q = _ && N(C);
4497
+ const R = d?.(C, D) ?? !1, M = v?.(C, D) ?? !1, L = h?.(C, D) ?? !1, Q = _ && N(C);
4498
4498
  return /* @__PURE__ */ i(
4499
4499
  "li",
4500
4500
  {
@@ -4576,7 +4576,7 @@ function xs({
4576
4576
  ),
4577
4577
  "aria-expanded": g ? !Q : void 0,
4578
4578
  style: w ? { top: V ? 28 : 0 } : void 0,
4579
- children: v ? v(R, L.map((he) => he.item)) : /* @__PURE__ */ i(ke, { children: [
4579
+ children: p ? p(R, L.map((he) => he.item)) : /* @__PURE__ */ i(ke, { children: [
4580
4580
  g && /* @__PURE__ */ e(
4581
4581
  Ae,
4582
4582
  {
@@ -4715,22 +4715,22 @@ const xn = ({
4715
4715
  className: o,
4716
4716
  backLabel: f = "Back",
4717
4717
  backClassName: d,
4718
- onBack: p,
4718
+ onBack: v,
4719
4719
  editable: h = !1,
4720
4720
  onTitleChange: u
4721
4721
  }) => {
4722
- const [b, v] = j(!1), [w, g] = j(r), x = se(null);
4722
+ const [b, p] = j(!1), [w, g] = j(r), x = se(null);
4723
4723
  G(() => {
4724
4724
  g(r);
4725
4725
  }, [r]), G(() => {
4726
4726
  b && x.current && (x.current.focus(), x.current.select());
4727
4727
  }, [b]);
4728
4728
  const _ = () => {
4729
- h && v(!0);
4729
+ h && p(!0);
4730
4730
  }, S = () => {
4731
- v(!1), w.trim() !== "" && w !== r && u ? u(w.trim()) : g(r);
4731
+ p(!1), w.trim() !== "" && w !== r && u ? u(w.trim()) : g(r);
4732
4732
  }, q = (A) => {
4733
- A.key === "Enter" ? x.current?.blur() : A.key === "Escape" && (g(r), v(!1));
4733
+ A.key === "Enter" ? x.current?.blur() : A.key === "Escape" && (g(r), p(!1));
4734
4734
  };
4735
4735
  return /* @__PURE__ */ i(
4736
4736
  "div",
@@ -4747,9 +4747,9 @@ const xn = ({
4747
4747
  children: [
4748
4748
  /* @__PURE__ */ i("div", { className: "flex flex-row sm:items-start sm:justify-between items-center gap-4", children: [
4749
4749
  /* @__PURE__ */ e("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ i("div", { className: "flex items-start gap-4 text-text", children: [
4750
- p && // Ghost: a framed box around a back chevron makes the way out of a
4750
+ v && // Ghost: a framed box around a back chevron makes the way out of a
4751
4751
  // page look like the page's primary control.
4752
- /* @__PURE__ */ e(le, { variant: "ghost", onClick: p, leftIcon: /* @__PURE__ */ e(Z, { icon: Ce, size: "md" }), iconOnly: !0 }),
4752
+ /* @__PURE__ */ e(le, { variant: "ghost", onClick: v, leftIcon: /* @__PURE__ */ e(Z, { icon: Ce, size: "md" }), iconOnly: !0 }),
4753
4753
  /* @__PURE__ */ i("div", { className: "min-w-0 flex-1", children: [
4754
4754
  b ? /* @__PURE__ */ e(
4755
4755
  "input",
@@ -4842,18 +4842,20 @@ const xn = ({
4842
4842
  meta: n,
4843
4843
  actions: s,
4844
4844
  onBack: a,
4845
- surface: l,
4846
- headerContent: o,
4847
- loading: f = !1,
4848
- loadingShape: d = "table",
4849
- empty: p,
4850
- padding: h = "md",
4851
- scroll: u = !0,
4852
- className: b,
4853
- contentClassName: v,
4854
- children: w
4845
+ editable: l,
4846
+ onTitleChange: o,
4847
+ surface: f,
4848
+ headerContent: d,
4849
+ loading: v = !1,
4850
+ loadingShape: h = "table",
4851
+ empty: u,
4852
+ padding: b = "md",
4853
+ scroll: p = !0,
4854
+ className: w,
4855
+ contentClassName: g,
4856
+ children: x
4855
4857
  }) => {
4856
- const g = f ? /* @__PURE__ */ e(Be, { variant: "inline", shape: d }) : p ? /* @__PURE__ */ e("div", { className: "flex flex-col items-center justify-center py-12", children: p }) : w;
4858
+ const _ = v ? /* @__PURE__ */ e(Be, { variant: "inline", shape: h }) : u ? /* @__PURE__ */ e("div", { className: "flex flex-col items-center justify-center py-12", children: u }) : x;
4857
4859
  return /* @__PURE__ */ i(
4858
4860
  "div",
4859
4861
  {
@@ -4862,32 +4864,34 @@ const xn = ({
4862
4864
  // element that scrolls today. Taking the scroll over here is what pins
4863
4865
  // the header; without `min-h-0` the body would grow past the card
4864
4866
  // instead of scrolling inside it.
4865
- u ? "flex h-full min-h-0 flex-col" : "flex flex-col",
4866
- b
4867
+ p ? "flex h-full min-h-0 flex-col" : "flex flex-col",
4868
+ w
4867
4869
  ),
4868
4870
  children: [
4869
4871
  /* @__PURE__ */ e(
4870
4872
  xn,
4871
4873
  {
4872
- surface: l ?? u,
4874
+ surface: f ?? p,
4873
4875
  title: t,
4874
4876
  subtitle: r,
4875
4877
  meta: n,
4876
4878
  actions: s,
4877
4879
  onBack: a,
4878
- className: u ? "shrink-0" : void 0,
4879
- children: o
4880
+ editable: l,
4881
+ onTitleChange: o,
4882
+ className: p ? "shrink-0" : void 0,
4883
+ children: d
4880
4884
  }
4881
4885
  ),
4882
4886
  /* @__PURE__ */ e(
4883
4887
  "div",
4884
4888
  {
4885
4889
  className: c(
4886
- u && "min-h-0 flex-1 overflow-y-auto",
4887
- bn[h],
4888
- v
4890
+ p && "min-h-0 flex-1 overflow-y-auto",
4891
+ bn[b],
4892
+ g
4889
4893
  ),
4890
- children: g
4894
+ children: _
4891
4895
  }
4892
4896
  )
4893
4897
  ]
@@ -4936,17 +4940,17 @@ const pn = {
4936
4940
  loading: o = !1,
4937
4941
  loadingShape: f = "form",
4938
4942
  padding: d = "md",
4939
- className: p,
4943
+ className: v,
4940
4944
  contentClassName: h
4941
4945
  }) => {
4942
- const u = gn(), b = mt(), v = se(s);
4943
- v.current = s;
4946
+ const u = gn(), b = mt(), p = se(s);
4947
+ p.current = s;
4944
4948
  const w = !!s;
4945
4949
  G(() => {
4946
4950
  if (u && !(!w && !l))
4947
4951
  return u.setTrail(b, {
4948
4952
  title: l,
4949
- onBack: w ? () => v.current?.() : void 0
4953
+ onBack: w ? () => p.current?.() : void 0
4950
4954
  }), () => u.setTrail(b, null);
4951
4955
  }, [u, b, l, w]);
4952
4956
  const g = r.length > 0 || n.length > 0;
@@ -4957,13 +4961,13 @@ const pn = {
4957
4961
  * panel that has not been migrated yet. This way a short page still drops
4958
4962
  * its footer to the bottom, and a long one keeps it pinned while scrolling.
4959
4963
  */
4960
- /* @__PURE__ */ i("div", { className: c("flex min-h-full flex-col", p), children: [
4964
+ /* @__PURE__ */ i("div", { className: c("flex min-h-full flex-col", v), children: [
4961
4965
  !u && (w || l) && /* @__PURE__ */ i("div", { className: "flex shrink-0 items-center gap-2 px-5 pt-4", children: [
4962
4966
  w && /* @__PURE__ */ e(
4963
4967
  le,
4964
4968
  {
4965
4969
  variant: "ghost",
4966
- onClick: () => v.current?.(),
4970
+ onClick: () => p.current?.(),
4967
4971
  "aria-label": a,
4968
4972
  leftIcon: /* @__PURE__ */ e(Z, { icon: Ce, size: "sm" }),
4969
4973
  iconOnly: !0
@@ -5045,7 +5049,7 @@ function Es({ label: t, dotColor: r, onClick: n, className: s }) {
5045
5049
  );
5046
5050
  }
5047
5051
  function vn(t) {
5048
- const { id: r, header: n, accessor: s, label: a, tone: l, visible: o, width: f, sortable: d, align: p } = t;
5052
+ const { id: r, header: n, accessor: s, label: a, tone: l, visible: o, width: f, sortable: d, align: v } = t;
5049
5053
  return {
5050
5054
  id: r,
5051
5055
  header: n,
@@ -5056,7 +5060,7 @@ function vn(t) {
5056
5060
  },
5057
5061
  width: f,
5058
5062
  sortable: d,
5059
- align: p
5063
+ align: v
5060
5064
  };
5061
5065
  }
5062
5066
  function zs(t) {
@@ -5069,7 +5073,7 @@ function zs(t) {
5069
5073
  onTone: o = "success",
5070
5074
  offTone: f = "secondary",
5071
5075
  width: d,
5072
- sortable: p
5076
+ sortable: v
5073
5077
  } = t;
5074
5078
  return vn({
5075
5079
  id: r,
@@ -5078,7 +5082,7 @@ function zs(t) {
5078
5082
  label: (h) => h ? a : l,
5079
5083
  tone: (h) => h ? o : f,
5080
5084
  width: d,
5081
- sortable: p
5085
+ sortable: v
5082
5086
  });
5083
5087
  }
5084
5088
  function Ts(t) {
@@ -5091,18 +5095,18 @@ function Ts(t) {
5091
5095
  separator: o = ", ",
5092
5096
  width: f,
5093
5097
  searchable: d,
5094
- sortable: p
5098
+ sortable: v
5095
5099
  } = t;
5096
5100
  return {
5097
5101
  id: r,
5098
5102
  header: n,
5099
5103
  accessor: (h) => {
5100
- const u = s(h), v = (u == null ? [] : Array.isArray(u) ? u : [u]).filter(Boolean).map((w) => a(w) ?? w);
5101
- return v.length ? v.join(o) : l;
5104
+ const u = s(h), p = (u == null ? [] : Array.isArray(u) ? u : [u]).filter(Boolean).map((w) => a(w) ?? w);
5105
+ return p.length ? p.join(o) : l;
5102
5106
  },
5103
5107
  width: f,
5104
5108
  searchable: d,
5105
- sortable: p
5109
+ sortable: v
5106
5110
  };
5107
5111
  }
5108
5112
  function yn(t, r) {
@@ -5130,14 +5134,14 @@ const Ms = ({
5130
5134
  }
5131
5135
  }, l = (h) => h ? "Ja" : "Nee", o = (h, u) => {
5132
5136
  if (!u) return String(h || "-");
5133
- const b = u.find((v) => v.value === h);
5137
+ const b = u.find((p) => p.value === h);
5134
5138
  return b ? b.label : String(h || "-");
5135
5139
  }, f = xe(
5136
5140
  (h) => {
5137
5141
  const u = yn(r, h.name);
5138
5142
  if (h.type === "array") {
5139
- const v = u;
5140
- return !v || v.length === 0 ? /* @__PURE__ */ e(
5143
+ const p = u;
5144
+ return !p || p.length === 0 ? /* @__PURE__ */ e(
5141
5145
  fe,
5142
5146
  {
5143
5147
  variant: "body",
@@ -5145,7 +5149,7 @@ const Ms = ({
5145
5149
  className: "text-text-muted",
5146
5150
  children: "Geen items"
5147
5151
  }
5148
- ) : /* @__PURE__ */ e("div", { className: "space-y-3", children: v.map((w, g) => /* @__PURE__ */ i(
5152
+ ) : /* @__PURE__ */ e("div", { className: "space-y-3", children: p.map((w, g) => /* @__PURE__ */ i(
5149
5153
  "div",
5150
5154
  {
5151
5155
  className: "p-4 border border-border rounded-xl space-y-3",
@@ -5226,14 +5230,14 @@ const Ms = ({
5226
5230
  if (h.type === "custom" && h.customComponent)
5227
5231
  return h.customComponent({ value: u });
5228
5232
  if (h.format) {
5229
- const v = h.format(u, r);
5233
+ const p = h.format(u, r);
5230
5234
  return /* @__PURE__ */ e(
5231
5235
  fe,
5232
5236
  {
5233
5237
  variant: "body",
5234
5238
  size: "sm",
5235
5239
  className: "text-text",
5236
- children: v
5240
+ children: p
5237
5241
  }
5238
5242
  );
5239
5243
  }
@@ -5278,7 +5282,7 @@ const Ms = ({
5278
5282
  (h) => {
5279
5283
  if (h.conditional && !h.conditional(r))
5280
5284
  return null;
5281
- const u = h.items.filter((v) => !(v.hidden || v.conditional && !v.conditional(r)));
5285
+ const u = h.items.filter((p) => !(p.hidden || p.conditional && !p.conditional(r)));
5282
5286
  if (u.length === 0) return null;
5283
5287
  const b = c(
5284
5288
  "space-y-4",
@@ -5320,28 +5324,28 @@ const Ms = ({
5320
5324
  }
5321
5325
  )
5322
5326
  ] }),
5323
- /* @__PURE__ */ e("div", { className: "md:col-span-2", children: /* @__PURE__ */ e("div", { className: b, children: u.map((v) => /* @__PURE__ */ i(
5327
+ /* @__PURE__ */ e("div", { className: "md:col-span-2", children: /* @__PURE__ */ e("div", { className: b, children: u.map((p) => /* @__PURE__ */ i(
5324
5328
  "div",
5325
5329
  {
5326
5330
  className: "space-y-1",
5327
5331
  style: {
5328
- width: typeof v.width == "string" ? v.width : void 0,
5329
- gridColumn: typeof v.width == "number" ? `span ${v.width} / span ${v.width}` : void 0
5332
+ width: typeof p.width == "string" ? p.width : void 0,
5333
+ gridColumn: typeof p.width == "number" ? `span ${p.width} / span ${p.width}` : void 0
5330
5334
  },
5331
5335
  children: [
5332
- v.type !== "custom" && /* @__PURE__ */ e(
5336
+ p.type !== "custom" && /* @__PURE__ */ e(
5333
5337
  fe,
5334
5338
  {
5335
5339
  variant: "label",
5336
5340
  size: "sm",
5337
5341
  className: "font-medium text-text-muted",
5338
- children: v.label
5342
+ children: p.label
5339
5343
  }
5340
5344
  ),
5341
- f(v)
5345
+ f(p)
5342
5346
  ]
5343
5347
  },
5344
- v.name
5348
+ p.name
5345
5349
  )) }) })
5346
5350
  ]
5347
5351
  },
@@ -5349,7 +5353,7 @@ const Ms = ({
5349
5353
  );
5350
5354
  },
5351
5355
  [r, f]
5352
- ), p = c(
5356
+ ), v = c(
5353
5357
  "space-y-6",
5354
5358
  {
5355
5359
  "max-w-md": n === "sm",
@@ -5359,7 +5363,7 @@ const Ms = ({
5359
5363
  },
5360
5364
  s
5361
5365
  );
5362
- return /* @__PURE__ */ e("div", { className: p, children: /* @__PURE__ */ e("div", { className: "space-y-8", children: t.map(d) }) });
5366
+ return /* @__PURE__ */ e("div", { className: v, children: /* @__PURE__ */ e("div", { className: "space-y-8", children: t.map(d) }) });
5363
5367
  }, Nn = () => /* @__PURE__ */ e(Be, { variant: "inline", shape: "menu" }), ot = ({ item: t, isSelectedHandler: r, onClick: n, depth: s = 0 }) => {
5364
5368
  const a = !!(t.children && t.children.length > 0), l = r ? r(t.path) : !1;
5365
5369
  if (a)
@@ -5376,7 +5380,7 @@ const Ms = ({
5376
5380
  ]
5377
5381
  }
5378
5382
  ),
5379
- /* @__PURE__ */ e("ul", { className: "flex flex-col gap-px", children: t.children?.map((d, p) => /* @__PURE__ */ e(
5383
+ /* @__PURE__ */ e("ul", { className: "flex flex-col gap-px", children: t.children?.map((d, v) => /* @__PURE__ */ e(
5380
5384
  ot,
5381
5385
  {
5382
5386
  item: d,
@@ -5384,7 +5388,7 @@ const Ms = ({
5384
5388
  onClick: n,
5385
5389
  depth: s + 1
5386
5390
  },
5387
- p
5391
+ v
5388
5392
  )) })
5389
5393
  ] });
5390
5394
  const o = t.action, f = o?.visibility !== "always";
@@ -5514,7 +5518,7 @@ const Ms = ({
5514
5518
  children: f,
5515
5519
  ...d
5516
5520
  }) => {
5517
- const p = `h${t}`, h = c(
5521
+ const v = `h${t}`, h = c(
5518
5522
  "font-sans text-pretty",
5519
5523
  wn[r || En(t)],
5520
5524
  kn[n],
@@ -5523,7 +5527,7 @@ const Ms = ({
5523
5527
  l && "truncate",
5524
5528
  o
5525
5529
  );
5526
- return /* @__PURE__ */ e(p, { className: h, ...d, children: f });
5530
+ return /* @__PURE__ */ e(v, { className: h, ...d, children: f });
5527
5531
  };
5528
5532
  function En(t) {
5529
5533
  return {
@@ -5543,11 +5547,11 @@ const As = ({
5543
5547
  initialCommandPath: a,
5544
5548
  initialActiveIndex: l
5545
5549
  }) => {
5546
- const [o, f] = j(""), [d, p] = j(a || []), [h, u] = j(l || 0), b = se(null), v = se(null), g = (d.length ? t.find((x) => x.id === d[0])?.subCommands || [] : t).filter(
5550
+ const [o, f] = j(""), [d, v] = j(a || []), [h, u] = j(l || 0), b = se(null), p = se(null), g = (d.length ? t.find((x) => x.id === d[0])?.subCommands || [] : t).filter(
5547
5551
  (x) => x.label.toLowerCase().includes(o.toLowerCase())
5548
5552
  );
5549
5553
  return G(() => {
5550
- r || (f(""), p(a || []), u(l || 0));
5554
+ r || (f(""), v(a || []), u(l || 0));
5551
5555
  }, [r]), G(() => {
5552
5556
  const x = (_) => {
5553
5557
  if (r) {
@@ -5563,7 +5567,7 @@ const As = ({
5563
5567
  );
5564
5568
  else if (_.key === "Enter") {
5565
5569
  const S = g[h];
5566
- S && (S.subCommands ? (p([...d, S.id]), u(0)) : S.action && (S.action(), n()));
5570
+ S && (S.subCommands ? (v([...d, S.id]), u(0)) : S.action && (S.action(), n()));
5567
5571
  }
5568
5572
  }
5569
5573
  };
@@ -5575,7 +5579,7 @@ const As = ({
5575
5579
  return r && document.addEventListener("mousedown", x), () => document.removeEventListener("mousedown", x);
5576
5580
  }, [r, n]), G(() => {
5577
5581
  if (!r) return;
5578
- v.current?.querySelector(`[data-index="${h}"]`)?.scrollIntoView({ block: "nearest" });
5582
+ p.current?.querySelector(`[data-index="${h}"]`)?.scrollIntoView({ block: "nearest" });
5579
5583
  }, [h, r]), r ? /* @__PURE__ */ e("div", { className: "fixed inset-0 z-modal flex items-center justify-center bg-scrim", children: /* @__PURE__ */ i(
5580
5584
  "div",
5581
5585
  {
@@ -5599,7 +5603,7 @@ const As = ({
5599
5603
  /* @__PURE__ */ i(
5600
5604
  "div",
5601
5605
  {
5602
- ref: v,
5606
+ ref: p,
5603
5607
  className: "mt-2 pt-2 text-sm border-t border-border max-h-dialog-list overflow-y-auto",
5604
5608
  children: [
5605
5609
  g.length === 0 && /* @__PURE__ */ e("div", { className: "text-text-muted text-center text-sm", children: s?.noCommandsFound || "No commands found" }),
@@ -5609,7 +5613,7 @@ const As = ({
5609
5613
  "data-index": _,
5610
5614
  className: `flex items-center p-2 cursor-pointer rounded-md ${_ === h ? "bg-accent-soft text-accent" : "text-text"}`,
5611
5615
  onClick: () => {
5612
- x.subCommands ? (p([...d, x.id]), u(0)) : x.action && (x.action(), n());
5616
+ x.subCommands ? (v([...d, x.id]), u(0)) : x.action && (x.action(), n());
5613
5617
  },
5614
5618
  onMouseEnter: () => u(_),
5615
5619
  children: [
@@ -5712,7 +5716,7 @@ const As = ({
5712
5716
  borderColor: o,
5713
5717
  className: f,
5714
5718
  children: d,
5715
- ...p
5719
+ ...v
5716
5720
  }, h) => /* @__PURE__ */ e(
5717
5721
  "div",
5718
5722
  {
@@ -5727,7 +5731,7 @@ const As = ({
5727
5731
  o && Dn[o],
5728
5732
  f
5729
5733
  ),
5730
- ...p,
5734
+ ...v,
5731
5735
  children: d
5732
5736
  }
5733
5737
  )
@@ -5757,22 +5761,22 @@ function Ls({
5757
5761
  componentProps: l,
5758
5762
  className: o
5759
5763
  }) {
5760
- const f = se(null), [d, p] = j(!0), [h, u] = j(!1), [b, v] = j(null), w = se(null);
5764
+ const f = se(null), [d, v] = j(!0), [h, u] = j(!1), [b, p] = j(null), w = se(null);
5761
5765
  se(null);
5762
5766
  const g = se(r);
5763
5767
  return g.current = r, G(() => {
5764
5768
  let x = !0;
5765
5769
  return (async () => {
5766
- p(!0), u(!1), v(null);
5770
+ v(!0), u(!1), p(null);
5767
5771
  try {
5768
5772
  const S = await g.current();
5769
5773
  if (!x) return;
5770
5774
  const q = S.component || S.default || S;
5771
- v(n === "react" ? () => q : () => S);
5775
+ p(n === "react" ? () => q : () => S);
5772
5776
  } catch (S) {
5773
5777
  console.error(`[FederatedResource] Load failed: ${t}`, S), x && u(!0);
5774
5778
  } finally {
5775
- x && p(!1);
5779
+ x && v(!1);
5776
5780
  }
5777
5781
  })(), () => {
5778
5782
  x = !1;