@krosoft/react 0.0.232 → 0.0.234
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-BG2sgghh.js → AppActions-BFwztl-1.js} +2 -2
- package/dist/{AppSubTitle-C3K23xXb.js → AppSubTitle-BTN0YAc7.js} +1 -1
- package/dist/{AppVerticalTabs-B05oTb_4.js → AppVerticalTabs-B7XXtAVj.js} +19 -18
- package/dist/{ConfirmationDialog-JR14pbWt.js → ConfirmationDialog-Dj4WdnHg.js} +5 -5
- package/dist/{DataTable-BHcadDqz.js → DataTable-CjrR27Di.js} +3 -3
- package/dist/{ErrorAlert-BZGt1hH3.js → ErrorAlert-B99Xb_Hg.js} +1 -1
- package/dist/{ErrorState-0Op-bIn7.js → ErrorState-CkeS_IBT.js} +1 -1
- package/dist/{GenericForm-C6iW17Kx.js → GenericForm-CydibLHU.js} +6 -6
- package/dist/{ImageInput-XRiPLRM6.js → ImageInput-DoOOvvth.js} +3 -3
- package/dist/{KpiCardsLayout-Be1LHbN7.js → KpiCardsLayout-Ca6otKVw.js} +5 -5
- package/dist/{LanguageSelector-C3WSlVQx.js → LanguageSelector-D5Ly1SFC.js} +1 -1
- package/dist/{MultiSelect-DCocjZB4.js → MultiSelect-DbH7LrsD.js} +3 -3
- package/dist/{PieChart-Cf6q_Pxe.js → PieChart-uozNJtEx.js} +1 -1
- package/dist/{SearchInput-rza2llpC.js → SearchInput-DIZ5Yt6L.js} +4 -4
- package/dist/{SkeletonCards-vsneHkXf.js → SkeletonCards-B9C4cNMr.js} +2 -2
- package/dist/{TableFilter-CBNO2K6p.js → TableFilter-CmEVF5Bo.js} +25 -25
- package/dist/{ThemeSelector-J-ZsBnI8.js → ThemeSelector-DKhn02V2.js} +2 -2
- package/dist/Topbar-Clby5_uj.js +431 -0
- package/dist/components/core/cards/index.js +1 -1
- package/dist/components/core/charts/index.js +1 -1
- package/dist/components/core/dialogs/index.js +3 -3
- package/dist/components/core/filters/index.js +1 -1
- package/dist/components/core/forms/index.js +1 -1
- package/dist/components/core/index.js +52 -51
- package/dist/components/core/inputs/index.js +3 -3
- package/dist/components/core/language/index.js +1 -1
- package/dist/components/core/layouts/index.js +3 -3
- package/dist/components/core/navbar/NotificationsBell.d.ts +72 -0
- package/dist/components/core/navbar/NotificationsBell.d.ts.map +1 -0
- package/dist/components/core/navbar/index.d.ts +2 -0
- package/dist/components/core/navbar/index.d.ts.map +1 -1
- package/dist/components/core/navbar/index.js +5 -4
- package/dist/components/core/states/index.js +2 -2
- package/dist/components/core/table/index.js +1 -1
- package/dist/components/core/tabs/index.js +1 -1
- package/dist/components/core/theme/index.js +1 -1
- package/dist/components/index.js +236 -235
- package/dist/components/ui/index.js +104 -104
- package/dist/hooks/behavior/index.js +1 -1
- package/dist/hooks/index.js +2 -2
- package/dist/hooks/ui/index.js +1 -1
- package/dist/i18n/index.js +2 -2
- package/dist/i18n/krosoftLocales.d.ts +14 -0
- package/dist/i18n/krosoftLocales.d.ts.map +1 -1
- package/dist/sheet-XYI-ezvY.js +292 -0
- package/dist/{toaster-B1J0puB_.js → toaster-CyzB1m5z.js} +26 -26
- package/dist/{toggle-group-DLLrEwv2.js → toggle-group-iZqnrTj7.js} +519 -566
- package/dist/{useDateFnsLocale-gHocxHFa.js → useDateFnsLocale-D6VExZ8U.js} +1 -1
- package/dist/useKrosoftTranslation-BTp46G94.js +47 -0
- package/dist/{usePage-CLeciGbD.js → usePage-BQm6tdJD.js} +1 -1
- package/dist/{useTheme-Bs43Wf48.js → useTheme-DS6ZjdzM.js} +1 -1
- package/package.json +1 -1
- package/dist/Topbar-Dkgmpwp8.js +0 -319
- package/dist/sheet-DUrRR7MT.js +0 -245
- package/dist/useKrosoftTranslation-DRD49kc-.js +0 -45
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as m from "@radix-ui/react-aspect-ratio";
|
|
2
2
|
import * as s from "@radix-ui/react-collapsible";
|
|
3
|
-
import { jsx as
|
|
4
|
-
import { GripVertical as f, XIcon as
|
|
3
|
+
import { jsx as o, jsxs as a } from "react/jsx-runtime";
|
|
4
|
+
import { GripVertical as f, XIcon as p } from "lucide-react";
|
|
5
5
|
import * as i from "react-resizable-panels";
|
|
6
6
|
import { c as l } from "./tailwind.helper-B6yFEsav.js";
|
|
7
7
|
import { useTheme as g } from "next-themes";
|
|
8
8
|
import { Toaster as b } from "sonner";
|
|
9
9
|
import { u as d } from "./useToast-BFTk4lWz.js";
|
|
10
|
-
import {
|
|
11
|
-
const B =
|
|
12
|
-
withHandle:
|
|
10
|
+
import { bm as h, bi as v, bn as T, bl as x, bk as z, bo as C } from "./toggle-group-iZqnrTj7.js";
|
|
11
|
+
const B = m.Root, G = s.Root, k = s.CollapsibleTrigger, V = s.CollapsibleContent, $ = ({ className: t, ...r }) => /* @__PURE__ */ o(i.Group, { className: l(t), ...r }), D = i.Panel, H = ({
|
|
12
|
+
withHandle: t,
|
|
13
13
|
className: r,
|
|
14
14
|
...e
|
|
15
|
-
}) => /* @__PURE__ */
|
|
15
|
+
}) => /* @__PURE__ */ o(
|
|
16
16
|
i.Separator,
|
|
17
17
|
{
|
|
18
18
|
className: l(
|
|
@@ -20,16 +20,16 @@ const B = p.Root, G = s.Root, V = s.CollapsibleTrigger, $ = s.CollapsibleContent
|
|
|
20
20
|
r
|
|
21
21
|
),
|
|
22
22
|
...e,
|
|
23
|
-
children:
|
|
23
|
+
children: t && /* @__PURE__ */ o("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border", children: /* @__PURE__ */ o(f, { className: "h-2.5 w-2.5" }) })
|
|
24
24
|
}
|
|
25
|
-
),
|
|
25
|
+
), I = ({ ...t }) => {
|
|
26
26
|
const { theme: r = "system" } = g();
|
|
27
|
-
return /* @__PURE__ */
|
|
27
|
+
return /* @__PURE__ */ o(
|
|
28
28
|
b,
|
|
29
29
|
{
|
|
30
30
|
theme: r,
|
|
31
31
|
className: "toaster group",
|
|
32
|
-
icons: { close: /* @__PURE__ */
|
|
32
|
+
icons: { close: /* @__PURE__ */ o(p, { className: "size-4" }) },
|
|
33
33
|
toastOptions: {
|
|
34
34
|
classNames: {
|
|
35
35
|
toast: "group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",
|
|
@@ -42,34 +42,34 @@ const B = p.Root, G = s.Root, V = s.CollapsibleTrigger, $ = s.CollapsibleContent
|
|
|
42
42
|
closeButton: "!static !order-last !size-6 !transform-none !rounded-control !border-0 !bg-transparent !text-foreground/60 !opacity-100 hover:!bg-muted hover:!text-foreground focus-visible:!ring-2 focus-visible:!ring-ring"
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
|
-
...
|
|
45
|
+
...t
|
|
46
46
|
}
|
|
47
47
|
);
|
|
48
48
|
};
|
|
49
|
-
function
|
|
50
|
-
const { toasts:
|
|
49
|
+
function O() {
|
|
50
|
+
const { toasts: t } = d();
|
|
51
51
|
return /* @__PURE__ */ a(h, { children: [
|
|
52
|
-
|
|
52
|
+
t.map(function({ id: r, title: e, description: n, action: c, ...u }) {
|
|
53
53
|
return /* @__PURE__ */ a(v, { ...u, children: [
|
|
54
54
|
/* @__PURE__ */ a("div", { className: "grid gap-1", children: [
|
|
55
|
-
e && /* @__PURE__ */
|
|
56
|
-
n && /* @__PURE__ */
|
|
55
|
+
e && /* @__PURE__ */ o(T, { children: e }),
|
|
56
|
+
n && /* @__PURE__ */ o(x, { children: n })
|
|
57
57
|
] }),
|
|
58
58
|
c,
|
|
59
|
-
/* @__PURE__ */
|
|
59
|
+
/* @__PURE__ */ o(z, {})
|
|
60
60
|
] }, r);
|
|
61
61
|
}),
|
|
62
|
-
/* @__PURE__ */
|
|
62
|
+
/* @__PURE__ */ o(C, {})
|
|
63
63
|
] });
|
|
64
64
|
}
|
|
65
65
|
export {
|
|
66
66
|
B as A,
|
|
67
67
|
G as C,
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
68
|
+
H as R,
|
|
69
|
+
I as T,
|
|
70
|
+
V as a,
|
|
71
|
+
k as b,
|
|
72
|
+
D as c,
|
|
73
|
+
$ as d,
|
|
74
|
+
O as e
|
|
75
75
|
};
|