@krosoft/react 0.0.95 → 0.0.97

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/dist/{AppSubTitle-BpBamEcm.js → AppSubTitle-Bc8utqt7.js} +1 -1
  2. package/dist/{AppTitle-eMxmvBxB.js → AppTitle-QlMMlpbQ.js} +8 -8
  3. package/dist/{AppVerticalTabs-CVukFn4d.js → AppVerticalTabs--Kb9OFa4.js} +29 -30
  4. package/dist/{ConfirmationDialog-D7W5xkwQ.js → ConfirmationDialog-Bv-O4ui4.js} +43 -43
  5. package/dist/{DataTable-C5t09hPv.js → DataTable-DWGao3TY.js} +28 -28
  6. package/dist/{ErrorAlert-BITMD2I5.js → ErrorAlert-DpOsMww8.js} +1 -1
  7. package/dist/LoadingState-M_TV_5Ui.js +13 -0
  8. package/dist/MetricCard-BjTGW3b2.js +103 -0
  9. package/dist/{SearchInput-Cez8b7gL.js → SearchInput-CKG1_3iS.js} +228 -212
  10. package/dist/{TableFilter-ChclLTH1.js → TableFilter-oBrNz-v_.js} +44 -44
  11. package/dist/alert-sHZy6NHC.js +30 -0
  12. package/dist/components/core/cards/CardSkeleton.d.ts.map +1 -0
  13. package/dist/components/core/cards/CardsSkeleton.d.ts.map +1 -0
  14. package/dist/components/core/cards/DashboardCard.d.ts +10 -0
  15. package/dist/components/core/cards/DashboardCard.d.ts.map +1 -0
  16. package/dist/components/core/cards/index.d.ts +4 -1
  17. package/dist/components/core/cards/index.d.ts.map +1 -1
  18. package/dist/components/core/cards/index.js +7 -4
  19. package/dist/components/core/dialogs/index.js +2 -2
  20. package/dist/components/core/filters/index.js +1 -1
  21. package/dist/components/core/index.js +63 -62
  22. package/dist/components/core/inputs/SearchableSelect.d.ts +3 -1
  23. package/dist/components/core/inputs/SearchableSelect.d.ts.map +1 -1
  24. package/dist/components/core/inputs/index.js +1 -1
  25. package/dist/components/core/layouts/index.js +2 -2
  26. package/dist/components/core/states/index.d.ts +0 -2
  27. package/dist/components/core/states/index.d.ts.map +1 -1
  28. package/dist/components/core/states/index.js +5 -7
  29. package/dist/components/core/table/index.js +1 -1
  30. package/dist/components/core/tabs/index.js +1 -1
  31. package/dist/components/index.js +284 -283
  32. package/dist/components/ui/button.d.ts +2 -2
  33. package/dist/components/ui/command.d.ts +12 -12
  34. package/dist/components/ui/index.js +187 -187
  35. package/dist/{toaster-DeSyPrhi.js → toaster-B09ou5gw.js} +24 -24
  36. package/dist/{toggle-group-CrQymn4l.js → toggle-group-iLf3T7oV.js} +5850 -5832
  37. package/package.json +1 -1
  38. package/dist/LoadingState-COf3KhOP.js +0 -29
  39. package/dist/MetricCard-BkOvTc3_.js +0 -85
  40. package/dist/card-Bn3Y7DHQ.js +0 -48
  41. package/dist/components/core/states/CardSkeleton.d.ts.map +0 -1
  42. package/dist/components/core/states/CardsSkeleton.d.ts.map +0 -1
  43. /package/dist/components/core/{states → cards}/CardSkeleton.d.ts +0 -0
  44. /package/dist/components/core/{states → cards}/CardsSkeleton.d.ts +0 -0
@@ -1,9 +1,9 @@
1
- import { jsxs as p, jsx as r } from "react/jsx-runtime";
1
+ import { jsxs as m, jsx as r } from "react/jsx-runtime";
2
2
  import { useState as k, useEffect as M, useMemo as A } from "react";
