@krosoft/react 0.0.317 → 0.0.319

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 (55) hide show
  1. package/dist/{AppActions-D_fmiysr.js → AppActions-B7cQOnXY.js} +2 -2
  2. package/dist/{AppSubTitle-BAZH6wsn.js → AppSubTitle-D5YAJ6XK.js} +2 -2
  3. package/dist/{AppTitle-ky6qG29Z.js → AppTitle-CK5tYl7t.js} +1 -1
  4. package/dist/{ErrorAlert-ZflPwfL1.js → ErrorAlert-B9xG4dAD.js} +1 -1
  5. package/dist/{GenericForm-BykHqJam.js → GenericForm-DkMp-WFx.js} +6 -6
  6. package/dist/ImageInput-DY7duXzL.js +92 -0
  7. package/dist/{MultiSelect-BlsLVGLX.js → MultiSelect-CarvTYPT.js} +3 -3
  8. package/dist/{SearchInput-CI_OoJwu.js → SearchInput-CsK3a-58.js} +4 -4
  9. package/dist/{behavior-DOkq-VaE.js → behavior-B1Zn_N2M.js} +1 -1
  10. package/dist/{cards-CEP7Jo4R.js → cards-Cblh5_df.js} +2 -2
  11. package/dist/{charts-Dqw9_J2o.js → charts-QR6bDfQR.js} +1 -1
  12. package/dist/components/core/cards/index.js +1 -1
  13. package/dist/components/core/charts/index.js +1 -1
  14. package/dist/components/core/dialogs/index.js +3 -3
  15. package/dist/components/core/filters/index.js +6 -6
  16. package/dist/components/core/forms/index.js +1 -1
  17. package/dist/components/core/index.js +22 -22
  18. package/dist/components/core/inputs/FileDropzone.d.ts +25 -0
  19. package/dist/components/core/inputs/FileDropzone.d.ts.map +1 -0
  20. package/dist/components/core/inputs/ImageInput.d.ts.map +1 -1
  21. package/dist/components/core/inputs/index.d.ts +1 -0
  22. package/dist/components/core/inputs/index.d.ts.map +1 -1
  23. package/dist/components/core/inputs/index.js +5 -5
  24. package/dist/components/core/language/index.js +1 -1
  25. package/dist/components/core/layouts/index.js +8 -8
  26. package/dist/components/core/navbar/index.js +1 -1
  27. package/dist/components/core/states/index.js +2 -2
  28. package/dist/components/core/table/index.js +2 -2
  29. package/dist/components/core/tabs/index.js +5 -5
  30. package/dist/components/core/theme/index.js +1 -1
  31. package/dist/components/index.js +22 -22
  32. package/dist/components/ui/index.js +2 -2
  33. package/dist/{dialogs-C8o99oud.js → dialogs-QuBhzoAe.js} +5 -5
  34. package/dist/hooks/behavior/index.js +1 -1
  35. package/dist/hooks/index.js +5 -5
  36. package/dist/hooks/ui/index.js +4 -4
  37. package/dist/i18n/index.js +1 -1
  38. package/dist/i18n/krosoftLocales.d.ts +12 -0
  39. package/dist/i18n/krosoftLocales.d.ts.map +1 -1
  40. package/dist/{i18n-COxm2IKP.js → i18n-BuQgyJAA.js} +14 -2
  41. package/dist/inputs-Dgh7QciC.js +100 -0
  42. package/dist/{language-CX5k4uX5.js → language-CK1Toh4q.js} +2 -2
  43. package/dist/{navbar-DsxKWZSP.js → navbar-uE-TcuY6.js} +3 -3
  44. package/dist/pwa/index.js +1 -1
  45. package/dist/{sheet-B7qGvwk0.js → sheet-BtfL6yxE.js} +1 -1
  46. package/dist/{states-14gCg2Sl.js → states-lmDbJIGj.js} +2 -2
  47. package/dist/{theme-BUl4fbtL.js → theme-nG-VcChv.js} +2 -2
  48. package/dist/{ui-B648tEnO.js → ui-pTlOByAk.js} +3 -3
  49. package/dist/{ui-BFLRtp53.js → ui-zZYit5Jd.js} +1 -1
  50. package/dist/{useDocumentTitle-wGdjZMx6.js → useDocumentTitle-Dwdvj0Cq.js} +1 -1
  51. package/dist/{useLanguage-JlBoVxev.js → useLanguage-COBm8fDW.js} +1 -1
  52. package/dist/{useTheme-DVDPwbQ2.js → useTheme-DnfZqWof.js} +1 -1
  53. package/package.json +1 -1
  54. package/dist/ImageInput-C2j-GOpn.js +0 -80
  55. package/dist/inputs-CEE8QOT_.js +0 -39
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./tailwind.helper-CJaRYBmL.js";
2
- import { t } from "./i18n-COxm2IKP.js";
3
- import { Bt as n, Ft as r, Gt as i, Nt as a, jt as o } from "./ui-BFLRtp53.js";
2
+ import { t } from "./i18n-BuQgyJAA.js";
3
+ import { Bt as n, Ft as r, Gt as i, Nt as a, jt as o } from "./ui-zZYit5Jd.js";
4
4
  import { c as s } from "./tooltip-_geGvbS7.js";
5
5
  import { t as c } from "./useMobile-pTQ8lWvt.js";
6
6
  import { jsx as l, jsxs as u } from "react/jsx-runtime";
@@ -1,5 +1,5 @@
1
- import { t as e } from "./i18n-COxm2IKP.js";
2
- import { t } from "./AppActions-D_fmiysr.js";
1
+ import { t as e } from "./i18n-BuQgyJAA.js";
2
+ import { t } from "./AppActions-B7cQOnXY.js";
3
3
  import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
4
  //#region src/components/core/layouts/AppSubTitle.tsx
