@krosoft/react 0.0.290 → 0.0.292

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.
@@ -8,7 +8,7 @@ import { i as h, l as g, n as _, t as v, u as y } from "./select-DmLScQKX.js";
8
8
  import { n as b } from "./useToast-UeDRLovh.js";
9
9
  import { t as x } from "./ImageInput-BPNEywyf.js";
10
10
  import { t as S } from "./AppSubTitle-BOVTZlUB.js";
11
- import { t as C } from "./MultiSelect-inNRlftX.js";
11
+ import { t as C } from "./MultiSelect-O4JP5fRO.js";
12
12
  import { useState as w } from "react";
13
13
  import { jsx as T, jsxs as E } from "react/jsx-runtime";
14
14
  import { useForm as D } from "react-hook-form";
@@ -75,55 +75,50 @@ var p = ({ options: p, selected: m, onToggle: h, onClear: g, onSelectAll: _, pla
75
75
  }) : null,
76
76
  /* @__PURE__ */ l("div", {
77
77
  className: "flex flex-col gap-0.5 max-h-56 overflow-y-auto p-1.5 scrollbar-thin scrollbar-thumb-rounded scrollbar-thumb-muted-foreground/20 scrollbar-track-transparent [&::-webkit-scrollbar]:w-1.5 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-muted-foreground/20 [&::-webkit-scrollbar-track]:bg-transparent",
78
- children: [
79
- A.length > 0 && /* @__PURE__ */ l("label", {
80
- className: "flex items-center gap-2.5 rounded-md px-2 py-2 text-sm hover:bg-muted cursor-pointer transition-colors",
81
- children: [/* @__PURE__ */ c(n, {
82
- checked: j,
78
+ children: [A.length === 0 && /* @__PURE__ */ c("p", {
79
+ className: "px-2 py-3 text-center text-xs text-muted-foreground",
80
+ children: C("states.noResult")
81
+ }), A.map((e) => /* @__PURE__ */ l("label", {
82
+ className: "flex items-center gap-2.5 rounded-md px-2 py-2 text-sm hover:bg-muted cursor-pointer transition-colors",
83
+ children: [
84
+ /* @__PURE__ */ c(n, {
85
+ checked: m.includes(e.value),
83
86
  onCheckedChange: () => {
84
- if (j) {
85
- let e = A.map((e) => e.value), t = m.filter((t) => !e.includes(t));
86
- _ === void 0 ? g() : _(t);
87
- } else {
88
- let e = [...m];
89
- A.forEach((t) => {
90
- e.includes(t.value) || e.push(t.value);
91
- }), _ === void 0 ? A.forEach((e) => {
92
- m.includes(e.value) || h(e.value);
93
- }) : _(e);
94
- }
87
+ h(e.value);
95
88
  }
96
- }), "Tout sélectionner"]
97
- }),
98
- A.length === 0 && /* @__PURE__ */ c("p", {
99
- className: "px-2 py-3 text-center text-xs text-muted-foreground",
100
- children: C("states.noResult")
101
- }),
102
- A.map((e) => /* @__PURE__ */ l("label", {
103
- className: "flex items-center gap-2.5 rounded-md px-2 py-2 text-sm hover:bg-muted cursor-pointer transition-colors",
104
- children: [
105
- /* @__PURE__ */ c(n, {
106
- checked: m.includes(e.value),
107
- onCheckedChange: () => {
108
- h(e.value);
109
- }
110
- }),
111
- e.color && /* @__PURE__ */ c("span", {
112
- className: "size-2.5 shrink-0 rounded-full",
113
- style: { backgroundColor: e.color }
114
- }),
115
- e.label
116
- ]
117
- }, e.value))
118
- ]
89
+ }),
90
+ e.color && /* @__PURE__ */ c("span", {
91
+ className: "size-2.5 shrink-0 rounded-full",
92
+ style: { backgroundColor: e.color }
93
+ }),
94
+ e.label
95
+ ]
96
+ }, e.value))]
119
97
  }),
