skillgrid 0.0.45-tooltip-added-controlled-state.1326093 → 0.0.45
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.css +1 -1
- package/dist/index.es.js +304 -308
- package/package.json +2 -2
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, Z = !1, V = !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 || V || a === s || a === v || a === d || Z || 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 D(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 A(a) {
|
|
90
90
|
return a.displayName || "Context";
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function y(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 A(M) + ".Consumer";
|
|
118
118
|
case c:
|
|
119
119
|
var S = a;
|
|
120
|
-
return
|
|
120
|
+
return A(S._context) + ".Provider";
|
|
121
121
|
case L:
|
|
122
|
-
return
|
|
122
|
+
return D(a, a.render, "ForwardRef");
|
|
123
123
|
case _:
|
|
124
124
|
var F = a.displayName || null;
|
|
125
|
-
return F !== null ? F :
|
|
125
|
+
return F !== null ? F : y(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 y(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, I = 0, T, 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 (I === 0) {
|
|
144
|
+
T = 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
|
+
I++;
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
function p1() {
|
|
165
165
|
{
|
|
166
|
-
if (
|
|
166
|
+
if (I--, I === 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: T
|
|
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
|
+
I < 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 = y(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 " + y(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 = y(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 = y(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 = "<" + (y(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 = y(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), Z = l || m ? -1 : L, V = 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: D, style: A, target: y, rel: R, "data-testid": I, ...T } = t, U = f2(T), N = y ?? (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
|
+
D == null || D(X);
|
|
981
981
|
};
|
|
982
982
|
return /* @__PURE__ */ r.jsx(
|
|
983
983
|
"a",
|
|
984
984
|
{
|
|
985
985
|
ref: o,
|
|
986
|
-
className:
|
|
986
|
+
className: V,
|
|
987
987
|
href: w ? O : void 0,
|
|
988
|
-
tabIndex:
|
|
988
|
+
tabIndex: Z,
|
|
989
989
|
onClick: K,
|
|
990
|
-
"data-testid":
|
|
990
|
+
"data-testid": I,
|
|
991
991
|
"aria-disabled": l || m,
|
|
992
|
-
style:
|
|
992
|
+
style: A,
|
|
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: D, style: A, "data-testid": y, ...R } = t, I = f2(R), T = C === "l" ? 24 : 16, U = (N) => {
|
|
1002
|
+
w && D && D(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: V,
|
|
1010
1010
|
disabled: l,
|
|
1011
|
-
tabIndex:
|
|
1011
|
+
tabIndex: Z,
|
|
1012
1012
|
onClick: U,
|
|
1013
|
-
"data-testid":
|
|
1013
|
+
"data-testid": y,
|
|
1014
1014
|
"aria-disabled": l || m,
|
|
1015
|
-
style:
|
|
1016
|
-
...
|
|
1015
|
+
style: A,
|
|
1016
|
+
...I,
|
|
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: T
|
|
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: y, onClick: R, style: I, target: T, rel: U, "data-testid": N, isExternal: n1, ...K } = t, X = f2(K), W = T ?? (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 ? y : void 0,
|
|
1110
1110
|
tabIndex: k,
|
|
1111
1111
|
onClick: L1,
|
|
1112
1112
|
"data-testid": N,
|
|
1113
1113
|
"aria-disabled": l,
|
|
1114
|
-
style:
|
|
1114
|
+
style: I,
|
|
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: Z, style: V, "data-testid": j, ...O } = t, D = f2(O), A = (y) => {
|
|
1123
|
+
f && Z && Z(y);
|
|
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: A,
|
|
1134
1134
|
"data-testid": j,
|
|
1135
1135
|
"aria-disabled": l,
|
|
1136
|
-
style:
|
|
1137
|
-
...
|
|
1136
|
+
style: V,
|
|
1137
|
+
...D,
|
|
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, Z] = d1(!1);
|
|
1253
1253
|
Q(() => {
|
|
1254
|
-
d &&
|
|
1254
|
+
d && Z(!1);
|
|
1255
1255
|
}, [d]);
|
|
1256
|
-
const
|
|
1256
|
+
const V = d && !x ? "image" : E ? "icon" : v ? "name" : "placeholder", j = p || V === "name" && K4(v) || "gray", O = n6(C), D = e6(C, c), A = 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
|
+
), y = {
|
|
1268
1268
|
"--avatar-size": `${C}px`,
|
|
1269
|
-
"--avatar-border-radius": `${
|
|
1269
|
+
"--avatar-border-radius": `${D}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: () => Z(!1),
|
|
1302
|
+
onError: (T) => {
|
|
1303
1303
|
var U;
|
|
1304
|
-
|
|
1304
|
+
Z(!0), (U = h == null ? void 0 : h.onError) == null || U.call(h, T);
|
|
1305
1305
|
}
|
|
1306
1306
|
}
|
|
1307
1307
|
)
|
|
1308
|
-
},
|
|
1309
|
-
B && (u == null || u(
|
|
1308
|
+
}, I = (T) => {
|
|
1309
|
+
B && (u == null || u(T));
|
|
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: I,
|
|
1316
|
+
className: A,
|
|
1317
|
+
style: y,
|
|
1318
1318
|
"data-testid": m,
|
|
1319
1319
|
"aria-disabled": l || s,
|
|
1320
|
-
children: R[
|
|
1320
|
+
children: R[V](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 Z = x.clientX - d.current.startX, V = 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, V);
|
|
1556
1556
|
break;
|
|
1557
1557
|
case "top":
|
|
1558
|
-
j = Math.max(0, -
|
|
1558
|
+
j = Math.max(0, -V);
|
|
1559
1559
|
break;
|
|
1560
1560
|
case "right":
|
|
1561
|
-
j = Math.max(0,
|
|
1561
|
+
j = Math.max(0, Z);
|
|
1562
1562
|
break;
|
|
1563
1563
|
case "left":
|
|
1564
|
-
j = Math.max(0, -
|
|
1564
|
+
j = Math.max(0, -Z);
|
|
1565
1565
|
break;
|
|
1566
1566
|
default:
|
|
1567
|
-
j = f ?
|
|
1567
|
+
j = f ? V : Z;
|
|
1568
1568
|
}
|
|
1569
1569
|
E(j);
|
|
1570
1570
|
},
|
|
1571
1571
|
[m, h, f]
|
|
1572
1572
|
), k = x1(
|
|
1573
1573
|
(x) => {
|
|
1574
|
-
var
|
|
1574
|
+
var Z, V;
|
|
1575
1575
|
if (!(!d.current.dragging || !m)) {
|
|
1576
1576
|
d.current.dragging = !1;
|
|
1577
1577
|
try {
|
|
1578
|
-
(
|
|
1578
|
+
(V = (Z = x.currentTarget).hasPointerCapture) != null && V.call(Z, 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 Z = h === "left" || h === "top" ? -_ : _;
|
|
1591
|
+
x.transform = f ? `translateY(${Z}px)` : `translateX(${Z}px)`;
|
|
1592
1592
|
}
|
|
1593
1593
|
return x;
|
|
1594
1594
|
}
|
|
@@ -1702,11 +1702,11 @@ const S9 = o1((t, o) => {
|
|
|
1702
1702
|
)
|
|
1703
1703
|
] })
|
|
1704
1704
|
) : null;
|
|
1705
|
-
}), H6 = "
|
|
1705
|
+
}), H6 = "_container_fgd9c_1", b6 = "_header_fgd9c_20", Z6 = "_withBorder_fgd9c_55", V6 = "_title_fgd9c_39", y6 = "_subTitle_fgd9c_70", S6 = "_leftActionsStack_fgd9c_81", B6 = "_rightActionsStack_fgd9c_89", j6 = "_content_fgd9c_97", O6 = "_footer_fgd9c_108", S1 = {
|
|
1706
1706
|
container: H6,
|
|
1707
1707
|
header: b6,
|
|
1708
|
-
"title-actions-actions": "_title-actions-
|
|
1709
|
-
"actions-title-actions": "_actions-title-
|
|
1708
|
+
"title-actions-actions": "_title-actions-actions_fgd9c_39",
|
|
1709
|
+
"actions-title-actions": "_actions-title-actions_fgd9c_47",
|
|
1710
1710
|
withBorder: Z6,
|
|
1711
1711
|
title: V6,
|
|
1712
1712
|
subTitle: y6,
|
|
@@ -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, Z = () => C(!1), V = !!(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
|
+
V && /* @__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: Z,
|
|
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: Z,
|
|
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), Z = k1(F1.badge__container, F1[`position-${v}`]), V = 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, D = (A) => {
|
|
2269
|
+
x && (m == null || m(A));
|
|
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: Z,
|
|
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: D,
|
|
2284
|
+
className: V,
|
|
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
|
+
), Z = x1(
|
|
2349
2349
|
(j) => {
|
|
2350
2350
|
m("error"), d == null || d(j);
|
|
2351
2351
|
},
|
|
2352
2352
|
[d]
|
|
2353
|
-
),
|
|
2353
|
+
), V = {
|
|
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: Z,
|
|
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 && V.loader,
|
|
2396
|
+
w && V.error,
|
|
2397
|
+
k && V.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: Z
|
|
2588
2588
|
}) => {
|
|
2589
|
-
const [
|
|
2589
|
+
const [V, j] = d1(!1), O = P1.isValidElement(h), D = t2(() => p ? "disabled" : f ? "loading" : O && V ? "checked" : "default", [p, f, O, V]), A = t === "button" || !!m, y = 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]: A && !p && !f,
|
|
2596
|
+
[r1.interactiveWithCustomShadow]: A && !p && !f && y,
|
|
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
|
+
), I = k1(r1.iconWrapper, r1[`iconSize${o}`]), T = 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: V,
|
|
2651
2651
|
isCheckedNode: O,
|
|
2652
|
-
currentState:
|
|
2653
|
-
isInteractive:
|
|
2654
|
-
shouldHideIcon: !!x &&
|
|
2652
|
+
currentState: D,
|
|
2653
|
+
isInteractive: A,
|
|
2654
|
+
shouldHideIcon: !!x && A,
|
|
2655
2655
|
// Классы
|
|
2656
2656
|
wrapperClasses: R,
|
|
2657
|
-
iconWrapperClasses:
|
|
2657
|
+
iconWrapperClasses: I,
|
|
2658
2658
|
// Стили
|
|
2659
|
-
inlineStyles:
|
|
2659
|
+
inlineStyles: T,
|
|
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 (Z) return Z;
|
|
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": Z,
|
|
2713
|
+
"aria-label": V,
|
|
2714
2714
|
"aria-describedby": j,
|
|
2715
2715
|
role: O,
|
|
2716
|
-
...
|
|
2717
|
-
},
|
|
2718
|
-
const
|
|
2719
|
-
checkedActive:
|
|
2720
|
-
isCheckedNode:
|
|
2716
|
+
...D
|
|
2717
|
+
}, A) => {
|
|
2718
|
+
const y = t || (w ? "button" : "div"), R = c6("icon"), {
|
|
2719
|
+
checkedActive: I,
|
|
2720
|
+
isCheckedNode: T,
|
|
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: y,
|
|
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": V,
|
|
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 : V || 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 : V || 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 = () => T && I ? /* @__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: A,
|
|
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": Z,
|
|
2810
|
+
"aria-label": V,
|
|
2811
2811
|
"aria-describedby": j,
|
|
2812
2812
|
// Используем aria-pressed для кнопок с состоянием toggle
|
|
2813
|
-
"aria-pressed":
|
|
2813
|
+
"aria-pressed": T && (y === "button" || w) ? I : 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
|
+
...D
|
|
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": `${Z || "icon"}-badge`,
|
|
2830
|
+
children: /* @__PURE__ */ r.jsx(y, { ...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": `${Z || "icon"}-badge`,
|
|
2842
2842
|
children: i1
|
|
2843
2843
|
}
|
|
2844
2844
|
);
|
|
2845
|
-
return /* @__PURE__ */ r.jsx(
|
|
2845
|
+
return /* @__PURE__ */ r.jsx(y, { ...l1, children: u1 });
|
|
2846
2846
|
}
|
|
2847
|
-
return /* @__PURE__ */ r.jsx(
|
|
2847
|
+
return /* @__PURE__ */ r.jsx(y, { ...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, Z = !!g, V = 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]: Z
|
|
3460
3460
|
},
|
|
3461
3461
|
d
|
|
3462
|
-
),
|
|
3462
|
+
), D = (R) => {
|
|
3463
3463
|
x || (b(R.target.checked), m == null || m(R.target.checked, R));
|
|
3464
|
-
},
|
|
3464
|
+
}, A = (R) => {
|
|
3465
3465
|
if (R.key === "Enter" && !x) {
|
|
3466
3466
|
R.preventDefault();
|
|
3467
|
-
const
|
|
3468
|
-
b(
|
|
3467
|
+
const I = !V;
|
|
3468
|
+
b(I), m == null || m(I);
|
|
3469
3469
|
}
|
|
3470
|
-
},
|
|
3470
|
+
}, y = (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: A,
|
|
3489
|
+
"aria-checked": V,
|
|
3490
3490
|
"aria-disabled": x,
|
|
3491
|
-
"aria-invalid":
|
|
3491
|
+
"aria-invalid": Z,
|
|
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: V,
|
|
3503
3503
|
disabled: x,
|
|
3504
3504
|
className: T1.input,
|
|
3505
|
-
onChange:
|
|
3506
|
-
"aria-checked":
|
|
3507
|
-
"aria-invalid":
|
|
3505
|
+
onChange: D,
|
|
3506
|
+
"aria-checked": V,
|
|
3507
|
+
"aria-invalid": Z,
|
|
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: V,
|
|
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: y,
|
|
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: Z, currentRef: V } = PC(i, t);
|
|
3720
|
+
if ($C(i, k, x), c3(B, () => V.current, [V]), 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: Z,
|
|
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: Z,
|
|
3811
|
+
hasValue: V = !1,
|
|
3812
3812
|
helper: j,
|
|
3813
3813
|
id: O,
|
|
3814
|
-
value:
|
|
3815
|
-
resize:
|
|
3816
|
-
showGrip:
|
|
3814
|
+
value: D = "",
|
|
3815
|
+
resize: A,
|
|
3816
|
+
showGrip: y = !1,
|
|
3817
3817
|
...R
|
|
3818
|
-
},
|
|
3819
|
-
const
|
|
3818
|
+
}, I) => {
|
|
3819
|
+
const T = F2(), U = O || T, N = m && f && (V || 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
|
+
V && z.filled,
|
|
3833
|
+
Z
|
|
3834
|
+
), { handleGripMouseDown: W } = NC(y, C, s, A);
|
|
3835
|
+
return /* @__PURE__ */ r.jsxs("div", { ref: I, 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": A,
|
|
3842
|
+
"data-show-grip": y ? "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
|
+
y && !h && (A === "fixed" || !A) && /* @__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, V && 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
|
+
(D || "").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: Z,
|
|
3939
|
+
textareaStyles: V,
|
|
3940
3940
|
labelProps: j,
|
|
3941
3941
|
helperProps: O,
|
|
3942
|
-
showLimit:
|
|
3943
|
-
maxLength:
|
|
3944
|
-
inputProps:
|
|
3942
|
+
showLimit: D = !1,
|
|
3943
|
+
maxLength: A,
|
|
3944
|
+
inputProps: y,
|
|
3945
3945
|
hint: R,
|
|
3946
|
-
showHint:
|
|
3947
|
-
showHintOnEmpty:
|
|
3946
|
+
showHint: I = !1,
|
|
3947
|
+
showHintOnEmpty: T = !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 = y == null ? void 0 : y.onFocus) == null || l1.call(
|
|
3957
|
+
y,
|
|
3958
3958
|
i1
|
|
3959
3959
|
));
|
|
3960
3960
|
},
|
|
3961
|
-
[h,
|
|
3961
|
+
[h, y, 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 = y == null ? void 0 : y.onKeyUp) == null || l1.call(
|
|
3970
|
+
y,
|
|
3971
3971
|
i1
|
|
3972
3972
|
);
|
|
3973
3973
|
},
|
|
3974
|
-
[
|
|
3974
|
+
[y]
|
|
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 = y == null ? void 0 : y.onBlur) == null || u1.call(
|
|
3980
|
+
y,
|
|
3981
3981
|
i1
|
|
3982
3982
|
);
|
|
3983
3983
|
},
|
|
3984
|
-
[p,
|
|
3984
|
+
[p, y]
|
|
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 = y == null ? void 0 : y.onChange) == null || u1.call(
|
|
3991
|
+
y,
|
|
3992
3992
|
i1
|
|
3993
3993
|
);
|
|
3994
3994
|
},
|
|
3995
|
-
[w,
|
|
3995
|
+
[w, y, 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: Z,
|
|
4013
4013
|
labelProps: j,
|
|
4014
4014
|
helperProps: O,
|
|
4015
|
-
showLimit:
|
|
4016
|
-
maxLength:
|
|
4015
|
+
showLimit: D,
|
|
4016
|
+
maxLength: A,
|
|
4017
4017
|
hint: R,
|
|
4018
|
-
showHint:
|
|
4019
|
-
showHintOnEmpty:
|
|
4018
|
+
showHint: I,
|
|
4019
|
+
showHintOnEmpty: T,
|
|
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: A,
|
|
4048
4048
|
truncate: U,
|
|
4049
4049
|
"data-empty": !O1,
|
|
4050
4050
|
shouldShowFloatingLabelClass: b1,
|
|
4051
|
-
style: t === "textarea" ?
|
|
4051
|
+
style: t === "textarea" ? V : 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
|
+
...y
|
|
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: Z,
|
|
4245
|
+
truncate: V = !0,
|
|
4246
4246
|
hint: j,
|
|
4247
4247
|
showHint: O = !1,
|
|
4248
|
-
showHintOnEmpty:
|
|
4249
|
-
wrapperProps:
|
|
4250
|
-
labelProps:
|
|
4248
|
+
showHintOnEmpty: D = !1,
|
|
4249
|
+
wrapperProps: A,
|
|
4250
|
+
labelProps: y,
|
|
4251
4251
|
helperProps: R,
|
|
4252
|
-
...
|
|
4253
|
-
},
|
|
4252
|
+
...I
|
|
4253
|
+
}, T) => {
|
|
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: Z,
|
|
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: A,
|
|
4297
|
+
labelProps: y,
|
|
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: D,
|
|
4305
|
+
truncate: V,
|
|
4306
|
+
...I
|
|
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: Z,
|
|
4458
|
+
labelProps: V,
|
|
4459
4459
|
helperProps: j,
|
|
4460
4460
|
showGrip: O,
|
|
4461
|
-
minHeight:
|
|
4462
|
-
resize:
|
|
4463
|
-
...
|
|
4461
|
+
minHeight: D,
|
|
4462
|
+
resize: A,
|
|
4463
|
+
...y
|
|
4464
4464
|
}, R) => {
|
|
4465
|
-
const
|
|
4465
|
+
const I = (t || "").length > 0, T = f && !!i && (c === H1.M || D !== 48), U = h && I && !(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, D, T && I, A), W = ia(c, D), J = {
|
|
4478
4478
|
rows: B,
|
|
4479
4479
|
minLength: s,
|
|
4480
4480
|
autoFocus: l,
|
|
4481
|
-
resize:
|
|
4481
|
+
resize: A,
|
|
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: T,
|
|
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": T,
|
|
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: Z,
|
|
4511
|
+
labelProps: V,
|
|
4512
4512
|
helperProps: j,
|
|
4513
|
-
showLimit: x && (
|
|
4513
|
+
showLimit: x && (D === 112 || c === H1.M),
|
|
4514
4514
|
maxLength: C,
|
|
4515
4515
|
inputProps: J,
|
|
4516
|
-
resize:
|
|
4516
|
+
resize: A,
|
|
4517
4517
|
showGrip: O,
|
|
4518
|
-
...
|
|
4518
|
+
...y
|
|
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, Z = h === "all", V = p === "card", j = M1[`${l}Card`], O = C ?? i, D = (T) => {
|
|
4593
|
+
x || u == null || u(s, T);
|
|
4594
|
+
}, A = (T) => {
|
|
4595
|
+
T.key === "Enter" && !x && (T.preventDefault(), u == null || u(s));
|
|
4596
|
+
}, y = (T) => T.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: D,
|
|
4628
|
+
onClick: y
|
|
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
|
+
), I = () => /* @__PURE__ */ r.jsxs(
|
|
4635
4635
|
"label",
|
|
4636
4636
|
{
|
|
4637
4637
|
"aria-checked": v,
|
|
4638
4638
|
"aria-disabled": x,
|
|
4639
|
-
"data-testid":
|
|
4639
|
+
"data-testid": Z ? 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)]: Z,
|
|
4644
|
+
[j]: Z && V
|
|
4645
4645
|
}),
|
|
4646
|
-
onKeyDown:
|
|
4646
|
+
onKeyDown: A,
|
|
4647
4647
|
...b,
|
|
4648
4648
|
children: [
|
|
4649
4649
|
R(),
|
|
4650
|
-
|
|
4650
|
+
Z && E
|
|
4651
4651
|
]
|
|
4652
4652
|
}
|
|
4653
4653
|
);
|
|
4654
|
-
return
|
|
4654
|
+
return Z ? I() : /* @__PURE__ */ r.jsxs(
|
|
4655
4655
|
"div",
|
|
4656
4656
|
{
|
|
4657
4657
|
className: H(M1.container, M1[p], d, {
|
|
4658
|
-
[j]:
|
|
4658
|
+
[j]: V
|
|
4659
4659
|
}),
|
|
4660
4660
|
"data-testid": k,
|
|
4661
4661
|
children: [
|
|
4662
|
-
|
|
4662
|
+
I(),
|
|
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
|
+
), Z = H(m1.tabLabel, m1[t], u[t]), V = (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: V,
|
|
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: Z, "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
|
|
5214
|
+
/* @__PURE__ */ r.jsxs("div", { className: 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, Z = (V) => {
|
|
5250
5250
|
var j;
|
|
5251
|
-
(j = x.onClick) == null || j.call(x,
|
|
5251
|
+
(j = x.onClick) == null || j.call(x, V), B && (c == null || c());
|
|
5252
5252
|
};
|
|
5253
|
-
return /* @__PURE__ */ r.jsx(c2, { ...x, onClick:
|
|
5253
|
+
return /* @__PURE__ */ r.jsx(c2, { ...x, onClick: Z }, u);
|
|
5254
5254
|
}) })
|
|
5255
5255
|
] });
|
|
5256
5256
|
}, Rd = ({
|
|
@@ -5271,22 +5271,18 @@ const p9 = Object.assign(zC, {
|
|
|
5271
5271
|
buttons: p,
|
|
5272
5272
|
buttonProps: f,
|
|
5273
5273
|
onClose: m,
|
|
5274
|
-
|
|
5275
|
-
onVisibleChange: u,
|
|
5276
|
-
...k
|
|
5274
|
+
...w
|
|
5277
5275
|
}) => {
|
|
5278
|
-
const [
|
|
5279
|
-
|
|
5280
|
-
},
|
|
5281
|
-
x || B(Z), u == null || u(Z);
|
|
5282
|
-
}, T = t || (d === "m" ? /* @__PURE__ */ r.jsx(
|
|
5276
|
+
const [u, k] = d1(!1), [b, B] = d1(!1), x = d === "m" ? Ts : Ds, Z = () => {
|
|
5277
|
+
k(!1), m == null || m();
|
|
5278
|
+
}, V = t || (d === "m" ? /* @__PURE__ */ r.jsx(
|
|
5283
5279
|
L9,
|
|
5284
5280
|
{
|
|
5285
5281
|
classNames: C,
|
|
5286
5282
|
text: _,
|
|
5287
5283
|
variant: v,
|
|
5288
5284
|
size: d,
|
|
5289
|
-
onClose:
|
|
5285
|
+
onClose: Z,
|
|
5290
5286
|
title: E,
|
|
5291
5287
|
media: h,
|
|
5292
5288
|
showClose: g,
|
|
@@ -5300,37 +5296,37 @@ const p9 = Object.assign(zC, {
|
|
|
5300
5296
|
text: _,
|
|
5301
5297
|
variant: v,
|
|
5302
5298
|
size: d,
|
|
5303
|
-
onClose:
|
|
5299
|
+
onClose: Z
|
|
5304
5300
|
}
|
|
5305
5301
|
));
|
|
5306
5302
|
return Q(() => {
|
|
5307
|
-
if (
|
|
5308
|
-
const
|
|
5309
|
-
return () => cancelAnimationFrame(
|
|
5303
|
+
if (u) {
|
|
5304
|
+
const j = requestAnimationFrame(() => B(!0));
|
|
5305
|
+
return () => cancelAnimationFrame(j);
|
|
5310
5306
|
}
|
|
5311
|
-
|
|
5312
|
-
}, [
|
|
5307
|
+
B(!1);
|
|
5308
|
+
}, [u]), /* @__PURE__ */ r.jsx(
|
|
5313
5309
|
M3,
|
|
5314
5310
|
{
|
|
5315
|
-
visible:
|
|
5316
|
-
onVisibleChange:
|
|
5311
|
+
visible: u,
|
|
5312
|
+
onVisibleChange: k,
|
|
5317
5313
|
classNames: {
|
|
5318
|
-
root: H(E1.root, E1[v], E1[d],
|
|
5319
|
-
...
|
|
5314
|
+
root: H(E1.root, E1[v], E1[d], b && E1.open),
|
|
5315
|
+
...w.classNames
|
|
5320
5316
|
},
|
|
5321
5317
|
placement: i,
|
|
5322
|
-
overlay:
|
|
5318
|
+
overlay: () => V,
|
|
5323
5319
|
trigger: L,
|
|
5324
5320
|
mouseEnterDelay: s,
|
|
5325
5321
|
mouseLeaveDelay: l,
|
|
5326
5322
|
motion: { motionName: "tooltipMotion" },
|
|
5327
|
-
builtinPlacements:
|
|
5323
|
+
builtinPlacements: x,
|
|
5328
5324
|
showArrow: c ? {
|
|
5329
5325
|
content: /* @__PURE__ */ r.jsx(Is, {}),
|
|
5330
5326
|
className: `tooltipArrow tooltipArrow-${d}`
|
|
5331
5327
|
} : !1,
|
|
5332
5328
|
destroyTooltipOnHide: !0,
|
|
5333
|
-
...
|
|
5329
|
+
...w,
|
|
5334
5330
|
children: o
|
|
5335
5331
|
}
|
|
5336
5332
|
);
|
|
@@ -5422,7 +5418,7 @@ const p9 = Object.assign(zC, {
|
|
|
5422
5418
|
...d,
|
|
5423
5419
|
children: [
|
|
5424
5420
|
l == null ? void 0 : l.map(({ label: k, value: b, containerProps: B = {} }, x) => {
|
|
5425
|
-
const { className:
|
|
5421
|
+
const { className: Z, ...V } = B, j = () => u(b), O = JSON.stringify(b), D = E === b;
|
|
5426
5422
|
return /* @__PURE__ */ r.jsxs(q1, { children: [
|
|
5427
5423
|
/* @__PURE__ */ r.jsx(
|
|
5428
5424
|
"input",
|
|
@@ -5430,19 +5426,19 @@ const p9 = Object.assign(zC, {
|
|
|
5430
5426
|
id: _ + O,
|
|
5431
5427
|
value: O,
|
|
5432
5428
|
type: "radio",
|
|
5433
|
-
checked:
|
|
5429
|
+
checked: D,
|
|
5434
5430
|
readOnly: !0
|
|
5435
5431
|
}
|
|
5436
5432
|
),
|
|
5437
5433
|
/* @__PURE__ */ r.jsx(
|
|
5438
5434
|
"label",
|
|
5439
5435
|
{
|
|
5440
|
-
"data-is-active-segment":
|
|
5441
|
-
className: H(A1.segment, w9[s], { [A1.selected]:
|
|
5436
|
+
"data-is-active-segment": D,
|
|
5437
|
+
className: H(A1.segment, w9[s], { [A1.selected]: D }, Z),
|
|
5442
5438
|
htmlFor: _ + O,
|
|
5443
5439
|
"data-testid": "segmented-control-segment",
|
|
5444
5440
|
onClick: j,
|
|
5445
|
-
...
|
|
5441
|
+
...V,
|
|
5446
5442
|
children: k
|
|
5447
5443
|
}
|
|
5448
5444
|
)
|
|
@@ -5542,7 +5538,7 @@ const c1 = {
|
|
|
5542
5538
|
classNames: h = {},
|
|
5543
5539
|
styles: p = {}
|
|
5544
5540
|
}) => {
|
|
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),
|
|
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), Z = m && x === e2.FLOATING, V = x === e2.HIDDEN, j = H(
|
|
5546
5542
|
c1["trigger-wrapper"],
|
|
5547
5543
|
{ [c1["trigger-stretched"]]: s },
|
|
5548
5544
|
h.wrapper
|
|
@@ -5554,23 +5550,23 @@ const c1 = {
|
|
|
5554
5550
|
[c1["trigger-container-applied"]]: u && f,
|
|
5555
5551
|
[c1["trigger-container-error"]]: w && !d,
|
|
5556
5552
|
[c1["trigger-container-open"]]: _,
|
|
5557
|
-
[c1["trigger-container-floating"]]:
|
|
5553
|
+
[c1["trigger-container-floating"]]: Z
|
|
5558
5554
|
},
|
|
5559
5555
|
h.triggerContainer
|
|
5560
|
-
),
|
|
5556
|
+
), D = H(
|
|
5561
5557
|
c1["trigger-content-container"],
|
|
5562
5558
|
{
|
|
5563
|
-
[c1["trigger-content-container-floating"]]:
|
|
5559
|
+
[c1["trigger-content-container-floating"]]: Z
|
|
5564
5560
|
},
|
|
5565
5561
|
h.triggerContent
|
|
5566
|
-
),
|
|
5562
|
+
), A = H(
|
|
5567
5563
|
c1["trigger-label"],
|
|
5568
5564
|
{
|
|
5569
|
-
[c1["trigger-label-floating"]]:
|
|
5570
|
-
[c1["trigger-label-hidden"]]:
|
|
5565
|
+
[c1["trigger-label-floating"]]: Z,
|
|
5566
|
+
[c1["trigger-label-hidden"]]: V
|
|
5571
5567
|
},
|
|
5572
5568
|
h.label
|
|
5573
|
-
),
|
|
5569
|
+
), y = H(c1["trigger-content"], h.content), R = H(c1["trigger-postfix"], h.postfixTitle), I = H(c1["trigger-chevron-icon"], h.chevronIcon), T = H(
|
|
5574
5570
|
c1["trigger-prefix-icon"],
|
|
5575
5571
|
h.prefixIconContainer
|
|
5576
5572
|
), U = H(c1["trigger-clear-icon"], h.clearIcon), N = (W) => {
|
|
@@ -5590,18 +5586,18 @@ const c1 = {
|
|
|
5590
5586
|
disabled: d,
|
|
5591
5587
|
type: "button",
|
|
5592
5588
|
children: [
|
|
5593
|
-
L && o !== "XL" && /* @__PURE__ */ r.jsx("div", { className:
|
|
5594
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
5589
|
+
L && o !== "XL" && /* @__PURE__ */ r.jsx("div", { className: T, style: p.prefixIconContainer, children: L }),
|
|
5590
|
+
/* @__PURE__ */ r.jsxs("div", { className: D, style: p.triggerContent, children: [
|
|
5595
5591
|
m && /* @__PURE__ */ r.jsx(
|
|
5596
5592
|
G1.Label,
|
|
5597
5593
|
{
|
|
5598
5594
|
"data-testid": "trigger-label",
|
|
5599
|
-
className:
|
|
5595
|
+
className: A,
|
|
5600
5596
|
style: p.label,
|
|
5601
|
-
size: xc(o,
|
|
5597
|
+
size: xc(o, Z),
|
|
5602
5598
|
as: "span",
|
|
5603
5599
|
disabled: d,
|
|
5604
|
-
typographyStyle:
|
|
5600
|
+
typographyStyle: Z ? "secondary" : "tertiary",
|
|
5605
5601
|
children: C
|
|
5606
5602
|
}
|
|
5607
5603
|
),
|
|
@@ -5609,7 +5605,7 @@ const c1 = {
|
|
|
5609
5605
|
G1.Label,
|
|
5610
5606
|
{
|
|
5611
5607
|
"data-testid": "trigger-content-container",
|
|
5612
|
-
className:
|
|
5608
|
+
className: y,
|
|
5613
5609
|
style: p.content,
|
|
5614
5610
|
size: v9(o),
|
|
5615
5611
|
as: "span",
|
|
@@ -5646,7 +5642,7 @@ const c1 = {
|
|
|
5646
5642
|
{
|
|
5647
5643
|
"data-testid": "trigger-chevron",
|
|
5648
5644
|
size: f9(o),
|
|
5649
|
-
className:
|
|
5645
|
+
className: I,
|
|
5650
5646
|
color: "#AABBCA",
|
|
5651
5647
|
style: p.chevronIcon
|
|
5652
5648
|
}
|
|
@@ -5931,33 +5927,33 @@ const Bc = "_stack_1sg4d_1", jc = "_local_1sg4d_19", Oc = "_snackWrapper_1sg4d_2
|
|
|
5931
5927
|
linkButtonProps: f,
|
|
5932
5928
|
closeOnLinkClick: m = !0,
|
|
5933
5929
|
"data-testid": w = "snackbar"
|
|
5934
|
-
} = t, u = v1(null), k = v1(null), [b, B] = d1(!1), [x,
|
|
5935
|
-
clearTimeout(
|
|
5930
|
+
} = t, u = v1(null), k = v1(null), [b, B] = d1(!1), [x, Z] = d1(!1), [V, j] = d1(), O = v1(0), D = v1(0), A = v1(0), y = v1(0), R = v1(!1), I = v1(null), T = (W) => {
|
|
5931
|
+
clearTimeout(I.current || 0), I.current = null;
|
|
5936
5932
|
const J = h ? Zc[W] : A9[W];
|
|
5937
|
-
W === "swipe" || (
|
|
5938
|
-
l == null || l(),
|
|
5933
|
+
W === "swipe" || (Z(!0), j(W)), I.current = setTimeout(() => {
|
|
5934
|
+
l == null || l(), Z(!1), j(void 0), I.current = null;
|
|
5939
5935
|
}, J);
|
|
5940
5936
|
};
|
|
5941
5937
|
yc({
|
|
5942
5938
|
ref: k,
|
|
5943
5939
|
open: i,
|
|
5944
|
-
onClose:
|
|
5945
|
-
setExiting:
|
|
5940
|
+
onClose: T,
|
|
5941
|
+
setExiting: Z,
|
|
5946
5942
|
setExitReason: j,
|
|
5947
5943
|
swiping: R,
|
|
5948
5944
|
startX: O,
|
|
5949
|
-
startY:
|
|
5950
|
-
currentX:
|
|
5951
|
-
currentY:
|
|
5945
|
+
startY: D,
|
|
5946
|
+
currentX: A,
|
|
5947
|
+
currentY: y
|
|
5952
5948
|
}), Q(() => {
|
|
5953
|
-
p &&
|
|
5949
|
+
p && T("close");
|
|
5954
5950
|
}, [p]), Q(() => {
|
|
5955
5951
|
if (i && !g && C !== "loading") {
|
|
5956
|
-
const W = setTimeout(() =>
|
|
5952
|
+
const W = setTimeout(() => T("timeout"), c);
|
|
5957
5953
|
return () => clearTimeout(W);
|
|
5958
5954
|
}
|
|
5959
5955
|
}, [i, g, C, c]), Q(() => {
|
|
5960
|
-
i && (
|
|
5956
|
+
i && (Z(!1), j(void 0));
|
|
5961
5957
|
}, [i]), Q(() => {
|
|
5962
5958
|
const W = u.current;
|
|
5963
5959
|
W && requestAnimationFrame(() => {
|
|
@@ -5967,13 +5963,13 @@ const Bc = "_stack_1sg4d_1", jc = "_local_1sg4d_19", Oc = "_snackWrapper_1sg4d_2
|
|
|
5967
5963
|
}, [d]), Q(() => {
|
|
5968
5964
|
if (!i) return;
|
|
5969
5965
|
const W = (J) => {
|
|
5970
|
-
J.key === "Escape" &&
|
|
5966
|
+
J.key === "Escape" && T("escape");
|
|
5971
5967
|
};
|
|
5972
5968
|
return window.addEventListener("keydown", W), () => window.removeEventListener("keydown", W);
|
|
5973
5969
|
}, [i]), Q(() => () => {
|
|
5974
|
-
|
|
5970
|
+
I.current && (clearTimeout(I.current), I.current = null);
|
|
5975
5971
|
}, []);
|
|
5976
|
-
const U = x &&
|
|
5972
|
+
const U = x && V && g1[bc[V]];
|
|
5977
5973
|
if (!i && !x) return null;
|
|
5978
5974
|
const N = {
|
|
5979
5975
|
success: /* @__PURE__ */ r.jsx(id, { className: g1.icon }),
|
|
@@ -5983,7 +5979,7 @@ const Bc = "_stack_1sg4d_1", jc = "_local_1sg4d_19", Oc = "_snackWrapper_1sg4d_2
|
|
|
5983
5979
|
}, n1 = k1(
|
|
5984
5980
|
g1.snackbar,
|
|
5985
5981
|
g1[s],
|
|
5986
|
-
{ [g1.exiting]: x &&
|
|
5982
|
+
{ [g1.exiting]: x && V },
|
|
5987
5983
|
{ [g1.snackbarVertical]: b },
|
|
5988
5984
|
_,
|
|
5989
5985
|
U,
|
|
@@ -6031,7 +6027,7 @@ const Bc = "_stack_1sg4d_1", jc = "_local_1sg4d_19", Oc = "_snackWrapper_1sg4d_2
|
|
|
6031
6027
|
buttonStyle: "contrast",
|
|
6032
6028
|
...f,
|
|
6033
6029
|
onClick: (W) => {
|
|
6034
|
-
X(f.onClick, W), m &&
|
|
6030
|
+
X(f.onClick, W), m && T("timeout");
|
|
6035
6031
|
}
|
|
6036
6032
|
}
|
|
6037
6033
|
)
|
|
@@ -6045,7 +6041,7 @@ const Bc = "_stack_1sg4d_1", jc = "_local_1sg4d_19", Oc = "_snackWrapper_1sg4d_2
|
|
|
6045
6041
|
c2,
|
|
6046
6042
|
{
|
|
6047
6043
|
iconLeft: /* @__PURE__ */ r.jsx(nd, {}),
|
|
6048
|
-
onClick: () =>
|
|
6044
|
+
onClick: () => T("close"),
|
|
6049
6045
|
mode: "tertiary",
|
|
6050
6046
|
size: "l",
|
|
6051
6047
|
buttonStyle: "contrast",
|
|
@@ -6241,8 +6237,8 @@ const Bc = "_stack_1sg4d_1", jc = "_local_1sg4d_19", Oc = "_snackWrapper_1sg4d_2
|
|
|
6241
6237
|
toggle: b,
|
|
6242
6238
|
drop: B,
|
|
6243
6239
|
content: x,
|
|
6244
|
-
footer:
|
|
6245
|
-
} = h ?? {},
|
|
6240
|
+
footer: Z
|
|
6241
|
+
} = h ?? {}, V = L === "click", j = L === "hover", { refs: O, floatingStyles: D, placement: A, context: y } = E9({
|
|
6246
6242
|
open: o,
|
|
6247
6243
|
onOpenChange: i,
|
|
6248
6244
|
placement: s,
|
|
@@ -6271,12 +6267,12 @@ const Bc = "_stack_1sg4d_1", jc = "_local_1sg4d_19", Oc = "_snackWrapper_1sg4d_2
|
|
|
6271
6267
|
],
|
|
6272
6268
|
whileElementsMounted: u3
|
|
6273
6269
|
// Для автоматического обновление позиции при скролле/ресайзе
|
|
6274
|
-
}), R = _3(
|
|
6270
|
+
}), R = _3(y, {
|
|
6275
6271
|
enabled: j,
|
|
6276
6272
|
// Включен только в режиме hover
|
|
6277
6273
|
handleClose: E3()
|
|
6278
6274
|
// Создает зону, по которой курсор может безопасно перемещаться от toggle к drop
|
|
6279
|
-
}), { isMounted:
|
|
6275
|
+
}), { isMounted: I, styles: T } = k9(y, {
|
|
6280
6276
|
initial: {
|
|
6281
6277
|
opacity: 0
|
|
6282
6278
|
},
|
|
@@ -6288,10 +6284,10 @@ const Bc = "_stack_1sg4d_1", jc = "_local_1sg4d_19", Oc = "_snackWrapper_1sg4d_2
|
|
|
6288
6284
|
opacity: 0,
|
|
6289
6285
|
transition: `opacity ${gd}`
|
|
6290
6286
|
}
|
|
6291
|
-
}), U = M9(
|
|
6287
|
+
}), U = M9(y, {
|
|
6292
6288
|
referencePress: !1,
|
|
6293
6289
|
// Не закрывать при клике на триггер
|
|
6294
|
-
outsidePress: c &&
|
|
6290
|
+
outsidePress: c && V,
|
|
6295
6291
|
// Закрывать при клике вне дропа
|
|
6296
6292
|
escapeKey: g,
|
|
6297
6293
|
// Закрывать по ESC
|
|
@@ -6314,24 +6310,24 @@ const Bc = "_stack_1sg4d_1", jc = "_local_1sg4d_19", Oc = "_snackWrapper_1sg4d_2
|
|
|
6314
6310
|
tabIndex: 0,
|
|
6315
6311
|
"data-testid": "drop-toggle",
|
|
6316
6312
|
className: W,
|
|
6317
|
-
onClick:
|
|
6313
|
+
onClick: V ? L1 : void 0,
|
|
6318
6314
|
style: b,
|
|
6319
6315
|
...N(),
|
|
6320
6316
|
children: t
|
|
6321
6317
|
}
|
|
6322
6318
|
),
|
|
6323
|
-
|
|
6319
|
+
I && /* @__PURE__ */ r.jsx(H9, { children: /* @__PURE__ */ r.jsxs(
|
|
6324
6320
|
"div",
|
|
6325
6321
|
{
|
|
6326
6322
|
"aria-hidden": !o,
|
|
6327
6323
|
"data-testid": "drop-menu",
|
|
6328
6324
|
"data-drop-state": o ? "open" : "closed",
|
|
6329
|
-
"data-drop-position":
|
|
6325
|
+
"data-drop-position": A,
|
|
6330
6326
|
className: J,
|
|
6331
6327
|
style: {
|
|
6332
6328
|
...B,
|
|
6333
|
-
...
|
|
6334
|
-
...
|
|
6329
|
+
...D,
|
|
6330
|
+
...T
|
|
6335
6331
|
},
|
|
6336
6332
|
ref: O.setFloating,
|
|
6337
6333
|
...n1(),
|
|
@@ -6352,7 +6348,7 @@ const Bc = "_stack_1sg4d_1", jc = "_local_1sg4d_19", Oc = "_snackWrapper_1sg4d_2
|
|
|
6352
6348
|
{
|
|
6353
6349
|
footerPadding: d,
|
|
6354
6350
|
className: u,
|
|
6355
|
-
style:
|
|
6351
|
+
style: Z,
|
|
6356
6352
|
children: _
|
|
6357
6353
|
}
|
|
6358
6354
|
)
|