@krosoft/react 0.0.112 → 0.0.114
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/ErrorState-vU8d4CwD.js +8 -0
- package/dist/KpiCardsLayout-CETMpB7A.js +15 -0
- package/dist/LoadingState-PhGi7HXH.js +9 -0
- package/dist/MetricCard-C-ewNR_i.js +53 -0
- package/dist/SkeletonCards-C5lXTSrB.js +57 -0
- package/dist/components/core/cards/index.js +7 -6
- package/dist/components/core/index.js +63 -59
- package/dist/components/core/layouts/KpiCardsLayout.d.ts +9 -0
- package/dist/components/core/layouts/KpiCardsLayout.d.ts.map +1 -0
- package/dist/components/core/layouts/index.d.ts +1 -0
- package/dist/components/core/layouts/index.d.ts.map +1 -1
- package/dist/components/core/layouts/index.js +8 -6
- package/dist/components/core/states/index.js +3 -2
- package/dist/components/index.js +281 -277
- package/package.json +2 -2
- package/dist/LoadingState-_mcS4fs9.js +0 -13
- package/dist/SkeletonCards-CTUG28vD.js +0 -103
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsxs as t, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
const s = ({ message: e }) => /* @__PURE__ */ t("div", { className: "p-6 border border-destructive bg-destructive/10 text-destructive rounded-md animate-fade-in", children: [
|
|
3
|
+
/* @__PURE__ */ r("p", { className: "font-semibold mb-2", children: "Une erreur est survenue." }),
|
|
4
|
+
e !== void 0 && e !== "" ? /* @__PURE__ */ r("p", { className: "text-sm opacity-80", children: e }) : null
|
|
5
|
+
] });
|
|
6
|
+
export {
|
|
7
|
+
s as E
|
|
8
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import "./toggle-group-wIgXZYDq.js";
|
|
3
|
+
import "react-i18next";
|
|
4
|
+
import "@krosoft/core/helpers";
|
|
5
|
+
import "./alert-B34E_4uH.js";
|
|
6
|
+
import "./tooltip-YhBPXbcJ.js";
|
|
7
|
+
import "./select-DlQvLtI3.js";
|
|
8
|
+
import "next-themes";
|
|
9
|
+
import "react";
|
|
10
|
+
import { b as i, a as p } from "./SkeletonCards-C5lXTSrB.js";
|
|
11
|
+
import { E as s } from "./ErrorState-vU8d4CwD.js";
|
|
12
|
+
const E = ({ stats: o, isLoading: m, error: t }) => m ? /* @__PURE__ */ r(i, { count: 4 }) : t ? /* @__PURE__ */ r(s, { message: t.message }) : /* @__PURE__ */ r(p, { stats: o });
|
|
13
|
+
export {
|
|
14
|
+
E as K
|
|
15
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsxs as i, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { L as r } from "./loader-circle-CKy7u7JW.js";
|
|
3
|
+
const o = ({ message: e }) => /* @__PURE__ */ i("div", { className: "flex flex-col items-center justify-center p-12 text-muted-foreground animate-fade-in", children: [
|
|
4
|
+
/* @__PURE__ */ t(r, { className: "size-8 animate-spin mb-4 text-primary" }),
|
|
5
|
+
e !== void 0 && e !== "" ? /* @__PURE__ */ t("p", { className: "font-semibold text-sm", children: e }) : null
|
|
6
|
+
] });
|
|
7
|
+
export {
|
|
8
|
+
o as L
|
|
9
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { I as l, M as h, N as m, J as g } from "./toggle-group-wIgXZYDq.js";
|
|
3
|
+
import { c as b } from "./tailwind.helper-gWiv5-6R.js";
|
|
4
|
+
import { useTranslation as p } from "react-i18next";
|
|
5
|
+
const M = ({ titleKey: t, icon: s, className: n, children: a }) => {
|
|
6
|
+
const { t: i } = p();
|
|
7
|
+
return /* @__PURE__ */ r(l, { className: b("bg-gray-50 dark:bg-gray-950", n), children: [
|
|
8
|
+
/* @__PURE__ */ e(h, { children: /* @__PURE__ */ r(m, { className: "flex items-center gap-2", children: [
|
|
9
|
+
s && /* @__PURE__ */ e(s, { className: "mr-2 size-4" }),
|
|
10
|
+
/* @__PURE__ */ e("span", { children: i(t) })
|
|
11
|
+
] }) }),
|
|
12
|
+
/* @__PURE__ */ e(g, { children: a })
|
|
13
|
+
] });
|
|
14
|
+
}, w = {
|
|
15
|
+
blue: "bg-gradient-to-br from-blue-500 to-cyan-500 text-white",
|
|
16
|
+
green: "bg-gradient-to-br from-green-500 to-emerald-500 text-white",
|
|
17
|
+
orange: "bg-gradient-to-br from-orange-500 to-yellow-500 text-white",
|
|
18
|
+
red: "bg-gradient-to-br from-red-500 to-pink-500 text-white",
|
|
19
|
+
purple: "bg-gradient-to-br from-purple-500 to-indigo-500 text-white",
|
|
20
|
+
accent: "bg-accent/10 text-accent",
|
|
21
|
+
success: "bg-success/10 text-success",
|
|
22
|
+
info: "bg-info/10 text-info",
|
|
23
|
+
warning: "bg-warning/10 text-warning",
|
|
24
|
+
destructive: "bg-destructive/10 text-destructive"
|
|
25
|
+
}, N = {
|
|
26
|
+
sm: "size-4",
|
|
27
|
+
md: "size-5",
|
|
28
|
+
lg: "size-6"
|
|
29
|
+
}, v = (t) => t === "up" ? "↑" : t === "down" ? "↓" : "", C = (t) => t === "up" ? "text-green-600" : t === "down" ? "text-red-600" : "text-muted-foreground", k = ({ title: t, value: s, unit: n, subtitle: a, icon: i, iconSize: x = "md", trend: o, trendValue: d, color: u = "blue", children: c }) => {
|
|
30
|
+
const f = i;
|
|
31
|
+
return /* @__PURE__ */ e(l, { className: "relative overflow-hidden bg-card border shadow-lg hover:shadow-xl transition-all duration-300", children: /* @__PURE__ */ r(g, { className: "pt-6", children: [
|
|
32
|
+
/* @__PURE__ */ r("div", { className: "flex items-start justify-between", children: [
|
|
33
|
+
/* @__PURE__ */ r("div", { children: [
|
|
34
|
+
/* @__PURE__ */ e(m, { className: "text-sm font-medium text-muted-foreground", children: t }),
|
|
35
|
+
/* @__PURE__ */ r("div", { className: "flex items-baseline space-x-2 mt-1", children: [
|
|
36
|
+
/* @__PURE__ */ e("div", { className: "text-2xl font-bold text-card-foreground", children: typeof s == "number" ? s.toFixed(1) : s }),
|
|
37
|
+
n && /* @__PURE__ */ e("div", { className: "text-sm text-muted-foreground font-medium", children: n })
|
|
38
|
+
] }),
|
|
39
|
+
a && /* @__PURE__ */ e("div", { className: "mt-1 text-xs text-muted-foreground", children: a }),
|
|
40
|
+
o && d && /* @__PURE__ */ r("div", { className: `flex items-center space-x-1 mt-2 text-xs ${C(o)}`, children: [
|
|
41
|
+
/* @__PURE__ */ e("span", { children: v(o) }),
|
|
42
|
+
/* @__PURE__ */ e("span", { children: d })
|
|
43
|
+
] })
|
|
44
|
+
] }),
|
|
45
|
+
/* @__PURE__ */ e("div", { className: `p-2 rounded-lg ${w[u]} shadow-lg`, children: /* @__PURE__ */ e(f, { className: N[x] }) })
|
|
46
|
+
] }),
|
|
47
|
+
c && /* @__PURE__ */ e("div", { className: "mt-4", children: c })
|
|
48
|
+
] }) });
|
|
49
|
+
};
|
|
50
|
+
export {
|
|
51
|
+
M as D,
|
|
52
|
+
k as M
|
|
53
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { jsxs as s, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { formatNumber as h } from "@krosoft/core/helpers";
|
|
3
|
+
import { useTranslation as C } from "react-i18next";
|
|
4
|
+
import { c as i } from "./tailwind.helper-gWiv5-6R.js";
|
|
5
|
+
import { I as m, M as o, N as f, J as n } from "./toggle-group-wIgXZYDq.js";
|
|
6
|
+
import "./alert-B34E_4uH.js";
|
|
7
|
+
import "./tooltip-YhBPXbcJ.js";
|
|
8
|
+
import "./select-DlQvLtI3.js";
|
|
9
|
+
import "next-themes";
|
|
10
|
+
import "react";
|
|
11
|
+
const g = ({
|
|
12
|
+
titleKey: a,
|
|
13
|
+
value: r,
|
|
14
|
+
valueClassName: d,
|
|
15
|
+
icon: c,
|
|
16
|
+
iconClassName: t,
|
|
17
|
+
description: p,
|
|
18
|
+
descriptionClassName: u,
|
|
19
|
+
onClick: l
|
|
20
|
+
}) => {
|
|
21
|
+
const { t: N } = C();
|
|
22
|
+
return /* @__PURE__ */ s(m, { className: i(l !== void 0 ? "hover:border-primary cursor-pointer" : ""), onClick: l, children: [
|
|
23
|
+
/* @__PURE__ */ s(o, { className: "flex flex-row items-center justify-between space-y-0 pb-2", children: [
|
|
24
|
+
/* @__PURE__ */ e(f, { className: "text-sm font-medium", children: N(a) }),
|
|
25
|
+
/* @__PURE__ */ e(c, { className: i("size-6 text-muted-foreground", t) })
|
|
26
|
+
] }),
|
|
27
|
+
/* @__PURE__ */ s(n, { children: [
|
|
28
|
+
/* @__PURE__ */ e("div", { className: i("text-2xl font-bold", d), children: h(r) }),
|
|
29
|
+
/* @__PURE__ */ e("p", { className: i("text-xs text-muted-foreground", u), children: p })
|
|
30
|
+
] })
|
|
31
|
+
] });
|
|
32
|
+
}, A = ({ stats: a }) => /* @__PURE__ */ e("div", { className: "grid gap-6 md:grid-cols-2 lg:grid-cols-4", children: a.map((r) => /* @__PURE__ */ e(
|
|
33
|
+
g,
|
|
34
|
+
{
|
|
35
|
+
titleKey: r.titleKey,
|
|
36
|
+
value: r.value,
|
|
37
|
+
valueClassName: r.valueClassName,
|
|
38
|
+
icon: r.icon,
|
|
39
|
+
iconClassName: r.iconClassName,
|
|
40
|
+
description: r.description,
|
|
41
|
+
descriptionClassName: r.descriptionClassName,
|
|
42
|
+
onClick: r.onClick
|
|
43
|
+
},
|
|
44
|
+
r.titleKey
|
|
45
|
+
)) }), v = () => /* @__PURE__ */ s(m, { className: "animate-pulse", children: [
|
|
46
|
+
/* @__PURE__ */ e(o, { children: /* @__PURE__ */ e("div", { className: "h-6 bg-muted rounded w-1/4" }) }),
|
|
47
|
+
/* @__PURE__ */ e(n, { children: /* @__PURE__ */ s("div", { className: "space-y-2", children: [
|
|
48
|
+
/* @__PURE__ */ e("div", { className: "h-4 bg-muted rounded" }),
|
|
49
|
+
/* @__PURE__ */ e("div", { className: "h-4 bg-muted rounded w-3/4" })
|
|
50
|
+
] }) })
|
|
51
|
+
] }), H = ({ count: a = 1 }) => /* @__PURE__ */ e("div", { className: "grid gap-6", style: { gridTemplateColumns: `repeat(${a}, minmax(0, 1fr))` }, children: Array.from({ length: a }).map((r, d) => /* @__PURE__ */ e(v, {}, d)) });
|
|
52
|
+
export {
|
|
53
|
+
g as K,
|
|
54
|
+
v as S,
|
|
55
|
+
A as a,
|
|
56
|
+
H as b
|
|
57
|
+
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { D as s,
|
|
1
|
+
import { D as s, M as d } from "../../../MetricCard-C-ewNR_i.js";
|
|
2
|
+
import { K as o, a as C, S as t, b as p } from "../../../SkeletonCards-C5lXTSrB.js";
|
|
2
3
|
export {
|
|
3
4
|
s as DashboardCard,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
o as KpiCard,
|
|
6
|
+
C as KpiCards,
|
|
7
|
+
d as MetricCard,
|
|
8
|
+
t as SkeletonCard,
|
|
9
|
+
p as SkeletonCards
|
|
9
10
|
};
|
|
@@ -1,72 +1,76 @@
|
|
|
1
|
-
import { D as r,
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { A as
|
|
11
|
-
import { A as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
1
|
+
import { D as r, M as o } from "../../MetricCard-C-ewNR_i.js";
|
|
2
|
+
import { K as t, a as i, S as l, b as p } from "../../SkeletonCards-C5lXTSrB.js";
|
|
3
|
+
import { A as b, C as f, F as g } from "../../ConfirmationDialog-CkMyyh_3.js";
|
|
4
|
+
import { D as T, a as n, b as c, c as d, d as x, e as A, f as S, g as C, h as F, i as P, P as h } from "../../toggle-group-wIgXZYDq.js";
|
|
5
|
+
import { A as k, a as I, F as K, S as v, T as E } from "../../TableFilter-DqDmlzhk.js";
|
|
6
|
+
import { G as y } from "../../GenericForm-CmwqEXiQ.js";
|
|
7
|
+
import { I as L } from "../../ImageInput-C8HcxE8t.js";
|
|
8
|
+
import { D as G, a as N, S as O, b as R } from "../../SearchInput-DJ_F3emq.js";
|
|
9
|
+
import { M as j } from "../../MultiSelect-BoisW4Kn.js";
|
|
10
|
+
import { A as w } from "../../AppActions-po4LjUcM.js";
|
|
11
|
+
import { A as J } from "../../AppTitle-CDxWr_0y.js";
|
|
12
|
+
import { A as U } from "../../AppSubTitle-CWrsJYFJ.js";
|
|
13
|
+
import { K as X } from "../../KpiCardsLayout-CETMpB7A.js";
|
|
14
|
+
import { S as Z, a as _, T as $ } from "../../Topbar-DFu_OdSs.js";
|
|
15
|
+
import { E as ea } from "../../ErrorAlert-C6BbHHRZ.js";
|
|
16
|
+
import { E as oa } from "../../ErrorState-vU8d4CwD.js";
|
|
17
|
+
import { L as ta } from "../../LoadingState-PhGi7HXH.js";
|
|
18
|
+
import { D as la, T as pa, a as ma, b as ba, c as fa, d as ga, e as Da } from "../../DataTable-CUU_sTQd.js";
|
|
19
|
+
import { A as na, a as ca, b as da, c as xa } from "../../AppVerticalTabs-CdqoObXx.js";
|
|
20
|
+
import { T as Sa } from "../../ThemeSelector--w3R6Ff3.js";
|
|
18
21
|
export {
|
|
19
22
|
k as ActiveFilters,
|
|
20
|
-
|
|
21
|
-
|
|
23
|
+
I as AdvancedFilters,
|
|
24
|
+
w as AppActions,
|
|
22
25
|
b as AppDialog,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
U as AppSubTitle,
|
|
27
|
+
na as AppTabContainer,
|
|
28
|
+
ca as AppTabHeader,
|
|
29
|
+
da as AppTabs,
|
|
30
|
+
J as AppTitle,
|
|
31
|
+
xa as AppVerticalTabs,
|
|
32
|
+
f as ConfirmationDialog,
|
|
30
33
|
r as DashboardCard,
|
|
31
|
-
|
|
34
|
+
la as DataTable,
|
|
32
35
|
G as DatePicker,
|
|
33
|
-
|
|
36
|
+
N as DateRangePicker,
|
|
34
37
|
T as Dialog,
|
|
35
38
|
n as DialogClose,
|
|
36
39
|
c as DialogContent,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
+
d as DialogDescription,
|
|
41
|
+
x as DialogFooter,
|
|
42
|
+
A as DialogHeader,
|
|
40
43
|
S as DialogOverlay,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
C as DialogPortal,
|
|
45
|
+
F as DialogTitle,
|
|
46
|
+
P as DialogTrigger,
|
|
47
|
+
ea as ErrorAlert,
|
|
48
|
+
oa as ErrorState,
|
|
49
|
+
K as FilterField,
|
|
47
50
|
g as FormDialog,
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
51
|
+
y as GenericForm,
|
|
52
|
+
L as ImageInput,
|
|
53
|
+
t as KpiCard,
|
|
54
|
+
i as KpiCards,
|
|
55
|
+
X as KpiCardsLayout,
|
|
56
|
+
ta as LoadingState,
|
|
57
|
+
o as MetricCard,
|
|
58
|
+
j as MultiSelect,
|
|
59
|
+
h as Progress,
|
|
60
|
+
O as SearchInput,
|
|
57
61
|
v as SearchableFilterPill,
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
62
|
+
R as SearchableSelect,
|
|
63
|
+
Z as Sidebar,
|
|
64
|
+
_ as SidebarNavItem,
|
|
65
|
+
l as SkeletonCard,
|
|
66
|
+
p as SkeletonCards,
|
|
67
|
+
pa as TableActions,
|
|
68
|
+
ma as TableBody,
|
|
69
|
+
ba as TableBulkActions,
|
|
66
70
|
E as TableFilter,
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
71
|
+
fa as TableHeader,
|
|
72
|
+
ga as TablePagination,
|
|
73
|
+
Da as TableSettings,
|
|
74
|
+
Sa as ThemeSelector,
|
|
75
|
+
$ as Topbar
|
|
72
76
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { KpiCardProps } from "../cards";
|
|
2
|
+
interface KpiCardsLayoutProps {
|
|
3
|
+
stats: KpiCardProps[];
|
|
4
|
+
isLoading: boolean;
|
|
5
|
+
error: Error | null;
|
|
6
|
+
}
|
|
7
|
+
export declare const KpiCardsLayout: ({ stats, isLoading, error }: KpiCardsLayoutProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=KpiCardsLayout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KpiCardsLayout.d.ts","sourceRoot":"","sources":["../../../../src/components/core/layouts/KpiCardsLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,YAAY,EAAiB,MAAM,UAAU,CAAC;AAGjE,UAAU,mBAAmB;IAC3B,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACrB;AAED,eAAO,MAAM,cAAc,GAAI,6BAA6B,mBAAmB,4CAI9E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/core/layouts/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/core/layouts/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAA;AAC7B,cAAc,kBAAkB,CAAA"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { A } from "../../../AppActions-po4LjUcM.js";
|
|
2
|
-
import { A
|
|
3
|
-
import { A as
|
|
1
|
+
import { A as r } from "../../../AppActions-po4LjUcM.js";
|
|
2
|
+
import { A } from "../../../AppTitle-CDxWr_0y.js";
|
|
3
|
+
import { A as e } from "../../../AppSubTitle-CWrsJYFJ.js";
|
|
4
|
+
import { K as f } from "../../../KpiCardsLayout-CETMpB7A.js";
|
|
4
5
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
r as AppActions,
|
|
7
|
+
e as AppSubTitle,
|
|
8
|
+
A as AppTitle,
|
|
9
|
+
f as KpiCardsLayout
|
|
8
10
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { E as t } from "../../../ErrorAlert-C6BbHHRZ.js";
|
|
2
|
-
import { E as e
|
|
2
|
+
import { E as e } from "../../../ErrorState-vU8d4CwD.js";
|
|
3
|
+
import { L as f } from "../../../LoadingState-PhGi7HXH.js";
|
|
3
4
|
export {
|
|
4
5
|
t as ErrorAlert,
|
|
5
6
|
e as ErrorState,
|
|
6
|
-
|
|
7
|
+
f as LoadingState
|
|
7
8
|
};
|
package/dist/components/index.js
CHANGED
|
@@ -1,293 +1,297 @@
|
|
|
1
|
-
import { D as
|
|
2
|
-
import {
|
|
3
|
-
import { A as
|
|
4
|
-
import { A as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { A as
|
|
11
|
-
import { A as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { A as
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
1
|
+
import { D as o, M as s } from "../MetricCard-C-ewNR_i.js";
|
|
2
|
+
import { K as t, a as n, S as i, b as l } from "../SkeletonCards-C5lXTSrB.js";
|
|
3
|
+
import { A as p, C as u, F as g } from "../ConfirmationDialog-CkMyyh_3.js";
|
|
4
|
+
import { A as d, j as m, k as c, l as T, m as S, n as D, o as M, p as x, q as A, r as I, s as P, t as h, u as w, v, w as f, x as F, B as L, y as B, z as G, C as R, E as k, F as H, G as N, H as y, I as E, J as O, K as V, L as K, M as z, N as U, O as j, Q as q, R as J, S as Q, T as W, U as X, V as Y, W as Z, X as _, Y as $, Z as aa, _ as ea, $ as oa, a0 as sa, a1 as ra, a2 as ta, a3 as na, a4 as ia, a5 as la, a6 as ba, a7 as pa, a8 as ua, a9 as ga, aa as Ca, ab as da, ac as ma, ad as ca, ae as Ta, af as Sa, ag as Da, ah as Ma, ai as xa, aj as Aa, ak as Ia, al as Pa, am as ha, D as wa, a as va, b as fa, c as Fa, d as La, e as Ba, f as Ga, g as Ra, h as ka, i as Ha, an as Na, ao as ya, ap as Ea, aq as Oa, ar as Va, as as Ka, at as za, au as Ua, av as ja, aw as qa, ax as Ja, ay as Qa, az as Wa, aA as Xa, aB as Ya, aC as Za, aD as _a, aE as $a, aF as ae, aG as ee, aH as oe, aI as se, aJ as re, aK as te, aL as ne, aM as ie, aN as le, aO as be, aP as pe, aQ as ue, aR as ge, aS as Ce, aT as de, aU as me, aV as ce, aW as Te, aX as Se, aY as De, aZ as Me, a_ as xe, a$ as Ae, b0 as Ie, b1 as Pe, b2 as he, b3 as we, b4 as ve, b5 as fe, b6 as Fe, b7 as Le, b8 as Be, b9 as Ge, ba as Re, bb as ke, bc as He, bd as Ne, be as ye, bf as Ee, bg as Oe, bh as Ve, bi as Ke, bj as ze, bk as Ue, bl as je, bm as qe, bn as Je, bo as Qe, bp as We, bq as Xe, br as Ye, bs as Ze, bt as _e, bu as $e, bv as ao, bw as eo, bx as oo, P as so, by as ro, bz as to, bA as no, bB as io, bC as lo, bD as bo, bE as po, bF as uo, bG as go, bH as Co, bI as mo, bJ as co, bK as To, bL as So, bM as Do, bN as Mo, bO as xo, bP as Ao, bQ as Io, bR as Po, bS as ho, bT as wo, bU as vo, bV as fo, bW as Fo, bX as Lo, bY as Bo, bZ as Go, b_ as Ro, b$ as ko, c0 as Ho, c1 as No, c2 as yo, c3 as Eo, c4 as Oo, c5 as Vo, c6 as Ko, c7 as zo, c8 as Uo, c9 as jo, ca as qo, cb as Jo, cc as Qo, cd as Wo } from "../toggle-group-wIgXZYDq.js";
|
|
5
|
+
import { A as Yo, a as Zo, F as _o, S as $o, T as as } from "../TableFilter-DqDmlzhk.js";
|
|
6
|
+
import { G as os } from "../GenericForm-CmwqEXiQ.js";
|
|
7
|
+
import { I as rs } from "../ImageInput-C8HcxE8t.js";
|
|
8
|
+
import { D as ns, a as is, S as ls, b as bs } from "../SearchInput-DJ_F3emq.js";
|
|
9
|
+
import { M as us } from "../MultiSelect-BoisW4Kn.js";
|
|
10
|
+
import { A as Cs } from "../AppActions-po4LjUcM.js";
|
|
11
|
+
import { A as ms } from "../AppTitle-CDxWr_0y.js";
|
|
12
|
+
import { A as Ts } from "../AppSubTitle-CWrsJYFJ.js";
|
|
13
|
+
import { K as Ds } from "../KpiCardsLayout-CETMpB7A.js";
|
|
14
|
+
import { S as xs, a as As, T as Is } from "../Topbar-DFu_OdSs.js";
|
|
15
|
+
import { E as hs } from "../ErrorAlert-C6BbHHRZ.js";
|
|
16
|
+
import { E as vs } from "../ErrorState-vU8d4CwD.js";
|
|
17
|
+
import { L as Fs } from "../LoadingState-PhGi7HXH.js";
|
|
18
|
+
import { D as Bs, T as Gs, a as Rs, b as ks, c as Hs, d as Ns, e as ys } from "../DataTable-CUU_sTQd.js";
|
|
19
|
+
import { A as Os, a as Vs, b as Ks, c as zs } from "../AppVerticalTabs-CdqoObXx.js";
|
|
20
|
+
import { T as js } from "../ThemeSelector--w3R6Ff3.js";
|
|
21
|
+
import { A as Js, a as Qs, b as Ws } from "../alert-B34E_4uH.js";
|
|
22
|
+
import { A as Ys, C as Zs, a as _s, b as $s, R as ar, c as er, d as or, S as sr, T as rr, e as tr } from "../toaster-CKoOjjKr.js";
|
|
23
|
+
import { B as ir, b as lr } from "../badge-CfWlt79h.js";
|
|
24
|
+
import { B as pr, T as ur, a as gr, b as Cr, c as dr, d as mr } from "../tooltip-YhBPXbcJ.js";
|
|
25
|
+
import { S as Tr, a as Sr, b as Dr, c as Mr, d as xr, e as Ar, f as Ir, g as Pr, h as hr, i as wr } from "../select-DlQvLtI3.js";
|
|
23
26
|
export {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
27
|
+
d as Accordion,
|
|
28
|
+
m as AccordionContent,
|
|
29
|
+
c as AccordionItem,
|
|
30
|
+
T as AccordionTrigger,
|
|
31
|
+
Yo as ActiveFilters,
|
|
32
|
+
Zo as AdvancedFilters,
|
|
33
|
+
Js as Alert,
|
|
34
|
+
Qs as AlertDescription,
|
|
35
|
+
S as AlertDialog,
|
|
36
|
+
D as AlertDialogAction,
|
|
37
|
+
M as AlertDialogCancel,
|
|
38
|
+
x as AlertDialogContent,
|
|
36
39
|
A as AlertDialogDescription,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
40
|
+
I as AlertDialogFooter,
|
|
41
|
+
P as AlertDialogHeader,
|
|
42
|
+
h as AlertDialogTitle,
|
|
43
|
+
w as AlertDialogTrigger,
|
|
44
|
+
Ws as AlertTitle,
|
|
45
|
+
Cs as AppActions,
|
|
46
|
+
p as AppDialog,
|
|
47
|
+
Ts as AppSubTitle,
|
|
48
|
+
Os as AppTabContainer,
|
|
49
|
+
Vs as AppTabHeader,
|
|
50
|
+
Ks as AppTabs,
|
|
51
|
+
ms as AppTitle,
|
|
52
|
+
zs as AppVerticalTabs,
|
|
53
|
+
Ys as AspectRatio,
|
|
54
|
+
v as Avatar,
|
|
55
|
+
f as AvatarFallback,
|
|
53
56
|
F as AvatarImage,
|
|
54
|
-
|
|
55
|
-
|
|
57
|
+
ir as Badge,
|
|
58
|
+
L as Breadcrumb,
|
|
56
59
|
B as BreadcrumbEllipsis,
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
60
|
+
G as BreadcrumbItem,
|
|
61
|
+
R as BreadcrumbLink,
|
|
62
|
+
k as BreadcrumbList,
|
|
63
|
+
H as BreadcrumbPage,
|
|
64
|
+
N as BreadcrumbSeparator,
|
|
65
|
+
pr as Button,
|
|
66
|
+
y as Calendar,
|
|
67
|
+
E as Card,
|
|
68
|
+
O as CardContent,
|
|
69
|
+
V as CardDescription,
|
|
70
|
+
K as CardFooter,
|
|
68
71
|
z as CardHeader,
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
72
|
+
U as CardTitle,
|
|
73
|
+
j as Carousel,
|
|
74
|
+
q as CarouselContent,
|
|
75
|
+
J as CarouselItem,
|
|
76
|
+
Q as CarouselNext,
|
|
77
|
+
W as CarouselPrevious,
|
|
78
|
+
X as ChartContainer,
|
|
79
|
+
Y as ChartLegend,
|
|
80
|
+
Z as ChartLegendContent,
|
|
81
|
+
_ as ChartStyle,
|
|
82
|
+
$ as ChartTooltip,
|
|
83
|
+
aa as ChartTooltipContent,
|
|
84
|
+
ea as Checkbox,
|
|
85
|
+
Zs as Collapsible,
|
|
86
|
+
_s as CollapsibleContent,
|
|
87
|
+
$s as CollapsibleTrigger,
|
|
88
|
+
oa as Command,
|
|
86
89
|
sa as CommandDialog,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
90
|
+
ra as CommandEmpty,
|
|
91
|
+
ta as CommandGroup,
|
|
92
|
+
na as CommandInput,
|
|
93
|
+
ia as CommandItem,
|
|
94
|
+
la as CommandList,
|
|
95
|
+
ba as CommandSeparator,
|
|
96
|
+
pa as CommandShortcut,
|
|
97
|
+
u as ConfirmationDialog,
|
|
98
|
+
ua as ContextMenu,
|
|
99
|
+
ga as ContextMenuCheckboxItem,
|
|
100
|
+
Ca as ContextMenuContent,
|
|
101
|
+
da as ContextMenuGroup,
|
|
102
|
+
ma as ContextMenuItem,
|
|
103
|
+
ca as ContextMenuLabel,
|
|
104
|
+
Ta as ContextMenuPortal,
|
|
105
|
+
Sa as ContextMenuRadioGroup,
|
|
106
|
+
Da as ContextMenuRadioItem,
|
|
107
|
+
Ma as ContextMenuSeparator,
|
|
108
|
+
xa as ContextMenuShortcut,
|
|
106
109
|
Aa as ContextMenuSub,
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
110
|
+
Ia as ContextMenuSubContent,
|
|
111
|
+
Pa as ContextMenuSubTrigger,
|
|
112
|
+
ha as ContextMenuTrigger,
|
|
113
|
+
o as DashboardCard,
|
|
114
|
+
Bs as DataTable,
|
|
115
|
+
ns as DatePicker,
|
|
116
|
+
is as DateRangePicker,
|
|
117
|
+
wa as Dialog,
|
|
118
|
+
va as DialogClose,
|
|
119
|
+
fa as DialogContent,
|
|
117
120
|
Fa as DialogDescription,
|
|
118
|
-
|
|
121
|
+
La as DialogFooter,
|
|
119
122
|
Ba as DialogHeader,
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
123
|
+
Ga as DialogOverlay,
|
|
124
|
+
Ra as DialogPortal,
|
|
125
|
+
ka as DialogTitle,
|
|
126
|
+
Ha as DialogTrigger,
|
|
127
|
+
Na as Drawer,
|
|
128
|
+
ya as DrawerClose,
|
|
129
|
+
Ea as DrawerContent,
|
|
130
|
+
Oa as DrawerDescription,
|
|
131
|
+
Va as DrawerFooter,
|
|
132
|
+
Ka as DrawerHeader,
|
|
130
133
|
za as DrawerOverlay,
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
134
|
+
Ua as DrawerPortal,
|
|
135
|
+
ja as DrawerTitle,
|
|
136
|
+
qa as DrawerTrigger,
|
|
137
|
+
Ja as DropdownMenu,
|
|
138
|
+
Qa as DropdownMenuCheckboxItem,
|
|
139
|
+
Wa as DropdownMenuContent,
|
|
140
|
+
Xa as DropdownMenuGroup,
|
|
141
|
+
Ya as DropdownMenuItem,
|
|
142
|
+
Za as DropdownMenuLabel,
|
|
143
|
+
_a as DropdownMenuPortal,
|
|
144
|
+
$a as DropdownMenuRadioGroup,
|
|
145
|
+
ae as DropdownMenuRadioItem,
|
|
146
|
+
ee as DropdownMenuSeparator,
|
|
147
|
+
oe as DropdownMenuShortcut,
|
|
145
148
|
se as DropdownMenuSub,
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
149
|
+
re as DropdownMenuSubContent,
|
|
150
|
+
te as DropdownMenuSubTrigger,
|
|
151
|
+
ne as DropdownMenuTrigger,
|
|
152
|
+
hs as ErrorAlert,
|
|
153
|
+
vs as ErrorState,
|
|
154
|
+
_o as FilterField,
|
|
155
|
+
ie as Form,
|
|
156
|
+
le as FormControl,
|
|
157
|
+
be as FormDescription,
|
|
158
|
+
g as FormDialog,
|
|
159
|
+
pe as FormField,
|
|
160
|
+
ue as FormItem,
|
|
161
|
+
ge as FormLabel,
|
|
162
|
+
Ce as FormMessage,
|
|
163
|
+
os as GenericForm,
|
|
164
|
+
de as HoverCard,
|
|
165
|
+
me as HoverCardContent,
|
|
166
|
+
ce as HoverCardTrigger,
|
|
167
|
+
rs as ImageInput,
|
|
168
|
+
Te as Input,
|
|
169
|
+
Se as InputOTP,
|
|
170
|
+
De as InputOTPGroup,
|
|
171
|
+
Me as InputOTPSeparator,
|
|
172
|
+
xe as InputOTPSlot,
|
|
173
|
+
t as KpiCard,
|
|
174
|
+
n as KpiCards,
|
|
175
|
+
Ds as KpiCardsLayout,
|
|
172
176
|
Ae as Label,
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
177
|
+
Fs as LoadingState,
|
|
178
|
+
Ie as Menubar,
|
|
179
|
+
Pe as MenubarCheckboxItem,
|
|
180
|
+
he as MenubarContent,
|
|
181
|
+
we as MenubarGroup,
|
|
182
|
+
ve as MenubarItem,
|
|
183
|
+
fe as MenubarLabel,
|
|
180
184
|
Fe as MenubarMenu,
|
|
181
|
-
|
|
185
|
+
Le as MenubarPortal,
|
|
182
186
|
Be as MenubarRadioGroup,
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
187
|
+
Ge as MenubarRadioItem,
|
|
188
|
+
Re as MenubarSeparator,
|
|
189
|
+
ke as MenubarShortcut,
|
|
190
|
+
He as MenubarSub,
|
|
191
|
+
Ne as MenubarSubContent,
|
|
192
|
+
ye as MenubarSubTrigger,
|
|
193
|
+
Ee as MenubarTrigger,
|
|
194
|
+
s as MetricCard,
|
|
195
|
+
us as MultiSelect,
|
|
196
|
+
Oe as NavigationMenu,
|
|
197
|
+
Ve as NavigationMenuContent,
|
|
198
|
+
Ke as NavigationMenuIndicator,
|
|
195
199
|
ze as NavigationMenuItem,
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
200
|
+
Ue as NavigationMenuLink,
|
|
201
|
+
je as NavigationMenuList,
|
|
202
|
+
qe as NavigationMenuTrigger,
|
|
203
|
+
Je as NavigationMenuViewport,
|
|
204
|
+
Qe as Pagination,
|
|
205
|
+
We as PaginationContent,
|
|
206
|
+
Xe as PaginationEllipsis,
|
|
207
|
+
Ye as PaginationItem,
|
|
208
|
+
Ze as PaginationLink,
|
|
209
|
+
_e as PaginationNext,
|
|
210
|
+
$e as PaginationPrevious,
|
|
211
|
+
ao as Popover,
|
|
212
|
+
eo as PopoverContent,
|
|
213
|
+
oo as PopoverTrigger,
|
|
214
|
+
so as Progress,
|
|
215
|
+
ro as RadioGroup,
|
|
216
|
+
to as RadioGroupItem,
|
|
217
|
+
ar as ResizableHandle,
|
|
218
|
+
er as ResizablePanel,
|
|
219
|
+
or as ResizablePanelGroup,
|
|
220
|
+
no as ScrollArea,
|
|
221
|
+
io as ScrollBar,
|
|
222
|
+
ls as SearchInput,
|
|
223
|
+
$o as SearchableFilterPill,
|
|
224
|
+
bs as SearchableSelect,
|
|
225
|
+
Tr as Select,
|
|
226
|
+
Sr as SelectContent,
|
|
227
|
+
Dr as SelectGroup,
|
|
228
|
+
Mr as SelectItem,
|
|
229
|
+
xr as SelectLabel,
|
|
230
|
+
Ar as SelectScrollDownButton,
|
|
231
|
+
Ir as SelectScrollUpButton,
|
|
232
|
+
Pr as SelectSeparator,
|
|
233
|
+
hr as SelectTrigger,
|
|
234
|
+
wr as SelectValue,
|
|
235
|
+
lo as Separator,
|
|
236
|
+
bo as Sheet,
|
|
237
|
+
po as SheetClose,
|
|
238
|
+
uo as SheetContent,
|
|
239
|
+
go as SheetDescription,
|
|
240
|
+
Co as SheetFooter,
|
|
241
|
+
mo as SheetHeader,
|
|
242
|
+
co as SheetOverlay,
|
|
243
|
+
To as SheetPortal,
|
|
244
|
+
So as SheetTitle,
|
|
245
|
+
Do as SheetTrigger,
|
|
246
|
+
xs as Sidebar,
|
|
247
|
+
As as SidebarNavItem,
|
|
248
|
+
Mo as SimpleTable,
|
|
249
|
+
xo as SimpleTableBody,
|
|
250
|
+
Ao as SimpleTableCaption,
|
|
251
|
+
Io as SimpleTableCell,
|
|
252
|
+
Po as SimpleTableFooter,
|
|
253
|
+
ho as SimpleTableHead,
|
|
254
|
+
wo as SimpleTableHeader,
|
|
255
|
+
vo as SimpleTableRow,
|
|
256
|
+
sr as Skeleton,
|
|
257
|
+
i as SkeletonCard,
|
|
258
|
+
l as SkeletonCards,
|
|
259
|
+
fo as Slider,
|
|
260
|
+
rr as Sonner,
|
|
261
|
+
Fo as Switch,
|
|
262
|
+
Gs as TableActions,
|
|
263
|
+
Rs as TableBody,
|
|
264
|
+
ks as TableBulkActions,
|
|
265
|
+
as as TableFilter,
|
|
266
|
+
Hs as TableHeader,
|
|
267
|
+
Ns as TablePagination,
|
|
268
|
+
ys as TableSettings,
|
|
269
|
+
Lo as Tabs,
|
|
270
|
+
Bo as TabsContent,
|
|
271
|
+
Go as TabsList,
|
|
272
|
+
Ro as TabsTrigger,
|
|
273
|
+
ko as Textarea,
|
|
274
|
+
js as ThemeSelector,
|
|
275
|
+
Ho as Toast,
|
|
276
|
+
No as ToastAction,
|
|
277
|
+
yo as ToastClose,
|
|
278
|
+
Eo as ToastDescription,
|
|
279
|
+
Oo as ToastProvider,
|
|
280
|
+
Vo as ToastTitle,
|
|
281
|
+
Ko as ToastViewport,
|
|
282
|
+
tr as Toaster,
|
|
283
|
+
zo as Toggle,
|
|
284
|
+
Uo as ToggleGroup,
|
|
285
|
+
jo as ToggleGroupItem,
|
|
286
|
+
ur as Tooltip,
|
|
287
|
+
gr as TooltipContent,
|
|
288
|
+
Cr as TooltipProvider,
|
|
289
|
+
dr as TooltipTrigger,
|
|
290
|
+
Is as Topbar,
|
|
291
|
+
lr as badgeVariants,
|
|
292
|
+
mr as buttonVariants,
|
|
293
|
+
qo as navigationMenuTriggerStyle,
|
|
294
|
+
Jo as toast,
|
|
295
|
+
Qo as toggleVariants,
|
|
296
|
+
Wo as useFormField
|
|
293
297
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@krosoft/react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.114",
|
|
4
4
|
"description": "Krosoft shared React package",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"zod": "^4.4.3"
|
|
90
90
|
},
|
|
91
91
|
"devDependencies": {
|
|
92
|
-
"@krosoft/core": "^0.0.
|
|
92
|
+
"@krosoft/core": "^0.0.40",
|
|
93
93
|
"@krosoft/tooling-eslint-react": "^0.0.21",
|
|
94
94
|
"@krosoft/tooling-prettier": "^0.0.14",
|
|
95
95
|
"@krosoft/tooling-tsconfig-react": "^0.0.10",
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { jsxs as r, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { L as i } from "./loader-circle-CKy7u7JW.js";
|
|
3
|
-
const d = ({ message: e }) => /* @__PURE__ */ r("div", { className: "p-6 border border-destructive bg-destructive/10 text-destructive rounded-md animate-fade-in", children: [
|
|
4
|
-
/* @__PURE__ */ t("p", { className: "font-semibold mb-2", children: "Une erreur est survenue." }),
|
|
5
|
-
e !== void 0 && e !== "" ? /* @__PURE__ */ t("p", { className: "text-sm opacity-80", children: e }) : null
|
|
6
|
-
] }), s = ({ message: e }) => /* @__PURE__ */ r("div", { className: "flex flex-col items-center justify-center p-12 text-muted-foreground animate-fade-in", children: [
|
|
7
|
-
/* @__PURE__ */ t(i, { className: "size-8 animate-spin mb-4 text-primary" }),
|
|
8
|
-
e !== void 0 && e !== "" ? /* @__PURE__ */ t("p", { className: "font-semibold text-sm", children: e }) : null
|
|
9
|
-
] });
|
|
10
|
-
export {
|
|
11
|
-
d as E,
|
|
12
|
-
s as L
|
|
13
|
-
};
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { jsxs as s, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { I as l, M as p, N as x, J as m } from "./toggle-group-wIgXZYDq.js";
|
|
3
|
-
import { c } from "./tailwind.helper-gWiv5-6R.js";
|
|
4
|
-
import { useTranslation as f } from "react-i18next";
|
|
5
|
-
import { formatNumber as b } from "@krosoft/core/helpers";
|
|
6
|
-
import "./alert-B34E_4uH.js";
|
|
7
|
-
import "./tooltip-YhBPXbcJ.js";
|
|
8
|
-
import "./select-DlQvLtI3.js";
|
|
9
|
-
import "next-themes";
|
|
10
|
-
import "react";
|
|
11
|
-
const H = ({ titleKey: t, icon: r, className: a, children: i }) => {
|
|
12
|
-
const { t: n } = f();
|
|
13
|
-
return /* @__PURE__ */ s(l, { className: c("bg-gray-50 dark:bg-gray-950", a), children: [
|
|
14
|
-
/* @__PURE__ */ e(p, { children: /* @__PURE__ */ s(x, { className: "flex items-center gap-2", children: [
|
|
15
|
-
r && /* @__PURE__ */ e(r, { className: "mr-2 size-4" }),
|
|
16
|
-
/* @__PURE__ */ e("span", { children: n(t) })
|
|
17
|
-
] }) }),
|
|
18
|
-
/* @__PURE__ */ e(m, { children: i })
|
|
19
|
-
] });
|
|
20
|
-
}, v = ({
|
|
21
|
-
titleKey: t,
|
|
22
|
-
value: r,
|
|
23
|
-
valueClassName: a,
|
|
24
|
-
icon: i,
|
|
25
|
-
iconClassName: n,
|
|
26
|
-
description: g,
|
|
27
|
-
descriptionClassName: d,
|
|
28
|
-
onClick: o
|
|
29
|
-
}) => {
|
|
30
|
-
const { t: u } = f();
|
|
31
|
-
return /* @__PURE__ */ s(l, { className: c(o !== void 0 ? "hover:border-primary cursor-pointer" : ""), onClick: o, children: [
|
|
32
|
-
/* @__PURE__ */ s(p, { className: "flex flex-row items-center justify-between space-y-0 pb-2", children: [
|
|
33
|
-
/* @__PURE__ */ e(x, { className: "text-sm font-medium", children: u(t) }),
|
|
34
|
-
/* @__PURE__ */ e(i, { className: c("size-6 text-muted-foreground", n) })
|
|
35
|
-
] }),
|
|
36
|
-
/* @__PURE__ */ s(m, { children: [
|
|
37
|
-
/* @__PURE__ */ e("div", { className: c("text-2xl font-bold", a), children: b(r) }),
|
|
38
|
-
/* @__PURE__ */ e("p", { className: c("text-xs text-muted-foreground", d), children: g })
|
|
39
|
-
] })
|
|
40
|
-
] });
|
|
41
|
-
}, J = ({ stats: t }) => /* @__PURE__ */ e("div", { className: "grid gap-6 md:grid-cols-2 lg:grid-cols-4", children: t.map((r) => /* @__PURE__ */ e(
|
|
42
|
-
v,
|
|
43
|
-
{
|
|
44
|
-
titleKey: r.titleKey,
|
|
45
|
-
value: r.value,
|
|
46
|
-
valueClassName: r.valueClassName,
|
|
47
|
-
icon: r.icon,
|
|
48
|
-
iconClassName: r.iconClassName,
|
|
49
|
-
description: r.description,
|
|
50
|
-
descriptionClassName: r.descriptionClassName,
|
|
51
|
-
onClick: r.onClick
|
|
52
|
-
},
|
|
53
|
-
r.titleKey
|
|
54
|
-
)) }), C = {
|
|
55
|
-
blue: "bg-gradient-to-br from-blue-500 to-cyan-500 text-white",
|
|
56
|
-
green: "bg-gradient-to-br from-green-500 to-emerald-500 text-white",
|
|
57
|
-
orange: "bg-gradient-to-br from-orange-500 to-yellow-500 text-white",
|
|
58
|
-
red: "bg-gradient-to-br from-red-500 to-pink-500 text-white",
|
|
59
|
-
purple: "bg-gradient-to-br from-purple-500 to-indigo-500 text-white",
|
|
60
|
-
accent: "bg-accent/10 text-accent",
|
|
61
|
-
success: "bg-success/10 text-success",
|
|
62
|
-
info: "bg-info/10 text-info",
|
|
63
|
-
warning: "bg-warning/10 text-warning",
|
|
64
|
-
destructive: "bg-destructive/10 text-destructive"
|
|
65
|
-
}, w = {
|
|
66
|
-
sm: "size-4",
|
|
67
|
-
md: "size-5",
|
|
68
|
-
lg: "size-6"
|
|
69
|
-
}, y = (t) => t === "up" ? "↑" : t === "down" ? "↓" : "", z = (t) => t === "up" ? "text-green-600" : t === "down" ? "text-red-600" : "text-muted-foreground", _ = ({ title: t, value: r, unit: a, subtitle: i, icon: n, iconSize: g = "md", trend: d, trendValue: o, color: u = "blue", children: h }) => {
|
|
70
|
-
const N = n;
|
|
71
|
-
return /* @__PURE__ */ e(l, { className: "relative overflow-hidden bg-card border shadow-lg hover:shadow-xl transition-all duration-300", children: /* @__PURE__ */ s(m, { className: "pt-6", children: [
|
|
72
|
-
/* @__PURE__ */ s("div", { className: "flex items-start justify-between", children: [
|
|
73
|
-
/* @__PURE__ */ s("div", { children: [
|
|
74
|
-
/* @__PURE__ */ e(x, { className: "text-sm font-medium text-muted-foreground", children: t }),
|
|
75
|
-
/* @__PURE__ */ s("div", { className: "flex items-baseline space-x-2 mt-1", children: [
|
|
76
|
-
/* @__PURE__ */ e("div", { className: "text-2xl font-bold text-card-foreground", children: typeof r == "number" ? r.toFixed(1) : r }),
|
|
77
|
-
a && /* @__PURE__ */ e("div", { className: "text-sm text-muted-foreground font-medium", children: a })
|
|
78
|
-
] }),
|
|
79
|
-
i && /* @__PURE__ */ e("div", { className: "mt-1 text-xs text-muted-foreground", children: i }),
|
|
80
|
-
d && o && /* @__PURE__ */ s("div", { className: `flex items-center space-x-1 mt-2 text-xs ${z(d)}`, children: [
|
|
81
|
-
/* @__PURE__ */ e("span", { children: y(d) }),
|
|
82
|
-
/* @__PURE__ */ e("span", { children: o })
|
|
83
|
-
] })
|
|
84
|
-
] }),
|
|
85
|
-
/* @__PURE__ */ e("div", { className: `p-2 rounded-lg ${C[u]} shadow-lg`, children: /* @__PURE__ */ e(N, { className: w[g] }) })
|
|
86
|
-
] }),
|
|
87
|
-
h && /* @__PURE__ */ e("div", { className: "mt-4", children: h })
|
|
88
|
-
] }) });
|
|
89
|
-
}, K = () => /* @__PURE__ */ s(l, { className: "animate-pulse", children: [
|
|
90
|
-
/* @__PURE__ */ e(p, { children: /* @__PURE__ */ e("div", { className: "h-6 bg-muted rounded w-1/4" }) }),
|
|
91
|
-
/* @__PURE__ */ e(m, { children: /* @__PURE__ */ s("div", { className: "space-y-2", children: [
|
|
92
|
-
/* @__PURE__ */ e("div", { className: "h-4 bg-muted rounded" }),
|
|
93
|
-
/* @__PURE__ */ e("div", { className: "h-4 bg-muted rounded w-3/4" })
|
|
94
|
-
] }) })
|
|
95
|
-
] }), q = ({ count: t = 1 }) => /* @__PURE__ */ e("div", { className: "grid gap-6", style: { gridTemplateColumns: `repeat(${t}, minmax(0, 1fr))` }, children: Array.from({ length: t }).map((r, a) => /* @__PURE__ */ e(K, {}, a)) });
|
|
96
|
-
export {
|
|
97
|
-
H as D,
|
|
98
|
-
v as K,
|
|
99
|
-
_ as M,
|
|
100
|
-
K as S,
|
|
101
|
-
J as a,
|
|
102
|
-
q as b
|
|
103
|
-
};
|