@krosoft/react 0.0.120 → 0.0.122

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.
@@ -1,47 +1,47 @@
1
1
  import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
- import { u as ae } from "./useDataTable-CxcA5S-s.js";
3
- import { ax as I, aL as $, az as B, aB as se, _ as L, cr as ie, cs as ne, ay as de } from "./toggle-group-wIgXZYDq.js";
2
+ import { u as se } from "./useDataTable-CxcA5S-s.js";
3
+ import { ax as I, aL as $, az as B, aB as ne, _ as L, cr as ie, cs as de, ay as le } from "./toggle-group-wIgXZYDq.js";
4
4
  import "./alert-B34E_4uH.js";
5
- import { B as k } from "./tooltip-YhBPXbcJ.js";
5
+ import { B as w } from "./tooltip-YhBPXbcJ.js";
6
6
  import "./select-DlQvLtI3.js";
7
7
  import "next-themes";
8
8
  import "react";
9
- import { E as le } from "./ellipsis-vertical-kB5yFb-i.js";
10
- import { L as oe } from "./loader-circle-CKy7u7JW.js";
11
- import { G as ce } from "./grip-vertical-DGywJXzS.js";
12
- import { c as D } from "./createLucideIcon-MP_wDWjs.js";
9
+ import { E as oe } from "./ellipsis-vertical-kB5yFb-i.js";
10
+ import { L as ce } from "./loader-circle-CKy7u7JW.js";
11
+ import { G as he } from "./grip-vertical-DGywJXzS.js";
12
+ import { c as j } from "./createLucideIcon-MP_wDWjs.js";
13
13
  /**
14
14
  * @license lucide-react v1.17.0 - ISC
15
15
  *
16
16
  * This source code is licensed under the ISC license.
17
17
  * See the LICENSE file in the root directory of this source tree.
18
18
  */
19
- const he = [
19
+ const me = [
20
20
  ["path", { d: "M12 5v14", key: "s699le" }],
21
21
  ["path", { d: "m19 12-7 7-7-7", key: "1idqje" }]
22
- ], me = D("arrow-down", he);
22
+ ], ge = j("arrow-down", me);
23
23
  /**
24
24
  * @license lucide-react v1.17.0 - ISC
25
25
  *
26
26
  * This source code is licensed under the ISC license.
27
27
  * See the LICENSE file in the root directory of this source tree.
28
28
  */
29
- const ge = [
29
+ const ue = [
30
30
  ["path", { d: "m21 16-4 4-4-4", key: "f6ql7i" }],
31
31
  ["path", { d: "M17 20V4", key: "1ejh1v" }],
32
32
  ["path", { d: "m3 8 4-4 4 4", key: "11wl7u" }],
33
33
  ["path", { d: "M7 4v16", key: "1glfcx" }]
34
- ], ue = D("arrow-up-down", ge);
34
+ ], pe = j("arrow-up-down", ue);
35
35
  /**
36
36
  * @license lucide-react v1.17.0 - ISC
37
37
  *
38
38
  * This source code is licensed under the ISC license.
39
39
  * See the LICENSE file in the root directory of this source tree.
40
40
  */
