@opencxh/ui-kit 3.29.0 → 3.45.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
@@ -1,6 +1,6 @@
1
1
  import { clsx as Te } from "clsx";
2
2
  import { jsxs as c, jsx as e, Fragment as Me } from "react/jsx-runtime";
3
- import { VideoOff as Ae, User as Ie, MicOff as je, Mic as Be, ChevronDown as Pe, FileText as xe, HardDrive as Ne, X as Oe, ArrowLeft as Ee, Search as Ve, FolderPlus as _e, Upload as Fe, Folder as we, ChevronDownIcon as We, ChevronRight as Re } from "lucide-react";
3
+ import { VideoOff as Ae, User as Ie, MicOff as je, Mic as Be, ChevronDown as Pe, FileText as pe, HardDrive as Ne, X as Oe, ArrowLeft as Ee, Search as Ve, FolderPlus as _e, Upload as Fe, Folder as we, ChevronDownIcon as We, ChevronRight as Re } from "lucide-react";
4
4
  import se, { useRef as X, useEffect as G, forwardRef as ce, useState as _, useCallback as ae, useMemo as ie, createContext as qe, Component as He } from "react";
5
5
  function g(...r) {
6
6
  return Te(r);
@@ -97,7 +97,7 @@ const Ue = {
97
97
  rightIcon: i,
98
98
  iconOnly: h = !1,
99
99
  className: b,
100
- children: x,
100
+ children: p,
101
101
  disabled: y,
102
102
  ...u
103
103
  }, l) => {
@@ -158,9 +158,9 @@ const Ue = {
158
158
  }
159
159
  ),
160
160
  !a && o && /* @__PURE__ */ e("span", { className: g("flex-shrink-0", !h && "mr-2"), children: o }),
161
- !h && x,
161
+ !h && p,
162
162
  !a && i && /* @__PURE__ */ e("span", { className: g("flex-shrink-0", !h && "ml-2"), children: i }),
163
- h && !a && !o && !i && x
163
+ h && !a && !o && !i && p
164
164
  ]
165
165
  }
166
166
  );
