@krosoft/react 0.0.135 → 0.0.136

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 (61) hide show
  1. package/dist/{AppActions-CX-qVy8i.js → AppActions-DCaejx-3.js} +4 -3
  2. package/dist/{AppSubTitle-BxWwOgry.js → AppSubTitle-BNd5_q0i.js} +1 -1
  3. package/dist/{AppVerticalTabs-DiRvuLpb.js → AppVerticalTabs-NZ02HPGP.js} +11 -11
  4. package/dist/{ConfirmationDialog-DbMHt9aI.js → ConfirmationDialog-DJcxTNTk.js} +7 -6
  5. package/dist/{DataTable-DSIgTHZS.js → DataTable-BVgo8YWR.js} +4 -3
  6. package/dist/{GenericForm-CEnca4jf.js → GenericForm-Cy5ntJxi.js} +20 -19
  7. package/dist/{ImageInput-DLTYJMwr.js → ImageInput-CJ419eqw.js} +7 -6
  8. package/dist/{KpiCardsLayout-C3LmSeL1.js → KpiCardsLayout-DDR49Qqh.js} +5 -4
  9. package/dist/{MetricCard-CPw-fiNS.js → MetricCard-D-qPl6zh.js} +1 -1
  10. package/dist/{MultiSelect-CX051kfk.js → MultiSelect-DblSHEsg.js} +4 -3
  11. package/dist/{SearchInput-D6LmcOjp.js → SearchInput-T9TeORNA.js} +38 -37
  12. package/dist/{SkeletonCards-BIEnyOuZ.js → SkeletonCards-BPIVRCOE.js} +14 -13
  13. package/dist/{TableFilter-Wh_Womy4.js → TableFilter-rjiss-d9.js} +46 -45
  14. package/dist/Topbar-BTrdr7wj.js +199 -0
  15. package/dist/components/core/cards/index.js +2 -2
  16. package/dist/components/core/dialogs/index.js +2 -2
  17. package/dist/components/core/filters/index.js +1 -1
  18. package/dist/components/core/forms/index.js +1 -1
  19. package/dist/components/core/index.js +15 -15
  20. package/dist/components/core/inputs/index.js +3 -3
  21. package/dist/components/core/layouts/index.js +3 -3
  22. package/dist/components/core/navbar/Sidebar.d.ts +4 -5
  23. package/dist/components/core/navbar/Sidebar.d.ts.map +1 -1
  24. package/dist/components/core/navbar/index.js +1 -1
  25. package/dist/components/core/table/index.js +1 -1
  26. package/dist/components/core/tabs/index.js +1 -1
  27. package/dist/components/index.js +205 -203
  28. package/dist/components/ui/index.d.ts +1 -1
  29. package/dist/components/ui/index.d.ts.map +1 -1
  30. package/dist/components/ui/index.js +143 -141
  31. package/dist/contexts/index.d.ts +5 -0
  32. package/dist/contexts/index.d.ts.map +1 -0
  33. package/dist/contexts/index.js +5 -0
  34. package/dist/contexts/page.context.d.ts +9 -0
  35. package/dist/contexts/page.context.d.ts.map +1 -0
  36. package/dist/contexts/sidebar.context.d.ts +8 -0
  37. package/dist/contexts/sidebar.context.d.ts.map +1 -0
  38. package/dist/hooks/behavior/index.d.ts +2 -0
  39. package/dist/hooks/behavior/index.d.ts.map +1 -1
  40. package/dist/hooks/behavior/index.js +7 -4
  41. package/dist/hooks/behavior/usePage.d.ts +3 -0
  42. package/dist/hooks/behavior/usePage.d.ts.map +1 -0
  43. package/dist/hooks/behavior/useSidebar.d.ts +3 -0
  44. package/dist/hooks/behavior/useSidebar.d.ts.map +1 -0
  45. package/dist/hooks/index.js +19 -16
  46. package/dist/providers/SidebarProvider.d.ts +8 -0
  47. package/dist/providers/SidebarProvider.d.ts.map +1 -0
  48. package/dist/providers/index.d.ts +2 -0
  49. package/dist/providers/index.d.ts.map +1 -0
  50. package/dist/providers/index.js +49 -0
  51. package/dist/sheet-Gop1cIaU.js +84 -0
  52. package/dist/sidebar.context-D5nywlmP.js +6 -0
  53. package/dist/skeleton-8o8eJd3P.js +8 -0
  54. package/dist/{toaster-DTC8Duvh.js → toaster-Du2OlHAd.js} +19 -24
  55. package/dist/{toggle-group-CSdAiS44.js → toggle-group-BASGy2mQ.js} +610 -686
  56. package/dist/{useConfirmDeleteDialog-CiBQmRxg.js → usePage-CWu-cjzK.js} +32 -25
  57. package/dist/useSidebar-BJuALHqQ.js +11 -0
  58. package/package.json +1 -1
  59. package/dist/Topbar-DVww-tU8.js +0 -158
  60. package/dist/components/ui/sidebar.d.ts +0 -67
  61. package/dist/components/ui/sidebar.d.ts.map +0 -1