5
5
  function i({ titleKey: i, actions: a, className: o }) {
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./tailwind.helper-CJaRYBmL.js";
2
- import { t } from "./i18n-COxm2IKP.js";
2
+ import { t } from "./i18n-BuQgyJAA.js";
3
3
  import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
4
  //#region src/components/core/layouts/AppTitle.tsx
5
5
  function i({ titleKey: i, descriptionKey: a, isSubTitle: o, inline: s }) {
@@ -1,4 +1,4 @@
1
- import { t as e } from "./i18n-COxm2IKP.js";
1
+ import { t as e } from "./i18n-BuQgyJAA.js";
2
2
  import { n as t, t as n } from "./alert-REQGK9bR.js";
3
3
  import "react";
4
4
  import { jsx as r, jsxs as i } from "react/jsx-runtime";
@@ -1,14 +1,14 @@
1
1
  import { t as e } from "./tailwind.helper-CJaRYBmL.js";
2
2
  import { c as t, d as n, s as r } from "./chart-Dq3AIrue.js";
3
- import { t as i } from "./i18n-COxm2IKP.js";
4
- import { Ct as a, Dt as o, Et as s, Ot as c, St as l, Tt as u, bn as d, p as f } from "./ui-BFLRtp53.js";
3
+ import { t as i } from "./i18n-BuQgyJAA.js";
4
+ import { Ct as a, Dt as o, Et as s, Ot as c, St as l, Tt as u, bn as d, p as f } from "./ui-zZYit5Jd.js";
5
5
  import { c as p } from "./tooltip-_geGvbS7.js";
6
- import { g as m } from "./sheet-B7qGvwk0.js";
6
+ import { g as m } from "./sheet-BtfL6yxE.js";
7
7
  import { i as h, l as g, n as ee, t as _, u as v } from "./select-KWMg2_7Z.js";
8
8
  import { n as y } from "./useToast-UeDRLovh.js";
9
- import { t as b } from "./ImageInput-C2j-GOpn.js";
10
- import { t as x } from "./AppSubTitle-BAZH6wsn.js";
11
- import { t as S } from "./MultiSelect-BlsLVGLX.js";
9
+ import { t as b } from "./ImageInput-DY7duXzL.js";
10
+ import { t as x } from "./AppSubTitle-D5YAJ6XK.js";
11
+ import { t as S } from "./MultiSelect-CarvTYPT.js";
12
12
  import { useEffect as C, useRef as w, useState as T } from "react";
13
13
  import { jsx as E, jsxs as D } from "react/jsx-runtime";
14
14
  import { useForm as O } from "react-hook-form";
@@ -0,0 +1,92 @@
1
+ import { t as e } from "./tailwind.helper-CJaRYBmL.js";
2
+ import { t } from "./i18n-BuQgyJAA.js";
3
+ import "./ui-zZYit5Jd.js";
4
+ import { c as n } from "./tooltip-_geGvbS7.js";
5
+ import { t as r } from "./useNotifications-CyhTruIG.js";
6
+ import { forwardRef as i, useRef as a, useState as o } from "react";
7
+ import { jsx as s, jsxs as c } from "react/jsx-runtime";
8
+ import { ImageIcon as l, UploadIcon as u, XIcon as d } from "lucide-react";
9
+ //#region src/components/core/inputs/ImageInput.tsx
10
+ var f = i(({ value: i, onChange: f, accept: p = "image/jpeg,image/png,image/webp", maxSizeMB: m = 2, disabled: h = !1, className: g = "", hint: _ = "JPG, PNG, WEBP" }, v) => {
11
+ let { t: y } = t(), { showError: b } = r(), x = a(null), [S, C] = o(!1), w = (e) => {
12
+ if (!p.split(",").map((e) => e.trim()).includes(e.type)) {
13
+ b(y("states.errorTitle"), y("image.invalidType", { types: _ }));
14
+ return;
15
+ }
16
+ if (e.size > m * 1024 * 1024) {
17
+ b(y("states.errorTitle"), y("image.tooLarge", { size: m }));
18
+ return;
19
+ }
20
+ f(e);
21
+ };
22
+ return /* @__PURE__ */ s("div", {
23
+ ref: v,
24
+ className: g,
25
+ children: i ? /* @__PURE__ */ c("div", {
26
+ className: "relative w-32 h-32 rounded-surface overflow-hidden border-2 border-border",
27
+ children: [/* @__PURE__ */ s("img", {
28
+ src: i,
29
+ alt: "Preview",
30
+ className: "w-full h-full object-cover"
31
+ }), !h && /* @__PURE__ */ s(n, {
32
+ type: "button",
33
+ variant: "destructive",
34
+ size: "sm",
35
+ className: "absolute top-1 right-1 h-6 w-6 p-0",
36
+ onClick: () => {
37
+ f(null);
38
+ },
39
+ children: /* @__PURE__ */ s(d, { className: "h-4 w-4" })
40
+ })]
41
+ }) : h ? /* @__PURE__ */ c("div", {
42
+ className: e("flex flex-col items-center justify-center w-full h-32", "border-2 border-dashed border-border rounded-surface", "bg-muted/30"),
43
+ children: [/* @__PURE__ */ s(l, { className: "h-8 w-8 text-muted-foreground/50 mb-2" }), /* @__PURE__ */ s("span", {
44
+ className: "text-sm text-muted-foreground/50",
45
+ children: y("image.empty")
46
+ })]
47
+ }) : /* @__PURE__ */ c("label", {
48
+ "data-testid": "image-input-dropzone",
49
+ onDragOver: (e) => {
50
+ e.preventDefault(), C(!0);
51
+ },
52
+ onDragLeave: (e) => {
53
+ e.preventDefault(), C(!1);
54
+ },
55
+ onDrop: (e) => {
56
+ e.preventDefault(), C(!1);
57
+ let t = e.dataTransfer.files?.[0];
58
+ t && w(t);
59
+ },
60
+ className: e("flex flex-col items-center justify-center w-full h-32", "border-2 border-dashed rounded-surface", "cursor-pointer hover:bg-muted/50 transition-colors", S ? "border-primary bg-primary/10" : "border-border"),
61
+ children: [
62
+ /* @__PURE__ */ s(u, { className: "h-8 w-8 text-muted-foreground mb-2" }),
63
+ /* @__PURE__ */ s("span", {
64
+ className: "text-sm text-muted-foreground",
65
+ children: y(S ? "image.drop" : "image.upload")
66
+ }),
67
+ /* @__PURE__ */ c("span", {
68
+ className: "text-xs text-muted-foreground mt-1",
69
+ children: [
70
+ _,
71
+ " (max ",
72
+ m,
73
+ "MB)"
74
+ ]
75
+ }),
76
+ /* @__PURE__ */ s("input", {
77
+ ref: x,
78
+ type: "file",
79
+ className: "hidden",
80
+ accept: p,
81
+ onChange: (e) => {
82
+ let t = e.target.files?.[0];
83
+ t && w(t), x.current && (x.current.value = "");
84
+ }
85
+ })
86
+ ]
87
+ })
88
+ });
89
+ });
90
+ f.displayName = "ImageInput";
91
+ //#endregion
92
+ export { f as t };
@@ -1,8 +1,8 @@
1
1
  import { t as e } from "./tailwind.helper-CJaRYBmL.js";
2
- import { t } from "./i18n-COxm2IKP.js";
3
- import { Pn as n, bn as r } from "./ui-BFLRtp53.js";
2
+ import { t } from "./i18n-BuQgyJAA.js";
3
+ import { Pn as n, bn as r } from "./ui-zZYit5Jd.js";
4
4
  import { a as i, o as a, s as o } from "./tooltip-_geGvbS7.js";
5
- import { h as s, m as c, p as l } from "./sheet-B7qGvwk0.js";
5
+ import { h as s, m as c, p as l } from "./sheet-BtfL6yxE.js";
6
6
  import { useCallback as u, useLayoutEffect as d, useMemo as f, useRef as p, useState as m } from "react";
7
7
  import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
8
8
  import { ChevronDownIcon as v, SearchIcon as y, XIcon as b } from "lucide-react";
@@ -1,10 +1,10 @@
1
1
  import { t as e } from "./tailwind.helper-CJaRYBmL.js";
2
- import { r as t, t as n } from "./i18n-COxm2IKP.js";
3
- import { En as r } from "./ui-BFLRtp53.js";
2
+ import { r as t, t as n } from "./i18n-BuQgyJAA.js";
3
+ import { En as r } from "./ui-zZYit5Jd.js";
4
4
  import { c as i, o as a, s as o } from "./tooltip-_geGvbS7.js";
5
- import { g as s, h as c, m as l, p as u } from "./sheet-B7qGvwk0.js";
5
+ import { g as s, h as c, m as l, p as u } from "./sheet-BtfL6yxE.js";
6
6
  import { i as d, l as f, n as p, t as m, u as h } from "./select-KWMg2_7Z.js";
7
- import { n as g, r as _ } from "./MultiSelect-BlsLVGLX.js";
7
+ import { n as g, r as _ } from "./MultiSelect-CarvTYPT.js";
8
8
  import * as v from "react";
9
9
  import { useEffect as y, useMemo as b, useRef as x, useState as S } from "react";
10
10
  import { jsx as C, jsxs as w } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { t as e } from "./i18n-COxm2IKP.js";
1
+ import { t as e } from "./i18n-BuQgyJAA.js";
2
2
  import { n as t } from "./datatable-COQcYUrk.js";
3
3
  import "./constants/index.js";
4
4
  import { n, t as r } from "./sidebar.context-BahtU6hE.js";
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "./tailwind.helper-CJaRYBmL.js";
2
2
  import { c as t, d as n, f as r, s as i } from "./chart-Dq3AIrue.js";
3
- import { t as a } from "./i18n-COxm2IKP.js";
4
- import "./ui-BFLRtp53.js";
3
+ import { t as a } from "./i18n-BuQgyJAA.js";
4
+ import "./ui-zZYit5Jd.js";
5
5
  import { t as o } from "./skeleton-D6Ga4BLw.js";
6
6
  import "react";
7
7
  import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./tailwind.helper-CJaRYBmL.js";
2
2
  import { a as t, c as n, d as r, f as i, l as a, n as o, o as s, r as c, s as l, t as u } from "./chart-Dq3AIrue.js";
3
- import { t as d } from "./i18n-COxm2IKP.js";
3
+ import { t as d } from "./i18n-BuQgyJAA.js";
4
4
  import { t as f } from "./skeleton-D6Ga4BLw.js";
5
5
  import { t as p } from "./useMobile-pTQ8lWvt.js";
6
6
  import * as m from "react";
@@ -1,2 +1,2 @@
1
- import { a as e, i as t, n, o as r, r as i, t as a } from "../../../cards-CEP7Jo4R.js";
1
+ import { a as e, i as t, n, o as r, r as i, t as a } from "../../../cards-Cblh5_df.js";
2
2
  export { r as DashboardCard, e as KpiCard, t as KpiCards, i as MetricCard, n as SkeletonCard, a as SkeletonCards };
@@ -1,2 +1,2 @@
1
- import { a as e, c as t, i as n, n as r, o as i, r as a, s as o, t as s } from "../../../charts-Dqw9_J2o.js";
1
+ import { a as e, c as t, i as n, n as r, o as i, r as a, s as o, t as s } from "../../../charts-QR6bDfQR.js";
2
2
  export { t as BarChartHorizontal, o as BarChartVertical, e as CHART_COLORS, n as ChartCard, a as CircularGauge, r as LineChart, s as PieChart, i as getChartColor };
@@ -1,4 +1,4 @@
1
- import { I as e } from "../../../ui-BFLRtp53.js";
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-B7qGvwk0.js";
3
- import { n as d, r as f, t as p } from "../../../dialogs-C8o99oud.js";
1
+ import { I as e } from "../../../ui-zZYit5Jd.js";
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-BtfL6yxE.js";
3
+ import { n as d, r as f, t as p } from "../../../dialogs-QuBhzoAe.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,12 +1,12 @@
1
1
  import { t as e } from "../../../tailwind.helper-CJaRYBmL.js";
2
- import { t } from "../../../i18n-COxm2IKP.js";
3
- import { At as n, Jt as r, Kt as i, Pn as a, Xt as o, Zt as s, en as c, qt as l, tn as u } from "../../../ui-BFLRtp53.js";
2
+ import { t } from "../../../i18n-BuQgyJAA.js";
3
+ import { At as n, Jt as r, Kt as i, Pn as a, Xt as o, Zt as s, en as c, qt as l, tn as u } from "../../../ui-zZYit5Jd.js";
4
4
  import { c as d } from "../../../tooltip-_geGvbS7.js";
5
- import { a as f, g as p, l as m, o as h, r as g, t as _, u as v } from "../../../sheet-B7qGvwk0.js";
5
+ import { a as f, g as p, l as m, o as h, r as g, t as _, u as v } from "../../../sheet-BtfL6yxE.js";
6
6
  import { t as y } from "../../../useMobile-pTQ8lWvt.js";
7
- import { t as b } from "../../../MultiSelect-BlsLVGLX.js";
8
- import { i as x, n as S, r as C, t as w } from "../../../SearchInput-CI_OoJwu.js";
9
- import "../../../ui-B648tEnO.js";
7
+ import { t as b } from "../../../MultiSelect-CarvTYPT.js";
8
+ import { i as x, n as S, r as C, t as w } from "../../../SearchInput-CsK3a-58.js";
9
+ import "../../../ui-pTlOByAk.js";
10
10
  import { useEffect as T, useMemo as E, useState as D } from "react";
11
11
  import { jsx as O, jsxs as k } from "react/jsx-runtime";
12
12
  import { getLocale as A } from "@krosoft/core/helpers";
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../GenericForm-BykHqJam.js";
1
+ import { t as e } from "../../../GenericForm-DkMp-WFx.js";
2
2
  export { e as GenericForm };
@@ -1,25 +1,25 @@
1
- import { a as e, i as t, n, o as r, r as i, t as a } from "../../cards-CEP7Jo4R.js";
2
- import { I as o } from "../../ui-BFLRtp53.js";
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-B7qGvwk0.js";
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-Dqw9_J2o.js";
5
- import { t as T } from "../../ErrorAlert-ZflPwfL1.js";
6
- import { n as E, r as D, t as O } from "../../dialogs-C8o99oud.js";
7
- import { t as k } from "../../ImageInput-C2j-GOpn.js";
8
- import { t as A } from "../../AppActions-D_fmiysr.js";
9
- import { t as j } from "../../AppSubTitle-BAZH6wsn.js";
10
- import { t as M } from "../../MultiSelect-BlsLVGLX.js";
11
- import { t as N } from "../../GenericForm-BykHqJam.js";
12
- import { i as P, n as F, r as I, t as L } from "../../SearchInput-CI_OoJwu.js";
1
+ import { a as e, i as t, n, o as r, r as i, t as a } from "../../cards-Cblh5_df.js";
2
+ import { I as o } from "../../ui-zZYit5Jd.js";
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-BtfL6yxE.js";
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-QR6bDfQR.js";
5
+ import { t as T } from "../../ErrorAlert-B9xG4dAD.js";
6
+ import { n as E, r as D, t as O } from "../../dialogs-QuBhzoAe.js";
7
+ import { t as k } from "../../ImageInput-DY7duXzL.js";
8
+ import { t as A } from "../../AppActions-B7cQOnXY.js";
9
+ import { t as j } from "../../AppSubTitle-D5YAJ6XK.js";
10
+ import { t as M } from "../../MultiSelect-CarvTYPT.js";
11
+ import { t as N } from "../../GenericForm-DkMp-WFx.js";
12
+ import { i as P, n as F, r as I, t as L } from "../../SearchInput-CsK3a-58.js";
13
13
  import { ActiveFilters as R, AdvancedFilters as z, FilterField as B, FilterPills as V, FilterPillsGroup as H, FiltersContainer as U, FiltersMobileDrawer as W, TableFilter as G } from "./filters/index.js";
14
14
  import "./forms/index.js";
15
15
  import { n as K, t as q } from "../../icons-n0m_1w7z.js";
16
- import { t as J } from "../../inputs-CEE8QOT_.js";
17
- import { t as Y } from "../../language-CX5k4uX5.js";
18
- import { t as X } from "../../AppTitle-ky6qG29Z.js";
19
- import { n as Z, t as Q } from "../../states-14gCg2Sl.js";
20
- import { AppPageHeader as $, KpiCardsLayout as ee } from "./layouts/index.js";
21
- import { a as te, i as ne, n as re, o as ie, r as ae, t as oe } from "../../navbar-DsxKWZSP.js";
22
- import { DataTable as se, JsonTableOutput as ce, TableActions as le, TableBody as ue, TableBulkActions as de, TableHeader as fe, TablePagination as pe, TableSettings as me } from "./table/index.js";
23
- import { AppTabContainer as he, AppTabHeader as ge, AppTabs as _e, AppVerticalTabs as ve } from "./tabs/index.js";
24
- import { t as ye } from "../../theme-BUl4fbtL.js";
25
- export { R as ActiveFilters, z as AdvancedFilters, A as AppActions, D as AppDialog, $ as AppPageHeader, j as AppSubTitle, he as AppTabContainer, ge as AppTabHeader, _e as AppTabs, X as AppTitle, ve as AppVerticalTabs, v as BarChartHorizontal, C as BarChartVertical, _ as CHART_COLORS, y as ChartCard, S as CircularGauge, O as ConfirmationDialog, r as DashboardCard, se as DataTable, P as DatePicker, I as DateRangePicker, l as Dialog, c as DialogClose, p as DialogContent, g as DialogDescription, s as DialogFooter, h as DialogHeader, d as DialogOverlay, f as DialogPortal, m as DialogTitle, u as DialogTrigger, T as ErrorAlert, Z as ErrorState, B as FilterField, V as FilterPills, H as FilterPillsGroup, U as FiltersContainer, W as FiltersMobileDrawer, K as FlagFrIcon, q as FlagGbIcon, E as FormDialog, N as GenericForm, ie as GlobalSearch, k as ImageInput, ce as JsonTableOutput, e as KpiCard, t as KpiCards, ee as KpiCardsLayout, Y as LanguageSelector, b as LineChart, Q as LoadingState, i as MetricCard, M as MultiSelect, te as NotificationsBell, w as PieChart, o as Progress, J as RatingInput, L as SearchInput, ae as Sidebar, re as SidebarHeader, ne as SidebarNavItem, F as SingleSelect, n as SkeletonCard, a as SkeletonCards, le as TableActions, ue as TableBody, de as TableBulkActions, G as TableFilter, fe as TableHeader, pe as TablePagination, me as TableSettings, ye as ThemeSelector, oe as Topbar, x as getChartColor };
16
+ import { n as J, t as Y } from "../../inputs-Dgh7QciC.js";
17
+ import { t as X } from "../../language-CK1Toh4q.js";
18
+ import { t as Z } from "../../AppTitle-CK5tYl7t.js";
19
+ import { n as Q, t as $ } from "../../states-lmDbJIGj.js";
20
+ import { AppPageHeader as ee, KpiCardsLayout as te } from "./layouts/index.js";
21
+ import { a as ne, i as re, n as ie, o as ae, r as oe, t as se } from "../../navbar-uE-TcuY6.js";
22
+ import { DataTable as ce, JsonTableOutput as le, TableActions as ue, TableBody as de, TableBulkActions as fe, TableHeader as pe, TablePagination as me, TableSettings as he } from "./table/index.js";
23
+ import { AppTabContainer as ge, AppTabHeader as _e, AppTabs as ve, AppVerticalTabs as ye } from "./tabs/index.js";
24
+ import { t as be } from "../../theme-nG-VcChv.js";
25
+ export { R as ActiveFilters, z as AdvancedFilters, A as AppActions, D as AppDialog, ee as AppPageHeader, j as AppSubTitle, ge as AppTabContainer, _e as AppTabHeader, ve as AppTabs, Z as AppTitle, ye as AppVerticalTabs, v as BarChartHorizontal, C as BarChartVertical, _ as CHART_COLORS, y as ChartCard, S as CircularGauge, O as ConfirmationDialog, r as DashboardCard, ce as DataTable, P as DatePicker, I as DateRangePicker, l as Dialog, c as DialogClose, p as DialogContent, g as DialogDescription, s as DialogFooter, h as DialogHeader, d as DialogOverlay, f as DialogPortal, m as DialogTitle, u as DialogTrigger, T as ErrorAlert, Q as ErrorState, J as FileDropzone, B as FilterField, V as FilterPills, H as FilterPillsGroup, U as FiltersContainer, W as FiltersMobileDrawer, K as FlagFrIcon, q as FlagGbIcon, E as FormDialog, N as GenericForm, ae as GlobalSearch, k as ImageInput, le as JsonTableOutput, e as KpiCard, t as KpiCards, te as KpiCardsLayout, X as LanguageSelector, b as LineChart, $ as LoadingState, i as MetricCard, M as MultiSelect, ne as NotificationsBell, w as PieChart, o as Progress, Y as RatingInput, L as SearchInput, oe as Sidebar, ie as SidebarHeader, re as SidebarNavItem, F as SingleSelect, n as SkeletonCard, a as SkeletonCards, ue as TableActions, de as TableBody, fe as TableBulkActions, G as TableFilter, pe as TableHeader, me as TablePagination, he as TableSettings, be as ThemeSelector, se as Topbar, x as getChartColor };
@@ -0,0 +1,25 @@
1
+ import { LucideIcon } from "lucide-react";
2
+ interface FileDropzoneProps {
3
+ onFiles: (files: File[]) => void;
4
+ accept?: string;
5
+ multiple?: boolean;
6
+ /** Titre principal. Par défaut « Glissez-déposez vos fichiers ici ». */
7
+ title?: string;
8
+ /** Sous-titre. Par défaut « ou cliquez pour parcourir ». */
9
+ hint?: string;
10
+ /** Ligne de formats / restrictions (ex : « PDF, images · max 20 Mo »). */
11
+ formats?: string;
12
+ uploading?: boolean;
13
+ uploadingLabel?: string;
14
+ icon?: LucideIcon;
15
+ className?: string;
16
+ }
17
+ /**
18
+ * Zone de dépôt de fichiers : cliquable + glisser-déposer, pastille ronde
19
+ * colorée. Possède son propre input caché. Les libellés (titre, sous-titre)
20
+ * ont des valeurs i18n par défaut ; `formats` et `accept` sont fournis par
21
+ * l'appelant selon le cas (images, documents…).
22
+ */
23
+ export declare const FileDropzone: ({ onFiles, accept, multiple, title, hint, formats, uploading, uploadingLabel, icon: Icon, className }: FileDropzoneProps) => import("react").JSX.Element;
24
+ export {};
25
+ //# sourceMappingURL=FileDropzone.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileDropzone.d.ts","sourceRoot":"","sources":["../../../../src/components/core/inputs/FileDropzone.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAW,UAAU,EAAc,MAAM,cAAc,CAAC;AAG/D,UAAU,iBAAiB;IACzB,OAAO,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,IAAI,CAAC;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,wEAAwE;IACxE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4DAA4D;IAC5D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,0EAA0E;IAC1E,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;GAKG;AACH,eAAO,MAAM,YAAY,GAAI,uGAAmI,iBAAiB,gCAsFhL,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ImageInput.d.ts","sourceRoot":"","sources":["../../../../src/components/core/inputs/ImageInput.tsx"],"names":[],"mappings":"AAOA,UAAU,eAAe;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,KAAK,IAAI,CAAC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,UAAU,4GAoEtB,CAAC"}
1
+ {"version":3,"file":"ImageInput.d.ts","sourceRoot":"","sources":["../../../../src/components/core/inputs/ImageInput.tsx"],"names":[],"mappings":"AAOA,UAAU,eAAe;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,KAAK,IAAI,CAAC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,UAAU,4GAmGtB,CAAC"}
@@ -1,4 +1,5 @@
1
1
  export { ImageInput } from "./ImageInput";
2
+ export { FileDropzone } from "./FileDropzone";
2
3
  export { SearchInput } from "./SearchInput";
3
4
  export { DatePicker } from "./DatePicker";
4
5
  export { DateRangePicker } from "./DateRangePicker";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/core/inputs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,YAAY,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/core/inputs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,YAAY,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC"}
@@ -1,5 +1,5 @@
1
- import { t as e } from "../../../ImageInput-C2j-GOpn.js";
2
- import { t } from "../../../MultiSelect-BlsLVGLX.js";
3
- import { i as n, n as r, r as i, t as a } from "../../../SearchInput-CI_OoJwu.js";
4
- import { t as o } from "../../../inputs-CEE8QOT_.js";
5
- export { n as DatePicker, i as DateRangePicker, e as ImageInput, t as MultiSelect, o as RatingInput, a as SearchInput, r as SingleSelect };
1
+ import { t as e } from "../../../ImageInput-DY7duXzL.js";
2
+ import { t } from "../../../MultiSelect-CarvTYPT.js";
3
+ import { i as n, n as r, r as i, t as a } from "../../../SearchInput-CsK3a-58.js";
4
+ import { n as o, t as s } from "../../../inputs-Dgh7QciC.js";
5
+ export { n as DatePicker, i as DateRangePicker, o as FileDropzone, e as ImageInput, t as MultiSelect, s as RatingInput, a as SearchInput, r as SingleSelect };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../language-CX5k4uX5.js";
1
+ import { t as e } from "../../../language-CK1Toh4q.js";
2
2
  export { e as LanguageSelector };
@@ -1,12 +1,12 @@
1
- import { t as e } from "../../../i18n-COxm2IKP.js";
2
- import { i as t, t as n } from "../../../cards-CEP7Jo4R.js";
3
- import "../../../ui-BFLRtp53.js";
1
+ import { t as e } from "../../../i18n-BuQgyJAA.js";
2
+ import { i as t, t as n } from "../../../cards-Cblh5_df.js";
3
+ import "../../../ui-zZYit5Jd.js";
4
4
  import { c as r } from "../../../tooltip-_geGvbS7.js";
5
- import { t as i } from "../../../AppActions-D_fmiysr.js";
6
- import { t as a } from "../../../AppSubTitle-BAZH6wsn.js";
7
- import { t as o } from "../../../useDocumentTitle-wGdjZMx6.js";
8
- import { t as s } from "../../../AppTitle-ky6qG29Z.js";
9
- import { n as c } from "../../../states-14gCg2Sl.js";
5
+ import { t as i } from "../../../AppActions-B7cQOnXY.js";
6
+ import { t as a } from "../../../AppSubTitle-D5YAJ6XK.js";
7
+ import { t as o } from "../../../useDocumentTitle-Dwdvj0Cq.js";
8
+ import { t as s } from "../../../AppTitle-CK5tYl7t.js";
9
+ import { n as c } from "../../../states-lmDbJIGj.js";
10
10
  import "react";
11
11
  import { jsx as l, jsxs as u } from "react/jsx-runtime";
12
12
  import { ArrowLeftIcon as d } from "lucide-react";
@@ -1,2 +1,2 @@
1
- import { a as e, i as t, n, o as r, r as i, t as a } from "../../../navbar-DsxKWZSP.js";
1
+ import { a as e, i as t, n, o as r, r as i, t as a } from "../../../navbar-uE-TcuY6.js";
2
2
  export { r as GlobalSearch, e as NotificationsBell, i as Sidebar, n as SidebarHeader, t as SidebarNavItem, a as Topbar };
@@ -1,3 +1,3 @@
1
- import { t as e } from "../../../ErrorAlert-ZflPwfL1.js";
2
- import { n as t, t as n } from "../../../states-14gCg2Sl.js";
1
+ import { t as e } from "../../../ErrorAlert-B9xG4dAD.js";
2
+ import { n as t, t as n } from "../../../states-lmDbJIGj.js";
3
3
  export { e as ErrorAlert, t as ErrorState, n as LoadingState };
@@ -1,6 +1,6 @@
1
1
  import { ACTIONS_COLUMN_KEY as e, SELECTION_COLUMN_KEY as t, getAlignmentClass as n, getColumnAlignment as r, getFixedCellProps as i } from "../../../helpers/index.js";
2
- import { t as a } from "../../../i18n-COxm2IKP.js";
3
- import { At as o, C as s, D as c, Ft as l, Gt as u, Mt as d, Nt as f, O as p, S as m, T as h, bn as g, jt as _, k as v, v as y } from "../../../ui-BFLRtp53.js";
2
+ import { t as a } from "../../../i18n-BuQgyJAA.js";
3
+ import { At as o, C as s, D as c, Ft as l, Gt as u, Mt as d, Nt as f, O as p, S as m, T as h, bn as g, jt as _, k as v, v as y } from "../../../ui-zZYit5Jd.js";
4
4
  import { c as b } from "../../../tooltip-_geGvbS7.js";
5
5
  import { i as x, l as S, n as C, t as w, u as T } from "../../../select-KWMg2_7Z.js";
6
6
  import { n as E, t as D } from "../../../useFixedColumns-B2yti0Rk.js";
@@ -1,11 +1,11 @@
1
1
  import { t as e } from "../../../tailwind.helper-CJaRYBmL.js";
2
2
  import { c as t, d as n, s as r } from "../../../chart-Dq3AIrue.js";
3
- import { t as i } from "../../../i18n-COxm2IKP.js";
4
- import { _ as a, g as o, h as s, m as c } from "../../../ui-BFLRtp53.js";
5
- import { d as l } from "../../../sheet-B7qGvwk0.js";
3
+ import { t as i } from "../../../i18n-BuQgyJAA.js";
4
+ import { _ as a, g as o, h as s, m as c } from "../../../ui-zZYit5Jd.js";
5
+ import { d as l } from "../../../sheet-BtfL6yxE.js";
6
6
  import { i as u, l as d, n as f, t as p, u as m } from "../../../select-KWMg2_7Z.js";
7
- import { t as h } from "../../../AppActions-D_fmiysr.js";
8
- import { t as g } from "../../../AppTitle-ky6qG29Z.js";
7
+ import { t as h } from "../../../AppActions-B7cQOnXY.js";
8
+ import { t as g } from "../../../AppTitle-CK5tYl7t.js";
9
9
  import { useEffect as _, useRef as v } from "react";
10
10
  import { jsx as y, jsxs as b } from "react/jsx-runtime";
11
11
  import { ConstructionIcon as x } from "lucide-react";
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../theme-BUl4fbtL.js";
1
+ import { t as e } from "../../../theme-nG-VcChv.js";
2
2
  export { e as ThemeSelector };
@@ -1,30 +1,30 @@
1
1
  import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, r as c, s as l, t as u, u as d } from "../chart-Dq3AIrue.js";
2
- import { a as f, i as p, n as m, o as h, r as g, t as _ } from "../cards-CEP7Jo4R.js";
3
- import { $ as v, $t as y, A as b, An as x, At as S, B as C, Bn as w, Bt as T, C as E, Cn as D, Ct as O, D as k, Dn as A, Dt as j, E as M, En as N, Et as P, F, Fn as I, Ft as L, G as R, Gn as z, Gt as B, H as V, Hn as H, Ht as U, I as W, In as G, It as K, J as q, Jn as J, Jt as Y, K as X, Kn as Z, Kt as Q, L as $, Ln as ee, Lt as te, M as ne, Mn as re, Mt as ie, N as ae, Nn as oe, Nt as se, O as ce, On as le, Ot as ue, P as de, Pn as fe, Pt as pe, Q as me, Qn as he, Qt as ge, R as _e, Rn as ve, Rt as ye, S as be, Sn as xe, St as Se, T as Ce, Tn as we, Tt as Te, U as Ee, Un as De, Ut as Oe, V as ke, Vn as Ae, Vt as je, W as Me, Wn as Ne, Wt as Pe, X as Fe, Xn as Ie, Xt as Le, Y as Re, Yn as ze, Yt as Be, Z as Ve, Zn as He, Zt as Ue, _ as We, _n as Ge, _t as Ke, a as qe, an as Je, at as Ye, b as Xe, bn as Ze, bt as Qe, c as $e, cn as et, ct as tt, d as nt, dn as rt, dt as it, en as at, et as ot, f as st, fn as ct, ft as lt, g as ut, gn as dt, gt as ft, h as pt, hn as mt, ht, i as gt, in as _t, it as vt, j as yt, jn as bt, jt as xt, k as St, kn as Ct, kt as wt, l as Tt, ln as Et, lt as Dt, m as Ot, mn as kt, mt as At, n as jt, nn as Mt, nt as Nt, o as Pt, on as Ft, ot as It, p as Lt, pn as Rt, pt as zt, q as Bt, qn as Vt, qt as Ht, r as Ut, rn as Wt, rt as Gt, s as Kt, sn as qt, st as Jt, t as Yt, tn as Xt, tt as Zt, u as Qt, un as $t, ut as en, v as tn, vn as nn, vt as rn, w as an, wn as on, wt as sn, x as cn, xn as ln, xt as un, y as dn, yn as fn, yt as pn, z as mn, zn as hn, zt as gn } from "../ui-BFLRtp53.js";
2
+ import { a as f, i as p, n as m, o as h, r as g, t as _ } from "../cards-Cblh5_df.js";
3
+ import { $ as v, $t as y, A as b, An as x, At as S, B as C, Bn as w, Bt as T, C as E, Cn as D, Ct as O, D as k, Dn as A, Dt as j, E as M, En as N, Et as P, F, Fn as I, Ft as L, G as R, Gn as z, Gt as B, H as V, Hn as H, Ht as U, I as W, In as G, It as K, J as q, Jn as J, Jt as Y, K as X, Kn as Z, Kt as Q, L as $, Ln as ee, Lt as te, M as ne, Mn as re, Mt as ie, N as ae, Nn as oe, Nt as se, O as ce, On as le, Ot as ue, P as de, Pn as fe, Pt as pe, Q as me, Qn as he, Qt as ge, R as _e, Rn as ve, Rt as ye, S as be, Sn as xe, St as Se, T as Ce, Tn as we, Tt as Te, U as Ee, Un as De, Ut as Oe, V as ke, Vn as Ae, Vt as je, W as Me, Wn as Ne, Wt as Pe, X as Fe, Xn as Ie, Xt as Le, Y as Re, Yn as ze, Yt as Be, Z as Ve, Zn as He, Zt as Ue, _ as We, _n as Ge, _t as Ke, a as qe, an as Je, at as Ye, b as Xe, bn as Ze, bt as Qe, c as $e, cn as et, ct as tt, d as nt, dn as rt, dt as it, en as at, et as ot, f as st, fn as ct, ft as lt, g as ut, gn as dt, gt as ft, h as pt, hn as mt, ht, i as gt, in as _t, it as vt, j as yt, jn as bt, jt as xt, k as St, kn as Ct, kt as wt, l as Tt, ln as Et, lt as Dt, m as Ot, mn as kt, mt as At, n as jt, nn as Mt, nt as Nt, o as Pt, on as Ft, ot as It, p as Lt, pn as Rt, pt as zt, q as Bt, qn as Vt, qt as Ht, r as Ut, rn as Wt, rt as Gt, s as Kt, sn as qt, st as Jt, t as Yt, tn as Xt, tt as Zt, u as Qt, un as $t, ut as en, v as tn, vn as nn, vt as rn, w as an, wn as on, wt as sn, x as cn, xn as ln, xt as un, y as dn, yn as fn, yt as pn, z as mn, zn as hn, zt as gn } from "../ui-zZYit5Jd.js";
4
4
  import { n as _n, r as vn, t as yn } from "../alert-REQGK9bR.js";
5
5
  import { a as bn, c as xn, i as Sn, l as Cn, n as wn, o as Tn, r as En, s as Dn, t as On } from "../tooltip-_geGvbS7.js";
6
- import { A as kn, C as An, D as jn, E as Mn, F as Nn, M as Pn, N as Fn, O as In, P as Ln, S as Rn, T as zn, _ as Bn, a as Vn, b as Hn, c as Un, d as Wn, f as Gn, g as Kn, h as qn, i as Jn, j as Yn, k as Xn, l as Zn, m as Qn, n as $n, o as er, p as tr, r as nr, s as rr, t as ir, u as ar, v as or, w as sr, x as cr, y as lr } from "../sheet-B7qGvwk0.js";
6
+ import { A as kn, C as An, D as jn, E as Mn, F as Nn, M as Pn, N as Fn, O as In, P as Ln, S as Rn, T as zn, _ as Bn, a as Vn, b as Hn, c as Un, d as Wn, f as Gn, g as Kn, h as qn, i as Jn, j as Yn, k as Xn, l as Zn, m as Qn, n as $n, o as er, p as tr, r as nr, s as rr, t as ir, u as ar, v as or, w as sr, x as cr, y as lr } from "../sheet-BtfL6yxE.js";
7
7
  import { a as ur, c as dr, i as fr, l as pr, n as mr, o as hr, r as gr, s as _r, t as vr, u as yr } from "../select-KWMg2_7Z.js";
8
8
  import { t as br } from "../skeleton-D6Ga4BLw.js";
9
- import { a as xr, c as Sr, i as Cr, n as wr, o as Tr, r as Er, s as Dr, t as Or } from "../charts-Dqw9_J2o.js";
10
- import { t as kr } from "../ErrorAlert-ZflPwfL1.js";
11
- import { n as Ar, r as jr, t as Mr } from "../dialogs-C8o99oud.js";
12
- import { t as Nr } from "../ImageInput-C2j-GOpn.js";
13
- import { t as Pr } from "../AppActions-D_fmiysr.js";
14
- import { t as Fr } from "../AppSubTitle-BAZH6wsn.js";
15
- import { t as Ir } from "../MultiSelect-BlsLVGLX.js";
16
- import { t as Lr } from "../GenericForm-BykHqJam.js";
17
- import { i as Rr, n as zr, r as Br, t as Vr } from "../SearchInput-CI_OoJwu.js";
9
+ import { a as xr, c as Sr, i as Cr, n as wr, o as Tr, r as Er, s as Dr, t as Or } from "../charts-QR6bDfQR.js";
10
+ import { t as kr } from "../ErrorAlert-B9xG4dAD.js";
11
+ import { n as Ar, r as jr, t as Mr } from "../dialogs-QuBhzoAe.js";
12
+ import { t as Nr } from "../ImageInput-DY7duXzL.js";
13
+ import { t as Pr } from "../AppActions-B7cQOnXY.js";
14
+ import { t as Fr } from "../AppSubTitle-D5YAJ6XK.js";
15
+ import { t as Ir } from "../MultiSelect-CarvTYPT.js";
16
+ import { t as Lr } from "../GenericForm-DkMp-WFx.js";
17
+ import { i as Rr, n as zr, r as Br, t as Vr } from "../SearchInput-CsK3a-58.js";
18
18
  import { ActiveFilters as Hr, AdvancedFilters as Ur, FilterField as Wr, FilterPills as Gr, FilterPillsGroup as Kr, FiltersContainer as qr, FiltersMobileDrawer as Jr, TableFilter as Yr } from "./core/filters/index.js";
19
19
  import { n as Xr, t as Zr } from "../icons-n0m_1w7z.js";
20
- import { t as Qr } from "../inputs-CEE8QOT_.js";
21
- import { t as $r } from "../language-CX5k4uX5.js";
22
- import { t as ei } from "../AppTitle-ky6qG29Z.js";
23
- import { n as ti, t as ni } from "../states-14gCg2Sl.js";
24
- import { AppPageHeader as ri, KpiCardsLayout as ii } from "./core/layouts/index.js";
25
- import { a as ai, i as oi, n as si, o as ci, r as li, t as ui } from "../navbar-DsxKWZSP.js";
26
- import { DataTable as di, JsonTableOutput as fi, TableActions as pi, TableBody as mi, TableBulkActions as hi, TableHeader as gi, TablePagination as _i, TableSettings as vi } from "./core/table/index.js";
27
- import { AppTabContainer as yi, AppTabHeader as bi, AppTabs as xi, AppVerticalTabs as Si } from "./core/tabs/index.js";
28
- import { t as Ci } from "../theme-BUl4fbtL.js";
20
+ import { n as Qr, t as $r } from "../inputs-Dgh7QciC.js";
21
+ import { t as ei } from "../language-CK1Toh4q.js";
22
+ import { t as ti } from "../AppTitle-CK5tYl7t.js";
23
+ import { n as ni, t as ri } from "../states-lmDbJIGj.js";
24
+ import { AppPageHeader as ii, KpiCardsLayout as ai } from "./core/layouts/index.js";
25
+ import { a as oi, i as si, n as ci, o as li, r as ui, t as di } from "../navbar-uE-TcuY6.js";
26
+ import { DataTable as fi, JsonTableOutput as pi, TableActions as mi, TableBody as hi, TableBulkActions as gi, TableHeader as _i, TablePagination as vi, TableSettings as yi } from "./core/table/index.js";
27
+ import { AppTabContainer as bi, AppTabHeader as xi, AppTabs as Si, AppVerticalTabs as Ci } from "./core/tabs/index.js";
28
+ import { t as wi } from "../theme-nG-VcChv.js";
29
29
  import "./core/index.js";
30
- export { ze as Accordion, Ie as AccordionContent, He as AccordionItem, he as AccordionTrigger, Hr as ActiveFilters, Ur as AdvancedFilters, yn as Alert, _n as AlertDescription, w as AlertDialog, Ae as AlertDialogAction, H as AlertDialogCancel, De as AlertDialogContent, Ne as AlertDialogDescription, z as AlertDialogFooter, Z as AlertDialogHeader, Vt as AlertDialogTitle, J as AlertDialogTrigger, vn as AlertTitle, Pr as AppActions, jr as AppDialog, ri as AppPageHeader, Fr as AppSubTitle, yi as AppTabContainer, bi as AppTabHeader, xi as AppTabs, ei as AppTitle, Si as AppVerticalTabs, hn as AspectRatio, G as Avatar, ee as AvatarFallback, ve as AvatarImage, fe as Badge, Sr as BarChartHorizontal, Dr as BarChartVertical, A as Breadcrumb, le as BreadcrumbEllipsis, Ct as BreadcrumbItem, x as BreadcrumbLink, bt as BreadcrumbList, re as BreadcrumbPage, oe as BreadcrumbSeparator, xn as Button, xr as CHART_COLORS, N as Calendar, l as Card, t as CardContent, a as CardDescription, d as CardFooter, n as CardHeader, r as CardTitle, ln as Carousel, xe as CarouselContent, D as CarouselItem, on as CarouselNext, we as CarouselPrevious, Cr as ChartCard, u as ChartContainer, o as ChartLegend, c as ChartLegendContent, i as ChartStyle, e as ChartTooltip, s as ChartTooltipContent, Ze as Checkbox, Er as CircularGauge, Ge as Collapsible, nn as CollapsibleContent, fn as CollapsibleTrigger, Bn as Command, or as CommandDialog, lr as CommandEmpty, Hn as CommandGroup, cr as CommandInput, Rn as CommandItem, An as CommandList, sr as CommandSeparator, zn as CommandShortcut, Mr as ConfirmationDialog, Mt as ContextMenu, Wt as ContextMenuCheckboxItem, _t as ContextMenuContent, Je as ContextMenuGroup, Ft as ContextMenuItem, qt as ContextMenuLabel, et as ContextMenuPortal, Et as ContextMenuRadioGroup, $t as ContextMenuRadioItem, rt as ContextMenuSeparator, ct as ContextMenuShortcut, Rt as ContextMenuSub, kt as ContextMenuSubContent, mt as ContextMenuSubTrigger, dt as ContextMenuTrigger, h as DashboardCard, di as DataTable, Rr as DatePicker, Br as DateRangePicker, Mn as Dialog, jn as DialogClose, In as DialogContent, Xn as DialogDescription, kn as DialogFooter, Yn as DialogHeader, Pn as DialogOverlay, Fn as DialogPortal, Ln as DialogTitle, Nn as DialogTrigger, Q as Drawer, Ht as DrawerClose, Y as DrawerContent, Be as DrawerDescription, Le as DrawerFooter, Ue as DrawerHeader, ge as DrawerOverlay, y as DrawerPortal, at as DrawerTitle, Xt as DrawerTrigger, xt as DropdownMenu, ie as DropdownMenuCheckboxItem, se as DropdownMenuContent, pe as DropdownMenuGroup, L as DropdownMenuItem, K as DropdownMenuLabel, te as DropdownMenuPortal, ye as DropdownMenuRadioGroup, gn as DropdownMenuRadioItem, T as DropdownMenuSeparator, je as DropdownMenuShortcut, U as DropdownMenuSub, Oe as DropdownMenuSubContent, Pe as DropdownMenuSubTrigger, B as DropdownMenuTrigger, kr as ErrorAlert, ti as ErrorState, Wr as FilterField, Gr as FilterPills, Kr as FilterPillsGroup, qr as FiltersContainer, Jr as FiltersMobileDrawer, Xr as FlagFrIcon, Zr as FlagGbIcon, Se as Form, O as FormControl, sn as FormDescription, Ar as FormDialog, Te as FormField, P as FormItem, j as FormLabel, ue as FormMessage, Lr as GenericForm, ci as GlobalSearch, pn as HoverCard, Qe as HoverCardContent, un as HoverCardTrigger, Nr as ImageInput, Kn as Input, ht as InputOTP, ft as InputOTPGroup, Ke as InputOTPSeparator, rn as InputOTPSlot, fi as JsonTableOutput, f as KpiCard, p as KpiCards, ii as KpiCardsLayout, S as Label, $r as LanguageSelector, wr as LineChart, ni as LoadingState, v as Menubar, ot as MenubarCheckboxItem, Zt as MenubarContent, Nt as MenubarGroup, Gt as MenubarItem, vt as MenubarLabel, Ye as MenubarMenu, It as MenubarPortal, Jt as MenubarRadioGroup, tt as MenubarRadioItem, Dt as MenubarSeparator, en as MenubarShortcut, it as MenubarSub, lt as MenubarSubContent, zt as MenubarSubTrigger, At as MenubarTrigger, g as MetricCard, Ir as MultiSelect, Me as NavigationMenu, R as NavigationMenuContent, X as NavigationMenuIndicator, Bt as NavigationMenuItem, q as NavigationMenuLink, Re as NavigationMenuList, Fe as NavigationMenuTrigger, Ve as NavigationMenuViewport, ai as NotificationsBell, $ as Pagination, _e as PaginationContent, mn as PaginationEllipsis, C as PaginationItem, ke as PaginationLink, V as PaginationNext, Ee as PaginationPrevious, Or as PieChart, tr as Popover, Qn as PopoverContent, qn as PopoverTrigger, W as Progress, de as RadioGroup, F as RadioGroupItem, Qr as RatingInput, yt as ResizableHandle, ne as ResizablePanel, ae as ResizablePanelGroup, Wn as ScrollArea, Gn as ScrollBar, Vr as SearchInput, vr as Select, mr as SelectContent, gr as SelectGroup, fr as SelectItem, ur as SelectLabel, hr as SelectScrollDownButton, _r as SelectScrollUpButton, dr as SelectSeparator, pr as SelectTrigger, yr as SelectValue, b as Separator, ir as Sheet, $n as SheetClose, nr as SheetContent, Jn as SheetDescription, Vn as SheetFooter, er as SheetHeader, rr as SheetOverlay, Un as SheetPortal, Zn as SheetTitle, ar as SheetTrigger, li as Sidebar, si as SidebarHeader, oi as SidebarNavItem, be as SimpleTable, E as SimpleTableBody, an as SimpleTableCaption, Ce as SimpleTableCell, M as SimpleTableFooter, k as SimpleTableHead, ce as SimpleTableHeader, St as SimpleTableRow, zr as SingleSelect, br as Skeleton, m as SkeletonCard, _ as SkeletonCards, cn as Slider, dn as Sonner, tn as Switch, pi as TableActions, mi as TableBody, hi as TableBulkActions, Yr as TableFilter, gi as TableHeader, _i as TablePagination, vi as TableSettings, Ot as Tabs, pt as TabsContent, ut as TabsList, We as TabsTrigger, Lt as Textarea, Ci as ThemeSelector, Pt as Toast, Kt as ToastAction, $e as ToastClose, Tt as ToastDescription, Qt as ToastProvider, nt as ToastTitle, st as ToastViewport, qe as Toaster, Ut as Toggle, Yt as ToggleGroup, jt as ToggleGroupItem, On as Tooltip, wn as TooltipContent, En as TooltipProvider, Sn as TooltipTrigger, ui as Topbar, I as badgeVariants, Cn as buttonVariants, bn as controlBaseClass, Tn as controlFilterWidthClass, Dn as controlTriggerClass, Tr as getChartColor, me as navigationMenuTriggerStyle, Xe as toast, gt as toggleVariants, wt as useFormField };
30
+ export { ze as Accordion, Ie as AccordionContent, He as AccordionItem, he as AccordionTrigger, Hr as ActiveFilters, Ur as AdvancedFilters, yn as Alert, _n as AlertDescription, w as AlertDialog, Ae as AlertDialogAction, H as AlertDialogCancel, De as AlertDialogContent, Ne as AlertDialogDescription, z as AlertDialogFooter, Z as AlertDialogHeader, Vt as AlertDialogTitle, J as AlertDialogTrigger, vn as AlertTitle, Pr as AppActions, jr as AppDialog, ii as AppPageHeader, Fr as AppSubTitle, bi as AppTabContainer, xi as AppTabHeader, Si as AppTabs, ti as AppTitle, Ci as AppVerticalTabs, hn as AspectRatio, G as Avatar, ee as AvatarFallback, ve as AvatarImage, fe as Badge, Sr as BarChartHorizontal, Dr as BarChartVertical, A as Breadcrumb, le as BreadcrumbEllipsis, Ct as BreadcrumbItem, x as BreadcrumbLink, bt as BreadcrumbList, re as BreadcrumbPage, oe as BreadcrumbSeparator, xn as Button, xr as CHART_COLORS, N as Calendar, l as Card, t as CardContent, a as CardDescription, d as CardFooter, n as CardHeader, r as CardTitle, ln as Carousel, xe as CarouselContent, D as CarouselItem, on as CarouselNext, we as CarouselPrevious, Cr as ChartCard, u as ChartContainer, o as ChartLegend, c as ChartLegendContent, i as ChartStyle, e as ChartTooltip, s as ChartTooltipContent, Ze as Checkbox, Er as CircularGauge, Ge as Collapsible, nn as CollapsibleContent, fn as CollapsibleTrigger, Bn as Command, or as CommandDialog, lr as CommandEmpty, Hn as CommandGroup, cr as CommandInput, Rn as CommandItem, An as CommandList, sr as CommandSeparator, zn as CommandShortcut, Mr as ConfirmationDialog, Mt as ContextMenu, Wt as ContextMenuCheckboxItem, _t as ContextMenuContent, Je as ContextMenuGroup, Ft as ContextMenuItem, qt as ContextMenuLabel, et as ContextMenuPortal, Et as ContextMenuRadioGroup, $t as ContextMenuRadioItem, rt as ContextMenuSeparator, ct as ContextMenuShortcut, Rt as ContextMenuSub, kt as ContextMenuSubContent, mt as ContextMenuSubTrigger, dt as ContextMenuTrigger, h as DashboardCard, fi as DataTable, Rr as DatePicker, Br as DateRangePicker, Mn as Dialog, jn as DialogClose, In as DialogContent, Xn as DialogDescription, kn as DialogFooter, Yn as DialogHeader, Pn as DialogOverlay, Fn as DialogPortal, Ln as DialogTitle, Nn as DialogTrigger, Q as Drawer, Ht as DrawerClose, Y as DrawerContent, Be as DrawerDescription, Le as DrawerFooter, Ue as DrawerHeader, ge as DrawerOverlay, y as DrawerPortal, at as DrawerTitle, Xt as DrawerTrigger, xt as DropdownMenu, ie as DropdownMenuCheckboxItem, se as DropdownMenuContent, pe as DropdownMenuGroup, L as DropdownMenuItem, K as DropdownMenuLabel, te as DropdownMenuPortal, ye as DropdownMenuRadioGroup, gn as DropdownMenuRadioItem, T as DropdownMenuSeparator, je as DropdownMenuShortcut, U as DropdownMenuSub, Oe as DropdownMenuSubContent, Pe as DropdownMenuSubTrigger, B as DropdownMenuTrigger, kr as ErrorAlert, ni as ErrorState, Qr as FileDropzone, Wr as FilterField, Gr as FilterPills, Kr as FilterPillsGroup, qr as FiltersContainer, Jr as FiltersMobileDrawer, Xr as FlagFrIcon, Zr as FlagGbIcon, Se as Form, O as FormControl, sn as FormDescription, Ar as FormDialog, Te as FormField, P as FormItem, j as FormLabel, ue as FormMessage, Lr as GenericForm, li as GlobalSearch, pn as HoverCard, Qe as HoverCardContent, un as HoverCardTrigger, Nr as ImageInput, Kn as Input, ht as InputOTP, ft as InputOTPGroup, Ke as InputOTPSeparator, rn as InputOTPSlot, pi as JsonTableOutput, f as KpiCard, p as KpiCards, ai as KpiCardsLayout, S as Label, ei as LanguageSelector, wr as LineChart, ri as LoadingState, v as Menubar, ot as MenubarCheckboxItem, Zt as MenubarContent, Nt as MenubarGroup, Gt as MenubarItem, vt as MenubarLabel, Ye as MenubarMenu, It as MenubarPortal, Jt as MenubarRadioGroup, tt as MenubarRadioItem, Dt as MenubarSeparator, en as MenubarShortcut, it as MenubarSub, lt as MenubarSubContent, zt as MenubarSubTrigger, At as MenubarTrigger, g as MetricCard, Ir as MultiSelect, Me as NavigationMenu, R as NavigationMenuContent, X as NavigationMenuIndicator, Bt as NavigationMenuItem, q as NavigationMenuLink, Re as NavigationMenuList, Fe as NavigationMenuTrigger, Ve as NavigationMenuViewport, oi as NotificationsBell, $ as Pagination, _e as PaginationContent, mn as PaginationEllipsis, C as PaginationItem, ke as PaginationLink, V as PaginationNext, Ee as PaginationPrevious, Or as PieChart, tr as Popover, Qn as PopoverContent, qn as PopoverTrigger, W as Progress, de as RadioGroup, F as RadioGroupItem, $r as RatingInput, yt as ResizableHandle, ne as ResizablePanel, ae as ResizablePanelGroup, Wn as ScrollArea, Gn as ScrollBar, Vr as SearchInput, vr as Select, mr as SelectContent, gr as SelectGroup, fr as SelectItem, ur as SelectLabel, hr as SelectScrollDownButton, _r as SelectScrollUpButton, dr as SelectSeparator, pr as SelectTrigger, yr as SelectValue, b as Separator, ir as Sheet, $n as SheetClose, nr as SheetContent, Jn as SheetDescription, Vn as SheetFooter, er as SheetHeader, rr as SheetOverlay, Un as SheetPortal, Zn as SheetTitle, ar as SheetTrigger, ui as Sidebar, ci as SidebarHeader, si as SidebarNavItem, be as SimpleTable, E as SimpleTableBody, an as SimpleTableCaption, Ce as SimpleTableCell, M as SimpleTableFooter, k as SimpleTableHead, ce as SimpleTableHeader, St as SimpleTableRow, zr as SingleSelect, br as Skeleton, m as SkeletonCard, _ as SkeletonCards, cn as Slider, dn as Sonner, tn as Switch, mi as TableActions, hi as TableBody, gi as TableBulkActions, Yr as TableFilter, _i as TableHeader, vi as TablePagination, yi as TableSettings, Ot as Tabs, pt as TabsContent, ut as TabsList, We as TabsTrigger, Lt as Textarea, wi as ThemeSelector, Pt as Toast, Kt as ToastAction, $e as ToastClose, Tt as ToastDescription, Qt as ToastProvider, nt as ToastTitle, st as ToastViewport, qe as Toaster, Ut as Toggle, Yt as ToggleGroup, jt as ToggleGroupItem, On as Tooltip, wn as TooltipContent, En as TooltipProvider, Sn as TooltipTrigger, di as Topbar, I as badgeVariants, Cn as buttonVariants, bn as controlBaseClass, Tn as controlFilterWidthClass, Dn as controlTriggerClass, Tr as getChartColor, me as navigationMenuTriggerStyle, Xe as toast, gt as toggleVariants, wt as useFormField };
@@ -1,8 +1,8 @@
1
1
  import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, r as c, s as l, t as u, u as d } from "../../chart-Dq3AIrue.js";
