@krosoft/react 0.0.98 → 0.0.99
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/{AppSubTitle-Bt3_01sd.js → AppSubTitle-DBxJVB46.js} +1 -1
- package/dist/{AppTitle-cR9yMcWN.js → AppTitle-DDQoaHBb.js} +1 -1
- package/dist/{AppVerticalTabs-Br5Y27x2.js → AppVerticalTabs-CYx0jMXp.js} +2 -2
- package/dist/{ConfirmationDialog-Bhboi93k.js → ConfirmationDialog-bBFPpP2z.js} +44 -44
- package/dist/{DataTable-7kgRjvT3.js → DataTable-locK3Z44.js} +1 -1
- package/dist/{ErrorAlert-D1laKrGq.js → ErrorAlert-B2LV1J2R.js} +4 -4
- package/dist/{MetricCard-5xmlrXzH.js → MetricCard-CFwSSiQY.js} +1 -1
- package/dist/{SearchInput-CcCFcweT.js → SearchInput-t-ab1DdJ.js} +137 -137
- package/dist/{TableFilter-Dd9SvVEF.js → TableFilter-BjYjDtSo.js} +2 -2
- 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/index.js +10 -10
- package/dist/components/core/inputs/MultiSelect.d.ts.map +1 -1
- package/dist/components/core/inputs/SearchableSelect.d.ts +1 -1
- package/dist/components/core/inputs/SearchableSelect.d.ts.map +1 -1
- package/dist/components/core/inputs/index.js +1 -1
- package/dist/components/core/layouts/index.js +2 -2
- package/dist/components/core/states/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 +11 -11
- package/dist/components/ui/command.d.ts.map +1 -1
- package/dist/components/ui/index.js +2 -2
- package/dist/{toaster-Cz2Lbp2C.js → toaster-BTQcWjuV.js} +1 -1
- package/dist/{toggle-group-pAjKlGGO.js → toggle-group-6CH5BRLO.js} +573 -573
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useTranslation as l } from "react-i18next";
|
|
3
|
-
import { A as m } from "./AppTitle-
|
|
3
|
+
import { A as m } from "./AppTitle-DDQoaHBb.js";
|
|
4
4
|
function f({ titleKey: s, actions: t, className: o }) {
|
|
5
5
|
const { t: r } = l();
|
|
6
6
|
return /* @__PURE__ */ i("div", { className: "flex flex-col sm:flex-row sm:items-center justify-between gap-4", children: [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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-
|
|
2
|
+
import { ax as c, aL as b, az as f, aG as h, aB as u } from "./toggle-group-6CH5BRLO.js";
|
|
3
3
|
import "./alert-srKINZRG.js";
|
|
4
4
|
import { c as m } from "./tailwind.helper-gWiv5-6R.js";
|
|
5
5
|
import { B as p } from "./tooltip-mWS3Mix6.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as n, jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { I as v, M as g, J as y, bX as N, bZ as w, b_ as b, bY as T, bA as S } from "./toggle-group-
|
|
3
|
-
import { a as C, A as k } from "./AppTitle-
|
|
2
|
+
import { I as v, M as g, J as y, bX as N, bZ as w, b_ as b, bY as T, bA as S } from "./toggle-group-6CH5BRLO.js";
|
|
3
|
+
import { a as C, A as k } from "./AppTitle-DDQoaHBb.js";
|
|
4
4
|
import { useTranslation as x } from "react-i18next";
|
|
5
5
|
import { useSearchParams as f } from "react-router-dom";
|
|
6
6
|
import { c as A } from "./tailwind.helper-gWiv5-6R.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as e, jsxs as i, Fragment as U } from "react/jsx-runtime";
|
|
2
|
-
import { D as Y, b as Z, P as L, e as ee, h as re, c as le, a$ as ie, aW as ae, m as W, p as q, s as S, t as J, q as F, r as B, o as X, u as te, n as ne } from "./toggle-group-
|
|
2
|
+
import { D as Y, b as Z, P as L, e as ee, h as re, c as le, a$ as ie, aW as ae, m as W, p as q, s as S, t as J, q as F, r as B, o as X, u as te, n as ne } from "./toggle-group-6CH5BRLO.js";
|
|
3
3
|
import { A as se, a as oe } from "./alert-srKINZRG.js";
|
|
4
4
|
import { B as k } from "./tooltip-mWS3Mix6.js";
|
|
5
5
|
import { X as O } from "./select-CDIMkakd.js";
|
|
6
6
|
import "next-themes";
|
|
7
7
|
import { useState as _, useEffect as de } from "react";
|
|
8
8
|
import { useTranslation as G } from "react-i18next";
|
|
9
|
-
import { c as
|
|
10
|
-
import { E as ce } from "./ErrorAlert-
|
|
9
|
+
import { c as j } from "./index-BSI9LuBZ.js";
|
|
10
|
+
import { E as ce } from "./ErrorAlert-B2LV1J2R.js";
|
|
11
11
|
/**
|
|
12
12
|
* @license lucide-react v1.16.0 - ISC
|
|
13
13
|
*
|
|
@@ -18,14 +18,14 @@ const me = [
|
|
|
18
18
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
19
19
|
["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
|
|
20
20
|
["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
|
|
21
|
-
],
|
|
21
|
+
], ue = j("circle-alert", me);
|
|
22
22
|
/**
|
|
23
23
|
* @license lucide-react v1.16.0 - ISC
|
|
24
24
|
*
|
|
25
25
|
* This source code is licensed under the ISC license.
|
|
26
26
|
* See the LICENSE file in the root directory of this source tree.
|
|
27
27
|
*/
|
|
28
|
-
const
|
|
28
|
+
const he = [
|
|
29
29
|
[
|
|
30
30
|
"path",
|
|
31
31
|
{
|
|
@@ -33,7 +33,7 @@ const ue = [
|
|
|
33
33
|
key: "1a8usu"
|
|
34
34
|
}
|
|
35
35
|
]
|
|
36
|
-
], I =
|
|
36
|
+
], I = j("pen", he);
|
|
37
37
|
/**
|
|
38
38
|
* @license lucide-react v1.16.0 - ISC
|
|
39
39
|
*
|
|
@@ -50,7 +50,7 @@ const ge = [
|
|
|
50
50
|
],
|
|
51
51
|
["path", { d: "M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7", key: "1ydtos" }],
|
|
52
52
|
["path", { d: "M7 3v4a1 1 0 0 0 1 1h7", key: "t51u73" }]
|
|
53
|
-
], P =
|
|
53
|
+
], P = j("save", ge);
|
|
54
54
|
/**
|
|
55
55
|
* @license lucide-react v1.16.0 - ISC
|
|
56
56
|
*
|
|
@@ -61,10 +61,10 @@ const pe = [
|
|
|
61
61
|
["path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6", key: "miytrc" }],
|
|
62
62
|
["path", { d: "M3 6h18", key: "d0wm0j" }],
|
|
63
63
|
["path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2", key: "e791ji" }]
|
|
64
|
-
], fe =
|
|
65
|
-
function ve({ open: s, onOpenChange:
|
|
66
|
-
const { t: n } = G(), { title: C, description: g, icon: v, maxWidth: D = "sm:max-w-xl", actions:
|
|
67
|
-
return /* @__PURE__ */ e(Y, { open: s, onOpenChange:
|
|
64
|
+
], fe = j("trash", pe);
|
|
65
|
+
function ve({ open: s, onOpenChange: u, config: l, isLoading: o, error: d, children: c }) {
|
|
66
|
+
const { t: n } = G(), { title: C, description: g, icon: v, maxWidth: D = "sm:max-w-xl", actions: h } = l;
|
|
67
|
+
return /* @__PURE__ */ e(Y, { open: s, onOpenChange: u, children: /* @__PURE__ */ i(Z, { className: `${D} max-h-[90vh] border-0 shadow-2xl p-0 flex flex-col overflow-hidden`, children: [
|
|
68
68
|
o === !0 ? /* @__PURE__ */ e("div", { className: "absolute top-0 left-0 right-0 z-10", children: /* @__PURE__ */ e(L, { indeterminate: !0, className: "h-1 rounded-none" }) }) : null,
|
|
69
69
|
/* @__PURE__ */ i(ee, { className: "bg-gradient-to-r from-slate-900 to-purple-700 p-6 rounded-t-lg shrink-0", children: [
|
|
70
70
|
/* @__PURE__ */ i(re, { className: "text-2xl font-bold flex items-center gap-2 text-white", children: [
|
|
@@ -74,19 +74,19 @@ function ve({ open: s, onOpenChange: h, config: l, isLoading: o, error: d, child
|
|
|
74
74
|
g !== void 0 && g !== "" ? /* @__PURE__ */ e(le, { className: "text-indigo-100 text-base", children: n(g) }) : null
|
|
75
75
|
] }),
|
|
76
76
|
d != null ? /* @__PURE__ */ e("div", { className: "px-6 ", children: /* @__PURE__ */ i(se, { variant: "destructive", className: "max-w-full", children: [
|
|
77
|
-
/* @__PURE__ */ e(
|
|
77
|
+
/* @__PURE__ */ e(ue, { className: "size-4" }),
|
|
78
78
|
/* @__PURE__ */ e(oe, { className: "break-words overflow-wrap-anywhere max-w-full", children: d.message })
|
|
79
79
|
] }) }) : null,
|
|
80
80
|
/* @__PURE__ */ e("div", { className: "flex-1 overflow-y-auto px-6 ", children: c }),
|
|
81
|
-
|
|
81
|
+
h !== void 0 && h.length > 0 ? /* @__PURE__ */ e("div", { className: "rounded-b-lg border-t border-gray-200 dark:border-gray-700 shrink-0 p-6 light:bg-gradient-to-r light:from-gray-50 light:to-gray-100 dark:bg-gray-950", children: /* @__PURE__ */ e("div", { className: "flex justify-end gap-3", children: h.map((m, V) => /* @__PURE__ */ i(k, { variant: m.variant ?? "default", onClick: m.onClick, disabled: m.disabled === !0 || o === !0, children: [
|
|
82
82
|
m.icon !== void 0 ? /* @__PURE__ */ e(m.icon, { className: "size-4" }) : null,
|
|
83
83
|
n(m.label)
|
|
84
84
|
] }, V)) }) }) : null
|
|
85
85
|
] }) });
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function Ee({
|
|
88
88
|
open: s,
|
|
89
|
-
onOpenChange:
|
|
89
|
+
onOpenChange: u,
|
|
90
90
|
data: l,
|
|
91
91
|
title: o,
|
|
92
92
|
headerBadge: d,
|
|
@@ -96,24 +96,24 @@ function je({
|
|
|
96
96
|
defaultEditing: g = !1,
|
|
97
97
|
footerActions: v = !0,
|
|
98
98
|
saveLabel: D = "Sauvegarder",
|
|
99
|
-
cancelLabel:
|
|
99
|
+
cancelLabel: h = "Annuler",
|
|
100
100
|
hideSaveIcon: m = !1,
|
|
101
101
|
maxWidth: V = "sm:max-w-4xl"
|
|
102
102
|
}) {
|
|
103
|
-
const [
|
|
103
|
+
const [A, y] = _(g), [b, N] = _({}), [p, w] = _(!1);
|
|
104
104
|
if (de(() => {
|
|
105
105
|
s && y(g);
|
|
106
106
|
}, [s, g]), l == null) return null;
|
|
107
107
|
const T = async () => {
|
|
108
|
-
if (
|
|
108
|
+
if (A) {
|
|
109
109
|
if (n !== void 0) {
|
|
110
|
-
|
|
110
|
+
w(!0);
|
|
111
111
|
try {
|
|
112
112
|
await n(b), y(!1), N({});
|
|
113
113
|
} catch (r) {
|
|
114
114
|
console.error(r);
|
|
115
115
|
} finally {
|
|
116
|
-
|
|
116
|
+
w(!1);
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
} else
|
|
@@ -122,19 +122,19 @@ function je({
|
|
|
122
122
|
y(!1), N({});
|
|
123
123
|
}, $ = async () => {
|
|
124
124
|
if (n !== void 0) {
|
|
125
|
-
|
|
125
|
+
w(!0);
|
|
126
126
|
try {
|
|
127
127
|
await n(b), y(!1), N({});
|
|
128
128
|
} catch (r) {
|
|
129
129
|
console.error(r);
|
|
130
130
|
} finally {
|
|
131
|
-
|
|
131
|
+
w(!1);
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
}, H = (r, a) => {
|
|
135
135
|
N((f) => ({ ...f, [r]: a }));
|
|
136
136
|
}, K = (r) => {
|
|
137
|
-
if (
|
|
137
|
+
if (A && n !== void 0) {
|
|
138
138
|
if (r.renderEdit !== void 0)
|
|
139
139
|
return r.renderEdit(l, b, (t) => {
|
|
140
140
|
H(r.key, t);
|
|
@@ -164,22 +164,22 @@ function je({
|
|
|
164
164
|
let f = "Non renseigné";
|
|
165
165
|
return Array.isArray(a) ? a.length > 0 && (f = a.map((t) => {
|
|
166
166
|
if (typeof t == "object" && t !== null) {
|
|
167
|
-
const
|
|
168
|
-
return typeof
|
|
167
|
+
const E = t;
|
|
168
|
+
return typeof E.name == "string" ? E.name : typeof E.label == "string" ? E.label : JSON.stringify(t);
|
|
169
169
|
}
|
|
170
170
|
return String(t);
|
|
171
171
|
}).join(", ")) : typeof a == "object" && a !== null ? f = JSON.stringify(a) : (typeof a == "string" || typeof a == "number" || typeof a == "boolean") && (f = String(a)), /* @__PURE__ */ e("div", { className: "p-2 bg-gray-50 dark:bg-gray-900 rounded border border-transparent min-h-[36px] flex items-center", children: f });
|
|
172
172
|
}, Q = (r) => /* @__PURE__ */ i("div", { className: `col-span-1 ${r.fullWidth === !0 ? "md:col-span-2" : ""}`, children: [
|
|
173
173
|
/* @__PURE__ */ e(ie, { className: "mb-1 block text-sm font-medium", children: r.label }),
|
|
174
174
|
K(r)
|
|
175
|
-
] }, r.key),
|
|
176
|
-
n !== void 0 && (
|
|
177
|
-
label:
|
|
175
|
+
] }, r.key), z = [];
|
|
176
|
+
n !== void 0 && (A ? (h !== "" && z.push({
|
|
177
|
+
label: h,
|
|
178
178
|
onClick: M,
|
|
179
179
|
variant: "outline",
|
|
180
180
|
disabled: p,
|
|
181
181
|
icon: O
|
|
182
|
-
}),
|
|
182
|
+
}), z.push({
|
|
183
183
|
label: p ? "Enregistrement..." : D,
|
|
184
184
|
onClick: () => {
|
|
185
185
|
$();
|
|
@@ -187,7 +187,7 @@ function je({
|
|
|
187
187
|
variant: "default",
|
|
188
188
|
disabled: p,
|
|
189
189
|
icon: m ? void 0 : P
|
|
190
|
-
})) :
|
|
190
|
+
})) : z.push({
|
|
191
191
|
label: "Modifier",
|
|
192
192
|
onClick: () => {
|
|
193
193
|
T();
|
|
@@ -198,14 +198,14 @@ function je({
|
|
|
198
198
|
const R = {
|
|
199
199
|
title: o(l),
|
|
200
200
|
maxWidth: V,
|
|
201
|
-
actions: v ?
|
|
201
|
+
actions: v ? z : []
|
|
202
202
|
};
|
|
203
203
|
return /* @__PURE__ */ e(
|
|
204
204
|
ve,
|
|
205
205
|
{
|
|
206
206
|
open: s,
|
|
207
207
|
onOpenChange: (r) => {
|
|
208
|
-
|
|
208
|
+
u(r), r || M();
|
|
209
209
|
},
|
|
210
210
|
config: R,
|
|
211
211
|
isLoading: p,
|
|
@@ -219,10 +219,10 @@ function je({
|
|
|
219
219
|
/* @__PURE__ */ e("div", { className: "grid grid-cols-1 gap-4", children: r.fields.map(Q) })
|
|
220
220
|
] }, a)) }),
|
|
221
221
|
C !== void 0 ? C(l) : null,
|
|
222
|
-
n !== void 0 && !v ? /* @__PURE__ */ e("div", { className: "flex justify-end gap-2 border-t pt-4 mt-6", children:
|
|
223
|
-
|
|
224
|
-
/* @__PURE__ */ e(O, { className: "
|
|
225
|
-
|
|
222
|
+
n !== void 0 && !v ? /* @__PURE__ */ e("div", { className: "flex justify-end gap-2 border-t pt-4 mt-6", children: A ? /* @__PURE__ */ i(U, { children: [
|
|
223
|
+
h !== "" ? /* @__PURE__ */ i(k, { onClick: M, variant: "outline", size: "sm", disabled: p, children: [
|
|
224
|
+
/* @__PURE__ */ e(O, { className: "size-4 mr-2" }),
|
|
225
|
+
h
|
|
226
226
|
] }) : null,
|
|
227
227
|
/* @__PURE__ */ i(
|
|
228
228
|
k,
|
|
@@ -234,7 +234,7 @@ function je({
|
|
|
234
234
|
disabled: p,
|
|
235
235
|
className: "text-white",
|
|
236
236
|
children: [
|
|
237
|
-
m ? null : /* @__PURE__ */ e(P, { className: "
|
|
237
|
+
m ? null : /* @__PURE__ */ e(P, { className: "size-4 mr-2" }),
|
|
238
238
|
p ? "Enregistrement..." : D
|
|
239
239
|
]
|
|
240
240
|
}
|
|
@@ -248,7 +248,7 @@ function je({
|
|
|
248
248
|
variant: "outline",
|
|
249
249
|
size: "sm",
|
|
250
250
|
children: [
|
|
251
|
-
/* @__PURE__ */ e(I, { className: "
|
|
251
|
+
/* @__PURE__ */ e(I, { className: "size-4 mr-2" }),
|
|
252
252
|
"Modifier"
|
|
253
253
|
]
|
|
254
254
|
}
|
|
@@ -257,7 +257,7 @@ function je({
|
|
|
257
257
|
}
|
|
258
258
|
);
|
|
259
259
|
}
|
|
260
|
-
const
|
|
260
|
+
const je = ({ isLoading: s, error: u, config: l }) => {
|
|
261
261
|
const { t: o } = G(), d = (c) => {
|
|
262
262
|
!c && !s && l.onClose();
|
|
263
263
|
};
|
|
@@ -271,7 +271,7 @@ const ze = ({ isLoading: s, error: h, config: l }) => {
|
|
|
271
271
|
/* @__PURE__ */ e(F, { children: o(l.description) }),
|
|
272
272
|
/* @__PURE__ */ e(F, { children: l.itemName && /* @__PURE__ */ e("span", { className: "font-semibold block my-2", children: l.itemName }) })
|
|
273
273
|
] }),
|
|
274
|
-
/* @__PURE__ */ e(ce, { error:
|
|
274
|
+
/* @__PURE__ */ e(ce, { error: u instanceof Error ? null : u }),
|
|
275
275
|
/* @__PURE__ */ i(B, { children: [
|
|
276
276
|
/* @__PURE__ */ i(X, { disabled: s, children: [
|
|
277
277
|
" ",
|
|
@@ -293,7 +293,7 @@ const ze = ({ isLoading: s, error: h, config: l }) => {
|
|
|
293
293
|
};
|
|
294
294
|
function Ve({
|
|
295
295
|
children: s,
|
|
296
|
-
title:
|
|
296
|
+
title: u,
|
|
297
297
|
description: l,
|
|
298
298
|
confirmText: o = "Confirmer",
|
|
299
299
|
cancelText: d = "Annuler",
|
|
@@ -304,7 +304,7 @@ function Ve({
|
|
|
304
304
|
/* @__PURE__ */ e(te, { asChild: !0, children: s }),
|
|
305
305
|
/* @__PURE__ */ i(q, { children: [
|
|
306
306
|
/* @__PURE__ */ i(S, { children: [
|
|
307
|
-
/* @__PURE__ */ e(J, { children:
|
|
307
|
+
/* @__PURE__ */ e(J, { children: u }),
|
|
308
308
|
/* @__PURE__ */ e(F, { children: l })
|
|
309
309
|
] }),
|
|
310
310
|
/* @__PURE__ */ i(B, { children: [
|
|
@@ -316,7 +316,7 @@ function Ve({
|
|
|
316
316
|
}
|
|
317
317
|
export {
|
|
318
318
|
ve as A,
|
|
319
|
-
|
|
320
|
-
|
|
319
|
+
je as C,
|
|
320
|
+
Ee as F,
|
|
321
321
|
Ve as a
|
|
322
322
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { u as ae } from "./useDataTable-CxcA5S-s.js";
|
|
3
|
-
import { ax as I, aL as $, az as B, aB as se, _ as L, cr as ne, cs as ie, ay as de } from "./toggle-group-
|
|
3
|
+
import { ax as I, aL as $, az as B, aB as se, _ as L, cr as ne, cs as ie, ay as de } from "./toggle-group-6CH5BRLO.js";
|
|
4
4
|
import "./alert-srKINZRG.js";
|
|
5
5
|
import { B as N } from "./tooltip-mWS3Mix6.js";
|
|
6
6
|
import "./select-CDIMkakd.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as r, jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { A as
|
|
2
|
+
import { A as t, a as l } from "./alert-srKINZRG.js";
|
|
3
3
|
import { c as n } from "./index-BSI9LuBZ.js";
|
|
4
4
|
/**
|
|
5
5
|
* @license lucide-react v1.16.0 - ISC
|
|
@@ -17,15 +17,15 @@ const c = [
|
|
|
17
17
|
],
|
|
18
18
|
["path", { d: "M12 9v4", key: "juzpu7" }],
|
|
19
19
|
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
20
|
-
], d = n("triangle-alert", c), h = ({ error: e }) => e ? /* @__PURE__ */ r(
|
|
21
|
-
/* @__PURE__ */ s(d, { className: "
|
|
20
|
+
], d = n("triangle-alert", c), h = ({ error: e }) => e ? /* @__PURE__ */ r(t, { variant: "destructive", children: [
|
|
21
|
+
/* @__PURE__ */ s(d, { className: "size-4" }),
|
|
22
22
|
/* @__PURE__ */ r(l, { children: [
|
|
23
23
|
/* @__PURE__ */ r("div", { className: "flex items-center space-x-2", children: [
|
|
24
24
|
/* @__PURE__ */ s("span", { className: "font-semibold", children: "Erreur :" }),
|
|
25
25
|
/* @__PURE__ */ s("span", { children: e.code }),
|
|
26
26
|
/* @__PURE__ */ s("span", { children: e.message })
|
|
27
27
|
] }),
|
|
28
|
-
e.errors && e.errors.length > 0 && /* @__PURE__ */ s("ul", { className: "mt-2 list-disc list-inside", children: e.errors.map((a,
|
|
28
|
+
e.errors && e.errors.length > 0 && /* @__PURE__ */ s("ul", { className: "mt-2 list-disc list-inside", children: e.errors.map((a, i) => /* @__PURE__ */ s("li", { children: a }, i)) })
|
|
29
29
|
] })
|
|
30
30
|
] }) : null;
|
|
31
31
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as s, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { I as l, M as p, J as m, N as x } from "./toggle-group-
|
|
2
|
+
import { I as l, M as p, J as m, N as x } from "./toggle-group-6CH5BRLO.js";
|
|
3
3
|
import { c } from "./tailwind.helper-gWiv5-6R.js";
|
|
4
4
|
import { useTranslation as f } from "react-i18next";
|
|
5
5
|
import { formatNumber as b } from "@krosoft/core/helpers";
|