@krosoft/react 0.0.313 → 0.0.315

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 (50) hide show
  1. package/dist/{AppActions-BSFD13aV.js → AppActions-D_fmiysr.js} +2 -2
  2. package/dist/{AppSubTitle-CVNe5WHv.js → AppSubTitle-BAZH6wsn.js} +2 -2
  3. package/dist/{AppTitle-DIHE8uen.js → AppTitle-ky6qG29Z.js} +1 -1
  4. package/dist/{ErrorAlert-D8XnPN0I.js → ErrorAlert-ZflPwfL1.js} +1 -1
  5. package/dist/{GenericForm-Dcn4Xecn.js → GenericForm-BykHqJam.js} +7 -7
  6. package/dist/{ImageInput-BtV_Ezgp.js → ImageInput-C2j-GOpn.js} +2 -2
  7. package/dist/{MultiSelect-DyHOoUsz.js → MultiSelect-BlsLVGLX.js} +3 -3
  8. package/dist/{SearchInput-KPozEk_s.js → SearchInput-CI_OoJwu.js} +4 -4
  9. package/dist/{behavior-bxFMjAHE.js → behavior-DOkq-VaE.js} +1 -1
  10. package/dist/{cards-pQZw-utJ.js → cards-CEP7Jo4R.js} +2 -2
  11. package/dist/{charts-Oxpbp_Ii.js → charts-Dqw9_J2o.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 +18 -18
  18. package/dist/components/core/inputs/index.js +4 -4
  19. package/dist/components/core/language/index.js +1 -1
  20. package/dist/components/core/layouts/index.js +8 -8
  21. package/dist/components/core/navbar/GlobalSearch.d.ts +19 -1
  22. package/dist/components/core/navbar/GlobalSearch.d.ts.map +1 -1
  23. package/dist/components/core/navbar/index.js +1 -1
  24. package/dist/components/core/states/index.js +2 -2
  25. package/dist/components/core/table/index.js +3 -3
  26. package/dist/components/core/tabs/index.js +5 -5
  27. package/dist/components/core/theme/index.js +1 -1
  28. package/dist/components/index.js +18 -18
  29. package/dist/components/ui/index.js +2 -2
  30. package/dist/{dialogs-BLrrt68D.js → dialogs-C8o99oud.js} +6 -6
  31. package/dist/hooks/behavior/index.js +1 -1
  32. package/dist/hooks/index.js +5 -5
  33. package/dist/hooks/ui/index.js +4 -4
  34. package/dist/i18n/index.js +1 -1
  35. package/dist/i18n/krosoftLocales.d.ts +4 -0
  36. package/dist/i18n/krosoftLocales.d.ts.map +1 -1
  37. package/dist/{i18n-ClZK4zll.js → i18n-COxm2IKP.js} +6 -2
  38. package/dist/{inputs-c7vMvV76.js → inputs-CEE8QOT_.js} +3 -3
  39. package/dist/{language-VKGAsAfF.js → language-CX5k4uX5.js} +2 -2
  40. package/dist/{navbar-DD0va8YU.js → navbar-DsxKWZSP.js} +88 -53
  41. package/dist/pwa/index.js +1 -1
  42. package/dist/{sheet-BjlRzLnc.js → sheet-B7qGvwk0.js} +1 -1
  43. package/dist/{states-C3v4BU7N.js → states-14gCg2Sl.js} +2 -2
  44. package/dist/{theme-Bkamu5J6.js → theme-BUl4fbtL.js} +2 -2
  45. package/dist/{ui-Bbn7hLKT.js → ui-B648tEnO.js} +3 -3
  46. package/dist/{ui-BwBUIl5y.js → ui-BFLRtp53.js} +2 -2
  47. package/dist/{useDocumentTitle-Ces2VRou.js → useDocumentTitle-wGdjZMx6.js} +1 -1
  48. package/dist/{useLanguage-c7lPQ7eh.js → useLanguage-JlBoVxev.js} +1 -1
  49. package/dist/{useTheme-CU6lGuO4.js → useTheme-DVDPwbQ2.js} +1 -1
  50. package/package.json +2 -2
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./tailwind.helper-CJaRYBmL.js";
2
- import { t } from "./i18n-ClZK4zll.js";
3
- import { Bt as n, Ft as r, Gt as i, Nt as a, jt as o } from "./ui-BwBUIl5y.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";
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-ClZK4zll.js";
2
- import { t } from "./AppActions-BSFD13aV.js";
1
+ import { t as e } from "./i18n-COxm2IKP.js";
2
+ import { t } from "./AppActions-D_fmiysr.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-ClZK4zll.js";
2
+ import { t } from "./i18n-COxm2IKP.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-ClZK4zll.js";
1
+ import { t as e } from "./i18n-COxm2IKP.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-ClZK4zll.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-BwBUIl5y.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";
5
5
  import { c as p } from "./tooltip-_geGvbS7.js";
6
- import { g as m } from "./sheet-BjlRzLnc.js";
6
+ import { g as m } from "./sheet-B7qGvwk0.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-BtV_Ezgp.js";
10
- import { t as x } from "./AppSubTitle-CVNe5WHv.js";
11
- import { t as S } from "./MultiSelect-DyHOoUsz.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";
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";
@@ -51,7 +51,7 @@ var j = (e) => {
51
51
  defaultValues: M(P, z)
52
52
  }), Z = w(!!P);