@@ -0,0 +1,6 @@
1
+ import { createContext as t } from "react";
2
+ const e = t({}), a = t(void 0);
3
+ export {
4
+ e as P,
5
+ a as S
6
+ };
@@ -0,0 +1,8 @@
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
+ };
@@ -3,33 +3,29 @@ import * as s from "@radix-ui/react-collapsible";
3
3
  import { jsx as t, jsxs as o } from "react/jsx-runtime";
4
4
  import { GripVertical as d } from "lucide-react";
5
5
  import * as i from "react-resizable-panels";
6
- import { c as l } from "./tailwind.helper-B6yFEsav.js";
7
- import { useTheme as m } from "next-themes";
8
- import { Toaster as f } from "sonner";
6
+ import { c as n } from "./tailwind.helper-B6yFEsav.js";
7
+ import { useTheme as f } from "next-themes";
8
+ import { Toaster as m } from "sonner";
9
9
  import { u as g } from "./useToast-BFTk4lWz.js";
10
- import { c5 as b, c1 as v, c6 as T, c4 as h, c3 as x, c7 as C } from "./toggle-group-CSdAiS44.js";
11
- const A = u.Root, G = s.Root, S = s.CollapsibleTrigger, k = s.CollapsibleContent, B = ({ className: e, ...r }) => /* @__PURE__ */ t(i.Group, { className: l("flex h-full w-full data-[panel-group-direction=vertical]:flex-col", e), ...r }), V = i.Panel, $ = ({
10
+ import { bW as b, bS as v, bX as T, bV as h, bU as x, bY as C } from "./toggle-group-BASGy2mQ.js";
11
+ const A = u.Root, G = s.Root, V = s.CollapsibleTrigger, B = s.CollapsibleContent, S = ({ className: e, ...r }) => /* @__PURE__ */ t(i.Group, { className: n("flex h-full w-full data-[panel-group-direction=vertical]:flex-col", e), ...r }), $ = i.Panel, k = ({
12
12
  withHandle: e,
13
13
  className: r,
14
14
  ...a
15
15
  }) => /* @__PURE__ */ t(
16
16
  i.Separator,
17
17
  {
18
- className: l(
18
+ className: n(
19
19
  "relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",
20
20
  r
21
21
  ),
22
22
  ...a,
23
23
  children: e && /* @__PURE__ */ t("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border", children: /* @__PURE__ */ t(d, { className: "h-2.5 w-2.5" }) })
24
24
  }
25
- );
26
- function D({ className: e, ...r }) {
27
- return /* @__PURE__ */ t("div", { className: l("animate-pulse rounded-md bg-muted", e), ...r });
28
- }
29
- const H = ({ ...e }) => {
30
- const { theme: r = "system" } = m();
25
+ ), D = ({ ...e }) => {
26
+ const { theme: r = "system" } = f();
31
27
  return /* @__PURE__ */ t(
32
- f,
28
+ m,
33
29
  {
34
30
  theme: r,
35
31
  className: "toaster group",
@@ -45,14 +41,14 @@ const H = ({ ...e }) => {
45
41
  }
46
42
  );
47
43
  };
48
- function O() {
44
+ function H() {
49
45
  const { toasts: e } = g();
50
46
  return /* @__PURE__ */ o(b, { children: [
51
- e.map(function({ id: r, title: a, description: n, action: c, ...p }) {
47
+ e.map(function({ id: r, title: a, description: l, action: c, ...p }) {
52
48
  return /* @__PURE__ */ o(v, { ...p, children: [
53
49
  /* @__PURE__ */ o("div", { className: "grid gap-1", children: [
54
50
  a && /* @__PURE__ */ t(T, { children: a }),
55
- n && /* @__PURE__ */ t(h, { children: n })
51
+ l && /* @__PURE__ */ t(h, { children: l })
56
52
  ] }),
57
53
  c,
58
54
  /* @__PURE__ */ t(x, {})
@@ -64,12 +60,11 @@ function O() {
64
60
  export {
65
61
  A,
66
62
  G as C,
67
- $ as R,
68
- D as S,
69
- H as T,
70
- k as a,
71
- S as b,
72
- V as c,
73
- B as d,
74
- O as e
63
+ k as R,
64
+ D as T,
65
+ B as a,
66
+ V as b,
67
+ $ as c,
68
+ S as d,
69
+ H as e
75
70
  };