2
- import { $ as f, $t as p, A as m, An as h, At as g, B as _, Bn as v, Bt as y, C as b, Cn as x, Ct as S, D as C, Dn as w, Dt as T, E, En as D, Et as O, F as k, Fn as A, Ft as j, G as M, Gn as N, Gt as P, H as F, Hn as I, Ht as L, I as R, In as z, It as B, J as V, Jn as H, Jt as U, K as W, Kn as G, Kt as K, L as q, Ln as J, Lt as Y, M as X, Mn as Z, Mt as Q, N as $, Nn as ee, Nt as te, O as ne, On as re, Ot as ie, P as ae, Pn as oe, Pt as se, Q as ce, Qn as le, Qt as ue, R as de, Rn as fe, Rt as pe, S as me, Sn as he, St as ge, T as _e, Tn as ve, Tt as ye, U as be, Un as xe, Ut as Se, V as Ce, Vn as we, Vt as Te, W as Ee, Wn as De, Wt as Oe, X as ke, Xn as Ae, Xt as je, Y as Me, Yn as Ne, Yt as Pe, Z as Fe, Zn as Ie, Zt as Le, _ as Re, _n as ze, _t as Be, a as Ve, an as He, at as Ue, b as We, bn as Ge, bt as Ke, c as qe, cn as Je, ct as Ye, d as Xe, dn as Ze, dt as Qe, en as $e, et, f as tt, fn as nt, ft as rt, g as it, gn as at, gt as ot, h as st, hn as ct, ht as lt, i as ut, in as dt, it as ft, j as pt, jn as mt, jt as ht, k as gt, kn as _t, kt as vt, l as yt, ln as bt, lt as xt, m as St, mn as Ct, mt as wt, n as Tt, nn as Et, nt as Dt, o as Ot, on as kt, ot as At, p as jt, pn as Mt, pt as Nt, q as Pt, qn as Ft, qt as It, r as Lt, rn as Rt, rt as zt, s as Bt, sn as Vt, st as Ht, t as Ut, tn as Wt, tt as Gt, u as Kt, un as qt, ut as Jt, v as Yt, vn as Xt, vt as Zt, w as Qt, wn as $t, wt as en, x as tn, xn as nn, xt as rn, y as an, yn as on, yt as sn, z as cn, zn as ln, zt as un } from "../../ui-BFLRtp53.js";
2
+ import { $ as f, $t as p, A as m, An as h, At as g, B as _, Bn as v, Bt as y, C as b, Cn as x, Ct as S, D as C, Dn as w, Dt as T, E, En as D, Et as O, F as k, Fn as A, Ft as j, G as M, Gn as N, Gt as P, H as F, Hn as I, Ht as L, I as R, In as z, It as B, J as V, Jn as H, Jt as U, K as W, Kn as G, Kt as K, L as q, Ln as J, Lt as Y, M as X, Mn as Z, Mt as Q, N as $, Nn as ee, Nt as te, O as ne, On as re, Ot as ie, P as ae, Pn as oe, Pt as se, Q as ce, Qn as le, Qt as ue, R as de, Rn as fe, Rt as pe, S as me, Sn as he, St as ge, T as _e, Tn as ve, Tt as ye, U as be, Un as xe, Ut as Se, V as Ce, Vn as we, Vt as Te, W as Ee, Wn as De, Wt as Oe, X as ke, Xn as Ae, Xt as je, Y as Me, Yn as Ne, Yt as Pe, Z as Fe, Zn as Ie, Zt as Le, _ as Re, _n as ze, _t as Be, a as Ve, an as He, at as Ue, b as We, bn as Ge, bt as Ke, c as qe, cn as Je, ct as Ye, d as Xe, dn as Ze, dt as Qe, en as $e, et, f as tt, fn as nt, ft as rt, g as it, gn as at, gt as ot, h as st, hn as ct, ht as lt, i as ut, in as dt, it as ft, j as pt, jn as mt, jt as ht, k as gt, kn as _t, kt as vt, l as yt, ln as bt, lt as xt, m as St, mn as Ct, mt as wt, n as Tt, nn as Et, nt as Dt, o as Ot, on as kt, ot as At, p as jt, pn as Mt, pt as Nt, q as Pt, qn as Ft, qt as It, r as Lt, rn as Rt, rt as zt, s as Bt, sn as Vt, st as Ht, t as Ut, tn as Wt, tt as Gt, u as Kt, un as qt, ut as Jt, v as Yt, vn as Xt, vt as Zt, w as Qt, wn as $t, wt as en, x as tn, xn as nn, xt as rn, y as an, yn as on, yt as sn, z as cn, zn as ln, zt as un } from "../../ui-zZYit5Jd.js";
3
3
  import { n as dn, r as fn, t as pn } from "../../alert-REQGK9bR.js";
