@krosoft/react 0.0.170 → 0.0.171

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 (49) hide show
  1. package/README.md +27 -1
  2. package/dist/{AppActions-DCYt9I0e.js → AppActions-CwPaiNx1.js} +5 -5
  3. package/dist/{AppSubTitle-DhioA5bv.js → AppSubTitle-6JLlE8Vf.js} +1 -1
  4. package/dist/{AppVerticalTabs-DujFNh9f.js → AppVerticalTabs-BkZkxL_K.js} +4 -4
  5. package/dist/{ConfirmationDialog-CCZPbD4x.js → ConfirmationDialog-t5QtNOQO.js} +10 -10
  6. package/dist/{DataTable-28eGRJvy.js → DataTable-C1l3CLr1.js} +92 -86
  7. package/dist/{ErrorAlert-DH1onuyt.js → ErrorAlert-SrIcU1mM.js} +1 -1
  8. package/dist/{ErrorState-vU8d4CwD.js → ErrorState-CmaxuJyW.js} +2 -2
  9. package/dist/{GenericForm-EohJXOt8.js → GenericForm-DXclmweK.js} +8 -8
  10. package/dist/{ImageInput-Bbxr8vpu.js → ImageInput-BqoCekqh.js} +18 -18
  11. package/dist/KpiCardsLayout-BhEoJhJ9.js +49 -0
  12. package/dist/{MetricCard-rL1mIA58.js → MetricCard-C7kgpgRl.js} +8 -8
  13. package/dist/{MultiSelect-B72dsN-1.js → MultiSelect-BFdaRnIO.js} +8 -8
  14. package/dist/{SearchInput-rRYNQ8fq.js → SearchInput-Dg5Aw2lv.js} +29 -29
  15. package/dist/{SkeletonCards-BgsWWMun.js → SkeletonCards-DemfjUfD.js} +6 -6
  16. package/dist/{TableFilter-BfWYeTv_.js → TableFilter-WWNz4Nua.js} +9 -9
  17. package/dist/{ThemeSelector-CQ3fSDJ2.js → ThemeSelector-BwrbKW-4.js} +2 -2
  18. package/dist/{Topbar-DMyjbOTI.js → Topbar-D55ou5Uk.js} +7 -7
  19. package/dist/{alert-B78CiTYe.js → alert-B9F1N9Qk.js} +6 -6
  20. package/dist/components/core/cards/index.js +2 -2
  21. package/dist/components/core/dialogs/index.js +2 -2
  22. package/dist/components/core/filters/index.js +1 -1
  23. package/dist/components/core/forms/index.js +1 -1
  24. package/dist/components/core/index.js +18 -18
  25. package/dist/components/core/inputs/index.js +3 -3
  26. package/dist/components/core/layouts/index.js +3 -3
  27. package/dist/components/core/navbar/index.js +1 -1
  28. package/dist/components/core/states/index.js +2 -2
  29. package/dist/components/core/table/DataTable.d.ts.map +1 -1
  30. package/dist/components/core/table/index.js +1 -1
  31. package/dist/components/core/tabs/index.js +1 -1
  32. package/dist/components/core/theme/index.js +1 -1
  33. package/dist/components/index.js +24 -24
  34. package/dist/components/ui/index.js +7 -7
  35. package/dist/hooks/behavior/index.js +1 -1
  36. package/dist/hooks/index.js +1 -1
  37. package/dist/{select-MWzbMBAS.js → select-BwcXfUqZ.js} +2 -2
  38. package/dist/{sheet-Gop1cIaU.js → sheet-DOncI9p6.js} +5 -5
  39. package/dist/skeleton-BX4RcsiK.js +8 -0
  40. package/dist/tailwind/index.d.ts +2 -0
  41. package/dist/tailwind/index.d.ts.map +1 -1
  42. package/dist/tailwind/index.js +10 -2
  43. package/dist/{toaster-DTcdwmkK.js → toaster-S0xacBVZ.js} +1 -1
  44. package/dist/{toggle-group-DY9wl0HW.js → toggle-group-DC5hqQ4H.js} +33 -33
  45. package/dist/{tooltip-BWyFpIxo.js → tooltip-OY3E8Lo0.js} +14 -14
  46. package/dist/{usePage-CWu-cjzK.js → usePage-u2gRhvQ0.js} +1 -1
  47. package/package.json +1 -1
  48. package/dist/KpiCardsLayout-DBqGhp0I.js +0 -49
  49. package/dist/skeleton-8o8eJd3P.js +0 -8
@@ -1,49 +0,0 @@
1
- import { jsxs as o, jsx as r } from "react/jsx-runtime";
2
- import "./toggle-group-DY9wl0HW.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-DCYt9I0e.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-BgsWWMun.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,8 +0,0 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { c as r } from "./tailwind.helper-B6yFEsav.js";
3
- function a({ className: e, ...m }) {
4
- return /* @__PURE__ */ o("div", { className: r("animate-pulse rounded-md bg-muted", e), ...m });
5
- }
6
- export {
7
- a as S
8
- };