@@ -206,7 +206,7 @@ const Xr = ({
206
206
  className: i,
207
207
  children: h,
208
208
  href: b,
209
- target: x,
209
+ target: p,
210
210
  rel: y,
211
211
  ...u
212
212
  }) => {
@@ -267,7 +267,7 @@ const Xr = ({
267
267
  ), f = {
268
268
  ...u,
269
269
  href: a ? void 0 : b,
270
- target: l ? "_blank" : x,
270
+ target: l ? "_blank" : p,
271
271
  rel: l ? "noopener noreferrer" : y
272
272
  };
273
273
  return /* @__PURE__ */ c("a", { className: d, ...f, children: [
@@ -309,12 +309,12 @@ function Ye({
309
309
  options: i,
310
310
  disabled: h = !1
311
311
  }) {
312
- const [b, x] = _(!1), y = X(null), u = ae(() => {
313
- x((l) => !l);
312
+ const [b, p] = _(!1), y = X(null), u = ae(() => {
313
+ p((l) => !l);
314
314
  }, []);
315
315
  return G(() => {
316
316
  const l = (d) => {
317
- y.current && !y.current.contains(d.target) && x(!1);
317
+ y.current && !y.current.contains(d.target) && p(!1);
318
318
  };
319
319
  return document.addEventListener("mousedown", l), () => document.removeEventListener("mousedown", l);
320
320
  }, []), /* @__PURE__ */ c("div", { ref: y, className: "relative inline-flex items-center gap-px", children: [
@@ -360,7 +360,7 @@ function Ye({
360
360
  {
361
361
  type: "button",
362
362
  onClick: () => {
363
- l.onClick(), x(!1);
363
+ l.onClick(), p(!1);
364
364
  },
365
365
  className: g(
366
366
  "w-full text-left px-3 py-2 text-sm hover:bg-gray-50 transition-colors",
@@ -392,10 +392,10 @@ const Ze = {
392
392
  containerClassName: i,
393
393
  labelClassName: h,
394
394
  className: b,
395
- id: x,
395
+ id: p,
396
396
  ...y
397
397
  }, u) => {
398
- const l = x || `checkbox-${Math.random().toString(36).substr(2, 9)}`, d = !!t;
398
+ const l = p || `checkbox-${Math.random().toString(36).substr(2, 9)}`, d = !!t;
399
399
  return se.useEffect(() => {
400
400
  u && typeof u == "object" && u.current && (u.current.indeterminate = o);
401
401
  }, [o, u]), /* @__PURE__ */ c("div", { className: g("flex flex-col", i), children: [
@@ -451,7 +451,7 @@ const Qe = () => /* @__PURE__ */ e("svg", { className: "h-4 w-4", fill: "none",
451
451
  size: i = "md",
452
452
  className: h,
453
453
  minDate: b,
454
- maxDate: x,
454
+ maxDate: p,
455
455
  format: y = "MM/dd/yyyy"
456
456
  }, u) => {
457
457
  const [l, d] = _(!1), [f, C] = _(() => r || /* @__PURE__ */ new Date()), N = X(null);
@@ -482,8 +482,8 @@ const Qe = () => /* @__PURE__ */ e("svg", { className: "h-4 w-4", fill: "none",
482
482
  for (let D = 0; D < 42; D++)
483
483
  $.push(new Date(L)), L.setDate(L.getDate() + 1);
484
484
  return $;
485
- }, p = (z) => {
486
- z.getMonth() === f.getMonth() && (b && z < b || x && z > x || (n?.(z), d(!1)));
485
+ }, x = (z) => {
486
+ z.getMonth() === f.getMonth() && (b && z < b || p && z > p || (n?.(z), d(!1)));
487
487
  }, q = () => {
488
488
  C(new Date(f.getFullYear(), f.getMonth() - 1, 1));
489
489
  }, K = () => {
@@ -570,11 +570,11 @@ const Qe = () => /* @__PURE__ */ e("svg", { className: "h-4 w-4", fill: "none",
570
570
  ] }),
571
571
  /* @__PURE__ */ e("div", { className: "grid grid-cols-7 gap-1 mb-2", children: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"].map((z) => /* @__PURE__ */ e("div", { className: "text-xs font-medium text-neutral-500 dark:text-neutral-400 text-center py-1", children: z }, z)) }),
572
572
  /* @__PURE__ */ e("div", { className: "grid grid-cols-7 gap-1", children: E.map((z, v) => {
573
- const T = z.getMonth() === f.getMonth(), m = r && z.toDateString() === r.toDateString(), $ = z.toDateString() === (/* @__PURE__ */ new Date()).toDateString(), L = !T || b && z < b || x && z > x;
573
+ const T = z.getMonth() === f.getMonth(), m = r && z.toDateString() === r.toDateString(), $ = z.toDateString() === (/* @__PURE__ */ new Date()).toDateString(), L = !T || b && z < b || p && z > p;
574
574
  return /* @__PURE__ */ e(
575
575
  "button",
576
576
  {
577
- onClick: () => !L && p(z),
577
+ onClick: () => !L && x(z),
578
578
  disabled: L,
579
579
  className: g(
580
580
  "w-8 h-8 text-sm rounded transition-colors duration-200",
@@ -651,7 +651,7 @@ const Qe = () => /* @__PURE__ */ e("svg", { className: "h-4 w-4", fill: "none",
651
651
  md: "px-3 py-2 text-sm",
652
652
  lg: "px-3 py-2 text-sm",
653
653
  full: "px-3 py-2 text-sm"
654
- }, pe = {
654
+ }, xe = {
655
655
  sm: "h-4 w-4",
656
656
  md: "h-5 w-5",
657
657
  lg: "h-6 w-6",
@@ -666,7 +666,7 @@ const Qe = () => /* @__PURE__ */ e("svg", { className: "h-4 w-4", fill: "none",
666
666
  startIcon: i = /* @__PURE__ */ e(tr, {}),
667
667
  loading: h = !1,
668
668
  containerClassName: b,
669
- labelClassName: x,
669
+ labelClassName: p,
670
670
  className: y,
671
671
  id: u,
672
672
  options: l,
@@ -676,7 +676,7 @@ const Qe = () => /* @__PURE__ */ e("svg", { className: "h-4 w-4", fill: "none",
676
676
  value: N,
677
677
  onChange: k,
678
678
  ...B
679
- }, p) => {
679
+ }, x) => {
680
680
  const q = u || `searchfield-${Math.random().toString(36).substr(2, 9)}`, K = !!t, H = X(null), F = X(null), [E, J] = _(N || ""), [z, v] = _(!1), [T, m] = _(!1);
681
681
  G(() => {
682
682
  N !== void 0 && J(N);
@@ -719,7 +719,7 @@ const Qe = () => /* @__PURE__ */ e("svg", { className: "h-4 w-4", fill: "none",
719
719
  J(W.label), v(!1), f && f(W.value);
720
720
  }, P = () => {
721
721
  (l.length > 0 || d) && v(!0);
722
- }, M = h || T, re = z && ($.length > 0 || M), ne = ie(() => p || F, [p]);
722
+ }, M = h || T, re = z && ($.length > 0 || M), ne = ie(() => x || F, [x]);
723
723
  return /* @__PURE__ */ c(
724
724
  "div",
725
725
  {
@@ -738,13 +738,13 @@ const Qe = () => /* @__PURE__ */ e("svg", { className: "h-4 w-4", fill: "none",
738
738
  className: de(
739
739
  "block text-sm font-medium mb-1",
740
740
  K ? "text-red-500" : "text-gray-700 dark:text-gray-300",
741
- x || ""
741
+ p || ""
742
742
  ),
743
743
  children: r
744
744
  }
745
745
  ),
746
746
  /* @__PURE__ */ c("div", { className: "relative", children: [
747
- i && /* @__PURE__ */ e("div", { className: "absolute left-0 pl-3 flex items-center pointer-events-none h-full", children: /* @__PURE__ */ e("span", { className: de("text-gray-400", pe[a]), children: i }) }),
747
+ i && /* @__PURE__ */ e("div", { className: "absolute left-0 pl-3 flex items-center pointer-events-none h-full", children: /* @__PURE__ */ e("span", { className: de("text-gray-400", xe[a]), children: i }) }),
748
748
  /* @__PURE__ */ e(
749
749
  "input",
750
750
  {
@@ -776,7 +776,7 @@ const Qe = () => /* @__PURE__ */ e("svg", { className: "h-4 w-4", fill: "none",
776
776
  /* @__PURE__ */ c(
777
777
  "svg",
778
778
  {
779
- className: de("animate-spin text-blue-500", pe[a]),
779
+ className: de("animate-spin text-blue-500", xe[a]),
780
780
  xmlns: "http://www.w3.org/2000/svg",
781
781
  fill: "none",
782
782
  viewBox: "0 0 24 24",
@@ -810,7 +810,7 @@ const Qe = () => /* @__PURE__ */ e("svg", { className: "h-4 w-4", fill: "none",
810
810
  {
811
811
  className: de(
812
812
  "text-gray-400 cursor-pointer transition-transform",
813
- pe[a],
813
+ xe[a],
814
814
  z ? "rotate-180" : "rotate-0"
815
815
  ),
816
816
  onClick: () => v((W) => !W)
@@ -871,7 +871,7 @@ const sr = {
871
871
  options: i,
872
872
  placeholder: h,
873
873
  containerClassName: b,
874
- labelClassName: x,
874
+ labelClassName: p,
875
875
  className: y,
876
876
  id: u,
877
877
  searchable: l,
@@ -881,9 +881,9 @@ const sr = {
881
881
  allowCreate: N,
882
882
  onCreateOption: k,
883
883
  ...B
884
- }, p) => {
884
+ }, x) => {
885
885
  const q = u || `select-${Math.random().toString(36).substr(2, 9)}`, K = !!t, [H, F] = se.useState(!1), [E, J] = se.useState(""), z = se.useRef(null), [v, T] = se.useState(i);
886
- se.useImperativeHandle(p, () => z.current), se.useEffect(() => {
886
+ se.useImperativeHandle(x, () => z.current), se.useEffect(() => {
887
887
  const S = (I) => {
888
888
  z.current && !z.current.contains(I.target) && F(!1);
889
889
  };
@@ -954,7 +954,7 @@ const sr = {
954
954
  className: g(
955
955
  "block text-sm font-medium mb-1",
956
956
  K ? "text-error" : "text-secondary-700 dark:text-secondary-300",
957
- x
957
+ p
958
958
  ),
959
959
  children: r
960
960
  }
@@ -1083,7 +1083,7 @@ const or = {
1083
1083
  loading: i = !1,
1084
1084
  containerClassName: h,
1085
1085
  labelClassName: b,
1086
- className: x,
1086
+ className: p,
1087
1087
  id: y,
1088
1088
  rows: u = 4,
1089
1089
  ...l
@@ -1118,7 +1118,7 @@ const or = {
1118
1118
  or[a],
1119
1119
  // State styles
1120
1120
  C ? "border-error text-error focus:border-error focus:ring-error" : "border-gray-100 text-secondary-900 dark:border-gray-600 dark:bg-secondary-800 dark:text-secondary-100",
1121
- x
1121
+ p
1122
1122
  ),
1123
1123
  ...l
1124
1124
  }
@@ -1187,14 +1187,14 @@ const cr = {
1187
1187
  startIcon: i,
1188
1188
  endIcon: h,
1189
1189
  loading: b = !1,
1190
- containerClassName: x,
1190
+ containerClassName: p,
1191
1191
  labelClassName: y,
1192
1192
  className: u,
1193
1193
  id: l,
1194
1194
  ...d
1195
1195
  }, f) => {
1196
1196
  const C = l || `textfield-${Math.random().toString(36).substr(2, 9)}`, N = !!t;
1197
- return /* @__PURE__ */ c("div", { className: g("flex flex-col", o && "w-full", x), children: [
1197
+ return /* @__PURE__ */ c("div", { className: g("flex flex-col", o && "w-full", p), children: [
1198
1198
  r && /* @__PURE__ */ e(
1199
1199
  "label",
1200
1200
  {
@@ -1286,7 +1286,7 @@ const oe = ({
1286
1286
  "aria-label": h,
1287
1287
  ...b
1288
1288
  }) => {
1289
- const x = typeof n == "number" ? n : dr(n), y = g(
1289
+ const p = typeof n == "number" ? n : dr(n), y = g(
1290
1290
  "inline-block",
1291
1291
  // Color variants
1292
1292
  {
@@ -1307,7 +1307,7 @@ const oe = ({
1307
1307
  },
1308
1308
  i
1309
1309
  ), u = {
1310
- size: x,
1310
+ size: p,
1311
1311
  className: y,
1312
1312
  onClick: a ? o : void 0,
1313
1313
  "aria-label": h,
@@ -1377,19 +1377,19 @@ const ur = ({
1377
1377
  disabled: i = !1,
1378
1378
  className: h,
1379
1379
  showCheck: b = !0,
1380
- header: x
1380
+ header: p
1381
1381
  }) => {
1382
- const [y, u] = _(!1), [l, d] = _(null), [f, C] = _({ top: 0, left: 0 }), N = X(null), k = X(null), B = X(null), p = X(null);
1382
+ const [y, u] = _(!1), [l, d] = _(null), [f, C] = _({ top: 0, left: 0 }), N = X(null), k = X(null), B = X(null), x = X(null);
1383
1383
  G(() => {
1384
1384
  const v = (T) => {
1385
- N.current && (!N.current.contains(T.target) || B.current && !B.current.contains(T.target)) && (u(!1), d(null), p.current && (clearTimeout(p.current), p.current = null));
1385
+ N.current && (!N.current.contains(T.target) || B.current && !B.current.contains(T.target)) && (u(!1), d(null), x.current && (clearTimeout(x.current), x.current = null));
1386
1386
  };
1387
1387
  return y && document.addEventListener("mousedown", v), () => {
1388
1388
  document.removeEventListener("mousedown", v);
1389
1389
  };
1390
1390
  }, [y]), G(() => {
1391
1391
  const v = (T) => {
1392
- T.key === "Escape" && (u(!1), d(null), p.current && (clearTimeout(p.current), p.current = null));
1392
+ T.key === "Escape" && (u(!1), d(null), x.current && (clearTimeout(x.current), x.current = null));
1393
1393
  };
1394
1394
  return y && document.addEventListener("keydown", v), () => {
1395
1395
  document.removeEventListener("keydown", v);
@@ -1408,16 +1408,16 @@ const ur = ({
1408
1408
  }
1409
1409
  }
1410
1410
  }, [l]), G(() => () => {
1411
- p.current && clearTimeout(p.current);
1411
+ x.current && clearTimeout(x.current);
1412
1412
  }, []);
1413
1413
  const q = (v) => {
1414
- v.stopPropagation(), i || (u(!y), d(null), p.current && (clearTimeout(p.current), p.current = null));
1414
+ v.stopPropagation(), i || (u(!y), d(null), x.current && (clearTimeout(x.current), x.current = null));
1415
1415
  }, K = (v, T, m) => {
1416
1416
  v.stopPropagation(), !T.disabled && !T.divider && (!T.children || T.children.length === 0) && (a?.(T.value, m), u(!1), d(null));
1417
1417
  }, H = (v) => {
1418
- p.current && (clearTimeout(p.current), p.current = null), v.children && v.children.length > 0 ? d(v.value) : d(null);
1418
+ x.current && (clearTimeout(x.current), x.current = null), v.children && v.children.length > 0 ? d(v.value) : d(null);
1419
1419
  }, F = (v) => {
1420
- v.children && v.children.length > 0 ? p.current = setTimeout(() => {
1420
+ v.children && v.children.length > 0 ? x.current = setTimeout(() => {
1421
1421
  d(null);
1422
1422
  }, 150) : d(null);
1423
1423
  }, E = (v, T, m) => {
@@ -1457,7 +1457,7 @@ const ur = ({
1457
1457
  }
1458
1458
  ),
1459
1459
  y && /* @__PURE__ */ e("div", { className: J, children: /* @__PURE__ */ c("div", { className: "p-2", children: [
1460
- x && (typeof x == "string" ? /* @__PURE__ */ e("div", { className: "text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wider px-3 py-2", children: x }) : x),
1460
+ p && (typeof p == "string" ? /* @__PURE__ */ e("div", { className: "text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wider px-3 py-2", children: p }) : p),
1461
1461
  n.map((v, T) => {
1462
1462
  if (v.divider)
1463
1463
  return /* @__PURE__ */ e(
@@ -1509,10 +1509,10 @@ const ur = ({
1509
1509
  left: `${f.left}px`
1510
1510
  },
1511
1511
  onMouseEnter: () => {
1512
- p.current && (clearTimeout(p.current), p.current = null), d(v.value);
1512
+ x.current && (clearTimeout(x.current), x.current = null), d(v.value);
1513
1513
  },
1514
1514
  onMouseLeave: () => {
1515
- p.current = setTimeout(() => {
1515
+ x.current = setTimeout(() => {
1516
1516
  d(null);
1517
1517
  }, 150);
1518
1518
  },
@@ -1633,7 +1633,7 @@ const ur = ({
1633
1633
  }
1634
1634
  )
1635
1635
  }
1636
- ), xr = () => /* @__PURE__ */ e(
1636
+ ), pr = () => /* @__PURE__ */ e(
1637
1637
  "svg",
1638
1638
  {
1639
1639
  className: "h-4 w-4",
@@ -1650,7 +1650,7 @@ const ur = ({
1650
1650
  }
1651
1651
  )
1652
1652
  }
1653
- ), pr = () => /* @__PURE__ */ e(
1653
+ ), xr = () => /* @__PURE__ */ e(
1654
1654
  "svg",
1655
1655
  {
1656
1656
  className: "h-4 w-4",
@@ -1774,7 +1774,7 @@ const ur = ({
1774
1774
  filters: i = [],
1775
1775
  paginated: h = !1,
1776
1776
  pageSizeOptions: b = [10, 25, 50, 100],
1777
- defaultPageSize: x = 10,
1777
+ defaultPageSize: p = 10,
1778
1778
  actions: y = [],
1779
1779
  onRowClick: u,
1780
1780
  selectable: l = !1,
@@ -1784,7 +1784,7 @@ const ur = ({
1784
1784
  emptyContent: N,
1785
1785
  hoverable: k = !0,
1786
1786
  bordered: B = !1,
1787
- striped: p = !1,
1787
+ striped: x = !1,
1788
1788
  className: q,
1789
1789
  rowClassName: K
1790
1790
  }) => {
@@ -1793,7 +1793,7 @@ const ur = ({
1793
1793
  direction: null
1794
1794
  }), [z, v] = _({
1795
1795
  page: 0,
1796
- pageSize: x
1796
+ pageSize: p
1797
1797
  }), T = X(null), m = ie(() => {
1798
1798
  let s = r;
1799
1799
  if (a && H.trim()) {
@@ -2086,7 +2086,7 @@ const ur = ({
2086
2086
  onClick: () => P(z.page - 1),
2087
2087
  disabled: z.page === 0,
2088
2088
  iconOnly: !0,
2089
- children: /* @__PURE__ */ e(xr, {})
2089
+ children: /* @__PURE__ */ e(pr, {})
2090
2090
  }
2091
2091
  ),
2092
2092
  /* @__PURE__ */ c("span", { className: "px-3 py-1 text-sm text-gray-500 dark:text-gray-400", children: [
@@ -2103,7 +2103,7 @@ const ur = ({
2103
2103
  onClick: () => P(z.page + 1),
2104
2104
  disabled: z.page >= S - 1,
2105
2105
  iconOnly: !0,
2106
- children: /* @__PURE__ */ e(pr, {})
2106
+ children: /* @__PURE__ */ e(xr, {})
2107
2107
  }
2108
2108
  ),
2109
2109
  /* @__PURE__ */ e(
@@ -2126,31 +2126,31 @@ const ur = ({
2126
2126
  onTabChange: t,
2127
2127
  className: a
2128
2128
  }) => {
2129
- const [o, i] = _(r[0]?.id || ""), h = n || o, b = (x) => {
2130
- t ? t(x) : i(x);
2129
+ const [o, i] = _(r[0]?.id || ""), h = n || o, b = (p) => {
2130
+ t ? t(p) : i(p);
2131
2131
  };
2132
- return /* @__PURE__ */ e("div", { className: g("border-b border-neutral-200 dark:border-neutral-700", a), children: /* @__PURE__ */ e("nav", { className: "-mb-px flex space-x-8", children: r.map((x) => /* @__PURE__ */ e(
2132
+ return /* @__PURE__ */ e("div", { className: g("border-b border-neutral-200 dark:border-neutral-700", a), children: /* @__PURE__ */ e("nav", { className: "-mb-px flex space-x-8", children: r.map((p) => /* @__PURE__ */ e(
2133
2133
  "button",
2134
2134
  {
2135
- onClick: () => !x.disabled && b(x.id),
2136
- disabled: x.disabled,
2135
+ onClick: () => !p.disabled && b(p.id),
2136
+ disabled: p.disabled,
2137
2137
  className: g(
2138
2138
  "border-b-2 py-2 px-1 text-sm font-medium transition-colors duration-200",
2139
2139
  {
2140
- "border-primary text-primary": h === x.id,
2141
- "border-transparent text-neutral-500 hover:text-neutral-700 dark:text-neutral-400 dark:hover:text-neutral-300": h !== x.id && !x.disabled,
2142
- "border-transparent text-neutral-300 cursor-not-allowed dark:text-neutral-600": x.disabled
2140
+ "border-primary text-primary": h === p.id,
2141
+ "border-transparent text-neutral-500 hover:text-neutral-700 dark:text-neutral-400 dark:hover:text-neutral-300": h !== p.id && !p.disabled,
2142
+ "border-transparent text-neutral-300 cursor-not-allowed dark:text-neutral-600": p.disabled
2143
2143
  }
2144
2144
  ),
2145
2145
  children: /* @__PURE__ */ c("span", { className: "flex items-center gap-2", children: [
2146
- x.label,
2147
- x.badge && /* @__PURE__ */ e("span", { className: g(
2146
+ p.label,
2147
+ p.badge && /* @__PURE__ */ e("span", { className: g(
2148
2148
  "inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium",
2149
- h === x.id ? "bg-primary/10 text-primary" : "bg-neutral-100 text-neutral-600 dark:bg-neutral-800 dark:text-neutral-400"
2150
- ), children: x.badge })
2149
+ h === p.id ? "bg-primary/10 text-primary" : "bg-neutral-100 text-neutral-600 dark:bg-neutral-800 dark:text-neutral-400"
2150
+ ), children: p.badge })
2151
2151
  ] })
2152
2152
  },
2153
- x.id
2153
+ p.id
2154
2154
  )) }) });
2155
2155
  }, kr = ({
2156
2156
  items: r,
@@ -2161,10 +2161,10 @@ const ur = ({
2161
2161
  size: i = "md",
2162
2162
  className: h
2163
2163
  }) => {
2164
- const [b, x] = _(
2164
+ const [b, p] = _(
2165
2165
  n || t || r[0]?.id || ""
2166
2166
  ), y = t || b, u = (N) => {
2167
- a ? a(N) : x(N);
2167
+ a ? a(N) : p(N);
2168
2168
  }, l = {
2169
2169
  activeTab: y,
2170
2170
  setActiveTab: u
@@ -2178,7 +2178,7 @@ const ur = ({
2178
2178
  },
2179
2179
  h
2180
2180
  ), C = (N, k) => {
2181
- const B = "transition-colors duration-200 font-medium", p = {
2181
+ const B = "transition-colors duration-200 font-medium", x = {
2182
2182
  "text-xs px-2 py-1": i === "sm",
2183
2183
  "text-sm px-3 py-2": i === "md",
2184
2184
  "text-base px-4 py-3": i === "lg"
@@ -2200,7 +2200,7 @@ const ur = ({
2200
2200
  "text-neutral-600 hover:text-neutral-900 dark:text-neutral-400 dark:hover:text-neutral-100": o === "pills",
2201
2201
  "border-transparent text-neutral-600 hover:text-neutral-900 hover:border-neutral-300 dark:text-neutral-400 dark:hover:text-neutral-100": o === "underline"
2202
2202
  } : {};
2203
- return g(B, p, q, K, H, F);
2203
+ return g(B, x, q, K, H, F);
2204
2204
  };
2205
2205
  return /* @__PURE__ */ e(vr.Provider, { value: l, children: /* @__PURE__ */ c("div", { children: [
2206
2206
  /* @__PURE__ */ e("div", { className: f, role: "tablist", children: r.map((N) => /* @__PURE__ */ e(
@@ -2247,7 +2247,7 @@ function wr({
2247
2247
  closeOnEscape: i = !0,
2248
2248
  className: h,
2249
2249
  backdropClassName: b,
2250
- children: x,
2250
+ children: p,
2251
2251
  footer: y,
2252
2252
  showCloseButton: u = !0
2253
2253
  }) {
@@ -2309,7 +2309,7 @@ function wr({
2309
2309
  }
2310
2310
  )
2311
2311
  ] }),
2312
- /* @__PURE__ */ e("div", { className: "p-6", children: x }),
2312
+ /* @__PURE__ */ e("div", { className: "p-6", children: p }),
2313
2313
  y && /* @__PURE__ */ e("div", { className: "px-6 py-4", children: y })
2314
2314
  ]
2315
2315
  }
@@ -2326,7 +2326,7 @@ const Z = ({
2326
2326
  truncate: i = !1,
2327
2327
  italic: h = !1,
2328
2328
  underline: b = !1,
2329
- lineHeight: x = "normal",
2329
+ lineHeight: p = "normal",
2330
2330
  as: y,
2331
2331
  className: u,
2332
2332
  children: l,
@@ -2380,9 +2380,9 @@ const Z = ({
2380
2380
  },
2381
2381
  // Line height (override variant line heights)
2382
2382
  r === "body" && {
2383
- "leading-tight": x === "tight",
2384
- "leading-normal": x === "normal",
2385
- "leading-relaxed": x === "relaxed"
2383
+ "leading-tight": p === "tight",
2384
+ "leading-normal": p === "normal",
2385
+ "leading-relaxed": p === "relaxed"
2386
2386
  },
2387
2387
  // Text decorations
2388
2388
  {
@@ -2411,23 +2411,23 @@ const Sr = ({
2411
2411
  disabled: i,
2412
2412
  accept: h,
2413
2413
  onListFiles: b,
2414
- onListMounts: x,
2414
+ onListMounts: p,
2415
2415
  onUploadFile: y,
2416
2416
  onDownloadFile: u,
2417
2417
  onRegisterFile: l
2418
2418
  }) => {
2419
- const [d, f] = _(!1), [C, N] = _([]), [k, B] = _(null), [p, q] = _("/"), [K, H] = _([]), [F, E] = _(!1), [J, z] = _(""), [v, T] = _(
2419
+ const [d, f] = _(!1), [C, N] = _([]), [k, B] = _(null), [x, q] = _("/"), [K, H] = _([]), [F, E] = _(!1), [J, z] = _(""), [v, T] = _(
2420
2420
  typeof r == "object" ? r : null
2421
2421
  ), [m, $] = _(!1), [L, D] = _(""), P = X(null);
2422
2422
  G(() => {
2423
2423
  d && M();
2424
2424
  }, [d]), G(() => {
2425
2425
  d && k && re();
2426
- }, [d, k, p, J]);
2426
+ }, [d, k, x, J]);
2427
2427
  const M = async () => {
2428
2428
  E(!0);
2429
2429
  try {
2430
- const s = await x?.();
2430
+ const s = await p?.();
2431
2431
  s?.data && N(s.data);
2432
2432
  } catch (s) {
2433
2433
  console.error("Failed to load mounts", s);
@@ -2438,7 +2438,7 @@ const Sr = ({
2438
2438
  if (k) {
2439
2439
  E(!0);
2440
2440
  try {
2441
- const s = await b?.({ mountId: k.id, name: J, path: p });
2441
+ const s = await b?.({ mountId: k.id, name: J, path: x });
2442
2442
  s?.data && H(s.data);
2443
2443
  } catch (s) {
2444
2444
  console.error("Failed to load files", s);
@@ -2479,7 +2479,7 @@ const Sr = ({
2479
2479
  filename: w.name,
2480
2480
  mimeType: w.type || "application/octet-stream",
2481
2481
  mountId: k.id,
2482
- path: p
2482
+ path: x
2483
2483
  });
2484
2484
  if (R?.data) {
2485
2485
  const j = R.data;
@@ -2495,11 +2495,11 @@ const Sr = ({
2495
2495
  if (!(!L || !k)) {
2496
2496
  E(!0);
2497
2497
  try {
2498
- const s = `${p}${L}/`;
2498
+ const s = `${x}${L}/`;
2499
2499
  l && (await l({
2500
2500
  name: L,
2501
2501
  type: "folder",
2502
- path: p,
2502
+ path: x,
2503
2503
  mimeType: "application/x-directory",
2504
2504
  size: 0,
2505
2505
  mountId: k.id,
@@ -2528,19 +2528,19 @@ const Sr = ({
2528
2528
  const s = /* @__PURE__ */ new Set(), w = [];
2529
2529
  return K.forEach((O) => {
2530
2530
  if (O.type === "folder") {
2531
- O.path === p && s.add(O.name);
2531
+ O.path === x && s.add(O.name);
2532
2532
  return;
2533
2533
  }
2534
- const R = O.providerKey || O.name, Y = (p ? R.substring(p.length) : R).split("/").filter((fe) => fe !== "");
2534
+ const R = O.providerKey || O.name, Y = (x ? R.substring(x.length) : R).split("/").filter((fe) => fe !== "");
2535
2535
  Y.length > 1 ? s.add(Y[0]) : Y.length === 1 && w.push(O);
2536
2536
  }), {
2537
2537
  folders: Array.from(s).sort(),
2538
2538
  files: w.sort((O, R) => O.name.localeCompare(R.name))
2539
2539
  };
2540
- }, [K, p]), Q = (s) => {
2540
+ }, [K, x]), Q = (s) => {
2541
2541
  q((w) => `${w}${s}/`);
2542
2542
  }, te = () => {
2543
- const s = p.split("/").filter((w) => w !== "");
2543
+ const s = x.split("/").filter((w) => w !== "");
2544
2544
  s.pop(), s.length === 0 ? q("/") : q(`${s.join("/")}/`);
2545
2545
  }, U = ie(() => {
2546
2546
  const s = A.folders.map((w) => ({
@@ -2563,7 +2563,7 @@ const Sr = ({
2563
2563
  /* @__PURE__ */ e(
2564
2564
  oe,
2565
2565
  {
2566
- icon: w.type === "folder" ? we : xe,
2566
+ icon: w.type === "folder" ? we : pe,
2567
2567
  size: "sm",
2568
2568
  color: w.type === "folder" ? "warning" : "secondary"
2569
2569
  }
@@ -2630,7 +2630,7 @@ const Sr = ({
2630
2630
  i && "opacity-50 cursor-not-allowed bg-neutral-50"
2631
2631
  ),
2632
2632
  children: [
2633
- /* @__PURE__ */ e("div", { className: "flex-shrink-0", children: /* @__PURE__ */ e(oe, { icon: v ? xe : Ne, color: v ? "primary" : "secondary" }) }),
2633
+ /* @__PURE__ */ e("div", { className: "flex-shrink-0", children: /* @__PURE__ */ e(oe, { icon: v ? pe : Ne, color: v ? "primary" : "secondary" }) }),
2634
2634
  /* @__PURE__ */ e("div", { className: "flex-grow truncate", children: v ? /* @__PURE__ */ e("span", { className: "text-sm text-neutral-900 dark:text-neutral-100 font-medium", children: v.name }) : /* @__PURE__ */ e("span", { className: "text-sm text-neutral-500", children: a }) }),
2635
2635
  v && !i && /* @__PURE__ */ e(
2636
2636
  "button",
@@ -2669,13 +2669,13 @@ const Sr = ({
2669
2669
  variant: "ghost",
2670
2670
  size: "sm",
2671
2671
  onClick: () => {
2672
- p && p !== "/" ? te() : B(null);
2672
+ x && x !== "/" ? te() : B(null);
2673
2673
  },
2674
2674
  leftIcon: /* @__PURE__ */ e(oe, { icon: Ee, size: "xs" }),
2675
- children: p ? "Back" : "Back to Mounts"
2675
+ children: x ? "Back" : "Back to Mounts"
2676
2676
  }
2677
2677
  ),
2678
- /* @__PURE__ */ e("div", { className: "flex items-center gap-1 text-xs text-neutral-500 overflow-hidden bg-neutral-100 dark:bg-neutral-800 px-2 py-1 rounded", children: /* @__PURE__ */ e("span", { className: "truncate", children: p }) }),
2678
+ /* @__PURE__ */ e("div", { className: "flex items-center gap-1 text-xs text-neutral-500 overflow-hidden bg-neutral-100 dark:bg-neutral-800 px-2 py-1 rounded", children: /* @__PURE__ */ e("span", { className: "truncate", children: x }) }),
2679
2679
  /* @__PURE__ */ e("div", { className: "flex-grow min-w-[150px]", children: /* @__PURE__ */ e(
2680
2680
  ue,
2681
2681
  {
@@ -2761,7 +2761,7 @@ const Sr = ({
2761
2761
  id: "local",
2762
2762
  label: "Local File",
2763
2763
  content: /* @__PURE__ */ e("div", { className: "space-y-6", children: /* @__PURE__ */ c("div", { className: "flex flex-col items-center justify-center py-12 border-2 border-dashed border-neutral-200 dark:border-neutral-700 rounded-xl bg-neutral-50 dark:bg-secondary-900/50", children: [
2764
- /* @__PURE__ */ e("div", { className: "p-4 bg-primary/10 rounded-full mb-4", children: /* @__PURE__ */ e(oe, { icon: xe, size: "xl", color: "primary" }) }),
2764
+ /* @__PURE__ */ e("div", { className: "p-4 bg-primary/10 rounded-full mb-4", children: /* @__PURE__ */ e(oe, { icon: pe, size: "xl", color: "primary" }) }),
2765
2765
  /* @__PURE__ */ e(Z, { variant: "label", size: "lg", weight: "semibold", children: "Select a file from your computer" }),
2766
2766
  /* @__PURE__ */ c(Z, { variant: "body", size: "sm", className: "text-neutral-500 mt-1 mb-6 text-center max-w-xs", children: [
2767
2767
  "This file will be used directly in the form and will ",
@@ -2809,8 +2809,8 @@ function Lr(r, n, t) {
2809
2809
  const a = n.split("."), o = Array.isArray(r) ? [...r] : { ...r };
2810
2810
  let i = o;
2811
2811
  for (let h = 0; h < a.length - 1; h++) {
2812
- const b = a[h], x = i[b];
2813
- i[b] = x && typeof x == "object" ? Array.isArray(x) ? [...x] : { ...x } : {}, i = i[b];
2812
+ const b = a[h], p = i[b];
2813
+ i[b] = p && typeof p == "object" ? Array.isArray(p) ? [...p] : { ...p } : {}, i = i[b];
2814
2814
  }
2815
2815
  return i[a[a.length - 1]] = t, o;
2816
2816
  }
@@ -2833,7 +2833,7 @@ const rt = ({
2833
2833
  transform: i,
2834
2834
  validate: h,
2835
2835
  submitButton: b = { label: "Submit", variant: "primary" },
2836
- cancelButton: x = { label: "Cancel", variant: "outline" },
2836
+ cancelButton: p = { label: "Cancel", variant: "outline" },
2837
2837
  showButtons: y = !0,
2838
2838
  layout: u = "vertical",
2839
2839
  size: l = "md",
@@ -2842,7 +2842,7 @@ const rt = ({
2842
2842
  ref: C,
2843
2843
  sdk: N
2844
2844
  }) => {
2845
- const [k, B] = _(n || {}), [p, q] = _({}), [K, H] = _({});
2845
+ const [k, B] = _(n || {}), [x, q] = _({}), [K, H] = _({});
2846
2846
  G(() => {
2847
2847
  n && B({ ...n });
2848
2848
  }, [n]);
@@ -2920,7 +2920,7 @@ const rt = ({
2920
2920
  [k, r, F, h, i, t, d]
2921
2921
  ), z = ae(
2922
2922
  (m) => {
2923
- const $ = Le(k, m.name), L = K[m.name] ? p[m.name] : void 0, D = m.disabled || d, P = {
2923
+ const $ = Le(k, m.name), L = K[m.name] ? x[m.name] : void 0, D = m.disabled || d, P = {
2924
2924
  value: $ || "",
2925
2925
  disabled: D,
2926
2926
  required: m.required,
@@ -3290,7 +3290,7 @@ const rt = ({
3290
3290
  return null;
3291
3291
  }
3292
3292
  },
3293
- [k, K, p, d, l, E]
3293
+ [k, K, x, d, l, E]
3294
3294
  ), v = ae(
3295
3295
  (m) => {
3296
3296
  if (m.conditional && !m.conditional(k))
@@ -3337,7 +3337,7 @@ const rt = ({
3337
3337
  }
3338
3338
  )
3339
3339
  ] }),
3340
- /* @__PURE__ */ e("div", { className: "md:col-span-2", children: /* @__PURE__ */ e("div", { className: L, children: $.map((D) => (K[D.name] && p[D.name], /* @__PURE__ */ c(
3340
+ /* @__PURE__ */ e("div", { className: "md:col-span-2", children: /* @__PURE__ */ e("div", { className: L, children: $.map((D) => (K[D.name] && x[D.name], /* @__PURE__ */ c(
3341
3341
  "div",
3342
3342
  {
3343
3343
  className: g(
@@ -3368,7 +3368,7 @@ const rt = ({
3368
3368
  m.id
3369
3369
  );
3370
3370
  },
3371
- [k, K, p, z]
3371
+ [k, K, x, z]
3372
3372
  ), T = g(
3373
3373
  "space-y-6",
3374
3374
  {
@@ -3386,12 +3386,12 @@ const rt = ({
3386
3386
  ee,
3387
3387
  {
3388
3388
  type: "button",
3389
- variant: x.variant,
3390
- size: x.size || l,
3391
- disabled: x.disabled || d,
3389
+ variant: p.variant,
3390
+ size: p.size || l,
3391
+ disabled: p.disabled || d,
3392
3392
  onClick: a,
3393
- className: x.className,
3394
- children: x.label
3393
+ className: p.className,
3394
+ children: p.label
3395
3395
  }
3396
3396
  ),
3397
3397
  /* @__PURE__ */ e(
@@ -3438,7 +3438,7 @@ function tt({
3438
3438
  onDismiss: i,
3439
3439
  className: h,
3440
3440
  children: b,
3441
- ...x
3441
+ ...p
3442
3442
  }) {
3443
3443
  return /* @__PURE__ */ c(
3444
3444
  "span",
@@ -3452,7 +3452,7 @@ function tt({
3452
3452
  $r[n],
3453
3453
  h
3454
3454
  ),
3455
- ...x,
3455
+ ...p,
3456
3456
  children: [
3457
3457
  t && /* @__PURE__ */ e(
3458
3458
  "span",
@@ -3580,17 +3580,17 @@ const nt = ({
3580
3580
  showLoading: i = !0,
3581
3581
  showError: h = !0,
3582
3582
  fallback: b,
3583
- loadingContent: x,
3583
+ loadingContent: p,
3584
3584
  errorContent: y,
3585
3585
  className: u,
3586
3586
  onLoad: l,
3587
3587
  onError: d,
3588
3588
  ...f
3589
3589
  }) => {
3590
- const [C, N] = _(!0), [k, B] = _(!1), [p, q] = _(r), K = (T) => {
3590
+ const [C, N] = _(!0), [k, B] = _(!1), [x, q] = _(r), K = (T) => {
3591
3591
  N(!1), B(!1), l?.(T);
3592
3592
  }, H = (T) => {
3593
- if (N(!1), B(!0), b && p !== b) {
3593
+ if (N(!1), B(!0), b && x !== b) {
3594
3594
  q(b), B(!1), N(!0);
3595
3595
  return;
3596
3596
  }
@@ -3658,14 +3658,14 @@ const nt = ({
3658
3658
  "img",
3659
3659
  {
3660
3660
  ...f,
3661
- src: p,
3661
+ src: x,
3662
3662
  alt: n,
3663
3663
  className: E,
3664
3664
  onLoad: K,
3665
3665
  onError: H
3666
3666
  }
3667
3667
  ),
3668
- C && i && /* @__PURE__ */ e("div", { className: J, children: x || z }),
3668
+ C && i && /* @__PURE__ */ e("div", { className: J, children: p || z }),
3669
3669
  k && h && /* @__PURE__ */ e("div", { className: J, children: y || v })
3670
3670
  ] });
3671
3671
  }, lt = ({
@@ -3677,7 +3677,7 @@ const nt = ({
3677
3677
  backLabel: i = "Back",
3678
3678
  backClassName: h,
3679
3679
  onBack: b,
3680
- editable: x = !1,
3680
+ editable: p = !1,
3681
3681
  onTitleChange: y
3682
3682
  }) => {
3683
3683
  const [u, l] = _(!1), [d, f] = _(r), C = X(null);
@@ -3687,11 +3687,11 @@ const nt = ({
3687
3687
  u && C.current && (C.current.focus(), C.current.select());
3688
3688
  }, [u]);
3689
3689
  const N = () => {
3690
- x && l(!0);
3690
+ p && l(!0);
3691
3691
  }, k = () => {
3692
3692
  l(!1), d.trim() !== "" && d !== r && y ? y(d.trim()) : f(r);
3693
- }, B = (p) => {
3694
- p.key === "Enter" ? C.current?.blur() : p.key === "Escape" && (f(r), l(!1));
3693
+ }, B = (x) => {
3694
+ x.key === "Enter" ? C.current?.blur() : x.key === "Escape" && (f(r), l(!1));
3695
3695
  };
3696
3696
  return /* @__PURE__ */ c(
3697
3697
  "div",
@@ -3701,7 +3701,7 @@ const nt = ({
3701
3701
  o
3702
3702
  ),
3703
3703
  children: [
3704
- /* @__PURE__ */ c("div", { className: "flex flex-col sm:flex-row sm:items-start sm:justify-between items-center gap-4", children: [
3704
+ /* @__PURE__ */ c("div", { className: "flex flex-row sm:items-start sm:justify-between items-center gap-4", children: [
3705
3705
  /* @__PURE__ */ e("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ c("div", { className: "flex items-center gap-2 text-neutral-900 dark:text-neutral-100", children: [
3706
3706
  b && /* @__PURE__ */ e(
3707
3707
  "button",
@@ -3721,7 +3721,7 @@ const nt = ({
3721
3721
  ref: C,
3722
3722
  type: "text",
3723
3723
  value: d,
3724
- onChange: (p) => f(p.target.value),
3724
+ onChange: (x) => f(x.target.value),
3725
3725
  onBlur: k,
3726
3726
  onKeyDown: B,
3727
3727
  className: "text-1xl font-semibold bg-transparent border-b-1 border-gray-200 dark:border-gray-700 rounded-lg outline-none focus:border-none px-1 -mx-1 min-w-0 flex-1"
@@ -3732,45 +3732,45 @@ const nt = ({
3732
3732
  onClick: N,
3733
3733
  className: g(
3734
3734
  "text-2xl font-semibold truncate",
3735
- x && "cursor-pointer hover:text-blue-600 dark:hover:text-blue-400 transition-colors"
3735
+ p && "cursor-pointer hover:text-blue-600 dark:hover:text-blue-400 transition-colors"
3736
3736
  ),
3737
- title: x ? "Klik om te bewerken" : void 0,
3737
+ title: p ? "Klik om te bewerken" : void 0,
3738
3738
  children: r
3739
3739
  }
3740
3740
  )
3741
3741
  ] }) }),
3742
3742
  t.length > 0 && /* @__PURE__ */ e("div", { className: "flex flex-wrap sm:flex-nowrap gap-2 sm:gap-3", children: t.map(
3743
- (p) => p.splitOptions && p.splitOptions.length > 0 ? /* @__PURE__ */ e(
3743
+ (x) => x.splitOptions && x.splitOptions.length > 0 ? /* @__PURE__ */ e(
3744
3744
  Ye,
3745
3745
  {
3746
- label: p.label,
3747
- onClick: p.onClick,
3748
- icon: p.icon,
3749
- variant: p.variant === "primary" ? "primary" : "secondary",
3750
- options: p.splitOptions,
3751
- disabled: p.disabled
3746
+ label: x.label,
3747
+ onClick: x.onClick,
3748
+ icon: x.icon,
3749
+ variant: x.variant === "primary" ? "primary" : "secondary",
3750
+ options: x.splitOptions,
3751
+ disabled: x.disabled
3752
3752
  },
3753
- p.id
3753
+ x.id
3754
3754
  ) : /* @__PURE__ */ c(
3755
3755
  "button",
3756
3756
  {
3757
3757
  type: "button",
3758
3758
  onClick: (q) => {
3759
- q.stopPropagation(), q.target.blur(), p.onClick();
3759
+ q.stopPropagation(), q.target.blur(), x.onClick();
3760
3760
  },
3761
- disabled: p.disabled,
3761
+ disabled: x.disabled,
3762
3762
  className: g("btn", {
3763
- o__primary: p.variant === "primary",
3764
- o__secondary: p.variant === "secondary" || p.variant === "outline",
3765
- o__ghost: p.variant === "ghost",
3766
- o__destructive: p.variant === "destructive"
3763
+ o__primary: x.variant === "primary",
3764
+ o__secondary: x.variant === "secondary" || x.variant === "outline",
3765
+ o__ghost: x.variant === "ghost",
3766
+ o__destructive: x.variant === "destructive"
3767
3767
  }),
3768
3768
  children: [
3769
- p.icon && /* @__PURE__ */ e("span", { className: "mr-2", children: p.icon }),
3770
- p.label
3769
+ x.icon && /* @__PURE__ */ e("span", { className: "mr-2", children: x.icon }),
3770
+ x.label
3771
3771
  ]
3772
3772
  },
3773
- p.id
3773
+ x.id
3774
3774
  )
3775
3775
  ) })
3776
3776
  ] }),
@@ -3840,7 +3840,7 @@ const st = ({
3840
3840
  ) }),
3841
3841
  /* @__PURE__ */ e("div", { className: "grid grid-cols-1 sm:grid-cols-2 gap-3", children: u.arrayFields?.map((k) => {
3842
3842
  const B = C?.[k.name];
3843
- let p = "-";
3843
+ let x = "-";
3844
3844
  switch (k.type) {
3845
3845
  case "text":
3846
3846
  case "email":
@@ -3848,30 +3848,30 @@ const st = ({
3848
3848
  case "tel":
3849
3849
  case "url":
3850
3850
  case "textarea":
3851
- p = B || "-";
3851
+ x = B || "-";
3852
3852
  break;
3853
3853
  case "select":
3854
3854
  case "radio":
3855
- p = h(
3855
+ x = h(
3856
3856
  B,
3857
3857
  k.options
3858
3858
  );
3859
3859
  break;
3860
3860
  case "checkbox":
3861
- p = i(B);
3861
+ x = i(B);
3862
3862
  break;
3863
3863
  case "date":
3864
- p = o(B);
3864
+ x = o(B);
3865
3865
  break;
3866
3866
  case "custom":
3867
- p = k.customComponent?.({
3867
+ x = k.customComponent?.({
3868
3868
  value: B
3869
3869
  });
3870
3870
  break;
3871
3871
  default:
3872
- p = String(B || "-");
3872
+ x = String(B || "-");
3873
3873
  }
3874
- return k.format && (p = k.format(B, C)), /* @__PURE__ */ c("div", { className: "space-y-1", children: [
3874
+ return k.format && (x = k.format(B, C)), /* @__PURE__ */ c("div", { className: "space-y-1", children: [
3875
3875
  /* @__PURE__ */ e(
3876
3876
  Z,
3877
3877
  {
@@ -3887,7 +3887,7 @@ const st = ({
3887
3887
  variant: "body",
3888
3888
  size: "sm",
3889
3889
  className: "text-neutral-900 dark:text-neutral-100",
3890
- children: p
3890
+ children: x
3891
3891
  }
3892
3892
  )
3893
3893
  ] }, k.name);
@@ -3948,7 +3948,7 @@ const st = ({
3948
3948
  );
3949
3949
  },
3950
3950
  [n]
3951
- ), x = ae(
3951
+ ), p = ae(
3952
3952
  (u) => {
3953
3953
  if (u.conditional && !u.conditional(n))
3954
3954
  return null;
@@ -4033,7 +4033,7 @@ const st = ({
4033
4033
  },
4034
4034
  a
4035
4035
  );
4036
- return /* @__PURE__ */ e("div", { className: y, children: /* @__PURE__ */ e("div", { className: "space-y-8", children: r.map(x) }) });
4036
+ return /* @__PURE__ */ e("div", { className: y, children: /* @__PURE__ */ e("div", { className: "space-y-8", children: r.map(p) }) });
4037
4037
  }, ze = ({ item: r, isSelectedHandler: n, onClick: t }) => {
4038
4038
  const [a, o] = _(!1), i = r.children && r.children.length > 0, h = () => {
4039
4039
  i && o(!a);
@@ -4061,10 +4061,10 @@ const st = ({
4061
4061
  ]
4062
4062
  }
4063
4063
  ),
4064
- i && !a && /* @__PURE__ */ e("ul", { className: "sidebar-menu-nested-items mb-1", children: r.children?.map((x, y) => /* @__PURE__ */ e(
4064
+ i && !a && /* @__PURE__ */ e("ul", { className: "sidebar-menu-nested-items mb-1", children: r.children?.map((p, y) => /* @__PURE__ */ e(
4065
4065
  ze,
4066
4066
  {
4067
- item: x,
4067
+ item: p,
4068
4068
  isSelectedHandler: n,
4069
4069
  onClick: t
4070
4070
  },
@@ -4104,7 +4104,7 @@ const st = ({
4104
4104
  truncate: i = !1,
4105
4105
  className: h,
4106
4106
  children: b,
4107
- ...x
4107
+ ...p
4108
4108
  }) => {
4109
4109
  const y = n || jr(r), u = g(
4110
4110
  "font-primary",
@@ -4151,7 +4151,7 @@ const st = ({
4151
4151
  },
4152
4152
  h
4153
4153
  ), l = `h${r}`;
4154
- return /* @__PURE__ */ e(l, { className: u, ...x, children: b });
4154
+ return /* @__PURE__ */ e(l, { className: u, ...p, children: b });
4155
4155
  };
4156
4156
  function jr(r) {
4157
4157
  return {
@@ -4193,7 +4193,7 @@ const dt = ({
4193
4193
  "text-lg": a === "lg"
4194
4194
  },
4195
4195
  i
4196
- ), x = (l, d) => g(
4196
+ ), p = (l, d) => g(
4197
4197
  // Base item styles
4198
4198
  "transition-colors duration-200",
4199
4199
  // Size-based padding
@@ -4220,7 +4220,7 @@ const dt = ({
4220
4220
  return n === "ordered" ? /* @__PURE__ */ e("ol", { className: b, children: r.map((l, d) => /* @__PURE__ */ e(
4221
4221
  "li",
4222
4222
  {
4223
- className: x(l),
4223
+ className: p(l),
4224
4224
  onClick: () => y(l),
4225
4225
  onKeyDown: (f) => u(f, l),
4226
4226
  tabIndex: o && !l.disabled ? 0 : void 0,
@@ -4231,7 +4231,7 @@ const dt = ({
4231
4231
  )) }) : n === "description" ? /* @__PURE__ */ e("dl", { className: b, children: r.map((l, d) => /* @__PURE__ */ e(
4232
4232
  "div",
4233
4233
  {
4234
- className: x(l),
4234
+ className: p(l),
4235
4235
  onClick: () => y(l),
4236
4236
  onKeyDown: (f) => u(f, l),
4237
4237
  tabIndex: o && !l.disabled ? 0 : void 0,
@@ -4242,7 +4242,7 @@ const dt = ({
4242
4242
  )) }) : /* @__PURE__ */ e("ul", { className: b, children: r.map((l, d) => /* @__PURE__ */ e(
4243
4243
  "li",
4244
4244
  {
4245
- className: x(l),
4245
+ className: p(l),
4246
4246
  onClick: () => y(l),
4247
4247
  onKeyDown: (f) => u(f, l),
4248
4248
  tabIndex: o && !l.disabled ? 0 : void 0,
@@ -4259,7 +4259,7 @@ const dt = ({
4259
4259
  initialCommandPath: o,
4260
4260
  initialActiveIndex: i
4261
4261
  }) => {
4262
- const [h, b] = _(""), [x, y] = _(o || []), [u, l] = _(i || 0), d = X(null), f = X(null), N = (x.length ? r.find((k) => k.id === x[0])?.subCommands || [] : r).filter(
4262
+ const [h, b] = _(""), [p, y] = _(o || []), [u, l] = _(i || 0), d = X(null), f = X(null), N = (p.length ? r.find((k) => k.id === p[0])?.subCommands || [] : r).filter(
4263
4263
  (k) => k.label.toLowerCase().includes(h.toLowerCase())
4264
4264
  );
4265
4265
  return G(() => {
@@ -4271,20 +4271,20 @@ const dt = ({
4271
4271
  t();
4272
4272
  else if (B.key === "ArrowUp")
4273
4273
  l(
4274
- (p) => p > 0 ? p - 1 : N.length - 1
4274
+ (x) => x > 0 ? x - 1 : N.length - 1
4275
4275
  );
4276
4276
  else if (B.key === "ArrowDown")
4277
4277
  l(
4278
- (p) => p < N.length - 1 ? p + 1 : 0
4278
+ (x) => x < N.length - 1 ? x + 1 : 0
4279
4279
  );
4280
4280
  else if (B.key === "Enter") {
4281
- const p = N[u];
4282
- p && (p.subCommands ? (y([...x, p.id]), l(0)) : p.action && (p.action(), t()));
4281
+ const x = N[u];
4282
+ x && (x.subCommands ? (y([...p, x.id]), l(0)) : x.action && (x.action(), t()));
4283
4283
  }
4284
4284
  }
4285
4285
  };
4286
4286
  return document.addEventListener("keydown", k), () => document.removeEventListener("keydown", k);
4287
- }, [n, t, N, u, x]), G(() => {
4287
+ }, [n, t, N, u, p]), G(() => {
4288
4288
  const k = (B) => {
4289
4289
  d.current && !d.current.contains(B.target) && t();
4290
4290
  };
@@ -4320,7 +4320,7 @@ const dt = ({
4320
4320
  "data-index": B,
4321
4321
  className: `flex items-center p-2 cursor-pointer rounded-md text-secondary-800 ${B === u ? "bg-gray-100" : ""}`,
4322
4322
  onClick: () => {
4323
- k.subCommands ? (y([...x, k.id]), l(0)) : k.action && (k.action(), t());
4323
+ k.subCommands ? (y([...p, k.id]), l(0)) : k.action && (k.action(), t());
4324
4324
  },
4325
4325
  onMouseEnter: () => l(B),
4326
4326
  children: [
@@ -4421,7 +4421,7 @@ const dt = ({
4421
4421
  border: i,
4422
4422
  borderColor: h,
4423
4423
  className: b,
4424
- children: x,
4424
+ children: p,
4425
4425
  ...y
4426
4426
  }, u) => /* @__PURE__ */ e(
4427
4427
  "div",
@@ -4438,7 +4438,7 @@ const dt = ({
4438
4438
  b
4439
4439
  ),
4440
4440
  ...y,
4441
- children: x
4441
+ children: p
4442
4442
  }
4443
4443
  )
4444
4444
  );
@@ -4455,11 +4455,11 @@ function mt({
4455
4455
  componentProps: o,
4456
4456
  className: i
4457
4457
  }) {
4458
- const h = X(null), [b, x] = _(!0), [y, u] = _(null), l = X(null);
4458
+ const h = X(null), [b, p] = _(!0), [y, u] = _(null), l = X(null);
4459
4459
  return X(null), G(() => {
4460
4460
  let d = !0;
4461
4461
  return (async () => {
4462
- x(!0);
4462
+ p(!0);
4463
4463
  try {
4464
4464
  const C = await n();
4465
4465
  if (!d) return;
@@ -4468,7 +4468,7 @@ function mt({
4468
4468
  } catch (C) {
4469
4469
  console.error(`[FederatedResource] Load failed: ${r}`, C);
4470
4470
  } finally {
4471
- d && x(!1);
4471
+ d && p(!1);
4472
4472
  }
4473
4473
  })(), () => {
4474
4474
  d = !1;