41
- const pe = [
41
+ const xe = [
42
42
  ["path", { d: "m5 12 7-7 7 7", key: "hav0vg" }],
43
43
  ["path", { d: "M12 19V5", key: "x0mq9r" }]
44
- ], xe = D("arrow-up", pe);
44
+ ], fe = j("arrow-up", xe);
45
45
  /**
46
46
  * @license lucide-react v1.17.0 - ISC
47
47
  *
@@ -57,10 +57,10 @@ const ye = [
57
57
  }
58
58
  ],
59
59
  ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
60
- ], fe = D("settings", ye), P = [5, 10, 30, 50, 100], ve = P[1];
61
- function be({ actions: l, row: s }) {
60
+ ], ve = j("settings", ye), P = [5, 10, 30, 50, 100], be = P[1];
61
+ function Ne({ actions: d, row: s }) {
62
62
  return /* @__PURE__ */ r(I, { children: [
63
- /* @__PURE__ */ e($, { asChild: !0, children: /* @__PURE__ */ e(k, { variant: "ghost", size: "icon", className: "h-7 w-7 text-muted-foreground hover:text-foreground", children: /* @__PURE__ */ e(le, { className: "size-3.5" }) }) }),
63
+ /* @__PURE__ */ e($, { asChild: !0, children: /* @__PURE__ */ e(w, { variant: "ghost", size: "icon", className: "h-7 w-7 text-muted-foreground hover:text-foreground", children: /* @__PURE__ */ e(oe, { className: "size-3.5" }) }) }),
64
64
  /* @__PURE__ */ e(
65
65
  B,
66
66
  {
@@ -68,10 +68,10 @@ function be({ actions: l, row: s }) {
68
68
  onClick: (t) => {
69
69
  t.stopPropagation();
70
70
  },
71
- children: l.map((t, a) => {
71
+ children: d.map((t, a) => {
72
72
  const c = t.icon;
73
73
  return /* @__PURE__ */ r(
74
- se,
74
+ ne,
75
75
  {
76
76
  onClick: () => {
77
77
  t.onClick(s);
@@ -89,69 +89,70 @@ function be({ actions: l, row: s }) {
89
89
  )
90
90
  ] });
91
91
  }
92
- function Ne({
93
- isLoading: l,
92
+ function ke({
93
+ isLoading: d,
94
94
  colSpanCount: s,
95
95
  noDataMessage: t,
96
96
  paginatedData: a,
97
97
  getRowId: c,
98
- onRowClick: i,
98
+ onRowClick: n,
99
99
  hasBulkActions: p,
100
- selectedRows: y,
101
- toggleRowSelection: h,
100
+ selectedRows: f,
101
+ toggleRowSelection: m,
102
102
  visibleColumnsArray: o,
103
- columnWidths: w,
103
+ columnWidths: b,
104
104
  hasActions: C,
105
- actions: f,
106
- columns: b
105
+ actions: y,
106
+ columns: z,
107
+ bordered: N = !1
107
108
  }) {
108
- const z = (m, g) => {
109
- const n = b.find((v) => v.key === g);
110
- if ((n == null ? void 0 : n.renderCell) !== void 0)
111
- return n.renderCell(m);
112
- const x = m[g];
109
+ const D = (h, g) => {
110
+ const i = z.find((v) => v.key === g);
111
+ if ((i == null ? void 0 : i.renderCell) !== void 0)
112
+ return i.renderCell(h);
113
+ const x = h[g];
113
114
  return /* @__PURE__ */ e("span", { className: "text-sm truncate", children: x != null ? String(x) : "-" });
114
115
  };
115
- return l ? /* @__PURE__ */ e("tbody", { className: "divide-y divide-gray-200 dark:divide-gray-800", children: /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: s, className: "py-8 text-center", children: /* @__PURE__ */ r("div", { className: "flex flex-col items-center justify-center gap-2 text-muted-foreground", children: [
116
- /* @__PURE__ */ e(oe, { className: "h-6 w-6 animate-spin text-primary" }),
116
+ return d ? /* @__PURE__ */ e("tbody", { className: "divide-y divide-gray-200 dark:divide-gray-800", children: /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: s, className: "py-8 text-center", children: /* @__PURE__ */ r("div", { className: "flex flex-col items-center justify-center gap-2 text-muted-foreground", children: [
117
+ /* @__PURE__ */ e(ce, { className: "h-6 w-6 animate-spin text-primary" }),
117
118
  /* @__PURE__ */ e("span", { className: "text-sm", children: "Chargement..." })
118
- ] }) }) }) }) : a.length === 0 ? /* @__PURE__ */ e("tbody", { className: "divide-y divide-gray-200 dark:divide-gray-800", children: /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: s, className: "py-8 text-center text-sm text-muted-foreground", children: t }) }) }) : /* @__PURE__ */ e("tbody", { className: "divide-y divide-gray-200 dark:divide-gray-800", children: a.map((m) => {
119
- const g = c(m);
119
+ ] }) }) }) }) : a.length === 0 ? /* @__PURE__ */ e("tbody", { className: "divide-y divide-gray-200 dark:divide-gray-800", children: /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: s, className: "py-8 text-center text-sm text-muted-foreground", children: t }) }) }) : /* @__PURE__ */ e("tbody", { className: "divide-y divide-gray-200 dark:divide-gray-800", children: a.map((h) => {
120
+ const g = c(h);
120
121
  return /* @__PURE__ */ r(
121
122
  "tr",
122
123
  {
123
- className: `group hover:bg-muted/50 dark:hover:bg-gray-900/50 transition-colors ${i !== void 0 ? "cursor-pointer" : ""}`,
124
- onClick: () => i == null ? void 0 : i(m),
124
+ className: `group hover:bg-muted/50 dark:hover:bg-gray-900/50 transition-colors ${n !== void 0 ? "cursor-pointer" : ""}`,
125
+ onClick: () => n == null ? void 0 : n(h),
125
126
  children: [
126
127
  p ? /* @__PURE__ */ e(
127
128
  "td",
128
129
  {
129
130
  className: "p-1 text-center align-middle",
130
131
  style: { width: "32px", minWidth: "32px", maxWidth: "32px" },
131
- onClick: (n) => {
132
- n.stopPropagation();
132
+ onClick: (i) => {
133
+ i.stopPropagation();
133
134
  },
134
135
  children: /* @__PURE__ */ e("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ e(
135
136
  L,
136
137
  {
137
- checked: y.includes(g),
138
+ checked: f.includes(g),
138
139
  onCheckedChange: () => {
139
- h(g);
140
+ m(g);
140
141
  }
141
142
  }
142
143
  ) })
143
144
  }
144
145
  ) : null,
145
- o.map((n, x) => {
146
+ o.map((i, x) => {
146
147
  const v = x === o.length - 1;
147
148
  return /* @__PURE__ */ e(
148
149
  "td",
149
150
  {
150
- className: `px-2 py-2 border-r border-gray-100 dark:border-gray-800 relative ${v ? "border-r-0" : ""}`,
151
- style: { width: w[n.key] },
152
- children: /* @__PURE__ */ e("div", { className: "w-full h-full", children: z(m, n.key) })
151
+ className: `px-2 py-2 relative ${N && !v ? "border-r border-gray-100 dark:border-gray-800" : ""}`,
152
+ style: { width: b[i.key] },
153
+ children: /* @__PURE__ */ e("div", { className: "w-full h-full", children: D(h, i.key) })
153
154
  },
154
- n.key
155
+ i.key
155
156
  );
156
157
  }),
157
158
  C ? /* @__PURE__ */ e(
@@ -159,10 +160,10 @@ function Ne({
159
160
  {
160
161
  className: "p-1 text-center align-middle",
161
162
  style: { width: "32px", minWidth: "32px", maxWidth: "32px" },
162
- onClick: (n) => {
163
- n.stopPropagation();
163
+ onClick: (i) => {
164
+ i.stopPropagation();
164
165
  },
165
- children: f !== void 0 && f.length > 0 ? /* @__PURE__ */ e("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ e(be, { actions: f, row: m }) }) : null
166
+ children: y !== void 0 && y.length > 0 ? /* @__PURE__ */ e("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ e(Ne, { actions: y, row: h }) }) : null
166
167
  }
167
168
  ) : null
168
169
  ]
@@ -171,28 +172,28 @@ function Ne({
171
172
  );
172
173
  }) });
173
174
  }
174
- function ke({ selectedRows: l, setSelectedRows: s, bulkActions: t }) {
175
+ function we({ selectedRows: d, setSelectedRows: s, bulkActions: t }) {
175
176
  return /* @__PURE__ */ r("div", { className: "bg-muted/60 dark:bg-gray-900/60 border border-border px-3 py-1.5 flex items-center justify-between rounded-lg", children: [
176
177
  /* @__PURE__ */ r("div", { className: "flex items-center gap-4", children: [
177
178
  /* @__PURE__ */ r("span", { className: "text-sm font-medium text-primary ml-1", children: [
178
- l.length,
179
+ d.length,
179
180
  " sélectionné(s)"
180
181
  ] }),
181
182
  /* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: t.map((a, c) => {
182
- const i = a.icon;
183
+ const n = a.icon;
183
184
  return /* @__PURE__ */ r(
184
- k,
185
+ w,
185
186
  {
186
187
  variant: "outline",
187
188
  size: "sm",
188
189
  onClick: () => {
189
- a.onClick(l, () => {
190
+ a.onClick(d, () => {
190
191
  s([]);
191
192
  });
192
193
  },
193
194
  className: `h-7 bg-background shadow-sm text-xs px-2.5 ${a.variant === "destructive" ? "text-destructive border-destructive/30 hover:bg-destructive/10 hover:text-destructive" : "text-foreground"}`,
194
195
  children: [
195
- i !== void 0 && /* @__PURE__ */ e("span", { className: "mr-1.5 flex items-center justify-center", children: /* @__PURE__ */ e(i, { className: "h-3.5 w-3.5" }) }),
196
+ n !== void 0 && /* @__PURE__ */ e("span", { className: "mr-1.5 flex items-center justify-center", children: /* @__PURE__ */ e(n, { className: "h-3.5 w-3.5" }) }),
196
197
  a.label
197
198
  ]
198
199
  },
@@ -201,7 +202,7 @@ function ke({ selectedRows: l, setSelectedRows: s, bulkActions: t }) {
201
202
  }) })
202
203
  ] }),
203
204
  /* @__PURE__ */ e(
204
- k,
205
+ w,
205
206
  {
206
207
  variant: "ghost",
207
208
  size: "sm",
@@ -214,95 +215,96 @@ function ke({ selectedRows: l, setSelectedRows: s, bulkActions: t }) {
214
215
  )
215
216
  ] });
216
217
  }
217
- function we({
218
- hasBulkActions: l,
218
+ function Ce({
219
+ hasBulkActions: d,
219
220
  selectedRows: s,
220
221
  totalItems: t,
221
222
  toggleSelectAll: a,
222
223
  visibleColumnsArray: c,
223
- draggableColumns: i,
224
+ draggableColumns: n,
224
225
  resizableColumns: p,
225
- columnWidths: y,
226
- sortColumn: h,
226
+ columnWidths: f,
227
+ sortColumn: m,
227
228
  sortDirection: o,
228
- handleSort: w,
229
+ handleSort: b,
229
230
  handleDragStart: C,
230
- handleDragOver: f,
231
- handleDrop: b,
232
- handleMouseDown: z,
233
- hasActions: m,
234
- settingsNode: g
231
+ handleDragOver: y,
232
+ handleDrop: z,
233
+ handleMouseDown: N,
234
+ hasActions: D,
235
+ settingsNode: h,
236
+ bordered: g = !1
235
237
  }) {
236
- let n = !1;
237
- s.length === t && t > 0 ? n = !0 : s.length > 0 && (n = "indeterminate");
238
- const x = (d) => d.sortable !== !0 ? null : h === d.key ? o === "asc" ? /* @__PURE__ */ e(xe, { className: "size-3.5 text-foreground" }) : /* @__PURE__ */ e(me, { className: "size-3.5 text-foreground" }) : /* @__PURE__ */ e(ue, { className: "size-3.5 text-muted-foreground/50 group-hover:text-muted-foreground transition-colors" }), v = (d, j) => {
239
- const S = j !== !1, N = d.sortable === !0, M = h === d.key;
238
+ let i = !1;
239
+ s.length === t && t > 0 ? i = !0 : s.length > 0 && (i = "indeterminate");
240
+ const x = (l) => l.sortable !== !0 ? null : m === l.key ? o === "asc" ? /* @__PURE__ */ e(fe, { className: "size-3.5 text-foreground" }) : /* @__PURE__ */ e(ge, { className: "size-3.5 text-foreground" }) : /* @__PURE__ */ e(pe, { className: "size-3.5 text-muted-foreground/50 group-hover:text-muted-foreground transition-colors" }), v = (l, M) => {
241
+ const S = M !== !1, k = l.sortable === !0;
240
242
  return /* @__PURE__ */ r(
241
243
  "th",
242
244
  {
243
245
  className: [
244
- "px-2 py-2 text-left text-sm font-medium text-gray-900 dark:text-gray-100 relative group border-r border-gray-200 dark:border-gray-800",
245
- N ? "cursor-pointer hover:bg-gray-100 dark:hover:bg-gray-800 select-none" : "",
246
- M ? "bg-gray-100/80 dark:bg-gray-800/80" : ""
246
+ "px-2 py-2 text-left text-sm font-medium text-gray-900 dark:text-gray-100 relative group",
247
+ g ? "border-r border-gray-200 dark:border-gray-800" : "",
248
+ k ? "cursor-pointer select-none" : ""
247
249
  ].filter(Boolean).join(" "),
248
- style: { width: y[d.key] },
250
+ style: { width: f[l.key] },
249
251
  draggable: S,
250
252
  onClick: () => {
251
- w(d.key);
253
+ b(l.key);
252
254
  },
253
255
  onDragStart: (u) => {
254
- S ? C(u, d.key) : u.preventDefault();
256
+ S ? C(u, l.key) : u.preventDefault();
255
257
  },
256
258
  onDragOver: (u) => {
257
- f(u, d.key);
259
+ y(u, l.key);
258
260
  },
259
261
  onDrop: (u) => {
260
- b(u, d.key);
262
+ z(u, l.key);
261
263
  },
262
264
  children: [
263
265
  /* @__PURE__ */ r("div", { className: "flex items-center justify-between pr-2", children: [
264
266
  /* @__PURE__ */ r("div", { className: "flex items-center gap-1", children: [
265
- S ? /* @__PURE__ */ e(ce, { className: "size-4 text-gray-400 cursor-grab dark:text-gray-300 shrink-0" }) : null,
266
- /* @__PURE__ */ e("span", { className: "truncate", children: d.label })
267
+ S ? /* @__PURE__ */ e(he, { className: "size-4 text-gray-400 cursor-grab dark:text-gray-300 shrink-0" }) : null,
268
+ /* @__PURE__ */ e("span", { className: "truncate", children: l.label })
267
269
  ] }),
268
- /* @__PURE__ */ e("div", { className: "ml-1 shrink-0", children: x(d) })
270
+ /* @__PURE__ */ e("div", { className: "ml-1 shrink-0", children: x(l) })
269
271
  ] }),
270
272
  p ? /* @__PURE__ */ e(
271
273
  "div",
272
274
  {
273
275
  className: "absolute right-0 top-0 bottom-0 w-2 cursor-col-resize hover:bg-blue-500 opacity-0 group-hover:opacity-50 transition-opacity",
274
276
  onMouseDown: (u) => {
275
- z(u, d.key);
277
+ N(u, l.key);
276
278
  }
277
279
  }
278
280
  ) : null
279
281
  ]
280
282
  },
281
- d.key
283
+ l.key
282
284
  );
283
285
  };
284
286
  return /* @__PURE__ */ e("thead", { className: "bg-muted/50 dark:bg-gray-900/50 border-b border-gray-200 dark:border-gray-800", children: /* @__PURE__ */ r("tr", { children: [
285
- l ? /* @__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(L, { checked: n, onCheckedChange: a }) }) }) : null,
286
- c.map((d) => v(d, i)),
287
- m || g !== void 0 ? /* @__PURE__ */ e("th", { className: "p-1 text-center align-middle", style: { width: "32px", minWidth: "32px", maxWidth: "32px" }, children: g }) : null
287
+ d ? /* @__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(L, { checked: i, onCheckedChange: a }) }) }) : null,
288
+ c.map((l) => v(l, n)),
289
+ D || h !== void 0 ? /* @__PURE__ */ e("th", { className: "p-1 text-center align-middle", style: { width: "32px", minWidth: "32px", maxWidth: "32px" }, children: h }) : null
288
290
  ] }) });
289
291
  }
290
- function Ce({
291
- totalItems: l,
292
+ function ze({
293
+ totalItems: d,
292
294
  startIndex: s,
293
295
  endIndex: t,
294
296
  pageSize: a,
295
297
  setPageSize: c,
296
- currentPage: i,
298
+ currentPage: n,
297
299
  setCurrentPage: p,
298
- pageSizeOptions: y,
299
- totalPages: h
300
+ pageSizeOptions: f,
301
+ totalPages: m
300
302
  }) {
301
- return /* @__PURE__ */ r("div", { className: "px-4 py-2 border-t border-border flex items-center justify-between bg-card flex-wrap gap-2", children: [
303
+ return /* @__PURE__ */ r("div", { className: "px-4 py-2 border-t border-gray-200 dark:border-gray-800 flex items-center justify-between bg-muted/50 dark:bg-gray-900/50 flex-wrap gap-2", children: [
302
304
  /* @__PURE__ */ r("div", { className: "text-sm text-muted-foreground", children: [
303
- l === 0 ? "0" : `${String(s + 1)} - ${String(t)}`,
305
+ d === 0 ? "0" : `${String(s + 1)} - ${String(t)}`,
304
306
  " sur ",
305
- l
307
+ d
306
308
  ] }),
307
309
  /* @__PURE__ */ r("div", { className: "flex items-center gap-4", children: [
308
310
  /* @__PURE__ */ r("div", { className: "flex items-center gap-2", children: [
@@ -315,13 +317,13 @@ function Ce({
315
317
  c(Number(o.target.value)), p(1);
316
318
  },
317
319
  className: "border border-input bg-background rounded px-2 py-1 text-sm text-foreground",
318
- children: y.map((o) => /* @__PURE__ */ e("option", { value: o, children: o }, o))
320
+ children: f.map((o) => /* @__PURE__ */ e("option", { value: o, children: o }, o))
319
321
  }
320
322
  )
321
323
  ] }),
322
324
  /* @__PURE__ */ r("div", { className: "flex items-center gap-2", children: [
323
325
  /* @__PURE__ */ e(
324
- k,
326
+ w,
325
327
  {
326
328
  variant: "outline",
327
329
  size: "sm",
@@ -329,38 +331,38 @@ function Ce({
329
331
  onClick: () => {
330
332
  p((o) => Math.max(1, o - 1));
331
333
  },
332
- disabled: i === 1,
334
+ disabled: n === 1,
333
335
  children: /* @__PURE__ */ e(ie, { className: "size-4" })
334
336
  }
335
337
  ),
336
338
  /* @__PURE__ */ r("span", { className: "text-sm text-muted-foreground", children: [
337
339
  "Page ",
338
- i,
340
+ n,
339
341
  " sur ",
340
- h
342
+ m
341
343
  ] }),
342
344
  /* @__PURE__ */ e(
343
- k,
345
+ w,
344
346
  {
345
347
  variant: "outline",
346
348
  size: "sm",
347
349
  className: "h-8 w-8 p-0",
348
350
  onClick: () => {
349
- p((o) => Math.min(h, o + 1));
351
+ p((o) => Math.min(m, o + 1));
350
352
  },
351
- disabled: i === h,
352
- children: /* @__PURE__ */ e(ne, { className: "size-4" })
353
+ disabled: n === m,
354
+ children: /* @__PURE__ */ e(de, { className: "size-4" })
353
355
  }
354
356
  )
355
357
  ] })
356
358
  ] })
357
359
  ] });
358
360
  }
359
- function ze({ columns: l, visibleColumns: s, toggleColumnVisibility: t }) {
361
+ function De({ columns: d, visibleColumns: s, toggleColumnVisibility: t }) {
360
362
  return /* @__PURE__ */ r(I, { children: [
361
- /* @__PURE__ */ e($, { asChild: !0, children: /* @__PURE__ */ e(k, { 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(fe, { className: "size-3.5 text-gray-600 dark:text-gray-300" }) }) }),
362
- /* @__PURE__ */ e(B, { align: "end", className: "w-56", children: l.map((a) => /* @__PURE__ */ e(
363
- de,
363
+ /* @__PURE__ */ e($, { asChild: !0, children: /* @__PURE__ */ e(w, { 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(ve, { className: "size-3.5 text-gray-600 dark:text-gray-300" }) }) }),
364
+ /* @__PURE__ */ e(B, { align: "end", className: "w-56", children: d.map((a) => /* @__PURE__ */ e(
365
+ le,
364
366
  {
365
367
  checked: s.has(a.key),
366
368
  onCheckedChange: () => {
@@ -372,143 +374,146 @@ function ze({ columns: l, visibleColumns: s, toggleColumnVisibility: t }) {
372
374
  )) })
373
375
  ] });
374
376
  }
375
- function Pe({
376
- data: l,
377
+ function Ve({
378
+ data: d,
377
379
  columns: s,
378
380
  getRowId: t,
379
381
  onRowClick: a,
380
382
  actions: c,
381
- bulkActions: i,
383
+ bulkActions: n,
382
384
  draggableColumns: p = !0,
383
- resizableColumns: y = !0,
384
- columnVisibility: h = !0,
385
+ resizableColumns: f = !0,
386
+ columnVisibility: m = !0,
385
387
  isLoading: o = !1,
386
- noDataMessage: w = "Aucun résultat",
387
- defaultPageSize: C = ve,
388
- pageSizeOptions: f = P,
389
- totalRows: b,
390
- currentPage: z,
391
- pageSize: m,
388
+ bordered: b = !1,
389
+ noDataMessage: C = "Aucun résultat",
390
+ defaultPageSize: y = be,
391
+ pageSizeOptions: z = P,
392
+ totalRows: N,
393
+ currentPage: D,
394
+ pageSize: h,
392
395
  onPageChange: g,
393
- onPageSizeChange: n,
396
+ onPageSizeChange: i,
394
397
  sortColumn: x,
395
398
  sortDirection: v,
396
- onSortChange: d
399
+ onSortChange: l
397
400
  }) {
398
401
  const {
399
- sortColumn: j,
402
+ sortColumn: M,
400
403
  sortDirection: S,
401
- selectedRows: N,
402
- setSelectedRows: M,
403
- visibleColumns: u,
404
+ selectedRows: k,
405
+ setSelectedRows: u,
406
+ visibleColumns: V,
404
407
  columnWidths: T,
405
- safeCurrentPage: V,
406
- totalPages: q,
407
- startIndex: E,
408
- endIndex: G,
409
- tableRef: H,
410
- hasActions: A,
411
- hasBulkActions: W,
412
- visibleColumnsArray: _,
413
- colSpanCount: O,
414
- paginatedData: U,
415
- handleSort: F,
416
- handleMouseDown: J,
417
- handleDragStart: Q,
418
- handleDragOver: X,
419
- handleDrop: Y,
420
- toggleColumnVisibility: Z,
421
- toggleRowSelection: K,
422
- toggleSelectAll: R,
423
- pageSize: ee,
424
- setPageSize: re,
425
- setCurrentPage: te
426
- } = ae({
427
- data: l,
408
+ safeCurrentPage: q,
409
+ totalPages: E,
410
+ startIndex: G,
411
+ endIndex: H,
412
+ tableRef: O,
413
+ hasActions: W,
414
+ hasBulkActions: _,
415
+ visibleColumnsArray: A,
416
+ colSpanCount: U,
417
+ paginatedData: F,
418
+ handleSort: J,
419
+ handleMouseDown: Q,
420
+ handleDragStart: X,
421
+ handleDragOver: Y,
422
+ handleDrop: Z,
423
+ toggleColumnVisibility: K,
424
+ toggleRowSelection: R,
425
+ toggleSelectAll: ee,
426
+ pageSize: re,
427
+ setPageSize: te,
428
+ setCurrentPage: ae
429
+ } = se({
430
+ data: d,
428
431
  columns: s,
429
432
  getRowId: t,
430
- defaultPageSize: C,
433
+ defaultPageSize: y,
431
434
  actions: c,
432
- bulkActions: i,
433
- columnVisibility: h,
434
- totalRows: b,
435
- currentPage: z,
436
- pageSize: m,
435
+ bulkActions: n,
436
+ columnVisibility: m,
437
+ totalRows: N,
438
+ currentPage: D,
439
+ pageSize: h,
437
440
  onPageChange: g,
438
- onPageSizeChange: n,
441
+ onPageSizeChange: i,
439
442
  sortColumn: x,
440
443
  sortDirection: v,
441
- onSortChange: d
444
+ onSortChange: l
442
445
  });
443
446
  return /* @__PURE__ */ r("div", { className: "space-y-4", children: [
444
- N.length > 0 && i !== void 0 && i.length > 0 && /* @__PURE__ */ e(ke, { selectedRows: N, setSelectedRows: M, bulkActions: i }),
447
+ k.length > 0 && n !== void 0 && n.length > 0 && /* @__PURE__ */ e(we, { selectedRows: k, setSelectedRows: u, bulkActions: n }),
445
448
  /* @__PURE__ */ r("div", { className: "w-full bg-card dark:bg-gray-950 rounded-md border border-gray-200 dark:border-gray-800 overflow-hidden", children: [
446
- /* @__PURE__ */ e("div", { className: "overflow-x-auto", children: /* @__PURE__ */ r("table", { ref: H, className: "w-full", children: [
449
+ /* @__PURE__ */ e("div", { className: "overflow-x-auto", children: /* @__PURE__ */ r("table", { ref: O, className: "w-full", children: [
447
450
  /* @__PURE__ */ e(
448
- we,
451
+ Ce,
449
452
  {
450
- hasBulkActions: W,
451
- selectedRows: N,
452
- totalItems: l.length,
453
- toggleSelectAll: R,
454
- visibleColumnsArray: _,
453
+ hasBulkActions: _,
454
+ selectedRows: k,
455
+ totalItems: d.length,
456
+ toggleSelectAll: ee,
457
+ visibleColumnsArray: A,
455
458
  draggableColumns: p,
456
- resizableColumns: y,
459
+ resizableColumns: f,
457
460
  columnWidths: T,
458
- sortColumn: j,
461
+ sortColumn: M,
459
462
  sortDirection: S,
460
- handleSort: F,
461
- handleDragStart: Q,
462
- handleDragOver: X,
463
- handleDrop: Y,
464
- handleMouseDown: J,
465
- hasActions: A,
466
- settingsNode: h ? /* @__PURE__ */ e(ze, { columns: s, visibleColumns: u, toggleColumnVisibility: Z }) : void 0
463
+ handleSort: J,
464
+ handleDragStart: X,
465
+ handleDragOver: Y,
466
+ handleDrop: Z,
467
+ handleMouseDown: Q,
468
+ hasActions: W,
469
+ bordered: b,
470
+ settingsNode: m ? /* @__PURE__ */ e(De, { columns: s, visibleColumns: V, toggleColumnVisibility: K }) : void 0
467
471
  }
468
472
  ),
469
473
  /* @__PURE__ */ e(
470
- Ne,
474
+ ke,
471
475
  {
476
+ bordered: b,
472
477
  isLoading: o,
473
- colSpanCount: O,
474
- noDataMessage: w,
475
- paginatedData: U,
478
+ colSpanCount: U,
479
+ noDataMessage: C,
480
+ paginatedData: F,
476
481
  getRowId: t,
477
482
  onRowClick: a,
478
- hasBulkActions: W,
479
- selectedRows: N,
480
- toggleRowSelection: K,
481
- visibleColumnsArray: _,
483
+ hasBulkActions: _,
484
+ selectedRows: k,
485
+ toggleRowSelection: R,
486
+ visibleColumnsArray: A,
482
487
  columnWidths: T,
483
- hasActions: A || h,
488
+ hasActions: W || m,
484
489
  actions: c,
485
490
  columns: s
486
491
  }
487
492
  )
488
493
  ] }) }),
489
494
  /* @__PURE__ */ e(
490
- Ce,
495
+ ze,
491
496
  {
492
- totalItems: b ?? l.length,
493
- startIndex: E,
494
- endIndex: G,
495
- pageSize: ee,
496
- setPageSize: re,
497
- currentPage: V,
498
- setCurrentPage: te,
499
- pageSizeOptions: f,
500
- totalPages: q
497
+ totalItems: N ?? d.length,
498
+ startIndex: G,
499
+ endIndex: H,
500
+ pageSize: re,
501
+ setPageSize: te,
502
+ currentPage: q,
503
+ setCurrentPage: ae,
504
+ pageSizeOptions: z,
505
+ totalPages: E
501
506
  }
502
507
  )
503
508
  ] })
504
509
  ] });
505
510
  }
506
511
  export {
507
- Pe as D,
508
- be as T,
509
- Ne as a,
510
- ke as b,
511
- we as c,
512
- Ce as d,
513
- ze as e
512
+ Ve as D,
513
+ Ne as T,
514
+ ke as a,
515
+ we as b,
516
+ Ce as c,
517
+ ze as d,
518
+ De as e
514
519
  };
@@ -15,7 +15,7 @@ import { S as Z, a as _, T as $ } from "../../Topbar-DFu_OdSs.js";
15
15
  import { E as ea } from "../../ErrorAlert-C6BbHHRZ.js";
16
16
  import { E as oa } from "../../ErrorState-vU8d4CwD.js";
17
17
  import { L as ta } from "../../LoadingState-PhGi7HXH.js";
18
- import { D as la, T as pa, a as ma, b as ba, c as fa, d as ga, e as Da } from "../../DataTable-CUU_sTQd.js";
18
+ import { D as la, T as pa, a as ma, b as ba, c as fa, d as ga, e as Da } from "../../DataTable-CrJoeR_0.js";
19
19
  import { A as na, a as ca, b as da, c as xa } from "../../AppVerticalTabs-CdqoObXx.js";
20
20
  import { T as Sa } from "../../ThemeSelector--w3R6Ff3.js";
21
21
  export {
@@ -13,6 +13,7 @@ export interface DataTableProps<T> {
13
13
  columnVisibility?: boolean;
14
14
  isLoading?: boolean;
15
15
  noDataMessage?: string;
16
+ bordered?: boolean;
16
17
  defaultPageSize?: number;
17
18
  pageSizeOptions?: number[];
18
19
  totalRows?: number;
@@ -24,5 +25,5 @@ export interface DataTableProps<T> {
24
25
  sortDirection?: "asc" | "desc";
25
26
  onSortChange?: (column: string | null, direction: "asc" | "desc") => void;
26
27
  }
27
- export declare function DataTable<T>({ data, columns, getRowId, onRowClick, actions, bulkActions, draggableColumns, resizableColumns, columnVisibility, isLoading, noDataMessage, defaultPageSize, pageSizeOptions, totalRows, currentPage, pageSize: controlledPageSize, onPageChange, onPageSizeChange, sortColumn: controlledSortColumn, sortDirection: controlledSortDirection, onSortChange, }: DataTableProps<T>): React.JSX.Element;
28
+ export declare function DataTable<T>({ data, columns, getRowId, onRowClick, actions, bulkActions, draggableColumns, resizableColumns, columnVisibility, isLoading, bordered, noDataMessage, defaultPageSize, pageSizeOptions, totalRows, currentPage, pageSize: controlledPageSize, onPageChange, onPageSizeChange, sortColumn: controlledSortColumn, sortDirection: controlledSortDirection, onSortChange, }: DataTableProps<T>): React.JSX.Element;
28
29
  //# sourceMappingURL=DataTable.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DataTable.d.ts","sourceRoot":"","sources":["../../../../src/components/core/table/DataTable.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAMvE,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,g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,MAAM,EAAE,CAAC;IAG3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAG9C,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,aAAa,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAC/B,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,EAAE,SAAS,EAAE,KAAK,GAAG,MAAM,KAAK,IAAI,CAAC;CAC3E;AAED,wBAAgB,SAAS,CAAC,CAAC,EAAE,EAC3B,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,UAAU,EACV,OAAO,EACP,WAAW,EACX,gBAAuB,EACvB,gBAAuB,EACvB,gBAAuB,EACvB,SAAiB,EACjB,QAAgB,EAChB,aAAgC,EAChC,eAAmC,EACnC,eAA2C,EAC3C,SAAS,EACT,WAAW,EACX,QAAQ,EAAE,kBAAkB,EAC5B,YAAY,EACZ,gBAAgB,EAChB,UAAU,EAAE,oBAAoB,EAChC,aAAa,EAAE,uBAAuB,EACtC,YAAY,GACb,EAAE,cAAc,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAkHvC"}
@@ -16,6 +16,7 @@ export interface TableBodyProps<T> {
16
16
  hasActions: boolean;
17
17
  actions?: RowAction<T>[];
18
18
  columns: ColumnDef<T>[];
19
+ bordered?: boolean;
19
20
  }
20
- export declare function TableBody<T>({ isLoading, colSpanCount, noDataMessage, paginatedData, getRowId, onRowClick, hasBulkActions, selectedRows, toggleRowSelection, visibleColumnsArray, columnWidths, hasActions, actions, columns, }: TableBodyProps<T>): React.JSX.Element;
21
+ export declare function TableBody<T>({ isLoading, colSpanCount, noDataMessage, paginatedData, getRowId, onRowClick, hasBulkActions, selectedRows, toggleRowSelection, visibleColumnsArray, columnWidths, hasActions, actions, columns, bordered, }: TableBodyProps<T>): React.JSX.Element;
21
22
  //# sourceMappingURL=TableBody.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TableBody.d.ts","sourceRoot":"","sources":["../../../../src/components/core/table/TableBody.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAC/C,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEvE,MAAM,WAAW,cAAc,CAAC,CAAC;IAC/B,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,CAAC,EAAE,CAAC;IACnB,QAAQ,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,MAAM,CAAC;IAC7B,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,IAAI,CAAC;IAC9B,cAAc,EAAE,OAAO,CAAC;IACxB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,kBAAkB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,mBAAmB,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;IACpC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,UAAU,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;IACzB,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;CACzB;AAED,wBAAgB,SAAS,CAAC,CAAC,EAAE,EAC3B,SAAS,EACT,YAAY,EACZ,aAAa,EACb,aAAa,EACb,QAAQ,EACR,UAAU,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AAa,EACb,aAAa,EACb,QAAQ,EACR,UAAU,EACV,cAAc,EACd,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,EACnB,YAAY,EACZ,UAAU,EACV,OAAO,EACP,OAAO,EACP,QAAgB,GACjB,EAAE,cAAc,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAiGvC"}
@@ -18,6 +18,7 @@ export interface TableHeaderProps<T> {
18
18
  handleMouseDown: (e: React.MouseEvent, columnKey: string) => void;
19
19
  hasActions: boolean;
20
20
  settingsNode?: React.ReactNode;
21
+ bordered?: boolean;
21
22
  }
22
- export declare function TableHeader<T>({ hasBulkActions, selectedRows, totalItems, toggleSelectAll, visibleColumnsArray, draggableColumns, resizableColumns, columnWidths, sortColumn, sortDirection, handleSort, handleDragStart, handleDragOver, handleDrop, handleMouseDown, hasActions, settingsNode, }: TableHeaderProps<T>): React.JSX.Element;
23
+ export declare function TableHeader<T>({ hasBulkActions, selectedRows, totalItems, toggleSelectAll, visibleColumnsArray, draggableColumns, resizableColumns, columnWidths, sortColumn, sortDirection, handleSort, handleDragStart, handleDragOver, handleDrop, handleMouseDown, hasActions, settingsNode, bordered, }: TableHeaderProps<T>): React.JSX.Element;
23
24
  //# sourceMappingURL=TableHeader.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TableHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/core/table/TableHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,gBAAgB,CAAC,CAAC;IACjC,cAAc,EAAE,OAAO,CAAC;IACxB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,mBAAmB,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;IACpC,gBAAgB,EAAE,OA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ACZ,QAAgB,GACjB,EAAE,gBAAgB,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAuFzC"}
@@ -1,4 +1,4 @@
1
- import { D as s, T as b, a as l, b as T, c as t, d as o, e as i } from "../../../DataTable-CUU_sTQd.js";
1
+ import { D as s, T as b, a as l, b as T, c as t, d as o, e as i } from "../../../DataTable-CrJoeR_0.js";
2
2
  export {
3
3
  s as DataTable,
4
4
  b as TableActions,
@@ -15,7 +15,7 @@ import { S as xs, a as As, T as Is } from "../Topbar-DFu_OdSs.js";
15
15
  import { E as hs } from "../ErrorAlert-C6BbHHRZ.js";
16
16
  import { E as vs } from "../ErrorState-vU8d4CwD.js";
17
17
  import { L as Fs } from "../LoadingState-PhGi7HXH.js";
18
- import { D as Bs, T as Gs, a as Rs, b as ks, c as Hs, d as Ns, e as ys } from "../DataTable-CUU_sTQd.js";
18
+ import { D as Bs, T as Gs, a as Rs, b as ks, c as Hs, d as Ns, e as ys } from "../DataTable-CrJoeR_0.js";
19
19
  import { A as Os, a as Vs, b as Ks, c as zs } from "../AppVerticalTabs-CdqoObXx.js";
20
20
  import { T as js } from "../ThemeSelector--w3R6Ff3.js";
21
21
  import { A as Js, a as Qs, b as Ws } from "../alert-B34E_4uH.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@krosoft/react",
3
- "version": "0.0.120",
3
+ "version": "0.0.122",
4
4
  "description": "Krosoft shared React package",
5
5
  "type": "module",
6
6
  "scripts": {