53
53
  C(() => {
54
- !P || Z.current || (Z.current = !0, X.reset(M(P, z)), Y(N(P, z)));
54
+ P && !Z.current && (Z.current = !0, X.reset(M(P, z)), Y(N(P, z)));
55
55
  }, [
56
56
  X,
57
57
  P,
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./tailwind.helper-CJaRYBmL.js";
2
- import { t } from "./i18n-ClZK4zll.js";
3
- import "./ui-BwBUIl5y.js";
2
+ import { t } from "./i18n-COxm2IKP.js";
3
+ import "./ui-BFLRtp53.js";
4
4
  import { c as n } from "./tooltip-_geGvbS7.js";
5
5
  import { t as r } from "./useNotifications-CyhTruIG.js";
6
6
  import { forwardRef as i, useRef as a } from "react";
@@ -1,8 +1,8 @@
1
1
  import { t as e } from "./tailwind.helper-CJaRYBmL.js";
2
- import { t } from "./i18n-ClZK4zll.js";
3
- import { Pn as n, bn as r } from "./ui-BwBUIl5y.js";
2
+ import { t } from "./i18n-COxm2IKP.js";
3
+ import { Pn as n, bn as r } from "./ui-BFLRtp53.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-BjlRzLnc.js";
5
+ import { h as s, m as c, p as l } from "./sheet-B7qGvwk0.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-ClZK4zll.js";
3
- import { En as r } from "./ui-BwBUIl5y.js";
2
+ import { r as t, t as n } from "./i18n-COxm2IKP.js";
3
+ import { En as r } from "./ui-BFLRtp53.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-BjlRzLnc.js";
5
+ import { g as s, h as c, m as l, p as u } from "./sheet-B7qGvwk0.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-DyHOoUsz.js";
7
+ import { n as g, r as _ } from "./MultiSelect-BlsLVGLX.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-ClZK4zll.js";
1
+ import { t as e } from "./i18n-COxm2IKP.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-ClZK4zll.js";
4
- import "./ui-BwBUIl5y.js";
3
+ import { t as a } from "./i18n-COxm2IKP.js";
4
+ import "./ui-BFLRtp53.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-ClZK4zll.js";
3
+ import { t as d } from "./i18n-COxm2IKP.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-pQZw-utJ.js";
1
+ import { a as e, i as t, n, o as r, r as i, t as a } from "../../../cards-CEP7Jo4R.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-Oxpbp_Ii.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-Dqw9_J2o.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-BwBUIl5y.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-BjlRzLnc.js";
3
- import { n as d, r as f, t as p } from "../../../dialogs-BLrrt68D.js";
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";
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-ClZK4zll.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-BwBUIl5y.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";
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-BjlRzLnc.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";
6
6
  import { t as y } from "../../../useMobile-pTQ8lWvt.js";
7
- import { t as b } from "../../../MultiSelect-DyHOoUsz.js";
8
- import { i as x, n as S, r as C, t as w } from "../../../SearchInput-KPozEk_s.js";
9
- import "../../../ui-Bbn7hLKT.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";
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-Dcn4Xecn.js";
1
+ import { t as e } from "../../../GenericForm-BykHqJam.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-pQZw-utJ.js";
2
- import { I as o } from "../../ui-BwBUIl5y.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-BjlRzLnc.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-Oxpbp_Ii.js";
5
- import { t as T } from "../../ErrorAlert-D8XnPN0I.js";
6
- import { n as E, r as D, t as O } from "../../dialogs-BLrrt68D.js";
7
- import { t as k } from "../../ImageInput-BtV_Ezgp.js";
8
- import { t as A } from "../../AppActions-BSFD13aV.js";
9
- import { t as j } from "../../AppSubTitle-CVNe5WHv.js";
10
- import { t as M } from "../../MultiSelect-DyHOoUsz.js";
11
- import { t as N } from "../../GenericForm-Dcn4Xecn.js";
12
- import { i as P, n as F, r as I, t as L } from "../../SearchInput-KPozEk_s.js";
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";
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-c7vMvV76.js";
17
- import { t as Y } from "../../language-VKGAsAfF.js";
18
- import { t as X } from "../../AppTitle-DIHE8uen.js";
19
- import { n as Z, t as Q } from "../../states-C3v4BU7N.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
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-DD0va8YU.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
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
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-Bkamu5J6.js";
24
+ import { t as ye } from "../../theme-BUl4fbtL.js";
25
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 };
@@ -1,5 +1,5 @@
1
- import { t as e } from "../../../ImageInput-BtV_Ezgp.js";
2
- import { t } from "../../../MultiSelect-DyHOoUsz.js";
3
- import { i as n, n as r, r as i, t as a } from "../../../SearchInput-KPozEk_s.js";
4
- import { t as o } from "../../../inputs-c7vMvV76.js";
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
5
  export { n as DatePicker, i as DateRangePicker, e as ImageInput, t as MultiSelect, o as RatingInput, a as SearchInput, r as SingleSelect };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../language-VKGAsAfF.js";
1
+ import { t as e } from "../../../language-CX5k4uX5.js";
2
2
  export { e as LanguageSelector };
@@ -1,12 +1,12 @@
1
- import { t as e } from "../../../i18n-ClZK4zll.js";
2
- import { i as t, t as n } from "../../../cards-pQZw-utJ.js";
3
- import "../../../ui-BwBUIl5y.js";
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";
4
4
  import { c as r } from "../../../tooltip-_geGvbS7.js";
5
- import { t as i } from "../../../AppActions-BSFD13aV.js";
6
- import { t as a } from "../../../AppSubTitle-CVNe5WHv.js";
7
- import { t as o } from "../../../useDocumentTitle-Ces2VRou.js";
8
- import { t as s } from "../../../AppTitle-DIHE8uen.js";
9
- import { n as c } from "../../../states-C3v4BU7N.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";
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";
@@ -35,6 +35,20 @@ export interface GlobalSearchProps {
35
35
  /** Raccourci ⌘K / Ctrl+K. */
36
36
  shortcut?: boolean;
37
37
  shortcutLabel?: string;
38
+ /**
39
+ * Termes déjà recherchés, proposés tant que la saisie est vide — la plus récente en premier.
40
+ * La persistance et l'ordre restent à la charge de l'appelant : le composant ne fait que
41
+ * les afficher. Masqué dès qu'une saisie est en cours, pour laisser place aux résultats.
42
+ */
43
+ history?: string[];
44
+ /** Clic sur une entrée d'historique : à l'appelant de relancer la recherche sur ce terme. */
45
+ onHistorySelect?: (term: string) => void;
46
+ /** Sans ce callback, aucune entrée d'historique n'affiche sa croix de suppression. */
47
+ onHistoryRemove?: (term: string) => void;
48
+ /** Intitulé du groupe d'historique. */
49
+ historyHeading?: string;
50
+ /** Libellé accessible de la croix qui retire une entrée de l'historique. */
51
+ removeFromHistoryLabel?: string;
38
52
  placeholder?: string;
39
53
  emptyLabel?: string;
40
54
  loadingLabel?: string;
@@ -55,6 +69,10 @@ export interface GlobalSearchProps {
55
69
  * Le filtrage interne de cmdk est désactivé (`shouldFilter={false}`) : les résultats
56
70
  * arrivent déjà filtrés en amont — côté serveur pour les données, sans accents pour
57
71
  * les pages — et cmdk en masquerait une partie en refiltrant sur la saisie brute.
72
+ *
73
+ * Tant que la saisie est vide, l'historique (`history`) est proposé : chaque terme
74
+ * relance une recherche (`onHistorySelect`) et peut être retiré via sa croix
75
+ * (`onHistoryRemove`). Sa persistance reste à la charge de l'appelant.
58
76
  */
59
- export declare const GlobalSearch: ({ groups, search, onSearch, onSelect, loading, open, onOpenChange, trigger, triggerLabel, shortcut, shortcutLabel, placeholder, emptyLabel, loadingLabel, title, description, hint, className, }: GlobalSearchProps) => React.ReactElement;
77
+ export declare const GlobalSearch: ({ groups, search, onSearch, onSelect, loading, open, onOpenChange, trigger, triggerLabel, shortcut, shortcutLabel, history, onHistorySelect, onHistoryRemove, historyHeading, removeFromHistoryLabel, placeholder, emptyLabel, loadingLabel, title, description, hint, className, }: GlobalSearchProps) => React.ReactElement;
60
78
  //# sourceMappingURL=GlobalSearch.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"GlobalSearch.d.ts","sourceRoot":"","sources":["../../../../src/components/core/navbar/GlobalSearch.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,MAAM,WAAW,gBAAgB;IAC/B,6EAA6E;IAC7E,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,uEAAuE;IACvE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACzB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,+EAA+E;IAC/E,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,gBAAgB,EAAE,CAAC;CAC3B;AAED,MAAM,WAAW,iBAAiB;IAChC,8EAA8E;IAC9E,MAAM,EAAE,iBAAiB,EAAE,CAAC;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,QAAQ,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAE3C,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,+EAA+E;IAC/E,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAEvC,wFAAwF;IACxF,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,6BAA6B;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gFAAgF;IAChF,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,YAAY,GAAI,kMAmB1B,iBAAiB,KAAG,KAAK,CAAC,YAmH5B,CAAC"}
1
+ {"version":3,"file":"GlobalSearch.d.ts","sourceRoot":"","sources":["../../../../src/components/core/navbar/GlobalSearch.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,MAAM,WAAW,gBAAgB;IAC/B,6EAA6E;IAC7E,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,uEAAuE;IACvE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACzB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,+EAA+E;IAC/E,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,gBAAgB,EAAE,CAAC;CAC3B;AAED,MAAM,WAAW,iBAAiB;IAChC,8EAA8E;IAC9E,MAAM,EAAE,iBAAiB,EAAE,CAAC;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,QAAQ,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAE3C,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,+EAA+E;IAC/E,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAEvC,wFAAwF;IACxF,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,6BAA6B;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,6FAA6F;IAC7F,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,sFAAsF;IACtF,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,uCAAuC;IACvC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,4EAA4E;IAC5E,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAEhC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gFAAgF;IAChF,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,YAAY,GAAI,qRAwB1B,iBAAiB,KAAG,KAAK,CAAC,YAkK5B,CAAC"}
@@ -1,2 +1,2 @@
1
- import { a as e, i as t, n, o as r, r as i, t as a } from "../../../navbar-DD0va8YU.js";
1
+ import { a as e, i as t, n, o as r, r as i, t as a } from "../../../navbar-DsxKWZSP.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-D8XnPN0I.js";
2
- import { n as t, t as n } from "../../../states-C3v4BU7N.js";
1
+ import { t as e } from "../../../ErrorAlert-ZflPwfL1.js";
2
+ import { n as t, t as n } from "../../../states-14gCg2Sl.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-ClZK4zll.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-BwBUIl5y.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";
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";
@@ -108,7 +108,7 @@ function G({ isLoading: o, error: s, colSpanCount: c, messages: l, paginatedData
108
108
  }) })
109
109
  });
