@krosoft/react 0.0.223 → 0.0.225

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 (52) hide show
  1. package/dist/{AppActions-BSJrimRT.js → AppActions-QHJ6CP5w.js} +1 -1
  2. package/dist/{AppSubTitle-Equl_f9z.js → AppSubTitle-BlwAxtMX.js} +1 -1
  3. package/dist/{AppVerticalTabs-BFq6RKPC.js → AppVerticalTabs-C6MH4a0M.js} +31 -30
  4. package/dist/{ConfirmationDialog-DN6GePo-.js → ConfirmationDialog-CK65nSle.js} +10 -9
  5. package/dist/{DataTable-NyRTdROD.js → DataTable-DSrsTb_t.js} +6 -4
  6. package/dist/{ErrorAlert-BKC2JjNf.js → ErrorAlert-BIQ2Te6B.js} +5 -3
  7. package/dist/{ErrorState-C8pd098n.js → ErrorState-ZtWe5C0s.js} +8 -6
  8. package/dist/{GenericForm-BKePZqqI.js → GenericForm-B7L7NkrE.js} +34 -33
  9. package/dist/{ImageInput-BkmK7odp.js → ImageInput-CBDkCEho.js} +9 -7
  10. package/dist/{KpiCardsLayout-D44vxMHX.js → KpiCardsLayout-CUDfA-AP.js} +13 -12
  11. package/dist/{MultiSelect-D0WF96y6.js → MultiSelect-DWNOCqe1.js} +6 -4
  12. package/dist/{PieChart-DvJ9D4dB.js → PieChart-gP2QNrAQ.js} +50 -48
  13. package/dist/{SearchInput-pnwtB4jO.js → SearchInput-Y-iBtCCc.js} +95 -93
  14. package/dist/{SkeletonCards-DhsZyG9k.js → SkeletonCards-CQKcSQW3.js} +1 -1
  15. package/dist/{TableFilter-DXPRe6iE.js → TableFilter-CJrFjUod.js} +8 -6
  16. package/dist/{ThemeSelector-sn3tI4F7.js → ThemeSelector-BtQNjlYA.js} +15 -13
  17. package/dist/{Topbar-BkP4V9zD.js → Topbar-DYim779_.js} +12 -11
  18. package/dist/components/core/cards/index.js +1 -1
  19. package/dist/components/core/charts/index.js +1 -1
  20. package/dist/components/core/dialogs/index.js +2 -2
  21. package/dist/components/core/filters/index.js +1 -1
  22. package/dist/components/core/forms/index.js +1 -1
  23. package/dist/components/core/index.js +18 -18
  24. package/dist/components/core/inputs/DatePicker.d.ts.map +1 -1
  25. package/dist/components/core/inputs/DateRangePicker.d.ts.map +1 -1
  26. package/dist/components/core/inputs/index.js +3 -3
  27. package/dist/components/core/layouts/index.js +3 -3
  28. package/dist/components/core/navbar/index.js +1 -1
  29. package/dist/components/core/states/index.js +2 -2
  30. package/dist/components/core/table/index.js +1 -1
  31. package/dist/components/core/tabs/index.js +1 -1
  32. package/dist/components/core/theme/index.js +1 -1
  33. package/dist/components/index.js +18 -18
  34. package/dist/components/ui/index.js +1 -1
  35. package/dist/hooks/behavior/index.js +1 -1
  36. package/dist/hooks/index.js +2 -2
  37. package/dist/hooks/ui/index.js +1 -1
  38. package/dist/i18n/index.d.ts +1 -0
  39. package/dist/i18n/index.d.ts.map +1 -1
  40. package/dist/i18n/index.js +7 -4
  41. package/dist/i18n/krosoftLocales.d.ts +4 -0
  42. package/dist/i18n/krosoftLocales.d.ts.map +1 -1
  43. package/dist/i18n/useDateFnsLocale.d.ts +11 -0
  44. package/dist/i18n/useDateFnsLocale.d.ts.map +1 -0
  45. package/dist/providers/index.js +7 -6
  46. package/dist/{sheet-C_39QrG0.js → sheet-tuC_C3M3.js} +12 -10
  47. package/dist/useDateFnsLocale-C4oFFUWO.js +11 -0
  48. package/dist/useKrosoftTranslation-DtdbUewZ.js +43 -0
  49. package/dist/{usePage-C5RL0-WN.js → usePage-D3WXYmjl.js} +9 -7
  50. package/dist/{useTheme-CJVjqtt2.js → useTheme-DyeQyPDL.js} +8 -6
  51. package/package.json +2 -1
  52. package/dist/useKrosoftTranslation-C6AC_uCA.js +0 -43
@@ -1,10 +1,12 @@
1
1
  import { jsx as a, jsxs as l } from "react/jsx-runtime";
2
- import { u as h } from "./useKrosoftTranslation-C6AC_uCA.js";
2
+ import "date-fns/locale";
3
+ import "react-i18next";
4
+ import { u as h } from "./useKrosoftTranslation-DtdbUewZ.js";
3
5
  import { b as u, T as g, c as f, B as v, a as b } from "./tooltip-DVeqVwqV.js";
