@krosoft/react 0.0.69 → 0.0.70

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 (34) hide show
  1. package/dist/{KpiCards-jWYPbprR.js → KpiCards-D4Cy8CLT.js} +7 -6
  2. package/dist/{SearchInput-C2mFWiBb.js → SearchInput-LIey3bo9.js} +9 -8
  3. package/dist/Topbar-CtXJ337W.js +2314 -0
  4. package/dist/{badge-EcCaGyMI.js → badge-Cj2EQgcL.js} +3 -3
  5. package/dist/components/core/cards/index.js +1 -1
  6. package/dist/components/core/index.d.ts +1 -0
  7. package/dist/components/core/index.d.ts.map +1 -1
  8. package/dist/components/core/index.js +6 -3
  9. package/dist/components/core/inputs/index.js +1 -1
  10. package/dist/components/core/navbar/Sidebar.d.ts +32 -0
  11. package/dist/components/core/navbar/Sidebar.d.ts.map +1 -0
  12. package/dist/components/core/navbar/SidebarNavItem.d.ts +9 -0
  13. package/dist/components/core/navbar/SidebarNavItem.d.ts.map +1 -0
  14. package/dist/components/core/navbar/Topbar.d.ts +10 -0
  15. package/dist/components/core/navbar/Topbar.d.ts.map +1 -0
  16. package/dist/components/core/navbar/index.d.ts +3 -0
  17. package/dist/components/core/navbar/index.d.ts.map +1 -0
  18. package/dist/components/core/navbar/index.js +5 -0
  19. package/dist/components/index.js +33 -29
  20. package/dist/components/ui/index.js +18 -17
  21. package/dist/components/ui/separator.d.ts +5 -0
  22. package/dist/components/ui/separator.d.ts.map +1 -0
  23. package/dist/components/ui/sheet.d.ts +26 -0
  24. package/dist/components/ui/sheet.d.ts.map +1 -0
  25. package/dist/components/ui/skeleton.d.ts +3 -0
  26. package/dist/components/ui/skeleton.d.ts.map +1 -0
  27. package/dist/components/ui/tooltip.d.ts +8 -0
  28. package/dist/components/ui/tooltip.d.ts.map +1 -0
  29. package/dist/hooks/index.js +3 -1
  30. package/dist/hooks/ui/useMobile.d.ts.map +1 -1
  31. package/dist/index-BNCR478R.js +272 -0
  32. package/dist/toast-B6CC_ory.js +856 -0
  33. package/package.json +8 -5
  34. package/dist/toast-B6sBreHk.js +0 -1107
@@ -1,24 +1,25 @@
1
1
  import { jsxs as i, jsx as r } from "react/jsx-runtime";
2
- import { C as p, f, g as u, c as N } from "./toast-B6sBreHk.js";
2
+ import { C as p, f, g as u, c as N } from "./toast-B6CC_ory.js";
3
+ import "./index-BNCR478R.js";
3
4
  import { c as a } from "./index-gWiv5-6R.js";
4
5
  import C from "react";
5
6
  import { formatNumber as x } from "@krosoft/core/helpers";
6
7
  import { useTranslation as g } from "react-i18next";
