alex-evo-sh-ui-kit 1.1.78 → 1.1.80
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import ce, { useEffect as I, useState as k, useRef as U, useCallback as N, createContext as un, useContext as
|
|
1
|
+
import ce, { useEffect as I, useState as k, useRef as U, useCallback as N, createContext as un, useContext as Re, useMemo as ge, forwardRef as Ee, useLayoutEffect as cr, useId as tt, memo as dr, useImperativeHandle as ur } from "react";
|
|
2
2
|
import hr from "react-dom";
|
|
3
3
|
import { NavLink as Sn } from "react-router-dom";
|
|
4
4
|
import './index.css';var wn = { exports: {} }, Ye = {};
|
|
@@ -280,8 +280,8 @@ function xr() {
|
|
|
280
280
|
} finally {
|
|
281
281
|
D = !1, fe.current = ee, re(), Error.prepareStackTrace = J;
|
|
282
282
|
}
|
|
283
|
-
var Ae = h ? h.displayName || h.name : "",
|
|
284
|
-
return typeof h == "function" && W.set(h,
|
|
283
|
+
var Ae = h ? h.displayName || h.name : "", Oe = Ae ? we(Ae) : "";
|
|
284
|
+
return typeof h == "function" && W.set(h, Oe), Oe;
|
|
285
285
|
}
|
|
286
286
|
function Y(h, b, S) {
|
|
287
287
|
return Ce(h, !1);
|
|
@@ -319,7 +319,7 @@ function xr() {
|
|
|
319
319
|
}
|
|
320
320
|
return "";
|
|
321
321
|
}
|
|
322
|
-
var
|
|
322
|
+
var Ve = Object.prototype.hasOwnProperty, nn = {}, tn = C.ReactDebugCurrentFrame;
|
|
323
323
|
function le(h) {
|
|
324
324
|
if (h) {
|
|
325
325
|
var b = h._owner, S = De(h.type, h._source, b ? b.type : null);
|
|
@@ -329,7 +329,7 @@ function xr() {
|
|
|
329
329
|
}
|
|
330
330
|
function jn(h, b, S, V, J) {
|
|
331
331
|
{
|
|
332
|
-
var ee = Function.call.bind(
|
|
332
|
+
var ee = Function.call.bind(Ve);
|
|
333
333
|
for (var Z in h)
|
|
334
334
|
if (ee(h, Z)) {
|
|
335
335
|
var G = void 0;
|
|
@@ -347,7 +347,7 @@ function xr() {
|
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
349
|
var pn = Array.isArray;
|
|
350
|
-
function
|
|
350
|
+
function Te(h) {
|
|
351
351
|
return pn(h);
|
|
352
352
|
}
|
|
353
353
|
function Wt(h) {
|
|
@@ -378,7 +378,7 @@ function xr() {
|
|
|
378
378
|
}, On, Dn, Cn;
|
|
379
379
|
Cn = {};
|
|
380
380
|
function Zt(h) {
|
|
381
|
-
if (
|
|
381
|
+
if (Ve.call(h, "ref")) {
|
|
382
382
|
var b = Object.getOwnPropertyDescriptor(h, "ref").get;
|
|
383
383
|
if (b && b.isReactWarning)
|
|
384
384
|
return !1;
|
|
@@ -386,7 +386,7 @@ function xr() {
|
|
|
386
386
|
return h.ref !== void 0;
|
|
387
387
|
}
|
|
388
388
|
function Yt(h) {
|
|
389
|
-
if (
|
|
389
|
+
if (Ve.call(h, "key")) {
|
|
390
390
|
var b = Object.getOwnPropertyDescriptor(h, "key").get;
|
|
391
391
|
if (b && b.isReactWarning)
|
|
392
392
|
return !1;
|
|
@@ -455,7 +455,7 @@ function xr() {
|
|
|
455
455
|
var ee, Z = {}, G = null, de = null;
|
|
456
456
|
S !== void 0 && (Tn(S), G = "" + S), Yt(b) && (Tn(b.key), G = "" + b.key), Zt(b) && (de = b.ref, Ut(b, J));
|
|
457
457
|
for (ee in b)
|
|
458
|
-
|
|
458
|
+
Ve.call(b, ee) && !Gt.hasOwnProperty(ee) && (Z[ee] = b[ee]);
|
|
459
459
|
if (h && h.defaultProps) {
|
|
460
460
|
var se = h.defaultProps;
|
|
461
461
|
for (ee in se)
|
|
@@ -534,7 +534,7 @@ Check the top-level render call using <` + S + ">.");
|
|
|
534
534
|
{
|
|
535
535
|
if (typeof h != "object")
|
|
536
536
|
return;
|
|
537
|
-
if (
|
|
537
|
+
if (Te(h))
|
|
538
538
|
for (var S = 0; S < h.length; S++) {
|
|
539
539
|
var V = h[S];
|
|
540
540
|
gn(V) && Bn(V, b);
|
|
@@ -596,7 +596,7 @@ Check the top-level render call using <` + S + ">.");
|
|
|
596
596
|
var de = Qt(J);
|
|
597
597
|
de ? G += de : G += An();
|
|
598
598
|
var se;
|
|
599
|
-
h === null ? se = "null" :
|
|
599
|
+
h === null ? se = "null" : Te(h) ? se = "array" : h !== void 0 && h.$$typeof === t ? (se = "<" + (y(h.type) || "Unknown") + " />", G = " Did you accidentally export a JSX literal instead of a component?") : se = typeof h, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", se, G);
|
|
600
600
|
}
|
|
601
601
|
var ie = qt(h, b, S, J, ee);
|
|
602
602
|
if (ie == null)
|
|
@@ -605,7 +605,7 @@ Check the top-level render call using <` + S + ">.");
|
|
|
605
605
|
var xe = b.children;
|
|
606
606
|
if (xe !== void 0)
|
|
607
607
|
if (V)
|
|
608
|
-
if (
|
|
608
|
+
if (Te(xe)) {
|
|
609
609
|
for (var Ae = 0; Ae < xe.length; Ae++)
|
|
610
610
|
Hn(xe[Ae], h);
|
|
611
611
|
Object.freeze && Object.freeze(xe);
|
|
@@ -614,18 +614,18 @@ Check the top-level render call using <` + S + ">.");
|
|
|
614
614
|
else
|
|
615
615
|
Hn(xe, h);
|
|
616
616
|
}
|
|
617
|
-
if (
|
|
618
|
-
var
|
|
617
|
+
if (Ve.call(b, "key")) {
|
|
618
|
+
var Oe = y(h), he = Object.keys(b).filter(function(lr) {
|
|
619
619
|
return lr !== "key";
|
|
620
620
|
}), bn = he.length > 0 ? "{key: someKey, " + he.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
621
|
-
if (!Wn[
|
|
621
|
+
if (!Wn[Oe + bn]) {
|
|
622
622
|
var ar = he.length > 0 ? "{" + he.join(": ..., ") + ": ...}" : "{}";
|
|
623
623
|
g(`A props object containing a "key" prop is being spread into JSX:
|
|
624
624
|
let props = %s;
|
|
625
625
|
<%s {...props} />
|
|
626
626
|
React keys must be passed directly to JSX without using spread:
|
|
627
627
|
let props = %s;
|
|
628
|
-
<%s key={someKey} {...props} />`, bn,
|
|
628
|
+
<%s key={someKey} {...props} />`, bn, Oe, ar, Oe), Wn[Oe + bn] = !0;
|
|
629
629
|
}
|
|
630
630
|
}
|
|
631
631
|
return h === s ? tr(ie) : nr(ie), ie;
|
|
@@ -778,7 +778,7 @@ const ot = {
|
|
|
778
778
|
className: l = "",
|
|
779
779
|
...c
|
|
780
780
|
}) => {
|
|
781
|
-
const a =
|
|
781
|
+
const a = Re(Ge), d = a ? a.screen : t, u = n === "heading" || n === "title" || n === "title-2", x = u ? "h3" : "span", f = {
|
|
782
782
|
fontSize: at(n, d),
|
|
783
783
|
fontWeight: lt(n, r),
|
|
784
784
|
lineHeight: ct(n, s, d),
|
|
@@ -2208,7 +2208,7 @@ const qe = ({
|
|
|
2208
2208
|
forceModal: r = !1,
|
|
2209
2209
|
...s
|
|
2210
2210
|
}) => {
|
|
2211
|
-
const { screen: i } =
|
|
2211
|
+
const { screen: i } = Re(Ge);
|
|
2212
2212
|
st(!0, document.body);
|
|
2213
2213
|
const o = () => {
|
|
2214
2214
|
var c;
|
|
@@ -2297,11 +2297,14 @@ const qe = ({
|
|
|
2297
2297
|
]
|
|
2298
2298
|
}
|
|
2299
2299
|
);
|
|
2300
|
-
},
|
|
2301
|
-
|
|
2300
|
+
}, $e = ({ children: n, container: t = document.body }) => t ? hr.createPortal(
|
|
2301
|
+
n,
|
|
2302
|
+
t
|
|
2303
|
+
) : /* @__PURE__ */ e.jsx("p", { children: "container not found" }), Ur = ({ container: n, text: t, header: r, onClick: s, styleType: i, ...o }) => {
|
|
2304
|
+
const [l, c] = k(null);
|
|
2302
2305
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
2303
|
-
/* @__PURE__ */ e.jsx(We, { styleType:
|
|
2304
|
-
|
|
2306
|
+
/* @__PURE__ */ e.jsx(We, { styleType: i ?? "filled", ...o, onClick: c }),
|
|
2307
|
+
l !== null && /* @__PURE__ */ e.jsx($e, { container: n, children: /* @__PURE__ */ e.jsx(Yr, { header: r, text: t, onSuccess: () => s == null ? void 0 : s(l), onHide: () => c(null) }) })
|
|
2305
2308
|
] });
|
|
2306
2309
|
};
|
|
2307
2310
|
const Yn = ({
|
|
@@ -2766,7 +2769,7 @@ const Xe = () => {
|
|
|
2766
2769
|
className: _ = "",
|
|
2767
2770
|
...j
|
|
2768
2771
|
}) => {
|
|
2769
|
-
const p = U(null), C = U(null), [g, w] = k(c ?? s), [v, M] = k("200px"), { colors: R } =
|
|
2772
|
+
const p = U(null), C = U(null), [g, w] = k(c ?? s), [v, M] = k("200px"), { colors: R } = Re(En), { showPopup: A, popupState: z } = Kr({ valueDisplayDuration: x }), L = n ?? R.Primary_color ?? "#0000ff";
|
|
2770
2773
|
I(() => {
|
|
2771
2774
|
var O;
|
|
2772
2775
|
if (a === "vertical" && ((O = C.current) != null && O.parentElement)) {
|
|
@@ -2876,7 +2879,7 @@ const Xe = () => {
|
|
|
2876
2879
|
className: v,
|
|
2877
2880
|
startColor: M
|
|
2878
2881
|
}) => {
|
|
2879
|
-
const R = U(null), A = U(!1), z = d * 2, L = d * 2, P = Math.min(z, L), B = z / 2, H = L / 2, y = P / 2 - a / 2, F = c === "point" ? !1 : _, $ = c === "point" ? !0 : j, { colors: O } =
|
|
2882
|
+
const R = U(null), A = U(!1), z = d * 2, L = d * 2, P = Math.min(z, L), B = z / 2, H = L / 2, y = P / 2 - a / 2, F = c === "point" ? !1 : _, $ = c === "point" ? !0 : j, { colors: O } = Re(En), q = x ?? O.Primary_color ?? "#0000ff", Q = f ?? O.Primary_color ?? "#0000ff", [ne, X] = k(r);
|
|
2880
2883
|
I(() => {
|
|
2881
2884
|
r !== void 0 && X(r);
|
|
2882
2885
|
}, [r]);
|
|
@@ -2923,11 +2926,11 @@ const Xe = () => {
|
|
|
2923
2926
|
}, we = N((W) => {
|
|
2924
2927
|
if (!R.current)
|
|
2925
2928
|
return;
|
|
2926
|
-
const pe = te(), Ce = R.current.getBoundingClientRect(), Y = Ce.left + Ce.width / 2, _e = Ce.top + Ce.height / 2, De = W.clientX,
|
|
2929
|
+
const pe = te(), Ce = R.current.getBoundingClientRect(), Y = Ce.left + Ce.width / 2, _e = Ce.top + Ce.height / 2, De = W.clientX, Ve = W.clientY, nn = _e - Ve, tn = Y - De;
|
|
2927
2930
|
let le = Math.atan2(nn, tn) * (180 / Math.PI);
|
|
2928
2931
|
pe === 270 && (le += 45), le < 0 && (le = 360 + le), le < 0 && (le = 0), le > pe && ne > (t - n) / 2 ? le = pe : le > pe && (le = 0);
|
|
2929
|
-
const jn = pe, pn = t - n,
|
|
2930
|
-
X(
|
|
2932
|
+
const jn = pe, pn = t - n, Te = Math.round(le * pn / jn + n);
|
|
2933
|
+
X(Te), Te !== r && s && s(Te);
|
|
2931
2934
|
}, [te, s, t, n, B, H, ne]);
|
|
2932
2935
|
I(() => {
|
|
2933
2936
|
Me();
|
|
@@ -2982,7 +2985,7 @@ const Xe = () => {
|
|
|
2982
2985
|
/* @__PURE__ */ e.jsx("div", { className: `range-circule-children ${v}`, style: D, children: w ?? (C && /* @__PURE__ */ e.jsx(bt, { className: "", text: Math.floor(ne).toString() })) })
|
|
2983
2986
|
] });
|
|
2984
2987
|
};
|
|
2985
|
-
const ss =
|
|
2988
|
+
const ss = Ee(
|
|
2986
2989
|
({
|
|
2987
2990
|
icon: n,
|
|
2988
2991
|
children: t,
|
|
@@ -3010,10 +3013,6 @@ const ss = Re(
|
|
|
3010
3013
|
}
|
|
3011
3014
|
);
|
|
3012
3015
|
ss.displayName = "FAB";
|
|
3013
|
-
const Oe = ({ children: n, container: t = document.body }) => t ? hr.createPortal(
|
|
3014
|
-
n,
|
|
3015
|
-
t
|
|
3016
|
-
) : /* @__PURE__ */ e.jsx("p", { children: "container not found" });
|
|
3017
3016
|
const je = ({ style: n, short: t, text: r }) => r ? /* @__PURE__ */ e.jsxs("div", { style: n, className: `divider-and-text ${t ? "short" : ""}`, children: [
|
|
3018
3017
|
/* @__PURE__ */ e.jsx("div", { className: `divider ${t ? "short" : ""}` }),
|
|
3019
3018
|
r,
|
|
@@ -3120,8 +3119,8 @@ const ds = (n) => {
|
|
|
3120
3119
|
s !== 0 ? /* @__PURE__ */ e.jsx(je, {}) : null,
|
|
3121
3120
|
/* @__PURE__ */ e.jsx(wt, { block: r, smallDisplay: !0, autoHide: n.autoHide, onHide: n.onHide })
|
|
3122
3121
|
] }, s)) }) });
|
|
3123
|
-
}, St = (n) => n.screensize === ae.MOBILE ? /* @__PURE__ */ e.jsx(
|
|
3124
|
-
const [c, a] = k(!1), [d, u] = k(void 0), { screen: x } =
|
|
3122
|
+
}, St = (n) => n.screensize === ae.MOBILE ? /* @__PURE__ */ e.jsx($e, { container: n.container, children: /* @__PURE__ */ e.jsx(ds, { ...n }) }) : /* @__PURE__ */ e.jsx($e, { container: n.container, children: /* @__PURE__ */ e.jsx(cs, { ...n }) }), Li = ce.forwardRef(({ screensize: n, autoHide: t, blocks: r, container: s, onClick: i, ...o }, l) => {
|
|
3123
|
+
const [c, a] = k(!1), [d, u] = k(void 0), { screen: x } = Re(Ge), f = () => {
|
|
3125
3124
|
a(!1), u(void 0);
|
|
3126
3125
|
}, m = (j) => {
|
|
3127
3126
|
j.stopPropagation(), a(!0), u({ x: j.clientX, y: j.clientY }), i == null || i(j);
|
|
@@ -3227,7 +3226,7 @@ const Lt = ce.forwardRef(
|
|
|
3227
3226
|
}
|
|
3228
3227
|
);
|
|
3229
3228
|
Lt.displayName = "Chips";
|
|
3230
|
-
const $t =
|
|
3229
|
+
const $t = Ee(
|
|
3231
3230
|
({
|
|
3232
3231
|
name: n,
|
|
3233
3232
|
currentValue: t,
|
|
@@ -3267,7 +3266,7 @@ const $t = Re(
|
|
|
3267
3266
|
}
|
|
3268
3267
|
);
|
|
3269
3268
|
$t.displayName = "RadioButton";
|
|
3270
|
-
const Rt =
|
|
3269
|
+
const Rt = Ee(
|
|
3271
3270
|
({
|
|
3272
3271
|
items: n,
|
|
3273
3272
|
value: t,
|
|
@@ -3331,7 +3330,7 @@ const Rt = Re(
|
|
|
3331
3330
|
}
|
|
3332
3331
|
);
|
|
3333
3332
|
Rt.displayName = "SegmentedButton";
|
|
3334
|
-
const Et =
|
|
3333
|
+
const Et = Ee(
|
|
3335
3334
|
({
|
|
3336
3335
|
size: n = "medium",
|
|
3337
3336
|
variant: t = "primary",
|
|
@@ -3678,7 +3677,7 @@ const Ri = ({
|
|
|
3678
3677
|
forceFullScreen: u,
|
|
3679
3678
|
btns: x
|
|
3680
3679
|
}) => {
|
|
3681
|
-
const { screen: f } =
|
|
3680
|
+
const { screen: f } = Re(Ge);
|
|
3682
3681
|
st(!0, document.body);
|
|
3683
3682
|
const m = () => {
|
|
3684
3683
|
o == null || o();
|
|
@@ -3734,7 +3733,7 @@ const Ri = ({
|
|
|
3734
3733
|
}
|
|
3735
3734
|
);
|
|
3736
3735
|
};
|
|
3737
|
-
const fs =
|
|
3736
|
+
const fs = Ee(
|
|
3738
3737
|
({
|
|
3739
3738
|
className: n = "",
|
|
3740
3739
|
action: t,
|
|
@@ -3754,7 +3753,7 @@ const fs = Re(
|
|
|
3754
3753
|
elevation: j = 6,
|
|
3755
3754
|
...p
|
|
3756
3755
|
}, C) => {
|
|
3757
|
-
const { screen: g } =
|
|
3756
|
+
const { screen: g } = Re(Ge), w = u ?? g, v = `elevation-${Math.min(24, Math.max(0, j))}`, M = (z) => {
|
|
3758
3757
|
R(z) && (d == null || d(z), A(z));
|
|
3759
3758
|
}, R = (z) => {
|
|
3760
3759
|
const L = z.target;
|
|
@@ -4137,7 +4136,7 @@ const Ai = ({
|
|
|
4137
4136
|
/* @__PURE__ */ e.jsx("div", { className: "alex-evo-ui-kit-tab-content", children: n[d].content })
|
|
4138
4137
|
] });
|
|
4139
4138
|
};
|
|
4140
|
-
const ps =
|
|
4139
|
+
const ps = Ee(({
|
|
4141
4140
|
children: n,
|
|
4142
4141
|
className: t = "",
|
|
4143
4142
|
maxHeight: r,
|
|
@@ -4162,7 +4161,7 @@ const ps = Re(({
|
|
|
4162
4161
|
i ? "list-container_transparent" : ""
|
|
4163
4162
|
].filter(Boolean).join(" ");
|
|
4164
4163
|
return /* @__PURE__ */ e.jsx("ul", { ref: d, style: u, className: x, ...a, children: n });
|
|
4165
|
-
}), Cs =
|
|
4164
|
+
}), Cs = Ee(({
|
|
4166
4165
|
icon: n,
|
|
4167
4166
|
control: t,
|
|
4168
4167
|
text: r,
|
|
@@ -4873,7 +4872,7 @@ const Fs = [
|
|
|
4873
4872
|
}
|
|
4874
4873
|
)
|
|
4875
4874
|
] }),
|
|
4876
|
-
u && /* @__PURE__ */ e.jsx(
|
|
4875
|
+
u && /* @__PURE__ */ e.jsx($e, { container: r, children: /* @__PURE__ */ e.jsx(
|
|
4877
4876
|
Ts,
|
|
4878
4877
|
{
|
|
4879
4878
|
defaultColor: a,
|
|
@@ -5019,7 +5018,7 @@ const Os = 2050, Qn = 1900, Se = [
|
|
|
5019
5018
|
}
|
|
5020
5019
|
) })
|
|
5021
5020
|
] }),
|
|
5022
|
-
m ? /* @__PURE__ */ e.jsx(
|
|
5021
|
+
m ? /* @__PURE__ */ e.jsx($e, { container: l, children: /* @__PURE__ */ e.jsx(Is, { onChange: w, onHide: () => _(!1) }) }) : null,
|
|
5023
5022
|
j && c && /* @__PURE__ */ e.jsx(K, { type: "small", className: "input-field-container__error-text", children: c }),
|
|
5024
5023
|
a && !j && /* @__PURE__ */ e.jsx(K, { type: "small", className: "input-field-container__helper-text", children: a })
|
|
5025
5024
|
] });
|
|
@@ -5667,7 +5666,7 @@ const Us = ({ setHours: n, setMinutes: t, switchMode: r, minutes: s, hours: i, o
|
|
|
5667
5666
|
}
|
|
5668
5667
|
),
|
|
5669
5668
|
L,
|
|
5670
|
-
C && /* @__PURE__ */ e.jsx(
|
|
5669
|
+
C && /* @__PURE__ */ e.jsx($e, { container: c, children: /* @__PURE__ */ e.jsx(
|
|
5671
5670
|
Ks,
|
|
5672
5671
|
{
|
|
5673
5672
|
onHide: () => g(!1),
|
|
@@ -5928,7 +5927,7 @@ const ni = ({
|
|
|
5928
5927
|
/* @__PURE__ */ e.jsx("input", { placeholder: t, type: "text", ref: c, onChange: C, onKeyDown: g, value: a, onFocus: () => x(!0) }),
|
|
5929
5928
|
u ? /* @__PURE__ */ e.jsx("span", { onClick: j, children: /* @__PURE__ */ e.jsx(ke, {}) }) : /* @__PURE__ */ e.jsx("span", { onClick: _, children: /* @__PURE__ */ e.jsx($n, {}) })
|
|
5930
5929
|
] }) }),
|
|
5931
|
-
/* @__PURE__ */ e.jsx(
|
|
5930
|
+
/* @__PURE__ */ e.jsx($e, { container: document.body, children: /* @__PURE__ */ e.jsx(ni, { point: f ?? void 0, onClose: () => m(null), isOpen: !!f, filters: s, selectedFilters: i, onChange: o }) })
|
|
5932
5931
|
] });
|
|
5933
5932
|
};
|
|
5934
5933
|
const ti = ({ visible: n, text: t, option: r }) => {
|
|
@@ -6117,7 +6116,7 @@ const ri = ({ icons: n, value: t, onChange: r, disabled: s, placeholder: i, cont
|
|
|
6117
6116
|
placeholder: i
|
|
6118
6117
|
}
|
|
6119
6118
|
),
|
|
6120
|
-
l && /* @__PURE__ */ e.jsx(
|
|
6119
|
+
l && /* @__PURE__ */ e.jsx($e, { container: o, children: /* @__PURE__ */ e.jsx(
|
|
6121
6120
|
us,
|
|
6122
6121
|
{
|
|
6123
6122
|
header: "Icons",
|
|
@@ -6223,8 +6222,8 @@ function li(n) {
|
|
|
6223
6222
|
function ci(n) {
|
|
6224
6223
|
return typeof n == "boolean";
|
|
6225
6224
|
}
|
|
6226
|
-
const
|
|
6227
|
-
const { value: t, changeField: r, errors: s } =
|
|
6225
|
+
const Fe = (n) => {
|
|
6226
|
+
const { value: t, changeField: r, errors: s } = Re(Ht), i = N((a) => {
|
|
6228
6227
|
r && r(n, a);
|
|
6229
6228
|
}, [n]), o = N(() => {
|
|
6230
6229
|
const a = t == null ? void 0 : t[n];
|
|
@@ -6242,16 +6241,16 @@ const Ee = (n) => {
|
|
|
6242
6241
|
change: i
|
|
6243
6242
|
};
|
|
6244
6243
|
}, di = (n) => {
|
|
6245
|
-
const { value: t, change: r, error: s } =
|
|
6244
|
+
const { value: t, change: r, error: s } = Fe(n.name);
|
|
6246
6245
|
return /* @__PURE__ */ e.jsx(zs, { ...n, onChange: r, value: String(t), errorText: s, error: !!s });
|
|
6247
6246
|
}, ui = (n) => {
|
|
6248
|
-
const { value: t, change: r, error: s } =
|
|
6247
|
+
const { value: t, change: r, error: s } = Fe(n.name);
|
|
6249
6248
|
return /* @__PURE__ */ e.jsx(Dt, { ...n, value: Number(t), onChange: r, errorText: s, error: !!s });
|
|
6250
6249
|
}, hi = (n) => {
|
|
6251
|
-
const { value: t, change: r, error: s } =
|
|
6250
|
+
const { value: t, change: r, error: s } = Fe(n.name);
|
|
6252
6251
|
return /* @__PURE__ */ e.jsx(Pt, { ...n, container: n.container ?? document.body, value: t, onChange: r, errorText: s, error: !!s });
|
|
6253
6252
|
}, fi = ({ placeholder: n, ref: t, style: r, readOnly: s, className: i, name: o }) => {
|
|
6254
|
-
const { value: l, change: c } =
|
|
6253
|
+
const { value: l, change: c } = Fe(o), a = (d) => {
|
|
6255
6254
|
c && c(d.target.checked);
|
|
6256
6255
|
};
|
|
6257
6256
|
return /* @__PURE__ */ e.jsx("div", { className: `input-field form-switch ${i}`, style: r, children: /* @__PURE__ */ e.jsx(
|
|
@@ -6266,7 +6265,7 @@ const Ee = (n) => {
|
|
|
6266
6265
|
}
|
|
6267
6266
|
) });
|
|
6268
6267
|
}, xi = ({ placeholder: n, ref: t, style: r, readOnly: s, className: i, name: o }) => {
|
|
6269
|
-
const { value: l, change: c } =
|
|
6268
|
+
const { value: l, change: c } = Fe(o), a = (u) => {
|
|
6270
6269
|
if (u.length > 0)
|
|
6271
6270
|
return c && c(!0);
|
|
6272
6271
|
c && c(!1);
|
|
@@ -6285,7 +6284,7 @@ const Ee = (n) => {
|
|
|
6285
6284
|
}
|
|
6286
6285
|
);
|
|
6287
6286
|
}, mi = (n) => {
|
|
6288
|
-
const { error: t, value: r, change: s, clearHandler: i } =
|
|
6287
|
+
const { error: t, value: r, change: s, clearHandler: i } = Fe(n.name);
|
|
6289
6288
|
return /* @__PURE__ */ e.jsx(
|
|
6290
6289
|
en,
|
|
6291
6290
|
{
|
|
@@ -6299,10 +6298,10 @@ const Ee = (n) => {
|
|
|
6299
6298
|
);
|
|
6300
6299
|
};
|
|
6301
6300
|
const ji = (n) => {
|
|
6302
|
-
const { error: t, value: r, change: s, clearHandler: i } =
|
|
6301
|
+
const { error: t, value: r, change: s, clearHandler: i } = Fe(n.name);
|
|
6303
6302
|
return /* @__PURE__ */ e.jsx(It, { ...n, onChange: s, onClear: n.clear ? i : void 0, value: String(r), error: !!t, errorText: t });
|
|
6304
6303
|
}, pi = (n) => {
|
|
6305
|
-
const { error: t, value: r, change: s } =
|
|
6304
|
+
const { error: t, value: r, change: s } = Fe(n.name);
|
|
6306
6305
|
return /* @__PURE__ */ e.jsx(
|
|
6307
6306
|
As,
|
|
6308
6307
|
{
|
|
@@ -6313,25 +6312,25 @@ const ji = (n) => {
|
|
|
6313
6312
|
errorText: t
|
|
6314
6313
|
}
|
|
6315
6314
|
);
|
|
6316
|
-
}, Ci =
|
|
6317
|
-
function({ children: t, value: r, name: s, errors: i, onFinish: o },
|
|
6318
|
-
const [
|
|
6319
|
-
|
|
6320
|
-
}, [o,
|
|
6321
|
-
|
|
6322
|
-
...
|
|
6323
|
-
[
|
|
6315
|
+
}, Ci = Ee(
|
|
6316
|
+
function({ children: t, value: r, name: s, errors: i, onFinish: o, ...l }, c) {
|
|
6317
|
+
const [a, d] = k(r ?? {}), u = N((f) => {
|
|
6318
|
+
f.preventDefault(), o == null || o(a);
|
|
6319
|
+
}, [o, a]), x = N((f, m) => {
|
|
6320
|
+
d((_) => ({
|
|
6321
|
+
..._,
|
|
6322
|
+
[f]: m
|
|
6324
6323
|
}));
|
|
6325
6324
|
}, []);
|
|
6326
|
-
return ur(
|
|
6327
|
-
submit: () => o == null ? void 0 : o(
|
|
6328
|
-
setFieldValue: (
|
|
6329
|
-
|
|
6325
|
+
return ur(c, () => ({
|
|
6326
|
+
submit: () => o == null ? void 0 : o(a),
|
|
6327
|
+
setFieldValue: (f, m) => {
|
|
6328
|
+
d((_) => ({ ..._, [f]: m }));
|
|
6330
6329
|
},
|
|
6331
|
-
setValues: (
|
|
6332
|
-
getValues: () =>
|
|
6333
|
-
reset: () =>
|
|
6334
|
-
}), [o,
|
|
6330
|
+
setValues: (f) => d(f),
|
|
6331
|
+
getValues: () => a,
|
|
6332
|
+
reset: () => d(r ?? {})
|
|
6333
|
+
}), [o, a, r]), /* @__PURE__ */ e.jsx(Ht.Provider, { value: { value: a, changeField: x, errors: i }, children: /* @__PURE__ */ e.jsx("form", { name: s, onSubmit: u, noValidate: !0, ...l, children: t }) });
|
|
6335
6334
|
}
|
|
6336
6335
|
), n1 = Object.assign(Ci, {
|
|
6337
6336
|
TextInput: mi,
|
|
@@ -6415,7 +6414,7 @@ export {
|
|
|
6415
6414
|
Ct as Minus,
|
|
6416
6415
|
Mr as MinusUserIcon,
|
|
6417
6416
|
xn as ModalDialogTemplate,
|
|
6418
|
-
|
|
6417
|
+
$e as ModalPortal,
|
|
6419
6418
|
hn as ModalTemplate,
|
|
6420
6419
|
cn as MoreHorizontal,
|
|
6421
6420
|
zs as MoreText,
|