@krosoft/react 0.0.124 → 0.0.126
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-po4LjUcM.js → AppActions-BbAnhStS.js} +22 -18
- package/dist/{AppSubTitle-CWrsJYFJ.js → AppSubTitle-lg3d5NWc.js} +1 -1
- package/dist/{AppTitle-CDxWr_0y.js → AppTitle-uboDuil4.js} +1 -1
- package/dist/{AppVerticalTabs-CdqoObXx.js → AppVerticalTabs-CBijkDF_.js} +33 -49
- package/dist/ConfirmationDialog-Co5yl0yA.js +184 -0
- package/dist/{DataTable-CrJoeR_0.js → DataTable-DSIgTHZS.js} +174 -218
- package/dist/ErrorAlert-DH1onuyt.js +17 -0
- package/dist/GenericForm-QoeireeW.js +339 -0
- package/dist/ImageInput-DLTYJMwr.js +65 -0
- package/dist/KpiCardsLayout-C3LmSeL1.js +22 -0
- package/dist/{LoadingState-PhGi7HXH.js → LoadingState-BN0YaPSs.js} +3 -3
- package/dist/{MetricCard-C-ewNR_i.js → MetricCard-CPw-fiNS.js} +6 -6
- package/dist/{MultiSelect-BoisW4Kn.js → MultiSelect-CX051kfk.js} +32 -27
- package/dist/SearchInput-D6LmcOjp.js +249 -0
- package/dist/SkeletonCards-BIEnyOuZ.js +62 -0
- package/dist/{TableFilter-CLjQU36k.js → TableFilter-Wh_Womy4.js} +114 -123
- package/dist/{ThemeSelector--w3R6Ff3.js → ThemeSelector-Qv8QBlYq.js} +2 -2
- package/dist/{Topbar-DFu_OdSs.js → Topbar-DVww-tU8.js} +49 -59
- package/dist/{alert-B34E_4uH.js → alert-B78CiTYe.js} +2 -2
- 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 +19 -19
- package/dist/components/core/inputs/index.js +3 -3
- package/dist/components/core/layouts/index.js +4 -4
- package/dist/components/core/navbar/index.js +1 -1
- 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 +270 -270
- package/dist/components/ui/index.js +213 -213
- package/dist/helpers/index.js +1 -1
- package/dist/hooks/behavior/index.js +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/select-MWzbMBAS.js +106 -0
- package/dist/tailwind.helper-B6yFEsav.js +8 -0
- package/dist/toaster-DTC8Duvh.js +75 -0
- package/dist/toggle-group-CSdAiS44.js +1694 -0
- package/dist/tooltip-BWyFpIxo.js +56 -0
- package/dist/useConfirmDeleteDialog-CiBQmRxg.js +65 -0
- package/package.json +4 -4
- package/dist/ConfirmationDialog-CkMyyh_3.js +0 -221
- package/dist/ErrorAlert-C6BbHHRZ.js +0 -33
- package/dist/GenericForm-CmwqEXiQ.js +0 -11410
- package/dist/ImageInput-C8HcxE8t.js +0 -82
- package/dist/KpiCardsLayout-CETMpB7A.js +0 -15
- package/dist/SearchInput-DJ_F3emq.js +0 -586
- package/dist/SkeletonCards-C5lXTSrB.js +0 -57
- package/dist/badge-CfWlt79h.js +0 -26
- package/dist/createLucideIcon-MP_wDWjs.js +0 -116
- package/dist/ellipsis-vertical-kB5yFb-i.js +0 -15
- package/dist/grip-vertical-DGywJXzS.js +0 -18
- package/dist/index-Be16PP7H.js +0 -34
- package/dist/loader-circle-CKy7u7JW.js +0 -11
- package/dist/select-DlQvLtI3.js +0 -1763
- package/dist/tailwind.helper-gWiv5-6R.js +0 -2278
- package/dist/toaster-CKoOjjKr.js +0 -134
- package/dist/toggle-group-wIgXZYDq.js +0 -29086
- package/dist/tooltip-YhBPXbcJ.js +0 -2477
- package/dist/useConfirmDeleteDialog-BOb3XFpz.js +0 -75
package/dist/toaster-CKoOjjKr.js
DELETED
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
import * as c from "react";
|
|
2
|
-
import "react-dom";
|
|
3
|
-
import { e as m } from "./tooltip-YhBPXbcJ.js";
|
|
4
|
-
import { jsx as a, jsxs as l } from "react/jsx-runtime";
|
|
5
|
-
import { cf as g, cg as v, ch as b, ci as h, cj as w, ck as x, cl as T, c4 as y, c0 as N, c5 as R, c3 as C, c2 as $, c6 as P } from "./toggle-group-wIgXZYDq.js";
|
|
6
|
-
import { c as n } from "./tailwind.helper-gWiv5-6R.js";
|
|
7
|
-
import { G as S } from "./grip-vertical-DGywJXzS.js";
|
|
8
|
-
import { useTheme as j } from "next-themes";
|
|
9
|
-
import { u as A } from "./useToast-BFTk4lWz.js";
|
|
10
|
-
var z = [
|
|
11
|
-
"a",
|
|
12
|
-
"button",
|
|
13
|
-
"div",
|
|
14
|
-
"form",
|
|
15
|
-
"h2",
|
|
16
|
-
"h3",
|
|
17
|
-
"img",
|
|
18
|
-
"input",
|
|
19
|
-
"label",
|
|
20
|
-
"li",
|
|
21
|
-
"nav",
|
|
22
|
-
"ol",
|
|
23
|
-
"p",
|
|
24
|
-
"select",
|
|
25
|
-
"span",
|
|
26
|
-
"svg",
|
|
27
|
-
"ul"
|
|
28
|
-
], k = z.reduce((e, t) => {
|
|
29
|
-
const r = m(`Primitive.${t}`), o = c.forwardRef((s, i) => {
|
|
30
|
-
const { asChild: d, ...u } = s, f = d ? r : t;
|
|
31
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ a(f, { ...u, ref: i });
|
|
32
|
-
});
|
|
33
|
-
return o.displayName = `Primitive.${t}`, { ...e, [t]: o };
|
|
34
|
-
}, {}), B = "AspectRatio", p = c.forwardRef(
|
|
35
|
-
(e, t) => {
|
|
36
|
-
const { ratio: r = 1 / 1, style: o, ...s } = e;
|
|
37
|
-
return /* @__PURE__ */ a(
|
|
38
|
-
"div",
|
|
39
|
-
{
|
|
40
|
-
style: {
|
|
41
|
-
// ensures inner element is contained
|
|
42
|
-
position: "relative",
|
|
43
|
-
// ensures padding bottom trick maths works
|
|
44
|
-
width: "100%",
|
|
45
|
-
paddingBottom: `${100 / r}%`
|
|
46
|
-
},
|
|
47
|
-
"data-radix-aspect-ratio-wrapper": "",
|
|
48
|
-
children: /* @__PURE__ */ a(
|
|
49
|
-
k.div,
|
|
50
|
-
{
|
|
51
|
-
...s,
|
|
52
|
-
ref: t,
|
|
53
|
-
style: {
|
|
54
|
-
...o,
|
|
55
|
-
// ensures children expand in ratio
|
|
56
|
-
position: "absolute",
|
|
57
|
-
top: 0,
|
|
58
|
-
right: 0,
|
|
59
|
-
bottom: 0,
|
|
60
|
-
left: 0
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
)
|
|
64
|
-
}
|
|
65
|
-
);
|
|
66
|
-
}
|
|
67
|
-
);
|
|
68
|
-
p.displayName = B;
|
|
69
|
-
var G = p;
|
|
70
|
-
const Y = G, q = g, F = b, I = v, J = ({ className: e, ...t }) => /* @__PURE__ */ a(x, { className: n("flex h-full w-full data-[panel-group-direction=vertical]:flex-col", e), ...t }), K = h, L = ({
|
|
71
|
-
withHandle: e,
|
|
72
|
-
className: t,
|
|
73
|
-
...r
|
|
74
|
-
}) => /* @__PURE__ */ a(
|
|
75
|
-
w,
|
|
76
|
-
{
|
|
77
|
-
className: n(
|
|
78
|
-
"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",
|
|
79
|
-
t
|
|
80
|
-
),
|
|
81
|
-
...r,
|
|
82
|
-
children: e && /* @__PURE__ */ a("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border", children: /* @__PURE__ */ a(S, { className: "h-2.5 w-2.5" }) })
|
|
83
|
-
}
|
|
84
|
-
);
|
|
85
|
-
function W({ className: e, ...t }) {
|
|
86
|
-
return /* @__PURE__ */ a("div", { className: n("animate-pulse rounded-md bg-muted", e), ...t });
|
|
87
|
-
}
|
|
88
|
-
const X = ({ ...e }) => {
|
|
89
|
-
const { theme: t = "system" } = j();
|
|
90
|
-
return /* @__PURE__ */ a(
|
|
91
|
-
T,
|
|
92
|
-
{
|
|
93
|
-
theme: t,
|
|
94
|
-
className: "toaster group",
|
|
95
|
-
toastOptions: {
|
|
96
|
-
classNames: {
|
|
97
|
-
toast: "group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",
|
|
98
|
-
description: "group-[.toast]:text-muted-foreground",
|
|
99
|
-
actionButton: "group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",
|
|
100
|
-
cancelButton: "group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
...e
|
|
104
|
-
}
|
|
105
|
-
);
|
|
106
|
-
};
|
|
107
|
-
function Z() {
|
|
108
|
-
const { toasts: e } = A();
|
|
109
|
-
return /* @__PURE__ */ l(y, { children: [
|
|
110
|
-
e.map(function({ id: t, title: r, description: o, action: s, ...i }) {
|
|
111
|
-
return /* @__PURE__ */ l(N, { ...i, children: [
|
|
112
|
-
/* @__PURE__ */ l("div", { className: "grid gap-1", children: [
|
|
113
|
-
r && /* @__PURE__ */ a(R, { children: r }),
|
|
114
|
-
o && /* @__PURE__ */ a(C, { children: o })
|
|
115
|
-
] }),
|
|
116
|
-
s,
|
|
117
|
-
/* @__PURE__ */ a($, {})
|
|
118
|
-
] }, t);
|
|
119
|
-
}),
|
|
120
|
-
/* @__PURE__ */ a(P, {})
|
|
121
|
-
] });
|
|
122
|
-
}
|
|
123
|
-
export {
|
|
124
|
-
Y as A,
|
|
125
|
-
q as C,
|
|
126
|
-
L as R,
|
|
127
|
-
W as S,
|
|
128
|
-
X as T,
|
|
129
|
-
I as a,
|
|
130
|
-
F as b,
|
|
131
|
-
K as c,
|
|
132
|
-
J as d,
|
|
133
|
-
Z as e
|
|
134
|
-
};
|