@krosoft/react 0.0.183 → 0.0.185

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.
Files changed (60) hide show
  1. package/dist/{AppActions-DtdwQdm-.js → AppActions-DZ7wVdmt.js} +8 -7
  2. package/dist/{AppSubTitle-Co9HDBO4.js → AppSubTitle-CZN_tmfv.js} +1 -1
  3. package/dist/{AppVerticalTabs-B3_nbdLm.js → AppVerticalTabs-C1SsBNAH.js} +26 -25
  4. package/dist/{ConfirmationDialog-3rO4sYM8.js → ConfirmationDialog-M8sFAz4h.js} +7 -6
  5. package/dist/{DataTable-Ckbr166c.js → DataTable-KMYbhJ4C.js} +29 -28
  6. package/dist/{GenericForm-ClzOIaJc.js → GenericForm-DtY0moOD.js} +93 -92
  7. package/dist/{ImageInput-BPV_4oDI.js → ImageInput-3wZuCZGf.js} +2 -1
  8. package/dist/{KpiCardsLayout-D67cLG3R.js → KpiCardsLayout-DjRTqXFa.js} +16 -15
  9. package/dist/{MetricCard-BAa26w6e.js → MetricCard-B0xnFyim.js} +1 -1
  10. package/dist/{MultiSelect-ovXnKCuU.js → MultiSelect-BhRXVpky.js} +14 -13
  11. package/dist/PieChart-C9gn0Dws.js +282 -0
  12. package/dist/{SearchInput-B08-Mcsx.js → SearchInput-BXOlvTO9.js} +30 -29
  13. package/dist/{SkeletonCards-D0V2nuDg.js → SkeletonCards-av7XHlof.js} +12 -11
  14. package/dist/{TableFilter-Z0T30AzZ.js → TableFilter-BlrrSOtg.js} +21 -20
  15. package/dist/chart-DntJZGxB.js +181 -0
  16. package/dist/components/core/cards/index.js +2 -2
  17. package/dist/components/core/charts/BarChartHorizontal.d.ts +24 -0
  18. package/dist/components/core/charts/BarChartHorizontal.d.ts.map +1 -0
  19. package/dist/components/core/charts/BarChartVertical.d.ts +24 -0
  20. package/dist/components/core/charts/BarChartVertical.d.ts.map +1 -0
  21. package/dist/components/core/charts/ChartCard.d.ts +31 -0
  22. package/dist/components/core/charts/ChartCard.d.ts.map +1 -0
  23. package/dist/components/core/charts/CircularGauge.d.ts +39 -0
  24. package/dist/components/core/charts/CircularGauge.d.ts.map +1 -0
  25. package/dist/components/core/charts/LineChart.d.ts +23 -0
  26. package/dist/components/core/charts/LineChart.d.ts.map +1 -0
  27. package/dist/components/core/charts/PieChart.d.ts +26 -0
  28. package/dist/components/core/charts/PieChart.d.ts.map +1 -0
  29. package/dist/components/core/charts/chartColors.d.ts +13 -0
  30. package/dist/components/core/charts/chartColors.d.ts.map +1 -0
  31. package/dist/components/core/charts/chartTooltip.helper.d.ts +14 -0
  32. package/dist/components/core/charts/chartTooltip.helper.d.ts.map +1 -0
  33. package/dist/components/core/charts/index.d.ts +14 -0
  34. package/dist/components/core/charts/index.d.ts.map +1 -0
  35. package/dist/components/core/charts/index.js +11 -0
  36. package/dist/components/core/dialogs/index.js +2 -2
  37. package/dist/components/core/filters/index.js +1 -1
  38. package/dist/components/core/forms/index.js +1 -1
  39. package/dist/components/core/index.d.ts +1 -0
  40. package/dist/components/core/index.d.ts.map +1 -1
  41. package/dist/components/core/index.js +80 -71
  42. package/dist/components/core/inputs/index.js +3 -3
  43. package/dist/components/core/layouts/index.js +3 -3
  44. package/dist/components/core/table/index.js +1 -1
  45. package/dist/components/core/tabs/index.js +1 -1
  46. package/dist/components/index.js +307 -297
  47. package/dist/components/ui/index.d.ts +1 -0
  48. package/dist/components/ui/index.d.ts.map +1 -1
  49. package/dist/components/ui/index.js +218 -217
  50. package/dist/tailwind/index.d.ts +7 -0
  51. package/dist/tailwind/index.d.ts.map +1 -1
  52. package/dist/tailwind/index.js +11 -2
  53. package/dist/{toaster-BaFcYXKg.js → toaster-Cm7utXqi.js} +13 -13
  54. package/dist/toggle-group-D6aFQQcf.js +1460 -0
  55. package/dist/types/ChartDatum.d.ts +19 -0
  56. package/dist/types/ChartDatum.d.ts.map +1 -0
  57. package/dist/types/index.d.ts +1 -0
  58. package/dist/types/index.d.ts.map +1 -1
  59. package/package.json +2 -2
  60. package/dist/toggle-group-D2Li0iBJ.js +0 -1636
