@krosoft/react 0.0.134 → 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.
- package/dist/{AppActions-CX-qVy8i.js → AppActions-DCaejx-3.js} +4 -3
- package/dist/{AppSubTitle-BxWwOgry.js → AppSubTitle-BNd5_q0i.js} +1 -1
- package/dist/{AppVerticalTabs-DiRvuLpb.js → AppVerticalTabs-NZ02HPGP.js} +11 -11
- package/dist/{ConfirmationDialog-DbMHt9aI.js → ConfirmationDialog-DJcxTNTk.js} +7 -6
- package/dist/{DataTable-DSIgTHZS.js → DataTable-BVgo8YWR.js} +4 -3
- package/dist/{GenericForm-CEnca4jf.js → GenericForm-Cy5ntJxi.js} +20 -19
- package/dist/{ImageInput-DLTYJMwr.js → ImageInput-CJ419eqw.js} +7 -6
- package/dist/{KpiCardsLayout-C3LmSeL1.js → KpiCardsLayout-DDR49Qqh.js} +5 -4
- package/dist/{MetricCard-CPw-fiNS.js → MetricCard-D-qPl6zh.js} +1 -1
- package/dist/{MultiSelect-CX051kfk.js → MultiSelect-DblSHEsg.js} +4 -3
- package/dist/{SearchInput-D6LmcOjp.js → SearchInput-T9TeORNA.js} +38 -37
- package/dist/{SkeletonCards-BIEnyOuZ.js → SkeletonCards-BPIVRCOE.js} +14 -13
- package/dist/{TableFilter-Wh_Womy4.js → TableFilter-rjiss-d9.js} +46 -45
- package/dist/Topbar-BTrdr7wj.js +199 -0
- package/dist/components/core/cards/index.js +2 -2
- package/dist/components/core/dialogs/index.js +2 -2
- package/dist/components/core/filters/index.js +1 -1
- package/dist/components/core/forms/index.js +1 -1
- package/dist/components/core/index.js +15 -15
- package/dist/components/core/inputs/index.js +3 -3
- package/dist/components/core/layouts/index.js +3 -3
- package/dist/components/core/navbar/Sidebar.d.ts +4 -5
- package/dist/components/core/navbar/Sidebar.d.ts.map +1 -1
- package/dist/components/core/navbar/index.js +1 -1
- package/dist/components/core/table/index.js +1 -1
- package/dist/components/core/tabs/index.js +1 -1
- package/dist/components/index.js +205 -203
- package/dist/components/ui/index.d.ts +1 -1
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +143 -141
- package/dist/contexts/index.d.ts +5 -0
- package/dist/contexts/index.d.ts.map +1 -0
- package/dist/contexts/index.js +5 -0
- package/dist/contexts/page.context.d.ts +9 -0
- package/dist/contexts/page.context.d.ts.map +1 -0
- package/dist/contexts/sidebar.context.d.ts +8 -0
- package/dist/contexts/sidebar.context.d.ts.map +1 -0
- package/dist/hooks/behavior/index.d.ts +2 -0
- package/dist/hooks/behavior/index.d.ts.map +1 -1
- package/dist/hooks/behavior/index.js +7 -4
- package/dist/hooks/behavior/usePage.d.ts +3 -0
- package/dist/hooks/behavior/usePage.d.ts.map +1 -0
- package/dist/hooks/behavior/useSidebar.d.ts +3 -0
- package/dist/hooks/behavior/useSidebar.d.ts.map +1 -0
- package/dist/hooks/index.js +19 -16
- package/dist/providers/SidebarProvider.d.ts +8 -0
- package/dist/providers/SidebarProvider.d.ts.map +1 -0
- package/dist/providers/index.d.ts +2 -0
- package/dist/providers/index.d.ts.map +1 -0
- package/dist/providers/index.js +49 -0
- package/dist/sheet-Gop1cIaU.js +84 -0
- package/dist/sidebar.context-D5nywlmP.js +6 -0
- package/dist/skeleton-8o8eJd3P.js +8 -0
- package/dist/{toaster-DTC8Duvh.js → toaster-Du2OlHAd.js} +19 -24
- package/dist/{toggle-group-CSdAiS44.js → toggle-group-BASGy2mQ.js} +610 -686
- package/dist/{useConfirmDeleteDialog-CiBQmRxg.js → usePage-CWu-cjzK.js} +32 -25
- package/dist/useSidebar-BJuALHqQ.js +11 -0
- package/package.json +2 -2
- package/dist/Topbar-DVww-tU8.js +0 -158
- package/dist/components/ui/sidebar.d.ts +0 -67
- package/dist/components/ui/sidebar.d.ts.map +0 -1
|
@@ -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
|
|
7
|
-
import { useTheme as
|
|
8
|
-
import { Toaster as
|
|
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 {
|
|
11
|
-
const A = u.Root, G = s.Root,
|
|
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:
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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:
|
|
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
|
-
|
|
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
|
-
|
|
68
|
-
D as
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
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
|
};
|