4
4
  import { a as mn, c as hn, i as gn, l as _n, n as vn, o as yn, r as bn, s as xn, t as Sn } from "../../tooltip-_geGvbS7.js";
5
- import { A as Cn, C as wn, D as Tn, E as En, F as Dn, M as On, N as kn, O as An, P as jn, S as Mn, T as Nn, _ as Pn, a as Fn, b as In, c as Ln, d as Rn, f as zn, g as Bn, h as Vn, i as Hn, j as Un, k as Wn, l as Gn, m as Kn, n as qn, o as Jn, p as Yn, r as Xn, s as Zn, t as Qn, u as $n, v as er, w as tr, x as nr, y as rr } from "../../sheet-B7qGvwk0.js";
5
+ import { A as Cn, C as wn, D as Tn, E as En, F as Dn, M as On, N as kn, O as An, P as jn, S as Mn, T as Nn, _ as Pn, a as Fn, b as In, c as Ln, d as Rn, f as zn, g as Bn, h as Vn, i as Hn, j as Un, k as Wn, l as Gn, m as Kn, n as qn, o as Jn, p as Yn, r as Xn, s as Zn, t as Qn, u as $n, v as er, w as tr, x as nr, y as rr } from "../../sheet-BtfL6yxE.js";
6
6
  import { a as ir, c as ar, i as or, l as sr, n as cr, o as lr, r as ur, s as dr, t as fr, u as pr } from "../../select-KWMg2_7Z.js";
