skillgrid 0.0.24-dev-40201-checkbox.1161670 → 0.0.24-dev-38682-image.1169070
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,6 +1,6 @@
|
|
|
1
1
|
import * as Et from "react";
|
|
2
2
|
import Lt, { forwardRef as Q, useState as De, useEffect as we, useRef as We, useCallback as Ce, Fragment as Mt, createContext as ra, useContext as sa, useLayoutEffect as na, useImperativeHandle as oa, useId as $t } from "react";
|
|
3
|
-
import { clsx as
|
|
3
|
+
import { clsx as q } from "clsx";
|
|
4
4
|
import './index.css';function ia(t) {
|
|
5
5
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
6
6
|
}
|
|
@@ -19,12 +19,12 @@ function la() {
|
|
|
19
19
|
if (ft) return ke;
|
|
20
20
|
ft = 1;
|
|
21
21
|
var t = Lt, r = Symbol.for("react.element"), a = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, i = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, n = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
22
|
-
function c(
|
|
23
|
-
var
|
|
24
|
-
f !== void 0 && (h = "" + f), d.key !== void 0 && (h = "" + d.key), d.ref !== void 0 && (
|
|
25
|
-
for (
|
|
26
|
-
if (
|
|
27
|
-
return { $$typeof: r, type:
|
|
22
|
+
function c(_, d, f) {
|
|
23
|
+
var p, g = {}, h = null, b = null;
|
|
24
|
+
f !== void 0 && (h = "" + f), d.key !== void 0 && (h = "" + d.key), d.ref !== void 0 && (b = d.ref);
|
|
25
|
+
for (p in d) s.call(d, p) && !n.hasOwnProperty(p) && (g[p] = d[p]);
|
|
26
|
+
if (_ && _.defaultProps) for (p in d = _.defaultProps, d) g[p] === void 0 && (g[p] = d[p]);
|
|
27
|
+
return { $$typeof: r, type: _, key: h, ref: b, props: g, _owner: i.current };
|
|
28
28
|
}
|
|
29
29
|
return ke.Fragment = a, ke.jsx = c, ke.jsxs = c, ke;
|
|
30
30
|
}
|
|
@@ -41,39 +41,39 @@ var Te = {};
|
|
|
41
41
|
var gt;
|
|
42
42
|
function ca() {
|
|
43
43
|
return gt || (gt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
44
|
-
var t = Lt, r = Symbol.for("react.element"), a = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), n = Symbol.for("react.profiler"), c = Symbol.for("react.provider"),
|
|
44
|
+
var t = Lt, r = Symbol.for("react.element"), a = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), n = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), _ = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), y = Symbol.iterator, w = "@@iterator";
|
|
45
45
|
function C(e) {
|
|
46
46
|
if (e === null || typeof e != "object")
|
|
47
47
|
return null;
|
|
48
|
-
var l =
|
|
48
|
+
var l = y && e[y] || e[w];
|
|
49
49
|
return typeof l == "function" ? l : null;
|
|
50
50
|
}
|
|
51
|
-
var
|
|
52
|
-
function
|
|
51
|
+
var S = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
52
|
+
function m(e) {
|
|
53
53
|
{
|
|
54
54
|
for (var l = arguments.length, u = new Array(l > 1 ? l - 1 : 0), v = 1; v < l; v++)
|
|
55
55
|
u[v - 1] = arguments[v];
|
|
56
|
-
|
|
56
|
+
R("error", e, u);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function R(e, l, u) {
|
|
60
60
|
{
|
|
61
|
-
var v =
|
|
61
|
+
var v = S.ReactDebugCurrentFrame, j = v.getStackAddendum();
|
|
62
62
|
j !== "" && (l += "%s", u = u.concat([j]));
|
|
63
|
-
var
|
|
63
|
+
var A = u.map(function(L) {
|
|
64
64
|
return String(L);
|
|
65
65
|
});
|
|
66
|
-
|
|
66
|
+
A.unshift("Warning: " + l), Function.prototype.apply.call(console[e], console, A);
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
-
var
|
|
70
|
-
|
|
69
|
+
var D = !1, k = !1, T = !1, I = !1, U = !1, N;
|
|
70
|
+
N = Symbol.for("react.module.reference");
|
|
71
71
|
function z(e) {
|
|
72
|
-
return !!(typeof e == "string" || typeof e == "function" || e === s || e === n ||
|
|
72
|
+
return !!(typeof e == "string" || typeof e == "function" || e === s || e === n || U || e === i || e === f || e === p || I || e === b || D || k || T || typeof e == "object" && e !== null && (e.$$typeof === h || e.$$typeof === g || e.$$typeof === c || e.$$typeof === _ || e.$$typeof === d || // This needs to include all possible module reference object
|
|
73
73
|
// types supported by any Flight configuration anywhere since
|
|
74
74
|
// we don't know which Flight build this will end up being used
|
|
75
75
|
// with.
|
|
76
|
-
e.$$typeof ===
|
|
76
|
+
e.$$typeof === N || e.getModuleId !== void 0));
|
|
77
77
|
}
|
|
78
78
|
function x(e, l, u) {
|
|
79
79
|
var v = e.displayName;
|
|
@@ -88,7 +88,7 @@ function ca() {
|
|
|
88
88
|
function O(e) {
|
|
89
89
|
if (e == null)
|
|
90
90
|
return null;
|
|
91
|
-
if (typeof e.tag == "number" &&
|
|
91
|
+
if (typeof e.tag == "number" && m("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
92
92
|
return e.displayName || e.name || null;
|
|
93
93
|
if (typeof e == "string")
|
|
94
94
|
return e;
|
|
@@ -103,12 +103,12 @@ function ca() {
|
|
|
103
103
|
return "StrictMode";
|
|
104
104
|
case f:
|
|
105
105
|
return "Suspense";
|
|
106
|
-
case
|
|
106
|
+
case p:
|
|
107
107
|
return "SuspenseList";
|
|
108
108
|
}
|
|
109
109
|
if (typeof e == "object")
|
|
110
110
|
switch (e.$$typeof) {
|
|
111
|
-
case
|
|
111
|
+
case _:
|
|
112
112
|
var l = e;
|
|
113
113
|
return W(l) + ".Consumer";
|
|
114
114
|
case c:
|
|
@@ -120,9 +120,9 @@ function ca() {
|
|
|
120
120
|
var v = e.displayName || null;
|
|
121
121
|
return v !== null ? v : O(e.type) || "Memo";
|
|
122
122
|
case h: {
|
|
123
|
-
var j = e,
|
|
123
|
+
var j = e, A = j._payload, L = j._init;
|
|
124
124
|
try {
|
|
125
|
-
return O(L(
|
|
125
|
+
return O(L(A));
|
|
126
126
|
} catch {
|
|
127
127
|
return null;
|
|
128
128
|
}
|
|
@@ -130,14 +130,14 @@ function ca() {
|
|
|
130
130
|
}
|
|
131
131
|
return null;
|
|
132
132
|
}
|
|
133
|
-
var $ = Object.assign,
|
|
133
|
+
var $ = Object.assign, B = 0, V, G, Z, te, ae, re, be;
|
|
134
134
|
function se() {
|
|
135
135
|
}
|
|
136
136
|
se.__reactDisabledLog = !0;
|
|
137
137
|
function ye() {
|
|
138
138
|
{
|
|
139
|
-
if (
|
|
140
|
-
V = console.log,
|
|
139
|
+
if (B === 0) {
|
|
140
|
+
V = console.log, G = console.info, Z = console.warn, te = console.error, ae = console.group, re = console.groupCollapsed, be = console.groupEnd;
|
|
141
141
|
var e = {
|
|
142
142
|
configurable: !0,
|
|
143
143
|
enumerable: !0,
|
|
@@ -154,12 +154,12 @@ function ca() {
|
|
|
154
154
|
groupEnd: e
|
|
155
155
|
});
|
|
156
156
|
}
|
|
157
|
-
|
|
157
|
+
B++;
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function Ee() {
|
|
161
161
|
{
|
|
162
|
-
if (
|
|
162
|
+
if (B--, B === 0) {
|
|
163
163
|
var e = {
|
|
164
164
|
configurable: !0,
|
|
165
165
|
enumerable: !0,
|
|
@@ -170,10 +170,10 @@ function ca() {
|
|
|
170
170
|
value: V
|
|
171
171
|
}),
|
|
172
172
|
info: $({}, e, {
|
|
173
|
-
value:
|
|
173
|
+
value: G
|
|
174
174
|
}),
|
|
175
175
|
warn: $({}, e, {
|
|
176
|
-
value:
|
|
176
|
+
value: Z
|
|
177
177
|
}),
|
|
178
178
|
error: $({}, e, {
|
|
179
179
|
value: te
|
|
@@ -189,10 +189,10 @@ function ca() {
|
|
|
189
189
|
})
|
|
190
190
|
});
|
|
191
191
|
}
|
|
192
|
-
|
|
192
|
+
B < 0 && m("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
|
-
var
|
|
195
|
+
var Le = S.ReactCurrentDispatcher, ue;
|
|
196
196
|
function ie(e, l, u) {
|
|
197
197
|
{
|
|
198
198
|
if (ue === void 0)
|
|
@@ -223,8 +223,8 @@ function ca() {
|
|
|
223
223
|
pe = !0;
|
|
224
224
|
var j = Error.prepareStackTrace;
|
|
225
225
|
Error.prepareStackTrace = void 0;
|
|
226
|
-
var
|
|
227
|
-
|
|
226
|
+
var A;
|
|
227
|
+
A = Le.current, Le.current = null, ye();
|
|
228
228
|
try {
|
|
229
229
|
if (l) {
|
|
230
230
|
var L = function() {
|
|
@@ -259,27 +259,27 @@ function ca() {
|
|
|
259
259
|
}
|
|
260
260
|
} catch (X) {
|
|
261
261
|
if (X && v && typeof X.stack == "string") {
|
|
262
|
-
for (var
|
|
262
|
+
for (var E = X.stack.split(`
|
|
263
263
|
`), Y = v.stack.split(`
|
|
264
|
-
`),
|
|
264
|
+
`), F = E.length - 1, H = Y.length - 1; F >= 1 && H >= 0 && E[F] !== Y[H]; )
|
|
265
265
|
H--;
|
|
266
|
-
for (;
|
|
267
|
-
if (
|
|
268
|
-
if (
|
|
266
|
+
for (; F >= 1 && H >= 0; F--, H--)
|
|
267
|
+
if (E[F] !== Y[H]) {
|
|
268
|
+
if (F !== 1 || H !== 1)
|
|
269
269
|
do
|
|
270
|
-
if (
|
|
270
|
+
if (F--, H--, H < 0 || E[F] !== Y[H]) {
|
|
271
271
|
var ne = `
|
|
272
|
-
` +
|
|
272
|
+
` + E[F].replace(" at new ", " at ");
|
|
273
273
|
return e.displayName && ne.includes("<anonymous>") && (ne = ne.replace("<anonymous>", e.displayName)), typeof e == "function" && le.set(e, ne), ne;
|
|
274
274
|
}
|
|
275
|
-
while (
|
|
275
|
+
while (F >= 1 && H >= 0);
|
|
276
276
|
break;
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
279
|
} finally {
|
|
280
|
-
pe = !1,
|
|
280
|
+
pe = !1, Le.current = A, Ee(), Error.prepareStackTrace = j;
|
|
281
281
|
}
|
|
282
|
-
var
|
|
282
|
+
var $e = e ? e.displayName || e.name : "", ve = $e ? ie($e) : "";
|
|
283
283
|
return typeof e == "function" && le.set(e, ve), ve;
|
|
284
284
|
}
|
|
285
285
|
function ee(e, l, u) {
|
|
@@ -299,7 +299,7 @@ function ca() {
|
|
|
299
299
|
switch (e) {
|
|
300
300
|
case f:
|
|
301
301
|
return ie("Suspense");
|
|
302
|
-
case
|
|
302
|
+
case p:
|
|
303
303
|
return ie("SuspenseList");
|
|
304
304
|
}
|
|
305
305
|
if (typeof e == "object")
|
|
@@ -309,16 +309,16 @@ function ca() {
|
|
|
309
309
|
case g:
|
|
310
310
|
return Oe(e.type, l, u);
|
|
311
311
|
case h: {
|
|
312
|
-
var v = e, j = v._payload,
|
|
312
|
+
var v = e, j = v._payload, A = v._init;
|
|
313
313
|
try {
|
|
314
|
-
return Oe(
|
|
314
|
+
return Oe(A(j), l, u);
|
|
315
315
|
} catch {
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
return "";
|
|
320
320
|
}
|
|
321
|
-
var Re = Object.prototype.hasOwnProperty, et = {}, tt =
|
|
321
|
+
var Re = Object.prototype.hasOwnProperty, et = {}, tt = S.ReactDebugCurrentFrame;
|
|
322
322
|
function Ue(e) {
|
|
323
323
|
if (e) {
|
|
324
324
|
var l = e._owner, u = Oe(e.type, e._source, l ? l.type : null);
|
|
@@ -328,20 +328,20 @@ function ca() {
|
|
|
328
328
|
}
|
|
329
329
|
function Nt(e, l, u, v, j) {
|
|
330
330
|
{
|
|
331
|
-
var
|
|
331
|
+
var A = Function.call.bind(Re);
|
|
332
332
|
for (var L in e)
|
|
333
|
-
if (
|
|
334
|
-
var
|
|
333
|
+
if (A(e, L)) {
|
|
334
|
+
var E = void 0;
|
|
335
335
|
try {
|
|
336
336
|
if (typeof e[L] != "function") {
|
|
337
337
|
var Y = Error((v || "React class") + ": " + u + " type `" + L + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[L] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
338
338
|
throw Y.name = "Invariant Violation", Y;
|
|
339
339
|
}
|
|
340
|
-
|
|
341
|
-
} catch (
|
|
342
|
-
|
|
340
|
+
E = e[L](l, L, v, u, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
341
|
+
} catch (F) {
|
|
342
|
+
E = F;
|
|
343
343
|
}
|
|
344
|
-
|
|
344
|
+
E && !(E instanceof Error) && (Ue(j), m("%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).", v || "React class", u, L, typeof E), Ue(null)), E instanceof Error && !(E.message in et) && (et[E.message] = !0, Ue(j), m("Failed %s type: %s", u, E.message), Ue(null));
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
347
|
}
|
|
@@ -367,9 +367,9 @@ function ca() {
|
|
|
367
367
|
}
|
|
368
368
|
function rt(e) {
|
|
369
369
|
if (Ut(e))
|
|
370
|
-
return
|
|
370
|
+
return m("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ot(e)), at(e);
|
|
371
371
|
}
|
|
372
|
-
var st =
|
|
372
|
+
var st = S.ReactCurrentOwner, Bt = {
|
|
373
373
|
key: !0,
|
|
374
374
|
ref: !0,
|
|
375
375
|
__self: !0,
|
|
@@ -397,7 +397,7 @@ function ca() {
|
|
|
397
397
|
function Wt(e, l) {
|
|
398
398
|
{
|
|
399
399
|
var u = function() {
|
|
400
|
-
nt || (nt = !0,
|
|
400
|
+
nt || (nt = !0, m("%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)", l));
|
|
401
401
|
};
|
|
402
402
|
u.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
403
403
|
get: u,
|
|
@@ -408,7 +408,7 @@ function ca() {
|
|
|
408
408
|
function Vt(e, l) {
|
|
409
409
|
{
|
|
410
410
|
var u = function() {
|
|
411
|
-
ot || (ot = !0,
|
|
411
|
+
ot || (ot = !0, m("%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)", l));
|
|
412
412
|
};
|
|
413
413
|
u.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
414
414
|
get: u,
|
|
@@ -416,8 +416,8 @@ function ca() {
|
|
|
416
416
|
});
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
|
-
var Ht = function(e, l, u, v, j,
|
|
420
|
-
var
|
|
419
|
+
var Ht = function(e, l, u, v, j, A, L) {
|
|
420
|
+
var E = {
|
|
421
421
|
// This tag allows us to uniquely identify this as a React Element
|
|
422
422
|
$$typeof: r,
|
|
423
423
|
// Built-in properties that belong on the element
|
|
@@ -426,54 +426,54 @@ function ca() {
|
|
|
426
426
|
ref: u,
|
|
427
427
|
props: L,
|
|
428
428
|
// Record the component responsible for creating this element.
|
|
429
|
-
_owner:
|
|
429
|
+
_owner: A
|
|
430
430
|
};
|
|
431
|
-
return
|
|
431
|
+
return E._store = {}, Object.defineProperty(E._store, "validated", {
|
|
432
432
|
configurable: !1,
|
|
433
433
|
enumerable: !1,
|
|
434
434
|
writable: !0,
|
|
435
435
|
value: !1
|
|
436
|
-
}), Object.defineProperty(
|
|
436
|
+
}), Object.defineProperty(E, "_self", {
|
|
437
437
|
configurable: !1,
|
|
438
438
|
enumerable: !1,
|
|
439
439
|
writable: !1,
|
|
440
440
|
value: v
|
|
441
|
-
}), Object.defineProperty(
|
|
441
|
+
}), Object.defineProperty(E, "_source", {
|
|
442
442
|
configurable: !1,
|
|
443
443
|
enumerable: !1,
|
|
444
444
|
writable: !1,
|
|
445
445
|
value: j
|
|
446
|
-
}), Object.freeze && (Object.freeze(
|
|
446
|
+
}), Object.freeze && (Object.freeze(E.props), Object.freeze(E)), E;
|
|
447
447
|
};
|
|
448
|
-
function
|
|
448
|
+
function qt(e, l, u, v, j) {
|
|
449
449
|
{
|
|
450
|
-
var
|
|
451
|
-
u !== void 0 && (rt(u),
|
|
452
|
-
for (
|
|
453
|
-
Re.call(l,
|
|
450
|
+
var A, L = {}, E = null, Y = null;
|
|
451
|
+
u !== void 0 && (rt(u), E = "" + u), Pt(l) && (rt(l.key), E = "" + l.key), Ft(l) && (Y = l.ref, zt(l, j));
|
|
452
|
+
for (A in l)
|
|
453
|
+
Re.call(l, A) && !Bt.hasOwnProperty(A) && (L[A] = l[A]);
|
|
454
454
|
if (e && e.defaultProps) {
|
|
455
|
-
var
|
|
456
|
-
for (
|
|
457
|
-
L[
|
|
455
|
+
var F = e.defaultProps;
|
|
456
|
+
for (A in F)
|
|
457
|
+
L[A] === void 0 && (L[A] = F[A]);
|
|
458
458
|
}
|
|
459
|
-
if (
|
|
459
|
+
if (E || Y) {
|
|
460
460
|
var H = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
461
|
-
|
|
461
|
+
E && Wt(L, H), Y && Vt(L, H);
|
|
462
462
|
}
|
|
463
|
-
return Ht(e,
|
|
463
|
+
return Ht(e, E, Y, j, v, st.current, L);
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
|
-
var He =
|
|
467
|
-
function
|
|
466
|
+
var He = S.ReactCurrentOwner, it = S.ReactDebugCurrentFrame;
|
|
467
|
+
function Me(e) {
|
|
468
468
|
if (e) {
|
|
469
469
|
var l = e._owner, u = Oe(e.type, e._source, l ? l.type : null);
|
|
470
470
|
it.setExtraStackFrame(u);
|
|
471
471
|
} else
|
|
472
472
|
it.setExtraStackFrame(null);
|
|
473
473
|
}
|
|
474
|
-
var
|
|
475
|
-
|
|
476
|
-
function
|
|
474
|
+
var qe;
|
|
475
|
+
qe = !1;
|
|
476
|
+
function Ge(e) {
|
|
477
477
|
return typeof e == "object" && e !== null && e.$$typeof === r;
|
|
478
478
|
}
|
|
479
479
|
function lt() {
|
|
@@ -488,11 +488,11 @@ Check the render method of \`` + e + "`.";
|
|
|
488
488
|
return "";
|
|
489
489
|
}
|
|
490
490
|
}
|
|
491
|
-
function
|
|
491
|
+
function Gt(e) {
|
|
492
492
|
return "";
|
|
493
493
|
}
|
|
494
494
|
var ct = {};
|
|
495
|
-
function
|
|
495
|
+
function Zt(e) {
|
|
496
496
|
{
|
|
497
497
|
var l = lt();
|
|
498
498
|
if (!l) {
|
|
@@ -509,12 +509,12 @@ Check the top-level render call using <` + u + ">.");
|
|
|
509
509
|
if (!e._store || e._store.validated || e.key != null)
|
|
510
510
|
return;
|
|
511
511
|
e._store.validated = !0;
|
|
512
|
-
var u =
|
|
512
|
+
var u = Zt(l);
|
|
513
513
|
if (ct[u])
|
|
514
514
|
return;
|
|
515
515
|
ct[u] = !0;
|
|
516
516
|
var v = "";
|
|
517
|
-
e && e._owner && e._owner !== He.current && (v = " It was passed a child from " + O(e._owner.type) + "."),
|
|
517
|
+
e && e._owner && e._owner !== He.current && (v = " It was passed a child from " + O(e._owner.type) + "."), Me(e), m('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', u, v), Me(null);
|
|
518
518
|
}
|
|
519
519
|
}
|
|
520
520
|
function ut(e, l) {
|
|
@@ -524,15 +524,15 @@ Check the top-level render call using <` + u + ">.");
|
|
|
524
524
|
if (Ve(e))
|
|
525
525
|
for (var u = 0; u < e.length; u++) {
|
|
526
526
|
var v = e[u];
|
|
527
|
-
|
|
527
|
+
Ge(v) && dt(v, l);
|
|
528
528
|
}
|
|
529
|
-
else if (
|
|
529
|
+
else if (Ge(e))
|
|
530
530
|
e._store && (e._store.validated = !0);
|
|
531
531
|
else if (e) {
|
|
532
532
|
var j = C(e);
|
|
533
533
|
if (typeof j == "function" && j !== e.entries)
|
|
534
|
-
for (var
|
|
535
|
-
|
|
534
|
+
for (var A = j.call(e), L; !(L = A.next()).done; )
|
|
535
|
+
Ge(L.value) && dt(L.value, l);
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
538
|
}
|
|
@@ -553,12 +553,12 @@ Check the top-level render call using <` + u + ">.");
|
|
|
553
553
|
if (u) {
|
|
554
554
|
var v = O(l);
|
|
555
555
|
Nt(u, e.props, "prop", v, e);
|
|
556
|
-
} else if (l.PropTypes !== void 0 && !
|
|
557
|
-
|
|
556
|
+
} else if (l.PropTypes !== void 0 && !qe) {
|
|
557
|
+
qe = !0;
|
|
558
558
|
var j = O(l);
|
|
559
|
-
|
|
559
|
+
m("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", j || "Unknown");
|
|
560
560
|
}
|
|
561
|
-
typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved &&
|
|
561
|
+
typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved && m("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
562
562
|
}
|
|
563
563
|
}
|
|
564
564
|
function Jt(e) {
|
|
@@ -566,26 +566,26 @@ Check the top-level render call using <` + u + ">.");
|
|
|
566
566
|
for (var l = Object.keys(e.props), u = 0; u < l.length; u++) {
|
|
567
567
|
var v = l[u];
|
|
568
568
|
if (v !== "children" && v !== "key") {
|
|
569
|
-
|
|
569
|
+
Me(e), m("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), Me(null);
|
|
570
570
|
break;
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
|
-
e.ref !== null && (
|
|
573
|
+
e.ref !== null && (Me(e), m("Invalid attribute `ref` supplied to `React.Fragment`."), Me(null));
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
576
|
var pt = {};
|
|
577
|
-
function _t(e, l, u, v, j,
|
|
577
|
+
function _t(e, l, u, v, j, A) {
|
|
578
578
|
{
|
|
579
579
|
var L = z(e);
|
|
580
580
|
if (!L) {
|
|
581
|
-
var
|
|
582
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
|
583
|
-
var Y =
|
|
584
|
-
Y ?
|
|
585
|
-
var
|
|
586
|
-
e === null ?
|
|
581
|
+
var E = "";
|
|
582
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (E += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
583
|
+
var Y = Gt();
|
|
584
|
+
Y ? E += Y : E += lt();
|
|
585
|
+
var F;
|
|
586
|
+
e === null ? F = "null" : Ve(e) ? F = "array" : e !== void 0 && e.$$typeof === r ? (F = "<" + (O(e.type) || "Unknown") + " />", E = " Did you accidentally export a JSX literal instead of a component?") : F = typeof e, m("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", F, E);
|
|
587
587
|
}
|
|
588
|
-
var H =
|
|
588
|
+
var H = qt(e, l, u, j, A);
|
|
589
589
|
if (H == null)
|
|
590
590
|
return H;
|
|
591
591
|
if (L) {
|
|
@@ -593,26 +593,26 @@ Check the top-level render call using <` + u + ">.");
|
|
|
593
593
|
if (ne !== void 0)
|
|
594
594
|
if (v)
|
|
595
595
|
if (Ve(ne)) {
|
|
596
|
-
for (var
|
|
597
|
-
ut(ne[
|
|
596
|
+
for (var $e = 0; $e < ne.length; $e++)
|
|
597
|
+
ut(ne[$e], e);
|
|
598
598
|
Object.freeze && Object.freeze(ne);
|
|
599
599
|
} else
|
|
600
|
-
|
|
600
|
+
m("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
601
601
|
else
|
|
602
602
|
ut(ne, e);
|
|
603
603
|
}
|
|
604
604
|
if (Re.call(l, "key")) {
|
|
605
605
|
var ve = O(e), X = Object.keys(l).filter(function(aa) {
|
|
606
606
|
return aa !== "key";
|
|
607
|
-
}),
|
|
608
|
-
if (!pt[ve +
|
|
607
|
+
}), Ze = X.length > 0 ? "{key: someKey, " + X.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
608
|
+
if (!pt[ve + Ze]) {
|
|
609
609
|
var ta = X.length > 0 ? "{" + X.join(": ..., ") + ": ...}" : "{}";
|
|
610
|
-
|
|
610
|
+
m(`A props object containing a "key" prop is being spread into JSX:
|
|
611
611
|
let props = %s;
|
|
612
612
|
<%s {...props} />
|
|
613
613
|
React keys must be passed directly to JSX without using spread:
|
|
614
614
|
let props = %s;
|
|
615
|
-
<%s key={someKey} {...props} />`,
|
|
615
|
+
<%s key={someKey} {...props} />`, Ze, ve, ta, ve), pt[ve + Ze] = !0;
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
618
|
return e === s ? Jt(H) : Yt(H), H;
|
|
@@ -633,7 +633,7 @@ function da() {
|
|
|
633
633
|
return ht || (ht = 1, process.env.NODE_ENV === "production" ? Be.exports = la() : Be.exports = ca()), Be.exports;
|
|
634
634
|
}
|
|
635
635
|
var o = da();
|
|
636
|
-
const ua = (t) => t.as === "a", pa = (t) => t.as === void 0 || t.as === "button", _a = "_button_1abee_213", fa = "_disabled_1abee_237", ga = "_loading_1abee_237", ha = "_neutral_1abee_259", ba = "_accent_1abee_263", ya = "_positive_1abee_267", ma = "_negative_1abee_271", va = "_contrast_1abee_275", xa = "_special_1abee_279", Ca = "_primary_1abee_284", wa = "_secondary_1abee_285", Sa = "_tertiary_1abee_286", Ea = "_label_1abee_321", La = "_rightGroup_1abee_333", Ma = "_iconOnly_1abee_349", $a = "_large_1abee_357", ja = "_medium_1abee_361", Ia = "_small_1abee_365", Ra = "_spaceBetween_1abee_370", ka = "_stretched_1abee_384", Ta = "_icon_1abee_349", Aa = "_badge_1abee_705", Na = "_badgeMedium_1abee_721", Da = "_circular_1abee_738", Oa = "_badgeSmall_1abee_743", Ua = "_badgeExtraSmall_1abee_765", Ba = "_withSubcaption_1abee_784", Fa = "_subcaption_1abee_797", Pa = "_loader_1abee_804", za = "_spin_1abee_1", Wa = "_l_1abee_237", Va = "_m_1abee_361", Ha = "_s_1abee_279",
|
|
636
|
+
const ua = (t) => t.as === "a", pa = (t) => t.as === void 0 || t.as === "button", _a = "_button_1abee_213", fa = "_disabled_1abee_237", ga = "_loading_1abee_237", ha = "_neutral_1abee_259", ba = "_accent_1abee_263", ya = "_positive_1abee_267", ma = "_negative_1abee_271", va = "_contrast_1abee_275", xa = "_special_1abee_279", Ca = "_primary_1abee_284", wa = "_secondary_1abee_285", Sa = "_tertiary_1abee_286", Ea = "_label_1abee_321", La = "_rightGroup_1abee_333", Ma = "_iconOnly_1abee_349", $a = "_large_1abee_357", ja = "_medium_1abee_361", Ia = "_small_1abee_365", Ra = "_spaceBetween_1abee_370", ka = "_stretched_1abee_384", Ta = "_icon_1abee_349", Aa = "_badge_1abee_705", Na = "_badgeMedium_1abee_721", Da = "_circular_1abee_738", Oa = "_badgeSmall_1abee_743", Ua = "_badgeExtraSmall_1abee_765", Ba = "_withSubcaption_1abee_784", Fa = "_subcaption_1abee_797", Pa = "_loader_1abee_804", za = "_spin_1abee_1", Wa = "_l_1abee_237", Va = "_m_1abee_361", Ha = "_s_1abee_279", qa = "_xs_1abee_869", P = {
|
|
637
637
|
button: _a,
|
|
638
638
|
disabled: fa,
|
|
639
639
|
loading: ga,
|
|
@@ -667,7 +667,7 @@ const ua = (t) => t.as === "a", pa = (t) => t.as === void 0 || t.as === "button"
|
|
|
667
667
|
l: Wa,
|
|
668
668
|
m: Va,
|
|
669
669
|
s: Ha,
|
|
670
|
-
xs:
|
|
670
|
+
xs: qa
|
|
671
671
|
}, bt = ({
|
|
672
672
|
isLoading: t,
|
|
673
673
|
showBadge: r,
|
|
@@ -676,36 +676,36 @@ const ua = (t) => t.as === "a", pa = (t) => t.as === void 0 || t.as === "button"
|
|
|
676
676
|
icon: i,
|
|
677
677
|
children: n,
|
|
678
678
|
postfix: c,
|
|
679
|
-
showSubcaption:
|
|
679
|
+
showSubcaption: _,
|
|
680
680
|
subcaption: d,
|
|
681
681
|
size: f
|
|
682
682
|
}) => {
|
|
683
683
|
if (t)
|
|
684
|
-
return /* @__PURE__ */ o.jsx("span", { className:
|
|
685
|
-
const
|
|
684
|
+
return /* @__PURE__ */ o.jsx("span", { className: P.loader, "data-testid": "button-loader", "aria-hidden": "true" });
|
|
685
|
+
const p = s === "extra-small", g = parseInt(String(a), 10), h = !isNaN(g) && g >= 0 && g <= 9;
|
|
686
686
|
return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
687
|
-
r && (a ||
|
|
687
|
+
r && (a || p) && /* @__PURE__ */ o.jsx(
|
|
688
688
|
"span",
|
|
689
689
|
{
|
|
690
690
|
"data-testid": "button-badge",
|
|
691
|
-
className:
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
{ [
|
|
691
|
+
className: q(
|
|
692
|
+
P.badge,
|
|
693
|
+
P[`badge${p ? "ExtraSmall" : s === "medium" ? "Medium" : "Small"}`],
|
|
694
|
+
{ [P.circular]: h && !p }
|
|
695
695
|
),
|
|
696
|
-
children: !
|
|
696
|
+
children: !p && a
|
|
697
697
|
}
|
|
698
698
|
),
|
|
699
|
-
|
|
700
|
-
/* @__PURE__ */ o.jsx("span", { "data-testid": "button-label", className:
|
|
701
|
-
/* @__PURE__ */ o.jsx("span", { "data-testid": "button-subcaption", className:
|
|
699
|
+
_ && f !== "s" && f !== "xs" ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
700
|
+
/* @__PURE__ */ o.jsx("span", { "data-testid": "button-label", className: P.label, children: n }),
|
|
701
|
+
/* @__PURE__ */ o.jsx("span", { "data-testid": "button-subcaption", className: P.subcaption, children: d })
|
|
702
702
|
] }) : n ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
703
|
-
/* @__PURE__ */ o.jsx("span", { "data-testid": "button-label", className:
|
|
704
|
-
/* @__PURE__ */ o.jsxs("div", { "data-testid": "button-right-group", className:
|
|
705
|
-
i && /* @__PURE__ */ o.jsx("span", { "data-testid": "button-icon", className:
|
|
706
|
-
c && /* @__PURE__ */ o.jsx("span", { "data-testid": "button-postfix", className:
|
|
703
|
+
/* @__PURE__ */ o.jsx("span", { "data-testid": "button-label", className: P.label, children: n }),
|
|
704
|
+
/* @__PURE__ */ o.jsxs("div", { "data-testid": "button-right-group", className: P.rightGroup, children: [
|
|
705
|
+
i && /* @__PURE__ */ o.jsx("span", { "data-testid": "button-icon", className: P.icon, children: i }),
|
|
706
|
+
c && /* @__PURE__ */ o.jsx("span", { "data-testid": "button-postfix", className: P.postfix, children: c })
|
|
707
707
|
] })
|
|
708
|
-
] }) : /* @__PURE__ */ o.jsx("span", { "data-testid": "button-icon", className:
|
|
708
|
+
] }) : /* @__PURE__ */ o.jsx("span", { "data-testid": "button-icon", className: P.icon, children: i })
|
|
709
709
|
] });
|
|
710
710
|
}, In = Q((t, r) => {
|
|
711
711
|
const {
|
|
@@ -714,127 +714,127 @@ const ua = (t) => t.as === "a", pa = (t) => t.as === void 0 || t.as === "button"
|
|
|
714
714
|
buttonStyle: i = "neutral",
|
|
715
715
|
loading: n = !1,
|
|
716
716
|
disabled: c = !1,
|
|
717
|
-
showBadge:
|
|
717
|
+
showBadge: _ = !1,
|
|
718
718
|
badgeSize: d = "small",
|
|
719
719
|
badgeValue: f,
|
|
720
|
-
showSubcaption:
|
|
720
|
+
showSubcaption: p = !1,
|
|
721
721
|
subcaption: g,
|
|
722
722
|
stretched: h = !1,
|
|
723
|
-
spaceBetween:
|
|
724
|
-
icon:
|
|
723
|
+
spaceBetween: b = !1,
|
|
724
|
+
icon: y,
|
|
725
725
|
postfix: w,
|
|
726
726
|
className: C,
|
|
727
|
-
children:
|
|
728
|
-
} = t,
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
727
|
+
children: S
|
|
728
|
+
} = t, m = c, R = n, D = !m && !R, k = !!y && !S, T = q(
|
|
729
|
+
P.button,
|
|
730
|
+
P[s],
|
|
731
|
+
P[a],
|
|
732
|
+
P[i],
|
|
733
733
|
{
|
|
734
|
-
[
|
|
735
|
-
[
|
|
736
|
-
[
|
|
737
|
-
[
|
|
738
|
-
[
|
|
739
|
-
[
|
|
734
|
+
[P.disabled]: m,
|
|
735
|
+
[P.loading]: R,
|
|
736
|
+
[P.stretched]: h,
|
|
737
|
+
[P.spaceBetween]: b && h,
|
|
738
|
+
[P.withSubcaption]: p && g && s !== "s" && s !== "xs",
|
|
739
|
+
[P.iconOnly]: k
|
|
740
740
|
},
|
|
741
741
|
C
|
|
742
|
-
),
|
|
743
|
-
isLoading:
|
|
744
|
-
showBadge:
|
|
742
|
+
), I = {
|
|
743
|
+
isLoading: R,
|
|
744
|
+
showBadge: _,
|
|
745
745
|
badgeValue: f,
|
|
746
746
|
badgeSize: d,
|
|
747
|
-
icon:
|
|
748
|
-
children:
|
|
747
|
+
icon: y,
|
|
748
|
+
children: S,
|
|
749
749
|
postfix: w,
|
|
750
|
-
showSubcaption:
|
|
750
|
+
showSubcaption: p,
|
|
751
751
|
subcaption: g,
|
|
752
752
|
size: s
|
|
753
753
|
};
|
|
754
754
|
if (ua(t)) {
|
|
755
755
|
const {
|
|
756
|
-
href:
|
|
757
|
-
onClick:
|
|
756
|
+
href: U,
|
|
757
|
+
onClick: N,
|
|
758
758
|
mode: z,
|
|
759
759
|
size: x,
|
|
760
760
|
buttonStyle: W,
|
|
761
761
|
loading: O,
|
|
762
762
|
disabled: $,
|
|
763
|
-
showBadge:
|
|
763
|
+
showBadge: B,
|
|
764
764
|
badgeSize: V,
|
|
765
|
-
badgeValue:
|
|
766
|
-
showSubcaption:
|
|
765
|
+
badgeValue: G,
|
|
766
|
+
showSubcaption: Z,
|
|
767
767
|
subcaption: te,
|
|
768
768
|
stretched: ae,
|
|
769
769
|
spaceBetween: re,
|
|
770
770
|
icon: be,
|
|
771
771
|
postfix: se,
|
|
772
772
|
className: ye,
|
|
773
|
-
tabIndex:
|
|
774
|
-
children:
|
|
773
|
+
tabIndex: Ee,
|
|
774
|
+
children: Le,
|
|
775
775
|
"data-testid": ue,
|
|
776
776
|
style: ie,
|
|
777
777
|
...pe
|
|
778
778
|
} = t, le = (me) => {
|
|
779
|
-
|
|
779
|
+
D && N && N(me);
|
|
780
780
|
};
|
|
781
781
|
return /* @__PURE__ */ o.jsx(
|
|
782
782
|
"a",
|
|
783
783
|
{
|
|
784
784
|
ref: r,
|
|
785
|
-
className:
|
|
786
|
-
href:
|
|
785
|
+
className: T,
|
|
786
|
+
href: D ? U : void 0,
|
|
787
787
|
tabIndex: t.tabIndex,
|
|
788
788
|
onClick: le,
|
|
789
789
|
"data-testid": ue,
|
|
790
|
-
"aria-disabled":
|
|
790
|
+
"aria-disabled": m || R,
|
|
791
791
|
style: ie,
|
|
792
792
|
...pe,
|
|
793
|
-
children: /* @__PURE__ */ o.jsx(bt, { ...
|
|
793
|
+
children: /* @__PURE__ */ o.jsx(bt, { ...I })
|
|
794
794
|
}
|
|
795
795
|
);
|
|
796
796
|
}
|
|
797
797
|
if (pa(t)) {
|
|
798
798
|
const {
|
|
799
|
-
type:
|
|
800
|
-
onClick:
|
|
799
|
+
type: U = "button",
|
|
800
|
+
onClick: N,
|
|
801
801
|
mode: z,
|
|
802
802
|
size: x,
|
|
803
803
|
buttonStyle: W,
|
|
804
804
|
loading: O,
|
|
805
805
|
disabled: $,
|
|
806
|
-
showBadge:
|
|
806
|
+
showBadge: B,
|
|
807
807
|
badgeSize: V,
|
|
808
|
-
badgeValue:
|
|
809
|
-
showSubcaption:
|
|
808
|
+
badgeValue: G,
|
|
809
|
+
showSubcaption: Z,
|
|
810
810
|
subcaption: te,
|
|
811
811
|
stretched: ae,
|
|
812
812
|
spaceBetween: re,
|
|
813
813
|
icon: be,
|
|
814
814
|
postfix: se,
|
|
815
815
|
className: ye,
|
|
816
|
-
tabIndex:
|
|
817
|
-
children:
|
|
816
|
+
tabIndex: Ee,
|
|
817
|
+
children: Le,
|
|
818
818
|
"data-testid": ue,
|
|
819
819
|
style: ie,
|
|
820
820
|
...pe
|
|
821
821
|
} = t, le = (me) => {
|
|
822
|
-
|
|
822
|
+
D && N && N(me);
|
|
823
823
|
};
|
|
824
824
|
return /* @__PURE__ */ o.jsx(
|
|
825
825
|
"button",
|
|
826
826
|
{
|
|
827
827
|
ref: r,
|
|
828
|
-
type:
|
|
829
|
-
className:
|
|
830
|
-
disabled:
|
|
828
|
+
type: U,
|
|
829
|
+
className: T,
|
|
830
|
+
disabled: m,
|
|
831
831
|
tabIndex: t.tabIndex,
|
|
832
832
|
onClick: le,
|
|
833
833
|
"data-testid": ue,
|
|
834
|
-
"aria-disabled":
|
|
834
|
+
"aria-disabled": m || R,
|
|
835
835
|
style: ie,
|
|
836
836
|
...pe,
|
|
837
|
-
children: /* @__PURE__ */ o.jsx(bt, { ...
|
|
837
|
+
children: /* @__PURE__ */ o.jsx(bt, { ...I })
|
|
838
838
|
}
|
|
839
839
|
);
|
|
840
840
|
}
|
|
@@ -847,14 +847,14 @@ var Ye = { exports: {} };
|
|
|
847
847
|
http://jedwatson.github.io/classnames
|
|
848
848
|
*/
|
|
849
849
|
var yt;
|
|
850
|
-
function
|
|
850
|
+
function Ga() {
|
|
851
851
|
return yt || (yt = 1, function(t) {
|
|
852
852
|
(function() {
|
|
853
853
|
var r = {}.hasOwnProperty;
|
|
854
854
|
function a() {
|
|
855
855
|
for (var n = "", c = 0; c < arguments.length; c++) {
|
|
856
|
-
var
|
|
857
|
-
|
|
856
|
+
var _ = arguments[c];
|
|
857
|
+
_ && (n = i(n, s(_)));
|
|
858
858
|
}
|
|
859
859
|
return n;
|
|
860
860
|
}
|
|
@@ -868,8 +868,8 @@ function Za() {
|
|
|
868
868
|
if (n.toString !== Object.prototype.toString && !n.toString.toString().includes("[native code]"))
|
|
869
869
|
return n.toString();
|
|
870
870
|
var c = "";
|
|
871
|
-
for (var
|
|
872
|
-
r.call(n,
|
|
871
|
+
for (var _ in n)
|
|
872
|
+
r.call(n, _) && n[_] && (c = i(c, _));
|
|
873
873
|
return c;
|
|
874
874
|
}
|
|
875
875
|
function i(n, c) {
|
|
@@ -879,8 +879,8 @@ function Za() {
|
|
|
879
879
|
})();
|
|
880
880
|
}(Ye)), Ye.exports;
|
|
881
881
|
}
|
|
882
|
-
var
|
|
883
|
-
const
|
|
882
|
+
var Za = Ga();
|
|
883
|
+
const Se = /* @__PURE__ */ ia(Za), Ya = "_avatar_1kyiq_17", Ja = "_clickable_1kyiq_41", Ka = "_icon_1kyiq_58", Xa = "_disabled_1kyiq_63", Qa = "_loading_1kyiq_68", er = "_image_1kyiq_74", tr = "_name_1kyiq_74", de = {
|
|
884
884
|
avatar: Ya,
|
|
885
885
|
clickable: Ja,
|
|
886
886
|
icon: Ka,
|
|
@@ -998,31 +998,31 @@ const cr = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
998
998
|
isLoading: i = !1,
|
|
999
999
|
isDisabled: n = !1,
|
|
1000
1000
|
shape: c = "circle",
|
|
1001
|
-
variant:
|
|
1001
|
+
variant: _ = "filled",
|
|
1002
1002
|
placeholderType: d = "neutral",
|
|
1003
1003
|
name: f,
|
|
1004
|
-
imgSrc:
|
|
1004
|
+
imgSrc: p,
|
|
1005
1005
|
imgAlt: g,
|
|
1006
1006
|
icon: h,
|
|
1007
|
-
imgProps:
|
|
1008
|
-
colorScheme:
|
|
1007
|
+
imgProps: b,
|
|
1008
|
+
colorScheme: y,
|
|
1009
1009
|
className: w,
|
|
1010
1010
|
"data-testid": C,
|
|
1011
|
-
...
|
|
1012
|
-
} = t, { onClick:
|
|
1011
|
+
...S
|
|
1012
|
+
} = t, { onClick: m, onPointerDown: R } = S, k = !n && !i && (!!m || !!R), [T, I] = De(!1);
|
|
1013
1013
|
we(() => {
|
|
1014
|
-
|
|
1015
|
-
}, [
|
|
1016
|
-
const
|
|
1014
|
+
p && I(!1);
|
|
1015
|
+
}, [p]);
|
|
1016
|
+
const U = p && !T ? "image" : h ? "icon" : f ? "name" : "placeholder", N = y || U === "name" && sr(f) || "gray", z = lr(s), x = jt(s, c), W = q(
|
|
1017
1017
|
w,
|
|
1018
1018
|
de.avatar,
|
|
1019
|
-
de[`variant-${
|
|
1020
|
-
de[`color-${
|
|
1019
|
+
de[`variant-${_}`],
|
|
1020
|
+
de[`color-${N}`],
|
|
1021
1021
|
Ne[z],
|
|
1022
1022
|
{
|
|
1023
1023
|
[de.disabled]: n,
|
|
1024
1024
|
[de.loading]: i,
|
|
1025
|
-
[de.clickable]:
|
|
1025
|
+
[de.clickable]: k
|
|
1026
1026
|
}
|
|
1027
1027
|
), O = {
|
|
1028
1028
|
"--avatar-size": `${s}px`,
|
|
@@ -1043,7 +1043,7 @@ const cr = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
1043
1043
|
placeholder: () => /* @__PURE__ */ o.jsx(
|
|
1044
1044
|
"img",
|
|
1045
1045
|
{
|
|
1046
|
-
...
|
|
1046
|
+
...b,
|
|
1047
1047
|
"data-testid": "avatar-placeholder",
|
|
1048
1048
|
className: de.image,
|
|
1049
1049
|
src: _r[d],
|
|
@@ -1054,30 +1054,30 @@ const cr = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
1054
1054
|
"img",
|
|
1055
1055
|
{
|
|
1056
1056
|
"data-testid": "avatar-image",
|
|
1057
|
-
...
|
|
1057
|
+
...b,
|
|
1058
1058
|
className: de.image,
|
|
1059
|
-
src:
|
|
1059
|
+
src: p || void 0,
|
|
1060
1060
|
alt: g || void 0,
|
|
1061
|
-
onLoad: () =>
|
|
1061
|
+
onLoad: () => I(!1),
|
|
1062
1062
|
onError: (V) => {
|
|
1063
|
-
var
|
|
1064
|
-
|
|
1063
|
+
var G;
|
|
1064
|
+
I(!0), (G = b == null ? void 0 : b.onError) == null || G.call(b, V);
|
|
1065
1065
|
}
|
|
1066
1066
|
}
|
|
1067
1067
|
)
|
|
1068
|
-
},
|
|
1069
|
-
|
|
1068
|
+
}, B = (V) => {
|
|
1069
|
+
k && (m == null || m(V));
|
|
1070
1070
|
};
|
|
1071
1071
|
return /* @__PURE__ */ o.jsx(
|
|
1072
1072
|
"div",
|
|
1073
1073
|
{
|
|
1074
1074
|
ref: r,
|
|
1075
|
-
onClick:
|
|
1075
|
+
onClick: B,
|
|
1076
1076
|
className: W,
|
|
1077
1077
|
style: O,
|
|
1078
1078
|
"data-testid": C,
|
|
1079
1079
|
"aria-disabled": n || i,
|
|
1080
|
-
children: $[
|
|
1080
|
+
children: $[U](null)
|
|
1081
1081
|
}
|
|
1082
1082
|
);
|
|
1083
1083
|
}), fr = "_avatarGroup_157g4_1", gr = {
|
|
@@ -1085,7 +1085,7 @@ const cr = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
1085
1085
|
};
|
|
1086
1086
|
let hr = (t = 21) => crypto.getRandomValues(new Uint8Array(t)).reduce((r, a) => (a &= 63, a < 36 ? r += a.toString(36) : a < 62 ? r += (a - 26).toString(36).toUpperCase() : a > 62 ? r += "-" : r += "_", r), "");
|
|
1087
1087
|
function br(t, r, a, s, i, n, c) {
|
|
1088
|
-
const
|
|
1088
|
+
const _ = Math.min(i, n) / 2, d = Math.min(c, _), f = ["M0,0", `H${t}`, `V${r}`, "H0", "V0", "Z"].join(" "), p = [
|
|
1089
1089
|
`M${a + d},${s}`,
|
|
1090
1090
|
`L${a + i - d},${s}`,
|
|
1091
1091
|
// Верхний правый угол
|
|
@@ -1101,7 +1101,7 @@ function br(t, r, a, s, i, n, c) {
|
|
|
1101
1101
|
`A${d},${d} 0 0 1 ${a + d},${s}`,
|
|
1102
1102
|
"Z"
|
|
1103
1103
|
].join(" ");
|
|
1104
|
-
return `${f} ${
|
|
1104
|
+
return `${f} ${p}`;
|
|
1105
1105
|
}
|
|
1106
1106
|
const yr = 3, mr = (t) => {
|
|
1107
1107
|
const {
|
|
@@ -1111,10 +1111,10 @@ const yr = 3, mr = (t) => {
|
|
|
1111
1111
|
shape: i = "circle",
|
|
1112
1112
|
overflowCount: n = 0,
|
|
1113
1113
|
overflowProps: c
|
|
1114
|
-
} = t,
|
|
1114
|
+
} = t, _ = a * s, d = -_ + yr, f = jt(a, i), g = We(hr()).current.toString(), h = Se(gr.avatarGroup), b = br(
|
|
1115
1115
|
a,
|
|
1116
1116
|
a,
|
|
1117
|
-
a -
|
|
1117
|
+
a - _,
|
|
1118
1118
|
// X-координата начала выреза
|
|
1119
1119
|
0,
|
|
1120
1120
|
// Y-координата начала выреза
|
|
@@ -1123,21 +1123,21 @@ const yr = 3, mr = (t) => {
|
|
|
1123
1123
|
f
|
|
1124
1124
|
);
|
|
1125
1125
|
return r.length === 0 ? null : /* @__PURE__ */ o.jsxs("div", { className: h, children: [
|
|
1126
|
-
r.map((
|
|
1127
|
-
const
|
|
1128
|
-
if (
|
|
1129
|
-
const
|
|
1126
|
+
r.map((y, w, C) => {
|
|
1127
|
+
const S = w + 1 >= C.length;
|
|
1128
|
+
if (y.wrapper) {
|
|
1129
|
+
const m = y.wrapper;
|
|
1130
1130
|
return /* @__PURE__ */ o.jsx(
|
|
1131
1131
|
"div",
|
|
1132
1132
|
{
|
|
1133
1133
|
style: {
|
|
1134
1134
|
// Для последнего видимого аватара без overflowCount не применяем обрезку
|
|
1135
|
-
clipPath:
|
|
1135
|
+
clipPath: S && !n ? void 0 : `url(#${g})`,
|
|
1136
1136
|
marginRight: d
|
|
1137
1137
|
},
|
|
1138
|
-
children: /* @__PURE__ */ o.jsx(
|
|
1138
|
+
children: /* @__PURE__ */ o.jsx(m, { children: /* @__PURE__ */ o.jsx(Pe, { size: a, shape: i, ...y }) })
|
|
1139
1139
|
},
|
|
1140
|
-
Qe(
|
|
1140
|
+
Qe(y) + w
|
|
1141
1141
|
);
|
|
1142
1142
|
}
|
|
1143
1143
|
return /* @__PURE__ */ o.jsx(
|
|
@@ -1145,12 +1145,12 @@ const yr = 3, mr = (t) => {
|
|
|
1145
1145
|
{
|
|
1146
1146
|
style: {
|
|
1147
1147
|
// Для последнего видимого аватара без overflowCount не применяем обрезку
|
|
1148
|
-
clipPath:
|
|
1148
|
+
clipPath: S && !n ? void 0 : `url(#${g})`,
|
|
1149
1149
|
marginRight: d
|
|
1150
1150
|
},
|
|
1151
|
-
children: /* @__PURE__ */ o.jsx(Pe, { size: a, shape: i, ...
|
|
1151
|
+
children: /* @__PURE__ */ o.jsx(Pe, { size: a, shape: i, ...y })
|
|
1152
1152
|
},
|
|
1153
|
-
Qe(
|
|
1153
|
+
Qe(y) + w
|
|
1154
1154
|
);
|
|
1155
1155
|
}),
|
|
1156
1156
|
n > 0 && /* @__PURE__ */ o.jsx("div", { style: { marginRight: d }, children: /* @__PURE__ */ o.jsx(
|
|
@@ -1164,7 +1164,7 @@ const yr = 3, mr = (t) => {
|
|
|
1164
1164
|
...c
|
|
1165
1165
|
}
|
|
1166
1166
|
) }),
|
|
1167
|
-
/* @__PURE__ */ o.jsx("svg", { width: "0", height: "0", children: /* @__PURE__ */ o.jsx("clipPath", { id: `${g}`, children: /* @__PURE__ */ o.jsx("path", { clipPathUnits: "objectBoundingBox", d:
|
|
1167
|
+
/* @__PURE__ */ o.jsx("svg", { width: "0", height: "0", children: /* @__PURE__ */ o.jsx("clipPath", { id: `${g}`, children: /* @__PURE__ */ o.jsx("path", { clipPathUnits: "objectBoundingBox", d: b, clipRule: "evenodd" }) }) })
|
|
1168
1168
|
] });
|
|
1169
1169
|
}, Rn = Object.assign(Pe, {
|
|
1170
1170
|
Group: mr
|
|
@@ -1230,49 +1230,49 @@ const yr = 3, mr = (t) => {
|
|
|
1230
1230
|
variant: i = "filled",
|
|
1231
1231
|
label: n,
|
|
1232
1232
|
isHidden: c = !1,
|
|
1233
|
-
colorScheme:
|
|
1233
|
+
colorScheme: _ = "red",
|
|
1234
1234
|
size: d = 20,
|
|
1235
1235
|
position: f = "top-right",
|
|
1236
|
-
positionOffset:
|
|
1236
|
+
positionOffset: p = { x: 0, y: 0 },
|
|
1237
1237
|
cutoutBackground: g,
|
|
1238
1238
|
isDisabled: h,
|
|
1239
|
-
className:
|
|
1240
|
-
"data-testid":
|
|
1239
|
+
className: b,
|
|
1240
|
+
"data-testid": y = "badge",
|
|
1241
1241
|
...w
|
|
1242
|
-
} = t, { onClick: C, onPointerDown:
|
|
1243
|
-
|
|
1242
|
+
} = t, { onClick: C, onPointerDown: S } = w, { ref: m, bgColor: R } = $r(), D = g || R, T = !h && (!!C || !!S), I = Se(_e.badge__container, _e[`position-${f}`]), U = Se(
|
|
1243
|
+
b,
|
|
1244
1244
|
_e.badge__content,
|
|
1245
|
-
_e[`color-${
|
|
1245
|
+
_e[`color-${_}`],
|
|
1246
1246
|
_e[`variant-${i}`],
|
|
1247
1247
|
{
|
|
1248
1248
|
[_e.disabled]: h,
|
|
1249
1249
|
[_e.icon]: !!a,
|
|
1250
|
-
[_e.interactive]:
|
|
1250
|
+
[_e.interactive]: T
|
|
1251
1251
|
}
|
|
1252
|
-
),
|
|
1252
|
+
), N = {
|
|
1253
1253
|
"--badge-height": `${d}px`,
|
|
1254
|
-
"--badge-offset-x": `${
|
|
1255
|
-
"--badge-offset-y": `${
|
|
1256
|
-
...
|
|
1254
|
+
"--badge-offset-x": `${p.x}px`,
|
|
1255
|
+
"--badge-offset-y": `${p.y}px`,
|
|
1256
|
+
...D && { "--badge-cutout-bg": D },
|
|
1257
1257
|
...i === "transparent" && { "--badge-cutout-bg": "transparent" }
|
|
1258
1258
|
}, z = (a == null ? void 0 : a({})) || n, x = (W) => {
|
|
1259
|
-
|
|
1259
|
+
T && (C == null || C(W));
|
|
1260
1260
|
};
|
|
1261
|
-
return /* @__PURE__ */ o.jsxs("div", { className: _e.wrapper, ref:
|
|
1261
|
+
return /* @__PURE__ */ o.jsxs("div", { className: _e.wrapper, ref: m, "data-testid": y + "-wrapper", children: [
|
|
1262
1262
|
s,
|
|
1263
1263
|
!c && /* @__PURE__ */ o.jsx(
|
|
1264
1264
|
"span",
|
|
1265
1265
|
{
|
|
1266
|
-
className:
|
|
1267
|
-
style:
|
|
1268
|
-
"data-testid":
|
|
1266
|
+
className: I,
|
|
1267
|
+
style: N,
|
|
1268
|
+
"data-testid": y + "-container",
|
|
1269
1269
|
children: /* @__PURE__ */ o.jsx(
|
|
1270
1270
|
"span",
|
|
1271
1271
|
{
|
|
1272
1272
|
...w,
|
|
1273
1273
|
onClick: x,
|
|
1274
|
-
className:
|
|
1275
|
-
"data-testid":
|
|
1274
|
+
className: U,
|
|
1275
|
+
"data-testid": y + "-content",
|
|
1276
1276
|
ref: r,
|
|
1277
1277
|
"aria-disabled": h,
|
|
1278
1278
|
children: z
|
|
@@ -1311,7 +1311,7 @@ const yr = 3, mr = (t) => {
|
|
|
1311
1311
|
style: i,
|
|
1312
1312
|
...n
|
|
1313
1313
|
}, c) => {
|
|
1314
|
-
const
|
|
1314
|
+
const _ = Se(
|
|
1315
1315
|
Ae.loader,
|
|
1316
1316
|
Ae[r],
|
|
1317
1317
|
Ae[`size-${t}`],
|
|
@@ -1321,7 +1321,7 @@ const yr = 3, mr = (t) => {
|
|
|
1321
1321
|
"svg",
|
|
1322
1322
|
{
|
|
1323
1323
|
ref: c,
|
|
1324
|
-
className:
|
|
1324
|
+
className: _,
|
|
1325
1325
|
fill: "none",
|
|
1326
1326
|
viewBox: "0 0 16 16",
|
|
1327
1327
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1347,11 +1347,11 @@ const yr = 3, mr = (t) => {
|
|
|
1347
1347
|
variant: i = "accent",
|
|
1348
1348
|
children: n,
|
|
1349
1349
|
className: c,
|
|
1350
|
-
style:
|
|
1350
|
+
style: _,
|
|
1351
1351
|
"data-testid": d,
|
|
1352
1352
|
...f
|
|
1353
|
-
} = t,
|
|
1354
|
-
return /* @__PURE__ */ o.jsxs("div", { ref: r, className:
|
|
1353
|
+
} = t, p = Se(Ae.container, c);
|
|
1354
|
+
return /* @__PURE__ */ o.jsxs("div", { ref: r, className: p, style: _, "data-testid": d, ...f, children: [
|
|
1355
1355
|
n,
|
|
1356
1356
|
a && /* @__PURE__ */ o.jsx("div", { className: Ae.overlay, children: /* @__PURE__ */ o.jsx(It, { size: s, variant: i, "data-testid": `${d}-spinner` }) })
|
|
1357
1357
|
] });
|
|
@@ -1389,75 +1389,76 @@ const yr = 3, mr = (t) => {
|
|
|
1389
1389
|
src: i,
|
|
1390
1390
|
isLoading: n = !1,
|
|
1391
1391
|
className: c,
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1392
|
+
containerClassName: _,
|
|
1393
|
+
"data-testid": d = "image",
|
|
1394
|
+
onError: f,
|
|
1395
|
+
onLoad: p,
|
|
1396
|
+
...g
|
|
1397
|
+
} = t, [h, b] = De("loading"), y = h === "error", w = (n || h === "loading") && !y, C = h === "loaded" && !n, S = Se(Je.container, _), m = Se(
|
|
1397
1398
|
Je.image,
|
|
1398
1399
|
{
|
|
1399
|
-
[Je.loading]:
|
|
1400
|
+
[Je.loading]: w
|
|
1400
1401
|
},
|
|
1401
1402
|
c
|
|
1402
|
-
),
|
|
1403
|
-
(
|
|
1404
|
-
|
|
1403
|
+
), R = Ce(
|
|
1404
|
+
(T) => {
|
|
1405
|
+
b("loaded"), p == null || p(T);
|
|
1405
1406
|
},
|
|
1406
|
-
[
|
|
1407
|
-
),
|
|
1408
|
-
(
|
|
1409
|
-
|
|
1407
|
+
[p]
|
|
1408
|
+
), D = Ce(
|
|
1409
|
+
(T) => {
|
|
1410
|
+
b("error"), f == null || f(T);
|
|
1410
1411
|
},
|
|
1411
|
-
[
|
|
1412
|
-
),
|
|
1412
|
+
[f]
|
|
1413
|
+
), k = {
|
|
1413
1414
|
loader: /* @__PURE__ */ o.jsxs(Mt, { children: [
|
|
1414
|
-
/* @__PURE__ */ o.jsx(Vr, { size: 48, variant: "special", "data-testid": `${
|
|
1415
|
+
/* @__PURE__ */ o.jsx(Vr, { size: 48, variant: "special", "data-testid": `${d}-loader` }),
|
|
1415
1416
|
/* @__PURE__ */ o.jsx(
|
|
1416
1417
|
"img",
|
|
1417
1418
|
{
|
|
1418
1419
|
alt: a,
|
|
1419
1420
|
src: i,
|
|
1420
|
-
onLoad:
|
|
1421
|
-
onError:
|
|
1421
|
+
onLoad: R,
|
|
1422
|
+
onError: D,
|
|
1422
1423
|
style: { display: "none" }
|
|
1423
1424
|
}
|
|
1424
1425
|
)
|
|
1425
1426
|
] }),
|
|
1426
|
-
error: /* @__PURE__ */ o.jsx(Hr, { "data-testid": `${
|
|
1427
|
+
error: /* @__PURE__ */ o.jsx(Hr, { "data-testid": `${d}-fallback` }),
|
|
1427
1428
|
image: /* @__PURE__ */ o.jsx(
|
|
1428
1429
|
"img",
|
|
1429
1430
|
{
|
|
1430
1431
|
ref: r,
|
|
1431
1432
|
alt: a,
|
|
1432
|
-
"data-testid":
|
|
1433
|
+
"data-testid": d,
|
|
1433
1434
|
loading: s,
|
|
1434
1435
|
src: i,
|
|
1435
|
-
className:
|
|
1436
|
+
className: m
|
|
1436
1437
|
}
|
|
1437
1438
|
)
|
|
1438
1439
|
};
|
|
1439
1440
|
return we(() => {
|
|
1440
1441
|
if (!i) {
|
|
1441
|
-
|
|
1442
|
+
b("error");
|
|
1442
1443
|
return;
|
|
1443
1444
|
}
|
|
1444
|
-
|
|
1445
|
-
}, [i]), /* @__PURE__ */ o.jsxs("div", { className:
|
|
1446
|
-
|
|
1447
|
-
y &&
|
|
1448
|
-
|
|
1445
|
+
b("loading");
|
|
1446
|
+
}, [i]), /* @__PURE__ */ o.jsxs("div", { className: S, "data-testid": `${d}-container`, ...g, children: [
|
|
1447
|
+
w && k.loader,
|
|
1448
|
+
y && k.error,
|
|
1449
|
+
C && k.image
|
|
1449
1450
|
] });
|
|
1450
|
-
}),
|
|
1451
|
-
locale:
|
|
1452
|
-
}),
|
|
1451
|
+
}), qr = {}, Rt = ra({
|
|
1452
|
+
locale: qr
|
|
1453
|
+
}), Gr = () => {
|
|
1453
1454
|
const t = sa(Rt);
|
|
1454
1455
|
if (!t)
|
|
1455
1456
|
throw new Error("useConfig must be used within a ConfigProvider");
|
|
1456
1457
|
return t;
|
|
1457
1458
|
}, An = () => {
|
|
1458
|
-
const { locale: t } =
|
|
1459
|
+
const { locale: t } = Gr();
|
|
1459
1460
|
return t;
|
|
1460
|
-
},
|
|
1461
|
+
}, Zr = {}, Yr = {}, Jr = {}, Nn = ({
|
|
1461
1462
|
locale: t = {},
|
|
1462
1463
|
theme: r,
|
|
1463
1464
|
children: a,
|
|
@@ -1474,7 +1475,7 @@ const yr = 3, mr = (t) => {
|
|
|
1474
1475
|
"div",
|
|
1475
1476
|
{
|
|
1476
1477
|
"data-testid": "ConfigProvider-component",
|
|
1477
|
-
className:
|
|
1478
|
+
className: q(Zr, Yr, Jr, s)
|
|
1478
1479
|
}
|
|
1479
1480
|
),
|
|
1480
1481
|
/* @__PURE__ */ o.jsx(Rt.Provider, { value: { locale: t }, children: a })
|
|
@@ -1502,17 +1503,17 @@ const yr = 3, mr = (t) => {
|
|
|
1502
1503
|
componentStyle: i = "neutral",
|
|
1503
1504
|
size: n = "medium",
|
|
1504
1505
|
disabled: c = !1,
|
|
1505
|
-
showLabel:
|
|
1506
|
+
showLabel: _ = !!s,
|
|
1506
1507
|
slotStart: d,
|
|
1507
1508
|
slotEnd: f,
|
|
1508
|
-
slotStartWrapperProps:
|
|
1509
|
+
slotStartWrapperProps: p = {},
|
|
1509
1510
|
slotEndWrapperProps: g = {},
|
|
1510
1511
|
"data-testid": h
|
|
1511
|
-
} = t, { className:
|
|
1512
|
+
} = t, { className: b, ...y } = p, { className: w, ...C } = g;
|
|
1512
1513
|
return /* @__PURE__ */ o.jsxs(
|
|
1513
1514
|
"div",
|
|
1514
1515
|
{
|
|
1515
|
-
className:
|
|
1516
|
+
className: q(
|
|
1516
1517
|
xe.tag,
|
|
1517
1518
|
xe[n],
|
|
1518
1519
|
xe[i],
|
|
@@ -1526,13 +1527,13 @@ const yr = 3, mr = (t) => {
|
|
|
1526
1527
|
"data-testid": h || "tag-component",
|
|
1527
1528
|
ref: r,
|
|
1528
1529
|
children: [
|
|
1529
|
-
d && /* @__PURE__ */ o.jsx("span", { className:
|
|
1530
|
-
|
|
1531
|
-
f && /* @__PURE__ */ o.jsx("span", { className:
|
|
1530
|
+
d && /* @__PURE__ */ o.jsx("span", { className: q([xe.iconWrapper, b]), ...y, children: d }),
|
|
1531
|
+
_ && /* @__PURE__ */ o.jsx("span", { className: q([xe.label]), children: s }),
|
|
1532
|
+
f && /* @__PURE__ */ o.jsx("span", { className: q([xe.iconWrapper, w]), ...C, children: f })
|
|
1532
1533
|
]
|
|
1533
1534
|
}
|
|
1534
1535
|
);
|
|
1535
|
-
}), _s = "
|
|
1536
|
+
}), _s = "_checkbox_qo5f5_43", fs = "_input_qo5f5_59", gs = "_icon_qo5f5_67", hs = "_container_qo5f5_84", bs = "_error_qo5f5_135", ys = "_checkboxWrapper_qo5f5_147", ms = "_medium_qo5f5_201", vs = "_large_qo5f5_206", xs = "_label_qo5f5_247", ge = {
|
|
1536
1537
|
checkbox: _s,
|
|
1537
1538
|
input: fs,
|
|
1538
1539
|
icon: gs,
|
|
@@ -1623,57 +1624,56 @@ const yr = 3, mr = (t) => {
|
|
|
1623
1624
|
size: i = "medium",
|
|
1624
1625
|
indeterminate: n = !1,
|
|
1625
1626
|
loading: c = !1,
|
|
1626
|
-
error:
|
|
1627
|
+
error: _,
|
|
1627
1628
|
disabled: d = !1,
|
|
1628
1629
|
containerClassName: f,
|
|
1629
|
-
className:
|
|
1630
|
+
className: p,
|
|
1630
1631
|
containerStyle: g,
|
|
1631
1632
|
style: h,
|
|
1632
|
-
children:
|
|
1633
|
-
clickableLabel:
|
|
1633
|
+
children: b,
|
|
1634
|
+
clickableLabel: y = !0,
|
|
1634
1635
|
tabIndex: w,
|
|
1635
1636
|
onChange: C,
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
} = t, [I, R] = De(!1), P = s ?? I, A = d || c, k = !!p, N = P || n, D = G(ge.container, ge[i], f), z = G(
|
|
1637
|
+
"data-testid": S = "checkbox"
|
|
1638
|
+
} = t, [m, R] = De(!1), D = s ?? m, k = d || c, T = !!_, I = D || n, U = q(ge.container, ge[i], f), N = q(
|
|
1639
1639
|
ge.checkbox,
|
|
1640
1640
|
ge[i],
|
|
1641
1641
|
{
|
|
1642
|
-
[ge.error]:
|
|
1642
|
+
[ge.error]: T
|
|
1643
1643
|
},
|
|
1644
|
-
|
|
1645
|
-
),
|
|
1646
|
-
|
|
1647
|
-
},
|
|
1648
|
-
if ($.key === "Enter" && !
|
|
1644
|
+
p
|
|
1645
|
+
), z = ($) => {
|
|
1646
|
+
k || (R($.target.checked), C == null || C($.target.checked, $));
|
|
1647
|
+
}, x = ($) => {
|
|
1648
|
+
if ($.key === "Enter" && !k) {
|
|
1649
1649
|
$.preventDefault();
|
|
1650
|
-
const
|
|
1651
|
-
R(
|
|
1650
|
+
const B = !I;
|
|
1651
|
+
R(B), C == null || C(B);
|
|
1652
1652
|
}
|
|
1653
|
-
},
|
|
1654
|
-
|
|
1655
|
-
};
|
|
1653
|
+
}, W = ($) => {
|
|
1654
|
+
y || $.preventDefault();
|
|
1655
|
+
}, O = ($) => $.stopPropagation();
|
|
1656
1656
|
return /* @__PURE__ */ o.jsxs(
|
|
1657
1657
|
"label",
|
|
1658
1658
|
{
|
|
1659
|
-
className:
|
|
1659
|
+
className: U,
|
|
1660
1660
|
htmlFor: a,
|
|
1661
1661
|
style: g,
|
|
1662
|
-
"data-testid":
|
|
1663
|
-
"data-clickable-label":
|
|
1662
|
+
"data-testid": S,
|
|
1663
|
+
"data-clickable-label": y,
|
|
1664
1664
|
children: [
|
|
1665
1665
|
/* @__PURE__ */ o.jsx("div", { className: ge.checkboxWrapper, children: /* @__PURE__ */ o.jsxs(
|
|
1666
1666
|
"div",
|
|
1667
1667
|
{
|
|
1668
1668
|
tabIndex: w || 0,
|
|
1669
|
-
className:
|
|
1669
|
+
className: N,
|
|
1670
1670
|
style: h,
|
|
1671
|
-
onKeyDown:
|
|
1672
|
-
"aria-checked":
|
|
1673
|
-
"aria-disabled":
|
|
1674
|
-
"aria-invalid":
|
|
1675
|
-
"aria-describedby":
|
|
1676
|
-
"data-testid": `${
|
|
1671
|
+
onKeyDown: x,
|
|
1672
|
+
"aria-checked": I,
|
|
1673
|
+
"aria-disabled": k,
|
|
1674
|
+
"aria-invalid": T,
|
|
1675
|
+
"aria-describedby": _ ? `${a}-error` : void 0,
|
|
1676
|
+
"data-testid": `${S}-label`,
|
|
1677
1677
|
children: [
|
|
1678
1678
|
/* @__PURE__ */ o.jsx(
|
|
1679
1679
|
"input",
|
|
@@ -1682,14 +1682,15 @@ const yr = 3, mr = (t) => {
|
|
|
1682
1682
|
type: "checkbox",
|
|
1683
1683
|
id: a,
|
|
1684
1684
|
name: a,
|
|
1685
|
-
checked:
|
|
1686
|
-
disabled:
|
|
1685
|
+
checked: I,
|
|
1686
|
+
disabled: k,
|
|
1687
1687
|
className: ge.input,
|
|
1688
|
-
onChange:
|
|
1689
|
-
|
|
1690
|
-
"aria-
|
|
1691
|
-
"aria-
|
|
1692
|
-
"
|
|
1688
|
+
onChange: z,
|
|
1689
|
+
onClick: O,
|
|
1690
|
+
"aria-checked": I,
|
|
1691
|
+
"aria-invalid": T,
|
|
1692
|
+
"aria-describedby": _ ? `${a}-error` : void 0,
|
|
1693
|
+
"data-testid": `${S}-input`
|
|
1693
1694
|
}
|
|
1694
1695
|
),
|
|
1695
1696
|
/* @__PURE__ */ o.jsx(
|
|
@@ -1697,29 +1698,29 @@ const yr = 3, mr = (t) => {
|
|
|
1697
1698
|
{
|
|
1698
1699
|
name: a,
|
|
1699
1700
|
size: i,
|
|
1700
|
-
isChecked:
|
|
1701
|
-
isDisabled:
|
|
1701
|
+
isChecked: I,
|
|
1702
|
+
isDisabled: k,
|
|
1702
1703
|
indeterminate: n,
|
|
1703
|
-
dataTestId:
|
|
1704
|
+
dataTestId: S
|
|
1704
1705
|
}
|
|
1705
1706
|
)
|
|
1706
1707
|
]
|
|
1707
1708
|
}
|
|
1708
1709
|
) }),
|
|
1709
|
-
|
|
1710
|
+
b && /* @__PURE__ */ o.jsx(
|
|
1710
1711
|
"span",
|
|
1711
1712
|
{
|
|
1712
|
-
"data-testid": `${
|
|
1713
|
-
"data-clickable-label":
|
|
1713
|
+
"data-testid": `${S}-label-text`,
|
|
1714
|
+
"data-clickable-label": y,
|
|
1714
1715
|
className: ge.label,
|
|
1715
|
-
onClick:
|
|
1716
|
-
children:
|
|
1716
|
+
onClick: W,
|
|
1717
|
+
children: b
|
|
1717
1718
|
}
|
|
1718
1719
|
)
|
|
1719
1720
|
]
|
|
1720
1721
|
}
|
|
1721
1722
|
);
|
|
1722
|
-
}), Ls = "_typography_zt7xg_1", Ms = "_disabled_zt7xg_8", $s = "_primary_zt7xg_13", js = "_secondary_zt7xg_18", Is = "_tertiary_zt7xg_23", Rs = "_accent_zt7xg_28", ks = "_positive_zt7xg_38", Ts = "_negative_zt7xg_48", As = "_warning_zt7xg_58", Ns = "_special_zt7xg_68", Ds = "_contrast_zt7xg_78",
|
|
1723
|
+
}), Ls = "_typography_zt7xg_1", Ms = "_disabled_zt7xg_8", $s = "_primary_zt7xg_13", js = "_secondary_zt7xg_18", Is = "_tertiary_zt7xg_23", Rs = "_accent_zt7xg_28", ks = "_positive_zt7xg_38", Ts = "_negative_zt7xg_48", As = "_warning_zt7xg_58", Ns = "_special_zt7xg_68", Ds = "_contrast_zt7xg_78", Ie = {
|
|
1723
1724
|
typography: Ls,
|
|
1724
1725
|
disabled: Ms,
|
|
1725
1726
|
primary: $s,
|
|
@@ -1751,21 +1752,21 @@ const yr = 3, mr = (t) => {
|
|
|
1751
1752
|
className: i,
|
|
1752
1753
|
"data-testid": n,
|
|
1753
1754
|
as: c,
|
|
1754
|
-
fontWeight:
|
|
1755
|
+
fontWeight: _ = "semibold",
|
|
1755
1756
|
disabled: d = !1,
|
|
1756
1757
|
typographyStyle: f = "primary",
|
|
1757
|
-
...
|
|
1758
|
+
...p
|
|
1758
1759
|
}, g) => {
|
|
1759
|
-
const h = c || Os[a],
|
|
1760
|
-
|
|
1761
|
-
Ne[`typography-${t}-${a}-${
|
|
1762
|
-
|
|
1760
|
+
const h = c || Os[a], b = q(
|
|
1761
|
+
Ie.typography,
|
|
1762
|
+
Ne[`typography-${t}-${a}-${_}`],
|
|
1763
|
+
Ie[f],
|
|
1763
1764
|
{
|
|
1764
|
-
[
|
|
1765
|
+
[Ie.disabled]: d
|
|
1765
1766
|
},
|
|
1766
1767
|
i
|
|
1767
1768
|
);
|
|
1768
|
-
return s ? /* @__PURE__ */ o.jsx(h, { ref: g, className:
|
|
1769
|
+
return s ? /* @__PURE__ */ o.jsx(h, { ref: g, className: b, "data-testid": n, ...p, children: s }) : null;
|
|
1769
1770
|
}
|
|
1770
1771
|
);
|
|
1771
1772
|
return r.displayName = `Typography.${t === "title" ? "Title" : "Subtitle"}`, r;
|
|
@@ -1777,17 +1778,17 @@ const yr = 3, mr = (t) => {
|
|
|
1777
1778
|
className: i,
|
|
1778
1779
|
"data-testid": n,
|
|
1779
1780
|
as: c = "p",
|
|
1780
|
-
fontWeight:
|
|
1781
|
+
fontWeight: _ = "regular",
|
|
1781
1782
|
disabled: d = !1,
|
|
1782
1783
|
typographyStyle: f = "primary",
|
|
1783
|
-
...
|
|
1784
|
+
...p
|
|
1784
1785
|
}, g) => {
|
|
1785
|
-
const h = c,
|
|
1786
|
-
|
|
1787
|
-
Ne[`typography-${t}-${a}-${
|
|
1788
|
-
|
|
1786
|
+
const h = c, b = q(
|
|
1787
|
+
Ie.typography,
|
|
1788
|
+
Ne[`typography-${t}-${a}-${_}`],
|
|
1789
|
+
Ie[f],
|
|
1789
1790
|
{
|
|
1790
|
-
[
|
|
1791
|
+
[Ie.disabled]: d
|
|
1791
1792
|
},
|
|
1792
1793
|
i
|
|
1793
1794
|
);
|
|
@@ -1795,9 +1796,9 @@ const yr = 3, mr = (t) => {
|
|
|
1795
1796
|
h,
|
|
1796
1797
|
{
|
|
1797
1798
|
ref: g,
|
|
1798
|
-
className:
|
|
1799
|
+
className: b,
|
|
1799
1800
|
"data-testid": n,
|
|
1800
|
-
...
|
|
1801
|
+
...p,
|
|
1801
1802
|
children: s
|
|
1802
1803
|
}
|
|
1803
1804
|
) : null;
|
|
@@ -1809,7 +1810,7 @@ const yr = 3, mr = (t) => {
|
|
|
1809
1810
|
Subtitle: xt("subtitle"),
|
|
1810
1811
|
Label: Ct("label"),
|
|
1811
1812
|
Paragraph: Ct("paragraph")
|
|
1812
|
-
}, Us = "_inputBase_1m6fe_85", Bs = "_wrapper_1m6fe_95", Fs = "_gripHandle_1m6fe_169", Ps = "_error_1m6fe_230", zs = "_tabFocused_1m6fe_237", Ws = "_disabled_1m6fe_262", Vs = "_loading_1m6fe_269", Hs = "_label_1m6fe_279",
|
|
1813
|
+
}, Us = "_inputBase_1m6fe_85", Bs = "_wrapper_1m6fe_95", Fs = "_gripHandle_1m6fe_169", Ps = "_error_1m6fe_230", zs = "_tabFocused_1m6fe_237", Ws = "_disabled_1m6fe_262", Vs = "_loading_1m6fe_269", Hs = "_label_1m6fe_279", qs = "_small_1m6fe_292", Gs = "_large_1m6fe_299", Zs = "_leftSection_1m6fe_306", Ys = "_rightSection_1m6fe_315", Js = "_helper_1m6fe_351", Ks = "_floatingLabel_1m6fe_376", Xs = "_focused_1m6fe_434", Qs = "_filled_1m6fe_435", en = "_medium_1m6fe_469", tn = "_characterLimit_1m6fe_510", an = "_input_1m6fe_85", rn = "_textarea_1m6fe_109", sn = "_truncate_1m6fe_637", nn = "_hint_1m6fe_719", M = {
|
|
1813
1814
|
inputBase: Us,
|
|
1814
1815
|
wrapper: Bs,
|
|
1815
1816
|
"textarea-wrapper": "_textarea-wrapper_1m6fe_109",
|
|
@@ -1819,9 +1820,9 @@ const yr = 3, mr = (t) => {
|
|
|
1819
1820
|
disabled: Ws,
|
|
1820
1821
|
loading: Vs,
|
|
1821
1822
|
label: Hs,
|
|
1822
|
-
small:
|
|
1823
|
-
large:
|
|
1824
|
-
leftSection:
|
|
1823
|
+
small: qs,
|
|
1824
|
+
large: Gs,
|
|
1825
|
+
leftSection: Zs,
|
|
1825
1826
|
rightSection: Ys,
|
|
1826
1827
|
helper: Js,
|
|
1827
1828
|
floatingLabel: Ks,
|
|
@@ -1870,7 +1871,7 @@ const yr = 3, mr = (t) => {
|
|
|
1870
1871
|
onClick: i,
|
|
1871
1872
|
...n
|
|
1872
1873
|
}) => {
|
|
1873
|
-
const
|
|
1874
|
+
const _ = {
|
|
1874
1875
|
display: "inline-block",
|
|
1875
1876
|
color: s,
|
|
1876
1877
|
...{
|
|
@@ -1887,7 +1888,7 @@ const yr = 3, mr = (t) => {
|
|
|
1887
1888
|
"svg",
|
|
1888
1889
|
{
|
|
1889
1890
|
className: t,
|
|
1890
|
-
style:
|
|
1891
|
+
style: _,
|
|
1891
1892
|
viewBox: "0 0 16 16",
|
|
1892
1893
|
fill: "none",
|
|
1893
1894
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1934,13 +1935,13 @@ const yr = 3, mr = (t) => {
|
|
|
1934
1935
|
n.preventDefault(), n.stopPropagation();
|
|
1935
1936
|
const c = n.currentTarget.closest(`.${M.wrapper}`);
|
|
1936
1937
|
if (!c) return;
|
|
1937
|
-
const
|
|
1938
|
-
const h = g.clientY -
|
|
1939
|
-
c.style.height = `${
|
|
1940
|
-
},
|
|
1941
|
-
document.removeEventListener("mousemove", f), document.removeEventListener("mouseup",
|
|
1938
|
+
const _ = n.clientY, d = c.clientHeight, f = (g) => {
|
|
1939
|
+
const h = g.clientY - _, b = Math.min(100, d), y = Math.max(b, d + h);
|
|
1940
|
+
c.style.height = `${y}px`;
|
|
1941
|
+
}, p = () => {
|
|
1942
|
+
document.removeEventListener("mousemove", f), document.removeEventListener("mouseup", p);
|
|
1942
1943
|
};
|
|
1943
|
-
document.addEventListener("mousemove", f), document.addEventListener("mouseup",
|
|
1944
|
+
document.addEventListener("mousemove", f), document.addEventListener("mouseup", p);
|
|
1944
1945
|
},
|
|
1945
1946
|
[t, r, a, s]
|
|
1946
1947
|
) }), wt = 30, un = Q(
|
|
@@ -1952,77 +1953,77 @@ const yr = 3, mr = (t) => {
|
|
|
1952
1953
|
disabled: i = !1,
|
|
1953
1954
|
loading: n = !1,
|
|
1954
1955
|
onFocus: c,
|
|
1955
|
-
onBlur:
|
|
1956
|
+
onBlur: _,
|
|
1956
1957
|
onChange: d,
|
|
1957
1958
|
onKeyUp: f,
|
|
1958
|
-
maxLength:
|
|
1959
|
+
maxLength: p,
|
|
1959
1960
|
className: g,
|
|
1960
1961
|
style: h,
|
|
1961
|
-
truncate:
|
|
1962
|
-
shouldShowFloatingLabelClass:
|
|
1962
|
+
truncate: b = !1,
|
|
1963
|
+
shouldShowFloatingLabelClass: y = !1,
|
|
1963
1964
|
"aria-invalid": w,
|
|
1964
1965
|
"aria-errormessage": C,
|
|
1965
|
-
id:
|
|
1966
|
-
resize:
|
|
1967
|
-
...
|
|
1968
|
-
},
|
|
1969
|
-
const { textareaRef:
|
|
1970
|
-
if (cn(a,
|
|
1966
|
+
id: S,
|
|
1967
|
+
resize: m,
|
|
1968
|
+
...R
|
|
1969
|
+
}, D) => {
|
|
1970
|
+
const { textareaRef: k, inputRef: T, currentRef: I } = ln(a, t);
|
|
1971
|
+
if (cn(a, m, k), oa(D, () => I.current, [I]), t === "textarea")
|
|
1971
1972
|
return /* @__PURE__ */ o.jsx(
|
|
1972
1973
|
"textarea",
|
|
1973
1974
|
{
|
|
1974
|
-
ref:
|
|
1975
|
-
id:
|
|
1975
|
+
ref: k,
|
|
1976
|
+
id: S,
|
|
1976
1977
|
value: a,
|
|
1977
1978
|
placeholder: s,
|
|
1978
1979
|
disabled: i || n,
|
|
1979
1980
|
onFocus: c,
|
|
1980
|
-
onBlur:
|
|
1981
|
+
onBlur: _,
|
|
1981
1982
|
onChange: d,
|
|
1982
1983
|
onKeyUp: f,
|
|
1983
|
-
maxLength:
|
|
1984
|
-
className:
|
|
1984
|
+
maxLength: p,
|
|
1985
|
+
className: q(
|
|
1985
1986
|
M.textarea,
|
|
1986
1987
|
M[`size-${r}`],
|
|
1987
|
-
|
|
1988
|
+
y && M["with-floating-label"],
|
|
1988
1989
|
g
|
|
1989
1990
|
),
|
|
1990
1991
|
style: h,
|
|
1991
1992
|
"aria-invalid": w,
|
|
1992
1993
|
"aria-errormessage": C,
|
|
1993
|
-
"aria-describedby": C ? `${
|
|
1994
|
+
"aria-describedby": C ? `${S}-error` : void 0,
|
|
1994
1995
|
tabIndex: 0,
|
|
1995
|
-
"data-resize":
|
|
1996
|
-
...
|
|
1996
|
+
"data-resize": m,
|
|
1997
|
+
...R
|
|
1997
1998
|
}
|
|
1998
1999
|
);
|
|
1999
2000
|
if (t === "input")
|
|
2000
2001
|
return /* @__PURE__ */ o.jsx(
|
|
2001
2002
|
"input",
|
|
2002
2003
|
{
|
|
2003
|
-
ref:
|
|
2004
|
-
id:
|
|
2004
|
+
ref: T,
|
|
2005
|
+
id: S,
|
|
2005
2006
|
value: a,
|
|
2006
2007
|
placeholder: s,
|
|
2007
2008
|
disabled: i || n,
|
|
2008
2009
|
onFocus: c,
|
|
2009
|
-
onBlur:
|
|
2010
|
+
onBlur: _,
|
|
2010
2011
|
onChange: d,
|
|
2011
2012
|
onKeyUp: f,
|
|
2012
|
-
maxLength:
|
|
2013
|
-
className:
|
|
2013
|
+
maxLength: p,
|
|
2014
|
+
className: q(
|
|
2014
2015
|
M.input,
|
|
2015
2016
|
M[`size-${r}`],
|
|
2016
|
-
|
|
2017
|
-
|
|
2017
|
+
y && M["with-floating-label"],
|
|
2018
|
+
b && M.truncate,
|
|
2018
2019
|
g
|
|
2019
2020
|
),
|
|
2020
2021
|
style: h,
|
|
2021
2022
|
"aria-invalid": w,
|
|
2022
2023
|
"aria-errormessage": C,
|
|
2023
|
-
"aria-describedby": C ? `${
|
|
2024
|
+
"aria-describedby": C ? `${S}-error` : void 0,
|
|
2024
2025
|
tabIndex: 0,
|
|
2025
|
-
...
|
|
2026
|
+
...R
|
|
2026
2027
|
}
|
|
2027
2028
|
);
|
|
2028
2029
|
if (t !== "input" && t !== "textarea")
|
|
@@ -2039,67 +2040,67 @@ const yr = 3, mr = (t) => {
|
|
|
2039
2040
|
loading: i = !1,
|
|
2040
2041
|
className: n,
|
|
2041
2042
|
wrapperProps: c,
|
|
2042
|
-
wrapperStyles:
|
|
2043
|
+
wrapperStyles: _,
|
|
2043
2044
|
floatingLabelStyles: d,
|
|
2044
2045
|
prefixStyles: f,
|
|
2045
|
-
suffixStyles:
|
|
2046
|
+
suffixStyles: p,
|
|
2046
2047
|
labelProps: g,
|
|
2047
2048
|
helperProps: h,
|
|
2048
|
-
showLimit:
|
|
2049
|
-
maxLength:
|
|
2049
|
+
showLimit: b = !1,
|
|
2050
|
+
maxLength: y,
|
|
2050
2051
|
hint: w,
|
|
2051
2052
|
showHint: C = !1,
|
|
2052
|
-
showHintOnEmpty:
|
|
2053
|
-
prefix:
|
|
2054
|
-
suffix:
|
|
2055
|
-
placeholder:
|
|
2056
|
-
showLabel:
|
|
2057
|
-
labelClassName:
|
|
2058
|
-
hasValue:
|
|
2059
|
-
helper:
|
|
2060
|
-
id:
|
|
2053
|
+
showHintOnEmpty: S = !1,
|
|
2054
|
+
prefix: m,
|
|
2055
|
+
suffix: R,
|
|
2056
|
+
placeholder: D,
|
|
2057
|
+
showLabel: k = !0,
|
|
2058
|
+
labelClassName: T,
|
|
2059
|
+
hasValue: I = !1,
|
|
2060
|
+
helper: U,
|
|
2061
|
+
id: N,
|
|
2061
2062
|
value: z = "",
|
|
2062
2063
|
resize: x,
|
|
2063
2064
|
showGrip: W = !1,
|
|
2064
2065
|
...O
|
|
2065
2066
|
}, $) => {
|
|
2066
|
-
const
|
|
2067
|
+
const B = $t(), V = N || B, G = C && w && (I || S), Z = w && w.length > wt ? w.substring(0, wt) + "..." : w, te = q(
|
|
2067
2068
|
M.wrapper,
|
|
2068
2069
|
a && M.error,
|
|
2069
2070
|
s && M.disabled,
|
|
2070
2071
|
i && M.loading,
|
|
2071
|
-
|
|
2072
|
+
G && M["has-hint"],
|
|
2072
2073
|
n
|
|
2073
|
-
), ae =
|
|
2074
|
+
), ae = q(
|
|
2074
2075
|
M.floatingLabel,
|
|
2075
2076
|
M[r],
|
|
2076
|
-
|
|
2077
|
-
|
|
2077
|
+
I && M.filled,
|
|
2078
|
+
T
|
|
2078
2079
|
), { handleGripMouseDown: re } = dn(W, s, i, x);
|
|
2079
2080
|
return /* @__PURE__ */ o.jsxs("div", { ref: $, className: M.inputBase, "data-testid": "input-base-wrapper", ...O, children: [
|
|
2080
2081
|
/* @__PURE__ */ o.jsxs(
|
|
2081
2082
|
"div",
|
|
2082
2083
|
{
|
|
2083
2084
|
className: te,
|
|
2084
|
-
style:
|
|
2085
|
+
style: _,
|
|
2085
2086
|
"data-resize": x,
|
|
2086
2087
|
"data-show-grip": W ? "true" : "false",
|
|
2087
2088
|
...c,
|
|
2088
2089
|
children: [
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2090
|
+
m && /* @__PURE__ */ o.jsx("label", { htmlFor: V, className: M.leftSection, style: f, children: m }),
|
|
2091
|
+
R && /* @__PURE__ */ o.jsx("label", { htmlFor: V, className: M.rightSection, style: p, children: R }),
|
|
2092
|
+
D && k && /* @__PURE__ */ o.jsx(
|
|
2092
2093
|
"label",
|
|
2093
2094
|
{
|
|
2094
2095
|
htmlFor: V,
|
|
2095
2096
|
className: ae,
|
|
2096
2097
|
style: d,
|
|
2097
2098
|
...g,
|
|
2098
|
-
children:
|
|
2099
|
+
children: D
|
|
2099
2100
|
}
|
|
2100
2101
|
),
|
|
2101
2102
|
t,
|
|
2102
|
-
W && !
|
|
2103
|
+
W && !b && (x === "fixed" || !x) && /* @__PURE__ */ o.jsx(
|
|
2103
2104
|
"div",
|
|
2104
2105
|
{
|
|
2105
2106
|
className: M.gripHandle,
|
|
@@ -2110,33 +2111,33 @@ const yr = 3, mr = (t) => {
|
|
|
2110
2111
|
children: /* @__PURE__ */ o.jsx(on, {})
|
|
2111
2112
|
}
|
|
2112
2113
|
),
|
|
2113
|
-
|
|
2114
|
+
G && /* @__PURE__ */ o.jsx(
|
|
2114
2115
|
"div",
|
|
2115
2116
|
{
|
|
2116
|
-
className:
|
|
2117
|
+
className: q(M.hint, I && M.truncate),
|
|
2117
2118
|
"data-disabled": s || i,
|
|
2118
|
-
children:
|
|
2119
|
+
children: Z
|
|
2119
2120
|
}
|
|
2120
2121
|
),
|
|
2121
|
-
|
|
2122
|
+
b && y && /* @__PURE__ */ o.jsxs("div", { className: M.characterLimit, children: [
|
|
2122
2123
|
(z || "").length,
|
|
2123
2124
|
" из ",
|
|
2124
|
-
|
|
2125
|
+
y
|
|
2125
2126
|
] })
|
|
2126
2127
|
]
|
|
2127
2128
|
}
|
|
2128
2129
|
),
|
|
2129
|
-
|
|
2130
|
+
U && /* @__PURE__ */ o.jsx(
|
|
2130
2131
|
"div",
|
|
2131
2132
|
{
|
|
2132
|
-
className:
|
|
2133
|
+
className: q(
|
|
2133
2134
|
M.helper,
|
|
2134
2135
|
a && M.error,
|
|
2135
2136
|
(s || i) && M.disabled
|
|
2136
2137
|
),
|
|
2137
2138
|
...h,
|
|
2138
2139
|
id: a ? `${V}-error` : void 0,
|
|
2139
|
-
children:
|
|
2140
|
+
children: U
|
|
2140
2141
|
}
|
|
2141
2142
|
)
|
|
2142
2143
|
] });
|
|
@@ -2154,44 +2155,44 @@ const St = Object.assign(un, {
|
|
|
2154
2155
|
disabled: i = !1,
|
|
2155
2156
|
loading: n = !1,
|
|
2156
2157
|
placeholder: c,
|
|
2157
|
-
showLabel:
|
|
2158
|
+
showLabel: _ = !0,
|
|
2158
2159
|
labelClassName: d,
|
|
2159
2160
|
helper: f,
|
|
2160
|
-
prefix:
|
|
2161
|
+
prefix: p,
|
|
2161
2162
|
suffix: g,
|
|
2162
2163
|
id: h,
|
|
2163
|
-
onFocus:
|
|
2164
|
-
onBlur:
|
|
2164
|
+
onFocus: b,
|
|
2165
|
+
onBlur: y,
|
|
2165
2166
|
onChange: w,
|
|
2166
2167
|
value: C = "",
|
|
2167
|
-
wrapperProps:
|
|
2168
|
-
wrapperStyles:
|
|
2169
|
-
floatingLabelStyles:
|
|
2170
|
-
prefixStyles:
|
|
2171
|
-
suffixStyles:
|
|
2172
|
-
textareaStyles:
|
|
2173
|
-
labelProps:
|
|
2174
|
-
helperProps:
|
|
2175
|
-
showLimit:
|
|
2168
|
+
wrapperProps: S,
|
|
2169
|
+
wrapperStyles: m,
|
|
2170
|
+
floatingLabelStyles: R,
|
|
2171
|
+
prefixStyles: D,
|
|
2172
|
+
suffixStyles: k,
|
|
2173
|
+
textareaStyles: T,
|
|
2174
|
+
labelProps: I,
|
|
2175
|
+
helperProps: U,
|
|
2176
|
+
showLimit: N = !1,
|
|
2176
2177
|
maxLength: z,
|
|
2177
2178
|
inputProps: x,
|
|
2178
2179
|
hint: W,
|
|
2179
2180
|
showHint: O = !1,
|
|
2180
2181
|
showHintOnEmpty: $ = !1,
|
|
2181
|
-
truncate:
|
|
2182
|
+
truncate: B = !1,
|
|
2182
2183
|
resize: V,
|
|
2183
|
-
showGrip:
|
|
2184
|
-
...
|
|
2184
|
+
showGrip: G = !1,
|
|
2185
|
+
...Z
|
|
2185
2186
|
}, te) => {
|
|
2186
|
-
const ae = $t(), re = h || ae, [be, se] = De(C), ye = C !== void 0 ? C : be,
|
|
2187
|
+
const ae = $t(), re = h || ae, [be, se] = De(C), ye = C !== void 0 ? C : be, Ee = (ye || "").length > 0, ue = _ && (r === "large" || t === "textarea") && !p, ie = Ce(
|
|
2187
2188
|
(K) => {
|
|
2188
2189
|
var ee;
|
|
2189
|
-
i || n || (
|
|
2190
|
+
i || n || (b == null || b(), (ee = x == null ? void 0 : x.onFocus) == null || ee.call(
|
|
2190
2191
|
x,
|
|
2191
2192
|
K
|
|
2192
2193
|
));
|
|
2193
2194
|
},
|
|
2194
|
-
[
|
|
2195
|
+
[b, x, i, n]
|
|
2195
2196
|
), pe = Ce(
|
|
2196
2197
|
(K) => {
|
|
2197
2198
|
var ee;
|
|
@@ -2209,12 +2210,12 @@ const St = Object.assign(un, {
|
|
|
2209
2210
|
(K) => {
|
|
2210
2211
|
var ce;
|
|
2211
2212
|
const ee = K.target.closest(`.${M.wrapper}`);
|
|
2212
|
-
ee && ee.classList.remove(M.tabFocused),
|
|
2213
|
+
ee && ee.classList.remove(M.tabFocused), y == null || y(), (ce = x == null ? void 0 : x.onBlur) == null || ce.call(
|
|
2213
2214
|
x,
|
|
2214
2215
|
K
|
|
2215
2216
|
);
|
|
2216
2217
|
},
|
|
2217
|
-
[
|
|
2218
|
+
[y, x]
|
|
2218
2219
|
), me = Ce(
|
|
2219
2220
|
(K) => {
|
|
2220
2221
|
var ce;
|
|
@@ -2237,31 +2238,31 @@ const St = Object.assign(un, {
|
|
|
2237
2238
|
error: s,
|
|
2238
2239
|
disabled: i || n,
|
|
2239
2240
|
loading: n,
|
|
2240
|
-
className:
|
|
2241
|
-
wrapperProps:
|
|
2242
|
-
wrapperStyles:
|
|
2243
|
-
floatingLabelStyles:
|
|
2244
|
-
prefixStyles:
|
|
2245
|
-
suffixStyles:
|
|
2246
|
-
labelProps:
|
|
2247
|
-
helperProps:
|
|
2248
|
-
showLimit:
|
|
2241
|
+
className: q(a, t === "textarea" && M["textarea-wrapper"]),
|
|
2242
|
+
wrapperProps: S,
|
|
2243
|
+
wrapperStyles: m,
|
|
2244
|
+
floatingLabelStyles: R,
|
|
2245
|
+
prefixStyles: D,
|
|
2246
|
+
suffixStyles: k,
|
|
2247
|
+
labelProps: I,
|
|
2248
|
+
helperProps: U,
|
|
2249
|
+
showLimit: N,
|
|
2249
2250
|
maxLength: z,
|
|
2250
2251
|
hint: W,
|
|
2251
2252
|
showHint: O,
|
|
2252
2253
|
showHintOnEmpty: $,
|
|
2253
|
-
prefix:
|
|
2254
|
+
prefix: p,
|
|
2254
2255
|
suffix: g,
|
|
2255
2256
|
placeholder: c,
|
|
2256
|
-
showLabel:
|
|
2257
|
+
showLabel: _,
|
|
2257
2258
|
labelClassName: d,
|
|
2258
|
-
hasValue:
|
|
2259
|
+
hasValue: Ee,
|
|
2259
2260
|
helper: f,
|
|
2260
2261
|
id: re,
|
|
2261
2262
|
value: ye,
|
|
2262
|
-
showGrip:
|
|
2263
|
+
showGrip: G,
|
|
2263
2264
|
resize: V,
|
|
2264
|
-
...
|
|
2265
|
+
...Z,
|
|
2265
2266
|
children: /* @__PURE__ */ o.jsx(
|
|
2266
2267
|
St,
|
|
2267
2268
|
{
|
|
@@ -2276,10 +2277,10 @@ const St = Object.assign(un, {
|
|
|
2276
2277
|
onChange: me,
|
|
2277
2278
|
onKeyUp: pe,
|
|
2278
2279
|
maxLength: z,
|
|
2279
|
-
truncate:
|
|
2280
|
-
"data-empty": !
|
|
2280
|
+
truncate: B,
|
|
2281
|
+
"data-empty": !Ee,
|
|
2281
2282
|
shouldShowFloatingLabelClass: ue,
|
|
2282
|
-
style: t === "textarea" ?
|
|
2283
|
+
style: t === "textarea" ? T : void 0,
|
|
2283
2284
|
"aria-invalid": !!s,
|
|
2284
2285
|
"aria-errormessage": s ? `${re}-error` : void 0,
|
|
2285
2286
|
id: re,
|
|
@@ -2404,31 +2405,31 @@ const St = Object.assign(un, {
|
|
|
2404
2405
|
maxLength: i,
|
|
2405
2406
|
minLength: n,
|
|
2406
2407
|
autoComplete: c,
|
|
2407
|
-
autoFocus:
|
|
2408
|
+
autoFocus: _,
|
|
2408
2409
|
size: d = J.MEDIUM,
|
|
2409
2410
|
inputProps: f,
|
|
2410
|
-
error:
|
|
2411
|
+
error: p,
|
|
2411
2412
|
disabled: g,
|
|
2412
2413
|
loading: h,
|
|
2413
|
-
helper:
|
|
2414
|
-
prefix:
|
|
2414
|
+
helper: b,
|
|
2415
|
+
prefix: y,
|
|
2415
2416
|
suffix: w,
|
|
2416
2417
|
clearable: C = !1,
|
|
2417
|
-
id:
|
|
2418
|
-
showLabel:
|
|
2419
|
-
onFocus:
|
|
2420
|
-
onBlur:
|
|
2421
|
-
className:
|
|
2422
|
-
truncate:
|
|
2423
|
-
hint:
|
|
2424
|
-
showHint:
|
|
2425
|
-
showHintOnEmpty:
|
|
2418
|
+
id: S,
|
|
2419
|
+
showLabel: m = !0,
|
|
2420
|
+
onFocus: R,
|
|
2421
|
+
onBlur: D,
|
|
2422
|
+
className: k,
|
|
2423
|
+
truncate: T = !0,
|
|
2424
|
+
hint: I,
|
|
2425
|
+
showHint: U = !1,
|
|
2426
|
+
showHintOnEmpty: N = !1,
|
|
2426
2427
|
wrapperProps: z,
|
|
2427
2428
|
labelProps: x,
|
|
2428
2429
|
helperProps: W,
|
|
2429
2430
|
...O
|
|
2430
2431
|
}, $) => {
|
|
2431
|
-
const
|
|
2432
|
+
const B = (t || "").length > 0, V = d === J.LARGE, G = !!y, Z = V && m && !y, te = C && B && !(g || h), ae = () => {
|
|
2432
2433
|
r == null || r("");
|
|
2433
2434
|
}, re = te ? /* @__PURE__ */ o.jsx(
|
|
2434
2435
|
kt,
|
|
@@ -2443,27 +2444,27 @@ const St = Object.assign(un, {
|
|
|
2443
2444
|
type: a,
|
|
2444
2445
|
minLength: n,
|
|
2445
2446
|
autoComplete: c,
|
|
2446
|
-
autoFocus:
|
|
2447
|
+
autoFocus: _,
|
|
2447
2448
|
...f
|
|
2448
|
-
}, se = yn(d,
|
|
2449
|
+
}, se = yn(d, Z, B, G);
|
|
2449
2450
|
return /* @__PURE__ */ o.jsx(
|
|
2450
2451
|
At,
|
|
2451
2452
|
{
|
|
2452
2453
|
size: d,
|
|
2453
|
-
error:
|
|
2454
|
+
error: p,
|
|
2454
2455
|
disabled: g || h,
|
|
2455
2456
|
loading: h,
|
|
2456
|
-
helper:
|
|
2457
|
-
prefix:
|
|
2457
|
+
helper: b,
|
|
2458
|
+
prefix: y,
|
|
2458
2459
|
suffix: re,
|
|
2459
|
-
id:
|
|
2460
|
-
showLabel:
|
|
2461
|
-
onFocus:
|
|
2462
|
-
onBlur:
|
|
2460
|
+
id: S,
|
|
2461
|
+
showLabel: Z,
|
|
2462
|
+
onFocus: R,
|
|
2463
|
+
onBlur: D,
|
|
2463
2464
|
onChange: r,
|
|
2464
2465
|
value: t || "",
|
|
2465
2466
|
placeholder: s,
|
|
2466
|
-
className:
|
|
2467
|
+
className: k,
|
|
2467
2468
|
wrapperStyles: se.wrapperStyles,
|
|
2468
2469
|
floatingLabelStyles: se.floatingLabelStyles,
|
|
2469
2470
|
prefixStyles: se.prefixStyles,
|
|
@@ -2474,10 +2475,10 @@ const St = Object.assign(un, {
|
|
|
2474
2475
|
showLimit: !1,
|
|
2475
2476
|
maxLength: i,
|
|
2476
2477
|
inputProps: be,
|
|
2477
|
-
hint:
|
|
2478
|
-
showHint:
|
|
2479
|
-
showHintOnEmpty:
|
|
2480
|
-
truncate:
|
|
2478
|
+
hint: I,
|
|
2479
|
+
showHint: U,
|
|
2480
|
+
showHintOnEmpty: N,
|
|
2481
|
+
truncate: T,
|
|
2481
2482
|
...O
|
|
2482
2483
|
}
|
|
2483
2484
|
);
|
|
@@ -2497,7 +2498,7 @@ const St = Object.assign(un, {
|
|
|
2497
2498
|
}, Ke = {
|
|
2498
2499
|
SMALL: "112px",
|
|
2499
2500
|
MEDIUM: "56px"
|
|
2500
|
-
},
|
|
2501
|
+
}, je = {
|
|
2501
2502
|
SMALL: "48px",
|
|
2502
2503
|
MEDIUM: "22px"
|
|
2503
2504
|
}, fe = {
|
|
@@ -2522,22 +2523,22 @@ const St = Object.assign(un, {
|
|
|
2522
2523
|
}
|
|
2523
2524
|
}, xn = (t, r) => {
|
|
2524
2525
|
if (t === oe.SMALL)
|
|
2525
|
-
return
|
|
2526
|
+
return je.SMALL;
|
|
2526
2527
|
if (r)
|
|
2527
2528
|
switch (r) {
|
|
2528
2529
|
case he.SMALL:
|
|
2529
2530
|
case he.MEDIUM:
|
|
2530
|
-
return
|
|
2531
|
+
return je.MEDIUM;
|
|
2531
2532
|
case he.LARGE:
|
|
2532
|
-
return
|
|
2533
|
+
return je.SMALL;
|
|
2533
2534
|
default:
|
|
2534
|
-
return
|
|
2535
|
+
return je.MEDIUM;
|
|
2535
2536
|
}
|
|
2536
2537
|
switch (t) {
|
|
2537
2538
|
case oe.MEDIUM:
|
|
2538
|
-
return
|
|
2539
|
+
return je.MEDIUM;
|
|
2539
2540
|
default:
|
|
2540
|
-
return
|
|
2541
|
+
return je.MEDIUM;
|
|
2541
2542
|
}
|
|
2542
2543
|
}, Cn = (t, r, a) => {
|
|
2543
2544
|
if (t === oe.SMALL)
|
|
@@ -2611,31 +2612,31 @@ const St = Object.assign(un, {
|
|
|
2611
2612
|
minLength: i,
|
|
2612
2613
|
autoFocus: n,
|
|
2613
2614
|
size: c = oe.MEDIUM,
|
|
2614
|
-
textareaProps:
|
|
2615
|
+
textareaProps: _,
|
|
2615
2616
|
error: d,
|
|
2616
2617
|
disabled: f,
|
|
2617
|
-
loading:
|
|
2618
|
+
loading: p,
|
|
2618
2619
|
helper: g,
|
|
2619
2620
|
suffix: h,
|
|
2620
|
-
clearable:
|
|
2621
|
-
id:
|
|
2621
|
+
clearable: b = !1,
|
|
2622
|
+
id: y,
|
|
2622
2623
|
showLabel: w = !0,
|
|
2623
2624
|
onFocus: C,
|
|
2624
|
-
onBlur:
|
|
2625
|
-
className:
|
|
2626
|
-
rows:
|
|
2627
|
-
showLimit:
|
|
2628
|
-
wrapperProps:
|
|
2629
|
-
labelProps:
|
|
2630
|
-
helperProps:
|
|
2631
|
-
showGrip:
|
|
2632
|
-
minHeight:
|
|
2625
|
+
onBlur: S,
|
|
2626
|
+
className: m,
|
|
2627
|
+
rows: R = 1,
|
|
2628
|
+
showLimit: D = !1,
|
|
2629
|
+
wrapperProps: k,
|
|
2630
|
+
labelProps: T,
|
|
2631
|
+
helperProps: I,
|
|
2632
|
+
showGrip: U,
|
|
2633
|
+
minHeight: N,
|
|
2633
2634
|
resize: z,
|
|
2634
2635
|
...x
|
|
2635
2636
|
}, W) => {
|
|
2636
|
-
const O = (t || "").length > 0, $ = w && !!a && (c === oe.SMALL ||
|
|
2637
|
+
const O = (t || "").length > 0, $ = w && !!a && (c === oe.SMALL || N !== 48), B = b && O && !(f || p), V = () => {
|
|
2637
2638
|
r == null || r("");
|
|
2638
|
-
},
|
|
2639
|
+
}, G = B ? /* @__PURE__ */ o.jsx(
|
|
2639
2640
|
kt,
|
|
2640
2641
|
{
|
|
2641
2642
|
size: Sn(c),
|
|
@@ -2644,12 +2645,12 @@ const St = Object.assign(un, {
|
|
|
2644
2645
|
style: { cursor: "pointer" },
|
|
2645
2646
|
"data-testid": "x-icon"
|
|
2646
2647
|
}
|
|
2647
|
-
) : h,
|
|
2648
|
-
rows:
|
|
2648
|
+
) : h, Z = Ln(c, N, $ && O, z), te = wn(c, N), ae = {
|
|
2649
|
+
rows: R,
|
|
2649
2650
|
minLength: i,
|
|
2650
2651
|
autoFocus: n,
|
|
2651
2652
|
resize: z,
|
|
2652
|
-
...
|
|
2653
|
+
..._
|
|
2653
2654
|
};
|
|
2654
2655
|
return /* @__PURE__ */ o.jsx(
|
|
2655
2656
|
At,
|
|
@@ -2658,31 +2659,31 @@ const St = Object.assign(un, {
|
|
|
2658
2659
|
component: "textarea",
|
|
2659
2660
|
size: te,
|
|
2660
2661
|
error: d,
|
|
2661
|
-
disabled: f ||
|
|
2662
|
-
loading:
|
|
2662
|
+
disabled: f || p,
|
|
2663
|
+
loading: p,
|
|
2663
2664
|
helper: g,
|
|
2664
|
-
suffix:
|
|
2665
|
-
id:
|
|
2665
|
+
suffix: G,
|
|
2666
|
+
id: y,
|
|
2666
2667
|
showLabel: $,
|
|
2667
2668
|
onFocus: C,
|
|
2668
|
-
onBlur:
|
|
2669
|
+
onBlur: S,
|
|
2669
2670
|
onChange: r,
|
|
2670
2671
|
value: t || "",
|
|
2671
2672
|
placeholder: a,
|
|
2672
|
-
className:
|
|
2673
|
+
className: m,
|
|
2673
2674
|
"data-floating-label": $,
|
|
2674
|
-
wrapperStyles:
|
|
2675
|
-
floatingLabelStyles:
|
|
2676
|
-
suffixStyles:
|
|
2677
|
-
textareaStyles:
|
|
2678
|
-
wrapperProps:
|
|
2679
|
-
labelProps:
|
|
2680
|
-
helperProps:
|
|
2681
|
-
showLimit:
|
|
2675
|
+
wrapperStyles: Z.wrapperStyles,
|
|
2676
|
+
floatingLabelStyles: Z.floatingLabelStyles,
|
|
2677
|
+
suffixStyles: Z.suffixStyles,
|
|
2678
|
+
textareaStyles: Z.textareaStyles,
|
|
2679
|
+
wrapperProps: k,
|
|
2680
|
+
labelProps: T,
|
|
2681
|
+
helperProps: I,
|
|
2682
|
+
showLimit: D && (N === 112 || c === oe.SMALL),
|
|
2682
2683
|
maxLength: s,
|
|
2683
2684
|
inputProps: ae,
|
|
2684
2685
|
resize: z,
|
|
2685
|
-
showGrip:
|
|
2686
|
+
showGrip: U,
|
|
2686
2687
|
...x
|
|
2687
2688
|
}
|
|
2688
2689
|
);
|
|
@@ -2699,14 +2700,14 @@ const St = Object.assign(un, {
|
|
|
2699
2700
|
disabled: i = !1,
|
|
2700
2701
|
"data-testid": n,
|
|
2701
2702
|
"aria-label": c,
|
|
2702
|
-
"aria-describedby":
|
|
2703
|
+
"aria-describedby": _
|
|
2703
2704
|
}) => {
|
|
2704
|
-
const d = !!r, f =
|
|
2705
|
+
const d = !!r, f = q(
|
|
2705
2706
|
Xe.helper,
|
|
2706
2707
|
d && Xe["helper--error"],
|
|
2707
2708
|
i && Xe["helper--disabled"],
|
|
2708
2709
|
a
|
|
2709
|
-
),
|
|
2710
|
+
), p = i ? t : r || t;
|
|
2710
2711
|
return /* @__PURE__ */ o.jsx(
|
|
2711
2712
|
"div",
|
|
2712
2713
|
{
|
|
@@ -2714,8 +2715,8 @@ const St = Object.assign(un, {
|
|
|
2714
2715
|
style: s,
|
|
2715
2716
|
"data-testid": n,
|
|
2716
2717
|
"aria-label": c,
|
|
2717
|
-
"aria-describedby":
|
|
2718
|
-
children: /* @__PURE__ */ o.jsx("p", { children:
|
|
2718
|
+
"aria-describedby": _,
|
|
2719
|
+
children: /* @__PURE__ */ o.jsx("p", { children: p })
|
|
2719
2720
|
}
|
|
2720
2721
|
);
|
|
2721
2722
|
};
|
|
@@ -2732,8 +2733,8 @@ export {
|
|
|
2732
2733
|
Pn as TextArea,
|
|
2733
2734
|
Fn as TextInput,
|
|
2734
2735
|
Bn as Typography,
|
|
2735
|
-
|
|
2736
|
+
qr as enUS,
|
|
2736
2737
|
Dn as ruRU,
|
|
2737
|
-
|
|
2738
|
+
Gr as useConfig,
|
|
2738
2739
|
An as useLocale
|
|
2739
2740
|
};
|