skillgrid 0.0.28 → 0.0.29-dev-39184-segmented-control-and-tag-updates.1186340
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/index.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as Vt from "react";
|
|
2
|
-
import _t, { forwardRef as X, Fragment as Oe, useState as
|
|
2
|
+
import _t, { forwardRef as X, Fragment as Oe, useState as ce, useEffect as de, useRef as qe, useCallback as Le, useMemo as jr, createContext as Ht, useContext as Gt, useLayoutEffect as Zt, useImperativeHandle as kr, useId as pt } from "react";
|
|
3
3
|
import { clsx as k } from "clsx";
|
|
4
4
|
import $r from "rc-tooltip";
|
|
5
5
|
import './index.css';function Mr(e) {
|
|
6
6
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
7
7
|
}
|
|
8
|
-
var Ge = { exports: {} },
|
|
8
|
+
var Ge = { exports: {} }, Ue = {};
|
|
9
9
|
/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.production.min.js
|
|
@@ -17,19 +17,19 @@ var Ge = { exports: {} }, ze = {};
|
|
|
17
17
|
*/
|
|
18
18
|
var jt;
|
|
19
19
|
function Ir() {
|
|
20
|
-
if (jt) return
|
|
20
|
+
if (jt) return Ue;
|
|
21
21
|
jt = 1;
|
|
22
22
|
var e = _t, a = Symbol.for("react.element"), r = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
23
|
-
function l(d, c,
|
|
24
|
-
var
|
|
25
|
-
|
|
26
|
-
for (
|
|
27
|
-
if (d && d.defaultProps) for (
|
|
28
|
-
return { $$typeof: a, type: d, key:
|
|
23
|
+
function l(d, c, p) {
|
|
24
|
+
var f, g = {}, m = null, h = null;
|
|
25
|
+
p !== void 0 && (m = "" + p), c.key !== void 0 && (m = "" + c.key), c.ref !== void 0 && (h = c.ref);
|
|
26
|
+
for (f in c) s.call(c, f) && !o.hasOwnProperty(f) && (g[f] = c[f]);
|
|
27
|
+
if (d && d.defaultProps) for (f in c = d.defaultProps, c) g[f] === void 0 && (g[f] = c[f]);
|
|
28
|
+
return { $$typeof: a, type: d, key: m, ref: h, props: g, _owner: i.current };
|
|
29
29
|
}
|
|
30
|
-
return
|
|
30
|
+
return Ue.Fragment = r, Ue.jsx = l, Ue.jsxs = l, Ue;
|
|
31
31
|
}
|
|
32
|
-
var
|
|
32
|
+
var ze = {};
|
|
33
33
|
/**
|
|
34
34
|
* @license React
|
|
35
35
|
* react-jsx-runtime.development.js
|
|
@@ -42,46 +42,46 @@ var Ue = {};
|
|
|
42
42
|
var kt;
|
|
43
43
|
function Rr() {
|
|
44
44
|
return kt || (kt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
45
|
-
var e = _t, a = Symbol.for("react.element"), r = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), d = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"),
|
|
45
|
+
var e = _t, a = Symbol.for("react.element"), r = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), d = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), y = Symbol.iterator, S = "@@iterator";
|
|
46
46
|
function v(t) {
|
|
47
47
|
if (t === null || typeof t != "object")
|
|
48
48
|
return null;
|
|
49
|
-
var u =
|
|
49
|
+
var u = y && t[y] || t[S];
|
|
50
50
|
return typeof u == "function" ? u : null;
|
|
51
51
|
}
|
|
52
52
|
var x = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
53
53
|
function _(t) {
|
|
54
54
|
{
|
|
55
|
-
for (var u = arguments.length,
|
|
56
|
-
|
|
57
|
-
w("error", t,
|
|
55
|
+
for (var u = arguments.length, b = new Array(u > 1 ? u - 1 : 0), E = 1; E < u; E++)
|
|
56
|
+
b[E - 1] = arguments[E];
|
|
57
|
+
w("error", t, b);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
function w(t, u,
|
|
60
|
+
function w(t, u, b) {
|
|
61
61
|
{
|
|
62
|
-
var E = x.ReactDebugCurrentFrame,
|
|
63
|
-
|
|
64
|
-
var
|
|
65
|
-
return String(
|
|
62
|
+
var E = x.ReactDebugCurrentFrame, q = E.getStackAddendum();
|
|
63
|
+
q !== "" && (u += "%s", b = b.concat([q]));
|
|
64
|
+
var U = b.map(function(N) {
|
|
65
|
+
return String(N);
|
|
66
66
|
});
|
|
67
|
-
|
|
67
|
+
U.unshift("Warning: " + u), Function.prototype.apply.call(console[t], console, U);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
var L = !1,
|
|
70
|
+
var L = !1, M = !1, j = !1, $ = !1, R = !1, D;
|
|
71
71
|
D = Symbol.for("react.module.reference");
|
|
72
|
-
function
|
|
73
|
-
return !!(typeof t == "string" || typeof t == "function" || t === s || t === o ||
|
|
72
|
+
function P(t) {
|
|
73
|
+
return !!(typeof t == "string" || typeof t == "function" || t === s || t === o || R || t === i || t === p || t === f || $ || t === h || L || M || j || typeof t == "object" && t !== null && (t.$$typeof === m || t.$$typeof === g || t.$$typeof === l || t.$$typeof === d || t.$$typeof === c || // This needs to include all possible module reference object
|
|
74
74
|
// types supported by any Flight configuration anywhere since
|
|
75
75
|
// we don't know which Flight build this will end up being used
|
|
76
76
|
// with.
|
|
77
77
|
t.$$typeof === D || t.getModuleId !== void 0));
|
|
78
78
|
}
|
|
79
|
-
function F(t, u,
|
|
79
|
+
function F(t, u, b) {
|
|
80
80
|
var E = t.displayName;
|
|
81
81
|
if (E)
|
|
82
82
|
return E;
|
|
83
|
-
var
|
|
84
|
-
return
|
|
83
|
+
var q = u.displayName || u.name || "";
|
|
84
|
+
return q !== "" ? b + "(" + q + ")" : b;
|
|
85
85
|
}
|
|
86
86
|
function O(t) {
|
|
87
87
|
return t.displayName || "Context";
|
|
@@ -102,9 +102,9 @@ function Rr() {
|
|
|
102
102
|
return "Profiler";
|
|
103
103
|
case i:
|
|
104
104
|
return "StrictMode";
|
|
105
|
-
case f:
|
|
106
|
-
return "Suspense";
|
|
107
105
|
case p:
|
|
106
|
+
return "Suspense";
|
|
107
|
+
case f:
|
|
108
108
|
return "SuspenseList";
|
|
109
109
|
}
|
|
110
110
|
if (typeof t == "object")
|
|
@@ -113,17 +113,17 @@ function Rr() {
|
|
|
113
113
|
var u = t;
|
|
114
114
|
return O(u) + ".Consumer";
|
|
115
115
|
case l:
|
|
116
|
-
var
|
|
117
|
-
return O(
|
|
116
|
+
var b = t;
|
|
117
|
+
return O(b._context) + ".Provider";
|
|
118
118
|
case c:
|
|
119
119
|
return F(t, t.render, "ForwardRef");
|
|
120
|
-
case
|
|
120
|
+
case g:
|
|
121
121
|
var E = t.displayName || null;
|
|
122
122
|
return E !== null ? E : C(t.type) || "Memo";
|
|
123
|
-
case
|
|
124
|
-
var
|
|
123
|
+
case m: {
|
|
124
|
+
var q = t, U = q._payload, N = q._init;
|
|
125
125
|
try {
|
|
126
|
-
return C(
|
|
126
|
+
return C(N(U));
|
|
127
127
|
} catch {
|
|
128
128
|
return null;
|
|
129
129
|
}
|
|
@@ -131,14 +131,14 @@ function Rr() {
|
|
|
131
131
|
}
|
|
132
132
|
return null;
|
|
133
133
|
}
|
|
134
|
-
var
|
|
134
|
+
var T = Object.assign, B = 0, z, V, Q, ie, Z, ue, ee;
|
|
135
135
|
function Ce() {
|
|
136
136
|
}
|
|
137
137
|
Ce.__reactDisabledLog = !0;
|
|
138
|
-
function
|
|
138
|
+
function Be() {
|
|
139
139
|
{
|
|
140
140
|
if (B === 0) {
|
|
141
|
-
|
|
141
|
+
z = console.log, V = console.info, Q = console.warn, ie = console.error, Z = console.group, ue = console.groupCollapsed, ee = console.groupEnd;
|
|
142
142
|
var t = {
|
|
143
143
|
configurable: !0,
|
|
144
144
|
enumerable: !0,
|
|
@@ -167,25 +167,25 @@ function Rr() {
|
|
|
167
167
|
writable: !0
|
|
168
168
|
};
|
|
169
169
|
Object.defineProperties(console, {
|
|
170
|
-
log:
|
|
171
|
-
value:
|
|
170
|
+
log: T({}, t, {
|
|
171
|
+
value: z
|
|
172
172
|
}),
|
|
173
|
-
info:
|
|
173
|
+
info: T({}, t, {
|
|
174
174
|
value: V
|
|
175
175
|
}),
|
|
176
|
-
warn:
|
|
176
|
+
warn: T({}, t, {
|
|
177
177
|
value: Q
|
|
178
178
|
}),
|
|
179
|
-
error:
|
|
179
|
+
error: T({}, t, {
|
|
180
180
|
value: ie
|
|
181
181
|
}),
|
|
182
|
-
group:
|
|
182
|
+
group: T({}, t, {
|
|
183
183
|
value: Z
|
|
184
184
|
}),
|
|
185
|
-
groupCollapsed:
|
|
185
|
+
groupCollapsed: T({}, t, {
|
|
186
186
|
value: ue
|
|
187
187
|
}),
|
|
188
|
-
groupEnd:
|
|
188
|
+
groupEnd: T({}, t, {
|
|
189
189
|
value: ee
|
|
190
190
|
})
|
|
191
191
|
});
|
|
@@ -193,62 +193,62 @@ function Rr() {
|
|
|
193
193
|
B < 0 && _("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
|
-
var
|
|
197
|
-
function
|
|
196
|
+
var Me = x.ReactCurrentDispatcher, Ie;
|
|
197
|
+
function je(t, u, b) {
|
|
198
198
|
{
|
|
199
|
-
if (
|
|
199
|
+
if (Ie === void 0)
|
|
200
200
|
try {
|
|
201
201
|
throw Error();
|
|
202
|
-
} catch (
|
|
203
|
-
var E =
|
|
204
|
-
|
|
202
|
+
} catch (q) {
|
|
203
|
+
var E = q.stack.trim().match(/\n( *(at )?)/);
|
|
204
|
+
Ie = E && E[1] || "";
|
|
205
205
|
}
|
|
206
206
|
return `
|
|
207
|
-
` +
|
|
207
|
+
` + Ie + t;
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
|
-
var We = !1,
|
|
210
|
+
var We = !1, Re;
|
|
211
211
|
{
|
|
212
212
|
var Xe = typeof WeakMap == "function" ? WeakMap : Map;
|
|
213
|
-
|
|
213
|
+
Re = new Xe();
|
|
214
214
|
}
|
|
215
215
|
function Ve(t, u) {
|
|
216
216
|
if (!t || We)
|
|
217
217
|
return "";
|
|
218
218
|
{
|
|
219
|
-
var
|
|
220
|
-
if (
|
|
221
|
-
return
|
|
219
|
+
var b = Re.get(t);
|
|
220
|
+
if (b !== void 0)
|
|
221
|
+
return b;
|
|
222
222
|
}
|
|
223
223
|
var E;
|
|
224
224
|
We = !0;
|
|
225
|
-
var
|
|
225
|
+
var q = Error.prepareStackTrace;
|
|
226
226
|
Error.prepareStackTrace = void 0;
|
|
227
|
-
var
|
|
228
|
-
|
|
227
|
+
var U;
|
|
228
|
+
U = Me.current, Me.current = null, Be();
|
|
229
229
|
try {
|
|
230
230
|
if (u) {
|
|
231
|
-
var
|
|
231
|
+
var N = function() {
|
|
232
232
|
throw Error();
|
|
233
233
|
};
|
|
234
|
-
if (Object.defineProperty(
|
|
234
|
+
if (Object.defineProperty(N.prototype, "props", {
|
|
235
235
|
set: function() {
|
|
236
236
|
throw Error();
|
|
237
237
|
}
|
|
238
238
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
239
239
|
try {
|
|
240
|
-
Reflect.construct(
|
|
240
|
+
Reflect.construct(N, []);
|
|
241
241
|
} catch (ae) {
|
|
242
242
|
E = ae;
|
|
243
243
|
}
|
|
244
|
-
Reflect.construct(t, [],
|
|
244
|
+
Reflect.construct(t, [], N);
|
|
245
245
|
} else {
|
|
246
246
|
try {
|
|
247
|
-
|
|
247
|
+
N.call();
|
|
248
248
|
} catch (ae) {
|
|
249
249
|
E = ae;
|
|
250
250
|
}
|
|
251
|
-
t.call(
|
|
251
|
+
t.call(N.prototype);
|
|
252
252
|
}
|
|
253
253
|
} else {
|
|
254
254
|
try {
|
|
@@ -271,112 +271,112 @@ function Rr() {
|
|
|
271
271
|
if (H--, G--, G < 0 || I[H] !== te[G]) {
|
|
272
272
|
var _e = `
|
|
273
273
|
` + I[H].replace(" at new ", " at ");
|
|
274
|
-
return t.displayName && _e.includes("<anonymous>") && (_e = _e.replace("<anonymous>", t.displayName)), typeof t == "function" &&
|
|
274
|
+
return t.displayName && _e.includes("<anonymous>") && (_e = _e.replace("<anonymous>", t.displayName)), typeof t == "function" && Re.set(t, _e), _e;
|
|
275
275
|
}
|
|
276
276
|
while (H >= 1 && G >= 0);
|
|
277
277
|
break;
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
280
|
} finally {
|
|
281
|
-
We = !1,
|
|
281
|
+
We = !1, Me.current = U, me(), Error.prepareStackTrace = q;
|
|
282
282
|
}
|
|
283
|
-
var
|
|
284
|
-
return typeof t == "function" &&
|
|
283
|
+
var Ne = t ? t.displayName || t.name : "", ke = Ne ? je(Ne) : "";
|
|
284
|
+
return typeof t == "function" && Re.set(t, ke), ke;
|
|
285
285
|
}
|
|
286
|
-
function Qe(t, u,
|
|
286
|
+
function Qe(t, u, b) {
|
|
287
287
|
return Ve(t, !1);
|
|
288
288
|
}
|
|
289
289
|
function et(t) {
|
|
290
290
|
var u = t.prototype;
|
|
291
291
|
return !!(u && u.isReactComponent);
|
|
292
292
|
}
|
|
293
|
-
function Y(t, u,
|
|
293
|
+
function Y(t, u, b) {
|
|
294
294
|
if (t == null)
|
|
295
295
|
return "";
|
|
296
296
|
if (typeof t == "function")
|
|
297
297
|
return Ve(t, et(t));
|
|
298
298
|
if (typeof t == "string")
|
|
299
|
-
return
|
|
299
|
+
return je(t);
|
|
300
300
|
switch (t) {
|
|
301
|
-
case f:
|
|
302
|
-
return Ee("Suspense");
|
|
303
301
|
case p:
|
|
304
|
-
return
|
|
302
|
+
return je("Suspense");
|
|
303
|
+
case f:
|
|
304
|
+
return je("SuspenseList");
|
|
305
305
|
}
|
|
306
306
|
if (typeof t == "object")
|
|
307
307
|
switch (t.$$typeof) {
|
|
308
308
|
case c:
|
|
309
309
|
return Qe(t.render);
|
|
310
|
-
case
|
|
311
|
-
return Y(t.type, u,
|
|
312
|
-
case
|
|
313
|
-
var E = t,
|
|
310
|
+
case g:
|
|
311
|
+
return Y(t.type, u, b);
|
|
312
|
+
case m: {
|
|
313
|
+
var E = t, q = E._payload, U = E._init;
|
|
314
314
|
try {
|
|
315
|
-
return Y(q
|
|
315
|
+
return Y(U(q), u, b);
|
|
316
316
|
} catch {
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
return "";
|
|
321
321
|
}
|
|
322
|
-
var J = Object.prototype.hasOwnProperty,
|
|
322
|
+
var J = Object.prototype.hasOwnProperty, he = {}, ft = x.ReactDebugCurrentFrame;
|
|
323
323
|
function He(t) {
|
|
324
324
|
if (t) {
|
|
325
|
-
var u = t._owner,
|
|
326
|
-
ft.setExtraStackFrame(
|
|
325
|
+
var u = t._owner, b = Y(t.type, t._source, u ? u.type : null);
|
|
326
|
+
ft.setExtraStackFrame(b);
|
|
327
327
|
} else
|
|
328
328
|
ft.setExtraStackFrame(null);
|
|
329
329
|
}
|
|
330
|
-
function
|
|
330
|
+
function nr(t, u, b, E, q) {
|
|
331
331
|
{
|
|
332
|
-
var
|
|
333
|
-
for (var
|
|
334
|
-
if (
|
|
332
|
+
var U = Function.call.bind(J);
|
|
333
|
+
for (var N in t)
|
|
334
|
+
if (U(t, N)) {
|
|
335
335
|
var I = void 0;
|
|
336
336
|
try {
|
|
337
|
-
if (typeof t[
|
|
338
|
-
var te = Error((E || "React class") + ": " +
|
|
337
|
+
if (typeof t[N] != "function") {
|
|
338
|
+
var te = Error((E || "React class") + ": " + b + " type `" + N + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[N] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
339
339
|
throw te.name = "Invariant Violation", te;
|
|
340
340
|
}
|
|
341
|
-
I = t[
|
|
341
|
+
I = t[N](u, N, E, b, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
342
342
|
} catch (H) {
|
|
343
343
|
I = H;
|
|
344
344
|
}
|
|
345
|
-
I && !(I instanceof Error) && (He(
|
|
345
|
+
I && !(I instanceof Error) && (He(q), _("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", E || "React class", b, N, typeof I), He(null)), I instanceof Error && !(I.message in he) && (he[I.message] = !0, He(q), _("Failed %s type: %s", b, I.message), He(null));
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
|
-
var
|
|
349
|
+
var or = Array.isArray;
|
|
350
350
|
function tt(t) {
|
|
351
|
-
return
|
|
351
|
+
return or(t);
|
|
352
352
|
}
|
|
353
|
-
function
|
|
353
|
+
function ir(t) {
|
|
354
354
|
{
|
|
355
|
-
var u = typeof Symbol == "function" && Symbol.toStringTag,
|
|
356
|
-
return
|
|
355
|
+
var u = typeof Symbol == "function" && Symbol.toStringTag, b = u && t[Symbol.toStringTag] || t.constructor.name || "Object";
|
|
356
|
+
return b;
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
|
-
function
|
|
359
|
+
function lr(t) {
|
|
360
360
|
try {
|
|
361
|
-
return
|
|
361
|
+
return gt(t), !1;
|
|
362
362
|
} catch {
|
|
363
363
|
return !0;
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
|
-
function
|
|
366
|
+
function gt(t) {
|
|
367
367
|
return "" + t;
|
|
368
368
|
}
|
|
369
|
-
function
|
|
370
|
-
if (
|
|
371
|
-
return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
369
|
+
function ht(t) {
|
|
370
|
+
if (lr(t))
|
|
371
|
+
return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ir(t)), gt(t);
|
|
372
372
|
}
|
|
373
|
-
var
|
|
373
|
+
var bt = x.ReactCurrentOwner, cr = {
|
|
374
374
|
key: !0,
|
|
375
375
|
ref: !0,
|
|
376
376
|
__self: !0,
|
|
377
377
|
__source: !0
|
|
378
378
|
}, mt, yt;
|
|
379
|
-
function
|
|
379
|
+
function dr(t) {
|
|
380
380
|
if (J.call(t, "ref")) {
|
|
381
381
|
var u = Object.getOwnPropertyDescriptor(t, "ref").get;
|
|
382
382
|
if (u && u.isReactWarning)
|
|
@@ -384,7 +384,7 @@ function Rr() {
|
|
|
384
384
|
}
|
|
385
385
|
return t.ref !== void 0;
|
|
386
386
|
}
|
|
387
|
-
function
|
|
387
|
+
function ur(t) {
|
|
388
388
|
if (J.call(t, "key")) {
|
|
389
389
|
var u = Object.getOwnPropertyDescriptor(t, "key").get;
|
|
390
390
|
if (u && u.isReactWarning)
|
|
@@ -392,42 +392,42 @@ function Rr() {
|
|
|
392
392
|
}
|
|
393
393
|
return t.key !== void 0;
|
|
394
394
|
}
|
|
395
|
-
function ur(t, u) {
|
|
396
|
-
typeof t.ref == "string" && gt.current;
|
|
397
|
-
}
|
|
398
395
|
function _r(t, u) {
|
|
396
|
+
typeof t.ref == "string" && bt.current;
|
|
397
|
+
}
|
|
398
|
+
function pr(t, u) {
|
|
399
399
|
{
|
|
400
|
-
var
|
|
400
|
+
var b = function() {
|
|
401
401
|
mt || (mt = !0, _("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", u));
|
|
402
402
|
};
|
|
403
|
-
|
|
404
|
-
get:
|
|
403
|
+
b.isReactWarning = !0, Object.defineProperty(t, "key", {
|
|
404
|
+
get: b,
|
|
405
405
|
configurable: !0
|
|
406
406
|
});
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
|
-
function
|
|
409
|
+
function fr(t, u) {
|
|
410
410
|
{
|
|
411
|
-
var
|
|
411
|
+
var b = function() {
|
|
412
412
|
yt || (yt = !0, _("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", u));
|
|
413
413
|
};
|
|
414
|
-
|
|
415
|
-
get:
|
|
414
|
+
b.isReactWarning = !0, Object.defineProperty(t, "ref", {
|
|
415
|
+
get: b,
|
|
416
416
|
configurable: !0
|
|
417
417
|
});
|
|
418
418
|
}
|
|
419
419
|
}
|
|
420
|
-
var
|
|
420
|
+
var gr = function(t, u, b, E, q, U, N) {
|
|
421
421
|
var I = {
|
|
422
422
|
// This tag allows us to uniquely identify this as a React Element
|
|
423
423
|
$$typeof: a,
|
|
424
424
|
// Built-in properties that belong on the element
|
|
425
425
|
type: t,
|
|
426
426
|
key: u,
|
|
427
|
-
ref:
|
|
428
|
-
props:
|
|
427
|
+
ref: b,
|
|
428
|
+
props: N,
|
|
429
429
|
// Record the component responsible for creating this element.
|
|
430
|
-
_owner:
|
|
430
|
+
_owner: U
|
|
431
431
|
};
|
|
432
432
|
return I._store = {}, Object.defineProperty(I._store, "validated", {
|
|
433
433
|
configurable: !1,
|
|
@@ -443,32 +443,32 @@ function Rr() {
|
|
|
443
443
|
configurable: !1,
|
|
444
444
|
enumerable: !1,
|
|
445
445
|
writable: !1,
|
|
446
|
-
value:
|
|
446
|
+
value: q
|
|
447
447
|
}), Object.freeze && (Object.freeze(I.props), Object.freeze(I)), I;
|
|
448
448
|
};
|
|
449
|
-
function hr(t, u,
|
|
449
|
+
function hr(t, u, b, E, q) {
|
|
450
450
|
{
|
|
451
|
-
var
|
|
452
|
-
|
|
453
|
-
for (
|
|
454
|
-
J.call(u,
|
|
451
|
+
var U, N = {}, I = null, te = null;
|
|
452
|
+
b !== void 0 && (ht(b), I = "" + b), ur(u) && (ht(u.key), I = "" + u.key), dr(u) && (te = u.ref, _r(u, q));
|
|
453
|
+
for (U in u)
|
|
454
|
+
J.call(u, U) && !cr.hasOwnProperty(U) && (N[U] = u[U]);
|
|
455
455
|
if (t && t.defaultProps) {
|
|
456
456
|
var H = t.defaultProps;
|
|
457
|
-
for (
|
|
458
|
-
|
|
457
|
+
for (U in H)
|
|
458
|
+
N[U] === void 0 && (N[U] = H[U]);
|
|
459
459
|
}
|
|
460
460
|
if (I || te) {
|
|
461
461
|
var G = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
|
|
462
|
-
I &&
|
|
462
|
+
I && pr(N, G), te && fr(N, G);
|
|
463
463
|
}
|
|
464
|
-
return
|
|
464
|
+
return gr(t, I, te, q, E, bt.current, N);
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
467
|
var rt = x.ReactCurrentOwner, vt = x.ReactDebugCurrentFrame;
|
|
468
|
-
function
|
|
468
|
+
function Te(t) {
|
|
469
469
|
if (t) {
|
|
470
|
-
var u = t._owner,
|
|
471
|
-
vt.setExtraStackFrame(
|
|
470
|
+
var u = t._owner, b = Y(t.type, t._source, u ? u.type : null);
|
|
471
|
+
vt.setExtraStackFrame(b);
|
|
472
472
|
} else
|
|
473
473
|
vt.setExtraStackFrame(null);
|
|
474
474
|
}
|
|
@@ -493,14 +493,14 @@ Check the render method of \`` + t + "`.";
|
|
|
493
493
|
return "";
|
|
494
494
|
}
|
|
495
495
|
var wt = {};
|
|
496
|
-
function
|
|
496
|
+
function mr(t) {
|
|
497
497
|
{
|
|
498
498
|
var u = xt();
|
|
499
499
|
if (!u) {
|
|
500
|
-
var
|
|
501
|
-
|
|
500
|
+
var b = typeof t == "string" ? t : t.displayName || t.name;
|
|
501
|
+
b && (u = `
|
|
502
502
|
|
|
503
|
-
Check the top-level render call using <` +
|
|
503
|
+
Check the top-level render call using <` + b + ">.");
|
|
504
504
|
}
|
|
505
505
|
return u;
|
|
506
506
|
}
|
|
@@ -510,12 +510,12 @@ Check the top-level render call using <` + g + ">.");
|
|
|
510
510
|
if (!t._store || t._store.validated || t.key != null)
|
|
511
511
|
return;
|
|
512
512
|
t._store.validated = !0;
|
|
513
|
-
var
|
|
514
|
-
if (wt[
|
|
513
|
+
var b = mr(u);
|
|
514
|
+
if (wt[b])
|
|
515
515
|
return;
|
|
516
|
-
wt[
|
|
516
|
+
wt[b] = !0;
|
|
517
517
|
var E = "";
|
|
518
|
-
t && t._owner && t._owner !== rt.current && (E = " It was passed a child from " + C(t._owner.type) + "."),
|
|
518
|
+
t && t._owner && t._owner !== rt.current && (E = " It was passed a child from " + C(t._owner.type) + "."), Te(t), _('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', b, E), Te(null);
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
521
|
function St(t, u) {
|
|
@@ -523,62 +523,62 @@ Check the top-level render call using <` + g + ">.");
|
|
|
523
523
|
if (typeof t != "object")
|
|
524
524
|
return;
|
|
525
525
|
if (tt(t))
|
|
526
|
-
for (var
|
|
527
|
-
var E = t[
|
|
526
|
+
for (var b = 0; b < t.length; b++) {
|
|
527
|
+
var E = t[b];
|
|
528
528
|
st(E) && Ct(E, u);
|
|
529
529
|
}
|
|
530
530
|
else if (st(t))
|
|
531
531
|
t._store && (t._store.validated = !0);
|
|
532
532
|
else if (t) {
|
|
533
|
-
var
|
|
534
|
-
if (typeof
|
|
535
|
-
for (var
|
|
536
|
-
st(
|
|
533
|
+
var q = v(t);
|
|
534
|
+
if (typeof q == "function" && q !== t.entries)
|
|
535
|
+
for (var U = q.call(t), N; !(N = U.next()).done; )
|
|
536
|
+
st(N.value) && Ct(N.value, u);
|
|
537
537
|
}
|
|
538
538
|
}
|
|
539
539
|
}
|
|
540
|
-
function
|
|
540
|
+
function yr(t) {
|
|
541
541
|
{
|
|
542
542
|
var u = t.type;
|
|
543
543
|
if (u == null || typeof u == "string")
|
|
544
544
|
return;
|
|
545
|
-
var
|
|
545
|
+
var b;
|
|
546
546
|
if (typeof u == "function")
|
|
547
|
-
|
|
547
|
+
b = u.propTypes;
|
|
548
548
|
else if (typeof u == "object" && (u.$$typeof === c || // Note: Memo only checks outer props here.
|
|
549
549
|
// Inner props are checked in the reconciler.
|
|
550
|
-
u.$$typeof ===
|
|
551
|
-
|
|
550
|
+
u.$$typeof === g))
|
|
551
|
+
b = u.propTypes;
|
|
552
552
|
else
|
|
553
553
|
return;
|
|
554
|
-
if (
|
|
554
|
+
if (b) {
|
|
555
555
|
var E = C(u);
|
|
556
|
-
|
|
556
|
+
nr(b, t.props, "prop", E, t);
|
|
557
557
|
} else if (u.PropTypes !== void 0 && !at) {
|
|
558
558
|
at = !0;
|
|
559
|
-
var
|
|
560
|
-
_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
559
|
+
var q = C(u);
|
|
560
|
+
_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", q || "Unknown");
|
|
561
561
|
}
|
|
562
562
|
typeof u.getDefaultProps == "function" && !u.getDefaultProps.isReactClassApproved && _("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
563
563
|
}
|
|
564
564
|
}
|
|
565
|
-
function
|
|
565
|
+
function vr(t) {
|
|
566
566
|
{
|
|
567
|
-
for (var u = Object.keys(t.props),
|
|
568
|
-
var E = u[
|
|
567
|
+
for (var u = Object.keys(t.props), b = 0; b < u.length; b++) {
|
|
568
|
+
var E = u[b];
|
|
569
569
|
if (E !== "children" && E !== "key") {
|
|
570
|
-
|
|
570
|
+
Te(t), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", E), Te(null);
|
|
571
571
|
break;
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
|
-
t.ref !== null && (
|
|
574
|
+
t.ref !== null && (Te(t), _("Invalid attribute `ref` supplied to `React.Fragment`."), Te(null));
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
577
|
var Lt = {};
|
|
578
|
-
function Et(t, u,
|
|
578
|
+
function Et(t, u, b, E, q, U) {
|
|
579
579
|
{
|
|
580
|
-
var
|
|
581
|
-
if (!
|
|
580
|
+
var N = P(t);
|
|
581
|
+
if (!N) {
|
|
582
582
|
var I = "";
|
|
583
583
|
(t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (I += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
584
584
|
var te = br();
|
|
@@ -586,16 +586,16 @@ Check the top-level render call using <` + g + ">.");
|
|
|
586
586
|
var H;
|
|
587
587
|
t === null ? H = "null" : tt(t) ? H = "array" : t !== void 0 && t.$$typeof === a ? (H = "<" + (C(t.type) || "Unknown") + " />", I = " Did you accidentally export a JSX literal instead of a component?") : H = typeof t, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", H, I);
|
|
588
588
|
}
|
|
589
|
-
var G = hr(t, u,
|
|
589
|
+
var G = hr(t, u, b, q, U);
|
|
590
590
|
if (G == null)
|
|
591
591
|
return G;
|
|
592
|
-
if (
|
|
592
|
+
if (N) {
|
|
593
593
|
var _e = u.children;
|
|
594
594
|
if (_e !== void 0)
|
|
595
595
|
if (E)
|
|
596
596
|
if (tt(_e)) {
|
|
597
|
-
for (var
|
|
598
|
-
St(_e[
|
|
597
|
+
for (var Ne = 0; Ne < _e.length; Ne++)
|
|
598
|
+
St(_e[Ne], t);
|
|
599
599
|
Object.freeze && Object.freeze(_e);
|
|
600
600
|
} else
|
|
601
601
|
_("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
@@ -603,45 +603,45 @@ Check the top-level render call using <` + g + ">.");
|
|
|
603
603
|
St(_e, t);
|
|
604
604
|
}
|
|
605
605
|
if (J.call(u, "key")) {
|
|
606
|
-
var
|
|
607
|
-
return
|
|
606
|
+
var ke = C(t), ae = Object.keys(u).filter(function(Er) {
|
|
607
|
+
return Er !== "key";
|
|
608
608
|
}), nt = ae.length > 0 ? "{key: someKey, " + ae.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
609
|
-
if (!Lt[
|
|
610
|
-
var
|
|
609
|
+
if (!Lt[ke + nt]) {
|
|
610
|
+
var Lr = ae.length > 0 ? "{" + ae.join(": ..., ") + ": ...}" : "{}";
|
|
611
611
|
_(`A props object containing a "key" prop is being spread into JSX:
|
|
612
612
|
let props = %s;
|
|
613
613
|
<%s {...props} />
|
|
614
614
|
React keys must be passed directly to JSX without using spread:
|
|
615
615
|
let props = %s;
|
|
616
|
-
<%s key={someKey} {...props} />`, nt,
|
|
616
|
+
<%s key={someKey} {...props} />`, nt, ke, Lr, ke), Lt[ke + nt] = !0;
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
|
-
return t === s ?
|
|
619
|
+
return t === s ? vr(G) : yr(G), G;
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
|
-
function
|
|
623
|
-
return Et(t, u,
|
|
622
|
+
function xr(t, u, b) {
|
|
623
|
+
return Et(t, u, b, !0);
|
|
624
624
|
}
|
|
625
|
-
function
|
|
626
|
-
return Et(t, u,
|
|
625
|
+
function wr(t, u, b) {
|
|
626
|
+
return Et(t, u, b, !1);
|
|
627
627
|
}
|
|
628
|
-
var
|
|
629
|
-
|
|
630
|
-
}()),
|
|
628
|
+
var Cr = wr, Sr = xr;
|
|
629
|
+
ze.Fragment = s, ze.jsx = Cr, ze.jsxs = Sr;
|
|
630
|
+
}()), ze;
|
|
631
631
|
}
|
|
632
632
|
var $t;
|
|
633
633
|
function Tr() {
|
|
634
634
|
return $t || ($t = 1, process.env.NODE_ENV === "production" ? Ge.exports = Ir() : Ge.exports = Rr()), Ge.exports;
|
|
635
635
|
}
|
|
636
636
|
var n = Tr();
|
|
637
|
-
const Nr = (e) => e.as === "a", Ar = (e) => e.as === void 0 || e.as === "button",
|
|
637
|
+
const Nr = (e) => e.as === "a", Ar = (e) => e.as === void 0 || e.as === "button", Ae = (e) => e.displayAs === void 0 || e.displayAs === "button", ot = (e) => e.displayAs === "link", Dr = "_button_6bymk_1", Or = "_link_6bymk_17", Pr = "_disabled_6bymk_22", qr = "_loading_6bymk_22", Br = "_neutral_6bymk_50", Ur = "_accent_6bymk_54", zr = "_positive_6bymk_58", Fr = "_negative_6bymk_62", Wr = "_contrast_6bymk_66", Vr = "_special_6bymk_70", Hr = "_primary_6bymk_74", Gr = "_secondary_6bymk_75", Zr = "_tertiary_6bymk_76", Yr = "_spaceBetween_6bymk_116", Jr = "_rightGroup_6bymk_116", Kr = "_label_6bymk_136", Xr = "_iconOnly_6bymk_155", Qr = "_stretched_6bymk_171", ea = "_icon_6bymk_155", ta = "_postfix_6bymk_176", ra = "_underline_6bymk_202", aa = "_warning_6bymk_1082", sa = "_withSubcaption_6bymk_1268", na = "_subcaption_6bymk_1273", oa = "_loader_6bymk_1279", ia = "_spin_6bymk_1", la = "_l_6bymk_17", ca = "_m_6bymk_1318", da = "_s_6bymk_70", ua = "_xs_6bymk_1364", _a = "_iconRight_6bymk_1410", W = {
|
|
638
638
|
button: Dr,
|
|
639
639
|
link: Or,
|
|
640
640
|
disabled: Pr,
|
|
641
|
-
loading:
|
|
642
|
-
neutral:
|
|
643
|
-
accent:
|
|
644
|
-
positive:
|
|
641
|
+
loading: qr,
|
|
642
|
+
neutral: Br,
|
|
643
|
+
accent: Ur,
|
|
644
|
+
positive: zr,
|
|
645
645
|
negative: Fr,
|
|
646
646
|
contrast: Wr,
|
|
647
647
|
special: Vr,
|
|
@@ -693,10 +693,10 @@ const Nr = (e) => e.as === "a", Ar = (e) => e.as === void 0 || e.as === "button"
|
|
|
693
693
|
m: "typography-label-2-regular",
|
|
694
694
|
s: "typography-label-3-regular"
|
|
695
695
|
};
|
|
696
|
-
function
|
|
696
|
+
function ga(e) {
|
|
697
697
|
return fa[e] || "typography-label-2-regular";
|
|
698
698
|
}
|
|
699
|
-
const
|
|
699
|
+
const oe = {
|
|
700
700
|
"typography-title-1-semibold": "_typography-title-1-semibold_1lyxn_1",
|
|
701
701
|
"typography-title-2-semibold": "_typography-title-2-semibold_1lyxn_10",
|
|
702
702
|
"typography-title-3-semibold": "_typography-title-3-semibold_1lyxn_19",
|
|
@@ -732,13 +732,13 @@ const ce = {
|
|
|
732
732
|
}) => {
|
|
733
733
|
if (e && d)
|
|
734
734
|
return /* @__PURE__ */ n.jsx("span", { className: W.loader, "data-testid": "button-loader", "aria-hidden": "true" });
|
|
735
|
-
const c = a && d || a && !d && l,
|
|
735
|
+
const c = a && d || a && !d && l, p = o && d && l !== "s" && l !== "xs";
|
|
736
736
|
return /* @__PURE__ */ n.jsxs(Oe, { children: [
|
|
737
|
-
|
|
737
|
+
p && /* @__PURE__ */ n.jsxs(Oe, { children: [
|
|
738
738
|
/* @__PURE__ */ n.jsx("span", { "data-testid": "button-label", className: W.label, children: s }),
|
|
739
739
|
/* @__PURE__ */ n.jsx("span", { "data-testid": "button-subcaption", className: W.subcaption, children: o })
|
|
740
740
|
] }),
|
|
741
|
-
!
|
|
741
|
+
!p && s && /* @__PURE__ */ n.jsxs(Oe, { children: [
|
|
742
742
|
/* @__PURE__ */ n.jsxs("span", { "data-testid": "button-label", className: W.label, children: [
|
|
743
743
|
!d && r && /* @__PURE__ */ n.jsx("span", { "data-testid": "button-left-icon", className: W.icon, children: r }),
|
|
744
744
|
s,
|
|
@@ -749,48 +749,48 @@ const ce = {
|
|
|
749
749
|
i && d && /* @__PURE__ */ n.jsx("span", { "data-testid": "button-postfix", className: W.postfix, children: i })
|
|
750
750
|
] })
|
|
751
751
|
] }),
|
|
752
|
-
!
|
|
752
|
+
!p && !s && /* @__PURE__ */ n.jsx("span", { "data-testid": "button-icon", className: W.icon, children: a })
|
|
753
753
|
] });
|
|
754
|
-
},
|
|
754
|
+
}, ha = X((e, a) => {
|
|
755
755
|
const {
|
|
756
756
|
mode: r = "primary",
|
|
757
757
|
size: s = "m",
|
|
758
|
-
buttonStyle: i =
|
|
758
|
+
buttonStyle: i = Ae(e) ? "neutral" : "accent",
|
|
759
759
|
disabled: o = !1,
|
|
760
760
|
displayAs: l = "button",
|
|
761
761
|
iconRight: d,
|
|
762
762
|
className: c,
|
|
763
|
-
children:
|
|
764
|
-
tabIndex:
|
|
765
|
-
} = e,
|
|
763
|
+
children: p,
|
|
764
|
+
tabIndex: f
|
|
765
|
+
} = e, g = Ae(e) ? e.subcaption : void 0, m = Ae(e) ? e.postfix : void 0, h = Ae(e) ? e.stretched : void 0, y = !(ot(e) && e.size === void 0), S = ot(e) && y ? e.iconLeft : void 0, v = !!(l === "button" && "loading" in e && e.loading), x = Ae(e) ? o : o || v, _ = !x && !v, w = y ? d : void 0, L = !!(w && !p), M = typeof h == "object" ? h.justify === "space-between" : void 0, j = ot(e) ? ga(e.size ?? "m") : void 0, $ = j ? oe[j] : void 0, R = x || v ? -1 : f, D = k(
|
|
766
766
|
W.button,
|
|
767
767
|
W[s],
|
|
768
768
|
W[r],
|
|
769
769
|
W[i],
|
|
770
|
-
|
|
770
|
+
$,
|
|
771
771
|
{
|
|
772
772
|
[W.disabled]: x,
|
|
773
773
|
[W.loading]: l === "button" && "loading" in e && e.loading,
|
|
774
|
-
[W.stretched]:
|
|
775
|
-
[W.spaceBetween]:
|
|
776
|
-
[W.withSubcaption]:
|
|
774
|
+
[W.stretched]: h,
|
|
775
|
+
[W.spaceBetween]: M,
|
|
776
|
+
[W.withSubcaption]: g && s !== "s" && s !== "xs",
|
|
777
777
|
[W.iconOnly]: L,
|
|
778
778
|
[W.link]: l === "link",
|
|
779
779
|
[W.underline]: l === "link" && "showUnderline" in e && e.showUnderline
|
|
780
780
|
},
|
|
781
781
|
c
|
|
782
|
-
),
|
|
782
|
+
), P = {
|
|
783
783
|
isLoading: v,
|
|
784
784
|
iconRight: w,
|
|
785
785
|
iconLeft: S,
|
|
786
|
-
children:
|
|
787
|
-
postfix:
|
|
788
|
-
subcaption:
|
|
786
|
+
children: p,
|
|
787
|
+
postfix: m,
|
|
788
|
+
subcaption: g,
|
|
789
789
|
size: s,
|
|
790
|
-
isAsButton:
|
|
790
|
+
isAsButton: Ae(e)
|
|
791
791
|
};
|
|
792
792
|
if (Nr(e)) {
|
|
793
|
-
const { href: F, onClick: O, style: C, target:
|
|
793
|
+
const { href: F, onClick: O, style: C, target: T, rel: B, "data-testid": z, ...V } = e, Q = Mt(V), ie = T ?? (e.isExternal ? "_blank" : void 0);
|
|
794
794
|
let Z = B;
|
|
795
795
|
if (ie === "_blank") {
|
|
796
796
|
const ee = new Set((B ?? "").split(/\s+/).filter(Boolean));
|
|
@@ -809,20 +809,20 @@ const ce = {
|
|
|
809
809
|
ref: a,
|
|
810
810
|
className: D,
|
|
811
811
|
href: _ ? F : void 0,
|
|
812
|
-
tabIndex:
|
|
812
|
+
tabIndex: R,
|
|
813
813
|
onClick: ue,
|
|
814
|
-
"data-testid":
|
|
814
|
+
"data-testid": z,
|
|
815
815
|
"aria-disabled": x || v,
|
|
816
816
|
style: C,
|
|
817
817
|
target: ie,
|
|
818
818
|
rel: Z,
|
|
819
819
|
...Q,
|
|
820
|
-
children: /* @__PURE__ */ n.jsx(It, { ...
|
|
820
|
+
children: /* @__PURE__ */ n.jsx(It, { ...P })
|
|
821
821
|
}
|
|
822
822
|
);
|
|
823
823
|
}
|
|
824
824
|
if (Ar(e)) {
|
|
825
|
-
const { type: F = "button", onClick: O, style: C, "data-testid":
|
|
825
|
+
const { type: F = "button", onClick: O, style: C, "data-testid": T, ...B } = e, z = Mt(B), V = (Q) => {
|
|
826
826
|
_ && O && O(Q);
|
|
827
827
|
};
|
|
828
828
|
return /* @__PURE__ */ n.jsx(
|
|
@@ -832,13 +832,13 @@ const ce = {
|
|
|
832
832
|
type: F,
|
|
833
833
|
className: D,
|
|
834
834
|
disabled: x,
|
|
835
|
-
tabIndex:
|
|
835
|
+
tabIndex: R,
|
|
836
836
|
onClick: V,
|
|
837
|
-
"data-testid":
|
|
837
|
+
"data-testid": T,
|
|
838
838
|
"aria-disabled": x || v,
|
|
839
839
|
style: C,
|
|
840
|
-
...
|
|
841
|
-
children: /* @__PURE__ */ n.jsx(It, { ...
|
|
840
|
+
...z,
|
|
841
|
+
children: /* @__PURE__ */ n.jsx(It, { ...P })
|
|
842
842
|
}
|
|
843
843
|
);
|
|
844
844
|
}
|
|
@@ -851,7 +851,7 @@ var it = { exports: {} };
|
|
|
851
851
|
http://jedwatson.github.io/classnames
|
|
852
852
|
*/
|
|
853
853
|
var Rt;
|
|
854
|
-
function
|
|
854
|
+
function ba() {
|
|
855
855
|
return Rt || (Rt = 1, function(e) {
|
|
856
856
|
(function() {
|
|
857
857
|
var a = {}.hasOwnProperty;
|
|
@@ -883,8 +883,8 @@ function ga() {
|
|
|
883
883
|
})();
|
|
884
884
|
}(it)), it.exports;
|
|
885
885
|
}
|
|
886
|
-
var ma =
|
|
887
|
-
const
|
|
886
|
+
var ma = ba();
|
|
887
|
+
const Ee = /* @__PURE__ */ Mr(ma), ya = "_avatar_1kyiq_17", va = "_clickable_1kyiq_41", xa = "_icon_1kyiq_58", wa = "_disabled_1kyiq_63", Ca = "_loading_1kyiq_68", Sa = "_image_1kyiq_74", La = "_name_1kyiq_74", be = {
|
|
888
888
|
avatar: ya,
|
|
889
889
|
clickable: va,
|
|
890
890
|
icon: xa,
|
|
@@ -949,7 +949,7 @@ const Ma = {
|
|
|
949
949
|
96: 24,
|
|
950
950
|
208: 8
|
|
951
951
|
};
|
|
952
|
-
function
|
|
952
|
+
function Yt(e, a) {
|
|
953
953
|
return a === "circle" ? e / 2 : Ma[e] || 12;
|
|
954
954
|
}
|
|
955
955
|
const Ia = {
|
|
@@ -980,73 +980,73 @@ const Ta = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
980
980
|
shape: l = "circle",
|
|
981
981
|
variant: d = "filled",
|
|
982
982
|
placeholderType: c = "neutral",
|
|
983
|
-
name:
|
|
984
|
-
imgSrc:
|
|
985
|
-
imgAlt:
|
|
986
|
-
icon:
|
|
987
|
-
imgProps:
|
|
988
|
-
colorScheme:
|
|
983
|
+
name: p,
|
|
984
|
+
imgSrc: f,
|
|
985
|
+
imgAlt: g,
|
|
986
|
+
icon: m,
|
|
987
|
+
imgProps: h,
|
|
988
|
+
colorScheme: y,
|
|
989
989
|
className: S,
|
|
990
990
|
"data-testid": v,
|
|
991
991
|
...x
|
|
992
|
-
} = e, { onClick: _, onPointerDown: w } = x,
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
}, [
|
|
996
|
-
const
|
|
992
|
+
} = e, { onClick: _, onPointerDown: w } = x, M = !o && !i && (!!_ || !!w), [j, $] = ce(!1);
|
|
993
|
+
de(() => {
|
|
994
|
+
f && $(!1);
|
|
995
|
+
}, [f]);
|
|
996
|
+
const R = f && !j ? "image" : m ? "icon" : p ? "name" : "placeholder", D = y || R === "name" && ka(p) || "gray", P = Ra(s), F = Yt(s, l), O = k(
|
|
997
997
|
S,
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
998
|
+
be.avatar,
|
|
999
|
+
be[`variant-${d}`],
|
|
1000
|
+
be[`color-${D}`],
|
|
1001
|
+
oe[P],
|
|
1002
1002
|
{
|
|
1003
|
-
[
|
|
1004
|
-
[
|
|
1005
|
-
[
|
|
1003
|
+
[be.disabled]: o,
|
|
1004
|
+
[be.loading]: i,
|
|
1005
|
+
[be.clickable]: M
|
|
1006
1006
|
}
|
|
1007
1007
|
), C = {
|
|
1008
1008
|
"--avatar-size": `${s}px`,
|
|
1009
1009
|
"--avatar-border-radius": `${F}px`,
|
|
1010
1010
|
...r
|
|
1011
|
-
},
|
|
1012
|
-
icon: () => /* @__PURE__ */ n.jsx("span", { "data-testid": "avatar-icon", title:
|
|
1011
|
+
}, T = {
|
|
1012
|
+
icon: () => /* @__PURE__ */ n.jsx("span", { "data-testid": "avatar-icon", title: g || void 0, role: "img", className: be.icon, children: m == null ? void 0 : m({}) }),
|
|
1013
1013
|
name: () => /* @__PURE__ */ n.jsx(
|
|
1014
1014
|
"span",
|
|
1015
1015
|
{
|
|
1016
1016
|
role: "textbox",
|
|
1017
1017
|
"data-testid": "avatar-name",
|
|
1018
|
-
className:
|
|
1019
|
-
title:
|
|
1020
|
-
children: $a(
|
|
1018
|
+
className: be.name,
|
|
1019
|
+
title: g || void 0,
|
|
1020
|
+
children: $a(p || "")
|
|
1021
1021
|
}
|
|
1022
1022
|
),
|
|
1023
1023
|
placeholder: () => /* @__PURE__ */ n.jsx(
|
|
1024
1024
|
"img",
|
|
1025
1025
|
{
|
|
1026
|
-
...
|
|
1026
|
+
...h,
|
|
1027
1027
|
"data-testid": "avatar-placeholder",
|
|
1028
|
-
className:
|
|
1028
|
+
className: be.image,
|
|
1029
1029
|
src: Oa[c],
|
|
1030
|
-
alt:
|
|
1030
|
+
alt: g || void 0
|
|
1031
1031
|
}
|
|
1032
1032
|
),
|
|
1033
1033
|
image: () => /* @__PURE__ */ n.jsx(
|
|
1034
1034
|
"img",
|
|
1035
1035
|
{
|
|
1036
1036
|
"data-testid": "avatar-image",
|
|
1037
|
-
...
|
|
1038
|
-
className:
|
|
1039
|
-
src:
|
|
1040
|
-
alt:
|
|
1041
|
-
onLoad: () =>
|
|
1042
|
-
onError: (
|
|
1037
|
+
...h,
|
|
1038
|
+
className: be.image,
|
|
1039
|
+
src: f || void 0,
|
|
1040
|
+
alt: g || void 0,
|
|
1041
|
+
onLoad: () => $(!1),
|
|
1042
|
+
onError: (z) => {
|
|
1043
1043
|
var V;
|
|
1044
|
-
|
|
1044
|
+
$(!0), (V = h == null ? void 0 : h.onError) == null || V.call(h, z);
|
|
1045
1045
|
}
|
|
1046
1046
|
}
|
|
1047
1047
|
)
|
|
1048
|
-
}, B = (
|
|
1049
|
-
|
|
1048
|
+
}, B = (z) => {
|
|
1049
|
+
M && (_ == null || _(z));
|
|
1050
1050
|
};
|
|
1051
1051
|
return /* @__PURE__ */ n.jsx(
|
|
1052
1052
|
"div",
|
|
@@ -1057,15 +1057,15 @@ const Ta = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
1057
1057
|
style: C,
|
|
1058
1058
|
"data-testid": v,
|
|
1059
1059
|
"aria-disabled": o || i,
|
|
1060
|
-
children: R
|
|
1060
|
+
children: T[R](null)
|
|
1061
1061
|
}
|
|
1062
1062
|
);
|
|
1063
|
-
}), Pa = "_avatarGroup_157g4_1",
|
|
1063
|
+
}), Pa = "_avatarGroup_157g4_1", qa = {
|
|
1064
1064
|
avatarGroup: Pa
|
|
1065
1065
|
};
|
|
1066
|
-
let
|
|
1067
|
-
function
|
|
1068
|
-
const d = Math.min(i, o) / 2, c = Math.min(l, d),
|
|
1066
|
+
let Ba = (e = 21) => crypto.getRandomValues(new Uint8Array(e)).reduce((a, r) => (r &= 63, r < 36 ? a += r.toString(36) : r < 62 ? a += (r - 26).toString(36).toUpperCase() : r > 62 ? a += "-" : a += "_", a), "");
|
|
1067
|
+
function Ua(e, a, r, s, i, o, l) {
|
|
1068
|
+
const d = Math.min(i, o) / 2, c = Math.min(l, d), p = ["M0,0", `H${e}`, `V${a}`, "H0", "V0", "Z"].join(" "), f = [
|
|
1069
1069
|
`M${r + c},${s}`,
|
|
1070
1070
|
`L${r + i - c},${s}`,
|
|
1071
1071
|
// Верхний правый угол
|
|
@@ -1081,9 +1081,9 @@ function za(e, a, r, s, i, o, l) {
|
|
|
1081
1081
|
`A${c},${c} 0 0 1 ${r + c},${s}`,
|
|
1082
1082
|
"Z"
|
|
1083
1083
|
].join(" ");
|
|
1084
|
-
return `${
|
|
1084
|
+
return `${p} ${f}`;
|
|
1085
1085
|
}
|
|
1086
|
-
const
|
|
1086
|
+
const za = 3, Fa = (e) => {
|
|
1087
1087
|
const {
|
|
1088
1088
|
avatars: a = [],
|
|
1089
1089
|
size: r = 40,
|
|
@@ -1091,7 +1091,7 @@ const Ua = 3, Fa = (e) => {
|
|
|
1091
1091
|
shape: i = "circle",
|
|
1092
1092
|
overflowCount: o = 0,
|
|
1093
1093
|
overflowProps: l
|
|
1094
|
-
} = e, d = r * s, c = -d +
|
|
1094
|
+
} = e, d = r * s, c = -d + za, p = Yt(r, i), g = qe(Ba()).current.toString(), m = Ee(qa.avatarGroup), h = Ua(
|
|
1095
1095
|
r,
|
|
1096
1096
|
r,
|
|
1097
1097
|
r - d,
|
|
@@ -1100,24 +1100,24 @@ const Ua = 3, Fa = (e) => {
|
|
|
1100
1100
|
// Y-координата начала выреза
|
|
1101
1101
|
r,
|
|
1102
1102
|
r,
|
|
1103
|
-
|
|
1103
|
+
p
|
|
1104
1104
|
);
|
|
1105
|
-
return a.length === 0 ? null : /* @__PURE__ */ n.jsxs("div", { className:
|
|
1106
|
-
a.map((
|
|
1105
|
+
return a.length === 0 ? null : /* @__PURE__ */ n.jsxs("div", { className: m, children: [
|
|
1106
|
+
a.map((y, S, v) => {
|
|
1107
1107
|
const x = S + 1 >= v.length;
|
|
1108
|
-
if (
|
|
1109
|
-
const _ =
|
|
1108
|
+
if (y.wrapper) {
|
|
1109
|
+
const _ = y.wrapper;
|
|
1110
1110
|
return /* @__PURE__ */ n.jsx(
|
|
1111
1111
|
"div",
|
|
1112
1112
|
{
|
|
1113
1113
|
style: {
|
|
1114
1114
|
// Для последнего видимого аватара без overflowCount не применяем обрезку
|
|
1115
|
-
clipPath: x && !o ? void 0 : `url(#${
|
|
1115
|
+
clipPath: x && !o ? void 0 : `url(#${g})`,
|
|
1116
1116
|
marginRight: c
|
|
1117
1117
|
},
|
|
1118
|
-
children: /* @__PURE__ */ n.jsx(_, { children: /* @__PURE__ */ n.jsx(Ye, { size: r, shape: i, ...
|
|
1118
|
+
children: /* @__PURE__ */ n.jsx(_, { children: /* @__PURE__ */ n.jsx(Ye, { size: r, shape: i, ...y }) })
|
|
1119
1119
|
},
|
|
1120
|
-
Ke(
|
|
1120
|
+
Ke(y) + S
|
|
1121
1121
|
);
|
|
1122
1122
|
}
|
|
1123
1123
|
return /* @__PURE__ */ n.jsx(
|
|
@@ -1125,12 +1125,12 @@ const Ua = 3, Fa = (e) => {
|
|
|
1125
1125
|
{
|
|
1126
1126
|
style: {
|
|
1127
1127
|
// Для последнего видимого аватара без overflowCount не применяем обрезку
|
|
1128
|
-
clipPath: x && !o ? void 0 : `url(#${
|
|
1128
|
+
clipPath: x && !o ? void 0 : `url(#${g})`,
|
|
1129
1129
|
marginRight: c
|
|
1130
1130
|
},
|
|
1131
|
-
children: /* @__PURE__ */ n.jsx(Ye, { size: r, shape: i, ...
|
|
1131
|
+
children: /* @__PURE__ */ n.jsx(Ye, { size: r, shape: i, ...y })
|
|
1132
1132
|
},
|
|
1133
|
-
Ke(
|
|
1133
|
+
Ke(y) + S
|
|
1134
1134
|
);
|
|
1135
1135
|
}),
|
|
1136
1136
|
o > 0 && /* @__PURE__ */ n.jsx("div", { style: { marginRight: c }, children: /* @__PURE__ */ n.jsx(
|
|
@@ -1144,9 +1144,9 @@ const Ua = 3, Fa = (e) => {
|
|
|
1144
1144
|
...l
|
|
1145
1145
|
}
|
|
1146
1146
|
) }),
|
|
1147
|
-
/* @__PURE__ */ n.jsx("svg", { width: "0", height: "0", children: /* @__PURE__ */ n.jsx("clipPath", { id: `${
|
|
1147
|
+
/* @__PURE__ */ n.jsx("svg", { width: "0", height: "0", children: /* @__PURE__ */ n.jsx("clipPath", { id: `${g}`, children: /* @__PURE__ */ n.jsx("path", { clipPathUnits: "objectBoundingBox", d: h, clipRule: "evenodd" }) }) })
|
|
1148
1148
|
] });
|
|
1149
|
-
},
|
|
1149
|
+
}, yl = Object.assign(Ye, {
|
|
1150
1150
|
Group: Fa
|
|
1151
1151
|
}), Wa = "_wrapper_ecbsu_5", Va = "_badge__container_ecbsu_6", Ha = "_badge__content_ecbsu_7", Ga = "_interactive_ecbsu_20", Za = "_disabled_ecbsu_21", Ya = "_icon_ecbsu_22", ye = {
|
|
1152
1152
|
wrapper: Wa,
|
|
@@ -1195,9 +1195,9 @@ const Ua = 3, Fa = (e) => {
|
|
|
1195
1195
|
a = a.parentElement;
|
|
1196
1196
|
}
|
|
1197
1197
|
return null;
|
|
1198
|
-
},
|
|
1199
|
-
const e =
|
|
1200
|
-
return
|
|
1198
|
+
}, Jt = () => {
|
|
1199
|
+
const e = qe(null), [a, r] = ce(null);
|
|
1200
|
+
return de(() => {
|
|
1201
1201
|
if (e.current) {
|
|
1202
1202
|
const s = Ka(e.current);
|
|
1203
1203
|
r(s);
|
|
@@ -1205,23 +1205,23 @@ const Ua = 3, Fa = (e) => {
|
|
|
1205
1205
|
}, []), { ref: e, bgColor: a };
|
|
1206
1206
|
};
|
|
1207
1207
|
function At(e, a, r) {
|
|
1208
|
-
|
|
1208
|
+
de(() => (window.addEventListener(e, a, r), () => window.removeEventListener(e, a, r)), [e, a]);
|
|
1209
1209
|
}
|
|
1210
1210
|
const Dt = {
|
|
1211
1211
|
passive: !0
|
|
1212
1212
|
};
|
|
1213
1213
|
function Xa() {
|
|
1214
|
-
const [e, a] =
|
|
1214
|
+
const [e, a] = ce({
|
|
1215
1215
|
width: 0,
|
|
1216
1216
|
height: 0
|
|
1217
|
-
}), r =
|
|
1217
|
+
}), r = Le(() => {
|
|
1218
1218
|
a({ width: window.innerWidth || 0, height: window.innerHeight || 0 });
|
|
1219
1219
|
}, []);
|
|
1220
|
-
return At("resize", r, Dt), At("orientationchange", r, Dt),
|
|
1220
|
+
return At("resize", r, Dt), At("orientationchange", r, Dt), de(r, []), e;
|
|
1221
1221
|
}
|
|
1222
1222
|
function Qa(e = 768) {
|
|
1223
1223
|
const { width: a } = Xa();
|
|
1224
|
-
return
|
|
1224
|
+
return jr(() => a <= e, [a, e]);
|
|
1225
1225
|
}
|
|
1226
1226
|
const es = X((e, a) => {
|
|
1227
1227
|
const {
|
|
@@ -1232,50 +1232,50 @@ const es = X((e, a) => {
|
|
|
1232
1232
|
isHidden: l = !1,
|
|
1233
1233
|
colorScheme: d = "red",
|
|
1234
1234
|
size: c = 20,
|
|
1235
|
-
position:
|
|
1236
|
-
positionOffset:
|
|
1237
|
-
cutoutBackground:
|
|
1238
|
-
isDisabled:
|
|
1239
|
-
className:
|
|
1240
|
-
"data-testid":
|
|
1235
|
+
position: p = "top-right",
|
|
1236
|
+
positionOffset: f = { x: 0, y: 0 },
|
|
1237
|
+
cutoutBackground: g,
|
|
1238
|
+
isDisabled: m,
|
|
1239
|
+
className: h,
|
|
1240
|
+
"data-testid": y = "badge",
|
|
1241
1241
|
...S
|
|
1242
|
-
} = e, { onClick: v, onPointerDown: x } = S, { ref: _, bgColor: w } =
|
|
1243
|
-
|
|
1242
|
+
} = e, { onClick: v, onPointerDown: x } = S, { ref: _, bgColor: w } = Jt(), L = g || w, j = !m && (!!v || !!x), $ = Ee(ye.badge__container, ye[`position-${p}`]), R = Ee(
|
|
1243
|
+
h,
|
|
1244
1244
|
ye.badge__content,
|
|
1245
1245
|
ye[`color-${d}`],
|
|
1246
1246
|
ye[`variant-${i}`],
|
|
1247
1247
|
{
|
|
1248
|
-
[ye.disabled]:
|
|
1248
|
+
[ye.disabled]: m,
|
|
1249
1249
|
[ye.icon]: !!r,
|
|
1250
1250
|
[ye.interactive]: j
|
|
1251
1251
|
}
|
|
1252
1252
|
), D = {
|
|
1253
1253
|
"--badge-height": `${c}px`,
|
|
1254
|
-
"--badge-offset-x": `${
|
|
1255
|
-
"--badge-offset-y": `${
|
|
1254
|
+
"--badge-offset-x": `${f.x}px`,
|
|
1255
|
+
"--badge-offset-y": `${f.y}px`,
|
|
1256
1256
|
...L && { "--badge-cutout-bg": L },
|
|
1257
1257
|
...i === "transparent" && { "--badge-cutout-bg": "transparent" }
|
|
1258
|
-
},
|
|
1258
|
+
}, P = (r == null ? void 0 : r({})) || o, F = (O) => {
|
|
1259
1259
|
j && (v == null || v(O));
|
|
1260
1260
|
};
|
|
1261
|
-
return /* @__PURE__ */ n.jsxs("div", { className: ye.wrapper, ref: _, "data-testid":
|
|
1261
|
+
return /* @__PURE__ */ n.jsxs("div", { className: ye.wrapper, ref: _, "data-testid": y + "-wrapper", children: [
|
|
1262
1262
|
s,
|
|
1263
1263
|
!l && /* @__PURE__ */ n.jsx(
|
|
1264
1264
|
"span",
|
|
1265
1265
|
{
|
|
1266
|
-
className:
|
|
1266
|
+
className: $,
|
|
1267
1267
|
style: D,
|
|
1268
|
-
"data-testid":
|
|
1268
|
+
"data-testid": y + "-container",
|
|
1269
1269
|
children: /* @__PURE__ */ n.jsx(
|
|
1270
1270
|
"span",
|
|
1271
1271
|
{
|
|
1272
1272
|
...S,
|
|
1273
1273
|
onClick: F,
|
|
1274
|
-
className:
|
|
1275
|
-
"data-testid":
|
|
1274
|
+
className: R,
|
|
1275
|
+
"data-testid": y + "-content",
|
|
1276
1276
|
ref: a,
|
|
1277
|
-
"aria-disabled":
|
|
1278
|
-
children:
|
|
1277
|
+
"aria-disabled": m,
|
|
1278
|
+
children: P
|
|
1279
1279
|
}
|
|
1280
1280
|
)
|
|
1281
1281
|
}
|
|
@@ -1302,7 +1302,7 @@ const es = X((e, a) => {
|
|
|
1302
1302
|
"size-48": "_size-48_isv17_80",
|
|
1303
1303
|
"size-64": "_size-64_isv17_84",
|
|
1304
1304
|
"size-96": "_size-96_isv17_88"
|
|
1305
|
-
},
|
|
1305
|
+
}, Kt = X(
|
|
1306
1306
|
({
|
|
1307
1307
|
size: e = 24,
|
|
1308
1308
|
variant: a = "accent",
|
|
@@ -1311,7 +1311,7 @@ const es = X((e, a) => {
|
|
|
1311
1311
|
style: i,
|
|
1312
1312
|
...o
|
|
1313
1313
|
}, l) => {
|
|
1314
|
-
const d =
|
|
1314
|
+
const d = Ee(
|
|
1315
1315
|
Fe.loader,
|
|
1316
1316
|
Fe[a],
|
|
1317
1317
|
Fe[`size-${e}`],
|
|
@@ -1340,7 +1340,7 @@ const es = X((e, a) => {
|
|
|
1340
1340
|
}
|
|
1341
1341
|
);
|
|
1342
1342
|
}
|
|
1343
|
-
),
|
|
1343
|
+
), gs = X((e, a) => {
|
|
1344
1344
|
const {
|
|
1345
1345
|
loading: r = !1,
|
|
1346
1346
|
size: s = 24,
|
|
@@ -1349,19 +1349,19 @@ const es = X((e, a) => {
|
|
|
1349
1349
|
className: l,
|
|
1350
1350
|
style: d,
|
|
1351
1351
|
"data-testid": c,
|
|
1352
|
-
...
|
|
1353
|
-
} = e,
|
|
1354
|
-
return /* @__PURE__ */ n.jsxs("div", { ref: a, className:
|
|
1352
|
+
...p
|
|
1353
|
+
} = e, f = Ee(Fe.container, l);
|
|
1354
|
+
return /* @__PURE__ */ n.jsxs("div", { ref: a, className: f, style: d, "data-testid": c, ...p, children: [
|
|
1355
1355
|
o,
|
|
1356
|
-
r && /* @__PURE__ */ n.jsx("div", { className: Fe.overlay, children: /* @__PURE__ */ n.jsx(
|
|
1356
|
+
r && /* @__PURE__ */ n.jsx("div", { className: Fe.overlay, children: /* @__PURE__ */ n.jsx(Kt, { size: s, variant: i, "data-testid": `${c}-spinner` }) })
|
|
1357
1357
|
] });
|
|
1358
|
-
}),
|
|
1359
|
-
|
|
1358
|
+
}), hs = X((e, a) => e.children ? /* @__PURE__ */ n.jsx(
|
|
1359
|
+
gs,
|
|
1360
1360
|
{
|
|
1361
1361
|
ref: a,
|
|
1362
1362
|
...e
|
|
1363
1363
|
}
|
|
1364
|
-
) : /* @__PURE__ */ n.jsx(
|
|
1364
|
+
) : /* @__PURE__ */ n.jsx(Kt, { ref: a, ...e })), bs = ({ width: e = 48, height: a = 48, className: r, "data-testid": s }) => /* @__PURE__ */ n.jsx(
|
|
1365
1365
|
"svg",
|
|
1366
1366
|
{
|
|
1367
1367
|
width: e,
|
|
@@ -1382,7 +1382,7 @@ const es = X((e, a) => {
|
|
|
1382
1382
|
}
|
|
1383
1383
|
)
|
|
1384
1384
|
}
|
|
1385
|
-
),
|
|
1385
|
+
), vl = X((e, a) => {
|
|
1386
1386
|
const {
|
|
1387
1387
|
alt: r = "",
|
|
1388
1388
|
loading: s = "lazy",
|
|
@@ -1391,27 +1391,27 @@ const es = X((e, a) => {
|
|
|
1391
1391
|
className: l,
|
|
1392
1392
|
"data-testid": d = "image",
|
|
1393
1393
|
onError: c,
|
|
1394
|
-
onLoad:
|
|
1395
|
-
...
|
|
1396
|
-
} = e, [
|
|
1394
|
+
onLoad: p,
|
|
1395
|
+
...f
|
|
1396
|
+
} = e, [g, m] = ce("loading"), h = g === "error", y = (o || g === "loading") && !h, S = g === "loaded" && !o, v = Ee(
|
|
1397
1397
|
lt.image,
|
|
1398
1398
|
{
|
|
1399
|
-
[lt.loading]:
|
|
1399
|
+
[lt.loading]: y
|
|
1400
1400
|
},
|
|
1401
1401
|
l
|
|
1402
|
-
), x =
|
|
1402
|
+
), x = Le(
|
|
1403
1403
|
(L) => {
|
|
1404
|
-
|
|
1404
|
+
m("loaded"), p == null || p(L);
|
|
1405
1405
|
},
|
|
1406
|
-
[
|
|
1407
|
-
), _ =
|
|
1406
|
+
[p]
|
|
1407
|
+
), _ = Le(
|
|
1408
1408
|
(L) => {
|
|
1409
|
-
|
|
1409
|
+
m("error"), c == null || c(L);
|
|
1410
1410
|
},
|
|
1411
1411
|
[c]
|
|
1412
1412
|
), w = {
|
|
1413
1413
|
loader: /* @__PURE__ */ n.jsxs(Oe, { children: [
|
|
1414
|
-
/* @__PURE__ */ n.jsx(
|
|
1414
|
+
/* @__PURE__ */ n.jsx(hs, { size: 48, variant: "special", "data-testid": `${d}-loader` }),
|
|
1415
1415
|
/* @__PURE__ */ n.jsx(
|
|
1416
1416
|
"img",
|
|
1417
1417
|
{
|
|
@@ -1423,7 +1423,7 @@ const es = X((e, a) => {
|
|
|
1423
1423
|
}
|
|
1424
1424
|
)
|
|
1425
1425
|
] }),
|
|
1426
|
-
error: /* @__PURE__ */ n.jsx(
|
|
1426
|
+
error: /* @__PURE__ */ n.jsx(bs, { "data-testid": `${d}-fallback` }),
|
|
1427
1427
|
image: /* @__PURE__ */ n.jsx(
|
|
1428
1428
|
"img",
|
|
1429
1429
|
{
|
|
@@ -1436,33 +1436,56 @@ const es = X((e, a) => {
|
|
|
1436
1436
|
}
|
|
1437
1437
|
)
|
|
1438
1438
|
};
|
|
1439
|
-
return
|
|
1439
|
+
return de(() => {
|
|
1440
1440
|
if (!i) {
|
|
1441
|
-
|
|
1441
|
+
m("error");
|
|
1442
1442
|
return;
|
|
1443
1443
|
}
|
|
1444
|
-
|
|
1445
|
-
}, [i]), /* @__PURE__ */ n.jsxs("div", { className: lt.container, "data-testid": `${d}-container`, ...
|
|
1446
|
-
|
|
1447
|
-
|
|
1444
|
+
m("loading");
|
|
1445
|
+
}, [i]), /* @__PURE__ */ n.jsxs("div", { className: lt.container, "data-testid": `${d}-container`, ...f, children: [
|
|
1446
|
+
y && w.loader,
|
|
1447
|
+
h && w.error,
|
|
1448
1448
|
S && w.image
|
|
1449
1449
|
] });
|
|
1450
|
-
}), ms = {},
|
|
1450
|
+
}), ms = {}, Xt = Ht({
|
|
1451
1451
|
locale: ms
|
|
1452
1452
|
}), ys = () => {
|
|
1453
|
-
const e = Gt(
|
|
1453
|
+
const e = Gt(Xt);
|
|
1454
1454
|
if (!e)
|
|
1455
1455
|
throw new Error("useConfig must be used within a ConfigProvider");
|
|
1456
1456
|
return e;
|
|
1457
|
-
},
|
|
1457
|
+
}, xl = () => {
|
|
1458
1458
|
const { locale: e } = ys();
|
|
1459
1459
|
return e;
|
|
1460
|
-
}, vs = {}, xs = {}, ws = {},
|
|
1460
|
+
}, vs = {}, xs = {}, ws = {}, Cs = {}, Ss = {}, Ls = "_base_1p0qo_50", Es = "_content_1p0qo_54", js = "_background_1p0qo_58", ks = "_button_1p0qo_62", $s = "_link_1p0qo_66", Ms = "_input_1p0qo_70", Is = "_suffix_1p0qo_74", Rs = "_prefix_1p0qo_78", Ts = "_tooltip_1p0qo_82", Ns = "_hint_1p0qo_86", As = "_dropdown_1p0qo_90", Ds = "_popover_1p0qo_94", Os = "_modalBackdrop_1p0qo_98", Ps = "_modal_1p0qo_98", qs = "_overlay_1p0qo_106", Bs = "_drawer_1p0qo_110", Us = "_notification_1p0qo_114", zs = "_alert_1p0qo_118", Fs = "_toast_1p0qo_122", Ws = "_loading_1p0qo_126", Vs = "_error_1p0qo_130", Hs = "_critical_1p0qo_134", Gs = {
|
|
1461
|
+
base: Ls,
|
|
1462
|
+
content: Es,
|
|
1463
|
+
background: js,
|
|
1464
|
+
button: ks,
|
|
1465
|
+
link: $s,
|
|
1466
|
+
input: Ms,
|
|
1467
|
+
suffix: Is,
|
|
1468
|
+
prefix: Rs,
|
|
1469
|
+
tooltip: Ts,
|
|
1470
|
+
hint: Ns,
|
|
1471
|
+
dropdown: As,
|
|
1472
|
+
popover: Ds,
|
|
1473
|
+
modalBackdrop: Os,
|
|
1474
|
+
modal: Ps,
|
|
1475
|
+
overlay: qs,
|
|
1476
|
+
drawer: Bs,
|
|
1477
|
+
notification: Us,
|
|
1478
|
+
alert: zs,
|
|
1479
|
+
toast: Fs,
|
|
1480
|
+
loading: Ws,
|
|
1481
|
+
error: Vs,
|
|
1482
|
+
critical: Hs
|
|
1483
|
+
}, wl = ({
|
|
1461
1484
|
locale: e = {},
|
|
1462
1485
|
theme: a,
|
|
1463
1486
|
children: r,
|
|
1464
1487
|
className: s
|
|
1465
|
-
}) => (
|
|
1488
|
+
}) => (Zt(() => {
|
|
1466
1489
|
if (a) {
|
|
1467
1490
|
const i = document.documentElement;
|
|
1468
1491
|
Object.entries(a).forEach(([o, l]) => {
|
|
@@ -1474,28 +1497,28 @@ const es = X((e, a) => {
|
|
|
1474
1497
|
"div",
|
|
1475
1498
|
{
|
|
1476
1499
|
"data-testid": "ConfigProvider-component",
|
|
1477
|
-
className: k(vs, xs, ws, s)
|
|
1500
|
+
className: k(vs, xs, ws, Cs, Ss, Gs, oe, s)
|
|
1478
1501
|
}
|
|
1479
1502
|
),
|
|
1480
|
-
/* @__PURE__ */ n.jsx(
|
|
1481
|
-
] })),
|
|
1482
|
-
tag:
|
|
1483
|
-
label:
|
|
1484
|
-
iconWrapper:
|
|
1485
|
-
medium:
|
|
1486
|
-
large:
|
|
1487
|
-
disabled:
|
|
1488
|
-
neutral:
|
|
1489
|
-
positive:
|
|
1490
|
-
negative:
|
|
1491
|
-
warning:
|
|
1492
|
-
vivid:
|
|
1493
|
-
special:
|
|
1494
|
-
accent:
|
|
1495
|
-
blue:
|
|
1496
|
-
lovely:
|
|
1497
|
-
dreamy:
|
|
1498
|
-
},
|
|
1503
|
+
/* @__PURE__ */ n.jsx(Xt.Provider, { value: { locale: e }, children: r })
|
|
1504
|
+
] })), Cl = {}, Zs = "_tag_1llsi_1", Ys = "_label_1llsi_16", Js = "_iconWrapper_1llsi_20", Ks = "_medium_1llsi_27", Xs = "_large_1llsi_33", Qs = "_disabled_1llsi_43", en = "_neutral_1llsi_47", tn = "_positive_1llsi_53", rn = "_negative_1llsi_59", an = "_warning_1llsi_65", sn = "_vivid_1llsi_71", nn = "_special_1llsi_77", on = "_accent_1llsi_84", ln = "_blue_1llsi_90", cn = "_lovely_1llsi_96", dn = "_dreamy_1llsi_102", $e = {
|
|
1505
|
+
tag: Zs,
|
|
1506
|
+
label: Ys,
|
|
1507
|
+
iconWrapper: Js,
|
|
1508
|
+
medium: Ks,
|
|
1509
|
+
large: Xs,
|
|
1510
|
+
disabled: Qs,
|
|
1511
|
+
neutral: en,
|
|
1512
|
+
positive: tn,
|
|
1513
|
+
negative: rn,
|
|
1514
|
+
warning: an,
|
|
1515
|
+
vivid: sn,
|
|
1516
|
+
special: nn,
|
|
1517
|
+
accent: on,
|
|
1518
|
+
blue: ln,
|
|
1519
|
+
lovely: cn,
|
|
1520
|
+
dreamy: dn
|
|
1521
|
+
}, Sl = X((e, a) => {
|
|
1499
1522
|
const {
|
|
1500
1523
|
className: r,
|
|
1501
1524
|
children: s,
|
|
@@ -1504,45 +1527,47 @@ const es = X((e, a) => {
|
|
|
1504
1527
|
disabled: l = !1,
|
|
1505
1528
|
showLabel: d = !!s,
|
|
1506
1529
|
slotStart: c,
|
|
1507
|
-
slotEnd:
|
|
1508
|
-
slotStartWrapperProps:
|
|
1509
|
-
slotEndWrapperProps:
|
|
1510
|
-
"data-testid":
|
|
1511
|
-
|
|
1530
|
+
slotEnd: p,
|
|
1531
|
+
slotStartWrapperProps: f = {},
|
|
1532
|
+
slotEndWrapperProps: g = {},
|
|
1533
|
+
"data-testid": m,
|
|
1534
|
+
...h
|
|
1535
|
+
} = e, { className: y, ...S } = f, { className: v, ...x } = g;
|
|
1512
1536
|
return /* @__PURE__ */ n.jsxs(
|
|
1513
1537
|
"div",
|
|
1514
1538
|
{
|
|
1515
1539
|
className: k(
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1540
|
+
$e.tag,
|
|
1541
|
+
$e[o],
|
|
1542
|
+
$e[i],
|
|
1519
1543
|
{
|
|
1520
|
-
[
|
|
1521
|
-
[
|
|
1522
|
-
[
|
|
1544
|
+
[$e.disabled]: l,
|
|
1545
|
+
[oe["typography-label-3-regular"]]: o === "medium",
|
|
1546
|
+
[oe["typography-subtitle-1-semibold"]]: o === "large"
|
|
1523
1547
|
},
|
|
1524
1548
|
r
|
|
1525
1549
|
),
|
|
1526
|
-
"data-testid":
|
|
1550
|
+
"data-testid": m || "tag-component",
|
|
1527
1551
|
ref: a,
|
|
1552
|
+
...h,
|
|
1528
1553
|
children: [
|
|
1529
|
-
c && /* @__PURE__ */ n.jsx("span", { className: k([
|
|
1530
|
-
d && /* @__PURE__ */ n.jsx("span", { className: k([
|
|
1531
|
-
|
|
1554
|
+
c && /* @__PURE__ */ n.jsx("span", { className: k([$e.iconWrapper, y]), ...S, children: c }),
|
|
1555
|
+
d && /* @__PURE__ */ n.jsx("span", { className: k([$e.label]), children: s }),
|
|
1556
|
+
p && /* @__PURE__ */ n.jsx("span", { className: k([$e.iconWrapper, v]), ...x, children: p })
|
|
1532
1557
|
]
|
|
1533
1558
|
}
|
|
1534
1559
|
);
|
|
1535
|
-
}),
|
|
1536
|
-
checkbox:
|
|
1537
|
-
input:
|
|
1538
|
-
icon:
|
|
1539
|
-
container:
|
|
1540
|
-
error:
|
|
1541
|
-
checkboxWrapper:
|
|
1542
|
-
medium:
|
|
1543
|
-
large:
|
|
1544
|
-
label:
|
|
1545
|
-
},
|
|
1560
|
+
}), un = "_checkbox_17txq_43", _n = "_input_17txq_64", pn = "_icon_17txq_72", fn = "_container_17txq_92", gn = "_error_17txq_143", hn = "_checkboxWrapper_17txq_156", bn = "_medium_17txq_211", mn = "_large_17txq_216", yn = "_label_17txq_258", xe = {
|
|
1561
|
+
checkbox: un,
|
|
1562
|
+
input: _n,
|
|
1563
|
+
icon: pn,
|
|
1564
|
+
container: fn,
|
|
1565
|
+
error: gn,
|
|
1566
|
+
checkboxWrapper: hn,
|
|
1567
|
+
medium: bn,
|
|
1568
|
+
large: mn,
|
|
1569
|
+
label: yn
|
|
1570
|
+
}, vn = ({
|
|
1546
1571
|
width: e = 12,
|
|
1547
1572
|
height: a = 9,
|
|
1548
1573
|
className: r = "",
|
|
@@ -1568,7 +1593,7 @@ const es = X((e, a) => {
|
|
|
1568
1593
|
}
|
|
1569
1594
|
)
|
|
1570
1595
|
}
|
|
1571
|
-
),
|
|
1596
|
+
), xn = ({
|
|
1572
1597
|
width: e = 12,
|
|
1573
1598
|
height: a = 2,
|
|
1574
1599
|
className: r = "",
|
|
@@ -1594,17 +1619,17 @@ const es = X((e, a) => {
|
|
|
1594
1619
|
}
|
|
1595
1620
|
)
|
|
1596
1621
|
}
|
|
1597
|
-
),
|
|
1622
|
+
), wn = {
|
|
1598
1623
|
medium: { width: 10.83, height: 7.5 },
|
|
1599
1624
|
large: { width: 13, height: 9 }
|
|
1600
|
-
},
|
|
1625
|
+
}, Cn = ({
|
|
1601
1626
|
size: e,
|
|
1602
1627
|
isChecked: a,
|
|
1603
1628
|
isDisabled: r,
|
|
1604
1629
|
indeterminate: s,
|
|
1605
1630
|
dataTestId: i
|
|
1606
1631
|
}) => {
|
|
1607
|
-
const { width: o, height: l } =
|
|
1632
|
+
const { width: o, height: l } = wn[e];
|
|
1608
1633
|
return /* @__PURE__ */ n.jsx(
|
|
1609
1634
|
"div",
|
|
1610
1635
|
{
|
|
@@ -1613,10 +1638,10 @@ const es = X((e, a) => {
|
|
|
1613
1638
|
"data-checked": a,
|
|
1614
1639
|
"data-disabled": r,
|
|
1615
1640
|
"data-indeterminate": s,
|
|
1616
|
-
children: s ? /* @__PURE__ */ n.jsx(
|
|
1641
|
+
children: s ? /* @__PURE__ */ n.jsx(xn, { width: o, height: l }) : /* @__PURE__ */ n.jsx(vn, { width: o, height: l })
|
|
1617
1642
|
}
|
|
1618
1643
|
);
|
|
1619
|
-
},
|
|
1644
|
+
}, Ll = X((e, a) => {
|
|
1620
1645
|
const {
|
|
1621
1646
|
name: r,
|
|
1622
1647
|
value: s,
|
|
@@ -1625,51 +1650,51 @@ const es = X((e, a) => {
|
|
|
1625
1650
|
loading: l = !1,
|
|
1626
1651
|
error: d,
|
|
1627
1652
|
disabled: c = !1,
|
|
1628
|
-
containerClassName:
|
|
1629
|
-
className:
|
|
1630
|
-
containerStyle:
|
|
1631
|
-
style:
|
|
1632
|
-
children:
|
|
1633
|
-
clickableLabel:
|
|
1653
|
+
containerClassName: p,
|
|
1654
|
+
className: f,
|
|
1655
|
+
containerStyle: g,
|
|
1656
|
+
style: m,
|
|
1657
|
+
children: h,
|
|
1658
|
+
clickableLabel: y = !0,
|
|
1634
1659
|
tabIndex: S,
|
|
1635
1660
|
onChange: v,
|
|
1636
1661
|
"data-testid": x = "checkbox"
|
|
1637
|
-
} = e, [_, w] =
|
|
1662
|
+
} = e, [_, w] = ce(!1), L = s ?? _, M = c || l, j = !!d, $ = L || o, R = k(xe.container, xe[i], p), D = k(
|
|
1638
1663
|
xe.checkbox,
|
|
1639
1664
|
xe[i],
|
|
1640
1665
|
{
|
|
1641
1666
|
[xe.error]: j
|
|
1642
1667
|
},
|
|
1643
|
-
|
|
1644
|
-
),
|
|
1645
|
-
|
|
1646
|
-
}, F = (
|
|
1647
|
-
if (
|
|
1648
|
-
|
|
1649
|
-
const B =
|
|
1668
|
+
f
|
|
1669
|
+
), P = (T) => {
|
|
1670
|
+
M || (w(T.target.checked), v == null || v(T.target.checked, T));
|
|
1671
|
+
}, F = (T) => {
|
|
1672
|
+
if (T.key === "Enter" && !M) {
|
|
1673
|
+
T.preventDefault();
|
|
1674
|
+
const B = !$;
|
|
1650
1675
|
w(B), v == null || v(B);
|
|
1651
1676
|
}
|
|
1652
|
-
}, O = (
|
|
1653
|
-
|
|
1654
|
-
}, C = (
|
|
1677
|
+
}, O = (T) => {
|
|
1678
|
+
y || T.preventDefault();
|
|
1679
|
+
}, C = (T) => T.stopPropagation();
|
|
1655
1680
|
return /* @__PURE__ */ n.jsxs(
|
|
1656
1681
|
"label",
|
|
1657
1682
|
{
|
|
1658
|
-
className:
|
|
1683
|
+
className: R,
|
|
1659
1684
|
htmlFor: r,
|
|
1660
|
-
style:
|
|
1685
|
+
style: g,
|
|
1661
1686
|
"data-testid": x,
|
|
1662
|
-
"data-clickable-label":
|
|
1687
|
+
"data-clickable-label": y,
|
|
1663
1688
|
children: [
|
|
1664
1689
|
/* @__PURE__ */ n.jsx("div", { className: xe.checkboxWrapper, children: /* @__PURE__ */ n.jsxs(
|
|
1665
1690
|
"div",
|
|
1666
1691
|
{
|
|
1667
1692
|
tabIndex: S || 0,
|
|
1668
1693
|
className: D,
|
|
1669
|
-
style:
|
|
1694
|
+
style: m,
|
|
1670
1695
|
onKeyDown: F,
|
|
1671
|
-
"aria-checked":
|
|
1672
|
-
"aria-disabled":
|
|
1696
|
+
"aria-checked": $,
|
|
1697
|
+
"aria-disabled": M,
|
|
1673
1698
|
"aria-invalid": j,
|
|
1674
1699
|
"aria-describedby": d ? `${r}-error` : void 0,
|
|
1675
1700
|
"data-testid": `${x}-label`,
|
|
@@ -1681,24 +1706,24 @@ const es = X((e, a) => {
|
|
|
1681
1706
|
type: "checkbox",
|
|
1682
1707
|
id: r,
|
|
1683
1708
|
name: r,
|
|
1684
|
-
checked:
|
|
1685
|
-
disabled:
|
|
1709
|
+
checked: $,
|
|
1710
|
+
disabled: M,
|
|
1686
1711
|
className: xe.input,
|
|
1687
|
-
onChange:
|
|
1712
|
+
onChange: P,
|
|
1688
1713
|
onClick: C,
|
|
1689
|
-
"aria-checked":
|
|
1714
|
+
"aria-checked": $,
|
|
1690
1715
|
"aria-invalid": j,
|
|
1691
1716
|
"aria-describedby": d ? `${r}-error` : void 0,
|
|
1692
1717
|
"data-testid": `${x}-input`
|
|
1693
1718
|
}
|
|
1694
1719
|
),
|
|
1695
1720
|
/* @__PURE__ */ n.jsx(
|
|
1696
|
-
|
|
1721
|
+
Cn,
|
|
1697
1722
|
{
|
|
1698
1723
|
name: r,
|
|
1699
1724
|
size: i,
|
|
1700
|
-
isChecked:
|
|
1701
|
-
isDisabled:
|
|
1725
|
+
isChecked: $,
|
|
1726
|
+
isDisabled: M,
|
|
1702
1727
|
indeterminate: o,
|
|
1703
1728
|
dataTestId: x
|
|
1704
1729
|
}
|
|
@@ -1706,38 +1731,38 @@ const es = X((e, a) => {
|
|
|
1706
1731
|
]
|
|
1707
1732
|
}
|
|
1708
1733
|
) }),
|
|
1709
|
-
|
|
1734
|
+
h && /* @__PURE__ */ n.jsx(
|
|
1710
1735
|
"span",
|
|
1711
1736
|
{
|
|
1712
1737
|
"data-testid": `${x}-label-text`,
|
|
1713
|
-
"data-clickable-label":
|
|
1738
|
+
"data-clickable-label": y,
|
|
1714
1739
|
className: xe.label,
|
|
1715
1740
|
onClick: O,
|
|
1716
|
-
children:
|
|
1741
|
+
children: h
|
|
1717
1742
|
}
|
|
1718
1743
|
)
|
|
1719
1744
|
]
|
|
1720
1745
|
}
|
|
1721
1746
|
);
|
|
1722
|
-
}),
|
|
1723
|
-
typography:
|
|
1724
|
-
disabled:
|
|
1725
|
-
primary:
|
|
1726
|
-
secondary:
|
|
1727
|
-
tertiary:
|
|
1728
|
-
accent:
|
|
1747
|
+
}), Sn = "_typography_zt7xg_1", Ln = "_disabled_zt7xg_8", En = "_primary_zt7xg_13", jn = "_secondary_zt7xg_18", kn = "_tertiary_zt7xg_23", $n = "_accent_zt7xg_28", Mn = "_positive_zt7xg_38", In = "_negative_zt7xg_48", Rn = "_warning_zt7xg_58", Tn = "_special_zt7xg_68", Nn = "_contrast_zt7xg_78", Pe = {
|
|
1748
|
+
typography: Sn,
|
|
1749
|
+
disabled: Ln,
|
|
1750
|
+
primary: En,
|
|
1751
|
+
secondary: jn,
|
|
1752
|
+
tertiary: kn,
|
|
1753
|
+
accent: $n,
|
|
1729
1754
|
"accent-secondary": "_accent-secondary_zt7xg_33",
|
|
1730
|
-
positive:
|
|
1755
|
+
positive: Mn,
|
|
1731
1756
|
"positive-secondary": "_positive-secondary_zt7xg_43",
|
|
1732
|
-
negative:
|
|
1757
|
+
negative: In,
|
|
1733
1758
|
"negative-secondary": "_negative-secondary_zt7xg_53",
|
|
1734
|
-
warning:
|
|
1759
|
+
warning: Rn,
|
|
1735
1760
|
"warning-secondary": "_warning-secondary_zt7xg_63",
|
|
1736
|
-
special:
|
|
1761
|
+
special: Tn,
|
|
1737
1762
|
"special-secondary": "_special-secondary_zt7xg_73",
|
|
1738
|
-
contrast:
|
|
1763
|
+
contrast: Nn,
|
|
1739
1764
|
"contrast-secondary": "_contrast-secondary_zt7xg_83"
|
|
1740
|
-
},
|
|
1765
|
+
}, An = {
|
|
1741
1766
|
1: "h1",
|
|
1742
1767
|
2: "h2",
|
|
1743
1768
|
3: "h3",
|
|
@@ -1753,19 +1778,19 @@ const es = X((e, a) => {
|
|
|
1753
1778
|
as: l,
|
|
1754
1779
|
fontWeight: d = "semibold",
|
|
1755
1780
|
disabled: c = !1,
|
|
1756
|
-
typographyStyle:
|
|
1757
|
-
...
|
|
1758
|
-
},
|
|
1759
|
-
const
|
|
1781
|
+
typographyStyle: p = "primary",
|
|
1782
|
+
...f
|
|
1783
|
+
}, g) => {
|
|
1784
|
+
const m = l || An[r], h = k(
|
|
1760
1785
|
Pe.typography,
|
|
1761
|
-
|
|
1762
|
-
Pe[
|
|
1786
|
+
oe[`typography-${e}-${r}-${d}`],
|
|
1787
|
+
Pe[p],
|
|
1763
1788
|
{
|
|
1764
1789
|
[Pe.disabled]: c
|
|
1765
1790
|
},
|
|
1766
1791
|
i
|
|
1767
1792
|
);
|
|
1768
|
-
return s ? /* @__PURE__ */ n.jsx(
|
|
1793
|
+
return s ? /* @__PURE__ */ n.jsx(m, { ref: g, className: h, "data-testid": o, ...f, children: s }) : null;
|
|
1769
1794
|
}
|
|
1770
1795
|
);
|
|
1771
1796
|
return a.displayName = `Typography.${e === "title" ? "Title" : "Subtitle"}`, a;
|
|
@@ -1779,68 +1804,68 @@ const es = X((e, a) => {
|
|
|
1779
1804
|
as: l = "p",
|
|
1780
1805
|
fontWeight: d = "regular",
|
|
1781
1806
|
disabled: c = !1,
|
|
1782
|
-
typographyStyle:
|
|
1783
|
-
...
|
|
1784
|
-
},
|
|
1785
|
-
const
|
|
1807
|
+
typographyStyle: p = "primary",
|
|
1808
|
+
...f
|
|
1809
|
+
}, g) => {
|
|
1810
|
+
const m = l, h = k(
|
|
1786
1811
|
Pe.typography,
|
|
1787
|
-
|
|
1788
|
-
Pe[
|
|
1812
|
+
oe[`typography-${e}-${r}-${d}`],
|
|
1813
|
+
Pe[p],
|
|
1789
1814
|
{
|
|
1790
1815
|
[Pe.disabled]: c
|
|
1791
1816
|
},
|
|
1792
1817
|
i
|
|
1793
1818
|
);
|
|
1794
1819
|
return s ? /* @__PURE__ */ n.jsx(
|
|
1795
|
-
|
|
1820
|
+
m,
|
|
1796
1821
|
{
|
|
1797
|
-
ref:
|
|
1798
|
-
className:
|
|
1822
|
+
ref: g,
|
|
1823
|
+
className: h,
|
|
1799
1824
|
"data-testid": o,
|
|
1800
|
-
...
|
|
1825
|
+
...f,
|
|
1801
1826
|
children: s
|
|
1802
1827
|
}
|
|
1803
1828
|
) : null;
|
|
1804
1829
|
}
|
|
1805
1830
|
);
|
|
1806
1831
|
return a.displayName = `Typography.${e.charAt(0).toUpperCase() + e.slice(1)}`, a;
|
|
1807
|
-
},
|
|
1832
|
+
}, qt = {
|
|
1808
1833
|
Title: Ot("title"),
|
|
1809
1834
|
Subtitle: Ot("subtitle"),
|
|
1810
1835
|
Label: Pt("label"),
|
|
1811
1836
|
Paragraph: Pt("paragraph")
|
|
1812
|
-
},
|
|
1813
|
-
inputBase:
|
|
1814
|
-
wrapper:
|
|
1837
|
+
}, Dn = "_inputBase_1q54n_82", On = "_wrapper_1q54n_92", Pn = "_gripHandle_1q54n_172", qn = "_error_1q54n_238", Bn = "_tabFocused_1q54n_245", Un = "_disabled_1q54n_270", zn = "_loading_1q54n_277", Fn = "_label_1q54n_287", Wn = "_small_1q54n_301", Vn = "_large_1q54n_308", Hn = "_leftSection_1q54n_315", Gn = "_rightSection_1q54n_327", Zn = "_helper_1q54n_365", Yn = "_floatingLabel_1q54n_393", Jn = "_focused_1q54n_461", Kn = "_filled_1q54n_462", Xn = "_medium_1q54n_503", Qn = "_characterLimit_1q54n_545", eo = "_input_1q54n_82", to = "_textarea_1q54n_110", ro = "_truncate_1q54n_678", ao = "_hint_1q54n_765", A = {
|
|
1838
|
+
inputBase: Dn,
|
|
1839
|
+
wrapper: On,
|
|
1815
1840
|
"textarea-wrapper": "_textarea-wrapper_1q54n_110",
|
|
1816
|
-
gripHandle:
|
|
1817
|
-
error:
|
|
1818
|
-
tabFocused:
|
|
1819
|
-
disabled:
|
|
1820
|
-
loading:
|
|
1821
|
-
label:
|
|
1822
|
-
small:
|
|
1823
|
-
large:
|
|
1824
|
-
leftSection:
|
|
1825
|
-
rightSection:
|
|
1826
|
-
helper:
|
|
1827
|
-
floatingLabel:
|
|
1828
|
-
focused:
|
|
1829
|
-
filled:
|
|
1830
|
-
medium:
|
|
1831
|
-
characterLimit:
|
|
1832
|
-
input:
|
|
1833
|
-
textarea:
|
|
1841
|
+
gripHandle: Pn,
|
|
1842
|
+
error: qn,
|
|
1843
|
+
tabFocused: Bn,
|
|
1844
|
+
disabled: Un,
|
|
1845
|
+
loading: zn,
|
|
1846
|
+
label: Fn,
|
|
1847
|
+
small: Wn,
|
|
1848
|
+
large: Vn,
|
|
1849
|
+
leftSection: Hn,
|
|
1850
|
+
rightSection: Gn,
|
|
1851
|
+
helper: Zn,
|
|
1852
|
+
floatingLabel: Yn,
|
|
1853
|
+
focused: Jn,
|
|
1854
|
+
filled: Kn,
|
|
1855
|
+
medium: Xn,
|
|
1856
|
+
characterLimit: Qn,
|
|
1857
|
+
input: eo,
|
|
1858
|
+
textarea: to,
|
|
1834
1859
|
"size-small": "_size-small_1q54n_627",
|
|
1835
1860
|
"size-medium": "_size-medium_1q54n_633",
|
|
1836
1861
|
"size-large": "_size-large_1q54n_639",
|
|
1837
1862
|
"with-floating-label": "_with-floating-label_1q54n_646",
|
|
1838
|
-
truncate:
|
|
1839
|
-
hint:
|
|
1863
|
+
truncate: ro,
|
|
1864
|
+
hint: ao,
|
|
1840
1865
|
"has-hint": "_has-hint_1q54n_786",
|
|
1841
1866
|
"has-suffix": "_has-suffix_1q54n_792",
|
|
1842
1867
|
"has-limit": "_has-limit_1q54n_798"
|
|
1843
|
-
},
|
|
1868
|
+
}, so = ({
|
|
1844
1869
|
width: e = 8,
|
|
1845
1870
|
height: a = 8,
|
|
1846
1871
|
className: r,
|
|
@@ -1864,7 +1889,7 @@ const es = X((e, a) => {
|
|
|
1864
1889
|
}
|
|
1865
1890
|
)
|
|
1866
1891
|
}
|
|
1867
|
-
),
|
|
1892
|
+
), Qt = ({
|
|
1868
1893
|
className: e = "",
|
|
1869
1894
|
style: a,
|
|
1870
1895
|
size: r = "md",
|
|
@@ -1907,9 +1932,9 @@ const es = X((e, a) => {
|
|
|
1907
1932
|
)
|
|
1908
1933
|
}
|
|
1909
1934
|
);
|
|
1910
|
-
},
|
|
1911
|
-
const r =
|
|
1912
|
-
return
|
|
1935
|
+
}, no = (e, a) => {
|
|
1936
|
+
const r = qe(null), s = qe(null);
|
|
1937
|
+
return de(() => {
|
|
1913
1938
|
const i = a === "textarea" ? r.current : s.current;
|
|
1914
1939
|
i && i.value !== e && (i.value = e || "");
|
|
1915
1940
|
}, [e, a]), {
|
|
@@ -1917,35 +1942,35 @@ const es = X((e, a) => {
|
|
|
1917
1942
|
inputRef: s,
|
|
1918
1943
|
currentRef: a === "textarea" ? r : s
|
|
1919
1944
|
};
|
|
1920
|
-
},
|
|
1945
|
+
}, oo = (e, a, r) => {
|
|
1921
1946
|
const s = () => {
|
|
1922
1947
|
if (!r.current || a !== "hug") return;
|
|
1923
1948
|
const i = r.current.scrollTop;
|
|
1924
1949
|
if (r.current.style.setProperty("height", "auto", "important"), !e) return;
|
|
1925
1950
|
const o = r.current.scrollHeight + "px";
|
|
1926
1951
|
r.current.style.setProperty("height", o, "important"), r.current.scrollTop = i;
|
|
1927
|
-
const l = r.current.closest(`.${
|
|
1952
|
+
const l = r.current.closest(`.${A.wrapper}`);
|
|
1928
1953
|
l && (l.setAttribute("data-resize", "hug"), l.setAttribute("data-show-grip", "false"));
|
|
1929
1954
|
};
|
|
1930
|
-
return
|
|
1955
|
+
return de(s, [e, a]), de(() => {
|
|
1931
1956
|
a === "hug" && r.current && s();
|
|
1932
1957
|
}, []), { resizeTextArea: s };
|
|
1933
|
-
},
|
|
1958
|
+
}, io = (e, a, r, s) => ({ handleGripMouseDown: Le(
|
|
1934
1959
|
(o) => {
|
|
1935
1960
|
if (!e || a || r || !(s === "fixed" || !s)) return;
|
|
1936
1961
|
o.preventDefault(), o.stopPropagation();
|
|
1937
|
-
const l = o.currentTarget.closest(`.${
|
|
1962
|
+
const l = o.currentTarget.closest(`.${A.wrapper}`);
|
|
1938
1963
|
if (!l) return;
|
|
1939
|
-
const d = o.clientY, c = l.clientHeight,
|
|
1940
|
-
const
|
|
1941
|
-
l.style.height = `${
|
|
1942
|
-
},
|
|
1943
|
-
document.removeEventListener("mousemove",
|
|
1964
|
+
const d = o.clientY, c = l.clientHeight, p = (g) => {
|
|
1965
|
+
const m = g.clientY - d, h = Math.min(100, c), y = Math.max(h, c + m);
|
|
1966
|
+
l.style.height = `${y}px`;
|
|
1967
|
+
}, f = () => {
|
|
1968
|
+
document.removeEventListener("mousemove", p), document.removeEventListener("mouseup", f);
|
|
1944
1969
|
};
|
|
1945
|
-
document.addEventListener("mousemove",
|
|
1970
|
+
document.addEventListener("mousemove", p), document.addEventListener("mouseup", f);
|
|
1946
1971
|
},
|
|
1947
1972
|
[e, a, r, s]
|
|
1948
|
-
) }),
|
|
1973
|
+
) }), Bt = 30, lo = X(
|
|
1949
1974
|
({
|
|
1950
1975
|
component: e = "input",
|
|
1951
1976
|
size: a = "medium",
|
|
@@ -1956,21 +1981,21 @@ const es = X((e, a) => {
|
|
|
1956
1981
|
onFocus: l,
|
|
1957
1982
|
onBlur: d,
|
|
1958
1983
|
onChange: c,
|
|
1959
|
-
onKeyDown:
|
|
1960
|
-
onKeyUp:
|
|
1961
|
-
maxLength:
|
|
1962
|
-
className:
|
|
1963
|
-
style:
|
|
1964
|
-
truncate:
|
|
1984
|
+
onKeyDown: p,
|
|
1985
|
+
onKeyUp: f,
|
|
1986
|
+
maxLength: g,
|
|
1987
|
+
className: m,
|
|
1988
|
+
style: h,
|
|
1989
|
+
truncate: y = !1,
|
|
1965
1990
|
shouldShowFloatingLabelClass: S = !1,
|
|
1966
1991
|
"aria-invalid": v,
|
|
1967
1992
|
"aria-errormessage": x,
|
|
1968
1993
|
id: _,
|
|
1969
1994
|
resize: w,
|
|
1970
1995
|
...L
|
|
1971
|
-
},
|
|
1972
|
-
const { textareaRef: j, inputRef:
|
|
1973
|
-
if (
|
|
1996
|
+
}, M) => {
|
|
1997
|
+
const { textareaRef: j, inputRef: $, currentRef: R } = no(r, e);
|
|
1998
|
+
if (oo(r, w, j), kr(M, () => R.current, [R]), e === "textarea")
|
|
1974
1999
|
return /* @__PURE__ */ n.jsx(
|
|
1975
2000
|
"textarea",
|
|
1976
2001
|
{
|
|
@@ -1982,16 +2007,16 @@ const es = X((e, a) => {
|
|
|
1982
2007
|
onFocus: l,
|
|
1983
2008
|
onBlur: d,
|
|
1984
2009
|
onChange: c,
|
|
1985
|
-
onKeyDown:
|
|
1986
|
-
onKeyUp:
|
|
1987
|
-
maxLength:
|
|
2010
|
+
onKeyDown: p,
|
|
2011
|
+
onKeyUp: f,
|
|
2012
|
+
maxLength: g,
|
|
1988
2013
|
className: k(
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
S &&
|
|
1992
|
-
|
|
2014
|
+
A.textarea,
|
|
2015
|
+
A[`size-${a}`],
|
|
2016
|
+
S && A["with-floating-label"],
|
|
2017
|
+
m
|
|
1993
2018
|
),
|
|
1994
|
-
style:
|
|
2019
|
+
style: h,
|
|
1995
2020
|
"aria-invalid": v,
|
|
1996
2021
|
"aria-errormessage": x,
|
|
1997
2022
|
"aria-describedby": x ? `${_}-error` : void 0,
|
|
@@ -2004,7 +2029,7 @@ const es = X((e, a) => {
|
|
|
2004
2029
|
return /* @__PURE__ */ n.jsx(
|
|
2005
2030
|
"input",
|
|
2006
2031
|
{
|
|
2007
|
-
ref:
|
|
2032
|
+
ref: $,
|
|
2008
2033
|
id: _,
|
|
2009
2034
|
value: r,
|
|
2010
2035
|
placeholder: s,
|
|
@@ -2012,17 +2037,17 @@ const es = X((e, a) => {
|
|
|
2012
2037
|
onFocus: l,
|
|
2013
2038
|
onBlur: d,
|
|
2014
2039
|
onChange: c,
|
|
2015
|
-
onKeyDown:
|
|
2016
|
-
onKeyUp:
|
|
2017
|
-
maxLength:
|
|
2040
|
+
onKeyDown: p,
|
|
2041
|
+
onKeyUp: f,
|
|
2042
|
+
maxLength: g,
|
|
2018
2043
|
className: k(
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
S &&
|
|
2022
|
-
|
|
2023
|
-
|
|
2044
|
+
A.input,
|
|
2045
|
+
A[`size-${a}`],
|
|
2046
|
+
S && A["with-floating-label"],
|
|
2047
|
+
y && A.truncate,
|
|
2048
|
+
m
|
|
2024
2049
|
),
|
|
2025
|
-
style:
|
|
2050
|
+
style: h,
|
|
2026
2051
|
"aria-invalid": v,
|
|
2027
2052
|
"aria-errormessage": x,
|
|
2028
2053
|
"aria-describedby": x ? `${_}-error` : void 0,
|
|
@@ -2035,7 +2060,7 @@ const es = X((e, a) => {
|
|
|
2035
2060
|
`[Input] Недопустимое значение prop 'component': "${String(e)}". Допустимые значения: 'input', 'textarea'`
|
|
2036
2061
|
), null;
|
|
2037
2062
|
}
|
|
2038
|
-
),
|
|
2063
|
+
), er = X(
|
|
2039
2064
|
({
|
|
2040
2065
|
children: e,
|
|
2041
2066
|
size: a = "medium",
|
|
@@ -2046,45 +2071,45 @@ const es = X((e, a) => {
|
|
|
2046
2071
|
wrapperProps: l,
|
|
2047
2072
|
wrapperStyles: d,
|
|
2048
2073
|
floatingLabelStyles: c,
|
|
2049
|
-
prefixStyles:
|
|
2050
|
-
suffixStyles:
|
|
2051
|
-
labelProps:
|
|
2052
|
-
helperProps:
|
|
2053
|
-
showLimit:
|
|
2054
|
-
maxLength:
|
|
2074
|
+
prefixStyles: p,
|
|
2075
|
+
suffixStyles: f,
|
|
2076
|
+
labelProps: g,
|
|
2077
|
+
helperProps: m,
|
|
2078
|
+
showLimit: h = !1,
|
|
2079
|
+
maxLength: y,
|
|
2055
2080
|
hint: S,
|
|
2056
2081
|
showHint: v = !1,
|
|
2057
2082
|
showHintOnEmpty: x = !1,
|
|
2058
2083
|
prefix: _,
|
|
2059
2084
|
suffix: w,
|
|
2060
2085
|
onSuffixClick: L,
|
|
2061
|
-
placeholder:
|
|
2086
|
+
placeholder: M,
|
|
2062
2087
|
showLabel: j = !0,
|
|
2063
|
-
labelClassName:
|
|
2064
|
-
hasValue:
|
|
2088
|
+
labelClassName: $,
|
|
2089
|
+
hasValue: R = !1,
|
|
2065
2090
|
helper: D,
|
|
2066
|
-
id:
|
|
2091
|
+
id: P,
|
|
2067
2092
|
value: F = "",
|
|
2068
2093
|
resize: O,
|
|
2069
2094
|
showGrip: C = !1,
|
|
2070
|
-
...
|
|
2095
|
+
...T
|
|
2071
2096
|
}, B) => {
|
|
2072
|
-
const
|
|
2073
|
-
|
|
2074
|
-
r &&
|
|
2075
|
-
s &&
|
|
2076
|
-
i &&
|
|
2077
|
-
Q &&
|
|
2078
|
-
w &&
|
|
2079
|
-
|
|
2097
|
+
const z = pt(), V = P || z, Q = v && S && (R || x), ie = S && S.length > Bt ? S.substring(0, Bt) + "..." : S, Z = k(
|
|
2098
|
+
A.wrapper,
|
|
2099
|
+
r && A.error,
|
|
2100
|
+
s && A.disabled,
|
|
2101
|
+
i && A.loading,
|
|
2102
|
+
Q && A["has-hint"],
|
|
2103
|
+
w && A["has-suffix"],
|
|
2104
|
+
h && A["has-limit"],
|
|
2080
2105
|
o
|
|
2081
2106
|
), ue = k(
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
), { handleGripMouseDown: ee } =
|
|
2087
|
-
return /* @__PURE__ */ n.jsxs("div", { ref: B, className:
|
|
2107
|
+
A.floatingLabel,
|
|
2108
|
+
A[a],
|
|
2109
|
+
R && A.filled,
|
|
2110
|
+
$
|
|
2111
|
+
), { handleGripMouseDown: ee } = io(C, s, i, O);
|
|
2112
|
+
return /* @__PURE__ */ n.jsxs("div", { ref: B, className: A.inputBase, "data-testid": "input-base-wrapper", ...T, children: [
|
|
2088
2113
|
/* @__PURE__ */ n.jsxs(
|
|
2089
2114
|
"div",
|
|
2090
2115
|
{
|
|
@@ -2094,51 +2119,51 @@ const es = X((e, a) => {
|
|
|
2094
2119
|
"data-show-grip": C ? "true" : "false",
|
|
2095
2120
|
...l,
|
|
2096
2121
|
children: [
|
|
2097
|
-
_ && /* @__PURE__ */ n.jsx("label", { htmlFor: V, className:
|
|
2122
|
+
_ && /* @__PURE__ */ n.jsx("label", { htmlFor: V, className: A.leftSection, style: p, children: _ }),
|
|
2098
2123
|
w && /* @__PURE__ */ n.jsx(
|
|
2099
2124
|
"label",
|
|
2100
2125
|
{
|
|
2101
2126
|
htmlFor: V,
|
|
2102
|
-
className:
|
|
2103
|
-
style:
|
|
2127
|
+
className: A.rightSection,
|
|
2128
|
+
style: f,
|
|
2104
2129
|
onClick: L,
|
|
2105
2130
|
children: w
|
|
2106
2131
|
}
|
|
2107
2132
|
),
|
|
2108
|
-
|
|
2133
|
+
M && j && /* @__PURE__ */ n.jsx(
|
|
2109
2134
|
"label",
|
|
2110
2135
|
{
|
|
2111
2136
|
htmlFor: V,
|
|
2112
2137
|
className: ue,
|
|
2113
2138
|
style: c,
|
|
2114
|
-
...
|
|
2115
|
-
children:
|
|
2139
|
+
...g,
|
|
2140
|
+
children: M
|
|
2116
2141
|
}
|
|
2117
2142
|
),
|
|
2118
2143
|
e,
|
|
2119
|
-
C && !
|
|
2144
|
+
C && !h && (O === "fixed" || !O) && /* @__PURE__ */ n.jsx(
|
|
2120
2145
|
"div",
|
|
2121
2146
|
{
|
|
2122
|
-
className:
|
|
2147
|
+
className: A.gripHandle,
|
|
2123
2148
|
onMouseDown: ee,
|
|
2124
2149
|
role: "button",
|
|
2125
2150
|
tabIndex: -1,
|
|
2126
2151
|
"aria-label": "Изменить размер",
|
|
2127
|
-
children: /* @__PURE__ */ n.jsx(
|
|
2152
|
+
children: /* @__PURE__ */ n.jsx(so, {})
|
|
2128
2153
|
}
|
|
2129
2154
|
),
|
|
2130
2155
|
Q && /* @__PURE__ */ n.jsx(
|
|
2131
2156
|
"div",
|
|
2132
2157
|
{
|
|
2133
|
-
className: k(
|
|
2158
|
+
className: k(A.hint, R && A.truncate),
|
|
2134
2159
|
"data-disabled": s || i,
|
|
2135
2160
|
children: ie
|
|
2136
2161
|
}
|
|
2137
2162
|
),
|
|
2138
|
-
|
|
2163
|
+
h && y && /* @__PURE__ */ n.jsxs("div", { className: A.characterLimit, children: [
|
|
2139
2164
|
(F || "").length,
|
|
2140
2165
|
" из ",
|
|
2141
|
-
|
|
2166
|
+
y
|
|
2142
2167
|
] })
|
|
2143
2168
|
]
|
|
2144
2169
|
}
|
|
@@ -2147,11 +2172,11 @@ const es = X((e, a) => {
|
|
|
2147
2172
|
"div",
|
|
2148
2173
|
{
|
|
2149
2174
|
className: k(
|
|
2150
|
-
|
|
2151
|
-
r &&
|
|
2152
|
-
(s || i) &&
|
|
2175
|
+
A.helper,
|
|
2176
|
+
r && A.error,
|
|
2177
|
+
(s || i) && A.disabled
|
|
2153
2178
|
),
|
|
2154
|
-
...
|
|
2179
|
+
...m,
|
|
2155
2180
|
id: r ? `${V}-error` : void 0,
|
|
2156
2181
|
children: D
|
|
2157
2182
|
}
|
|
@@ -2159,10 +2184,10 @@ const es = X((e, a) => {
|
|
|
2159
2184
|
] });
|
|
2160
2185
|
}
|
|
2161
2186
|
);
|
|
2162
|
-
|
|
2163
|
-
const
|
|
2164
|
-
Wrapper:
|
|
2165
|
-
}),
|
|
2187
|
+
er.displayName = "InputWrapperComponent";
|
|
2188
|
+
const Ut = Object.assign(lo, {
|
|
2189
|
+
Wrapper: er
|
|
2190
|
+
}), tr = X(
|
|
2166
2191
|
({
|
|
2167
2192
|
component: e = "input",
|
|
2168
2193
|
size: a = "medium",
|
|
@@ -2173,50 +2198,50 @@ const zt = Object.assign(On, {
|
|
|
2173
2198
|
placeholder: l,
|
|
2174
2199
|
showLabel: d = !0,
|
|
2175
2200
|
labelClassName: c,
|
|
2176
|
-
helper:
|
|
2177
|
-
prefix:
|
|
2178
|
-
suffix:
|
|
2179
|
-
id:
|
|
2180
|
-
onFocus:
|
|
2181
|
-
onBlur:
|
|
2201
|
+
helper: p,
|
|
2202
|
+
prefix: f,
|
|
2203
|
+
suffix: g,
|
|
2204
|
+
id: m,
|
|
2205
|
+
onFocus: h,
|
|
2206
|
+
onBlur: y,
|
|
2182
2207
|
onKeyDown: S,
|
|
2183
2208
|
onSuffixClick: v,
|
|
2184
2209
|
onChange: x,
|
|
2185
2210
|
value: _ = "",
|
|
2186
2211
|
wrapperProps: w,
|
|
2187
2212
|
wrapperStyles: L,
|
|
2188
|
-
floatingLabelStyles:
|
|
2213
|
+
floatingLabelStyles: M,
|
|
2189
2214
|
prefixStyles: j,
|
|
2190
|
-
suffixStyles:
|
|
2191
|
-
textareaStyles:
|
|
2215
|
+
suffixStyles: $,
|
|
2216
|
+
textareaStyles: R,
|
|
2192
2217
|
labelProps: D,
|
|
2193
|
-
helperProps:
|
|
2218
|
+
helperProps: P,
|
|
2194
2219
|
showLimit: F = !1,
|
|
2195
2220
|
maxLength: O,
|
|
2196
2221
|
inputProps: C,
|
|
2197
|
-
hint:
|
|
2222
|
+
hint: T,
|
|
2198
2223
|
showHint: B = !1,
|
|
2199
|
-
showHintOnEmpty:
|
|
2224
|
+
showHintOnEmpty: z = !1,
|
|
2200
2225
|
truncate: V = !1,
|
|
2201
2226
|
resize: Q,
|
|
2202
2227
|
showGrip: ie = !1,
|
|
2203
2228
|
...Z
|
|
2204
2229
|
}, ue) => {
|
|
2205
|
-
const ee = pt(), Ce =
|
|
2230
|
+
const ee = pt(), Ce = m || ee, [Be, me] = ce(_), Me = _ !== void 0 ? _ : Be, Ie = (Me || "").length > 0, je = Me || "", Re = d && (a === "large" || e === "textarea") && !f, Xe = Le(
|
|
2206
2231
|
(Y) => {
|
|
2207
2232
|
var J;
|
|
2208
|
-
i || o || (
|
|
2233
|
+
i || o || (h == null || h(), (J = C == null ? void 0 : C.onFocus) == null || J.call(
|
|
2209
2234
|
C,
|
|
2210
2235
|
Y
|
|
2211
2236
|
));
|
|
2212
2237
|
},
|
|
2213
|
-
[
|
|
2214
|
-
), Ve =
|
|
2238
|
+
[h, C, i, o]
|
|
2239
|
+
), Ve = Le(
|
|
2215
2240
|
(Y) => {
|
|
2216
2241
|
var J;
|
|
2217
2242
|
if (Y.key === "Tab") {
|
|
2218
|
-
const
|
|
2219
|
-
|
|
2243
|
+
const he = Y.target.closest(`.${A.wrapper}`);
|
|
2244
|
+
he && he.classList.add(A.tabFocused);
|
|
2220
2245
|
}
|
|
2221
2246
|
(J = C == null ? void 0 : C.onKeyUp) == null || J.call(
|
|
2222
2247
|
C,
|
|
@@ -2224,70 +2249,70 @@ const zt = Object.assign(On, {
|
|
|
2224
2249
|
);
|
|
2225
2250
|
},
|
|
2226
2251
|
[C]
|
|
2227
|
-
), Qe =
|
|
2252
|
+
), Qe = Le(
|
|
2228
2253
|
(Y) => {
|
|
2229
|
-
var
|
|
2230
|
-
const J = Y.target.closest(`.${
|
|
2231
|
-
J && J.classList.remove(
|
|
2254
|
+
var he;
|
|
2255
|
+
const J = Y.target.closest(`.${A.wrapper}`);
|
|
2256
|
+
J && J.classList.remove(A.tabFocused), y == null || y(), (he = C == null ? void 0 : C.onBlur) == null || he.call(
|
|
2232
2257
|
C,
|
|
2233
2258
|
Y
|
|
2234
2259
|
);
|
|
2235
2260
|
},
|
|
2236
|
-
[
|
|
2237
|
-
), et =
|
|
2261
|
+
[y, C]
|
|
2262
|
+
), et = Le(
|
|
2238
2263
|
(Y) => {
|
|
2239
|
-
var
|
|
2264
|
+
var he;
|
|
2240
2265
|
if (i || o) return;
|
|
2241
2266
|
const J = Y.target.value;
|
|
2242
|
-
me(J), x == null || x(J, Y), (
|
|
2267
|
+
me(J), x == null || x(J, Y), (he = C == null ? void 0 : C.onChange) == null || he.call(
|
|
2243
2268
|
C,
|
|
2244
2269
|
Y
|
|
2245
2270
|
);
|
|
2246
2271
|
},
|
|
2247
2272
|
[x, C, i, o]
|
|
2248
2273
|
);
|
|
2249
|
-
return
|
|
2274
|
+
return de(() => {
|
|
2250
2275
|
me(_ || "");
|
|
2251
2276
|
}, [_]), /* @__PURE__ */ n.jsx(
|
|
2252
|
-
|
|
2277
|
+
Ut.Wrapper,
|
|
2253
2278
|
{
|
|
2254
2279
|
ref: ue,
|
|
2255
2280
|
size: a,
|
|
2256
2281
|
error: s,
|
|
2257
2282
|
disabled: i || o,
|
|
2258
2283
|
loading: o,
|
|
2259
|
-
className: k(r, e === "textarea" &&
|
|
2284
|
+
className: k(r, e === "textarea" && A["textarea-wrapper"]),
|
|
2260
2285
|
wrapperProps: w,
|
|
2261
2286
|
wrapperStyles: L,
|
|
2262
|
-
floatingLabelStyles:
|
|
2287
|
+
floatingLabelStyles: M,
|
|
2263
2288
|
prefixStyles: j,
|
|
2264
|
-
suffixStyles:
|
|
2289
|
+
suffixStyles: $,
|
|
2265
2290
|
labelProps: D,
|
|
2266
|
-
helperProps:
|
|
2291
|
+
helperProps: P,
|
|
2267
2292
|
showLimit: F,
|
|
2268
2293
|
maxLength: O,
|
|
2269
|
-
hint:
|
|
2294
|
+
hint: T,
|
|
2270
2295
|
showHint: B,
|
|
2271
|
-
showHintOnEmpty:
|
|
2272
|
-
prefix:
|
|
2273
|
-
suffix:
|
|
2296
|
+
showHintOnEmpty: z,
|
|
2297
|
+
prefix: f,
|
|
2298
|
+
suffix: g,
|
|
2274
2299
|
onSuffixClick: v,
|
|
2275
2300
|
placeholder: l,
|
|
2276
2301
|
showLabel: d,
|
|
2277
2302
|
labelClassName: c,
|
|
2278
|
-
hasValue:
|
|
2279
|
-
helper:
|
|
2303
|
+
hasValue: Ie,
|
|
2304
|
+
helper: p,
|
|
2280
2305
|
id: Ce,
|
|
2281
|
-
value:
|
|
2306
|
+
value: je,
|
|
2282
2307
|
showGrip: ie,
|
|
2283
2308
|
resize: Q,
|
|
2284
2309
|
...Z,
|
|
2285
2310
|
children: /* @__PURE__ */ n.jsx(
|
|
2286
|
-
|
|
2311
|
+
Ut,
|
|
2287
2312
|
{
|
|
2288
2313
|
component: e,
|
|
2289
2314
|
size: a,
|
|
2290
|
-
value:
|
|
2315
|
+
value: je,
|
|
2291
2316
|
placeholder: l,
|
|
2292
2317
|
disabled: i,
|
|
2293
2318
|
loading: o,
|
|
@@ -2298,9 +2323,9 @@ const zt = Object.assign(On, {
|
|
|
2298
2323
|
onKeyUp: Ve,
|
|
2299
2324
|
maxLength: O,
|
|
2300
2325
|
truncate: V,
|
|
2301
|
-
"data-empty": !
|
|
2302
|
-
shouldShowFloatingLabelClass:
|
|
2303
|
-
style: e === "textarea" ?
|
|
2326
|
+
"data-empty": !Ie,
|
|
2327
|
+
shouldShowFloatingLabelClass: Re,
|
|
2328
|
+
style: e === "textarea" ? R : void 0,
|
|
2304
2329
|
"aria-invalid": !!s,
|
|
2305
2330
|
"aria-errormessage": s ? `${Ce}-error` : void 0,
|
|
2306
2331
|
id: Ce,
|
|
@@ -2315,7 +2340,7 @@ const zt = Object.assign(On, {
|
|
|
2315
2340
|
SMALL: "small",
|
|
2316
2341
|
MEDIUM: "medium",
|
|
2317
2342
|
LARGE: "large"
|
|
2318
|
-
},
|
|
2343
|
+
}, co = (e, a, r, s) => {
|
|
2319
2344
|
switch (e) {
|
|
2320
2345
|
case re.LARGE:
|
|
2321
2346
|
return a && r ? "8px 16px 8px 16px" : "16px 16px 16px 16px";
|
|
@@ -2326,7 +2351,7 @@ const zt = Object.assign(On, {
|
|
|
2326
2351
|
default:
|
|
2327
2352
|
return "12px 16px 12px 16px";
|
|
2328
2353
|
}
|
|
2329
|
-
},
|
|
2354
|
+
}, uo = (e) => {
|
|
2330
2355
|
switch (e) {
|
|
2331
2356
|
case re.LARGE:
|
|
2332
2357
|
return "56px";
|
|
@@ -2337,7 +2362,7 @@ const zt = Object.assign(On, {
|
|
|
2337
2362
|
default:
|
|
2338
2363
|
return "48px";
|
|
2339
2364
|
}
|
|
2340
|
-
},
|
|
2365
|
+
}, _o = (e) => {
|
|
2341
2366
|
switch (e) {
|
|
2342
2367
|
case re.SMALL:
|
|
2343
2368
|
return 8;
|
|
@@ -2349,7 +2374,7 @@ const zt = Object.assign(On, {
|
|
|
2349
2374
|
default:
|
|
2350
2375
|
return 12;
|
|
2351
2376
|
}
|
|
2352
|
-
},
|
|
2377
|
+
}, po = (e, a, r) => ({
|
|
2353
2378
|
wrapperStyles: {
|
|
2354
2379
|
height: e,
|
|
2355
2380
|
minHeight: e,
|
|
@@ -2367,7 +2392,7 @@ const zt = Object.assign(On, {
|
|
|
2367
2392
|
suffixStyles: {
|
|
2368
2393
|
right: `${r}px`
|
|
2369
2394
|
}
|
|
2370
|
-
}),
|
|
2395
|
+
}), fo = (e, a, r) => ({
|
|
2371
2396
|
wrapperStyles: {
|
|
2372
2397
|
minHeight: e,
|
|
2373
2398
|
maxHeight: e,
|
|
@@ -2383,7 +2408,7 @@ const zt = Object.assign(On, {
|
|
|
2383
2408
|
suffixStyles: {
|
|
2384
2409
|
right: `${r}px`
|
|
2385
2410
|
}
|
|
2386
|
-
}),
|
|
2411
|
+
}), go = (e, a, r) => ({
|
|
2387
2412
|
wrapperStyles: {
|
|
2388
2413
|
minHeight: e,
|
|
2389
2414
|
maxHeight: e,
|
|
@@ -2399,15 +2424,15 @@ const zt = Object.assign(On, {
|
|
|
2399
2424
|
suffixStyles: {
|
|
2400
2425
|
right: `${r}px`
|
|
2401
2426
|
}
|
|
2402
|
-
}),
|
|
2403
|
-
const i =
|
|
2427
|
+
}), ho = (e, a, r, s) => {
|
|
2428
|
+
const i = uo(e), o = co(e, a, r, s), l = _o(e);
|
|
2404
2429
|
switch (e) {
|
|
2405
2430
|
case re.LARGE:
|
|
2406
|
-
return
|
|
2431
|
+
return po(i, o, l);
|
|
2407
2432
|
case re.MEDIUM:
|
|
2408
|
-
return
|
|
2433
|
+
return fo(i, o, l);
|
|
2409
2434
|
case re.SMALL:
|
|
2410
|
-
return
|
|
2435
|
+
return go(i, o, l);
|
|
2411
2436
|
default:
|
|
2412
2437
|
return {
|
|
2413
2438
|
wrapperStyles: {},
|
|
@@ -2416,7 +2441,7 @@ const zt = Object.assign(On, {
|
|
|
2416
2441
|
suffixStyles: {}
|
|
2417
2442
|
};
|
|
2418
2443
|
}
|
|
2419
|
-
},
|
|
2444
|
+
}, El = X(
|
|
2420
2445
|
({
|
|
2421
2446
|
value: e = "",
|
|
2422
2447
|
onChange: a,
|
|
@@ -2427,34 +2452,34 @@ const zt = Object.assign(On, {
|
|
|
2427
2452
|
autoComplete: l,
|
|
2428
2453
|
autoFocus: d,
|
|
2429
2454
|
size: c = re.MEDIUM,
|
|
2430
|
-
inputProps:
|
|
2431
|
-
error:
|
|
2432
|
-
disabled:
|
|
2433
|
-
loading:
|
|
2434
|
-
helper:
|
|
2435
|
-
prefix:
|
|
2455
|
+
inputProps: p,
|
|
2456
|
+
error: f,
|
|
2457
|
+
disabled: g,
|
|
2458
|
+
loading: m,
|
|
2459
|
+
helper: h,
|
|
2460
|
+
prefix: y,
|
|
2436
2461
|
suffix: S,
|
|
2437
2462
|
clearable: v = !1,
|
|
2438
2463
|
id: x,
|
|
2439
2464
|
showLabel: _ = !0,
|
|
2440
2465
|
onFocus: w,
|
|
2441
2466
|
onBlur: L,
|
|
2442
|
-
onSuffixClick:
|
|
2467
|
+
onSuffixClick: M,
|
|
2443
2468
|
onClear: j,
|
|
2444
|
-
className:
|
|
2445
|
-
truncate:
|
|
2469
|
+
className: $,
|
|
2470
|
+
truncate: R = !0,
|
|
2446
2471
|
hint: D,
|
|
2447
|
-
showHint:
|
|
2472
|
+
showHint: P = !1,
|
|
2448
2473
|
showHintOnEmpty: F = !1,
|
|
2449
2474
|
wrapperProps: O,
|
|
2450
2475
|
labelProps: C,
|
|
2451
|
-
helperProps:
|
|
2476
|
+
helperProps: T,
|
|
2452
2477
|
...B
|
|
2453
|
-
},
|
|
2454
|
-
const V = (e || "").length > 0, Q = c === re.LARGE, ie = !!
|
|
2478
|
+
}, z) => {
|
|
2479
|
+
const V = (e || "").length > 0, Q = c === re.LARGE, ie = !!y, Z = Q && _ && !y, ue = v && V && !(g || m), ee = () => {
|
|
2455
2480
|
a == null || a(""), j == null || j();
|
|
2456
2481
|
}, Ce = ue ? /* @__PURE__ */ n.jsx(
|
|
2457
|
-
|
|
2482
|
+
Qt,
|
|
2458
2483
|
{
|
|
2459
2484
|
size: c === re.SMALL ? "xs" : "sm",
|
|
2460
2485
|
color: "var(--icon-secondary)",
|
|
@@ -2462,57 +2487,57 @@ const zt = Object.assign(On, {
|
|
|
2462
2487
|
style: { cursor: "pointer" },
|
|
2463
2488
|
"data-testid": "x-icon"
|
|
2464
2489
|
}
|
|
2465
|
-
) : S,
|
|
2490
|
+
) : S, Be = {
|
|
2466
2491
|
type: r,
|
|
2467
2492
|
minLength: o,
|
|
2468
2493
|
autoComplete: l,
|
|
2469
2494
|
autoFocus: d,
|
|
2470
|
-
...
|
|
2471
|
-
}, me =
|
|
2495
|
+
...p
|
|
2496
|
+
}, me = ho(c, Z, V, ie);
|
|
2472
2497
|
return /* @__PURE__ */ n.jsx(
|
|
2473
|
-
|
|
2498
|
+
tr,
|
|
2474
2499
|
{
|
|
2475
2500
|
size: c,
|
|
2476
|
-
error:
|
|
2477
|
-
disabled:
|
|
2478
|
-
loading:
|
|
2479
|
-
helper:
|
|
2480
|
-
prefix:
|
|
2501
|
+
error: f,
|
|
2502
|
+
disabled: g || m,
|
|
2503
|
+
loading: m,
|
|
2504
|
+
helper: h,
|
|
2505
|
+
prefix: y,
|
|
2481
2506
|
suffix: Ce,
|
|
2482
2507
|
id: x,
|
|
2483
2508
|
showLabel: Z,
|
|
2484
2509
|
onFocus: w,
|
|
2485
2510
|
onBlur: L,
|
|
2486
|
-
onSuffixClick:
|
|
2511
|
+
onSuffixClick: M,
|
|
2487
2512
|
onChange: a,
|
|
2488
2513
|
value: e,
|
|
2489
2514
|
placeholder: s,
|
|
2490
|
-
className:
|
|
2515
|
+
className: $,
|
|
2491
2516
|
wrapperStyles: me.wrapperStyles,
|
|
2492
2517
|
floatingLabelStyles: me.floatingLabelStyles,
|
|
2493
2518
|
prefixStyles: me.prefixStyles,
|
|
2494
2519
|
suffixStyles: me.suffixStyles,
|
|
2495
2520
|
wrapperProps: O,
|
|
2496
2521
|
labelProps: C,
|
|
2497
|
-
helperProps:
|
|
2522
|
+
helperProps: T,
|
|
2498
2523
|
showLimit: !1,
|
|
2499
2524
|
maxLength: i,
|
|
2500
|
-
inputProps:
|
|
2525
|
+
inputProps: Be,
|
|
2501
2526
|
hint: D,
|
|
2502
|
-
showHint:
|
|
2527
|
+
showHint: P,
|
|
2503
2528
|
showHintOnEmpty: F,
|
|
2504
|
-
truncate:
|
|
2529
|
+
truncate: R,
|
|
2505
2530
|
...B
|
|
2506
2531
|
}
|
|
2507
2532
|
);
|
|
2508
2533
|
}
|
|
2509
|
-
),
|
|
2534
|
+
), ge = {
|
|
2510
2535
|
SMALL: "small",
|
|
2511
2536
|
MEDIUM: "medium"
|
|
2512
2537
|
}, Je = {
|
|
2513
2538
|
SMALL: "12px",
|
|
2514
2539
|
MEDIUM: "16px"
|
|
2515
|
-
},
|
|
2540
|
+
}, bo = {
|
|
2516
2541
|
SMALL: "xs",
|
|
2517
2542
|
MEDIUM: "sm"
|
|
2518
2543
|
}, Ze = {
|
|
@@ -2521,7 +2546,7 @@ const zt = Object.assign(On, {
|
|
|
2521
2546
|
}, ct = {
|
|
2522
2547
|
SMALL: "112px",
|
|
2523
2548
|
MEDIUM: "56px"
|
|
2524
|
-
},
|
|
2549
|
+
}, De = {
|
|
2525
2550
|
SMALL: "48px",
|
|
2526
2551
|
MEDIUM: "22px"
|
|
2527
2552
|
}, ve = {
|
|
@@ -2533,38 +2558,38 @@ const zt = Object.assign(On, {
|
|
|
2533
2558
|
SMALL: 48,
|
|
2534
2559
|
MEDIUM: 56,
|
|
2535
2560
|
LARGE: 112
|
|
2536
|
-
},
|
|
2537
|
-
if (e ===
|
|
2561
|
+
}, mo = (e, a) => {
|
|
2562
|
+
if (e === ge.SMALL)
|
|
2538
2563
|
return ct.SMALL;
|
|
2539
2564
|
if (a)
|
|
2540
2565
|
return `${a}px`;
|
|
2541
2566
|
switch (e) {
|
|
2542
|
-
case
|
|
2567
|
+
case ge.MEDIUM:
|
|
2543
2568
|
return ct.MEDIUM;
|
|
2544
2569
|
default:
|
|
2545
2570
|
return ct.MEDIUM;
|
|
2546
2571
|
}
|
|
2547
|
-
},
|
|
2548
|
-
if (e ===
|
|
2549
|
-
return
|
|
2572
|
+
}, yo = (e, a) => {
|
|
2573
|
+
if (e === ge.SMALL)
|
|
2574
|
+
return De.SMALL;
|
|
2550
2575
|
if (a)
|
|
2551
2576
|
switch (a) {
|
|
2552
2577
|
case we.SMALL:
|
|
2553
2578
|
case we.MEDIUM:
|
|
2554
|
-
return
|
|
2579
|
+
return De.MEDIUM;
|
|
2555
2580
|
case we.LARGE:
|
|
2556
|
-
return
|
|
2581
|
+
return De.SMALL;
|
|
2557
2582
|
default:
|
|
2558
|
-
return
|
|
2583
|
+
return De.MEDIUM;
|
|
2559
2584
|
}
|
|
2560
2585
|
switch (e) {
|
|
2561
|
-
case
|
|
2562
|
-
return
|
|
2586
|
+
case ge.MEDIUM:
|
|
2587
|
+
return De.MEDIUM;
|
|
2563
2588
|
default:
|
|
2564
|
-
return
|
|
2589
|
+
return De.MEDIUM;
|
|
2565
2590
|
}
|
|
2566
|
-
},
|
|
2567
|
-
if (e ===
|
|
2591
|
+
}, vo = (e, a, r) => {
|
|
2592
|
+
if (e === ge.SMALL)
|
|
2568
2593
|
return ve.SMALL;
|
|
2569
2594
|
if (a)
|
|
2570
2595
|
switch (a) {
|
|
@@ -2578,13 +2603,13 @@ const zt = Object.assign(On, {
|
|
|
2578
2603
|
return ve.MEDIUM;
|
|
2579
2604
|
}
|
|
2580
2605
|
switch (e) {
|
|
2581
|
-
case
|
|
2606
|
+
case ge.MEDIUM:
|
|
2582
2607
|
return r ? ve.MEDIUM_FLOATING_LABEL : ve.MEDIUM;
|
|
2583
2608
|
default:
|
|
2584
2609
|
return ve.MEDIUM;
|
|
2585
2610
|
}
|
|
2586
|
-
},
|
|
2587
|
-
if (e ===
|
|
2611
|
+
}, xo = (e, a) => {
|
|
2612
|
+
if (e === ge.SMALL)
|
|
2588
2613
|
return "small";
|
|
2589
2614
|
if (a)
|
|
2590
2615
|
switch (a) {
|
|
@@ -2598,8 +2623,8 @@ const zt = Object.assign(On, {
|
|
|
2598
2623
|
return "medium";
|
|
2599
2624
|
}
|
|
2600
2625
|
return e;
|
|
2601
|
-
},
|
|
2602
|
-
const i =
|
|
2626
|
+
}, wo = (e) => bo[e.toUpperCase()], Co = (e) => Je[e.toUpperCase()], So = (e, a, r, s) => {
|
|
2627
|
+
const i = mo(e, a), o = yo(e, a), l = vo(e, a, r);
|
|
2603
2628
|
return {
|
|
2604
2629
|
wrapperStyles: {
|
|
2605
2630
|
minHeight: i,
|
|
@@ -2611,12 +2636,12 @@ const zt = Object.assign(On, {
|
|
|
2611
2636
|
padding: l
|
|
2612
2637
|
},
|
|
2613
2638
|
floatingLabelStyles: {
|
|
2614
|
-
left: e ===
|
|
2639
|
+
left: e === ge.SMALL ? Je.SMALL : Je.MEDIUM,
|
|
2615
2640
|
transformOrigin: "left top",
|
|
2616
|
-
top: a === 112 && r && e ===
|
|
2641
|
+
top: a === 112 && r && e === ge.MEDIUM ? Je.MEDIUM : void 0
|
|
2617
2642
|
},
|
|
2618
2643
|
suffixStyles: {
|
|
2619
|
-
right:
|
|
2644
|
+
right: Co(e)
|
|
2620
2645
|
},
|
|
2621
2646
|
textareaStyles: {
|
|
2622
2647
|
minHeight: o,
|
|
@@ -2626,7 +2651,7 @@ const zt = Object.assign(On, {
|
|
|
2626
2651
|
...s === Ze.FIXED && a && { height: o }
|
|
2627
2652
|
}
|
|
2628
2653
|
};
|
|
2629
|
-
},
|
|
2654
|
+
}, jl = X(
|
|
2630
2655
|
({
|
|
2631
2656
|
value: e = "",
|
|
2632
2657
|
onChange: a,
|
|
@@ -2634,62 +2659,62 @@ const zt = Object.assign(On, {
|
|
|
2634
2659
|
maxLength: s,
|
|
2635
2660
|
minLength: i,
|
|
2636
2661
|
autoFocus: o,
|
|
2637
|
-
size: l =
|
|
2662
|
+
size: l = ge.MEDIUM,
|
|
2638
2663
|
textareaProps: d,
|
|
2639
2664
|
error: c,
|
|
2640
|
-
disabled:
|
|
2641
|
-
loading:
|
|
2642
|
-
helper:
|
|
2643
|
-
suffix:
|
|
2644
|
-
clearable:
|
|
2645
|
-
id:
|
|
2665
|
+
disabled: p,
|
|
2666
|
+
loading: f,
|
|
2667
|
+
helper: g,
|
|
2668
|
+
suffix: m,
|
|
2669
|
+
clearable: h = !1,
|
|
2670
|
+
id: y,
|
|
2646
2671
|
showLabel: S = !0,
|
|
2647
2672
|
onFocus: v,
|
|
2648
2673
|
onBlur: x,
|
|
2649
2674
|
onClear: _,
|
|
2650
2675
|
onKeyDown: w,
|
|
2651
2676
|
className: L,
|
|
2652
|
-
rows:
|
|
2677
|
+
rows: M = 1,
|
|
2653
2678
|
showLimit: j = !1,
|
|
2654
|
-
wrapperProps:
|
|
2655
|
-
labelProps:
|
|
2679
|
+
wrapperProps: $,
|
|
2680
|
+
labelProps: R,
|
|
2656
2681
|
helperProps: D,
|
|
2657
|
-
showGrip:
|
|
2682
|
+
showGrip: P,
|
|
2658
2683
|
minHeight: F,
|
|
2659
2684
|
resize: O,
|
|
2660
2685
|
...C
|
|
2661
|
-
},
|
|
2662
|
-
const B = (e || "").length > 0,
|
|
2686
|
+
}, T) => {
|
|
2687
|
+
const B = (e || "").length > 0, z = S && !!r && (l === ge.SMALL || F !== 48), V = h && B && !(p || f), Q = () => {
|
|
2663
2688
|
a == null || a(""), _ == null || _();
|
|
2664
2689
|
}, ie = V ? /* @__PURE__ */ n.jsx(
|
|
2665
|
-
|
|
2690
|
+
Qt,
|
|
2666
2691
|
{
|
|
2667
|
-
size:
|
|
2692
|
+
size: wo(l),
|
|
2668
2693
|
color: "var(--icon-secondary)",
|
|
2669
2694
|
onClick: Q,
|
|
2670
2695
|
style: { cursor: "pointer" },
|
|
2671
2696
|
"data-testid": "x-icon"
|
|
2672
2697
|
}
|
|
2673
|
-
) :
|
|
2674
|
-
rows:
|
|
2698
|
+
) : m, Z = So(l, F, z && B, O), ue = xo(l, F), ee = {
|
|
2699
|
+
rows: M,
|
|
2675
2700
|
minLength: i,
|
|
2676
2701
|
autoFocus: o,
|
|
2677
2702
|
resize: O,
|
|
2678
2703
|
...d
|
|
2679
2704
|
};
|
|
2680
2705
|
return /* @__PURE__ */ n.jsx(
|
|
2681
|
-
|
|
2706
|
+
tr,
|
|
2682
2707
|
{
|
|
2683
|
-
ref:
|
|
2708
|
+
ref: T,
|
|
2684
2709
|
component: "textarea",
|
|
2685
2710
|
size: ue,
|
|
2686
2711
|
error: c,
|
|
2687
|
-
disabled:
|
|
2688
|
-
loading:
|
|
2689
|
-
helper:
|
|
2712
|
+
disabled: p || f,
|
|
2713
|
+
loading: f,
|
|
2714
|
+
helper: g,
|
|
2690
2715
|
suffix: ie,
|
|
2691
|
-
id:
|
|
2692
|
-
showLabel:
|
|
2716
|
+
id: y,
|
|
2717
|
+
showLabel: z,
|
|
2693
2718
|
onFocus: v,
|
|
2694
2719
|
onBlur: x,
|
|
2695
2720
|
onKeyDown: w,
|
|
@@ -2697,28 +2722,28 @@ const zt = Object.assign(On, {
|
|
|
2697
2722
|
value: e || "",
|
|
2698
2723
|
placeholder: r,
|
|
2699
2724
|
className: L,
|
|
2700
|
-
"data-floating-label":
|
|
2725
|
+
"data-floating-label": z,
|
|
2701
2726
|
wrapperStyles: Z.wrapperStyles,
|
|
2702
2727
|
floatingLabelStyles: Z.floatingLabelStyles,
|
|
2703
2728
|
suffixStyles: Z.suffixStyles,
|
|
2704
2729
|
textareaStyles: Z.textareaStyles,
|
|
2705
|
-
wrapperProps:
|
|
2706
|
-
labelProps:
|
|
2730
|
+
wrapperProps: $,
|
|
2731
|
+
labelProps: R,
|
|
2707
2732
|
helperProps: D,
|
|
2708
|
-
showLimit: j && (F === 112 || l ===
|
|
2733
|
+
showLimit: j && (F === 112 || l === ge.SMALL),
|
|
2709
2734
|
maxLength: s,
|
|
2710
2735
|
inputProps: ee,
|
|
2711
2736
|
resize: O,
|
|
2712
|
-
showGrip:
|
|
2737
|
+
showGrip: P,
|
|
2713
2738
|
...C
|
|
2714
2739
|
}
|
|
2715
2740
|
);
|
|
2716
2741
|
}
|
|
2717
|
-
),
|
|
2718
|
-
helper:
|
|
2742
|
+
), Lo = "_helper_1jq7j_16", dt = {
|
|
2743
|
+
helper: Lo,
|
|
2719
2744
|
"helper--error": "_helper--error_1jq7j_28",
|
|
2720
2745
|
"helper--disabled": "_helper--disabled_1jq7j_33"
|
|
2721
|
-
},
|
|
2746
|
+
}, kl = ({
|
|
2722
2747
|
title: e,
|
|
2723
2748
|
error: a,
|
|
2724
2749
|
className: r = "",
|
|
@@ -2728,40 +2753,40 @@ const zt = Object.assign(On, {
|
|
|
2728
2753
|
"aria-label": l,
|
|
2729
2754
|
"aria-describedby": d
|
|
2730
2755
|
}) => {
|
|
2731
|
-
const c = !!a,
|
|
2756
|
+
const c = !!a, p = k(
|
|
2732
2757
|
dt.helper,
|
|
2733
2758
|
c && dt["helper--error"],
|
|
2734
2759
|
i && dt["helper--disabled"],
|
|
2735
2760
|
r
|
|
2736
|
-
),
|
|
2761
|
+
), f = i ? e : a || e;
|
|
2737
2762
|
return /* @__PURE__ */ n.jsx(
|
|
2738
2763
|
"div",
|
|
2739
2764
|
{
|
|
2740
|
-
className:
|
|
2765
|
+
className: p,
|
|
2741
2766
|
style: s,
|
|
2742
2767
|
"data-testid": o,
|
|
2743
2768
|
"aria-label": l,
|
|
2744
2769
|
"aria-describedby": d,
|
|
2745
|
-
children: /* @__PURE__ */ n.jsx("p", { children:
|
|
2770
|
+
children: /* @__PURE__ */ n.jsx("p", { children: f })
|
|
2746
2771
|
}
|
|
2747
2772
|
);
|
|
2748
|
-
},
|
|
2749
|
-
radio:
|
|
2750
|
-
checked:
|
|
2751
|
-
error:
|
|
2752
|
-
disabled:
|
|
2753
|
-
icon:
|
|
2754
|
-
small:
|
|
2755
|
-
medium:
|
|
2756
|
-
large:
|
|
2757
|
-
label:
|
|
2758
|
-
container:
|
|
2759
|
-
input:
|
|
2760
|
-
card:
|
|
2761
|
-
smallCard:
|
|
2762
|
-
mediumCard:
|
|
2763
|
-
largeCard:
|
|
2764
|
-
},
|
|
2773
|
+
}, Eo = "_radio_1q34w_54", jo = "_checked_1q34w_75", ko = "_error_1q34w_80", $o = "_disabled_1q34w_89", Mo = "_icon_1q34w_125", Io = "_small_1q34w_133", Ro = "_medium_1q34w_140", To = "_large_1q34w_147", No = "_label_1q34w_154", Ao = "_container_1q34w_180", Do = "_input_1q34w_193", Oo = "_card_1q34w_200", Po = "_smallCard_1q34w_206", qo = "_mediumCard_1q34w_210", Bo = "_largeCard_1q34w_214", le = {
|
|
2774
|
+
radio: Eo,
|
|
2775
|
+
checked: jo,
|
|
2776
|
+
error: ko,
|
|
2777
|
+
disabled: $o,
|
|
2778
|
+
icon: Mo,
|
|
2779
|
+
small: Io,
|
|
2780
|
+
medium: Ro,
|
|
2781
|
+
large: To,
|
|
2782
|
+
label: No,
|
|
2783
|
+
container: Ao,
|
|
2784
|
+
input: Do,
|
|
2785
|
+
card: Oo,
|
|
2786
|
+
smallCard: Po,
|
|
2787
|
+
mediumCard: qo,
|
|
2788
|
+
largeCard: Bo
|
|
2789
|
+
}, Uo = "radio-container-", zo = "radio-label", rr = X(
|
|
2765
2790
|
(e, a) => {
|
|
2766
2791
|
const {
|
|
2767
2792
|
name: r,
|
|
@@ -2771,49 +2796,49 @@ const zt = Object.assign(On, {
|
|
|
2771
2796
|
loading: l = !1,
|
|
2772
2797
|
error: d,
|
|
2773
2798
|
disabled: c = !1,
|
|
2774
|
-
checked:
|
|
2775
|
-
containerClassName:
|
|
2776
|
-
className:
|
|
2777
|
-
children:
|
|
2778
|
-
clickable:
|
|
2779
|
-
mode:
|
|
2799
|
+
checked: p = !1,
|
|
2800
|
+
containerClassName: f,
|
|
2801
|
+
className: g,
|
|
2802
|
+
children: m,
|
|
2803
|
+
clickable: h = "all",
|
|
2804
|
+
mode: y = "default",
|
|
2780
2805
|
tabIndex: S,
|
|
2781
2806
|
style: v,
|
|
2782
2807
|
containerStyle: x,
|
|
2783
2808
|
onChange: _,
|
|
2784
2809
|
"data-testid": w,
|
|
2785
2810
|
...L
|
|
2786
|
-
} = e,
|
|
2787
|
-
j || _ == null || _(i,
|
|
2788
|
-
}, O = (
|
|
2789
|
-
|
|
2790
|
-
}, C = (
|
|
2811
|
+
} = e, M = !!d, j = c || l, $ = h === "all", R = y === "card", D = le[`${o}Card`], P = s ?? r, F = (z) => {
|
|
2812
|
+
j || _ == null || _(i, z);
|
|
2813
|
+
}, O = (z) => {
|
|
2814
|
+
z.key === "Enter" && !j && (z.preventDefault(), _ == null || _(i));
|
|
2815
|
+
}, C = (z) => z.stopPropagation(), T = () => /* @__PURE__ */ n.jsxs(
|
|
2791
2816
|
"div",
|
|
2792
2817
|
{
|
|
2793
2818
|
className: k(
|
|
2794
2819
|
le.radio,
|
|
2795
2820
|
le[o],
|
|
2796
2821
|
{
|
|
2797
|
-
[le.checked]:
|
|
2822
|
+
[le.checked]: p,
|
|
2798
2823
|
[le.disabled]: j,
|
|
2799
|
-
[le.error]:
|
|
2824
|
+
[le.error]: M && !j
|
|
2800
2825
|
},
|
|
2801
|
-
|
|
2826
|
+
g
|
|
2802
2827
|
),
|
|
2803
2828
|
style: v,
|
|
2804
2829
|
tabIndex: S || 1,
|
|
2805
|
-
"data-testid": `${
|
|
2830
|
+
"data-testid": `${Uo}${P}`,
|
|
2806
2831
|
children: [
|
|
2807
2832
|
/* @__PURE__ */ n.jsx(
|
|
2808
2833
|
"input",
|
|
2809
2834
|
{
|
|
2810
2835
|
"aria-errormessage": d,
|
|
2811
|
-
"aria-invalid":
|
|
2812
|
-
checked:
|
|
2836
|
+
"aria-invalid": M,
|
|
2837
|
+
checked: p,
|
|
2813
2838
|
className: le.input,
|
|
2814
|
-
"data-testid": `radio-${
|
|
2839
|
+
"data-testid": `radio-${P}`,
|
|
2815
2840
|
disabled: j,
|
|
2816
|
-
id:
|
|
2841
|
+
id: P,
|
|
2817
2842
|
name: r,
|
|
2818
2843
|
ref: a,
|
|
2819
2844
|
type: "radio",
|
|
@@ -2822,48 +2847,48 @@ const zt = Object.assign(On, {
|
|
|
2822
2847
|
onClick: C
|
|
2823
2848
|
}
|
|
2824
2849
|
),
|
|
2825
|
-
/* @__PURE__ */ n.jsx("svg", { "data-testid": `radio-icon-${
|
|
2850
|
+
/* @__PURE__ */ n.jsx("svg", { "data-testid": `radio-icon-${P}`, viewBox: "0 0 8 8", className: le.icon, children: /* @__PURE__ */ n.jsx("circle", { cx: 4, cy: 4, fill: "current", r: 4 }) })
|
|
2826
2851
|
]
|
|
2827
2852
|
}
|
|
2828
2853
|
), B = () => /* @__PURE__ */ n.jsxs(
|
|
2829
2854
|
"label",
|
|
2830
2855
|
{
|
|
2831
|
-
"aria-checked":
|
|
2856
|
+
"aria-checked": p,
|
|
2832
2857
|
"aria-disabled": j,
|
|
2833
|
-
"data-testid":
|
|
2834
|
-
htmlFor:
|
|
2858
|
+
"data-testid": $ ? w : zo,
|
|
2859
|
+
htmlFor: P,
|
|
2835
2860
|
style: x,
|
|
2836
2861
|
className: k(le.label, {
|
|
2837
|
-
[k(le.container, le[
|
|
2838
|
-
[D]:
|
|
2862
|
+
[k(le.container, le[y], f)]: $,
|
|
2863
|
+
[D]: $ && R
|
|
2839
2864
|
}),
|
|
2840
2865
|
onKeyDown: O,
|
|
2841
2866
|
...L,
|
|
2842
2867
|
children: [
|
|
2843
|
-
|
|
2844
|
-
|
|
2868
|
+
T(),
|
|
2869
|
+
$ && m
|
|
2845
2870
|
]
|
|
2846
2871
|
}
|
|
2847
2872
|
);
|
|
2848
|
-
return
|
|
2873
|
+
return $ ? B() : /* @__PURE__ */ n.jsxs(
|
|
2849
2874
|
"div",
|
|
2850
2875
|
{
|
|
2851
|
-
className: k(le.container, le[
|
|
2852
|
-
[D]:
|
|
2876
|
+
className: k(le.container, le[y], f, {
|
|
2877
|
+
[D]: R
|
|
2853
2878
|
}),
|
|
2854
2879
|
"data-testid": w,
|
|
2855
2880
|
children: [
|
|
2856
2881
|
B(),
|
|
2857
|
-
|
|
2882
|
+
m
|
|
2858
2883
|
]
|
|
2859
2884
|
}
|
|
2860
2885
|
);
|
|
2861
2886
|
}
|
|
2862
|
-
),
|
|
2863
|
-
group:
|
|
2864
|
-
vertical:
|
|
2865
|
-
horizontal:
|
|
2866
|
-
},
|
|
2887
|
+
), Fo = "_group_o6mjt_7", Wo = "_vertical_o6mjt_12", Vo = "_horizontal_o6mjt_16", zt = {
|
|
2888
|
+
group: Fo,
|
|
2889
|
+
vertical: Wo,
|
|
2890
|
+
horizontal: Vo
|
|
2891
|
+
}, Ho = X(
|
|
2867
2892
|
(e, a) => {
|
|
2868
2893
|
const {
|
|
2869
2894
|
id: r,
|
|
@@ -2873,31 +2898,31 @@ const zt = Object.assign(On, {
|
|
|
2873
2898
|
className: l,
|
|
2874
2899
|
radioClassName: d,
|
|
2875
2900
|
disabled: c = !1,
|
|
2876
|
-
layout:
|
|
2877
|
-
"data-testid":
|
|
2878
|
-
...
|
|
2901
|
+
layout: p = "vertical",
|
|
2902
|
+
"data-testid": f,
|
|
2903
|
+
...g
|
|
2879
2904
|
} = e;
|
|
2880
2905
|
return /* @__PURE__ */ n.jsx(
|
|
2881
2906
|
"div",
|
|
2882
2907
|
{
|
|
2883
|
-
className:
|
|
2884
|
-
"data-testid":
|
|
2908
|
+
className: Ee(zt.group, zt[p], l),
|
|
2909
|
+
"data-testid": f ?? `radio-group-${s}`,
|
|
2885
2910
|
id: r,
|
|
2886
2911
|
ref: a,
|
|
2887
|
-
children: o.map(({ label:
|
|
2888
|
-
const S = `${s}-${String(
|
|
2912
|
+
children: o.map(({ label: m, value: h, disabled: y }) => {
|
|
2913
|
+
const S = `${s}-${String(h)}`, v = String(h) === String(i);
|
|
2889
2914
|
return /* @__PURE__ */ n.jsx(
|
|
2890
|
-
|
|
2915
|
+
rr,
|
|
2891
2916
|
{
|
|
2892
2917
|
id: S,
|
|
2893
2918
|
checked: v,
|
|
2894
2919
|
"data-testid": S,
|
|
2895
|
-
disabled: c ||
|
|
2920
|
+
disabled: c || y,
|
|
2896
2921
|
name: s,
|
|
2897
|
-
value:
|
|
2922
|
+
value: h,
|
|
2898
2923
|
className: d,
|
|
2899
|
-
...
|
|
2900
|
-
children:
|
|
2924
|
+
...g,
|
|
2925
|
+
children: m
|
|
2901
2926
|
},
|
|
2902
2927
|
S
|
|
2903
2928
|
);
|
|
@@ -2905,20 +2930,20 @@ const zt = Object.assign(On, {
|
|
|
2905
2930
|
}
|
|
2906
2931
|
);
|
|
2907
2932
|
}
|
|
2908
|
-
),
|
|
2909
|
-
Group:
|
|
2910
|
-
}),
|
|
2911
|
-
root:
|
|
2912
|
-
unordered:
|
|
2913
|
-
ordered:
|
|
2914
|
-
sm:
|
|
2915
|
-
md:
|
|
2916
|
-
lg:
|
|
2917
|
-
xl:
|
|
2918
|
-
},
|
|
2933
|
+
), $l = Object.assign(rr, {
|
|
2934
|
+
Group: Ho
|
|
2935
|
+
}), Go = "_root_1jj3e_25", Zo = "_unordered_1jj3e_39", Yo = "_ordered_1jj3e_43", Jo = "_sm_1jj3e_48", Ko = "_md_1jj3e_59", Xo = "_lg_1jj3e_70", Qo = "_xl_1jj3e_81", ut = {
|
|
2936
|
+
root: Go,
|
|
2937
|
+
unordered: Zo,
|
|
2938
|
+
ordered: Yo,
|
|
2939
|
+
sm: Jo,
|
|
2940
|
+
md: Ko,
|
|
2941
|
+
lg: Xo,
|
|
2942
|
+
xl: Qo
|
|
2943
|
+
}, ei = (e) => {
|
|
2919
2944
|
const { children: a, className: r, "data-testid": s = "list-item" } = e;
|
|
2920
2945
|
return /* @__PURE__ */ n.jsx("li", { "data-testid": s, className: r, children: a });
|
|
2921
|
-
},
|
|
2946
|
+
}, Ml = Object.assign(
|
|
2922
2947
|
X((e, a) => {
|
|
2923
2948
|
const {
|
|
2924
2949
|
variant: r = "unordered",
|
|
@@ -2933,33 +2958,33 @@ const zt = Object.assign(On, {
|
|
|
2933
2958
|
{
|
|
2934
2959
|
"data-testid": l,
|
|
2935
2960
|
ref: a,
|
|
2936
|
-
className:
|
|
2961
|
+
className: Ee(ut.root, ut[r], ut[o], s),
|
|
2937
2962
|
...r === "ordered" && d,
|
|
2938
2963
|
children: i
|
|
2939
2964
|
}
|
|
2940
2965
|
);
|
|
2941
2966
|
}),
|
|
2942
|
-
{ Item:
|
|
2943
|
-
),
|
|
2944
|
-
wrapper:
|
|
2945
|
-
viewport:
|
|
2946
|
-
mask:
|
|
2947
|
-
maskLeft:
|
|
2948
|
-
maskRight:
|
|
2949
|
-
visible:
|
|
2950
|
-
control:
|
|
2951
|
-
xs:
|
|
2952
|
-
sm:
|
|
2953
|
-
md:
|
|
2954
|
-
left:
|
|
2955
|
-
right:
|
|
2956
|
-
},
|
|
2967
|
+
{ Item: ei }
|
|
2968
|
+
), ti = "_wrapper_1v8xn_5", ri = "_viewport_1v8xn_12", ai = "_mask_1v8xn_26", si = "_maskLeft_1v8xn_37", ni = "_maskRight_1v8xn_42", oi = "_visible_1v8xn_46", ii = "_control_1v8xn_51", li = "_xs_1v8xn_70", ci = "_sm_1v8xn_73", di = "_md_1v8xn_76", ui = "_left_1v8xn_80", _i = "_right_1v8xn_83", se = {
|
|
2969
|
+
wrapper: ti,
|
|
2970
|
+
viewport: ri,
|
|
2971
|
+
mask: ai,
|
|
2972
|
+
maskLeft: si,
|
|
2973
|
+
maskRight: ni,
|
|
2974
|
+
visible: oi,
|
|
2975
|
+
control: ii,
|
|
2976
|
+
xs: li,
|
|
2977
|
+
sm: ci,
|
|
2978
|
+
md: di,
|
|
2979
|
+
left: ui,
|
|
2980
|
+
right: _i
|
|
2981
|
+
}, pi = "white", fi = ({
|
|
2957
2982
|
children: e,
|
|
2958
2983
|
withControls: a = !0,
|
|
2959
2984
|
className: r,
|
|
2960
2985
|
size: s
|
|
2961
2986
|
}) => {
|
|
2962
|
-
const i =
|
|
2987
|
+
const i = qe(null), [o, l] = ce(!1), [d, c] = ce(!1), { ref: p, bgColor: f } = Jt(), g = p ?? { current: null }, m = f ?? pi, h = a && o, y = a && d, S = ({ direction: _ }) => /* @__PURE__ */ n.jsx(
|
|
2963
2988
|
"svg",
|
|
2964
2989
|
{
|
|
2965
2990
|
height: "12px",
|
|
@@ -2977,49 +3002,49 @@ const zt = Object.assign(On, {
|
|
|
2977
3002
|
), v = () => {
|
|
2978
3003
|
const _ = i.current;
|
|
2979
3004
|
if (!_) return;
|
|
2980
|
-
const w = Math.round(_.scrollLeft), L = Math.round(_.scrollLeft + _.clientWidth),
|
|
2981
|
-
l(w > 0), c(L <
|
|
3005
|
+
const w = Math.round(_.scrollLeft), L = Math.round(_.scrollLeft + _.clientWidth), M = Math.round(_.scrollWidth);
|
|
3006
|
+
l(w > 0), c(L < M);
|
|
2982
3007
|
}, x = (_) => {
|
|
2983
3008
|
const w = i.current;
|
|
2984
3009
|
if (!w) return;
|
|
2985
3010
|
const L = w.clientWidth;
|
|
2986
3011
|
w.scrollBy({ left: _ === "left" ? -L : L, behavior: "smooth" });
|
|
2987
3012
|
};
|
|
2988
|
-
return
|
|
3013
|
+
return de(() => {
|
|
2989
3014
|
const _ = i.current;
|
|
2990
3015
|
if (!_) return;
|
|
2991
3016
|
const w = (L) => {
|
|
2992
3017
|
Math.abs(L.deltaX) > Math.abs(L.deltaY) || _.scrollWidth > _.clientWidth && (L.preventDefault(), _.scrollBy({ left: L.deltaY, behavior: "auto" }));
|
|
2993
3018
|
};
|
|
2994
3019
|
return _.addEventListener("wheel", w, { passive: !1 }), () => _.removeEventListener("wheel", w);
|
|
2995
|
-
}, []),
|
|
3020
|
+
}, []), de(() => {
|
|
2996
3021
|
v();
|
|
2997
3022
|
const _ = i.current;
|
|
2998
3023
|
if (_)
|
|
2999
3024
|
return _.addEventListener("scroll", v, { passive: !0 }), window.addEventListener("resize", v), () => {
|
|
3000
3025
|
_.removeEventListener("scroll", v), window.removeEventListener("resize", v);
|
|
3001
3026
|
};
|
|
3002
|
-
}, []), /* @__PURE__ */ n.jsxs("div", { ref:
|
|
3003
|
-
|
|
3027
|
+
}, []), /* @__PURE__ */ n.jsxs("div", { ref: g, className: k(se.wrapper, r), children: [
|
|
3028
|
+
h && /* @__PURE__ */ n.jsx(
|
|
3004
3029
|
"div",
|
|
3005
3030
|
{
|
|
3006
3031
|
className: k(se.mask, se.maskLeft, o && se.visible),
|
|
3007
3032
|
style: {
|
|
3008
|
-
background: `linear-gradient(to right, ${
|
|
3033
|
+
background: `linear-gradient(to right, ${m} 17%, transparent 80%)`
|
|
3009
3034
|
}
|
|
3010
3035
|
}
|
|
3011
3036
|
),
|
|
3012
|
-
|
|
3037
|
+
y && /* @__PURE__ */ n.jsx(
|
|
3013
3038
|
"div",
|
|
3014
3039
|
{
|
|
3015
3040
|
className: k(se.mask, se.maskRight, d && se.visible),
|
|
3016
3041
|
style: {
|
|
3017
|
-
background: `linear-gradient(to left, ${
|
|
3042
|
+
background: `linear-gradient(to left, ${m} 17%, transparent 80%)`
|
|
3018
3043
|
}
|
|
3019
3044
|
}
|
|
3020
3045
|
),
|
|
3021
3046
|
/* @__PURE__ */ n.jsx("div", { ref: i, className: se.viewport, children: e }),
|
|
3022
|
-
|
|
3047
|
+
h && /* @__PURE__ */ n.jsx(
|
|
3023
3048
|
"button",
|
|
3024
3049
|
{
|
|
3025
3050
|
type: "button",
|
|
@@ -3030,7 +3055,7 @@ const zt = Object.assign(On, {
|
|
|
3030
3055
|
children: /* @__PURE__ */ n.jsx(S, { direction: "left" })
|
|
3031
3056
|
}
|
|
3032
3057
|
),
|
|
3033
|
-
|
|
3058
|
+
y && /* @__PURE__ */ n.jsx(
|
|
3034
3059
|
"button",
|
|
3035
3060
|
{
|
|
3036
3061
|
type: "button",
|
|
@@ -3042,34 +3067,34 @@ const zt = Object.assign(On, {
|
|
|
3042
3067
|
}
|
|
3043
3068
|
)
|
|
3044
3069
|
] });
|
|
3045
|
-
},
|
|
3046
|
-
tabBar:
|
|
3047
|
-
primary:
|
|
3048
|
-
secondary:
|
|
3049
|
-
tab:
|
|
3050
|
-
md:
|
|
3051
|
-
sm:
|
|
3052
|
-
xs:
|
|
3053
|
-
disabled:
|
|
3054
|
-
selected:
|
|
3055
|
-
tabLabel:
|
|
3056
|
-
tabPrefix:
|
|
3057
|
-
tabPostfix:
|
|
3058
|
-
},
|
|
3059
|
-
const e = Gt(
|
|
3070
|
+
}, gi = "_tabBar_1ndpm_82", hi = "_primary_1ndpm_88", bi = "_secondary_1ndpm_93", mi = "_tab_1ndpm_82", yi = "_md_1ndpm_125", vi = "_sm_1ndpm_129", xi = "_xs_1ndpm_133", wi = "_disabled_1ndpm_137", Ci = "_selected_1ndpm_143", Si = "_tabLabel_1ndpm_222", Li = "_tabPrefix_1ndpm_234", Ei = "_tabPostfix_1ndpm_270", K = {
|
|
3071
|
+
tabBar: gi,
|
|
3072
|
+
primary: hi,
|
|
3073
|
+
secondary: bi,
|
|
3074
|
+
tab: mi,
|
|
3075
|
+
md: yi,
|
|
3076
|
+
sm: vi,
|
|
3077
|
+
xs: xi,
|
|
3078
|
+
disabled: wi,
|
|
3079
|
+
selected: Ci,
|
|
3080
|
+
tabLabel: Si,
|
|
3081
|
+
tabPrefix: Li,
|
|
3082
|
+
tabPostfix: Ei
|
|
3083
|
+
}, ji = "md", ki = !1, $i = 8, Mi = "top-right-inside", ar = Ht(null), sr = () => {
|
|
3084
|
+
const e = Gt(ar);
|
|
3060
3085
|
if (!e) throw new Error("useTabs должен использоваться внутри TabsProvider");
|
|
3061
3086
|
return e;
|
|
3062
|
-
},
|
|
3087
|
+
}, Ii = ({
|
|
3063
3088
|
children: e,
|
|
3064
3089
|
defaultActiveTab: a,
|
|
3065
3090
|
activeTab: r,
|
|
3066
3091
|
onChange: s
|
|
3067
3092
|
}) => {
|
|
3068
|
-
const [i, o] =
|
|
3069
|
-
l || o(
|
|
3093
|
+
const [i, o] = ce(a), l = r !== void 0, d = l ? r : i, c = (p) => {
|
|
3094
|
+
l || o(p), s && s(p);
|
|
3070
3095
|
};
|
|
3071
|
-
return /* @__PURE__ */ n.jsx(
|
|
3072
|
-
},
|
|
3096
|
+
return /* @__PURE__ */ n.jsx(ar.Provider, { value: { activeTab: d, setTab: c }, children: e });
|
|
3097
|
+
}, Ri = ({
|
|
3073
3098
|
mode: e,
|
|
3074
3099
|
item: a,
|
|
3075
3100
|
isActive: r,
|
|
@@ -3081,26 +3106,26 @@ const zt = Object.assign(On, {
|
|
|
3081
3106
|
}) => {
|
|
3082
3107
|
const {
|
|
3083
3108
|
value: c,
|
|
3084
|
-
label:
|
|
3085
|
-
prefix:
|
|
3086
|
-
prefixWrapperProps:
|
|
3087
|
-
postfix:
|
|
3088
|
-
postfixWrapperProps:
|
|
3089
|
-
} = a, { className:
|
|
3090
|
-
primary:
|
|
3091
|
-
secondary:
|
|
3092
|
-
prefix:
|
|
3093
|
-
postfix:
|
|
3109
|
+
label: p,
|
|
3110
|
+
prefix: f,
|
|
3111
|
+
prefixWrapperProps: g = {},
|
|
3112
|
+
postfix: m,
|
|
3113
|
+
postfixWrapperProps: h = {}
|
|
3114
|
+
} = a, { className: y, ...S } = g, { className: v, ...x } = h, _ = {
|
|
3115
|
+
primary: oe["typography-label-3-medium"],
|
|
3116
|
+
secondary: oe["typography-label-3-regular"],
|
|
3117
|
+
prefix: oe["typography-label-3-medium"],
|
|
3118
|
+
postfix: oe["typography-label-3-medium"]
|
|
3094
3119
|
}, w = {
|
|
3095
|
-
size:
|
|
3096
|
-
position:
|
|
3120
|
+
size: $i,
|
|
3121
|
+
position: Mi,
|
|
3097
3122
|
...i
|
|
3098
3123
|
}, L = k(K.tab, K[e], K[o], {
|
|
3099
3124
|
[K.selected]: r,
|
|
3100
3125
|
[K.disabled]: l
|
|
3101
|
-
}),
|
|
3126
|
+
}), M = k(
|
|
3102
3127
|
K.tabPrefix,
|
|
3103
|
-
|
|
3128
|
+
y,
|
|
3104
3129
|
K[e],
|
|
3105
3130
|
_.prefix,
|
|
3106
3131
|
{
|
|
@@ -3116,51 +3141,51 @@ const zt = Object.assign(On, {
|
|
|
3116
3141
|
[K.selected]: r,
|
|
3117
3142
|
[K.disabled]: l
|
|
3118
3143
|
}
|
|
3119
|
-
),
|
|
3120
|
-
r || l || (d(c),
|
|
3144
|
+
), $ = k(K.tabLabel, K[e], _[e]), R = (P) => {
|
|
3145
|
+
r || l || (d(c), P.currentTarget.scrollIntoView({ behavior: "smooth", inline: "center", block: "nearest" }));
|
|
3121
3146
|
}, D = /* @__PURE__ */ n.jsxs(
|
|
3122
3147
|
"button",
|
|
3123
3148
|
{
|
|
3124
3149
|
className: L,
|
|
3125
3150
|
role: "tab",
|
|
3126
|
-
"aria-label":
|
|
3151
|
+
"aria-label": p,
|
|
3127
3152
|
"aria-selected": r,
|
|
3128
3153
|
"aria-disabled": l,
|
|
3129
3154
|
"aria-controls": `tab-panel-${c}`,
|
|
3130
3155
|
"data-testid": `tab-item-${c}`,
|
|
3131
|
-
onClick:
|
|
3156
|
+
onClick: R,
|
|
3132
3157
|
children: [
|
|
3133
|
-
|
|
3158
|
+
f && /* @__PURE__ */ n.jsx(
|
|
3134
3159
|
"span",
|
|
3135
3160
|
{
|
|
3136
|
-
className:
|
|
3161
|
+
className: M,
|
|
3137
3162
|
...S,
|
|
3138
3163
|
"data-testid": `tab-prefix-${c}`,
|
|
3139
|
-
children:
|
|
3164
|
+
children: f
|
|
3140
3165
|
}
|
|
3141
3166
|
),
|
|
3142
|
-
/* @__PURE__ */ n.jsx("span", { className:
|
|
3143
|
-
|
|
3167
|
+
/* @__PURE__ */ n.jsx("span", { className: $, "data-testid": `tab-label-${c}`, children: p }),
|
|
3168
|
+
m && /* @__PURE__ */ n.jsx(
|
|
3144
3169
|
"span",
|
|
3145
3170
|
{
|
|
3146
3171
|
className: j,
|
|
3147
3172
|
...x,
|
|
3148
3173
|
"data-testid": `tab-postfix-${c}`,
|
|
3149
|
-
children:
|
|
3174
|
+
children: m
|
|
3150
3175
|
}
|
|
3151
3176
|
)
|
|
3152
3177
|
]
|
|
3153
3178
|
}
|
|
3154
3179
|
);
|
|
3155
3180
|
return s ? /* @__PURE__ */ n.jsx(es, { ...w, "data-testid": `tab-badge-${c}`, children: D }) : D;
|
|
3156
|
-
},
|
|
3181
|
+
}, Ti = ({
|
|
3157
3182
|
mode: e,
|
|
3158
3183
|
items: a,
|
|
3159
|
-
size: r =
|
|
3160
|
-
isAllItemsDisabled: s =
|
|
3184
|
+
size: r = ji,
|
|
3185
|
+
isAllItemsDisabled: s = ki
|
|
3161
3186
|
}) => {
|
|
3162
|
-
const { activeTab: i, setTab: o } =
|
|
3163
|
-
return /* @__PURE__ */ n.jsx(
|
|
3187
|
+
const { activeTab: i, setTab: o } = sr(), l = Qa();
|
|
3188
|
+
return /* @__PURE__ */ n.jsx(fi, { size: r, withControls: l, children: /* @__PURE__ */ n.jsx(
|
|
3164
3189
|
"div",
|
|
3165
3190
|
{
|
|
3166
3191
|
role: "tablist",
|
|
@@ -3168,7 +3193,7 @@ const zt = Object.assign(On, {
|
|
|
3168
3193
|
"aria-orientation": "horizontal",
|
|
3169
3194
|
className: k(K.tabBar, K[e]),
|
|
3170
3195
|
children: a.map((d) => /* @__PURE__ */ n.jsx(
|
|
3171
|
-
|
|
3196
|
+
Ri,
|
|
3172
3197
|
{
|
|
3173
3198
|
size: r,
|
|
3174
3199
|
item: d,
|
|
@@ -3183,7 +3208,7 @@ const zt = Object.assign(On, {
|
|
|
3183
3208
|
))
|
|
3184
3209
|
}
|
|
3185
3210
|
) });
|
|
3186
|
-
},
|
|
3211
|
+
}, Ni = ({ tabValue: e, children: a, ...r }) => /* @__PURE__ */ n.jsx(
|
|
3187
3212
|
"div",
|
|
3188
3213
|
{
|
|
3189
3214
|
role: "tabpanel",
|
|
@@ -3192,32 +3217,32 @@ const zt = Object.assign(On, {
|
|
|
3192
3217
|
...r,
|
|
3193
3218
|
children: a
|
|
3194
3219
|
}
|
|
3195
|
-
),
|
|
3196
|
-
const { activeTab: r } =
|
|
3220
|
+
), Ai = ({ children: e, ...a }) => {
|
|
3221
|
+
const { activeTab: r } = sr(), s = Array.isArray(e) ? e : [e], i = (o, l) => _t.isValidElement(o) && typeof o.props == "object" && o.props !== null && l in o.props;
|
|
3197
3222
|
return /* @__PURE__ */ n.jsx("div", { "data-testid": "tab-content", ...a, children: s.map((o) => i(o, "tabValue") && String(o.props.tabValue) === r ? o : null) });
|
|
3198
|
-
},
|
|
3199
|
-
Provider:
|
|
3200
|
-
Content:
|
|
3201
|
-
Panel:
|
|
3202
|
-
Bar:
|
|
3203
|
-
},
|
|
3204
|
-
root:
|
|
3205
|
-
open:
|
|
3206
|
-
xs:
|
|
3207
|
-
s:
|
|
3208
|
-
m:
|
|
3209
|
-
neutral:
|
|
3210
|
-
contrast:
|
|
3211
|
-
accent:
|
|
3212
|
-
typography:
|
|
3213
|
-
title:
|
|
3214
|
-
text:
|
|
3215
|
-
mediaWrapper:
|
|
3216
|
-
content:
|
|
3217
|
-
closeButton:
|
|
3218
|
-
hasMedia:
|
|
3219
|
-
buttonStack:
|
|
3220
|
-
},
|
|
3223
|
+
}, Il = {
|
|
3224
|
+
Provider: Ii,
|
|
3225
|
+
Content: Ai,
|
|
3226
|
+
Panel: Ni,
|
|
3227
|
+
Bar: Ti
|
|
3228
|
+
}, Di = "_root_1fbbw_34", Oi = "_open_1fbbw_51", Pi = "_xs_1fbbw_55", qi = "_s_1fbbw_61", Bi = "_m_1fbbw_67", Ui = "_neutral_1fbbw_73", zi = "_contrast_1fbbw_78", Fi = "_accent_1fbbw_84", Wi = "_typography_1fbbw_89", Vi = "_title_1fbbw_89", Hi = "_text_1fbbw_93", Gi = "_mediaWrapper_1fbbw_97", Zi = "_content_1fbbw_112", Yi = "_closeButton_1fbbw_116", Ji = "_hasMedia_1fbbw_142", Ki = "_buttonStack_1fbbw_148", ne = {
|
|
3229
|
+
root: Di,
|
|
3230
|
+
open: Oi,
|
|
3231
|
+
xs: Pi,
|
|
3232
|
+
s: qi,
|
|
3233
|
+
m: Bi,
|
|
3234
|
+
neutral: Ui,
|
|
3235
|
+
contrast: zi,
|
|
3236
|
+
accent: Fi,
|
|
3237
|
+
typography: Wi,
|
|
3238
|
+
title: Vi,
|
|
3239
|
+
text: Hi,
|
|
3240
|
+
mediaWrapper: Gi,
|
|
3241
|
+
content: Zi,
|
|
3242
|
+
closeButton: Yi,
|
|
3243
|
+
hasMedia: Ji,
|
|
3244
|
+
buttonStack: Ki
|
|
3245
|
+
}, Xi = () => /* @__PURE__ */ n.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ n.jsx("path", { d: "M18 6 6 18M6 6l12 12" }) }), Qi = () => /* @__PURE__ */ n.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 9", fill: "currentColor", children: [
|
|
3221
3246
|
/* @__PURE__ */ n.jsx(
|
|
3222
3247
|
"path",
|
|
3223
3248
|
{
|
|
@@ -3228,7 +3253,7 @@ const zt = Object.assign(On, {
|
|
|
3228
3253
|
] }), pe = {
|
|
3229
3254
|
shiftX: 64,
|
|
3230
3255
|
adjustY: 1
|
|
3231
|
-
}, fe = { adjustX: 1, shiftY: !0 },
|
|
3256
|
+
}, fe = { adjustX: 1, shiftY: !0 }, el = {
|
|
3232
3257
|
left: {
|
|
3233
3258
|
points: ["cr", "cl"],
|
|
3234
3259
|
overflow: fe,
|
|
@@ -3289,7 +3314,7 @@ const zt = Object.assign(On, {
|
|
|
3289
3314
|
overflow: fe,
|
|
3290
3315
|
offset: [-22, 0]
|
|
3291
3316
|
}
|
|
3292
|
-
},
|
|
3317
|
+
}, tl = {
|
|
3293
3318
|
left: {
|
|
3294
3319
|
points: ["cr", "cl"],
|
|
3295
3320
|
overflow: fe,
|
|
@@ -3350,7 +3375,7 @@ const zt = Object.assign(On, {
|
|
|
3350
3375
|
overflow: fe,
|
|
3351
3376
|
offset: [-16, 0]
|
|
3352
3377
|
}
|
|
3353
|
-
},
|
|
3378
|
+
}, rl = {
|
|
3354
3379
|
neutral: {
|
|
3355
3380
|
1: [{ mode: "secondary", buttonStyle: "neutral", size: "s" }],
|
|
3356
3381
|
2: [
|
|
@@ -3387,8 +3412,8 @@ const zt = Object.assign(On, {
|
|
|
3387
3412
|
{ mode: "primary", buttonStyle: "accent", size: "s" }
|
|
3388
3413
|
]
|
|
3389
3414
|
}
|
|
3390
|
-
},
|
|
3391
|
-
const s =
|
|
3415
|
+
}, al = (e, a, r) => Math.min(Math.max(e, a), r), sl = (e, a, r) => {
|
|
3416
|
+
const s = al(a, 1, 3), i = rl[r][s];
|
|
3392
3417
|
return i[Math.min(e, i.length - 1)];
|
|
3393
3418
|
}, Ft = ({
|
|
3394
3419
|
text: e,
|
|
@@ -3400,27 +3425,27 @@ const zt = Object.assign(On, {
|
|
|
3400
3425
|
onClose: l,
|
|
3401
3426
|
buttons: d,
|
|
3402
3427
|
buttonProps: c,
|
|
3403
|
-
showClose:
|
|
3428
|
+
showClose: p
|
|
3404
3429
|
}) => {
|
|
3405
|
-
const
|
|
3430
|
+
const f = ["neutral", "accent"].includes(s) ? "contrast" : "primary", g = i === "m", m = !!(a && g), h = !!(r && g), y = d && !!d.length, S = !!(p && g) || !p && g && !y, v = i === "xs" ? 4 : 3;
|
|
3406
3431
|
return /* @__PURE__ */ n.jsxs("div", { className: ne.content, children: [
|
|
3407
|
-
|
|
3432
|
+
h && /* @__PURE__ */ n.jsx("div", { className: k(ne.mediaWrapper, o.mediaWrapper), children: r }),
|
|
3408
3433
|
/* @__PURE__ */ n.jsxs("div", { className: o.textWrapper, children: [
|
|
3409
|
-
|
|
3410
|
-
|
|
3434
|
+
m && /* @__PURE__ */ n.jsx(
|
|
3435
|
+
qt.Subtitle,
|
|
3411
3436
|
{
|
|
3412
3437
|
className: k(ne.typography, ne.title, o.typography),
|
|
3413
3438
|
size: 1,
|
|
3414
3439
|
as: "h3",
|
|
3415
|
-
typographyStyle:
|
|
3440
|
+
typographyStyle: f,
|
|
3416
3441
|
children: a
|
|
3417
3442
|
}
|
|
3418
3443
|
),
|
|
3419
3444
|
/* @__PURE__ */ n.jsx(
|
|
3420
|
-
|
|
3445
|
+
qt.Label,
|
|
3421
3446
|
{
|
|
3422
3447
|
className: k(ne.typography, ne.text, o.typography),
|
|
3423
|
-
typographyStyle:
|
|
3448
|
+
typographyStyle: f,
|
|
3424
3449
|
size: v,
|
|
3425
3450
|
children: e
|
|
3426
3451
|
}
|
|
@@ -3431,34 +3456,34 @@ const zt = Object.assign(On, {
|
|
|
3431
3456
|
{
|
|
3432
3457
|
type: "button",
|
|
3433
3458
|
className: k(ne.closeButton, ne[s], o.closeButton, {
|
|
3434
|
-
[ne.hasMedia]:
|
|
3459
|
+
[ne.hasMedia]: h
|
|
3435
3460
|
}),
|
|
3436
3461
|
onClick: l,
|
|
3437
3462
|
"aria-label": "Закрыть подсказку",
|
|
3438
3463
|
"data-testid": "tooltip-close-button",
|
|
3439
|
-
children: /* @__PURE__ */ n.jsx(
|
|
3464
|
+
children: /* @__PURE__ */ n.jsx(Xi, {})
|
|
3440
3465
|
}
|
|
3441
3466
|
),
|
|
3442
|
-
|
|
3467
|
+
g && y && /* @__PURE__ */ n.jsx("div", { className: ne.buttonStack, children: d.map((x, _) => {
|
|
3443
3468
|
const L = {
|
|
3444
|
-
...
|
|
3469
|
+
...sl(_, d.length, s),
|
|
3445
3470
|
...c,
|
|
3446
3471
|
...x
|
|
3447
|
-
}, { closeOnClick:
|
|
3472
|
+
}, { closeOnClick: M, ...j } = L, $ = (R) => {
|
|
3448
3473
|
var D;
|
|
3449
|
-
(D = j.onClick) == null || D.call(j,
|
|
3474
|
+
(D = j.onClick) == null || D.call(j, R), M && (l == null || l());
|
|
3450
3475
|
};
|
|
3451
3476
|
return /* @__PURE__ */ n.jsx(
|
|
3452
|
-
|
|
3477
|
+
ha,
|
|
3453
3478
|
{
|
|
3454
3479
|
...j,
|
|
3455
|
-
onClick:
|
|
3480
|
+
onClick: $
|
|
3456
3481
|
},
|
|
3457
3482
|
_
|
|
3458
3483
|
);
|
|
3459
3484
|
}) })
|
|
3460
3485
|
] });
|
|
3461
|
-
},
|
|
3486
|
+
}, Rl = ({
|
|
3462
3487
|
customContent: e,
|
|
3463
3488
|
children: a,
|
|
3464
3489
|
placement: r = "top",
|
|
@@ -3468,89 +3493,90 @@ const zt = Object.assign(On, {
|
|
|
3468
3493
|
showArrow: l = !0,
|
|
3469
3494
|
showClose: d = !0,
|
|
3470
3495
|
trigger: c = "hover",
|
|
3471
|
-
variant:
|
|
3472
|
-
size:
|
|
3473
|
-
text:
|
|
3474
|
-
title:
|
|
3475
|
-
media:
|
|
3476
|
-
buttons:
|
|
3496
|
+
variant: p = "neutral",
|
|
3497
|
+
size: f = "s",
|
|
3498
|
+
text: g,
|
|
3499
|
+
title: m,
|
|
3500
|
+
media: h,
|
|
3501
|
+
buttons: y,
|
|
3477
3502
|
buttonProps: S,
|
|
3478
3503
|
onClose: v,
|
|
3479
3504
|
...x
|
|
3480
3505
|
}) => {
|
|
3481
|
-
const [_, w] =
|
|
3506
|
+
const [_, w] = ce(!1), [L, M] = ce(!1), j = f === "m" ? el : tl, $ = () => {
|
|
3482
3507
|
w(!1), v == null || v();
|
|
3483
|
-
},
|
|
3508
|
+
}, R = e || (f === "m" ? /* @__PURE__ */ n.jsx(
|
|
3484
3509
|
Ft,
|
|
3485
3510
|
{
|
|
3486
3511
|
classNames: s,
|
|
3487
|
-
text:
|
|
3488
|
-
variant:
|
|
3489
|
-
size:
|
|
3490
|
-
onClose:
|
|
3491
|
-
title:
|
|
3492
|
-
media:
|
|
3512
|
+
text: g,
|
|
3513
|
+
variant: p,
|
|
3514
|
+
size: f,
|
|
3515
|
+
onClose: $,
|
|
3516
|
+
title: m,
|
|
3517
|
+
media: h,
|
|
3493
3518
|
showClose: d,
|
|
3494
|
-
buttons:
|
|
3519
|
+
buttons: y,
|
|
3495
3520
|
buttonProps: S
|
|
3496
3521
|
}
|
|
3497
3522
|
) : /* @__PURE__ */ n.jsx(
|
|
3498
3523
|
Ft,
|
|
3499
3524
|
{
|
|
3500
3525
|
classNames: s,
|
|
3501
|
-
text:
|
|
3502
|
-
variant:
|
|
3503
|
-
size:
|
|
3504
|
-
onClose:
|
|
3526
|
+
text: g,
|
|
3527
|
+
variant: p,
|
|
3528
|
+
size: f,
|
|
3529
|
+
onClose: $
|
|
3505
3530
|
}
|
|
3506
3531
|
));
|
|
3507
|
-
return
|
|
3532
|
+
return de(() => {
|
|
3508
3533
|
if (_) {
|
|
3509
|
-
const D = requestAnimationFrame(() =>
|
|
3534
|
+
const D = requestAnimationFrame(() => M(!0));
|
|
3510
3535
|
return () => cancelAnimationFrame(D);
|
|
3511
3536
|
}
|
|
3512
|
-
|
|
3537
|
+
M(!1);
|
|
3513
3538
|
}, [_]), /* @__PURE__ */ n.jsx(
|
|
3514
3539
|
$r,
|
|
3515
3540
|
{
|
|
3516
3541
|
visible: _,
|
|
3517
3542
|
onVisibleChange: w,
|
|
3518
3543
|
classNames: {
|
|
3519
|
-
root: k(ne.root, ne[
|
|
3544
|
+
root: k(ne.root, ne[p], ne[f], L && ne.open),
|
|
3520
3545
|
...x.classNames
|
|
3521
3546
|
},
|
|
3522
3547
|
placement: r,
|
|
3523
|
-
overlay: () =>
|
|
3548
|
+
overlay: () => R,
|
|
3524
3549
|
trigger: c,
|
|
3525
3550
|
mouseEnterDelay: i,
|
|
3526
3551
|
mouseLeaveDelay: o,
|
|
3527
3552
|
motion: { motionName: "tooltipMotion" },
|
|
3528
3553
|
builtinPlacements: j,
|
|
3529
3554
|
showArrow: l ? {
|
|
3530
|
-
content: /* @__PURE__ */ n.jsx(
|
|
3531
|
-
className: `tooltipArrow tooltipArrow-${
|
|
3555
|
+
content: /* @__PURE__ */ n.jsx(Qi, {}),
|
|
3556
|
+
className: `tooltipArrow tooltipArrow-${f}`
|
|
3532
3557
|
} : !1,
|
|
3533
3558
|
destroyTooltipOnHide: !0,
|
|
3534
3559
|
...x,
|
|
3535
3560
|
children: a
|
|
3536
3561
|
}
|
|
3537
3562
|
);
|
|
3538
|
-
},
|
|
3539
|
-
segmentedControl:
|
|
3540
|
-
segment:
|
|
3541
|
-
activeSegmentIndicator:
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3563
|
+
}, nl = "_segmentedControl_1ggwv_5", ol = "_segment_1ggwv_5", il = "_activeSegmentIndicator_1ggwv_54", ll = "_selected_1ggwv_78", cl = "_stretched_1ggwv_87", dl = "_disabled_1ggwv_95", ul = "_s_1ggwv_5", _l = "_icon_1ggwv_108", pl = "_label_1ggwv_112", fl = "_m_1ggwv_116", gl = "_l_1ggwv_112", Se = {
|
|
3564
|
+
segmentedControl: nl,
|
|
3565
|
+
segment: ol,
|
|
3566
|
+
activeSegmentIndicator: il,
|
|
3567
|
+
selected: ll,
|
|
3568
|
+
stretched: cl,
|
|
3569
|
+
disabled: dl,
|
|
3570
|
+
s: ul,
|
|
3571
|
+
icon: _l,
|
|
3572
|
+
label: pl,
|
|
3573
|
+
m: fl,
|
|
3574
|
+
l: gl
|
|
3548
3575
|
}, Wt = {
|
|
3549
|
-
s:
|
|
3550
|
-
m:
|
|
3551
|
-
l:
|
|
3552
|
-
},
|
|
3553
|
-
var _;
|
|
3576
|
+
s: oe["typography-label-3-regular"],
|
|
3577
|
+
m: oe["typography-label-2-regular"],
|
|
3578
|
+
l: oe["typography-label-2-regular"]
|
|
3579
|
+
}, Tl = (e) => {
|
|
3554
3580
|
const {
|
|
3555
3581
|
className: a,
|
|
3556
3582
|
defaultValue: r,
|
|
@@ -3558,76 +3584,83 @@ const zt = Object.assign(On, {
|
|
|
3558
3584
|
size: i = "m",
|
|
3559
3585
|
segments: o,
|
|
3560
3586
|
stretched: l,
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3587
|
+
disabled: d = !1,
|
|
3588
|
+
mode: c = "label",
|
|
3589
|
+
onChange: p,
|
|
3590
|
+
...f
|
|
3591
|
+
} = e, g = pt(), [m, h] = ce(r || o[0].value), [y, S] = ce({ width: 0, left: 0, height: 0 }), v = qe(null);
|
|
3592
|
+
de(() => {
|
|
3565
3593
|
s && h(s);
|
|
3566
|
-
}, [s]),
|
|
3567
|
-
|
|
3568
|
-
}, [
|
|
3569
|
-
const
|
|
3570
|
-
if (!(
|
|
3571
|
-
const w =
|
|
3594
|
+
}, [s]), Zt(() => {
|
|
3595
|
+
x();
|
|
3596
|
+
}, [m, o, i, l, c]);
|
|
3597
|
+
const x = () => {
|
|
3598
|
+
if (!(v != null && v.current)) return;
|
|
3599
|
+
const w = v.current.querySelector(
|
|
3572
3600
|
'[data-is-active-segment="true"]'
|
|
3573
3601
|
);
|
|
3574
|
-
w &&
|
|
3602
|
+
w && S({
|
|
3575
3603
|
width: w.offsetWidth,
|
|
3576
|
-
left: w.offsetLeft
|
|
3604
|
+
left: w.offsetLeft,
|
|
3605
|
+
height: w.offsetHeight
|
|
3577
3606
|
});
|
|
3578
|
-
},
|
|
3579
|
-
h(w),
|
|
3607
|
+
}, _ = (w) => {
|
|
3608
|
+
d || (h(w), p == null || p(w));
|
|
3580
3609
|
};
|
|
3581
3610
|
return (o == null ? void 0 : o.length) === 0 ? null : /* @__PURE__ */ n.jsxs(
|
|
3582
3611
|
"div",
|
|
3583
3612
|
{
|
|
3584
3613
|
className: k(
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3614
|
+
Se.segmentedControl,
|
|
3615
|
+
Se[i],
|
|
3616
|
+
Se[c],
|
|
3588
3617
|
{
|
|
3589
|
-
[
|
|
3618
|
+
[Se.stretched]: l,
|
|
3619
|
+
[Se.disabled]: d
|
|
3590
3620
|
},
|
|
3591
3621
|
a
|
|
3592
3622
|
),
|
|
3593
3623
|
"data-testid": "segmented-control-container",
|
|
3594
|
-
ref:
|
|
3624
|
+
ref: v,
|
|
3625
|
+
...f,
|
|
3595
3626
|
children: [
|
|
3596
|
-
o == null ? void 0 : o.map(({ label: w, value: L },
|
|
3597
|
-
const
|
|
3627
|
+
o == null ? void 0 : o.map(({ label: w, value: L, containerProps: M = {} }, j) => {
|
|
3628
|
+
const { className: $, ...R } = M, D = () => _(L), P = m === L;
|
|
3598
3629
|
return /* @__PURE__ */ n.jsxs(Oe, { children: [
|
|
3599
3630
|
/* @__PURE__ */ n.jsx(
|
|
3600
3631
|
"input",
|
|
3601
3632
|
{
|
|
3602
|
-
id:
|
|
3633
|
+
id: g + JSON.stringify(L),
|
|
3603
3634
|
value: JSON.stringify(L),
|
|
3604
3635
|
type: "radio",
|
|
3605
|
-
checked:
|
|
3606
|
-
|
|
3636
|
+
checked: P,
|
|
3637
|
+
readOnly: !0
|
|
3607
3638
|
}
|
|
3608
3639
|
),
|
|
3609
3640
|
/* @__PURE__ */ n.jsx(
|
|
3610
3641
|
"label",
|
|
3611
3642
|
{
|
|
3612
|
-
"data-is-active-segment":
|
|
3613
|
-
className: k(
|
|
3614
|
-
htmlFor:
|
|
3643
|
+
"data-is-active-segment": P,
|
|
3644
|
+
className: k(Se.segment, Wt[i], { [Se.selected]: P }, $),
|
|
3645
|
+
htmlFor: g + JSON.stringify(L),
|
|
3615
3646
|
"data-testid": "segmented-control-segment",
|
|
3647
|
+
onClick: D,
|
|
3648
|
+
...R,
|
|
3616
3649
|
children: w
|
|
3617
3650
|
}
|
|
3618
3651
|
)
|
|
3619
|
-
] }, Ke(JSON.stringify(L)) +
|
|
3652
|
+
] }, Ke(JSON.stringify(L)) + j);
|
|
3620
3653
|
}),
|
|
3621
3654
|
/* @__PURE__ */ n.jsx(
|
|
3622
3655
|
"div",
|
|
3623
3656
|
{
|
|
3624
|
-
className: k(
|
|
3625
|
-
"data-testid": "segmented-control-active-
|
|
3657
|
+
className: k(Se.activeSegmentIndicator, Wt[i]),
|
|
3658
|
+
"data-testid": "segmented-control-segment-active-indicator",
|
|
3626
3659
|
style: {
|
|
3627
3660
|
width: y.width,
|
|
3628
|
-
left: y.left
|
|
3629
|
-
|
|
3630
|
-
|
|
3661
|
+
left: y.left,
|
|
3662
|
+
height: y.height
|
|
3663
|
+
}
|
|
3631
3664
|
}
|
|
3632
3665
|
)
|
|
3633
3666
|
]
|
|
@@ -3635,25 +3668,25 @@ const zt = Object.assign(On, {
|
|
|
3635
3668
|
);
|
|
3636
3669
|
};
|
|
3637
3670
|
export {
|
|
3638
|
-
|
|
3671
|
+
yl as Avatar,
|
|
3639
3672
|
es as Badge,
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3673
|
+
ha as Button,
|
|
3674
|
+
Ll as Checkbox,
|
|
3675
|
+
wl as ConfigProvider,
|
|
3676
|
+
kl as Helper,
|
|
3677
|
+
vl as Image,
|
|
3678
|
+
Ml as List,
|
|
3679
|
+
hs as Loader,
|
|
3680
|
+
$l as Radio,
|
|
3681
|
+
Tl as SegmentedControl,
|
|
3682
|
+
Il as Tabs,
|
|
3683
|
+
Sl as Tag,
|
|
3684
|
+
jl as TextArea,
|
|
3685
|
+
El as TextInput,
|
|
3686
|
+
Rl as Tooltip,
|
|
3687
|
+
qt as Typography,
|
|
3655
3688
|
ms as enUS,
|
|
3656
|
-
|
|
3689
|
+
Cl as ruRU,
|
|
3657
3690
|
ys as useConfig,
|
|
3658
|
-
|
|
3691
|
+
xl as useLocale
|
|
3659
3692
|
};
|