skillgrid 0.0.45 → 0.0.47
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/Tooltip/Tooltip.d.ts +1 -1
- package/dist/index.cjs.js +4 -4
- package/dist/index.es.js +305 -301
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -70,26 +70,26 @@ function b3() {
|
|
|
70
70
|
Y.unshift("Warning: " + M), Function.prototype.apply.call(console[a], console, Y);
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
var b = !1, B = !1, x = !1,
|
|
73
|
+
var b = !1, B = !1, x = !1, V = !1, y = !1, j;
|
|
74
74
|
j = Symbol.for("react.module.reference");
|
|
75
75
|
function O(a) {
|
|
76
|
-
return !!(typeof a == "string" || typeof a == "function" || a === C || a === l ||
|
|
76
|
+
return !!(typeof a == "string" || typeof a == "function" || a === C || a === l || y || a === s || a === v || a === d || V || a === h || b || B || x || typeof a == "object" && a !== null && (a.$$typeof === E || a.$$typeof === _ || a.$$typeof === c || a.$$typeof === g || a.$$typeof === L || // This needs to include all possible module reference object
|
|
77
77
|
// types supported by any Flight configuration anywhere since
|
|
78
78
|
// we don't know which Flight build this will end up being used
|
|
79
79
|
// with.
|
|
80
80
|
a.$$typeof === j || a.getModuleId !== void 0));
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function I(a, M, S) {
|
|
83
83
|
var F = a.displayName;
|
|
84
84
|
if (F)
|
|
85
85
|
return F;
|
|
86
86
|
var q = M.displayName || M.name || "";
|
|
87
87
|
return q !== "" ? S + "(" + q + ")" : S;
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function T(a) {
|
|
90
90
|
return a.displayName || "Context";
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function Z(a) {
|
|
93
93
|
if (a == null)
|
|
94
94
|
return null;
|
|
95
95
|
if (typeof a.tag == "number" && u("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof a == "function")
|
|
@@ -114,19 +114,19 @@ function b3() {
|
|
|
114
114
|
switch (a.$$typeof) {
|
|
115
115
|
case g:
|
|
116
116
|
var M = a;
|
|
117
|
-
return
|
|
117
|
+
return T(M) + ".Consumer";
|
|
118
118
|
case c:
|
|
119
119
|
var S = a;
|
|
120
|
-
return
|
|
120
|
+
return T(S._context) + ".Provider";
|
|
121
121
|
case L:
|
|
122
|
-
return
|
|
122
|
+
return I(a, a.render, "ForwardRef");
|
|
123
123
|
case _:
|
|
124
124
|
var F = a.displayName || null;
|
|
125
|
-
return F !== null ? F :
|
|
125
|
+
return F !== null ? F : Z(a.type) || "Memo";
|
|
126
126
|
case E: {
|
|
127
127
|
var q = a, Y = q._payload, G = q._init;
|
|
128
128
|
try {
|
|
129
|
-
return
|
|
129
|
+
return Z(G(Y));
|
|
130
130
|
} catch {
|
|
131
131
|
return null;
|
|
132
132
|
}
|
|
@@ -134,14 +134,14 @@ function b3() {
|
|
|
134
134
|
}
|
|
135
135
|
return null;
|
|
136
136
|
}
|
|
137
|
-
var R = Object.assign,
|
|
137
|
+
var R = Object.assign, D = 0, A, U, N, n1, K, X, W;
|
|
138
138
|
function J() {
|
|
139
139
|
}
|
|
140
140
|
J.__reactDisabledLog = !0;
|
|
141
141
|
function L1() {
|
|
142
142
|
{
|
|
143
|
-
if (
|
|
144
|
-
|
|
143
|
+
if (D === 0) {
|
|
144
|
+
A = console.log, U = console.info, N = console.warn, n1 = console.error, K = console.group, X = console.groupCollapsed, W = console.groupEnd;
|
|
145
145
|
var a = {
|
|
146
146
|
configurable: !0,
|
|
147
147
|
enumerable: !0,
|
|
@@ -158,12 +158,12 @@ function b3() {
|
|
|
158
158
|
groupEnd: a
|
|
159
159
|
});
|
|
160
160
|
}
|
|
161
|
-
|
|
161
|
+
D++;
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
function p1() {
|
|
165
165
|
{
|
|
166
|
-
if (
|
|
166
|
+
if (D--, D === 0) {
|
|
167
167
|
var a = {
|
|
168
168
|
configurable: !0,
|
|
169
169
|
enumerable: !0,
|
|
@@ -171,7 +171,7 @@ function b3() {
|
|
|
171
171
|
};
|
|
172
172
|
Object.defineProperties(console, {
|
|
173
173
|
log: R({}, a, {
|
|
174
|
-
value:
|
|
174
|
+
value: A
|
|
175
175
|
}),
|
|
176
176
|
info: R({}, a, {
|
|
177
177
|
value: U
|
|
@@ -193,7 +193,7 @@ function b3() {
|
|
|
193
193
|
})
|
|
194
194
|
});
|
|
195
195
|
}
|
|
196
|
-
|
|
196
|
+
D < 0 && u("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
199
|
var h1 = w.ReactCurrentDispatcher, O1;
|
|
@@ -483,7 +483,7 @@ function b3() {
|
|
|
483
483
|
function G2() {
|
|
484
484
|
{
|
|
485
485
|
if (M2.current) {
|
|
486
|
-
var a =
|
|
486
|
+
var a = Z(M2.current.type);
|
|
487
487
|
if (a)
|
|
488
488
|
return `
|
|
489
489
|
|
|
@@ -518,7 +518,7 @@ Check the top-level render call using <` + S + ">.");
|
|
|
518
518
|
return;
|
|
519
519
|
q2[S] = !0;
|
|
520
520
|
var F = "";
|
|
521
|
-
a && a._owner && a._owner !== M2.current && (F = " It was passed a child from " +
|
|
521
|
+
a && a._owner && a._owner !== M2.current && (F = " It was passed a child from " + Z(a._owner.type) + "."), X1(a), u('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', S, F), X1(null);
|
|
522
522
|
}
|
|
523
523
|
}
|
|
524
524
|
function Y2(a, M) {
|
|
@@ -555,11 +555,11 @@ Check the top-level render call using <` + S + ">.");
|
|
|
555
555
|
else
|
|
556
556
|
return;
|
|
557
557
|
if (S) {
|
|
558
|
-
var F =
|
|
558
|
+
var F = Z(M);
|
|
559
559
|
P9(S, a.props, "prop", F, a);
|
|
560
560
|
} else if (M.PropTypes !== void 0 && !x2) {
|
|
561
561
|
x2 = !0;
|
|
562
|
-
var q =
|
|
562
|
+
var q = Z(M);
|
|
563
563
|
u("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", q || "Unknown");
|
|
564
564
|
}
|
|
565
565
|
typeof M.getDefaultProps == "function" && !M.getDefaultProps.isReactClassApproved && u("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
@@ -587,7 +587,7 @@ Check the top-level render call using <` + S + ">.");
|
|
|
587
587
|
var w1 = e3();
|
|
588
588
|
w1 ? $ += w1 : $ += G2();
|
|
589
589
|
var C1;
|
|
590
|
-
a === null ? C1 = "null" : k2(a) ? C1 = "array" : a !== void 0 && a.$$typeof === o ? (C1 = "<" + (
|
|
590
|
+
a === null ? C1 = "null" : k2(a) ? C1 = "array" : a !== void 0 && a.$$typeof === o ? (C1 = "<" + (Z(a.type) || "Unknown") + " />", $ = " Did you accidentally export a JSX literal instead of a component?") : C1 = typeof a, u("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", C1, $);
|
|
591
591
|
}
|
|
592
592
|
var a1 = Q9(a, M, S, q, Y);
|
|
593
593
|
if (a1 == null)
|
|
@@ -606,7 +606,7 @@ Check the top-level render call using <` + S + ">.");
|
|
|
606
606
|
Y2(Z1, a);
|
|
607
607
|
}
|
|
608
608
|
if (l1.call(M, "key")) {
|
|
609
|
-
var z1 =
|
|
609
|
+
var z1 = Z(a), f1 = Object.keys(M).filter(function(s3) {
|
|
610
610
|
return s3 !== "key";
|
|
611
611
|
}), b2 = f1.length > 0 ? "{key: someKey, " + f1.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
612
612
|
if (!K2[z1 + b2]) {
|
|
@@ -948,7 +948,7 @@ const k1 = /* @__PURE__ */ x3(O4), b9 = o1(
|
|
|
948
948
|
stretched: _,
|
|
949
949
|
iconLeft: E,
|
|
950
950
|
loading: h
|
|
951
|
-
} = t, p = i === "tertiary", f = p && "paddings" in t ? t.paddings ?? !0 : !0, m = !!("loading" in t && h), w = !l && !m, u = !!(!g && E && !d), k = typeof _ == "object" ? _.justify === "space-between" : void 0, b = I4(C), B = s1[b], x = f4(l, i, s),
|
|
951
|
+
} = t, p = i === "tertiary", f = p && "paddings" in t ? t.paddings ?? !0 : !0, m = !!("loading" in t && h), w = !l && !m, u = !!(!g && E && !d), k = typeof _ == "object" ? _.justify === "space-between" : void 0, b = I4(C), B = s1[b], x = f4(l, i, s), V = l || m ? -1 : L, y = H(
|
|
952
952
|
P.button,
|
|
953
953
|
P[C],
|
|
954
954
|
P[i],
|
|
@@ -972,24 +972,24 @@ const k1 = /* @__PURE__ */ x3(O4), b9 = o1(
|
|
|
972
972
|
size: C
|
|
973
973
|
};
|
|
974
974
|
if (V3(t)) {
|
|
975
|
-
const { href: O, onClick:
|
|
975
|
+
const { href: O, onClick: I, style: T, target: Z, rel: R, "data-testid": D, ...A } = t, U = f2(A), N = Z ?? (t.isExternal ? "_blank" : void 0), n1 = Z9({ rel: R, target: N }), K = (X) => {
|
|
976
976
|
if (!w) {
|
|
977
977
|
X.preventDefault();
|
|
978
978
|
return;
|
|
979
979
|
}
|
|
980
|
-
|
|
980
|
+
I == null || I(X);
|
|
981
981
|
};
|
|
982
982
|
return /* @__PURE__ */ r.jsx(
|
|
983
983
|
"a",
|
|
984
984
|
{
|
|
985
985
|
ref: o,
|
|
986
|
-
className:
|
|
986
|
+
className: y,
|
|
987
987
|
href: w ? O : void 0,
|
|
988
|
-
tabIndex:
|
|
988
|
+
tabIndex: V,
|
|
989
989
|
onClick: K,
|
|
990
|
-
"data-testid":
|
|
990
|
+
"data-testid": D,
|
|
991
991
|
"aria-disabled": l || m,
|
|
992
|
-
style:
|
|
992
|
+
style: T,
|
|
993
993
|
target: N,
|
|
994
994
|
rel: n1,
|
|
995
995
|
...U,
|
|
@@ -998,22 +998,22 @@ const k1 = /* @__PURE__ */ x3(O4), b9 = o1(
|
|
|
998
998
|
);
|
|
999
999
|
}
|
|
1000
1000
|
if (y3(t)) {
|
|
1001
|
-
const { type: O = "button", onClick:
|
|
1002
|
-
w &&
|
|
1001
|
+
const { type: O = "button", onClick: I, style: T, "data-testid": Z, ...R } = t, D = f2(R), A = C === "l" ? 24 : 16, U = (N) => {
|
|
1002
|
+
w && I && I(N);
|
|
1003
1003
|
};
|
|
1004
1004
|
return /* @__PURE__ */ r.jsxs(
|
|
1005
1005
|
"button",
|
|
1006
1006
|
{
|
|
1007
1007
|
ref: o,
|
|
1008
1008
|
type: O,
|
|
1009
|
-
className:
|
|
1009
|
+
className: y,
|
|
1010
1010
|
disabled: l,
|
|
1011
|
-
tabIndex:
|
|
1011
|
+
tabIndex: V,
|
|
1012
1012
|
onClick: U,
|
|
1013
|
-
"data-testid":
|
|
1013
|
+
"data-testid": Z,
|
|
1014
1014
|
"aria-disabled": l || m,
|
|
1015
|
-
style:
|
|
1016
|
-
...
|
|
1015
|
+
style: T,
|
|
1016
|
+
...D,
|
|
1017
1017
|
children: [
|
|
1018
1018
|
/* @__PURE__ */ r.jsx("div", { className: H(P.content, { [P.contentHidden]: m }), children: /* @__PURE__ */ r.jsx(o9, { ...j }) }),
|
|
1019
1019
|
m && /* @__PURE__ */ r.jsx("div", { className: P.loaderWrapper, children: /* @__PURE__ */ r.jsx(
|
|
@@ -1022,7 +1022,7 @@ const k1 = /* @__PURE__ */ x3(O4), b9 = o1(
|
|
|
1022
1022
|
variant: x,
|
|
1023
1023
|
"aria-hidden": "true",
|
|
1024
1024
|
"data-testid": "button-loader",
|
|
1025
|
-
size:
|
|
1025
|
+
size: A
|
|
1026
1026
|
}
|
|
1027
1027
|
) })
|
|
1028
1028
|
]
|
|
@@ -1094,7 +1094,7 @@ const i9 = ({
|
|
|
1094
1094
|
showLinkIcons: E
|
|
1095
1095
|
};
|
|
1096
1096
|
if (t.as === "a") {
|
|
1097
|
-
const { href:
|
|
1097
|
+
const { href: Z, onClick: R, style: D, target: A, rel: U, "data-testid": N, isExternal: n1, ...K } = t, X = f2(K), W = A ?? (n1 ? "_blank" : void 0), J = Z9({ rel: U, target: W }), L1 = (p1) => {
|
|
1098
1098
|
if (!f) {
|
|
1099
1099
|
p1.preventDefault();
|
|
1100
1100
|
return;
|
|
@@ -1106,12 +1106,12 @@ const i9 = ({
|
|
|
1106
1106
|
{
|
|
1107
1107
|
ref: o,
|
|
1108
1108
|
className: b,
|
|
1109
|
-
href: f ?
|
|
1109
|
+
href: f ? Z : void 0,
|
|
1110
1110
|
tabIndex: k,
|
|
1111
1111
|
onClick: L1,
|
|
1112
1112
|
"data-testid": N,
|
|
1113
1113
|
"aria-disabled": l,
|
|
1114
|
-
style:
|
|
1114
|
+
style: D,
|
|
1115
1115
|
target: W,
|
|
1116
1116
|
rel: J,
|
|
1117
1117
|
...X,
|
|
@@ -1119,8 +1119,8 @@ const i9 = ({
|
|
|
1119
1119
|
}
|
|
1120
1120
|
);
|
|
1121
1121
|
}
|
|
1122
|
-
const { type: x = "button", onClick:
|
|
1123
|
-
f &&
|
|
1122
|
+
const { type: x = "button", onClick: V, style: y, "data-testid": j, ...O } = t, I = f2(O), T = (Z) => {
|
|
1123
|
+
f && V && V(Z);
|
|
1124
1124
|
};
|
|
1125
1125
|
return /* @__PURE__ */ r.jsx(
|
|
1126
1126
|
"button",
|
|
@@ -1130,11 +1130,11 @@ const i9 = ({
|
|
|
1130
1130
|
className: b,
|
|
1131
1131
|
disabled: l,
|
|
1132
1132
|
tabIndex: k,
|
|
1133
|
-
onClick:
|
|
1133
|
+
onClick: T,
|
|
1134
1134
|
"data-testid": j,
|
|
1135
1135
|
"aria-disabled": l,
|
|
1136
|
-
style:
|
|
1137
|
-
...
|
|
1136
|
+
style: y,
|
|
1137
|
+
...I,
|
|
1138
1138
|
children: /* @__PURE__ */ r.jsx(i9, { ...B })
|
|
1139
1139
|
}
|
|
1140
1140
|
);
|
|
@@ -1249,11 +1249,11 @@ const r6 = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
1249
1249
|
className: f,
|
|
1250
1250
|
"data-testid": m,
|
|
1251
1251
|
...w
|
|
1252
|
-
} = t, { onClick: u, onPointerDown: k } = w, B = !l && !s && (!!u || !!k), [x,
|
|
1252
|
+
} = t, { onClick: u, onPointerDown: k } = w, B = !l && !s && (!!u || !!k), [x, V] = d1(!1);
|
|
1253
1253
|
Q(() => {
|
|
1254
|
-
d &&
|
|
1254
|
+
d && V(!1);
|
|
1255
1255
|
}, [d]);
|
|
1256
|
-
const
|
|
1256
|
+
const y = d && !x ? "image" : E ? "icon" : v ? "name" : "placeholder", j = p || y === "name" && K4(v) || "gray", O = n6(C), I = e6(C, c), T = H(
|
|
1257
1257
|
f,
|
|
1258
1258
|
W1.avatar,
|
|
1259
1259
|
W1[`variant-${g}`],
|
|
@@ -1264,9 +1264,9 @@ const r6 = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
1264
1264
|
[W1.loading]: s,
|
|
1265
1265
|
[W1.clickable]: B
|
|
1266
1266
|
}
|
|
1267
|
-
),
|
|
1267
|
+
), Z = {
|
|
1268
1268
|
"--avatar-size": `${C}px`,
|
|
1269
|
-
"--avatar-border-radius": `${
|
|
1269
|
+
"--avatar-border-radius": `${I}px`,
|
|
1270
1270
|
...i
|
|
1271
1271
|
}, R = {
|
|
1272
1272
|
icon: () => /* @__PURE__ */ r.jsx("span", { "data-testid": "avatar-icon", title: _ || void 0, role: "img", className: W1.icon, children: E == null ? void 0 : E({}) }),
|
|
@@ -1298,26 +1298,26 @@ const r6 = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
1298
1298
|
className: W1.image,
|
|
1299
1299
|
src: d || void 0,
|
|
1300
1300
|
alt: _ || void 0,
|
|
1301
|
-
onLoad: () =>
|
|
1302
|
-
onError: (
|
|
1301
|
+
onLoad: () => V(!1),
|
|
1302
|
+
onError: (A) => {
|
|
1303
1303
|
var U;
|
|
1304
|
-
|
|
1304
|
+
V(!0), (U = h == null ? void 0 : h.onError) == null || U.call(h, A);
|
|
1305
1305
|
}
|
|
1306
1306
|
}
|
|
1307
1307
|
)
|
|
1308
|
-
},
|
|
1309
|
-
B && (u == null || u(
|
|
1308
|
+
}, D = (A) => {
|
|
1309
|
+
B && (u == null || u(A));
|
|
1310
1310
|
};
|
|
1311
1311
|
return /* @__PURE__ */ r.jsx(
|
|
1312
1312
|
"div",
|
|
1313
1313
|
{
|
|
1314
1314
|
ref: o,
|
|
1315
|
-
onClick:
|
|
1316
|
-
className:
|
|
1317
|
-
style:
|
|
1315
|
+
onClick: D,
|
|
1316
|
+
className: T,
|
|
1317
|
+
style: Z,
|
|
1318
1318
|
"data-testid": m,
|
|
1319
1319
|
"aria-disabled": l || s,
|
|
1320
|
-
children: R[
|
|
1320
|
+
children: R[y](null)
|
|
1321
1321
|
}
|
|
1322
1322
|
);
|
|
1323
1323
|
}), a6 = "_avatarGroup_157g4_1", s6 = {
|
|
@@ -1548,34 +1548,34 @@ function x6({
|
|
|
1548
1548
|
), u = x1(
|
|
1549
1549
|
(x) => {
|
|
1550
1550
|
if (!d.current.dragging || !m) return;
|
|
1551
|
-
const
|
|
1551
|
+
const V = x.clientX - d.current.startX, y = x.clientY - d.current.startY;
|
|
1552
1552
|
let j;
|
|
1553
1553
|
switch (h) {
|
|
1554
1554
|
case "bottom":
|
|
1555
|
-
j = Math.max(0,
|
|
1555
|
+
j = Math.max(0, y);
|
|
1556
1556
|
break;
|
|
1557
1557
|
case "top":
|
|
1558
|
-
j = Math.max(0, -
|
|
1558
|
+
j = Math.max(0, -y);
|
|
1559
1559
|
break;
|
|
1560
1560
|
case "right":
|
|
1561
|
-
j = Math.max(0,
|
|
1561
|
+
j = Math.max(0, V);
|
|
1562
1562
|
break;
|
|
1563
1563
|
case "left":
|
|
1564
|
-
j = Math.max(0, -
|
|
1564
|
+
j = Math.max(0, -V);
|
|
1565
1565
|
break;
|
|
1566
1566
|
default:
|
|
1567
|
-
j = f ?
|
|
1567
|
+
j = f ? y : V;
|
|
1568
1568
|
}
|
|
1569
1569
|
E(j);
|
|
1570
1570
|
},
|
|
1571
1571
|
[m, h, f]
|
|
1572
1572
|
), k = x1(
|
|
1573
1573
|
(x) => {
|
|
1574
|
-
var
|
|
1574
|
+
var V, y;
|
|
1575
1575
|
if (!(!d.current.dragging || !m)) {
|
|
1576
1576
|
d.current.dragging = !1;
|
|
1577
1577
|
try {
|
|
1578
|
-
(
|
|
1578
|
+
(y = (V = x.currentTarget).hasPointerCapture) != null && y.call(V, x.pointerId) && x.currentTarget.releasePointerCapture(x.pointerId);
|
|
1579
1579
|
} catch {
|
|
1580
1580
|
}
|
|
1581
1581
|
_ >= p ? o(!1) : E(0);
|
|
@@ -1587,8 +1587,8 @@ function x6({
|
|
|
1587
1587
|
if (d.current.dragging) {
|
|
1588
1588
|
const x = { ...c, transitionProperty: "none" };
|
|
1589
1589
|
if (_ > 0) {
|
|
1590
|
-
const
|
|
1591
|
-
x.transform = f ? `translateY(${
|
|
1590
|
+
const V = h === "left" || h === "top" ? -_ : _;
|
|
1591
|
+
x.transform = f ? `translateY(${V}px)` : `translateX(${V}px)`;
|
|
1592
1592
|
}
|
|
1593
1593
|
return x;
|
|
1594
1594
|
}
|
|
@@ -1875,7 +1875,7 @@ const S9 = o1((t, o) => {
|
|
|
1875
1875
|
headerTemplate: u,
|
|
1876
1876
|
"data-testid": k,
|
|
1877
1877
|
...b
|
|
1878
|
-
} = t, B = l === "bottom-sheet" ? "actions-title-actions" : "title-actions-actions", x = l === "bottom-sheet" ? { direction: "bottom", threshold: 80 } : t == null ? void 0 : t.closeOnDrag,
|
|
1878
|
+
} = t, B = l === "bottom-sheet" ? "actions-title-actions" : "title-actions-actions", x = l === "bottom-sheet" ? { direction: "bottom", threshold: 80 } : t == null ? void 0 : t.closeOnDrag, V = () => C(!1), y = !!(d || _ || L.show || v.show || c.length || g.length), j = d ? `${k || "modal"}-title` : void 0, O = _ ? `${k || "modal"}-subtitle` : void 0;
|
|
1879
1879
|
return /* @__PURE__ */ r.jsx(
|
|
1880
1880
|
S9,
|
|
1881
1881
|
{
|
|
@@ -1894,7 +1894,7 @@ const S9 = o1((t, o) => {
|
|
|
1894
1894
|
style: { width: s, ...w == null ? void 0 : w.container },
|
|
1895
1895
|
"data-testid": k ? `${k}-container` : void 0,
|
|
1896
1896
|
children: [
|
|
1897
|
-
|
|
1897
|
+
y && /* @__PURE__ */ r.jsxs(
|
|
1898
1898
|
"div",
|
|
1899
1899
|
{
|
|
1900
1900
|
"data-testid": k ? `${k}-header` : void 0,
|
|
@@ -1919,7 +1919,7 @@ const S9 = o1((t, o) => {
|
|
|
1919
1919
|
props: {
|
|
1920
1920
|
iconLeft: /* @__PURE__ */ r.jsx(q6, {}),
|
|
1921
1921
|
"aria-label": "Back",
|
|
1922
|
-
onClick:
|
|
1922
|
+
onClick: V,
|
|
1923
1923
|
...v == null ? void 0 : v.props
|
|
1924
1924
|
}
|
|
1925
1925
|
}
|
|
@@ -1943,7 +1943,7 @@ const S9 = o1((t, o) => {
|
|
|
1943
1943
|
props: {
|
|
1944
1944
|
iconLeft: /* @__PURE__ */ r.jsx(G6, {}),
|
|
1945
1945
|
"aria-label": "Close modal",
|
|
1946
|
-
onClick:
|
|
1946
|
+
onClick: V,
|
|
1947
1947
|
...L == null ? void 0 : L.props
|
|
1948
1948
|
}
|
|
1949
1949
|
}
|
|
@@ -2249,7 +2249,7 @@ const h7 = (t) => {
|
|
|
2249
2249
|
className: h,
|
|
2250
2250
|
"data-testid": p = "badge",
|
|
2251
2251
|
...f
|
|
2252
|
-
} = t, { onClick: m, onPointerDown: w } = f, { ref: u, bgColor: k } = T2(), b = _ || k, x = !E && (!!m || !!w),
|
|
2252
|
+
} = t, { onClick: m, onPointerDown: w } = f, { ref: u, bgColor: k } = T2(), b = _ || k, x = !E && (!!m || !!w), V = k1(F1.badge__container, F1[`position-${v}`]), y = k1(
|
|
2253
2253
|
h,
|
|
2254
2254
|
F1.badge__content,
|
|
2255
2255
|
F1[`color-${g}`],
|
|
@@ -2265,23 +2265,23 @@ const h7 = (t) => {
|
|
|
2265
2265
|
"--badge-offset-y": `${d.y}px`,
|
|
2266
2266
|
...b && { "--badge-cutout-bg": b },
|
|
2267
2267
|
...s === "transparent" && { "--badge-cutout-bg": "transparent" }
|
|
2268
|
-
}, O = (i == null ? void 0 : i({})) || l,
|
|
2269
|
-
x && (m == null || m(
|
|
2268
|
+
}, O = (i == null ? void 0 : i({})) || l, I = (T) => {
|
|
2269
|
+
x && (m == null || m(T));
|
|
2270
2270
|
};
|
|
2271
2271
|
return /* @__PURE__ */ r.jsxs("div", { className: F1.wrapper, ref: u, "data-testid": p + "-wrapper", children: [
|
|
2272
2272
|
C,
|
|
2273
2273
|
!c && /* @__PURE__ */ r.jsx(
|
|
2274
2274
|
"span",
|
|
2275
2275
|
{
|
|
2276
|
-
className:
|
|
2276
|
+
className: V,
|
|
2277
2277
|
style: j,
|
|
2278
2278
|
"data-testid": p + "-container",
|
|
2279
2279
|
children: /* @__PURE__ */ r.jsx(
|
|
2280
2280
|
"span",
|
|
2281
2281
|
{
|
|
2282
2282
|
...f,
|
|
2283
|
-
onClick:
|
|
2284
|
-
className:
|
|
2283
|
+
onClick: I,
|
|
2284
|
+
className: y,
|
|
2285
2285
|
"data-testid": p + "-content",
|
|
2286
2286
|
ref: o,
|
|
2287
2287
|
"aria-disabled": E,
|
|
@@ -2345,12 +2345,12 @@ const h7 = (t) => {
|
|
|
2345
2345
|
m("loaded"), _ == null || _(j);
|
|
2346
2346
|
},
|
|
2347
2347
|
[_]
|
|
2348
|
-
),
|
|
2348
|
+
), V = x1(
|
|
2349
2349
|
(j) => {
|
|
2350
2350
|
m("error"), d == null || d(j);
|
|
2351
2351
|
},
|
|
2352
2352
|
[d]
|
|
2353
|
-
),
|
|
2353
|
+
), y = {
|
|
2354
2354
|
loader: /* @__PURE__ */ r.jsxs(q1, { children: [
|
|
2355
2355
|
/* @__PURE__ */ r.jsx(E2, { size: 48, variant: "gray", "data-testid": `${v}-loader` }),
|
|
2356
2356
|
/* @__PURE__ */ r.jsx(
|
|
@@ -2359,7 +2359,7 @@ const h7 = (t) => {
|
|
|
2359
2359
|
alt: i,
|
|
2360
2360
|
src: s,
|
|
2361
2361
|
onLoad: x,
|
|
2362
|
-
onError:
|
|
2362
|
+
onError: V,
|
|
2363
2363
|
style: { display: "none" }
|
|
2364
2364
|
}
|
|
2365
2365
|
)
|
|
@@ -2392,9 +2392,9 @@ const h7 = (t) => {
|
|
|
2392
2392
|
style: c,
|
|
2393
2393
|
...p,
|
|
2394
2394
|
children: [
|
|
2395
|
-
u &&
|
|
2396
|
-
w &&
|
|
2397
|
-
k &&
|
|
2395
|
+
u && y.loader,
|
|
2396
|
+
w && y.error,
|
|
2397
|
+
k && y.image
|
|
2398
2398
|
]
|
|
2399
2399
|
}
|
|
2400
2400
|
);
|
|
@@ -2584,16 +2584,16 @@ const h7 = (t) => {
|
|
|
2584
2584
|
styles: b,
|
|
2585
2585
|
tabIndex: B,
|
|
2586
2586
|
"aria-label": x,
|
|
2587
|
-
role:
|
|
2587
|
+
role: V
|
|
2588
2588
|
}) => {
|
|
2589
|
-
const [
|
|
2589
|
+
const [y, j] = d1(!1), O = P1.isValidElement(h), I = t2(() => p ? "disabled" : f ? "loading" : O && y ? "checked" : "default", [p, f, O, y]), T = t === "button" || !!m, Z = b && "boxShadow" in b && b.boxShadow !== void 0, R = k1(
|
|
2590
2590
|
r1.wrapper,
|
|
2591
2591
|
// Состояния
|
|
2592
2592
|
{
|
|
2593
2593
|
[r1.disabled]: p,
|
|
2594
2594
|
[r1.loading]: f,
|
|
2595
|
-
[r1.interactive]:
|
|
2596
|
-
[r1.interactiveWithCustomShadow]:
|
|
2595
|
+
[r1.interactive]: T && !p && !f,
|
|
2596
|
+
[r1.interactiveWithCustomShadow]: T && !p && !f && Z,
|
|
2597
2597
|
[r1.checked]: h
|
|
2598
2598
|
},
|
|
2599
2599
|
// Стили иконки
|
|
@@ -2633,7 +2633,7 @@ const h7 = (t) => {
|
|
|
2633
2633
|
[r1.shadowIncreasesWhenPressed]: L === "increases-when-pressed"
|
|
2634
2634
|
},
|
|
2635
2635
|
k
|
|
2636
|
-
),
|
|
2636
|
+
), D = k1(r1.iconWrapper, r1[`iconSize${o}`]), A = t2(() => {
|
|
2637
2637
|
const e1 = { ...b };
|
|
2638
2638
|
return c !== !1 && typeof c == "number" && (e1.padding = `${c}px`), typeof _ == "number" && _ !== 50 && (e1.borderRadius = `${_}px`), e1;
|
|
2639
2639
|
}, [b, _, c]), U = (e1) => {
|
|
@@ -2647,16 +2647,16 @@ const h7 = (t) => {
|
|
|
2647
2647
|
}, X = E ? E.show && !p : !1;
|
|
2648
2648
|
return {
|
|
2649
2649
|
// Состояние
|
|
2650
|
-
checkedActive:
|
|
2650
|
+
checkedActive: y,
|
|
2651
2651
|
isCheckedNode: O,
|
|
2652
|
-
currentState:
|
|
2653
|
-
isInteractive:
|
|
2654
|
-
shouldHideIcon: !!x &&
|
|
2652
|
+
currentState: I,
|
|
2653
|
+
isInteractive: T,
|
|
2654
|
+
shouldHideIcon: !!x && T,
|
|
2655
2655
|
// Классы
|
|
2656
2656
|
wrapperClasses: R,
|
|
2657
|
-
iconWrapperClasses:
|
|
2657
|
+
iconWrapperClasses: D,
|
|
2658
2658
|
// Стили
|
|
2659
|
-
inlineStyles:
|
|
2659
|
+
inlineStyles: A,
|
|
2660
2660
|
// Обработчики
|
|
2661
2661
|
handleMouseEnter: U,
|
|
2662
2662
|
handleMouseLeave: N,
|
|
@@ -2667,7 +2667,7 @@ const h7 = (t) => {
|
|
|
2667
2667
|
getBadgeSize: () => E && E.size === "extra-small" ? 8 : 16,
|
|
2668
2668
|
// Accessibility
|
|
2669
2669
|
getRole: () => {
|
|
2670
|
-
if (
|
|
2670
|
+
if (V) return V;
|
|
2671
2671
|
if (t !== "button")
|
|
2672
2672
|
return m ? "button" : "img";
|
|
2673
2673
|
},
|
|
@@ -2709,15 +2709,15 @@ const h7 = (t) => {
|
|
|
2709
2709
|
className: b,
|
|
2710
2710
|
styles: B,
|
|
2711
2711
|
tabIndex: x,
|
|
2712
|
-
"data-testid":
|
|
2713
|
-
"aria-label":
|
|
2712
|
+
"data-testid": V,
|
|
2713
|
+
"aria-label": y,
|
|
2714
2714
|
"aria-describedby": j,
|
|
2715
2715
|
role: O,
|
|
2716
|
-
...
|
|
2717
|
-
},
|
|
2718
|
-
const
|
|
2719
|
-
checkedActive:
|
|
2720
|
-
isCheckedNode:
|
|
2716
|
+
...I
|
|
2717
|
+
}, T) => {
|
|
2718
|
+
const Z = t || (w ? "button" : "div"), R = c6("icon"), {
|
|
2719
|
+
checkedActive: D,
|
|
2720
|
+
isCheckedNode: A,
|
|
2721
2721
|
currentState: U,
|
|
2722
2722
|
shouldHideIcon: N,
|
|
2723
2723
|
wrapperClasses: n1,
|
|
@@ -2735,7 +2735,7 @@ const h7 = (t) => {
|
|
|
2735
2735
|
buttonSpecificProps: n2,
|
|
2736
2736
|
iconSize: $1
|
|
2737
2737
|
} = I0({
|
|
2738
|
-
Component:
|
|
2738
|
+
Component: Z,
|
|
2739
2739
|
iconSize: i,
|
|
2740
2740
|
mode: C,
|
|
2741
2741
|
style: s,
|
|
@@ -2757,7 +2757,7 @@ const h7 = (t) => {
|
|
|
2757
2757
|
className: b,
|
|
2758
2758
|
styles: B,
|
|
2759
2759
|
tabIndex: x,
|
|
2760
|
-
"aria-label":
|
|
2760
|
+
"aria-label": y,
|
|
2761
2761
|
role: O
|
|
2762
2762
|
}), r2 = () => {
|
|
2763
2763
|
var u1;
|
|
@@ -2769,7 +2769,7 @@ const h7 = (t) => {
|
|
|
2769
2769
|
size: N1,
|
|
2770
2770
|
"aria-hidden": N ? !0 : void 0,
|
|
2771
2771
|
role: N ? void 0 : "img",
|
|
2772
|
-
"aria-label": N ? void 0 :
|
|
2772
|
+
"aria-label": N ? void 0 : y || R("loading")
|
|
2773
2773
|
}
|
|
2774
2774
|
);
|
|
2775
2775
|
}
|
|
@@ -2791,32 +2791,32 @@ const h7 = (t) => {
|
|
|
2791
2791
|
fill: "currentColor",
|
|
2792
2792
|
"aria-hidden": N ? !0 : void 0,
|
|
2793
2793
|
role: N ? void 0 : "img",
|
|
2794
|
-
"aria-label": N ? void 0 :
|
|
2794
|
+
"aria-label": N ? void 0 : y || R("placeholder"),
|
|
2795
2795
|
children: /* @__PURE__ */ r.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" })
|
|
2796
2796
|
}
|
|
2797
2797
|
) });
|
|
2798
|
-
}, o2 = () =>
|
|
2798
|
+
}, o2 = () => A && D ? /* @__PURE__ */ r.jsx("span", { className: w2.checkedOverlay, children: p }) : null, i1 = /* @__PURE__ */ r.jsxs("div", { className: K, style: { position: "relative" }, children: [
|
|
2799
2799
|
r2(),
|
|
2800
2800
|
o2()
|
|
2801
2801
|
] }), l1 = {
|
|
2802
|
-
ref:
|
|
2802
|
+
ref: T,
|
|
2803
2803
|
className: n1,
|
|
2804
2804
|
style: X,
|
|
2805
2805
|
onMouseEnter: W,
|
|
2806
2806
|
onMouseLeave: J,
|
|
2807
2807
|
onClick: L1,
|
|
2808
2808
|
onKeyDown: b1 ? p1 : void 0,
|
|
2809
|
-
"data-testid":
|
|
2810
|
-
"aria-label":
|
|
2809
|
+
"data-testid": V,
|
|
2810
|
+
"aria-label": y,
|
|
2811
2811
|
"aria-describedby": j,
|
|
2812
2812
|
// Используем aria-pressed для кнопок с состоянием toggle
|
|
2813
|
-
"aria-pressed":
|
|
2813
|
+
"aria-pressed": A && (Z === "button" || w) ? D : void 0,
|
|
2814
2814
|
"aria-disabled": f ? !0 : void 0,
|
|
2815
2815
|
"data-state": U,
|
|
2816
2816
|
role: R1(),
|
|
2817
2817
|
tabIndex: e1(),
|
|
2818
2818
|
...n2,
|
|
2819
|
-
...
|
|
2819
|
+
...I
|
|
2820
2820
|
};
|
|
2821
2821
|
if (h1 && L !== !1)
|
|
2822
2822
|
return /* @__PURE__ */ r.jsx(
|
|
@@ -2826,8 +2826,8 @@ const h7 = (t) => {
|
|
|
2826
2826
|
size: O1(),
|
|
2827
2827
|
colorScheme: "red",
|
|
2828
2828
|
position: "top-right",
|
|
2829
|
-
"data-testid": `${
|
|
2830
|
-
children: /* @__PURE__ */ r.jsx(
|
|
2829
|
+
"data-testid": `${V || "icon"}-badge`,
|
|
2830
|
+
children: /* @__PURE__ */ r.jsx(Z, { ...l1, children: i1 })
|
|
2831
2831
|
}
|
|
2832
2832
|
);
|
|
2833
2833
|
if (h1 && L === !1) {
|
|
@@ -2838,13 +2838,13 @@ const h7 = (t) => {
|
|
|
2838
2838
|
size: O1(),
|
|
2839
2839
|
colorScheme: "red",
|
|
2840
2840
|
position: "top-right",
|
|
2841
|
-
"data-testid": `${
|
|
2841
|
+
"data-testid": `${V || "icon"}-badge`,
|
|
2842
2842
|
children: i1
|
|
2843
2843
|
}
|
|
2844
2844
|
);
|
|
2845
|
-
return /* @__PURE__ */ r.jsx(
|
|
2845
|
+
return /* @__PURE__ */ r.jsx(Z, { ...l1, children: u1 });
|
|
2846
2846
|
}
|
|
2847
|
-
return /* @__PURE__ */ r.jsx(
|
|
2847
|
+
return /* @__PURE__ */ r.jsx(Z, { ...l1, children: i1 });
|
|
2848
2848
|
}
|
|
2849
2849
|
);
|
|
2850
2850
|
j9.displayName = "Icon";
|
|
@@ -3452,22 +3452,22 @@ const bd = {}, xl = "_tag_1llsi_1", Hl = "_label_1llsi_16", bl = "_iconWrapper_1
|
|
|
3452
3452
|
onChange: m,
|
|
3453
3453
|
onClick: w,
|
|
3454
3454
|
"data-testid": u = "checkbox"
|
|
3455
|
-
} = t, [k, b] = d1(!1), B = C ?? k, x = L || c,
|
|
3455
|
+
} = t, [k, b] = d1(!1), B = C ?? k, x = L || c, V = !!g, y = B || l, j = H(T1.container, T1[s], v), O = H(
|
|
3456
3456
|
T1.checkbox,
|
|
3457
3457
|
T1[s],
|
|
3458
3458
|
{
|
|
3459
|
-
[T1.error]:
|
|
3459
|
+
[T1.error]: V
|
|
3460
3460
|
},
|
|
3461
3461
|
d
|
|
3462
|
-
),
|
|
3462
|
+
), I = (R) => {
|
|
3463
3463
|
x || (b(R.target.checked), m == null || m(R.target.checked, R));
|
|
3464
|
-
},
|
|
3464
|
+
}, T = (R) => {
|
|
3465
3465
|
if (R.key === "Enter" && !x) {
|
|
3466
3466
|
R.preventDefault();
|
|
3467
|
-
const
|
|
3468
|
-
b(
|
|
3467
|
+
const D = !y;
|
|
3468
|
+
b(D), m == null || m(D);
|
|
3469
3469
|
}
|
|
3470
|
-
},
|
|
3470
|
+
}, Z = (R) => {
|
|
3471
3471
|
p || R.preventDefault(), w == null || w(R);
|
|
3472
3472
|
};
|
|
3473
3473
|
return /* @__PURE__ */ r.jsxs(
|
|
@@ -3485,10 +3485,10 @@ const bd = {}, xl = "_tag_1llsi_1", Hl = "_label_1llsi_16", bl = "_iconWrapper_1
|
|
|
3485
3485
|
tabIndex: f || 0,
|
|
3486
3486
|
className: O,
|
|
3487
3487
|
style: E,
|
|
3488
|
-
onKeyDown:
|
|
3489
|
-
"aria-checked":
|
|
3488
|
+
onKeyDown: T,
|
|
3489
|
+
"aria-checked": y,
|
|
3490
3490
|
"aria-disabled": x,
|
|
3491
|
-
"aria-invalid":
|
|
3491
|
+
"aria-invalid": V,
|
|
3492
3492
|
"aria-describedby": g ? `${i}-error` : void 0,
|
|
3493
3493
|
"data-testid": `${u}-label`,
|
|
3494
3494
|
children: [
|
|
@@ -3499,12 +3499,12 @@ const bd = {}, xl = "_tag_1llsi_1", Hl = "_label_1llsi_16", bl = "_iconWrapper_1
|
|
|
3499
3499
|
type: "checkbox",
|
|
3500
3500
|
id: i,
|
|
3501
3501
|
name: i,
|
|
3502
|
-
checked:
|
|
3502
|
+
checked: y,
|
|
3503
3503
|
disabled: x,
|
|
3504
3504
|
className: T1.input,
|
|
3505
|
-
onChange:
|
|
3506
|
-
"aria-checked":
|
|
3507
|
-
"aria-invalid":
|
|
3505
|
+
onChange: I,
|
|
3506
|
+
"aria-checked": y,
|
|
3507
|
+
"aria-invalid": V,
|
|
3508
3508
|
"aria-describedby": g ? `${i}-error` : void 0,
|
|
3509
3509
|
"data-testid": `${u}-input`
|
|
3510
3510
|
}
|
|
@@ -3514,7 +3514,7 @@ const bd = {}, xl = "_tag_1llsi_1", Hl = "_label_1llsi_16", bl = "_iconWrapper_1
|
|
|
3514
3514
|
{
|
|
3515
3515
|
name: i,
|
|
3516
3516
|
size: s,
|
|
3517
|
-
isChecked:
|
|
3517
|
+
isChecked: y,
|
|
3518
3518
|
isDisabled: x,
|
|
3519
3519
|
indeterminate: l,
|
|
3520
3520
|
dataTestId: u
|
|
@@ -3529,7 +3529,7 @@ const bd = {}, xl = "_tag_1llsi_1", Hl = "_label_1llsi_16", bl = "_iconWrapper_1
|
|
|
3529
3529
|
"data-testid": `${u}-label-text`,
|
|
3530
3530
|
"data-clickable-label": p,
|
|
3531
3531
|
className: T1.label,
|
|
3532
|
-
onClick:
|
|
3532
|
+
onClick: Z,
|
|
3533
3533
|
children: h
|
|
3534
3534
|
}
|
|
3535
3535
|
)
|
|
@@ -3716,8 +3716,8 @@ const bd = {}, xl = "_tag_1llsi_1", Hl = "_label_1llsi_16", bl = "_iconWrapper_1
|
|
|
3716
3716
|
resize: k,
|
|
3717
3717
|
...b
|
|
3718
3718
|
}, B) => {
|
|
3719
|
-
const { textareaRef: x, inputRef:
|
|
3720
|
-
if ($C(i, k, x), c3(B, () =>
|
|
3719
|
+
const { textareaRef: x, inputRef: V, currentRef: y } = PC(i, t);
|
|
3720
|
+
if ($C(i, k, x), c3(B, () => y.current, [y]), t === "textarea")
|
|
3721
3721
|
return /* @__PURE__ */ r.jsx(
|
|
3722
3722
|
"textarea",
|
|
3723
3723
|
{
|
|
@@ -3751,7 +3751,7 @@ const bd = {}, xl = "_tag_1llsi_1", Hl = "_label_1llsi_16", bl = "_iconWrapper_1
|
|
|
3751
3751
|
return /* @__PURE__ */ r.jsx(
|
|
3752
3752
|
"input",
|
|
3753
3753
|
{
|
|
3754
|
-
ref:
|
|
3754
|
+
ref: V,
|
|
3755
3755
|
id: u,
|
|
3756
3756
|
value: i,
|
|
3757
3757
|
placeholder: C,
|
|
@@ -3807,16 +3807,16 @@ const bd = {}, xl = "_tag_1llsi_1", Hl = "_label_1llsi_16", bl = "_iconWrapper_1
|
|
|
3807
3807
|
onSuffixClick: b,
|
|
3808
3808
|
placeholder: B,
|
|
3809
3809
|
showLabel: x = !0,
|
|
3810
|
-
labelClassName:
|
|
3811
|
-
hasValue:
|
|
3810
|
+
labelClassName: V,
|
|
3811
|
+
hasValue: y = !1,
|
|
3812
3812
|
helper: j,
|
|
3813
3813
|
id: O,
|
|
3814
|
-
value:
|
|
3815
|
-
resize:
|
|
3816
|
-
showGrip:
|
|
3814
|
+
value: I = "",
|
|
3815
|
+
resize: T,
|
|
3816
|
+
showGrip: Z = !1,
|
|
3817
3817
|
...R
|
|
3818
|
-
},
|
|
3819
|
-
const
|
|
3818
|
+
}, D) => {
|
|
3819
|
+
const A = F2(), U = O || A, N = m && f && (y || w), n1 = f && f.length > m9 ? f.substring(0, m9) + "..." : f, K = H(
|
|
3820
3820
|
z.wrapper,
|
|
3821
3821
|
z[`size-${o}`],
|
|
3822
3822
|
i && z.error,
|
|
@@ -3829,17 +3829,17 @@ const bd = {}, xl = "_tag_1llsi_1", Hl = "_label_1llsi_16", bl = "_iconWrapper_1
|
|
|
3829
3829
|
), X = H(
|
|
3830
3830
|
z.floatingLabel,
|
|
3831
3831
|
z[o],
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
), { handleGripMouseDown: W } = NC(
|
|
3835
|
-
return /* @__PURE__ */ r.jsxs("div", { ref:
|
|
3832
|
+
y && z.filled,
|
|
3833
|
+
V
|
|
3834
|
+
), { handleGripMouseDown: W } = NC(Z, C, s, T);
|
|
3835
|
+
return /* @__PURE__ */ r.jsxs("div", { ref: D, className: z.inputBase, "data-testid": "input-base-wrapper", ...R, children: [
|
|
3836
3836
|
/* @__PURE__ */ r.jsxs(
|
|
3837
3837
|
"div",
|
|
3838
3838
|
{
|
|
3839
3839
|
className: K,
|
|
3840
3840
|
style: g,
|
|
3841
|
-
"data-resize":
|
|
3842
|
-
"data-show-grip":
|
|
3841
|
+
"data-resize": T,
|
|
3842
|
+
"data-show-grip": Z ? "true" : "false",
|
|
3843
3843
|
...c,
|
|
3844
3844
|
children: [
|
|
3845
3845
|
u && /* @__PURE__ */ r.jsx("label", { htmlFor: U, className: z.leftSection, style: v, children: u }),
|
|
@@ -3864,7 +3864,7 @@ const bd = {}, xl = "_tag_1llsi_1", Hl = "_label_1llsi_16", bl = "_iconWrapper_1
|
|
|
3864
3864
|
}
|
|
3865
3865
|
),
|
|
3866
3866
|
t,
|
|
3867
|
-
|
|
3867
|
+
Z && !h && (T === "fixed" || !T) && /* @__PURE__ */ r.jsx(
|
|
3868
3868
|
"div",
|
|
3869
3869
|
{
|
|
3870
3870
|
className: z.gripHandle,
|
|
@@ -3878,13 +3878,13 @@ const bd = {}, xl = "_tag_1llsi_1", Hl = "_label_1llsi_16", bl = "_iconWrapper_1
|
|
|
3878
3878
|
N && /* @__PURE__ */ r.jsx(
|
|
3879
3879
|
"div",
|
|
3880
3880
|
{
|
|
3881
|
-
className: H(z.hint,
|
|
3881
|
+
className: H(z.hint, y && z.truncate),
|
|
3882
3882
|
"data-disabled": C || s,
|
|
3883
3883
|
children: n1
|
|
3884
3884
|
}
|
|
3885
3885
|
),
|
|
3886
3886
|
h && p && /* @__PURE__ */ r.jsxs("div", { className: z.characterLimit, children: [
|
|
3887
|
-
(
|
|
3887
|
+
(I || "").length,
|
|
3888
3888
|
" из ",
|
|
3889
3889
|
p
|
|
3890
3890
|
] })
|
|
@@ -3935,16 +3935,16 @@ const p9 = Object.assign(zC, {
|
|
|
3935
3935
|
wrapperStyles: b,
|
|
3936
3936
|
floatingLabelStyles: B,
|
|
3937
3937
|
prefixStyles: x,
|
|
3938
|
-
suffixStyles:
|
|
3939
|
-
textareaStyles:
|
|
3938
|
+
suffixStyles: V,
|
|
3939
|
+
textareaStyles: y,
|
|
3940
3940
|
labelProps: j,
|
|
3941
3941
|
helperProps: O,
|
|
3942
|
-
showLimit:
|
|
3943
|
-
maxLength:
|
|
3944
|
-
inputProps:
|
|
3942
|
+
showLimit: I = !1,
|
|
3943
|
+
maxLength: T,
|
|
3944
|
+
inputProps: Z,
|
|
3945
3945
|
hint: R,
|
|
3946
|
-
showHint:
|
|
3947
|
-
showHintOnEmpty:
|
|
3946
|
+
showHint: D = !1,
|
|
3947
|
+
showHintOnEmpty: A = !1,
|
|
3948
3948
|
truncate: U = !1,
|
|
3949
3949
|
resize: N,
|
|
3950
3950
|
showGrip: n1 = !1,
|
|
@@ -3953,12 +3953,12 @@ const p9 = Object.assign(zC, {
|
|
|
3953
3953
|
const W = F2(), J = E || W, [L1, p1] = d1(u), h1 = u !== void 0 ? u : L1, O1 = (h1 || "").length > 0, R1 = h1 || "", b1 = g && (o === "XL" || t === "textarea") && !d, n2 = x1(
|
|
3954
3954
|
(i1) => {
|
|
3955
3955
|
var l1;
|
|
3956
|
-
s || l || (h == null || h(), (l1 =
|
|
3957
|
-
|
|
3956
|
+
s || l || (h == null || h(), (l1 = Z == null ? void 0 : Z.onFocus) == null || l1.call(
|
|
3957
|
+
Z,
|
|
3958
3958
|
i1
|
|
3959
3959
|
));
|
|
3960
3960
|
},
|
|
3961
|
-
[h,
|
|
3961
|
+
[h, Z, s, l]
|
|
3962
3962
|
), $1 = x1(
|
|
3963
3963
|
(i1) => {
|
|
3964
3964
|
var l1;
|
|
@@ -3966,33 +3966,33 @@ const p9 = Object.assign(zC, {
|
|
|
3966
3966
|
const u1 = i1.target.closest(`.${z.wrapper}`);
|
|
3967
3967
|
u1 && u1.classList.add(z.tabFocused);
|
|
3968
3968
|
}
|
|
3969
|
-
(l1 =
|
|
3970
|
-
|
|
3969
|
+
(l1 = Z == null ? void 0 : Z.onKeyUp) == null || l1.call(
|
|
3970
|
+
Z,
|
|
3971
3971
|
i1
|
|
3972
3972
|
);
|
|
3973
3973
|
},
|
|
3974
|
-
[
|
|
3974
|
+
[Z]
|
|
3975
3975
|
), r2 = x1(
|
|
3976
3976
|
(i1) => {
|
|
3977
3977
|
var u1;
|
|
3978
3978
|
const l1 = i1.target.closest(`.${z.wrapper}`);
|
|
3979
|
-
l1 && l1.classList.remove(z.tabFocused), p == null || p(), (u1 =
|
|
3980
|
-
|
|
3979
|
+
l1 && l1.classList.remove(z.tabFocused), p == null || p(), (u1 = Z == null ? void 0 : Z.onBlur) == null || u1.call(
|
|
3980
|
+
Z,
|
|
3981
3981
|
i1
|
|
3982
3982
|
);
|
|
3983
3983
|
},
|
|
3984
|
-
[p,
|
|
3984
|
+
[p, Z]
|
|
3985
3985
|
), o2 = x1(
|
|
3986
3986
|
(i1) => {
|
|
3987
3987
|
var u1;
|
|
3988
3988
|
if (s || l) return;
|
|
3989
3989
|
const l1 = i1.target.value;
|
|
3990
|
-
p1(l1), w == null || w(l1, i1), (u1 =
|
|
3991
|
-
|
|
3990
|
+
p1(l1), w == null || w(l1, i1), (u1 = Z == null ? void 0 : Z.onChange) == null || u1.call(
|
|
3991
|
+
Z,
|
|
3992
3992
|
i1
|
|
3993
3993
|
);
|
|
3994
3994
|
},
|
|
3995
|
-
[w,
|
|
3995
|
+
[w, Z, s, l]
|
|
3996
3996
|
);
|
|
3997
3997
|
return Q(() => {
|
|
3998
3998
|
p1(u || "");
|
|
@@ -4009,14 +4009,14 @@ const p9 = Object.assign(zC, {
|
|
|
4009
4009
|
wrapperStyles: b,
|
|
4010
4010
|
floatingLabelStyles: B,
|
|
4011
4011
|
prefixStyles: x,
|
|
4012
|
-
suffixStyles:
|
|
4012
|
+
suffixStyles: V,
|
|
4013
4013
|
labelProps: j,
|
|
4014
4014
|
helperProps: O,
|
|
4015
|
-
showLimit:
|
|
4016
|
-
maxLength:
|
|
4015
|
+
showLimit: I,
|
|
4016
|
+
maxLength: T,
|
|
4017
4017
|
hint: R,
|
|
4018
|
-
showHint:
|
|
4019
|
-
showHintOnEmpty:
|
|
4018
|
+
showHint: D,
|
|
4019
|
+
showHintOnEmpty: A,
|
|
4020
4020
|
prefix: d,
|
|
4021
4021
|
suffix: _,
|
|
4022
4022
|
onSuffixClick: m,
|
|
@@ -4044,16 +4044,16 @@ const p9 = Object.assign(zC, {
|
|
|
4044
4044
|
onChange: o2,
|
|
4045
4045
|
onKeyDown: f,
|
|
4046
4046
|
onKeyUp: $1,
|
|
4047
|
-
maxLength:
|
|
4047
|
+
maxLength: T,
|
|
4048
4048
|
truncate: U,
|
|
4049
4049
|
"data-empty": !O1,
|
|
4050
4050
|
shouldShowFloatingLabelClass: b1,
|
|
4051
|
-
style: t === "textarea" ?
|
|
4051
|
+
style: t === "textarea" ? y : void 0,
|
|
4052
4052
|
"aria-invalid": !!C,
|
|
4053
4053
|
"aria-errormessage": C ? `${J}-error` : void 0,
|
|
4054
4054
|
id: J,
|
|
4055
4055
|
resize: N,
|
|
4056
|
-
...
|
|
4056
|
+
...Z
|
|
4057
4057
|
}
|
|
4058
4058
|
)
|
|
4059
4059
|
}
|
|
@@ -4241,16 +4241,16 @@ const p9 = Object.assign(zC, {
|
|
|
4241
4241
|
onBlur: b,
|
|
4242
4242
|
onSuffixClick: B,
|
|
4243
4243
|
onClear: x,
|
|
4244
|
-
className:
|
|
4245
|
-
truncate:
|
|
4244
|
+
className: V,
|
|
4245
|
+
truncate: y = !0,
|
|
4246
4246
|
hint: j,
|
|
4247
4247
|
showHint: O = !1,
|
|
4248
|
-
showHintOnEmpty:
|
|
4249
|
-
wrapperProps:
|
|
4250
|
-
labelProps:
|
|
4248
|
+
showHintOnEmpty: I = !1,
|
|
4249
|
+
wrapperProps: T,
|
|
4250
|
+
labelProps: Z,
|
|
4251
4251
|
helperProps: R,
|
|
4252
|
-
...
|
|
4253
|
-
},
|
|
4252
|
+
...D
|
|
4253
|
+
}, A) => {
|
|
4254
4254
|
const U = (t || "").length > 0, N = L === t1.XL, n1 = !!p, K = N && u && !p, X = m && U && !(_ || E), W = () => {
|
|
4255
4255
|
o == null || o(""), x == null || x();
|
|
4256
4256
|
}, J = () => {
|
|
@@ -4288,22 +4288,22 @@ const p9 = Object.assign(zC, {
|
|
|
4288
4288
|
onChange: o,
|
|
4289
4289
|
value: t,
|
|
4290
4290
|
placeholder: C,
|
|
4291
|
-
className:
|
|
4291
|
+
className: V,
|
|
4292
4292
|
wrapperStyles: h1.wrapperStyles,
|
|
4293
4293
|
floatingLabelStyles: h1.floatingLabelStyles,
|
|
4294
4294
|
prefixStyles: h1.prefixStyles,
|
|
4295
4295
|
suffixStyles: h1.suffixStyles,
|
|
4296
|
-
wrapperProps:
|
|
4297
|
-
labelProps:
|
|
4296
|
+
wrapperProps: T,
|
|
4297
|
+
labelProps: Z,
|
|
4298
4298
|
helperProps: R,
|
|
4299
4299
|
showLimit: !1,
|
|
4300
4300
|
maxLength: s,
|
|
4301
4301
|
inputProps: p1,
|
|
4302
4302
|
hint: j,
|
|
4303
4303
|
showHint: O,
|
|
4304
|
-
showHintOnEmpty:
|
|
4305
|
-
truncate:
|
|
4306
|
-
...
|
|
4304
|
+
showHintOnEmpty: I,
|
|
4305
|
+
truncate: y,
|
|
4306
|
+
...D
|
|
4307
4307
|
}
|
|
4308
4308
|
);
|
|
4309
4309
|
}
|
|
@@ -4454,15 +4454,15 @@ const p9 = Object.assign(zC, {
|
|
|
4454
4454
|
className: b,
|
|
4455
4455
|
rows: B = 1,
|
|
4456
4456
|
showLimit: x = !1,
|
|
4457
|
-
wrapperProps:
|
|
4458
|
-
labelProps:
|
|
4457
|
+
wrapperProps: V,
|
|
4458
|
+
labelProps: y,
|
|
4459
4459
|
helperProps: j,
|
|
4460
4460
|
showGrip: O,
|
|
4461
|
-
minHeight:
|
|
4462
|
-
resize:
|
|
4463
|
-
...
|
|
4461
|
+
minHeight: I,
|
|
4462
|
+
resize: T,
|
|
4463
|
+
...Z
|
|
4464
4464
|
}, R) => {
|
|
4465
|
-
const
|
|
4465
|
+
const D = (t || "").length > 0, A = f && !!i && (c === H1.M || I !== 48), U = h && D && !(v || d), N = () => {
|
|
4466
4466
|
o == null || o(""), u == null || u();
|
|
4467
4467
|
}, n1 = () => {
|
|
4468
4468
|
U && N();
|
|
@@ -4474,11 +4474,11 @@ const p9 = Object.assign(zC, {
|
|
|
4474
4474
|
style: { cursor: "pointer" },
|
|
4475
4475
|
"data-testid": "x-icon"
|
|
4476
4476
|
}
|
|
4477
|
-
) : E, X = aa(c,
|
|
4477
|
+
) : E, X = aa(c, I, A && D, T), W = ia(c, I), J = {
|
|
4478
4478
|
rows: B,
|
|
4479
4479
|
minLength: s,
|
|
4480
4480
|
autoFocus: l,
|
|
4481
|
-
resize:
|
|
4481
|
+
resize: T,
|
|
4482
4482
|
...g
|
|
4483
4483
|
};
|
|
4484
4484
|
return /* @__PURE__ */ r.jsx(
|
|
@@ -4494,7 +4494,7 @@ const p9 = Object.assign(zC, {
|
|
|
4494
4494
|
helper: _,
|
|
4495
4495
|
suffix: K,
|
|
4496
4496
|
id: p,
|
|
4497
|
-
showLabel:
|
|
4497
|
+
showLabel: A,
|
|
4498
4498
|
onFocus: m,
|
|
4499
4499
|
onBlur: w,
|
|
4500
4500
|
onKeyDown: k,
|
|
@@ -4502,20 +4502,20 @@ const p9 = Object.assign(zC, {
|
|
|
4502
4502
|
value: t || "",
|
|
4503
4503
|
placeholder: i,
|
|
4504
4504
|
className: b,
|
|
4505
|
-
"data-floating-label":
|
|
4505
|
+
"data-floating-label": A,
|
|
4506
4506
|
wrapperStyles: X.wrapperStyles,
|
|
4507
4507
|
floatingLabelStyles: X.floatingLabelStyles,
|
|
4508
4508
|
suffixStyles: X.suffixStyles,
|
|
4509
4509
|
textareaStyles: X.textareaStyles,
|
|
4510
|
-
wrapperProps:
|
|
4511
|
-
labelProps:
|
|
4510
|
+
wrapperProps: V,
|
|
4511
|
+
labelProps: y,
|
|
4512
4512
|
helperProps: j,
|
|
4513
|
-
showLimit: x && (
|
|
4513
|
+
showLimit: x && (I === 112 || c === H1.M),
|
|
4514
4514
|
maxLength: C,
|
|
4515
4515
|
inputProps: J,
|
|
4516
|
-
resize:
|
|
4516
|
+
resize: T,
|
|
4517
4517
|
showGrip: O,
|
|
4518
|
-
...
|
|
4518
|
+
...Z
|
|
4519
4519
|
}
|
|
4520
4520
|
);
|
|
4521
4521
|
}
|
|
@@ -4589,11 +4589,11 @@ const p9 = Object.assign(zC, {
|
|
|
4589
4589
|
onChange: u,
|
|
4590
4590
|
"data-testid": k,
|
|
4591
4591
|
...b
|
|
4592
|
-
} = t, B = !!g, x = L || c,
|
|
4593
|
-
x || u == null || u(s,
|
|
4594
|
-
},
|
|
4595
|
-
|
|
4596
|
-
},
|
|
4592
|
+
} = t, B = !!g, x = L || c, V = h === "all", y = p === "card", j = M1[`${l}Card`], O = C ?? i, I = (A) => {
|
|
4593
|
+
x || u == null || u(s, A);
|
|
4594
|
+
}, T = (A) => {
|
|
4595
|
+
A.key === "Enter" && !x && (A.preventDefault(), u == null || u(s));
|
|
4596
|
+
}, Z = (A) => A.stopPropagation(), R = () => /* @__PURE__ */ r.jsxs(
|
|
4597
4597
|
"div",
|
|
4598
4598
|
{
|
|
4599
4599
|
className: H(
|
|
@@ -4624,42 +4624,42 @@ const p9 = Object.assign(zC, {
|
|
|
4624
4624
|
ref: o,
|
|
4625
4625
|
type: "radio",
|
|
4626
4626
|
value: s,
|
|
4627
|
-
onChange:
|
|
4628
|
-
onClick:
|
|
4627
|
+
onChange: I,
|
|
4628
|
+
onClick: Z
|
|
4629
4629
|
}
|
|
4630
4630
|
),
|
|
4631
4631
|
/* @__PURE__ */ r.jsx("svg", { "data-testid": `radio-icon-${O}`, viewBox: "0 0 8 8", className: M1.icon, children: /* @__PURE__ */ r.jsx("circle", { cx: 4, cy: 4, fill: "current", r: 4 }) })
|
|
4632
4632
|
]
|
|
4633
4633
|
}
|
|
4634
|
-
),
|
|
4634
|
+
), D = () => /* @__PURE__ */ r.jsxs(
|
|
4635
4635
|
"label",
|
|
4636
4636
|
{
|
|
4637
4637
|
"aria-checked": v,
|
|
4638
4638
|
"aria-disabled": x,
|
|
4639
|
-
"data-testid":
|
|
4639
|
+
"data-testid": V ? k : ba,
|
|
4640
4640
|
htmlFor: O,
|
|
4641
4641
|
style: w,
|
|
4642
4642
|
className: H(M1.label, {
|
|
4643
|
-
[H(M1.container, M1[p], d)]:
|
|
4644
|
-
[j]:
|
|
4643
|
+
[H(M1.container, M1[p], d)]: V,
|
|
4644
|
+
[j]: V && y
|
|
4645
4645
|
}),
|
|
4646
|
-
onKeyDown:
|
|
4646
|
+
onKeyDown: T,
|
|
4647
4647
|
...b,
|
|
4648
4648
|
children: [
|
|
4649
4649
|
R(),
|
|
4650
|
-
|
|
4650
|
+
V && E
|
|
4651
4651
|
]
|
|
4652
4652
|
}
|
|
4653
4653
|
);
|
|
4654
|
-
return
|
|
4654
|
+
return V ? D() : /* @__PURE__ */ r.jsxs(
|
|
4655
4655
|
"div",
|
|
4656
4656
|
{
|
|
4657
4657
|
className: H(M1.container, M1[p], d, {
|
|
4658
|
-
[j]:
|
|
4658
|
+
[j]: y
|
|
4659
4659
|
}),
|
|
4660
4660
|
"data-testid": k,
|
|
4661
4661
|
children: [
|
|
4662
|
-
|
|
4662
|
+
D(),
|
|
4663
4663
|
E
|
|
4664
4664
|
]
|
|
4665
4665
|
}
|
|
@@ -4922,7 +4922,7 @@ const p9 = Object.assign(zC, {
|
|
|
4922
4922
|
[m1.selected]: i,
|
|
4923
4923
|
[m1.disabled]: c
|
|
4924
4924
|
}
|
|
4925
|
-
),
|
|
4925
|
+
), V = H(m1.tabLabel, m1[t], u[t]), y = (O) => {
|
|
4926
4926
|
i || c || (g(L), O.currentTarget.scrollIntoView({ behavior: "smooth", inline: "center", block: "nearest" }));
|
|
4927
4927
|
}, j = /* @__PURE__ */ r.jsxs(
|
|
4928
4928
|
"button",
|
|
@@ -4934,7 +4934,7 @@ const p9 = Object.assign(zC, {
|
|
|
4934
4934
|
"aria-disabled": c,
|
|
4935
4935
|
"aria-controls": `tab-panel-${L}`,
|
|
4936
4936
|
"data-testid": `tab-item-${L}`,
|
|
4937
|
-
onClick:
|
|
4937
|
+
onClick: y,
|
|
4938
4938
|
children: [
|
|
4939
4939
|
d && /* @__PURE__ */ r.jsx(
|
|
4940
4940
|
"span",
|
|
@@ -4945,7 +4945,7 @@ const p9 = Object.assign(zC, {
|
|
|
4945
4945
|
children: d
|
|
4946
4946
|
}
|
|
4947
4947
|
),
|
|
4948
|
-
/* @__PURE__ */ r.jsx("span", { className:
|
|
4948
|
+
/* @__PURE__ */ r.jsx("span", { className: V, "data-testid": `tab-label-${L}`, children: v }),
|
|
4949
4949
|
E && /* @__PURE__ */ r.jsx(
|
|
4950
4950
|
"span",
|
|
4951
4951
|
{
|
|
@@ -5211,7 +5211,7 @@ const p9 = Object.assign(zC, {
|
|
|
5211
5211
|
const d = ["neutral", "accent"].includes(C) ? "contrast" : "primary", _ = s === "m", E = !!(o && _), h = !!(i && _), p = g && !!g.length, f = !!(v && _) || !v && _ && !p, m = s === "xs" ? 4 : 3;
|
|
5212
5212
|
return /* @__PURE__ */ r.jsxs("div", { className: E1.content, children: [
|
|
5213
5213
|
h && /* @__PURE__ */ r.jsx("div", { className: H(E1.mediaWrapper, l.mediaWrapper), children: i }),
|
|
5214
|
-
/* @__PURE__ */ r.jsxs("div", { className: l.textWrapper, children: [
|
|
5214
|
+
/* @__PURE__ */ r.jsxs("div", { className: l == null ? void 0 : l.textWrapper, children: [
|
|
5215
5215
|
E && /* @__PURE__ */ r.jsx(
|
|
5216
5216
|
G1.Subtitle,
|
|
5217
5217
|
{
|
|
@@ -5246,11 +5246,11 @@ const p9 = Object.assign(zC, {
|
|
|
5246
5246
|
}
|
|
5247
5247
|
),
|
|
5248
5248
|
_ && p && /* @__PURE__ */ r.jsx("div", { className: E1.buttonStack, children: g.map((w, u) => {
|
|
5249
|
-
const k = $s(u, g.length, C), b = Ps(w, k, L), { closeOnClick: B, ...x } = b,
|
|
5249
|
+
const k = $s(u, g.length, C), b = Ps(w, k, L), { closeOnClick: B, ...x } = b, V = (y) => {
|
|
5250
5250
|
var j;
|
|
5251
|
-
(j = x.onClick) == null || j.call(x,
|
|
5251
|
+
(j = x.onClick) == null || j.call(x, y), B && (c == null || c());
|
|
5252
5252
|
};
|
|
5253
|
-
return /* @__PURE__ */ r.jsx(c2, { ...x, onClick:
|
|
5253
|
+
return /* @__PURE__ */ r.jsx(c2, { ...x, onClick: V }, u);
|
|
5254
5254
|
}) })
|
|
5255
5255
|
] });
|
|
5256
5256
|
}, Rd = ({
|
|
@@ -5271,18 +5271,22 @@ const p9 = Object.assign(zC, {
|
|
|
5271
5271
|
buttons: p,
|
|
5272
5272
|
buttonProps: f,
|
|
5273
5273
|
onClose: m,
|
|
5274
|
-
|
|
5274
|
+
visible: w,
|
|
5275
|
+
onVisibleChange: u,
|
|
5276
|
+
...k
|
|
5275
5277
|
}) => {
|
|
5276
|
-
const [
|
|
5277
|
-
|
|
5278
|
-
},
|
|
5278
|
+
const [b, B] = d1(!!w), x = w !== void 0, [V, y] = d1(!1), j = d === "m" ? Ts : Ds, O = () => {
|
|
5279
|
+
x || B(!1), m == null || m();
|
|
5280
|
+
}, I = (Z) => {
|
|
5281
|
+
x || B(Z), u == null || u(Z);
|
|
5282
|
+
}, T = t || (d === "m" ? /* @__PURE__ */ r.jsx(
|
|
5279
5283
|
L9,
|
|
5280
5284
|
{
|
|
5281
5285
|
classNames: C,
|
|
5282
5286
|
text: _,
|
|
5283
5287
|
variant: v,
|
|
5284
5288
|
size: d,
|
|
5285
|
-
onClose:
|
|
5289
|
+
onClose: O,
|
|
5286
5290
|
title: E,
|
|
5287
5291
|
media: h,
|
|
5288
5292
|
showClose: g,
|
|
@@ -5296,37 +5300,37 @@ const p9 = Object.assign(zC, {
|
|
|
5296
5300
|
text: _,
|
|
5297
5301
|
variant: v,
|
|
5298
5302
|
size: d,
|
|
5299
|
-
onClose:
|
|
5303
|
+
onClose: O
|
|
5300
5304
|
}
|
|
5301
5305
|
));
|
|
5302
5306
|
return Q(() => {
|
|
5303
|
-
if (
|
|
5304
|
-
const
|
|
5305
|
-
return () => cancelAnimationFrame(
|
|
5307
|
+
if (b) {
|
|
5308
|
+
const Z = requestAnimationFrame(() => y(!0));
|
|
5309
|
+
return () => cancelAnimationFrame(Z);
|
|
5306
5310
|
}
|
|
5307
|
-
|
|
5308
|
-
}, [
|
|
5311
|
+
y(!1);
|
|
5312
|
+
}, [b]), /* @__PURE__ */ r.jsx(
|
|
5309
5313
|
M3,
|
|
5310
5314
|
{
|
|
5311
|
-
visible:
|
|
5312
|
-
onVisibleChange:
|
|
5315
|
+
visible: x ? w : b,
|
|
5316
|
+
onVisibleChange: I,
|
|
5313
5317
|
classNames: {
|
|
5314
|
-
root: H(E1.root, E1[v], E1[d],
|
|
5315
|
-
...
|
|
5318
|
+
root: H(E1.root, E1[v], E1[d], V && E1.open),
|
|
5319
|
+
...k.classNames
|
|
5316
5320
|
},
|
|
5317
5321
|
placement: i,
|
|
5318
|
-
overlay:
|
|
5322
|
+
overlay: T,
|
|
5319
5323
|
trigger: L,
|
|
5320
5324
|
mouseEnterDelay: s,
|
|
5321
5325
|
mouseLeaveDelay: l,
|
|
5322
5326
|
motion: { motionName: "tooltipMotion" },
|
|
5323
|
-
builtinPlacements:
|
|
5327
|
+
builtinPlacements: j,
|
|
5324
5328
|
showArrow: c ? {
|
|
5325
5329
|
content: /* @__PURE__ */ r.jsx(Is, {}),
|
|
5326
5330
|
className: `tooltipArrow tooltipArrow-${d}`
|
|
5327
5331
|
} : !1,
|
|
5328
5332
|
destroyTooltipOnHide: !0,
|
|
5329
|
-
...
|
|
5333
|
+
...k,
|
|
5330
5334
|
children: o
|
|
5331
5335
|
}
|
|
5332
5336
|
);
|
|
@@ -5418,7 +5422,7 @@ const p9 = Object.assign(zC, {
|
|
|
5418
5422
|
...d,
|
|
5419
5423
|
children: [
|
|
5420
5424
|
l == null ? void 0 : l.map(({ label: k, value: b, containerProps: B = {} }, x) => {
|
|
5421
|
-
const { className:
|
|
5425
|
+
const { className: V, ...y } = B, j = () => u(b), O = JSON.stringify(b), I = E === b;
|
|
5422
5426
|
return /* @__PURE__ */ r.jsxs(q1, { children: [
|
|
5423
5427
|
/* @__PURE__ */ r.jsx(
|
|
5424
5428
|
"input",
|
|
@@ -5426,19 +5430,19 @@ const p9 = Object.assign(zC, {
|
|
|
5426
5430
|
id: _ + O,
|
|
5427
5431
|
value: O,
|
|
5428
5432
|
type: "radio",
|
|
5429
|
-
checked:
|
|
5433
|
+
checked: I,
|
|
5430
5434
|
readOnly: !0
|
|
5431
5435
|
}
|
|
5432
5436
|
),
|
|
5433
5437
|
/* @__PURE__ */ r.jsx(
|
|
5434
5438
|
"label",
|
|
5435
5439
|
{
|
|
5436
|
-
"data-is-active-segment":
|
|
5437
|
-
className: H(A1.segment, w9[s], { [A1.selected]:
|
|
5440
|
+
"data-is-active-segment": I,
|
|
5441
|
+
className: H(A1.segment, w9[s], { [A1.selected]: I }, V),
|
|
5438
5442
|
htmlFor: _ + O,
|
|
5439
5443
|
"data-testid": "segmented-control-segment",
|
|
5440
5444
|
onClick: j,
|
|
5441
|
-
...
|
|
5445
|
+
...y,
|
|
5442
5446
|
children: k
|
|
5443
5447
|
}
|
|
5444
5448
|
)
|
|
@@ -5538,7 +5542,7 @@ const c1 = {
|
|
|
5538
5542
|
classNames: h = {},
|
|
5539
5543
|
styles: p = {}
|
|
5540
5544
|
}) => {
|
|
5541
|
-
const f = !!t, m = !!C, w = !!g, u = l === "applied", k = !!i && (!w || d) || w && !d, b = (w && !d ? g : i) || "", B = w && !d, x = Mc(o, f),
|
|
5545
|
+
const f = !!t, m = !!C, w = !!g, u = l === "applied", k = !!i && (!w || d) || w && !d, b = (w && !d ? g : i) || "", B = w && !d, x = Mc(o, f), V = m && x === e2.FLOATING, y = x === e2.HIDDEN, j = H(
|
|
5542
5546
|
c1["trigger-wrapper"],
|
|
5543
5547
|
{ [c1["trigger-stretched"]]: s },
|
|
5544
5548
|
h.wrapper
|
|
@@ -5550,23 +5554,23 @@ const c1 = {
|
|
|
5550
5554
|
[c1["trigger-container-applied"]]: u && f,
|
|
5551
5555
|
[c1["trigger-container-error"]]: w && !d,
|
|
5552
5556
|
[c1["trigger-container-open"]]: _,
|
|
5553
|
-
[c1["trigger-container-floating"]]:
|
|
5557
|
+
[c1["trigger-container-floating"]]: V
|
|
5554
5558
|
},
|
|
5555
5559
|
h.triggerContainer
|
|
5556
|
-
),
|
|
5560
|
+
), I = H(
|
|
5557
5561
|
c1["trigger-content-container"],
|
|
5558
5562
|
{
|
|
5559
|
-
[c1["trigger-content-container-floating"]]:
|
|
5563
|
+
[c1["trigger-content-container-floating"]]: V
|
|
5560
5564
|
},
|
|
5561
5565
|
h.triggerContent
|
|
5562
|
-
),
|
|
5566
|
+
), T = H(
|
|
5563
5567
|
c1["trigger-label"],
|
|
5564
5568
|
{
|
|
5565
|
-
[c1["trigger-label-floating"]]:
|
|
5566
|
-
[c1["trigger-label-hidden"]]:
|
|
5569
|
+
[c1["trigger-label-floating"]]: V,
|
|
5570
|
+
[c1["trigger-label-hidden"]]: y
|
|
5567
5571
|
},
|
|
5568
5572
|
h.label
|
|
5569
|
-
),
|
|
5573
|
+
), Z = H(c1["trigger-content"], h.content), R = H(c1["trigger-postfix"], h.postfixTitle), D = H(c1["trigger-chevron-icon"], h.chevronIcon), A = H(
|
|
5570
5574
|
c1["trigger-prefix-icon"],
|
|
5571
5575
|
h.prefixIconContainer
|
|
5572
5576
|
), U = H(c1["trigger-clear-icon"], h.clearIcon), N = (W) => {
|
|
@@ -5586,18 +5590,18 @@ const c1 = {
|
|
|
5586
5590
|
disabled: d,
|
|
5587
5591
|
type: "button",
|
|
5588
5592
|
children: [
|
|
5589
|
-
L && o !== "XL" && /* @__PURE__ */ r.jsx("div", { className:
|
|
5590
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
5593
|
+
L && o !== "XL" && /* @__PURE__ */ r.jsx("div", { className: A, style: p.prefixIconContainer, children: L }),
|
|
5594
|
+
/* @__PURE__ */ r.jsxs("div", { className: I, style: p.triggerContent, children: [
|
|
5591
5595
|
m && /* @__PURE__ */ r.jsx(
|
|
5592
5596
|
G1.Label,
|
|
5593
5597
|
{
|
|
5594
5598
|
"data-testid": "trigger-label",
|
|
5595
|
-
className:
|
|
5599
|
+
className: T,
|
|
5596
5600
|
style: p.label,
|
|
5597
|
-
size: xc(o,
|
|
5601
|
+
size: xc(o, V),
|
|
5598
5602
|
as: "span",
|
|
5599
5603
|
disabled: d,
|
|
5600
|
-
typographyStyle:
|
|
5604
|
+
typographyStyle: V ? "secondary" : "tertiary",
|
|
5601
5605
|
children: C
|
|
5602
5606
|
}
|
|
5603
5607
|
),
|
|
@@ -5605,7 +5609,7 @@ const c1 = {
|
|
|
5605
5609
|
G1.Label,
|
|
5606
5610
|
{
|
|
5607
5611
|
"data-testid": "trigger-content-container",
|
|
5608
|
-
className:
|
|
5612
|
+
className: Z,
|
|
5609
5613
|
style: p.content,
|
|
5610
5614
|
size: v9(o),
|
|
5611
5615
|
as: "span",
|
|
@@ -5642,7 +5646,7 @@ const c1 = {
|
|
|
5642
5646
|
{
|
|
5643
5647
|
"data-testid": "trigger-chevron",
|
|
5644
5648
|
size: f9(o),
|
|
5645
|
-
className:
|
|
5649
|
+
className: D,
|
|
5646
5650
|
color: "#AABBCA",
|
|
5647
5651
|
style: p.chevronIcon
|
|
5648
5652
|
}
|
|
@@ -5927,33 +5931,33 @@ const Bc = "_stack_1sg4d_1", jc = "_local_1sg4d_19", Oc = "_snackWrapper_1sg4d_2
|
|
|
5927
5931
|
linkButtonProps: f,
|
|
5928
5932
|
closeOnLinkClick: m = !0,
|
|
5929
5933
|
"data-testid": w = "snackbar"
|
|
5930
|
-
} = t, u = v1(null), k = v1(null), [b, B] = d1(!1), [x,
|
|
5931
|
-
clearTimeout(
|
|
5934
|
+
} = t, u = v1(null), k = v1(null), [b, B] = d1(!1), [x, V] = d1(!1), [y, j] = d1(), O = v1(0), I = v1(0), T = v1(0), Z = v1(0), R = v1(!1), D = v1(null), A = (W) => {
|
|
5935
|
+
clearTimeout(D.current || 0), D.current = null;
|
|
5932
5936
|
const J = h ? Zc[W] : A9[W];
|
|
5933
|
-
W === "swipe" || (
|
|
5934
|
-
l == null || l(),
|
|
5937
|
+
W === "swipe" || (V(!0), j(W)), D.current = setTimeout(() => {
|
|
5938
|
+
l == null || l(), V(!1), j(void 0), D.current = null;
|
|
5935
5939
|
}, J);
|
|
5936
5940
|
};
|
|
5937
5941
|
yc({
|
|
5938
5942
|
ref: k,
|
|
5939
5943
|
open: i,
|
|
5940
|
-
onClose:
|
|
5941
|
-
setExiting:
|
|
5944
|
+
onClose: A,
|
|
5945
|
+
setExiting: V,
|
|
5942
5946
|
setExitReason: j,
|
|
5943
5947
|
swiping: R,
|
|
5944
5948
|
startX: O,
|
|
5945
|
-
startY:
|
|
5946
|
-
currentX:
|
|
5947
|
-
currentY:
|
|
5949
|
+
startY: I,
|
|
5950
|
+
currentX: T,
|
|
5951
|
+
currentY: Z
|
|
5948
5952
|
}), Q(() => {
|
|
5949
|
-
p &&
|
|
5953
|
+
p && A("close");
|
|
5950
5954
|
}, [p]), Q(() => {
|
|
5951
5955
|
if (i && !g && C !== "loading") {
|
|
5952
|
-
const W = setTimeout(() =>
|
|
5956
|
+
const W = setTimeout(() => A("timeout"), c);
|
|
5953
5957
|
return () => clearTimeout(W);
|
|
5954
5958
|
}
|
|
5955
5959
|
}, [i, g, C, c]), Q(() => {
|
|
5956
|
-
i && (
|
|
5960
|
+
i && (V(!1), j(void 0));
|
|
5957
5961
|
}, [i]), Q(() => {
|
|
5958
5962
|
const W = u.current;
|
|
5959
5963
|
W && requestAnimationFrame(() => {
|
|
@@ -5963,13 +5967,13 @@ const Bc = "_stack_1sg4d_1", jc = "_local_1sg4d_19", Oc = "_snackWrapper_1sg4d_2
|
|
|
5963
5967
|
}, [d]), Q(() => {
|
|
5964
5968
|
if (!i) return;
|
|
5965
5969
|
const W = (J) => {
|
|
5966
|
-
J.key === "Escape" &&
|
|
5970
|
+
J.key === "Escape" && A("escape");
|
|
5967
5971
|
};
|
|
5968
5972
|
return window.addEventListener("keydown", W), () => window.removeEventListener("keydown", W);
|
|
5969
5973
|
}, [i]), Q(() => () => {
|
|
5970
|
-
|
|
5974
|
+
D.current && (clearTimeout(D.current), D.current = null);
|
|
5971
5975
|
}, []);
|
|
5972
|
-
const U = x &&
|
|
5976
|
+
const U = x && y && g1[bc[y]];
|
|
5973
5977
|
if (!i && !x) return null;
|
|
5974
5978
|
const N = {
|
|
5975
5979
|
success: /* @__PURE__ */ r.jsx(id, { className: g1.icon }),
|
|
@@ -5979,7 +5983,7 @@ const Bc = "_stack_1sg4d_1", jc = "_local_1sg4d_19", Oc = "_snackWrapper_1sg4d_2
|
|
|
5979
5983
|
}, n1 = k1(
|
|
5980
5984
|
g1.snackbar,
|
|
5981
5985
|
g1[s],
|
|
5982
|
-
{ [g1.exiting]: x &&
|
|
5986
|
+
{ [g1.exiting]: x && y },
|
|
5983
5987
|
{ [g1.snackbarVertical]: b },
|
|
5984
5988
|
_,
|
|
5985
5989
|
U,
|
|
@@ -6027,7 +6031,7 @@ const Bc = "_stack_1sg4d_1", jc = "_local_1sg4d_19", Oc = "_snackWrapper_1sg4d_2
|
|
|
6027
6031
|
buttonStyle: "contrast",
|
|
6028
6032
|
...f,
|
|
6029
6033
|
onClick: (W) => {
|
|
6030
|
-
X(f.onClick, W), m &&
|
|
6034
|
+
X(f.onClick, W), m && A("timeout");
|
|
6031
6035
|
}
|
|
6032
6036
|
}
|
|
6033
6037
|
)
|
|
@@ -6041,7 +6045,7 @@ const Bc = "_stack_1sg4d_1", jc = "_local_1sg4d_19", Oc = "_snackWrapper_1sg4d_2
|
|
|
6041
6045
|
c2,
|
|
6042
6046
|
{
|
|
6043
6047
|
iconLeft: /* @__PURE__ */ r.jsx(nd, {}),
|
|
6044
|
-
onClick: () =>
|
|
6048
|
+
onClick: () => A("close"),
|
|
6045
6049
|
mode: "tertiary",
|
|
6046
6050
|
size: "l",
|
|
6047
6051
|
buttonStyle: "contrast",
|
|
@@ -6237,8 +6241,8 @@ const Bc = "_stack_1sg4d_1", jc = "_local_1sg4d_19", Oc = "_snackWrapper_1sg4d_2
|
|
|
6237
6241
|
toggle: b,
|
|
6238
6242
|
drop: B,
|
|
6239
6243
|
content: x,
|
|
6240
|
-
footer:
|
|
6241
|
-
} = h ?? {},
|
|
6244
|
+
footer: V
|
|
6245
|
+
} = h ?? {}, y = L === "click", j = L === "hover", { refs: O, floatingStyles: I, placement: T, context: Z } = E9({
|
|
6242
6246
|
open: o,
|
|
6243
6247
|
onOpenChange: i,
|
|
6244
6248
|
placement: s,
|
|
@@ -6267,12 +6271,12 @@ const Bc = "_stack_1sg4d_1", jc = "_local_1sg4d_19", Oc = "_snackWrapper_1sg4d_2
|
|
|
6267
6271
|
],
|
|
6268
6272
|
whileElementsMounted: u3
|
|
6269
6273
|
// Для автоматического обновление позиции при скролле/ресайзе
|
|
6270
|
-
}), R = _3(
|
|
6274
|
+
}), R = _3(Z, {
|
|
6271
6275
|
enabled: j,
|
|
6272
6276
|
// Включен только в режиме hover
|
|
6273
6277
|
handleClose: E3()
|
|
6274
6278
|
// Создает зону, по которой курсор может безопасно перемещаться от toggle к drop
|
|
6275
|
-
}), { isMounted:
|
|
6279
|
+
}), { isMounted: D, styles: A } = k9(Z, {
|
|
6276
6280
|
initial: {
|
|
6277
6281
|
opacity: 0
|
|
6278
6282
|
},
|
|
@@ -6284,10 +6288,10 @@ const Bc = "_stack_1sg4d_1", jc = "_local_1sg4d_19", Oc = "_snackWrapper_1sg4d_2
|
|
|
6284
6288
|
opacity: 0,
|
|
6285
6289
|
transition: `opacity ${gd}`
|
|
6286
6290
|
}
|
|
6287
|
-
}), U = M9(
|
|
6291
|
+
}), U = M9(Z, {
|
|
6288
6292
|
referencePress: !1,
|
|
6289
6293
|
// Не закрывать при клике на триггер
|
|
6290
|
-
outsidePress: c &&
|
|
6294
|
+
outsidePress: c && y,
|
|
6291
6295
|
// Закрывать при клике вне дропа
|
|
6292
6296
|
escapeKey: g,
|
|
6293
6297
|
// Закрывать по ESC
|
|
@@ -6310,24 +6314,24 @@ const Bc = "_stack_1sg4d_1", jc = "_local_1sg4d_19", Oc = "_snackWrapper_1sg4d_2
|
|
|
6310
6314
|
tabIndex: 0,
|
|
6311
6315
|
"data-testid": "drop-toggle",
|
|
6312
6316
|
className: W,
|
|
6313
|
-
onClick:
|
|
6317
|
+
onClick: y ? L1 : void 0,
|
|
6314
6318
|
style: b,
|
|
6315
6319
|
...N(),
|
|
6316
6320
|
children: t
|
|
6317
6321
|
}
|
|
6318
6322
|
),
|
|
6319
|
-
|
|
6323
|
+
D && /* @__PURE__ */ r.jsx(H9, { children: /* @__PURE__ */ r.jsxs(
|
|
6320
6324
|
"div",
|
|
6321
6325
|
{
|
|
6322
6326
|
"aria-hidden": !o,
|
|
6323
6327
|
"data-testid": "drop-menu",
|
|
6324
6328
|
"data-drop-state": o ? "open" : "closed",
|
|
6325
|
-
"data-drop-position":
|
|
6329
|
+
"data-drop-position": T,
|
|
6326
6330
|
className: J,
|
|
6327
6331
|
style: {
|
|
6328
6332
|
...B,
|
|
6329
|
-
...
|
|
6330
|
-
...
|
|
6333
|
+
...I,
|
|
6334
|
+
...A
|
|
6331
6335
|
},
|
|
6332
6336
|
ref: O.setFloating,
|
|
6333
6337
|
...n1(),
|
|
@@ -6348,7 +6352,7 @@ const Bc = "_stack_1sg4d_1", jc = "_local_1sg4d_19", Oc = "_snackWrapper_1sg4d_2
|
|
|
6348
6352
|
{
|
|
6349
6353
|
footerPadding: d,
|
|
6350
6354
|
className: u,
|
|
6351
|
-
style:
|
|
6355
|
+
style: V,
|
|
6352
6356
|
children: _
|
|
6353
6357
|
}
|
|
6354
6358
|
)
|