7
7
  import { t as mr } from "../../skeleton-D6Ga4BLw.js";
8
8
  export { Ne as Accordion, Ae as AccordionContent, Ie as AccordionItem, le as AccordionTrigger, pn as Alert, dn as AlertDescription, v as AlertDialog, we as AlertDialogAction, I as AlertDialogCancel, xe as AlertDialogContent, De as AlertDialogDescription, N as AlertDialogFooter, G as AlertDialogHeader, Ft as AlertDialogTitle, H as AlertDialogTrigger, fn as AlertTitle, ln as AspectRatio, z as Avatar, J as AvatarFallback, fe as AvatarImage, oe as Badge, w as Breadcrumb, re as BreadcrumbEllipsis, _t as BreadcrumbItem, h as BreadcrumbLink, mt as BreadcrumbList, Z as BreadcrumbPage, ee as BreadcrumbSeparator, hn as Button, D as Calendar, l as Card, t as CardContent, a as CardDescription, d as CardFooter, n as CardHeader, r as CardTitle, nn as Carousel, he as CarouselContent, x as CarouselItem, $t as CarouselNext, ve as CarouselPrevious, u as ChartContainer, o as ChartLegend, c as ChartLegendContent, i as ChartStyle, e as ChartTooltip, s as ChartTooltipContent, Ge as Checkbox, ze as Collapsible, Xt as CollapsibleContent, on as CollapsibleTrigger, Pn as Command, er as CommandDialog, rr as CommandEmpty, In as CommandGroup, nr as CommandInput, Mn as CommandItem, wn as CommandList, tr as CommandSeparator, Nn as CommandShortcut, Et as ContextMenu, Rt as ContextMenuCheckboxItem, dt as ContextMenuContent, He as ContextMenuGroup, kt as ContextMenuItem, Vt as ContextMenuLabel, Je as ContextMenuPortal, bt as ContextMenuRadioGroup, qt as ContextMenuRadioItem, Ze as ContextMenuSeparator, nt as ContextMenuShortcut, Mt as ContextMenuSub, Ct as ContextMenuSubContent, ct as ContextMenuSubTrigger, at as ContextMenuTrigger, En as Dialog, Tn as DialogClose, An as DialogContent, Wn as DialogDescription, Cn as DialogFooter, Un as DialogHeader, On as DialogOverlay, kn as DialogPortal, jn as DialogTitle, Dn as DialogTrigger, K as Drawer, It as DrawerClose, U as DrawerContent, Pe as DrawerDescription, je as DrawerFooter, Le as DrawerHeader, ue as DrawerOverlay, p as DrawerPortal, $e as DrawerTitle, Wt as DrawerTrigger, ht as DropdownMenu, Q as DropdownMenuCheckboxItem, te as DropdownMenuContent, se as DropdownMenuGroup, j as DropdownMenuItem, B as DropdownMenuLabel, Y as DropdownMenuPortal, pe as DropdownMenuRadioGroup, un as DropdownMenuRadioItem, y as DropdownMenuSeparator, Te as DropdownMenuShortcut, L as DropdownMenuSub, Se as DropdownMenuSubContent, Oe as DropdownMenuSubTrigger, P as DropdownMenuTrigger, ge as Form, S as FormControl, en as FormDescription, ye as FormField, O as FormItem, T as FormLabel, ie as FormMessage, sn as HoverCard, Ke as HoverCardContent, rn as HoverCardTrigger, Bn as Input, lt as InputOTP, ot as InputOTPGroup, Be as InputOTPSeparator, Zt as InputOTPSlot, g as Label, f as Menubar, et as MenubarCheckboxItem, Gt as MenubarContent, Dt as MenubarGroup, zt as MenubarItem, ft as MenubarLabel, Ue as MenubarMenu, At as MenubarPortal, Ht as MenubarRadioGroup, Ye as MenubarRadioItem, xt as MenubarSeparator, Jt as MenubarShortcut, Qe as MenubarSub, rt as MenubarSubContent, Nt as MenubarSubTrigger, wt as MenubarTrigger, Ee as NavigationMenu, M as NavigationMenuContent, W as NavigationMenuIndicator, Pt as NavigationMenuItem, V as NavigationMenuLink, Me as NavigationMenuList, ke as NavigationMenuTrigger, Fe as NavigationMenuViewport, q as Pagination, de as PaginationContent, cn as PaginationEllipsis, _ as PaginationItem, Ce as PaginationLink, F as PaginationNext, be as PaginationPrevious, Yn as Popover, Kn as PopoverContent, Vn as PopoverTrigger, R as Progress, ae as RadioGroup, k as RadioGroupItem, pt as ResizableHandle, X as ResizablePanel, $ as ResizablePanelGroup, Rn as ScrollArea, zn as ScrollBar, fr as Select, cr as SelectContent, ur as SelectGroup, or as SelectItem, ir as SelectLabel, lr as SelectScrollDownButton, dr as SelectScrollUpButton, ar as SelectSeparator, sr as SelectTrigger, pr as SelectValue, m as Separator, Qn as Sheet, qn as SheetClose, Xn as SheetContent, Hn as SheetDescription, Fn as SheetFooter, Jn as SheetHeader, Zn as SheetOverlay, Ln as SheetPortal, Gn as SheetTitle, $n as SheetTrigger, me as SimpleTable, b as SimpleTableBody, Qt as SimpleTableCaption, _e as SimpleTableCell, E as SimpleTableFooter, C as SimpleTableHead, ne as SimpleTableHeader, gt as SimpleTableRow, mr as Skeleton, tn as Slider, an as Sonner, Yt as Switch, St as Tabs, st as TabsContent, it as TabsList, Re as TabsTrigger, jt as Textarea, Ot as Toast, Bt as ToastAction, qe as ToastClose, yt as ToastDescription, Kt as ToastProvider, Xe as ToastTitle, tt as ToastViewport, Ve as Toaster, Lt as Toggle, Ut as ToggleGroup, Tt as ToggleGroupItem, Sn as Tooltip, vn as TooltipContent, bn as TooltipProvider, gn as TooltipTrigger, A as badgeVariants, _n as buttonVariants, mn as controlBaseClass, yn as controlFilterWidthClass, xn as controlTriggerClass, ce as navigationMenuTriggerStyle, We as toast, ut as toggleVariants, vt as useFormField };
