@krosoft/react 0.0.142 → 0.0.144

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.
@@ -15,7 +15,7 @@ import "./select-MWzbMBAS.js";
15
15
  import "next-themes";
16
16
  import "sonner";
17
17
  import "react";
18
- import { b as i, a as p } from "./SkeletonCards-BPIVRCOE.js";
18
+ import { b as i, a as p } from "./SkeletonCards-0NJcJ-6S.js";
19
19
  import { E as s } from "./ErrorState-vU8d4CwD.js";
20
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
21
  export {
@@ -0,0 +1,74 @@
1
+ import { jsxs as s, jsx as e, Fragment as l } from "react/jsx-runtime";
2
+ import { formatNumber as v } from "@krosoft/core/helpers";
3
+ import { useTranslation as g } from "react-i18next";
4
+ import { c as t } from "./tailwind.helper-B6yFEsav.js";
5
+ import { J as n, N as p, O as b, K as u } from "./toggle-group-BASGy2mQ.js";
6
+ import "./alert-B78CiTYe.js";
7
+ import "@radix-ui/react-aspect-ratio";
8
+ import "./tooltip-BWyFpIxo.js";
9
+ import "@radix-ui/react-collapsible";
10
+ import "./sheet-Gop1cIaU.js";
11
+ import "lucide-react";
12
+ import "react-resizable-panels";
13
+ import "./select-MWzbMBAS.js";
14
+ import { S as c } from "./skeleton-8o8eJd3P.js";
15
+ import "next-themes";
16
+ import "sonner";
17
+ import "react";
18
+ const y = ({
19
+ titleKey: a,
20
+ value: m,
21
+ valueClassName: i,
22
+ icon: r,
23
+ iconClassName: N,
24
+ description: h,
25
+ descriptionClassName: x,
26
+ onClick: o,
27
+ isLoading: f,
28
+ error: d
29
+ }) => {
30
+ const { t: C } = g();
31
+ return /* @__PURE__ */ s(n, { className: t(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(b, { className: "text-sm font-medium", children: C(a) }),
34
+ /* @__PURE__ */ e(r, { className: t("size-6 text-muted-foreground", N) })
35
+ ] }),
36
+ /* @__PURE__ */ e(u, { children: f ? /* @__PURE__ */ s(l, { children: [
37
+ /* @__PURE__ */ e(c, { className: "h-8 w-24 mb-1" }),
38
+ /* @__PURE__ */ e(c, { className: "h-3 w-32" })
39
+ ] }) : d ? /* @__PURE__ */ s(l, { children: [
40
+ /* @__PURE__ */ e("div", { className: "text-2xl font-bold text-destructive", children: "—" }),
41
+ /* @__PURE__ */ e("p", { className: "text-xs text-destructive", children: d })
42
+ ] }) : /* @__PURE__ */ s(l, { children: [
43
+ /* @__PURE__ */ e("div", { className: t("text-2xl font-bold", i), children: v(m) }),
44
+ /* @__PURE__ */ e("p", { className: t("text-xs text-muted-foreground", x), children: h })
45
+ ] }) })
46
+ ] });
47
+ }, G = ({ stats: a, isLoading: m, error: i }) => /* @__PURE__ */ e("div", { className: "grid gap-6 md:grid-cols-2 lg:grid-cols-4", children: a.map((r) => /* @__PURE__ */ e(
48
+ y,
49
+ {
50
+ titleKey: r.titleKey,
51
+ value: r.value,
52
+ valueClassName: r.valueClassName,
53
+ icon: r.icon,
54
+ iconClassName: r.iconClassName,
55
+ description: r.description,
56
+ descriptionClassName: r.descriptionClassName,
57
+ onClick: r.onClick,
58
+ isLoading: m,
59
+ error: i
60
+ },
61
+ r.titleKey
62
+ )) }), K = () => /* @__PURE__ */ s(n, { className: "animate-pulse", children: [
63
+ /* @__PURE__ */ e(p, { children: /* @__PURE__ */ e("div", { className: "h-6 bg-muted rounded w-1/4" }) }),
64
+ /* @__PURE__ */ e(u, { children: /* @__PURE__ */ s("div", { className: "space-y-2", children: [
65
+ /* @__PURE__ */ e("div", { className: "h-4 bg-muted rounded" }),
66
+ /* @__PURE__ */ e("div", { className: "h-4 bg-muted rounded w-3/4" })
67
+ ] }) })
68
+ ] }), I = ({ count: a = 1 }) => /* @__PURE__ */ e("div", { className: "grid gap-6", style: { gridTemplateColumns: `repeat(${a}, minmax(0, 1fr))` }, children: Array.from({ length: a }).map((m, i) => /* @__PURE__ */ e(K, {}, i)) });
69
+ export {
70
+ y as K,
71
+ K as S,
72
+ G as a,
73
+ I as b
74
+ };
@@ -0,0 +1,217 @@
1
+ import { jsxs as n, jsx as e, Fragment as D } from "react/jsx-runtime";
2
+ import * as K from "react";
3
+ import { ChevronDownIcon as $, SearchIcon as L, MenuIcon as M } from "lucide-react";
4
+ import { T as B, c as Q, a as R, b as q, B as F } from "./tooltip-BWyFpIxo.js";
5
+ import { c as l } from "./tailwind.helper-B6yFEsav.js";
6
+ import "./sidebar.context-D5nywlmP.js";
7
+ import { u as W } from "./useSidebar-BJuALHqQ.js";
8
+ import "react-i18next";
9
+ import "next-themes";
10
+ import { I as G, S as H, b as _, h as E, c as J } from "./sheet-Gop1cIaU.js";
11
+ import { S as O } from "./skeleton-8o8eJd3P.js";
12
+ const z = (a, d, m) => d === a ? !0 : a === "/" || !d.startsWith(`${a}/`) ? !1 : !m.some(
13
+ (i) => i !== a && i.startsWith(`${a}/`) && (d === i || d.startsWith(`${i}/`))
14
+ ), U = ({
15
+ path: a,
16
+ // eslint-disable-next-line @typescript-eslint/naming-convention
17
+ icon: d,
18
+ label: m,
19
+ badge: i,
20
+ subItems: r,
21
+ currentPath: o,
22
+ collapsed: c,
23
+ dense: p = !1,
24
+ onItemClick: v
25
+ }) => {
26
+ const g = (r == null ? void 0 : r.map((t) => t.path)) ?? [], [x, N] = K.useState((r == null ? void 0 : r.some((t) => z(t.path, o, g))) ?? !1), u = a ? o === a || a !== "/" && o.startsWith(`${a}/`) : !1, y = r == null ? void 0 : r.some((t) => z(t.path, o, g)), b = /* @__PURE__ */ n(
27
+ "a",
28
+ {
29
+ href: a ?? "#",
30
+ onClick: (t) => {
31
+ t.ctrlKey || t.metaKey || t.button === 1 || (t.preventDefault(), r && r.length > 0 ? c || N(!x) : a && v(a));
32
+ },
33
+ className: l(
34
+ "flex items-center cursor-pointer transition-all duration-200 group rounded-xl",
35
+ p ? "gap-2.5 mb-0.5" : "gap-3 mb-1",
36
+ c ? p ? "justify-center p-2 h-9 w-9 mx-auto" : "justify-center p-3 h-12 w-12 mx-auto" : p ? "px-3 py-1.5 h-9" : "px-4 py-3 h-12",
37
+ u || !c && y ? p ? "bg-sidebar-primary text-sidebar-primary-foreground" : "bg-sidebar-primary text-sidebar-primary-foreground shadow-lg" : "hover:bg-sidebar-accent text-sidebar-foreground hover:text-sidebar-accent-foreground"
38
+ ),
39
+ children: [
40
+ /* @__PURE__ */ e("div", { className: l("flex-shrink-0 transition-transform group-hover:scale-110", c ? "flex items-center justify-center" : ""), children: /* @__PURE__ */ e(d, { className: "size-4" }) }),
41
+ !c && /* @__PURE__ */ n(D, { children: [
42
+ /* @__PURE__ */ e("span", { className: l("flex-grow transition-opacity duration-150 font-medium", p ? "text-sm" : ""), children: m }),
43
+ i !== void 0 && /* @__PURE__ */ e("span", { className: "bg-red-500 text-white text-xs rounded-full py-1 min-w-[20px] text-center px-2 font-semibold", children: i }),
44
+ r && r.length > 0 && /* @__PURE__ */ e($, { className: l("size-4 transition-transform duration-200", x ? "rotate-180" : "") })
45
+ ] })
46
+ ]
47
+ }
48
+ );
49
+ return /* @__PURE__ */ n(D, { children: [
50
+ c ? /* @__PURE__ */ n(B, { children: [
51
+ /* @__PURE__ */ e(Q, { asChild: !0, children: b }),
52
+ /* @__PURE__ */ e(
53
+ R,
54
+ {
55
+ side: "right",
56
+ sideOffset: 6,
57
+ className: "rounded-xl z-[99999] flex gap-2 bg-sidebar text-sidebar-foreground border border-sidebar-border py-2 text-sm shadow-lg",
58
+ children: /* @__PURE__ */ e("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
59
+ /* @__PURE__ */ e("p", { className: "font-semibold", children: m }),
60
+ i !== void 0 && /* @__PURE__ */ n("span", { className: "ml-1 text-xs", children: [
61
+ "(",
62
+ i,
63
+ ")"
64
+ ] })
65
+ ] }) })
66
+ }
67
+ )
68
+ ] }) : b,
69
+ !c && r && r.length > 0 && x && /* @__PURE__ */ e(
70
+ "div",
71
+ {
72
+ className: l(
73
+ "flex flex-col ml-4 pl-4 border-l-2 border-sidebar-border/50 animate-in slide-in-from-top-2 fade-in duration-200",
74
+ p ? "gap-0.5 mb-0.5" : "gap-1 mb-2"
75
+ ),
76
+ children: r.map((t, C) => {
77
+ const s = z(t.path, o, g);
78
+ return /* @__PURE__ */ n(
79
+ "a",
80
+ {
81
+ href: t.path,
82
+ onClick: (f) => {
83
+ f.ctrlKey || f.metaKey || f.button === 1 || (f.preventDefault(), v(t.path));
84
+ },
85
+ className: l(
86
+ "flex items-center justify-between rounded-xl text-sm transition-all duration-200",
87
+ p ? "px-3 py-1" : "px-4 py-2",
88
+ s ? "bg-sidebar-accent/50 text-sidebar-primary font-semibold" : "text-sidebar-muted hover:bg-sidebar-accent hover:text-sidebar-foreground"
89
+ ),
90
+ children: [
91
+ /* @__PURE__ */ e("span", { children: t.label }),
92
+ t.badge !== void 0 && /* @__PURE__ */ e("span", { className: "bg-sidebar-primary/20 text-sidebar-primary text-[10px] rounded-full py-0.5 px-2 font-semibold", children: t.badge })
93
+ ]
94
+ },
95
+ C
96
+ );
97
+ })
98
+ }
99
+ )
100
+ ] });
101
+ }, ie = ({ groups: a, currentPath: d, onItemClick: m, slots: i, search: r, dense: o = !1, loading: c = !1 }) => {
102
+ const { enabled: p = !1, placeholder: v = "Rechercher..." } = r ?? {}, { header: g, footer: x } = i ?? {}, { collapsed: N, isMobile: u, setCollapsed: y } = W(), [S, j] = K.useState(""), h = u ? !1 : N, T = !N, A = (s) => {
103
+ m(s), u && y(!0);
104
+ }, b = S.trim().toLowerCase(), t = b === "" ? a : a.map((s) => ({
105
+ ...s,
106
+ items: s.items.filter(
107
+ (f) => {
108
+ var w;
109
+ return f.label.toLowerCase().includes(b) || (((w = f.subItems) == null ? void 0 : w.some((k) => k.label.toLowerCase().includes(b))) ?? !1);
110
+ }
111
+ )
112
+ })).filter((s) => s.items.length > 0), C = /* @__PURE__ */ n("div", { className: "flex flex-col h-full bg-sidebar text-sidebar-foreground", children: [
113
+ g,
114
+ p && !h && /* @__PURE__ */ e("div", { className: l("px-4", o ? "pt-2" : "pt-4"), children: /* @__PURE__ */ n("div", { className: "relative", children: [
115
+ /* @__PURE__ */ e(L, { className: "absolute left-3 top-1/2 size-4 -translate-y-1/2 text-sidebar-muted" }),
116
+ /* @__PURE__ */ e(
117
+ G,
118
+ {
119
+ type: "search",
120
+ value: S,
121
+ onChange: (s) => {
122
+ j(s.target.value);
123
+ },
124
+ placeholder: v,
125
+ className: l(
126
+ "bg-sidebar-accent/40 border-sidebar-border pl-9 text-sidebar-foreground placeholder:text-sidebar-muted",
127
+ o ? "h-8 text-sm" : "h-9"
128
+ )
129
+ }
130
+ )
131
+ ] }) }),
132
+ /* @__PURE__ */ e("div", { className: l("flex-1 overflow-y-auto scrollbar-modern", h ? "px-0" : "px-2", o ? "py-2" : "py-4"), children: c ? Array.from({ length: 5 }).map((s, f) => /* @__PURE__ */ n("div", { className: l("flex items-center gap-3", o ? "mb-1 h-9" : "mb-2 h-12", h ? "justify-center px-3" : "px-4"), children: [
133
+ /* @__PURE__ */ e(O, { className: "size-5 flex-shrink-0 rounded-md" }),
134
+ !h && /* @__PURE__ */ e(O, { className: "h-4 flex-1" })
135
+ ] }, f)) : t.map((s, f) => /* @__PURE__ */ n("div", { className: o ? "mb-3" : "mb-6", children: [
136
+ !h && s.title !== void 0 && s.title !== "" && /* @__PURE__ */ e("h3", { className: l("px-4 text-xs uppercase tracking-wider font-semibold text-sidebar-muted", o ? "mb-1" : "mb-2"), children: s.title }),
137
+ /* @__PURE__ */ e("nav", { className: l("flex flex-col", o ? "gap-0.5" : "gap-1"), children: s.items.map((w, k) => /* @__PURE__ */ e(U, { ...w, currentPath: d, collapsed: h, dense: o, onItemClick: A }, k)) })
138
+ ] }, f)) }),
139
+ x && /* @__PURE__ */ e("div", { className: l("border-t border-sidebar-border", o ? "p-2" : "p-4", h ? "flex justify-center" : ""), children: x })
140
+ ] });
141
+ return u ? /* @__PURE__ */ e(
142
+ H,
143
+ {
144
+ open: T,
145
+ onOpenChange: (s) => {
146
+ y(!s);
147
+ },
148
+ children: /* @__PURE__ */ n(_, { side: "left", className: "w-[16rem] p-0 bg-sidebar border-r border-sidebar-border overflow-hidden [&>button]:text-sidebar-foreground", children: [
149
+ /* @__PURE__ */ e(E, { className: "sr-only", children: "Menu de navigation" }),
150
+ /* @__PURE__ */ e(J, { className: "sr-only", children: "Navigation principale de l'application" }),
151
+ C
152
+ ] })
153
+ }
154
+ ) : /* @__PURE__ */ e(q, { delayDuration: 0, children: /* @__PURE__ */ e(
155
+ "aside",
156
+ {
157
+ className: l(
158
+ "flex flex-col bg-sidebar h-screen border-r border-sidebar-border transition-all duration-300",
159
+ h ? "w-[--navbar-width-icon]" : "w-[--navbar-width]",
160
+ "flex"
161
+ ),
162
+ style: {
163
+ "--navbar-width": "16rem",
164
+ "--navbar-width-icon": "4rem"
165
+ },
166
+ children: C
167
+ }
168
+ ) });
169
+ }, se = ({
170
+ name: a = "appname",
171
+ subName: d = "appsubname",
172
+ // eslint-disable-next-line @typescript-eslint/naming-convention
173
+ icon: m,
174
+ dense: i = !1
175
+ }) => {
176
+ const { collapsed: r, isMobile: o } = W(), c = o ? !1 : r;
177
+ return /* @__PURE__ */ n("div", { className: l("flex items-center flex-shrink-0 gap-3 px-4", i ? "h-14" : "h-16 md:h-20", c ? "justify-center" : ""), children: [
178
+ m !== void 0 && /* @__PURE__ */ e("div", { className: "flex-shrink-0 text-sidebar-foreground", children: /* @__PURE__ */ e(m, { className: i ? "size-5" : "size-6" }) }),
179
+ !c && /* @__PURE__ */ n("div", { className: "flex flex-col", children: [
180
+ /* @__PURE__ */ e("h1", { className: l("font-bold text-sidebar-foreground leading-tight", i ? "text-base" : "text-lg"), children: a }),
181
+ /* @__PURE__ */ e("span", { className: l("text-sidebar-muted font-medium", i ? "text-[11px]" : "text-xs"), children: d })
182
+ ] })
183
+ ] });
184
+ }, le = ({ collapsed: a, isMobile: d, onToggleSidebar: m, actionsNode: i, userMenuNode: r }) => /* @__PURE__ */ n(
185
+ "header",
186
+ {
187
+ className: l(
188
+ "fixed top-0 right-0 z-[60] h-16 md:h-20 bg-topbar text-topbar-foreground flex items-center justify-between px-4 transition-all duration-300",
189
+ d && "left-0",
190
+ !d && a && "left-[5rem]",
191
+ !d && !a && "left-[16rem]"
192
+ ),
193
+ tabIndex: -1,
194
+ children: [
195
+ /* @__PURE__ */ e("div", { className: "flex items-center min-w-0 flex-1", children: /* @__PURE__ */ e(
196
+ F,
197
+ {
198
+ variant: "ghost",
199
+ size: "icon",
200
+ onClick: m,
201
+ className: "text-topbar-foreground hover:bg-topbar-accent hover:text-topbar-accent-foreground",
202
+ children: /* @__PURE__ */ e(M, { className: "size-4" })
203
+ }
204
+ ) }),
205
+ /* @__PURE__ */ n("div", { className: "flex items-center gap-2 md:gap-4 flex-shrink-0", children: [
206
+ i,
207
+ r
208
+ ] })
209
+ ]
210
+ }
211
+ );
212
+ export {
213
+ ie as S,
214
+ le as T,
215
+ se as a,
216
+ U as b
217
+ };
@@ -8,6 +8,8 @@ export interface KpiCardProps {
8
8
  description?: string;
9
9
  descriptionClassName?: string;
10
10
  onClick?: () => void;
11
+ isLoading?: boolean;
12
+ error?: string | null;
11
13
  }