110
110
  let I = i(O[t], "body"), L = i(O[e], "body"), z = h && v.size > 0, B = (e) => {
111
- if (!(m !== void 0 && !m(e))) return p?.(e);
111
+ if (m === void 0 || m(e)) return p?.(e);
112
112
  }, V = (e, t, n) => {
113
113
  if (z) {
114
114
  y(e);
@@ -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-ClZK4zll.js";
4
- import { _ as a, g as o, h as s, m as c } from "../../../ui-BwBUIl5y.js";
5
- import { d as l } from "../../../sheet-BjlRzLnc.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";
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-BSFD13aV.js";
8
- import { t as g } from "../../../AppTitle-DIHE8uen.js";
7
+ import { t as h } from "../../../AppActions-D_fmiysr.js";
8
+ import { t as g } from "../../../AppTitle-ky6qG29Z.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-Bkamu5J6.js";
1
+ import { t as e } from "../../../theme-BUl4fbtL.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-pQZw-utJ.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-BwBUIl5y.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";
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-BjlRzLnc.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";
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-Oxpbp_Ii.js";
10
- import { t as kr } from "../ErrorAlert-D8XnPN0I.js";
11
- import { n as Ar, r as jr, t as Mr } from "../dialogs-BLrrt68D.js";
12
- import { t as Nr } from "../ImageInput-BtV_Ezgp.js";
13
- import { t as Pr } from "../AppActions-BSFD13aV.js";
14
- import { t as Fr } from "../AppSubTitle-CVNe5WHv.js";
15
- import { t as Ir } from "../MultiSelect-DyHOoUsz.js";
16
- import { t as Lr } from "../GenericForm-Dcn4Xecn.js";
17
- import { i as Rr, n as zr, r as Br, t as Vr } from "../SearchInput-KPozEk_s.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";
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-c7vMvV76.js";
21
- import { t as $r } from "../language-VKGAsAfF.js";
22
- import { t as ei } from "../AppTitle-DIHE8uen.js";
23
- import { n as ti, t as ni } from "../states-C3v4BU7N.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
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-DD0va8YU.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
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
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-Bkamu5J6.js";
28
+ import { t as Ci } from "../theme-BUl4fbtL.js";
29
29
  import "./core/index.js";
30
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 };
@@ -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-BwBUIl5y.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";
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-BjlRzLnc.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";
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-ClZK4zll.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-BwBUIl5y.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";
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-BjlRzLnc.js";
6
- import { t as g } from "./ErrorAlert-D8XnPN0I.js";
7
- import { t as _ } from "./GenericForm-Dcn4Xecn.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";
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";
@@ -21,7 +21,7 @@ var D = {
21
21
  };
22
22
  function O({ open: n, onOpenChange: r, config: i, isLoading: o, error: s, footer: c, className: l, children: _ }) {
23
23
  let { t: v } = t(), { title: y, description: b, icon: x, size: w = "xl", maxWidth: T, actions: E, headerClassName: O, footerClassName: k } = i, A = o === !0, j = (e) => typeof e == "string" ? v(e) : e, M = (e) => {
24
- !e && A || r(e);
24
+ (e || !A) && r(e);
25
25
  }, N = c !== void 0 || E !== void 0 && E.length > 0;
26
26
  return /* @__PURE__ */ S(d, {
27
27
  open: n,
@@ -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-bxFMjAHE.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-DOkq-VaE.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-Ces2VRou.js";
7
- import { t as c } from "../useLanguage-c7lPQ7eh.js";
8
- import { t as l } from "../ui-Bbn7hLKT.js";
9
- import { t as u } from "../useTheme-CU6lGuO4.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-bxFMjAHE.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";
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-Ces2VRou.js";
7
- import { t as c } from "../../useLanguage-c7lPQ7eh.js";
8
- import { t as l } from "../../ui-Bbn7hLKT.js";
9
- import { t as u } from "../../useTheme-CU6lGuO4.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
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-ClZK4zll.js";
1
+ import { a as e, i as t, n, o as r, r as i, t as a } from "../i18n-COxm2IKP.js";
2
2
  export { t as KROSOFT_NAMESPACE, n as dateFnsLocale, e as krosoftLocales, r as registerKrosoftLocales, i as useDateFnsLocale, a as useKrosoftTranslation };
@@ -36,6 +36,8 @@ export declare const krosoftLocales: {
36
36
  commandTitle: string;
37
37
  commandDescription: string;
38
38
  loading: string;
39
+ historyTitle: string;
40
+ removeFromHistory: string;
39
41
  };
40
42
  notifications: {
41
43
  trigger: string;
@@ -150,6 +152,8 @@ export declare const krosoftLocales: {
150
152
  commandTitle: string;
151
153
  commandDescription: string;
152
154
  loading: string;
155
+ historyTitle: string;
156
+ removeFromHistory: string;
153
157
  };
154
158
  notifications: {
155
159
  trigger: 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"}
@@ -29,7 +29,9 @@ var r = {
29
29
  globalDescription: "Search for a page or a record across the application.",
30
30
  commandTitle: "Command palette",
31
31
  commandDescription: "Search for a command to run.",
32
- loading: "Searching..."
32
+ loading: "Searching...",
33
+ historyTitle: "Recent searches",
34
+ removeFromHistory: "Remove from history"
33
35
  },
34
36
  notifications: {
35
37
  trigger: "Notifications",
@@ -142,7 +144,9 @@ var r = {
142
144
  globalDescription: "Rechercher une page ou une donnée dans l'application.",
143
145
  commandTitle: "Palette de commandes",
144
146
  commandDescription: "Rechercher une commande à exécuter.",
145
- loading: "Recherche..."
147
+ loading: "Recherche...",
148
+ historyTitle: "Recherches récentes",
149
+ removeFromHistory: "Retirer de l'historique"
146
150
  },
147
151
  notifications: {
148
152
  trigger: "Notifications",
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "./tailwind.helper-CJaRYBmL.js";
2
- import "./ImageInput-BtV_Ezgp.js";
3
- import "./MultiSelect-DyHOoUsz.js";
4
- import "./SearchInput-KPozEk_s.js";
2
+ import "./ImageInput-C2j-GOpn.js";
3
+ import "./MultiSelect-BlsLVGLX.js";
4
+ import "./SearchInput-CI_OoJwu.js";
5
5
  import { jsx as t } from "react/jsx-runtime";
6
6
  import { Heart as n, Star as r } from "lucide-react";
7
7
  //#region src/components/core/inputs/RatingInput.tsx
@@ -1,7 +1,7 @@
1
- import { t as e } from "./i18n-ClZK4zll.js";
1
+ import { t as e } from "./i18n-COxm2IKP.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-c7lPQ7eh.js";
4
+ import { t as d } from "./useLanguage-JlBoVxev.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,63 +1,98 @@
1
1
  import { t as e } from "./tailwind.helper-CJaRYBmL.js";
2
- import { t } from "./i18n-ClZK4zll.js";
2
+ import { t } from "./i18n-COxm2IKP.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-BjlRzLnc.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";
5
5
  import { t as S } from "./skeleton-D6Ga4BLw.js";
6
- import { l as C } from "./behavior-bxFMjAHE.js";
6
+ import { l as C } from "./behavior-DOkq-VaE.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";
10
- import { BellIcon as O, ChevronDownIcon as k, LoaderCircleIcon as A, MenuIcon as j, SearchIcon as M, Trash2Icon as N } from "lucide-react";
10
+ import { BellIcon as O, ChevronDownIcon as k, ClockIcon as A, LoaderCircleIcon as j, MenuIcon as M, SearchIcon as N, Trash2Icon as P, XIcon as F } from "lucide-react";
11
11
  //#region src/components/core/navbar/GlobalSearch.tsx
12
- var P = ({ groups: r, search: i, onSearch: a, onSelect: o, loading: u = !1, open: d, onOpenChange: f, trigger: p = !0, triggerLabel: m, shortcut: h = !0, shortcutLabel: g = "Ctrl+K", placeholder: _, emptyLabel: v, loadingLabel: S, title: C, description: O, hint: k, className: j }) => {
13
- let { t: N } = t(), [P, F] = w.useState(!1), I = d !== void 0, L = I ? d : P, R = w.useCallback((e) => {
14
- I || F(e), f?.(e);
15
- }, [I, f]);
12
+ var I = ({ groups: r, search: i, onSearch: a, onSelect: o, loading: u = !1, open: d, onOpenChange: f, trigger: p = !0, triggerLabel: m, shortcut: h = !0, shortcutLabel: g = "Ctrl+K", history: _, onHistorySelect: v, onHistoryRemove: S, historyHeading: C, removeFromHistoryLabel: O, placeholder: k, emptyLabel: M, loadingLabel: P, title: I, description: L, hint: R, className: z }) => {
13
+ let { t: B } = t(), [V, H] = w.useState(!1), U = d !== void 0, W = U ? d : V, G = w.useCallback((e) => {
14
+ U || H(e), f?.(e);
15
+ }, [U, f]);
16
16
  w.useEffect(() => {
17
17
  if (!h) return;
18
18
  let e = (e) => {
19
- e.key.toLowerCase() !== "k" || !(e.metaKey || e.ctrlKey) || (e.preventDefault(), R(!L));
19
+ e.key.toLowerCase() === "k" && (e.metaKey || e.ctrlKey) && (e.preventDefault(), G(!W));
20
20
  };
21
21
  return window.addEventListener("keydown", e), () => {
22
22
  window.removeEventListener("keydown", e);
23
23
  };
24
24
  }, [
25
25
  h,
26
- L,
27
- R
26
+ W,
27
+ G
28
28
  ]);
29
- let z = (e) => {
30
- R(!1), a(""), o(e);
31
- }, B = r.some((e) => e.items.length > 0);
29
+ let K = (e) => {
30
+ G(!1), a(""), o(e);
31
+ }, q = r.some((e) => e.items.length > 0), J = _ ?? [], Y = i.trim() === "" && J.length > 0;
32
32
  return /* @__PURE__ */ D(T, { children: [p && /* @__PURE__ */ E(n, {
33
33
  variant: "ghost",
34
34
  size: "icon",
35
- "aria-label": m ?? N("search.trigger"),
36
- title: h ? `${m ?? N("search.trigger")} (${g})` : m ?? N("search.trigger"),
35
+ "aria-label": m ?? B("search.trigger"),
36
+ title: h ? `${m ?? B("search.trigger")} (${g})` : m ?? B("search.trigger"),
37
37
  className: "rounded-full",
38
38
  onClick: () => {
39
- R(!0);
39
+ G(!0);
40
40
  },
41
- children: /* @__PURE__ */ E(M, { className: "size-4" })
41
+ children: /* @__PURE__ */ E(N, { className: "size-4" })
42
42
  }), /* @__PURE__ */ D(y, {
43
- open: L,
44
- onOpenChange: R,
45
- title: C ?? N("search.globalTitle"),
46
- description: O ?? N("search.globalDescription"),
43
+ open: W,
44
+ onOpenChange: G,
45
+ title: I ?? B("search.globalTitle"),
46
+ description: L ?? B("search.globalDescription"),
47
47
  shouldFilter: !1,
48
- className: j,
48
+ className: z,
49
49
  children: [
50
50
  /* @__PURE__ */ E(b, {
51
51
  value: i,
52
52
  onValueChange: a,
53
- placeholder: _ ?? N("search.placeholder")
53
+ placeholder: k ?? B("search.placeholder")
54
54
  }),
55
55
  /* @__PURE__ */ D(s, { children: [
56
56
  u && /* @__PURE__ */ D("div", {
57
57
  className: "flex items-center justify-center gap-2 py-6 text-sm text-muted-foreground",
58
- children: [/* @__PURE__ */ E(A, { className: "size-4 animate-spin" }), S ?? N("search.loading")]
58
+ children: [/* @__PURE__ */ E(j, { className: "size-4 animate-spin" }), P ?? B("search.loading")]
59
+ }),
60
+ !q && !Y && !u && /* @__PURE__ */ E(x, { children: M ?? B("states.noResultDot") }),
61
+ Y && /* @__PURE__ */ E(l, {
62
+ heading: C ?? B("search.historyTitle"),
63
+ children: J.map((e) => /* @__PURE__ */ D(c, {
64
+ value: `history-${e}`,
65
+ className: "gap-3 px-2 py-2",
66
+ onSelect: () => {
67
+ v?.(e);
68
+ },
69
+ children: [
70
+ /* @__PURE__ */ E("span", {
71
+ className: "flex size-8 shrink-0 items-center justify-center rounded-lg bg-muted text-muted-foreground",
72
+ children: /* @__PURE__ */ E(A, { className: "size-4" })
73
+ }),
74
+ /* @__PURE__ */ E("span", {
75
+ className: "min-w-0 flex-1 truncate font-medium",
76
+ children: e
77
+ }),
78
+ S && /* @__PURE__ */ E(n, {
79
+ type: "button",
80
+ variant: "ghost",
81
+ size: "icon",
82
+ className: "size-7 shrink-0 text-muted-foreground hover:text-destructive",
83
+ "aria-label": O ?? B("search.removeFromHistory"),
84
+ title: O ?? B("search.removeFromHistory"),
85
+ onPointerDown: (e) => {
86
+ e.preventDefault(), e.stopPropagation();
87
+ },
88
+ onClick: (t) => {
89
+ t.stopPropagation(), S(e);
90
+ },
91
+ children: /* @__PURE__ */ E(F, { className: "size-4" })
92
+ })
93
+ ]
94
+ }, `history-${e}`))
59
95
  }),
60
- !B && !u && /* @__PURE__ */ E(x, { children: v ?? N("states.noResultDot") }),
61
96
  r.map((t) => t.items.length === 0 ? null : /* @__PURE__ */ E(l, {
62
97
  heading: t.heading,
63
98
  children: t.items.map((t) => {
@@ -66,7 +101,7 @@ var P = ({ groups: r, search: i, onSearch: a, onSelect: o, loading: u = !1, open
66
101
  value: t.key,
67
102
  className: "gap-3 px-2 py-2",
68
103
  onSelect: () => {
69
- z(t);
104
+ K(t);
70
105
  },
71
106
  children: [n && /* @__PURE__ */ E("span", {
72
107
  className: e("flex size-8 shrink-0 items-center justify-center rounded-lg bg-muted text-muted-foreground", t.iconClassName),
@@ -85,16 +120,16 @@ var P = ({ groups: r, search: i, onSearch: a, onSelect: o, loading: u = !1, open
85
120
  })
86
121
  }, t.heading))
87
122
  ] }),
88
- k !== void 0 && B && !u && /* @__PURE__ */ E("div", {
123
+ R !== void 0 && q && !u && /* @__PURE__ */ E("div", {
89
124
  className: "border-t border-border p-2 text-center text-xs text-muted-foreground",
90
- children: k
125
+ children: R
91
126
  })
92
127
  ]
93
128
  })] });
94
- }, F = 9, I = ({ items: r, onSelect: i, onMarkAllAsRead: a, onRemove: o, onSeeAll: s, isLoading: c = !1, unreadCount: l, maxBadgeCount: d = F, open: p, onOpenChange: m, triggerLabel: _, title: v, emptyLabel: y, loadingLabel: b, markAllAsReadLabel: x, removeLabel: S, seeAllLabel: C, className: T, contentClassName: k, badgeClassName: A, itemClassName: j, unreadItemClassName: M }) => {
95
- let { t: P } = t(), [I, L] = w.useState(!1), R = p !== void 0, z = R ? p : I, B = (e) => {
96
- R || L(e), m?.(e);
97
- }, V = l ?? r.filter((e) => !e.read).length, H = _ ?? P("notifications.trigger"), U = (e) => {
129
+ }, L = 9, R = ({ items: r, onSelect: i, onMarkAllAsRead: a, onRemove: o, onSeeAll: s, isLoading: c = !1, unreadCount: l, maxBadgeCount: d = L, open: p, onOpenChange: m, triggerLabel: _, title: v, emptyLabel: y, loadingLabel: b, markAllAsReadLabel: x, removeLabel: S, seeAllLabel: C, className: T, contentClassName: k, badgeClassName: A, itemClassName: j, unreadItemClassName: M }) => {
130
+ let { t: N } = t(), [F, I] = w.useState(!1), R = p !== void 0, z = R ? p : F, B = (e) => {
131
+ R || I(e), m?.(e);
132
+ }, V = l ?? r.filter((e) => !e.read).length, H = _ ?? N("notifications.trigger"), U = (e) => {
98
133
  B(!1), i?.(e);
99
134
  };
100
135
  return /* @__PURE__ */ D(g, {
@@ -122,23 +157,23 @@ var P = ({ groups: r, search: i, onSearch: a, onSelect: o, loading: u = !1, open
122
157
  className: "flex items-center justify-between gap-2 border-b px-3 py-2",
123
158
  children: [/* @__PURE__ */ E("span", {
124
159
  className: "text-sm font-medium",
125
- children: v ?? P("notifications.title")
160
+ children: v ?? N("notifications.title")
126
161
  }), a && V > 0 && /* @__PURE__ */ E(n, {
127
162
  type: "button",
128
163
  variant: "ghost",
129
164
  size: "sm",
130
165
  className: "h-7 text-xs",
131
166
  onClick: a,
132
- children: x ?? P("notifications.markAllAsRead")
167
+ children: x ?? N("notifications.markAllAsRead")
133
168
  })]
134
169
  }),
135
170
  c && /* @__PURE__ */ E("p", {
136
171
  className: "px-3 py-6 text-center text-sm text-muted-foreground",
137
- children: b ?? P("states.loading")
172
+ children: b ?? N("states.loading")
138
173
  }),
139
174
  !c && r.length === 0 && /* @__PURE__ */ E("p", {
140
175
  className: "px-3 py-6 text-center text-sm text-muted-foreground",
141
- children: y ?? P("notifications.empty")
176
+ children: y ?? N("notifications.empty")
142
177
  }),
143
178
  !c && r.length > 0 && /* @__PURE__ */ E(u, {
144
179
  viewportClassName: "max-h-96",
@@ -188,9 +223,9 @@ var P = ({ groups: r, search: i, onSearch: a, onSelect: o, loading: u = !1, open
188
223
  onClick: () => {
189
224
  o(t);
190
225
  },
191
- "aria-label": S ?? P("notifications.remove"),
192
- title: S ?? P("notifications.remove"),
193
- children: /* @__PURE__ */ E(N, { className: "size-3.5" })
226
+ "aria-label": S ?? N("notifications.remove"),
227
+ title: S ?? N("notifications.remove"),
228
+ children: /* @__PURE__ */ E(P, { className: "size-3.5" })
194
229
  })]
195
230
  }, t.key);
196
231
  })
@@ -206,14 +241,14 @@ var P = ({ groups: r, search: i, onSearch: a, onSelect: o, loading: u = !1, open
206
241
  onClick: () => {
207
242
  B(!1), s?.();
208
243
  },
209
- children: C ?? P("notifications.seeAll")
244
+ children: C ?? N("notifications.seeAll")
210
245
  })
211
246
  })
212
247
  ]
213
248
  })]
214
249
  });
215
- }, L = (e, t, n) => t === e ? !0 : e === "/" || !t.startsWith(`${e}/`) ? !1 : !n.some((n) => n !== e && n.startsWith(`${e}/`) && (t === n || t.startsWith(`${n}/`))), R = ({ path: t, icon: n, label: a, badge: s, subItems: c, currentPath: l, collapsed: u, dense: d = !1, onItemClick: f }) => {
216
- let p = c?.map((e) => e.path) ?? [], [m, h] = w.useState(c?.some((e) => L(e.path, l, p)) ?? !1), g = t ? l === t || t !== "/" && l.startsWith(`${t}/`) : !1, _ = c?.some((e) => L(e.path, l, p)), v = g || !u && _, y = /* @__PURE__ */ D("a", {
250
+ }, z = (e, t, n) => t === e ? !0 : e === "/" || !t.startsWith(`${e}/`) ? !1 : !n.some((n) => n !== e && n.startsWith(`${e}/`) && (t === n || t.startsWith(`${n}/`))), B = ({ path: t, icon: n, label: a, badge: s, subItems: c, currentPath: l, collapsed: u, dense: d = !1, onItemClick: f }) => {
251
+ let p = c?.map((e) => e.path) ?? [], [m, h] = w.useState(c?.some((e) => z(e.path, l, p)) ?? !1), g = t ? l === t || t !== "/" && l.startsWith(`${t}/`) : !1, _ = c?.some((e) => z(e.path, l, p)), v = g || !u && _, y = /* @__PURE__ */ D("a", {
217
252
  href: t ?? "#",
218
253
  onClick: (e) => {
219
254
  e.ctrlKey || e.metaKey || e.button === 1 || (e.preventDefault(), c && c.length > 0 ? u || h(!m) : t && f(t));
@@ -261,7 +296,7 @@ var P = ({ groups: r, search: i, onSearch: a, onSelect: o, loading: u = !1, open
261
296
  })] }) : y, !u && c && c.length > 0 && m && /* @__PURE__ */ E("div", {
262
297
  className: e("flex flex-col ml-4 pl-4 border-l-2 border-sidebar-border/50 animate-in slide-in-from-top-2 fade-in duration-200", d ? "gap-0.5 mb-0.5" : "gap-1 mb-2"),
263
298
  children: c.map((t, n) => {
264
- let r = L(t.path, l, p);
299
+ let r = z(t.path, l, p);
265
300
  return /* @__PURE__ */ D("a", {
266
301
  href: t.path,
267
302
  onClick: (e) => {
@@ -275,8 +310,8 @@ var P = ({ groups: r, search: i, onSearch: a, onSelect: o, loading: u = !1, open
275
310
  }, n);
276
311
  })
277
312
  })] });
278
- }, z = ({ groups: n, currentPath: r, onItemClick: i, slots: o, search: s, dense: c = !1, loading: l = !1, showCloseButton: u = !0 }) => {
279
- let { t: f } = t(), { enabled: h = !1, placeholder: g } = s ?? {}, { header: y, footer: b } = o ?? {}, { collapsed: x, isMobile: T, setCollapsed: O } = C(), [k, A] = w.useState(""), j = !T && x, N = !x, P = (e) => {
313
+ }, V = ({ groups: n, currentPath: r, onItemClick: i, slots: o, search: s, dense: c = !1, loading: l = !1, showCloseButton: u = !0 }) => {
314
+ let { t: f } = t(), { enabled: h = !1, placeholder: g } = s ?? {}, { header: y, footer: b } = o ?? {}, { collapsed: x, isMobile: T, setCollapsed: O } = C(), [k, A] = w.useState(""), j = !T && x, M = !x, P = (e) => {
280
315
  i(e), T && O(!0);
281
316
  }, F = k.trim().toLowerCase(), I = F === "" ? n : n.map((e) => ({
282
317
  ...e,
@@ -289,7 +324,7 @@ var P = ({ groups: r, search: i, onSearch: a, onSelect: o, loading: u = !1, open
289
324
  className: e("px-4", c ? "pt-2" : "pt-4"),
290
325
  children: /* @__PURE__ */ D("div", {
291
326
  className: "relative",
292
- children: [/* @__PURE__ */ E(M, { className: "absolute left-3 top-1/2 size-4 -translate-y-1/2 text-sidebar-muted" }), /* @__PURE__ */ E(d, {
327
+ children: [/* @__PURE__ */ E(N, { className: "absolute left-3 top-1/2 size-4 -translate-y-1/2 text-sidebar-muted" }), /* @__PURE__ */ E(d, {
293
328
  type: "search",
294
329
  value: k,
295
330
  onChange: (e) => {
@@ -312,7 +347,7 @@ var P = ({ groups: r, search: i, onSearch: a, onSelect: o, loading: u = !1, open
312
347
  children: t.title
313
348
  }), /* @__PURE__ */ E("nav", {
314
349
  className: e("flex flex-col", c ? "gap-0.5" : "gap-1"),
315
- children: t.items.map((e, t) => /* @__PURE__ */ E(R, {
350
+ children: t.items.map((e, t) => /* @__PURE__ */ E(B, {
316
351
  ...e,
317
352
  currentPath: r,
318
353
  collapsed: j,
@@ -329,7 +364,7 @@ var P = ({ groups: r, search: i, onSearch: a, onSelect: o, loading: u = !1, open
329
364
  ]
330
365
  });
331
366
  return T ? /* @__PURE__ */ E(v, {
332
- open: N,
367
+ open: M,
333
368
  onOpenChange: (e) => {
334
369
  O(!e);
335
370
  },
@@ -359,7 +394,7 @@ var P = ({ groups: r, search: i, onSearch: a, onSelect: o, loading: u = !1, open
359
394
  children: L
360
395
  })
361
396
  });
362
- }, B = ({ name: t = "appname", subName: n = "appsubname", icon: r, dense: i = !1 }) => {
397
+ }, H = ({ name: t = "appname", subName: n = "appsubname", icon: r, dense: i = !1 }) => {
363
398
  let { collapsed: a, isMobile: o } = C(), s = !o && a;
364
399
  return /* @__PURE__ */ D("div", {
365
400
  className: e("flex items-center flex-shrink-0 gap-3 px-4", i ? "h-14" : "h-16 md:h-20", s ? "justify-center" : ""),
@@ -377,7 +412,7 @@ var P = ({ groups: r, search: i, onSearch: a, onSelect: o, loading: u = !1, open
377
412
  })]
378
413
  })]
379
414
  });
380
- }, V = ({ collapsed: t, isMobile: r, onToggleSidebar: i, actionsNode: a, userMenuNode: o }) => /* @__PURE__ */ D("header", {
415
+ }, U = ({ collapsed: t, isMobile: r, onToggleSidebar: i, actionsNode: a, userMenuNode: o }) => /* @__PURE__ */ D("header", {
381
416
  className: e("fixed top-0 right-0 z-[60] h-16 md:h-20 bg-topbar text-topbar-foreground flex items-center justify-between px-4 transition-all duration-300", r && "left-0", !r && t && "left-[5rem]", !r && !t && "left-[16rem]"),
382
417
  tabIndex: -1,
383
418
  children: [/* @__PURE__ */ E("div", {
@@ -387,7 +422,7 @@ var P = ({ groups: r, search: i, onSearch: a, onSelect: o, loading: u = !1, open
387
422
  size: "icon",
388
423
  onClick: i,
389
424
  className: "text-topbar-foreground hover:bg-topbar-accent hover:text-topbar-accent-foreground",
390
- children: /* @__PURE__ */ E(j, { className: "size-4" })
425
+ children: /* @__PURE__ */ E(M, { className: "size-4" })
391
426
  })
392
427
  }), /* @__PURE__ */ D("div", {
393
428
  className: "flex items-center gap-2 md:gap-4 flex-shrink-0",
@@ -395,4 +430,4 @@ var P = ({ groups: r, search: i, onSearch: a, onSelect: o, loading: u = !1, open
395
430
  })]
396
431
  });
397
432
  //#endregion
398
- export { I as a, R as i, B as n, P as o, z as r, V as t };
433
+ export { R as a, B as i, H as n, I as o, V as r, U as t };
package/dist/pwa/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as e } from "../i18n-ClZK4zll.js";
1
+ import { t as e } from "../i18n-COxm2IKP.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-ClZK4zll.js";
3
+ import { t } from "./i18n-COxm2IKP.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-ClZK4zll.js";
2
- import "./ErrorAlert-D8XnPN0I.js";
1
+ import { t as e } from "./i18n-COxm2IKP.js";
2
+ import "./ErrorAlert-ZflPwfL1.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-ClZK4zll.js";
1
+ import { t as e } from "./i18n-COxm2IKP.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-CU6lGuO4.js";
4
+ import { t as d } from "./useTheme-DVDPwbQ2.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-Ces2VRou.js";
7
- import "./useLanguage-c7lPQ7eh.js";
6
+ import "./useDocumentTitle-wGdjZMx6.js";
7
+ import "./useLanguage-JlBoVxev.js";
8
8
  import "./constants/index.js";
9
- import "./useTheme-CU6lGuO4.js";
9
+ import "./useTheme-DVDPwbQ2.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-BjlRzLnc.js";
6
+ import "./sheet-B7qGvwk0.js";
7
7
  import "./select-KWMg2_7Z.js";
8
8
  import "./skeleton-D6Ga4BLw.js";
9
9
  import { t as r } from "./useScrollFade-D9kqJBDh.js";
@@ -267,7 +267,7 @@ var Ye = a.forwardRef(({ orientation: t = "horizontal", opts: n, setApi: r, plug
267
267
  e.key === "ArrowLeft" ? (e.preventDefault(), _()) : e.key === "ArrowRight" && (e.preventDefault(), v());
268
268
  }, [_, v]);
269
269
  return a.useEffect(() => {
270
- !f || !r || r(f);
270
+ f && r && r(f);
271
271
  }, [f, r]), a.useEffect(() => {
272
272
  if (f) return g(f), f.on("reInit", g), f.on("select", g), () => {
273
273
  f?.off("select", g);
@@ -1,4 +1,4 @@
1
- import { t as e } from "./i18n-ClZK4zll.js";
1
+ import { t as e } from "./i18n-COxm2IKP.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-ClZK4zll.js";
1
+ import { t as e } from "./i18n-COxm2IKP.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-ClZK4zll.js";
1
+ import { t as e } from "./i18n-COxm2IKP.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.313",
3
+ "version": "0.0.315",
4
4
  "description": "Krosoft shared React package",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -127,7 +127,7 @@
127
127
  "tailwindcss": "^3.4.19",
128
128
  "tsc-alias": "^1.9.4",
129
129
  "typescript": "^5.9.3",
130
- "vite": "^8.2.2",
130
+ "vite": "^8.3.0",
131
131
  "vite-plugin-pwa": "^1.3.0",
132
132
  "vitest": "^4.1.11"
133
133
  }