7
- const h = ({ titleKey: s, value: e, valueClassName: l, icon: m, iconClassName: t, description: c, descriptionClassName: d, onClick: o }) => {
8
+ const h = ({ titleKey: s, value: e, valueClassName: m, icon: l, iconClassName: t, description: c, descriptionClassName: d, onClick: o }) => {
8
9
  const { t: n } = g();
9
10
  return /* @__PURE__ */ i(p, { className: a(o ? "hover:border-primary cursor-pointer" : ""), onClick: o, children: [
10
11
  /* @__PURE__ */ i(f, { className: "flex flex-row items-center justify-between space-y-0 pb-2", children: [
11
12
  /* @__PURE__ */ r(u, { className: "text-sm font-medium", children: n(s) }),
12
- C.createElement(m, {
13
+ C.createElement(l, {
13
14
  className: a("size-6 text-muted-foreground", t)
14
15
  })
15
16
  ] }),
16
17
  /* @__PURE__ */ i(N, { children: [
17
- /* @__PURE__ */ r("div", { className: a("text-2xl font-bold", l), children: x(e) }),
18
+ /* @__PURE__ */ r("div", { className: a("text-2xl font-bold", m), children: x(e) }),
18
19
  /* @__PURE__ */ r("p", { className: a("text-xs text-muted-foreground", d), children: c })
19
20
  ] })
20
21
  ] });
21
- }, T = ({ stats: s }) => /* @__PURE__ */ r("div", { className: "grid gap-6 md:grid-cols-2 lg:grid-cols-4", children: s.map((e) => /* @__PURE__ */ r(
22
+ }, _ = ({ stats: s }) => /* @__PURE__ */ r("div", { className: "grid gap-6 md:grid-cols-2 lg:grid-cols-4", children: s.map((e) => /* @__PURE__ */ r(
22
23
  h,
23
24
  {
24
25
  titleKey: e.titleKey,
@@ -33,5 +34,5 @@ const h = ({ titleKey: s, value: e, valueClassName: l, icon: m, iconClassName: t
33
34
  )) });
34
35
  export {
35
36
  h as K,
36
- T as a
37
+ _ as a
37
38
  };
@@ -1,5 +1,6 @@
1
1
  import { jsxs as u, jsx as t } from "react/jsx-runtime";
2
- import { I as h, X as p } from "./toast-B6sBreHk.js";
2
+ import { I as p, X as h } from "./toast-B6CC_ory.js";
3
+ import "./index-BNCR478R.js";
3
4
  import { c as f } from "./index-gWiv5-6R.js";
4
5
  import { c as d } from "./createLucideIcon-CRdjzt2A.js";
5
6
  /**
@@ -11,8 +12,8 @@ import { c as d } from "./createLucideIcon-CRdjzt2A.js";
11
12
  const y = [
12
13
  ["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
13
14
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
14
- ], x = d("search", y), k = ({
15
- searchQuery: o,
15
+ ], x = d("search", y), w = ({
16
+ searchQuery: s,
16
17
  search: n,
17
18
  placeholder: l = "Rechercher...",
18
19
  onSearch: r,
@@ -20,16 +21,16 @@ const y = [
20
21
  onClear: c,
21
22
  className: i
22
23
  }) => {
23
- const s = o || n || "", m = () => {
24
+ const o = s || n || "", m = () => {
24
25
  r(""), c && c();
25
26
  };
26
27
  return /* @__PURE__ */ u("div", { className: f("relative h-fit w-full md:w-64", i), children: [
27
28
  /* @__PURE__ */ t(x, { className: "absolute left-3 top-1/2 transform -translate-y-1/2 text-muted-foreground w-4 h-4" }),
28
29
  /* @__PURE__ */ t(
29
- h,
30
+ p,
30
31
  {
31
32
  placeholder: l,
32
- value: s,
33
+ value: o,
33
34
  onChange: (e) => r(e.target.value),
34
35
  className: "pl-8",
35
36
  onKeyDown: (e) => {
@@ -37,9 +38,9 @@ const y = [
37
38
  }
38
39
  }
39
40
  ),
40
- s && /* @__PURE__ */ t("button", { onClick: m, className: "absolute right-3 top-1/2 -translate-y-1/2 text-gray-500 hover:text-gray-700", type: "button", children: /* @__PURE__ */ t(p, { className: "size-4" }) })
41
+ o && /* @__PURE__ */ t("button", { onClick: m, className: "absolute right-3 top-1/2 -translate-y-1/2 text-gray-500 hover:text-gray-700", type: "button", children: /* @__PURE__ */ t(h, { className: "size-4" }) })
41
42
  ] });
42
43
  };
43
44
  export {
44
- k as S
45
+ w as S
45
46
  };