3
- import { M as O, a as $, D as z, b as _, S as j } from "./SearchInput-Cez8b7gL.js";
4
- import { aQ as C, bx as B, bG as I, bz as Q, bC as R, bF as V, aV as H, bB as G, bp as U, br as X, bq as J, c8 as K, U as P } from "./toggle-group-CrQymn4l.js";
5
- import "./card-Bn3Y7DHQ.js";
6
- import { B as w, C as W } from "./tooltip-CAu4DEhc.js";
3
+ import { M as $, a as O, D as _, b as I, S as j } from "./SearchInput-CKG1_3iS.js";
4
+ import { aW as C, bD as z, bM as R, bF as B, bI as Q, bL as V, a$ as H, bH as W, bv as X, bx as G, bw as J, ce as K, _ as P } from "./toggle-group-iLf3T7oV.js";
5
+ import "./alert-sHZy6NHC.js";
6
+ import { B as w, C as U } from "./tooltip-CAu4DEhc.js";
7
7
  import { X as E, S as Y, h as Z, i as q, a as ee, c as re } from "./select-zzSnHs9S.js";
8
8
  import "next-themes";
9
9
  import { B as L } from "./badge-C09fRxvd.js";
@@ -30,15 +30,15 @@ const ae = [
30
30
  return i !== void 0 ? i : s.includes("ok") || l === "true" || l === "false" ? l === "true" ? "Oui" : "Non" : o;
31
31
  };
