@krosoft/react 0.0.231 → 0.0.232
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.
- package/dist/{AppActions-QHJ6CP5w.js → AppActions-BG2sgghh.js} +1 -1
- package/dist/{AppSubTitle-BlwAxtMX.js → AppSubTitle-C3K23xXb.js} +1 -1
- package/dist/{AppVerticalTabs-C6MH4a0M.js → AppVerticalTabs-B05oTb_4.js} +2 -2
- package/dist/{ConfirmationDialog-CK65nSle.js → ConfirmationDialog-JR14pbWt.js} +4 -4
- package/dist/{DataTable-DYp_uFEn.js → DataTable-BHcadDqz.js} +2 -2
- package/dist/{ErrorAlert-BIQ2Te6B.js → ErrorAlert-BZGt1hH3.js} +1 -1
- package/dist/{ErrorState-ZtWe5C0s.js → ErrorState-0Op-bIn7.js} +1 -1
- package/dist/{GenericForm-B7L7NkrE.js → GenericForm-C6iW17Kx.js} +5 -5
- package/dist/{ImageInput-CBDkCEho.js → ImageInput-XRiPLRM6.js} +2 -2
- package/dist/{KpiCardsLayout-CUDfA-AP.js → KpiCardsLayout-Be1LHbN7.js} +4 -4
- package/dist/LanguageSelector-C3WSlVQx.js +46 -0
- package/dist/{MultiSelect-DWNOCqe1.js → MultiSelect-DCocjZB4.js} +2 -2
- package/dist/{PieChart-gP2QNrAQ.js → PieChart-Cf6q_Pxe.js} +1 -1
- package/dist/{SearchInput-Dkvaei9K.js → SearchInput-rza2llpC.js} +3 -3
- package/dist/{SkeletonCards-CQKcSQW3.js → SkeletonCards-vsneHkXf.js} +1 -1
- package/dist/{TableFilter-BXD7Es8j.js → TableFilter-CBNO2K6p.js} +4 -4
- package/dist/{ThemeSelector-BtQNjlYA.js → ThemeSelector-J-ZsBnI8.js} +2 -2
- package/dist/{Topbar-DYim779_.js → Topbar-Dkgmpwp8.js} +2 -2
- package/dist/components/core/cards/index.js +1 -1
- package/dist/components/core/charts/index.js +1 -1
- package/dist/components/core/dialogs/index.js +2 -2
- package/dist/components/core/filters/index.js +1 -1
- package/dist/components/core/forms/index.js +1 -1
- package/dist/components/core/index.d.ts +1 -0
- package/dist/components/core/index.d.ts.map +1 -1
- package/dist/components/core/index.js +63 -61
- package/dist/components/core/inputs/index.js +3 -3
- package/dist/components/core/language/LanguageSelector.d.ts +9 -0
- package/dist/components/core/language/LanguageSelector.d.ts.map +1 -0
- package/dist/components/core/language/index.d.ts +3 -0
- package/dist/components/core/language/index.d.ts.map +1 -0
- package/dist/components/core/language/index.js +4 -0
- package/dist/components/core/layouts/index.js +3 -3
- package/dist/components/core/navbar/index.js +1 -1
- package/dist/components/core/states/index.js +2 -2
- package/dist/components/core/table/index.js +1 -1
- package/dist/components/core/tabs/index.js +1 -1
- package/dist/components/core/theme/index.js +1 -1
- package/dist/components/index.js +103 -101
- package/dist/components/ui/index.js +1 -1
- package/dist/hooks/behavior/index.js +1 -1
- package/dist/hooks/index.js +16 -14
- package/dist/hooks/ui/index.d.ts +2 -0
- package/dist/hooks/ui/index.d.ts.map +1 -1
- package/dist/hooks/ui/index.js +17 -15
- package/dist/hooks/ui/useLanguage.d.ts +29 -0
- package/dist/hooks/ui/useLanguage.d.ts.map +1 -0
- package/dist/i18n/index.js +2 -2
- package/dist/i18n/krosoftLocales.d.ts +12 -0
- package/dist/i18n/krosoftLocales.d.ts.map +1 -1
- package/dist/{sheet-tuC_C3M3.js → sheet-DUrRR7MT.js} +1 -1
- package/dist/{useDateFnsLocale-C4oFFUWO.js → useDateFnsLocale-gHocxHFa.js} +1 -1
- package/dist/useKrosoftTranslation-DRD49kc-.js +45 -0
- package/dist/useLanguage-C9jI2nwn.js +19 -0
- package/dist/{usePage-D3WXYmjl.js → usePage-CLeciGbD.js} +1 -1
- package/dist/{useTheme-DyeQyPDL.js → useTheme-Bs43Wf48.js} +1 -1
- package/package.json +1 -1
- package/dist/useKrosoftTranslation-DtdbUewZ.js +0 -43
|
@@ -5,7 +5,7 @@ import "@radix-ui/react-aspect-ratio";
|
|
|
5
5
|
import { B as p } from "./tooltip-DVeqVwqV.js";
|
|
6
6
|
import "./chart-DntJZGxB.js";
|
|
7
7
|
import "@radix-ui/react-collapsible";
|
|
8
|
-
import "./sheet-
|
|
8
|
+
import "./sheet-DUrRR7MT.js";
|
|
9
9
|
import { MoreVerticalIcon as h } from "lucide-react";
|
|
10
10
|
import "react-resizable-panels";
|
|
11
11
|
import { c as i } from "./tailwind.helper-B6yFEsav.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useTranslation as l } from "react-i18next";
|
|
3
|
-
import { A as m } from "./AppActions-
|
|
3
|
+
import { A as m } from "./AppActions-BG2sgghh.js";
|
|
4
4
|
function f({ titleKey: s, actions: t, className: o }) {
|
|
5
5
|
const { t: r } = l();
|
|
6
6
|
return /* @__PURE__ */ i("div", { className: "flex flex-col sm:flex-row sm:items-center justify-between gap-4", children: [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as n, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { C as w, d as S, a as T } from "./chart-DntJZGxB.js";
|
|
3
|
-
import { A as b } from "./AppActions-
|
|
3
|
+
import { A as b } from "./AppActions-BG2sgghh.js";
|
|
4
4
|
import { A as C } from "./AppTitle-D15YXeMx.js";
|
|
5
5
|
import { bi as A, bk as P, bl as k, bj as j, b5 as z } from "./toggle-group-DLLrEwv2.js";
|
|
6
6
|
import { useRef as K, useEffect as V } from "react";
|
|
@@ -10,7 +10,7 @@ import { c as R } from "./tailwind.helper-B6yFEsav.js";
|
|
|
10
10
|
import { S as q, h as I, i as L, a as H, c as U } from "./select-BpjFWqAY.js";
|
|
11
11
|
import { ConstructionIcon as v } from "lucide-react";
|
|
12
12
|
import "date-fns/locale";
|
|
13
|
-
import { u as D } from "./useKrosoftTranslation-
|
|
13
|
+
import { u as D } from "./useKrosoftTranslation-DRD49kc-.js";
|
|
14
14
|
function E({ titleKey: s, descriptionKey: t, actions: c = [], className: l }) {
|
|
15
15
|
return /* @__PURE__ */ n("div", { className: "flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between", children: [
|
|
16
16
|
/* @__PURE__ */ a(C, { titleKey: s, descriptionKey: t, isSubTitle: !0 }),
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as e, jsxs as r, Fragment as M } from "react/jsx-runtime";
|
|
2
2
|
import "date-fns/locale";
|
|
3
3
|
import { useTranslation as O } from "react-i18next";
|
|
4
|
-
import { u as R } from "./useKrosoftTranslation-
|
|
4
|
+
import { u as R } from "./useKrosoftTranslation-DRD49kc-.js";
|
|
5
5
|
import { P as W, d as X, g as $, j, k as q, h as T, i as J, f as Q } from "./toggle-group-DLLrEwv2.js";
|
|
6
6
|
import { A as U, a as V } from "./alert-B9F1N9Qk.js";
|
|
7
7
|
import "@radix-ui/react-aspect-ratio";
|
|
8
8
|
import { B as v } from "./tooltip-DVeqVwqV.js";
|
|
9
9
|
import "./chart-DntJZGxB.js";
|
|
10
10
|
import "@radix-ui/react-collapsible";
|
|
11
|
-
import { D as Y, b as Z, e as _, h as L, c as ee } from "./sheet-
|
|
11
|
+
import { D as Y, b as Z, e as _, h as L, c as ee } from "./sheet-DUrRR7MT.js";
|
|
12
12
|
import { AlertCircleIcon as le, X as S, Save as I, Pen as K } from "lucide-react";
|
|
13
13
|
import "react-resizable-panels";
|
|
14
14
|
import "clsx";
|
|
@@ -17,8 +17,8 @@ import "./select-BpjFWqAY.js";
|
|
|
17
17
|
import "next-themes";
|
|
18
18
|
import "sonner";
|
|
19
19
|
import { useState as A, useEffect as ie } from "react";
|
|
20
|
-
import { G as re } from "./GenericForm-
|
|
21
|
-
import { E as se } from "./ErrorAlert-
|
|
20
|
+
import { G as re } from "./GenericForm-C6iW17Kx.js";
|
|
21
|
+
import { E as se } from "./ErrorAlert-BZGt1hH3.js";
|
|
22
22
|
function te({ open: t, onOpenChange: d, config: l, isLoading: u, error: s, children: p }) {
|
|
23
23
|
const { t: i } = O(), { title: b, description: c, icon: f, maxWidth: g = "sm:max-w-xl", actions: n } = l;
|
|
24
24
|
return /* @__PURE__ */ e(Y, { open: t, onOpenChange: d, children: /* @__PURE__ */ r(Z, { className: `${g} max-h-[100dvh] sm:max-h-[90vh] border-0 shadow-2xl p-0 flex flex-col overflow-hidden`, children: [
|
|
@@ -2,14 +2,14 @@ import { jsxs as d, jsx as e, Fragment as pe } from "react/jsx-runtime";
|
|
|
2
2
|
import { u as ye, a as xe } from "./useFixedColumns-CKZyu4PD.js";
|
|
3
3
|
import "date-fns/locale";
|
|
4
4
|
import "react-i18next";
|
|
5
|
-
import { u as K } from "./useKrosoftTranslation-
|
|
5
|
+
import { u as K } from "./useKrosoftTranslation-DRD49kc-.js";
|
|
6
6
|
import { a3 as J, ah as P, a5 as q, a7 as be, E as Q, a4 as ve } from "./toggle-group-DLLrEwv2.js";
|
|
7
7
|
import "./alert-B9F1N9Qk.js";
|
|
8
8
|
import "@radix-ui/react-aspect-ratio";
|
|
9
9
|
import { B as k } from "./tooltip-DVeqVwqV.js";
|
|
10
10
|
import "./chart-DntJZGxB.js";
|
|
11
11
|
import "@radix-ui/react-collapsible";
|
|
12
|
-
import "./sheet-
|
|
12
|
+
import "./sheet-DUrRR7MT.js";
|
|
13
13
|
import { MoreVerticalIcon as Ne, Loader2Icon as ke, AlertTriangleIcon as Se, GripVerticalIcon as Ce, ArrowUpIcon as we, ArrowDownIcon as ze, ArrowUpDownIcon as De, ChevronLeftIcon as Ie, ChevronRightIcon as je, SettingsIcon as Ae } from "lucide-react";
|
|
14
14
|
import "react-resizable-panels";
|
|
15
15
|
import "clsx";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import "date-fns/locale";
|
|
3
3
|
import "react-i18next";
|
|
4
|
-
import { u as a } from "./useKrosoftTranslation-
|
|
4
|
+
import { u as a } from "./useKrosoftTranslation-DRD49kc-.js";
|
|
5
5
|
import { A as n, a as c } from "./alert-B9F1N9Qk.js";
|
|
6
6
|
import { AlertTriangle as o } from "lucide-react";
|
|
7
7
|
const x = ({ error: s }) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as o, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import "date-fns/locale";
|
|
3
3
|
import "react-i18next";
|
|
4
|
-
import { u as s } from "./useKrosoftTranslation-
|
|
4
|
+
import { u as s } from "./useKrosoftTranslation-DRD49kc-.js";
|
|
5
5
|
const n = ({ message: r }) => {
|
|
6
6
|
const { t: e } = s();
|
|
7
7
|
return /* @__PURE__ */ o("div", { className: "p-6 border border-destructive bg-destructive/10 text-destructive rounded-surface animate-fade-in", children: [
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsx as r, jsxs as c } from "react/jsx-runtime";
|
|
2
2
|
import "date-fns/locale";
|
|
3
3
|
import { useTranslation as q } from "react-i18next";
|
|
4
|
-
import { u as D } from "./useKrosoftTranslation-
|
|
5
|
-
import { I as J } from "./ImageInput-
|
|
6
|
-
import { A as V } from "./AppSubTitle-
|
|
7
|
-
import { M as L } from "./MultiSelect-
|
|
4
|
+
import { u as D } from "./useKrosoftTranslation-DRD49kc-.js";
|
|
5
|
+
import { I as J } from "./ImageInput-XRiPLRM6.js";
|
|
6
|
+
import { A as V } from "./AppSubTitle-C3K23xXb.js";
|
|
7
|
+
import { M as L } from "./MultiSelect-DCocjZB4.js";
|
|
8
8
|
import { ai as Q, al as X, am as Y, an as $, aj as j, ao as F, bm as ee, E as te } from "./toggle-group-DLLrEwv2.js";
|
|
9
9
|
import "./alert-B9F1N9Qk.js";
|
|
10
10
|
import "@radix-ui/react-aspect-ratio";
|
|
11
11
|
import { B as P } from "./tooltip-DVeqVwqV.js";
|
|
12
12
|
import { C as ae, d as re, a as se } from "./chart-DntJZGxB.js";
|
|
13
13
|
import "@radix-ui/react-collapsible";
|
|
14
|
-
import { I as C } from "./sheet-
|
|
14
|
+
import { I as C } from "./sheet-DUrRR7MT.js";
|
|
15
15
|
import "lucide-react";
|
|
16
16
|
import "react-resizable-panels";
|
|
17
17
|
import { c as i } from "./tailwind.helper-B6yFEsav.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as e, jsxs as s } from "react/jsx-runtime";
|
|
2
2
|
import "date-fns/locale";
|
|
3
3
|
import "react-i18next";
|
|
4
|
-
import { u as x } from "./useKrosoftTranslation-
|
|
4
|
+
import { u as x } from "./useKrosoftTranslation-DRD49kc-.js";
|
|
5
5
|
import "./toggle-group-DLLrEwv2.js";
|
|
6
6
|
import "./alert-B9F1N9Qk.js";
|
|
7
7
|
import "@radix-ui/react-aspect-ratio";
|
|
8
8
|
import { B as N } from "./tooltip-DVeqVwqV.js";
|
|
9
9
|
import "./chart-DntJZGxB.js";
|
|
10
10
|
import "@radix-ui/react-collapsible";
|
|
11
|
-
import "./sheet-
|
|
11
|
+
import "./sheet-DUrRR7MT.js";
|
|
12
12
|
import { XIcon as w, ImageIcon as y, UploadIcon as I } from "lucide-react";
|
|
13
13
|
import "react-resizable-panels";
|
|
14
14
|
import { c as p } from "./tailwind.helper-B6yFEsav.js";
|
|
@@ -5,7 +5,7 @@ import "@radix-ui/react-aspect-ratio";
|
|
|
5
5
|
import { B as c } from "./tooltip-DVeqVwqV.js";
|
|
6
6
|
import "./chart-DntJZGxB.js";
|
|
7
7
|
import "@radix-ui/react-collapsible";
|
|
8
|
-
import "./sheet-
|
|
8
|
+
import "./sheet-DUrRR7MT.js";
|
|
9
9
|
import { ArrowLeftIcon as l } from "lucide-react";
|
|
10
10
|
import "react-resizable-panels";
|
|
11
11
|
import "clsx";
|
|
@@ -14,14 +14,14 @@ import "./select-BpjFWqAY.js";
|
|
|
14
14
|
import "next-themes";
|
|
15
15
|
import "sonner";
|
|
16
16
|
import "react";
|
|
17
|
-
import { A as f } from "./AppActions-
|
|
17
|
+
import { A as f } from "./AppActions-BG2sgghh.js";
|
|
18
18
|
import { A as d } from "./AppTitle-D15YXeMx.js";
|
|
19
19
|
import { u } from "./useDocumentTitle-WNwdPz-I.js";
|
|
20
20
|
import { useTranslation as g } from "react-i18next";
|
|
21
21
|
import "@krosoft/core/helpers";
|
|
22
|
-
import { b as h, a as x } from "./SkeletonCards-
|
|
22
|
+
import { b as h, a as x } from "./SkeletonCards-vsneHkXf.js";
|
|
23
23
|
import "date-fns/locale";
|
|
24
|
-
import { E as A } from "./ErrorState-
|
|
24
|
+
import { E as A } from "./ErrorState-0Op-bIn7.js";
|
|
25
25
|
function P({
|
|
26
26
|
icon: t,
|
|
27
27
|
titleKey: i,
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { jsx as e, jsxs as s } from "react/jsx-runtime";
|
|
2
|
+
import "date-fns/locale";
|
|
3
|
+
import "react-i18next";
|
|
4
|
+
import { u } from "./useKrosoftTranslation-DRD49kc-.js";
|
|
5
|
+
import { b as h, T as g, c as f, B as v, a as p } from "./tooltip-DVeqVwqV.js";
|
|
6
|
+
import { S as b, h as T, i as N, a as x, c as S } from "./select-BpjFWqAY.js";
|
|
7
|
+
import { u as C } from "./useLanguage-C9jI2nwn.js";
|
|
8
|
+
import { LanguagesIcon as t } from "lucide-react";
|
|
9
|
+
function K({ languageOptions: o, variant: i = "select" }) {
|
|
10
|
+
const { t: r } = u(), { currentLanguageOption: a, nextLanguageOption: c, changeLanguage: n, cycleLanguage: m } = C(o);
|
|
11
|
+
if (i === "mini") {
|
|
12
|
+
const l = (a == null ? void 0 : a.icon) ?? t;
|
|
13
|
+
return /* @__PURE__ */ e(h, { children: /* @__PURE__ */ s(g, { children: [
|
|
14
|
+
/* @__PURE__ */ e(f, { asChild: !0, children: /* @__PURE__ */ s(
|
|
15
|
+
v,
|
|
16
|
+
{
|
|
17
|
+
variant: "ghost",
|
|
18
|
+
size: "icon",
|
|
19
|
+
onClick: m,
|
|
20
|
+
className: "text-sidebar-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
|
|
21
|
+
children: [
|
|
22
|
+
/* @__PURE__ */ e(l, { className: "size-4" }),
|
|
23
|
+
/* @__PURE__ */ e("span", { className: "sr-only", children: r("language.current", { language: (a == null ? void 0 : a.label) ?? "" }) })
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
) }),
|
|
27
|
+
/* @__PURE__ */ e(p, { side: "bottom", align: "center", children: r("language.switchTo", { language: (c == null ? void 0 : c.label) ?? "" }) })
|
|
28
|
+
] }) });
|
|
29
|
+
}
|
|
30
|
+
return /* @__PURE__ */ s("div", { className: "space-y-2", children: [
|
|
31
|
+
/* @__PURE__ */ s(b, { value: a == null ? void 0 : a.value, onValueChange: n, children: [
|
|
32
|
+
/* @__PURE__ */ e(T, { className: "w-full", children: /* @__PURE__ */ e(N, { placeholder: r("select.language") }) }),
|
|
33
|
+
/* @__PURE__ */ e(x, { children: o.map((l) => {
|
|
34
|
+
const d = l.icon ?? t;
|
|
35
|
+
return /* @__PURE__ */ e(S, { value: l.value, children: /* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
|
|
36
|
+
/* @__PURE__ */ e(d, { className: "size-4" }),
|
|
37
|
+
l.label
|
|
38
|
+
] }) }, l.value);
|
|
39
|
+
}) })
|
|
40
|
+
] }),
|
|
41
|
+
/* @__PURE__ */ e("p", { className: "text-sm text-muted-foreground", children: r("language.description") })
|
|
42
|
+
] });
|
|
43
|
+
}
|
|
44
|
+
export {
|
|
45
|
+
K as L
|
|
46
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as l, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import "date-fns/locale";
|
|
3
3
|
import "react-i18next";
|
|
4
|
-
import { u as O } from "./useKrosoftTranslation-
|
|
4
|
+
import { u as O } from "./useKrosoftTranslation-DRD49kc-.js";
|
|
5
5
|
import { useState as L, useRef as T, useMemo as x, useEffect as z } from "react";
|
|
6
6
|
import { E as I } from "./toggle-group-DLLrEwv2.js";
|
|
7
7
|
import "./alert-B9F1N9Qk.js";
|
|
@@ -9,7 +9,7 @@ import "@radix-ui/react-aspect-ratio";
|
|
|
9
9
|
import { f as P } from "./tooltip-DVeqVwqV.js";
|
|
10
10
|
import "./chart-DntJZGxB.js";
|
|
11
11
|
import "@radix-ui/react-collapsible";
|
|
12
|
-
import "./sheet-
|
|
12
|
+
import "./sheet-DUrRR7MT.js";
|
|
13
13
|
import { XIcon as q, ChevronDownIcon as S, SearchIcon as F } from "lucide-react";
|
|
14
14
|
import "react-resizable-panels";
|
|
15
15
|
import { c as R } from "./tailwind.helper-B6yFEsav.js";
|
|
@@ -5,7 +5,7 @@ import * as v from "react";
|
|
|
5
5
|
import { BarChart as b, CartesianGrid as M, XAxis as w, YAxis as D, Bar as j, LineChart as O, Line as _, PieChart as $, Pie as E } from "recharts";
|
|
6
6
|
import "date-fns/locale";
|
|
7
7
|
import "react-i18next";
|
|
8
|
-
import { u as I } from "./useKrosoftTranslation-
|
|
8
|
+
import { u as I } from "./useKrosoftTranslation-DRD49kc-.js";
|
|
9
9
|
import { S as G } from "./skeleton-BX4RcsiK.js";
|
|
10
10
|
import { u as z } from "./useMobile-DN1_OMDB.js";
|
|
11
11
|
const L = (t, r) => t ? (n, s) => /* @__PURE__ */ d("div", { className: "flex flex-1 justify-between gap-4", children: [
|
|
@@ -7,7 +7,7 @@ import "@radix-ui/react-aspect-ratio";
|
|
|
7
7
|
import { B as v, f as H } from "./tooltip-DVeqVwqV.js";
|
|
8
8
|
import "./chart-DntJZGxB.js";
|
|
9
9
|
import "@radix-ui/react-collapsible";
|
|
10
|
-
import { C as J, m as Q, o as U, k as W, l as Y, n as T, I as Z } from "./sheet-
|
|
10
|
+
import { C as J, m as Q, o as U, k as W, l as Y, n as T, I as Z } from "./sheet-DUrRR7MT.js";
|
|
11
11
|
import { CalendarIcon as O, XIcon as I, ChevronDownIcon as ee, CheckIcon as te, PlusIcon as re, SearchIcon as oe } from "lucide-react";
|
|
12
12
|
import "react-resizable-panels";
|
|
13
13
|
import { c as g } from "./tailwind.helper-B6yFEsav.js";
|
|
@@ -15,9 +15,9 @@ import "./select-BpjFWqAY.js";
|
|
|
15
15
|
import "next-themes";
|
|
16
16
|
import "sonner";
|
|
17
17
|
import { format as x } from "date-fns";
|
|
18
|
-
import { u as V } from "./useDateFnsLocale-
|
|
18
|
+
import { u as V } from "./useDateFnsLocale-gHocxHFa.js";
|
|
19
19
|
import "react-i18next";
|
|
20
|
-
import { u as P } from "./useKrosoftTranslation-
|
|
20
|
+
import { u as P } from "./useKrosoftTranslation-DRD49kc-.js";
|
|
21
21
|
import "date-fns/locale";
|
|
22
22
|
const ze = ({ date: r, onDateChange: l, placeholder: p }) => {
|
|
23
23
|
const f = V(), [a, c] = S(!1), d = G(null);
|
|
@@ -8,7 +8,7 @@ import "@radix-ui/react-aspect-ratio";
|
|
|
8
8
|
import "./tooltip-DVeqVwqV.js";
|
|
9
9
|
import { C as c, d as p, e as v, a as h } from "./chart-DntJZGxB.js";
|
|
10
10
|
import "@radix-ui/react-collapsible";
|
|
11
|
-
import "./sheet-
|
|
11
|
+
import "./sheet-DUrRR7MT.js";
|
|
12
12
|
import "lucide-react";
|
|
13
13
|
import "react-resizable-panels";
|
|
14
14
|
import "./select-BpjFWqAY.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as u, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import "date-fns/locale";
|
|
3
3
|
import "react-i18next";
|
|
4
|
-
import { u as w } from "./useKrosoftTranslation-
|
|
4
|
+
import { u as w } from "./useKrosoftTranslation-DRD49kc-.js";
|
|
5
5
|
import { useState as C, useEffect as O, useMemo as S } from "react";
|
|
6
|
-
import { a as z, D as I, b as $, S as B } from "./SearchInput-
|
|
6
|
+
import { a as z, D as I, b as $, S as B } from "./SearchInput-rza2llpC.js";
|
|
7
7
|
import { getLocale as Q } from "@krosoft/core/helpers";
|
|
8
8
|
import { B as E, aw as V, b0 as _, b2 as R, b1 as H, E as P } from "./toggle-group-DLLrEwv2.js";
|
|
9
9
|
import "./alert-B9F1N9Qk.js";
|
|
@@ -11,7 +11,7 @@ import "@radix-ui/react-aspect-ratio";
|
|
|
11
11
|
import { B as F, e as K } from "./tooltip-DVeqVwqV.js";
|
|
12
12
|
import "./chart-DntJZGxB.js";
|
|
13
13
|
import "@radix-ui/react-collapsible";
|
|
14
|
-
import { I as L, S as X, z as G, s as J, v as U, y as W, u as Y } from "./sheet-
|
|
14
|
+
import { I as L, S as X, z as G, s as J, v as U, y as W, u as Y } from "./sheet-DUrRR7MT.js";
|
|
15
15
|
import { XIcon as T, Filter as Z, ChevronDown as q, Search as ee } from "lucide-react";
|
|
16
16
|
import "react-resizable-panels";
|
|
17
17
|
import "clsx";
|
|
@@ -20,7 +20,7 @@ import { S as re, h as te, i as le, a as ae, c as se } from "./select-BpjFWqAY.j
|
|
|
20
20
|
import "next-themes";
|
|
21
21
|
import "sonner";
|
|
22
22
|
import { c as j } from "./tailwind.helper-B6yFEsav.js";
|
|
23
|
-
import { M as ne } from "./MultiSelect-
|
|
23
|
+
import { M as ne } from "./MultiSelect-DCocjZB4.js";
|
|
24
24
|
const D = (a, n, c, i = {}) => {
|
|
25
25
|
if (n instanceof Date)
|
|
26
26
|
return n.toLocaleDateString(Q());
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as a, jsxs as l } from "react/jsx-runtime";
|
|
2
2
|
import "date-fns/locale";
|
|
3
3
|
import "react-i18next";
|
|
4
|
-
import { u as h } from "./useKrosoftTranslation-
|
|
4
|
+
import { u as h } from "./useKrosoftTranslation-DRD49kc-.js";
|
|
5
5
|
import { b as u, T as g, c as f, B as v, a as b } from "./tooltip-DVeqVwqV.js";
|
|
6
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-
|
|
7
|
+
import { u as S } from "./useTheme-Bs43Wf48.js";
|
|
8
8
|
function k({ themeOptions: c, variant: t = "select" }) {
|
|
9
9
|
const { t: o } = h(), { theme: i, handleThemeChange: n, currentThemeOption: e, nextThemeOption: r, cycleTheme: m } = S(c);
|
|
10
10
|
if (t === "mini") {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsxs as i, Fragment as $, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import "date-fns/locale";
|
|
3
3
|
import "react-i18next";
|
|
4
|
-
import { u as G } from "./useKrosoftTranslation-
|
|
4
|
+
import { u as G } from "./useKrosoftTranslation-DRD49kc-.js";
|
|
5
5
|
import * as A from "react";
|
|
6
6
|
import { SearchIcon as W, LoaderCircleIcon as F, ChevronDownIcon as M, MenuIcon as Q } from "lucide-react";
|
|
7
7
|
import { c as o } from "./tailwind.helper-B6yFEsav.js";
|
|
8
8
|
import { B as R, T as q, c as H, a as U, b as V } from "./tooltip-DVeqVwqV.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-
|
|
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-DUrRR7MT.js";
|
|
10
10
|
import "./sidebar.context-D5nywlmP.js";
|
|
11
11
|
import { u as B } from "./useSidebar-BJuALHqQ.js";
|
|
12
12
|
import "next-themes";
|
|
@@ -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-
|
|
2
|
+
import { K as o, a as C, S as t, b as p } from "../../../SkeletonCards-vsneHkXf.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-
|
|
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-Cf6q_Pxe.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-
|
|
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-
|
|
1
|
+
import { A as i, C as s, F as g } from "../../../ConfirmationDialog-JR14pbWt.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-DUrRR7MT.js";
|
|
3
3
|
import { P } from "../../../toggle-group-DLLrEwv2.js";
|
|
4
4
|
export {
|
|
5
5
|
i as AppDialog,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC"}
|
|
@@ -1,94 +1,96 @@
|
|
|
1
1
|
import { D as r, M as o } from "../../MetricCard-B0xnFyim.js";
|
|
2
|
-
import { K as t, a as
|
|
3
|
-
import { B as m, a as C, C as
|
|
4
|
-
import { A as
|
|
5
|
-
import { D as F, a as
|
|
2
|
+
import { K as t, a as l, S as i, b as p } from "../../SkeletonCards-vsneHkXf.js";
|
|
3
|
+
import { B as m, a as C, C as n, b, c as A, L as f, P as c, g as d } from "../../PieChart-Cf6q_Pxe.js";
|
|
4
|
+
import { A as T, C as x, F as D } from "../../ConfirmationDialog-JR14pbWt.js";
|
|
5
|
+
import { D as F, a as L, b as P, c as u, d as E, e as H, f as I, g as K, h as O, i as M } from "../../sheet-DUrRR7MT.js";
|
|
6
6
|
import { P as B } from "../../toggle-group-DLLrEwv2.js";
|
|
7
|
-
import { A as N, a as _, F as v, S as y, T as R } from "../../TableFilter-
|
|
8
|
-
import { G as V } from "../../GenericForm-
|
|
9
|
-
import { I as z } from "../../ImageInput-
|
|
10
|
-
import { D as q, a as w, S as J, b as Q } from "../../SearchInput-
|
|
11
|
-
import { M as X } from "../../MultiSelect-
|
|
12
|
-
import {
|
|
13
|
-
import { A as ea
|
|
14
|
-
import { A as sa } from "../../
|
|
15
|
-
import { A as
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import { E as
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { A as
|
|
22
|
-
import {
|
|
7
|
+
import { A as N, a as _, F as v, S as y, T as R } from "../../TableFilter-CBNO2K6p.js";
|
|
8
|
+
import { G as V } from "../../GenericForm-C6iW17Kx.js";
|
|
9
|
+
import { I as z } from "../../ImageInput-XRiPLRM6.js";
|
|
10
|
+
import { D as q, a as w, S as J, b as Q } from "../../SearchInput-rza2llpC.js";
|
|
11
|
+
import { M as X } from "../../MultiSelect-DCocjZB4.js";
|
|
12
|
+
import { L as $ } from "../../LanguageSelector-C3WSlVQx.js";
|
|
13
|
+
import { A as ea } from "../../AppActions-BG2sgghh.js";
|
|
14
|
+
import { A as oa, K as sa } from "../../KpiCardsLayout-Be1LHbN7.js";
|
|
15
|
+
import { A as la } from "../../AppSubTitle-C3K23xXb.js";
|
|
16
|
+
import { A as pa } from "../../AppTitle-D15YXeMx.js";
|
|
17
|
+
import { G as ma, S as Ca, a as na, b as ba, T as Aa } from "../../Topbar-Dkgmpwp8.js";
|
|
18
|
+
import { E as ca } from "../../ErrorAlert-BZGt1hH3.js";
|
|
19
|
+
import { E as Sa } from "../../ErrorState-0Op-bIn7.js";
|
|
20
|
+
import { L as xa } from "../../LoadingState-BN0YaPSs.js";
|
|
21
|
+
import { A as ha, D as Fa, S as La, T as Pa, a as ua, b as Ea, c as Ha, d as Ia, e as Ka, g as Oa, f as Ma, h as ka } from "../../DataTable-BHcadDqz.js";
|
|
22
|
+
import { A as Ga, a as Na, b as _a, c as va } from "../../AppVerticalTabs-B05oTb_4.js";
|
|
23
|
+
import { T as Ra } from "../../ThemeSelector-J-ZsBnI8.js";
|
|
23
24
|
export {
|
|
24
|
-
|
|
25
|
+
ha as ACTIONS_COLUMN_KEY,
|
|
25
26
|
N as ActiveFilters,
|
|
26
27
|
_ as AdvancedFilters,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
28
|
+
ea as AppActions,
|
|
29
|
+
T as AppDialog,
|
|
30
|
+
oa as AppPageHeader,
|
|
31
|
+
la as AppSubTitle,
|
|
32
|
+
Ga as AppTabContainer,
|
|
33
|
+
Na as AppTabHeader,
|
|
34
|
+
_a as AppTabs,
|
|
35
|
+
pa as AppTitle,
|
|
36
|
+
va as AppVerticalTabs,
|
|
36
37
|
m as BarChartHorizontal,
|
|
37
38
|
C as BarChartVertical,
|
|
38
|
-
|
|
39
|
-
|
|
39
|
+
n as CHART_COLORS,
|
|
40
|
+
b as ChartCard,
|
|
40
41
|
A as CircularGauge,
|
|
41
42
|
x as ConfirmationDialog,
|
|
42
43
|
r as DashboardCard,
|
|
43
|
-
|
|
44
|
+
Fa as DataTable,
|
|
44
45
|
q as DatePicker,
|
|
45
46
|
w as DateRangePicker,
|
|
46
47
|
F as Dialog,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
L as DialogClose,
|
|
49
|
+
P as DialogContent,
|
|
50
|
+
u as DialogDescription,
|
|
50
51
|
E as DialogFooter,
|
|
51
52
|
H as DialogHeader,
|
|
52
53
|
I as DialogOverlay,
|
|
53
54
|
K as DialogPortal,
|
|
54
55
|
O as DialogTitle,
|
|
55
56
|
M as DialogTrigger,
|
|
56
|
-
|
|
57
|
-
|
|
57
|
+
ca as ErrorAlert,
|
|
58
|
+
Sa as ErrorState,
|
|
58
59
|
v as FilterField,
|
|
59
60
|
D as FormDialog,
|
|
60
61
|
V as GenericForm,
|
|
61
|
-
|
|
62
|
+
ma as GlobalSearch,
|
|
62
63
|
z as ImageInput,
|
|
63
64
|
t as KpiCard,
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
65
|
+
l as KpiCards,
|
|
66
|
+
sa as KpiCardsLayout,
|
|
67
|
+
$ as LanguageSelector,
|
|
68
|
+
f as LineChart,
|
|
69
|
+
xa as LoadingState,
|
|
68
70
|
o as MetricCard,
|
|
69
71
|
X as MultiSelect,
|
|
70
|
-
|
|
72
|
+
c as PieChart,
|
|
71
73
|
B as Progress,
|
|
72
|
-
|
|
74
|
+
La as SELECTION_COLUMN_KEY,
|
|
73
75
|
J as SearchInput,
|
|
74
76
|
y as SearchableFilterPill,
|
|
75
77
|
Q as SearchableSelect,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
Ca as Sidebar,
|
|
79
|
+
na as SidebarHeader,
|
|
80
|
+
ba as SidebarNavItem,
|
|
81
|
+
i as SkeletonCard,
|
|
80
82
|
p as SkeletonCards,
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
83
|
+
Pa as TableActions,
|
|
84
|
+
ua as TableBody,
|
|
85
|
+
Ea as TableBulkActions,
|
|
84
86
|
R as TableFilter,
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
87
|
+
Ha as TableHeader,
|
|
88
|
+
Ia as TablePagination,
|
|
89
|
+
Ka as TableSettings,
|
|
90
|
+
Ra as ThemeSelector,
|
|
91
|
+
Aa as Topbar,
|
|
92
|
+
Oa as getAlignmentClass,
|
|
93
|
+
d as getChartColor,
|
|
94
|
+
Ma as getColumnAlignment,
|
|
95
|
+
ka as getFixedCellProps
|
|
94
96
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { I as r } from "../../../ImageInput-
|
|
2
|
-
import { D as c, a as o, S as s, b as p } from "../../../SearchInput-
|
|
3
|
-
import { M as l } from "../../../MultiSelect-
|
|
1
|
+
import { I as r } from "../../../ImageInput-XRiPLRM6.js";
|
|
2
|
+
import { D as c, a as o, S as s, b as p } from "../../../SearchInput-rza2llpC.js";
|
|
3
|
+
import { M as l } from "../../../MultiSelect-DCocjZB4.js";
|
|
4
4
|
export {
|
|
5
5
|
c as DatePicker,
|
|
6
6
|
o as DateRangePicker,
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { type LanguageOption } from "../../../hooks/ui/useLanguage";
|
|
3
|
+
interface LanguageSelectorProps {
|
|
4
|
+
languageOptions: readonly LanguageOption[];
|
|
5
|
+
variant?: "select" | "mini";
|
|
6
|
+
}
|
|
7
|
+
export declare function LanguageSelector({ languageOptions, variant }: LanguageSelectorProps): React.JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=LanguageSelector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LanguageSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/core/language/LanguageSelector.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAe,KAAK,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAG1E,UAAU,qBAAqB;IAC7B,eAAe,EAAE,SAAS,cAAc,EAAE,CAAC;IAC3C,OAAO,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;CAC7B;AAED,wBAAgB,gBAAgB,CAAC,EAAE,eAAe,EAAE,OAAkB,EAAE,EAAE,qBAAqB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAqDlH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/core/language/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,YAAY,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as r } from "../../../AppActions-
|
|
2
|
-
import { A as e, K as A } from "../../../KpiCardsLayout-
|
|
3
|
-
import { A as s } from "../../../AppSubTitle-
|
|
1
|
+
import { A as r } from "../../../AppActions-BG2sgghh.js";
|
|
2
|
+
import { A as e, K as A } from "../../../KpiCardsLayout-Be1LHbN7.js";
|
|
3
|
+
import { A as s } from "../../../AppSubTitle-C3K23xXb.js";
|
|
4
4
|
import { A as i } from "../../../AppTitle-D15YXeMx.js";
|
|
5
5
|
export {
|
|
6
6
|
r as AppActions,
|