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