4
- import { S as N, h as T, i as x, a as C, c as S } from "./select-BpjFWqAY.js";
5
- import { u as p } from "./useTheme-CJVjqtt2.js";
6
- function P({ themeOptions: c, variant: t = "select" }) {
7
- const { t: o } = h(), { theme: i, handleThemeChange: n, currentThemeOption: e, nextThemeOption: r, cycleTheme: d } = p(c);
6
+ import { S as p, h as N, i as T, a as x, c as C } from "./select-BpjFWqAY.js";
7
+ import { u as S } from "./useTheme-DyeQyPDL.js";
8
+ function k({ themeOptions: c, variant: t = "select" }) {
9
+ const { t: o } = h(), { theme: i, handleThemeChange: n, currentThemeOption: e, nextThemeOption: r, cycleTheme: m } = S(c);
8
10
  if (t === "mini") {
9
11
  const s = e == null ? void 0 : e.icon;
10
12
  return /* @__PURE__ */ a(u, { children: /* @__PURE__ */ l(g, { children: [
@@ -13,7 +15,7 @@ function P({ themeOptions: c, variant: t = "select" }) {
13
15
  {
14
16
  variant: "ghost",
15
17
  size: "icon",
16
- onClick: d,
18
+ onClick: m,
17
19
  className: "text-sidebar-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
18
20
  children: [
19
21
  s && /* @__PURE__ */ a(s, { className: "size-4" }),
@@ -31,12 +33,12 @@ function P({ themeOptions: c, variant: t = "select" }) {
31
33
  ] }) });
32
34
  }
33
35
  return /* @__PURE__ */ l("div", { className: "space-y-2", children: [
34
- /* @__PURE__ */ l(N, { value: i, onValueChange: n, children: [
35
- /* @__PURE__ */ a(T, { className: "w-full", children: /* @__PURE__ */ a(x, { placeholder: o("select.theme") }) }),
36
- /* @__PURE__ */ a(C, { children: c.map((s) => {
37
- const m = s.icon;
38
- return /* @__PURE__ */ a(S, { value: s.value, children: /* @__PURE__ */ l("div", { className: "flex items-center gap-2", children: [
39
- /* @__PURE__ */ a(m, { className: "size-4" }),
36
+ /* @__PURE__ */ l(p, { value: i, onValueChange: n, children: [
37
+ /* @__PURE__ */ a(N, { className: "w-full", children: /* @__PURE__ */ a(T, { placeholder: o("select.theme") }) }),
38
+ /* @__PURE__ */ a(x, { children: c.map((s) => {
39
+ const d = s.icon;
40
+ return /* @__PURE__ */ a(C, { value: s.value, children: /* @__PURE__ */ l("div", { className: "flex items-center gap-2", children: [
41
+ /* @__PURE__ */ a(d, { className: "size-4" }),
40
42
  s.label
41
43
  ] }) }, s.value);
42
44
  }) })
@@ -45,5 +47,5 @@ function P({ themeOptions: c, variant: t = "select" }) {
45
47
  ] });
46
48
  }
47
49
  export {
48
- P as T
50
+ k as T
49
51
  };
@@ -1,16 +1,17 @@
1
1
  import { jsxs as i, Fragment as $, jsx as e } from "react/jsx-runtime";
2
- import { u as G } from "./useKrosoftTranslation-C6AC_uCA.js";
2
+ import "date-fns/locale";
3
+ import "react-i18next";
4
+ import { u as G } from "./useKrosoftTranslation-DtdbUewZ.js";
3
5
  import * as A from "react";
4
6
  import { SearchIcon as W, LoaderCircleIcon as F, ChevronDownIcon as M, MenuIcon as Q } from "lucide-react";
5
7
  import { c as o } from "./tailwind.helper-B6yFEsav.js";
6
8
  import { B as R, T as q, c as H, a as U, b as V } from "./tooltip-DVeqVwqV.js";
7
- import { j as _, m as J, o as X, k as Y, l as Z, n as P, I, S as ee, s as re, y as ae, t as te } from "./sheet-C_39QrG0.js";
9
+ import { j as _, m as J, o as X, k as Y, l as Z, n as P, I, S as ee, s as re, y as ae, t as te } from "./sheet-tuC_C3M3.js";
8
10
  import "./sidebar.context-D5nywlmP.js";
9
11
  import { u as B } from "./useSidebar-BJuALHqQ.js";
10
- import "react-i18next";
11
12
  import "next-themes";
12
13
  import { S as E } from "./skeleton-BX4RcsiK.js";
13
- const be = ({
14
+ const ue = ({
14
15
  groups: t,
15
16
  search: m,
16
17
  onSearch: f,
@@ -198,7 +199,7 @@ const be = ({
198
199
  }
199
200
  )
200
201
  ] });
201
- }, ue = ({ groups: t, currentPath: m, onItemClick: f, slots: l, search: a, dense: n = !1, loading: c = !1 }) => {
202
+ }, ge = ({ groups: t, currentPath: m, onItemClick: f, slots: l, search: a, dense: n = !1, loading: c = !1 }) => {
202
203
  const { t: p } = G(), { enabled: g = !1, placeholder: u } = a ?? {}, { header: y, footer: S } = l ?? {}, { collapsed: z, isMobile: C, setCollapsed: T } = B(), [D, K] = A.useState(""), x = C ? !1 : z, b = !z, j = (r) => {
203
204
  f(r), C && T(!0);
204
205
  }, s = D.trim().toLowerCase(), w = s === "" ? t : t.map((r) => ({
@@ -266,7 +267,7 @@ const be = ({
266
267
  children: v
267
268
  }
268
269
  ) });
269
- }, ge = ({
270
+ }, ve = ({
270
271
  name: t = "appname",
271
272
  subName: m = "appsubname",
272
273
  // eslint-disable-next-line @typescript-eslint/naming-convention
@@ -281,7 +282,7 @@ const be = ({
281
282
  /* @__PURE__ */ e("span", { className: o("text-sidebar-muted font-medium", l ? "text-[11px]" : "text-xs"), children: m })
282
283
  ] })
283
284
  ] });
284
- }, ve = ({ collapsed: t, isMobile: m, onToggleSidebar: f, actionsNode: l, userMenuNode: a }) => /* @__PURE__ */ i(
285
+ }, Ne = ({ collapsed: t, isMobile: m, onToggleSidebar: f, actionsNode: l, userMenuNode: a }) => /* @__PURE__ */ i(
285
286
  "header",
286
287
  {
287
288
  className: o(
@@ -310,9 +311,9 @@ const be = ({
310
311
  }
311
312
  );
312
313
  export {
313
- be as G,
314
- ue as S,
315
- ve as T,
316
- ge as a,
314
+ ue as G,
315
+ ge as S,
316
+ Ne as T,
317
+ ve as a,
317
318
  se as b
318
319
  };
@@ -1,5 +1,5 @@
1
1
  import { D as s, M as d } from "../../../MetricCard-B0xnFyim.js";
2
- import { K as o, a as C, S as t, b as p } from "../../../SkeletonCards-DhsZyG9k.js";
2
+ import { K as o, a as C, S as t, b as p } from "../../../SkeletonCards-CQKcSQW3.js";
3
3
  export {
4
4
  s as DashboardCard,
5
5
  o as KpiCard,
@@ -1,4 +1,4 @@
1
- import { B as C, a as t, C as s, b as e, c as h, L as o, P as i, g as l } from "../../../PieChart-DvJ9D4dB.js";
1
+ import { B as C, a as t, C as s, b as e, c as h, L as o, P as i, g as l } from "../../../PieChart-gP2QNrAQ.js";
2
2
  export {
3
3
  C as BarChartHorizontal,
4
4
  t as BarChartVertical,
@@ -1,5 +1,5 @@
1
- import { A as i, C as s, F as g } from "../../../ConfirmationDialog-DN6GePo-.js";
2
- import { D as r, a as D, b as e, c as t, d as p, e as f, f as m, g as n, h as C, i as x } from "../../../sheet-C_39QrG0.js";
1
+ import { A as i, C as s, F as g } from "../../../ConfirmationDialog-CK65nSle.js";
2
+ import { D as r, a as D, b as e, c as t, d as p, e as f, f as m, g as n, h as C, i as x } from "../../../sheet-tuC_C3M3.js";
3
3
  import { P } from "../../../toggle-group-DLLrEwv2.js";
4
4
  export {
5
5
  i as AppDialog,
@@ -1,4 +1,4 @@
1
- import { A as l, a as i, F as r, S as s, T as t } from "../../../TableFilter-DXPRe6iE.js";
1
+ import { A as l, a as i, F as r, S as s, T as t } from "../../../TableFilter-CJrFjUod.js";
2
2
  export {
3
3
  l as ActiveFilters,
4
4
  i as AdvancedFilters,
@@ -1,4 +1,4 @@
1
- import { G as o } from "../../../GenericForm-BKePZqqI.js";
1
+ import { G as o } from "../../../GenericForm-B7L7NkrE.js";
2
2
  export {
3
3
  o as GenericForm
4
4
  };
@@ -1,25 +1,25 @@
1
1
  import { D as e, M as o } from "../../MetricCard-B0xnFyim.js";
2
- import { K as t, a as i, S as l, b as p } from "../../SkeletonCards-DhsZyG9k.js";
3
- import { B as m, a as g, C as c, b as d, c as f, L as C, P as n, g as A } from "../../PieChart-DvJ9D4dB.js";
4
- import { A as x, C as D, F as S } from "../../ConfirmationDialog-DN6GePo-.js";
5
- import { D as F, a as P, b as u, c as H, d as L, e as k, f as B, g as G, h as I, i as K } from "../../sheet-C_39QrG0.js";
2
+ import { K as t, a as i, S as l, b as p } from "../../SkeletonCards-CQKcSQW3.js";
3
+ import { B as m, a as g, C as c, b as d, c as f, L as C, P as n, g as A } from "../../PieChart-gP2QNrAQ.js";
4
+ import { A as x, C as D, F as S } from "../../ConfirmationDialog-CK65nSle.js";
5
+ import { D as F, a as P, b as u, c as H, d as L, e as k, f as B, g as G, h as I, i as K } from "../../sheet-tuC_C3M3.js";
6
6
  import { P as E } from "../../toggle-group-DLLrEwv2.js";
7
- import { A as y, a as O, F as R, S as V, T as z } from "../../TableFilter-DXPRe6iE.js";
8
- import { G as _ } from "../../GenericForm-BKePZqqI.js";
9
- import { I as q } from "../../ImageInput-BkmK7odp.js";
10
- import { D as J, a as Q, S as U, b as W } from "../../SearchInput-pnwtB4jO.js";
11
- import { M as Y } from "../../MultiSelect-D0WF96y6.js";
12
- import { A as $ } from "../../AppActions-BSJrimRT.js";
13
- import { A as ra, K as ea } from "../../KpiCardsLayout-D44vxMHX.js";
14
- import { A as sa } from "../../AppSubTitle-Equl_f9z.js";
7
+ import { A as y, a as O, F as R, S as V, T as z } from "../../TableFilter-CJrFjUod.js";
8
+ import { G as _ } from "../../GenericForm-B7L7NkrE.js";
9
+ import { I as q } from "../../ImageInput-CBDkCEho.js";
10
+ import { D as J, a as Q, S as U, b as W } from "../../SearchInput-Y-iBtCCc.js";
11
+ import { M as Y } from "../../MultiSelect-DWNOCqe1.js";
12
+ import { A as $ } from "../../AppActions-QHJ6CP5w.js";
13
+ import { A as ra, K as ea } from "../../KpiCardsLayout-CUDfA-AP.js";
14
+ import { A as sa } from "../../AppSubTitle-BlwAxtMX.js";
15
15
  import { A as ia } from "../../AppTitle-D15YXeMx.js";
16
- import { G as pa, S as ba, a as ma, b as ga, T as ca } from "../../Topbar-BkP4V9zD.js";
17
- import { E as fa } from "../../ErrorAlert-BKC2JjNf.js";
18
- import { E as na } from "../../ErrorState-C8pd098n.js";
16
+ import { G as pa, S as ba, a as ma, b as ga, T as ca } from "../../Topbar-DYim779_.js";
17
+ import { E as fa } from "../../ErrorAlert-BIQ2Te6B.js";
18
+ import { E as na } from "../../ErrorState-ZtWe5C0s.js";
19
19
  import { L as Ta } from "../../LoadingState-BN0YaPSs.js";
20
- import { D as Da, T as Sa, a as ha, b as Fa, c as Pa, d as ua, e as Ha } from "../../DataTable-NyRTdROD.js";
21
- import { A as ka, a as Ba, b as Ga, c as Ia } from "../../AppVerticalTabs-BFq6RKPC.js";
22
- import { T as va } from "../../ThemeSelector-sn3tI4F7.js";
20
+ import { D as Da, T as Sa, a as ha, b as Fa, c as Pa, d as ua, e as Ha } from "../../DataTable-DSrsTb_t.js";
21
+ import { A as ka, a as Ba, b as Ga, c as Ia } from "../../AppVerticalTabs-C6MH4a0M.js";
22
+ import { T as va } from "../../ThemeSelector-BtQNjlYA.js";
23
23
  export {
24
24
  y as ActiveFilters,
25
25
  O as AdvancedFilters,
@@ -1 +1 @@
1
- {"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../../src/components/core/inputs/DatePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAO3D,UAAU,eAAe;IACvB,IAAI,EAAE,IAAI,GAAG,SAAS,CAAC;IACvB,YAAY,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG,SAAS,KAAK,IAAI,CAAC;IAC/C,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,UAAU,GAAI,qCAAqC,eAAe,KAAG,KAAK,CAAC,YAkDvF,CAAC"}
1
+ {"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../../src/components/core/inputs/DatePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAO3D,UAAU,eAAe;IACvB,IAAI,EAAE,IAAI,GAAG,SAAS,CAAC;IACvB,YAAY,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG,SAAS,KAAK,IAAI,CAAC;IAC/C,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,UAAU,GAAI,qCAAqC,eAAe,KAAG,KAAK,CAAC,YAmDvF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"DateRangePicker.d.ts","sourceRoot":"","sources":["../../../../src/components/core/inputs/DateRangePicker.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAElD,UAAU,oBAAoB;IAC5B,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAE,SAAS,KAAK,IAAI,CAAC;IACtC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,eAAe,GAAI,6CAA6C,oBAAoB,sBAyFhG,CAAC"}
1
+ {"version":3,"file":"DateRangePicker.d.ts","sourceRoot":"","sources":["../../../../src/components/core/inputs/DateRangePicker.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAElD,UAAU,oBAAoB;IAC5B,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAE,SAAS,KAAK,IAAI,CAAC;IACtC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,eAAe,GAAI,6CAA6C,oBAAoB,sBA0FhG,CAAC"}
@@ -1,6 +1,6 @@
1
- import { I as r } from "../../../ImageInput-BkmK7odp.js";
2
- import { D as c, a as o, S as s, b as p } from "../../../SearchInput-pnwtB4jO.js";
3
- import { M as l } from "../../../MultiSelect-D0WF96y6.js";
1
+ import { I as r } from "../../../ImageInput-CBDkCEho.js";
2
+ import { D as c, a as o, S as s, b as p } from "../../../SearchInput-Y-iBtCCc.js";
3
+ import { M as l } from "../../../MultiSelect-DWNOCqe1.js";
4
4
  export {
5
5
  c as DatePicker,
6
6
  o as DateRangePicker,
@@ -1,6 +1,6 @@
1
- import { A as r } from "../../../AppActions-BSJrimRT.js";
2
- import { A as e, K as A } from "../../../KpiCardsLayout-D44vxMHX.js";
3
- import { A as s } from "../../../AppSubTitle-Equl_f9z.js";
1
+ import { A as r } from "../../../AppActions-QHJ6CP5w.js";
2
+ import { A as e, K as A } from "../../../KpiCardsLayout-CUDfA-AP.js";
3
+ import { A as s } from "../../../AppSubTitle-BlwAxtMX.js";
4
4
  import { A as i } from "../../../AppTitle-D15YXeMx.js";
5
5
  export {
6
6
  r as AppActions,
@@ -1,4 +1,4 @@
1
- import { G as r, S as b, a as s, b as S, T as d } from "../../../Topbar-BkP4V9zD.js";
1
+ import { G as r, S as b, a as s, b as S, T as d } from "../../../Topbar-DYim779_.js";
2
2
  export {
3
3
  r as GlobalSearch,
4
4
  b as Sidebar,
@@ -1,5 +1,5 @@
1
- import { E as t } from "../../../ErrorAlert-BKC2JjNf.js";
2
- import { E as e } from "../../../ErrorState-C8pd098n.js";
1
+ import { E as t } from "../../../ErrorAlert-BIQ2Te6B.js";
2
+ import { E as e } from "../../../ErrorState-ZtWe5C0s.js";
3
3
  import { L as f } from "../../../LoadingState-BN0YaPSs.js";
4
4
  export {
5
5
  t as ErrorAlert,
@@ -1,4 +1,4 @@
1
- import { D as s, T as b, a as l, b as T, c as t, d as o, e as i } from "../../../DataTable-NyRTdROD.js";
1
+ import { D as s, T as b, a as l, b as T, c as t, d as o, e as i } from "../../../DataTable-DSrsTb_t.js";
2
2
  export {
3
3
  s as DataTable,
4
4
  b as TableActions,
@@ -1,4 +1,4 @@
1
- import { A as s, a as b, b as e, c as r } from "../../../AppVerticalTabs-BFq6RKPC.js";
1
+ import { A as s, a as b, b as e, c as r } from "../../../AppVerticalTabs-C6MH4a0M.js";
2
2
  export {
3
3
  s as AppTabContainer,
4
4
  b as AppTabHeader,
@@ -1,4 +1,4 @@
1
- import { T as r } from "../../../ThemeSelector-sn3tI4F7.js";
1
+ import { T as r } from "../../../ThemeSelector-BtQNjlYA.js";
2
2
  export {
3
3
  r as ThemeSelector
4
4
  };
@@ -1,25 +1,25 @@
1
1
  import { D as r, M as o } from "../MetricCard-B0xnFyim.js";
2
- import { K as t, a as n, S as i, b as l } from "../SkeletonCards-DhsZyG9k.js";
3
- import { B as p, a as u, C, b as g, c as d, L as m, P as S, g as T } from "../PieChart-DvJ9D4dB.js";
4
- import { A as D, C as M, F as x } from "../ConfirmationDialog-DN6GePo-.js";
5
- import { C as h, j as f, k as P, l as I, m as w, n as v, o as F, p as L, q as B, D as G, a as k, b as H, c as R, d as y, e as N, f as O, g as V, h as E, i as z, I as K, S as j, r as q, s as U, t as _, u as J, v as Q, w as W, x as X, y as Y, z as Z } from "../sheet-C_39QrG0.js";
2
+ import { K as t, a as n, S as i, b as l } from "../SkeletonCards-CQKcSQW3.js";
3
+ import { B as p, a as u, C, b as g, c as d, L as m, P as S, g as T } from "../PieChart-gP2QNrAQ.js";
4
+ import { A as D, C as M, F as x } from "../ConfirmationDialog-CK65nSle.js";
5
+ import { C as h, j as f, k as P, l as I, m as w, n as v, o as F, p as L, q as B, D as G, a as k, b as H, c as R, d as y, e as N, f as O, g as V, h as E, i as z, I as K, S as j, r as q, s as U, t as _, u as J, v as Q, w as W, x as X, y as Y, z as Z } from "../sheet-tuC_C3M3.js";
6
6
  import { A as aa, a as ea, b as ra, c as oa, d as sa, e as ta, f as na, g as ia, h as la, i as ba, j as pa, k as ua, l as Ca, m as ga, n as da, o as ma, B as Sa, p as Ta, q as ca, r as Da, s as Ma, t as xa, u as Aa, v as ha, C as fa, w as Pa, x as Ia, y as wa, z as va, D as Fa, E as La, F as Ba, G as Ga, H as ka, I as Ha, J as Ra, K as ya, L as Na, M as Oa, N as Va, O as Ea, Q as za, R as Ka, S as ja, T as qa, U as Ua, V as _a, W as Ja, X as Qa, Y as Wa, Z as Xa, _ as Ya, $ as Za, a0 as $a, a1 as ae, a2 as ee, a3 as re, a4 as oe, a5 as se, a6 as te, a7 as ne, a8 as ie, a9 as le, aa as be, ab as pe, ac as ue, ad as Ce, ae as ge, af as de, ag as me, ah as Se, ai as Te, aj as ce, ak as De, al as Me, am as xe, an as Ae, ao as he, ap as fe, aq as Pe, ar as Ie, as as we, at as ve, au as Fe, av as Le, aw as Be, ax as Ge, ay as ke, az as He, aA as Re, aB as ye, aC as Ne, aD as Oe, aE as Ve, aF as Ee, aG as ze, aH as Ke, aI as je, aJ as qe, aK as Ue, aL as _e, aM as Je, aN as Qe, aO as We, aP as Xe, aQ as Ye, aR as Ze, aS as $e, aT as ar, aU as er, aV as rr, aW as or, aX as sr, aY as tr, aZ as nr, a_ as ir, a$ as lr, b0 as br, b1 as pr, b2 as ur, P as Cr, b3 as gr, b4 as dr, b5 as mr, b6 as Sr, b7 as Tr, b8 as cr, b9 as Dr, ba as Mr, bb as xr, bc as Ar, bd as hr, be as fr, bf as Pr, bg as Ir, bh as wr, bi as vr, bj as Fr, bk as Lr, bl as Br, bm as Gr, bn as kr, bo as Hr, bp as Rr, bq as yr, br as Nr, bs as Or, bt as Vr, bu as Er, bv as zr, bw as Kr, bx as jr, by as qr, bz as Ur, bA as _r } from "../toggle-group-DLLrEwv2.js";
7
- import { A as Qr, a as Wr, F as Xr, S as Yr, T as Zr } from "../TableFilter-DXPRe6iE.js";
8
- import { G as ao } from "../GenericForm-BKePZqqI.js";
9
- import { I as ro } from "../ImageInput-BkmK7odp.js";
10
- import { D as so, a as to, S as no, b as io } from "../SearchInput-pnwtB4jO.js";
11
- import { M as bo } from "../MultiSelect-D0WF96y6.js";
12
- import { A as uo } from "../AppActions-BSJrimRT.js";
13
- import { A as go, K as mo } from "../KpiCardsLayout-D44vxMHX.js";
14
- import { A as To } from "../AppSubTitle-Equl_f9z.js";
7
+ import { A as Qr, a as Wr, F as Xr, S as Yr, T as Zr } from "../TableFilter-CJrFjUod.js";
8
+ import { G as ao } from "../GenericForm-B7L7NkrE.js";
9
+ import { I as ro } from "../ImageInput-CBDkCEho.js";
10
+ import { D as so, a as to, S as no, b as io } from "../SearchInput-Y-iBtCCc.js";
11
+ import { M as bo } from "../MultiSelect-DWNOCqe1.js";
12
+ import { A as uo } from "../AppActions-QHJ6CP5w.js";
13
+ import { A as go, K as mo } from "../KpiCardsLayout-CUDfA-AP.js";
14
+ import { A as To } from "../AppSubTitle-BlwAxtMX.js";
15
15
  import { A as Do } from "../AppTitle-D15YXeMx.js";
16
- import { G as xo, S as Ao, a as ho, b as fo, T as Po } from "../Topbar-BkP4V9zD.js";
17
- import { E as wo } from "../ErrorAlert-BKC2JjNf.js";
18
- import { E as Fo } from "../ErrorState-C8pd098n.js";
16
+ import { G as xo, S as Ao, a as ho, b as fo, T as Po } from "../Topbar-DYim779_.js";
17
+ import { E as wo } from "../ErrorAlert-BIQ2Te6B.js";
18
+ import { E as Fo } from "../ErrorState-ZtWe5C0s.js";
19
19
  import { L as Bo } from "../LoadingState-BN0YaPSs.js";
20
- import { D as ko, T as Ho, a as Ro, b as yo, c as No, d as Oo, e as Vo } from "../DataTable-NyRTdROD.js";
21
- import { A as zo, a as Ko, b as jo, c as qo } from "../AppVerticalTabs-BFq6RKPC.js";
22
- import { T as _o } from "../ThemeSelector-sn3tI4F7.js";
20
+ import { D as ko, T as Ho, a as Ro, b as yo, c as No, d as Oo, e as Vo } from "../DataTable-DSrsTb_t.js";
21
+ import { A as zo, a as Ko, b as jo, c as qo } from "../AppVerticalTabs-C6MH4a0M.js";
22
+ import { T as _o } from "../ThemeSelector-BtQNjlYA.js";
23
23
  import { A as Qo, a as Wo, b as Xo } from "../alert-B9F1N9Qk.js";
24
24
  import { A as Zo, C as $o, a as as, b as es, R as rs, c as os, d as ss, T as ts, e as ns } from "../toaster-B1J0puB_.js";
25
25
  import { B as ls, T as bs, a as ps, b as us, c as Cs, d as gs, e as ds, f as ms } from "../tooltip-DVeqVwqV.js";
@@ -3,7 +3,7 @@ import { A as Ye, a as Ze, b as _e } from "../../alert-B9F1N9Qk.js";
3
3
  import { A as ao, C as eo, a as oo, b as so, R as ro, c as to, d as no, T as io, e as lo } from "../../toaster-B1J0puB_.js";
4
4
  import { B as bo, T as go, a as po, b as Co, c as mo, d as So, e as To, f as co } from "../../tooltip-DVeqVwqV.js";
5
5
  import { C as Do, a as xo, b as wo, c as ho, d as Io, e as Po, f as vo, g as Ao, h as Fo, i as Bo, j as Lo, k as fo } from "../../chart-DntJZGxB.js";
6
- import { C as Ro, j as ko, k as Ho, l as No, m as yo, n as Oo, o as Vo, p as zo, q as jo, D as Eo, a as qo, b as Uo, c as Jo, d as Ko, e as Qo, f as Wo, g as Xo, h as Yo, i as Zo, I as _o, S as $o, r as as, s as es, t as os, u as ss, v as rs, w as ts, x as ns, y as is, z as ls } from "../../sheet-C_39QrG0.js";
6
+ import { C as Ro, j as ko, k as Ho, l as No, m as yo, n as Oo, o as Vo, p as zo, q as jo, D as Eo, a as qo, b as Uo, c as Jo, d as Ko, e as Qo, f as Wo, g as Xo, h as Yo, i as Zo, I as _o, S as $o, r as as, s as es, t as os, u as ss, v as rs, w as ts, x as ns, y as is, z as ls } from "../../sheet-tuC_C3M3.js";
7
7
  import { S as bs, a as gs, b as ps, c as Cs, d as ds, e as ms, f as Ss, g as Ts, h as cs, i as Ms } from "../../select-BpjFWqAY.js";
8
8
  import { S as xs } from "../../skeleton-BX4RcsiK.js";
9
9
  import { toast as hs } from "sonner";
@@ -1,4 +1,4 @@
1
- import { u as s, a as o, b as u, c as i, d as r } from "../../usePage-C5RL0-WN.js";
1
+ import { u as s, a as o, b as u, c as i, d as r } from "../../usePage-D3WXYmjl.js";
2
2
  import { u as D } from "../../useSidebar-BJuALHqQ.js";
3
3
  export {
4
4
  s as useConfirmDeleteDialog,
@@ -1,4 +1,4 @@
1
- import { u as s, a, b as u, c as r, d as t } from "../usePage-C5RL0-WN.js";
1
+ import { u as s, a, b as u, c as r, d as t } from "../usePage-D3WXYmjl.js";
2
2
  import { u as f } from "../useSidebar-BJuALHqQ.js";
3
3
  import { u as l } from "../useDataTable-CxcA5S-s.js";
4
4
  import { u as x } from "../useDocumentTitle-WNwdPz-I.js";
@@ -6,7 +6,7 @@ import { u as b } from "../useMobile-DN1_OMDB.js";
6
6
  import { u as c } from "../useNotifications-zbUhCvF_.js";
7
7
  import { u as d } from "../useScrollFade-BA4KqJYp.js";
8
8
  import { u as S } from "../useServerTable-UvTY6L1N.js";
9
- import { u as h } from "../useTheme-CJVjqtt2.js";
9
+ import { u as h } from "../useTheme-DyeQyPDL.js";
10
10
  import { t as F, u as M } from "../useToast-BFTk4lWz.js";
11
11
  export {
12
12
  F as toast,
@@ -4,7 +4,7 @@ import { u } from "../../useMobile-DN1_OMDB.js";
4
4
  import { u as f } from "../../useNotifications-zbUhCvF_.js";
5
5
  import { u as x } from "../../useScrollFade-BA4KqJYp.js";
6
6
  import { u as i } from "../../useServerTable-UvTY6L1N.js";
7
- import { u as b } from "../../useTheme-CJVjqtt2.js";
7
+ import { u as b } from "../../useTheme-DyeQyPDL.js";
8
8
  import { t as n, u as D } from "../../useToast-BFTk4lWz.js";
9
9
  export {
10
10
  n as toast,
@@ -1,3 +1,4 @@
1
1
  export { KROSOFT_NAMESPACE, krosoftLocales, registerKrosoftLocales } from "./krosoftLocales";
2
+ export { dateFnsLocale, useDateFnsLocale } from "./useDateFnsLocale";
2
3
  export { useKrosoftTranslation } from "./useKrosoftTranslation";
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAC7F,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAC7F,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC"}
@@ -1,7 +1,10 @@
1
- import { K as r, k as a, r as e, u as t } from "../useKrosoftTranslation-C6AC_uCA.js";
1
+ import { K as a, k as e, r, u as t } from "../useKrosoftTranslation-DtdbUewZ.js";
2
+ import { d as l, u as c } from "../useDateFnsLocale-C4oFFUWO.js";
2
3
  export {
3
- r as KROSOFT_NAMESPACE,
4
- a as krosoftLocales,
5
- e as registerKrosoftLocales,
4
+ a as KROSOFT_NAMESPACE,
5
+ l as dateFnsLocale,
6
+ e as krosoftLocales,
7
+ r as registerKrosoftLocales,
8
+ c as useDateFnsLocale,
6
9
  t as useKrosoftTranslation
7
10
  };
@@ -13,6 +13,8 @@ export declare const krosoftLocales: {
13
13
  saving: string;
14
14
  edit: string;
15
15
  delete: string;
16
+ clear: string;
17
+ apply: string;
16
18
  };
17
19
  states: {
18
20
  loading: string;
@@ -82,6 +84,8 @@ export declare const krosoftLocales: {
82
84
  saving: string;
83
85
  edit: string;
84
86
  delete: string;
87
+ clear: string;
88
+ apply: string;
85
89
  };
86
90
  states: {
87
91
  loading: 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"}
@@ -0,0 +1,11 @@
1
+ import type { Locale } from "date-fns";
2
+ /** Résout la locale date-fns d'une langue, région comprise (« en-GB » → `enGB`). */
3
+ export declare const dateFnsLocale: (language?: string) => Locale;
4
+ /**
5
+ * Locale date-fns suivant la langue de l'application.
6
+ *
7
+ * Même logique que `useKrosoftTranslation` : sans i18next, ou avant son
8
+ * initialisation, on retombe sur le français.
9
+ */
10
+ export declare const useDateFnsLocale: () => Locale;
11
+ //# sourceMappingURL=useDateFnsLocale.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDateFnsLocale.d.ts","sourceRoot":"","sources":["../../src/i18n/useDateFnsLocale.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAkBvC,oFAAoF;AACpF,eAAO,MAAM,aAAa,GAAI,WAAW,MAAM,KAAG,MAA2G,CAAC;AAE9J;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,QAAO,MAInC,CAAC"}
@@ -1,25 +1,26 @@
1
1
  import { jsx as S } from "react/jsx-runtime";
2
2
  import { S as E } from "../sidebar.context-D5nywlmP.js";
3
3
  import * as t from "react";
4
+ import "date-fns/locale";
4
5
  import "react-i18next";
5
6
  import "lucide-react";
6
7
  import { u as C } from "../useMobile-DN1_OMDB.js";
7
8
  import "next-themes";
8
- const u = "sidebar:collapsed", y = 3600 * 24 * 7, _ = "b", b = (n) => {
9
+ const m = "sidebar:collapsed", y = 3600 * 24 * 7, _ = "b", b = (n) => {
9
10
  if (typeof document > "u")
10
11
  return n;
11
- const s = document.cookie.split("; ").find((a) => a.startsWith(`${u}=`));
12
+ const s = document.cookie.split("; ").find((a) => a.startsWith(`${m}=`));
12
13
  return s === void 0 ? n : s.split("=")[1] === "true";
13
- }, O = ({
14
+ }, R = ({
14
15
  children: n,
15
16
  defaultCollapsed: s = !1,
16
17
  collapsed: a,
17
18
  onCollapsedChange: d
18
19
  }) => {
19
- const l = C(), [m, p] = t.useState(() => b(s)), i = a ?? m, r = t.useCallback(
20
+ const l = C(), [p, u] = t.useState(() => b(s)), i = a ?? p, r = t.useCallback(
20
21
  (e) => {
21
22
  const o = typeof e == "function" ? e(i) : e;
22
- d ? d(o) : p(o), typeof document < "u" && (document.cookie = `${u}=${String(o)}; path=/; max-age=${String(y)}`);
23
+ d ? d(o) : u(o), typeof document < "u" && (document.cookie = `${m}=${String(o)}; path=/; max-age=${String(y)}`);
23
24
  },
24
25
  [d, i]
25
26
  ), c = t.useCallback(() => {
@@ -45,5 +46,5 @@ const u = "sidebar:collapsed", y = 3600 * 24 * 7, _ = "b", b = (n) => {
45
46
  return /* @__PURE__ */ S(E.Provider, { value: f, children: n });
46
47
  };
47
48
  export {
48
- O as SidebarProvider
49
+ R as SidebarProvider
49
50
  };
@@ -1,5 +1,7 @@
1
1
  import { jsx as o, jsxs as i } from "react/jsx-runtime";
2
- import { u as b } from "./useKrosoftTranslation-C6AC_uCA.js";
2
+ import "date-fns/locale";
3
+ import "react-i18next";
4
+ import { u as b } from "./useKrosoftTranslation-DtdbUewZ.js";
3
5
  import { c as d } from "./tailwind.helper-B6yFEsav.js";
4
6
  import { Command as r } from "cmdk";
5
7
  import { X as p, SearchIcon as w } from "lucide-react";
@@ -7,7 +9,7 @@ import * as n from "react";
7
9
  import * as s from "@radix-ui/react-dialog";
8
10
  import { e as v } from "./tooltip-DVeqVwqV.js";
9
11
  import { cva as k } from "class-variance-authority";
10
- const C = s.Root, W = s.Trigger, D = s.Portal, Y = s.Close, f = n.forwardRef(
12
+ const C = s.Root, Z = s.Trigger, D = s.Portal, ee = s.Close, f = n.forwardRef(
11
13
  ({ className: e, ...a }, t) => /* @__PURE__ */ o(
12
14
  s.Overlay,
13
15
  {
@@ -67,7 +69,7 @@ const h = n.forwardRef(
67
69
  )
68
70
  );
69
71
  h.displayName = r.displayName;
70
- const Z = ({ title: e, description: a, shouldFilter: t, className: l, children: m, ...N }) => {
72
+ const ae = ({ title: e, description: a, shouldFilter: t, className: l, children: m, ...N }) => {
71
73
  const { t: c } = b();
72
74
  return /* @__PURE__ */ o(C, { ...N, children: /* @__PURE__ */ i(u, { className: "flex flex-col overflow-hidden p-0 shadow-lg", children: [
73
75
  /* @__PURE__ */ o(g, { className: "sr-only", children: e ?? c("search.commandTitle") }),
@@ -157,7 +159,7 @@ const H = n.forwardRef(({ className: e, type: a, ...t }, l) => /* @__PURE__ */ o
157
159
  }
158
160
  ));
159
161
  H.displayName = "Input";
160
- const ee = s.Root, ae = s.Trigger, te = s.Close, E = s.Portal, y = n.forwardRef(
162
+ const te = s.Root, oe = s.Trigger, se = s.Close, E = s.Portal, y = n.forwardRef(
161
163
  ({ className: e, ...a }, t) => /* @__PURE__ */ o(
162
164
  s.Overlay,
163
165
  {
@@ -213,8 +215,8 @@ export {
213
215
  h as C,
214
216
  C as D,
215
217
  H as I,
216
- ee as S,
217
- Y as a,
218
+ te as S,
219
+ ee as a,
218
220
  u as b,
219
221
  x as c,
220
222
  R as d,
@@ -222,8 +224,8 @@ export {
222
224
  f,
223
225
  D as g,
224
226
  g as h,
225
- W as i,
226
- Z as j,
227
+ Z as i,
228
+ ae as j,
227
229
  I as k,
228
230
  O as l,
229
231
  z as m,
@@ -231,7 +233,7 @@ export {
231
233
  T as o,
232
234
  j as p,
233
235
  F as q,
234
- te as r,
236
+ se as r,
235
237
  L as s,
236
238
  K as t,
237
239
  q as u,
@@ -239,5 +241,5 @@ export {
239
241
  y as w,
240
242
  E as x,
241
243
  B as y,
242
- ae as z
244
+ oe as z
243
245
  };
@@ -0,0 +1,11 @@
1
+ import { fr as o, enGB as t } from "date-fns/locale";
2
+ import { useTranslation as a } from "react-i18next";
3
+ import { K as r } from "./useKrosoftTranslation-DtdbUewZ.js";
4
+ const L = { fr: o, en: t }, e = o, i = (s) => s === void 0 ? e : L[s.split("-")[0]] ?? e, l = () => {
5
+ const { i18n: s, ready: n } = a(r, { useSuspense: !1 });
6
+ return i(n ? s.resolvedLanguage ?? s.language : void 0);
7
+ };
8
+ export {
9
+ i as d,
10
+ l as u
11
+ };
@@ -0,0 +1,43 @@
1
+ import { useTranslation as c } from "react-i18next";
2
+ const l = { cancel: "Cancel", save: "Save", saving: "Saving...", edit: "Edit", delete: "Delete", clear: "Clear", apply: "Apply" }, d = { loading: "Loading...", error: "Something went wrong.", errorPrefix: "Error:", errorTitle: "Error", noResult: "No result", noResultDot: "No result.", noData: "No data available", underConstruction: "Section under development", comingSoon: "This feature will be available soon" }, u = { trigger: "Search", placeholder: "Search...", globalTitle: "Global search", globalDescription: "Search for a page or a record across the application.", commandTitle: "Command palette", commandDescription: "Search for a command to run.", loading: "Searching..." }, p = { placeholder: "Select...", create: "Create “{{search}}”", section: "Select a section", theme: "Select a theme" }, m = { pickDate: "Select a date", pickPeriod: "Select a period", clearPeriod: "Clear the selected period" }, g = { advanced: "Advanced filters", more: "More filters", yes: "Yes", no: "No" }, h = { validationTitle: "Validation error", validationMessage: "Please check the form fields", submitError: "Something went wrong while saving" }, f = { empty: "No image", upload: "Click to upload", invalidType: "Only {{types}} files are accepted", tooLarge: "The file must not exceed {{size}}MB" }, v = { previousPage: "Previous page", nextPage: "Next page" }, S = { menu: "Navigation menu", description: "Main navigation of the application" }, b = { updatedTitle: "Theme updated", updatedMessage: "The theme has been changed to {{theme}}." }, T = {
3
+ actions: l,
4
+ states: d,
5
+ search: u,
6
+ select: p,
7
+ date: m,
8
+ filters: g,
9
+ form: h,
10
+ image: f,
11
+ table: v,
12
+ sidebar: S,
13
+ theme: b
14
+ }, P = { cancel: "Annuler", save: "Enregistrer", saving: "Enregistrement...", edit: "Modifier", delete: "Supprimer", clear: "Effacer", apply: "Appliquer" }, E = { loading: "Chargement...", error: "Une erreur est survenue.", errorPrefix: "Erreur :", errorTitle: "Erreur", noResult: "Aucun résultat", noResultDot: "Aucun résultat.", noData: "Aucune donnée disponible", underConstruction: "Section en cours de développement", comingSoon: "Cette fonctionnalité sera bientôt disponible" }, y = { trigger: "Rechercher", placeholder: "Rechercher...", globalTitle: "Recherche globale", globalDescription: "Rechercher une page ou une donnée dans l'application.", commandTitle: "Palette de commandes", commandDescription: "Rechercher une commande à exécuter.", loading: "Recherche..." }, C = { placeholder: "Sélectionner...", create: "Créer « {{search}} »", section: "Sélectionner une section", theme: "Sélectionner un thème" }, R = { pickDate: "Sélectionner une date", pickPeriod: "Sélectionner une période", clearPeriod: "Effacer la période sélectionnée" }, D = { advanced: "Filtres avancés", more: "Plus de filtres", yes: "Oui", no: "Non" }, M = { validationTitle: "Erreur de validation", validationMessage: "Veuillez vérifier les champs du formulaire", submitError: "Une erreur est survenue lors de l'enregistrement" }, $ = { empty: "Aucune image", upload: "Cliquer pour uploader", invalidType: "Seuls les fichiers {{types}} sont acceptés", tooLarge: "Le fichier ne doit pas dépasser {{size}}MB" }, A = { previousPage: "Page précédente", nextPage: "Page suivante" }, N = { menu: "Menu de navigation", description: "Navigation principale de l'application" }, x = { updatedTitle: "Thème mis à jour", updatedMessage: "Le thème a été changé vers {{theme}}." }, s = {
15
+ actions: P,
16
+ states: E,
17
+ search: y,
18
+ select: C,
19
+ date: R,
20
+ filters: D,
21
+ form: M,
22
+ image: $,
23
+ table: A,
24
+ sidebar: N,
25
+ theme: x
26
+ }, n = "krosoft", w = { fr: s, en: T }, O = (e, { overwrite: t = !1 } = {}) => {
27
+ typeof e.addResourceBundle == "function" && Object.entries(w).forEach(([r, o]) => {
28
+ var a;
29
+ (a = e.addResourceBundle) == null || a.call(e, r, n, o, !0, t);
30
+ });
31
+ }, L = (e) => {
32
+ const t = e.split(".").reduce((r, o) => typeof r == "object" && r !== null ? r[o] : void 0, s);
33
+ return typeof t == "string" ? t : void 0;
34
+ }, k = (e, t) => t === void 0 ? e : e.replace(/\{\{(\w+)\}\}/g, (r, o) => o in t ? String(t[o]) : r), K = () => {
35
+ const { t: e, i18n: t, ready: r } = c(n, { useSuspense: !1 });
36
+ return { t: (a, i) => r && t.exists(a, { ns: n }) ? e(a, i ?? {}) : k(L(a) ?? a, i) };
37
+ };
38
+ export {
39
+ n as K,
40
+ w as k,
41
+ O as r,
42
+ K as u
43
+ };