skillgrid 0.0.60 → 0.0.62
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/Tabs/Tabs.type.d.ts +9 -4
- package/dist/index.cjs.js +8 -8
- package/dist/index.css +1 -1
- package/dist/index.es.js +353 -352
- package/package.json +2 -1
package/dist/index.es.js
CHANGED
|
@@ -24,11 +24,11 @@ function U9() {
|
|
|
24
24
|
if (a3) return s2;
|
|
25
25
|
a3 = 1;
|
|
26
26
|
var t = N1, r = Symbol.for("react.element"), i = Symbol.for("react.fragment"), C = Object.prototype.hasOwnProperty, a = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
27
|
-
function c(m,
|
|
27
|
+
function c(m, L, f) {
|
|
28
28
|
var d, u = {}, E = null, h = null;
|
|
29
|
-
f !== void 0 && (E = "" + f),
|
|
30
|
-
for (d in
|
|
31
|
-
if (m && m.defaultProps) for (d in
|
|
29
|
+
f !== void 0 && (E = "" + f), L.key !== void 0 && (E = "" + L.key), L.ref !== void 0 && (h = L.ref);
|
|
30
|
+
for (d in L) C.call(L, d) && !l.hasOwnProperty(d) && (u[d] = L[d]);
|
|
31
|
+
if (m && m.defaultProps) for (d in L = m.defaultProps, L) u[d] === void 0 && (u[d] = L[d]);
|
|
32
32
|
return { $$typeof: r, type: m, key: E, ref: h, props: u, _owner: a.current };
|
|
33
33
|
}
|
|
34
34
|
return s2.Fragment = i, s2.jsx = c, s2.jsxs = c, s2;
|
|
@@ -46,7 +46,7 @@ var c2 = {};
|
|
|
46
46
|
var s3;
|
|
47
47
|
function q9() {
|
|
48
48
|
return s3 || (s3 = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
49
|
-
var t = N1, r = Symbol.for("react.element"), i = Symbol.for("react.portal"), C = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), m = Symbol.for("react.context"),
|
|
49
|
+
var t = N1, r = Symbol.for("react.element"), i = Symbol.for("react.portal"), C = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), m = Symbol.for("react.context"), L = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), u = Symbol.for("react.memo"), E = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), p = Symbol.iterator, _ = "@@iterator";
|
|
50
50
|
function g(s) {
|
|
51
51
|
if (s === null || typeof s != "object")
|
|
52
52
|
return null;
|
|
@@ -54,7 +54,7 @@ function q9() {
|
|
|
54
54
|
return typeof H == "function" ? H : null;
|
|
55
55
|
}
|
|
56
56
|
var v = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
57
|
-
function
|
|
57
|
+
function w(s) {
|
|
58
58
|
{
|
|
59
59
|
for (var H = arguments.length, j = new Array(H > 1 ? H - 1 : 0), P = 1; P < H; P++)
|
|
60
60
|
j[P - 1] = arguments[P];
|
|
@@ -74,7 +74,7 @@ function q9() {
|
|
|
74
74
|
var b = !1, S = !1, M = !1, V = !1, Z = !1, B;
|
|
75
75
|
B = Symbol.for("react.module.reference");
|
|
76
76
|
function O(s) {
|
|
77
|
-
return !!(typeof s == "string" || typeof s == "function" || s === C || s === l || Z || s === a || s === f || s === d || V || s === h || b || S || M || typeof s == "object" && s !== null && (s.$$typeof === E || s.$$typeof === u || s.$$typeof === c || s.$$typeof === m || s.$$typeof ===
|
|
77
|
+
return !!(typeof s == "string" || typeof s == "function" || s === C || s === l || Z || s === a || s === f || s === d || V || s === h || b || S || M || typeof s == "object" && s !== null && (s.$$typeof === E || s.$$typeof === u || s.$$typeof === c || s.$$typeof === m || s.$$typeof === L || // This needs to include all possible module reference object
|
|
78
78
|
// types supported by any Flight configuration anywhere since
|
|
79
79
|
// we don't know which Flight build this will end up being used
|
|
80
80
|
// with.
|
|
@@ -87,13 +87,13 @@ function q9() {
|
|
|
87
87
|
var Y = H.displayName || H.name || "";
|
|
88
88
|
return Y !== "" ? j + "(" + Y + ")" : j;
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function W(s) {
|
|
91
91
|
return s.displayName || "Context";
|
|
92
92
|
}
|
|
93
93
|
function y(s) {
|
|
94
94
|
if (s == null)
|
|
95
95
|
return null;
|
|
96
|
-
if (typeof s.tag == "number" &&
|
|
96
|
+
if (typeof s.tag == "number" && w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof s == "function")
|
|
97
97
|
return s.displayName || s.name || null;
|
|
98
98
|
if (typeof s == "string")
|
|
99
99
|
return s;
|
|
@@ -115,11 +115,11 @@ function q9() {
|
|
|
115
115
|
switch (s.$$typeof) {
|
|
116
116
|
case m:
|
|
117
117
|
var H = s;
|
|
118
|
-
return
|
|
118
|
+
return W(H) + ".Consumer";
|
|
119
119
|
case c:
|
|
120
120
|
var j = s;
|
|
121
|
-
return
|
|
122
|
-
case
|
|
121
|
+
return W(j._context) + ".Provider";
|
|
122
|
+
case L:
|
|
123
123
|
return R(s, s.render, "ForwardRef");
|
|
124
124
|
case u:
|
|
125
125
|
var P = s.displayName || null;
|
|
@@ -135,7 +135,7 @@ function q9() {
|
|
|
135
135
|
}
|
|
136
136
|
return null;
|
|
137
137
|
}
|
|
138
|
-
var
|
|
138
|
+
var F = Object.assign, I = 0, T, D, $, X, K, G, A;
|
|
139
139
|
function J() {
|
|
140
140
|
}
|
|
141
141
|
J.__reactDisabledLog = !0;
|
|
@@ -171,30 +171,30 @@ function q9() {
|
|
|
171
171
|
writable: !0
|
|
172
172
|
};
|
|
173
173
|
Object.defineProperties(console, {
|
|
174
|
-
log:
|
|
174
|
+
log: F({}, s, {
|
|
175
175
|
value: T
|
|
176
176
|
}),
|
|
177
|
-
info:
|
|
177
|
+
info: F({}, s, {
|
|
178
178
|
value: D
|
|
179
179
|
}),
|
|
180
|
-
warn:
|
|
180
|
+
warn: F({}, s, {
|
|
181
181
|
value: $
|
|
182
182
|
}),
|
|
183
|
-
error:
|
|
183
|
+
error: F({}, s, {
|
|
184
184
|
value: X
|
|
185
185
|
}),
|
|
186
|
-
group:
|
|
186
|
+
group: F({}, s, {
|
|
187
187
|
value: K
|
|
188
188
|
}),
|
|
189
|
-
groupCollapsed:
|
|
189
|
+
groupCollapsed: F({}, s, {
|
|
190
190
|
value: G
|
|
191
191
|
}),
|
|
192
|
-
groupEnd:
|
|
192
|
+
groupEnd: F({}, s, {
|
|
193
193
|
value: A
|
|
194
194
|
})
|
|
195
195
|
});
|
|
196
196
|
}
|
|
197
|
-
I < 0 &&
|
|
197
|
+
I < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
var p1 = v.ReactCurrentDispatcher, V1;
|
|
@@ -309,7 +309,7 @@ function q9() {
|
|
|
309
309
|
}
|
|
310
310
|
if (typeof s == "object")
|
|
311
311
|
switch (s.$$typeof) {
|
|
312
|
-
case
|
|
312
|
+
case L:
|
|
313
313
|
return C2(s.render);
|
|
314
314
|
case u:
|
|
315
315
|
return l1(s.type, H, j);
|
|
@@ -346,7 +346,7 @@ function q9() {
|
|
|
346
346
|
} catch (a1) {
|
|
347
347
|
z = a1;
|
|
348
348
|
}
|
|
349
|
-
z && !(z instanceof Error) && (p2(Y),
|
|
349
|
+
z && !(z instanceof Error) && (p2(Y), w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", P || "React class", j, q, typeof z), p2(null)), z instanceof Error && !(z.message in w1) && (w1[z.message] = !0, p2(Y), w("Failed %s type: %s", j, z.message), p2(null));
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
352
|
}
|
|
@@ -372,7 +372,7 @@ function q9() {
|
|
|
372
372
|
}
|
|
373
373
|
function X2(s) {
|
|
374
374
|
if (c9(s))
|
|
375
|
-
return
|
|
375
|
+
return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", s9(s)), G2(s);
|
|
376
376
|
}
|
|
377
377
|
var Y2 = v.ReactCurrentOwner, d9 = {
|
|
378
378
|
key: !0,
|
|
@@ -402,7 +402,7 @@ function q9() {
|
|
|
402
402
|
function p9(s, H) {
|
|
403
403
|
{
|
|
404
404
|
var j = function() {
|
|
405
|
-
K2 || (K2 = !0,
|
|
405
|
+
K2 || (K2 = !0, w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", H));
|
|
406
406
|
};
|
|
407
407
|
j.isReactWarning = !0, Object.defineProperty(s, "key", {
|
|
408
408
|
get: j,
|
|
@@ -413,7 +413,7 @@ function q9() {
|
|
|
413
413
|
function u9(s, H) {
|
|
414
414
|
{
|
|
415
415
|
var j = function() {
|
|
416
|
-
J2 || (J2 = !0,
|
|
416
|
+
J2 || (J2 = !0, w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", H));
|
|
417
417
|
};
|
|
418
418
|
j.isReactWarning = !0, Object.defineProperty(s, "ref", {
|
|
419
419
|
get: j,
|
|
@@ -519,7 +519,7 @@ Check the top-level render call using <` + j + ">.");
|
|
|
519
519
|
return;
|
|
520
520
|
t3[j] = !0;
|
|
521
521
|
var P = "";
|
|
522
|
-
s && s._owner && s._owner !== V2.current && (P = " It was passed a child from " + y(s._owner.type) + "."), J1(s),
|
|
522
|
+
s && s._owner && s._owner !== V2.current && (P = " It was passed a child from " + y(s._owner.type) + "."), J1(s), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', j, P), J1(null);
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
525
|
function r3(s, H) {
|
|
@@ -549,7 +549,7 @@ Check the top-level render call using <` + j + ">.");
|
|
|
549
549
|
var j;
|
|
550
550
|
if (typeof H == "function")
|
|
551
551
|
j = H.propTypes;
|
|
552
|
-
else if (typeof H == "object" && (H.$$typeof ===
|
|
552
|
+
else if (typeof H == "object" && (H.$$typeof === L || // Note: Memo only checks outer props here.
|
|
553
553
|
// Inner props are checked in the reconciler.
|
|
554
554
|
H.$$typeof === u))
|
|
555
555
|
j = H.propTypes;
|
|
@@ -561,9 +561,9 @@ Check the top-level render call using <` + j + ">.");
|
|
|
561
561
|
} else if (H.PropTypes !== void 0 && !y2) {
|
|
562
562
|
y2 = !0;
|
|
563
563
|
var Y = y(H);
|
|
564
|
-
|
|
564
|
+
w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Y || "Unknown");
|
|
565
565
|
}
|
|
566
|
-
typeof H.getDefaultProps == "function" && !H.getDefaultProps.isReactClassApproved &&
|
|
566
|
+
typeof H.getDefaultProps == "function" && !H.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
567
567
|
}
|
|
568
568
|
}
|
|
569
569
|
function E9(s) {
|
|
@@ -571,11 +571,11 @@ Check the top-level render call using <` + j + ">.");
|
|
|
571
571
|
for (var H = Object.keys(s.props), j = 0; j < H.length; j++) {
|
|
572
572
|
var P = H[j];
|
|
573
573
|
if (P !== "children" && P !== "key") {
|
|
574
|
-
J1(s),
|
|
574
|
+
J1(s), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", P), J1(null);
|
|
575
575
|
break;
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
|
-
s.ref !== null && (J1(s),
|
|
578
|
+
s.ref !== null && (J1(s), w("Invalid attribute `ref` supplied to `React.Fragment`."), J1(null));
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
581
|
var o3 = {};
|
|
@@ -588,7 +588,7 @@ Check the top-level render call using <` + j + ">.");
|
|
|
588
588
|
var v1 = v9();
|
|
589
589
|
v1 ? z += v1 : z += e3();
|
|
590
590
|
var a1;
|
|
591
|
-
s === null ? a1 = "null" : Z2(s) ? a1 = "array" : s !== void 0 && s.$$typeof === r ? (a1 = "<" + (y(s.type) || "Unknown") + " />", z = " Did you accidentally export a JSX literal instead of a component?") : a1 = typeof s,
|
|
591
|
+
s === null ? a1 = "null" : Z2(s) ? a1 = "array" : s !== void 0 && s.$$typeof === r ? (a1 = "<" + (y(s.type) || "Unknown") + " />", z = " Did you accidentally export a JSX literal instead of a component?") : a1 = typeof s, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", a1, z);
|
|
592
592
|
}
|
|
593
593
|
var s1 = w9(s, H, j, Y, Q);
|
|
594
594
|
if (s1 == null)
|
|
@@ -602,7 +602,7 @@ Check the top-level render call using <` + j + ">.");
|
|
|
602
602
|
r3(B1[Q1], s);
|
|
603
603
|
Object.freeze && Object.freeze(B1);
|
|
604
604
|
} else
|
|
605
|
-
|
|
605
|
+
w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
606
606
|
else
|
|
607
607
|
r3(B1, s);
|
|
608
608
|
}
|
|
@@ -612,7 +612,7 @@ Check the top-level render call using <` + j + ">.");
|
|
|
612
612
|
}), B2 = _1.length > 0 ? "{key: someKey, " + _1.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
613
613
|
if (!o3[q1 + B2]) {
|
|
614
614
|
var b9 = _1.length > 0 ? "{" + _1.join(": ..., ") + ": ...}" : "{}";
|
|
615
|
-
|
|
615
|
+
w(`A props object containing a "key" prop is being spread into JSX:
|
|
616
616
|
let props = %s;
|
|
617
617
|
<%s {...props} />
|
|
618
618
|
React keys must be passed directly to JSX without using spread:
|
|
@@ -849,12 +849,12 @@ const M1 = /* @__PURE__ */ z9(e4), F3 = t1(
|
|
|
849
849
|
children: l,
|
|
850
850
|
className: c,
|
|
851
851
|
style: m,
|
|
852
|
-
"data-testid":
|
|
852
|
+
"data-testid": L,
|
|
853
853
|
...f
|
|
854
854
|
} = t, d = M1(m2.container, c);
|
|
855
|
-
return /* @__PURE__ */ o.jsxs("div", { ref: r, className: d, style: m, "data-testid":
|
|
855
|
+
return /* @__PURE__ */ o.jsxs("div", { ref: r, className: d, style: m, "data-testid": L, ...f, children: [
|
|
856
856
|
l,
|
|
857
|
-
i && /* @__PURE__ */ o.jsx("div", { className: m2.overlay, children: /* @__PURE__ */ o.jsx(F3, { size: C, variant: a, "data-testid": `${
|
|
857
|
+
i && /* @__PURE__ */ o.jsx("div", { className: m2.overlay, children: /* @__PURE__ */ o.jsx(F3, { size: C, variant: a, "data-testid": `${L}-spinner` }) })
|
|
858
858
|
] });
|
|
859
859
|
}), b2 = t1((t, r) => t.children ? /* @__PURE__ */ o.jsx(
|
|
860
860
|
t4,
|
|
@@ -943,13 +943,13 @@ const M1 = /* @__PURE__ */ z9(e4), F3 = t1(
|
|
|
943
943
|
disabled: l = !1,
|
|
944
944
|
className: c,
|
|
945
945
|
children: m,
|
|
946
|
-
tabIndex:
|
|
946
|
+
tabIndex: L,
|
|
947
947
|
subcaption: f,
|
|
948
948
|
postfix: d,
|
|
949
949
|
stretched: u,
|
|
950
950
|
iconLeft: E,
|
|
951
951
|
loading: h
|
|
952
|
-
} = t, p = i === "tertiary", _ = p && "paddings" in t ? t.paddings ?? !0 : !0, g = !!("loading" in t && h), v = !l && !g,
|
|
952
|
+
} = t, p = i === "tertiary", _ = p && "paddings" in t ? t.paddings ?? !0 : !0, g = !!("loading" in t && h), v = !l && !g, w = !!(!m && E && !d), k = typeof u == "object" ? u.justify === "space-between" : void 0, b = o4(C), S = i1[b], M = A6(l, i, a), V = l || g ? -1 : L, Z = x(
|
|
953
953
|
N.button,
|
|
954
954
|
N[C],
|
|
955
955
|
N[i],
|
|
@@ -961,7 +961,7 @@ const M1 = /* @__PURE__ */ z9(e4), F3 = t1(
|
|
|
961
961
|
[N.stretched]: u,
|
|
962
962
|
[N.spaceBetween]: k,
|
|
963
963
|
[N.withSubcaption]: !!(f && C === "l" && m),
|
|
964
|
-
[N.iconOnly]:
|
|
964
|
+
[N.iconOnly]: w,
|
|
965
965
|
[N.noPaddings]: p && !_
|
|
966
966
|
},
|
|
967
967
|
c
|
|
@@ -973,7 +973,7 @@ const M1 = /* @__PURE__ */ z9(e4), F3 = t1(
|
|
|
973
973
|
size: C
|
|
974
974
|
};
|
|
975
975
|
if (X9(t)) {
|
|
976
|
-
const { href: O, onClick: R, style:
|
|
976
|
+
const { href: O, onClick: R, style: W, target: y, rel: F, "data-testid": I, ...T } = t, D = k2(T), $ = y ?? (t.isExternal ? "_blank" : void 0), X = I3({ rel: F, target: $ }), K = (G) => {
|
|
977
977
|
if (!v) {
|
|
978
978
|
G.preventDefault();
|
|
979
979
|
return;
|
|
@@ -990,7 +990,7 @@ const M1 = /* @__PURE__ */ z9(e4), F3 = t1(
|
|
|
990
990
|
onClick: K,
|
|
991
991
|
"data-testid": I,
|
|
992
992
|
"aria-disabled": l || g,
|
|
993
|
-
style:
|
|
993
|
+
style: W,
|
|
994
994
|
target: $,
|
|
995
995
|
rel: X,
|
|
996
996
|
...D,
|
|
@@ -999,7 +999,7 @@ const M1 = /* @__PURE__ */ z9(e4), F3 = t1(
|
|
|
999
999
|
);
|
|
1000
1000
|
}
|
|
1001
1001
|
if (Y9(t)) {
|
|
1002
|
-
const { type: O = "button", onClick: R, style:
|
|
1002
|
+
const { type: O = "button", onClick: R, style: W, "data-testid": y, ...F } = t, I = k2(F), T = C === "l" ? 24 : 16, D = ($) => {
|
|
1003
1003
|
v && R && R($);
|
|
1004
1004
|
};
|
|
1005
1005
|
return /* @__PURE__ */ o.jsxs(
|
|
@@ -1013,7 +1013,7 @@ const M1 = /* @__PURE__ */ z9(e4), F3 = t1(
|
|
|
1013
1013
|
onClick: D,
|
|
1014
1014
|
"data-testid": y,
|
|
1015
1015
|
"aria-disabled": l || g,
|
|
1016
|
-
style:
|
|
1016
|
+
style: W,
|
|
1017
1017
|
...I,
|
|
1018
1018
|
children: [
|
|
1019
1019
|
/* @__PURE__ */ o.jsx("div", { className: x(N.content, { [N.contentHidden]: g }), children: /* @__PURE__ */ o.jsx(h3, { ...B }) }),
|
|
@@ -1071,16 +1071,16 @@ const m3 = ({
|
|
|
1071
1071
|
disabled: l = !1,
|
|
1072
1072
|
className: c,
|
|
1073
1073
|
children: m,
|
|
1074
|
-
tabIndex:
|
|
1074
|
+
tabIndex: L,
|
|
1075
1075
|
showUnderline: f = !1,
|
|
1076
1076
|
iconLeft: d,
|
|
1077
1077
|
iconRight: u
|
|
1078
|
-
} = t, E = C !== void 0, h = E ? d : void 0, p = E ? u : void 0, _ = !l, g = !!(!m && p), v = D6(C ?? "m"),
|
|
1078
|
+
} = t, E = C !== void 0, h = E ? d : void 0, p = E ? u : void 0, _ = !l, g = !!(!m && p), v = D6(C ?? "m"), w = i1[v], k = l ? -1 : L, b = x(
|
|
1079
1079
|
N.button,
|
|
1080
1080
|
N[C ?? "m"],
|
|
1081
1081
|
N[i],
|
|
1082
1082
|
N[a],
|
|
1083
|
-
|
|
1083
|
+
w,
|
|
1084
1084
|
{
|
|
1085
1085
|
[N.disabled]: l,
|
|
1086
1086
|
[N.iconOnly]: g,
|
|
@@ -1095,12 +1095,12 @@ const m3 = ({
|
|
|
1095
1095
|
showLinkIcons: E
|
|
1096
1096
|
};
|
|
1097
1097
|
if (t.as === "a") {
|
|
1098
|
-
const { href: y, onClick:
|
|
1098
|
+
const { href: y, onClick: F, style: I, target: T, rel: D, "data-testid": $, isExternal: X, ...K } = t, G = k2(K), A = T ?? (X ? "_blank" : void 0), J = I3({ rel: D, target: A }), g1 = (m1) => {
|
|
1099
1099
|
if (!_) {
|
|
1100
1100
|
m1.preventDefault();
|
|
1101
1101
|
return;
|
|
1102
1102
|
}
|
|
1103
|
-
|
|
1103
|
+
F == null || F(m1);
|
|
1104
1104
|
};
|
|
1105
1105
|
return /* @__PURE__ */ o.jsx(
|
|
1106
1106
|
"a",
|
|
@@ -1120,7 +1120,7 @@ const m3 = ({
|
|
|
1120
1120
|
}
|
|
1121
1121
|
);
|
|
1122
1122
|
}
|
|
1123
|
-
const { type: M = "button", onClick: V, style: Z, "data-testid": B, ...O } = t, R = k2(O),
|
|
1123
|
+
const { type: M = "button", onClick: V, style: Z, "data-testid": B, ...O } = t, R = k2(O), W = (y) => {
|
|
1124
1124
|
_ && V && V(y);
|
|
1125
1125
|
};
|
|
1126
1126
|
return /* @__PURE__ */ o.jsx(
|
|
@@ -1131,7 +1131,7 @@ const m3 = ({
|
|
|
1131
1131
|
className: b,
|
|
1132
1132
|
disabled: l,
|
|
1133
1133
|
tabIndex: k,
|
|
1134
|
-
onClick:
|
|
1134
|
+
onClick: W,
|
|
1135
1135
|
"data-testid": B,
|
|
1136
1136
|
"aria-disabled": l,
|
|
1137
1137
|
style: Z,
|
|
@@ -1210,7 +1210,7 @@ const m4 = "_avatarGroup_157g4_1", g4 = {
|
|
|
1210
1210
|
overlap: C = 0.3,
|
|
1211
1211
|
shape: a = "circle",
|
|
1212
1212
|
cutoutBackground: l
|
|
1213
|
-
} = t, m = -(i * C) + p4,
|
|
1213
|
+
} = t, m = -(i * C) + p4, L = K1(
|
|
1214
1214
|
() => ({
|
|
1215
1215
|
size: i,
|
|
1216
1216
|
shape: a,
|
|
@@ -1220,7 +1220,7 @@ const m4 = "_avatarGroup_157g4_1", g4 = {
|
|
|
1220
1220
|
}),
|
|
1221
1221
|
[i, a, C, m, l]
|
|
1222
1222
|
);
|
|
1223
|
-
return /* @__PURE__ */ o.jsx(P3.Provider, { value:
|
|
1223
|
+
return /* @__PURE__ */ o.jsx(P3.Provider, { value: L, children: r });
|
|
1224
1224
|
}, $3 = (t) => {
|
|
1225
1225
|
const {
|
|
1226
1226
|
children: r,
|
|
@@ -1230,7 +1230,7 @@ const m4 = "_avatarGroup_157g4_1", g4 = {
|
|
|
1230
1230
|
cutoutBackground: l,
|
|
1231
1231
|
className: c,
|
|
1232
1232
|
style: m
|
|
1233
|
-
} = t, { ref:
|
|
1233
|
+
} = t, { ref: L, bgColor: f } = z2(), d = l || f || "#ffffff", u = M1(g4.avatarGroup, c), E = {
|
|
1234
1234
|
"--avatar-cutout-bg": d,
|
|
1235
1235
|
...m
|
|
1236
1236
|
};
|
|
@@ -1241,7 +1241,7 @@ const m4 = "_avatarGroup_157g4_1", g4 = {
|
|
|
1241
1241
|
shape: C,
|
|
1242
1242
|
overlap: a,
|
|
1243
1243
|
cutoutBackground: d,
|
|
1244
|
-
children: /* @__PURE__ */ o.jsx("div", { className: u, ref:
|
|
1244
|
+
children: /* @__PURE__ */ o.jsx("div", { className: u, ref: L, style: E, children: r })
|
|
1245
1245
|
}
|
|
1246
1246
|
);
|
|
1247
1247
|
}, L4 = "_avatar_1dbju_18", w4 = "_clickable_1dbju_40", v4 = "_icon_1dbju_57", f4 = "_disabled_1dbju_62", _4 = "_loading_1dbju_67", E4 = "_image_1dbju_73", k4 = "_name_1dbju_73", I1 = {
|
|
@@ -1331,7 +1331,7 @@ const B4 = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
1331
1331
|
isDisabled: l = !1,
|
|
1332
1332
|
shape: c = "circle",
|
|
1333
1333
|
variant: m = "filled",
|
|
1334
|
-
placeholderType:
|
|
1334
|
+
placeholderType: L = "neutral",
|
|
1335
1335
|
name: f,
|
|
1336
1336
|
imgSrc: d,
|
|
1337
1337
|
imgAlt: u,
|
|
@@ -1341,11 +1341,11 @@ const B4 = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
1341
1341
|
className: _,
|
|
1342
1342
|
"data-testid": g,
|
|
1343
1343
|
...v
|
|
1344
|
-
} = t, { onClick:
|
|
1344
|
+
} = t, { onClick: w, onPointerDown: k } = v, S = !l && !a && (!!w || !!k), [M, V] = h1(!1);
|
|
1345
1345
|
n1(() => {
|
|
1346
1346
|
d && V(!1);
|
|
1347
1347
|
}, [d]);
|
|
1348
|
-
const Z = d && !M ? "image" : E ? "icon" : f ? "name" : "placeholder", B = p || Z === "name" && H4(f) || "gray", O = S4(C), R = V4(C, c),
|
|
1348
|
+
const Z = d && !M ? "image" : E ? "icon" : f ? "name" : "placeholder", B = p || Z === "name" && H4(f) || "gray", O = S4(C), R = V4(C, c), W = x(
|
|
1349
1349
|
_,
|
|
1350
1350
|
I1.avatar,
|
|
1351
1351
|
I1[`variant-${m}`],
|
|
@@ -1360,7 +1360,7 @@ const B4 = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
1360
1360
|
"--avatar-size": `${C}px`,
|
|
1361
1361
|
"--avatar-border-radius": `${R}px`,
|
|
1362
1362
|
...i
|
|
1363
|
-
},
|
|
1363
|
+
}, F = {
|
|
1364
1364
|
icon: () => /* @__PURE__ */ o.jsx("span", { "data-testid": "avatar-icon", title: u || void 0, role: "img", className: I1.icon, children: E == null ? void 0 : E({}) }),
|
|
1365
1365
|
name: () => /* @__PURE__ */ o.jsx(
|
|
1366
1366
|
"span",
|
|
@@ -1378,7 +1378,7 @@ const B4 = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
1378
1378
|
...h,
|
|
1379
1379
|
"data-testid": "avatar-placeholder",
|
|
1380
1380
|
className: I1.image,
|
|
1381
|
-
src: W4[
|
|
1381
|
+
src: W4[L],
|
|
1382
1382
|
alt: u || void 0
|
|
1383
1383
|
}
|
|
1384
1384
|
),
|
|
@@ -1398,18 +1398,18 @@ const B4 = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
1398
1398
|
}
|
|
1399
1399
|
)
|
|
1400
1400
|
}, I = (T) => {
|
|
1401
|
-
S && (
|
|
1401
|
+
S && (w == null || w(T));
|
|
1402
1402
|
};
|
|
1403
1403
|
return /* @__PURE__ */ o.jsx(
|
|
1404
1404
|
"div",
|
|
1405
1405
|
{
|
|
1406
1406
|
ref: r,
|
|
1407
1407
|
onClick: I,
|
|
1408
|
-
className:
|
|
1408
|
+
className: W,
|
|
1409
1409
|
style: y,
|
|
1410
1410
|
"data-testid": g,
|
|
1411
1411
|
"aria-disabled": l || a,
|
|
1412
|
-
children:
|
|
1412
|
+
children: F[Z](null)
|
|
1413
1413
|
}
|
|
1414
1414
|
);
|
|
1415
1415
|
}), I2 = (t) => {
|
|
@@ -1447,13 +1447,13 @@ const B4 = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
1447
1447
|
cutoutBackground: m
|
|
1448
1448
|
} = t;
|
|
1449
1449
|
return r.length === 0 ? null : /* @__PURE__ */ o.jsxs($3, { size: i, overlap: C, shape: a, cutoutBackground: m, children: [
|
|
1450
|
-
r.map((
|
|
1451
|
-
const { wrapper: d, ...u } =
|
|
1450
|
+
r.map((L, f) => {
|
|
1451
|
+
const { wrapper: d, ...u } = L;
|
|
1452
1452
|
if (d) {
|
|
1453
1453
|
const E = d;
|
|
1454
|
-
return /* @__PURE__ */ o.jsx(E, { children: /* @__PURE__ */ o.jsx(I2, { ...u }) }, M2(
|
|
1454
|
+
return /* @__PURE__ */ o.jsx(E, { children: /* @__PURE__ */ o.jsx(I2, { ...u }) }, M2(L) + f);
|
|
1455
1455
|
}
|
|
1456
|
-
return /* @__PURE__ */ o.jsx(I2, { ...u }, M2(
|
|
1456
|
+
return /* @__PURE__ */ o.jsx(I2, { ...u }, M2(L) + f);
|
|
1457
1457
|
}),
|
|
1458
1458
|
l > 0 && /* @__PURE__ */ o.jsx(N3, { count: l, ...c })
|
|
1459
1459
|
] });
|
|
@@ -1541,7 +1541,7 @@ function z4({
|
|
|
1541
1541
|
open: t,
|
|
1542
1542
|
onOpenChange: a,
|
|
1543
1543
|
placement: l
|
|
1544
|
-
}),
|
|
1544
|
+
}), L = N4(i), { isMounted: f, styles: d } = j3(c, {
|
|
1545
1545
|
duration: 200,
|
|
1546
1546
|
common: {
|
|
1547
1547
|
transitionProperty: "opacity, transform",
|
|
@@ -1550,7 +1550,7 @@ function z4({
|
|
|
1550
1550
|
position: "fixed",
|
|
1551
1551
|
opacity: 0
|
|
1552
1552
|
},
|
|
1553
|
-
...
|
|
1553
|
+
...L
|
|
1554
1554
|
}), u = O3(c, {
|
|
1555
1555
|
escapeKey: !C,
|
|
1556
1556
|
outsidePress: !1
|
|
@@ -1579,7 +1579,7 @@ function q4({
|
|
|
1579
1579
|
disableEscapeKey: C = !1,
|
|
1580
1580
|
closeOnDrag: a
|
|
1581
1581
|
}) {
|
|
1582
|
-
const { getFloatingProps: l, transitionStyles: c, isMounted: m, context:
|
|
1582
|
+
const { getFloatingProps: l, transitionStyles: c, isMounted: m, context: L, refs: f } = z4({
|
|
1583
1583
|
open: t,
|
|
1584
1584
|
onOpenChange: r,
|
|
1585
1585
|
placement: i,
|
|
@@ -1593,7 +1593,7 @@ function q4({
|
|
|
1593
1593
|
g && (d.current.dragging = !0, d.current.startX = M.clientX, d.current.startY = M.clientY, E(0));
|
|
1594
1594
|
},
|
|
1595
1595
|
[g]
|
|
1596
|
-
),
|
|
1596
|
+
), w = b1(
|
|
1597
1597
|
(M) => {
|
|
1598
1598
|
if (!d.current.dragging || !g) return;
|
|
1599
1599
|
const V = M.clientX - d.current.startX, Z = M.clientY - d.current.startY;
|
|
@@ -1646,21 +1646,21 @@ function q4({
|
|
|
1646
1646
|
...M,
|
|
1647
1647
|
onPointerDown: v,
|
|
1648
1648
|
onPointerUp: k,
|
|
1649
|
-
onPointerMove:
|
|
1649
|
+
onPointerMove: w,
|
|
1650
1650
|
onPointerCancel: k
|
|
1651
1651
|
// Отмена (например, уход фокуса) также завершает перетаскивание
|
|
1652
1652
|
} : M),
|
|
1653
|
-
[l, v,
|
|
1653
|
+
[l, v, w, k, g]
|
|
1654
1654
|
);
|
|
1655
1655
|
return K1(
|
|
1656
1656
|
() => ({
|
|
1657
1657
|
isMounted: m,
|
|
1658
|
-
context:
|
|
1658
|
+
context: L,
|
|
1659
1659
|
refs: f,
|
|
1660
1660
|
transitionStyles: b,
|
|
1661
1661
|
getFloatingProps: S
|
|
1662
1662
|
}),
|
|
1663
|
-
[m, b, S,
|
|
1663
|
+
[m, b, S, L, f]
|
|
1664
1664
|
);
|
|
1665
1665
|
}
|
|
1666
1666
|
const z3 = t1((t, r) => {
|
|
@@ -1671,7 +1671,7 @@ const z3 = t1((t, r) => {
|
|
|
1671
1671
|
overlayProps: l,
|
|
1672
1672
|
portalProps: c,
|
|
1673
1673
|
focusManagement: m,
|
|
1674
|
-
children:
|
|
1674
|
+
children: L,
|
|
1675
1675
|
disableOutsideClick: f = !1,
|
|
1676
1676
|
disableEscapeKey: d = !1,
|
|
1677
1677
|
disableOverlay: u = !1,
|
|
@@ -1690,10 +1690,10 @@ const z3 = t1((t, r) => {
|
|
|
1690
1690
|
placement: i,
|
|
1691
1691
|
disableEscapeKey: d,
|
|
1692
1692
|
closeOnDrag: E
|
|
1693
|
-
}), { isMounted:
|
|
1693
|
+
}), { isMounted: w, transitionStyles: k } = v, b = B9([r, v.refs.setFloating]), S = () => {
|
|
1694
1694
|
f || a(!1);
|
|
1695
1695
|
};
|
|
1696
|
-
return
|
|
1696
|
+
return w ? (
|
|
1697
1697
|
// `FloatingPortal` рендерит диалог в корне `document.body`,
|
|
1698
1698
|
// чтобы избежать проблем с z-index и overflow.
|
|
1699
1699
|
/* @__PURE__ */ o.jsxs(W3, { ...c, children: [
|
|
@@ -1729,7 +1729,7 @@ const z3 = t1((t, r) => {
|
|
|
1729
1729
|
"data-testid": _,
|
|
1730
1730
|
...v.getFloatingProps(g),
|
|
1731
1731
|
children: [
|
|
1732
|
-
|
|
1732
|
+
L,
|
|
1733
1733
|
E && /* @__PURE__ */ o.jsx(
|
|
1734
1734
|
"div",
|
|
1735
1735
|
{
|
|
@@ -1750,20 +1750,20 @@ const z3 = t1((t, r) => {
|
|
|
1750
1750
|
)
|
|
1751
1751
|
] })
|
|
1752
1752
|
) : null;
|
|
1753
|
-
}), G4 = "
|
|
1753
|
+
}), G4 = "_container_1d51n_1", X4 = "_header_1d51n_21", Y4 = "_withBorder_1d51n_56", K4 = "_drawerHeader_1d51n_60", J4 = "_title_1d51n_40", Q4 = "_subTitle_1d51n_76", e7 = "_leftActionsStack_1d51n_88", t7 = "_rightActionsStack_1d51n_96", n7 = "_closeButton_1d51n_111", r7 = "_content_1d51n_116", o7 = "_footer_1d51n_127", x1 = {
|
|
1754
1754
|
container: G4,
|
|
1755
1755
|
header: X4,
|
|
1756
|
-
"title-actions-actions": "_title-actions-
|
|
1757
|
-
"actions-title-actions": "_actions-title-
|
|
1756
|
+
"title-actions-actions": "_title-actions-actions_1d51n_40",
|
|
1757
|
+
"actions-title-actions": "_actions-title-actions_1d51n_48",
|
|
1758
1758
|
withBorder: Y4,
|
|
1759
1759
|
drawerHeader: K4,
|
|
1760
1760
|
title: J4,
|
|
1761
1761
|
subTitle: Q4,
|
|
1762
1762
|
leftActionsStack: e7,
|
|
1763
1763
|
rightActionsStack: t7,
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1764
|
+
closeButton: n7,
|
|
1765
|
+
content: r7,
|
|
1766
|
+
footer: o7
|
|
1767
1767
|
}, i7 = "_typography_zt7xg_1", l7 = "_disabled_zt7xg_8", C7 = "_primary_zt7xg_13", a7 = "_secondary_zt7xg_18", s7 = "_tertiary_zt7xg_23", c7 = "_accent_zt7xg_28", d7 = "_positive_zt7xg_38", h7 = "_negative_zt7xg_48", m7 = "_warning_zt7xg_58", g7 = "_special_zt7xg_68", p7 = "_contrast_zt7xg_78", r2 = {
|
|
1768
1768
|
typography: i7,
|
|
1769
1769
|
disabled: l7,
|
|
@@ -1797,7 +1797,7 @@ const z3 = t1((t, r) => {
|
|
|
1797
1797
|
"data-testid": l,
|
|
1798
1798
|
as: c,
|
|
1799
1799
|
fontWeight: m = "semibold",
|
|
1800
|
-
disabled:
|
|
1800
|
+
disabled: L = !1,
|
|
1801
1801
|
typographyStyle: f = "primary",
|
|
1802
1802
|
...d
|
|
1803
1803
|
}, u) => {
|
|
@@ -1806,7 +1806,7 @@ const z3 = t1((t, r) => {
|
|
|
1806
1806
|
i1[`typography-${t}-${i}-${m}`],
|
|
1807
1807
|
r2[f],
|
|
1808
1808
|
{
|
|
1809
|
-
[r2.disabled]:
|
|
1809
|
+
[r2.disabled]: L
|
|
1810
1810
|
},
|
|
1811
1811
|
a
|
|
1812
1812
|
);
|
|
@@ -1823,7 +1823,7 @@ const z3 = t1((t, r) => {
|
|
|
1823
1823
|
"data-testid": l,
|
|
1824
1824
|
as: c = "p",
|
|
1825
1825
|
fontWeight: m = "regular",
|
|
1826
|
-
disabled:
|
|
1826
|
+
disabled: L = !1,
|
|
1827
1827
|
typographyStyle: f = "primary",
|
|
1828
1828
|
...d
|
|
1829
1829
|
}, u) => {
|
|
@@ -1832,7 +1832,7 @@ const z3 = t1((t, r) => {
|
|
|
1832
1832
|
i1[`typography-${t}-${i}-${m}`],
|
|
1833
1833
|
r2[f],
|
|
1834
1834
|
{
|
|
1835
|
-
[r2.disabled]:
|
|
1835
|
+
[r2.disabled]: L
|
|
1836
1836
|
},
|
|
1837
1837
|
a
|
|
1838
1838
|
);
|
|
@@ -1912,7 +1912,7 @@ const z3 = t1((t, r) => {
|
|
|
1912
1912
|
placement: l = "default",
|
|
1913
1913
|
rightActionsSlot: c = [],
|
|
1914
1914
|
leftActionsSlot: m = [],
|
|
1915
|
-
closeButton:
|
|
1915
|
+
closeButton: L = { show: !0 },
|
|
1916
1916
|
backButton: f = { show: !1 },
|
|
1917
1917
|
title: d,
|
|
1918
1918
|
subTitle: u,
|
|
@@ -1922,10 +1922,10 @@ const z3 = t1((t, r) => {
|
|
|
1922
1922
|
hideFooterDivider: _ = !1,
|
|
1923
1923
|
classNames: g,
|
|
1924
1924
|
styles: v,
|
|
1925
|
-
headerTemplate:
|
|
1925
|
+
headerTemplate: w,
|
|
1926
1926
|
"data-testid": k,
|
|
1927
1927
|
...b
|
|
1928
|
-
} = t, S = l === "bottom-sheet" ? "actions-title-actions" : "title-actions-actions", M = l === "right-drawer" || l === "left-drawer", V = l === "bottom-sheet" ? { direction: "bottom", threshold: 80 } : t == null ? void 0 : t.closeOnDrag, Z = () => C(!1), B = !!(d || u ||
|
|
1928
|
+
} = t, S = l === "bottom-sheet" ? "actions-title-actions" : "title-actions-actions", M = l === "right-drawer" || l === "left-drawer", V = l === "bottom-sheet" ? { direction: "bottom", threshold: 80 } : t == null ? void 0 : t.closeOnDrag, Z = () => C(!1), B = !!(d || u || L.show || f.show || c.length || m.length), O = d ? `${k || "modal"}-title` : void 0, R = u ? `${k || "modal"}-subtitle` : void 0;
|
|
1929
1929
|
return /* @__PURE__ */ o.jsx(
|
|
1930
1930
|
z3,
|
|
1931
1931
|
{
|
|
@@ -1951,7 +1951,7 @@ const z3 = t1((t, r) => {
|
|
|
1951
1951
|
className: x(
|
|
1952
1952
|
x1.header,
|
|
1953
1953
|
!p && x1.withBorder,
|
|
1954
|
-
x1[
|
|
1954
|
+
x1[w || S],
|
|
1955
1955
|
g == null ? void 0 : g.header,
|
|
1956
1956
|
M && x1.drawerHeader
|
|
1957
1957
|
),
|
|
@@ -1987,17 +1987,17 @@ const z3 = t1((t, r) => {
|
|
|
1987
1987
|
style: v == null ? void 0 : v.rightActionsStack,
|
|
1988
1988
|
children: [
|
|
1989
1989
|
c,
|
|
1990
|
-
|
|
1990
|
+
L.show && /* @__PURE__ */ o.jsx(
|
|
1991
1991
|
f3,
|
|
1992
1992
|
{
|
|
1993
|
-
wrapper:
|
|
1993
|
+
wrapper: L.wrapper,
|
|
1994
1994
|
props: {
|
|
1995
1995
|
mode: "tertiary",
|
|
1996
1996
|
iconLeft: /* @__PURE__ */ o.jsx(L7, { color: "var(--base-graphite-55)" }),
|
|
1997
1997
|
"aria-label": "Close modal",
|
|
1998
1998
|
onClick: Z,
|
|
1999
1999
|
className: x1.closeButton,
|
|
2000
|
-
...
|
|
2000
|
+
...L == null ? void 0 : L.props
|
|
2001
2001
|
}
|
|
2002
2002
|
}
|
|
2003
2003
|
)
|
|
@@ -2168,8 +2168,8 @@ const T7 = (t) => {
|
|
|
2168
2168
|
classNames: l,
|
|
2169
2169
|
children: c,
|
|
2170
2170
|
"data-testid": m,
|
|
2171
|
-
size:
|
|
2172
|
-
} = t, f = I7(
|
|
2171
|
+
size: L = "m"
|
|
2172
|
+
} = t, f = I7(L);
|
|
2173
2173
|
return /* @__PURE__ */ o.jsxs(
|
|
2174
2174
|
"div",
|
|
2175
2175
|
{
|
|
@@ -2209,7 +2209,7 @@ const T7 = (t) => {
|
|
|
2209
2209
|
title: l,
|
|
2210
2210
|
description: c,
|
|
2211
2211
|
children: m,
|
|
2212
|
-
variantAvatarProps:
|
|
2212
|
+
variantAvatarProps: L,
|
|
2213
2213
|
"data-testid": f,
|
|
2214
2214
|
styles: d,
|
|
2215
2215
|
classNames: u,
|
|
@@ -2219,7 +2219,7 @@ const T7 = (t) => {
|
|
|
2219
2219
|
colorScheme: "gray",
|
|
2220
2220
|
variant: "light",
|
|
2221
2221
|
"data-testid": "alert-avatar",
|
|
2222
|
-
...
|
|
2222
|
+
...L
|
|
2223
2223
|
} : {
|
|
2224
2224
|
size: 48,
|
|
2225
2225
|
icon: h,
|
|
@@ -2233,7 +2233,7 @@ const T7 = (t) => {
|
|
|
2233
2233
|
subTitle: e2.subTitle,
|
|
2234
2234
|
children: e2.childrenBlock,
|
|
2235
2235
|
textBlock: e2.textBlock
|
|
2236
|
-
},
|
|
2236
|
+
}, w = {
|
|
2237
2237
|
...u,
|
|
2238
2238
|
iconSlot: x(v.iconSlot, u == null ? void 0 : u.iconSlot),
|
|
2239
2239
|
title: x(v.title, u == null ? void 0 : u.title),
|
|
@@ -2256,7 +2256,7 @@ const T7 = (t) => {
|
|
|
2256
2256
|
{
|
|
2257
2257
|
title: l,
|
|
2258
2258
|
subTitle: c,
|
|
2259
|
-
classNames:
|
|
2259
|
+
classNames: w,
|
|
2260
2260
|
styles: d,
|
|
2261
2261
|
size: "l",
|
|
2262
2262
|
iconSlot: /* @__PURE__ */ o.jsx(T4, { ...g }),
|
|
@@ -2311,7 +2311,7 @@ const T7 = (t) => {
|
|
|
2311
2311
|
label: l,
|
|
2312
2312
|
isHidden: c = !1,
|
|
2313
2313
|
colorScheme: m = "red",
|
|
2314
|
-
size:
|
|
2314
|
+
size: L = 20,
|
|
2315
2315
|
position: f = "top-right",
|
|
2316
2316
|
positionOffset: d = { x: 0, y: 0 },
|
|
2317
2317
|
cutoutBackground: u,
|
|
@@ -2319,7 +2319,7 @@ const T7 = (t) => {
|
|
|
2319
2319
|
className: h,
|
|
2320
2320
|
"data-testid": p = "badge",
|
|
2321
2321
|
..._
|
|
2322
|
-
} = t, { onClick: g, onPointerDown: v } = _, { ref:
|
|
2322
|
+
} = t, { onClick: g, onPointerDown: v } = _, { ref: w, bgColor: k } = z2(), b = u || k, M = !E && (!!g || !!v), V = M1(T1.badge__container, T1[`position-${f}`]), Z = M1(
|
|
2323
2323
|
h,
|
|
2324
2324
|
T1.badge__content,
|
|
2325
2325
|
T1[`color-${m}`],
|
|
@@ -2330,15 +2330,15 @@ const T7 = (t) => {
|
|
|
2330
2330
|
[T1.interactive]: M
|
|
2331
2331
|
}
|
|
2332
2332
|
), B = {
|
|
2333
|
-
"--badge-height": `${
|
|
2333
|
+
"--badge-height": `${L}px`,
|
|
2334
2334
|
"--badge-offset-x": `${d.x}px`,
|
|
2335
2335
|
"--badge-offset-y": `${d.y}px`,
|
|
2336
2336
|
...b && { "--badge-cutout-bg": b },
|
|
2337
2337
|
...a === "transparent" && { "--badge-cutout-bg": "transparent" }
|
|
2338
|
-
}, O = (i == null ? void 0 : i({})) || l, R = (
|
|
2339
|
-
M && (g == null || g(
|
|
2338
|
+
}, O = (i == null ? void 0 : i({})) || l, R = (W) => {
|
|
2339
|
+
M && (g == null || g(W));
|
|
2340
2340
|
};
|
|
2341
|
-
return /* @__PURE__ */ o.jsxs("div", { className: T1.wrapper, ref:
|
|
2341
|
+
return /* @__PURE__ */ o.jsxs("div", { className: T1.wrapper, ref: w, "data-testid": p + "-wrapper", children: [
|
|
2342
2342
|
C,
|
|
2343
2343
|
!c && /* @__PURE__ */ o.jsx(
|
|
2344
2344
|
"span",
|
|
@@ -2395,19 +2395,19 @@ const T7 = (t) => {
|
|
|
2395
2395
|
isLoading: l = !1,
|
|
2396
2396
|
style: c,
|
|
2397
2397
|
className: m,
|
|
2398
|
-
containerProps:
|
|
2398
|
+
containerProps: L,
|
|
2399
2399
|
"data-testid": f = "image",
|
|
2400
2400
|
onError: d,
|
|
2401
2401
|
onLoad: u,
|
|
2402
2402
|
...E
|
|
2403
|
-
} = t, { className: h, ...p } =
|
|
2403
|
+
} = t, { className: h, ...p } = L ?? {}, [_, g] = h1("loading"), v = _ === "error", w = (l || _ === "loading") && !v, k = _ === "loaded" && !l, b = x(
|
|
2404
2404
|
h2.container,
|
|
2405
|
-
{ [h2.loading]:
|
|
2405
|
+
{ [h2.loading]: w && !k, [h2.error]: v && !k },
|
|
2406
2406
|
h
|
|
2407
2407
|
), S = x(
|
|
2408
2408
|
h2.image,
|
|
2409
2409
|
{
|
|
2410
|
-
[h2.loading]:
|
|
2410
|
+
[h2.loading]: w
|
|
2411
2411
|
},
|
|
2412
2412
|
m
|
|
2413
2413
|
), M = b1(
|
|
@@ -2462,7 +2462,7 @@ const T7 = (t) => {
|
|
|
2462
2462
|
style: c,
|
|
2463
2463
|
...p,
|
|
2464
2464
|
children: [
|
|
2465
|
-
|
|
2465
|
+
w && Z.loader,
|
|
2466
2466
|
v && Z.error,
|
|
2467
2467
|
k && Z.image
|
|
2468
2468
|
]
|
|
@@ -2640,7 +2640,7 @@ const T7 = (t) => {
|
|
|
2640
2640
|
pressedStyle: l,
|
|
2641
2641
|
padding: c = !1,
|
|
2642
2642
|
background: m = !1,
|
|
2643
|
-
shadow:
|
|
2643
|
+
shadow: L = !1,
|
|
2644
2644
|
showBorder: f = !1,
|
|
2645
2645
|
borderStyle: d = "neutral",
|
|
2646
2646
|
borderRadius: u,
|
|
@@ -2650,21 +2650,21 @@ const T7 = (t) => {
|
|
|
2650
2650
|
loading: _ = !1,
|
|
2651
2651
|
onClick: g,
|
|
2652
2652
|
onMouseEnter: v,
|
|
2653
|
-
onMouseLeave:
|
|
2653
|
+
onMouseLeave: w,
|
|
2654
2654
|
className: k,
|
|
2655
2655
|
styles: b,
|
|
2656
2656
|
tabIndex: S,
|
|
2657
2657
|
"aria-label": M,
|
|
2658
2658
|
role: V
|
|
2659
2659
|
}) => {
|
|
2660
|
-
const [Z, B] = h1(!1), O = N1.isValidElement(h), R = K1(() => p ? "disabled" : _ ? "loading" : O && Z ? "checked" : "default", [p, _, O, Z]),
|
|
2660
|
+
const [Z, B] = h1(!1), O = N1.isValidElement(h), R = K1(() => p ? "disabled" : _ ? "loading" : O && Z ? "checked" : "default", [p, _, O, Z]), W = t === "button" || !!g, y = b && "boxShadow" in b && b.boxShadow !== void 0, F = M1(
|
|
2661
2661
|
o1.wrapper,
|
|
2662
2662
|
// Состояния
|
|
2663
2663
|
{
|
|
2664
2664
|
[o1.disabled]: p,
|
|
2665
2665
|
[o1.loading]: _,
|
|
2666
|
-
[o1.interactive]:
|
|
2667
|
-
[o1.interactiveWithCustomShadow]:
|
|
2666
|
+
[o1.interactive]: W && !p && !_,
|
|
2667
|
+
[o1.interactiveWithCustomShadow]: W && !p && !_ && y,
|
|
2668
2668
|
[o1.checked]: h
|
|
2669
2669
|
},
|
|
2670
2670
|
// Стили иконки
|
|
@@ -2700,8 +2700,8 @@ const T7 = (t) => {
|
|
|
2700
2700
|
},
|
|
2701
2701
|
// Тени
|
|
2702
2702
|
{
|
|
2703
|
-
[o1.shadowPermanent]:
|
|
2704
|
-
[o1.shadowIncreasesWhenPressed]:
|
|
2703
|
+
[o1.shadowPermanent]: L === "permanent",
|
|
2704
|
+
[o1.shadowIncreasesWhenPressed]: L === "increases-when-pressed"
|
|
2705
2705
|
},
|
|
2706
2706
|
k
|
|
2707
2707
|
), I = M1(o1.iconWrapper, o1[`iconSize${r}`]), T = K1(() => {
|
|
@@ -2710,7 +2710,7 @@ const T7 = (t) => {
|
|
|
2710
2710
|
}, [b, u, c]), D = (e1) => {
|
|
2711
2711
|
!p && !_ && v && v(e1);
|
|
2712
2712
|
}, $ = (e1) => {
|
|
2713
|
-
!p && !_ &&
|
|
2713
|
+
!p && !_ && w && w(e1);
|
|
2714
2714
|
}, X = (e1) => {
|
|
2715
2715
|
!p && !_ && (O && B((S1) => !S1), g && g(e1));
|
|
2716
2716
|
}, K = (e1) => {
|
|
@@ -2721,10 +2721,10 @@ const T7 = (t) => {
|
|
|
2721
2721
|
checkedActive: Z,
|
|
2722
2722
|
isCheckedNode: O,
|
|
2723
2723
|
currentState: R,
|
|
2724
|
-
isInteractive:
|
|
2725
|
-
shouldHideIcon: !!M &&
|
|
2724
|
+
isInteractive: W,
|
|
2725
|
+
shouldHideIcon: !!M && W,
|
|
2726
2726
|
// Классы
|
|
2727
|
-
wrapperClasses:
|
|
2727
|
+
wrapperClasses: F,
|
|
2728
2728
|
iconWrapperClasses: I,
|
|
2729
2729
|
// Стили
|
|
2730
2730
|
inlineStyles: T,
|
|
@@ -2765,7 +2765,7 @@ const T7 = (t) => {
|
|
|
2765
2765
|
hoverStyle: l,
|
|
2766
2766
|
pressedStyle: c,
|
|
2767
2767
|
padding: m = !1,
|
|
2768
|
-
background:
|
|
2768
|
+
background: L = !1,
|
|
2769
2769
|
shadow: f = !1,
|
|
2770
2770
|
showBorder: d = !1,
|
|
2771
2771
|
borderStyle: u = "neutral",
|
|
@@ -2775,7 +2775,7 @@ const T7 = (t) => {
|
|
|
2775
2775
|
disabled: _ = !1,
|
|
2776
2776
|
loading: g = !1,
|
|
2777
2777
|
onClick: v,
|
|
2778
|
-
onMouseEnter:
|
|
2778
|
+
onMouseEnter: w,
|
|
2779
2779
|
onMouseLeave: k,
|
|
2780
2780
|
className: b,
|
|
2781
2781
|
styles: S,
|
|
@@ -2785,8 +2785,8 @@ const T7 = (t) => {
|
|
|
2785
2785
|
"aria-describedby": B,
|
|
2786
2786
|
role: O,
|
|
2787
2787
|
...R
|
|
2788
|
-
},
|
|
2789
|
-
const y = t || (v ? "button" : "div"),
|
|
2788
|
+
}, W) => {
|
|
2789
|
+
const y = t || (v ? "button" : "div"), F = a4("icon"), {
|
|
2790
2790
|
checkedActive: I,
|
|
2791
2791
|
isCheckedNode: T,
|
|
2792
2792
|
currentState: D,
|
|
@@ -2813,7 +2813,7 @@ const T7 = (t) => {
|
|
|
2813
2813
|
hoverStyle: l,
|
|
2814
2814
|
pressedStyle: c,
|
|
2815
2815
|
padding: m,
|
|
2816
|
-
background:
|
|
2816
|
+
background: L,
|
|
2817
2817
|
shadow: f,
|
|
2818
2818
|
showBorder: d,
|
|
2819
2819
|
borderStyle: u,
|
|
@@ -2823,7 +2823,7 @@ const T7 = (t) => {
|
|
|
2823
2823
|
disabled: _,
|
|
2824
2824
|
loading: g,
|
|
2825
2825
|
onClick: v,
|
|
2826
|
-
onMouseEnter:
|
|
2826
|
+
onMouseEnter: w,
|
|
2827
2827
|
onMouseLeave: k,
|
|
2828
2828
|
className: b,
|
|
2829
2829
|
styles: S,
|
|
@@ -2840,7 +2840,7 @@ const T7 = (t) => {
|
|
|
2840
2840
|
size: U1,
|
|
2841
2841
|
"aria-hidden": $ ? !0 : void 0,
|
|
2842
2842
|
role: $ ? void 0 : "img",
|
|
2843
|
-
"aria-label": $ ? void 0 : Z ||
|
|
2843
|
+
"aria-label": $ ? void 0 : Z || F("loading")
|
|
2844
2844
|
}
|
|
2845
2845
|
);
|
|
2846
2846
|
}
|
|
@@ -2862,7 +2862,7 @@ const T7 = (t) => {
|
|
|
2862
2862
|
fill: "currentColor",
|
|
2863
2863
|
"aria-hidden": $ ? !0 : void 0,
|
|
2864
2864
|
role: $ ? void 0 : "img",
|
|
2865
|
-
"aria-label": $ ? void 0 : Z ||
|
|
2865
|
+
"aria-label": $ ? void 0 : Z || F("placeholder"),
|
|
2866
2866
|
children: /* @__PURE__ */ o.jsx("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" })
|
|
2867
2867
|
}
|
|
2868
2868
|
) });
|
|
@@ -2870,7 +2870,7 @@ const T7 = (t) => {
|
|
|
2870
2870
|
C2(),
|
|
2871
2871
|
a2()
|
|
2872
2872
|
] }), C1 = {
|
|
2873
|
-
ref:
|
|
2873
|
+
ref: W,
|
|
2874
2874
|
className: X,
|
|
2875
2875
|
style: G,
|
|
2876
2876
|
onMouseEnter: A,
|
|
@@ -2889,7 +2889,7 @@ const T7 = (t) => {
|
|
|
2889
2889
|
...l2,
|
|
2890
2890
|
...R
|
|
2891
2891
|
};
|
|
2892
|
-
if (p1 &&
|
|
2892
|
+
if (p1 && L !== !1)
|
|
2893
2893
|
return /* @__PURE__ */ o.jsx(
|
|
2894
2894
|
T2,
|
|
2895
2895
|
{
|
|
@@ -2901,7 +2901,7 @@ const T7 = (t) => {
|
|
|
2901
2901
|
children: /* @__PURE__ */ o.jsx(y, { ...C1, children: l1 })
|
|
2902
2902
|
}
|
|
2903
2903
|
);
|
|
2904
|
-
if (p1 &&
|
|
2904
|
+
if (p1 && L === !1) {
|
|
2905
2905
|
const w1 = /* @__PURE__ */ o.jsx(
|
|
2906
2906
|
T2,
|
|
2907
2907
|
{
|
|
@@ -3396,7 +3396,7 @@ const Cm = {}, lC = "_tag_1llsi_1", CC = "_label_1llsi_16", aC = "_iconWrapper_1
|
|
|
3396
3396
|
size: l = "medium",
|
|
3397
3397
|
disabled: c = !1,
|
|
3398
3398
|
showLabel: m = !!C,
|
|
3399
|
-
slotStart:
|
|
3399
|
+
slotStart: L,
|
|
3400
3400
|
slotEnd: f,
|
|
3401
3401
|
slotStartWrapperProps: d = {},
|
|
3402
3402
|
slotEndWrapperProps: u = {},
|
|
@@ -3421,7 +3421,7 @@ const Cm = {}, lC = "_tag_1llsi_1", CC = "_label_1llsi_16", aC = "_iconWrapper_1
|
|
|
3421
3421
|
ref: r,
|
|
3422
3422
|
...h,
|
|
3423
3423
|
children: [
|
|
3424
|
-
|
|
3424
|
+
L && /* @__PURE__ */ o.jsx("span", { className: x([G1.iconWrapper, p]), ..._, children: L }),
|
|
3425
3425
|
m && /* @__PURE__ */ o.jsx("span", { className: x([G1.label]), children: C }),
|
|
3426
3426
|
f && /* @__PURE__ */ o.jsx("span", { className: x([G1.iconWrapper, g]), ...v, children: f })
|
|
3427
3427
|
]
|
|
@@ -3519,7 +3519,7 @@ const Cm = {}, lC = "_tag_1llsi_1", CC = "_label_1llsi_16", aC = "_iconWrapper_1
|
|
|
3519
3519
|
indeterminate: l = !1,
|
|
3520
3520
|
loading: c = !1,
|
|
3521
3521
|
error: m,
|
|
3522
|
-
disabled:
|
|
3522
|
+
disabled: L = !1,
|
|
3523
3523
|
containerClassName: f,
|
|
3524
3524
|
className: d,
|
|
3525
3525
|
containerStyle: u,
|
|
@@ -3529,24 +3529,24 @@ const Cm = {}, lC = "_tag_1llsi_1", CC = "_label_1llsi_16", aC = "_iconWrapper_1
|
|
|
3529
3529
|
tabIndex: _,
|
|
3530
3530
|
onChange: g,
|
|
3531
3531
|
onClick: v,
|
|
3532
|
-
"data-testid":
|
|
3533
|
-
} = t, [k, b] = h1(!1), S = C ?? k, M =
|
|
3532
|
+
"data-testid": w = "checkbox"
|
|
3533
|
+
} = t, [k, b] = h1(!1), S = C ?? k, M = L || c, V = !!m, Z = S || l, B = x(P1.container, P1[a], f), O = x(
|
|
3534
3534
|
P1.checkbox,
|
|
3535
3535
|
P1[a],
|
|
3536
3536
|
{
|
|
3537
3537
|
[P1.error]: V
|
|
3538
3538
|
},
|
|
3539
3539
|
d
|
|
3540
|
-
), R = (
|
|
3541
|
-
M || (b(
|
|
3542
|
-
},
|
|
3543
|
-
if (
|
|
3544
|
-
|
|
3540
|
+
), R = (F) => {
|
|
3541
|
+
M || (b(F.target.checked), g == null || g(F.target.checked, F));
|
|
3542
|
+
}, W = (F) => {
|
|
3543
|
+
if (F.key === "Enter" && !M) {
|
|
3544
|
+
F.preventDefault();
|
|
3545
3545
|
const I = !Z;
|
|
3546
3546
|
b(I), g == null || g(I);
|
|
3547
3547
|
}
|
|
3548
|
-
}, y = (
|
|
3549
|
-
p ||
|
|
3548
|
+
}, y = (F) => {
|
|
3549
|
+
p || F.preventDefault(), v == null || v(F);
|
|
3550
3550
|
};
|
|
3551
3551
|
return /* @__PURE__ */ o.jsxs(
|
|
3552
3552
|
"label",
|
|
@@ -3554,7 +3554,7 @@ const Cm = {}, lC = "_tag_1llsi_1", CC = "_label_1llsi_16", aC = "_iconWrapper_1
|
|
|
3554
3554
|
className: B,
|
|
3555
3555
|
htmlFor: i,
|
|
3556
3556
|
style: u,
|
|
3557
|
-
"data-testid":
|
|
3557
|
+
"data-testid": w,
|
|
3558
3558
|
"data-clickable-label": p,
|
|
3559
3559
|
children: [
|
|
3560
3560
|
/* @__PURE__ */ o.jsx("div", { className: P1.checkboxWrapper, children: /* @__PURE__ */ o.jsxs(
|
|
@@ -3563,12 +3563,12 @@ const Cm = {}, lC = "_tag_1llsi_1", CC = "_label_1llsi_16", aC = "_iconWrapper_1
|
|
|
3563
3563
|
tabIndex: _ || 0,
|
|
3564
3564
|
className: O,
|
|
3565
3565
|
style: E,
|
|
3566
|
-
onKeyDown:
|
|
3566
|
+
onKeyDown: W,
|
|
3567
3567
|
"aria-checked": Z,
|
|
3568
3568
|
"aria-disabled": M,
|
|
3569
3569
|
"aria-invalid": V,
|
|
3570
3570
|
"aria-describedby": m ? `${i}-error` : void 0,
|
|
3571
|
-
"data-testid": `${
|
|
3571
|
+
"data-testid": `${w}-label`,
|
|
3572
3572
|
children: [
|
|
3573
3573
|
/* @__PURE__ */ o.jsx(
|
|
3574
3574
|
"input",
|
|
@@ -3584,7 +3584,7 @@ const Cm = {}, lC = "_tag_1llsi_1", CC = "_label_1llsi_16", aC = "_iconWrapper_1
|
|
|
3584
3584
|
"aria-checked": Z,
|
|
3585
3585
|
"aria-invalid": V,
|
|
3586
3586
|
"aria-describedby": m ? `${i}-error` : void 0,
|
|
3587
|
-
"data-testid": `${
|
|
3587
|
+
"data-testid": `${w}-input`
|
|
3588
3588
|
}
|
|
3589
3589
|
),
|
|
3590
3590
|
/* @__PURE__ */ o.jsx(
|
|
@@ -3595,7 +3595,7 @@ const Cm = {}, lC = "_tag_1llsi_1", CC = "_label_1llsi_16", aC = "_iconWrapper_1
|
|
|
3595
3595
|
isChecked: Z,
|
|
3596
3596
|
isDisabled: M,
|
|
3597
3597
|
indeterminate: l,
|
|
3598
|
-
dataTestId:
|
|
3598
|
+
dataTestId: w
|
|
3599
3599
|
}
|
|
3600
3600
|
)
|
|
3601
3601
|
]
|
|
@@ -3604,7 +3604,7 @@ const Cm = {}, lC = "_tag_1llsi_1", CC = "_label_1llsi_16", aC = "_iconWrapper_1
|
|
|
3604
3604
|
h && /* @__PURE__ */ o.jsx(
|
|
3605
3605
|
"span",
|
|
3606
3606
|
{
|
|
3607
|
-
"data-testid": `${
|
|
3607
|
+
"data-testid": `${w}-label-text`,
|
|
3608
3608
|
"data-clickable-label": p,
|
|
3609
3609
|
className: P1.label,
|
|
3610
3610
|
onClick: y,
|
|
@@ -3761,8 +3761,8 @@ const Cm = {}, lC = "_tag_1llsi_1", CC = "_label_1llsi_16", aC = "_iconWrapper_1
|
|
|
3761
3761
|
l.preventDefault(), l.stopPropagation();
|
|
3762
3762
|
const c = l.currentTarget.closest(`.${U.wrapper}`);
|
|
3763
3763
|
if (!c) return;
|
|
3764
|
-
const m = l.clientY,
|
|
3765
|
-
const E = u.clientY - m, h = Math.min(100,
|
|
3764
|
+
const m = l.clientY, L = c.clientHeight, f = (u) => {
|
|
3765
|
+
const E = u.clientY - m, h = Math.min(100, L), p = Math.max(h, L + E);
|
|
3766
3766
|
c.style.height = `${p}px`;
|
|
3767
3767
|
}, d = () => {
|
|
3768
3768
|
document.removeEventListener("mousemove", f), document.removeEventListener("mouseup", d);
|
|
@@ -3780,7 +3780,7 @@ const Cm = {}, lC = "_tag_1llsi_1", CC = "_label_1llsi_16", aC = "_iconWrapper_1
|
|
|
3780
3780
|
loading: l = !1,
|
|
3781
3781
|
onFocus: c,
|
|
3782
3782
|
onBlur: m,
|
|
3783
|
-
onChange:
|
|
3783
|
+
onChange: L,
|
|
3784
3784
|
onKeyDown: f,
|
|
3785
3785
|
onKeyUp: d,
|
|
3786
3786
|
maxLength: u,
|
|
@@ -3790,7 +3790,7 @@ const Cm = {}, lC = "_tag_1llsi_1", CC = "_label_1llsi_16", aC = "_iconWrapper_1
|
|
|
3790
3790
|
shouldShowFloatingLabelClass: _ = !1,
|
|
3791
3791
|
"aria-invalid": g,
|
|
3792
3792
|
"aria-errormessage": v,
|
|
3793
|
-
id:
|
|
3793
|
+
id: w,
|
|
3794
3794
|
resize: k,
|
|
3795
3795
|
...b
|
|
3796
3796
|
}, S) => {
|
|
@@ -3800,13 +3800,13 @@ const Cm = {}, lC = "_tag_1llsi_1", CC = "_label_1llsi_16", aC = "_iconWrapper_1
|
|
|
3800
3800
|
"textarea",
|
|
3801
3801
|
{
|
|
3802
3802
|
ref: M,
|
|
3803
|
-
id:
|
|
3803
|
+
id: w,
|
|
3804
3804
|
value: i,
|
|
3805
3805
|
placeholder: C,
|
|
3806
3806
|
disabled: a || l,
|
|
3807
3807
|
onFocus: c,
|
|
3808
3808
|
onBlur: m,
|
|
3809
|
-
onChange:
|
|
3809
|
+
onChange: L,
|
|
3810
3810
|
onKeyDown: f,
|
|
3811
3811
|
onKeyUp: d,
|
|
3812
3812
|
maxLength: u,
|
|
@@ -3819,7 +3819,7 @@ const Cm = {}, lC = "_tag_1llsi_1", CC = "_label_1llsi_16", aC = "_iconWrapper_1
|
|
|
3819
3819
|
style: h,
|
|
3820
3820
|
"aria-invalid": g,
|
|
3821
3821
|
"aria-errormessage": v,
|
|
3822
|
-
"aria-describedby": v ? `${
|
|
3822
|
+
"aria-describedby": v ? `${w}-error` : void 0,
|
|
3823
3823
|
tabIndex: 0,
|
|
3824
3824
|
"data-resize": k,
|
|
3825
3825
|
...b
|
|
@@ -3830,13 +3830,13 @@ const Cm = {}, lC = "_tag_1llsi_1", CC = "_label_1llsi_16", aC = "_iconWrapper_1
|
|
|
3830
3830
|
"input",
|
|
3831
3831
|
{
|
|
3832
3832
|
ref: V,
|
|
3833
|
-
id:
|
|
3833
|
+
id: w,
|
|
3834
3834
|
value: i,
|
|
3835
3835
|
placeholder: C,
|
|
3836
3836
|
disabled: a || l,
|
|
3837
3837
|
onFocus: c,
|
|
3838
3838
|
onBlur: m,
|
|
3839
|
-
onChange:
|
|
3839
|
+
onChange: L,
|
|
3840
3840
|
onKeyDown: f,
|
|
3841
3841
|
onKeyUp: d,
|
|
3842
3842
|
maxLength: u,
|
|
@@ -3850,7 +3850,7 @@ const Cm = {}, lC = "_tag_1llsi_1", CC = "_label_1llsi_16", aC = "_iconWrapper_1
|
|
|
3850
3850
|
style: h,
|
|
3851
3851
|
"aria-invalid": g,
|
|
3852
3852
|
"aria-errormessage": v,
|
|
3853
|
-
"aria-describedby": v ? `${
|
|
3853
|
+
"aria-describedby": v ? `${w}-error` : void 0,
|
|
3854
3854
|
tabIndex: 0,
|
|
3855
3855
|
...b
|
|
3856
3856
|
}
|
|
@@ -3870,7 +3870,7 @@ const Cm = {}, lC = "_tag_1llsi_1", CC = "_label_1llsi_16", aC = "_iconWrapper_1
|
|
|
3870
3870
|
className: l,
|
|
3871
3871
|
wrapperProps: c,
|
|
3872
3872
|
wrapperStyles: m,
|
|
3873
|
-
floatingLabelStyles:
|
|
3873
|
+
floatingLabelStyles: L,
|
|
3874
3874
|
prefixStyles: f,
|
|
3875
3875
|
suffixStyles: d,
|
|
3876
3876
|
labelProps: u,
|
|
@@ -3880,7 +3880,7 @@ const Cm = {}, lC = "_tag_1llsi_1", CC = "_label_1llsi_16", aC = "_iconWrapper_1
|
|
|
3880
3880
|
hint: _,
|
|
3881
3881
|
showHint: g = !1,
|
|
3882
3882
|
showHintOnEmpty: v = !1,
|
|
3883
|
-
prefix:
|
|
3883
|
+
prefix: w,
|
|
3884
3884
|
suffix: k,
|
|
3885
3885
|
onSuffixClick: b,
|
|
3886
3886
|
placeholder: S,
|
|
@@ -3890,9 +3890,9 @@ const Cm = {}, lC = "_tag_1llsi_1", CC = "_label_1llsi_16", aC = "_iconWrapper_1
|
|
|
3890
3890
|
helper: B,
|
|
3891
3891
|
id: O,
|
|
3892
3892
|
value: R = "",
|
|
3893
|
-
resize:
|
|
3893
|
+
resize: W,
|
|
3894
3894
|
showGrip: y = !1,
|
|
3895
|
-
...
|
|
3895
|
+
...F
|
|
3896
3896
|
}, I) => {
|
|
3897
3897
|
const T = $2(), D = O || T, $ = g && _ && (Z || v), X = _ && _.length > E3 ? _.substring(0, E3) + "..." : _, K = x(
|
|
3898
3898
|
U.wrapper,
|
|
@@ -3909,18 +3909,18 @@ const Cm = {}, lC = "_tag_1llsi_1", CC = "_label_1llsi_16", aC = "_iconWrapper_1
|
|
|
3909
3909
|
U[r],
|
|
3910
3910
|
Z && U.filled,
|
|
3911
3911
|
V
|
|
3912
|
-
), { handleGripMouseDown: A } = xa(y, C, a,
|
|
3913
|
-
return /* @__PURE__ */ o.jsxs("div", { ref: I, className: U.inputBase, "data-testid": "input-base-wrapper", ...
|
|
3912
|
+
), { handleGripMouseDown: A } = xa(y, C, a, W);
|
|
3913
|
+
return /* @__PURE__ */ o.jsxs("div", { ref: I, className: U.inputBase, "data-testid": "input-base-wrapper", ...F, children: [
|
|
3914
3914
|
/* @__PURE__ */ o.jsxs(
|
|
3915
3915
|
"div",
|
|
3916
3916
|
{
|
|
3917
3917
|
className: K,
|
|
3918
3918
|
style: m,
|
|
3919
|
-
"data-resize":
|
|
3919
|
+
"data-resize": W,
|
|
3920
3920
|
"data-show-grip": y ? "true" : "false",
|
|
3921
3921
|
...c,
|
|
3922
3922
|
children: [
|
|
3923
|
-
|
|
3923
|
+
w && /* @__PURE__ */ o.jsx("label", { htmlFor: D, className: U.leftSection, style: f, children: w }),
|
|
3924
3924
|
k && /* @__PURE__ */ o.jsx(
|
|
3925
3925
|
"label",
|
|
3926
3926
|
{
|
|
@@ -3936,13 +3936,13 @@ const Cm = {}, lC = "_tag_1llsi_1", CC = "_label_1llsi_16", aC = "_iconWrapper_1
|
|
|
3936
3936
|
{
|
|
3937
3937
|
htmlFor: D,
|
|
3938
3938
|
className: G,
|
|
3939
|
-
style:
|
|
3939
|
+
style: L,
|
|
3940
3940
|
...u,
|
|
3941
3941
|
children: S
|
|
3942
3942
|
}
|
|
3943
3943
|
),
|
|
3944
3944
|
t,
|
|
3945
|
-
y && !h && (
|
|
3945
|
+
y && !h && (W === "fixed" || !W) && /* @__PURE__ */ o.jsx(
|
|
3946
3946
|
"div",
|
|
3947
3947
|
{
|
|
3948
3948
|
className: U.gripHandle,
|
|
@@ -3998,7 +3998,7 @@ const k3 = Object.assign(Ha, {
|
|
|
3998
3998
|
loading: l = !1,
|
|
3999
3999
|
placeholder: c,
|
|
4000
4000
|
showLabel: m = !0,
|
|
4001
|
-
labelClassName:
|
|
4001
|
+
labelClassName: L,
|
|
4002
4002
|
helper: f,
|
|
4003
4003
|
prefix: d,
|
|
4004
4004
|
suffix: u,
|
|
@@ -4008,7 +4008,7 @@ const k3 = Object.assign(Ha, {
|
|
|
4008
4008
|
onKeyDown: _,
|
|
4009
4009
|
onSuffixClick: g,
|
|
4010
4010
|
onChange: v,
|
|
4011
|
-
value:
|
|
4011
|
+
value: w = "",
|
|
4012
4012
|
wrapperProps: k,
|
|
4013
4013
|
wrapperStyles: b,
|
|
4014
4014
|
floatingLabelStyles: S,
|
|
@@ -4018,9 +4018,9 @@ const k3 = Object.assign(Ha, {
|
|
|
4018
4018
|
labelProps: B,
|
|
4019
4019
|
helperProps: O,
|
|
4020
4020
|
showLimit: R = !1,
|
|
4021
|
-
maxLength:
|
|
4021
|
+
maxLength: W,
|
|
4022
4022
|
inputProps: y,
|
|
4023
|
-
hint:
|
|
4023
|
+
hint: F,
|
|
4024
4024
|
showHint: I = !1,
|
|
4025
4025
|
showHintOnEmpty: T = !1,
|
|
4026
4026
|
truncate: D = !1,
|
|
@@ -4028,7 +4028,7 @@ const k3 = Object.assign(Ha, {
|
|
|
4028
4028
|
showGrip: X = !1,
|
|
4029
4029
|
...K
|
|
4030
4030
|
}, G) => {
|
|
4031
|
-
const A = $2(), J = E || A, [g1, m1] = h1(
|
|
4031
|
+
const A = $2(), J = E || A, [g1, m1] = h1(w), p1 = w !== void 0 ? w : g1, V1 = (p1 || "").length > 0, y1 = p1 || "", S1 = m && (r === "XL" || t === "textarea") && !d, l2 = b1(
|
|
4032
4032
|
(l1) => {
|
|
4033
4033
|
var C1;
|
|
4034
4034
|
a || l || (h == null || h(), (C1 = y == null ? void 0 : y.onFocus) == null || C1.call(
|
|
@@ -4073,8 +4073,8 @@ const k3 = Object.assign(Ha, {
|
|
|
4073
4073
|
[v, y, a, l]
|
|
4074
4074
|
);
|
|
4075
4075
|
return n1(() => {
|
|
4076
|
-
m1(
|
|
4077
|
-
}, [
|
|
4076
|
+
m1(w || "");
|
|
4077
|
+
}, [w]), /* @__PURE__ */ o.jsx(
|
|
4078
4078
|
k3.Wrapper,
|
|
4079
4079
|
{
|
|
4080
4080
|
ref: G,
|
|
@@ -4091,8 +4091,8 @@ const k3 = Object.assign(Ha, {
|
|
|
4091
4091
|
labelProps: B,
|
|
4092
4092
|
helperProps: O,
|
|
4093
4093
|
showLimit: R,
|
|
4094
|
-
maxLength:
|
|
4095
|
-
hint:
|
|
4094
|
+
maxLength: W,
|
|
4095
|
+
hint: F,
|
|
4096
4096
|
showHint: I,
|
|
4097
4097
|
showHintOnEmpty: T,
|
|
4098
4098
|
prefix: d,
|
|
@@ -4100,7 +4100,7 @@ const k3 = Object.assign(Ha, {
|
|
|
4100
4100
|
onSuffixClick: g,
|
|
4101
4101
|
placeholder: c,
|
|
4102
4102
|
showLabel: m,
|
|
4103
|
-
labelClassName:
|
|
4103
|
+
labelClassName: L,
|
|
4104
4104
|
hasValue: V1,
|
|
4105
4105
|
helper: f,
|
|
4106
4106
|
id: J,
|
|
@@ -4122,7 +4122,7 @@ const k3 = Object.assign(Ha, {
|
|
|
4122
4122
|
onChange: a2,
|
|
4123
4123
|
onKeyDown: _,
|
|
4124
4124
|
onKeyUp: z1,
|
|
4125
|
-
maxLength:
|
|
4125
|
+
maxLength: W,
|
|
4126
4126
|
truncate: D,
|
|
4127
4127
|
"data-empty": !V1,
|
|
4128
4128
|
shouldShowFloatingLabelClass: S1,
|
|
@@ -4304,7 +4304,7 @@ const k3 = Object.assign(Ha, {
|
|
|
4304
4304
|
minLength: l,
|
|
4305
4305
|
autoComplete: c,
|
|
4306
4306
|
autoFocus: m,
|
|
4307
|
-
size:
|
|
4307
|
+
size: L = r1.L,
|
|
4308
4308
|
inputProps: f,
|
|
4309
4309
|
error: d,
|
|
4310
4310
|
disabled: u,
|
|
@@ -4314,7 +4314,7 @@ const k3 = Object.assign(Ha, {
|
|
|
4314
4314
|
suffix: _,
|
|
4315
4315
|
clearable: g = !1,
|
|
4316
4316
|
id: v,
|
|
4317
|
-
showLabel:
|
|
4317
|
+
showLabel: w = !0,
|
|
4318
4318
|
onFocus: k,
|
|
4319
4319
|
onBlur: b,
|
|
4320
4320
|
onSuffixClick: S,
|
|
@@ -4324,19 +4324,19 @@ const k3 = Object.assign(Ha, {
|
|
|
4324
4324
|
hint: B,
|
|
4325
4325
|
showHint: O = !1,
|
|
4326
4326
|
showHintOnEmpty: R = !1,
|
|
4327
|
-
wrapperProps:
|
|
4327
|
+
wrapperProps: W,
|
|
4328
4328
|
labelProps: y,
|
|
4329
|
-
helperProps:
|
|
4329
|
+
helperProps: F,
|
|
4330
4330
|
...I
|
|
4331
4331
|
}, T) => {
|
|
4332
|
-
const D = (t || "").length > 0, $ =
|
|
4332
|
+
const D = (t || "").length > 0, $ = L === r1.XL, X = !!p, K = $ && w && !p, G = g && D && !(u || E), A = () => {
|
|
4333
4333
|
r == null || r(""), M == null || M();
|
|
4334
4334
|
}, J = () => {
|
|
4335
4335
|
G && A(), S == null || S();
|
|
4336
4336
|
}, g1 = G ? /* @__PURE__ */ o.jsx(
|
|
4337
4337
|
q2,
|
|
4338
4338
|
{
|
|
4339
|
-
size:
|
|
4339
|
+
size: L === r1.S || L === r1.M ? "xs" : "sm",
|
|
4340
4340
|
color: "var(--icon-secondary)",
|
|
4341
4341
|
style: { cursor: "pointer" },
|
|
4342
4342
|
"data-testid": "x-icon"
|
|
@@ -4347,11 +4347,11 @@ const k3 = Object.assign(Ha, {
|
|
|
4347
4347
|
autoComplete: c,
|
|
4348
4348
|
autoFocus: m,
|
|
4349
4349
|
...f
|
|
4350
|
-
}, p1 = Ra(
|
|
4350
|
+
}, p1 = Ra(L, K, D, X);
|
|
4351
4351
|
return /* @__PURE__ */ o.jsx(
|
|
4352
4352
|
Y3,
|
|
4353
4353
|
{
|
|
4354
|
-
size:
|
|
4354
|
+
size: L,
|
|
4355
4355
|
error: d,
|
|
4356
4356
|
disabled: u || E,
|
|
4357
4357
|
loading: E,
|
|
@@ -4371,9 +4371,9 @@ const k3 = Object.assign(Ha, {
|
|
|
4371
4371
|
floatingLabelStyles: p1.floatingLabelStyles,
|
|
4372
4372
|
prefixStyles: p1.prefixStyles,
|
|
4373
4373
|
suffixStyles: p1.suffixStyles,
|
|
4374
|
-
wrapperProps:
|
|
4374
|
+
wrapperProps: W,
|
|
4375
4375
|
labelProps: y,
|
|
4376
|
-
helperProps:
|
|
4376
|
+
helperProps: F,
|
|
4377
4377
|
showLimit: !1,
|
|
4378
4378
|
maxLength: a,
|
|
4379
4379
|
inputProps: m1,
|
|
@@ -4517,7 +4517,7 @@ const k3 = Object.assign(Ha, {
|
|
|
4517
4517
|
autoFocus: l,
|
|
4518
4518
|
size: c = Z1.L,
|
|
4519
4519
|
textareaProps: m,
|
|
4520
|
-
error:
|
|
4520
|
+
error: L,
|
|
4521
4521
|
disabled: f,
|
|
4522
4522
|
loading: d,
|
|
4523
4523
|
helper: u,
|
|
@@ -4527,7 +4527,7 @@ const k3 = Object.assign(Ha, {
|
|
|
4527
4527
|
showLabel: _ = !0,
|
|
4528
4528
|
onFocus: g,
|
|
4529
4529
|
onBlur: v,
|
|
4530
|
-
onClear:
|
|
4530
|
+
onClear: w,
|
|
4531
4531
|
onKeyDown: k,
|
|
4532
4532
|
className: b,
|
|
4533
4533
|
rows: S = 1,
|
|
@@ -4537,11 +4537,11 @@ const k3 = Object.assign(Ha, {
|
|
|
4537
4537
|
helperProps: B,
|
|
4538
4538
|
showGrip: O,
|
|
4539
4539
|
minHeight: R,
|
|
4540
|
-
resize:
|
|
4540
|
+
resize: W,
|
|
4541
4541
|
...y
|
|
4542
|
-
},
|
|
4542
|
+
}, F) => {
|
|
4543
4543
|
const I = (t || "").length > 0, T = _ && !!i && (c === Z1.M || R !== 48), D = h && I && !(f || d), $ = () => {
|
|
4544
|
-
r == null || r(""),
|
|
4544
|
+
r == null || r(""), w == null || w();
|
|
4545
4545
|
}, X = () => {
|
|
4546
4546
|
D && $();
|
|
4547
4547
|
}, K = D ? /* @__PURE__ */ o.jsx(
|
|
@@ -4552,20 +4552,20 @@ const k3 = Object.assign(Ha, {
|
|
|
4552
4552
|
style: { cursor: "pointer" },
|
|
4553
4553
|
"data-testid": "x-icon"
|
|
4554
4554
|
}
|
|
4555
|
-
) : E, G = $a(c, R, T && I,
|
|
4555
|
+
) : E, G = $a(c, R, T && I, W), A = Aa(c, R), J = {
|
|
4556
4556
|
rows: S,
|
|
4557
4557
|
minLength: a,
|
|
4558
4558
|
autoFocus: l,
|
|
4559
|
-
resize:
|
|
4559
|
+
resize: W,
|
|
4560
4560
|
...m
|
|
4561
4561
|
};
|
|
4562
4562
|
return /* @__PURE__ */ o.jsx(
|
|
4563
4563
|
Y3,
|
|
4564
4564
|
{
|
|
4565
|
-
ref:
|
|
4565
|
+
ref: F,
|
|
4566
4566
|
component: "textarea",
|
|
4567
4567
|
size: A,
|
|
4568
|
-
error:
|
|
4568
|
+
error: L,
|
|
4569
4569
|
disabled: f || d,
|
|
4570
4570
|
loading: d,
|
|
4571
4571
|
onSuffixClick: X,
|
|
@@ -4591,7 +4591,7 @@ const k3 = Object.assign(Ha, {
|
|
|
4591
4591
|
showLimit: M && (R === 112 || c === Z1.M),
|
|
4592
4592
|
maxLength: C,
|
|
4593
4593
|
inputProps: J,
|
|
4594
|
-
resize:
|
|
4594
|
+
resize: W,
|
|
4595
4595
|
showGrip: O,
|
|
4596
4596
|
...y
|
|
4597
4597
|
}
|
|
@@ -4611,9 +4611,9 @@ const k3 = Object.assign(Ha, {
|
|
|
4611
4611
|
"aria-label": c,
|
|
4612
4612
|
"aria-describedby": m
|
|
4613
4613
|
}) => {
|
|
4614
|
-
const
|
|
4614
|
+
const L = !!r, f = x(
|
|
4615
4615
|
R2.helper,
|
|
4616
|
-
|
|
4616
|
+
L && R2["helper--error"],
|
|
4617
4617
|
a && R2["helper--disabled"],
|
|
4618
4618
|
i
|
|
4619
4619
|
), d = a ? t : r || t;
|
|
@@ -4654,7 +4654,7 @@ const k3 = Object.assign(Ha, {
|
|
|
4654
4654
|
size: l = "large",
|
|
4655
4655
|
loading: c = !1,
|
|
4656
4656
|
error: m,
|
|
4657
|
-
disabled:
|
|
4657
|
+
disabled: L = !1,
|
|
4658
4658
|
checked: f = !1,
|
|
4659
4659
|
containerClassName: d,
|
|
4660
4660
|
className: u,
|
|
@@ -4664,14 +4664,14 @@ const k3 = Object.assign(Ha, {
|
|
|
4664
4664
|
tabIndex: _,
|
|
4665
4665
|
style: g,
|
|
4666
4666
|
containerStyle: v,
|
|
4667
|
-
onChange:
|
|
4667
|
+
onChange: w,
|
|
4668
4668
|
"data-testid": k,
|
|
4669
4669
|
...b
|
|
4670
|
-
} = t, S = !!m, M =
|
|
4671
|
-
M ||
|
|
4672
|
-
},
|
|
4673
|
-
T.key === "Enter" && !M && (T.preventDefault(),
|
|
4674
|
-
}, y = (T) => T.stopPropagation(),
|
|
4670
|
+
} = t, S = !!m, M = L || c, V = h === "all", Z = p === "card", B = H1[`${l}Card`], O = C ?? i, R = (T) => {
|
|
4671
|
+
M || w == null || w(a, T);
|
|
4672
|
+
}, W = (T) => {
|
|
4673
|
+
T.key === "Enter" && !M && (T.preventDefault(), w == null || w(a));
|
|
4674
|
+
}, y = (T) => T.stopPropagation(), F = () => /* @__PURE__ */ o.jsxs(
|
|
4675
4675
|
"div",
|
|
4676
4676
|
{
|
|
4677
4677
|
className: x(
|
|
@@ -4721,10 +4721,10 @@ const k3 = Object.assign(Ha, {
|
|
|
4721
4721
|
[x(H1.container, H1[p], d)]: V,
|
|
4722
4722
|
[B]: V && Z
|
|
4723
4723
|
}),
|
|
4724
|
-
onKeyDown:
|
|
4724
|
+
onKeyDown: W,
|
|
4725
4725
|
...b,
|
|
4726
4726
|
children: [
|
|
4727
|
-
|
|
4727
|
+
F(),
|
|
4728
4728
|
V && E
|
|
4729
4729
|
]
|
|
4730
4730
|
}
|
|
@@ -4756,7 +4756,7 @@ const k3 = Object.assign(Ha, {
|
|
|
4756
4756
|
options: l,
|
|
4757
4757
|
className: c,
|
|
4758
4758
|
radioClassName: m,
|
|
4759
|
-
disabled:
|
|
4759
|
+
disabled: L = !1,
|
|
4760
4760
|
layout: f = "vertical",
|
|
4761
4761
|
"data-testid": d,
|
|
4762
4762
|
...u
|
|
@@ -4776,7 +4776,7 @@ const k3 = Object.assign(Ha, {
|
|
|
4776
4776
|
id: _,
|
|
4777
4777
|
checked: g,
|
|
4778
4778
|
"data-testid": _,
|
|
4779
|
-
disabled:
|
|
4779
|
+
disabled: L || p,
|
|
4780
4780
|
name: C,
|
|
4781
4781
|
value: h,
|
|
4782
4782
|
className: m,
|
|
@@ -4811,9 +4811,9 @@ const k3 = Object.assign(Ha, {
|
|
|
4811
4811
|
size: l = "md",
|
|
4812
4812
|
"data-testid": c = "list",
|
|
4813
4813
|
...m
|
|
4814
|
-
} = t,
|
|
4814
|
+
} = t, L = i === "ordered" ? "ol" : "ul";
|
|
4815
4815
|
return /* @__PURE__ */ o.jsx(
|
|
4816
|
-
|
|
4816
|
+
L,
|
|
4817
4817
|
{
|
|
4818
4818
|
"data-testid": c,
|
|
4819
4819
|
ref: r,
|
|
@@ -4843,14 +4843,14 @@ const k3 = Object.assign(Ha, {
|
|
|
4843
4843
|
className: i,
|
|
4844
4844
|
size: C
|
|
4845
4845
|
}) => {
|
|
4846
|
-
const a = f1(null), [l, c] = h1(!1), [m,
|
|
4846
|
+
const a = f1(null), [l, c] = h1(!1), [m, L] = h1(!1), { ref: f, bgColor: d } = z2(), u = f ?? { current: null }, E = d ?? js, h = r && l, p = r && m, _ = ({ direction: w }) => /* @__PURE__ */ o.jsx(
|
|
4847
4847
|
"svg",
|
|
4848
4848
|
{
|
|
4849
4849
|
height: "12px",
|
|
4850
4850
|
width: "12px",
|
|
4851
4851
|
viewBox: "0 0 185.343 185.343",
|
|
4852
4852
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4853
|
-
children: /* @__PURE__ */ o.jsx("g", { transform:
|
|
4853
|
+
children: /* @__PURE__ */ o.jsx("g", { transform: w === "left" ? "scale(-1,1) translate(-185.343,0)" : void 0, children: /* @__PURE__ */ o.jsx(
|
|
4854
4854
|
"path",
|
|
4855
4855
|
{
|
|
4856
4856
|
fill: "currentColor",
|
|
@@ -4859,29 +4859,29 @@ const k3 = Object.assign(Ha, {
|
|
|
4859
4859
|
) })
|
|
4860
4860
|
}
|
|
4861
4861
|
), g = () => {
|
|
4862
|
-
const
|
|
4863
|
-
if (!
|
|
4864
|
-
const k = Math.round(
|
|
4865
|
-
c(k > 0),
|
|
4866
|
-
}, v = (
|
|
4862
|
+
const w = a.current;
|
|
4863
|
+
if (!w) return;
|
|
4864
|
+
const k = Math.round(w.scrollLeft), b = Math.round(w.scrollLeft + w.clientWidth), S = Math.round(w.scrollWidth);
|
|
4865
|
+
c(k > 0), L(b < S);
|
|
4866
|
+
}, v = (w) => {
|
|
4867
4867
|
const k = a.current;
|
|
4868
4868
|
if (!k) return;
|
|
4869
4869
|
const b = k.clientWidth;
|
|
4870
|
-
k.scrollBy({ left:
|
|
4870
|
+
k.scrollBy({ left: w === "left" ? -b : b, behavior: "smooth" });
|
|
4871
4871
|
};
|
|
4872
4872
|
return n1(() => {
|
|
4873
|
-
const
|
|
4874
|
-
if (!
|
|
4873
|
+
const w = a.current;
|
|
4874
|
+
if (!w) return;
|
|
4875
4875
|
const k = (b) => {
|
|
4876
|
-
Math.abs(b.deltaX) > Math.abs(b.deltaY) ||
|
|
4876
|
+
Math.abs(b.deltaX) > Math.abs(b.deltaY) || w.scrollWidth > w.clientWidth && (b.preventDefault(), w.scrollBy({ left: b.deltaY, behavior: "auto" }));
|
|
4877
4877
|
};
|
|
4878
|
-
return
|
|
4878
|
+
return w.addEventListener("wheel", k, { passive: !1 }), () => w.removeEventListener("wheel", k);
|
|
4879
4879
|
}, []), n1(() => {
|
|
4880
4880
|
g();
|
|
4881
|
-
const
|
|
4882
|
-
if (
|
|
4883
|
-
return
|
|
4884
|
-
|
|
4881
|
+
const w = a.current;
|
|
4882
|
+
if (w)
|
|
4883
|
+
return w.addEventListener("scroll", g, { passive: !0 }), window.addEventListener("resize", g), () => {
|
|
4884
|
+
w.removeEventListener("scroll", g), window.removeEventListener("resize", g);
|
|
4885
4885
|
};
|
|
4886
4886
|
}, []), /* @__PURE__ */ o.jsxs("div", { ref: u, className: x(E1.wrapper, i), children: [
|
|
4887
4887
|
h && /* @__PURE__ */ o.jsx(
|
|
@@ -4949,10 +4949,10 @@ const k3 = Object.assign(Ha, {
|
|
|
4949
4949
|
activeTab: i,
|
|
4950
4950
|
onChange: C
|
|
4951
4951
|
}) => {
|
|
4952
|
-
const [a, l] = h1(r), c = i !== void 0, m = c ? i : a,
|
|
4952
|
+
const [a, l] = h1(r), c = i !== void 0, m = c ? i : a, L = (f) => {
|
|
4953
4953
|
c || l(f), C && C(f);
|
|
4954
4954
|
};
|
|
4955
|
-
return /* @__PURE__ */ o.jsx(J3.Provider, { value: { activeTab: m, setTab:
|
|
4955
|
+
return /* @__PURE__ */ o.jsx(J3.Provider, { value: { activeTab: m, setTab: L }, children: t });
|
|
4956
4956
|
}, Js = ({
|
|
4957
4957
|
mode: t,
|
|
4958
4958
|
item: r,
|
|
@@ -4964,79 +4964,80 @@ const k3 = Object.assign(Ha, {
|
|
|
4964
4964
|
onSelectTab: m
|
|
4965
4965
|
}) => {
|
|
4966
4966
|
const {
|
|
4967
|
-
value:
|
|
4967
|
+
value: L,
|
|
4968
4968
|
label: f,
|
|
4969
|
-
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
|
|
4969
|
+
ariaLabel: d,
|
|
4970
|
+
prefix: u,
|
|
4971
|
+
prefixWrapperProps: E = {},
|
|
4972
|
+
postfix: h,
|
|
4973
|
+
postfixWrapperProps: p = {}
|
|
4974
|
+
} = r, { className: _, ...g } = E, { className: v, ...w } = p, k = {
|
|
4974
4975
|
primary: i1["typography-label-3-medium"],
|
|
4975
4976
|
secondary: i1["typography-label-3-regular"],
|
|
4976
4977
|
prefix: i1["typography-label-3-medium"],
|
|
4977
4978
|
postfix: i1["typography-label-3-medium"]
|
|
4978
|
-
},
|
|
4979
|
+
}, b = {
|
|
4979
4980
|
size: Xs,
|
|
4980
4981
|
position: Ys,
|
|
4981
4982
|
...a
|
|
4982
|
-
},
|
|
4983
|
+
}, S = x(L1.tab, L1[t], L1[l], {
|
|
4983
4984
|
[L1.selected]: i,
|
|
4984
4985
|
[L1.disabled]: c
|
|
4985
|
-
}),
|
|
4986
|
+
}), M = x(
|
|
4986
4987
|
L1.tabPrefix,
|
|
4987
|
-
|
|
4988
|
+
_,
|
|
4988
4989
|
L1[t],
|
|
4989
|
-
|
|
4990
|
+
k.prefix,
|
|
4990
4991
|
{
|
|
4991
4992
|
[L1.selected]: i,
|
|
4992
4993
|
[L1.disabled]: c
|
|
4993
4994
|
}
|
|
4994
|
-
),
|
|
4995
|
+
), V = x(
|
|
4995
4996
|
L1.tabPostfix,
|
|
4996
|
-
|
|
4997
|
+
v,
|
|
4997
4998
|
L1[t],
|
|
4998
|
-
|
|
4999
|
+
k.postfix,
|
|
4999
5000
|
{
|
|
5000
5001
|
[L1.selected]: i,
|
|
5001
5002
|
[L1.disabled]: c
|
|
5002
5003
|
}
|
|
5003
|
-
),
|
|
5004
|
-
i || c || (m(
|
|
5005
|
-
},
|
|
5004
|
+
), Z = x(L1.tabLabel, L1[t], k[t]), B = d ?? (typeof f == "string" ? f : void 0), O = (W) => {
|
|
5005
|
+
i || c || (m(L), W.currentTarget.scrollIntoView({ behavior: "smooth", inline: "center", block: "nearest" }));
|
|
5006
|
+
}, R = /* @__PURE__ */ o.jsxs(
|
|
5006
5007
|
"button",
|
|
5007
5008
|
{
|
|
5008
|
-
className:
|
|
5009
|
+
className: S,
|
|
5009
5010
|
role: "tab",
|
|
5010
|
-
"aria-label":
|
|
5011
|
+
"aria-label": B,
|
|
5011
5012
|
"aria-selected": i,
|
|
5012
5013
|
"aria-disabled": c,
|
|
5013
|
-
"aria-controls": `tab-panel-${
|
|
5014
|
-
"data-testid": `tab-item-${
|
|
5015
|
-
onClick:
|
|
5014
|
+
"aria-controls": `tab-panel-${L}`,
|
|
5015
|
+
"data-testid": `tab-item-${L}`,
|
|
5016
|
+
onClick: O,
|
|
5016
5017
|
children: [
|
|
5017
|
-
|
|
5018
|
+
u && /* @__PURE__ */ o.jsx(
|
|
5018
5019
|
"span",
|
|
5019
5020
|
{
|
|
5020
|
-
className:
|
|
5021
|
-
...
|
|
5022
|
-
"data-testid": `tab-prefix-${
|
|
5023
|
-
children:
|
|
5021
|
+
className: M,
|
|
5022
|
+
...g,
|
|
5023
|
+
"data-testid": `tab-prefix-${L}`,
|
|
5024
|
+
children: u
|
|
5024
5025
|
}
|
|
5025
5026
|
),
|
|
5026
|
-
/* @__PURE__ */ o.jsx("span", { className:
|
|
5027
|
-
|
|
5027
|
+
/* @__PURE__ */ o.jsx("span", { className: Z, "data-testid": `tab-label-${L}`, children: f }),
|
|
5028
|
+
h && /* @__PURE__ */ o.jsx(
|
|
5028
5029
|
"span",
|
|
5029
5030
|
{
|
|
5030
|
-
className:
|
|
5031
|
-
...
|
|
5032
|
-
"data-testid": `tab-postfix-${
|
|
5033
|
-
children:
|
|
5031
|
+
className: V,
|
|
5032
|
+
...w,
|
|
5033
|
+
"data-testid": `tab-postfix-${L}`,
|
|
5034
|
+
children: h
|
|
5034
5035
|
}
|
|
5035
5036
|
)
|
|
5036
5037
|
]
|
|
5037
5038
|
}
|
|
5038
5039
|
);
|
|
5039
|
-
return C ? /* @__PURE__ */ o.jsx(T2, { ...
|
|
5040
|
+
return C ? /* @__PURE__ */ o.jsx(T2, { ...b, "data-testid": `tab-badge-${L}`, children: R }) : R;
|
|
5040
5041
|
}, Qs = ({
|
|
5041
5042
|
mode: t,
|
|
5042
5043
|
items: r,
|
|
@@ -5283,7 +5284,7 @@ const k3 = Object.assign(Ha, {
|
|
|
5283
5284
|
classNames: l = {},
|
|
5284
5285
|
onClose: c,
|
|
5285
5286
|
buttons: m,
|
|
5286
|
-
buttonProps:
|
|
5287
|
+
buttonProps: L,
|
|
5287
5288
|
showClose: f
|
|
5288
5289
|
}) => {
|
|
5289
5290
|
const d = ["neutral", "accent"].includes(C) ? "contrast" : "primary", u = a === "m", E = !!(r && u), h = !!(i && u), p = m && !!m.length, _ = !!(f && u) || !f && u && !p, g = a === "xs" ? 4 : 3;
|
|
@@ -5323,12 +5324,12 @@ const k3 = Object.assign(Ha, {
|
|
|
5323
5324
|
children: /* @__PURE__ */ o.jsx(wc, {})
|
|
5324
5325
|
}
|
|
5325
5326
|
),
|
|
5326
|
-
u && p && /* @__PURE__ */ o.jsx("div", { className: k1.buttonStack, children: m.map((v,
|
|
5327
|
-
const k = Mc(
|
|
5327
|
+
u && p && /* @__PURE__ */ o.jsx("div", { className: k1.buttonStack, children: m.map((v, w) => {
|
|
5328
|
+
const k = Mc(w, m.length, C), b = kc(v, k, L), { closeOnClick: S, ...M } = b, V = (Z) => {
|
|
5328
5329
|
var B;
|
|
5329
5330
|
(B = M.onClick) == null || B.call(M, Z), S && (c == null || c());
|
|
5330
5331
|
};
|
|
5331
|
-
return /* @__PURE__ */ o.jsx(g2, { ...M, onClick: V },
|
|
5332
|
+
return /* @__PURE__ */ o.jsx(g2, { ...M, onClick: V }, w);
|
|
5332
5333
|
}) })
|
|
5333
5334
|
] });
|
|
5334
5335
|
}, pm = ({
|
|
@@ -5340,7 +5341,7 @@ const k3 = Object.assign(Ha, {
|
|
|
5340
5341
|
mouseLeaveDelay: l = 0.1,
|
|
5341
5342
|
showArrow: c = !0,
|
|
5342
5343
|
showClose: m = !0,
|
|
5343
|
-
trigger:
|
|
5344
|
+
trigger: L = "hover",
|
|
5344
5345
|
variant: f = "neutral",
|
|
5345
5346
|
size: d = "s",
|
|
5346
5347
|
text: u,
|
|
@@ -5350,14 +5351,14 @@ const k3 = Object.assign(Ha, {
|
|
|
5350
5351
|
buttonProps: _,
|
|
5351
5352
|
onClose: g,
|
|
5352
5353
|
visible: v,
|
|
5353
|
-
onVisibleChange:
|
|
5354
|
+
onVisibleChange: w,
|
|
5354
5355
|
...k
|
|
5355
5356
|
}) => {
|
|
5356
5357
|
const [b, S] = h1(!!v), M = v !== void 0, [V, Z] = h1(!1), B = d === "m" ? fc : _c, O = () => {
|
|
5357
5358
|
M || S(!1), g == null || g();
|
|
5358
5359
|
}, R = (y) => {
|
|
5359
|
-
M || S(y),
|
|
5360
|
-
},
|
|
5360
|
+
M || S(y), w == null || w(y);
|
|
5361
|
+
}, W = t || (d === "m" ? /* @__PURE__ */ o.jsx(
|
|
5361
5362
|
x3,
|
|
5362
5363
|
{
|
|
5363
5364
|
classNames: C,
|
|
@@ -5397,8 +5398,8 @@ const k3 = Object.assign(Ha, {
|
|
|
5397
5398
|
...k.classNames
|
|
5398
5399
|
},
|
|
5399
5400
|
placement: i,
|
|
5400
|
-
overlay:
|
|
5401
|
-
trigger:
|
|
5401
|
+
overlay: W,
|
|
5402
|
+
trigger: L,
|
|
5402
5403
|
mouseEnterDelay: a,
|
|
5403
5404
|
mouseLeaveDelay: l,
|
|
5404
5405
|
motion: { motionName: "tooltipMotion" },
|
|
@@ -5459,7 +5460,7 @@ const k3 = Object.assign(Ha, {
|
|
|
5459
5460
|
segments: l,
|
|
5460
5461
|
stretched: c,
|
|
5461
5462
|
disabled: m = !1,
|
|
5462
|
-
mode:
|
|
5463
|
+
mode: L = "label",
|
|
5463
5464
|
onChange: f,
|
|
5464
5465
|
...d
|
|
5465
5466
|
} = t, u = $2(), [E, h] = h1(i || l[0].value), [p, _] = h1({ width: 0, left: 0, height: 0 }), g = f1(null);
|
|
@@ -5467,7 +5468,7 @@ const k3 = Object.assign(Ha, {
|
|
|
5467
5468
|
C != null && h(C);
|
|
5468
5469
|
}, [C]), S3(() => {
|
|
5469
5470
|
v();
|
|
5470
|
-
}, [E, l, a, c,
|
|
5471
|
+
}, [E, l, a, c, L]);
|
|
5471
5472
|
const v = () => {
|
|
5472
5473
|
if (!(g != null && g.current)) return;
|
|
5473
5474
|
const k = g.current.querySelector(
|
|
@@ -5478,7 +5479,7 @@ const k3 = Object.assign(Ha, {
|
|
|
5478
5479
|
left: k.offsetLeft,
|
|
5479
5480
|
height: k.offsetHeight
|
|
5480
5481
|
});
|
|
5481
|
-
},
|
|
5482
|
+
}, w = (k) => {
|
|
5482
5483
|
m || (h(k), f == null || f(k));
|
|
5483
5484
|
};
|
|
5484
5485
|
return (l == null ? void 0 : l.length) === 0 ? null : /* @__PURE__ */ o.jsxs(
|
|
@@ -5487,7 +5488,7 @@ const k3 = Object.assign(Ha, {
|
|
|
5487
5488
|
className: x(
|
|
5488
5489
|
$1.segmentedControl,
|
|
5489
5490
|
$1[a],
|
|
5490
|
-
$1[
|
|
5491
|
+
$1[L],
|
|
5491
5492
|
{
|
|
5492
5493
|
[$1.stretched]: c,
|
|
5493
5494
|
[$1.disabled]: m
|
|
@@ -5500,7 +5501,7 @@ const k3 = Object.assign(Ha, {
|
|
|
5500
5501
|
...d,
|
|
5501
5502
|
children: [
|
|
5502
5503
|
l == null ? void 0 : l.map(({ label: k, value: b, containerProps: S = {} }, M) => {
|
|
5503
|
-
const { className: V, ...Z } = S, B = () =>
|
|
5504
|
+
const { className: V, ...Z } = S, B = () => w(b), O = JSON.stringify(b), R = E === b;
|
|
5504
5505
|
return /* @__PURE__ */ o.jsxs(Y1, { children: [
|
|
5505
5506
|
/* @__PURE__ */ o.jsx(
|
|
5506
5507
|
"input",
|
|
@@ -5612,7 +5613,7 @@ const c1 = {
|
|
|
5612
5613
|
selectionStyle: l = "selected",
|
|
5613
5614
|
clearable: c = !1,
|
|
5614
5615
|
error: m,
|
|
5615
|
-
prefixIcon:
|
|
5616
|
+
prefixIcon: L,
|
|
5616
5617
|
postfixTitle: f,
|
|
5617
5618
|
disabled: d = !1,
|
|
5618
5619
|
open: u,
|
|
@@ -5620,7 +5621,7 @@ const c1 = {
|
|
|
5620
5621
|
classNames: h = {},
|
|
5621
5622
|
styles: p = {}
|
|
5622
5623
|
}) => {
|
|
5623
|
-
const _ = !!t, g = !!C, v = !!m,
|
|
5624
|
+
const _ = !!t, g = !!C, v = !!m, w = l === "applied", k = !!i && (!v || d) || v && !d, b = (v && !d ? m : i) || "", S = v && !d, M = id(r, _), V = g && M === o2.FLOATING, Z = M === o2.HIDDEN, B = x(
|
|
5624
5625
|
c1["trigger-wrapper"],
|
|
5625
5626
|
{ [c1["trigger-stretched"]]: a },
|
|
5626
5627
|
h.wrapper
|
|
@@ -5629,7 +5630,7 @@ const c1 = {
|
|
|
5629
5630
|
c1[`trigger-container-size-${r}`],
|
|
5630
5631
|
{
|
|
5631
5632
|
[c1["trigger-stretched"]]: a,
|
|
5632
|
-
[c1["trigger-container-applied"]]:
|
|
5633
|
+
[c1["trigger-container-applied"]]: w && _,
|
|
5633
5634
|
[c1["trigger-container-error"]]: v && !d,
|
|
5634
5635
|
[c1["trigger-container-open"]]: u,
|
|
5635
5636
|
[c1["trigger-container-floating"]]: V
|
|
@@ -5641,19 +5642,19 @@ const c1 = {
|
|
|
5641
5642
|
[c1["trigger-content-container-floating"]]: V
|
|
5642
5643
|
},
|
|
5643
5644
|
h.triggerContent
|
|
5644
|
-
),
|
|
5645
|
+
), W = x(
|
|
5645
5646
|
c1["trigger-label"],
|
|
5646
5647
|
{
|
|
5647
5648
|
[c1["trigger-label-floating"]]: V,
|
|
5648
5649
|
[c1["trigger-label-hidden"]]: Z
|
|
5649
5650
|
},
|
|
5650
5651
|
h.label
|
|
5651
|
-
), y = x(c1["trigger-content"], h.content),
|
|
5652
|
+
), y = x(c1["trigger-content"], h.content), F = x(c1["trigger-postfix"], h.postfixTitle), I = x(c1["trigger-chevron-icon"], h.chevronIcon), T = x(
|
|
5652
5653
|
c1["trigger-prefix-icon"],
|
|
5653
5654
|
h.prefixIconContainer
|
|
5654
5655
|
), D = x(c1["trigger-clear-icon"], h.clearIcon), $ = (A) => {
|
|
5655
5656
|
A == null || A.stopPropagation(), E == null || E();
|
|
5656
|
-
}, G = _ && u && (l === "selected" && c || l === "applied") || _ && !u && (
|
|
5657
|
+
}, G = _ && u && (l === "selected" && c || l === "applied") || _ && !u && (w || l === "selected" && c);
|
|
5657
5658
|
return /* @__PURE__ */ o.jsxs("div", { className: B, style: p.wrapper, children: [
|
|
5658
5659
|
/* @__PURE__ */ o.jsxs(
|
|
5659
5660
|
"button",
|
|
@@ -5668,13 +5669,13 @@ const c1 = {
|
|
|
5668
5669
|
disabled: d,
|
|
5669
5670
|
type: "button",
|
|
5670
5671
|
children: [
|
|
5671
|
-
|
|
5672
|
+
L && r !== "XL" && /* @__PURE__ */ o.jsx("div", { className: T, style: p.prefixIconContainer, children: L }),
|
|
5672
5673
|
/* @__PURE__ */ o.jsxs("div", { className: R, style: p.triggerContent, children: [
|
|
5673
5674
|
g && /* @__PURE__ */ o.jsx(
|
|
5674
5675
|
X1.Label,
|
|
5675
5676
|
{
|
|
5676
5677
|
"data-testid": "trigger-label",
|
|
5677
|
-
className:
|
|
5678
|
+
className: W,
|
|
5678
5679
|
style: p.label,
|
|
5679
5680
|
size: ld(r, V),
|
|
5680
5681
|
as: "span",
|
|
@@ -5699,7 +5700,7 @@ const c1 = {
|
|
|
5699
5700
|
X1.Label,
|
|
5700
5701
|
{
|
|
5701
5702
|
"data-testid": "trigger-postfix",
|
|
5702
|
-
className:
|
|
5703
|
+
className: F,
|
|
5703
5704
|
style: p.postfixTitle,
|
|
5704
5705
|
size: b3(r),
|
|
5705
5706
|
disabled: d,
|
|
@@ -5794,27 +5795,27 @@ const c1 = {
|
|
|
5794
5795
|
swiping: l,
|
|
5795
5796
|
startX: c,
|
|
5796
5797
|
startY: m,
|
|
5797
|
-
currentX:
|
|
5798
|
+
currentX: L,
|
|
5798
5799
|
currentY: f
|
|
5799
5800
|
}) => {
|
|
5800
5801
|
n1(() => {
|
|
5801
5802
|
const d = t.current;
|
|
5802
5803
|
if (!d || !r) return;
|
|
5803
5804
|
const u = (p) => {
|
|
5804
|
-
p.target instanceof Element && p.target.closest("button") || (l.current = !0, c.current = p.touches[0].clientX, m.current = p.touches[0].clientY,
|
|
5805
|
+
p.target instanceof Element && p.target.closest("button") || (l.current = !0, c.current = p.touches[0].clientX, m.current = p.touches[0].clientY, L.current = c.current, f.current = m.current, d.style.animation = "none", d.style.transition = "none");
|
|
5805
5806
|
}, E = (p) => {
|
|
5806
5807
|
if (!l.current) return;
|
|
5807
|
-
|
|
5808
|
-
const _ =
|
|
5808
|
+
L.current = p.touches[0].clientX, f.current = p.touches[0].clientY;
|
|
5809
|
+
const _ = L.current - c.current, g = f.current - m.current, v = Math.abs(_), w = Math.abs(g), k = v > w ? _ : 0, b = w >= v ? g : 0, S = Math.sqrt(_ ** 2 + g ** 2), M = Math.max(1 - S / 300, 0);
|
|
5809
5810
|
d.style.transform = `translate(${k}px, ${b}px)`, d.style.opacity = `${M}`;
|
|
5810
5811
|
}, h = () => {
|
|
5811
5812
|
if (!l.current) return;
|
|
5812
5813
|
l.current = !1;
|
|
5813
|
-
const p =
|
|
5814
|
+
const p = L.current - c.current, _ = f.current - m.current, g = Math.abs(p), v = Math.abs(_), w = d.offsetWidth, k = d.offsetHeight;
|
|
5814
5815
|
let b = !1;
|
|
5815
|
-
if (g > 2 / 3 *
|
|
5816
|
+
if (g > 2 / 3 * w && (b = !0), b || (_ < 0 && v > k / 2 && (b = !0), _ > 0 && v > k && (b = !0)), b) {
|
|
5816
5817
|
a("swipe"), C(!0), d.style.transition = "";
|
|
5817
|
-
const S = p > 0 ?
|
|
5818
|
+
const S = p > 0 ? w : -w, M = _ > 0 ? k : -k;
|
|
5818
5819
|
d.style.transform = `translate(${S}px, ${M}px)`, d.style.opacity = "0", setTimeout(() => i("swipe"), t9.swipe);
|
|
5819
5820
|
} else
|
|
5820
5821
|
C(!1), a(void 0), d.style.transition = "", d.style.transform = "translate(0px, 0px)", d.style.opacity = "1";
|
|
@@ -5999,7 +6000,7 @@ const md = "_stack_1sg4d_1", gd = "_local_1sg4d_19", pd = "_snackWrapper_1sg4d_2
|
|
|
5999
6000
|
onClose: l,
|
|
6000
6001
|
autoHideDuration: c = 6e3,
|
|
6001
6002
|
disableAutoHide: m = !1,
|
|
6002
|
-
showButtonClose:
|
|
6003
|
+
showButtonClose: L = !0,
|
|
6003
6004
|
showIcon: f = !0,
|
|
6004
6005
|
content: d,
|
|
6005
6006
|
classNameSnackbarRoot: u,
|
|
@@ -6009,7 +6010,7 @@ const md = "_stack_1sg4d_1", gd = "_local_1sg4d_19", pd = "_snackWrapper_1sg4d_2
|
|
|
6009
6010
|
linkButtonProps: _,
|
|
6010
6011
|
closeOnLinkClick: g = !0,
|
|
6011
6012
|
"data-testid": v = "snackbar"
|
|
6012
|
-
} = t,
|
|
6013
|
+
} = t, w = f1(null), k = f1(null), [b, S] = h1(!1), [M, V] = h1(!1), [Z, B] = h1(), O = f1(0), R = f1(0), W = f1(0), y = f1(0), F = f1(!1), I = f1(null), T = (A) => {
|
|
6013
6014
|
clearTimeout(I.current || 0), I.current = null;
|
|
6014
6015
|
const J = h ? sd[A] : t9[A];
|
|
6015
6016
|
A === "swipe" || (V(!0), B(A)), I.current = setTimeout(() => {
|
|
@@ -6022,10 +6023,10 @@ const md = "_stack_1sg4d_1", gd = "_local_1sg4d_19", pd = "_snackWrapper_1sg4d_2
|
|
|
6022
6023
|
onClose: T,
|
|
6023
6024
|
setExiting: V,
|
|
6024
6025
|
setExitReason: B,
|
|
6025
|
-
swiping:
|
|
6026
|
+
swiping: F,
|
|
6026
6027
|
startX: O,
|
|
6027
6028
|
startY: R,
|
|
6028
|
-
currentX:
|
|
6029
|
+
currentX: W,
|
|
6029
6030
|
currentY: y
|
|
6030
6031
|
}), n1(() => {
|
|
6031
6032
|
p && T("close");
|
|
@@ -6037,7 +6038,7 @@ const md = "_stack_1sg4d_1", gd = "_local_1sg4d_19", pd = "_snackWrapper_1sg4d_2
|
|
|
6037
6038
|
}, [i, m, C, c]), n1(() => {
|
|
6038
6039
|
i && (V(!1), B(void 0));
|
|
6039
6040
|
}, [i]), n1(() => {
|
|
6040
|
-
const A =
|
|
6041
|
+
const A = w.current;
|
|
6041
6042
|
A && requestAnimationFrame(() => {
|
|
6042
6043
|
const J = parseFloat(getComputedStyle(A).lineHeight), g1 = A.offsetHeight, m1 = Math.round(g1 / J);
|
|
6043
6044
|
S(m1 > 1);
|
|
@@ -6096,7 +6097,7 @@ const md = "_stack_1sg4d_1", gd = "_local_1sg4d_19", pd = "_snackWrapper_1sg4d_2
|
|
|
6096
6097
|
X1.Label,
|
|
6097
6098
|
{
|
|
6098
6099
|
className: u1.contentText,
|
|
6099
|
-
ref:
|
|
6100
|
+
ref: w,
|
|
6100
6101
|
typographyStyle: "contrast",
|
|
6101
6102
|
children: d
|
|
6102
6103
|
}
|
|
@@ -6119,7 +6120,7 @@ const md = "_stack_1sg4d_1", gd = "_local_1sg4d_19", pd = "_snackWrapper_1sg4d_2
|
|
|
6119
6120
|
]
|
|
6120
6121
|
}
|
|
6121
6122
|
),
|
|
6122
|
-
|
|
6123
|
+
L && /* @__PURE__ */ o.jsx(
|
|
6123
6124
|
g2,
|
|
6124
6125
|
{
|
|
6125
6126
|
iconLeft: /* @__PURE__ */ o.jsx(Fd, {}),
|
|
@@ -6151,7 +6152,7 @@ const md = "_stack_1sg4d_1", gd = "_local_1sg4d_19", pd = "_snackWrapper_1sg4d_2
|
|
|
6151
6152
|
const m = (h) => h.map((p, _) => {
|
|
6152
6153
|
const g = (h.length - 1 - _) * -8, v = h.length > 1;
|
|
6153
6154
|
v && !p.wasInStack && (p.wasInStack = !0);
|
|
6154
|
-
const
|
|
6155
|
+
const w = p.wasInStack || v ? "fix" : p.mode;
|
|
6155
6156
|
return /* @__PURE__ */ o.jsx(
|
|
6156
6157
|
"div",
|
|
6157
6158
|
{
|
|
@@ -6166,7 +6167,7 @@ const md = "_stack_1sg4d_1", gd = "_local_1sg4d_19", pd = "_snackWrapper_1sg4d_2
|
|
|
6166
6167
|
...p,
|
|
6167
6168
|
open: !p.exiting,
|
|
6168
6169
|
isStack: v,
|
|
6169
|
-
mode:
|
|
6170
|
+
mode: w,
|
|
6170
6171
|
forceClose: p.exiting,
|
|
6171
6172
|
onClose: () => c(p.id)
|
|
6172
6173
|
}
|
|
@@ -6174,8 +6175,8 @@ const md = "_stack_1sg4d_1", gd = "_local_1sg4d_19", pd = "_snackWrapper_1sg4d_2
|
|
|
6174
6175
|
},
|
|
6175
6176
|
p.id
|
|
6176
6177
|
);
|
|
6177
|
-
}),
|
|
6178
|
-
/* @__PURE__ */ o.jsx("div", { className: f2.stack, children: m(
|
|
6178
|
+
}), L = C.visible.filter((h) => !h.parent), f = C.visible.filter((h) => h.parent), d = C3.createPortal(
|
|
6179
|
+
/* @__PURE__ */ o.jsx("div", { className: f2.stack, children: m(L) }),
|
|
6179
6180
|
document.body
|
|
6180
6181
|
), u = f.reduce((h, p) => {
|
|
6181
6182
|
if (!p.parent) return h;
|
|
@@ -6215,7 +6216,7 @@ const md = "_stack_1sg4d_1", gd = "_local_1sg4d_19", pd = "_snackWrapper_1sg4d_2
|
|
|
6215
6216
|
length: l,
|
|
6216
6217
|
thickness: c,
|
|
6217
6218
|
"data-testid": m = "divider"
|
|
6218
|
-
} = t,
|
|
6219
|
+
} = t, L = i ? Ud(i) : void 0, f = P2(l), d = P2(c), u = L ? { margin: L } : {}, E = {};
|
|
6219
6220
|
return f && (E["--divider-length"] = f), d && (E["--divider-thickness"] = d), /* @__PURE__ */ o.jsx(
|
|
6220
6221
|
"hr",
|
|
6221
6222
|
{
|
|
@@ -6275,7 +6276,7 @@ const md = "_stack_1sg4d_1", gd = "_local_1sg4d_19", pd = "_snackWrapper_1sg4d_2
|
|
|
6275
6276
|
style: a,
|
|
6276
6277
|
dividerBehavior: l
|
|
6277
6278
|
}) => {
|
|
6278
|
-
const [c, m] = h1(!1),
|
|
6279
|
+
const [c, m] = h1(!1), L = f1(null), f = x(
|
|
6279
6280
|
F1["drop-content"],
|
|
6280
6281
|
i ? F1[`drop-content-with-footer-padding-${r}`] : F1[`drop-content-padding-${r}`],
|
|
6281
6282
|
C
|
|
@@ -6291,11 +6292,11 @@ const md = "_stack_1sg4d_1", gd = "_local_1sg4d_19", pd = "_snackWrapper_1sg4d_2
|
|
|
6291
6292
|
}
|
|
6292
6293
|
})(l);
|
|
6293
6294
|
return n1(() => {
|
|
6294
|
-
const h =
|
|
6295
|
+
const h = L.current;
|
|
6295
6296
|
if (!h) return;
|
|
6296
6297
|
const p = () => {
|
|
6297
6298
|
if (!h) return;
|
|
6298
|
-
const { scrollTop: g, scrollHeight: v, clientHeight:
|
|
6299
|
+
const { scrollTop: g, scrollHeight: v, clientHeight: w } = h, k = g + w >= v - Kd;
|
|
6299
6300
|
m(k);
|
|
6300
6301
|
};
|
|
6301
6302
|
h.addEventListener("scroll", p);
|
|
@@ -6311,7 +6312,7 @@ const md = "_stack_1sg4d_1", gd = "_local_1sg4d_19", pd = "_snackWrapper_1sg4d_2
|
|
|
6311
6312
|
{
|
|
6312
6313
|
role: "dialog",
|
|
6313
6314
|
"data-testid": "drop-content",
|
|
6314
|
-
ref:
|
|
6315
|
+
ref: L,
|
|
6315
6316
|
className: f,
|
|
6316
6317
|
style: a,
|
|
6317
6318
|
children: t
|
|
@@ -6334,7 +6335,7 @@ const md = "_stack_1sg4d_1", gd = "_local_1sg4d_19", pd = "_snackWrapper_1sg4d_2
|
|
|
6334
6335
|
dividerBehavior: l = "auto",
|
|
6335
6336
|
closeOnOutsideClick: c = !0,
|
|
6336
6337
|
dropToggleOffset: m = Yd,
|
|
6337
|
-
closeOnEscape:
|
|
6338
|
+
closeOnEscape: L = !0,
|
|
6338
6339
|
toggleMode: f = "click",
|
|
6339
6340
|
heightBehavior: d = "fixed",
|
|
6340
6341
|
padding: u = "xl",
|
|
@@ -6346,7 +6347,7 @@ const md = "_stack_1sg4d_1", gd = "_local_1sg4d_19", pd = "_snackWrapper_1sg4d_2
|
|
|
6346
6347
|
const {
|
|
6347
6348
|
wrapper: g,
|
|
6348
6349
|
toggle: v,
|
|
6349
|
-
drop:
|
|
6350
|
+
drop: w,
|
|
6350
6351
|
content: k,
|
|
6351
6352
|
footer: b
|
|
6352
6353
|
} = p ?? {}, {
|
|
@@ -6355,14 +6356,14 @@ const md = "_stack_1sg4d_1", gd = "_local_1sg4d_19", pd = "_snackWrapper_1sg4d_2
|
|
|
6355
6356
|
drop: V,
|
|
6356
6357
|
content: Z,
|
|
6357
6358
|
footer: B
|
|
6358
|
-
} = _ ?? {}, O = f === "click", R = f === "hover",
|
|
6359
|
+
} = _ ?? {}, O = f === "click", R = f === "hover", W = d === "auto", { refs: y, floatingStyles: F, placement: I, context: T } = B3({
|
|
6359
6360
|
open: r,
|
|
6360
6361
|
onOpenChange: i,
|
|
6361
6362
|
placement: a,
|
|
6362
6363
|
middleware: [
|
|
6363
6364
|
W9(m),
|
|
6364
6365
|
// Отступ между toggle-ом и drop-ом
|
|
6365
|
-
...
|
|
6366
|
+
...W ? [] : [
|
|
6366
6367
|
F9({
|
|
6367
6368
|
apply({ availableHeight: y1, elements: e1 }) {
|
|
6368
6369
|
Object.assign(e1.floating.style, {
|
|
@@ -6408,13 +6409,13 @@ const md = "_stack_1sg4d_1", gd = "_local_1sg4d_19", pd = "_snackWrapper_1sg4d_2
|
|
|
6408
6409
|
// Не закрывать при клике на триггер
|
|
6409
6410
|
outsidePress: c && O,
|
|
6410
6411
|
// Закрывать при клике вне дропа
|
|
6411
|
-
escapeKey:
|
|
6412
|
+
escapeKey: L,
|
|
6412
6413
|
// Закрывать по ESC
|
|
6413
6414
|
outsidePressEvent: "click"
|
|
6414
6415
|
}), { getReferenceProps: G, getFloatingProps: A } = R3([K, D]), J = !!h, g1 = x(F1["drop-wrapper"], g), m1 = x(F1.toggle, v), p1 = x(
|
|
6415
6416
|
F1.drop,
|
|
6416
6417
|
J ? F1[`drop-with-footer-padding-${u}`] : F1[`drop-padding-${u}`],
|
|
6417
|
-
|
|
6418
|
+
w
|
|
6418
6419
|
), V1 = () => {
|
|
6419
6420
|
i(!r);
|
|
6420
6421
|
};
|
|
@@ -6446,7 +6447,7 @@ const md = "_stack_1sg4d_1", gd = "_local_1sg4d_19", pd = "_snackWrapper_1sg4d_2
|
|
|
6446
6447
|
className: p1,
|
|
6447
6448
|
style: {
|
|
6448
6449
|
...V,
|
|
6449
|
-
...
|
|
6450
|
+
...F,
|
|
6450
6451
|
...X
|
|
6451
6452
|
},
|
|
6452
6453
|
ref: y.setFloating,
|
|
@@ -6587,13 +6588,13 @@ const ih = "_fillStyle_1mamt_1", lh = "_accent_1mamt_2", Ch = "_blue_1mamt_6", a
|
|
|
6587
6588
|
progressStyle: l = "accent",
|
|
6588
6589
|
finishColor: c,
|
|
6589
6590
|
trackColor: m,
|
|
6590
|
-
className:
|
|
6591
|
+
className: L,
|
|
6591
6592
|
classNames: f,
|
|
6592
6593
|
style: d,
|
|
6593
6594
|
"data-testid": u,
|
|
6594
6595
|
"aria-label": E,
|
|
6595
6596
|
"aria-labelledby": h
|
|
6596
|
-
} = t, p = Vh(t), _ = p ? Math.max(1, Math.round(t.segments ?? 4)) : Math.max(1, t.max ?? 100), g = n9(i ?? 0, 0, _), v = g / _,
|
|
6597
|
+
} = t, p = Vh(t), _ = p ? Math.max(1, Math.round(t.segments ?? 4)) : Math.max(1, t.max ?? 100), g = n9(i ?? 0, 0, _), v = g / _, w = g >= _, k = !w || !c, b = r9({
|
|
6597
6598
|
indicatorLabel: C,
|
|
6598
6599
|
formatValue: a,
|
|
6599
6600
|
clampedValue: g,
|
|
@@ -6601,18 +6602,18 @@ const ih = "_fillStyle_1mamt_1", lh = "_accent_1mamt_2", Ch = "_blue_1mamt_6", a
|
|
|
6601
6602
|
}), S = p ? Math.min(_, Math.max(0, Math.floor(g))) : 0, M = typeof b == "string" ? b : void 0, V = i2(l), Z = !!l && !V, B = i2(c), O = !!c && !B, R = i9({
|
|
6602
6603
|
progressStyle: l,
|
|
6603
6604
|
finishColor: c,
|
|
6604
|
-
isFinished:
|
|
6605
|
-
}),
|
|
6605
|
+
isFinished: w
|
|
6606
|
+
}), W = V || w && B, y = {
|
|
6606
6607
|
...d,
|
|
6607
6608
|
...m && { "--progress-track": m },
|
|
6608
6609
|
// Применяем кастомный progressStyle через CSS переменную для несегментированного режима (если не завершено или нет finishColor)
|
|
6609
6610
|
...Z && k && !p && { "--progress-fill": l },
|
|
6610
6611
|
// Применяем кастомный finishColor через CSS переменную для несегментированного режима
|
|
6611
|
-
...
|
|
6612
|
-
},
|
|
6612
|
+
...w && O && !p && { "--progress-fill": c }
|
|
6613
|
+
}, F = {
|
|
6613
6614
|
width: `${Math.round(v * 100)}%`,
|
|
6614
6615
|
// Применяем кастомный finishColor через inline стиль когда завершено
|
|
6615
|
-
...
|
|
6616
|
+
...w && O && { background: c },
|
|
6616
6617
|
// Применяем кастомный progressStyle только если не завершено или если завершено, но нет finishColor
|
|
6617
6618
|
...Z && k && { background: l }
|
|
6618
6619
|
}, I = /* @__PURE__ */ o.jsx(
|
|
@@ -6623,7 +6624,7 @@ const ih = "_fillStyle_1mamt_1", lh = "_accent_1mamt_2", Ch = "_blue_1mamt_6", a
|
|
|
6623
6624
|
children: Array.from({ length: _ }, (T, D) => {
|
|
6624
6625
|
const $ = D < S;
|
|
6625
6626
|
let X;
|
|
6626
|
-
$ && (
|
|
6627
|
+
$ && (w && O ? X = c : Z && k && (X = l));
|
|
6627
6628
|
const K = X ? { background: X } : void 0;
|
|
6628
6629
|
return /* @__PURE__ */ o.jsx(
|
|
6629
6630
|
"div",
|
|
@@ -6643,8 +6644,8 @@ const ih = "_fillStyle_1mamt_1", lh = "_accent_1mamt_2", Ch = "_blue_1mamt_6", a
|
|
|
6643
6644
|
className: x(
|
|
6644
6645
|
d1.container,
|
|
6645
6646
|
d1.fillStyle,
|
|
6646
|
-
{ [d1[R]]:
|
|
6647
|
-
|
|
6647
|
+
{ [d1[R]]: W },
|
|
6648
|
+
L
|
|
6648
6649
|
),
|
|
6649
6650
|
role: "progressbar",
|
|
6650
6651
|
"aria-valuemin": 0,
|
|
@@ -6656,7 +6657,7 @@ const ih = "_fillStyle_1mamt_1", lh = "_accent_1mamt_2", Ch = "_blue_1mamt_6", a
|
|
|
6656
6657
|
"data-testid": u,
|
|
6657
6658
|
style: y,
|
|
6658
6659
|
children: [
|
|
6659
|
-
/* @__PURE__ */ o.jsx("div", { className: d1.bar, "aria-hidden": !0, children: p ? I : /* @__PURE__ */ o.jsx("div", { className: d1.track, children: /* @__PURE__ */ o.jsx("div", { className: d1.fill, style:
|
|
6660
|
+
/* @__PURE__ */ o.jsx("div", { className: d1.bar, "aria-hidden": !0, children: p ? I : /* @__PURE__ */ o.jsx("div", { className: d1.track, children: /* @__PURE__ */ o.jsx("div", { className: d1.fill, style: F }) }) }),
|
|
6660
6661
|
!!b && /* @__PURE__ */ o.jsx("span", { className: x(d1.indicator, i1["typography-label-3-regular"], f == null ? void 0 : f.indicator), children: b })
|
|
6661
6662
|
]
|
|
6662
6663
|
}
|
|
@@ -6671,7 +6672,7 @@ const l9 = t1((t, r) => {
|
|
|
6671
6672
|
strokeWidth: l,
|
|
6672
6673
|
indicatorLabel: c,
|
|
6673
6674
|
formatValue: m,
|
|
6674
|
-
progressStyle:
|
|
6675
|
+
progressStyle: L = "accent",
|
|
6675
6676
|
finishColor: f,
|
|
6676
6677
|
trackColor: d,
|
|
6677
6678
|
className: u,
|
|
@@ -6680,16 +6681,16 @@ const l9 = t1((t, r) => {
|
|
|
6680
6681
|
"data-testid": p,
|
|
6681
6682
|
"aria-label": _,
|
|
6682
6683
|
"aria-labelledby": g
|
|
6683
|
-
} = t, v = Math.max(1, C ?? 100),
|
|
6684
|
+
} = t, v = Math.max(1, C ?? 100), w = n9(i ?? 0, 0, v), k = w / v, b = w >= v, S = !b || !f, M = r9({
|
|
6684
6685
|
indicatorLabel: c,
|
|
6685
6686
|
formatValue: m,
|
|
6686
|
-
clampedValue:
|
|
6687
|
+
clampedValue: w,
|
|
6687
6688
|
total: v
|
|
6688
6689
|
}), V = typeof M == "string" ? M : void 0, Z = Math.max(1, a), B = Math.max(
|
|
6689
6690
|
1,
|
|
6690
6691
|
l ?? Sh(Z)
|
|
6691
|
-
), O = Z / 2, R = Z / 2,
|
|
6692
|
-
progressStyle:
|
|
6692
|
+
), O = Z / 2, R = Z / 2, W = Math.max(0, (Z - B) / 2), y = 2 * Math.PI * W, F = y * (1 - k), I = i2(L), T = !!L && !I, D = i2(f), $ = !!f && !D, X = i9({
|
|
6693
|
+
progressStyle: L,
|
|
6693
6694
|
finishColor: f,
|
|
6694
6695
|
isFinished: b
|
|
6695
6696
|
}), K = I || b && D, G = {
|
|
@@ -6697,7 +6698,7 @@ const l9 = t1((t, r) => {
|
|
|
6697
6698
|
width: Z,
|
|
6698
6699
|
height: Z,
|
|
6699
6700
|
...d && { "--progress-track": d },
|
|
6700
|
-
...T && S && { "--progress-fill":
|
|
6701
|
+
...T && S && { "--progress-fill": L },
|
|
6701
6702
|
...b && $ && { "--progress-fill": f }
|
|
6702
6703
|
}, A = Z !== yh && !!M, J = A ? Bh(Z) : void 0, g1 = jh(J, i1, d1), m1 = A ? /* @__PURE__ */ o.jsx("span", { className: x(d1.circleIndicator, g1, E == null ? void 0 : E.indicator), children: M }) : null;
|
|
6703
6704
|
return /* @__PURE__ */ o.jsxs(
|
|
@@ -6713,7 +6714,7 @@ const l9 = t1((t, r) => {
|
|
|
6713
6714
|
role: "progressbar",
|
|
6714
6715
|
"aria-valuemin": 0,
|
|
6715
6716
|
"aria-valuemax": v,
|
|
6716
|
-
"aria-valuenow":
|
|
6717
|
+
"aria-valuenow": w,
|
|
6717
6718
|
"aria-valuetext": V,
|
|
6718
6719
|
"aria-label": _,
|
|
6719
6720
|
"aria-labelledby": g,
|
|
@@ -6735,7 +6736,7 @@ const l9 = t1((t, r) => {
|
|
|
6735
6736
|
className: d1.circleTrack,
|
|
6736
6737
|
cx: O,
|
|
6737
6738
|
cy: R,
|
|
6738
|
-
r:
|
|
6739
|
+
r: W,
|
|
6739
6740
|
fill: "none",
|
|
6740
6741
|
strokeWidth: B
|
|
6741
6742
|
}
|
|
@@ -6746,11 +6747,11 @@ const l9 = t1((t, r) => {
|
|
|
6746
6747
|
className: d1.circleProgress,
|
|
6747
6748
|
cx: O,
|
|
6748
6749
|
cy: R,
|
|
6749
|
-
r:
|
|
6750
|
+
r: W,
|
|
6750
6751
|
fill: "none",
|
|
6751
6752
|
strokeWidth: B,
|
|
6752
6753
|
strokeDasharray: y,
|
|
6753
|
-
strokeDashoffset:
|
|
6754
|
+
strokeDashoffset: F
|
|
6754
6755
|
}
|
|
6755
6756
|
)
|
|
6756
6757
|
]
|
|
@@ -6796,7 +6797,7 @@ const Em = Object.assign(D2, {
|
|
|
6796
6797
|
loading: l = !1,
|
|
6797
6798
|
error: c,
|
|
6798
6799
|
disabled: m = !1,
|
|
6799
|
-
containerClassName:
|
|
6800
|
+
containerClassName: L,
|
|
6800
6801
|
className: f,
|
|
6801
6802
|
containerStyle: d,
|
|
6802
6803
|
style: u,
|
|
@@ -6806,9 +6807,9 @@ const Em = Object.assign(D2, {
|
|
|
6806
6807
|
children: _,
|
|
6807
6808
|
clickableLabel: g = !0,
|
|
6808
6809
|
onChange: v,
|
|
6809
|
-
"data-testid":
|
|
6810
|
+
"data-testid": w = "switch",
|
|
6810
6811
|
...k
|
|
6811
|
-
} = t, b = m || l, S = !!c, M = l3(W1.container,
|
|
6812
|
+
} = t, b = m || l, S = !!c, M = l3(W1.container, L), V = l3(
|
|
6812
6813
|
W1.switch,
|
|
6813
6814
|
W1[a],
|
|
6814
6815
|
{
|
|
@@ -6837,11 +6838,11 @@ const Em = Object.assign(D2, {
|
|
|
6837
6838
|
isSelected: C,
|
|
6838
6839
|
isDisabled: b,
|
|
6839
6840
|
onChange: v,
|
|
6840
|
-
"data-testid":
|
|
6841
|
+
"data-testid": w,
|
|
6841
6842
|
className: M,
|
|
6842
6843
|
style: d,
|
|
6843
6844
|
children: [
|
|
6844
|
-
/* @__PURE__ */ o.jsx("div", { className: V, style: Z, "data-size": a, "aria-invalid": S, children: /* @__PURE__ */ o.jsx("span", { "data-testid": `${
|
|
6845
|
+
/* @__PURE__ */ o.jsx("div", { className: V, style: Z, "data-size": a, "aria-invalid": S, children: /* @__PURE__ */ o.jsx("span", { "data-testid": `${w}-thumb`, className: W1.thumb, children: b && /* @__PURE__ */ o.jsx(
|
|
6845
6846
|
R1.General.LockFilled,
|
|
6846
6847
|
{
|
|
6847
6848
|
className: W1.thumbIcon,
|