@krosoft/react 0.0.144 → 0.0.145
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/KpiCardsLayout-jXgAbHNB.js +49 -0
- package/dist/components/core/index.js +42 -41
- package/dist/components/core/layouts/AppPageHeader.d.ts +13 -0
- package/dist/components/core/layouts/AppPageHeader.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 +7 -6
- package/dist/components/index.js +99 -98
- package/dist/hooks/index.js +20 -19
- package/dist/hooks/ui/index.js +12 -11
- package/dist/useDocumentTitle-WNwdPz-I.js +14 -0
- package/dist/useServerTable-UvTY6L1N.js +38 -0
- package/package.json +1 -1
- package/dist/KpiCardsLayout-BVN5HgQ7.js +0 -23
- package/dist/useServerTable-B8hkjM4k.js +0 -49
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { jsxs as o, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import "./toggle-group-BASGy2mQ.js";
|
|
3
|
+
import "./alert-B78CiTYe.js";
|
|
4
|
+
import "@radix-ui/react-aspect-ratio";
|
|
5
|
+
import { B as l } from "./tooltip-BWyFpIxo.js";
|
|
6
|
+
import "@radix-ui/react-collapsible";
|
|
7
|
+
import "./sheet-Gop1cIaU.js";
|
|
8
|
+
import { ArrowLeftIcon as c } from "lucide-react";
|
|
9
|
+
import "react-resizable-panels";
|
|
10
|
+
import "clsx";
|
|
11
|
+
import "tailwind-merge";
|
|
12
|
+
import "./select-MWzbMBAS.js";
|
|
13
|
+
import "next-themes";
|
|
14
|
+
import "sonner";
|
|
15
|
+
import "react";
|
|
16
|
+
import { A as f } from "./AppActions-DCaejx-3.js";
|
|
17
|
+
import { A as u } from "./AppTitle-uboDuil4.js";
|
|
18
|
+
import { u as d } from "./useDocumentTitle-WNwdPz-I.js";
|
|
19
|
+
import { useTranslation as x } from "react-i18next";
|
|
20
|
+
import "@krosoft/core/helpers";
|
|
21
|
+
import { b as g, a as h } from "./SkeletonCards-0NJcJ-6S.js";
|
|
22
|
+
import { E as A } from "./ErrorState-vU8d4CwD.js";
|
|
23
|
+
function M({
|
|
24
|
+
icon: e,
|
|
25
|
+
titleKey: t,
|
|
26
|
+
descriptionKey: i,
|
|
27
|
+
actions: a,
|
|
28
|
+
onBack: s,
|
|
29
|
+
renderPreActions: m,
|
|
30
|
+
className: p
|
|
31
|
+
}) {
|
|
32
|
+
const { t: n } = x();
|
|
33
|
+
return d(n(t)), /* @__PURE__ */ o("div", { className: "flex flex-col sm:flex-row sm:items-center justify-between gap-4", children: [
|
|
34
|
+
/* @__PURE__ */ o("div", { className: "flex items-center gap-4", children: [
|
|
35
|
+
s && /* @__PURE__ */ r(l, { variant: "ghost", size: "icon", onClick: s, className: "rounded-2xl", children: /* @__PURE__ */ r(c, { className: "h-4 w-4" }) }),
|
|
36
|
+
e && /* @__PURE__ */ r("div", { className: "size-12 bg-blue-100 rounded-lg flex items-center justify-center", children: /* @__PURE__ */ r(e, { className: "h-6 w-6 text-blue-600" }) }),
|
|
37
|
+
/* @__PURE__ */ r(u, { titleKey: t, descriptionKey: i })
|
|
38
|
+
] }),
|
|
39
|
+
/* @__PURE__ */ o("div", { className: "flex items-center gap-4", children: [
|
|
40
|
+
m && m(),
|
|
41
|
+
/* @__PURE__ */ r(f, { actions: a, className: p })
|
|
42
|
+
] })
|
|
43
|
+
] });
|
|
44
|
+
}
|
|
45
|
+
const O = ({ stats: e, isLoading: t, error: i }) => t ? /* @__PURE__ */ r(g, { count: 4 }) : i ? /* @__PURE__ */ r(A, { message: i.message }) : /* @__PURE__ */ r(h, { stats: e });
|
|
46
|
+
export {
|
|
47
|
+
M as A,
|
|
48
|
+
O as K
|
|
49
|
+
};
|
|
@@ -1,77 +1,78 @@
|
|
|
1
1
|
import { D as r, M as o } from "../../MetricCard-D-qPl6zh.js";
|
|
2
2
|
import { K as t, a as i, S as l, b as p } from "../../SkeletonCards-0NJcJ-6S.js";
|
|
3
|
-
import { A as m, C as d, F as
|
|
4
|
-
import { D, a as
|
|
5
|
-
import { A as k, a as
|
|
3
|
+
import { A as m, C as d, F as g } from "../../ConfirmationDialog-DJcxTNTk.js";
|
|
4
|
+
import { D as A, a as D, b as T, c as n, d as c, e as x, f as S, g as C, h as F, i as P, P as h } from "../../toggle-group-BASGy2mQ.js";
|
|
5
|
+
import { A as k, a as H, F as I, S as K, T as v } from "../../TableFilter-rjiss-d9.js";
|
|
6
6
|
import { G as M } from "../../GenericForm-Cy5ntJxi.js";
|
|
7
7
|
import { I as L } from "../../ImageInput-CJ419eqw.js";
|
|
8
8
|
import { D as G, a as N, S as O, b as R } from "../../SearchInput-T9TeORNA.js";
|
|
9
9
|
import { M as j } from "../../MultiSelect-DblSHEsg.js";
|
|
10
10
|
import { A as w } from "../../AppActions-DCaejx-3.js";
|
|
11
|
-
import { A as J } from "../../
|
|
12
|
-
import { A as
|
|
13
|
-
import {
|
|
14
|
-
import { S as
|
|
15
|
-
import { E as
|
|
16
|
-
import { E as
|
|
17
|
-
import { L as
|
|
18
|
-
import { D as
|
|
19
|
-
import { A as na, a as ca, b as xa, c as
|
|
20
|
-
import { T as
|
|
11
|
+
import { A as J, K as Q } from "../../KpiCardsLayout-jXgAbHNB.js";
|
|
12
|
+
import { A as W } from "../../AppSubTitle-BNd5_q0i.js";
|
|
13
|
+
import { A as Y } from "../../AppTitle-uboDuil4.js";
|
|
14
|
+
import { S as _, a as $, b as aa, T as ea } from "../../Topbar-DMyjbOTI.js";
|
|
15
|
+
import { E as oa } from "../../ErrorAlert-DH1onuyt.js";
|
|
16
|
+
import { E as ta } from "../../ErrorState-vU8d4CwD.js";
|
|
17
|
+
import { L as la } from "../../LoadingState-BN0YaPSs.js";
|
|
18
|
+
import { D as ba, T as ma, a as da, b as ga, c as fa, d as Aa, e as Da } from "../../DataTable-BVgo8YWR.js";
|
|
19
|
+
import { A as na, a as ca, b as xa, c as Sa } from "../../AppVerticalTabs-NZ02HPGP.js";
|
|
20
|
+
import { T as Fa } from "../../ThemeSelector-Qv8QBlYq.js";
|
|
21
21
|
export {
|
|
22
22
|
k as ActiveFilters,
|
|
23
|
-
|
|
23
|
+
H as AdvancedFilters,
|
|
24
24
|
w as AppActions,
|
|
25
25
|
m as AppDialog,
|
|
26
|
-
J as
|
|
26
|
+
J as AppPageHeader,
|
|
27
|
+
W as AppSubTitle,
|
|
27
28
|
na as AppTabContainer,
|
|
28
29
|
ca as AppTabHeader,
|
|
29
30
|
xa as AppTabs,
|
|
30
|
-
|
|
31
|
-
|
|
31
|
+
Y as AppTitle,
|
|
32
|
+
Sa as AppVerticalTabs,
|
|
32
33
|
d as ConfirmationDialog,
|
|
33
34
|
r as DashboardCard,
|
|
34
|
-
|
|
35
|
+
ba as DataTable,
|
|
35
36
|
G as DatePicker,
|
|
36
37
|
N as DateRangePicker,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
38
|
+
A as Dialog,
|
|
39
|
+
D as DialogClose,
|
|
40
|
+
T as DialogContent,
|
|
41
|
+
n as DialogDescription,
|
|
42
|
+
c as DialogFooter,
|
|
43
|
+
x as DialogHeader,
|
|
43
44
|
S as DialogOverlay,
|
|
44
45
|
C as DialogPortal,
|
|
45
46
|
F as DialogTitle,
|
|
46
47
|
P as DialogTrigger,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
oa as ErrorAlert,
|
|
49
|
+
ta as ErrorState,
|
|
50
|
+
I as FilterField,
|
|
51
|
+
g as FormDialog,
|
|
51
52
|
M as GenericForm,
|
|
52
53
|
L as ImageInput,
|
|
53
54
|
t as KpiCard,
|
|
54
55
|
i as KpiCards,
|
|
55
|
-
|
|
56
|
-
|
|
56
|
+
Q as KpiCardsLayout,
|
|
57
|
+
la as LoadingState,
|
|
57
58
|
o as MetricCard,
|
|
58
59
|
j as MultiSelect,
|
|
59
60
|
h as Progress,
|
|
60
61
|
O as SearchInput,
|
|
61
|
-
|
|
62
|
+
K as SearchableFilterPill,
|
|
62
63
|
R as SearchableSelect,
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
_ as Sidebar,
|
|
65
|
+
$ as SidebarHeader,
|
|
66
|
+
aa as SidebarNavItem,
|
|
66
67
|
l as SkeletonCard,
|
|
67
68
|
p as SkeletonCards,
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
69
|
+
ma as TableActions,
|
|
70
|
+
da as TableBody,
|
|
71
|
+
ga as TableBulkActions,
|
|
72
|
+
v as TableFilter,
|
|
72
73
|
fa as TableHeader,
|
|
73
|
-
|
|
74
|
+
Aa as TablePagination,
|
|
74
75
|
Da as TableSettings,
|
|
75
|
-
|
|
76
|
-
|
|
76
|
+
Fa as ThemeSelector,
|
|
77
|
+
ea as Topbar
|
|
77
78
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AppAction } from "@/types/AppAction";
|
|
2
|
+
import React from "react";
|
|
3
|
+
export interface AppPageHeaderProps {
|
|
4
|
+
icon?: React.ElementType;
|
|
5
|
+
titleKey: string;
|
|
6
|
+
descriptionKey?: string;
|
|
7
|
+
actions?: AppAction[];
|
|
8
|
+
onBack?: (() => void) | null;
|
|
9
|
+
renderPreActions?: () => React.JSX.Element;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare function AppPageHeader({ icon: Icon, titleKey, descriptionKey, actions, onBack, renderPreActions, className, }: AppPageHeaderProps): React.JSX.Element;
|
|
13
|
+
//# sourceMappingURL=AppPageHeader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppPageHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/core/layouts/AppPageHeader.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,kBAAkB;IACjC,IAAI,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,SAAS,EAAE,CAAC;IACtB,MAAM,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI,CAAC;IAC7B,gBAAgB,CAAC,EAAE,MAAM,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,aAAa,CAAC,EAC5B,IAAI,EAAE,IAAI,EACV,QAAQ,EACR,cAAc,EACd,OAAO,EACP,MAAM,EACN,gBAAgB,EAChB,SAAS,GACV,EAAE,kBAAkB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CA0BxC"}
|
|
@@ -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,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/core/layouts/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { A as r } from "../../../AppActions-DCaejx-3.js";
|
|
2
|
-
import { A } from "../../../
|
|
3
|
-
import { A as
|
|
4
|
-
import {
|
|
2
|
+
import { A as e, K as A } from "../../../KpiCardsLayout-jXgAbHNB.js";
|
|
3
|
+
import { A as s } from "../../../AppSubTitle-BNd5_q0i.js";
|
|
4
|
+
import { A as i } from "../../../AppTitle-uboDuil4.js";
|
|
5
5
|
export {
|
|
6
6
|
r as AppActions,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
e as AppPageHeader,
|
|
8
|
+
s as AppSubTitle,
|
|
9
|
+
i as AppTitle,
|
|
10
|
+
A as KpiCardsLayout
|
|
10
11
|
};
|
package/dist/components/index.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import { D as o, M as r } from "../MetricCard-D-qPl6zh.js";
|
|
2
2
|
import { K as t, a as n, S as i, b as l } from "../SkeletonCards-0NJcJ-6S.js";
|
|
3
3
|
import { A as p, C as u, F as g } from "../ConfirmationDialog-DJcxTNTk.js";
|
|
4
|
-
import { A as m, j as C, k as S, l as T, m as c, n as D, o as M, p as x, q as A, r as I, s as
|
|
4
|
+
import { A as m, j as C, k as S, l as T, m as c, n as D, o as M, p as x, q as A, r as I, s as P, t as h, u as f, v as w, w as v, x as F, B as L, y as B, z as G, C as H, E as R, F as k, 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 ra, a1 as sa, 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 da, ab as ma, ac as Ca, ad as Sa, ae as Ta, af as ca, ag as Da, ah as Ma, ai as xa, aj as Aa, ak as Ia, al as Pa, am as ha, an as fa, D as wa, a as va, b as Fa, c as La, d as Ba, e as Ga, f as Ha, g as Ra, h as ka, i 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 re, aJ as se, 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 de, aT as me, aU as Ce, aV as Se, aW as Te, aX as ce, aY as De, aZ as Me, a_ as xe, a$ as Ae, b0 as Ie, b1 as Pe, b2 as he, b3 as fe, b4 as we, b5 as ve, b6 as Fe, b7 as Le, b8 as Be, b9 as Ge, ba as He, bb as Re, bc as ke, 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 ro, by as so, 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 mo, bI as Co, bJ as So, bK as To, bL as co, bM as Do, bN as Mo, bO as xo, bP as Ao, bQ as Io, bR as Po, bS as ho, bT as fo, bU as wo, bV as vo, bW as Fo, bX as Lo, bY as Bo, bZ as Go, b_ as Ho, b$ as Ro, c0 as ko, c1 as No, c2 as yo, c3 as Eo } from "../toggle-group-BASGy2mQ.js";
|
|
5
5
|
import { A as Vo, a as Ko, F as zo, S as Uo, T as jo } from "../TableFilter-rjiss-d9.js";
|
|
6
6
|
import { G as Jo } from "../GenericForm-Cy5ntJxi.js";
|
|
7
7
|
import { I as Wo } from "../ImageInput-CJ419eqw.js";
|
|
8
8
|
import { D as Yo, a as Zo, S as _o, b as $o } from "../SearchInput-T9TeORNA.js";
|
|
9
9
|
import { M as er } from "../MultiSelect-DblSHEsg.js";
|
|
10
10
|
import { A as rr } from "../AppActions-DCaejx-3.js";
|
|
11
|
-
import { A as tr } from "../
|
|
12
|
-
import { A as
|
|
13
|
-
import {
|
|
14
|
-
import { S as
|
|
15
|
-
import { E as
|
|
16
|
-
import { E as
|
|
17
|
-
import { L as
|
|
18
|
-
import { D as
|
|
19
|
-
import { A as
|
|
20
|
-
import { T as
|
|
21
|
-
import { A as
|
|
22
|
-
import { A as
|
|
23
|
-
import { B as
|
|
24
|
-
import { I as
|
|
25
|
-
import { S as
|
|
26
|
-
import { S as
|
|
27
|
-
import { toast as
|
|
11
|
+
import { A as tr, K as nr } from "../KpiCardsLayout-jXgAbHNB.js";
|
|
12
|
+
import { A as lr } from "../AppSubTitle-BNd5_q0i.js";
|
|
13
|
+
import { A as pr } from "../AppTitle-uboDuil4.js";
|
|
14
|
+
import { S as gr, a as dr, b as mr, T as Cr } from "../Topbar-DMyjbOTI.js";
|
|
15
|
+
import { E as Tr } from "../ErrorAlert-DH1onuyt.js";
|
|
16
|
+
import { E as Dr } from "../ErrorState-vU8d4CwD.js";
|
|
17
|
+
import { L as xr } from "../LoadingState-BN0YaPSs.js";
|
|
18
|
+
import { D as Ir, T as Pr, a as hr, b as fr, c as wr, d as vr, e as Fr } from "../DataTable-BVgo8YWR.js";
|
|
19
|
+
import { A as Br, a as Gr, b as Hr, c as Rr } from "../AppVerticalTabs-NZ02HPGP.js";
|
|
20
|
+
import { T as Nr } from "../ThemeSelector-Qv8QBlYq.js";
|
|
21
|
+
import { A as Er, a as Or, b as Vr } from "../alert-B78CiTYe.js";
|
|
22
|
+
import { A as zr, C as Ur, a as jr, b as qr, R as Jr, c as Qr, d as Wr, T as Xr, e as Yr } from "../toaster-Du2OlHAd.js";
|
|
23
|
+
import { B as _r, T as $r, a as as, b as es, c as os, d as rs } from "../tooltip-BWyFpIxo.js";
|
|
24
|
+
import { I as ts, S as ns, a as is, b as ls, c as bs, d as ps, e as us, f as gs, g as ds, h as ms, i as Cs } from "../sheet-Gop1cIaU.js";
|
|
25
|
+
import { S as Ts, a as cs, b as Ds, c as Ms, d as xs, e as As, f as Is, g as Ps, h as hs, i as fs } from "../select-MWzbMBAS.js";
|
|
26
|
+
import { S as vs } from "../skeleton-8o8eJd3P.js";
|
|
27
|
+
import { toast as Ls } from "sonner";
|
|
28
28
|
export {
|
|
29
29
|
m as Accordion,
|
|
30
30
|
C as AccordionContent,
|
|
@@ -32,39 +32,40 @@ export {
|
|
|
32
32
|
T as AccordionTrigger,
|
|
33
33
|
Vo as ActiveFilters,
|
|
34
34
|
Ko as AdvancedFilters,
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
Er as Alert,
|
|
36
|
+
Or as AlertDescription,
|
|
37
37
|
c as AlertDialog,
|
|
38
38
|
D as AlertDialogAction,
|
|
39
39
|
M as AlertDialogCancel,
|
|
40
40
|
x as AlertDialogContent,
|
|
41
41
|
A as AlertDialogDescription,
|
|
42
42
|
I as AlertDialogFooter,
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
P as AlertDialogHeader,
|
|
44
|
+
h as AlertDialogTitle,
|
|
45
45
|
f as AlertDialogTrigger,
|
|
46
|
-
|
|
46
|
+
Vr as AlertTitle,
|
|
47
47
|
rr as AppActions,
|
|
48
48
|
p as AppDialog,
|
|
49
|
-
tr as
|
|
50
|
-
|
|
51
|
-
Br as
|
|
52
|
-
Gr as
|
|
53
|
-
|
|
49
|
+
tr as AppPageHeader,
|
|
50
|
+
lr as AppSubTitle,
|
|
51
|
+
Br as AppTabContainer,
|
|
52
|
+
Gr as AppTabHeader,
|
|
53
|
+
Hr as AppTabs,
|
|
54
|
+
pr as AppTitle,
|
|
54
55
|
Rr as AppVerticalTabs,
|
|
55
|
-
|
|
56
|
+
zr as AspectRatio,
|
|
56
57
|
w as Avatar,
|
|
57
58
|
v as AvatarFallback,
|
|
58
59
|
F as AvatarImage,
|
|
59
60
|
L as Badge,
|
|
60
61
|
B as Breadcrumb,
|
|
61
62
|
G as BreadcrumbEllipsis,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
H as BreadcrumbItem,
|
|
64
|
+
R as BreadcrumbLink,
|
|
65
|
+
k as BreadcrumbList,
|
|
65
66
|
N as BreadcrumbPage,
|
|
66
67
|
y as BreadcrumbSeparator,
|
|
67
|
-
|
|
68
|
+
_r as Button,
|
|
68
69
|
E as Calendar,
|
|
69
70
|
O as Card,
|
|
70
71
|
V as CardContent,
|
|
@@ -84,9 +85,9 @@ export {
|
|
|
84
85
|
aa as ChartTooltip,
|
|
85
86
|
ea as ChartTooltipContent,
|
|
86
87
|
oa as Checkbox,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
Ur as Collapsible,
|
|
89
|
+
jr as CollapsibleContent,
|
|
90
|
+
qr as CollapsibleTrigger,
|
|
90
91
|
ra as Command,
|
|
91
92
|
sa as CommandDialog,
|
|
92
93
|
ta as CommandEmpty,
|
|
@@ -109,11 +110,11 @@ export {
|
|
|
109
110
|
xa as ContextMenuSeparator,
|
|
110
111
|
Aa as ContextMenuShortcut,
|
|
111
112
|
Ia as ContextMenuSub,
|
|
112
|
-
|
|
113
|
-
|
|
113
|
+
Pa as ContextMenuSubContent,
|
|
114
|
+
ha as ContextMenuSubTrigger,
|
|
114
115
|
fa as ContextMenuTrigger,
|
|
115
116
|
o as DashboardCard,
|
|
116
|
-
|
|
117
|
+
Ir as DataTable,
|
|
117
118
|
Yo as DatePicker,
|
|
118
119
|
Zo as DateRangePicker,
|
|
119
120
|
wa as Dialog,
|
|
@@ -122,9 +123,9 @@ export {
|
|
|
122
123
|
La as DialogDescription,
|
|
123
124
|
Ba as DialogFooter,
|
|
124
125
|
Ga as DialogHeader,
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
126
|
+
Ha as DialogOverlay,
|
|
127
|
+
Ra as DialogPortal,
|
|
128
|
+
ka as DialogTitle,
|
|
128
129
|
Na as DialogTrigger,
|
|
129
130
|
ya as Drawer,
|
|
130
131
|
Ea as DrawerClose,
|
|
@@ -151,8 +152,8 @@ export {
|
|
|
151
152
|
te as DropdownMenuSubContent,
|
|
152
153
|
ne as DropdownMenuSubTrigger,
|
|
153
154
|
ie as DropdownMenuTrigger,
|
|
154
|
-
|
|
155
|
-
|
|
155
|
+
Tr as ErrorAlert,
|
|
156
|
+
Dr as ErrorState,
|
|
156
157
|
zo as FilterField,
|
|
157
158
|
le as Form,
|
|
158
159
|
be as FormControl,
|
|
@@ -167,19 +168,19 @@ export {
|
|
|
167
168
|
Se as HoverCardContent,
|
|
168
169
|
Te as HoverCardTrigger,
|
|
169
170
|
Wo as ImageInput,
|
|
170
|
-
|
|
171
|
+
ts as Input,
|
|
171
172
|
ce as InputOTP,
|
|
172
173
|
De as InputOTPGroup,
|
|
173
174
|
Me as InputOTPSeparator,
|
|
174
175
|
xe as InputOTPSlot,
|
|
175
176
|
t as KpiCard,
|
|
176
177
|
n as KpiCards,
|
|
177
|
-
|
|
178
|
+
nr as KpiCardsLayout,
|
|
178
179
|
Ae as Label,
|
|
179
|
-
|
|
180
|
+
xr as LoadingState,
|
|
180
181
|
Ie as Menubar,
|
|
181
|
-
|
|
182
|
-
|
|
182
|
+
Pe as MenubarCheckboxItem,
|
|
183
|
+
he as MenubarContent,
|
|
183
184
|
fe as MenubarGroup,
|
|
184
185
|
we as MenubarItem,
|
|
185
186
|
ve as MenubarLabel,
|
|
@@ -187,9 +188,9 @@ export {
|
|
|
187
188
|
Le as MenubarPortal,
|
|
188
189
|
Be as MenubarRadioGroup,
|
|
189
190
|
Ge as MenubarRadioItem,
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
191
|
+
He as MenubarSeparator,
|
|
192
|
+
Re as MenubarShortcut,
|
|
193
|
+
ke as MenubarSub,
|
|
193
194
|
Ne as MenubarSubContent,
|
|
194
195
|
ye as MenubarSubTrigger,
|
|
195
196
|
Ee as MenubarTrigger,
|
|
@@ -216,38 +217,38 @@ export {
|
|
|
216
217
|
ro as Progress,
|
|
217
218
|
so as RadioGroup,
|
|
218
219
|
to as RadioGroupItem,
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
220
|
+
Jr as ResizableHandle,
|
|
221
|
+
Qr as ResizablePanel,
|
|
222
|
+
Wr as ResizablePanelGroup,
|
|
222
223
|
no as ScrollArea,
|
|
223
224
|
io as ScrollBar,
|
|
224
225
|
_o as SearchInput,
|
|
225
226
|
Uo as SearchableFilterPill,
|
|
226
227
|
$o as SearchableSelect,
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
228
|
+
Ts as Select,
|
|
229
|
+
cs as SelectContent,
|
|
230
|
+
Ds as SelectGroup,
|
|
231
|
+
Ms as SelectItem,
|
|
232
|
+
xs as SelectLabel,
|
|
233
|
+
As as SelectScrollDownButton,
|
|
234
|
+
Is as SelectScrollUpButton,
|
|
235
|
+
Ps as SelectSeparator,
|
|
235
236
|
hs as SelectTrigger,
|
|
236
|
-
|
|
237
|
+
fs as SelectValue,
|
|
237
238
|
lo as Separator,
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
239
|
+
ns as Sheet,
|
|
240
|
+
is as SheetClose,
|
|
241
|
+
ls as SheetContent,
|
|
242
|
+
bs as SheetDescription,
|
|
243
|
+
ps as SheetFooter,
|
|
244
|
+
us as SheetHeader,
|
|
245
|
+
gs as SheetOverlay,
|
|
246
|
+
ds as SheetPortal,
|
|
247
|
+
ms as SheetTitle,
|
|
248
|
+
Cs as SheetTrigger,
|
|
249
|
+
gr as Sidebar,
|
|
250
|
+
dr as SidebarHeader,
|
|
251
|
+
mr as SidebarNavItem,
|
|
251
252
|
bo as SimpleTable,
|
|
252
253
|
po as SimpleTableBody,
|
|
253
254
|
uo as SimpleTableCaption,
|
|
@@ -256,45 +257,45 @@ export {
|
|
|
256
257
|
Co as SimpleTableHead,
|
|
257
258
|
So as SimpleTableHeader,
|
|
258
259
|
To as SimpleTableRow,
|
|
259
|
-
|
|
260
|
+
vs as Skeleton,
|
|
260
261
|
i as SkeletonCard,
|
|
261
262
|
l as SkeletonCards,
|
|
262
263
|
co as Slider,
|
|
263
|
-
|
|
264
|
+
Xr as Sonner,
|
|
264
265
|
Do as Switch,
|
|
265
|
-
|
|
266
|
+
Pr as TableActions,
|
|
266
267
|
hr as TableBody,
|
|
267
|
-
|
|
268
|
+
fr as TableBulkActions,
|
|
268
269
|
jo as TableFilter,
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
270
|
+
wr as TableHeader,
|
|
271
|
+
vr as TablePagination,
|
|
272
|
+
Fr as TableSettings,
|
|
272
273
|
Mo as Tabs,
|
|
273
274
|
xo as TabsContent,
|
|
274
275
|
Ao as TabsList,
|
|
275
276
|
Io as TabsTrigger,
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
277
|
+
Po as Textarea,
|
|
278
|
+
Nr as ThemeSelector,
|
|
279
|
+
ho as Toast,
|
|
279
280
|
fo as ToastAction,
|
|
280
281
|
wo as ToastClose,
|
|
281
282
|
vo as ToastDescription,
|
|
282
283
|
Fo as ToastProvider,
|
|
283
284
|
Lo as ToastTitle,
|
|
284
285
|
Bo as ToastViewport,
|
|
285
|
-
|
|
286
|
+
Yr as Toaster,
|
|
286
287
|
Go as Toggle,
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
288
|
+
Ho as ToggleGroup,
|
|
289
|
+
Ro as ToggleGroupItem,
|
|
290
|
+
$r as Tooltip,
|
|
291
|
+
as as TooltipContent,
|
|
292
|
+
es as TooltipProvider,
|
|
293
|
+
os as TooltipTrigger,
|
|
294
|
+
Cr as Topbar,
|
|
295
|
+
ko as badgeVariants,
|
|
296
|
+
rs as buttonVariants,
|
|
296
297
|
No as navigationMenuTriggerStyle,
|
|
297
|
-
|
|
298
|
+
Ls as toast,
|
|
298
299
|
yo as toggleVariants,
|
|
299
300
|
Eo as useFormField
|
|
300
301
|
};
|
package/dist/hooks/index.js
CHANGED
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
import { u as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import {
|
|
1
|
+
import { u as s, a, b as r, c as u } from "../usePage-CWu-cjzK.js";
|
|
2
|
+
import { u as m } from "../useSidebar-BJuALHqQ.js";
|
|
3
|
+
import { u as i } from "../useDataTable-CxcA5S-s.js";
|
|
4
|
+
import { u as x } from "../useDocumentTitle-WNwdPz-I.js";
|
|
5
|
+
import { u as D } from "../useMobile-DN1_OMDB.js";
|
|
6
|
+
import { u as n } from "../useNotifications-zbUhCvF_.js";
|
|
7
|
+
import { u as g } from "../useServerTable-UvTY6L1N.js";
|
|
8
|
+
import { u as C } from "../useTheme-B0Bxda3I.js";
|
|
9
|
+
import { t as d, u as h } from "../useToast-BFTk4lWz.js";
|
|
9
10
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
d as toast,
|
|
12
|
+
s as useConfirmDeleteDialog,
|
|
13
|
+
a as useConfirmationDialog,
|
|
14
|
+
i as useDataTable,
|
|
14
15
|
r as useDialog,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
x as useDocumentTitle,
|
|
17
|
+
D as useMobile,
|
|
18
|
+
n as useNotifications,
|
|
18
19
|
u as usePage,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
g as useServerTable,
|
|
21
|
+
m as useSidebar,
|
|
22
|
+
C as useTheme,
|
|
23
|
+
h as useToast
|
|
23
24
|
};
|
package/dist/hooks/ui/index.js
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { u as s } from "../../useDataTable-CxcA5S-s.js";
|
|
2
|
-
import { u as t
|
|
3
|
-
import { u
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import {
|
|
2
|
+
import { u as t } from "../../useDocumentTitle-WNwdPz-I.js";
|
|
3
|
+
import { u } from "../../useMobile-DN1_OMDB.js";
|
|
4
|
+
import { u as f } from "../../useNotifications-zbUhCvF_.js";
|
|
5
|
+
import { u as x } from "../../useServerTable-UvTY6L1N.js";
|
|
6
|
+
import { u as T } from "../../useTheme-B0Bxda3I.js";
|
|
7
|
+
import { t as b, u as c } from "../../useToast-BFTk4lWz.js";
|
|
7
8
|
export {
|
|
8
|
-
|
|
9
|
+
b as toast,
|
|
9
10
|
s as useDataTable,
|
|
10
11
|
t as useDocumentTitle,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
u as useMobile,
|
|
13
|
+
f as useNotifications,
|
|
14
|
+
x as useServerTable,
|
|
15
|
+
T as useTheme,
|
|
16
|
+
c as useToast
|
|
16
17
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { useEffect as i } from "react";
|
|
2
|
+
import { useTranslation as l } from "react-i18next";
|
|
3
|
+
const $ = (e, t, o) => {
|
|
4
|
+
const { t: n } = l();
|
|
5
|
+
i(() => {
|
|
6
|
+
const c = n(e), r = document.title, s = t ? `${c} - ${t}` : c, u = o ? `${s} | ${o}` : s;
|
|
7
|
+
return document.title = u, () => {
|
|
8
|
+
document.title = r;
|
|
9
|
+
};
|
|
10
|
+
}, [o, t, n, e]);
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
$ as u
|
|
14
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { useState as n, useEffect as M, useCallback as r } from "react";
|
|
2
|
+
function p(i, s = "nom", t = {}) {
|
|
3
|
+
const [o, a] = n(t.initialPage ?? 1), [h, l] = n(t.initialPageSize ?? 10), [S, g] = n(s), [u, C] = n(t.initialSortDirection ?? "asc"), [c, d] = n(t.initialSearchText ?? ""), [T, P] = n(t.initialSearchText ?? ""), [m, x] = n(i);
|
|
4
|
+
M(() => {
|
|
5
|
+
const e = setTimeout(() => {
|
|
6
|
+
P(c);
|
|
7
|
+
}, t.debounceMs ?? 300);
|
|
8
|
+
return () => {
|
|
9
|
+
clearTimeout(e);
|
|
10
|
+
};
|
|
11
|
+
}, [c, t.debounceMs]);
|
|
12
|
+
const b = r((e) => {
|
|
13
|
+
d(e), a(1);
|
|
14
|
+
}, []), z = r((e) => {
|
|
15
|
+
x(e), a(1);
|
|
16
|
+
}, []), f = r((e, F) => {
|
|
17
|
+
g(e), C(F);
|
|
18
|
+
}, []), D = r((e) => {
|
|
19
|
+
l(e), a(1);
|
|
20
|
+
}, []);
|
|
21
|
+
return {
|
|
22
|
+
currentPage: o,
|
|
23
|
+
onPageChange: a,
|
|
24
|
+
pageSize: h,
|
|
25
|
+
onPageSizeChange: D,
|
|
26
|
+
sortColumn: S,
|
|
27
|
+
sortDirection: u,
|
|
28
|
+
onSortChange: f,
|
|
29
|
+
searchText: c,
|
|
30
|
+
debouncedSearchText: T,
|
|
31
|
+
onSearchChange: b,
|
|
32
|
+
appliedFilters: m,
|
|
33
|
+
onFiltersChange: z
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export {
|
|
37
|
+
p as u
|
|
38
|
+
};
|
package/package.json
CHANGED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import "./toggle-group-BASGy2mQ.js";
|
|
3
|
-
import "clsx";
|
|
4
|
-
import "tailwind-merge";
|
|
5
|
-
import "react-i18next";
|
|
6
|
-
import "@krosoft/core/helpers";
|
|
7
|
-
import "./alert-B78CiTYe.js";
|
|
8
|
-
import "@radix-ui/react-aspect-ratio";
|
|
9
|
-
import "./tooltip-BWyFpIxo.js";
|
|
10
|
-
import "@radix-ui/react-collapsible";
|
|
11
|
-
import "./sheet-Gop1cIaU.js";
|
|
12
|
-
import "lucide-react";
|
|
13
|
-
import "react-resizable-panels";
|
|
14
|
-
import "./select-MWzbMBAS.js";
|
|
15
|
-
import "next-themes";
|
|
16
|
-
import "sonner";
|
|
17
|
-
import "react";
|
|
18
|
-
import { b as i, a as p } from "./SkeletonCards-0NJcJ-6S.js";
|
|
19
|
-
import { E as s } from "./ErrorState-vU8d4CwD.js";
|
|
20
|
-
const h = ({ stats: o, isLoading: m, error: t }) => m ? /* @__PURE__ */ r(i, { count: 4 }) : t ? /* @__PURE__ */ r(s, { message: t.message }) : /* @__PURE__ */ r(p, { stats: o });
|
|
21
|
-
export {
|
|
22
|
-
h as K
|
|
23
|
-
};
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { useEffect as S, useState as a, useCallback as i } from "react";
|
|
2
|
-
import { useTranslation as v } from "react-i18next";
|
|
3
|
-
const A = (c, r, e) => {
|
|
4
|
-
const { t: o } = v();
|
|
5
|
-
S(() => {
|
|
6
|
-
const n = o(c), l = document.title, s = r ? `${n} - ${r}` : n, u = e ? `${s} | ${e}` : s;
|
|
7
|
-
return document.title = u, () => {
|
|
8
|
-
document.title = l;
|
|
9
|
-
};
|
|
10
|
-
}, [e, r, o, c]);
|
|
11
|
-
};
|
|
12
|
-
function E(c, r = "nom", e = {}) {
|
|
13
|
-
const [o, n] = a(e.initialPage ?? 1), [l, s] = a(e.initialPageSize ?? 10), [u, g] = a(r), [d, m] = a(e.initialSortDirection ?? "asc"), [h, C] = a(e.initialSearchText ?? ""), [T, P] = a(e.initialSearchText ?? ""), [b, x] = a(c);
|
|
14
|
-
S(() => {
|
|
15
|
-
const t = setTimeout(() => {
|
|
16
|
-
P(h);
|
|
17
|
-
}, e.debounceMs ?? 300);
|
|
18
|
-
return () => {
|
|
19
|
-
clearTimeout(t);
|
|
20
|
-
};
|
|
21
|
-
}, [h, e.debounceMs]);
|
|
22
|
-
const z = i((t) => {
|
|
23
|
-
C(t), n(1);
|
|
24
|
-
}, []), D = i((t) => {
|
|
25
|
-
x(t), n(1);
|
|
26
|
-
}, []), f = i((t, $) => {
|
|
27
|
-
g(t), m($);
|
|
28
|
-
}, []), F = i((t) => {
|
|
29
|
-
s(t), n(1);
|
|
30
|
-
}, []);
|
|
31
|
-
return {
|
|
32
|
-
currentPage: o,
|
|
33
|
-
onPageChange: n,
|
|
34
|
-
pageSize: l,
|
|
35
|
-
onPageSizeChange: F,
|
|
36
|
-
sortColumn: u,
|
|
37
|
-
sortDirection: d,
|
|
38
|
-
onSortChange: f,
|
|
39
|
-
searchText: h,
|
|
40
|
-
debouncedSearchText: T,
|
|
41
|
-
onSearchChange: z,
|
|
42
|
-
appliedFilters: b,
|
|
43
|
-
onFiltersChange: D
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
export {
|
|
47
|
-
E as a,
|
|
48
|
-
A as u
|
|
49
|
-
};
|