32
32
  function ce({ filters: s, onRemoveFilter: l, onClearAll: a, filterLabels: o = {}, optionLabels: i = {} }) {
33
- const d = Object.entries(s).filter(([n, m]) => !(m == null || m === "" || Array.isArray(m) && m.length === 0));
34
- return d.length === 0 ? null : /* @__PURE__ */ p("div", { className: "flex flex-wrap items-center gap-2 mb-4", children: [
33
+ const d = Object.entries(s).filter(([n, p]) => !(p == null || p === "" || Array.isArray(p) && p.length === 0));
34
+ return d.length === 0 ? null : /* @__PURE__ */ m("div", { className: "flex flex-wrap items-center gap-2 mb-4", children: [
35
35
  /* @__PURE__ */ r("span", { className: "text-sm text-gray-600 font-medium", children: "Filtres actifs :" }),
36
- d.flatMap(([n, m]) => {
36
+ d.flatMap(([n, p]) => {
37
37
  const f = o[n] ?? n;
38
- if (Array.isArray(m))
39
- return m.map((v) => {
38
+ if (Array.isArray(p))
39
+ return p.map((v) => {
40
40
  const b = T(n, v, i);
41
- return /* @__PURE__ */ p(
41
+ return /* @__PURE__ */ m(
42
42
  L,
43
43
  {
44
44
  variant: "secondary",
@@ -62,8 +62,8 @@ function ce({ filters: s, onRemoveFilter: l, onClearAll: a, filterLabels: o = {}
62
62
  `${n}_${String(v)}`
63
63
  );
64
64
  });
65
- const x = T(n, m, i);
66
- return /* @__PURE__ */ p(L, { variant: "secondary", className: "flex items-center gap-1 px-3 py-1 bg-blue-50 text-blue-700 border border-blue-200 hover:bg-blue-100", children: [
65
+ const x = T(n, p, i);
66
+ return /* @__PURE__ */ m(L, { variant: "secondary", className: "flex items-center gap-1 px-3 py-1 bg-blue-50 text-blue-700 border border-blue-200 hover:bg-blue-100", children: [
67
67
  f,
68
68
  ": ",
69
69
  x,
@@ -112,7 +112,7 @@ const ne = ({ field: s, value: l, onChange: a, onToggleMultiSelect: o }) => {
112
112
  );
113
113
  case "select":
114
114
  return s.searchable === !0 ? /* @__PURE__ */ r(
115
- _,
115
+ I,
116
116
  {
117
117
  options: s.options ?? [],
118
118
  value: l,
@@ -120,17 +120,17 @@ const ne = ({ field: s, value: l, onChange: a, onToggleMultiSelect: o }) => {
120
120
  placeholder: s.placeholder,
121
121
  searchPlaceholder: s.searchPlaceholder
122
122
  }
123
- ) : /* @__PURE__ */ p(Y, { value: l ?? "", onValueChange: a, children: [
123
+ ) : /* @__PURE__ */ m(Y, { value: l ?? "", onValueChange: a, children: [
124
124
  /* @__PURE__ */ r(Z, { className: te((l === void 0 || l === "") && "text-muted-foreground"), children: /* @__PURE__ */ r(q, { placeholder: s.placeholder }) }),
125
125
  /* @__PURE__ */ r(ee, { children: (i = s.options) == null ? void 0 : i.map((d) => /* @__PURE__ */ r(re, { value: d.value, children: d.label }, d.value)) })
126
126
  ] });
127
127
  case "date":
128
- return /* @__PURE__ */ r(z, { date: l, onDateChange: a, placeholder: s.placeholder ?? "Sélectionner une date" });
128
+ return /* @__PURE__ */ r(_, { date: l, onDateChange: a, placeholder: s.placeholder ?? "Sélectionner une date" });
129
129
  case "date-range":
130
- return /* @__PURE__ */ r($, { value: l, onChange: a, placeholder: s.placeholder });
130
+ return /* @__PURE__ */ r(O, { value: l, onChange: a, placeholder: s.placeholder });
131
131
  case "multi-select":
132
132
  return /* @__PURE__ */ r(
133
- O,
133
+ $,
134
134
  {
135
135
  options: s.options ?? [],
136
136
  selected: l ?? [],
@@ -155,36 +155,36 @@ function oe({
155
155
  buttonText: o = "Plus de filtres",
156
156
  sheetTitle: i = "Filtres avancés"
157
157
  }) {
158
- const [d, n] = k(!1), [m, f] = k(l);
158
+ const [d, n] = k(!1), [p, f] = k(l);
159
159
  M(() => {
160
160
  f(l);
161
161
  }, [l, d]);
162
162
  const x = (g, t) => {
163
163
  f((h) => ({ ...h, [g]: t }));
164
164
  }, v = (g, t) => {
165
- const h = m[g], e = Array.isArray(h) ? h : [], u = e.includes(t) ? e.filter((c) => c !== t) : [...e, t];
165
+ const h = p[g], e = Array.isArray(h) ? h : [], u = e.includes(t) ? e.filter((c) => c !== t) : [...e, t];
166
166
  x(g, u);
167
167
  }, b = () => {
168
- a(m), n(!1);
168
+ a(p), n(!1);
169
169
  }, N = () => {
170
170
  f({}), a({}), n(!1);
171
171
  };
172
- return /* @__PURE__ */ p(B, { open: d, onOpenChange: n, children: [
173
- /* @__PURE__ */ r(I, { asChild: !0, children: /* @__PURE__ */ p(w, { variant: "outline", className: "gap-2", children: [
172
+ return /* @__PURE__ */ m(z, { open: d, onOpenChange: n, children: [
173
+ /* @__PURE__ */ r(R, { asChild: !0, children: /* @__PURE__ */ m(w, { variant: "outline", className: "gap-2", children: [
174
174
  /* @__PURE__ */ r(se, { className: "size-4 shrink-0" }),
175
175
  o
176
176
  ] }) }),
177
- /* @__PURE__ */ p(Q, { side: "right", className: "w-[400px] sm:w-[500px] flex flex-col p-0", children: [
178
- /* @__PURE__ */ r(R, { className: "p-6 pb-0", children: /* @__PURE__ */ r(V, { children: i }) }),
179
- /* @__PURE__ */ r("div", { className: "flex-1 overflow-y-auto p-6 pt-6", children: /* @__PURE__ */ r("div", { className: "space-y-6", children: s.map((g, t) => /* @__PURE__ */ p("div", { className: "space-y-4", children: [
177
+ /* @__PURE__ */ m(B, { side: "right", className: "w-[400px] sm:w-[500px] flex flex-col p-0", children: [
178
+ /* @__PURE__ */ r(Q, { className: "p-6 pb-0", children: /* @__PURE__ */ r(V, { children: i }) }),
179
+ /* @__PURE__ */ r("div", { className: "flex-1 overflow-y-auto p-6 pt-6", children: /* @__PURE__ */ r("div", { className: "space-y-6", children: s.map((g, t) => /* @__PURE__ */ m("div", { className: "space-y-4", children: [
180
180
  /* @__PURE__ */ r("h3", { className: "font-semibold text-sm text-gray-900 dark:text-gray-100 border-b pb-2", children: g.title }),
181
- g.filters.map((h) => /* @__PURE__ */ p("div", { className: "space-y-2", children: [
181
+ g.filters.map((h) => /* @__PURE__ */ m("div", { className: "space-y-2", children: [
182
182
  /* @__PURE__ */ r(H, { htmlFor: h.key, children: h.label }),
183
183
  /* @__PURE__ */ r(
184
184
  ne,
185
185
  {
186
186
  field: h,
187
- value: m[h.key],
187
+ value: p[h.key],
188
188
  onChange: (e) => {
189
189
  x(h.key, e);
190
190
  },
@@ -195,7 +195,7 @@ function oe({
195
195
  )
196
196
  ] }, h.key))
197
197
  ] }, t)) }) }),
198
- /* @__PURE__ */ p(G, { className: "gap-2 p-6 border-t bg-white dark:bg-gray-950", children: [
198
+ /* @__PURE__ */ m(W, { className: "gap-2 p-6 border-t bg-white dark:bg-gray-950", children: [
199
199
  /* @__PURE__ */ r(w, { variant: "outline", className: "flex-1", onClick: N, children: "Effacer les filtres" }),
200
200
  /* @__PURE__ */ r(w, { className: "flex-1 bg-orange-500 hover:bg-orange-600 text-white", onClick: b, children: "Rechercher" })
201
201
  ] })
@@ -210,7 +210,7 @@ function ie({
210
210
  onClear: i,
211
211
  onSelectAll: d,
212
212
  searchable: n = !1,
213
- searchPlaceholder: m = "Rechercher..."
213
+ searchPlaceholder: p = "Rechercher..."
214
214
  }) {
215
215
  const [f, x] = k(""), v = a.length > 0, b = A(() => f === "" ? l : l.filter((t) => t.label.toLowerCase().includes(f.toLowerCase())), [l, f]), N = A(() => b.length === 0 ? !1 : b.every((t) => a.includes(t.value)), [b, a]), g = () => {
216
216
  if (N)
@@ -230,32 +230,32 @@ function ie({
230
230
  a.includes(t.value) || o(t.value);
231
231
  });
232
232
  };
233
- return /* @__PURE__ */ p(
234
- U,
233
+ return /* @__PURE__ */ m(
234
+ X,
235
235
  {
236
236
  onOpenChange: () => {
237
237
  x("");
238
238
  },
239
239
  children: [
240
- /* @__PURE__ */ r(X, { asChild: !0, children: /* @__PURE__ */ p(
240
+ /* @__PURE__ */ r(G, { asChild: !0, children: /* @__PURE__ */ m(
241
241
  "button",
242
242
  {
243
243
  className: `inline-flex items-center gap-1.5 rounded-full border px-3 py-1.5 text-sm transition-colors whitespace-nowrap ${v ? "border-primary bg-primary/10 text-primary font-medium" : "border-border bg-card text-card-foreground hover:bg-muted"}`,
244
244
  children: [
245
245
  s,
246
246
  a.length > 0 && /* @__PURE__ */ r("span", { className: "flex h-4 min-w-[16px] items-center justify-center rounded-full bg-primary px-1 text-[10px] font-bold text-primary-foreground", children: a.length }),
247
- /* @__PURE__ */ r(W, { className: "size-3.5 opacity-60" })
247
+ /* @__PURE__ */ r(U, { className: "size-3.5 opacity-60" })
248
248
  ]
249
249
  }
250
250
  ) }),
251
- /* @__PURE__ */ p(J, { className: "w-56 p-0", align: "start", children: [
252
- n ? /* @__PURE__ */ r("div", { className: "border-b border-border p-2", children: /* @__PURE__ */ p("div", { className: "relative", children: [
251
+ /* @__PURE__ */ m(J, { className: "w-56 p-0", align: "start", children: [
252
+ n ? /* @__PURE__ */ r("div", { className: "border-b border-border p-2", children: /* @__PURE__ */ m("div", { className: "relative", children: [
253
253
  /* @__PURE__ */ r(K, { className: "absolute left-2 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-muted-foreground" }),
254
254
  /* @__PURE__ */ r(
255
255
  "input",
256
256
  {
257
257
  className: "w-full rounded-md bg-muted/50 py-1.5 pl-7 pr-2 text-sm text-foreground placeholder:text-muted-foreground outline-none focus:ring-1 focus:ring-ring",
258
- placeholder: m,
258
+ placeholder: p,
259
259
  value: f,
260
260
  onChange: (t) => {
261
261
  x(t.target.value);
@@ -264,13 +264,13 @@ function ie({
264
264
  }
265
265
  )
266
266
  ] }) }) : null,
267
- /* @__PURE__ */ p("div", { className: "flex flex-col gap-0.5 max-h-56 overflow-y-auto p-1.5", children: [
268
- b.length > 0 && /* @__PURE__ */ p("label", { className: "flex items-center gap-2.5 rounded-md px-2 py-2 text-sm hover:bg-muted cursor-pointer transition-colors", children: [
267
+ /* @__PURE__ */ m("div", { className: "flex flex-col gap-0.5 max-h-56 overflow-y-auto p-1.5", children: [
268
+ b.length > 0 && /* @__PURE__ */ m("label", { className: "flex items-center gap-2.5 rounded-md px-2 py-2 text-sm hover:bg-muted cursor-pointer transition-colors", children: [
269
269
  /* @__PURE__ */ r(P, { checked: N, onCheckedChange: g }),
270
270
  "Tout sélectionner"
271
271
  ] }),
272
272
  b.length === 0 && /* @__PURE__ */ r("p", { className: "px-2 py-3 text-center text-xs text-muted-foreground", children: "Aucun résultat" }),
273
- b.map((t) => /* @__PURE__ */ p("label", { className: "flex items-center gap-2.5 rounded-md px-2 py-2 text-sm hover:bg-muted cursor-pointer transition-colors", children: [
273
+ b.map((t) => /* @__PURE__ */ m("label", { className: "flex items-center gap-2.5 rounded-md px-2 py-2 text-sm hover:bg-muted cursor-pointer transition-colors", children: [
274
274
  /* @__PURE__ */ r(
275
275
  P,
276
276
  {
@@ -308,7 +308,7 @@ function Ne({
308
308
  onFiltersChange: i,
309
309
  filterLabels: d = {},
310
310
  sections: n,
311
- advancedButtonText: m = "Filtres",
311
+ advancedButtonText: p = "Filtres",
312
312
  sheetTitle: f = "Filtres avancés"
313
313
  }) {
314
314
  const x = (e, u) => {
@@ -352,8 +352,8 @@ function Ne({
352
352
  });
353
353
  }), e;
354
354
  }, [n]);
355
- return /* @__PURE__ */ p("div", { className: "space-y-4 w-full", children: [
356
- /* @__PURE__ */ r("div", { className: "flex flex-wrap items-center gap-3 justify-between", children: /* @__PURE__ */ p("div", { className: "flex flex-wrap items-center gap-3", children: [
355
+ return /* @__PURE__ */ m("div", { className: "space-y-4 w-full", children: [
356
+ /* @__PURE__ */ r("div", { className: "flex flex-wrap items-center gap-3 justify-between", children: /* @__PURE__ */ m("div", { className: "flex flex-wrap items-center gap-3", children: [
357
357
  l !== void 0 ? /* @__PURE__ */ r(
358
358
  j,
359
359
  {
@@ -385,7 +385,7 @@ function Ne({
385
385
  },
386
386
  e.key
387
387
  )),
388
- n.length > 0 && /* @__PURE__ */ r(oe, { sections: n, filters: o, onFiltersChange: i, buttonText: m, sheetTitle: f })
388
+ n.length > 0 && /* @__PURE__ */ r(oe, { sections: n, filters: o, onFiltersChange: i, buttonText: p, sheetTitle: f })
389
389
  ] }) }),
390
390
  /* @__PURE__ */ r(
391
391
  ce,
@@ -0,0 +1,30 @@
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import * as s from "react";
3
+ import { a as l } from "./index-DSyPHOLE.js";
4
+ import { c as i } from "./index-gWiv5-6R.js";
5
+ const d = l(
6
+ "relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",
7
+ {
8
+ variants: {
9
+ variant: {
10
+ default: "bg-background text-foreground",
11
+ destructive: "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"
12
+ }
13
+ },
14
+ defaultVariants: {
15
+ variant: "default"
16
+ }
17
+ }
18
+ ), n = s.forwardRef(
19
+ ({ className: t, variant: e, ...r }, o) => /* @__PURE__ */ a("div", { ref: o, role: "alert", className: i(d({ variant: e }), t), ...r })
20
+ );
21
+ n.displayName = "Alert";
22
+ const c = s.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ a("h5", { ref: r, className: i("mb-1 font-medium leading-none tracking-tight", t), ...e }));
23
+ c.displayName = "AlertTitle";
24
+ const v = s.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ a("div", { ref: r, className: i("text-sm [&_p]:leading-relaxed", t), ...e }));
25
+ v.displayName = "AlertDescription";
26
+ export {
27
+ n as A,
28
+ v as a,
29
+ c as b
30
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CardSkeleton.d.ts","sourceRoot":"","sources":["../../../../src/components/core/cards/CardSkeleton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,eAAO,MAAM,YAAY,QAAO,KAAK,CAAC,GAAG,CAAC,OAczC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CardsSkeleton.d.ts","sourceRoot":"","sources":["../../../../src/components/core/cards/CardsSkeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,UAAU,kBAAkB;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,aAAa,GAAI,WAAe,kBAAkB,KAAG,KAAK,CAAC,GAAG,CAAC,OAQ3E,CAAC"}
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ interface DashboardCardProps {
3
+ titleKey: string;
4
+ icon?: React.ElementType;
5
+ className?: string;
6
+ children: React.ReactNode;
7
+ }
8
+ export declare const DashboardCard: ({ titleKey, icon: Icon, className, children }: DashboardCardProps) => import("react/jsx-runtime").JSX.Element;
9
+ export {};
10
+ //# sourceMappingURL=DashboardCard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DashboardCard.d.ts","sourceRoot":"","sources":["../../../../src/components/core/cards/DashboardCard.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,kBAAkB;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,aAAa,GAAI,+CAA+C,kBAAkB,4CAa9F,CAAC"}
@@ -1,6 +1,9 @@
1
+ export { CardSkeleton } from "./CardSkeleton";
2
+ export { CardsSkeleton } from "./CardsSkeleton";
3
+ export { DashboardCard } from "./DashboardCard";
1
4
  export { KpiCard } from "./KpiCard";
2
5
  export type { KpiCardProps } from "./KpiCard";
3
6
  export { KpiCards } from "./KpiCards";
4
7
  export { MetricCard } from "./MetricCard";
5
- export type { MetricCardProps, MetricCardColor } from "./MetricCard";
8
+ export type { MetricCardColor, MetricCardProps } from "./MetricCard";
6
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/core/cards/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/core/cards/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC"}
@@ -1,6 +1,9 @@
1
- import { K as s, a as d, M as i } from "../../../MetricCard-BkOvTc3_.js";
1
+ import { C as s, a as d, D as C, K as e, b as o, M as t } from "../../../MetricCard-BjTGW3b2.js";
2
2
  export {
3
- s as KpiCard,
4
- d as KpiCards,
5
- i as MetricCard
3
+ s as CardSkeleton,
4
+ d as CardsSkeleton,
5
+ C as DashboardCard,
6
+ e as KpiCard,
7
+ o as KpiCards,
8
+ t as MetricCard
6
9
  };
@@ -1,5 +1,5 @@
1
- import { A as i, C as l, a as s, F as g } from "../../../ConfirmationDialog-D7W5xkwQ.js";
2
- import { D as e, a as r, b as t, c as n, d as f, e as m, f as p, g as C, h as F, i as P, P as c } from "../../../toggle-group-CrQymn4l.js";
1
+ import { A as i, C as l, a as s, F as g } from "../../../ConfirmationDialog-Bv-O4ui4.js";
2
+ import { D as e, a as r, b as t, c as n, d as f, e as m, f as p, g as C, h as F, i as P, P as c } from "../../../toggle-group-iLf3T7oV.js";
3
3
  export {
4
4
  i as AppDialog,
5
5
  l as ConfirmDeleteDialog,
@@ -1,4 +1,4 @@
1
- import { A as l, a as i, F as r, S as s, T as t } from "../../../TableFilter-ChclLTH1.js";
1
+ import { A as l, a as i, F as r, S as s, T as t } from "../../../TableFilter-oBrNz-v_.js";
2
2
  export {
3
3
  l as ActiveFilters,
4
4
  i as AdvancedFilters,
@@ -1,66 +1,67 @@
1
- import { K as r, a as s, M as o } from "../../MetricCard-BkOvTc3_.js";
2
- import { A as i, C as l, a as p, F as b } from "../../ConfirmationDialog-D7W5xkwQ.js";
3
- import { D, a as T, b as n, c, d as A, e as m, f as d, g as S, h as f, i as x, P as C } from "../../toggle-group-CrQymn4l.js";
4
- import { A as P, a as h, F as k, S as u, T as v } from "../../TableFilter-ChclLTH1.js";
5
- import { D as M, a as H, M as K, S as y, b as B } from "../../SearchInput-Cez8b7gL.js";
6
- import { A as L, a as N } from "../../AppTitle-eMxmvBxB.js";
7
- import { A as R } from "../../AppSubTitle-BpBamEcm.js";
8
- import { S as j, a as q, T as w } from "../../Topbar-QKCJiWdO.js";
9
- import { C as G, a as J, E as Q, L as U } from "../../LoadingState-COf3KhOP.js";
10
- import { E as X } from "../../ErrorAlert-BITMD2I5.js";
11
- import { D as Z, T as _, a as $, b as aa, c as ea, d as ra, e as sa } from "../../DataTable-C5t09hPv.js";
12
- import { A as ta, a as ia, b as la, c as pa } from "../../AppVerticalTabs-CVukFn4d.js";
1
+ import { C as r, a as s, D as o, K as t, b as i, M as l } from "../../MetricCard-BjTGW3b2.js";
2
+ import { A as b, C as D, a as g, F as T } from "../../ConfirmationDialog-Bv-O4ui4.js";
3
+ import { D as c, a as d, b as A, c as m, d as S, e as f, f as x, g as C, h as F, i as P, P as h } from "../../toggle-group-iLf3T7oV.js";
4
+ import { A as u, a as v, F as E, S as M, T as H } from "../../TableFilter-oBrNz-v_.js";
5
+ import { D as y, a as B, M as I, S as L, b as N } from "../../SearchInput-CKG1_3iS.js";
6
+ import { A as R, a as V } from "../../AppTitle-QlMMlpbQ.js";
7
+ import { A as q } from "../../AppSubTitle-Bc8utqt7.js";
8
+ import { S as z, a as G, T as J } from "../../Topbar-QKCJiWdO.js";
9
+ import { E as U } from "../../ErrorAlert-DpOsMww8.js";
10
+ import { E as X, L as Y } from "../../LoadingState-M_TV_5Ui.js";
11
+ import { D as _, T as $, a as aa, b as ea, c as ra, d as sa, e as oa } from "../../DataTable-DWGao3TY.js";
12
+ import { A as ia, a as la, b as pa, c as ba } from "../../AppVerticalTabs--Kb9OFa4.js";
13
13
  import { T as ga } from "../../ThemeSelector-Bzxc7UEq.js";
14
14
  export {
15
- P as ActiveFilters,
16
- h as AdvancedFilters,
17
- L as AppActions,
18
- i as AppDialog,
19
- R as AppSubTitle,
20
- ta as AppTabContainer,
21
- ia as AppTabHeader,
22
- la as AppTabs,
23
- N as AppTitle,
24
- pa as AppVerticalTabs,
25
- G as CardSkeleton,
26
- J as CardsSkeleton,
27
- l as ConfirmDeleteDialog,
28
- p as ConfirmationDialog,
29
- Z as DataTable,
30
- M as DatePicker,
31
- H as DateRangePicker,
32
- D as Dialog,
33
- T as DialogClose,
34
- n as DialogContent,
35
- c as DialogDescription,
36
- A as DialogFooter,
37
- m as DialogHeader,
38
- d as DialogOverlay,
39
- S as DialogPortal,
40
- f as DialogTitle,
41
- x as DialogTrigger,
42
- X as ErrorAlert,
43
- Q as ErrorState,
44
- k as FilterField,
45
- b as FormDialog,
46
- r as KpiCard,
47
- s as KpiCards,
48
- U as LoadingState,
49
- o as MetricCard,
50
- K as MultiSelect,
51
- C as Progress,
52
- y as SearchInput,
53
- u as SearchableFilterPill,
54
- B as SearchableSelect,
55
- j as Sidebar,
56
- q as SidebarNavItem,
57
- _ as TableActions,
58
- $ as TableBody,
59
- aa as TableBulkActions,
60
- v as TableFilter,
61
- ea as TableHeader,
62
- ra as TablePagination,
63
- sa as TableSettings,
15
+ u as ActiveFilters,
16
+ v as AdvancedFilters,
17
+ R as AppActions,
18
+ b as AppDialog,
19
+ q as AppSubTitle,
20
+ ia as AppTabContainer,
21
+ la as AppTabHeader,
22
+ pa as AppTabs,
23
+ V as AppTitle,
24
+ ba as AppVerticalTabs,
25
+ r as CardSkeleton,
26
+ s as CardsSkeleton,
27
+ D as ConfirmDeleteDialog,
28
+ g as ConfirmationDialog,
29
+ o as DashboardCard,
30
+ _ as DataTable,
31
+ y as DatePicker,
32
+ B as DateRangePicker,
33
+ c as Dialog,
34
+ d as DialogClose,
35
+ A as DialogContent,
36
+ m as DialogDescription,
37
+ S as DialogFooter,
38
+ f as DialogHeader,
39
+ x as DialogOverlay,
40
+ C as DialogPortal,
41
+ F as DialogTitle,
42
+ P as DialogTrigger,
43
+ U as ErrorAlert,
44
+ X as ErrorState,
45
+ E as FilterField,
46
+ T as FormDialog,
47
+ t as KpiCard,
48
+ i as KpiCards,
49
+ Y as LoadingState,
50
+ l as MetricCard,
51
+ I as MultiSelect,
52
+ h as Progress,
53
+ L as SearchInput,
54
+ M as SearchableFilterPill,
55
+ N as SearchableSelect,
56
+ z as Sidebar,
57
+ G as SidebarNavItem,
58
+ $ as TableActions,
59
+ aa as TableBody,
60
+ ea as TableBulkActions,
61
+ H as TableFilter,
62
+ ra as TableHeader,
63
+ sa as TablePagination,
64
+ oa as TableSettings,
64
65
  ga as ThemeSelector,
65
- w as Topbar
66
+ J as Topbar
66
67
  };
@@ -6,9 +6,11 @@ interface SearchableSelectProps {
6
6
  }[];
7
7
  value: string | undefined;
8
8
  onChange: (value: string) => void;
9
+ onClear?: () => void;
9
10
  placeholder?: string;
10
11
  searchPlaceholder?: string;
12
+ disabled?: boolean;
11
13
  }
12
- export declare const SearchableSelect: ({ options, value, onChange, placeholder, searchPlaceholder, }: SearchableSelectProps) => React.ReactElement;
14
+ export declare const SearchableSelect: ({ options, value, onChange, onClear, placeholder, searchPlaceholder, disabled, }: SearchableSelectProps) => React.ReactElement;
13
15
  export {};
14
16
  //# sourceMappingURL=SearchableSelect.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SearchableSelect.d.ts","sourceRoot":"","sources":["../../../../src/components/core/inputs/SearchableSelect.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AAKpE,UAAU,qBAAqB;IAC7B,OAAO,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC5C,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,eAAO,MAAM,gBAAgB,GAAI,+DAM9B,qBAAqB,KAAG,KAAK,CAAC,YA6GhC,CAAC"}
1
+ {"version":3,"file":"SearchableSelect.d.ts","sourceRoot":"","sources":["../../../../src/components/core/inputs/SearchableSelect.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AAIpE,UAAU,qBAAqB;IAC7B,OAAO,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC5C,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,gBAAgB,GAAI,kFAQ9B,qBAAqB,KAAG,KAAK,CAAC,YA8HhC,CAAC"}
@@ -1,4 +1,4 @@
1
- import { D as t, a as c, M as r, S as s, b as S } from "../../../SearchInput-Cez8b7gL.js";
1
+ import { D as t, a as c, M as r, S as s, b as S } from "../../../SearchInput-CKG1_3iS.js";
2
2
  export {
3
3
  t as DatePicker,
4
4
  c as DateRangePicker,
@@ -1,5 +1,5 @@
1
- import { A as o, a as t } from "../../../AppTitle-eMxmvBxB.js";
2
- import { A as e } from "../../../AppSubTitle-BpBamEcm.js";
1
+ import { A as o, a as t } from "../../../AppTitle-QlMMlpbQ.js";
2
+ import { A as e } from "../../../AppSubTitle-Bc8utqt7.js";
3
3
  export {
4
4
  o as AppActions,
5
5
  e as AppSubTitle,
@@ -1,5 +1,3 @@
1
- export { CardSkeleton } from "./CardSkeleton";
2
- export { CardsSkeleton } from "./CardsSkeleton";
3
1
  export { ErrorAlert } from "./ErrorAlert";
4
2
  export { ErrorState } from "./ErrorState";
5
3
  export { LoadingState } from "./LoadingState";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/core/states/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/core/states/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
@@ -1,9 +1,7 @@
1
- import { C as e, a as o, E as t, L as s } from "../../../LoadingState-COf3KhOP.js";
2
- import { E as S } from "../../../ErrorAlert-BITMD2I5.js";
1
+ import { E as t } from "../../../ErrorAlert-DpOsMww8.js";
2
+ import { E as e, L as E } from "../../../LoadingState-M_TV_5Ui.js";
3
3
  export {
4
- e as CardSkeleton,
5
- o as CardsSkeleton,
6
- S as ErrorAlert,
7
- t as ErrorState,
8
- s as LoadingState
4
+ t as ErrorAlert,
5
+ e as ErrorState,
6
+ E as LoadingState
9
7
  };
@@ -1,4 +1,4 @@
1
- import { D as s, T as b, a as l, b as T, c as t, d as o, e as i } from "../../../DataTable-C5t09hPv.js";
1
+ import { D as s, T as b, a as l, b as T, c as t, d as o, e as i } from "../../../DataTable-DWGao3TY.js";
2
2
  export {
3
3
  s as DataTable,
4
4
  b as TableActions,
@@ -1,4 +1,4 @@
1
- import { A as s, a as b, b as e, c as r } from "../../../AppVerticalTabs-CVukFn4d.js";
1
+ import { A as s, a as b, b as e, c as r } from "../../../AppVerticalTabs--Kb9OFa4.js";
2
2
  export {
3
3
  s as AppTabContainer,
4
4
  b as AppTabHeader,