120
- m.length > 0 && /* @__PURE__ */ c("div", {
98
+ A.length > 0 && /* @__PURE__ */ c("div", {
121
99
  className: "border-t border-border p-1.5",
122
- children: /* @__PURE__ */ c("button", {
100
+ children: j ? /* @__PURE__ */ c("button", {
123
101
  type: "button",
124
102
  onClick: g,
125
103
  className: "w-full rounded-md px-2 py-1.5 text-xs text-muted-foreground hover:text-foreground hover:bg-muted transition-colors text-center",
126
- children: "Tout désélectionner"
104
+ children: C("filters.deselectAll")
105
+ }) : /* @__PURE__ */ c("button", {
106
+ type: "button",
107
+ onClick: () => {
108
+ if (j) {
109
+ let e = A.map((e) => e.value), t = m.filter((t) => !e.includes(t));
110
+ _ === void 0 ? g() : _(t);
111
+ } else {
112
+ let e = [...m];
113
+ A.forEach((t) => {
114
+ e.includes(t.value) || e.push(t.value);
115
+ }), _ === void 0 ? A.forEach((e) => {
116
+ m.includes(e.value) || h(e.value);
117
+ }) : _(e);
118
+ }
119
+ },
120
+ className: "w-full rounded-md px-2 py-1.5 text-xs text-muted-foreground hover:text-foreground hover:bg-muted transition-colors text-center",
121
+ children: C("filters.selectAll")
127
122
  })
128
123
  })
129
124
  ]
@@ -1,4 +1,4 @@
1
1
  import { I as e } from "../../../ui-D8Pg34YW.js";
2
2
  import { A as t, D as n, E as r, F as i, M as a, N as o, O as s, P as c, j as l, k as u } from "../../../sheet-DQTOen4V.js";
3
- import { n as d, r as f, t as p } from "../../../dialogs-qiw8m0uw.js";
3
+ import { n as d, r as f, t as p } from "../../../dialogs-BxyPBIc6.js";
4
4
  export { f as AppDialog, p as ConfirmationDialog, r as Dialog, n as DialogClose, s as DialogContent, u as DialogDescription, t as DialogFooter, l as DialogHeader, a as DialogOverlay, o as DialogPortal, c as DialogTitle, i as DialogTrigger, d as FormDialog, e as Progress };
@@ -1 +1 @@
1
- {"version":3,"file":"SearchableFilterPill.d.ts","sourceRoot":"","sources":["../../../../src/components/core/filters/SearchableFilterPill.tsx"],"names":[],"mappings":"AAMA,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,MAAM,EAAE,EACrD,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,WAAW,EACX,UAAkB,EAClB,iBAAiB,GAClB,EAAE;IACD,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,QAAQ,EAAE,CAAC,EAAE,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,EAAE,KAAK,IAAI,CAAC;IACpC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,GAAG,KAAK,CAAC,YAAY,CAgIrB"}
1
+ {"version":3,"file":"SearchableFilterPill.d.ts","sourceRoot":"","sources":["../../../../src/components/core/filters/SearchableFilterPill.tsx"],"names":[],"mappings":"AAMA,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,MAAM,EAAE,EACrD,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,WAAW,EACX,UAAkB,EAClB,iBAAiB,GAClB,EAAE;IACD,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,QAAQ,EAAE,CAAC,EAAE,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,EAAE,KAAK,IAAI,CAAC;IACpC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,GAAG,KAAK,CAAC,YAAY,CAyIrB"}
@@ -4,7 +4,7 @@ import { At as n, Pn as r, bn as i } from "../../../ui-D8Pg34YW.js";
4
4
  import { a, s as o } from "../../../tooltip-BmZ9Bfou.js";
5
5
  import { a as s, g as c, h as l, l as u, m as d, o as f, p, r as m, t as h, u as g } from "../../../sheet-DQTOen4V.js";
6
6
  import { i as _, l as v, n as y, t as b, u as x } from "../../../select-DmLScQKX.js";
7
- import { t as S } from "../../../MultiSelect-inNRlftX.js";
7
+ import { t as S } from "../../../MultiSelect-O4JP5fRO.js";
8
8
  import { i as C, n as w, r as T, t as E } from "../../../SearchInput-BSIjKB_9.js";
9
9
  import { useEffect as D, useMemo as O, useState as k } from "react";
10
10
  import { jsx as A, jsxs as j } from "react/jsx-runtime";
@@ -22,7 +22,7 @@ function R({ filters: e, onRemoveFilter: n, onClearAll: i, filterLabelKeys: a =
22
22
  className: "flex flex-wrap items-center gap-2 mb-4",
23
23
  children: [
24
24
  /* @__PURE__ */ A("span", {
25
- className: "text-sm text-gray-600 font-medium",
25
+ className: "text-sm text-muted-foreground font-medium",
26
26
  children: s("filters.active")
27
27
  }),
28
28
  c.flatMap(([e, t]) => {
@@ -31,7 +31,7 @@ function R({ filters: e, onRemoveFilter: n, onClearAll: i, filterLabelKeys: a =
31
31
  let i = L(e, t, s, o);
32
32
  return /* @__PURE__ */ j(r, {
33
33
  variant: "secondary",
34
- className: "flex items-center gap-1 px-3 py-1 bg-blue-50 text-blue-700 border border-blue-200 hover:bg-blue-100",
34
+ className: "flex items-center gap-1 px-3 py-1 bg-primary/10 text-primary border border-primary/20 hover:bg-primary/20",
35
35
  children: [
36
36
  c,
37
37
  ": ",
@@ -40,7 +40,7 @@ function R({ filters: e, onRemoveFilter: n, onClearAll: i, filterLabelKeys: a =
40
40
  onClick: () => {
41
41
  n(e, t);
42
42
  },
43
- className: "ml-1 hover:bg-blue-200 rounded-full p-0.5",
43
+ className: "ml-1 hover:bg-primary/20 rounded-full p-0.5",
44
44
  children: /* @__PURE__ */ A(I, { className: "size-4" })
45
45
  })
46
46
  ]
@@ -49,7 +49,7 @@ function R({ filters: e, onRemoveFilter: n, onClearAll: i, filterLabelKeys: a =
49
49
  let l = L(e, t, s, o);
50
50
  return /* @__PURE__ */ j(r, {
51
51
  variant: "secondary",
52
- className: "flex items-center gap-1 px-3 py-1 bg-blue-50 text-blue-700 border border-blue-200 hover:bg-blue-100",
52
+ className: "flex items-center gap-1 px-3 py-1 bg-primary/10 text-primary border border-primary/20 hover:bg-primary/20",
53
53
  children: [
54
54
  c,
55
55
  ": ",
@@ -58,7 +58,7 @@ function R({ filters: e, onRemoveFilter: n, onClearAll: i, filterLabelKeys: a =
58
58
  onClick: () => {
59
59
  n(e);
60
60
  },
61
- className: "ml-1 hover:bg-blue-200 rounded-full p-0.5",
61
+ className: "ml-1 hover:bg-primary/20 rounded-full p-0.5",
62
62
  children: /* @__PURE__ */ A(I, { className: "size-4" })
63
63
  })
64
64
  ]
@@ -66,7 +66,7 @@ function R({ filters: e, onRemoveFilter: n, onClearAll: i, filterLabelKeys: a =
66
66
  }),
67
67
  c.length > 0 && /* @__PURE__ */ A("button", {
68
68
  onClick: i,
69
- className: "text-xs text-red-500 hover:text-red-600 transition-colors font-medium ml-auto",
69
+ className: "text-xs text-destructive hover:text-destructive/80 transition-colors font-medium ml-auto",
70
70
  children: s("filters.clearAll")
71
71
  })
72
72
  ]
@@ -189,7 +189,7 @@ function V({ sections: e, filters: r, onFiltersChange: i, buttonText: a, sheetTi
189
189
  children: e.map((e, t) => /* @__PURE__ */ j("div", {
190
190
  className: "space-y-4",
191
191
  children: [/* @__PURE__ */ A("h3", {
192
- className: "font-semibold text-sm text-gray-900 dark:text-gray-100 border-b pb-2",
192
+ className: "font-semibold text-sm text-foreground border-b pb-2",
193
193
  children: l(e.titleKey)
194
194
  }), e.filters.map((e) => /* @__PURE__ */ j("div", {
195
195
  className: "space-y-2",
@@ -211,14 +211,14 @@ function V({ sections: e, filters: r, onFiltersChange: i, buttonText: a, sheetTi
211
211
  })
212
212
  }),
213
213
  /* @__PURE__ */ j(s, {
214
- className: "gap-2 p-6 border-t bg-white dark:bg-gray-950",
214
+ className: "gap-2 p-6 border-t bg-background",
215
215
  children: [/* @__PURE__ */ A(o, {
216
216
  variant: "outline",
217
217
  className: "flex-1",
218
218
  onClick: S,
219
219
  children: l("filters.clear")
220
220
  }), /* @__PURE__ */ A(o, {
221
- className: "flex-1 bg-orange-500 hover:bg-orange-600 text-white",
221
+ className: "flex-1",
222
222
  onClick: x,
223
223
  children: l("filters.apply")
224
224
  })]
@@ -295,7 +295,7 @@ function K({ labelKey: n, options: r, selected: o, onToggle: s, onClear: c, onSe
295
295
  ]
296
296
  })
297
297
  }), /* @__PURE__ */ j(d, {
298
- className: "w-56 p-0",
298
+ className: "w-72 max-w-[var(--radix-popover-content-available-width)] p-0",
299
299
  align: "start",
300
300
  children: [
301
301
  f ? /* @__PURE__ */ A("div", {
@@ -314,56 +314,37 @@ function K({ labelKey: n, options: r, selected: o, onToggle: s, onClear: c, onSe
314
314
  })
315
315
  }) : null,
316
316
  /* @__PURE__ */ j("div", {
317
- className: "flex flex-col gap-0.5 max-h-56 overflow-y-auto p-1.5",
318
- children: [
319
- y.length > 0 && /* @__PURE__ */ j("label", {
320
- className: "flex items-center gap-2.5 rounded-md px-2 py-2 text-sm hover:bg-muted cursor-pointer transition-colors",
321
- children: [/* @__PURE__ */ A(i, {
322
- checked: b,
323
- onCheckedChange: () => {
324
- if (b) {
325
- if (u !== void 0) {
326
- let e = y.map((e) => e.value);
327
- u(o.filter((t) => !e.includes(t)));
328
- } else c === void 0 ? o.forEach((e) => {
329
- s(e);
330
- }) : c();
331
- } else if (u !== void 0) {
332
- let e = [...o];
333
- y.forEach((t) => {
334
- e.includes(t.value) || e.push(t.value);
335
- }), u(e);
336
- } else y.forEach((e) => {
337
- o.includes(e.value) || s(e.value);
338
- });
339
- }
340
- }), h("filters.selectAll")]
341
- }),
342
- y.length === 0 && /* @__PURE__ */ A("p", {
343
- className: "px-2 py-3 text-center text-xs text-muted-foreground",
344
- children: h("states.noResult")
345
- }),
346
- y.map((e) => /* @__PURE__ */ j("label", {
347
- className: "flex items-center gap-2.5 rounded-md px-2 py-2 text-sm hover:bg-muted cursor-pointer transition-colors",
348
- children: [
349
- /* @__PURE__ */ A(i, {
317
+ className: "flex flex-col gap-0.5 max-h-56 overflow-y-auto overflow-x-hidden p-1.5",
318
+ children: [y.length === 0 && /* @__PURE__ */ A("p", {
319
+ className: "px-2 py-3 text-center text-xs text-muted-foreground",
320
+ children: h("states.noResult")
321
+ }), y.map((e) => /* @__PURE__ */ j("label", {
322
+ className: "flex min-w-0 items-center gap-2.5 rounded-md px-2 py-2 text-sm hover:bg-muted cursor-pointer transition-colors",
323
+ children: [
324
+ /* @__PURE__ */ A("span", {
325
+ className: "shrink-0",
326
+ children: /* @__PURE__ */ A(i, {
350
327
  checked: o.includes(e.value),
351
328
  onCheckedChange: () => {
352
329
  s(e.value);
353
330
  }
354
- }),
355
- e.color && /* @__PURE__ */ A("span", {
356
- className: "size-2.5 shrink-0 rounded-full",
357
- style: { backgroundColor: e.color }
358
- }),
359
- e.label
360
- ]
361
- }, e.value))
362
- ]
331
+ })
332
+ }),
333
+ e.color && /* @__PURE__ */ A("span", {
334
+ className: "size-2.5 shrink-0 rounded-full",
335
+ style: { backgroundColor: e.color }
336
+ }),
337
+ /* @__PURE__ */ A("span", {
338
+ className: "min-w-0 flex-1 truncate",
339
+ title: e.label,
340
+ children: e.label
341
+ })
342
+ ]
343
+ }, e.value))]
363
344
  }),
364
- o.length > 0 && /* @__PURE__ */ A("div", {
345
+ y.length > 0 && /* @__PURE__ */ A("div", {
365
346
  className: "border-t border-border p-1.5",
366
- children: /* @__PURE__ */ A("button", {
347
+ children: b ? /* @__PURE__ */ A("button", {
367
348
  onClick: () => {
368
349
  c === void 0 ? o.forEach((e) => {
369
350
  s(e);
@@ -371,6 +352,27 @@ function K({ labelKey: n, options: r, selected: o, onToggle: s, onClear: c, onSe
371
352
  },
372
353
  className: "w-full rounded-md px-2 py-1.5 text-xs text-muted-foreground hover:text-foreground hover:bg-muted transition-colors text-center",
373
354
  children: h("filters.deselectAll")
355
+ }) : /* @__PURE__ */ A("button", {
356
+ type: "button",
357
+ onClick: () => {
358
+ if (b) {
359
+ if (u !== void 0) {
360
+ let e = y.map((e) => e.value);
361
+ u(o.filter((t) => !e.includes(t)));
362
+ } else c === void 0 ? o.forEach((e) => {
363
+ s(e);
364
+ }) : c();
365
+ } else if (u !== void 0) {
366
+ let e = [...o];
367
+ y.forEach((t) => {
368
+ e.includes(t.value) || e.push(t.value);
369
+ }), u(e);
370
+ } else y.forEach((e) => {
371
+ o.includes(e.value) || s(e.value);
372
+ });
373
+ },
374
+ className: "w-full rounded-md px-2 py-1.5 text-xs text-muted-foreground hover:text-foreground hover:bg-muted transition-colors text-center",
375
+ children: h("filters.selectAll")
374
376
  })
375
377
  })
376
378
  ]
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../GenericForm-B57ip3Zn.js";
1
+ import { t as e } from "../../../GenericForm-BdKwapAz.js";
2
2
  export { e as GenericForm };
@@ -2,22 +2,22 @@ import { a as e, i as t, n, o as r, r as i, t as a } from "../../cards-BBgGXmYa.
2
2
  import { I as o } from "../../ui-D8Pg34YW.js";
3
3
  import { A as s, D as c, E as l, F as u, M as d, N as f, O as p, P as m, j as h, k as g } from "../../sheet-DQTOen4V.js";
4
4
  import { a as _, c as v, i as y, n as b, o as x, r as S, s as C, t as w } from "../../charts-C7MWuqi9.js";
5
- import { n as T, r as E, t as D } from "../../dialogs-qiw8m0uw.js";
5
+ import { n as T, r as E, t as D } from "../../dialogs-BxyPBIc6.js";
6
6
  import { t as O } from "../../ImageInput-BPNEywyf.js";
7
7
  import { t as k } from "../../AppActions-CpbkO_3O.js";
8
8
  import { t as A } from "../../AppSubTitle-BOVTZlUB.js";
9
- import { t as j } from "../../MultiSelect-inNRlftX.js";
10
- import { t as M } from "../../GenericForm-B57ip3Zn.js";
9
+ import { t as j } from "../../MultiSelect-O4JP5fRO.js";
10
+ import { t as M } from "../../GenericForm-BdKwapAz.js";
11
11
  import { t as N } from "../../ErrorAlert-L2s8Dd1_.js";
12
12
  import { i as P, n as F, r as I, t as L } from "../../SearchInput-BSIjKB_9.js";
13
13
  import { ActiveFilters as R, AdvancedFilters as z, FilterField as B, FilterPills as V, FilterPillsGroup as H, SearchableFilterPill as U, TableFilter as W } from "./filters/index.js";
14
14
  import "./forms/index.js";
15
- import { t as G } from "../../inputs-8zGFhNHq.js";
15
+ import { t as G } from "../../inputs-CUNf48Vk.js";
16
16
  import { t as K } from "../../language-DOGOdjzx.js";
17
17
  import { t as q } from "../../AppTitle-BZ5jQWbs.js";
18
18
  import { n as J, t as Y } from "../../states-BQK9jqS4.js";
19
19
  import { AppPageHeader as X, KpiCardsLayout as Z } from "./layouts/index.js";
20
- import { a as Q, i as $, n as ee, o as te, r as ne, t as re } from "../../navbar-B7PMh_S2.js";
20
+ import { a as Q, i as $, n as ee, o as te, r as ne, t as re } from "../../navbar-CCHGdEzE.js";
21
21
  import { DataTable as ie, JsonTableOutput as ae, TableActions as oe, TableBody as se, TableBulkActions as ce, TableHeader as le, TablePagination as ue, TableSettings as de } from "./table/index.js";
22
22
  import { AppTabContainer as fe, AppTabHeader as pe, AppTabs as me, AppVerticalTabs as he } from "./tabs/index.js";
23
23
  import { t as ge } from "../../theme-q2uzluEd.js";
@@ -1 +1 @@
1
- {"version":3,"file":"MultiSelect.d.ts","sourceRoot":"","sources":["../../../../src/components/core/inputs/MultiSelect.tsx"],"names":[],"mappings":"AACA,OAAO,KAA+C,MAAM,OAAO,CAAC;AAIpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,UAAU,gBAAgB;IACxB,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACzC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,6FAA6F;IAC7F,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,WAAW,GAAI,wHAWzB,gBAAgB,KAAG,KAAK,CAAC,YA0K3B,CAAC"}
1
+ {"version":3,"file":"MultiSelect.d.ts","sourceRoot":"","sources":["../../../../src/components/core/inputs/MultiSelect.tsx"],"names":[],"mappings":"AACA,OAAO,KAA+C,MAAM,OAAO,CAAC;AAIpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,UAAU,gBAAgB;IACxB,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACzC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,6FAA6F;IAC7F,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,WAAW,GAAI,wHAWzB,gBAAgB,KAAG,KAAK,CAAC,YA8K3B,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "../../../ImageInput-BPNEywyf.js";
2
- import { t } from "../../../MultiSelect-inNRlftX.js";
2
+ import { t } from "../../../MultiSelect-O4JP5fRO.js";
3
3
  import { i as n, n as r, r as i, t as a } from "../../../SearchInput-BSIjKB_9.js";
4
- import { t as o } from "../../../inputs-8zGFhNHq.js";
4
+ import { t as o } from "../../../inputs-CUNf48Vk.js";
5
5
  export { n as DatePicker, i as DateRangePicker, e as ImageInput, t as MultiSelect, o as RatingInput, a as SearchInput, r as SearchableSelect };
@@ -1 +1 @@
1
- {"version":3,"file":"SidebarNavItem.d.ts","sourceRoot":"","sources":["../../../../src/components/core/navbar/SidebarNavItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAE,WAAW,EAAkB,MAAM,WAAW,CAAC;AAExD,MAAM,WAAW,mBAAoB,SAAQ,WAAW;IACtD,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACrC;AAiBD,eAAO,MAAM,cAAc,GAAI,2FAW5B,mBAAmB,KAAG,KAAK,CAAC,YAgH9B,CAAC"}
1
+ {"version":3,"file":"SidebarNavItem.d.ts","sourceRoot":"","sources":["../../../../src/components/core/navbar/SidebarNavItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAExC,MAAM,WAAW,mBAAoB,SAAQ,WAAW;IACtD,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACrC;AAiBD,eAAO,MAAM,cAAc,GAAI,2FAW5B,mBAAmB,KAAG,KAAK,CAAC,YAkH9B,CAAC"}
@@ -1,2 +1,2 @@
1
- import { a as e, i as t, n, o as r, r as i, t as a } from "../../../navbar-B7PMh_S2.js";
1
+ import { a as e, i as t, n, o as r, r as i, t as a } from "../../../navbar-CCHGdEzE.js";
2
2
  export { r as GlobalSearch, e as NotificationsBell, i as Sidebar, n as SidebarHeader, t as SidebarNavItem, a as Topbar };
@@ -7,21 +7,21 @@ import { A as On, C as kn, D as An, E as jn, F as Mn, M as Nn, N as Pn, O as Fn,
7
7
  import { a as lr, c as ur, i as dr, l as fr, n as pr, o as mr, r as hr, s as gr, t as _r, u as vr } from "../select-DmLScQKX.js";
8
8
  import { t as yr } from "../skeleton-D6Ga4BLw.js";
9
9
  import { a as br, c as xr, i as Sr, n as Cr, o as wr, r as Tr, s as Er, t as Dr } from "../charts-C7MWuqi9.js";
10
- import { n as Or, r as kr, t as Ar } from "../dialogs-qiw8m0uw.js";
10
+ import { n as Or, r as kr, t as Ar } from "../dialogs-BxyPBIc6.js";
11
11
  import { t as jr } from "../ImageInput-BPNEywyf.js";
12
12
  import { t as Mr } from "../AppActions-CpbkO_3O.js";
13
13
  import { t as Nr } from "../AppSubTitle-BOVTZlUB.js";
14
- import { t as Pr } from "../MultiSelect-inNRlftX.js";
15
- import { t as Fr } from "../GenericForm-B57ip3Zn.js";
14
+ import { t as Pr } from "../MultiSelect-O4JP5fRO.js";
15
+ import { t as Fr } from "../GenericForm-BdKwapAz.js";
16
16
  import { t as Ir } from "../ErrorAlert-L2s8Dd1_.js";
17
17
  import { i as Lr, n as Rr, r as zr, t as Br } from "../SearchInput-BSIjKB_9.js";
18
18
  import { ActiveFilters as Vr, AdvancedFilters as Hr, FilterField as Ur, FilterPills as Wr, FilterPillsGroup as Gr, SearchableFilterPill as Kr, TableFilter as qr } from "./core/filters/index.js";
19
- import { t as Jr } from "../inputs-8zGFhNHq.js";
19
+ import { t as Jr } from "../inputs-CUNf48Vk.js";
20
20
  import { t as Yr } from "../language-DOGOdjzx.js";
21
21
  import { t as Xr } from "../AppTitle-BZ5jQWbs.js";
22
22
  import { n as Zr, t as Qr } from "../states-BQK9jqS4.js";
23
23
  import { AppPageHeader as $r, KpiCardsLayout as ei } from "./core/layouts/index.js";
24
- import { a as ti, i as ni, n as ri, o as ii, r as ai, t as oi } from "../navbar-B7PMh_S2.js";
24
+ import { a as ti, i as ni, n as ri, o as ii, r as ai, t as oi } from "../navbar-CCHGdEzE.js";
25
25
  import { DataTable as si, JsonTableOutput as ci, TableActions as li, TableBody as ui, TableBulkActions as di, TableHeader as fi, TablePagination as pi, TableSettings as mi } from "./core/table/index.js";
26
26
  import { AppTabContainer as hi, AppTabHeader as gi, AppTabs as _i, AppVerticalTabs as vi } from "./core/tabs/index.js";
27
27
  import { t as yi } from "../theme-q2uzluEd.js";
@@ -3,7 +3,7 @@ import { Bn as t, Gn as n, Hn as r, I as i, Kn as a, Un as o, Wn as s, qn as c }
3
3
  import { n as l, t as u } from "./alert-REQGK9bR.js";
4
4
  import { s as d } from "./tooltip-BmZ9Bfou.js";
5
5
  import { E as f, O as p, P as m, j as h, k as g } from "./sheet-DQTOen4V.js";
6
- import { t as _ } from "./GenericForm-B57ip3Zn.js";
6
+ import { t as _ } from "./GenericForm-BdKwapAz.js";
7
7
  import { t as v } from "./ErrorAlert-L2s8Dd1_.js";
8
8
  import { useEffect as y, useState as b } from "react";
9
9
  import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./tailwind.helper-CJaRYBmL.js";
2
2
  import "./ImageInput-BPNEywyf.js";
3
- import "./MultiSelect-inNRlftX.js";
3
+ import "./MultiSelect-O4JP5fRO.js";
4
4
  import "./SearchInput-BSIjKB_9.js";
5
5
  import { jsx as t } from "react/jsx-runtime";
6
6
  import { Heart as n, Star as r } from "lucide-react";
@@ -213,18 +213,18 @@ var P = ({ groups: n, search: r, onSearch: i, onSelect: o, loading: u = !1, open
213
213
  })]
214
214
  });
215
215
  }, L = (e, t, n) => t === e ? !0 : e === "/" || !t.startsWith(`${e}/`) ? !1 : !n.some((n) => n !== e && n.startsWith(`${e}/`) && (t === n || t.startsWith(`${n}/`))), R = ({ path: t, icon: i, label: a, badge: s, subItems: c, currentPath: l, collapsed: u, dense: d = !1, onItemClick: f }) => {
216
- let p = c?.map((e) => e.path) ?? [], [m, h] = w.useState(c?.some((e) => L(e.path, l, p)) ?? !1), g = t ? l === t || t !== "/" && l.startsWith(`${t}/`) : !1, _ = c?.some((e) => L(e.path, l, p)), v = /* @__PURE__ */ D("a", {
216
+ let p = c?.map((e) => e.path) ?? [], [m, h] = w.useState(c?.some((e) => L(e.path, l, p)) ?? !1), g = t ? l === t || t !== "/" && l.startsWith(`${t}/`) : !1, _ = c?.some((e) => L(e.path, l, p)), v = g || !u && _, y = /* @__PURE__ */ D("a", {
217
217
  href: t ?? "#",
218
218
  onClick: (e) => {
219
219
  e.ctrlKey || e.metaKey || e.button === 1 || (e.preventDefault(), c && c.length > 0 ? u || h(!m) : t && f(t));
220
220
  },
221
- className: e("flex items-center cursor-pointer transition-all duration-200 group rounded-control", d ? "gap-2.5 mb-0.5" : "gap-3 mb-1", u ? d ? "justify-center p-2 h-9 w-9 mx-auto" : "justify-center p-3 h-12 w-12 mx-auto" : d ? "px-3 py-1.5 h-9" : "px-4 py-3 h-12", g || !u && _ ? d ? "bg-sidebar-primary text-sidebar-primary-foreground" : "bg-sidebar-primary text-sidebar-primary-foreground shadow-lg" : "hover:bg-sidebar-accent text-sidebar-foreground hover:text-sidebar-accent-foreground"),
221
+ className: e("flex items-center cursor-pointer transition-all duration-200 group rounded-control", d ? "gap-2.5 mb-0.5" : "gap-3 mb-1", u ? d ? "justify-center p-2 h-9 w-9 mx-auto" : "justify-center p-3 h-12 w-12 mx-auto" : d ? "px-3 py-1.5 h-9" : "px-4 py-3 h-12", v ? "bg-sidebar-primary/10 text-sidebar-primary font-semibold border border-sidebar-primary/40 [&_svg]:text-sidebar-primary" : "border border-transparent hover:bg-sidebar-accent text-sidebar-foreground hover:text-sidebar-accent-foreground"),
222
222
  children: [/* @__PURE__ */ E("div", {
223
223
  className: e("flex-shrink-0 transition-transform group-hover:scale-110", u ? "flex items-center justify-center" : ""),
224
- children: /* @__PURE__ */ E(i, { className: "size-4" })
224
+ children: /* @__PURE__ */ E(i, { className: e("size-4", v && "text-sidebar-primary") })
225
225
  }), !u && /* @__PURE__ */ D(T, { children: [
226
226
  /* @__PURE__ */ E("span", {
227
- className: e("flex-grow transition-opacity duration-150 font-medium", d ? "text-sm" : ""),
227
+ className: e("flex-grow transition-opacity duration-150", v ? "font-semibold" : "font-medium", d ? "text-sm" : ""),
228
228
  children: a
229
229
  }),
230
230
  s !== void 0 && /* @__PURE__ */ E("span", {
@@ -236,7 +236,7 @@ var P = ({ groups: n, search: r, onSearch: i, onSelect: o, loading: u = !1, open
236
236
  });
237
237
  return /* @__PURE__ */ D(T, { children: [u ? /* @__PURE__ */ D(o, { children: [/* @__PURE__ */ E(n, {
238
238
  asChild: !0,
239
- children: v
239
+ children: y
240
240
  }), /* @__PURE__ */ E(r, {
241
241
  side: "right",
242
242
  sideOffset: 6,
@@ -258,7 +258,7 @@ var P = ({ groups: n, search: r, onSearch: i, onSelect: o, loading: u = !1, open
258
258
  })]
259
259
  })
260
260
  })
261
- })] }) : v, !u && c && c.length > 0 && m && /* @__PURE__ */ E("div", {
261
+ })] }) : y, !u && c && c.length > 0 && m && /* @__PURE__ */ E("div", {
262
262
  className: e("flex flex-col ml-4 pl-4 border-l-2 border-sidebar-border/50 animate-in slide-in-from-top-2 fade-in duration-200", d ? "gap-0.5 mb-0.5" : "gap-1 mb-2"),
263
263
  children: c.map((t, n) => {
264
264
  let r = L(t.path, l, p);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@krosoft/react",
3
- "version": "0.0.290",
3
+ "version": "0.0.292",
4
4
  "description": "Krosoft shared React package",
5
5
  "type": "module",
6
6
  "scripts": {