@krosoft/react 0.0.109 → 0.0.111
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-ouB1a_Wg.js +70 -0
- package/dist/{AppSubTitle-nJN7ow2n.js → AppSubTitle-BU_yVwhx.js} +1 -1
- package/dist/AppTitle-CDxWr_0y.js +13 -0
- package/dist/{AppVerticalTabs-CiEt1HNL.js → AppVerticalTabs-BLxthLeG.js} +24 -23
- package/dist/{ConfirmationDialog-BaKpa7Kh.js → ConfirmationDialog-Dkc0wBS8.js} +2 -2
- package/dist/{DataTable-DJhEJnCx.js → DataTable-DUJgDKVR.js} +1 -1
- package/dist/{GenericForm-CbGEgpM5.js → GenericForm-SLJH_-aT.js} +2721 -2676
- package/dist/{ImageInput-BQfqqD1_.js → ImageInput-oz4cbfJY.js} +1 -1
- package/dist/{MetricCard-DZ3tGlwK.js → MetricCard-Doy9TRGz.js} +1 -1
- package/dist/{MultiSelect-CHd9JoTu.js → MultiSelect-DzbWINrY.js} +1 -1
- package/dist/{SearchInput-z_DqWBMS.js → SearchInput-BcP8RQWX.js} +1 -1
- package/dist/{TableFilter-BxAODfG3.js → TableFilter-Ax1CpXr1.js} +3 -3
- package/dist/components/core/cards/index.js +1 -1
- package/dist/components/core/dialogs/index.js +2 -2
- package/dist/components/core/filters/index.js +1 -1
- package/dist/components/core/forms/GenericForm.d.ts.map +1 -1
- package/dist/components/core/forms/index.js +1 -1
- package/dist/components/core/index.js +44 -43
- package/dist/components/core/inputs/index.js +3 -3
- package/dist/components/core/layouts/index.js +5 -4
- package/dist/components/core/table/index.js +1 -1
- package/dist/components/core/tabs/index.js +1 -1
- package/dist/components/index.js +73 -72
- package/dist/components/ui/chart.d.ts +1 -1
- package/dist/components/ui/chart.d.ts.map +1 -1
- package/dist/components/ui/form.d.ts +1 -1
- package/dist/components/ui/form.d.ts.map +1 -1
- package/dist/components/ui/index.js +2 -2
- package/dist/{toaster-teGHWKGd.js → toaster-BUmC1xwM.js} +1 -1
- package/dist/toggle-group-B2LRm0C5.js +29085 -0
- package/package.json +5 -5
- package/dist/AppTitle-BtJEQPkF.js +0 -78
- package/dist/toggle-group-pUKi3MM1.js +0 -21795
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@krosoft/react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.111",
|
|
4
4
|
"description": "Krosoft shared React package",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"next-themes": ">=0.4.6",
|
|
35
35
|
"react": ">=19.2.6",
|
|
36
36
|
"react-i18next": ">=17.0.8",
|
|
37
|
-
"react-router-dom": ">=7.
|
|
37
|
+
"react-router-dom": ">=7.16.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependenciesMeta": {
|
|
40
40
|
"next-themes": {
|
|
@@ -81,8 +81,8 @@
|
|
|
81
81
|
"input-otp": "^1.4.2",
|
|
82
82
|
"lucide-react": "^1.17.0",
|
|
83
83
|
"react-day-picker": "^10.0.1",
|
|
84
|
-
"react-hook-form": "^7.
|
|
85
|
-
"recharts": "^
|
|
84
|
+
"react-hook-form": "^7.77.0",
|
|
85
|
+
"recharts": "^3.8.1",
|
|
86
86
|
"sonner": "^2.0.7",
|
|
87
87
|
"tailwind-merge": "^2.6.1",
|
|
88
88
|
"vaul": "^1.1.2",
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
"react-dom": "^19.2.6",
|
|
110
110
|
"react-i18next": "^17.0.8",
|
|
111
111
|
"react-resizable-panels": "^4.11.2",
|
|
112
|
-
"react-router-dom": "^7.
|
|
112
|
+
"react-router-dom": "^7.16.0",
|
|
113
113
|
"storybook": "^10.4.1",
|
|
114
114
|
"tailwindcss": "^3.4.19",
|
|
115
115
|
"typescript": "^5.9.3",
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { jsxs as n, jsx as l } from "react/jsx-runtime";
|
|
2
|
-
import { ax as c, aL as b, az as f, aG as h, aB as u } from "./toggle-group-pUKi3MM1.js";
|
|
3
|
-
import "./alert-BUwDmcbB.js";
|
|
4
|
-
import { c as m } from "./tailwind.helper-gWiv5-6R.js";
|
|
5
|
-
import { B as p } from "./tooltip-6vdhKg8V.js";
|
|
6
|
-
import "./select-pm9O5uLm.js";
|
|
7
|
-
import "next-themes";
|
|
8
|
-
import "react";
|
|
9
|
-
import { u as x } from "./useMobile-DN1_OMDB.js";
|
|
10
|
-
import { useTranslation as N } from "react-i18next";
|
|
11
|
-
import { E as v } from "./ellipsis-vertical-CgqKXU8e.js";
|
|
12
|
-
function T({ actions: d, className: o }) {
|
|
13
|
-
const { t: i } = N(), t = x();
|
|
14
|
-
return !d || d.length === 0 ? null : t ? /* @__PURE__ */ n(c, { children: [
|
|
15
|
-
/* @__PURE__ */ l(b, { asChild: !0, children: /* @__PURE__ */ l(p, { variant: "outline", size: "icon", children: /* @__PURE__ */ l(v, { className: "size-4" }) }) }),
|
|
16
|
-
/* @__PURE__ */ l(f, { align: "end", className: "min-w-48", children: d.map((r, e) => r ? r.children && r.children.length > 0 ? /* @__PURE__ */ n("div", { children: [
|
|
17
|
-
e > 0 && /* @__PURE__ */ l(h, {}),
|
|
18
|
-
r.children.map((s, a) => s ? /* @__PURE__ */ n(
|
|
19
|
-
u,
|
|
20
|
-
{
|
|
21
|
-
onClick: () => void s.onClick(),
|
|
22
|
-
disabled: s.disabled,
|
|
23
|
-
className: m("gap-2", s.className),
|
|
24
|
-
children: [
|
|
25
|
-
s.icon && /* @__PURE__ */ l(s.icon, { className: "size-4" }),
|
|
26
|
-
s.labelKey && i(s.labelKey)
|
|
27
|
-
]
|
|
28
|
-
},
|
|
29
|
-
a
|
|
30
|
-
) : null)
|
|
31
|
-
] }, e) : /* @__PURE__ */ n(u, { onClick: () => void r.onClick(), disabled: r.disabled, className: m("gap-2", r.className), children: [
|
|
32
|
-
r.icon && /* @__PURE__ */ l(r.icon, { className: "size-4" }),
|
|
33
|
-
r.labelKey && i(r.labelKey)
|
|
34
|
-
] }, e) : null) })
|
|
35
|
-
] }) : ((r) => /* @__PURE__ */ l("div", { className: m("flex gap-2", o), children: r.map((e, s) => e ? e.children && e.children.length > 0 ? /* @__PURE__ */ n(c, { children: [
|
|
36
|
-
/* @__PURE__ */ l(b, { asChild: !0, children: /* @__PURE__ */ n(p, { variant: e.variant, disabled: e.disabled, className: m("gap-2", e.className), children: [
|
|
37
|
-
e.icon && /* @__PURE__ */ l(e.icon, { className: "size-4" }),
|
|
38
|
-
e.labelKey && i(e.labelKey)
|
|
39
|
-
] }) }),
|
|
40
|
-
/* @__PURE__ */ l(f, { align: "end", children: e.children.map((a, g) => a ? /* @__PURE__ */ n(
|
|
41
|
-
u,
|
|
42
|
-
{
|
|
43
|
-
onClick: () => void a.onClick(),
|
|
44
|
-
disabled: a.disabled,
|
|
45
|
-
className: m("gap-2", a.className),
|
|
46
|
-
children: [
|
|
47
|
-
a.icon && /* @__PURE__ */ l(a.icon, { className: "size-4" }),
|
|
48
|
-
a.labelKey && i(a.labelKey)
|
|
49
|
-
]
|
|
50
|
-
},
|
|
51
|
-
g
|
|
52
|
-
) : null) })
|
|
53
|
-
] }, s) : /* @__PURE__ */ n(
|
|
54
|
-
p,
|
|
55
|
-
{
|
|
56
|
-
variant: e.variant,
|
|
57
|
-
onClick: () => void e.onClick(),
|
|
58
|
-
disabled: e.disabled,
|
|
59
|
-
className: m("gap-2", e.className),
|
|
60
|
-
children: [
|
|
61
|
-
e.icon && /* @__PURE__ */ l(e.icon, { className: "size-4" }),
|
|
62
|
-
e.labelKey && i(e.labelKey)
|
|
63
|
-
]
|
|
64
|
-
},
|
|
65
|
-
s
|
|
66
|
-
) : null) }))(d);
|
|
67
|
-
}
|
|
68
|
-
function G({ titleKey: d, descriptionKey: o, isSubTitle: i }) {
|
|
69
|
-
const { t } = N();
|
|
70
|
-
return /* @__PURE__ */ n("div", { className: "flex flex-col gap-1", children: [
|
|
71
|
-
/* @__PURE__ */ l("h1", { className: i ? "text-xl md:text-2xl font-semibold" : "text-xl md:text-3xl font-bold", children: t(d) ?? "" }),
|
|
72
|
-
o ? /* @__PURE__ */ l("p", { className: m("text-muted-foreground", i && "text-sm"), children: t(o) }) : null
|
|
73
|
-
] });
|
|
74
|
-
}
|
|
75
|
-
export {
|
|
76
|
-
T as A,
|
|
77
|
-
G as a
|
|
78
|
-
};
|