@@ -1,10 +1,10 @@
1
1
  import { t as e } from "./tailwind.helper-CJaRYBmL.js";
2
- import { t } from "./i18n-COxm2IKP.js";
3
- import { Bn as n, Gn as r, Hn as i, I as a, Kn as o, Un as s, Wn as c, qn as l } from "./ui-BFLRtp53.js";
2
+ import { t } from "./i18n-BuQgyJAA.js";
3
+ import { Bn as n, Gn as r, Hn as i, I as a, Kn as o, Un as s, Wn as c, qn as l } from "./ui-zZYit5Jd.js";
4
4
  import { c as u } from "./tooltip-_geGvbS7.js";
5
- import { E as d, O as f, P as p, j as m, k as h } from "./sheet-B7qGvwk0.js";
6
- import { t as g } from "./ErrorAlert-ZflPwfL1.js";
7
- import { t as _ } from "./GenericForm-BykHqJam.js";
5
+ import { E as d, O as f, P as p, j as m, k as h } from "./sheet-BtfL6yxE.js";
6
+ import { t as g } from "./ErrorAlert-B9xG4dAD.js";
7
+ import { t as _ } from "./GenericForm-DkMp-WFx.js";
8
8
  import { useEffect as v, useId as y, useState as b } from "react";
9
9
  import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
10
10
  import { Pen as w, Save as T, X as E } from "lucide-react";
