@akad/design-system 0.2.0-beta.10 → 0.2.0-beta.12
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/react/react-lib.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as c, jsxs as O, Fragment as tt } from "react/jsx-runtime";
|
|
2
|
-
import be, { useMemo as Ce, useState as j, useEffect as
|
|
2
|
+
import be, { useMemo as Ce, useState as j, useEffect as J, useRef as Je, useCallback as Ae, useLayoutEffect as _n, createElement as vn } from "react";
|
|
3
3
|
function kn(a) {
|
|
4
4
|
return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
|
|
5
5
|
}
|
|
@@ -17,7 +17,7 @@ function bn() {
|
|
|
17
17
|
if (Lt)
|
|
18
18
|
return H;
|
|
19
19
|
Lt = 1;
|
|
20
|
-
var a = typeof Symbol == "function" && Symbol.for, e = a ? Symbol.for("react.element") : 60103, t = a ? Symbol.for("react.portal") : 60106, s = a ? Symbol.for("react.fragment") : 60107, n = a ? Symbol.for("react.strict_mode") : 60108, i = a ? Symbol.for("react.profiler") : 60114, r = a ? Symbol.for("react.provider") : 60109, l = a ? Symbol.for("react.context") : 60110, u = a ? Symbol.for("react.async_mode") : 60111, d = a ? Symbol.for("react.concurrent_mode") : 60111, h = a ? Symbol.for("react.forward_ref") : 60112, f = a ? Symbol.for("react.suspense") : 60113, _ = a ? Symbol.for("react.suspense_list") : 60120, v = a ? Symbol.for("react.memo") : 60115,
|
|
20
|
+
var a = typeof Symbol == "function" && Symbol.for, e = a ? Symbol.for("react.element") : 60103, t = a ? Symbol.for("react.portal") : 60106, s = a ? Symbol.for("react.fragment") : 60107, n = a ? Symbol.for("react.strict_mode") : 60108, i = a ? Symbol.for("react.profiler") : 60114, r = a ? Symbol.for("react.provider") : 60109, l = a ? Symbol.for("react.context") : 60110, u = a ? Symbol.for("react.async_mode") : 60111, d = a ? Symbol.for("react.concurrent_mode") : 60111, h = a ? Symbol.for("react.forward_ref") : 60112, f = a ? Symbol.for("react.suspense") : 60113, _ = a ? Symbol.for("react.suspense_list") : 60120, v = a ? Symbol.for("react.memo") : 60115, C = a ? Symbol.for("react.lazy") : 60116, y = a ? Symbol.for("react.block") : 60121, m = a ? Symbol.for("react.fundamental") : 60117, F = a ? Symbol.for("react.responder") : 60118, P = a ? Symbol.for("react.scope") : 60119;
|
|
21
21
|
function A(p) {
|
|
22
22
|
if (typeof p == "object" && p !== null) {
|
|
23
23
|
var S = p.$$typeof;
|
|
@@ -35,7 +35,7 @@ function bn() {
|
|
|
35
35
|
switch (p = p && p.$$typeof, p) {
|
|
36
36
|
case l:
|
|
37
37
|
case h:
|
|
38
|
-
case
|
|
38
|
+
case C:
|
|
39
39
|
case v:
|
|
40
40
|
case r:
|
|
41
41
|
return p;
|
|
@@ -51,7 +51,7 @@ function bn() {
|
|
|
51
51
|
function x(p) {
|
|
52
52
|
return A(p) === d;
|
|
53
53
|
}
|
|
54
|
-
return H.AsyncMode = u, H.ConcurrentMode = d, H.ContextConsumer = l, H.ContextProvider = r, H.Element = e, H.ForwardRef = h, H.Fragment = s, H.Lazy =
|
|
54
|
+
return H.AsyncMode = u, H.ConcurrentMode = d, H.ContextConsumer = l, H.ContextProvider = r, H.Element = e, H.ForwardRef = h, H.Fragment = s, H.Lazy = C, H.Memo = v, H.Portal = t, H.Profiler = i, H.StrictMode = n, H.Suspense = f, H.isAsyncMode = function(p) {
|
|
55
55
|
return x(p) || A(p) === u;
|
|
56
56
|
}, H.isConcurrentMode = x, H.isContextConsumer = function(p) {
|
|
57
57
|
return A(p) === l;
|
|
@@ -64,7 +64,7 @@ function bn() {
|
|
|
64
64
|
}, H.isFragment = function(p) {
|
|
65
65
|
return A(p) === s;
|
|
66
66
|
}, H.isLazy = function(p) {
|
|
67
|
-
return A(p) ===
|
|
67
|
+
return A(p) === C;
|
|
68
68
|
}, H.isMemo = function(p) {
|
|
69
69
|
return A(p) === v;
|
|
70
70
|
}, H.isPortal = function(p) {
|
|
@@ -76,7 +76,7 @@ function bn() {
|
|
|
76
76
|
}, H.isSuspense = function(p) {
|
|
77
77
|
return A(p) === f;
|
|
78
78
|
}, H.isValidElementType = function(p) {
|
|
79
|
-
return typeof p == "string" || typeof p == "function" || p === s || p === d || p === i || p === n || p === f || p === _ || typeof p == "object" && p !== null && (p.$$typeof ===
|
|
79
|
+
return typeof p == "string" || typeof p == "function" || p === s || p === d || p === i || p === n || p === f || p === _ || typeof p == "object" && p !== null && (p.$$typeof === C || p.$$typeof === v || p.$$typeof === r || p.$$typeof === l || p.$$typeof === h || p.$$typeof === m || p.$$typeof === F || p.$$typeof === P || p.$$typeof === y);
|
|
80
80
|
}, H.typeOf = A, H;
|
|
81
81
|
}
|
|
82
82
|
var W = {};
|
|
@@ -91,10 +91,10 @@ var W = {};
|
|
|
91
91
|
var Pt;
|
|
92
92
|
function Cn() {
|
|
93
93
|
return Pt || (Pt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
94
|
-
var a = typeof Symbol == "function" && Symbol.for, e = a ? Symbol.for("react.element") : 60103, t = a ? Symbol.for("react.portal") : 60106, s = a ? Symbol.for("react.fragment") : 60107, n = a ? Symbol.for("react.strict_mode") : 60108, i = a ? Symbol.for("react.profiler") : 60114, r = a ? Symbol.for("react.provider") : 60109, l = a ? Symbol.for("react.context") : 60110, u = a ? Symbol.for("react.async_mode") : 60111, d = a ? Symbol.for("react.concurrent_mode") : 60111, h = a ? Symbol.for("react.forward_ref") : 60112, f = a ? Symbol.for("react.suspense") : 60113, _ = a ? Symbol.for("react.suspense_list") : 60120, v = a ? Symbol.for("react.memo") : 60115,
|
|
94
|
+
var a = typeof Symbol == "function" && Symbol.for, e = a ? Symbol.for("react.element") : 60103, t = a ? Symbol.for("react.portal") : 60106, s = a ? Symbol.for("react.fragment") : 60107, n = a ? Symbol.for("react.strict_mode") : 60108, i = a ? Symbol.for("react.profiler") : 60114, r = a ? Symbol.for("react.provider") : 60109, l = a ? Symbol.for("react.context") : 60110, u = a ? Symbol.for("react.async_mode") : 60111, d = a ? Symbol.for("react.concurrent_mode") : 60111, h = a ? Symbol.for("react.forward_ref") : 60112, f = a ? Symbol.for("react.suspense") : 60113, _ = a ? Symbol.for("react.suspense_list") : 60120, v = a ? Symbol.for("react.memo") : 60115, C = a ? Symbol.for("react.lazy") : 60116, y = a ? Symbol.for("react.block") : 60121, m = a ? Symbol.for("react.fundamental") : 60117, F = a ? Symbol.for("react.responder") : 60118, P = a ? Symbol.for("react.scope") : 60119;
|
|
95
95
|
function A(k) {
|
|
96
96
|
return typeof k == "string" || typeof k == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
97
|
-
k === s || k === d || k === i || k === n || k === f || k === _ || typeof k == "object" && k !== null && (k.$$typeof ===
|
|
97
|
+
k === s || k === d || k === i || k === n || k === f || k === _ || typeof k == "object" && k !== null && (k.$$typeof === C || k.$$typeof === v || k.$$typeof === r || k.$$typeof === l || k.$$typeof === h || k.$$typeof === m || k.$$typeof === F || k.$$typeof === P || k.$$typeof === y);
|
|
98
98
|
}
|
|
99
99
|
function x(k) {
|
|
100
100
|
if (typeof k == "object" && k !== null) {
|
|
@@ -115,7 +115,7 @@ function Cn() {
|
|
|
115
115
|
switch (Vt) {
|
|
116
116
|
case l:
|
|
117
117
|
case h:
|
|
118
|
-
case
|
|
118
|
+
case C:
|
|
119
119
|
case v:
|
|
120
120
|
case r:
|
|
121
121
|
return Vt;
|
|
@@ -128,14 +128,14 @@ function Cn() {
|
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
|
-
var p = u, S = d, B = l, q = r, V = e, ae = h, ce = s, de =
|
|
131
|
+
var p = u, S = d, B = l, q = r, V = e, ae = h, ce = s, de = C, Fe = v, me = t, Le = i, oe = n, ye = f, Ie = !1;
|
|
132
132
|
function Ne(k) {
|
|
133
|
-
return
|
|
133
|
+
return Ie || (Ie = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), g(k) || x(k) === u;
|
|
134
134
|
}
|
|
135
135
|
function g(k) {
|
|
136
136
|
return x(k) === d;
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function b(k) {
|
|
139
139
|
return x(k) === l;
|
|
140
140
|
}
|
|
141
141
|
function $(k) {
|
|
@@ -151,7 +151,7 @@ function Cn() {
|
|
|
151
151
|
return x(k) === s;
|
|
152
152
|
}
|
|
153
153
|
function N(k) {
|
|
154
|
-
return x(k) ===
|
|
154
|
+
return x(k) === C;
|
|
155
155
|
}
|
|
156
156
|
function L(k) {
|
|
157
157
|
return x(k) === v;
|
|
@@ -168,7 +168,7 @@ function Cn() {
|
|
|
168
168
|
function Q(k) {
|
|
169
169
|
return x(k) === f;
|
|
170
170
|
}
|
|
171
|
-
W.AsyncMode = p, W.ConcurrentMode = S, W.ContextConsumer = B, W.ContextProvider = q, W.Element = V, W.ForwardRef = ae, W.Fragment = ce, W.Lazy = de, W.Memo =
|
|
171
|
+
W.AsyncMode = p, W.ConcurrentMode = S, W.ContextConsumer = B, W.ContextProvider = q, W.Element = V, W.ForwardRef = ae, W.Fragment = ce, W.Lazy = de, W.Memo = Fe, W.Portal = me, W.Profiler = Le, W.StrictMode = oe, W.Suspense = ye, W.isAsyncMode = Ne, W.isConcurrentMode = g, W.isContextConsumer = b, W.isContextProvider = $, W.isElement = R, W.isForwardRef = D, W.isFragment = T, W.isLazy = N, W.isMemo = L, W.isPortal = U, W.isProfiler = w, W.isStrictMode = z, W.isSuspense = Q, W.isValidElementType = A, W.typeOf = x;
|
|
172
172
|
}()), W;
|
|
173
173
|
}
|
|
174
174
|
var jt;
|
|
@@ -270,8 +270,8 @@ function En() {
|
|
|
270
270
|
throw _.name = "Invariant Violation", _;
|
|
271
271
|
}
|
|
272
272
|
f = i[h](r, h, u, l, null, e);
|
|
273
|
-
} catch (
|
|
274
|
-
f =
|
|
273
|
+
} catch (C) {
|
|
274
|
+
f = C;
|
|
275
275
|
}
|
|
276
276
|
if (f && !(f instanceof Error) && a(
|
|
277
277
|
(u || "React class") + ": type specification of " + l + " `" + h + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof f + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
@@ -310,9 +310,9 @@ function xn() {
|
|
|
310
310
|
return St = function(l, u) {
|
|
311
311
|
var d = typeof Symbol == "function" && Symbol.iterator, h = "@@iterator";
|
|
312
312
|
function f(g) {
|
|
313
|
-
var
|
|
314
|
-
if (typeof
|
|
315
|
-
return
|
|
313
|
+
var b = g && (d && g[d] || g[h]);
|
|
314
|
+
if (typeof b == "function")
|
|
315
|
+
return b;
|
|
316
316
|
}
|
|
317
317
|
var _ = "<<anonymous>>", v = {
|
|
318
318
|
array: F("array"),
|
|
@@ -333,18 +333,18 @@ function xn() {
|
|
|
333
333
|
oneOf: B,
|
|
334
334
|
oneOfType: V,
|
|
335
335
|
shape: de,
|
|
336
|
-
exact:
|
|
336
|
+
exact: Fe
|
|
337
337
|
};
|
|
338
|
-
function
|
|
339
|
-
return g ===
|
|
338
|
+
function C(g, b) {
|
|
339
|
+
return g === b ? g !== 0 || 1 / g === 1 / b : g !== g && b !== b;
|
|
340
340
|
}
|
|
341
|
-
function
|
|
342
|
-
this.message = g, this.data =
|
|
341
|
+
function y(g, b) {
|
|
342
|
+
this.message = g, this.data = b && typeof b == "object" ? b : {}, this.stack = "";
|
|
343
343
|
}
|
|
344
|
-
|
|
345
|
-
function
|
|
344
|
+
y.prototype = Error.prototype;
|
|
345
|
+
function m(g) {
|
|
346
346
|
if (process.env.NODE_ENV !== "production")
|
|
347
|
-
var
|
|
347
|
+
var b = {}, $ = 0;
|
|
348
348
|
function R(T, N, L, U, w, z, Q) {
|
|
349
349
|
if (U = U || _, z = z || L, Q !== t) {
|
|
350
350
|
if (u) {
|
|
@@ -354,42 +354,42 @@ function xn() {
|
|
|
354
354
|
throw k.name = "Invariant Violation", k;
|
|
355
355
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
356
356
|
var Se = U + ":" + L;
|
|
357
|
-
!
|
|
357
|
+
!b[Se] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
358
358
|
$ < 3 && (i(
|
|
359
359
|
"You are manually calling a React.PropTypes validation function for the `" + z + "` prop on `" + U + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
360
|
-
),
|
|
360
|
+
), b[Se] = !0, $++);
|
|
361
361
|
}
|
|
362
362
|
}
|
|
363
|
-
return N[L] == null ? T ? N[L] === null ? new
|
|
363
|
+
return N[L] == null ? T ? N[L] === null ? new y("The " + w + " `" + z + "` is marked as required " + ("in `" + U + "`, but its value is `null`.")) : new y("The " + w + " `" + z + "` is marked as required in " + ("`" + U + "`, but its value is `undefined`.")) : null : g(N, L, U, w, z);
|
|
364
364
|
}
|
|
365
365
|
var D = R.bind(null, !1);
|
|
366
366
|
return D.isRequired = R.bind(null, !0), D;
|
|
367
367
|
}
|
|
368
368
|
function F(g) {
|
|
369
|
-
function
|
|
369
|
+
function b($, R, D, T, N, L) {
|
|
370
370
|
var U = $[R], w = oe(U);
|
|
371
371
|
if (w !== g) {
|
|
372
372
|
var z = ye(U);
|
|
373
|
-
return new
|
|
373
|
+
return new y(
|
|
374
374
|
"Invalid " + T + " `" + N + "` of type " + ("`" + z + "` supplied to `" + D + "`, expected ") + ("`" + g + "`."),
|
|
375
375
|
{ expectedType: g }
|
|
376
376
|
);
|
|
377
377
|
}
|
|
378
378
|
return null;
|
|
379
379
|
}
|
|
380
|
-
return b
|
|
380
|
+
return m(b);
|
|
381
381
|
}
|
|
382
382
|
function P() {
|
|
383
|
-
return
|
|
383
|
+
return m(r);
|
|
384
384
|
}
|
|
385
385
|
function A(g) {
|
|
386
|
-
function
|
|
386
|
+
function b($, R, D, T, N) {
|
|
387
387
|
if (typeof g != "function")
|
|
388
|
-
return new
|
|
388
|
+
return new y("Property `" + N + "` of component `" + D + "` has invalid PropType notation inside arrayOf.");
|
|
389
389
|
var L = $[R];
|
|
390
390
|
if (!Array.isArray(L)) {
|
|
391
391
|
var U = oe(L);
|
|
392
|
-
return new
|
|
392
|
+
return new y("Invalid " + T + " `" + N + "` of type " + ("`" + U + "` supplied to `" + D + "`, expected an array."));
|
|
393
393
|
}
|
|
394
394
|
for (var w = 0; w < L.length; w++) {
|
|
395
395
|
var z = g(L, w, D, T, N + "[" + w + "]", t);
|
|
@@ -398,64 +398,64 @@ function xn() {
|
|
|
398
398
|
}
|
|
399
399
|
return null;
|
|
400
400
|
}
|
|
401
|
-
return b
|
|
401
|
+
return m(b);
|
|
402
402
|
}
|
|
403
403
|
function x() {
|
|
404
|
-
function g(
|
|
405
|
-
var N =
|
|
404
|
+
function g(b, $, R, D, T) {
|
|
405
|
+
var N = b[$];
|
|
406
406
|
if (!l(N)) {
|
|
407
407
|
var L = oe(N);
|
|
408
|
-
return new
|
|
408
|
+
return new y("Invalid " + D + " `" + T + "` of type " + ("`" + L + "` supplied to `" + R + "`, expected a single ReactElement."));
|
|
409
409
|
}
|
|
410
410
|
return null;
|
|
411
411
|
}
|
|
412
|
-
return
|
|
412
|
+
return m(g);
|
|
413
413
|
}
|
|
414
414
|
function p() {
|
|
415
|
-
function g(
|
|
416
|
-
var N =
|
|
415
|
+
function g(b, $, R, D, T) {
|
|
416
|
+
var N = b[$];
|
|
417
417
|
if (!a.isValidElementType(N)) {
|
|
418
418
|
var L = oe(N);
|
|
419
|
-
return new
|
|
419
|
+
return new y("Invalid " + D + " `" + T + "` of type " + ("`" + L + "` supplied to `" + R + "`, expected a single ReactElement type."));
|
|
420
420
|
}
|
|
421
421
|
return null;
|
|
422
422
|
}
|
|
423
|
-
return
|
|
423
|
+
return m(g);
|
|
424
424
|
}
|
|
425
425
|
function S(g) {
|
|
426
|
-
function
|
|
426
|
+
function b($, R, D, T, N) {
|
|
427
427
|
if (!($[R] instanceof g)) {
|
|
428
428
|
var L = g.name || _, U = Ne($[R]);
|
|
429
|
-
return new
|
|
429
|
+
return new y("Invalid " + T + " `" + N + "` of type " + ("`" + U + "` supplied to `" + D + "`, expected ") + ("instance of `" + L + "`."));
|
|
430
430
|
}
|
|
431
431
|
return null;
|
|
432
432
|
}
|
|
433
|
-
return b
|
|
433
|
+
return m(b);
|
|
434
434
|
}
|
|
435
435
|
function B(g) {
|
|
436
436
|
if (!Array.isArray(g))
|
|
437
437
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
438
438
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
439
439
|
) : i("Invalid argument supplied to oneOf, expected an array.")), r;
|
|
440
|
-
function
|
|
440
|
+
function b($, R, D, T, N) {
|
|
441
441
|
for (var L = $[R], U = 0; U < g.length; U++)
|
|
442
|
-
if (
|
|
442
|
+
if (C(L, g[U]))
|
|
443
443
|
return null;
|
|
444
444
|
var w = JSON.stringify(g, function(Q, k) {
|
|
445
445
|
var Se = ye(k);
|
|
446
446
|
return Se === "symbol" ? String(k) : k;
|
|
447
447
|
});
|
|
448
|
-
return new
|
|
448
|
+
return new y("Invalid " + T + " `" + N + "` of value `" + String(L) + "` " + ("supplied to `" + D + "`, expected one of " + w + "."));
|
|
449
449
|
}
|
|
450
|
-
return b
|
|
450
|
+
return m(b);
|
|
451
451
|
}
|
|
452
452
|
function q(g) {
|
|
453
|
-
function
|
|
453
|
+
function b($, R, D, T, N) {
|
|
454
454
|
if (typeof g != "function")
|
|
455
|
-
return new
|
|
455
|
+
return new y("Property `" + N + "` of component `" + D + "` has invalid PropType notation inside objectOf.");
|
|
456
456
|
var L = $[R], U = oe(L);
|
|
457
457
|
if (U !== "object")
|
|
458
|
-
return new
|
|
458
|
+
return new y("Invalid " + T + " `" + N + "` of type " + ("`" + U + "` supplied to `" + D + "`, expected an object."));
|
|
459
459
|
for (var w in L)
|
|
460
460
|
if (s(L, w)) {
|
|
461
461
|
var z = g(L, w, D, T, N + "." + w, t);
|
|
@@ -464,16 +464,16 @@ function xn() {
|
|
|
464
464
|
}
|
|
465
465
|
return null;
|
|
466
466
|
}
|
|
467
|
-
return b
|
|
467
|
+
return m(b);
|
|
468
468
|
}
|
|
469
469
|
function V(g) {
|
|
470
470
|
if (!Array.isArray(g))
|
|
471
471
|
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), r;
|
|
472
|
-
for (var
|
|
473
|
-
var $ = g[
|
|
472
|
+
for (var b = 0; b < g.length; b++) {
|
|
473
|
+
var $ = g[b];
|
|
474
474
|
if (typeof $ != "function")
|
|
475
475
|
return i(
|
|
476
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " +
|
|
476
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Ie($) + " at index " + b + "."
|
|
477
477
|
), r;
|
|
478
478
|
}
|
|
479
479
|
function R(D, T, N, L, U) {
|
|
@@ -484,26 +484,26 @@ function xn() {
|
|
|
484
484
|
k.data && s(k.data, "expectedType") && w.push(k.data.expectedType);
|
|
485
485
|
}
|
|
486
486
|
var Se = w.length > 0 ? ", expected one of type [" + w.join(", ") + "]" : "";
|
|
487
|
-
return new
|
|
487
|
+
return new y("Invalid " + L + " `" + U + "` supplied to " + ("`" + N + "`" + Se + "."));
|
|
488
488
|
}
|
|
489
|
-
return
|
|
489
|
+
return m(R);
|
|
490
490
|
}
|
|
491
491
|
function ae() {
|
|
492
|
-
function g(
|
|
493
|
-
return me(
|
|
492
|
+
function g(b, $, R, D, T) {
|
|
493
|
+
return me(b[$]) ? null : new y("Invalid " + D + " `" + T + "` supplied to " + ("`" + R + "`, expected a ReactNode."));
|
|
494
494
|
}
|
|
495
|
-
return
|
|
495
|
+
return m(g);
|
|
496
496
|
}
|
|
497
|
-
function ce(g,
|
|
498
|
-
return new
|
|
499
|
-
(g || "React class") + ": " +
|
|
497
|
+
function ce(g, b, $, R, D) {
|
|
498
|
+
return new y(
|
|
499
|
+
(g || "React class") + ": " + b + " type `" + $ + "." + R + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + D + "`."
|
|
500
500
|
);
|
|
501
501
|
}
|
|
502
502
|
function de(g) {
|
|
503
|
-
function
|
|
503
|
+
function b($, R, D, T, N) {
|
|
504
504
|
var L = $[R], U = oe(L);
|
|
505
505
|
if (U !== "object")
|
|
506
|
-
return new
|
|
506
|
+
return new y("Invalid " + T + " `" + N + "` of type `" + U + "` " + ("supplied to `" + D + "`, expected `object`."));
|
|
507
507
|
for (var w in g) {
|
|
508
508
|
var z = g[w];
|
|
509
509
|
if (typeof z != "function")
|
|
@@ -514,20 +514,20 @@ function xn() {
|
|
|
514
514
|
}
|
|
515
515
|
return null;
|
|
516
516
|
}
|
|
517
|
-
return b
|
|
517
|
+
return m(b);
|
|
518
518
|
}
|
|
519
|
-
function
|
|
520
|
-
function
|
|
519
|
+
function Fe(g) {
|
|
520
|
+
function b($, R, D, T, N) {
|
|
521
521
|
var L = $[R], U = oe(L);
|
|
522
522
|
if (U !== "object")
|
|
523
|
-
return new
|
|
523
|
+
return new y("Invalid " + T + " `" + N + "` of type `" + U + "` " + ("supplied to `" + D + "`, expected `object`."));
|
|
524
524
|
var w = e({}, $[R], g);
|
|
525
525
|
for (var z in w) {
|
|
526
526
|
var Q = g[z];
|
|
527
527
|
if (s(g, z) && typeof Q != "function")
|
|
528
528
|
return ce(D, T, N, z, ye(Q));
|
|
529
529
|
if (!Q)
|
|
530
|
-
return new
|
|
530
|
+
return new y(
|
|
531
531
|
"Invalid " + T + " `" + N + "` key `" + z + "` supplied to `" + D + "`.\nBad object: " + JSON.stringify($[R], null, " ") + `
|
|
532
532
|
Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
|
|
533
533
|
);
|
|
@@ -537,7 +537,7 @@ Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
|
|
|
537
537
|
}
|
|
538
538
|
return null;
|
|
539
539
|
}
|
|
540
|
-
return b
|
|
540
|
+
return m(b);
|
|
541
541
|
}
|
|
542
542
|
function me(g) {
|
|
543
543
|
switch (typeof g) {
|
|
@@ -552,10 +552,10 @@ Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
|
|
|
552
552
|
return g.every(me);
|
|
553
553
|
if (g === null || l(g))
|
|
554
554
|
return !0;
|
|
555
|
-
var
|
|
556
|
-
if (
|
|
557
|
-
var $ =
|
|
558
|
-
if (
|
|
555
|
+
var b = f(g);
|
|
556
|
+
if (b) {
|
|
557
|
+
var $ = b.call(g), R;
|
|
558
|
+
if (b !== g.entries) {
|
|
559
559
|
for (; !(R = $.next()).done; )
|
|
560
560
|
if (!me(R.value))
|
|
561
561
|
return !1;
|
|
@@ -572,37 +572,37 @@ Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
|
|
|
572
572
|
return !1;
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
|
-
function Le(g,
|
|
576
|
-
return g === "symbol" ? !0 :
|
|
575
|
+
function Le(g, b) {
|
|
576
|
+
return g === "symbol" ? !0 : b ? b["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && b instanceof Symbol : !1;
|
|
577
577
|
}
|
|
578
578
|
function oe(g) {
|
|
579
|
-
var
|
|
580
|
-
return Array.isArray(g) ? "array" : g instanceof RegExp ? "object" : Le(
|
|
579
|
+
var b = typeof g;
|
|
580
|
+
return Array.isArray(g) ? "array" : g instanceof RegExp ? "object" : Le(b, g) ? "symbol" : b;
|
|
581
581
|
}
|
|
582
582
|
function ye(g) {
|
|
583
583
|
if (typeof g > "u" || g === null)
|
|
584
584
|
return "" + g;
|
|
585
|
-
var
|
|
586
|
-
if (
|
|
585
|
+
var b = oe(g);
|
|
586
|
+
if (b === "object") {
|
|
587
587
|
if (g instanceof Date)
|
|
588
588
|
return "date";
|
|
589
589
|
if (g instanceof RegExp)
|
|
590
590
|
return "regexp";
|
|
591
591
|
}
|
|
592
|
-
return
|
|
592
|
+
return b;
|
|
593
593
|
}
|
|
594
|
-
function
|
|
595
|
-
var
|
|
596
|
-
switch (
|
|
594
|
+
function Ie(g) {
|
|
595
|
+
var b = ye(g);
|
|
596
|
+
switch (b) {
|
|
597
597
|
case "array":
|
|
598
598
|
case "object":
|
|
599
|
-
return "an " +
|
|
599
|
+
return "an " + b;
|
|
600
600
|
case "boolean":
|
|
601
601
|
case "date":
|
|
602
602
|
case "regexp":
|
|
603
|
-
return "a " +
|
|
603
|
+
return "a " + b;
|
|
604
604
|
default:
|
|
605
|
-
return
|
|
605
|
+
return b;
|
|
606
606
|
}
|
|
607
607
|
}
|
|
608
608
|
function Ne(g) {
|
|
@@ -853,7 +853,7 @@ const o = /* @__PURE__ */ kn(Fn), Gt = {
|
|
|
853
853
|
regular: 400,
|
|
854
854
|
light: 300,
|
|
855
855
|
extralight: 200
|
|
856
|
-
},
|
|
856
|
+
}, K = ({
|
|
857
857
|
image: a = ue.props.image.default,
|
|
858
858
|
color: e = ue.props.color.default,
|
|
859
859
|
className: t,
|
|
@@ -884,7 +884,7 @@ const o = /* @__PURE__ */ kn(Fn), Gt = {
|
|
|
884
884
|
}
|
|
885
885
|
);
|
|
886
886
|
};
|
|
887
|
-
|
|
887
|
+
K.propTypes = {
|
|
888
888
|
color: o.oneOf(ue.props.color.options),
|
|
889
889
|
image: o.string,
|
|
890
890
|
fontVariationSettings: o.object,
|
|
@@ -893,7 +893,7 @@ Z.propTypes = {
|
|
|
893
893
|
weight: o.oneOf(ue.props.weight.options),
|
|
894
894
|
onClick: o.func
|
|
895
895
|
};
|
|
896
|
-
|
|
896
|
+
K.displayName = "DsIcon";
|
|
897
897
|
const pt = ({
|
|
898
898
|
children: a,
|
|
899
899
|
className: e,
|
|
@@ -910,17 +910,17 @@ const pt = ({
|
|
|
910
910
|
iconPosition: _ = Y.props.iconPosition.default,
|
|
911
911
|
fullSize: v = Y.props.fullSize.default
|
|
912
912
|
}) => {
|
|
913
|
-
const
|
|
913
|
+
const C = s && Y.props.size.options.find((S) => S === s) ? `${Y.class}--${s}` : `${Y.class}__${Y.props.size.default}`, y = n && `${Y.class}--disabled`, m = `${Y.class}__${h}--${d}`, F = u && `${Y.class}--elevation-${u}`, P = i && `${Y.class}--with-icon`, A = v ? `${Y.class}--full-size` : "", x = _ === "right" ? `${Y.class}__icon` : `${Y.class}__icon--left`, p = _ === "right" ? `${Y.class}__text` : `${Y.class}__text--reversed`;
|
|
914
914
|
return /* @__PURE__ */ c(
|
|
915
915
|
"button",
|
|
916
916
|
{
|
|
917
917
|
className: [
|
|
918
918
|
Y.class,
|
|
919
919
|
A,
|
|
920
|
-
m,
|
|
921
|
-
P,
|
|
922
920
|
y,
|
|
923
|
-
|
|
921
|
+
P,
|
|
922
|
+
C,
|
|
923
|
+
m,
|
|
924
924
|
F,
|
|
925
925
|
P,
|
|
926
926
|
e && e
|
|
@@ -932,7 +932,7 @@ const pt = ({
|
|
|
932
932
|
children: /* @__PURE__ */ O("span", { className: ["ds-button__text", p].join(" "), children: [
|
|
933
933
|
a,
|
|
934
934
|
i && /* @__PURE__ */ c(
|
|
935
|
-
|
|
935
|
+
K,
|
|
936
936
|
{
|
|
937
937
|
className: ["ds-button__icon", x].join(" "),
|
|
938
938
|
fill: f,
|
|
@@ -1128,20 +1128,20 @@ const re = {
|
|
|
1128
1128
|
changeByChecked: u = re.props.changeByChecked.default,
|
|
1129
1129
|
onChangeHandler: d
|
|
1130
1130
|
}, h) => {
|
|
1131
|
-
const f = u || !1, _ = r || !1, [v,
|
|
1131
|
+
const f = u || !1, _ = r || !1, [v, C] = j(_), y = {
|
|
1132
1132
|
image: v ? "check_box" : "check_box_outline_blank",
|
|
1133
1133
|
class: v ? `${re.class}__icon--checked` : `${re.class}__icon--unchecked`
|
|
1134
|
-
},
|
|
1135
|
-
l || (
|
|
1134
|
+
}, m = l && `${re.class}--disabled`, F = (P) => {
|
|
1135
|
+
l || (C((A) => !A), d && d(P));
|
|
1136
1136
|
};
|
|
1137
|
-
return
|
|
1138
|
-
f &&
|
|
1137
|
+
return J(() => {
|
|
1138
|
+
f && C(r);
|
|
1139
1139
|
}, [r, f]), /* @__PURE__ */ O(
|
|
1140
1140
|
"label",
|
|
1141
1141
|
{
|
|
1142
1142
|
className: [
|
|
1143
1143
|
re.class,
|
|
1144
|
-
|
|
1144
|
+
m,
|
|
1145
1145
|
e && e
|
|
1146
1146
|
].join(" "),
|
|
1147
1147
|
htmlFor: a || t,
|
|
@@ -1160,11 +1160,11 @@ const re = {
|
|
|
1160
1160
|
}
|
|
1161
1161
|
),
|
|
1162
1162
|
/* @__PURE__ */ c(
|
|
1163
|
-
|
|
1163
|
+
K,
|
|
1164
1164
|
{
|
|
1165
|
-
className: `${re.class}__icon ${
|
|
1165
|
+
className: `${re.class}__icon ${y.class}`,
|
|
1166
1166
|
fill: !0,
|
|
1167
|
-
image:
|
|
1167
|
+
image: y.image,
|
|
1168
1168
|
size: "xxl",
|
|
1169
1169
|
testId: `${s}-icon`
|
|
1170
1170
|
}
|
|
@@ -1865,7 +1865,7 @@ class M {
|
|
|
1865
1865
|
}
|
|
1866
1866
|
}
|
|
1867
1867
|
I.ChangeDetails = M;
|
|
1868
|
-
class
|
|
1868
|
+
class we {
|
|
1869
1869
|
/** Tail value as string */
|
|
1870
1870
|
/** Tail start position */
|
|
1871
1871
|
/** Start position */
|
|
@@ -2007,11 +2007,11 @@ class ne {
|
|
|
2007
2007
|
}
|
|
2008
2008
|
/** Extracts tail in range */
|
|
2009
2009
|
extractTail(e, t) {
|
|
2010
|
-
return e === void 0 && (e = 0), t === void 0 && (t = this.displayValue.length), new
|
|
2010
|
+
return e === void 0 && (e = 0), t === void 0 && (t = this.displayValue.length), new we(this.extractInput(e, t), e);
|
|
2011
2011
|
}
|
|
2012
2012
|
/** Appends tail */
|
|
2013
2013
|
appendTail(e) {
|
|
2014
|
-
return $e(e) && (e = new
|
|
2014
|
+
return $e(e) && (e = new we(String(e))), e.appendTo(this);
|
|
2015
2015
|
}
|
|
2016
2016
|
/** Appends char */
|
|
2017
2017
|
_appendCharRaw(e, t) {
|
|
@@ -2066,7 +2066,7 @@ class ne {
|
|
|
2066
2066
|
append(e, t, s) {
|
|
2067
2067
|
if (!$e(e))
|
|
2068
2068
|
throw new Error("value should be string");
|
|
2069
|
-
const n = $e(s) ? new
|
|
2069
|
+
const n = $e(s) ? new we(String(s)) : s;
|
|
2070
2070
|
t != null && t.tail && (t._beforeTailState = this.state);
|
|
2071
2071
|
let i;
|
|
2072
2072
|
[e, i] = this.doPrepare(e, t);
|
|
@@ -2167,11 +2167,11 @@ class Ue {
|
|
|
2167
2167
|
extend(e) {
|
|
2168
2168
|
if (!String(e))
|
|
2169
2169
|
return;
|
|
2170
|
-
e = $e(e) ? new
|
|
2170
|
+
e = $e(e) ? new we(String(e)) : e;
|
|
2171
2171
|
const t = this.chunks[this.chunks.length - 1], s = t && // if stops are same or tail has no stop
|
|
2172
2172
|
(t.stop === e.stop || e.stop == null) && // if tail chunk goes just after last chunk
|
|
2173
2173
|
e.from === t.from + t.toString().length;
|
|
2174
|
-
if (e instanceof
|
|
2174
|
+
if (e instanceof we)
|
|
2175
2175
|
s ? t.extend(e.toString()) : this.chunks.push(e);
|
|
2176
2176
|
else if (e instanceof Ue) {
|
|
2177
2177
|
if (e.stop == null) {
|
|
@@ -2184,7 +2184,7 @@ class Ue {
|
|
|
2184
2184
|
}
|
|
2185
2185
|
appendTo(e) {
|
|
2186
2186
|
if (!(e instanceof I.MaskedPattern))
|
|
2187
|
-
return new
|
|
2187
|
+
return new we(this.toString()).appendTo(e);
|
|
2188
2188
|
const t = new M();
|
|
2189
2189
|
for (let s = 0; s < this.chunks.length; ++s) {
|
|
2190
2190
|
const n = this.chunks[s], i = e._mapPosToBlock(e.displayValue.length), r = n.stop;
|
|
@@ -2219,7 +2219,7 @@ class Ue {
|
|
|
2219
2219
|
...s
|
|
2220
2220
|
} = e;
|
|
2221
2221
|
Object.assign(this, s), this.chunks = t.map((n) => {
|
|
2222
|
-
const i = "chunks" in n ? new Ue() : new
|
|
2222
|
+
const i = "chunks" in n ? new Ue() : new we();
|
|
2223
2223
|
return i.state = n, i;
|
|
2224
2224
|
});
|
|
2225
2225
|
}
|
|
@@ -2430,10 +2430,10 @@ class Js {
|
|
|
2430
2430
|
return this.isFilled || (this._value = e.inserted = this.char), e;
|
|
2431
2431
|
}
|
|
2432
2432
|
extractTail() {
|
|
2433
|
-
return new
|
|
2433
|
+
return new we("");
|
|
2434
2434
|
}
|
|
2435
2435
|
appendTail(e) {
|
|
2436
|
-
return $e(e) && (e = new
|
|
2436
|
+
return $e(e) && (e = new we(String(e))), e.appendTo(this);
|
|
2437
2437
|
}
|
|
2438
2438
|
append(e, t, s) {
|
|
2439
2439
|
const n = this._appendChar(e[0], t);
|
|
@@ -2636,22 +2636,22 @@ class ie extends ne {
|
|
|
2636
2636
|
const {
|
|
2637
2637
|
expose: _,
|
|
2638
2638
|
repeat: v,
|
|
2639
|
-
...
|
|
2640
|
-
} = Qe(this.blocks[f]),
|
|
2639
|
+
...C
|
|
2640
|
+
} = Qe(this.blocks[f]), y = {
|
|
2641
2641
|
lazy: this.lazy,
|
|
2642
2642
|
eager: this.eager,
|
|
2643
2643
|
placeholderChar: this.placeholderChar,
|
|
2644
2644
|
displayChar: this.displayChar,
|
|
2645
2645
|
overwrite: this.overwrite,
|
|
2646
2646
|
autofix: this.autofix,
|
|
2647
|
-
...
|
|
2647
|
+
...C,
|
|
2648
2648
|
repeat: v,
|
|
2649
2649
|
parent: this
|
|
2650
|
-
},
|
|
2651
|
-
|
|
2650
|
+
}, m = v != null ? new I.RepeatBlock(
|
|
2651
|
+
y
|
|
2652
2652
|
/* TODO */
|
|
2653
|
-
) : Be(
|
|
2654
|
-
|
|
2653
|
+
) : Be(y);
|
|
2654
|
+
m && (this._blocks.push(m), _ && (this.exposeBlock = m), this._maskedBlocks[f] || (this._maskedBlocks[f] = []), this._maskedBlocks[f].push(this._blocks.length - 1)), i += f.length - 1;
|
|
2655
2655
|
continue;
|
|
2656
2656
|
}
|
|
2657
2657
|
}
|
|
@@ -3353,7 +3353,7 @@ class _t extends ie {
|
|
|
3353
3353
|
});
|
|
3354
3354
|
}
|
|
3355
3355
|
extractTail(e, t) {
|
|
3356
|
-
return e === void 0 && (e = 0), t === void 0 && (t = this.displayValue.length), new
|
|
3356
|
+
return e === void 0 && (e = 0), t === void 0 && (t = this.displayValue.length), new we("", e);
|
|
3357
3357
|
}
|
|
3358
3358
|
remove(e, t) {
|
|
3359
3359
|
if (e === void 0 && (e = 0), t === void 0 && (t = this.displayValue.length), e === t)
|
|
@@ -3856,60 +3856,60 @@ function Yn(a, e) {
|
|
|
3856
3856
|
defaultUnmaskedValue: r,
|
|
3857
3857
|
defaultTypedValue: l
|
|
3858
3858
|
} = e === void 0 ? {} : e;
|
|
3859
|
-
const u = Je(null), [d, h] = j({}), [f, _] = j(""), [v,
|
|
3859
|
+
const u = Je(null), [d, h] = j({}), [f, _] = j(""), [v, C] = j(""), [y, m] = j(), F = Ae(() => {
|
|
3860
3860
|
var p;
|
|
3861
3861
|
(p = u.current) == null || p.destroy(), u.current = null;
|
|
3862
|
-
}, []), P =
|
|
3862
|
+
}, []), P = Ae(() => {
|
|
3863
3863
|
const p = u.current;
|
|
3864
3864
|
p && (h({
|
|
3865
3865
|
value: p.value,
|
|
3866
3866
|
unmaskedValue: p.unmaskedValue,
|
|
3867
3867
|
typedValue: p.typedValue
|
|
3868
|
-
}),
|
|
3869
|
-
}, []), A =
|
|
3868
|
+
}), m(p.typedValue), C(p.unmaskedValue), _(p.value));
|
|
3869
|
+
}, []), A = Ae((p) => {
|
|
3870
3870
|
const S = u.current;
|
|
3871
3871
|
S && (P(), t == null || t(S.value, S, p));
|
|
3872
|
-
}, [t]), x =
|
|
3873
|
-
return
|
|
3872
|
+
}, [t]), x = Ae((p) => u.current && (s == null ? void 0 : s(u.current.value, u.current, p)), [s]);
|
|
3873
|
+
return J(() => {
|
|
3874
3874
|
const {
|
|
3875
3875
|
value: p,
|
|
3876
3876
|
...S
|
|
3877
3877
|
} = d, B = u.current;
|
|
3878
3878
|
!B || f === void 0 || (p !== f && (B.value = f, B.value !== f && A()), h(S));
|
|
3879
|
-
}, [f]),
|
|
3879
|
+
}, [f]), J(() => {
|
|
3880
3880
|
const {
|
|
3881
3881
|
unmaskedValue: p,
|
|
3882
3882
|
...S
|
|
3883
3883
|
} = d, B = u.current;
|
|
3884
3884
|
!B || v === void 0 || (p !== v && (B.unmaskedValue = v, B.unmaskedValue !== v && A()), h(S));
|
|
3885
|
-
}, [v]),
|
|
3885
|
+
}, [v]), J(() => {
|
|
3886
3886
|
const {
|
|
3887
3887
|
typedValue: p,
|
|
3888
3888
|
...S
|
|
3889
3889
|
} = d, B = u.current;
|
|
3890
|
-
!B ||
|
|
3891
|
-
}, [
|
|
3890
|
+
!B || y === void 0 || (p !== y && (B.typedValue = y, B.masked.typedValueEquals(y) || A()), h(S));
|
|
3891
|
+
}, [y]), J(() => {
|
|
3892
3892
|
const p = n.current;
|
|
3893
3893
|
if (!p || !(a != null && a.mask))
|
|
3894
3894
|
return F();
|
|
3895
3895
|
const S = u.current;
|
|
3896
|
-
S ? S == null || S.updateOptions(a) : p && a != null && a.mask && (u.current = I(p, a), P(), i !== void 0 && _(i), r !== void 0 &&
|
|
3897
|
-
}, [a, F, A]),
|
|
3896
|
+
S ? S == null || S.updateOptions(a) : p && a != null && a.mask && (u.current = I(p, a), P(), i !== void 0 && _(i), r !== void 0 && C(r), l !== void 0 && m(l));
|
|
3897
|
+
}, [a, F, A]), J(() => {
|
|
3898
3898
|
if (!u.current)
|
|
3899
3899
|
return;
|
|
3900
3900
|
const p = u.current;
|
|
3901
3901
|
return p.on("accept", A), p.on("complete", x), () => {
|
|
3902
3902
|
p.off("accept", A), p.off("complete", x);
|
|
3903
3903
|
};
|
|
3904
|
-
}, [A, x]),
|
|
3904
|
+
}, [A, x]), J(() => F, [F]), {
|
|
3905
3905
|
ref: n,
|
|
3906
3906
|
maskRef: u,
|
|
3907
3907
|
value: f,
|
|
3908
3908
|
setValue: _,
|
|
3909
3909
|
unmaskedValue: v,
|
|
3910
|
-
setUnmaskedValue:
|
|
3911
|
-
typedValue:
|
|
3912
|
-
setTypedValue:
|
|
3910
|
+
setUnmaskedValue: C,
|
|
3911
|
+
typedValue: y,
|
|
3912
|
+
setTypedValue: m
|
|
3913
3913
|
};
|
|
3914
3914
|
}
|
|
3915
3915
|
const ls = {
|
|
@@ -4079,7 +4079,7 @@ const ls = {
|
|
|
4079
4079
|
Center: "center",
|
|
4080
4080
|
End: "end",
|
|
4081
4081
|
Initial: "initial"
|
|
4082
|
-
},
|
|
4082
|
+
}, Ee = {
|
|
4083
4083
|
name: "Tooltip",
|
|
4084
4084
|
class: "ds-tooltip",
|
|
4085
4085
|
props: {
|
|
@@ -4096,102 +4096,104 @@ const ls = {
|
|
|
4096
4096
|
text: {
|
|
4097
4097
|
type: String,
|
|
4098
4098
|
default: ""
|
|
4099
|
+
},
|
|
4100
|
+
testId: {
|
|
4101
|
+
type: String,
|
|
4102
|
+
default: "ds-tooltip"
|
|
4099
4103
|
}
|
|
4100
4104
|
}
|
|
4101
4105
|
}, We = ({
|
|
4102
4106
|
children: a,
|
|
4103
|
-
position: e =
|
|
4104
|
-
placement: t =
|
|
4105
|
-
text: s =
|
|
4106
|
-
|
|
4107
|
+
position: e = Ee.props.position.default,
|
|
4108
|
+
placement: t = Ee.props.placement.default,
|
|
4109
|
+
text: s = Ee.props.text.default,
|
|
4110
|
+
testId: n = Ee.props.testId.default,
|
|
4111
|
+
className: i
|
|
4107
4112
|
}) => {
|
|
4108
|
-
const
|
|
4113
|
+
const r = Je(null), [l, u] = j(0), [d, h] = j(0), [f, _] = j(!1), v = e && Ee.props.position.options.find(
|
|
4109
4114
|
(F) => F === e
|
|
4110
|
-
) && `${
|
|
4115
|
+
) && `${Ee.class}--${e}`, C = t && Ee.props.placement.options.find(
|
|
4111
4116
|
(F) => F === t
|
|
4112
|
-
) && `${
|
|
4117
|
+
) && `${Ee.class}--${t}`;
|
|
4113
4118
|
let y;
|
|
4114
4119
|
_n(() => {
|
|
4115
4120
|
var F, P;
|
|
4116
|
-
|
|
4117
|
-
}, [])
|
|
4118
|
-
document.removeEventListener("mousedown", b);
|
|
4119
|
-
}), []);
|
|
4121
|
+
r.current && (u((F = r == null ? void 0 : r.current) == null ? void 0 : F.offsetHeight), h((P = r == null ? void 0 : r.current) == null ? void 0 : P.offsetWidth));
|
|
4122
|
+
}, []);
|
|
4120
4123
|
const m = 9;
|
|
4121
4124
|
switch (e) {
|
|
4122
4125
|
case "top":
|
|
4123
4126
|
t === "initial" ? y = {
|
|
4124
|
-
bottom:
|
|
4127
|
+
bottom: l + m,
|
|
4125
4128
|
left: -m
|
|
4126
4129
|
} : t === "end" ? y = {
|
|
4127
|
-
bottom:
|
|
4130
|
+
bottom: l + m,
|
|
4128
4131
|
right: -m
|
|
4129
4132
|
} : y = {
|
|
4130
|
-
bottom:
|
|
4133
|
+
bottom: l + m,
|
|
4131
4134
|
left: "50%",
|
|
4132
4135
|
transform: "translateX(-50%)"
|
|
4133
4136
|
};
|
|
4134
4137
|
break;
|
|
4135
4138
|
case "bottom":
|
|
4136
4139
|
t === "initial" ? y = {
|
|
4137
|
-
top:
|
|
4140
|
+
top: l + m,
|
|
4138
4141
|
left: -m
|
|
4139
4142
|
} : t === "end" ? y = {
|
|
4140
|
-
top:
|
|
4143
|
+
top: l + m,
|
|
4141
4144
|
right: -m
|
|
4142
4145
|
} : y = {
|
|
4143
|
-
top:
|
|
4146
|
+
top: l + m,
|
|
4144
4147
|
left: "50%",
|
|
4145
4148
|
transform: "translateX(-50%)"
|
|
4146
4149
|
};
|
|
4147
4150
|
break;
|
|
4148
4151
|
case "left":
|
|
4149
4152
|
t === "initial" ? y = {
|
|
4150
|
-
right:
|
|
4153
|
+
right: d + m,
|
|
4151
4154
|
top: -m
|
|
4152
4155
|
} : t === "end" ? y = {
|
|
4153
|
-
right:
|
|
4156
|
+
right: d + m,
|
|
4154
4157
|
bottom: -m
|
|
4155
4158
|
} : y = {
|
|
4156
|
-
right:
|
|
4159
|
+
right: d + m,
|
|
4157
4160
|
top: "50%",
|
|
4158
4161
|
transform: "translateY(-50%)"
|
|
4159
4162
|
};
|
|
4160
4163
|
break;
|
|
4161
4164
|
case "right":
|
|
4162
4165
|
t === "initial" ? y = {
|
|
4163
|
-
left:
|
|
4166
|
+
left: d + m,
|
|
4164
4167
|
top: -m
|
|
4165
4168
|
} : t === "end" ? y = {
|
|
4166
|
-
left:
|
|
4169
|
+
left: d + m,
|
|
4167
4170
|
bottom: -m
|
|
4168
4171
|
} : y = {
|
|
4169
|
-
left:
|
|
4172
|
+
left: d + m,
|
|
4170
4173
|
top: "50%",
|
|
4171
4174
|
transform: "translateY(-50%)"
|
|
4172
4175
|
};
|
|
4173
4176
|
break;
|
|
4174
4177
|
}
|
|
4175
|
-
const b = ({ target: F }) => {
|
|
4176
|
-
i.current && i.current.contains(F) || f(!1);
|
|
4177
|
-
};
|
|
4178
4178
|
return /* @__PURE__ */ O(
|
|
4179
|
-
"
|
|
4179
|
+
"div",
|
|
4180
4180
|
{
|
|
4181
|
-
className: [
|
|
4182
|
-
"data-testid":
|
|
4183
|
-
|
|
4184
|
-
|
|
4181
|
+
className: [Ee.class, i].join(" "),
|
|
4182
|
+
"data-testid": n,
|
|
4183
|
+
onMouseEnter: () => _(!0),
|
|
4184
|
+
onMouseLeave: () => _(!1),
|
|
4185
|
+
ref: r,
|
|
4186
|
+
role: "tooltip",
|
|
4185
4187
|
children: [
|
|
4186
4188
|
a,
|
|
4187
|
-
|
|
4188
|
-
"
|
|
4189
|
+
f && /* @__PURE__ */ c(
|
|
4190
|
+
"div",
|
|
4189
4191
|
{
|
|
4190
|
-
className: [
|
|
4192
|
+
className: [v, C].filter((F) => F).join(" "),
|
|
4191
4193
|
children: /* @__PURE__ */ c(
|
|
4192
4194
|
"span",
|
|
4193
4195
|
{
|
|
4194
|
-
className: `${
|
|
4196
|
+
className: `${Ee.class}__wrapper`,
|
|
4195
4197
|
"data-testid": "ds-tooltip-wrapper",
|
|
4196
4198
|
style: y,
|
|
4197
4199
|
children: s
|
|
@@ -4206,7 +4208,8 @@ const ls = {
|
|
|
4206
4208
|
We.propTypes = {
|
|
4207
4209
|
position: o.string,
|
|
4208
4210
|
placement: o.string,
|
|
4209
|
-
text: o.oneOfType([o.string, o.node])
|
|
4211
|
+
text: o.oneOfType([o.string, o.node]),
|
|
4212
|
+
testId: o.string
|
|
4210
4213
|
};
|
|
4211
4214
|
We.displayName = "DsTooltip";
|
|
4212
4215
|
const et = be.forwardRef(
|
|
@@ -4225,9 +4228,9 @@ const et = be.forwardRef(
|
|
|
4225
4228
|
tooltipPosition: f = X.props.tooltipPosition.default,
|
|
4226
4229
|
tooltipPlacement: _ = X.props.tooltipPlacement.default,
|
|
4227
4230
|
icon: v = X.props.icon.default,
|
|
4228
|
-
status:
|
|
4229
|
-
feedback:
|
|
4230
|
-
hasFeedback:
|
|
4231
|
+
status: C = X.props.status.default,
|
|
4232
|
+
feedback: y,
|
|
4233
|
+
hasFeedback: m = X.props.hasFeedback.default,
|
|
4231
4234
|
noMargin: F = X.props.noMargin.default,
|
|
4232
4235
|
disabled: P = X.props.disabled.default,
|
|
4233
4236
|
className: A,
|
|
@@ -4237,7 +4240,7 @@ const et = be.forwardRef(
|
|
|
4237
4240
|
onKeyDownHandler: B,
|
|
4238
4241
|
onFocusHandler: q
|
|
4239
4242
|
}, V) => {
|
|
4240
|
-
const [ae, ce] = j(!1), [de,
|
|
4243
|
+
const [ae, ce] = j(!1), [de, Fe] = j(!1), me = !!p && !!x, Le = (w, z, Q) => {
|
|
4241
4244
|
if (me && Q) {
|
|
4242
4245
|
const k = {
|
|
4243
4246
|
...Q,
|
|
@@ -4256,7 +4259,7 @@ const et = be.forwardRef(
|
|
|
4256
4259
|
min: u,
|
|
4257
4260
|
max: d,
|
|
4258
4261
|
lazy: !0
|
|
4259
|
-
} : { mask: x || "", min: u, max: d, lazy: !0 }, [x]), { ref: ye, setUnmaskedValue:
|
|
4262
|
+
} : { mask: x || "", min: u, max: d, lazy: !0 }, [x]), { ref: ye, setUnmaskedValue: Ie } = Yn(
|
|
4260
4263
|
oe,
|
|
4261
4264
|
{
|
|
4262
4265
|
onAccept: Le
|
|
@@ -4265,25 +4268,25 @@ const et = be.forwardRef(
|
|
|
4265
4268
|
p && !me && p(w);
|
|
4266
4269
|
}, g = (w) => {
|
|
4267
4270
|
B && B(w);
|
|
4268
|
-
},
|
|
4271
|
+
}, b = (w) => {
|
|
4269
4272
|
ce(!1), S && S(w);
|
|
4270
4273
|
}, $ = (w) => {
|
|
4271
4274
|
ce(!0), q && q(w);
|
|
4272
4275
|
}, R = () => {
|
|
4273
|
-
|
|
4276
|
+
Fe((w) => !w);
|
|
4274
4277
|
}, D = Ce(() => de && t === "password" ? "text" : t, [de, t]), T = () => {
|
|
4275
4278
|
const w = [`${X.class}`];
|
|
4276
|
-
return n && w.push(`${X.class}--${n}`), s && w.push(`${X.class}--animated`), F && w.push(`${X.class}--no-margin`), v && w.push(`${X.class}--with-icon`),
|
|
4279
|
+
return n && w.push(`${X.class}--${n}`), s && w.push(`${X.class}--animated`), F && w.push(`${X.class}--no-margin`), v && w.push(`${X.class}--with-icon`), C && w.push(`${X.class}--${C}`), A && w.push(A), w.join(" ");
|
|
4277
4280
|
}, N = Ce(() => {
|
|
4278
4281
|
const w = [`${X.class}__label`];
|
|
4279
4282
|
return (ae || l) && w.push(`${X.class}__label--active`), w.join(" ");
|
|
4280
|
-
}, [l, ae]), L = () => !s && r ? r : "", U = () =>
|
|
4281
|
-
return
|
|
4282
|
-
x &&
|
|
4283
|
-
}, [l, x,
|
|
4284
|
-
|
|
4285
|
-
/* @__PURE__ */ c(
|
|
4286
|
-
|
|
4283
|
+
}, [l, ae]), L = () => !s && r ? r : "", U = () => C && C === "error" ? "info" : "check_circle";
|
|
4284
|
+
return J(() => {
|
|
4285
|
+
x && Ie(l || "");
|
|
4286
|
+
}, [l, x, Ie]), /* @__PURE__ */ O("div", { className: T(), ref: V, children: [
|
|
4287
|
+
m && /* @__PURE__ */ c("div", { className: "ds-input__feedback", children: y && /* @__PURE__ */ O(tt, { children: [
|
|
4288
|
+
/* @__PURE__ */ c(K, { image: U() }),
|
|
4289
|
+
y
|
|
4287
4290
|
] }) }),
|
|
4288
4291
|
/* @__PURE__ */ c(
|
|
4289
4292
|
"input",
|
|
@@ -4295,7 +4298,7 @@ const et = be.forwardRef(
|
|
|
4295
4298
|
max: d,
|
|
4296
4299
|
min: u,
|
|
4297
4300
|
name: a,
|
|
4298
|
-
onBlur:
|
|
4301
|
+
onBlur: b,
|
|
4299
4302
|
onChange: Ne,
|
|
4300
4303
|
onFocus: $,
|
|
4301
4304
|
onInput: Ne,
|
|
@@ -4315,13 +4318,13 @@ const et = be.forwardRef(
|
|
|
4315
4318
|
placement: _,
|
|
4316
4319
|
position: f,
|
|
4317
4320
|
text: h,
|
|
4318
|
-
children: /* @__PURE__ */ c(
|
|
4321
|
+
children: /* @__PURE__ */ c(K, { className: "ds-input__icon", image: "info" })
|
|
4319
4322
|
}
|
|
4320
4323
|
)
|
|
4321
4324
|
] }),
|
|
4322
|
-
v && /* @__PURE__ */ c(
|
|
4325
|
+
v && /* @__PURE__ */ c(K, { className: "ds-input__icon", image: v }),
|
|
4323
4326
|
t === "password" && /* @__PURE__ */ c(
|
|
4324
|
-
|
|
4327
|
+
K,
|
|
4325
4328
|
{
|
|
4326
4329
|
className: "ds-input__password-icon",
|
|
4327
4330
|
image: de ? "visibility_off" : "visibility",
|
|
@@ -4518,7 +4521,7 @@ const Oe = {
|
|
|
4518
4521
|
}
|
|
4519
4522
|
),
|
|
4520
4523
|
/* @__PURE__ */ c(
|
|
4521
|
-
|
|
4524
|
+
K,
|
|
4522
4525
|
{
|
|
4523
4526
|
className: `${Oe.class}__icon`,
|
|
4524
4527
|
image: l ? "radio_button_checked" : "radio_button_unchecked",
|
|
@@ -4870,7 +4873,7 @@ const xs = {
|
|
|
4870
4873
|
Right: "right",
|
|
4871
4874
|
Bottom: "bottom",
|
|
4872
4875
|
Left: "left"
|
|
4873
|
-
},
|
|
4876
|
+
}, Z = {
|
|
4874
4877
|
name: "Select",
|
|
4875
4878
|
class: "ds-select",
|
|
4876
4879
|
props: {
|
|
@@ -4947,32 +4950,32 @@ const xs = {
|
|
|
4947
4950
|
({
|
|
4948
4951
|
label: a,
|
|
4949
4952
|
className: e,
|
|
4950
|
-
disabled: t =
|
|
4951
|
-
animated: s =
|
|
4952
|
-
multiple: n =
|
|
4953
|
-
testId: i =
|
|
4953
|
+
disabled: t = Z.props.disabled.default,
|
|
4954
|
+
animated: s = Z.props.animated.default,
|
|
4955
|
+
multiple: n = Z.props.multiple.default,
|
|
4956
|
+
testId: i = Z.props.testId.default,
|
|
4954
4957
|
name: r,
|
|
4955
4958
|
options: l,
|
|
4956
4959
|
value: u,
|
|
4957
4960
|
placeholder: d,
|
|
4958
4961
|
onChange: h,
|
|
4959
4962
|
onChangeHandler: f,
|
|
4960
|
-
size: _ =
|
|
4961
|
-
status: v =
|
|
4962
|
-
tooltip:
|
|
4963
|
-
tooltipPosition:
|
|
4964
|
-
tooltipPlacement:
|
|
4963
|
+
size: _ = Z.props.size.default,
|
|
4964
|
+
status: v = Z.props.status.default,
|
|
4965
|
+
tooltip: C,
|
|
4966
|
+
tooltipPosition: y = Z.props.tooltipPosition.default,
|
|
4967
|
+
tooltipPlacement: m = Z.props.tooltipPlacement.default,
|
|
4965
4968
|
feedback: F,
|
|
4966
4969
|
...P
|
|
4967
4970
|
}, A) => {
|
|
4968
4971
|
const [x, p] = j(!1), S = (V) => {
|
|
4969
4972
|
p(!1), h && h(V, V.target.value), f && f(V, V.target.value);
|
|
4970
4973
|
}, B = () => {
|
|
4971
|
-
const V = [
|
|
4972
|
-
return V.push(`${
|
|
4974
|
+
const V = [Z.class, "select-placeholder"];
|
|
4975
|
+
return V.push(`${Z.class}--${_}`), v && V.push(`${Z.class}--${v}`), x && V.push(`${Z.class}--active`), t && V.push(`${Z.class}--disabled`), e && V.push(e), V.join(" ");
|
|
4973
4976
|
}, q = Ce(() => {
|
|
4974
|
-
const V = [`${
|
|
4975
|
-
return !s && V.push(`${
|
|
4977
|
+
const V = [`${Z.class}__label`];
|
|
4978
|
+
return !s && V.push(`${Z.class}__label--not-animated`), u && V.push(`${Z.class}__label--has-value`), s && !u && !C && V.push(`${Z.class}__label--hidden`), V.join(" ");
|
|
4976
4979
|
}, [u]);
|
|
4977
4980
|
return /* @__PURE__ */ O("div", { className: B(), "data-testid": "ds-select-component", children: [
|
|
4978
4981
|
a && /* @__PURE__ */ O(
|
|
@@ -4983,17 +4986,17 @@ const xs = {
|
|
|
4983
4986
|
htmlFor: r,
|
|
4984
4987
|
children: [
|
|
4985
4988
|
a,
|
|
4986
|
-
|
|
4989
|
+
C && /* @__PURE__ */ c(
|
|
4987
4990
|
We,
|
|
4988
4991
|
{
|
|
4989
|
-
className: `${
|
|
4990
|
-
placement:
|
|
4991
|
-
position:
|
|
4992
|
-
text:
|
|
4992
|
+
className: `${Z.class}__tooltip`,
|
|
4993
|
+
placement: m,
|
|
4994
|
+
position: y,
|
|
4995
|
+
text: C,
|
|
4993
4996
|
children: /* @__PURE__ */ c(
|
|
4994
|
-
|
|
4997
|
+
K,
|
|
4995
4998
|
{
|
|
4996
|
-
className: `${
|
|
4999
|
+
className: `${Z.class}__icon`,
|
|
4997
5000
|
image: "info"
|
|
4998
5001
|
}
|
|
4999
5002
|
)
|
|
@@ -5010,29 +5013,28 @@ const xs = {
|
|
|
5010
5013
|
id: r,
|
|
5011
5014
|
multiple: n,
|
|
5012
5015
|
name: r,
|
|
5013
|
-
onChange: (V) => S(V),
|
|
5014
|
-
value: u || "",
|
|
5015
|
-
...P,
|
|
5016
5016
|
onBlur: () => p(!1),
|
|
5017
|
+
onChange: (V) => S(V),
|
|
5017
5018
|
onFocus: () => p(!0),
|
|
5018
5019
|
ref: A,
|
|
5019
|
-
|
|
5020
|
+
value: u ?? "",
|
|
5021
|
+
...P,
|
|
5020
5022
|
children: [
|
|
5021
5023
|
(d || s) && /* @__PURE__ */ c("option", { disabled: !0, value: "", children: d ?? a }),
|
|
5022
5024
|
l == null ? void 0 : l.map((V, ae) => {
|
|
5023
5025
|
var ce;
|
|
5024
|
-
return "options" in V ? /* @__PURE__ */ c("optgroup", { label: V.label, children: (ce = V.options) == null ? void 0 : ce.map((de,
|
|
5026
|
+
return "options" in V ? /* @__PURE__ */ c("optgroup", { label: V.label, children: (ce = V.options) == null ? void 0 : ce.map((de, Fe) => /* @__PURE__ */ c(
|
|
5025
5027
|
"option",
|
|
5026
5028
|
{
|
|
5027
|
-
className: `${
|
|
5029
|
+
className: `${Z.class}__option-select`,
|
|
5028
5030
|
value: de.value,
|
|
5029
5031
|
children: de.label || de.value
|
|
5030
5032
|
},
|
|
5031
|
-
|
|
5033
|
+
Fe
|
|
5032
5034
|
)) }, ae) : /* @__PURE__ */ c(
|
|
5033
5035
|
"option",
|
|
5034
5036
|
{
|
|
5035
|
-
className: `${
|
|
5037
|
+
className: `${Z.class}__option-select`,
|
|
5036
5038
|
value: V.value,
|
|
5037
5039
|
children: V.label || V.value
|
|
5038
5040
|
},
|
|
@@ -5044,7 +5046,7 @@ const xs = {
|
|
|
5044
5046
|
),
|
|
5045
5047
|
F && /* @__PURE__ */ O("div", { className: "ds-select__feedback-container", children: [
|
|
5046
5048
|
/* @__PURE__ */ c(
|
|
5047
|
-
|
|
5049
|
+
K,
|
|
5048
5050
|
{
|
|
5049
5051
|
className: "ds-select__icon",
|
|
5050
5052
|
image: v === "success" ? "check_circle" : "info"
|
|
@@ -5068,8 +5070,8 @@ rn.propTypes = {
|
|
|
5068
5070
|
onChange: o.func,
|
|
5069
5071
|
onChangeHandler: o.func,
|
|
5070
5072
|
value: o.oneOfType([o.string, o.number]),
|
|
5071
|
-
size: o.oneOf(
|
|
5072
|
-
status: o.oneOf(
|
|
5073
|
+
size: o.oneOf(Z.props.size.options),
|
|
5074
|
+
status: o.oneOf(Z.props.status.options),
|
|
5073
5075
|
tooltip: o.string,
|
|
5074
5076
|
tooltipPosition: o.string,
|
|
5075
5077
|
tooltipPlacement: o.string,
|
|
@@ -5225,9 +5227,9 @@ const Is = {
|
|
|
5225
5227
|
status: f = te.props.status.default,
|
|
5226
5228
|
feedback: _,
|
|
5227
5229
|
disabled: v = te.props.disabled.default,
|
|
5228
|
-
required:
|
|
5229
|
-
className:
|
|
5230
|
-
resize:
|
|
5230
|
+
required: C,
|
|
5231
|
+
className: y,
|
|
5232
|
+
resize: m = te.props.resize.default,
|
|
5231
5233
|
onChangeHandler: F,
|
|
5232
5234
|
onBlurHandler: P,
|
|
5233
5235
|
onKeyDownHandler: A,
|
|
@@ -5237,32 +5239,32 @@ const Is = {
|
|
|
5237
5239
|
description: B,
|
|
5238
5240
|
style: q
|
|
5239
5241
|
}, V) => {
|
|
5240
|
-
const [ae, ce] = j(!1), [de,
|
|
5241
|
-
|
|
5242
|
+
const [ae, ce] = j(!1), [de, Fe] = j(0), [me, Le] = j(Math.random());
|
|
5243
|
+
J(() => {
|
|
5242
5244
|
r == null && Le(Math.random());
|
|
5243
5245
|
}, [r]);
|
|
5244
5246
|
const oe = (T) => {
|
|
5245
|
-
|
|
5247
|
+
Fe(T.target.value.length), F && F(T);
|
|
5246
5248
|
}, ye = (T) => {
|
|
5247
5249
|
A && A(T);
|
|
5248
|
-
},
|
|
5250
|
+
}, Ie = (T) => {
|
|
5249
5251
|
ce(!1), P && P(T);
|
|
5250
5252
|
}, Ne = (T) => {
|
|
5251
5253
|
ce(!0), x && x(T);
|
|
5252
5254
|
}, g = () => {
|
|
5253
5255
|
const T = [`${te.class}`];
|
|
5254
|
-
return s && T.push(`${te.class}--${s}`), t && T.push(`${te.class}--animated`), d && T.push(`${te.class}--with-icon`), f && T.push(`${te.class}--${f}`),
|
|
5255
|
-
},
|
|
5256
|
+
return s && T.push(`${te.class}--${s}`), t && T.push(`${te.class}--animated`), d && T.push(`${te.class}--with-icon`), f && T.push(`${te.class}--${f}`), y && T.push(y), T.join(" ");
|
|
5257
|
+
}, b = Ce(() => {
|
|
5256
5258
|
const T = [`${te.class}__label`];
|
|
5257
5259
|
return (ae || r) && T.push(`${te.class}__label--active`), T.join(" ");
|
|
5258
5260
|
}, [r, ae]), $ = () => !t && i ? i : "", R = () => f && f === "error" ? "info" : "check_circle", D = {
|
|
5259
|
-
resize:
|
|
5261
|
+
resize: m,
|
|
5260
5262
|
...q || {}
|
|
5261
5263
|
};
|
|
5262
5264
|
return /* @__PURE__ */ O("div", { className: g(), children: [
|
|
5263
5265
|
B && /* @__PURE__ */ c("span", { className: "ds-textarea__description", children: B }),
|
|
5264
5266
|
_ && /* @__PURE__ */ O("div", { className: "ds-textarea__feedback", children: [
|
|
5265
|
-
/* @__PURE__ */ c(
|
|
5267
|
+
/* @__PURE__ */ c(K, { image: R() }),
|
|
5266
5268
|
_
|
|
5267
5269
|
] }),
|
|
5268
5270
|
/* @__PURE__ */ c(
|
|
@@ -5277,18 +5279,18 @@ const Is = {
|
|
|
5277
5279
|
maxLength: u,
|
|
5278
5280
|
minLength: l,
|
|
5279
5281
|
name: a,
|
|
5280
|
-
onBlur:
|
|
5282
|
+
onBlur: Ie,
|
|
5281
5283
|
onChange: oe,
|
|
5282
5284
|
onFocus: Ne,
|
|
5283
5285
|
onKeyDown: ye,
|
|
5284
5286
|
placeholder: $(),
|
|
5285
5287
|
ref: V,
|
|
5286
|
-
required:
|
|
5288
|
+
required: C,
|
|
5287
5289
|
rows: p,
|
|
5288
5290
|
style: D
|
|
5289
5291
|
}
|
|
5290
5292
|
),
|
|
5291
|
-
/* @__PURE__ */ c("label", { className:
|
|
5293
|
+
/* @__PURE__ */ c("label", { className: b, htmlFor: a, children: n }),
|
|
5292
5294
|
u && /* @__PURE__ */ O("span", { className: "ds-textarea__count", children: [
|
|
5293
5295
|
de,
|
|
5294
5296
|
"/",
|
|
@@ -5300,7 +5302,7 @@ const Is = {
|
|
|
5300
5302
|
className: "ds-textarea__tooltip",
|
|
5301
5303
|
placement: "end",
|
|
5302
5304
|
text: d,
|
|
5303
|
-
children: /* @__PURE__ */ c(
|
|
5305
|
+
children: /* @__PURE__ */ c(K, { className: "ds-textarea__icon", image: h })
|
|
5304
5306
|
}
|
|
5305
5307
|
)
|
|
5306
5308
|
] }, me);
|
|
@@ -5375,7 +5377,7 @@ Mt.propTypes = {
|
|
|
5375
5377
|
Mt.displayName = "DsContainer";
|
|
5376
5378
|
const Rs = () => typeof window < "u" && window.innerWidth ? window.innerWidth : 0, Kn = ({ children: a, grid: e }) => {
|
|
5377
5379
|
const { row: t, col: s, mobileRow: n, mobileCol: i } = e, [r, l] = j(Rs());
|
|
5378
|
-
|
|
5380
|
+
J(() => {
|
|
5379
5381
|
const d = () => {
|
|
5380
5382
|
l(Rs());
|
|
5381
5383
|
};
|
|
@@ -5460,7 +5462,7 @@ function Zn() {
|
|
|
5460
5462
|
const [a, e] = j(
|
|
5461
5463
|
Ms()
|
|
5462
5464
|
);
|
|
5463
|
-
return
|
|
5465
|
+
return J(() => {
|
|
5464
5466
|
function t() {
|
|
5465
5467
|
e(Ms());
|
|
5466
5468
|
}
|
|
@@ -5482,11 +5484,11 @@ const ln = ({
|
|
|
5482
5484
|
(A) => A === i
|
|
5483
5485
|
) ? `${ee.class}--h-${i}` : null, _ = r && ee.props.verticalAlign.options.find(
|
|
5484
5486
|
(A) => A === r
|
|
5485
|
-
) ? `${ee.class}--v-${r}` : null, { width: v } = Zn(), [
|
|
5486
|
-
|
|
5487
|
-
v <= 768 ?
|
|
5487
|
+
) ? `${ee.class}--v-${r}` : null, { width: v } = Zn(), [C, y] = j("auto");
|
|
5488
|
+
J(() => {
|
|
5489
|
+
v <= 768 ? y("6") : y("12");
|
|
5488
5490
|
}, [v]);
|
|
5489
|
-
const
|
|
5491
|
+
const m = (A) => /^[+-]?\d+$/.test(A), F = () => e.split(",").map((x) => (x = x.trim(), x === "0" || x === "*" || x === "auto" ? "auto" : m(x) ? x + "fr" : x)).join(" "), P = () => `repeat(${C}, minmax(0, 1fr))`;
|
|
5490
5492
|
return /* @__PURE__ */ c(
|
|
5491
5493
|
"div",
|
|
5492
5494
|
{
|
|
@@ -5523,7 +5525,7 @@ ln.propTypes = {
|
|
|
5523
5525
|
verticalAlign: o.oneOf(ee.props.verticalAlign.options)
|
|
5524
5526
|
};
|
|
5525
5527
|
ln.displayName = "DsGridLayout";
|
|
5526
|
-
const
|
|
5528
|
+
const xe = {
|
|
5527
5529
|
None: "none",
|
|
5528
5530
|
Quark: "quark",
|
|
5529
5531
|
Nano: "nano",
|
|
@@ -5537,28 +5539,28 @@ const Ee = {
|
|
|
5537
5539
|
props: {
|
|
5538
5540
|
space: {
|
|
5539
5541
|
type: String,
|
|
5540
|
-
default:
|
|
5541
|
-
options: Object.values(
|
|
5542
|
+
default: xe.ExtraSmall,
|
|
5543
|
+
options: Object.values(xe)
|
|
5542
5544
|
},
|
|
5543
5545
|
top: {
|
|
5544
5546
|
type: String,
|
|
5545
|
-
default:
|
|
5546
|
-
options: Object.values(
|
|
5547
|
+
default: xe.None,
|
|
5548
|
+
options: Object.values(xe)
|
|
5547
5549
|
},
|
|
5548
5550
|
right: {
|
|
5549
5551
|
type: String,
|
|
5550
|
-
default:
|
|
5551
|
-
options: Object.values(
|
|
5552
|
+
default: xe.None,
|
|
5553
|
+
options: Object.values(xe)
|
|
5552
5554
|
},
|
|
5553
5555
|
bottom: {
|
|
5554
5556
|
type: String,
|
|
5555
|
-
default:
|
|
5556
|
-
options: Object.values(
|
|
5557
|
+
default: xe.None,
|
|
5558
|
+
options: Object.values(xe)
|
|
5557
5559
|
},
|
|
5558
5560
|
left: {
|
|
5559
5561
|
type: String,
|
|
5560
|
-
default:
|
|
5561
|
-
options: Object.values(
|
|
5562
|
+
default: xe.None,
|
|
5563
|
+
options: Object.values(xe)
|
|
5562
5564
|
}
|
|
5563
5565
|
}
|
|
5564
5566
|
}, Ze = ({
|
|
@@ -5646,7 +5648,7 @@ const wt = {
|
|
|
5646
5648
|
children: [
|
|
5647
5649
|
a,
|
|
5648
5650
|
/* @__PURE__ */ c(
|
|
5649
|
-
|
|
5651
|
+
K,
|
|
5650
5652
|
{
|
|
5651
5653
|
className: `${He.class}__icon`,
|
|
5652
5654
|
color: "neutral-90",
|
|
@@ -5675,11 +5677,11 @@ const un = ({
|
|
|
5675
5677
|
onClick: t
|
|
5676
5678
|
}) => {
|
|
5677
5679
|
const [s, n] = j(-1);
|
|
5678
|
-
|
|
5680
|
+
J(() => {
|
|
5679
5681
|
a.map((r, l) => {
|
|
5680
5682
|
r.active && n(l);
|
|
5681
5683
|
});
|
|
5682
|
-
}, [a]),
|
|
5684
|
+
}, [a]), J(() => {
|
|
5683
5685
|
e != null && n(e);
|
|
5684
5686
|
}, [e]);
|
|
5685
5687
|
const i = (r) => {
|
|
@@ -5724,7 +5726,7 @@ const Jn = ({
|
|
|
5724
5726
|
children: [
|
|
5725
5727
|
/* @__PURE__ */ O(Ve, { alignItems: "center", gap: "nano", children: [
|
|
5726
5728
|
/* @__PURE__ */ c(se, { children: /* @__PURE__ */ c(
|
|
5727
|
-
|
|
5729
|
+
K,
|
|
5728
5730
|
{
|
|
5729
5731
|
className: "active-tags__icon",
|
|
5730
5732
|
color: s.hiddenClose ? "neutral-00" : "neutral-90",
|
|
@@ -5736,7 +5738,7 @@ const Jn = ({
|
|
|
5736
5738
|
/* @__PURE__ */ c(se, { children: /* @__PURE__ */ c(Re, { type: "small", children: s.text }) })
|
|
5737
5739
|
] }),
|
|
5738
5740
|
!s.hiddenClose && /* @__PURE__ */ c(
|
|
5739
|
-
|
|
5741
|
+
K,
|
|
5740
5742
|
{
|
|
5741
5743
|
image: "close",
|
|
5742
5744
|
onClick: () => t(n),
|
|
@@ -5765,7 +5767,7 @@ const Ye = {
|
|
|
5765
5767
|
imageMaxWidth: i
|
|
5766
5768
|
}) => {
|
|
5767
5769
|
const [r, l] = j(0), [u, d] = j(!1), h = Je(null);
|
|
5768
|
-
|
|
5770
|
+
J(() => (u || (h.current = setInterval(() => {
|
|
5769
5771
|
l((v) => v === a.length - 1 ? 0 : v + 1);
|
|
5770
5772
|
}, e)), () => {
|
|
5771
5773
|
h.current && clearInterval(h.current);
|
|
@@ -5789,11 +5791,11 @@ const Ye = {
|
|
|
5789
5791
|
maxHeight: n,
|
|
5790
5792
|
maxWidth: i
|
|
5791
5793
|
},
|
|
5792
|
-
children: a.map((v,
|
|
5794
|
+
children: a.map((v, C) => /* @__PURE__ */ c(
|
|
5793
5795
|
"img",
|
|
5794
5796
|
{
|
|
5795
5797
|
alt: v.title,
|
|
5796
|
-
className: `${Ye.class}__image ${
|
|
5798
|
+
className: `${Ye.class}__image ${C === r ? "active" : "inactive"}`,
|
|
5797
5799
|
height: t,
|
|
5798
5800
|
src: v.image,
|
|
5799
5801
|
style: {
|
|
@@ -5802,7 +5804,7 @@ const Ye = {
|
|
|
5802
5804
|
},
|
|
5803
5805
|
width: s
|
|
5804
5806
|
},
|
|
5805
|
-
|
|
5807
|
+
C
|
|
5806
5808
|
))
|
|
5807
5809
|
}
|
|
5808
5810
|
),
|
|
@@ -5810,14 +5812,14 @@ const Ye = {
|
|
|
5810
5812
|
/* @__PURE__ */ c("div", { children: /* @__PURE__ */ c(Bt, { className: "color__primary--default", type: "heading-4", children: a[r].title }) }),
|
|
5811
5813
|
/* @__PURE__ */ c("div", { children: /* @__PURE__ */ c(Re, { type: "large", children: a[r].description }) }),
|
|
5812
5814
|
/* @__PURE__ */ c(ge, { vertical: "xxs" }),
|
|
5813
|
-
/* @__PURE__ */ c("div", { className: `${Ye.class}__dots`, children: /* @__PURE__ */ c("div", { className: `${Ye.class}__dots-wrapper`, children: a.map((v,
|
|
5815
|
+
/* @__PURE__ */ c("div", { className: `${Ye.class}__dots`, children: /* @__PURE__ */ c("div", { className: `${Ye.class}__dots-wrapper`, children: a.map((v, C) => /* @__PURE__ */ c(
|
|
5814
5816
|
"button",
|
|
5815
5817
|
{
|
|
5816
|
-
"aria-label": `Go to slide ${
|
|
5817
|
-
className: `dot ${r ===
|
|
5818
|
-
onClick: () => l(
|
|
5818
|
+
"aria-label": `Go to slide ${C + 1}`,
|
|
5819
|
+
className: `dot ${r === C ? "dot--active" : ""}`,
|
|
5820
|
+
onClick: () => l(C)
|
|
5819
5821
|
},
|
|
5820
|
-
|
|
5822
|
+
C
|
|
5821
5823
|
)) }) })
|
|
5822
5824
|
]
|
|
5823
5825
|
}
|
|
@@ -5934,16 +5936,16 @@ const $s = {
|
|
|
5934
5936
|
status: f = G.props.status.default,
|
|
5935
5937
|
onBlurHandler: _ = G.props.onBlurHandler.default,
|
|
5936
5938
|
onFocusHandler: v = G.props.onFocusHandler.default,
|
|
5937
|
-
animated:
|
|
5938
|
-
placeholder:
|
|
5939
|
-
loading:
|
|
5939
|
+
animated: C = G.props.animated.default,
|
|
5940
|
+
placeholder: y = G.props.placeholder.default,
|
|
5941
|
+
loading: m
|
|
5940
5942
|
}) => {
|
|
5941
5943
|
const [F, P] = j(!1), [A, x] = j(s), p = (q) => {
|
|
5942
|
-
r(q), (
|
|
5944
|
+
r(q), (m == null && q.currentTarget.value.length || !m && q.currentTarget.value.length > 2) && P(!0);
|
|
5943
5945
|
}, S = (q) => {
|
|
5944
5946
|
l(q), _(), x(Math.random().toString()), P(!1);
|
|
5945
5947
|
};
|
|
5946
|
-
|
|
5948
|
+
J(() => {
|
|
5947
5949
|
s.length === 0 && P(!1);
|
|
5948
5950
|
}, [s]);
|
|
5949
5951
|
const B = () => n.length > 0 ? n.map((q, V) => /* @__PURE__ */ c(
|
|
@@ -5968,7 +5970,7 @@ const $s = {
|
|
|
5968
5970
|
/* @__PURE__ */ c(
|
|
5969
5971
|
et,
|
|
5970
5972
|
{
|
|
5971
|
-
animated:
|
|
5973
|
+
animated: C,
|
|
5972
5974
|
className: `${G.class}__input`,
|
|
5973
5975
|
disabled: h,
|
|
5974
5976
|
label: a,
|
|
@@ -5976,7 +5978,7 @@ const $s = {
|
|
|
5976
5978
|
onBlurHandler: _,
|
|
5977
5979
|
onChangeHandler: p,
|
|
5978
5980
|
onFocusHandler: v,
|
|
5979
|
-
placeholder:
|
|
5981
|
+
placeholder: y,
|
|
5980
5982
|
size: i,
|
|
5981
5983
|
status: f,
|
|
5982
5984
|
testId: t,
|
|
@@ -5984,7 +5986,7 @@ const $s = {
|
|
|
5984
5986
|
},
|
|
5985
5987
|
A
|
|
5986
5988
|
),
|
|
5987
|
-
(u ||
|
|
5989
|
+
(u || m) && (m ? /* @__PURE__ */ c(
|
|
5988
5990
|
"div",
|
|
5989
5991
|
{
|
|
5990
5992
|
className: `${G.class}__loading ${G.class}__loading--${i}`,
|
|
@@ -5992,7 +5994,7 @@ const $s = {
|
|
|
5992
5994
|
children: /* @__PURE__ */ c(Nt, { fullscreen: !1 })
|
|
5993
5995
|
}
|
|
5994
5996
|
) : u && /* @__PURE__ */ c(
|
|
5995
|
-
|
|
5997
|
+
K,
|
|
5996
5998
|
{
|
|
5997
5999
|
className: `${G.class}__icon ${G.class}__icon--${i}`,
|
|
5998
6000
|
image: u
|
|
@@ -6027,7 +6029,7 @@ const Ge = {
|
|
|
6027
6029
|
current: e = Ge.props.current.default
|
|
6028
6030
|
}) => {
|
|
6029
6031
|
const [t, s] = j(e), n = (r) => r < t ? `${Ge.class}__step--older` : r === t ? `${Ge.class}__step--active` : "";
|
|
6030
|
-
|
|
6032
|
+
J(() => {
|
|
6031
6033
|
s(e);
|
|
6032
6034
|
}, [e]);
|
|
6033
6035
|
const i = [];
|
|
@@ -6087,20 +6089,20 @@ const Ge = {
|
|
|
6087
6089
|
onChangeHandler: r
|
|
6088
6090
|
}) => {
|
|
6089
6091
|
const l = Je(null), [u, d] = j(!1), [h, f] = j("");
|
|
6090
|
-
|
|
6092
|
+
J(() => {
|
|
6091
6093
|
f(e ?? "");
|
|
6092
6094
|
}, [e]);
|
|
6093
|
-
const _ = (
|
|
6094
|
-
|
|
6095
|
+
const _ = (m) => {
|
|
6096
|
+
m.key === "Enter" && v(m);
|
|
6095
6097
|
};
|
|
6096
|
-
function v(
|
|
6097
|
-
d(!1), r && (n && parseInt(n) >= parseInt(h === "" ? n : h) ? (
|
|
6098
|
-
}
|
|
6099
|
-
const
|
|
6100
|
-
f(
|
|
6101
|
-
},
|
|
6102
|
-
var
|
|
6103
|
-
await d(!0), (
|
|
6098
|
+
function v(m) {
|
|
6099
|
+
d(!1), r && (n && parseInt(n) >= parseInt(h === "" ? n : h) ? (m.currentTarget.value = n, f(n)) : i && parseInt(i) < parseInt(h) ? (m.currentTarget.value = i, f(i)) : m.currentTarget.value = h, r(m));
|
|
6100
|
+
}
|
|
6101
|
+
const C = (m) => {
|
|
6102
|
+
f(m.currentTarget.value);
|
|
6103
|
+
}, y = async () => {
|
|
6104
|
+
var m;
|
|
6105
|
+
await d(!0), (m = l.current) == null || m.focus();
|
|
6104
6106
|
};
|
|
6105
6107
|
return /* @__PURE__ */ c("div", { className: ti.class, children: u ? /* @__PURE__ */ c(
|
|
6106
6108
|
"input",
|
|
@@ -6111,7 +6113,7 @@ const Ge = {
|
|
|
6111
6113
|
min: n,
|
|
6112
6114
|
name: a,
|
|
6113
6115
|
onBlur: v,
|
|
6114
|
-
onChange:
|
|
6116
|
+
onChange: C,
|
|
6115
6117
|
onKeyDown: _,
|
|
6116
6118
|
ref: l,
|
|
6117
6119
|
type: "number",
|
|
@@ -6121,14 +6123,14 @@ const Ge = {
|
|
|
6121
6123
|
"div",
|
|
6122
6124
|
{
|
|
6123
6125
|
"data-testid": "ds-inline-editible-div-click",
|
|
6124
|
-
onClick:
|
|
6126
|
+
onClick: y,
|
|
6125
6127
|
children: /* @__PURE__ */ O(Ve, { alignItems: "center", gap: "nano", children: [
|
|
6126
6128
|
/* @__PURE__ */ c(se, { children: /* @__PURE__ */ c(Re, { children: /* @__PURE__ */ O("b", { children: [
|
|
6127
6129
|
t,
|
|
6128
6130
|
e,
|
|
6129
6131
|
s
|
|
6130
6132
|
] }) }) }),
|
|
6131
|
-
/* @__PURE__ */ c(se, { children: /* @__PURE__ */ c(
|
|
6133
|
+
/* @__PURE__ */ c(se, { children: /* @__PURE__ */ c(K, { image: "edit_square" }) })
|
|
6132
6134
|
] })
|
|
6133
6135
|
}
|
|
6134
6136
|
) });
|
|
@@ -6180,22 +6182,22 @@ const si = [1, 2, 3, 4], Vs = {
|
|
|
6180
6182
|
onConfirm: h,
|
|
6181
6183
|
...f
|
|
6182
6184
|
}) => {
|
|
6183
|
-
const _ = i && fe.props.variant.options.find((
|
|
6184
|
-
(
|
|
6185
|
-
|
|
6185
|
+
const _ = i && fe.props.variant.options.find((m) => m === i) ? `${fe.class}--${i}` : `${fe.class}--${fe.props.variant.default}`, v = r && `${fe.class}--elevation-${r}`, C = h || d, y = Ae(
|
|
6186
|
+
(m) => {
|
|
6187
|
+
m.keyCode === 27 && u();
|
|
6186
6188
|
},
|
|
6187
6189
|
[u]
|
|
6188
6190
|
);
|
|
6189
|
-
return
|
|
6190
|
-
window.removeEventListener("keyup",
|
|
6191
|
-
}), [
|
|
6191
|
+
return J(() => (l && window && !C && window.addEventListener("keyup", y), () => {
|
|
6192
|
+
window.removeEventListener("keyup", y);
|
|
6193
|
+
}), [C, y]), l ? /* @__PURE__ */ O(tt, { children: [
|
|
6192
6194
|
/* @__PURE__ */ c(
|
|
6193
6195
|
"div",
|
|
6194
6196
|
{
|
|
6195
6197
|
className: "ds-modal-overlay",
|
|
6196
6198
|
"data-testid": "ds-modal-overlay",
|
|
6197
6199
|
...f,
|
|
6198
|
-
onClick: () =>
|
|
6200
|
+
onClick: () => C ? () => {
|
|
6199
6201
|
} : u()
|
|
6200
6202
|
}
|
|
6201
6203
|
),
|
|
@@ -6207,16 +6209,16 @@ const si = [1, 2, 3, 4], Vs = {
|
|
|
6207
6209
|
_,
|
|
6208
6210
|
v,
|
|
6209
6211
|
a && a
|
|
6210
|
-
].filter((
|
|
6212
|
+
].filter((m) => m).join(" "),
|
|
6211
6213
|
"data-testid": "ds-modal",
|
|
6212
6214
|
children: [
|
|
6213
|
-
!
|
|
6215
|
+
!C && /* @__PURE__ */ c(
|
|
6214
6216
|
"button",
|
|
6215
6217
|
{
|
|
6216
6218
|
className: "ds-modal__closeBtn",
|
|
6217
6219
|
"data-testid": "ds-modal-close-button",
|
|
6218
6220
|
onClick: u,
|
|
6219
|
-
children: /* @__PURE__ */ c(
|
|
6221
|
+
children: /* @__PURE__ */ c(K, { image: "close", size: "lg" })
|
|
6220
6222
|
}
|
|
6221
6223
|
),
|
|
6222
6224
|
/* @__PURE__ */ O("div", { className: "ds-modal__content", children: [
|
|
@@ -6224,8 +6226,8 @@ const si = [1, 2, 3, 4], Vs = {
|
|
|
6224
6226
|
e && /* @__PURE__ */ c(ge, { vertical: "xxxs" }),
|
|
6225
6227
|
/* @__PURE__ */ c("div", { className: "ds-modal__content__content", children: t })
|
|
6226
6228
|
] }),
|
|
6227
|
-
|
|
6228
|
-
!
|
|
6229
|
+
C && /* @__PURE__ */ c(ge, { vertical: "sm" }),
|
|
6230
|
+
!C && /* @__PURE__ */ c(ge, { vertical: "xxs" }),
|
|
6229
6231
|
/* @__PURE__ */ O("div", { className: "ds-modal__cta", children: [
|
|
6230
6232
|
d && /* @__PURE__ */ c(
|
|
6231
6233
|
pt,
|
|
@@ -6332,24 +6334,24 @@ const Ls = {
|
|
|
6332
6334
|
handleClose: f,
|
|
6333
6335
|
testId: _ = le.props.testId.default
|
|
6334
6336
|
}) => {
|
|
6335
|
-
const [v,
|
|
6337
|
+
const [v, C] = j(l), [y, m] = j(!1), [F, P] = j(!0), A = [
|
|
6336
6338
|
le.class,
|
|
6337
6339
|
e && `${le.class}--${e}`,
|
|
6338
6340
|
t && `${le.class}--${t}`,
|
|
6339
6341
|
d && `${le.class}--elevation-${d}`,
|
|
6340
6342
|
a && a
|
|
6341
|
-
].join(" "), x = () =>
|
|
6342
|
-
|
|
6343
|
+
].join(" "), x = () => C((q) => (q === 0 && P(!1), q - 100));
|
|
6344
|
+
J(() => {
|
|
6343
6345
|
!r && !u && P(!0);
|
|
6344
6346
|
let q;
|
|
6345
|
-
return !
|
|
6347
|
+
return !y && r && (q = setInterval(x, 100)), () => {
|
|
6346
6348
|
clearInterval(q);
|
|
6347
6349
|
};
|
|
6348
|
-
}, [
|
|
6350
|
+
}, [y, r, l, F, u]);
|
|
6349
6351
|
const p = () => {
|
|
6350
|
-
|
|
6352
|
+
m(!0);
|
|
6351
6353
|
}, S = () => {
|
|
6352
|
-
|
|
6354
|
+
m(!1);
|
|
6353
6355
|
}, B = (q) => {
|
|
6354
6356
|
P(!1), f && f(q);
|
|
6355
6357
|
};
|
|
@@ -6364,7 +6366,7 @@ const Ls = {
|
|
|
6364
6366
|
children: [
|
|
6365
6367
|
/* @__PURE__ */ c(Ze, { bottom: "nano", top: "nano", children: /* @__PURE__ */ O(Ve, { alignItems: "center", flexWrap: "nowrap", gap: "xxxs", children: [
|
|
6366
6368
|
/* @__PURE__ */ c(se, { children: /* @__PURE__ */ c(
|
|
6367
|
-
|
|
6369
|
+
K,
|
|
6368
6370
|
{
|
|
6369
6371
|
color: e,
|
|
6370
6372
|
fill: !0,
|
|
@@ -6378,7 +6380,7 @@ const Ls = {
|
|
|
6378
6380
|
className: `${le.class}__button`,
|
|
6379
6381
|
"data-testid": `${_}-close`,
|
|
6380
6382
|
onClick: (q) => B(q),
|
|
6381
|
-
children: /* @__PURE__ */ c(Ze, { children: /* @__PURE__ */ c(
|
|
6383
|
+
children: /* @__PURE__ */ c(Ze, { children: /* @__PURE__ */ c(K, { image: "close" }) })
|
|
6382
6384
|
}
|
|
6383
6385
|
) : /* @__PURE__ */ c(ge, { horizontal: "quark" }) })
|
|
6384
6386
|
] }) }),
|
|
@@ -6451,7 +6453,7 @@ const Ft = {
|
|
|
6451
6453
|
score: 0,
|
|
6452
6454
|
color: "danger",
|
|
6453
6455
|
label: "Fraco"
|
|
6454
|
-
}), [_, v] = j(!1),
|
|
6456
|
+
}), [_, v] = j(!1), C = Ae(
|
|
6455
6457
|
(p) => {
|
|
6456
6458
|
const S = e.map(
|
|
6457
6459
|
(B) => B == null ? void 0 : B.rule(p)
|
|
@@ -6459,10 +6461,10 @@ const Ft = {
|
|
|
6459
6461
|
return d(S), S;
|
|
6460
6462
|
},
|
|
6461
6463
|
[e]
|
|
6462
|
-
),
|
|
6464
|
+
), y = Ae(
|
|
6463
6465
|
(p) => {
|
|
6464
6466
|
i(p.currentTarget.value);
|
|
6465
|
-
const S =
|
|
6467
|
+
const S = C(p.currentTarget.value), B = A(S);
|
|
6466
6468
|
a({
|
|
6467
6469
|
password: p.currentTarget.value,
|
|
6468
6470
|
confirmationPassword: r,
|
|
@@ -6470,11 +6472,11 @@ const Ft = {
|
|
|
6470
6472
|
feedback: B
|
|
6471
6473
|
});
|
|
6472
6474
|
},
|
|
6473
|
-
[r, a,
|
|
6474
|
-
),
|
|
6475
|
+
[r, a, C]
|
|
6476
|
+
), m = Ae(
|
|
6475
6477
|
(p) => {
|
|
6476
6478
|
l(p.currentTarget.value);
|
|
6477
|
-
const S =
|
|
6479
|
+
const S = C(n), B = A(S);
|
|
6478
6480
|
a({
|
|
6479
6481
|
password: n,
|
|
6480
6482
|
confirmationPassword: p.currentTarget.value,
|
|
@@ -6482,8 +6484,8 @@ const Ft = {
|
|
|
6482
6484
|
feedback: B
|
|
6483
6485
|
});
|
|
6484
6486
|
},
|
|
6485
|
-
[n, a,
|
|
6486
|
-
), F = Ce(() => n !== r && _ ? { status: "error", feedback: "As senhas são diferentes" } : { status: "", feedback: "" }, [n, r, _]), P =
|
|
6487
|
+
[n, a, C]
|
|
6488
|
+
), F = Ce(() => n !== r && _ ? { status: "error", feedback: "As senhas são diferentes" } : { status: "", feedback: "" }, [n, r, _]), P = Ae(
|
|
6487
6489
|
(p) => {
|
|
6488
6490
|
const S = {
|
|
6489
6491
|
score: p,
|
|
@@ -6493,7 +6495,7 @@ const Ft = {
|
|
|
6493
6495
|
return p > 30 && p < 75 ? (S.color = "warning", S.label = lt.medium) : p >= 75 && p < 100 ? (S.color = "success", S.label = lt.good) : p === 100 && (S.color = "success-dark", S.label = lt.strong), S;
|
|
6494
6496
|
},
|
|
6495
6497
|
[]
|
|
6496
|
-
), A =
|
|
6498
|
+
), A = Ae(
|
|
6497
6499
|
(p) => {
|
|
6498
6500
|
const S = p.reduce(
|
|
6499
6501
|
(q, V) => {
|
|
@@ -6511,7 +6513,7 @@ const Ft = {
|
|
|
6511
6513
|
const B = u[S] ? "ds-password-confirmation__list" : "ds-password-confirmation__list--disc";
|
|
6512
6514
|
return /* @__PURE__ */ O("li", { className: B, children: [
|
|
6513
6515
|
u[S] ? /* @__PURE__ */ c(
|
|
6514
|
-
|
|
6516
|
+
K,
|
|
6515
6517
|
{
|
|
6516
6518
|
color: "success-dark",
|
|
6517
6519
|
image: "check",
|
|
@@ -6528,7 +6530,7 @@ const Ft = {
|
|
|
6528
6530
|
{
|
|
6529
6531
|
label: "Senha",
|
|
6530
6532
|
name: "password",
|
|
6531
|
-
onChangeHandler:
|
|
6533
|
+
onChangeHandler: y,
|
|
6532
6534
|
testId: `${s}-main-input`,
|
|
6533
6535
|
type: "password",
|
|
6534
6536
|
value: n
|
|
@@ -6552,7 +6554,7 @@ const Ft = {
|
|
|
6552
6554
|
label: "Confirme a senha",
|
|
6553
6555
|
name: "confirmPassword",
|
|
6554
6556
|
onBlurHandler: () => v(!0),
|
|
6555
|
-
onChangeHandler:
|
|
6557
|
+
onChangeHandler: m,
|
|
6556
6558
|
onFocusHandler: () => v(!0),
|
|
6557
6559
|
status: F.status,
|
|
6558
6560
|
testId: `${s}-confirm-input`,
|
|
@@ -6591,9 +6593,9 @@ const ve = {
|
|
|
6591
6593
|
const u = [`${ve.class}__button`];
|
|
6592
6594
|
return l !== r && u.push(`${ve.class}__button--round`), a[r] && a[r].disabled && u.push(`${ve.class}__button--disabled`), u.join(" ");
|
|
6593
6595
|
};
|
|
6594
|
-
return
|
|
6596
|
+
return J(() => {
|
|
6595
6597
|
n(e);
|
|
6596
|
-
}, [e]),
|
|
6598
|
+
}, [e]), J(() => {
|
|
6597
6599
|
t(s);
|
|
6598
6600
|
}, [s]), /* @__PURE__ */ O("div", { className: ve.class, children: [
|
|
6599
6601
|
/* @__PURE__ */ O("span", { className: `${ve.class}__step-counter`, children: [
|
|
@@ -6611,7 +6613,7 @@ const ve = {
|
|
|
6611
6613
|
onClick: () => n(l),
|
|
6612
6614
|
children: /* @__PURE__ */ O("span", { className: `${ve.class}__text`, children: [
|
|
6613
6615
|
s === l ? /* @__PURE__ */ c(Ze, { bottom: "none", left: "nano", right: "nano", top: "none", children: /* @__PURE__ */ c(
|
|
6614
|
-
|
|
6616
|
+
K,
|
|
6615
6617
|
{
|
|
6616
6618
|
className: `${ve.class}__icon`,
|
|
6617
6619
|
fill: !0,
|
|
@@ -6619,7 +6621,7 @@ const ve = {
|
|
|
6619
6621
|
testId: `ds-icon-${l}`
|
|
6620
6622
|
}
|
|
6621
6623
|
) }) : /* @__PURE__ */ c(
|
|
6622
|
-
|
|
6624
|
+
K,
|
|
6623
6625
|
{
|
|
6624
6626
|
className: `${ve.class}__icon`,
|
|
6625
6627
|
fill: !0,
|
|
@@ -6634,7 +6636,7 @@ const ve = {
|
|
|
6634
6636
|
] });
|
|
6635
6637
|
};
|
|
6636
6638
|
ii.displayName = "DsStepper";
|
|
6637
|
-
const
|
|
6639
|
+
const Te = {
|
|
6638
6640
|
name: "Table",
|
|
6639
6641
|
class: "ds-table",
|
|
6640
6642
|
props: {
|
|
@@ -6651,13 +6653,13 @@ const xe = {
|
|
|
6651
6653
|
default: []
|
|
6652
6654
|
}
|
|
6653
6655
|
}
|
|
6654
|
-
}, fn = ({ item: a, columns: e }) => /* @__PURE__ */ c("tr", { className: `${
|
|
6655
|
-
const n = t.align && `${
|
|
6656
|
+
}, fn = ({ item: a, columns: e }) => /* @__PURE__ */ c("tr", { className: `${Te.class}__row`, children: e.map((t, s) => {
|
|
6657
|
+
const n = t.align && `${Te.class}__cell--align-${t.align}`;
|
|
6656
6658
|
return /* @__PURE__ */ c("td", { children: /* @__PURE__ */ c(
|
|
6657
6659
|
"div",
|
|
6658
6660
|
{
|
|
6659
6661
|
className: [
|
|
6660
|
-
`${
|
|
6662
|
+
`${Te.class}__cell`,
|
|
6661
6663
|
n,
|
|
6662
6664
|
t.className
|
|
6663
6665
|
].filter((i) => i).join(" "),
|
|
@@ -6666,22 +6668,22 @@ const xe = {
|
|
|
6666
6668
|
) }, s);
|
|
6667
6669
|
}) });
|
|
6668
6670
|
fn.displayName = "DsTableRow";
|
|
6669
|
-
const ai = ({ columns: a, data: e, className: t }) => /* @__PURE__ */ c("div", { className: `${
|
|
6671
|
+
const ai = ({ columns: a, data: e, className: t }) => /* @__PURE__ */ c("div", { className: `${Te.class}__wrapper`, children: /* @__PURE__ */ O(
|
|
6670
6672
|
"table",
|
|
6671
6673
|
{
|
|
6672
|
-
className: [`${
|
|
6674
|
+
className: [`${Te.class}`, t].filter((s) => s).join(" "),
|
|
6673
6675
|
children: [
|
|
6674
|
-
/* @__PURE__ */ c("thead", { className: `${
|
|
6676
|
+
/* @__PURE__ */ c("thead", { className: `${Te.class}__head`, children: /* @__PURE__ */ c("tr", { className: `${Te.class}__row`, children: a && a.map((s, n) => /* @__PURE__ */ c("th", { style: { width: s.size }, children: /* @__PURE__ */ c(
|
|
6675
6677
|
"div",
|
|
6676
6678
|
{
|
|
6677
6679
|
className: [
|
|
6678
|
-
`${
|
|
6679
|
-
s.align && `${
|
|
6680
|
+
`${Te.class}__cell`,
|
|
6681
|
+
s.align && `${Te.class}__cell--align-${s.align}`
|
|
6680
6682
|
].filter((i) => i).join(" "),
|
|
6681
6683
|
children: s.label
|
|
6682
6684
|
}
|
|
6683
6685
|
) }, n)) }) }),
|
|
6684
|
-
/* @__PURE__ */ c("tbody", { className: `${
|
|
6686
|
+
/* @__PURE__ */ c("tbody", { className: `${Te.class}__body`, children: e && e.map((s, n) => /* @__PURE__ */ c(fn, { columns: a, item: s }, n)) })
|
|
6685
6687
|
]
|
|
6686
6688
|
}
|
|
6687
6689
|
) });
|
|
@@ -6761,7 +6763,7 @@ const js = {
|
|
|
6761
6763
|
const [i, r] = j(t), l = (u) => {
|
|
6762
6764
|
r(u), n && n(u);
|
|
6763
6765
|
};
|
|
6764
|
-
return
|
|
6766
|
+
return J(() => r(t), [t]), /* @__PURE__ */ O(
|
|
6765
6767
|
"div",
|
|
6766
6768
|
{
|
|
6767
6769
|
className: [Me.class, s && s].join(" "),
|
|
@@ -6933,7 +6935,7 @@ export {
|
|
|
6933
6935
|
ln as DsGridLayout,
|
|
6934
6936
|
Gs as DsHR,
|
|
6935
6937
|
Bt as DsHeading,
|
|
6936
|
-
|
|
6938
|
+
K as DsIcon,
|
|
6937
6939
|
di as DsIndicator,
|
|
6938
6940
|
cn as DsInlineEditable,
|
|
6939
6941
|
et as DsInput,
|