alex-evo-sh-ui-kit 1.1.103 → 1.1.105
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/alex-evo-sh-ui-kit.es.js +83 -78
- package/dist/alex-evo-sh-ui-kit.umd.js +34 -30
- package/dist/index.css +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import te, { useEffect as V, useState as b, useRef as Y, useCallback as k, createContext as Be, forwardRef as fe, useContext as
|
|
1
|
+
import te, { useEffect as V, useState as b, useRef as Y, useCallback as k, createContext as Be, forwardRef as fe, useContext as je, useMemo as oe, useLayoutEffect as ct, useId as We, memo as ot, useImperativeHandle as dt } from "react";
|
|
2
2
|
import ut from "react-dom";
|
|
3
3
|
import { NavLink as en } from "react-router-dom";
|
|
4
4
|
import './index.css';var Qe = { exports: {} }, Se = {};
|
|
@@ -315,7 +315,7 @@ const Cn = (n) => /* @__PURE__ */ e.jsx(
|
|
|
315
315
|
large: "btn--large"
|
|
316
316
|
};
|
|
317
317
|
return /* @__PURE__ */ e.jsx("button", { ...t, className: (t.className ?? "") + " btn " + s[n], onClick: r, children: /* @__PURE__ */ e.jsx("span", { children: t.children }) });
|
|
318
|
-
},
|
|
318
|
+
}, Ne = ({ styleType: n = "base", ...t }) => n === "outline" ? /* @__PURE__ */ e.jsx(Cn, { ...t }) : n === "text" ? /* @__PURE__ */ e.jsx(de, { ...t }) : n === "filledTotal" ? /* @__PURE__ */ e.jsx(mt, { ...t }) : n === "filled" ? /* @__PURE__ */ e.jsx(ft, { ...t }) : /* @__PURE__ */ e.jsx(Fe, { ...t }), vn = (n, t) => {
|
|
319
319
|
V(() => {
|
|
320
320
|
if (n) {
|
|
321
321
|
const r = window.innerWidth - document.documentElement.clientWidth;
|
|
@@ -378,15 +378,15 @@ const Ge = ({ children: n, onHide: t, disableBackplate: r }) => {
|
|
|
378
378
|
[ee.MOBILE]: "small-screen",
|
|
379
379
|
[ee.STANDART]: "standart-screen",
|
|
380
380
|
[ee.BIG_SCREEN]: "big-screen"
|
|
381
|
-
}, jt = (n, t = ee.STANDART) => `var(--${n}-${bn[t]})`, pt = (n, t = "standart") => `var(--${n}-${t})`, _t = (n, t = "normal", r = ee.STANDART) => `var(--${n}-heights-${bn[r]}-${t})`,
|
|
381
|
+
}, jt = (n, t = ee.STANDART) => `var(--${n}-${bn[t]})`, pt = (n, t = "standart") => `var(--${n}-${t})`, _t = (n, t = "normal", r = ee.STANDART) => `var(--${n}-heights-${bn[r]}-${t})`, be = {
|
|
382
382
|
mobileSize: 720,
|
|
383
383
|
bigSize: 1400
|
|
384
384
|
}, Ct = (n = {}) => {
|
|
385
385
|
const t = {
|
|
386
|
-
bigSize: n.bigSize ??
|
|
387
|
-
mobileSize: n.mobileSize ??
|
|
386
|
+
bigSize: n.bigSize ?? be.bigSize,
|
|
387
|
+
mobileSize: n.mobileSize ?? be.mobileSize
|
|
388
388
|
};
|
|
389
|
-
t.bigSize <= 100 && (console.error("useScreenSize: invalid option"), t.bigSize =
|
|
389
|
+
t.bigSize <= 100 && (console.error("useScreenSize: invalid option"), t.bigSize = be.bigSize), t.mobileSize <= 100 && (console.error("useScreenSize: invalid option"), t.mobileSize = be.mobileSize), t.mobileSize >= t.bigSize && (console.error("useScreenSize: invalid option"), t.mobileSize = be.mobileSize, t.bigSize = be.bigSize);
|
|
390
390
|
const [r, s] = b(ee.STANDART), i = k(() => {
|
|
391
391
|
window.innerWidth < t.mobileSize ? s(ee.MOBILE) : window.innerWidth < t.bigSize ? s(ee.STANDART) : s(ee.BIG_SCREEN);
|
|
392
392
|
}, [window.innerWidth]);
|
|
@@ -397,9 +397,9 @@ const Ge = ({ children: n, onHide: t, disableBackplate: r }) => {
|
|
|
397
397
|
}), [i]), { screen: r };
|
|
398
398
|
}, vt = {
|
|
399
399
|
screen: ee.STANDART
|
|
400
|
-
},
|
|
400
|
+
}, ge = Be(vt), Ss = ({ children: n, option: t }) => {
|
|
401
401
|
const r = Ct(t);
|
|
402
|
-
return /* @__PURE__ */ e.jsx(
|
|
402
|
+
return /* @__PURE__ */ e.jsx(ge.Provider, { value: r, children: n });
|
|
403
403
|
}, K = fe(({
|
|
404
404
|
type: n,
|
|
405
405
|
screensize: t = ee.STANDART,
|
|
@@ -410,7 +410,7 @@ const Ge = ({ children: n, onHide: t, disableBackplate: r }) => {
|
|
|
410
410
|
className: a = "",
|
|
411
411
|
...o
|
|
412
412
|
}, c) => {
|
|
413
|
-
const d =
|
|
413
|
+
const d = je(ge), u = d ? d.screen : t, m = n === "heading" || n === "title" || n === "title-2", h = m ? "h3" : "span", x = {
|
|
414
414
|
fontSize: jt(n, u),
|
|
415
415
|
fontWeight: pt(n, r),
|
|
416
416
|
lineHeight: _t(n, s, u),
|
|
@@ -497,7 +497,7 @@ const kn = (n) => /* @__PURE__ */ e.jsx($, { ...n, className: `${n.className} ic
|
|
|
497
497
|
/* @__PURE__ */ e.jsx("rect", { id: "Rectangle", fillRule: "nonzero", x: "0", y: "0", width: "24", height: "24" }),
|
|
498
498
|
/* @__PURE__ */ e.jsx("line", { x1: "16.9999", y1: "7", x2: "7.00001", y2: "16.9999", id: "Path", stroke: "var(--On-surface-color)", strokeWidth: "2", strokeLinecap: "round" }),
|
|
499
499
|
/* @__PURE__ */ e.jsx("line", { x1: "7.00006", y1: "7", x2: "17", y2: "16.9999", id: "Path", stroke: "var(--On-surface-color)", strokeWidth: "2", strokeLinecap: "round" })
|
|
500
|
-
] }) }) }),
|
|
500
|
+
] }) }) }), Ce = (n) => {
|
|
501
501
|
const t = F(n);
|
|
502
502
|
return /* @__PURE__ */ e.jsx($, { ...n, children: /* @__PURE__ */ e.jsx("path", { fill: "none", d: "M4 12.6111L8.92308 17.5L20 6.5", stroke: t.primaryColor, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) });
|
|
503
503
|
}, He = (n) => {
|
|
@@ -1841,7 +1841,7 @@ const kn = (n) => /* @__PURE__ */ e.jsx($, { ...n, className: `${n.className} ic
|
|
|
1841
1841
|
forceModal: r = !1,
|
|
1842
1842
|
...s
|
|
1843
1843
|
}) => {
|
|
1844
|
-
const { screen: i } =
|
|
1844
|
+
const { screen: i } = je(ge);
|
|
1845
1845
|
vn(!0, document.body);
|
|
1846
1846
|
const l = () => {
|
|
1847
1847
|
var o;
|
|
@@ -1879,7 +1879,7 @@ const kn = (n) => /* @__PURE__ */ e.jsx($, { ...n, className: `${n.className} ic
|
|
|
1879
1879
|
},
|
|
1880
1880
|
s.text
|
|
1881
1881
|
) : /* @__PURE__ */ e.jsx(
|
|
1882
|
-
|
|
1882
|
+
Ne,
|
|
1883
1883
|
{
|
|
1884
1884
|
style: s.style,
|
|
1885
1885
|
styleType: s.styleType,
|
|
@@ -1930,14 +1930,14 @@ const kn = (n) => /* @__PURE__ */ e.jsx($, { ...n, className: `${n.className} ic
|
|
|
1930
1930
|
]
|
|
1931
1931
|
}
|
|
1932
1932
|
);
|
|
1933
|
-
},
|
|
1933
|
+
}, ve = ({ children: n, container: t = document.body }) => t ? ut.createPortal(
|
|
1934
1934
|
n,
|
|
1935
1935
|
t
|
|
1936
1936
|
) : /* @__PURE__ */ e.jsx("p", { children: "container not found" }), Kt = ({ container: n, text: t, header: r, onClick: s, styleType: i, ...l }) => {
|
|
1937
1937
|
const [a, o] = b(null);
|
|
1938
1938
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1939
|
-
/* @__PURE__ */ e.jsx(
|
|
1940
|
-
a !== null && /* @__PURE__ */ e.jsx(
|
|
1939
|
+
/* @__PURE__ */ e.jsx(Ne, { styleType: i ?? "filled", ...l, onClick: o }),
|
|
1940
|
+
a !== null && /* @__PURE__ */ e.jsx(ve, { container: n, children: /* @__PURE__ */ e.jsx(Xt, { header: r, text: t, onSuccess: () => s == null ? void 0 : s(a), onHide: () => o(null) }) })
|
|
1941
1941
|
] });
|
|
1942
1942
|
}, dn = ({
|
|
1943
1943
|
text: n,
|
|
@@ -1957,7 +1957,7 @@ const kn = (n) => /* @__PURE__ */ e.jsx($, { ...n, className: `${n.className} ic
|
|
|
1957
1957
|
}
|
|
1958
1958
|
i == null || i(h);
|
|
1959
1959
|
}
|
|
1960
|
-
}, [n, l, r, i]), u = o ? /* @__PURE__ */ e.jsx(
|
|
1960
|
+
}, [n, l, r, i]), u = o ? /* @__PURE__ */ e.jsx(Ce, { "aria-hidden": "true" }) : /* @__PURE__ */ e.jsx(En, { "aria-hidden": "true" }), m = o ? "Скопировано!" : "Копировать";
|
|
1961
1961
|
return t ? /* @__PURE__ */ e.jsxs("div", { className: "copy-button", children: [
|
|
1962
1962
|
/* @__PURE__ */ e.jsx(
|
|
1963
1963
|
ue,
|
|
@@ -2064,12 +2064,12 @@ function Le(n, t, r) {
|
|
|
2064
2064
|
b: Math.round(l * 255)
|
|
2065
2065
|
};
|
|
2066
2066
|
}
|
|
2067
|
-
function
|
|
2067
|
+
function ke(n) {
|
|
2068
2068
|
let t = n.toString(16);
|
|
2069
2069
|
return t.length === 1 && (t = "0" + t), t;
|
|
2070
2070
|
}
|
|
2071
|
-
function
|
|
2072
|
-
return t ? "#" +
|
|
2071
|
+
function ye(n, t = !1) {
|
|
2072
|
+
return t ? "#" + ke(n.r) + ke(n.g) + ke(n.b) : ke(n.r) + ke(n.g) + ke(n.b);
|
|
2073
2073
|
}
|
|
2074
2074
|
function Ie(n, t, r) {
|
|
2075
2075
|
arguments.length === 1 && (t = n.g, r = n.b, n = n.r);
|
|
@@ -2094,7 +2094,7 @@ function Ie(n, t, r) {
|
|
|
2094
2094
|
v: c
|
|
2095
2095
|
};
|
|
2096
2096
|
}
|
|
2097
|
-
function
|
|
2097
|
+
function we(n) {
|
|
2098
2098
|
var t = /^#?([a-f\d])([a-f\d])([a-f\d])$/i;
|
|
2099
2099
|
n = n.replace(t, function(s, i, l, a) {
|
|
2100
2100
|
return i + i + l + l + a + a;
|
|
@@ -2106,7 +2106,7 @@ function Ne(n) {
|
|
|
2106
2106
|
b: parseInt(r[3], 16)
|
|
2107
2107
|
} : null;
|
|
2108
2108
|
}
|
|
2109
|
-
const Jt =
|
|
2109
|
+
const Jt = we, Qt = (n) => {
|
|
2110
2110
|
if (!n)
|
|
2111
2111
|
return "linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0))";
|
|
2112
2112
|
const t = Jt(n);
|
|
@@ -2115,7 +2115,7 @@ const Jt = Ne, Qt = (n) => {
|
|
|
2115
2115
|
function On(n, t, r) {
|
|
2116
2116
|
if (n === 0) return r ?? "#e0e0e0";
|
|
2117
2117
|
if (n === 1) return t;
|
|
2118
|
-
const s = r ?
|
|
2118
|
+
const s = r ? we(r) : null, i = (s == null ? void 0 : s.r) ?? 224, l = (s == null ? void 0 : s.g) ?? 224, a = (s == null ? void 0 : s.b) ?? 224, o = parseInt(t.substring(1, 3), 16), c = parseInt(t.substring(3, 5), 16), d = parseInt(t.substring(5, 7), 16), u = Math.round(i + n * (o - i)), m = Math.round(l + n * (c - l)), h = Math.round(a + n * (d - a));
|
|
2119
2119
|
return `rgb(${u}, ${m}, ${h})`;
|
|
2120
2120
|
}
|
|
2121
2121
|
const ce = (n, t, r = "", s) => {
|
|
@@ -2141,7 +2141,7 @@ ce.pSBCr = (n) => {
|
|
|
2141
2141
|
return s;
|
|
2142
2142
|
};
|
|
2143
2143
|
function re(n) {
|
|
2144
|
-
const t =
|
|
2144
|
+
const t = we(n);
|
|
2145
2145
|
return t ? t.r * 0.299 + t.g * 0.589 + t.b * 0.114 > 186 ? "#000000" : "#FFFFFF" : "#fff";
|
|
2146
2146
|
}
|
|
2147
2147
|
function Te(n, t = !1) {
|
|
@@ -2394,7 +2394,7 @@ const $e = () => {
|
|
|
2394
2394
|
className: f = "",
|
|
2395
2395
|
...j
|
|
2396
2396
|
}) => {
|
|
2397
|
-
const p = Y(null), v = Y(null), [N, g] = b(o ?? s), [_, S] = b("200px"), { colors: T } =
|
|
2397
|
+
const p = Y(null), v = Y(null), [N, g] = b(o ?? s), [_, S] = b("200px"), { colors: T } = je(ln), { showPopup: P, popupState: B } = qt({ valueDisplayDuration: m }), w = n ?? T.Primary_color ?? "#0000ff";
|
|
2398
2398
|
V(() => {
|
|
2399
2399
|
var E;
|
|
2400
2400
|
if (c === "vertical" && ((E = v.current) != null && E.parentElement)) {
|
|
@@ -2504,7 +2504,7 @@ const $e = () => {
|
|
|
2504
2504
|
className: _,
|
|
2505
2505
|
startColor: S
|
|
2506
2506
|
}) => {
|
|
2507
|
-
const T = Y(null), P = Y(!1), B = d * 2, w = d * 2, W = Math.min(B, w), O = B / 2, A = w / 2, y = W / 2 - c / 2, D = o === "point" ? !1 : f, M = o === "point" ? !0 : j, { colors: E } =
|
|
2507
|
+
const T = Y(null), P = Y(!1), B = d * 2, w = d * 2, W = Math.min(B, w), O = B / 2, A = w / 2, y = W / 2 - c / 2, D = o === "point" ? !1 : f, M = o === "point" ? !0 : j, { colors: E } = je(ln), U = m ?? E.Primary_color ?? "#0000ff", I = h ?? E.Primary_color ?? "#0000ff", [H, G] = b(r);
|
|
2508
2508
|
V(() => {
|
|
2509
2509
|
r !== void 0 && G(r);
|
|
2510
2510
|
}, [r]);
|
|
@@ -2522,7 +2522,7 @@ const $e = () => {
|
|
|
2522
2522
|
[H, n, t]
|
|
2523
2523
|
), q = k(() => {
|
|
2524
2524
|
if (!T.current) return;
|
|
2525
|
-
const [Z, he] = L(),
|
|
2525
|
+
const [Z, he] = L(), _e = (H - n) * he / (t - n);
|
|
2526
2526
|
if (x) {
|
|
2527
2527
|
const X = T.current.querySelector('[data-el="base"]');
|
|
2528
2528
|
X && (X.style.stroke = u, X.style.strokeWidth = c.toString(), X.style.strokeLinecap = p ? "round" : "", X.style.strokeDashoffset = Z.toString(), X.style.strokeDasharray = `${he}, ${y * Math.PI * 2 - he}`);
|
|
@@ -2531,14 +2531,14 @@ const $e = () => {
|
|
|
2531
2531
|
const X = T.current.querySelector('[data-el="indicator"]');
|
|
2532
2532
|
if (X) {
|
|
2533
2533
|
const xe = parseFloat(X.dataset.percentage ?? "");
|
|
2534
|
-
xe !== null && (xe < R - 2 || xe > R + 2) ? X.style.transition = ".3s" : X.style.transition = P.current ? "none" : ".3s", X.dataset.percentage = R.toString(), X.style.stroke = o === "static-color" ? U : On(R / 100, U, S), X.style.strokeWidth = c.toString(), X.style.strokeLinecap = p ? "round" : "", X.style.strokeDashoffset = Z.toString(), X.style.strokeDasharray = `${
|
|
2534
|
+
xe !== null && (xe < R - 2 || xe > R + 2) ? X.style.transition = ".3s" : X.style.transition = P.current ? "none" : ".3s", X.dataset.percentage = R.toString(), X.style.stroke = o === "static-color" ? U : On(R / 100, U, S), X.style.strokeWidth = c.toString(), X.style.strokeLinecap = p ? "round" : "", X.style.strokeDashoffset = Z.toString(), X.style.strokeDasharray = `${_e}, ${y * Math.PI * 2 - _e}`;
|
|
2535
2535
|
}
|
|
2536
2536
|
}
|
|
2537
2537
|
if (M) {
|
|
2538
2538
|
const X = T.current.querySelector('[data-el="point"]');
|
|
2539
2539
|
if (X) {
|
|
2540
2540
|
const xe = parseFloat(X.dataset.percentage ?? "");
|
|
2541
|
-
xe !== null && (xe < R - 2 || xe > R + 2) ? X.style.transition = ".3s" : X.style.transition = P.current ? "none" : ".3s", X.dataset.percentage = R.toString(), X.style.stroke = I, X.style.strokeWidth = c.toString(), X.style.strokeLinecap = "round", H === t && a === "semicircle" ? X.style.strokeDashoffset = "0" : X.style.strokeDashoffset = (Z -
|
|
2541
|
+
xe !== null && (xe < R - 2 || xe > R + 2) ? X.style.transition = ".3s" : X.style.transition = P.current ? "none" : ".3s", X.dataset.percentage = R.toString(), X.style.stroke = I, X.style.strokeWidth = c.toString(), X.style.strokeLinecap = "round", H === t && a === "semicircle" ? X.style.strokeDashoffset = "0" : X.style.strokeDashoffset = (Z - _e).toString(), X.style.strokeDasharray = `0, ${y * Math.PI * 2}`;
|
|
2542
2542
|
}
|
|
2543
2543
|
}
|
|
2544
2544
|
}, [H, L, t, n, y, c, u, U, I, x, D, M, p, R, S]), Q = (Z) => {
|
|
@@ -2549,7 +2549,7 @@ const $e = () => {
|
|
|
2549
2549
|
P.current = !1, document.removeEventListener("mousemove", ne), document.removeEventListener("mouseup", J);
|
|
2550
2550
|
}, le = k((Z) => {
|
|
2551
2551
|
if (!T.current) return;
|
|
2552
|
-
const he = C(),
|
|
2552
|
+
const he = C(), _e = T.current.getBoundingClientRect(), X = _e.left + _e.width / 2, xe = _e.top + _e.height / 2, tt = Z.clientX, rt = Z.clientY, st = xe - rt, it = X - tt;
|
|
2553
2553
|
let ae = Math.atan2(st, it) * (180 / Math.PI);
|
|
2554
2554
|
he === 270 && (ae += 45), ae < 0 && (ae = 360 + ae), ae < 0 && (ae = 0), ae > he && H > (t - n) / 2 ? ae = he : ae > he && (ae = 0);
|
|
2555
2555
|
const lt = he, at = t - n, Xe = Math.round(ae * at / lt + n);
|
|
@@ -2646,7 +2646,7 @@ const se = ({ style: n, short: t, text: r }) => r ? /* @__PURE__ */ e.jsxs("div"
|
|
|
2646
2646
|
return /* @__PURE__ */ e.jsxs("div", { className: `menu-item menu-item__info ${n.disabled ? "menu-item_disabled" : ""}`, onClick: l, children: [
|
|
2647
2647
|
t ? /* @__PURE__ */ e.jsx("div", { className: "menu-icon-container", children: n.icon }) : null,
|
|
2648
2648
|
/* @__PURE__ */ e.jsx("div", { className: "menu-text-container", children: n.title }),
|
|
2649
|
-
/* @__PURE__ */ e.jsx("div", { className: "menu-status-container", children: n.activated ? /* @__PURE__ */ e.jsx(
|
|
2649
|
+
/* @__PURE__ */ e.jsx("div", { className: "menu-status-container", children: n.activated ? /* @__PURE__ */ e.jsx(Ce, {}) : null })
|
|
2650
2650
|
] });
|
|
2651
2651
|
}, Ue = (n) => {
|
|
2652
2652
|
if (!n) return;
|
|
@@ -2693,7 +2693,7 @@ const se = ({ style: n, short: t, text: r }) => r ? /* @__PURE__ */ e.jsxs("div"
|
|
|
2693
2693
|
/* @__PURE__ */ e.jsxs("div", { className: "menu-item__info", onClick: c, children: [
|
|
2694
2694
|
i ? /* @__PURE__ */ e.jsx("div", { className: "menu-item__info__icon", children: s.icon }) : null,
|
|
2695
2695
|
/* @__PURE__ */ e.jsx("div", { className: "menu-item__info__text", children: s.title }),
|
|
2696
|
-
/* @__PURE__ */ e.jsx("div", { className: "menu-item__info__status ", children: s.subItems ? /* @__PURE__ */ e.jsx("span", { className: `menu-item__info__status__arrow ${a ? "menu-item__info__status__arrow_active" : ""}` }) : s.activated ? /* @__PURE__ */ e.jsx(
|
|
2696
|
+
/* @__PURE__ */ e.jsx("div", { className: "menu-item__info__status ", children: s.subItems ? /* @__PURE__ */ e.jsx("span", { className: `menu-item__info__status__arrow ${a ? "menu-item__info__status__arrow_active" : ""}` }) : s.activated ? /* @__PURE__ */ e.jsx(Ce, {}) : /* @__PURE__ */ e.jsx("span", { className: "menu-item__info__status__none" }) })
|
|
2697
2697
|
] }),
|
|
2698
2698
|
a && s.subItems ? /* @__PURE__ */ e.jsx(cr, { autoHide: t, items: s.subItems, onGlobalHide: n, onHide: () => o(!1), smallDisplay: l }) : null
|
|
2699
2699
|
] });
|
|
@@ -2736,8 +2736,8 @@ const dr = 100, ur = (n) => {
|
|
|
2736
2736
|
s !== 0 ? /* @__PURE__ */ e.jsx(se, {}) : null,
|
|
2737
2737
|
/* @__PURE__ */ e.jsx(In, { block: r, smallDisplay: !0, autoHide: n.autoHide, onHide: n.onHide })
|
|
2738
2738
|
] }, s)) }) });
|
|
2739
|
-
}, Hn = (n) => n.screensize === ee.MOBILE ? /* @__PURE__ */ e.jsx(
|
|
2740
|
-
const [o, c] = b(!1), [d, u] = b(void 0), { screen: m } =
|
|
2739
|
+
}, Hn = (n) => n.screensize === ee.MOBILE ? /* @__PURE__ */ e.jsx(ve, { container: n.container, children: /* @__PURE__ */ e.jsx(hr, { ...n }) }) : /* @__PURE__ */ e.jsx(ve, { container: n.container, children: /* @__PURE__ */ e.jsx(ur, { ...n }) }), Vs = te.forwardRef(({ screensize: n, autoHide: t, blocks: r, container: s, onClick: i, ...l }, a) => {
|
|
2740
|
+
const [o, c] = b(!1), [d, u] = b(void 0), { screen: m } = je(ge), h = () => {
|
|
2741
2741
|
c(!1), u(void 0);
|
|
2742
2742
|
}, x = (j) => {
|
|
2743
2743
|
j.stopPropagation(), c(!0), u({ x: j.clientX, y: j.clientY }), i == null || i(j);
|
|
@@ -2773,7 +2773,7 @@ const dr = 100, ur = (n) => {
|
|
|
2773
2773
|
onChange: r,
|
|
2774
2774
|
readOnly: s,
|
|
2775
2775
|
disabled: i,
|
|
2776
|
-
checkIcon: l = /* @__PURE__ */ e.jsx(
|
|
2776
|
+
checkIcon: l = /* @__PURE__ */ e.jsx(Ce, { baseColor: "var(--On-primary-color)" }),
|
|
2777
2777
|
size: a = "medium",
|
|
2778
2778
|
className: o,
|
|
2779
2779
|
...c
|
|
@@ -2923,7 +2923,7 @@ const Wn = fe(
|
|
|
2923
2923
|
className: `segmented-button__item ${m.includes(j) ? "segmented-button__item--active" : ""}`,
|
|
2924
2924
|
onClick: (p) => f(p, j),
|
|
2925
2925
|
children: [
|
|
2926
|
-
m.includes(j) && /* @__PURE__ */ e.jsx("span", { className: "segmented-button__icon", children: /* @__PURE__ */ e.jsx(
|
|
2926
|
+
m.includes(j) && /* @__PURE__ */ e.jsx("span", { className: "segmented-button__icon", children: /* @__PURE__ */ e.jsx(Ce, {}) }),
|
|
2927
2927
|
/* @__PURE__ */ e.jsx("span", { className: "segmented-button__text", children: j }),
|
|
2928
2928
|
/* @__PURE__ */ e.jsx(
|
|
2929
2929
|
"input",
|
|
@@ -3292,7 +3292,7 @@ const Ts = ({
|
|
|
3292
3292
|
maxWidth: h,
|
|
3293
3293
|
btns: x
|
|
3294
3294
|
}) => {
|
|
3295
|
-
const { screen: f } =
|
|
3295
|
+
const { screen: f } = je(ge);
|
|
3296
3296
|
vn(!0, document.body);
|
|
3297
3297
|
const j = k(() => {
|
|
3298
3298
|
a == null || a();
|
|
@@ -3342,8 +3342,8 @@ const Ts = ({
|
|
|
3342
3342
|
className: `full-screen-dialog ${r}`,
|
|
3343
3343
|
onHide: j,
|
|
3344
3344
|
action: x === void 0 ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
3345
|
-
a && /* @__PURE__ */ e.jsx(
|
|
3346
|
-
a && /* @__PURE__ */ e.jsx(
|
|
3345
|
+
a && /* @__PURE__ */ e.jsx(Ne, { styleType: "outline", onClick: j, children: u ?? "Отмена" }),
|
|
3346
|
+
a && /* @__PURE__ */ e.jsx(Ne, { onClick: p, children: d ?? "Сохранить" })
|
|
3347
3347
|
] }) : /* @__PURE__ */ e.jsx(Pe, { btns: x, onHide: a, onSuccess: l }),
|
|
3348
3348
|
children: i
|
|
3349
3349
|
}
|
|
@@ -3368,7 +3368,7 @@ const Ts = ({
|
|
|
3368
3368
|
elevation: j = 6,
|
|
3369
3369
|
...p
|
|
3370
3370
|
}, v) => {
|
|
3371
|
-
const { screen: N } =
|
|
3371
|
+
const { screen: N } = je(ge), g = u ?? N, _ = `elevation-${Math.min(24, Math.max(0, j))}`, S = (B) => {
|
|
3372
3372
|
T(B) && (d == null || d(B), P(B));
|
|
3373
3373
|
}, T = (B) => {
|
|
3374
3374
|
const w = B.target;
|
|
@@ -4097,9 +4097,13 @@ const kr = ({ data: n, column: t, color: r, backgroundColor: s, H: i }) => {
|
|
|
4097
4097
|
) })
|
|
4098
4098
|
] });
|
|
4099
4099
|
}, Ys = ({ visible: n, firstBtn: t, mainBtn: r, onHide: s, otherBtn: i, backBtn: l, openAlways: a }) => {
|
|
4100
|
-
const o = (c,
|
|
4100
|
+
const { screen: o } = je(ge), c = (d, u) => d.type === "button" ? /* @__PURE__ */ e.jsx(Re, { active: d.active, onClick: d.onClick, title: d.text, icon: d.icon }, u) : d.type === "link" ? /* @__PURE__ */ e.jsx(Yn, { onClick: () => s(), title: d.text, icon: d.icon, to: d.to }, u) : d.type === "submenu" ? /* @__PURE__ */ e.jsx(Sr, { item: d, onHide: s }, u) : null;
|
|
4101
4101
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
4102
|
-
/* @__PURE__ */ e.jsxs("div", { className: `
|
|
4102
|
+
/* @__PURE__ */ e.jsxs("div", { className: `
|
|
4103
|
+
navigation-drawer
|
|
4104
|
+
${n || a ? "navigation-drawer_show" : "navigation-drawer_hide"}
|
|
4105
|
+
${o === ee.BIG_SCREEN ? "navigation-drawer_z500" : "navigation-drawer_z1200"}
|
|
4106
|
+
`, children: [
|
|
4103
4107
|
t ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
4104
4108
|
/* @__PURE__ */ e.jsxs("div", { className: "navigation-drawer__block", children: [
|
|
4105
4109
|
/* @__PURE__ */ e.jsx("div", { className: "navigation-drawer__block__header" }),
|
|
@@ -4109,12 +4113,12 @@ const kr = ({ data: n, column: t, color: r, backgroundColor: s, H: i }) => {
|
|
|
4109
4113
|
] }) : null,
|
|
4110
4114
|
/* @__PURE__ */ e.jsxs("div", { className: "navigation-drawer__block", children: [
|
|
4111
4115
|
/* @__PURE__ */ e.jsx("div", { className: "navigation-drawer__block__header" }),
|
|
4112
|
-
/* @__PURE__ */ e.jsx("div", { className: "navigation-drawer__block__content", children: r && r.map(
|
|
4116
|
+
/* @__PURE__ */ e.jsx("div", { className: "navigation-drawer__block__content", children: r && r.map(c) })
|
|
4113
4117
|
] }),
|
|
4114
4118
|
/* @__PURE__ */ e.jsx("div", { className: "navigation-drawer__divider", children: /* @__PURE__ */ e.jsx(se, {}) }),
|
|
4115
4119
|
/* @__PURE__ */ e.jsxs("div", { className: "navigation-drawer__block", children: [
|
|
4116
4120
|
/* @__PURE__ */ e.jsx("div", { className: "navigation-drawer__block__header" }),
|
|
4117
|
-
/* @__PURE__ */ e.jsx("div", { className: "navigation-drawer__block__content", children: i && i.map(
|
|
4121
|
+
/* @__PURE__ */ e.jsx("div", { className: "navigation-drawer__block__content", children: i && i.map(c) })
|
|
4118
4122
|
] }),
|
|
4119
4123
|
/* @__PURE__ */ e.jsx("div", { className: "navigation-drawer__divider", children: /* @__PURE__ */ e.jsx(se, {}) }),
|
|
4120
4124
|
l ? /* @__PURE__ */ e.jsx("div", { className: "navigation-drawer__block", children: /* @__PURE__ */ e.jsx(Re, { active: l.active, onClick: l.onClick, title: l.text, icon: l.icon }) }) : null
|
|
@@ -4232,7 +4236,7 @@ const Tr = [
|
|
|
4232
4236
|
"#E64AA9"
|
|
4233
4237
|
], fn = { h: 0, s: 1, v: 0.5 }, Or = (n) => {
|
|
4234
4238
|
try {
|
|
4235
|
-
return n ? Ie(
|
|
4239
|
+
return n ? Ie(we(n)) : fn;
|
|
4236
4240
|
} catch {
|
|
4237
4241
|
return fn;
|
|
4238
4242
|
}
|
|
@@ -4248,8 +4252,8 @@ const Tr = [
|
|
|
4248
4252
|
height: c = "auto"
|
|
4249
4253
|
}) => {
|
|
4250
4254
|
const d = Y(null), u = Y(null), m = Y(null), h = Y(null), [x, f] = b(Or(t)), [j, p] = b(!1), [v, N] = b(
|
|
4251
|
-
`#${
|
|
4252
|
-
), g = oe(() => Le(x), [x]), _ = oe(() => `#${
|
|
4255
|
+
`#${ye(Le(x))}`
|
|
4256
|
+
), g = oe(() => Le(x), [x]), _ = oe(() => `#${ye(g)}`, [g]), S = oe(
|
|
4253
4257
|
() => v[0] !== "#" ? `#${v}` : v,
|
|
4254
4258
|
[v]
|
|
4255
4259
|
);
|
|
@@ -4267,7 +4271,7 @@ const Tr = [
|
|
|
4267
4271
|
y && (Lr(
|
|
4268
4272
|
y,
|
|
4269
4273
|
m.current,
|
|
4270
|
-
`#${
|
|
4274
|
+
`#${ye(Le(x.h, 1, 1))}`
|
|
4271
4275
|
), $r(
|
|
4272
4276
|
m.current,
|
|
4273
4277
|
y,
|
|
@@ -4275,7 +4279,7 @@ const Tr = [
|
|
|
4275
4279
|
(D, M) => {
|
|
4276
4280
|
f((E) => {
|
|
4277
4281
|
const U = { ...E, s: D / 100, v: M / 100 };
|
|
4278
|
-
return N(
|
|
4282
|
+
return N(ye(Le(U))), U;
|
|
4279
4283
|
});
|
|
4280
4284
|
}
|
|
4281
4285
|
));
|
|
@@ -4285,13 +4289,13 @@ const Tr = [
|
|
|
4285
4289
|
y && (Er(y, d.current), Fr(y, d.current, u.current, (D) => {
|
|
4286
4290
|
f((M) => {
|
|
4287
4291
|
const E = { ...M, h: D / 360 };
|
|
4288
|
-
return N(
|
|
4292
|
+
return N(ye(Le(E))), E;
|
|
4289
4293
|
});
|
|
4290
4294
|
}));
|
|
4291
4295
|
}, []), V(() => {
|
|
4292
4296
|
if (v.length === 4 || v.length === 7)
|
|
4293
4297
|
try {
|
|
4294
|
-
f(Ie(
|
|
4298
|
+
f(Ie(we(v)));
|
|
4295
4299
|
} catch {
|
|
4296
4300
|
console.warn("Invalid HEX color");
|
|
4297
4301
|
}
|
|
@@ -4305,7 +4309,7 @@ const Tr = [
|
|
|
4305
4309
|
}
|
|
4306
4310
|
}, P = (y) => {
|
|
4307
4311
|
try {
|
|
4308
|
-
f(Ie(
|
|
4312
|
+
f(Ie(we(y))), N(y);
|
|
4309
4313
|
} catch {
|
|
4310
4314
|
console.warn("Invalid color format");
|
|
4311
4315
|
}
|
|
@@ -4316,7 +4320,7 @@ const Tr = [
|
|
|
4316
4320
|
}, [r, _]), W = k(
|
|
4317
4321
|
(y, D) => {
|
|
4318
4322
|
const M = Math.min(255, Math.max(0, D));
|
|
4319
|
-
f(Ie({ ...g, [y]: M })), N(
|
|
4323
|
+
f(Ie({ ...g, [y]: M })), N(ye({ ...g, [y]: M }));
|
|
4320
4324
|
},
|
|
4321
4325
|
[g]
|
|
4322
4326
|
), O = k((y) => {
|
|
@@ -4544,7 +4548,7 @@ const Tr = [
|
|
|
4544
4548
|
}
|
|
4545
4549
|
)
|
|
4546
4550
|
] }),
|
|
4547
|
-
u && /* @__PURE__ */ e.jsx(
|
|
4551
|
+
u && /* @__PURE__ */ e.jsx(ve, { container: r, children: /* @__PURE__ */ e.jsx(
|
|
4548
4552
|
Ar,
|
|
4549
4553
|
{
|
|
4550
4554
|
defaultColor: c,
|
|
@@ -4616,10 +4620,10 @@ const Tr = [
|
|
|
4616
4620
|
] }) })
|
|
4617
4621
|
] }),
|
|
4618
4622
|
m === "MONTHS" ? /* @__PURE__ */ e.jsx("div", { className: "calendar-body-months-container", children: me.map((_, S) => /* @__PURE__ */ e.jsxs("div", { className: "calendar-body-months-item", onClick: () => v(_), children: [
|
|
4619
|
-
/* @__PURE__ */ e.jsx("div", { className: "status-container", children: l === _ ? /* @__PURE__ */ e.jsx(
|
|
4623
|
+
/* @__PURE__ */ e.jsx("div", { className: "status-container", children: l === _ ? /* @__PURE__ */ e.jsx(Ce, {}) : null }),
|
|
4620
4624
|
/* @__PURE__ */ e.jsx("div", { className: "content", children: _ })
|
|
4621
4625
|
] }, S)) }) : m === "YEARS" ? /* @__PURE__ */ e.jsx("div", { className: "calendar-body-years-container", children: Ir().map((_, S) => /* @__PURE__ */ e.jsxs("div", { className: "calendar-body-year-item", onClick: () => p(_), children: [
|
|
4622
|
-
/* @__PURE__ */ e.jsx("div", { className: "status-container", children: o === _ ? /* @__PURE__ */ e.jsx(
|
|
4626
|
+
/* @__PURE__ */ e.jsx("div", { className: "status-container", children: o === _ ? /* @__PURE__ */ e.jsx(Ce, {}) : null }),
|
|
4623
4627
|
/* @__PURE__ */ e.jsx("div", { className: "content", children: _ })
|
|
4624
4628
|
] }, S)) }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
4625
4629
|
/* @__PURE__ */ e.jsxs("div", { className: "calendar-body-dayofweek-container", children: [
|
|
@@ -4725,7 +4729,7 @@ const Tr = [
|
|
|
4725
4729
|
input-field__icon-container_clear-btn
|
|
4726
4730
|
`, onClick: M, children: /* @__PURE__ */ e.jsx(ie, { "aria-label": "Clear input" }) })
|
|
4727
4731
|
] }),
|
|
4728
|
-
N ? /* @__PURE__ */ e.jsx(
|
|
4732
|
+
N ? /* @__PURE__ */ e.jsx(ve, { container: a, children: /* @__PURE__ */ e.jsx(Hr, { onChange: E, onHide: () => g(!1) }) }) : null,
|
|
4729
4733
|
w && o && /* @__PURE__ */ e.jsx(K, { type: "small", className: "input-field-container__error-text", children: o }),
|
|
4730
4734
|
c && !w && /* @__PURE__ */ e.jsx(K, { type: "small", className: "input-field-container__helper-text", children: c })
|
|
4731
4735
|
] });
|
|
@@ -4843,6 +4847,7 @@ const Gr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), pn =
|
|
|
4843
4847
|
Pn,
|
|
4844
4848
|
{
|
|
4845
4849
|
text: w,
|
|
4850
|
+
className: "chips-container_chip",
|
|
4846
4851
|
onDelete: () => B(W),
|
|
4847
4852
|
disabled: o,
|
|
4848
4853
|
"aria-label": `Элемент: ${w}`,
|
|
@@ -4856,7 +4861,7 @@ const Gr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), pn =
|
|
|
4856
4861
|
}
|
|
4857
4862
|
),
|
|
4858
4863
|
/* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(
|
|
4859
|
-
|
|
4864
|
+
Ne,
|
|
4860
4865
|
{
|
|
4861
4866
|
onClick: P,
|
|
4862
4867
|
className: "more-text-btn",
|
|
@@ -5403,7 +5408,7 @@ const Kr = ({ setHours: n, setMinutes: t, switchMode: r, minutes: s, hours: i, o
|
|
|
5403
5408
|
}
|
|
5404
5409
|
),
|
|
5405
5410
|
L,
|
|
5406
|
-
T && /* @__PURE__ */ e.jsx(
|
|
5411
|
+
T && /* @__PURE__ */ e.jsx(ve, { container: o, children: /* @__PURE__ */ e.jsx(
|
|
5407
5412
|
qr,
|
|
5408
5413
|
{
|
|
5409
5414
|
onHide: () => P(!1),
|
|
@@ -5450,7 +5455,7 @@ const qe = 0, Je = 100, Ks = ({ showValue: n = !0, ...t }) => {
|
|
|
5450
5455
|
}, qs = ({ className: n, text: t, title: r, hexColor: s, hexBackground: i, style: l, btn: a }) => /* @__PURE__ */ e.jsxs("div", { className: `alex-evo-sh-ui-kit-empty-page ${n ?? ""}`, style: { background: Qt(i), color: s, ...l }, children: [
|
|
5451
5456
|
/* @__PURE__ */ e.jsx("h2", { children: r }),
|
|
5452
5457
|
t ? /* @__PURE__ */ e.jsx("p", { children: t }) : null,
|
|
5453
|
-
a ? /* @__PURE__ */ e.jsx(
|
|
5458
|
+
a ? /* @__PURE__ */ e.jsx(Ne, { styleType: a.styleType ?? "filled", style: a.style, className: a.className, onClick: a.onClick, children: a.text }) : null
|
|
5454
5459
|
] }), ns = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, initComponent: l, onlyStringValue: a }) => {
|
|
5455
5460
|
const [o, c] = b(""), [d, u] = b(""), [m, h] = b(!1), [x, f] = b(!0), j = k((g, _) => {
|
|
5456
5461
|
s({ ...r, [_]: g });
|
|
@@ -5659,7 +5664,7 @@ const an = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
|
|
|
5659
5664
|
/* @__PURE__ */ e.jsx("input", { placeholder: t, type: "text", ref: o, onChange: v, onKeyDown: N, value: c, onFocus: () => m(!0) }),
|
|
5660
5665
|
u ? /* @__PURE__ */ e.jsx("span", { onClick: j, children: /* @__PURE__ */ e.jsx(ie, {}) }) : /* @__PURE__ */ e.jsx("span", { onClick: f, children: /* @__PURE__ */ e.jsx(rn, {}) })
|
|
5661
5666
|
] }) }),
|
|
5662
|
-
/* @__PURE__ */ e.jsx(
|
|
5667
|
+
/* @__PURE__ */ e.jsx(ve, { container: document.body, children: /* @__PURE__ */ e.jsx(ss, { point: h ?? void 0, onClose: () => x(null), isOpen: !!h, filters: s, selectedFilters: i, onChange: l }) })
|
|
5663
5668
|
] });
|
|
5664
5669
|
}, is = ({ visible: n, text: t, option: r }) => {
|
|
5665
5670
|
const [s, i] = b(n), [l, a] = b(!1);
|
|
@@ -5784,7 +5789,7 @@ const ls = ({ icons: n, value: t, onChange: r, disabled: s, placeholder: i, cont
|
|
|
5784
5789
|
placeholder: i
|
|
5785
5790
|
}
|
|
5786
5791
|
),
|
|
5787
|
-
a && /* @__PURE__ */ e.jsx(
|
|
5792
|
+
a && /* @__PURE__ */ e.jsx(ve, { container: l, children: /* @__PURE__ */ e.jsx(
|
|
5788
5793
|
xr,
|
|
5789
5794
|
{
|
|
5790
5795
|
header: "Icons",
|
|
@@ -5818,7 +5823,7 @@ const ls = ({ icons: n, value: t, onChange: r, disabled: s, placeholder: i, cont
|
|
|
5818
5823
|
MoreVertical: wn,
|
|
5819
5824
|
CircleMinus: Ze,
|
|
5820
5825
|
Calendar: Nn,
|
|
5821
|
-
Check:
|
|
5826
|
+
Check: Ce,
|
|
5822
5827
|
ChevronDown: He,
|
|
5823
5828
|
CirclePlus: sn,
|
|
5824
5829
|
Clock: nn,
|
|
@@ -5881,7 +5886,7 @@ const cs = {
|
|
|
5881
5886
|
] });
|
|
5882
5887
|
}, nt = Be({});
|
|
5883
5888
|
function ds() {
|
|
5884
|
-
return
|
|
5889
|
+
return je(nt);
|
|
5885
5890
|
}
|
|
5886
5891
|
function us(n) {
|
|
5887
5892
|
return typeof n == "string";
|
|
@@ -5892,7 +5897,7 @@ function hs(n) {
|
|
|
5892
5897
|
function xs(n) {
|
|
5893
5898
|
return typeof n == "boolean";
|
|
5894
5899
|
}
|
|
5895
|
-
const
|
|
5900
|
+
const pe = (n) => {
|
|
5896
5901
|
const { value: t, changeField: r, errors: s } = ds(), i = k((c) => {
|
|
5897
5902
|
r && r(n, c);
|
|
5898
5903
|
}, [n]), l = k(() => {
|
|
@@ -5911,16 +5916,16 @@ const je = (n) => {
|
|
|
5911
5916
|
change: i
|
|
5912
5917
|
};
|
|
5913
5918
|
}, ms = (n) => {
|
|
5914
|
-
const { value: t, change: r, error: s } =
|
|
5919
|
+
const { value: t, change: r, error: s } = pe(n.name);
|
|
5915
5920
|
return /* @__PURE__ */ e.jsx(Zr, { ...n, onChange: r, value: String(t), errorText: s, error: !!s });
|
|
5916
5921
|
}, fs = (n) => {
|
|
5917
|
-
const { value: t, change: r, error: s } =
|
|
5922
|
+
const { value: t, change: r, error: s } = pe(n.name);
|
|
5918
5923
|
return /* @__PURE__ */ e.jsx(Kn, { ...n, value: Number(t), onChange: r, errorText: s, error: !!s });
|
|
5919
5924
|
}, js = (n) => {
|
|
5920
|
-
const { value: t, change: r, error: s } =
|
|
5925
|
+
const { value: t, change: r, error: s } = pe(n.name);
|
|
5921
5926
|
return /* @__PURE__ */ e.jsx(Qn, { ...n, container: n.container ?? document.body, value: t, onChange: r, errorText: s, error: !!s });
|
|
5922
5927
|
}, ps = ({ placeholder: n, ref: t, style: r, readOnly: s, className: i, name: l }) => {
|
|
5923
|
-
const { value: a, change: o } =
|
|
5928
|
+
const { value: a, change: o } = pe(l), c = (d) => {
|
|
5924
5929
|
o && o(d.target.checked);
|
|
5925
5930
|
};
|
|
5926
5931
|
return /* @__PURE__ */ e.jsx("div", { className: `input-field form-switch ${i}`, style: r, children: /* @__PURE__ */ e.jsx(
|
|
@@ -5935,7 +5940,7 @@ const je = (n) => {
|
|
|
5935
5940
|
}
|
|
5936
5941
|
) });
|
|
5937
5942
|
}, _s = ({ placeholder: n, ref: t, style: r, readOnly: s, className: i, name: l }) => {
|
|
5938
|
-
const { value: a, change: o } =
|
|
5943
|
+
const { value: a, change: o } = pe(l), c = (u) => {
|
|
5939
5944
|
if (u.length > 0)
|
|
5940
5945
|
return o && o(!0);
|
|
5941
5946
|
o && o(!1);
|
|
@@ -5954,7 +5959,7 @@ const je = (n) => {
|
|
|
5954
5959
|
}
|
|
5955
5960
|
);
|
|
5956
5961
|
}, Cs = (n) => {
|
|
5957
|
-
const { error: t, value: r, change: s, clearHandler: i } =
|
|
5962
|
+
const { error: t, value: r, change: s, clearHandler: i } = pe(n.name);
|
|
5958
5963
|
return /* @__PURE__ */ e.jsx(
|
|
5959
5964
|
Ve,
|
|
5960
5965
|
{
|
|
@@ -5967,10 +5972,10 @@ const je = (n) => {
|
|
|
5967
5972
|
}
|
|
5968
5973
|
);
|
|
5969
5974
|
}, vs = (n) => {
|
|
5970
|
-
const { error: t, value: r, change: s, clearHandler: i } =
|
|
5975
|
+
const { error: t, value: r, change: s, clearHandler: i } = pe(n.name);
|
|
5971
5976
|
return /* @__PURE__ */ e.jsx(qn, { ...n, onChange: s, onClear: n.clear ? i : void 0, value: String(r), error: !!t, errorText: t });
|
|
5972
5977
|
}, gs = (n) => {
|
|
5973
|
-
const { error: t, value: r, change: s } =
|
|
5978
|
+
const { error: t, value: r, change: s } = pe(n.name);
|
|
5974
5979
|
return /* @__PURE__ */ e.jsx(
|
|
5975
5980
|
zr,
|
|
5976
5981
|
{
|
|
@@ -5982,7 +5987,7 @@ const je = (n) => {
|
|
|
5982
5987
|
}
|
|
5983
5988
|
);
|
|
5984
5989
|
}, bs = (n) => {
|
|
5985
|
-
const { error: t, value: r, change: s } =
|
|
5990
|
+
const { error: t, value: r, change: s } = pe(n.name);
|
|
5986
5991
|
return /* @__PURE__ */ e.jsx(
|
|
5987
5992
|
Qr,
|
|
5988
5993
|
{
|
|
@@ -6038,10 +6043,10 @@ export {
|
|
|
6038
6043
|
Ee as BasicTemplateDialog,
|
|
6039
6044
|
Ds as BigContainer,
|
|
6040
6045
|
gn as BottomSheetsUi,
|
|
6041
|
-
|
|
6046
|
+
Ne as Button,
|
|
6042
6047
|
Nn as Calendar,
|
|
6043
6048
|
fr as Card,
|
|
6044
|
-
|
|
6049
|
+
Ce as Check,
|
|
6045
6050
|
zn as Checkbox,
|
|
6046
6051
|
He as ChevronDown,
|
|
6047
6052
|
Pn as Chips,
|
|
@@ -6075,7 +6080,7 @@ export {
|
|
|
6075
6080
|
Ps as GridLayout,
|
|
6076
6081
|
zs as GridLayoutItem,
|
|
6077
6082
|
Ft as Group,
|
|
6078
|
-
|
|
6083
|
+
we as HEXtoRGB,
|
|
6079
6084
|
Ls as HSLtoHSV,
|
|
6080
6085
|
$s as HSVtoHSL,
|
|
6081
6086
|
Le as HSVtoRGB,
|
|
@@ -6096,7 +6101,7 @@ export {
|
|
|
6096
6101
|
Rn as Minus,
|
|
6097
6102
|
$t as MinusUserIcon,
|
|
6098
6103
|
Ye as ModalDialogTemplate,
|
|
6099
|
-
|
|
6104
|
+
ve as ModalPortal,
|
|
6100
6105
|
Ge as ModalTemplate,
|
|
6101
6106
|
ze as MoreHorizontal,
|
|
6102
6107
|
Zr as MoreText,
|
|
@@ -6132,7 +6137,7 @@ export {
|
|
|
6132
6137
|
zt as Sensor2,
|
|
6133
6138
|
Pt as Sensor3,
|
|
6134
6139
|
Bt as SensorWarning,
|
|
6135
|
-
|
|
6140
|
+
ge as SizeContext,
|
|
6136
6141
|
Ss as SizeProvider,
|
|
6137
6142
|
Ks as Slider,
|
|
6138
6143
|
hr as SmallWindowMenu,
|