@@ -1,2 +1,2 @@
1
- import { a as e, c as t, d as n, f as r, h as i, i as a, l as o, m as s, n as c, o as l, p as u, r as d, s as f, t as p, u as m } from "../../behavior-DOkq-VaE.js";
1
+ import { a as e, c as t, d as n, f as r, h as i, i as a, l as o, m as s, n as c, o as l, p as u, r as d, s as f, t as p, u as m } from "../../behavior-B1Zn_N2M.js";
2
2
  export { p as URL_DATE_FORMAT, c as parseDateRange, d as serializeDateRange, u as useConfirmDeleteDialog, s as useConfirmationDialog, r as useDebounce, n as useDebouncedValue, i as useDialog, m as usePage, o as useSidebar, t as useTable, a as useUrlArrayState, e as useUrlDateRangeState, l as useUrlNumberState, f as useUrlState };
@@ -3,9 +3,9 @@ import { n as t, t as n } from "../useToast-UeDRLovh.js";
3
3
  import { t as r } from "../useMobile-pTQ8lWvt.js";
4
4
  import { t as i } from "../useNotifications-CyhTruIG.js";
5
5
  import { n as a, t as o } from "../useFixedColumns-B2yti0Rk.js";
6
- import { t as s } from "../useDocumentTitle-wGdjZMx6.js";
7
- import { t as c } from "../useLanguage-JlBoVxev.js";
8
- import { t as l } from "../ui-B648tEnO.js";
9
- import { t as u } from "../useTheme-DVDPwbQ2.js";
10
- import { a as d, c as f, d as p, f as m, h, i as g, l as _, m as v, n as y, o as b, p as x, r as S, s as C, t as w, u as T } from "../behavior-DOkq-VaE.js";
6
+ import { t as s } from "../useDocumentTitle-Dwdvj0Cq.js";
7
+ import { t as c } from "../useLanguage-COBm8fDW.js";
8
+ import { t as l } from "../ui-pTlOByAk.js";
9
+ import { t as u } from "../useTheme-DnfZqWof.js";
10
+ import { a as d, c as f, d as p, f as m, h, i as g, l as _, m as v, n as y, o as b, p as x, r as S, s as C, t as w, u as T } from "../behavior-B1Zn_N2M.js";
11
11
  export { w as URL_DATE_FORMAT, y as parseDateRange, S as serializeDateRange, n as toast, x as useConfirmDeleteDialog, v as useConfirmationDialog, a as useDataTable, m as useDebounce, p as useDebouncedValue, h as useDialog, s as useDocumentTitle, o as useFixedColumns, c as useLanguage, r as useMobile, i as useNotifications, T as usePage, e as useScrollFade, l as useServerTable, _ as useSidebar, f as useTable, u as useTheme, t as useToast, g as useUrlArrayState, d as useUrlDateRangeState, b as useUrlNumberState, C as useUrlState };
@@ -3,8 +3,8 @@ import { n as t, t as n } from "../../useToast-UeDRLovh.js";
3
3
  import { t as r } from "../../useMobile-pTQ8lWvt.js";
4
4
  import { t as i } from "../../useNotifications-CyhTruIG.js";
5
5
  import { n as a, t as o } from "../../useFixedColumns-B2yti0Rk.js";
6
- import { t as s } from "../../useDocumentTitle-wGdjZMx6.js";
7
- import { t as c } from "../../useLanguage-JlBoVxev.js";
8
- import { t as l } from "../../ui-B648tEnO.js";
9
- import { t as u } from "../../useTheme-DVDPwbQ2.js";
6
+ import { t as s } from "../../useDocumentTitle-Dwdvj0Cq.js";
7
+ import { t as c } from "../../useLanguage-COBm8fDW.js";
8
+ import { t as l } from "../../ui-pTlOByAk.js";
9
+ import { t as u } from "../../useTheme-DnfZqWof.js";
10
10
  export { n as toast, a as useDataTable, s as useDocumentTitle, o as useFixedColumns, c as useLanguage, r as useMobile, i as useNotifications, e as useScrollFade, l as useServerTable, u as useTheme, t as useToast };
@@ -1,2 +1,2 @@
1
- import { a as e, i as t, n, o as r, r as i, t as a } from "../i18n-COxm2IKP.js";
1
+ import { a as e, i as t, n, o as r, r as i, t as a } from "../i18n-BuQgyJAA.js";
2
2
  export { t as KROSOFT_NAMESPACE, n as dateFnsLocale, e as krosoftLocales, r as registerKrosoftLocales, i as useDateFnsLocale, a as useKrosoftTranslation };
