skillgrid 0.0.40-dev-34237-snackbar.1252864 → 0.0.41
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/components/Snackbar/Provider/index.d.ts +1 -1
- package/dist/components/Snackbar/index.d.ts +1 -1
- package/dist/index.cjs.js +10 -10
- package/dist/index.css +1 -1
- package/dist/index.es.js +257 -257
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _r from "react";
|
|
2
|
-
import Ce, { forwardRef as Q, Fragment as Gt, useState as it, useEffect as G, useRef as gt, useCallback as
|
|
2
|
+
import Ce, { forwardRef as Q, Fragment as Gt, useState as it, useEffect as G, useRef as gt, useCallback as bt, useMemo as ie, createContext as ke, useContext as Se, useLayoutEffect as pr, useImperativeHandle as Ur, useId as Le, useReducer as Zr } from "react";
|
|
3
3
|
import { clsx as k } from "clsx";
|
|
4
4
|
import { useFloating as Yr, useTransitionStyles as Gr, useDismiss as Kr, useRole as Jr, useInteractions as Qr, useMergeRefs as tn, FloatingPortal as en, FloatingOverlay as rn, FloatingFocusManager as nn } from "@floating-ui/react";
|
|
5
5
|
import on from "rc-tooltip";
|
|
@@ -23,11 +23,11 @@ function sn() {
|
|
|
23
23
|
Ve = 1;
|
|
24
24
|
var t = Ce, r = Symbol.for("react.element"), n = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, i = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
25
25
|
function l(d, g, h) {
|
|
26
|
-
var c,
|
|
26
|
+
var c, b = {}, w = null, u = null;
|
|
27
27
|
h !== void 0 && (w = "" + h), g.key !== void 0 && (w = "" + g.key), g.ref !== void 0 && (u = g.ref);
|
|
28
|
-
for (c in g) s.call(g, c) && !a.hasOwnProperty(c) && (
|
|
29
|
-
if (d && d.defaultProps) for (c in g = d.defaultProps, g)
|
|
30
|
-
return { $$typeof: r, type: d, key: w, ref: u, props:
|
|
28
|
+
for (c in g) s.call(g, c) && !a.hasOwnProperty(c) && (b[c] = g[c]);
|
|
29
|
+
if (d && d.defaultProps) for (c in g = d.defaultProps, g) b[c] === void 0 && (b[c] = g[c]);
|
|
30
|
+
return { $$typeof: r, type: d, key: w, ref: u, props: b, _owner: i.current };
|
|
31
31
|
}
|
|
32
32
|
return Vt.Fragment = n, Vt.jsx = l, Vt.jsxs = l, Vt;
|
|
33
33
|
}
|
|
@@ -44,11 +44,11 @@ var Xt = {};
|
|
|
44
44
|
var Xe;
|
|
45
45
|
function ln() {
|
|
46
46
|
return Xe || (Xe = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
47
|
-
var t = Ce, r = Symbol.for("react.element"), n = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), d = Symbol.for("react.context"), g = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"),
|
|
47
|
+
var t = Ce, r = Symbol.for("react.element"), n = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), d = Symbol.for("react.context"), g = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), u = Symbol.for("react.offscreen"), f = Symbol.iterator, x = "@@iterator";
|
|
48
48
|
function _(o) {
|
|
49
49
|
if (o === null || typeof o != "object")
|
|
50
50
|
return null;
|
|
51
|
-
var v = f && o[f] || o[
|
|
51
|
+
var v = f && o[f] || o[x];
|
|
52
52
|
return typeof v == "function" ? v : null;
|
|
53
53
|
}
|
|
54
54
|
var m = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
@@ -72,7 +72,7 @@ function ln() {
|
|
|
72
72
|
var S = !1, $ = !1, C = !1, j = !1, E = !1, I;
|
|
73
73
|
I = Symbol.for("react.module.reference");
|
|
74
74
|
function M(o) {
|
|
75
|
-
return !!(typeof o == "string" || typeof o == "function" || o === s || o === a || E || o === i || o === h || o === c || j || o === u || S || $ || C || typeof o == "object" && o !== null && (o.$$typeof === w || o.$$typeof ===
|
|
75
|
+
return !!(typeof o == "string" || typeof o == "function" || o === s || o === a || E || o === i || o === h || o === c || j || o === u || S || $ || C || typeof o == "object" && o !== null && (o.$$typeof === w || o.$$typeof === b || o.$$typeof === l || o.$$typeof === d || o.$$typeof === g || // This needs to include all possible module reference object
|
|
76
76
|
// types supported by any Flight configuration anywhere since
|
|
77
77
|
// we don't know which Flight build this will end up being used
|
|
78
78
|
// with.
|
|
@@ -119,7 +119,7 @@ function ln() {
|
|
|
119
119
|
return D(L._context) + ".Provider";
|
|
120
120
|
case g:
|
|
121
121
|
return z(o, o.render, "ForwardRef");
|
|
122
|
-
case
|
|
122
|
+
case b:
|
|
123
123
|
var R = o.displayName || null;
|
|
124
124
|
return R !== null ? R : T(o.type) || "Memo";
|
|
125
125
|
case w: {
|
|
@@ -309,7 +309,7 @@ function ln() {
|
|
|
309
309
|
switch (o.$$typeof) {
|
|
310
310
|
case g:
|
|
311
311
|
return ue(o.render);
|
|
312
|
-
case
|
|
312
|
+
case b:
|
|
313
313
|
return ot(o.type, v, L);
|
|
314
314
|
case w: {
|
|
315
315
|
var R = o, F = R._payload, V = R._init;
|
|
@@ -549,7 +549,7 @@ Check the top-level render call using <` + L + ">.");
|
|
|
549
549
|
L = v.propTypes;
|
|
550
550
|
else if (typeof v == "object" && (v.$$typeof === g || // Note: Memo only checks outer props here.
|
|
551
551
|
// Inner props are checked in the reconciler.
|
|
552
|
-
v.$$typeof ===
|
|
552
|
+
v.$$typeof === b))
|
|
553
553
|
L = v.propTypes;
|
|
554
554
|
else
|
|
555
555
|
return;
|
|
@@ -636,14 +636,14 @@ function cn() {
|
|
|
636
636
|
return Ue || (Ue = 1, process.env.NODE_ENV === "production" ? te.exports = sn() : te.exports = ln()), te.exports;
|
|
637
637
|
}
|
|
638
638
|
var e = cn();
|
|
639
|
-
const dn = (t) => t.as === "a", un = (t) => t.as === void 0 || t.as === "button", Ze = (t) => t.displayAs === void 0 || t.displayAs === "button", _n = (t) => t.displayAs === "link", pn = "_button_11kkg_1", fn = "_link_11kkg_22", gn = "_disabled_11kkg_27", hn = "_loading_11kkg_27", mn = "_neutral_11kkg_59",
|
|
639
|
+
const dn = (t) => t.as === "a", un = (t) => t.as === void 0 || t.as === "button", Ze = (t) => t.displayAs === void 0 || t.displayAs === "button", _n = (t) => t.displayAs === "link", pn = "_button_11kkg_1", fn = "_link_11kkg_22", gn = "_disabled_11kkg_27", hn = "_loading_11kkg_27", mn = "_neutral_11kkg_59", bn = "_accent_11kkg_63", xn = "_positive_11kkg_67", yn = "_negative_11kkg_71", vn = "_contrast_11kkg_75", wn = "_primary_11kkg_79", Cn = "_secondary_11kkg_80", kn = "_tertiary_11kkg_81", Sn = "_gray_11kkg_91", Ln = "_spaceBetween_11kkg_119", jn = "_rightGroup_11kkg_119", $n = "_withSubcaption_11kkg_127", Tn = "_label_11kkg_139", En = "_icon_11kkg_148", In = "_labelText_11kkg_153", Rn = "_isLink_11kkg_159", Nn = "_iconOnly_11kkg_174", Mn = "_stretched_11kkg_190", An = "_postfix_11kkg_195", Bn = "_underline_11kkg_225", On = "_backButton_11kkg_428", Pn = "_warning_11kkg_1159", zn = "_subcaption_11kkg_1389", Dn = "_content_11kkg_1394", Fn = "_contentHidden_11kkg_1398", Wn = "_loaderWrapper_11kkg_1402", Hn = "_l_11kkg_22", qn = "_m_11kkg_1441", Vn = "_s_11kkg_80", Xn = "_xs_11kkg_1484", Un = "_noPaddings_11kkg_1506", Zn = "_iconRight_11kkg_1542", Yn = "_spin_11kkg_1", q = {
|
|
640
640
|
button: pn,
|
|
641
641
|
link: fn,
|
|
642
642
|
disabled: gn,
|
|
643
643
|
loading: hn,
|
|
644
644
|
neutral: mn,
|
|
645
|
-
accent:
|
|
646
|
-
positive:
|
|
645
|
+
accent: bn,
|
|
646
|
+
positive: xn,
|
|
647
647
|
negative: yn,
|
|
648
648
|
contrast: vn,
|
|
649
649
|
primary: wn,
|
|
@@ -751,7 +751,7 @@ const Qn = (t, r, n) => t ? "gray" : r === "primary" ? {
|
|
|
751
751
|
"size-64": "_size-64_isv17_84",
|
|
752
752
|
"size-96": "_size-96_isv17_88"
|
|
753
753
|
};
|
|
754
|
-
var
|
|
754
|
+
var be = { exports: {} };
|
|
755
755
|
/*!
|
|
756
756
|
Copyright (c) 2018 Jed Watson.
|
|
757
757
|
Licensed under the MIT License (MIT), see
|
|
@@ -788,7 +788,7 @@ function _o() {
|
|
|
788
788
|
}
|
|
789
789
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
790
790
|
})();
|
|
791
|
-
})(
|
|
791
|
+
})(be)), be.exports;
|
|
792
792
|
}
|
|
793
793
|
var po = _o();
|
|
794
794
|
const jt = /* @__PURE__ */ an(po), fr = Q(
|
|
@@ -927,22 +927,22 @@ const jt = /* @__PURE__ */ an(po), fr = Q(
|
|
|
927
927
|
className: l,
|
|
928
928
|
children: d,
|
|
929
929
|
tabIndex: g
|
|
930
|
-
} = t, h = n === "tertiary", c = Ze(t),
|
|
930
|
+
} = t, h = n === "tertiary", c = Ze(t), b = _n(t), w = h && "paddings" in t ? t.paddings ?? !0 : !0, u = c ? t.subcaption : void 0, f = c ? t.postfix : void 0, x = c ? t.stretched : void 0, _ = !(b && t.size === void 0), m = b && _ ? t.iconLeft : void 0, p = b && _ ? t.iconRight : void 0, y = !!(c && "loading" in t && t.loading), S = c ? a : a || y, $ = !S && !y, C = c ? t.iconLeft : void 0, j = !!(!d && (c && C && !f || b && p)), E = typeof x == "object" ? x.justify === "space-between" : void 0, I = mo(s), M = rt[I], z = b ? Jn(t.size ?? "m") : void 0, D = z ? rt[z] : void 0, T = Qn(S, n, i), N = S || y ? -1 : g, W = k(
|
|
931
931
|
q.button,
|
|
932
932
|
q[s],
|
|
933
933
|
q[n],
|
|
934
934
|
q[i],
|
|
935
|
-
|
|
935
|
+
b && D,
|
|
936
936
|
c && M,
|
|
937
937
|
{
|
|
938
938
|
[q.disabled]: S,
|
|
939
939
|
[q.loading]: c && "loading" in t && t.loading,
|
|
940
|
-
[q.stretched]:
|
|
940
|
+
[q.stretched]: x,
|
|
941
941
|
[q.spaceBetween]: E,
|
|
942
942
|
[q.withSubcaption]: !!(u && s === "l" && d),
|
|
943
943
|
[q.iconOnly]: j,
|
|
944
|
-
[q.link]:
|
|
945
|
-
[q.underline]:
|
|
944
|
+
[q.link]: b,
|
|
945
|
+
[q.underline]: b && "showUnderline" in t && t.showUnderline,
|
|
946
946
|
[q.noPaddings]: h && c && !w
|
|
947
947
|
},
|
|
948
948
|
l
|
|
@@ -1039,9 +1039,9 @@ const gr = Q(
|
|
|
1039
1039
|
gr.displayName = "Button.Back";
|
|
1040
1040
|
const le = Object.assign($e, {
|
|
1041
1041
|
Back: gr
|
|
1042
|
-
}),
|
|
1043
|
-
avatar:
|
|
1044
|
-
clickable:
|
|
1042
|
+
}), bo = "_avatar_19ug4_18", xo = "_clickable_19ug4_40", yo = "_icon_19ug4_57", vo = "_disabled_19ug4_62", wo = "_loading_19ug4_67", Co = "_image_19ug4_73", ko = "_name_19ug4_73", Lt = {
|
|
1043
|
+
avatar: bo,
|
|
1044
|
+
clickable: xo,
|
|
1045
1045
|
icon: yo,
|
|
1046
1046
|
disabled: vo,
|
|
1047
1047
|
loading: wo,
|
|
@@ -1137,11 +1137,11 @@ const Mo = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
1137
1137
|
placeholderType: g = "neutral",
|
|
1138
1138
|
name: h,
|
|
1139
1139
|
imgSrc: c,
|
|
1140
|
-
imgAlt:
|
|
1140
|
+
imgAlt: b,
|
|
1141
1141
|
icon: w,
|
|
1142
1142
|
imgProps: u,
|
|
1143
1143
|
colorScheme: f,
|
|
1144
|
-
className:
|
|
1144
|
+
className: x,
|
|
1145
1145
|
"data-testid": _,
|
|
1146
1146
|
...m
|
|
1147
1147
|
} = t, { onClick: p, onPointerDown: y } = m, $ = !a && !i && (!!p || !!y), [C, j] = it(!1);
|
|
@@ -1149,7 +1149,7 @@ const Mo = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
1149
1149
|
c && j(!1);
|
|
1150
1150
|
}, [c]);
|
|
1151
1151
|
const E = c && !C ? "image" : w ? "icon" : h ? "name" : "placeholder", I = f || E === "name" && $o(h) || "gray", M = No(s), z = Io(s, l), D = k(
|
|
1152
|
-
|
|
1152
|
+
x,
|
|
1153
1153
|
Lt.avatar,
|
|
1154
1154
|
Lt[`variant-${d}`],
|
|
1155
1155
|
Lt[`color-${I}`],
|
|
@@ -1164,14 +1164,14 @@ const Mo = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
1164
1164
|
"--avatar-border-radius": `${z}px`,
|
|
1165
1165
|
...n
|
|
1166
1166
|
}, N = {
|
|
1167
|
-
icon: () => /* @__PURE__ */ e.jsx("span", { "data-testid": "avatar-icon", title:
|
|
1167
|
+
icon: () => /* @__PURE__ */ e.jsx("span", { "data-testid": "avatar-icon", title: b || void 0, role: "img", className: Lt.icon, children: w == null ? void 0 : w({}) }),
|
|
1168
1168
|
name: () => /* @__PURE__ */ e.jsx(
|
|
1169
1169
|
"span",
|
|
1170
1170
|
{
|
|
1171
1171
|
role: "textbox",
|
|
1172
1172
|
"data-testid": "avatar-name",
|
|
1173
1173
|
className: Lt.name,
|
|
1174
|
-
title:
|
|
1174
|
+
title: b || void 0,
|
|
1175
1175
|
children: To(h || "")
|
|
1176
1176
|
}
|
|
1177
1177
|
),
|
|
@@ -1182,7 +1182,7 @@ const Mo = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
1182
1182
|
"data-testid": "avatar-placeholder",
|
|
1183
1183
|
className: Lt.image,
|
|
1184
1184
|
src: Po[g],
|
|
1185
|
-
alt:
|
|
1185
|
+
alt: b || void 0
|
|
1186
1186
|
}
|
|
1187
1187
|
),
|
|
1188
1188
|
image: () => /* @__PURE__ */ e.jsx(
|
|
@@ -1192,7 +1192,7 @@ const Mo = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
1192
1192
|
...u,
|
|
1193
1193
|
className: Lt.image,
|
|
1194
1194
|
src: c || void 0,
|
|
1195
|
-
alt:
|
|
1195
|
+
alt: b || void 0,
|
|
1196
1196
|
onLoad: () => j(!1),
|
|
1197
1197
|
onError: (H) => {
|
|
1198
1198
|
var X;
|
|
@@ -1245,7 +1245,7 @@ function Ho() {
|
|
|
1245
1245
|
const [t, r] = it({
|
|
1246
1246
|
width: 0,
|
|
1247
1247
|
height: 0
|
|
1248
|
-
}), n =
|
|
1248
|
+
}), n = bt(() => {
|
|
1249
1249
|
r({ width: window.innerWidth || 0, height: window.innerHeight || 0 });
|
|
1250
1250
|
}, []);
|
|
1251
1251
|
return tr("resize", n, er), tr("orientationchange", n, er), G(n, []), t;
|
|
@@ -1263,22 +1263,22 @@ const Vo = 2, Xo = (t) => {
|
|
|
1263
1263
|
overflowCount: a = 0,
|
|
1264
1264
|
overflowProps: l,
|
|
1265
1265
|
cutoutBackground: d
|
|
1266
|
-
} = t, h = -(n * s) + Vo, { ref: c, bgColor:
|
|
1266
|
+
} = t, h = -(n * s) + Vo, { ref: c, bgColor: b } = Te(), w = d || b || "#ffffff", u = jt(Do.avatarGroup), f = {
|
|
1267
1267
|
"--avatar-cutout-bg": w
|
|
1268
1268
|
};
|
|
1269
1269
|
return r.length === 0 ? null : /* @__PURE__ */ e.jsxs("div", { className: u, ref: c, style: f, children: [
|
|
1270
|
-
r.map((
|
|
1271
|
-
if (
|
|
1272
|
-
const m =
|
|
1270
|
+
r.map((x, _) => {
|
|
1271
|
+
if (x.wrapper) {
|
|
1272
|
+
const m = x.wrapper;
|
|
1273
1273
|
return /* @__PURE__ */ e.jsx(
|
|
1274
1274
|
"div",
|
|
1275
1275
|
{
|
|
1276
1276
|
style: {
|
|
1277
1277
|
marginRight: h
|
|
1278
1278
|
},
|
|
1279
|
-
children: /* @__PURE__ */ e.jsx(m, { children: /* @__PURE__ */ e.jsx(ae, { size: n, shape: i, ...
|
|
1279
|
+
children: /* @__PURE__ */ e.jsx(m, { children: /* @__PURE__ */ e.jsx(ae, { size: n, shape: i, ...x }) })
|
|
1280
1280
|
},
|
|
1281
|
-
ce(
|
|
1281
|
+
ce(x) + _
|
|
1282
1282
|
);
|
|
1283
1283
|
}
|
|
1284
1284
|
return /* @__PURE__ */ e.jsx(
|
|
@@ -1287,9 +1287,9 @@ const Vo = 2, Xo = (t) => {
|
|
|
1287
1287
|
style: {
|
|
1288
1288
|
marginRight: h
|
|
1289
1289
|
},
|
|
1290
|
-
children: /* @__PURE__ */ e.jsx(ae, { size: n, shape: i, ...
|
|
1290
|
+
children: /* @__PURE__ */ e.jsx(ae, { size: n, shape: i, ...x })
|
|
1291
1291
|
},
|
|
1292
|
-
ce(
|
|
1292
|
+
ce(x) + _
|
|
1293
1293
|
);
|
|
1294
1294
|
}),
|
|
1295
1295
|
a > 0 && /* @__PURE__ */ e.jsx("div", { style: { marginRight: h }, children: /* @__PURE__ */ e.jsx(
|
|
@@ -1375,7 +1375,7 @@ function Qo({
|
|
|
1375
1375
|
placement: n = "center",
|
|
1376
1376
|
disableEscapeKey: s = !1
|
|
1377
1377
|
}) {
|
|
1378
|
-
const i =
|
|
1378
|
+
const i = bt(
|
|
1379
1379
|
(f) => {
|
|
1380
1380
|
r == null || r(f);
|
|
1381
1381
|
},
|
|
@@ -1394,10 +1394,10 @@ function Qo({
|
|
|
1394
1394
|
opacity: 0
|
|
1395
1395
|
},
|
|
1396
1396
|
...g
|
|
1397
|
-
}),
|
|
1397
|
+
}), b = Kr(l, {
|
|
1398
1398
|
escapeKey: !s,
|
|
1399
1399
|
outsidePress: !1
|
|
1400
|
-
}), w = Jr(l, { role: "dialog" }), { getFloatingProps: u } = Qr([
|
|
1400
|
+
}), w = Jr(l, { role: "dialog" }), { getFloatingProps: u } = Qr([b, w]);
|
|
1401
1401
|
return ie(
|
|
1402
1402
|
() => ({
|
|
1403
1403
|
/** `isMounted`: Флаг для условного рендеринга с поддержкой анимации закрытия. */
|
|
@@ -1427,16 +1427,16 @@ function ea({
|
|
|
1427
1427
|
onOpenChange: r,
|
|
1428
1428
|
placement: n,
|
|
1429
1429
|
disableEscapeKey: s
|
|
1430
|
-
}), c = gt({ startX: 0, startY: 0, dragging: !1 }), [
|
|
1430
|
+
}), c = gt({ startX: 0, startY: 0, dragging: !1 }), [b, w] = it(0), u = i == null ? void 0 : i.direction, f = (i == null ? void 0 : i.threshold) ?? ta, x = u === "top" || u === "bottom", _ = t && !!u;
|
|
1431
1431
|
G(() => {
|
|
1432
1432
|
t || (c.current.dragging = !1, w(0));
|
|
1433
1433
|
}, [t]);
|
|
1434
|
-
const m =
|
|
1434
|
+
const m = bt(
|
|
1435
1435
|
(C) => {
|
|
1436
1436
|
_ && (c.current.dragging = !0, c.current.startX = C.clientX, c.current.startY = C.clientY, w(0));
|
|
1437
1437
|
},
|
|
1438
1438
|
[_]
|
|
1439
|
-
), p =
|
|
1439
|
+
), p = bt(
|
|
1440
1440
|
(C) => {
|
|
1441
1441
|
if (!c.current.dragging || !_) return;
|
|
1442
1442
|
const j = C.clientX - c.current.startX, E = C.clientY - c.current.startY;
|
|
@@ -1455,12 +1455,12 @@ function ea({
|
|
|
1455
1455
|
I = Math.max(0, -j);
|
|
1456
1456
|
break;
|
|
1457
1457
|
default:
|
|
1458
|
-
I =
|
|
1458
|
+
I = x ? E : j;
|
|
1459
1459
|
}
|
|
1460
1460
|
w(I);
|
|
1461
1461
|
},
|
|
1462
|
-
[_, u,
|
|
1463
|
-
), y =
|
|
1462
|
+
[_, u, x]
|
|
1463
|
+
), y = bt(
|
|
1464
1464
|
(C) => {
|
|
1465
1465
|
var j, E;
|
|
1466
1466
|
if (!(!c.current.dragging || !_)) {
|
|
@@ -1469,22 +1469,22 @@ function ea({
|
|
|
1469
1469
|
(E = (j = C.currentTarget).hasPointerCapture) != null && E.call(j, C.pointerId) && C.currentTarget.releasePointerCapture(C.pointerId);
|
|
1470
1470
|
} catch {
|
|
1471
1471
|
}
|
|
1472
|
-
|
|
1472
|
+
b >= f ? r(!1) : w(0);
|
|
1473
1473
|
}
|
|
1474
1474
|
},
|
|
1475
|
-
[
|
|
1475
|
+
[b, f, r, _]
|
|
1476
1476
|
), S = ie(() => {
|
|
1477
1477
|
if (!_) return l;
|
|
1478
1478
|
if (c.current.dragging) {
|
|
1479
1479
|
const C = { ...l, transitionProperty: "none" };
|
|
1480
|
-
if (
|
|
1481
|
-
const j = u === "left" || u === "top" ? -
|
|
1482
|
-
C.transform =
|
|
1480
|
+
if (b > 0) {
|
|
1481
|
+
const j = u === "left" || u === "top" ? -b : b;
|
|
1482
|
+
C.transform = x ? `translateY(${j}px)` : `translateX(${j}px)`;
|
|
1483
1483
|
}
|
|
1484
1484
|
return C;
|
|
1485
1485
|
}
|
|
1486
1486
|
return l;
|
|
1487
|
-
}, [l,
|
|
1487
|
+
}, [l, b, _, x, u]), $ = bt(
|
|
1488
1488
|
(C) => a(_ ? {
|
|
1489
1489
|
...C,
|
|
1490
1490
|
onPointerDown: m,
|
|
@@ -1517,11 +1517,11 @@ const hr = Q((t, r) => {
|
|
|
1517
1517
|
children: g,
|
|
1518
1518
|
disableOutsideClick: h = !1,
|
|
1519
1519
|
disableEscapeKey: c = !1,
|
|
1520
|
-
disableOverlay:
|
|
1520
|
+
disableOverlay: b = !1,
|
|
1521
1521
|
closeOnDrag: w,
|
|
1522
1522
|
className: u,
|
|
1523
1523
|
style: f,
|
|
1524
|
-
"data-testid":
|
|
1524
|
+
"data-testid": x,
|
|
1525
1525
|
..._
|
|
1526
1526
|
} = t;
|
|
1527
1527
|
s === void 0 && process.env.NODE_ENV !== "production" && console.error(
|
|
@@ -1540,7 +1540,7 @@ const hr = Q((t, r) => {
|
|
|
1540
1540
|
// `FloatingPortal` рендерит диалог в корне `document.body`,
|
|
1541
1541
|
// чтобы избежать проблем с z-index и overflow.
|
|
1542
1542
|
/* @__PURE__ */ e.jsxs(en, { ...l, children: [
|
|
1543
|
-
!
|
|
1543
|
+
!b && /* @__PURE__ */ e.jsx(
|
|
1544
1544
|
rn,
|
|
1545
1545
|
{
|
|
1546
1546
|
onPointerDown: $,
|
|
@@ -1569,7 +1569,7 @@ const hr = Q((t, r) => {
|
|
|
1569
1569
|
role: "dialog",
|
|
1570
1570
|
className: k(u, Ut.container, Ut[`placement-${n}`]),
|
|
1571
1571
|
style: { ...f, ...y },
|
|
1572
|
-
"data-testid":
|
|
1572
|
+
"data-testid": x,
|
|
1573
1573
|
...m.getFloatingProps(_),
|
|
1574
1574
|
children: [
|
|
1575
1575
|
g,
|
|
@@ -1583,7 +1583,7 @@ const hr = Q((t, r) => {
|
|
|
1583
1583
|
),
|
|
1584
1584
|
role: "presentation",
|
|
1585
1585
|
"aria-hidden": "true",
|
|
1586
|
-
"data-testid":
|
|
1586
|
+
"data-testid": x ? `${x}-grabber` : void 0
|
|
1587
1587
|
}
|
|
1588
1588
|
)
|
|
1589
1589
|
]
|
|
@@ -1605,7 +1605,7 @@ const hr = Q((t, r) => {
|
|
|
1605
1605
|
rightActionsStack: la,
|
|
1606
1606
|
content: ca,
|
|
1607
1607
|
footer: da
|
|
1608
|
-
}, ua = "_typography_zt7xg_1", _a = "_disabled_zt7xg_8", pa = "_primary_zt7xg_13", fa = "_secondary_zt7xg_18", ga = "_tertiary_zt7xg_23", ha = "_accent_zt7xg_28", ma = "_positive_zt7xg_38",
|
|
1608
|
+
}, ua = "_typography_zt7xg_1", _a = "_disabled_zt7xg_8", pa = "_primary_zt7xg_13", fa = "_secondary_zt7xg_18", ga = "_tertiary_zt7xg_23", ha = "_accent_zt7xg_28", ma = "_positive_zt7xg_38", ba = "_negative_zt7xg_48", xa = "_warning_zt7xg_58", ya = "_special_zt7xg_68", va = "_contrast_zt7xg_78", Ht = {
|
|
1609
1609
|
typography: ua,
|
|
1610
1610
|
disabled: _a,
|
|
1611
1611
|
primary: pa,
|
|
@@ -1615,9 +1615,9 @@ const hr = Q((t, r) => {
|
|
|
1615
1615
|
"accent-secondary": "_accent-secondary_zt7xg_33",
|
|
1616
1616
|
positive: ma,
|
|
1617
1617
|
"positive-secondary": "_positive-secondary_zt7xg_43",
|
|
1618
|
-
negative:
|
|
1618
|
+
negative: ba,
|
|
1619
1619
|
"negative-secondary": "_negative-secondary_zt7xg_53",
|
|
1620
|
-
warning:
|
|
1620
|
+
warning: xa,
|
|
1621
1621
|
"warning-secondary": "_warning-secondary_zt7xg_63",
|
|
1622
1622
|
special: ya,
|
|
1623
1623
|
"special-secondary": "_special-secondary_zt7xg_73",
|
|
@@ -1641,7 +1641,7 @@ const hr = Q((t, r) => {
|
|
|
1641
1641
|
disabled: g = !1,
|
|
1642
1642
|
typographyStyle: h = "primary",
|
|
1643
1643
|
...c
|
|
1644
|
-
},
|
|
1644
|
+
}, b) => {
|
|
1645
1645
|
const w = l || wa[n], u = k(
|
|
1646
1646
|
Ht.typography,
|
|
1647
1647
|
rt[`typography-${t}-${n}-${d}`],
|
|
@@ -1651,7 +1651,7 @@ const hr = Q((t, r) => {
|
|
|
1651
1651
|
},
|
|
1652
1652
|
i
|
|
1653
1653
|
);
|
|
1654
|
-
return s ? /* @__PURE__ */ e.jsx(w, { ref:
|
|
1654
|
+
return s ? /* @__PURE__ */ e.jsx(w, { ref: b, className: u, "data-testid": a, ...c, children: s }) : null;
|
|
1655
1655
|
}
|
|
1656
1656
|
);
|
|
1657
1657
|
return r.displayName = `Typography.${t === "title" ? "Title" : "Subtitle"}`, r;
|
|
@@ -1667,7 +1667,7 @@ const hr = Q((t, r) => {
|
|
|
1667
1667
|
disabled: g = !1,
|
|
1668
1668
|
typographyStyle: h = "primary",
|
|
1669
1669
|
...c
|
|
1670
|
-
},
|
|
1670
|
+
}, b) => {
|
|
1671
1671
|
const w = l, u = k(
|
|
1672
1672
|
Ht.typography,
|
|
1673
1673
|
rt[`typography-${t}-${n}-${d}`],
|
|
@@ -1680,7 +1680,7 @@ const hr = Q((t, r) => {
|
|
|
1680
1680
|
return s ? /* @__PURE__ */ e.jsx(
|
|
1681
1681
|
w,
|
|
1682
1682
|
{
|
|
1683
|
-
ref:
|
|
1683
|
+
ref: b,
|
|
1684
1684
|
className: u,
|
|
1685
1685
|
"data-testid": a,
|
|
1686
1686
|
...c,
|
|
@@ -1756,17 +1756,17 @@ const hr = Q((t, r) => {
|
|
|
1756
1756
|
closeButton: g = { show: !0 },
|
|
1757
1757
|
backButton: h = { show: !1 },
|
|
1758
1758
|
title: c,
|
|
1759
|
-
subTitle:
|
|
1759
|
+
subTitle: b,
|
|
1760
1760
|
children: w,
|
|
1761
1761
|
footer: u,
|
|
1762
1762
|
hideHeaderDivider: f = !1,
|
|
1763
|
-
hideFooterDivider:
|
|
1763
|
+
hideFooterDivider: x = !1,
|
|
1764
1764
|
classNames: _,
|
|
1765
1765
|
styles: m,
|
|
1766
1766
|
headerTemplate: p,
|
|
1767
1767
|
"data-testid": y,
|
|
1768
1768
|
...S
|
|
1769
|
-
} = t, $ = a === "bottom-sheet" ? "actions-title-actions" : "title-actions-actions", C = a === "bottom-sheet" ? { direction: "bottom", threshold: 80 } : t == null ? void 0 : t.closeOnDrag, j = () => s(!1), E = !!(c ||
|
|
1769
|
+
} = t, $ = a === "bottom-sheet" ? "actions-title-actions" : "title-actions-actions", C = a === "bottom-sheet" ? { direction: "bottom", threshold: 80 } : t == null ? void 0 : t.closeOnDrag, j = () => s(!1), E = !!(c || b || g.show || h.show || l.length || d.length), I = c ? `${y || "modal"}-title` : void 0, M = b ? `${y || "modal"}-subtitle` : void 0;
|
|
1770
1770
|
return /* @__PURE__ */ e.jsx(
|
|
1771
1771
|
hr,
|
|
1772
1772
|
{
|
|
@@ -1842,13 +1842,13 @@ const hr = Q((t, r) => {
|
|
|
1842
1842
|
]
|
|
1843
1843
|
}
|
|
1844
1844
|
),
|
|
1845
|
-
|
|
1845
|
+
b && /* @__PURE__ */ e.jsx(
|
|
1846
1846
|
"div",
|
|
1847
1847
|
{
|
|
1848
1848
|
id: M,
|
|
1849
1849
|
className: k(St.subTitle, _ == null ? void 0 : _.subTitle),
|
|
1850
1850
|
style: m == null ? void 0 : m.subTitle,
|
|
1851
|
-
children: typeof
|
|
1851
|
+
children: typeof b == "string" ? /* @__PURE__ */ e.jsx(Sa, { size: 2, typographyStyle: "secondary", children: b }) : b
|
|
1852
1852
|
}
|
|
1853
1853
|
)
|
|
1854
1854
|
]
|
|
@@ -1869,7 +1869,7 @@ const hr = Q((t, r) => {
|
|
|
1869
1869
|
"div",
|
|
1870
1870
|
{
|
|
1871
1871
|
"data-testid": y ? `${y}-footer` : void 0,
|
|
1872
|
-
className: k(St.footer, !
|
|
1872
|
+
className: k(St.footer, !x && St.withBorder, _ == null ? void 0 : _.footer),
|
|
1873
1873
|
style: m == null ? void 0 : m.footer,
|
|
1874
1874
|
children: u
|
|
1875
1875
|
}
|
|
@@ -2046,7 +2046,7 @@ const Wa = (t) => {
|
|
|
2046
2046
|
variantAvatarProps: g,
|
|
2047
2047
|
"data-testid": h,
|
|
2048
2048
|
styles: c,
|
|
2049
|
-
classNames:
|
|
2049
|
+
classNames: b,
|
|
2050
2050
|
...w
|
|
2051
2051
|
} = t, { icon: u, colorScheme: f } = (ee == null ? void 0 : ee[i]) || ee.info, _ = i === "avatar" ? {
|
|
2052
2052
|
size: 48,
|
|
@@ -2069,7 +2069,7 @@ const Wa = (t) => {
|
|
|
2069
2069
|
onOpenChange: n,
|
|
2070
2070
|
placement: s,
|
|
2071
2071
|
"data-testid": h,
|
|
2072
|
-
className: k(Ma.container,
|
|
2072
|
+
className: k(Ma.container, b == null ? void 0 : b.dialog),
|
|
2073
2073
|
style: c == null ? void 0 : c.dialog,
|
|
2074
2074
|
...w,
|
|
2075
2075
|
children: /* @__PURE__ */ e.jsx(
|
|
@@ -2077,7 +2077,7 @@ const Wa = (t) => {
|
|
|
2077
2077
|
{
|
|
2078
2078
|
title: a,
|
|
2079
2079
|
subTitle: l,
|
|
2080
|
-
classNames:
|
|
2080
|
+
classNames: b,
|
|
2081
2081
|
styles: c,
|
|
2082
2082
|
size: "m",
|
|
2083
2083
|
iconSlot: /* @__PURE__ */ e.jsx(Uo, { ..._ }),
|
|
@@ -2086,44 +2086,44 @@ const Wa = (t) => {
|
|
|
2086
2086
|
)
|
|
2087
2087
|
}
|
|
2088
2088
|
);
|
|
2089
|
-
}, Ha = "
|
|
2089
|
+
}, Ha = "_wrapper_1tbse_5", qa = "_badge__container_1tbse_6", Va = "_badge__content_1tbse_7", Xa = "_interactive_1tbse_20", Ua = "_disabled_1tbse_21", Za = "_icon_1tbse_22", Tt = {
|
|
2090
2090
|
wrapper: Ha,
|
|
2091
2091
|
badge__container: qa,
|
|
2092
2092
|
badge__content: Va,
|
|
2093
2093
|
interactive: Xa,
|
|
2094
2094
|
disabled: Ua,
|
|
2095
2095
|
icon: Za,
|
|
2096
|
-
"variant-filled": "_variant-
|
|
2097
|
-
"color-brand": "_color-
|
|
2098
|
-
"color-red": "_color-
|
|
2099
|
-
"color-orange": "_color-
|
|
2100
|
-
"color-yellow": "_color-
|
|
2101
|
-
"color-green": "_color-
|
|
2102
|
-
"color-blue": "_color-
|
|
2103
|
-
"color-lightblue": "_color-
|
|
2104
|
-
"color-purple": "_color-
|
|
2105
|
-
"color-gray": "_color-
|
|
2106
|
-
"color-contrast": "_color-
|
|
2107
|
-
"variant-light": "_variant-
|
|
2108
|
-
"variant-outline": "_variant-
|
|
2109
|
-
"variant-transparent": "_variant-
|
|
2110
|
-
"position-top-left": "_position-top-
|
|
2111
|
-
"position-top-right": "_position-top-
|
|
2112
|
-
"position-bottom-left": "_position-bottom-
|
|
2113
|
-
"position-bottom-right": "_position-bottom-
|
|
2114
|
-
"position-top-center": "_position-top-
|
|
2115
|
-
"position-bottom-center": "_position-bottom-
|
|
2116
|
-
"position-middle-left": "_position-middle-
|
|
2117
|
-
"position-middle-right": "_position-middle-
|
|
2118
|
-
"position-middle-center": "_position-middle-
|
|
2119
|
-
"position-top-left-inside": "_position-top-left-
|
|
2120
|
-
"position-top-right-inside": "_position-top-right-
|
|
2121
|
-
"position-bottom-left-inside": "_position-bottom-left-
|
|
2122
|
-
"position-bottom-right-inside": "_position-bottom-right-
|
|
2123
|
-
"position-top-center-inside": "_position-top-center-
|
|
2124
|
-
"position-bottom-center-inside": "_position-bottom-center-
|
|
2125
|
-
"position-middle-left-inside": "_position-middle-left-
|
|
2126
|
-
"position-middle-right-inside": "_position-middle-right-
|
|
2096
|
+
"variant-filled": "_variant-filled_1tbse_98",
|
|
2097
|
+
"color-brand": "_color-brand_1tbse_103",
|
|
2098
|
+
"color-red": "_color-red_1tbse_111",
|
|
2099
|
+
"color-orange": "_color-orange_1tbse_119",
|
|
2100
|
+
"color-yellow": "_color-yellow_1tbse_127",
|
|
2101
|
+
"color-green": "_color-green_1tbse_135",
|
|
2102
|
+
"color-blue": "_color-blue_1tbse_143",
|
|
2103
|
+
"color-lightblue": "_color-lightblue_1tbse_151",
|
|
2104
|
+
"color-purple": "_color-purple_1tbse_159",
|
|
2105
|
+
"color-gray": "_color-gray_1tbse_167",
|
|
2106
|
+
"color-contrast": "_color-contrast_1tbse_175",
|
|
2107
|
+
"variant-light": "_variant-light_1tbse_184",
|
|
2108
|
+
"variant-outline": "_variant-outline_1tbse_261",
|
|
2109
|
+
"variant-transparent": "_variant-transparent_1tbse_339",
|
|
2110
|
+
"position-top-left": "_position-top-left_1tbse_410",
|
|
2111
|
+
"position-top-right": "_position-top-right_1tbse_416",
|
|
2112
|
+
"position-bottom-left": "_position-bottom-left_1tbse_422",
|
|
2113
|
+
"position-bottom-right": "_position-bottom-right_1tbse_428",
|
|
2114
|
+
"position-top-center": "_position-top-center_1tbse_434",
|
|
2115
|
+
"position-bottom-center": "_position-bottom-center_1tbse_440",
|
|
2116
|
+
"position-middle-left": "_position-middle-left_1tbse_446",
|
|
2117
|
+
"position-middle-right": "_position-middle-right_1tbse_452",
|
|
2118
|
+
"position-middle-center": "_position-middle-center_1tbse_458",
|
|
2119
|
+
"position-top-left-inside": "_position-top-left-inside_1tbse_465",
|
|
2120
|
+
"position-top-right-inside": "_position-top-right-inside_1tbse_471",
|
|
2121
|
+
"position-bottom-left-inside": "_position-bottom-left-inside_1tbse_477",
|
|
2122
|
+
"position-bottom-right-inside": "_position-bottom-right-inside_1tbse_483",
|
|
2123
|
+
"position-top-center-inside": "_position-top-center-inside_1tbse_489",
|
|
2124
|
+
"position-bottom-center-inside": "_position-bottom-center-inside_1tbse_495",
|
|
2125
|
+
"position-middle-left-inside": "_position-middle-left-inside_1tbse_501",
|
|
2126
|
+
"position-middle-right-inside": "_position-middle-right-inside_1tbse_507"
|
|
2127
2127
|
}, Ya = Q((t, r) => {
|
|
2128
2128
|
const {
|
|
2129
2129
|
icon: n,
|
|
@@ -2135,12 +2135,12 @@ const Wa = (t) => {
|
|
|
2135
2135
|
size: g = 20,
|
|
2136
2136
|
position: h = "top-right",
|
|
2137
2137
|
positionOffset: c = { x: 0, y: 0 },
|
|
2138
|
-
cutoutBackground:
|
|
2138
|
+
cutoutBackground: b,
|
|
2139
2139
|
isDisabled: w,
|
|
2140
2140
|
className: u,
|
|
2141
2141
|
"data-testid": f = "badge",
|
|
2142
|
-
...
|
|
2143
|
-
} = t, { onClick: _, onPointerDown: m } =
|
|
2142
|
+
...x
|
|
2143
|
+
} = t, { onClick: _, onPointerDown: m } = x, { ref: p, bgColor: y } = Te(), S = b || y, C = !w && (!!_ || !!m), j = jt(Tt.badge__container, Tt[`position-${h}`]), E = jt(
|
|
2144
2144
|
u,
|
|
2145
2145
|
Tt.badge__content,
|
|
2146
2146
|
Tt[`color-${d}`],
|
|
@@ -2170,7 +2170,7 @@ const Wa = (t) => {
|
|
|
2170
2170
|
children: /* @__PURE__ */ e.jsx(
|
|
2171
2171
|
"span",
|
|
2172
2172
|
{
|
|
2173
|
-
...
|
|
2173
|
+
...x,
|
|
2174
2174
|
onClick: z,
|
|
2175
2175
|
className: E,
|
|
2176
2176
|
"data-testid": f + "-content",
|
|
@@ -2208,7 +2208,7 @@ const Wa = (t) => {
|
|
|
2208
2208
|
}
|
|
2209
2209
|
)
|
|
2210
2210
|
}
|
|
2211
|
-
),
|
|
2211
|
+
), b2 = Q((t, r) => {
|
|
2212
2212
|
const {
|
|
2213
2213
|
alt: n = "",
|
|
2214
2214
|
loading: s = "lazy",
|
|
@@ -2219,9 +2219,9 @@ const Wa = (t) => {
|
|
|
2219
2219
|
containerProps: g,
|
|
2220
2220
|
"data-testid": h = "image",
|
|
2221
2221
|
onError: c,
|
|
2222
|
-
onLoad:
|
|
2222
|
+
onLoad: b,
|
|
2223
2223
|
...w
|
|
2224
|
-
} = t, { className: u, ...f } = g ?? {}, [
|
|
2224
|
+
} = t, { className: u, ...f } = g ?? {}, [x, _] = it("loading"), m = x === "error", p = (a || x === "loading") && !m, y = x === "loaded" && !a, S = k(
|
|
2225
2225
|
Zt.container,
|
|
2226
2226
|
{ [Zt.loading]: p && !y, [Zt.error]: m && !y },
|
|
2227
2227
|
u
|
|
@@ -2231,12 +2231,12 @@ const Wa = (t) => {
|
|
|
2231
2231
|
[Zt.loading]: p
|
|
2232
2232
|
},
|
|
2233
2233
|
d
|
|
2234
|
-
), C =
|
|
2234
|
+
), C = bt(
|
|
2235
2235
|
(I) => {
|
|
2236
|
-
_("loaded"),
|
|
2236
|
+
_("loaded"), b == null || b(I);
|
|
2237
2237
|
},
|
|
2238
|
-
[
|
|
2239
|
-
), j =
|
|
2238
|
+
[b]
|
|
2239
|
+
), j = bt(
|
|
2240
2240
|
(I) => {
|
|
2241
2241
|
_("error"), c == null || c(I);
|
|
2242
2242
|
},
|
|
@@ -2296,10 +2296,10 @@ const Wa = (t) => {
|
|
|
2296
2296
|
if (!t)
|
|
2297
2297
|
throw new Error("useConfig must be used within a ConfigProvider");
|
|
2298
2298
|
return t;
|
|
2299
|
-
},
|
|
2299
|
+
}, x2 = () => {
|
|
2300
2300
|
const { locale: t } = rs();
|
|
2301
2301
|
return t;
|
|
2302
|
-
}, ns = {}, os = {}, as = {}, ss = {}, is = {}, ls = "_base_1p0qo_50", cs = "_content_1p0qo_54", ds = "_background_1p0qo_58", us = "_button_1p0qo_62", _s = "_link_1p0qo_66", ps = "_input_1p0qo_70", fs = "_suffix_1p0qo_74", gs = "_prefix_1p0qo_78", hs = "_tooltip_1p0qo_82", ms = "_hint_1p0qo_86",
|
|
2302
|
+
}, ns = {}, os = {}, as = {}, ss = {}, is = {}, ls = "_base_1p0qo_50", cs = "_content_1p0qo_54", ds = "_background_1p0qo_58", us = "_button_1p0qo_62", _s = "_link_1p0qo_66", ps = "_input_1p0qo_70", fs = "_suffix_1p0qo_74", gs = "_prefix_1p0qo_78", hs = "_tooltip_1p0qo_82", ms = "_hint_1p0qo_86", bs = "_dropdown_1p0qo_90", xs = "_popover_1p0qo_94", ys = "_modalBackdrop_1p0qo_98", vs = "_modal_1p0qo_98", ws = "_overlay_1p0qo_106", Cs = "_drawer_1p0qo_110", ks = "_notification_1p0qo_114", Ss = "_alert_1p0qo_118", Ls = "_toast_1p0qo_122", js = "_loading_1p0qo_126", $s = "_error_1p0qo_130", Ts = "_critical_1p0qo_134", Es = {
|
|
2303
2303
|
base: ls,
|
|
2304
2304
|
content: cs,
|
|
2305
2305
|
background: ds,
|
|
@@ -2310,8 +2310,8 @@ const Wa = (t) => {
|
|
|
2310
2310
|
prefix: gs,
|
|
2311
2311
|
tooltip: hs,
|
|
2312
2312
|
hint: ms,
|
|
2313
|
-
dropdown:
|
|
2314
|
-
popover:
|
|
2313
|
+
dropdown: bs,
|
|
2314
|
+
popover: xs,
|
|
2315
2315
|
modalBackdrop: ys,
|
|
2316
2316
|
modal: vs,
|
|
2317
2317
|
overlay: ws,
|
|
@@ -2387,10 +2387,10 @@ const Wa = (t) => {
|
|
|
2387
2387
|
slotStart: g,
|
|
2388
2388
|
slotEnd: h,
|
|
2389
2389
|
slotStartWrapperProps: c = {},
|
|
2390
|
-
slotEndWrapperProps:
|
|
2390
|
+
slotEndWrapperProps: b = {},
|
|
2391
2391
|
"data-testid": w,
|
|
2392
2392
|
...u
|
|
2393
|
-
} = t, { className: f, ...
|
|
2393
|
+
} = t, { className: f, ...x } = c, { className: _, ...m } = b;
|
|
2394
2394
|
return /* @__PURE__ */ e.jsxs(
|
|
2395
2395
|
"div",
|
|
2396
2396
|
{
|
|
@@ -2409,7 +2409,7 @@ const Wa = (t) => {
|
|
|
2409
2409
|
ref: r,
|
|
2410
2410
|
...u,
|
|
2411
2411
|
children: [
|
|
2412
|
-
g && /* @__PURE__ */ e.jsx("span", { className: k([Bt.iconWrapper, f]), ...
|
|
2412
|
+
g && /* @__PURE__ */ e.jsx("span", { className: k([Bt.iconWrapper, f]), ...x, children: g }),
|
|
2413
2413
|
d && /* @__PURE__ */ e.jsx("span", { className: k([Bt.label]), children: s }),
|
|
2414
2414
|
h && /* @__PURE__ */ e.jsx("span", { className: k([Bt.iconWrapper, _]), ...m, children: h })
|
|
2415
2415
|
]
|
|
@@ -2510,11 +2510,11 @@ const Wa = (t) => {
|
|
|
2510
2510
|
disabled: g = !1,
|
|
2511
2511
|
containerClassName: h,
|
|
2512
2512
|
className: c,
|
|
2513
|
-
containerStyle:
|
|
2513
|
+
containerStyle: b,
|
|
2514
2514
|
style: w,
|
|
2515
2515
|
children: u,
|
|
2516
2516
|
clickableLabel: f = !0,
|
|
2517
|
-
tabIndex:
|
|
2517
|
+
tabIndex: x,
|
|
2518
2518
|
onChange: _,
|
|
2519
2519
|
onClick: m,
|
|
2520
2520
|
"data-testid": p = "checkbox"
|
|
@@ -2541,14 +2541,14 @@ const Wa = (t) => {
|
|
|
2541
2541
|
{
|
|
2542
2542
|
className: I,
|
|
2543
2543
|
htmlFor: n,
|
|
2544
|
-
style:
|
|
2544
|
+
style: b,
|
|
2545
2545
|
"data-testid": p,
|
|
2546
2546
|
"data-clickable-label": f,
|
|
2547
2547
|
children: [
|
|
2548
2548
|
/* @__PURE__ */ e.jsx("div", { className: It.checkboxWrapper, children: /* @__PURE__ */ e.jsxs(
|
|
2549
2549
|
"div",
|
|
2550
2550
|
{
|
|
2551
|
-
tabIndex:
|
|
2551
|
+
tabIndex: x || 0,
|
|
2552
2552
|
className: M,
|
|
2553
2553
|
style: w,
|
|
2554
2554
|
onKeyDown: D,
|
|
@@ -2602,7 +2602,7 @@ const Wa = (t) => {
|
|
|
2602
2602
|
]
|
|
2603
2603
|
}
|
|
2604
2604
|
);
|
|
2605
|
-
}), ii = "_base_10oxr_1", li = "_content_10oxr_1", ci = "_background_10oxr_1", di = "_button_10oxr_1", ui = "_link_10oxr_1", _i = "_input_10oxr_96", pi = "_suffix_10oxr_1", fi = "_prefix_10oxr_1", gi = "_tooltip_10oxr_1", hi = "_hint_10oxr_794", mi = "_dropdown_10oxr_1",
|
|
2605
|
+
}), ii = "_base_10oxr_1", li = "_content_10oxr_1", ci = "_background_10oxr_1", di = "_button_10oxr_1", ui = "_link_10oxr_1", _i = "_input_10oxr_96", pi = "_suffix_10oxr_1", fi = "_prefix_10oxr_1", gi = "_tooltip_10oxr_1", hi = "_hint_10oxr_794", mi = "_dropdown_10oxr_1", bi = "_popover_10oxr_1", xi = "_modalBackdrop_10oxr_1", yi = "_modal_10oxr_1", vi = "_overlay_10oxr_1", wi = "_drawer_10oxr_1", Ci = "_notification_10oxr_1", ki = "_alert_10oxr_1", Si = "_toast_10oxr_1", Li = "_loading_10oxr_291", ji = "_error_10oxr_252", $i = "_critical_10oxr_1", Ti = "_inputBase_10oxr_96", Ei = "_wrapper_10oxr_106", Ii = "_gripHandle_10oxr_186", Ri = "_tabFocused_10oxr_259", Ni = "_disabled_10oxr_284", Mi = "_label_10oxr_301", Ai = "_S_10oxr_315", Bi = "_M_10oxr_321", Oi = "_XL_10oxr_328", Pi = "_leftSection_10oxr_335", zi = "_rightSection_10oxr_347", Di = "_helper_10oxr_385", Fi = "_floatingLabel_10oxr_415", Wi = "_focused_10oxr_481", Hi = "_filled_10oxr_482", qi = "_L_10oxr_522", Vi = "_characterLimit_10oxr_564", Xi = "_textarea_10oxr_124", Ui = "_truncate_10oxr_707", B = {
|
|
2606
2606
|
base: ii,
|
|
2607
2607
|
content: li,
|
|
2608
2608
|
background: ci,
|
|
@@ -2614,8 +2614,8 @@ const Wa = (t) => {
|
|
|
2614
2614
|
tooltip: gi,
|
|
2615
2615
|
hint: hi,
|
|
2616
2616
|
dropdown: mi,
|
|
2617
|
-
popover:
|
|
2618
|
-
modalBackdrop:
|
|
2617
|
+
popover: bi,
|
|
2618
|
+
modalBackdrop: xi,
|
|
2619
2619
|
modal: yi,
|
|
2620
2620
|
overlay: vi,
|
|
2621
2621
|
drawer: wi,
|
|
@@ -2743,14 +2743,14 @@ const Wa = (t) => {
|
|
|
2743
2743
|
return G(s, [t, r]), G(() => {
|
|
2744
2744
|
r === "hug" && n.current && s();
|
|
2745
2745
|
}, []), { resizeTextArea: s };
|
|
2746
|
-
}, Ki = (t, r, n, s) => ({ handleGripMouseDown:
|
|
2746
|
+
}, Ki = (t, r, n, s) => ({ handleGripMouseDown: bt(
|
|
2747
2747
|
(a) => {
|
|
2748
2748
|
if (!t || r || n || !(s === "fixed" || !s)) return;
|
|
2749
2749
|
a.preventDefault(), a.stopPropagation();
|
|
2750
2750
|
const l = a.currentTarget.closest(`.${B.wrapper}`);
|
|
2751
2751
|
if (!l) return;
|
|
2752
|
-
const d = a.clientY, g = l.clientHeight, h = (
|
|
2753
|
-
const w =
|
|
2752
|
+
const d = a.clientY, g = l.clientHeight, h = (b) => {
|
|
2753
|
+
const w = b.clientY - d, u = Math.min(100, g), f = Math.max(u, g + w);
|
|
2754
2754
|
l.style.height = `${f}px`;
|
|
2755
2755
|
}, c = () => {
|
|
2756
2756
|
document.removeEventListener("mousemove", h), document.removeEventListener("mouseup", c);
|
|
@@ -2771,11 +2771,11 @@ const Wa = (t) => {
|
|
|
2771
2771
|
onChange: g,
|
|
2772
2772
|
onKeyDown: h,
|
|
2773
2773
|
onKeyUp: c,
|
|
2774
|
-
maxLength:
|
|
2774
|
+
maxLength: b,
|
|
2775
2775
|
className: w,
|
|
2776
2776
|
style: u,
|
|
2777
2777
|
truncate: f = !1,
|
|
2778
|
-
shouldShowFloatingLabelClass:
|
|
2778
|
+
shouldShowFloatingLabelClass: x = !1,
|
|
2779
2779
|
"aria-invalid": _,
|
|
2780
2780
|
"aria-errormessage": m,
|
|
2781
2781
|
id: p,
|
|
@@ -2797,11 +2797,11 @@ const Wa = (t) => {
|
|
|
2797
2797
|
onChange: g,
|
|
2798
2798
|
onKeyDown: h,
|
|
2799
2799
|
onKeyUp: c,
|
|
2800
|
-
maxLength:
|
|
2800
|
+
maxLength: b,
|
|
2801
2801
|
className: k(
|
|
2802
2802
|
B.textarea,
|
|
2803
2803
|
B[`size-${r}`],
|
|
2804
|
-
|
|
2804
|
+
x && B["with-floating-label"],
|
|
2805
2805
|
w
|
|
2806
2806
|
),
|
|
2807
2807
|
style: u,
|
|
@@ -2827,11 +2827,11 @@ const Wa = (t) => {
|
|
|
2827
2827
|
onChange: g,
|
|
2828
2828
|
onKeyDown: h,
|
|
2829
2829
|
onKeyUp: c,
|
|
2830
|
-
maxLength:
|
|
2830
|
+
maxLength: b,
|
|
2831
2831
|
className: k(
|
|
2832
2832
|
B.input,
|
|
2833
2833
|
B[`size-${r}`],
|
|
2834
|
-
|
|
2834
|
+
x && B["with-floating-label"],
|
|
2835
2835
|
f && B.truncate,
|
|
2836
2836
|
w
|
|
2837
2837
|
),
|
|
@@ -2848,7 +2848,7 @@ const Wa = (t) => {
|
|
|
2848
2848
|
`[Input] Недопустимое значение prop 'component': "${String(t)}". Допустимые значения: 'input', 'textarea'`
|
|
2849
2849
|
), null;
|
|
2850
2850
|
}
|
|
2851
|
-
),
|
|
2851
|
+
), br = Q(
|
|
2852
2852
|
({
|
|
2853
2853
|
children: t,
|
|
2854
2854
|
size: r = "L",
|
|
@@ -2861,11 +2861,11 @@ const Wa = (t) => {
|
|
|
2861
2861
|
floatingLabelStyles: g,
|
|
2862
2862
|
prefixStyles: h,
|
|
2863
2863
|
suffixStyles: c,
|
|
2864
|
-
labelProps:
|
|
2864
|
+
labelProps: b,
|
|
2865
2865
|
helperProps: w,
|
|
2866
2866
|
showLimit: u = !1,
|
|
2867
2867
|
maxLength: f,
|
|
2868
|
-
hint:
|
|
2868
|
+
hint: x,
|
|
2869
2869
|
showHint: _ = !1,
|
|
2870
2870
|
showHintOnEmpty: m = !1,
|
|
2871
2871
|
prefix: p,
|
|
@@ -2882,7 +2882,7 @@ const Wa = (t) => {
|
|
|
2882
2882
|
showGrip: T = !1,
|
|
2883
2883
|
...N
|
|
2884
2884
|
}, W) => {
|
|
2885
|
-
const H = Le(), X = M || H, Y = _ &&
|
|
2885
|
+
const H = Le(), X = M || H, Y = _ && x && (E || m), P = x && x.length > ar ? x.substring(0, ar) + "..." : x, K = k(
|
|
2886
2886
|
B.wrapper,
|
|
2887
2887
|
B[`size-${r}`],
|
|
2888
2888
|
n && B.error,
|
|
@@ -2925,7 +2925,7 @@ const Wa = (t) => {
|
|
|
2925
2925
|
htmlFor: X,
|
|
2926
2926
|
className: U,
|
|
2927
2927
|
style: g,
|
|
2928
|
-
...
|
|
2928
|
+
...b,
|
|
2929
2929
|
children: $
|
|
2930
2930
|
}
|
|
2931
2931
|
),
|
|
@@ -2973,10 +2973,10 @@ const Wa = (t) => {
|
|
|
2973
2973
|
] });
|
|
2974
2974
|
}
|
|
2975
2975
|
);
|
|
2976
|
-
|
|
2976
|
+
br.displayName = "InputWrapperComponent";
|
|
2977
2977
|
const sr = Object.assign(Ji, {
|
|
2978
|
-
Wrapper:
|
|
2979
|
-
}),
|
|
2978
|
+
Wrapper: br
|
|
2979
|
+
}), xr = Q(
|
|
2980
2980
|
({
|
|
2981
2981
|
component: t = "input",
|
|
2982
2982
|
size: r = "L",
|
|
@@ -2989,11 +2989,11 @@ const sr = Object.assign(Ji, {
|
|
|
2989
2989
|
labelClassName: g,
|
|
2990
2990
|
helper: h,
|
|
2991
2991
|
prefix: c,
|
|
2992
|
-
suffix:
|
|
2992
|
+
suffix: b,
|
|
2993
2993
|
id: w,
|
|
2994
2994
|
onFocus: u,
|
|
2995
2995
|
onBlur: f,
|
|
2996
|
-
onKeyDown:
|
|
2996
|
+
onKeyDown: x,
|
|
2997
2997
|
onSuffixClick: _,
|
|
2998
2998
|
onChange: m,
|
|
2999
2999
|
value: p = "",
|
|
@@ -3016,7 +3016,7 @@ const sr = Object.assign(Ji, {
|
|
|
3016
3016
|
showGrip: P = !1,
|
|
3017
3017
|
...K
|
|
3018
3018
|
}, U) => {
|
|
3019
|
-
const tt = Le(), ct = w || tt, [$t, Ct] = it(p), dt = p !== void 0 ? p : $t, Nt = (dt || "").length > 0, ht = dt || "", Pt = d && (r === "XL" || t === "textarea") && !c, de =
|
|
3019
|
+
const tt = Le(), ct = w || tt, [$t, Ct] = it(p), dt = p !== void 0 ? p : $t, Nt = (dt || "").length > 0, ht = dt || "", Pt = d && (r === "XL" || t === "textarea") && !c, de = bt(
|
|
3020
3020
|
(ot) => {
|
|
3021
3021
|
var at;
|
|
3022
3022
|
i || a || (u == null || u(), (at = T == null ? void 0 : T.onFocus) == null || at.call(
|
|
@@ -3025,7 +3025,7 @@ const sr = Object.assign(Ji, {
|
|
|
3025
3025
|
));
|
|
3026
3026
|
},
|
|
3027
3027
|
[u, T, i, a]
|
|
3028
|
-
), Jt =
|
|
3028
|
+
), Jt = bt(
|
|
3029
3029
|
(ot) => {
|
|
3030
3030
|
var at;
|
|
3031
3031
|
if (ot.key === "Tab") {
|
|
@@ -3038,7 +3038,7 @@ const sr = Object.assign(Ji, {
|
|
|
3038
3038
|
);
|
|
3039
3039
|
},
|
|
3040
3040
|
[T]
|
|
3041
|
-
), ue =
|
|
3041
|
+
), ue = bt(
|
|
3042
3042
|
(ot) => {
|
|
3043
3043
|
var kt;
|
|
3044
3044
|
const at = ot.target.closest(`.${B.wrapper}`);
|
|
@@ -3048,7 +3048,7 @@ const sr = Object.assign(Ji, {
|
|
|
3048
3048
|
);
|
|
3049
3049
|
},
|
|
3050
3050
|
[f, T]
|
|
3051
|
-
), _e =
|
|
3051
|
+
), _e = bt(
|
|
3052
3052
|
(ot) => {
|
|
3053
3053
|
var kt;
|
|
3054
3054
|
if (i || a) return;
|
|
@@ -3084,7 +3084,7 @@ const sr = Object.assign(Ji, {
|
|
|
3084
3084
|
showHint: W,
|
|
3085
3085
|
showHintOnEmpty: H,
|
|
3086
3086
|
prefix: c,
|
|
3087
|
-
suffix:
|
|
3087
|
+
suffix: b,
|
|
3088
3088
|
onSuffixClick: _,
|
|
3089
3089
|
placeholder: l,
|
|
3090
3090
|
showLabel: d,
|
|
@@ -3108,7 +3108,7 @@ const sr = Object.assign(Ji, {
|
|
|
3108
3108
|
onFocus: de,
|
|
3109
3109
|
onBlur: ue,
|
|
3110
3110
|
onChange: _e,
|
|
3111
|
-
onKeyDown:
|
|
3111
|
+
onKeyDown: x,
|
|
3112
3112
|
onKeyUp: Jt,
|
|
3113
3113
|
maxLength: D,
|
|
3114
3114
|
truncate: X,
|
|
@@ -3295,11 +3295,11 @@ const sr = Object.assign(Ji, {
|
|
|
3295
3295
|
size: g = Z.L,
|
|
3296
3296
|
inputProps: h,
|
|
3297
3297
|
error: c,
|
|
3298
|
-
disabled:
|
|
3298
|
+
disabled: b,
|
|
3299
3299
|
loading: w,
|
|
3300
3300
|
helper: u,
|
|
3301
3301
|
prefix: f,
|
|
3302
|
-
suffix:
|
|
3302
|
+
suffix: x,
|
|
3303
3303
|
clearable: _ = !1,
|
|
3304
3304
|
id: m,
|
|
3305
3305
|
showLabel: p = !0,
|
|
@@ -3317,7 +3317,7 @@ const sr = Object.assign(Ji, {
|
|
|
3317
3317
|
helperProps: N,
|
|
3318
3318
|
...W
|
|
3319
3319
|
}, H) => {
|
|
3320
|
-
const X = (t || "").length > 0, Y = g === Z.XL, P = !!f, K = Y && p && !f, U = _ && X && !(
|
|
3320
|
+
const X = (t || "").length > 0, Y = g === Z.XL, P = !!f, K = Y && p && !f, U = _ && X && !(b || w), tt = () => {
|
|
3321
3321
|
r == null || r(""), C == null || C();
|
|
3322
3322
|
}, ct = () => {
|
|
3323
3323
|
U && tt(), $ == null || $();
|
|
@@ -3329,7 +3329,7 @@ const sr = Object.assign(Ji, {
|
|
|
3329
3329
|
style: { cursor: "pointer" },
|
|
3330
3330
|
"data-testid": "x-icon"
|
|
3331
3331
|
}
|
|
3332
|
-
) :
|
|
3332
|
+
) : x, Ct = {
|
|
3333
3333
|
type: n,
|
|
3334
3334
|
minLength: a,
|
|
3335
3335
|
autoComplete: l,
|
|
@@ -3337,11 +3337,11 @@ const sr = Object.assign(Ji, {
|
|
|
3337
3337
|
...h
|
|
3338
3338
|
}, dt = il(g, K, X, P);
|
|
3339
3339
|
return /* @__PURE__ */ e.jsx(
|
|
3340
|
-
|
|
3340
|
+
xr,
|
|
3341
3341
|
{
|
|
3342
3342
|
size: g,
|
|
3343
3343
|
error: c,
|
|
3344
|
-
disabled:
|
|
3344
|
+
disabled: b || w,
|
|
3345
3345
|
loading: w,
|
|
3346
3346
|
helper: u,
|
|
3347
3347
|
prefix: f,
|
|
@@ -3373,7 +3373,7 @@ const sr = Object.assign(Ji, {
|
|
|
3373
3373
|
}
|
|
3374
3374
|
);
|
|
3375
3375
|
}
|
|
3376
|
-
),
|
|
3376
|
+
), xt = {
|
|
3377
3377
|
M: "M",
|
|
3378
3378
|
L: "L"
|
|
3379
3379
|
}, se = {
|
|
@@ -3385,7 +3385,7 @@ const sr = Object.assign(Ji, {
|
|
|
3385
3385
|
}, ne = {
|
|
3386
3386
|
FILL: "fill",
|
|
3387
3387
|
FIXED: "fixed"
|
|
3388
|
-
},
|
|
3388
|
+
}, xe = {
|
|
3389
3389
|
M: "112px",
|
|
3390
3390
|
L: "56px"
|
|
3391
3391
|
}, Wt = {
|
|
@@ -3401,18 +3401,18 @@ const sr = Object.assign(Ji, {
|
|
|
3401
3401
|
L: 56,
|
|
3402
3402
|
XL: 112
|
|
3403
3403
|
}, cl = (t, r) => {
|
|
3404
|
-
if (t ===
|
|
3405
|
-
return
|
|
3404
|
+
if (t === xt.M)
|
|
3405
|
+
return xe.M;
|
|
3406
3406
|
if (r)
|
|
3407
3407
|
return `${r}px`;
|
|
3408
3408
|
switch (t) {
|
|
3409
|
-
case
|
|
3410
|
-
return
|
|
3409
|
+
case xt.L:
|
|
3410
|
+
return xe.L;
|
|
3411
3411
|
default:
|
|
3412
|
-
return
|
|
3412
|
+
return xe.L;
|
|
3413
3413
|
}
|
|
3414
3414
|
}, dl = (t, r) => {
|
|
3415
|
-
if (t ===
|
|
3415
|
+
if (t === xt.M)
|
|
3416
3416
|
return Wt.M;
|
|
3417
3417
|
if (r)
|
|
3418
3418
|
switch (r) {
|
|
@@ -3425,13 +3425,13 @@ const sr = Object.assign(Ji, {
|
|
|
3425
3425
|
return Wt.L;
|
|
3426
3426
|
}
|
|
3427
3427
|
switch (t) {
|
|
3428
|
-
case
|
|
3428
|
+
case xt.L:
|
|
3429
3429
|
return Wt.L;
|
|
3430
3430
|
default:
|
|
3431
3431
|
return Wt.L;
|
|
3432
3432
|
}
|
|
3433
3433
|
}, ul = (t, r, n) => {
|
|
3434
|
-
if (t ===
|
|
3434
|
+
if (t === xt.M)
|
|
3435
3435
|
return Et.M;
|
|
3436
3436
|
if (r)
|
|
3437
3437
|
switch (r) {
|
|
@@ -3445,13 +3445,13 @@ const sr = Object.assign(Ji, {
|
|
|
3445
3445
|
return Et.L;
|
|
3446
3446
|
}
|
|
3447
3447
|
switch (t) {
|
|
3448
|
-
case
|
|
3448
|
+
case xt.L:
|
|
3449
3449
|
return n ? Et.L_FLOATING_LABEL : Et.L;
|
|
3450
3450
|
default:
|
|
3451
3451
|
return Et.L;
|
|
3452
3452
|
}
|
|
3453
3453
|
}, _l = (t, r) => {
|
|
3454
|
-
if (t ===
|
|
3454
|
+
if (t === xt.M)
|
|
3455
3455
|
return "M";
|
|
3456
3456
|
if (r)
|
|
3457
3457
|
switch (r) {
|
|
@@ -3478,13 +3478,13 @@ const sr = Object.assign(Ji, {
|
|
|
3478
3478
|
padding: l
|
|
3479
3479
|
},
|
|
3480
3480
|
floatingLabelStyles: {
|
|
3481
|
-
left: t ===
|
|
3481
|
+
left: t === xt.M ? se.M : se.L,
|
|
3482
3482
|
transformOrigin: "left top",
|
|
3483
|
-
top: r === 112 && n && t ===
|
|
3483
|
+
top: r === 112 && n && t === xt.L ? se.L : void 0
|
|
3484
3484
|
},
|
|
3485
3485
|
suffixStyles: {
|
|
3486
3486
|
right: fl(t),
|
|
3487
|
-
top: r === 48 && t ===
|
|
3487
|
+
top: r === 48 && t === xt.L ? "11px" : void 0,
|
|
3488
3488
|
boxSizing: "border-box"
|
|
3489
3489
|
},
|
|
3490
3490
|
textareaStyles: {
|
|
@@ -3503,16 +3503,16 @@ const sr = Object.assign(Ji, {
|
|
|
3503
3503
|
maxLength: s,
|
|
3504
3504
|
minLength: i,
|
|
3505
3505
|
autoFocus: a,
|
|
3506
|
-
size: l =
|
|
3506
|
+
size: l = xt.L,
|
|
3507
3507
|
textareaProps: d,
|
|
3508
3508
|
error: g,
|
|
3509
3509
|
disabled: h,
|
|
3510
3510
|
loading: c,
|
|
3511
|
-
helper:
|
|
3511
|
+
helper: b,
|
|
3512
3512
|
suffix: w,
|
|
3513
3513
|
clearable: u = !1,
|
|
3514
3514
|
id: f,
|
|
3515
|
-
showLabel:
|
|
3515
|
+
showLabel: x = !0,
|
|
3516
3516
|
onFocus: _,
|
|
3517
3517
|
onBlur: m,
|
|
3518
3518
|
onClear: p,
|
|
@@ -3528,7 +3528,7 @@ const sr = Object.assign(Ji, {
|
|
|
3528
3528
|
resize: D,
|
|
3529
3529
|
...T
|
|
3530
3530
|
}, N) => {
|
|
3531
|
-
const W = (t || "").length > 0, H =
|
|
3531
|
+
const W = (t || "").length > 0, H = x && !!n && (l === xt.M || z !== 48), X = u && W && !(h || c), Y = () => {
|
|
3532
3532
|
r == null || r(""), p == null || p();
|
|
3533
3533
|
}, P = () => {
|
|
3534
3534
|
X && Y();
|
|
@@ -3548,7 +3548,7 @@ const sr = Object.assign(Ji, {
|
|
|
3548
3548
|
...d
|
|
3549
3549
|
};
|
|
3550
3550
|
return /* @__PURE__ */ e.jsx(
|
|
3551
|
-
|
|
3551
|
+
xr,
|
|
3552
3552
|
{
|
|
3553
3553
|
ref: N,
|
|
3554
3554
|
component: "textarea",
|
|
@@ -3557,7 +3557,7 @@ const sr = Object.assign(Ji, {
|
|
|
3557
3557
|
disabled: h || c,
|
|
3558
3558
|
loading: c,
|
|
3559
3559
|
onSuffixClick: P,
|
|
3560
|
-
helper:
|
|
3560
|
+
helper: b,
|
|
3561
3561
|
suffix: K,
|
|
3562
3562
|
id: f,
|
|
3563
3563
|
showLabel: H,
|
|
@@ -3576,7 +3576,7 @@ const sr = Object.assign(Ji, {
|
|
|
3576
3576
|
wrapperProps: j,
|
|
3577
3577
|
labelProps: E,
|
|
3578
3578
|
helperProps: I,
|
|
3579
|
-
showLimit: C && (z === 112 || l ===
|
|
3579
|
+
showLimit: C && (z === 112 || l === xt.M),
|
|
3580
3580
|
maxLength: s,
|
|
3581
3581
|
inputProps: ct,
|
|
3582
3582
|
resize: D,
|
|
@@ -3616,10 +3616,10 @@ const sr = Object.assign(Ji, {
|
|
|
3616
3616
|
children: /* @__PURE__ */ e.jsx("p", { children: c })
|
|
3617
3617
|
}
|
|
3618
3618
|
);
|
|
3619
|
-
},
|
|
3619
|
+
}, bl = "_radio_1n8zx_59", xl = "_checked_1n8zx_80", yl = "_error_1n8zx_85", vl = "_disabled_1n8zx_94", wl = "_icon_1n8zx_130", Cl = "_small_1n8zx_138", kl = "_medium_1n8zx_145", Sl = "_large_1n8zx_152", Ll = "_label_1n8zx_159", jl = "_container_1n8zx_185", $l = "_input_1n8zx_198", Tl = "_card_1n8zx_205", El = "_smallCard_1n8zx_211", Il = "_mediumCard_1n8zx_215", Rl = "_largeCard_1n8zx_219", mt = {
|
|
3620
3620
|
default: "_default_1n8zx_53",
|
|
3621
|
-
radio:
|
|
3622
|
-
checked:
|
|
3621
|
+
radio: bl,
|
|
3622
|
+
checked: xl,
|
|
3623
3623
|
error: yl,
|
|
3624
3624
|
disabled: vl,
|
|
3625
3625
|
icon: wl,
|
|
@@ -3645,11 +3645,11 @@ const sr = Object.assign(Ji, {
|
|
|
3645
3645
|
disabled: g = !1,
|
|
3646
3646
|
checked: h = !1,
|
|
3647
3647
|
containerClassName: c,
|
|
3648
|
-
className:
|
|
3648
|
+
className: b,
|
|
3649
3649
|
children: w,
|
|
3650
3650
|
clickable: u = "all",
|
|
3651
3651
|
mode: f = "default",
|
|
3652
|
-
tabIndex:
|
|
3652
|
+
tabIndex: x,
|
|
3653
3653
|
style: _,
|
|
3654
3654
|
containerStyle: m,
|
|
3655
3655
|
onChange: p,
|
|
@@ -3670,10 +3670,10 @@ const sr = Object.assign(Ji, {
|
|
|
3670
3670
|
[mt.disabled]: C,
|
|
3671
3671
|
[mt.error]: $ && !C
|
|
3672
3672
|
},
|
|
3673
|
-
|
|
3673
|
+
b
|
|
3674
3674
|
),
|
|
3675
3675
|
style: _,
|
|
3676
|
-
tabIndex:
|
|
3676
|
+
tabIndex: x || 1,
|
|
3677
3677
|
"data-testid": `${Nl}${M}`,
|
|
3678
3678
|
children: [
|
|
3679
3679
|
/* @__PURE__ */ e.jsx(
|
|
@@ -3747,7 +3747,7 @@ const sr = Object.assign(Ji, {
|
|
|
3747
3747
|
disabled: g = !1,
|
|
3748
3748
|
layout: h = "vertical",
|
|
3749
3749
|
"data-testid": c,
|
|
3750
|
-
...
|
|
3750
|
+
...b
|
|
3751
3751
|
} = t;
|
|
3752
3752
|
return /* @__PURE__ */ e.jsx(
|
|
3753
3753
|
"div",
|
|
@@ -3757,21 +3757,21 @@ const sr = Object.assign(Ji, {
|
|
|
3757
3757
|
id: n,
|
|
3758
3758
|
ref: r,
|
|
3759
3759
|
children: a.map(({ label: w, value: u, disabled: f }) => {
|
|
3760
|
-
const
|
|
3760
|
+
const x = `${s}-${String(u)}`, _ = String(u) === String(i);
|
|
3761
3761
|
return /* @__PURE__ */ e.jsx(
|
|
3762
3762
|
yr,
|
|
3763
3763
|
{
|
|
3764
|
-
id:
|
|
3764
|
+
id: x,
|
|
3765
3765
|
checked: _,
|
|
3766
|
-
"data-testid":
|
|
3766
|
+
"data-testid": x,
|
|
3767
3767
|
disabled: g || f,
|
|
3768
3768
|
name: s,
|
|
3769
3769
|
value: u,
|
|
3770
3770
|
className: d,
|
|
3771
|
-
...
|
|
3771
|
+
...b,
|
|
3772
3772
|
children: w
|
|
3773
3773
|
},
|
|
3774
|
-
|
|
3774
|
+
x
|
|
3775
3775
|
);
|
|
3776
3776
|
})
|
|
3777
3777
|
}
|
|
@@ -3831,7 +3831,7 @@ const sr = Object.assign(Ji, {
|
|
|
3831
3831
|
className: n,
|
|
3832
3832
|
size: s
|
|
3833
3833
|
}) => {
|
|
3834
|
-
const i = gt(null), [a, l] = it(!1), [d, g] = it(!1), { ref: h, bgColor: c } = Te(),
|
|
3834
|
+
const i = gt(null), [a, l] = it(!1), [d, g] = it(!1), { ref: h, bgColor: c } = Te(), b = h ?? { current: null }, w = c ?? ac, u = r && a, f = r && d, x = ({ direction: p }) => /* @__PURE__ */ e.jsx(
|
|
3835
3835
|
"svg",
|
|
3836
3836
|
{
|
|
3837
3837
|
height: "12px",
|
|
@@ -3871,7 +3871,7 @@ const sr = Object.assign(Ji, {
|
|
|
3871
3871
|
return p.addEventListener("scroll", _, { passive: !0 }), window.addEventListener("resize", _), () => {
|
|
3872
3872
|
p.removeEventListener("scroll", _), window.removeEventListener("resize", _);
|
|
3873
3873
|
};
|
|
3874
|
-
}, []), /* @__PURE__ */ e.jsxs("div", { ref:
|
|
3874
|
+
}, []), /* @__PURE__ */ e.jsxs("div", { ref: b, className: k(_t.wrapper, n), children: [
|
|
3875
3875
|
u && /* @__PURE__ */ e.jsx(
|
|
3876
3876
|
"div",
|
|
3877
3877
|
{
|
|
@@ -3899,7 +3899,7 @@ const sr = Object.assign(Ji, {
|
|
|
3899
3899
|
"aria-hidden": "true",
|
|
3900
3900
|
className: k(_t.control, _t.left, _t[s]),
|
|
3901
3901
|
onClick: () => m("left"),
|
|
3902
|
-
children: /* @__PURE__ */ e.jsx(
|
|
3902
|
+
children: /* @__PURE__ */ e.jsx(x, { direction: "left" })
|
|
3903
3903
|
}
|
|
3904
3904
|
),
|
|
3905
3905
|
f && /* @__PURE__ */ e.jsx(
|
|
@@ -3910,11 +3910,11 @@ const sr = Object.assign(Ji, {
|
|
|
3910
3910
|
"aria-hidden": "true",
|
|
3911
3911
|
className: k(_t.control, _t.right, _t[s]),
|
|
3912
3912
|
onClick: () => m("right"),
|
|
3913
|
-
children: /* @__PURE__ */ e.jsx(
|
|
3913
|
+
children: /* @__PURE__ */ e.jsx(x, { direction: "right" })
|
|
3914
3914
|
}
|
|
3915
3915
|
)
|
|
3916
3916
|
] });
|
|
3917
|
-
}, ic = "_tabBar_1ndpm_82", lc = "_primary_1ndpm_88", cc = "_secondary_1ndpm_93", dc = "_tab_1ndpm_82", uc = "_md_1ndpm_125", _c = "_sm_1ndpm_129", pc = "_xs_1ndpm_133", fc = "_disabled_1ndpm_137", gc = "_selected_1ndpm_143", hc = "_tabLabel_1ndpm_222", mc = "_tabPrefix_1ndpm_234",
|
|
3917
|
+
}, ic = "_tabBar_1ndpm_82", lc = "_primary_1ndpm_88", cc = "_secondary_1ndpm_93", dc = "_tab_1ndpm_82", uc = "_md_1ndpm_125", _c = "_sm_1ndpm_129", pc = "_xs_1ndpm_133", fc = "_disabled_1ndpm_137", gc = "_selected_1ndpm_143", hc = "_tabLabel_1ndpm_222", mc = "_tabPrefix_1ndpm_234", bc = "_tabPostfix_1ndpm_270", st = {
|
|
3918
3918
|
tabBar: ic,
|
|
3919
3919
|
primary: lc,
|
|
3920
3920
|
secondary: cc,
|
|
@@ -3926,8 +3926,8 @@ const sr = Object.assign(Ji, {
|
|
|
3926
3926
|
selected: gc,
|
|
3927
3927
|
tabLabel: hc,
|
|
3928
3928
|
tabPrefix: mc,
|
|
3929
|
-
tabPostfix:
|
|
3930
|
-
},
|
|
3929
|
+
tabPostfix: bc
|
|
3930
|
+
}, xc = "md", yc = !1, vc = 8, wc = "top-right-inside", vr = ke(null), wr = () => {
|
|
3931
3931
|
const t = Se(vr);
|
|
3932
3932
|
if (!t) throw new Error("useTabs должен использоваться внутри TabsProvider");
|
|
3933
3933
|
return t;
|
|
@@ -3955,10 +3955,10 @@ const sr = Object.assign(Ji, {
|
|
|
3955
3955
|
value: g,
|
|
3956
3956
|
label: h,
|
|
3957
3957
|
prefix: c,
|
|
3958
|
-
prefixWrapperProps:
|
|
3958
|
+
prefixWrapperProps: b = {},
|
|
3959
3959
|
postfix: w,
|
|
3960
3960
|
postfixWrapperProps: u = {}
|
|
3961
|
-
} = r, { className: f, ...
|
|
3961
|
+
} = r, { className: f, ...x } = b, { className: _, ...m } = u, p = {
|
|
3962
3962
|
primary: rt["typography-label-3-medium"],
|
|
3963
3963
|
secondary: rt["typography-label-3-regular"],
|
|
3964
3964
|
prefix: rt["typography-label-3-medium"],
|
|
@@ -4006,7 +4006,7 @@ const sr = Object.assign(Ji, {
|
|
|
4006
4006
|
"span",
|
|
4007
4007
|
{
|
|
4008
4008
|
className: $,
|
|
4009
|
-
...
|
|
4009
|
+
...x,
|
|
4010
4010
|
"data-testid": `tab-prefix-${g}`,
|
|
4011
4011
|
children: c
|
|
4012
4012
|
}
|
|
@@ -4028,7 +4028,7 @@ const sr = Object.assign(Ji, {
|
|
|
4028
4028
|
}, Sc = ({
|
|
4029
4029
|
mode: t,
|
|
4030
4030
|
items: r,
|
|
4031
|
-
size: n =
|
|
4031
|
+
size: n = xc,
|
|
4032
4032
|
isAllItemsDisabled: s = yc
|
|
4033
4033
|
}) => {
|
|
4034
4034
|
const { activeTab: i, setTab: a } = wr(), l = qo();
|
|
@@ -4274,7 +4274,7 @@ const sr = Object.assign(Ji, {
|
|
|
4274
4274
|
buttonProps: g,
|
|
4275
4275
|
showClose: h
|
|
4276
4276
|
}) => {
|
|
4277
|
-
const c = ["neutral", "accent"].includes(s) ? "contrast" : "primary",
|
|
4277
|
+
const c = ["neutral", "accent"].includes(s) ? "contrast" : "primary", b = i === "m", w = !!(r && b), u = !!(n && b), f = d && !!d.length, x = !!(h && b) || !h && b && !f, _ = i === "xs" ? 4 : 3;
|
|
4278
4278
|
return /* @__PURE__ */ e.jsxs("div", { className: ft.content, children: [
|
|
4279
4279
|
u && /* @__PURE__ */ e.jsx("div", { className: k(ft.mediaWrapper, a.mediaWrapper), children: n }),
|
|
4280
4280
|
/* @__PURE__ */ e.jsxs("div", { className: a.textWrapper, children: [
|
|
@@ -4298,7 +4298,7 @@ const sr = Object.assign(Ji, {
|
|
|
4298
4298
|
}
|
|
4299
4299
|
)
|
|
4300
4300
|
] }),
|
|
4301
|
-
|
|
4301
|
+
x && /* @__PURE__ */ e.jsx(
|
|
4302
4302
|
"button",
|
|
4303
4303
|
{
|
|
4304
4304
|
type: "button",
|
|
@@ -4311,7 +4311,7 @@ const sr = Object.assign(Ji, {
|
|
|
4311
4311
|
children: /* @__PURE__ */ e.jsx(qc, {})
|
|
4312
4312
|
}
|
|
4313
4313
|
),
|
|
4314
|
-
|
|
4314
|
+
b && f && /* @__PURE__ */ e.jsx("div", { className: ft.buttonStack, children: d.map((m, p) => {
|
|
4315
4315
|
const y = Gc(p, d.length, s), S = Yc(m, y, g), { closeOnClick: $, ...C } = S, j = (E) => {
|
|
4316
4316
|
var I;
|
|
4317
4317
|
(I = C.onClick) == null || I.call(C, E), $ && (l == null || l());
|
|
@@ -4331,11 +4331,11 @@ const sr = Object.assign(Ji, {
|
|
|
4331
4331
|
trigger: g = "hover",
|
|
4332
4332
|
variant: h = "neutral",
|
|
4333
4333
|
size: c = "s",
|
|
4334
|
-
text:
|
|
4334
|
+
text: b,
|
|
4335
4335
|
title: w,
|
|
4336
4336
|
media: u,
|
|
4337
4337
|
buttons: f,
|
|
4338
|
-
buttonProps:
|
|
4338
|
+
buttonProps: x,
|
|
4339
4339
|
onClose: _,
|
|
4340
4340
|
...m
|
|
4341
4341
|
}) => {
|
|
@@ -4345,7 +4345,7 @@ const sr = Object.assign(Ji, {
|
|
|
4345
4345
|
lr,
|
|
4346
4346
|
{
|
|
4347
4347
|
classNames: s,
|
|
4348
|
-
text:
|
|
4348
|
+
text: b,
|
|
4349
4349
|
variant: h,
|
|
4350
4350
|
size: c,
|
|
4351
4351
|
onClose: j,
|
|
@@ -4353,13 +4353,13 @@ const sr = Object.assign(Ji, {
|
|
|
4353
4353
|
media: u,
|
|
4354
4354
|
showClose: d,
|
|
4355
4355
|
buttons: f,
|
|
4356
|
-
buttonProps:
|
|
4356
|
+
buttonProps: x
|
|
4357
4357
|
}
|
|
4358
4358
|
) : /* @__PURE__ */ e.jsx(
|
|
4359
4359
|
lr,
|
|
4360
4360
|
{
|
|
4361
4361
|
classNames: s,
|
|
4362
|
-
text:
|
|
4362
|
+
text: b,
|
|
4363
4363
|
variant: h,
|
|
4364
4364
|
size: c,
|
|
4365
4365
|
onClose: j
|
|
@@ -4396,7 +4396,7 @@ const sr = Object.assign(Ji, {
|
|
|
4396
4396
|
children: r
|
|
4397
4397
|
}
|
|
4398
4398
|
);
|
|
4399
|
-
}, Kc = "_base_4dkq5_1", Jc = "_content_4dkq5_1", Qc = "_background_4dkq5_1", t1 = "_button_4dkq5_1", e1 = "_link_4dkq5_1", r1 = "_input_4dkq5_1", n1 = "_suffix_4dkq5_1", o1 = "_prefix_4dkq5_1", a1 = "_tooltip_4dkq5_1", s1 = "_hint_4dkq5_1", i1 = "_dropdown_4dkq5_1", l1 = "_popover_4dkq5_1", c1 = "_modalBackdrop_4dkq5_1", d1 = "_modal_4dkq5_1", u1 = "_overlay_4dkq5_1", _1 = "_drawer_4dkq5_1", p1 = "_notification_4dkq5_1", f1 = "_alert_4dkq5_1", g1 = "_toast_4dkq5_1", h1 = "_loading_4dkq5_1", m1 = "_error_4dkq5_1",
|
|
4399
|
+
}, Kc = "_base_4dkq5_1", Jc = "_content_4dkq5_1", Qc = "_background_4dkq5_1", t1 = "_button_4dkq5_1", e1 = "_link_4dkq5_1", r1 = "_input_4dkq5_1", n1 = "_suffix_4dkq5_1", o1 = "_prefix_4dkq5_1", a1 = "_tooltip_4dkq5_1", s1 = "_hint_4dkq5_1", i1 = "_dropdown_4dkq5_1", l1 = "_popover_4dkq5_1", c1 = "_modalBackdrop_4dkq5_1", d1 = "_modal_4dkq5_1", u1 = "_overlay_4dkq5_1", _1 = "_drawer_4dkq5_1", p1 = "_notification_4dkq5_1", f1 = "_alert_4dkq5_1", g1 = "_toast_4dkq5_1", h1 = "_loading_4dkq5_1", m1 = "_error_4dkq5_1", b1 = "_critical_4dkq5_1", x1 = "_segmentedControl_4dkq5_7", y1 = "_segment_4dkq5_7", v1 = "_activeSegmentIndicator_4dkq5_61", w1 = "_selected_4dkq5_80", C1 = "_stretched_4dkq5_89", k1 = "_disabled_4dkq5_97", S1 = "_s_4dkq5_7", L1 = "_icon_4dkq5_110", j1 = "_label_4dkq5_114", $1 = "_m_4dkq5_1", T1 = "_l_4dkq5_114", Mt = {
|
|
4400
4400
|
base: Kc,
|
|
4401
4401
|
content: Jc,
|
|
4402
4402
|
background: Qc,
|
|
@@ -4418,8 +4418,8 @@ const sr = Object.assign(Ji, {
|
|
|
4418
4418
|
toast: g1,
|
|
4419
4419
|
loading: h1,
|
|
4420
4420
|
error: m1,
|
|
4421
|
-
critical:
|
|
4422
|
-
segmentedControl:
|
|
4421
|
+
critical: b1,
|
|
4422
|
+
segmentedControl: x1,
|
|
4423
4423
|
segment: y1,
|
|
4424
4424
|
activeSegmentIndicator: v1,
|
|
4425
4425
|
selected: w1,
|
|
@@ -4446,7 +4446,7 @@ const sr = Object.assign(Ji, {
|
|
|
4446
4446
|
mode: g = "label",
|
|
4447
4447
|
onChange: h,
|
|
4448
4448
|
...c
|
|
4449
|
-
} = t,
|
|
4449
|
+
} = t, b = Le(), [w, u] = it(n || a[0].value), [f, x] = it({ width: 0, left: 0, height: 0 }), _ = gt(null);
|
|
4450
4450
|
G(() => {
|
|
4451
4451
|
s != null && u(s);
|
|
4452
4452
|
}, [s]), pr(() => {
|
|
@@ -4457,7 +4457,7 @@ const sr = Object.assign(Ji, {
|
|
|
4457
4457
|
const y = _.current.querySelector(
|
|
4458
4458
|
'[data-is-active-segment="true"]'
|
|
4459
4459
|
);
|
|
4460
|
-
y &&
|
|
4460
|
+
y && x({
|
|
4461
4461
|
width: y.offsetWidth,
|
|
4462
4462
|
left: y.offsetLeft,
|
|
4463
4463
|
height: y.offsetHeight
|
|
@@ -4489,7 +4489,7 @@ const sr = Object.assign(Ji, {
|
|
|
4489
4489
|
/* @__PURE__ */ e.jsx(
|
|
4490
4490
|
"input",
|
|
4491
4491
|
{
|
|
4492
|
-
id:
|
|
4492
|
+
id: b + M,
|
|
4493
4493
|
value: M,
|
|
4494
4494
|
type: "radio",
|
|
4495
4495
|
checked: z,
|
|
@@ -4501,7 +4501,7 @@ const sr = Object.assign(Ji, {
|
|
|
4501
4501
|
{
|
|
4502
4502
|
"data-is-active-segment": z,
|
|
4503
4503
|
className: k(Mt.segment, cr[i], { [Mt.selected]: z }, j),
|
|
4504
|
-
htmlFor:
|
|
4504
|
+
htmlFor: b + M,
|
|
4505
4505
|
"data-testid": "segmented-control-segment",
|
|
4506
4506
|
onClick: I,
|
|
4507
4507
|
...E,
|
|
@@ -4599,12 +4599,12 @@ const nt = {
|
|
|
4599
4599
|
prefixIcon: g,
|
|
4600
4600
|
postfixTitle: h,
|
|
4601
4601
|
disabled: c = !1,
|
|
4602
|
-
open:
|
|
4602
|
+
open: b,
|
|
4603
4603
|
onClear: w,
|
|
4604
4604
|
classNames: u = {},
|
|
4605
4605
|
styles: f = {}
|
|
4606
4606
|
}) => {
|
|
4607
|
-
const
|
|
4607
|
+
const x = !!t, _ = !!s, m = !!d, p = a === "applied", y = !!n && (!m || c) || m && !c, S = (m && !c ? d : n) || "", $ = m && !c, C = I1(r, x), j = _ && C === qt.FLOATING, E = C === qt.HIDDEN, I = k(
|
|
4608
4608
|
nt["trigger-wrapper"],
|
|
4609
4609
|
{ [nt["trigger-stretched"]]: i },
|
|
4610
4610
|
u.wrapper
|
|
@@ -4613,9 +4613,9 @@ const nt = {
|
|
|
4613
4613
|
nt[`trigger-container-size-${r}`],
|
|
4614
4614
|
{
|
|
4615
4615
|
[nt["trigger-stretched"]]: i,
|
|
4616
|
-
[nt["trigger-container-applied"]]: p &&
|
|
4616
|
+
[nt["trigger-container-applied"]]: p && x,
|
|
4617
4617
|
[nt["trigger-container-error"]]: m && !c,
|
|
4618
|
-
[nt["trigger-container-open"]]:
|
|
4618
|
+
[nt["trigger-container-open"]]: b,
|
|
4619
4619
|
[nt["trigger-container-floating"]]: j
|
|
4620
4620
|
},
|
|
4621
4621
|
u.triggerContainer
|
|
@@ -4637,7 +4637,7 @@ const nt = {
|
|
|
4637
4637
|
u.prefixIconContainer
|
|
4638
4638
|
), X = k(nt["trigger-clear-icon"], u.clearIcon), Y = (tt) => {
|
|
4639
4639
|
tt == null || tt.stopPropagation(), w == null || w();
|
|
4640
|
-
}, U =
|
|
4640
|
+
}, U = x && b && (a === "selected" && l || a === "applied") || x && !b && (p || a === "selected" && l);
|
|
4641
4641
|
return /* @__PURE__ */ e.jsxs("div", { className: I, style: f.wrapper, children: [
|
|
4642
4642
|
/* @__PURE__ */ e.jsxs(
|
|
4643
4643
|
"button",
|
|
@@ -4645,7 +4645,7 @@ const nt = {
|
|
|
4645
4645
|
"data-testid": "trigger",
|
|
4646
4646
|
"aria-invalid": m,
|
|
4647
4647
|
"aria-haspopup": "listbox",
|
|
4648
|
-
"aria-expanded":
|
|
4648
|
+
"aria-expanded": b,
|
|
4649
4649
|
role: "combobox",
|
|
4650
4650
|
className: M,
|
|
4651
4651
|
style: f.triggerContainer,
|
|
@@ -4667,7 +4667,7 @@ const nt = {
|
|
|
4667
4667
|
children: s
|
|
4668
4668
|
}
|
|
4669
4669
|
),
|
|
4670
|
-
|
|
4670
|
+
x && /* @__PURE__ */ e.jsx(
|
|
4671
4671
|
Ot.Label,
|
|
4672
4672
|
{
|
|
4673
4673
|
"data-testid": "trigger-content-container",
|
|
@@ -4679,7 +4679,7 @@ const nt = {
|
|
|
4679
4679
|
children: i ? t : N1(t)
|
|
4680
4680
|
}
|
|
4681
4681
|
),
|
|
4682
|
-
|
|
4682
|
+
x && !!h && /* @__PURE__ */ e.jsx(
|
|
4683
4683
|
Ot.Label,
|
|
4684
4684
|
{
|
|
4685
4685
|
"data-testid": "trigger-postfix",
|
|
@@ -4784,27 +4784,27 @@ const nt = {
|
|
|
4784
4784
|
G(() => {
|
|
4785
4785
|
const c = t.current;
|
|
4786
4786
|
if (!c || !r) return;
|
|
4787
|
-
const
|
|
4787
|
+
const b = (f) => {
|
|
4788
4788
|
f.target instanceof Element && f.target.closest("button") || (a.current = !0, l.current = f.touches[0].clientX, d.current = f.touches[0].clientY, g.current = l.current, h.current = d.current, c.style.animation = "none", c.style.transition = "none");
|
|
4789
4789
|
}, w = (f) => {
|
|
4790
4790
|
if (!a.current) return;
|
|
4791
4791
|
g.current = f.touches[0].clientX, h.current = f.touches[0].clientY;
|
|
4792
|
-
const
|
|
4792
|
+
const x = g.current - l.current, _ = h.current - d.current, m = Math.abs(x), p = Math.abs(_), y = m > p ? x : 0, S = p >= m ? _ : 0, $ = Math.sqrt(x ** 2 + _ ** 2), C = Math.max(1 - $ / 300, 0);
|
|
4793
4793
|
c.style.transform = `translate(${y}px, ${S}px)`, c.style.opacity = `${C}`;
|
|
4794
4794
|
}, u = () => {
|
|
4795
4795
|
if (!a.current) return;
|
|
4796
4796
|
a.current = !1;
|
|
4797
|
-
const f = g.current - l.current,
|
|
4797
|
+
const f = g.current - l.current, x = h.current - d.current, _ = Math.abs(f), m = Math.abs(x), p = c.offsetWidth, y = c.offsetHeight;
|
|
4798
4798
|
let S = !1;
|
|
4799
|
-
if (_ > 2 / 3 * p && (S = !0), S || (
|
|
4799
|
+
if (_ > 2 / 3 * p && (S = !0), S || (x < 0 && m > y / 2 && (S = !0), x > 0 && m > y && (S = !0)), S) {
|
|
4800
4800
|
i("swipe"), s(!0), c.style.transition = "";
|
|
4801
|
-
const $ = f > 0 ? p : -p, C =
|
|
4801
|
+
const $ = f > 0 ? p : -p, C = x > 0 ? y : -y;
|
|
4802
4802
|
c.style.transform = `translate(${$}px, ${C}px)`, c.style.opacity = "0", setTimeout(() => n("swipe"), kr.swipe);
|
|
4803
4803
|
} else
|
|
4804
4804
|
s(!1), i(void 0), c.style.transition = "", c.style.transform = "translate(0px, 0px)", c.style.opacity = "1";
|
|
4805
4805
|
};
|
|
4806
|
-
return c.addEventListener("touchstart",
|
|
4807
|
-
c.removeEventListener("touchstart",
|
|
4806
|
+
return c.addEventListener("touchstart", b), c.addEventListener("touchmove", w), c.addEventListener("touchend", u), () => {
|
|
4807
|
+
c.removeEventListener("touchstart", b), c.removeEventListener("touchmove", w), c.removeEventListener("touchend", u);
|
|
4808
4808
|
};
|
|
4809
4809
|
}, [t, r, n, s, i]);
|
|
4810
4810
|
};
|
|
@@ -4984,11 +4984,11 @@ const z1 = "_stack_1sg4d_1", D1 = "_local_1sg4d_19", F1 = "_snackWrapper_1sg4d_2
|
|
|
4984
4984
|
showButtonClose: g = !0,
|
|
4985
4985
|
showIcon: h = !0,
|
|
4986
4986
|
content: c,
|
|
4987
|
-
classNameSnackbarRoot:
|
|
4987
|
+
classNameSnackbarRoot: b,
|
|
4988
4988
|
icon: w,
|
|
4989
4989
|
isStack: u = !1,
|
|
4990
4990
|
forceClose: f,
|
|
4991
|
-
"data-testid":
|
|
4991
|
+
"data-testid": x = "snackbar"
|
|
4992
4992
|
} = t, _ = gt(null), m = gt(null), [p, y] = it(!1), [S, $] = it(!1), [C, j] = it(), E = gt(0), I = gt(0), M = gt(0), z = gt(0), D = gt(!1), T = gt(null), N = (P) => {
|
|
4993
4993
|
clearTimeout(T.current || 0), T.current = null;
|
|
4994
4994
|
const K = u ? A1[P] : kr[P];
|
|
@@ -5043,7 +5043,7 @@ const z1 = "_stack_1sg4d_1", D1 = "_local_1sg4d_19", F1 = "_snackWrapper_1sg4d_2
|
|
|
5043
5043
|
pt[i],
|
|
5044
5044
|
{ [pt.exiting]: S && C },
|
|
5045
5045
|
{ [pt.snackbarVertical]: p },
|
|
5046
|
-
|
|
5046
|
+
b,
|
|
5047
5047
|
W,
|
|
5048
5048
|
{
|
|
5049
5049
|
[pt.snackbarStack]: u && !S,
|
|
@@ -5054,7 +5054,7 @@ const z1 = "_stack_1sg4d_1", D1 = "_local_1sg4d_19", F1 = "_snackWrapper_1sg4d_2
|
|
|
5054
5054
|
), Y = (P) => {
|
|
5055
5055
|
m.current = P, r && (typeof r == "function" ? r(P) : r.current = P);
|
|
5056
5056
|
};
|
|
5057
|
-
return /* @__PURE__ */ e.jsxs("div", { ref: Y, "data-testid":
|
|
5057
|
+
return /* @__PURE__ */ e.jsxs("div", { ref: Y, "data-testid": x, className: X, children: [
|
|
5058
5058
|
/* @__PURE__ */ e.jsxs(
|
|
5059
5059
|
"div",
|
|
5060
5060
|
{
|
|
@@ -5080,8 +5080,8 @@ const z1 = "_stack_1sg4d_1", D1 = "_local_1sg4d_19", F1 = "_snackWrapper_1sg4d_2
|
|
|
5080
5080
|
] });
|
|
5081
5081
|
}), N2 = (t) => {
|
|
5082
5082
|
const { children: r, dataTestId: n = "snackbar-wrapper" } = t, [s, i] = Zr(B1, { visible: [], queue: [] }), a = (u) => {
|
|
5083
|
-
const f = P1(),
|
|
5084
|
-
i({ type: "ENQUEUE", snack:
|
|
5083
|
+
const f = P1(), x = { ...u, id: f, open: !0 };
|
|
5084
|
+
i({ type: "ENQUEUE", snack: x });
|
|
5085
5085
|
}, l = (u) => {
|
|
5086
5086
|
i({ type: "REMOVE", id: u });
|
|
5087
5087
|
};
|
|
@@ -5095,8 +5095,8 @@ const z1 = "_stack_1sg4d_1", D1 = "_local_1sg4d_19", F1 = "_snackWrapper_1sg4d_2
|
|
|
5095
5095
|
} else
|
|
5096
5096
|
i({ type: "SHOW_NEXT" });
|
|
5097
5097
|
}, [s.queue]);
|
|
5098
|
-
const d = (u) => u.map((f,
|
|
5099
|
-
const _ = (u.length - 1 -
|
|
5098
|
+
const d = (u) => u.map((f, x) => {
|
|
5099
|
+
const _ = (u.length - 1 - x) * -8, m = u.length > 1;
|
|
5100
5100
|
m && !f.wasInStack && (f.wasInStack = !0);
|
|
5101
5101
|
const p = f.wasInStack || m ? "fix" : f.mode;
|
|
5102
5102
|
return /* @__PURE__ */ e.jsx(
|
|
@@ -5124,15 +5124,15 @@ const z1 = "_stack_1sg4d_1", D1 = "_local_1sg4d_19", F1 = "_snackWrapper_1sg4d_2
|
|
|
5124
5124
|
}), g = s.visible.filter((u) => !u.parent), h = s.visible.filter((u) => u.parent), c = qe.createPortal(
|
|
5125
5125
|
/* @__PURE__ */ e.jsx("div", { className: oe.stack, children: d(g) }),
|
|
5126
5126
|
document.body
|
|
5127
|
-
),
|
|
5127
|
+
), b = h.reduce((u, f) => {
|
|
5128
5128
|
if (!f.parent) return u;
|
|
5129
|
-
const
|
|
5130
|
-
return (u[
|
|
5131
|
-
}, {}), w = Object.entries(
|
|
5132
|
-
const
|
|
5133
|
-
return
|
|
5129
|
+
const x = f.parent.id || `parent-${f.parent.className}`;
|
|
5130
|
+
return (u[x] || (u[x] = [])).push(f), u;
|
|
5131
|
+
}, {}), w = Object.entries(b).map(([u, f]) => {
|
|
5132
|
+
const x = f[0];
|
|
5133
|
+
return x.parent ? qe.createPortal(
|
|
5134
5134
|
/* @__PURE__ */ e.jsx("div", { className: jt(oe.stack, oe.local), children: d(f) }, u),
|
|
5135
|
-
|
|
5135
|
+
x.parent
|
|
5136
5136
|
) : null;
|
|
5137
5137
|
});
|
|
5138
5138
|
return /* @__PURE__ */ e.jsxs(Cr.Provider, { value: { show: a }, children: [
|
|
@@ -5149,7 +5149,7 @@ export {
|
|
|
5149
5149
|
C2 as Checkbox,
|
|
5150
5150
|
y2 as ConfigProvider,
|
|
5151
5151
|
ml as Helper,
|
|
5152
|
-
|
|
5152
|
+
b2 as Image,
|
|
5153
5153
|
j2 as List,
|
|
5154
5154
|
je as Loader,
|
|
5155
5155
|
h2 as Modal,
|
|
@@ -5167,6 +5167,6 @@ export {
|
|
|
5167
5167
|
es as enUS,
|
|
5168
5168
|
v2 as ruRU,
|
|
5169
5169
|
rs as useConfig,
|
|
5170
|
-
|
|
5170
|
+
x2 as useLocale,
|
|
5171
5171
|
R2 as useSnackbar
|
|
5172
5172
|
};
|