@@ -1,11 +1,12 @@
1
1
  import { jsxs as n, jsx as l } from "react/jsx-runtime";
2
- import { ay as u, aM as t, aA as c, aH as g, aC as d } from "./toggle-group-D2Li0iBJ.js";
2
+ import { am as u, aA as t, ao as c, av as g, aq as d } from "./toggle-group-D6aFQQcf.js";
3
3
  import "./alert-B9F1N9Qk.js";
4
4
  import "@radix-ui/react-aspect-ratio";
5
5
  import { B as p } from "./tooltip-DVeqVwqV.js";
6
+ import "./chart-DntJZGxB.js";
6
7
  import "@radix-ui/react-collapsible";
7
8
  import "./sheet-B_uq6-K_.js";
8
- import { MoreVerticalIcon as C } from "lucide-react";
9
+ import { MoreVerticalIcon as v } from "lucide-react";
9
10
  import "react-resizable-panels";
10
11
  import { c as i } from "./tailwind.helper-B6yFEsav.js";
11
12
  import "./select-BpjFWqAY.js";
@@ -13,11 +14,11 @@ import "next-themes";
13
14
  import "sonner";
14
15
  import "react";
15
16
  import { useTranslation as h } from "react-i18next";
16
- import { u as v } from "./useMobile-DN1_OMDB.js";
17
- function E({ actions: o, className: b }) {
18
- const { t: m } = h(), N = v();
17
+ import { u as C } from "./useMobile-DN1_OMDB.js";
18
+ function G({ actions: o, className: b }) {
19
+ const { t: m } = h(), N = C();
19
20
  return !o || o.length === 0 ? null : N ? /* @__PURE__ */ n(u, { children: [
20
- /* @__PURE__ */ l(t, { asChild: !0, children: /* @__PURE__ */ l(p, { variant: "outline", size: "icon", children: /* @__PURE__ */ l(C, { className: "size-4" }) }) }),
21
+ /* @__PURE__ */ l(t, { asChild: !0, children: /* @__PURE__ */ l(p, { variant: "outline", size: "icon", children: /* @__PURE__ */ l(v, { className: "size-4" }) }) }),
21
22
  /* @__PURE__ */ l(c, { align: "end", className: "min-w-48", children: o.map((r, e) => r ? r.children && r.children.length > 0 ? /* @__PURE__ */ n("div", { children: [
22
23
  e > 0 && /* @__PURE__ */ l(g, {}),
23
24
  r.children.map((s, a) => s ? /* @__PURE__ */ n(
@@ -71,5 +72,5 @@ function E({ actions: o, className: b }) {
71
72
  ) : null) }))(o);
72
73
  }
73
74
  export {
74
- E as A
75
+ G as A
75
76
  };
@@ -1,6 +1,6 @@
1
1
  import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
2
  import { useTranslation as l } from "react-i18next";
3
- import { A as m } from "./AppActions-DtdwQdm-.js";
3
+ import { A as m } from "./AppActions-DZ7wVdmt.js";
4
4
  function f({ titleKey: s, actions: t, className: o }) {
5
5
  const { t: r } = l();
6
6
  return /* @__PURE__ */ i("div", { className: "flex flex-col sm:flex-row sm:items-center justify-between gap-4", children: [
@@ -1,37 +1,38 @@
1
1
  import { jsxs as r, jsx as s } from "react/jsx-runtime";
2
- import { J as b, N as w, K as S, bN as T, bP as C, bQ as A, bO as P, bA as k } from "./toggle-group-D2Li0iBJ.js";
3
- import { A as j } from "./AppActions-DtdwQdm-.js";
4
- import { A as z } from "./AppTitle-D15YXeMx.js";
5
- import { useRef as V, useEffect as K } from "react";
2
+ import { C as b, d as w, a as S } from "./chart-DntJZGxB.js";
3
+ import { A as C } from "./AppActions-DZ7wVdmt.js";
4
+ import { A as T } from "./AppTitle-D15YXeMx.js";
5
+ import { bB as A, bD as P, bE as k, bC as j, bo as z } from "./toggle-group-D6aFQQcf.js";
6
+ import { useRef as V, useEffect as R } from "react";
6
7
  import { useTranslation as g } from "react-i18next";
7
8
  import { useSearchParams as y } from "react-router-dom";
8
- import { c as R } from "./tailwind.helper-B6yFEsav.js";
9
- import { S as q, h as I, i as L, a as H, c as U } from "./select-BpjFWqAY.js";
9
+ import { c as q } from "./tailwind.helper-B6yFEsav.js";
10
+ import { S as I, h as K, i as L, a as D, c as E } from "./select-BpjFWqAY.js";
10
11
  import { ConstructionIcon as v } from "lucide-react";
11
- function D({ titleKey: n, descriptionKey: l, actions: t = [], className: c }) {
12
+ function H({ titleKey: n, descriptionKey: l, actions: t = [], className: c }) {
12
13
  return /* @__PURE__ */ r("div", { className: "flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between", children: [
13
- /* @__PURE__ */ s(z, { titleKey: n, descriptionKey: l, isSubTitle: !0 }),
14
- /* @__PURE__ */ s(j, { actions: t, className: c })
14
+ /* @__PURE__ */ s(T, { titleKey: n, descriptionKey: l, isSubTitle: !0 }),
15
+ /* @__PURE__ */ s(C, { actions: t, className: c })
15
16
  ] });
16
17
  }
17
- function X({ titleKey: n, descriptionKey: l, actions: t = [], className: c, children: o, isSubTitle: p }) {
18
+ function Y({ titleKey: n, descriptionKey: l, actions: t = [], className: c, children: o, isSubTitle: p }) {
18
19
  return /* @__PURE__ */ r(b, { children: [
19
- /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(D, { titleKey: n, descriptionKey: l, actions: t, className: c }) }),
20
+ /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(H, { titleKey: n, descriptionKey: l, actions: t, className: c }) }),
20
21
  /* @__PURE__ */ s(S, { className: "space-y-4", children: o })
21
22
  ] });
22
23
  }
23
- function Y({ tabs: n, itemId: l, item: t, fit: c }) {
24
+ function Z({ tabs: n, itemId: l, item: t, fit: c }) {
24
25
  var d, a;
25
26
  const { t: o } = g(), [p, i] = y(), h = p.get("tab"), f = ((d = n.find((e) => e.value === h)) == null ? void 0 : d.value) ?? ((a = n[0]) == null ? void 0 : a.value), x = (e) => {
26
27
  const u = new URLSearchParams();
27
28
  u.set("tab", e), i(u);
28
29
  }, m = V(null);
29
- return K(() => {
30
+ return R(() => {
30
31
  var u, N;
31
32
  const e = (u = m.current) == null ? void 0 : u.querySelector('[data-state="active"]');
32
33
  (N = e == null ? void 0 : e.scrollIntoView) == null || N.call(e, { behavior: "smooth", block: "nearest", inline: "nearest" });
33
- }, [f]), /* @__PURE__ */ r(T, { value: f, onValueChange: x, children: [
34
- /* @__PURE__ */ s(C, { ref: m, className: R("w-full justify-start", c && "sm:w-fit"), children: n.map((e) => /* @__PURE__ */ r(A, { value: e.value, className: "gap-2", disabled: e.disabled, children: [
34
+ }, [f]), /* @__PURE__ */ r(A, { value: f, onValueChange: x, children: [
35
+ /* @__PURE__ */ s(P, { ref: m, className: q("w-full justify-start", c && "sm:w-fit"), children: n.map((e) => /* @__PURE__ */ r(k, { value: e.value, className: "gap-2", disabled: e.disabled, children: [
35
36
  e.icon ? /* @__PURE__ */ s("span", { className: "hidden sm:inline", children: /* @__PURE__ */ s(e.icon, { className: "size-4" }) }) : null,
36
37
  /* @__PURE__ */ s("span", { className: "text-xs sm:text-sm", children: o(e.titleKey) ?? "" }),
37
38
  e.count ? /* @__PURE__ */ r("span", { className: "text-gray-500 text-xs", children: [
@@ -40,10 +41,10 @@ function Y({ tabs: n, itemId: l, item: t, fit: c }) {
40
41
  ")"
41
42
  ] }) : null
42
43
  ] }, e.value)) }),
43
- n.map((e) => /* @__PURE__ */ s(P, { value: e.value, className: "mt-4", children: e.component ? e.component(l) : null }, e.value))
44
+ n.map((e) => /* @__PURE__ */ s(j, { value: e.value, className: "mt-4", children: e.component ? e.component(l) : null }, e.value))
44
45
  ] });
45
46
  }
46
- const Z = ({ tabs: n, item: l }) => {
47
+ const _ = ({ tabs: n, item: l }) => {
47
48
  var m, d;
48
49
  const { t } = g(), [c, o] = y(), p = c.get("tab"), i = ((m = n.find((a) => a.value === p)) == null ? void 0 : m.value) ?? ((d = n[0]) == null ? void 0 : d.value), h = (a) => {
49
50
  const e = new URLSearchParams();
@@ -57,7 +58,7 @@ const Z = ({ tabs: n, item: l }) => {
57
58
  /* @__PURE__ */ s("p", { className: "text-sm text-gray-400", children: "Cette fonctionnalité sera bientôt disponible" })
58
59
  ] }) }) });
59
60
  return /* @__PURE__ */ r("div", { className: "flex flex-col md:flex-row h-full min-w-0 ", children: [
60
- /* @__PURE__ */ s("div", { className: "w-64 lg:w-80 flex-shrink-0 hidden md:block border-r border-gray-200 dark:border-gray-700 pr-4", children: /* @__PURE__ */ s(k, { className: "h-full", children: /* @__PURE__ */ s("div", { className: "space-y-1", children: n.map((a, e) => /* @__PURE__ */ r(
61
+ /* @__PURE__ */ s("div", { className: "w-64 lg:w-80 flex-shrink-0 hidden md:block border-r border-gray-200 dark:border-gray-700 pr-4", children: /* @__PURE__ */ s(z, { className: "h-full", children: /* @__PURE__ */ s("div", { className: "space-y-1", children: n.map((a, e) => /* @__PURE__ */ r(
61
62
  "div",
62
63
  {
63
64
  className: `px-2 py-2 rounded-control text-sm transition-colors flex items-center gap-2 ${a.disabled ? "text-gray-400 cursor-not-allowed opacity-50" : i === a.value ? "crm-color-styled font-medium cursor-pointer" : "text-gray-600 hover:bg-gray-100 dark:text-gray-300 dark:hover:bg-gray-700 cursor-pointer"}`,
@@ -75,9 +76,9 @@ const Z = ({ tabs: n, item: l }) => {
75
76
  },
76
77
  e
77
78
  )) }) }) }),
78
- /* @__PURE__ */ s("div", { className: "md:hidden w-full border-b pb-4 mb-4", children: /* @__PURE__ */ r(q, { value: i, onValueChange: h, children: [
79
- /* @__PURE__ */ s(I, { className: "w-full", children: /* @__PURE__ */ s(L, { placeholder: "Sélectionner une section" }) }),
80
- /* @__PURE__ */ s(H, { children: n.map((a, e) => /* @__PURE__ */ s(U, { value: a.value, disabled: a.disabled, children: /* @__PURE__ */ r("div", { className: "flex items-center gap-2", children: [
79
+ /* @__PURE__ */ s("div", { className: "md:hidden w-full border-b pb-4 mb-4", children: /* @__PURE__ */ r(I, { value: i, onValueChange: h, children: [
80
+ /* @__PURE__ */ s(K, { className: "w-full", children: /* @__PURE__ */ s(L, { placeholder: "Sélectionner une section" }) }),
81
+ /* @__PURE__ */ s(D, { children: n.map((a, e) => /* @__PURE__ */ s(E, { value: a.value, disabled: a.disabled, children: /* @__PURE__ */ r("div", { className: "flex items-center gap-2", children: [
81
82
  a.icon && /* @__PURE__ */ s(a.icon, { className: "size-4" }),
82
83
  /* @__PURE__ */ s("span", { children: t(a.titleKey) }),
83
84
  a.count && /* @__PURE__ */ r("span", { className: "text-xs text-gray-500", children: [
@@ -92,8 +93,8 @@ const Z = ({ tabs: n, item: l }) => {
92
93
  ] });
93
94
  };
94
95
  export {
95
- X as A,
96
- D as a,
97
- Y as b,
98
- Z as c
96
+ Y as A,
97
+ H as a,
98
+ Z as b,
99
+ _ as c
99
100
  };
@@ -1,8 +1,9 @@
1
1
  import { jsx as e, jsxs as r, Fragment as M } from "react/jsx-runtime";
2
- import { D as q, b as B, P as R, e as W, h as X, c as $, m as J, p as Q, s as F, t as U, q as j, r as V, o as Y } from "./toggle-group-D2Li0iBJ.js";
2
+ import { D as q, b as B, P as R, e as W, h as X, c as $, m as J, p as Q, s as F, t as U, q as j, r as V, o as Y } from "./toggle-group-D6aFQQcf.js";
3
3
  import { A as Z, a as _ } from "./alert-B9F1N9Qk.js";
4
4
  import "@radix-ui/react-aspect-ratio";
5
5
  import { B as v } from "./tooltip-DVeqVwqV.js";
6
+ import "./chart-DntJZGxB.js";
6
7
  import "@radix-ui/react-collapsible";
7
8
  import "./sheet-B_uq6-K_.js";
8
9
  import { AlertCircleIcon as L, X as S, Save as T, Pen as I } from "lucide-react";
@@ -14,7 +15,7 @@ import "next-themes";
14
15
  import "sonner";
15
16
  import { useState as y, useEffect as ee } from "react";
16
17
  import { useTranslation as O } from "react-i18next";
17
- import { G as le } from "./GenericForm-ClzOIaJc.js";
18
+ import { G as le } from "./GenericForm-DtY0moOD.js";
18
19
  import { E as ie } from "./ErrorAlert-SrIcU1mM.js";
19
20
  function re({ open: t, onOpenChange: c, config: l, isLoading: u, error: s, children: p }) {
20
21
  const { t: i } = O(), { title: b, description: d, icon: f, maxWidth: g = "sm:max-w-xl", actions: n } = l;
@@ -38,7 +39,7 @@ function re({ open: t, onOpenChange: c, config: l, isLoading: u, error: s, child
38
39
  ] }, k)) }) }) : null
39
40
  ] }) });
40
41
  }
41
- function De({
42
+ function ke({
42
43
  open: t,
43
44
  onOpenChange: c,
44
45
  data: l,
@@ -145,7 +146,7 @@ function De({
145
146
  }
146
147
  );
147
148
  }
148
- function ke({ isLoading: t, error: c, config: l, destructive: u = !1 }) {
149
+ function we({ isLoading: t, error: c, config: l, destructive: u = !1 }) {
149
150
  const { t: s } = O();
150
151
  if (!l) return null;
151
152
  const p = (i) => {
@@ -180,6 +181,6 @@ function ke({ isLoading: t, error: c, config: l, destructive: u = !1 }) {
180
181
  }
181
182
  export {
182
183
  re as A,
183
- ke as C,
184
- De as F
184
+ we as C,
185
+ ke as F
185
186
  };
@@ -1,9 +1,10 @@
1
1
  import { jsxs as i, jsx as e, Fragment as ne } from "react/jsx-runtime";
2
2
  import { u as le } from "./useDataTable-CxcA5S-s.js";
3
- import { ay as B, aM as L, aA as V, aC as de, $ as O, az as ce } from "./toggle-group-D2Li0iBJ.js";
3
+ import { am as B, aA as L, ao as O, aq as de, O as V, an as ce } from "./toggle-group-D6aFQQcf.js";
4
4
  import "./alert-B9F1N9Qk.js";
5
5
  import "@radix-ui/react-aspect-ratio";
6
6
  import { B as y } from "./tooltip-DVeqVwqV.js";
7
+ import "./chart-DntJZGxB.js";
7
8
  import "@radix-ui/react-collapsible";
8
9
  import "./sheet-B_uq6-K_.js";
9
10
  import { MoreVerticalIcon as oe, Loader2Icon as he, AlertTriangleIcon as me, GripVerticalIcon as ge, ArrowUpIcon as ue, ArrowDownIcon as fe, ArrowUpDownIcon as pe, ChevronLeftIcon as xe, ChevronRightIcon as ve, SettingsIcon as ye } from "lucide-react";
@@ -45,7 +46,7 @@ function ze({ actions: n, row: t }) {
45
46
  g.length > 0 && /* @__PURE__ */ i(B, { children: [
46
47
  /* @__PURE__ */ e(L, { asChild: !0, children: /* @__PURE__ */ e(y, { variant: "ghost", size: "icon", className: "h-7 w-7 text-muted-foreground hover:text-foreground", children: /* @__PURE__ */ e(oe, { className: "size-3.5" }) }) }),
47
48
  /* @__PURE__ */ e(
48
- V,
49
+ O,
49
50
  {
50
51
  align: "end",
51
52
  onClick: (r) => {
@@ -124,7 +125,7 @@ function De({
124
125
  h.stopPropagation();
125
126
  },
126
127
  children: /* @__PURE__ */ e("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ e(
127
- O,
128
+ V,
128
129
  {
129
130
  checked: o.includes(p),
130
131
  onCheckedChange: () => {
@@ -276,7 +277,7 @@ function je({
276
277
  );
277
278
  };
278
279
  return /* @__PURE__ */ e("thead", { className: "bg-muted/50 dark:bg-gray-900/50 border-b border-gray-200 dark:border-gray-800", children: /* @__PURE__ */ i("tr", { children: [
279
- n ? /* @__PURE__ */ e("th", { className: "p-1 flex-shrink-0 text-center align-middle", style: { width: "32px", minWidth: "32px", maxWidth: "32px" }, children: /* @__PURE__ */ e("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ e(O, { checked: u, onCheckedChange: d }) }) }) : null,
280
+ n ? /* @__PURE__ */ e("th", { className: "p-1 flex-shrink-0 text-center align-middle", style: { width: "32px", minWidth: "32px", maxWidth: "32px" }, children: /* @__PURE__ */ e("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ e(V, { checked: u, onCheckedChange: d }) }) }) : null,
280
281
  g.map((s) => h(s, r)),
281
282
  k || S !== void 0 ? /* @__PURE__ */ e("th", { className: "p-1 text-center align-middle", style: { minWidth: "32px" }, children: S }) : null
282
283
  ] }) });
@@ -297,7 +298,7 @@ function Ae(n, t, a = 1) {
297
298
  }
298
299
  return [1, w, ...j(g, r), w, t];
299
300
  }
300
- function Me({
301
+ function Te({
301
302
  totalItems: n,
302
303
  startIndex: t,
303
304
  endIndex: a,
@@ -379,10 +380,10 @@ function Me({
379
380
  ) })
380
381
  ] });
381
382
  }
382
- function Te({ columns: n, visibleColumns: t, toggleColumnVisibility: a }) {
383
+ function Me({ columns: n, visibleColumns: t, toggleColumnVisibility: a }) {
383
384
  return /* @__PURE__ */ i(B, { children: [
384
385
  /* @__PURE__ */ e(L, { asChild: !0, children: /* @__PURE__ */ e(y, { variant: "outline", size: "sm", className: "size-7 p-0 bg-white hover:bg-gray-100 dark:bg-gray-900 shadow-sm border-gray-200 dark:border-gray-800", children: /* @__PURE__ */ e(ye, { className: "size-3.5 text-gray-600 dark:text-gray-300" }) }) }),
385
- /* @__PURE__ */ e(V, { align: "end", className: "w-56", children: n.map((d) => /* @__PURE__ */ e(
386
+ /* @__PURE__ */ e(O, { align: "end", className: "w-56", children: n.map((d) => /* @__PURE__ */ e(
386
387
  ce,
387
388
  {
388
389
  checked: t.has(d.key),
@@ -395,7 +396,7 @@ function Te({ columns: n, visibleColumns: t, toggleColumnVisibility: a }) {
395
396
  )) })
396
397
  ] });
397
398
  }
398
- function Qe({
399
+ function Xe({
399
400
  data: n,
400
401
  columns: t,
401
402
  getRowId: a,
@@ -425,14 +426,14 @@ function Qe({
425
426
  sortDirection: A,
426
427
  selectedRows: f,
427
428
  setSelectedRows: U,
428
- visibleColumns: F,
429
- columnWidths: M,
430
- safeCurrentPage: G,
431
- totalPages: R,
432
- startIndex: _,
433
- endIndex: q,
429
+ visibleColumns: q,
430
+ columnWidths: T,
431
+ safeCurrentPage: F,
432
+ totalPages: G,
433
+ startIndex: R,
434
+ endIndex: _,
434
435
  tableRef: E,
435
- hasActions: T,
436
+ hasActions: M,
436
437
  hasBulkActions: $,
437
438
  visibleColumnsArray: W,
438
439
  colSpanCount: J,
@@ -484,7 +485,7 @@ function Qe({
484
485
  visibleColumnsArray: W,
485
486
  draggableColumns: c,
486
487
  resizableColumns: m,
487
- columnWidths: M,
488
+ columnWidths: T,
488
489
  sortColumn: I,
489
490
  sortDirection: A,
490
491
  handleSort: Q,
@@ -492,9 +493,9 @@ function Qe({
492
493
  handleDragOver: Z,
493
494
  handleDrop: K,
494
495
  handleMouseDown: X,
495
- hasActions: T,
496
+ hasActions: M,
496
497
  bordered: v,
497
- settingsNode: o ? /* @__PURE__ */ e(Te, { columns: t, visibleColumns: F, toggleColumnVisibility: ee }) : void 0
498
+ settingsNode: o ? /* @__PURE__ */ e(Me, { columns: t, visibleColumns: q, toggleColumnVisibility: ee }) : void 0
498
499
  }
499
500
  ),
500
501
  /* @__PURE__ */ e(
@@ -512,8 +513,8 @@ function Qe({
512
513
  selectedRows: f,
513
514
  toggleRowSelection: re,
514
515
  visibleColumnsArray: W,
515
- columnWidths: M,
516
- hasActions: T || o,
516
+ columnWidths: T,
517
+ hasActions: M || o,
517
518
  actions: g,
518
519
  columns: t,
519
520
  resizableColumns: m
@@ -521,17 +522,17 @@ function Qe({
521
522
  )
522
523
  ] }) }),
523
524
  /* @__PURE__ */ e(
524
- Me,
525
+ Te,
525
526
  {
526
527
  totalItems: k ?? n.length,
527
- startIndex: _,
528
- endIndex: q,
528
+ startIndex: R,
529
+ endIndex: _,
529
530
  pageSize: ae,
530
531
  setPageSize: se,
531
- currentPage: G,
532
+ currentPage: F,
532
533
  setCurrentPage: ie,
533
534
  pageSizeOptions: z,
534
- totalPages: R
535
+ totalPages: G
535
536
  }
536
537
  )
537
538
  ] })
@@ -539,11 +540,11 @@ function Qe({
539
540
  );
540
541
  }
541
542
  export {
542
- Qe as D,
543
+ Xe as D,
543
544
  ze as T,
544
545
  De as a,
545
546
  Ie as b,
546
547
  je as c,
547
- Me as d,
548
- Te as e
548
+ Te as d,
549
+ Me as e
549
550
  };