@@ -83,9 +83,15 @@ export declare const krosoftLocales: {
83
83
  image: {
84
84
  empty: string;
85
85
  upload: string;
86
+ drop: string;
86
87
  invalidType: string;
87
88
  tooLarge: string;
88
89
  };
90
+ dropzone: {
91
+ title: string;
92
+ hint: string;
93
+ uploading: string;
94
+ };
89
95
  table: {
90
96
  previousPage: string;
91
97
  nextPage: string;
@@ -199,9 +205,15 @@ export declare const krosoftLocales: {
199
205
  image: {
200
206
  empty: string;
201
207
  upload: string;
208
+ drop: string;
202
209
  invalidType: string;
203
210
  tooLarge: string;
204
211
  };
212
+ dropzone: {
213
+ title: string;
214
+ hint: string;
215
+ uploading: string;
216
+ };
205
217
  table: {
206
218
  previousPage: string;
207
219
  nextPage: string;
@@ -1 +1 @@
1
- {"version":3,"file":"krosoftLocales.d.ts","sourceRoot":"","sources":["../../src/i18n/krosoftLocales.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,YAAY,CAAC;AAE3C,8FAA8F;AAC9F,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAa,CAAC;AAEzC,gGAAgG;AAChG,UAAU,QAAQ;IAChB,iBAAiB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO,EAAE,SAAS,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC;IACjH,iBAAiB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC;CAC1D;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,sBAAsB,GAAI,MAAM,QAAQ,EAAE,gBAAuB;IAAE,SAAS,CAAC,EAAE,OAAO,CAAA;CAAO,KAAG,IAM5G,CAAC"}
1
+ {"version":3,"file":"krosoftLocales.d.ts","sourceRoot":"","sources":["../../src/i18n/krosoftLocales.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,YAAY,CAAC;AAE3C,8FAA8F;AAC9F,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAa,CAAC;AAEzC,gGAAgG;AAChG,UAAU,QAAQ;IAChB,iBAAiB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO,EAAE,SAAS,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC;IACjH,iBAAiB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC;CAC1D;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,sBAAsB,GAAI,MAAM,QAAQ,EAAE,gBAAuB;IAAE,SAAS,CAAC,EAAE,OAAO,CAAA;CAAO,KAAG,IAM5G,CAAC"}
@@ -76,10 +76,16 @@ var r = {
76
76
  },
77
77
  image: {
78
78
  empty: "No image",
79
- upload: "Click to upload",
79
+ upload: "Click or drag an image",
80
+ drop: "Drop the image here",
80
81
  invalidType: "Only {{types}} files are accepted",
81
82
  tooLarge: "The file must not exceed {{size}}MB"
82
83
  },
84
+ dropzone: {
85
+ title: "Drag and drop your files here",
86
+ hint: "or click to browse",
87
+ uploading: "Uploading…"
88
+ },
83
89
  table: {
84
90
  previousPage: "Previous page",
85
91
  nextPage: "Next page",
@@ -191,10 +197,16 @@ var r = {
191
197
  },
192
198
  image: {
193
199
  empty: "Aucune image",
194
- upload: "Cliquer pour uploader",
200
+ upload: "Cliquer ou glisser une image",
201
+ drop: "Déposer l'image ici",
195
202
  invalidType: "Seuls les fichiers {{types}} sont acceptés",
196
203
  tooLarge: "Le fichier ne doit pas dépasser {{size}}MB"
197
204
  },
205
+ dropzone: {
206
+ title: "Glissez-déposez vos fichiers ici",
207
+ hint: "ou cliquez pour parcourir",
208
+ uploading: "Envoi en cours…"
209
+ },
198
210
  table: {
199
211
  previousPage: "Page précédente",
200
212
  nextPage: "Page suivante",
@@ -0,0 +1,100 @@
1
+ import { t as e } from "./tailwind.helper-CJaRYBmL.js";
2
+ import { t } from "./i18n-BuQgyJAA.js";
3
+ import "./ImageInput-DY7duXzL.js";
4
+ import "./MultiSelect-CarvTYPT.js";
5
+ import "./SearchInput-CsK3a-58.js";
6
+ import { useRef as n, useState as r } from "react";
7
+ import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
8
+ import { Heart as s, Loader2 as c, Star as l, UploadIcon as u } from "lucide-react";
9
+ //#region src/components/core/inputs/FileDropzone.tsx
10
+ var d = ({ onFiles: s, accept: l, multiple: d = !0, title: f, hint: p, formats: m, uploading: h = !1, uploadingLabel: g, icon: _ = u, className: v }) => {
11
+ let { t: y } = t(), b = n(null), [x, S] = r(!1), C = (e) => {
12
+ let t = Array.from(e ?? []);
13
+ t.length > 0 && s(t);
14
+ };
15
+ return /* @__PURE__ */ o(i, { children: [/* @__PURE__ */ a("input", {
16
+ ref: b,
17
+ type: "file",
18
+ accept: l,
19
+ multiple: d,
20
+ className: "hidden",
21
+ onChange: (e) => {
22
+ C(e.target.files), b.current && (b.current.value = "");
23
+ }
24
+ }), /* @__PURE__ */ a("button", {
25
+ type: "button",
26
+ disabled: h,
27
+ onClick: () => b.current?.click(),
28
+ onDragOver: (e) => {
29
+ h || (e.preventDefault(), e.dataTransfer.dropEffect = "copy", S(!0));
30
+ },
31
+ onDragLeave: () => {
32
+ S(!1);
33
+ },
34
+ onDrop: (e) => {
35
+ e.preventDefault(), e.stopPropagation(), S(!1), !h && C(e.dataTransfer.files);
36
+ },
37
+ className: e("group flex min-h-52 w-full flex-col items-center justify-center gap-3 rounded-xl border-2 border-dashed p-8 text-center transition-colors", h ? "pointer-events-none border-border bg-muted/30 opacity-50" : x ? "border-primary/50 bg-primary/[0.06]" : "border-border bg-muted/30 hover:border-primary/40 hover:bg-primary/[0.03]", v),
38
+ children: h ? /* @__PURE__ */ o("span", {
39
+ className: "flex items-center gap-2 text-sm text-muted-foreground",
40
+ children: [
41
+ /* @__PURE__ */ a(c, { className: "size-5 animate-spin" }),
42
+ " ",
43
+ g ?? y("dropzone.uploading")
44
+ ]
45
+ }) : /* @__PURE__ */ o(i, { children: [/* @__PURE__ */ a("span", {
46
+ className: "flex size-12 items-center justify-center rounded-full bg-primary/15 text-primary transition-transform duration-200 group-hover:scale-110",
47
+ children: /* @__PURE__ */ a(_, {
48
+ className: "size-6",
49
+ strokeWidth: 1.5
50
+ })
51
+ }), /* @__PURE__ */ o("div", {
52
+ className: "space-y-1",
53
+ children: [
54
+ /* @__PURE__ */ a("p", {
55
+ className: "text-sm font-medium text-foreground",
56
+ children: f ?? y("dropzone.title")
57
+ }),
58
+ /* @__PURE__ */ a("p", {
59
+ className: "text-xs text-muted-foreground",
60
+ children: p ?? y("dropzone.hint")
61
+ }),
62
+ m && /* @__PURE__ */ a("p", {
63
+ className: "mt-4 text-[11px] text-muted-foreground",
64
+ children: m
65
+ })
66
+ ]
67
+ })] })
68
+ })] });
69
+ }, f = {
70
+ heart: {
71
+ Icon: s,
72
+ filledClassName: "fill-rose-500 text-rose-500",
73
+ unit: "cœur"
74
+ },
75
+ star: {
76
+ Icon: l,
77
+ filledClassName: "fill-amber-400 text-amber-400",
78
+ unit: "étoile"
79
+ }
80
+ };
81
+ function p({ value: t, onChange: n, max: r = 5, size: i = "md", icon: o = "star", colorClassName: s, className: c }) {
82
+ let { Icon: l, filledClassName: u, unit: d } = f[o], p = !n, m = i === "sm" ? "h-3.5 w-3.5" : "h-5 w-5", h = s ?? u;
83
+ return /* @__PURE__ */ a("div", {
84
+ className: e("flex items-center gap-0.5", c),
85
+ role: p ? "img" : void 0,
86
+ "aria-label": p ? `${t}/${r} ${d}${t > 1 ? "s" : ""}` : void 0,
87
+ children: Array.from({ length: r }, (r, i) => {
88
+ let o = i + 1, s = /* @__PURE__ */ a(l, { className: e(m, o <= t ? h : "text-muted-foreground/40") });
89
+ return p ? /* @__PURE__ */ a("span", { children: s }, o) : /* @__PURE__ */ a("button", {
90
+ type: "button",
91
+ onClick: () => n?.(t === o ? 0 : o),
92
+ "aria-label": `${o} ${d}${o > 1 ? "s" : ""}`,
93
+ className: "leading-none transition-transform hover:scale-110",
94
+ children: s
95
+ }, o);
96
+ })
97
+ });
98
+ }
99
+ //#endregion
100
+ export { d as n, p as t };
@@ -1,7 +1,7 @@
1
- import { t as e } from "./i18n-COxm2IKP.js";
1
+ import { t as e } from "./i18n-BuQgyJAA.js";
2
2
  import { c as t, i as n, n as r, r as i, t as a } from "./tooltip-_geGvbS7.js";
3
3
  import { i as o, l as s, n as c, t as l, u } from "./select-KWMg2_7Z.js";
4
- import { t as d } from "./useLanguage-JlBoVxev.js";
4
+ import { t as d } from "./useLanguage-COBm8fDW.js";
5
5
  import "react";
6
6
  import { jsx as f, jsxs as p } from "react/jsx-runtime";
7
7
  import { LanguagesIcon as m } from "lucide-react";
@@ -1,9 +1,9 @@
1
1
  import { t as e } from "./tailwind.helper-CJaRYBmL.js";
2
- import { t } from "./i18n-COxm2IKP.js";
2
+ import { t } from "./i18n-BuQgyJAA.js";
3
3
  import { c as n, i as r, n as i, r as a, t as o } from "./tooltip-_geGvbS7.js";
4
- import { C as s, S as c, b as l, d as u, g as d, h as f, i as p, l as m, m as h, p as g, r as _, t as v, v as y, x as b, y as x } from "./sheet-B7qGvwk0.js";
4
+ import { C as s, S as c, b as l, d as u, g as d, h as f, i as p, l as m, m as h, p as g, r as _, t as v, v as y, x as b, y as x } from "./sheet-BtfL6yxE.js";
5
5
  import { t as S } from "./skeleton-D6Ga4BLw.js";
6
- import { l as C } from "./behavior-DOkq-VaE.js";
6
+ import { l as C } from "./behavior-B1Zn_N2M.js";
7
7
  import "./hooks/index.js";
8
8
  import * as w from "react";
9
9
  import { Fragment as T, jsx as E, jsxs as D } from "react/jsx-runtime";
package/dist/pwa/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as e } from "../i18n-COxm2IKP.js";
1
+ import { t as e } from "../i18n-BuQgyJAA.js";
2
2
  import { useEffect as t } from "react";
3
3
  import { toast as n } from "sonner";
4
4
  import { useRegisterSW as r } from "virtual:pwa-register/react";
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./tailwind.helper-CJaRYBmL.js";
2
2
  import "./helpers/index.js";
3
- import { t } from "./i18n-COxm2IKP.js";
3
+ import { t } from "./i18n-BuQgyJAA.js";
4
4
  import { a as n } from "./tooltip-_geGvbS7.js";
5
5
  import * as r from "react";
6
6
  import { jsx as i, jsxs as a } from "react/jsx-runtime";
@@ -1,5 +1,5 @@
1
- import { t as e } from "./i18n-COxm2IKP.js";
2
- import "./ErrorAlert-ZflPwfL1.js";
1
+ import { t as e } from "./i18n-BuQgyJAA.js";
2
+ import "./ErrorAlert-B9xG4dAD.js";
3
3
  import { jsx as t, jsxs as n } from "react/jsx-runtime";
4
4
  import { Loader2Icon as r } from "lucide-react";
5
5
  //#region src/components/core/states/ErrorState.tsx
@@ -1,7 +1,7 @@
1
- import { t as e } from "./i18n-COxm2IKP.js";
1
+ import { t as e } from "./i18n-BuQgyJAA.js";
2
2
  import { c as t, i as n, n as r, r as i, t as a } from "./tooltip-_geGvbS7.js";
3
3
  import { i as o, l as s, n as c, t as l, u } from "./select-KWMg2_7Z.js";
4
- import { t as d } from "./useTheme-DVDPwbQ2.js";
4
+ import { t as d } from "./useTheme-DnfZqWof.js";
5
5
  import "react";
6
6
  import { jsx as f, jsxs as p } from "react/jsx-runtime";
7
7
  //#region src/components/core/theme/ThemeSelector.tsx
@@ -3,10 +3,10 @@ import "./useToast-UeDRLovh.js";
3
3
  import "./useMobile-pTQ8lWvt.js";
4
4
  import "./useNotifications-CyhTruIG.js";
5
5
  import "./useFixedColumns-B2yti0Rk.js";
6
- import "./useDocumentTitle-wGdjZMx6.js";
7
- import "./useLanguage-JlBoVxev.js";
6
+ import "./useDocumentTitle-Dwdvj0Cq.js";
7
+ import "./useLanguage-COBm8fDW.js";
8
8
  import "./constants/index.js";
9
- import "./useTheme-DVDPwbQ2.js";
9
+ import "./useTheme-DnfZqWof.js";
10
10
  import { useCallback as e, useEffect as t, useState as n } from "react";
11
11
  //#region src/hooks/ui/useServerTable.ts
12
12
  function r(r, i = "nom", a = {}) {
@@ -3,7 +3,7 @@ import "./helpers/index.js";
3
3
  import "./chart-Dq3AIrue.js";
4
4
  import "./alert-REQGK9bR.js";
5
5
  import { c as t, l as n } from "./tooltip-_geGvbS7.js";
6
- import "./sheet-B7qGvwk0.js";
6
+ import "./sheet-BtfL6yxE.js";
7
7
  import "./select-KWMg2_7Z.js";
8
8
  import "./skeleton-D6Ga4BLw.js";
9
9
  import { t as r } from "./useScrollFade-D9kqJBDh.js";
@@ -1,4 +1,4 @@
1
- import { t as e } from "./i18n-COxm2IKP.js";
1
+ import { t as e } from "./i18n-BuQgyJAA.js";
2
2
  import { useEffect as t } from "react";
3
3
  //#region src/hooks/ui/useDocumentTitle.ts
4
4
  var n = (n, r, i) => {
@@ -1,4 +1,4 @@
1
- import { t as e } from "./i18n-COxm2IKP.js";
1
+ import { t as e } from "./i18n-BuQgyJAA.js";
2
2
  import { t } from "./useNotifications-CyhTruIG.js";
3
3
  import { useTranslation as n } from "react-i18next";
4
4
  //#region src/hooks/ui/useLanguage.ts
@@ -1,4 +1,4 @@
1
- import { t as e } from "./i18n-COxm2IKP.js";
1
+ import { t as e } from "./i18n-BuQgyJAA.js";
2
2
  import { t } from "./useNotifications-CyhTruIG.js";
3
3
  import { useTheme as n } from "next-themes";
4
4
  //#region src/hooks/ui/useTheme.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@krosoft/react",
3
- "version": "0.0.317",
3
+ "version": "0.0.319",
4
4
  "description": "Krosoft shared React package",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -1,80 +0,0 @@
1
- import { t as e } from "./tailwind.helper-CJaRYBmL.js";
2
- import { t } from "./i18n-COxm2IKP.js";
3
- import "./ui-BFLRtp53.js";
4
- import { c as n } from "./tooltip-_geGvbS7.js";
5
- import { t as r } from "./useNotifications-CyhTruIG.js";
6
- import { forwardRef as i, useRef as a } from "react";
7
- import { jsx as o, jsxs as s } from "react/jsx-runtime";
8
- import { ImageIcon as c, UploadIcon as l, XIcon as u } from "lucide-react";
9
- //#region src/components/core/inputs/ImageInput.tsx
10
- var d = i(({ value: i, onChange: d, accept: f = "image/jpeg,image/png,image/webp", maxSizeMB: p = 2, disabled: m = !1, className: h = "", hint: g = "JPG, PNG, WEBP" }, _) => {
11
- let { t: v } = t(), { showError: y } = r(), b = a(null);
12
- return /* @__PURE__ */ o("div", {
13
- ref: _,
14
- className: h,
15
- children: i ? /* @__PURE__ */ s("div", {
16
- className: "relative w-32 h-32 rounded-surface overflow-hidden border-2 border-border",
17
- children: [/* @__PURE__ */ o("img", {
18
- src: i,
19
- alt: "Preview",
20
- className: "w-full h-full object-cover"
21
- }), !m && /* @__PURE__ */ o(n, {
22
- type: "button",
23
- variant: "destructive",
24
- size: "sm",
25
- className: "absolute top-1 right-1 h-6 w-6 p-0",
26
- onClick: () => {
27
- d(null);
28
- },
29
- children: /* @__PURE__ */ o(u, { className: "h-4 w-4" })
30
- })]
31
- }) : m ? /* @__PURE__ */ s("div", {
32
- className: e("flex flex-col items-center justify-center w-full h-32", "border-2 border-dashed border-border rounded-surface", "bg-muted/30"),
33
- children: [/* @__PURE__ */ o(c, { className: "h-8 w-8 text-muted-foreground/50 mb-2" }), /* @__PURE__ */ o("span", {
34
- className: "text-sm text-muted-foreground/50",
35
- children: v("image.empty")
36
- })]
37
- }) : /* @__PURE__ */ s("label", {
38
- className: e("flex flex-col items-center justify-center w-full h-32", "border-2 border-dashed border-border rounded-surface", "cursor-pointer hover:bg-muted/50 transition-colors"),
39
- children: [
40
- /* @__PURE__ */ o(l, { className: "h-8 w-8 text-muted-foreground mb-2" }),
41
- /* @__PURE__ */ o("span", {
42
- className: "text-sm text-muted-foreground",
43
- children: v("image.upload")
44
- }),
45
- /* @__PURE__ */ s("span", {
46
- className: "text-xs text-muted-foreground mt-1",
47
- children: [
48
- g,
49
- " (max ",
50
- p,
51
- "MB)"
52
- ]
53
- }),
54
- /* @__PURE__ */ o("input", {
55
- ref: b,
56
- type: "file",
57
- className: "hidden",
58
- accept: f,
59
- onChange: (e) => {
60
- let t = e.target.files?.[0];
61
- if (t) {
62
- if (!f.split(",").map((e) => e.trim()).includes(t.type)) {
63
- y(v("states.errorTitle"), v("image.invalidType", { types: g })), b.current && (b.current.value = "");
64
- return;
65
- }
66
- if (t.size > p * 1024 * 1024) {
67
- y(v("states.errorTitle"), v("image.tooLarge", { size: p })), b.current && (b.current.value = "");
68
- return;
69
- }
70
- d(t), b.current && (b.current.value = "");
71
- }
72
- }
73
- })
74
- ]
75
- })
76
- });
77
- });
78
- d.displayName = "ImageInput";
79
- //#endregion
80
- export { d as t };
@@ -1,39 +0,0 @@
1
- import { t as e } from "./tailwind.helper-CJaRYBmL.js";
2
- import "./ImageInput-C2j-GOpn.js";
3
- import "./MultiSelect-BlsLVGLX.js";
4
- import "./SearchInput-CI_OoJwu.js";
5
- import { jsx as t } from "react/jsx-runtime";
6
- import { Heart as n, Star as r } from "lucide-react";
7
- //#region src/components/core/inputs/RatingInput.tsx
8
- var i = {
9
- heart: {
10
- Icon: n,
11
- filledClassName: "fill-rose-500 text-rose-500",
12
- unit: "cœur"
13
- },
14
- star: {
15
- Icon: r,
16
- filledClassName: "fill-amber-400 text-amber-400",
17
- unit: "étoile"
18
- }
19
- };
20
- function a({ value: n, onChange: r, max: a = 5, size: o = "md", icon: s = "star", colorClassName: c, className: l }) {
21
- let { Icon: u, filledClassName: d, unit: f } = i[s], p = !r, m = o === "sm" ? "h-3.5 w-3.5" : "h-5 w-5", h = c ?? d;
22
- return /* @__PURE__ */ t("div", {
23
- className: e("flex items-center gap-0.5", l),
24
- role: p ? "img" : void 0,
25
- "aria-label": p ? `${n}/${a} ${f}${n > 1 ? "s" : ""}` : void 0,
26
- children: Array.from({ length: a }, (i, a) => {
27
- let o = a + 1, s = /* @__PURE__ */ t(u, { className: e(m, o <= n ? h : "text-muted-foreground/40") });
28
- return p ? /* @__PURE__ */ t("span", { children: s }, o) : /* @__PURE__ */ t("button", {
29
- type: "button",
30
- onClick: () => r?.(n === o ? 0 : o),
31
- "aria-label": `${o} ${f}${o > 1 ? "s" : ""}`,
32
- className: "leading-none transition-transform hover:scale-110",
33
- children: s
34
- }, o);
35
- })
36
- });
37
- }
38
- //#endregion
39
- export { a as t };