12
- export declare const KpiCard: ({ titleKey, value, valueClassName, icon: Icon, iconClassName, description, descriptionClassName, onClick, }: KpiCardProps) => React.ReactElement;
14
+ export declare const KpiCard: ({ titleKey, value, valueClassName, icon: Icon, iconClassName, description, descriptionClassName, onClick, isLoading, error, }: KpiCardProps) => React.ReactElement;
13
15
  //# sourceMappingURL=KpiCard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"KpiCard.d.ts","sourceRoot":"","sources":["../../../../src/components/core/cards/KpiCard.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,IAAI,EAAE,KAAK,CAAC,WAAW,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,eAAO,MAAM,OAAO,GAAI,6GASrB,YAAY,KAAG,KAAK,CAAC,YAevB,CAAC"}
1
+ {"version":3,"file":"KpiCard.d.ts","sourceRoot":"","sources":["../../../../src/components/core/cards/KpiCard.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,IAAI,EAAE,KAAK,CAAC,WAAW,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,eAAO,MAAM,OAAO,GAAI,+HAWrB,YAAY,KAAG,KAAK,CAAC,YA6BvB,CAAC"}
@@ -1,7 +1,10 @@
1
+ import React from "react";
1
2
  import { KpiCardProps } from "./KpiCard";
2
3
  interface KpiCardsProps {
3
4
  stats: KpiCardProps[];
5
+ isLoading?: boolean;
6
+ error?: string | null;
4
7
  }
5
- export declare const KpiCards: ({ stats }: KpiCardsProps) => React.JSX.Element;
8
+ export declare const KpiCards: ({ stats, isLoading, error }: KpiCardsProps) => React.JSX.Element;
6
9
  export {};
7
10
  //# sourceMappingURL=KpiCards.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"KpiCards.d.ts","sourceRoot":"","sources":["../../../../src/components/core/cards/KpiCards.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAW,MAAM,WAAW,CAAC;AAElD,UAAU,aAAa;IACrB,KAAK,EAAE,YAAY,EAAE,CAAC;CACvB;AAED,eAAO,MAAM,QAAQ,GAAI,WAAW,aAAa,KAAG,KAAK,CAAC,GAAG,CAAC,OAgB7D,CAAC"}
1
+ {"version":3,"file":"KpiCards.d.ts","sourceRoot":"","sources":["../../../../src/components/core/cards/KpiCards.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,YAAY,EAAW,MAAM,WAAW,CAAC;AAElD,UAAU,aAAa;IACrB,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,eAAO,MAAM,QAAQ,GAAI,6BAA6B,aAAa,KAAG,KAAK,CAAC,GAAG,CAAC,OAkB/E,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { D as s, M as d } from "../../../MetricCard-D-qPl6zh.js";
2
- import { K as o, a as C, S as t, b as p } from "../../../SkeletonCards-BPIVRCOE.js";
2
+ import { K as o, a as C, S as t, b as p } from "../../../SkeletonCards-0NJcJ-6S.js";
3
3
  export {
4
4
  s as DashboardCard,
5
5
  o as KpiCard,
@@ -1,5 +1,5 @@
1
1
  import { D as r, M as o } from "../../MetricCard-D-qPl6zh.js";
2
- import { K as t, a as i, S as l, b as p } from "../../SkeletonCards-BPIVRCOE.js";
2
+ import { K as t, a as i, S as l, b as p } from "../../SkeletonCards-0NJcJ-6S.js";
3
3
  import { A as m, C as d, F as f } from "../../ConfirmationDialog-DJcxTNTk.js";
4
4
  import { D, a as T, b as n, c, d as x, e as A, f as S, g as C, h as F, i as P, P as h } from "../../toggle-group-BASGy2mQ.js";
5
5
  import { A as k, a as I, F as K, S as v, T as E } from "../../TableFilter-rjiss-d9.js";
@@ -10,8 +10,8 @@ import { M as j } from "../../MultiSelect-DblSHEsg.js";
10
10
  import { A as w } from "../../AppActions-DCaejx-3.js";
11
11
  import { A as J } from "../../AppSubTitle-BNd5_q0i.js";
12
12
  import { A as U } from "../../AppTitle-uboDuil4.js";
13
- import { K as X } from "../../KpiCardsLayout-DDR49Qqh.js";
14
- import { S as Z, a as _, b as $, T as aa } from "../../Topbar-FpiEDwzJ.js";
13
+ import { K as X } from "../../KpiCardsLayout-BVN5HgQ7.js";
14
+ import { S as Z, a as _, b as $, T as aa } from "../../Topbar-DMyjbOTI.js";
15
15
  import { E as ra } from "../../ErrorAlert-DH1onuyt.js";
16
16
  import { E as sa } from "../../ErrorState-vU8d4CwD.js";
17
17
  import { L as ia } from "../../LoadingState-BN0YaPSs.js";
@@ -1,7 +1,7 @@
1
1
  import { A as r } from "../../../AppActions-DCaejx-3.js";
2
2
  import { A } from "../../../AppSubTitle-BNd5_q0i.js";
3
3
  import { A as e } from "../../../AppTitle-uboDuil4.js";
4
- import { K as f } from "../../../KpiCardsLayout-DDR49Qqh.js";
4
+ import { K as f } from "../../../KpiCardsLayout-BVN5HgQ7.js";
5
5
  export {
6
6
  r as AppActions,
7
7
  A as AppSubTitle,
@@ -1 +1 @@
1
- {"version":3,"file":"SidebarNavItem.d.ts","sourceRoot":"","sources":["../../../../src/components/core/navbar/SidebarNavItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAE,WAAW,EAAkB,MAAM,WAAW,CAAC;AAExD,MAAM,WAAW,mBAAoB,SAAQ,WAAW;IACtD,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACrC;AAiBD,eAAO,MAAM,cAAc,GAAI,2FAW5B,mBAAmB,KAAG,KAAK,CAAC,YAyG9B,CAAC"}
1
+ {"version":3,"file":"SidebarNavItem.d.ts","sourceRoot":"","sources":["../../../../src/components/core/navbar/SidebarNavItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAE,WAAW,EAAkB,MAAM,WAAW,CAAC;AAExD,MAAM,WAAW,mBAAoB,SAAQ,WAAW;IACtD,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACrC;AAiBD,eAAO,MAAM,cAAc,GAAI,2FAW5B,mBAAmB,KAAG,KAAK,CAAC,YAgH9B,CAAC"}
@@ -1,4 +1,4 @@
1
- import { S as r, a as b, b as d, T as s } from "../../../Topbar-FpiEDwzJ.js";
1
+ import { S as r, a as b, b as d, T as s } from "../../../Topbar-DMyjbOTI.js";
2
2
  export {
3
3
  r as Sidebar,
4
4
  b as SidebarHeader,
@@ -1,5 +1,5 @@
1
1
  import { D as o, M as r } from "../MetricCard-D-qPl6zh.js";
2
- import { K as t, a as n, S as i, b as l } from "../SkeletonCards-BPIVRCOE.js";
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
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 h, t as P, u as f, v as w, w as v, 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 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 ha, am as Pa, an as fa, D as wa, a as va, b as Fa, c as La, d as Ba, e as Ga, f as Ra, g as ka, h as Ha, 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 he, b2 as Pe, b3 as fe, b4 as we, b5 as ve, 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 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 ho, bS as Po, bT as fo, bU as wo, bV as vo, 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 } 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";
@@ -10,8 +10,8 @@ import { M as er } from "../MultiSelect-DblSHEsg.js";
10
10
  import { A as rr } from "../AppActions-DCaejx-3.js";
11
11
  import { A as tr } from "../AppSubTitle-BNd5_q0i.js";
12
12
  import { A as ir } from "../AppTitle-uboDuil4.js";
13
- import { K as br } from "../KpiCardsLayout-DDR49Qqh.js";
14
- import { S as ur, a as gr, b as dr, T as mr } from "../Topbar-FpiEDwzJ.js";
13
+ import { K as br } from "../KpiCardsLayout-BVN5HgQ7.js";
14
+ import { S as ur, a as gr, b as dr, T as mr } from "../Topbar-DMyjbOTI.js";
15
15
  import { E as Sr } from "../ErrorAlert-DH1onuyt.js";
16
16
  import { E as cr } from "../ErrorState-vU8d4CwD.js";
17
17
  import { L as Mr } from "../LoadingState-BN0YaPSs.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@krosoft/react",
3
- "version": "0.0.142",
3
+ "version": "0.0.144",
4
4
  "description": "Krosoft shared React package",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -1,63 +0,0 @@
1
- import { jsxs as a, 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 s } from "./tailwind.helper-B6yFEsav.js";
5
- import { J as d, N as l, O as f, K as t } from "./toggle-group-BASGy2mQ.js";
6
- import "./alert-B78CiTYe.js";
7
- import "@radix-ui/react-aspect-ratio";
8
- import "./tooltip-BWyFpIxo.js";
9
- import "@radix-ui/react-collapsible";
10
- import "./sheet-Gop1cIaU.js";
11
- import "lucide-react";
12
- import "react-resizable-panels";
13
- import "./select-MWzbMBAS.js";
14
- import "next-themes";
15
- import "sonner";
16
- import "react";
17
- const g = ({
18
- titleKey: i,
19
- value: r,
20
- valueClassName: m,
21
- icon: n,
22
- iconClassName: c,
23
- description: p,
24
- descriptionClassName: u,
25
- onClick: o
26
- }) => {
27
- const { t: N } = C();
28
- return /* @__PURE__ */ a(d, { className: s(o !== void 0 ? "hover:border-primary cursor-pointer" : ""), onClick: o, children: [
29
- /* @__PURE__ */ a(l, { className: "flex flex-row items-center justify-between space-y-0 pb-2", children: [
30
- /* @__PURE__ */ e(f, { className: "text-sm font-medium", children: N(i) }),
31
- /* @__PURE__ */ e(n, { className: s("size-6 text-muted-foreground", c) })
32
- ] }),
33
- /* @__PURE__ */ a(t, { children: [
34
- /* @__PURE__ */ e("div", { className: s("text-2xl font-bold", m), children: h(r) }),
35
- /* @__PURE__ */ e("p", { className: s("text-xs text-muted-foreground", u), children: p })
36
- ] })
37
- ] });
38
- }, q = ({ stats: i }) => /* @__PURE__ */ e("div", { className: "grid gap-6 md:grid-cols-2 lg:grid-cols-4", children: i.map((r) => /* @__PURE__ */ e(
39
- g,
40
- {
41
- titleKey: r.titleKey,
42
- value: r.value,
43
- valueClassName: r.valueClassName,
44
- icon: r.icon,
45
- iconClassName: r.iconClassName,
46
- description: r.description,
47
- descriptionClassName: r.descriptionClassName,
48
- onClick: r.onClick
49
- },
50
- r.titleKey
51
- )) }), v = () => /* @__PURE__ */ a(d, { className: "animate-pulse", children: [
52
- /* @__PURE__ */ e(l, { children: /* @__PURE__ */ e("div", { className: "h-6 bg-muted rounded w-1/4" }) }),
53
- /* @__PURE__ */ e(t, { children: /* @__PURE__ */ a("div", { className: "space-y-2", children: [
54
- /* @__PURE__ */ e("div", { className: "h-4 bg-muted rounded" }),
55
- /* @__PURE__ */ e("div", { className: "h-4 bg-muted rounded w-3/4" })
56
- ] }) })
57
- ] }), B = ({ count: i = 1 }) => /* @__PURE__ */ e("div", { className: "grid gap-6", style: { gridTemplateColumns: `repeat(${i}, minmax(0, 1fr))` }, children: Array.from({ length: i }).map((r, m) => /* @__PURE__ */ e(v, {}, m)) });
58
- export {
59
- g as K,
60
- v as S,
61
- q as a,
62
- B as b
63
- };
@@ -1,217 +0,0 @@
1
- import { jsxs as n, jsx as e, Fragment as D } from "react/jsx-runtime";
2
- import * as W from "react";
3
- import { ChevronDownIcon as L, SearchIcon as M, MenuIcon as B } from "lucide-react";
4
- import { T as Q, c as R, a as q, b as F, B as G } from "./tooltip-BWyFpIxo.js";
5
- import { c as s } from "./tailwind.helper-B6yFEsav.js";
6
- import "./sidebar.context-D5nywlmP.js";
7
- import { u as $ } from "./useSidebar-BJuALHqQ.js";
8
- import "react-i18next";
9
- import "next-themes";
10
- import { I as H, S as _, b as E, h as J, c as K } from "./sheet-Gop1cIaU.js";
11
- import { S as O } from "./skeleton-8o8eJd3P.js";
12
- const z = (a, d, m) => d === a ? !0 : a === "/" || !d.startsWith(`${a}/`) ? !1 : !m.some(
13
- (t) => t !== a && t.startsWith(`${a}/`) && (d === t || d.startsWith(`${t}/`))
14
- ), U = ({
15
- path: a,
16
- // eslint-disable-next-line @typescript-eslint/naming-convention
17
- icon: d,
18
- label: m,
19
- badge: t,
20
- subItems: r,
21
- currentPath: l,
22
- collapsed: c,
23
- dense: f = !1,
24
- onItemClick: u
25
- }) => {
26
- const g = (r == null ? void 0 : r.map((o) => o.path)) ?? [], [x, N] = W.useState((r == null ? void 0 : r.some((o) => z(o.path, l, g))) ?? !1), v = a ? l === a || a !== "/" && l.startsWith(`${a}/`) : !1, y = r == null ? void 0 : r.some((o) => z(o.path, l, g)), b = /* @__PURE__ */ n(
27
- "a",
28
- {
29
- href: a ?? "#",
30
- onClick: (o) => {
31
- o.preventDefault(), r && r.length > 0 ? c || N(!x) : a && u(a);
32
- },
33
- className: s(
34
- "flex items-center cursor-pointer transition-all duration-200 group rounded-xl",
35
- f ? "gap-2.5 mb-0.5" : "gap-3 mb-1",
36
- c ? f ? "justify-center p-2 h-9 w-9 mx-auto" : "justify-center p-3 h-12 w-12 mx-auto" : f ? "px-3 py-1.5 h-9" : "px-4 py-3 h-12",
37
- v || !c && y ? f ? "bg-sidebar-primary text-sidebar-primary-foreground" : "bg-sidebar-primary text-sidebar-primary-foreground shadow-lg" : "hover:bg-sidebar-accent text-sidebar-foreground hover:text-sidebar-accent-foreground"
38
- ),
39
- children: [
40
- /* @__PURE__ */ e("div", { className: s("flex-shrink-0 transition-transform group-hover:scale-110", c ? "flex items-center justify-center" : ""), children: /* @__PURE__ */ e(d, { className: "size-4" }) }),
41
- !c && /* @__PURE__ */ n(D, { children: [
42
- /* @__PURE__ */ e("span", { className: s("flex-grow transition-opacity duration-150 font-medium", f ? "text-sm" : ""), children: m }),
43
- t !== void 0 && /* @__PURE__ */ e("span", { className: "bg-red-500 text-white text-xs rounded-full py-1 min-w-[20px] text-center px-2 font-semibold", children: t }),
44
- r && r.length > 0 && /* @__PURE__ */ e(L, { className: s("size-4 transition-transform duration-200", x ? "rotate-180" : "") })
45
- ] })
46
- ]
47
- }
48
- );
49
- return /* @__PURE__ */ n(D, { children: [
50
- c ? /* @__PURE__ */ n(Q, { children: [
51
- /* @__PURE__ */ e(R, { asChild: !0, children: b }),
52
- /* @__PURE__ */ e(
53
- q,
54
- {
55
- side: "right",
56
- sideOffset: 6,
57
- className: "rounded-xl z-[99999] flex gap-2 bg-sidebar text-sidebar-foreground border border-sidebar-border py-2 text-sm shadow-lg",
58
- children: /* @__PURE__ */ e("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
59
- /* @__PURE__ */ e("p", { className: "font-semibold", children: m }),
60
- t !== void 0 && /* @__PURE__ */ n("span", { className: "ml-1 text-xs", children: [
61
- "(",
62
- t,
63
- ")"
64
- ] })
65
- ] }) })
66
- }
67
- )
68
- ] }) : b,
69
- !c && r && r.length > 0 && x && /* @__PURE__ */ e(
70
- "div",
71
- {
72
- className: s(
73
- "flex flex-col ml-4 pl-4 border-l-2 border-sidebar-border/50 animate-in slide-in-from-top-2 fade-in duration-200",
74
- f ? "gap-0.5 mb-0.5" : "gap-1 mb-2"
75
- ),
76
- children: r.map((o, C) => {
77
- const i = z(o.path, l, g);
78
- return /* @__PURE__ */ n(
79
- "a",
80
- {
81
- href: o.path,
82
- onClick: (h) => {
83
- h.preventDefault(), u(o.path);
84
- },
85
- className: s(
86
- "flex items-center justify-between rounded-xl text-sm transition-all duration-200",
87
- f ? "px-3 py-1" : "px-4 py-2",
88
- i ? "bg-sidebar-accent/50 text-sidebar-primary font-semibold" : "text-sidebar-muted hover:bg-sidebar-accent hover:text-sidebar-foreground"
89
- ),
90
- children: [
91
- /* @__PURE__ */ e("span", { children: o.label }),
92
- o.badge !== void 0 && /* @__PURE__ */ e("span", { className: "bg-sidebar-primary/20 text-sidebar-primary text-[10px] rounded-full py-0.5 px-2 font-semibold", children: o.badge })
93
- ]
94
- },
95
- C
96
- );
97
- })
98
- }
99
- )
100
- ] });
101
- }, ie = ({ groups: a, currentPath: d, onItemClick: m, slots: t, search: r, dense: l = !1, loading: c = !1 }) => {
102
- const { enabled: f = !1, placeholder: u = "Rechercher..." } = r ?? {}, { header: g, footer: x } = t ?? {}, { collapsed: N, isMobile: v, setCollapsed: y } = $(), [S, j] = W.useState(""), p = v ? !1 : N, T = !N, A = (i) => {
103
- m(i), v && y(!0);
104
- }, b = S.trim().toLowerCase(), o = b === "" ? a : a.map((i) => ({
105
- ...i,
106
- items: i.items.filter(
107
- (h) => {
108
- var w;
109
- return h.label.toLowerCase().includes(b) || (((w = h.subItems) == null ? void 0 : w.some((k) => k.label.toLowerCase().includes(b))) ?? !1);
110
- }
111
- )
112
- })).filter((i) => i.items.length > 0), C = /* @__PURE__ */ n("div", { className: "flex flex-col h-full bg-sidebar text-sidebar-foreground", children: [
113
- g,
114
- f && !p && /* @__PURE__ */ e("div", { className: s("px-4", l ? "pt-2" : "pt-4"), children: /* @__PURE__ */ n("div", { className: "relative", children: [
115
- /* @__PURE__ */ e(M, { className: "absolute left-3 top-1/2 size-4 -translate-y-1/2 text-sidebar-muted" }),
116
- /* @__PURE__ */ e(
117
- H,
118
- {
119
- type: "search",
120
- value: S,
121
- onChange: (i) => {
122
- j(i.target.value);
123
- },
124
- placeholder: u,
125
- className: s(
126
- "bg-sidebar-accent/40 border-sidebar-border pl-9 text-sidebar-foreground placeholder:text-sidebar-muted",
127
- l ? "h-8 text-sm" : "h-9"
128
- )
129
- }
130
- )
131
- ] }) }),
132
- /* @__PURE__ */ e("div", { className: s("flex-1 overflow-y-auto scrollbar-modern", p ? "px-0" : "px-2", l ? "py-2" : "py-4"), children: c ? Array.from({ length: 5 }).map((i, h) => /* @__PURE__ */ n("div", { className: s("flex items-center gap-3", l ? "mb-1 h-9" : "mb-2 h-12", p ? "justify-center px-3" : "px-4"), children: [
133
- /* @__PURE__ */ e(O, { className: "size-5 flex-shrink-0 rounded-md" }),
134
- !p && /* @__PURE__ */ e(O, { className: "h-4 flex-1" })
135
- ] }, h)) : o.map((i, h) => /* @__PURE__ */ n("div", { className: l ? "mb-3" : "mb-6", children: [
136
- !p && i.title !== void 0 && i.title !== "" && /* @__PURE__ */ e("h3", { className: s("px-4 text-xs uppercase tracking-wider font-semibold text-sidebar-muted", l ? "mb-1" : "mb-2"), children: i.title }),
137
- /* @__PURE__ */ e("nav", { className: s("flex flex-col", l ? "gap-0.5" : "gap-1"), children: i.items.map((w, k) => /* @__PURE__ */ e(U, { ...w, currentPath: d, collapsed: p, dense: l, onItemClick: A }, k)) })
138
- ] }, h)) }),
139
- x && /* @__PURE__ */ e("div", { className: s("border-t border-sidebar-border", l ? "p-2" : "p-4", p ? "flex justify-center" : ""), children: x })
140
- ] });
141
- return v ? /* @__PURE__ */ e(
142
- _,
143
- {
144
- open: T,
145
- onOpenChange: (i) => {
146
- y(!i);
147
- },
148
- children: /* @__PURE__ */ n(E, { side: "left", className: "w-[16rem] p-0 bg-sidebar border-r border-sidebar-border overflow-hidden [&>button]:text-sidebar-foreground", children: [
149
- /* @__PURE__ */ e(J, { className: "sr-only", children: "Menu de navigation" }),
150
- /* @__PURE__ */ e(K, { className: "sr-only", children: "Navigation principale de l'application" }),
151
- C
152
- ] })
153
- }
154
- ) : /* @__PURE__ */ e(F, { delayDuration: 0, children: /* @__PURE__ */ e(
155
- "aside",
156
- {
157
- className: s(
158
- "flex flex-col bg-sidebar h-screen border-r border-sidebar-border transition-all duration-300",
159
- p ? "w-[--navbar-width-icon]" : "w-[--navbar-width]",
160
- "flex"
161
- ),
162
- style: {
163
- "--navbar-width": "16rem",
164
- "--navbar-width-icon": "4rem"
165
- },
166
- children: C
167
- }
168
- ) });
169
- }, se = ({
170
- name: a = "appname",
171
- subName: d = "appsubname",
172
- // eslint-disable-next-line @typescript-eslint/naming-convention
173
- icon: m,
174
- dense: t = !1
175
- }) => {
176
- const { collapsed: r, isMobile: l } = $(), c = l ? !1 : r;
177
- return /* @__PURE__ */ n("div", { className: s("flex items-center flex-shrink-0 gap-3 px-4", t ? "h-14" : "h-16 md:h-20", c ? "justify-center" : ""), children: [
178
- m !== void 0 && /* @__PURE__ */ e("div", { className: "flex-shrink-0 text-sidebar-foreground", children: /* @__PURE__ */ e(m, { className: t ? "size-5" : "size-6" }) }),
179
- !c && /* @__PURE__ */ n("div", { className: "flex flex-col", children: [
180
- /* @__PURE__ */ e("h1", { className: s("font-bold text-sidebar-foreground leading-tight", t ? "text-base" : "text-lg"), children: a }),
181
- /* @__PURE__ */ e("span", { className: s("text-sidebar-muted font-medium", t ? "text-[11px]" : "text-xs"), children: d })
182
- ] })
183
- ] });
184
- }, le = ({ collapsed: a, isMobile: d, onToggleSidebar: m, actionsNode: t, userMenuNode: r }) => /* @__PURE__ */ n(
185
- "header",
186
- {
187
- className: s(
188
- "fixed top-0 right-0 z-[60] h-16 md:h-20 bg-topbar text-topbar-foreground flex items-center justify-between px-4 transition-all duration-300",
189
- d && "left-0",
190
- !d && a && "left-[5rem]",
191
- !d && !a && "left-[16rem]"
192
- ),
193
- tabIndex: -1,
194
- children: [
195
- /* @__PURE__ */ e("div", { className: "flex items-center min-w-0 flex-1", children: /* @__PURE__ */ e(
196
- G,
197
- {
198
- variant: "ghost",
199
- size: "icon",
200
- onClick: m,
201
- className: "text-topbar-foreground hover:bg-topbar-accent hover:text-topbar-accent-foreground",
202
- children: /* @__PURE__ */ e(B, { className: "size-4" })
203
- }
204
- ) }),
205
- /* @__PURE__ */ n("div", { className: "flex items-center gap-2 md:gap-4 flex-shrink-0", children: [
206
- t,
207
- r
208
- ] })
209
- ]
210
- }
211
- );
212
- export {
213
- ie as S,
214
- le as T,
215
- se as a,
216
- U as b
217
- };