@akad/design-system 1.0.0-alpha.5 → 1.0.0-alpha.6
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/package.json +1 -1
- package/react/react-lib.js +362 -352
- package/react/react-lib.umd.cjs +5 -5
- package/react/src/components/atoms/Button/Button.config.d.ts +0 -5
- package/react/src/components/atoms/Button/Button.d.ts +4 -3
- package/react/src/components/atoms/Card/Card.config.d.ts +0 -5
- package/react/src/components/atoms/Card/Card.d.ts +1 -3
package/react/react-lib.js
CHANGED
|
@@ -1,9 +1,29 @@
|
|
|
1
1
|
import { jsx as c, jsxs as I, Fragment as pt } from "react/jsx-runtime";
|
|
2
|
-
import ke, { useMemo as be, useState as P, useEffect as Q, useRef as Qe, useCallback as
|
|
3
|
-
|
|
2
|
+
import ke, { useMemo as be, useState as P, useEffect as Q, useRef as Qe, useCallback as we, useLayoutEffect as kn, createElement as bn } from "react";
|
|
3
|
+
const En = "pushClickEvent: missing required field(s). Required: eventLabel";
|
|
4
|
+
function Sn(t) {
|
|
5
|
+
return !!(t.eventLabel && typeof t.eventLabel == "string" && t.eventLabel.trim());
|
|
6
|
+
}
|
|
7
|
+
function Cn(t) {
|
|
8
|
+
var n;
|
|
9
|
+
if (!Sn(t))
|
|
10
|
+
throw new Error(En);
|
|
11
|
+
if (!((n = globalThis.window) != null && n.dataLayer)) return;
|
|
12
|
+
const e = {};
|
|
13
|
+
Object.keys(t).forEach((r) => {
|
|
14
|
+
const a = t[r];
|
|
15
|
+
a != null && (typeof a == "string" && !a.trim() || (e[r] = a));
|
|
16
|
+
});
|
|
17
|
+
const s = {
|
|
18
|
+
event: "clickEvent",
|
|
19
|
+
userClick: e
|
|
20
|
+
};
|
|
21
|
+
globalThis.window.dataLayer.push(s);
|
|
22
|
+
}
|
|
23
|
+
function wn(t) {
|
|
4
24
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
5
25
|
}
|
|
6
|
-
var Tt = { exports: {} }, st = { exports: {} },
|
|
26
|
+
var Tt = { exports: {} }, st = { exports: {} }, H = {};
|
|
7
27
|
/** @license React v16.13.1
|
|
8
28
|
* react-is.production.min.js
|
|
9
29
|
*
|
|
@@ -13,14 +33,14 @@ var Tt = { exports: {} }, st = { exports: {} }, z = {};
|
|
|
13
33
|
* LICENSE file in the root directory of this source tree.
|
|
14
34
|
*/
|
|
15
35
|
var jt;
|
|
16
|
-
function
|
|
17
|
-
if (jt) return
|
|
36
|
+
function xn() {
|
|
37
|
+
if (jt) return H;
|
|
18
38
|
jt = 1;
|
|
19
39
|
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, s = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, r = t ? Symbol.for("react.strict_mode") : 60108, a = t ? Symbol.for("react.profiler") : 60114, i = t ? Symbol.for("react.provider") : 60109, l = t ? Symbol.for("react.context") : 60110, u = t ? Symbol.for("react.async_mode") : 60111, d = t ? Symbol.for("react.concurrent_mode") : 60111, h = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, _ = t ? Symbol.for("react.suspense_list") : 60120, y = t ? Symbol.for("react.memo") : 60115, b = t ? Symbol.for("react.lazy") : 60116, v = t ? Symbol.for("react.block") : 60121, m = t ? Symbol.for("react.fundamental") : 60117, F = t ? Symbol.for("react.responder") : 60118, j = t ? Symbol.for("react.scope") : 60119;
|
|
20
40
|
function A(p) {
|
|
21
41
|
if (typeof p == "object" && p !== null) {
|
|
22
|
-
var
|
|
23
|
-
switch (
|
|
42
|
+
var w = p.$$typeof;
|
|
43
|
+
switch (w) {
|
|
24
44
|
case e:
|
|
25
45
|
switch (p = p.type, p) {
|
|
26
46
|
case u:
|
|
@@ -39,46 +59,46 @@ function Sn() {
|
|
|
39
59
|
case i:
|
|
40
60
|
return p;
|
|
41
61
|
default:
|
|
42
|
-
return
|
|
62
|
+
return w;
|
|
43
63
|
}
|
|
44
64
|
}
|
|
45
65
|
case s:
|
|
46
|
-
return
|
|
66
|
+
return w;
|
|
47
67
|
}
|
|
48
68
|
}
|
|
49
69
|
}
|
|
50
70
|
function C(p) {
|
|
51
71
|
return A(p) === d;
|
|
52
72
|
}
|
|
53
|
-
return
|
|
73
|
+
return H.AsyncMode = u, H.ConcurrentMode = d, H.ContextConsumer = l, H.ContextProvider = i, H.Element = e, H.ForwardRef = h, H.Fragment = n, H.Lazy = b, H.Memo = y, H.Portal = s, H.Profiler = a, H.StrictMode = r, H.Suspense = f, H.isAsyncMode = function(p) {
|
|
54
74
|
return C(p) || A(p) === u;
|
|
55
|
-
},
|
|
75
|
+
}, H.isConcurrentMode = C, H.isContextConsumer = function(p) {
|
|
56
76
|
return A(p) === l;
|
|
57
|
-
},
|
|
77
|
+
}, H.isContextProvider = function(p) {
|
|
58
78
|
return A(p) === i;
|
|
59
|
-
},
|
|
79
|
+
}, H.isElement = function(p) {
|
|
60
80
|
return typeof p == "object" && p !== null && p.$$typeof === e;
|
|
61
|
-
},
|
|
81
|
+
}, H.isForwardRef = function(p) {
|
|
62
82
|
return A(p) === h;
|
|
63
|
-
},
|
|
83
|
+
}, H.isFragment = function(p) {
|
|
64
84
|
return A(p) === n;
|
|
65
|
-
},
|
|
85
|
+
}, H.isLazy = function(p) {
|
|
66
86
|
return A(p) === b;
|
|
67
|
-
},
|
|
87
|
+
}, H.isMemo = function(p) {
|
|
68
88
|
return A(p) === y;
|
|
69
|
-
},
|
|
89
|
+
}, H.isPortal = function(p) {
|
|
70
90
|
return A(p) === s;
|
|
71
|
-
},
|
|
91
|
+
}, H.isProfiler = function(p) {
|
|
72
92
|
return A(p) === a;
|
|
73
|
-
},
|
|
93
|
+
}, H.isStrictMode = function(p) {
|
|
74
94
|
return A(p) === r;
|
|
75
|
-
},
|
|
95
|
+
}, H.isSuspense = function(p) {
|
|
76
96
|
return A(p) === f;
|
|
77
|
-
},
|
|
97
|
+
}, H.isValidElementType = function(p) {
|
|
78
98
|
return typeof p == "string" || typeof p == "function" || p === n || p === d || p === a || p === r || p === f || p === _ || typeof p == "object" && p !== null && (p.$$typeof === b || p.$$typeof === y || p.$$typeof === i || p.$$typeof === l || p.$$typeof === h || p.$$typeof === m || p.$$typeof === F || p.$$typeof === j || p.$$typeof === v);
|
|
79
|
-
},
|
|
99
|
+
}, H.typeOf = A, H;
|
|
80
100
|
}
|
|
81
|
-
var
|
|
101
|
+
var W = {};
|
|
82
102
|
/** @license React v16.13.1
|
|
83
103
|
* react-is.development.js
|
|
84
104
|
*
|
|
@@ -88,7 +108,7 @@ var H = {};
|
|
|
88
108
|
* LICENSE file in the root directory of this source tree.
|
|
89
109
|
*/
|
|
90
110
|
var Pt;
|
|
91
|
-
function
|
|
111
|
+
function An() {
|
|
92
112
|
return Pt || (Pt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
93
113
|
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, s = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, r = t ? Symbol.for("react.strict_mode") : 60108, a = t ? Symbol.for("react.profiler") : 60114, i = t ? Symbol.for("react.provider") : 60109, l = t ? Symbol.for("react.context") : 60110, u = t ? Symbol.for("react.async_mode") : 60111, d = t ? Symbol.for("react.concurrent_mode") : 60111, h = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, _ = t ? Symbol.for("react.suspense_list") : 60120, y = t ? Symbol.for("react.memo") : 60115, b = t ? Symbol.for("react.lazy") : 60116, v = t ? Symbol.for("react.block") : 60121, m = t ? Symbol.for("react.fundamental") : 60117, F = t ? Symbol.for("react.responder") : 60118, j = t ? Symbol.for("react.scope") : 60119;
|
|
94
114
|
function A(k) {
|
|
@@ -127,7 +147,7 @@ function Cn() {
|
|
|
127
147
|
}
|
|
128
148
|
}
|
|
129
149
|
}
|
|
130
|
-
var p = u,
|
|
150
|
+
var p = u, w = d, N = l, z = i, O = e, te = h, ue = n, ce = b, Ae = y, me = s, Ve = a, oe = r, ve = f, Te = !1;
|
|
131
151
|
function Re(k) {
|
|
132
152
|
return Te || (Te = !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) || C(k) === u;
|
|
133
153
|
}
|
|
@@ -143,10 +163,10 @@ function Cn() {
|
|
|
143
163
|
function B(k) {
|
|
144
164
|
return typeof k == "object" && k !== null && k.$$typeof === e;
|
|
145
165
|
}
|
|
146
|
-
function
|
|
166
|
+
function R(k) {
|
|
147
167
|
return C(k) === h;
|
|
148
168
|
}
|
|
149
|
-
function
|
|
169
|
+
function x(k) {
|
|
150
170
|
return C(k) === n;
|
|
151
171
|
}
|
|
152
172
|
function $(k) {
|
|
@@ -167,12 +187,12 @@ function Cn() {
|
|
|
167
187
|
function J(k) {
|
|
168
188
|
return C(k) === f;
|
|
169
189
|
}
|
|
170
|
-
|
|
171
|
-
}()),
|
|
190
|
+
W.AsyncMode = p, W.ConcurrentMode = w, W.ContextConsumer = N, W.ContextProvider = z, W.Element = O, W.ForwardRef = te, W.Fragment = ue, W.Lazy = ce, W.Memo = Ae, W.Portal = me, W.Profiler = Ve, W.StrictMode = oe, W.Suspense = ve, W.isAsyncMode = Re, W.isConcurrentMode = g, W.isContextConsumer = E, W.isContextProvider = V, W.isElement = B, W.isForwardRef = R, W.isFragment = x, W.isLazy = $, W.isMemo = L, W.isPortal = U, W.isProfiler = T, W.isStrictMode = q, W.isSuspense = J, W.isValidElementType = A, W.typeOf = C;
|
|
191
|
+
}()), W;
|
|
172
192
|
}
|
|
173
193
|
var qt;
|
|
174
194
|
function ss() {
|
|
175
|
-
return qt || (qt = 1, process.env.NODE_ENV === "production" ? st.exports =
|
|
195
|
+
return qt || (qt = 1, process.env.NODE_ENV === "production" ? st.exports = xn() : st.exports = An()), st.exports;
|
|
176
196
|
}
|
|
177
197
|
/*
|
|
178
198
|
object-assign
|
|
@@ -180,7 +200,7 @@ object-assign
|
|
|
180
200
|
@license MIT
|
|
181
201
|
*/
|
|
182
202
|
var vt, Ut;
|
|
183
|
-
function
|
|
203
|
+
function Tn() {
|
|
184
204
|
if (Ut) return vt;
|
|
185
205
|
Ut = 1;
|
|
186
206
|
var t = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, s = Object.prototype.propertyIsEnumerable;
|
|
@@ -237,7 +257,7 @@ function ns() {
|
|
|
237
257
|
return Ht || (Ht = 1, yt = Function.call.bind(Object.prototype.hasOwnProperty)), yt;
|
|
238
258
|
}
|
|
239
259
|
var kt, Wt;
|
|
240
|
-
function
|
|
260
|
+
function Fn() {
|
|
241
261
|
if (Wt) return kt;
|
|
242
262
|
Wt = 1;
|
|
243
263
|
var t = function() {
|
|
@@ -286,10 +306,10 @@ function wn() {
|
|
|
286
306
|
}, kt = r, kt;
|
|
287
307
|
}
|
|
288
308
|
var bt, Yt;
|
|
289
|
-
function
|
|
309
|
+
function On() {
|
|
290
310
|
if (Yt) return bt;
|
|
291
311
|
Yt = 1;
|
|
292
|
-
var t = ss(), e =
|
|
312
|
+
var t = ss(), e = Tn(), s = Rt(), n = ns(), r = Fn(), a = function() {
|
|
293
313
|
};
|
|
294
314
|
process.env.NODE_ENV !== "production" && (a = function(l) {
|
|
295
315
|
var u = "Warning: " + l;
|
|
@@ -322,10 +342,10 @@ function An() {
|
|
|
322
342
|
arrayOf: A,
|
|
323
343
|
element: C(),
|
|
324
344
|
elementType: p(),
|
|
325
|
-
instanceOf:
|
|
345
|
+
instanceOf: w,
|
|
326
346
|
node: te(),
|
|
327
|
-
objectOf:
|
|
328
|
-
oneOf:
|
|
347
|
+
objectOf: z,
|
|
348
|
+
oneOf: N,
|
|
329
349
|
oneOfType: O,
|
|
330
350
|
shape: ce,
|
|
331
351
|
exact: Ae
|
|
@@ -340,7 +360,7 @@ function An() {
|
|
|
340
360
|
function m(g) {
|
|
341
361
|
if (process.env.NODE_ENV !== "production")
|
|
342
362
|
var E = {}, V = 0;
|
|
343
|
-
function B(
|
|
363
|
+
function B(x, $, L, U, T, q, J) {
|
|
344
364
|
if (U = U || _, q = q || L, J !== s) {
|
|
345
365
|
if (u) {
|
|
346
366
|
var k = new Error(
|
|
@@ -355,18 +375,18 @@ function An() {
|
|
|
355
375
|
), E[Ee] = !0, V++);
|
|
356
376
|
}
|
|
357
377
|
}
|
|
358
|
-
return $[L] == null ?
|
|
378
|
+
return $[L] == null ? x ? $[L] === null ? new v("The " + T + " `" + q + "` is marked as required " + ("in `" + U + "`, but its value is `null`.")) : new v("The " + T + " `" + q + "` is marked as required in " + ("`" + U + "`, but its value is `undefined`.")) : null : g($, L, U, T, q);
|
|
359
379
|
}
|
|
360
|
-
var
|
|
361
|
-
return
|
|
380
|
+
var R = B.bind(null, !1);
|
|
381
|
+
return R.isRequired = B.bind(null, !0), R;
|
|
362
382
|
}
|
|
363
383
|
function F(g) {
|
|
364
|
-
function E(V, B,
|
|
384
|
+
function E(V, B, R, x, $, L) {
|
|
365
385
|
var U = V[B], T = oe(U);
|
|
366
386
|
if (T !== g) {
|
|
367
387
|
var q = ve(U);
|
|
368
388
|
return new v(
|
|
369
|
-
"Invalid " +
|
|
389
|
+
"Invalid " + x + " `" + $ + "` of type " + ("`" + q + "` supplied to `" + R + "`, expected ") + ("`" + g + "`."),
|
|
370
390
|
{ expectedType: g }
|
|
371
391
|
);
|
|
372
392
|
}
|
|
@@ -378,16 +398,16 @@ function An() {
|
|
|
378
398
|
return m(i);
|
|
379
399
|
}
|
|
380
400
|
function A(g) {
|
|
381
|
-
function E(V, B,
|
|
401
|
+
function E(V, B, R, x, $) {
|
|
382
402
|
if (typeof g != "function")
|
|
383
|
-
return new v("Property `" + $ + "` of component `" +
|
|
403
|
+
return new v("Property `" + $ + "` of component `" + R + "` has invalid PropType notation inside arrayOf.");
|
|
384
404
|
var L = V[B];
|
|
385
405
|
if (!Array.isArray(L)) {
|
|
386
406
|
var U = oe(L);
|
|
387
|
-
return new v("Invalid " +
|
|
407
|
+
return new v("Invalid " + x + " `" + $ + "` of type " + ("`" + U + "` supplied to `" + R + "`, expected an array."));
|
|
388
408
|
}
|
|
389
409
|
for (var T = 0; T < L.length; T++) {
|
|
390
|
-
var q = g(L, T,
|
|
410
|
+
var q = g(L, T, R, x, $ + "[" + T + "]", s);
|
|
391
411
|
if (q instanceof Error)
|
|
392
412
|
return q;
|
|
393
413
|
}
|
|
@@ -396,43 +416,43 @@ function An() {
|
|
|
396
416
|
return m(E);
|
|
397
417
|
}
|
|
398
418
|
function C() {
|
|
399
|
-
function g(E, V, B,
|
|
419
|
+
function g(E, V, B, R, x) {
|
|
400
420
|
var $ = E[V];
|
|
401
421
|
if (!l($)) {
|
|
402
422
|
var L = oe($);
|
|
403
|
-
return new v("Invalid " +
|
|
423
|
+
return new v("Invalid " + R + " `" + x + "` of type " + ("`" + L + "` supplied to `" + B + "`, expected a single ReactElement."));
|
|
404
424
|
}
|
|
405
425
|
return null;
|
|
406
426
|
}
|
|
407
427
|
return m(g);
|
|
408
428
|
}
|
|
409
429
|
function p() {
|
|
410
|
-
function g(E, V, B,
|
|
430
|
+
function g(E, V, B, R, x) {
|
|
411
431
|
var $ = E[V];
|
|
412
432
|
if (!t.isValidElementType($)) {
|
|
413
433
|
var L = oe($);
|
|
414
|
-
return new v("Invalid " +
|
|
434
|
+
return new v("Invalid " + R + " `" + x + "` of type " + ("`" + L + "` supplied to `" + B + "`, expected a single ReactElement type."));
|
|
415
435
|
}
|
|
416
436
|
return null;
|
|
417
437
|
}
|
|
418
438
|
return m(g);
|
|
419
439
|
}
|
|
420
|
-
function
|
|
421
|
-
function E(V, B,
|
|
440
|
+
function w(g) {
|
|
441
|
+
function E(V, B, R, x, $) {
|
|
422
442
|
if (!(V[B] instanceof g)) {
|
|
423
443
|
var L = g.name || _, U = Re(V[B]);
|
|
424
|
-
return new v("Invalid " +
|
|
444
|
+
return new v("Invalid " + x + " `" + $ + "` of type " + ("`" + U + "` supplied to `" + R + "`, expected ") + ("instance of `" + L + "`."));
|
|
425
445
|
}
|
|
426
446
|
return null;
|
|
427
447
|
}
|
|
428
448
|
return m(E);
|
|
429
449
|
}
|
|
430
|
-
function
|
|
450
|
+
function N(g) {
|
|
431
451
|
if (!Array.isArray(g))
|
|
432
452
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
433
453
|
"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])."
|
|
434
454
|
) : a("Invalid argument supplied to oneOf, expected an array.")), i;
|
|
435
|
-
function E(V, B,
|
|
455
|
+
function E(V, B, R, x, $) {
|
|
436
456
|
for (var L = V[B], U = 0; U < g.length; U++)
|
|
437
457
|
if (b(L, g[U]))
|
|
438
458
|
return null;
|
|
@@ -440,20 +460,20 @@ function An() {
|
|
|
440
460
|
var Ee = ve(k);
|
|
441
461
|
return Ee === "symbol" ? String(k) : k;
|
|
442
462
|
});
|
|
443
|
-
return new v("Invalid " +
|
|
463
|
+
return new v("Invalid " + x + " `" + $ + "` of value `" + String(L) + "` " + ("supplied to `" + R + "`, expected one of " + T + "."));
|
|
444
464
|
}
|
|
445
465
|
return m(E);
|
|
446
466
|
}
|
|
447
|
-
function
|
|
448
|
-
function E(V, B,
|
|
467
|
+
function z(g) {
|
|
468
|
+
function E(V, B, R, x, $) {
|
|
449
469
|
if (typeof g != "function")
|
|
450
|
-
return new v("Property `" + $ + "` of component `" +
|
|
470
|
+
return new v("Property `" + $ + "` of component `" + R + "` has invalid PropType notation inside objectOf.");
|
|
451
471
|
var L = V[B], U = oe(L);
|
|
452
472
|
if (U !== "object")
|
|
453
|
-
return new v("Invalid " +
|
|
473
|
+
return new v("Invalid " + x + " `" + $ + "` of type " + ("`" + U + "` supplied to `" + R + "`, expected an object."));
|
|
454
474
|
for (var T in L)
|
|
455
475
|
if (n(L, T)) {
|
|
456
|
-
var q = g(L, T,
|
|
476
|
+
var q = g(L, T, R, x, $ + "." + T, s);
|
|
457
477
|
if (q instanceof Error)
|
|
458
478
|
return q;
|
|
459
479
|
}
|
|
@@ -471,9 +491,9 @@ function An() {
|
|
|
471
491
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Te(V) + " at index " + E + "."
|
|
472
492
|
), i;
|
|
473
493
|
}
|
|
474
|
-
function B(
|
|
494
|
+
function B(R, x, $, L, U) {
|
|
475
495
|
for (var T = [], q = 0; q < g.length; q++) {
|
|
476
|
-
var J = g[q], k = J(
|
|
496
|
+
var J = g[q], k = J(R, x, $, L, U, s);
|
|
477
497
|
if (k == null)
|
|
478
498
|
return null;
|
|
479
499
|
k.data && n(k.data, "expectedType") && T.push(k.data.expectedType);
|
|
@@ -484,26 +504,26 @@ function An() {
|
|
|
484
504
|
return m(B);
|
|
485
505
|
}
|
|
486
506
|
function te() {
|
|
487
|
-
function g(E, V, B,
|
|
488
|
-
return me(E[V]) ? null : new v("Invalid " +
|
|
507
|
+
function g(E, V, B, R, x) {
|
|
508
|
+
return me(E[V]) ? null : new v("Invalid " + R + " `" + x + "` supplied to " + ("`" + B + "`, expected a ReactNode."));
|
|
489
509
|
}
|
|
490
510
|
return m(g);
|
|
491
511
|
}
|
|
492
|
-
function ue(g, E, V, B,
|
|
512
|
+
function ue(g, E, V, B, R) {
|
|
493
513
|
return new v(
|
|
494
|
-
(g || "React class") + ": " + E + " type `" + V + "." + B + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" +
|
|
514
|
+
(g || "React class") + ": " + E + " type `" + V + "." + B + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + R + "`."
|
|
495
515
|
);
|
|
496
516
|
}
|
|
497
517
|
function ce(g) {
|
|
498
|
-
function E(V, B,
|
|
518
|
+
function E(V, B, R, x, $) {
|
|
499
519
|
var L = V[B], U = oe(L);
|
|
500
520
|
if (U !== "object")
|
|
501
|
-
return new v("Invalid " +
|
|
521
|
+
return new v("Invalid " + x + " `" + $ + "` of type `" + U + "` " + ("supplied to `" + R + "`, expected `object`."));
|
|
502
522
|
for (var T in g) {
|
|
503
523
|
var q = g[T];
|
|
504
524
|
if (typeof q != "function")
|
|
505
|
-
return ue(
|
|
506
|
-
var J = q(L, T,
|
|
525
|
+
return ue(R, x, $, T, ve(q));
|
|
526
|
+
var J = q(L, T, R, x, $ + "." + T, s);
|
|
507
527
|
if (J)
|
|
508
528
|
return J;
|
|
509
529
|
}
|
|
@@ -512,21 +532,21 @@ function An() {
|
|
|
512
532
|
return m(E);
|
|
513
533
|
}
|
|
514
534
|
function Ae(g) {
|
|
515
|
-
function E(V, B,
|
|
535
|
+
function E(V, B, R, x, $) {
|
|
516
536
|
var L = V[B], U = oe(L);
|
|
517
537
|
if (U !== "object")
|
|
518
|
-
return new v("Invalid " +
|
|
538
|
+
return new v("Invalid " + x + " `" + $ + "` of type `" + U + "` " + ("supplied to `" + R + "`, expected `object`."));
|
|
519
539
|
var T = e({}, V[B], g);
|
|
520
540
|
for (var q in T) {
|
|
521
541
|
var J = g[q];
|
|
522
542
|
if (n(g, q) && typeof J != "function")
|
|
523
|
-
return ue(
|
|
543
|
+
return ue(R, x, $, q, ve(J));
|
|
524
544
|
if (!J)
|
|
525
545
|
return new v(
|
|
526
|
-
"Invalid " +
|
|
546
|
+
"Invalid " + x + " `" + $ + "` key `" + q + "` supplied to `" + R + "`.\nBad object: " + JSON.stringify(V[B], null, " ") + `
|
|
527
547
|
Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
|
|
528
548
|
);
|
|
529
|
-
var k = J(L, q,
|
|
549
|
+
var k = J(L, q, R, x, $ + "." + q, s);
|
|
530
550
|
if (k)
|
|
531
551
|
return k;
|
|
532
552
|
}
|
|
@@ -556,8 +576,8 @@ Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
|
|
|
556
576
|
return !1;
|
|
557
577
|
} else
|
|
558
578
|
for (; !(B = V.next()).done; ) {
|
|
559
|
-
var
|
|
560
|
-
if (
|
|
579
|
+
var R = B.value;
|
|
580
|
+
if (R && !me(R[1]))
|
|
561
581
|
return !1;
|
|
562
582
|
}
|
|
563
583
|
} else
|
|
@@ -607,7 +627,7 @@ Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
|
|
|
607
627
|
}, bt;
|
|
608
628
|
}
|
|
609
629
|
var Et, Xt;
|
|
610
|
-
function
|
|
630
|
+
function Dn() {
|
|
611
631
|
if (Xt) return Et;
|
|
612
632
|
Xt = 1;
|
|
613
633
|
var t = Rt();
|
|
@@ -655,14 +675,14 @@ function Tn() {
|
|
|
655
675
|
}, Et;
|
|
656
676
|
}
|
|
657
677
|
if (process.env.NODE_ENV !== "production") {
|
|
658
|
-
var
|
|
659
|
-
Tt.exports =
|
|
678
|
+
var In = ss(), Rn = !0;
|
|
679
|
+
Tt.exports = On()(In.isElement, Rn);
|
|
660
680
|
} else
|
|
661
|
-
Tt.exports =
|
|
662
|
-
var
|
|
663
|
-
const o = /* @__PURE__ */
|
|
664
|
-
var rs = /* @__PURE__ */ ((t) => (t.Primary = "primary", t.Secondary = "secondary", t.Info = "info", t.Success = "success", t.Danger = "danger", t.Warning = "warning", t.Neutral = "neutral", t))(rs || {}), as = /* @__PURE__ */ ((t) => (t.Solid = "solid", t.Outline = "outline", t.Text = "text", t))(as || {}), is = /* @__PURE__ */ ((t) => (t.Large = "lg", t.Medium = "md", t.Small = "sm", t))(is || {}), os = /* @__PURE__ */ ((t) => (t.Right = "right", t.Left = "left", t))(os || {}),
|
|
665
|
-
const
|
|
681
|
+
Tt.exports = Dn()();
|
|
682
|
+
var Nn = Tt.exports;
|
|
683
|
+
const o = /* @__PURE__ */ wn(Nn);
|
|
684
|
+
var rs = /* @__PURE__ */ ((t) => (t.Primary = "primary", t.Secondary = "secondary", t.Info = "info", t.Success = "success", t.Danger = "danger", t.Warning = "warning", t.Neutral = "neutral", t))(rs || {}), as = /* @__PURE__ */ ((t) => (t.Solid = "solid", t.Outline = "outline", t.Text = "text", t))(as || {}), is = /* @__PURE__ */ ((t) => (t.Large = "lg", t.Medium = "md", t.Small = "sm", t))(is || {}), os = /* @__PURE__ */ ((t) => (t.Right = "right", t.Left = "left", t))(os || {}), Bn = /* @__PURE__ */ ((t) => (t[t.Elevation1 = 1] = "Elevation1", t[t.Elevation2 = 2] = "Elevation2", t[t.Elevation3 = 3] = "Elevation3", t[t.Elevation4 = 4] = "Elevation4", t))(Bn || {});
|
|
685
|
+
const X = {
|
|
666
686
|
name: "Button",
|
|
667
687
|
class: "ds-button",
|
|
668
688
|
props: {
|
|
@@ -719,10 +739,6 @@ const Y = {
|
|
|
719
739
|
fullSize: {
|
|
720
740
|
type: Boolean,
|
|
721
741
|
default: !1
|
|
722
|
-
},
|
|
723
|
-
trackLabel: {
|
|
724
|
-
type: String,
|
|
725
|
-
default: ""
|
|
726
742
|
}
|
|
727
743
|
}
|
|
728
744
|
};
|
|
@@ -779,7 +795,7 @@ const pe = {
|
|
|
779
795
|
}
|
|
780
796
|
};
|
|
781
797
|
var lt = /* @__PURE__ */ ((t) => (t["primary-darker"] = "primary--darker", t["primary-dark"] = "primary--dark", t["primary-light"] = "primary--light", t["primary-lighter"] = "primary--lighter", t["primary-lightest"] = "primary--lightest", t["secondary-darker"] = "secondary--darker", t["secondary-dark"] = "secondary--dark", t["secondary-light"] = "secondary--light", t["secondary-lighter"] = "secondary--lighter", t["secondary-lightest"] = "secondary--lightest", t["success-dark"] = "success--dark", t["success-light"] = "success--light", t["success-lighter"] = "success--lighter", t["warning-dark"] = "warning--dark", t["warning-light"] = "warning--light", t["warning-lighter"] = "warning--lighter", t["danger-dark"] = "danger--dark", t["danger-light"] = "danger--light", t["danger-lighter"] = "danger--lighter", t["info-dark"] = "info--dark", t["info-light"] = "info--light", t["info-lighter"] = "info--lighter", t))(lt || {});
|
|
782
|
-
const
|
|
798
|
+
const $n = {
|
|
783
799
|
bold: 700,
|
|
784
800
|
semibold: 600,
|
|
785
801
|
medium: 500,
|
|
@@ -797,7 +813,7 @@ const Rn = {
|
|
|
797
813
|
onClick: l = pe.props.onClick.default
|
|
798
814
|
}) => {
|
|
799
815
|
const u = "material-symbols-rounded", d = e && pe.props.color.options.find((f) => f === e) && `color__${lt[e] ?? e}`, h = be(() => ({
|
|
800
|
-
fontVariationSettings: `'FILL' ${r ? 1 : 0}, 'GRAD' 0,'wght' ${
|
|
816
|
+
fontVariationSettings: `'FILL' ${r ? 1 : 0}, 'GRAD' 0,'wght' ${$n[a]}, 'opsz' 48`
|
|
801
817
|
}), [a, r]);
|
|
802
818
|
return /* @__PURE__ */ c(
|
|
803
819
|
"i",
|
|
@@ -831,25 +847,27 @@ const ut = ({
|
|
|
831
847
|
children: t,
|
|
832
848
|
className: e,
|
|
833
849
|
onClick: s,
|
|
834
|
-
size: n =
|
|
835
|
-
disabled: r =
|
|
836
|
-
icon: a =
|
|
837
|
-
id: i =
|
|
838
|
-
testId: l =
|
|
850
|
+
size: n = X.props.size.default,
|
|
851
|
+
disabled: r = X.props.disabled.default,
|
|
852
|
+
icon: a = X.props.icon.default,
|
|
853
|
+
id: i = X.props.id.default,
|
|
854
|
+
testId: l = X.props.testId.default,
|
|
839
855
|
elevation: u,
|
|
840
|
-
variant: d =
|
|
841
|
-
color: h =
|
|
842
|
-
iconFill: f =
|
|
843
|
-
iconPosition: _ =
|
|
844
|
-
fullSize: y =
|
|
845
|
-
|
|
856
|
+
variant: d = X.props.variant.default,
|
|
857
|
+
color: h = X.props.color.default,
|
|
858
|
+
iconFill: f = X.props.iconFill.default,
|
|
859
|
+
iconPosition: _ = X.props.iconPosition.default,
|
|
860
|
+
fullSize: y = X.props.fullSize.default,
|
|
861
|
+
trackingData: b
|
|
846
862
|
}) => {
|
|
847
|
-
const v = n &&
|
|
863
|
+
const v = n && X.props.size.options.find((z) => z === n) ? `${X.class}--${n}` : `${X.class}__${X.props.size.default}`, m = r && `${X.class}--disabled`, F = `${X.class}__${h}--${d}`, j = u && `${X.class}--elevation-${u}`, A = a && `${X.class}--with-icon`, C = y ? `${X.class}--full-size` : "", p = _ === "right" ? `${X.class}__icon` : `${X.class}__icon--left`, w = _ === "right" ? `${X.class}__text` : `${X.class}__text--reversed`, N = (z) => {
|
|
864
|
+
b && Cn(b), s && s(z);
|
|
865
|
+
};
|
|
848
866
|
return /* @__PURE__ */ c(
|
|
849
867
|
"button",
|
|
850
868
|
{
|
|
851
869
|
className: [
|
|
852
|
-
|
|
870
|
+
X.class,
|
|
853
871
|
C,
|
|
854
872
|
m,
|
|
855
873
|
v,
|
|
@@ -857,13 +875,12 @@ const ut = ({
|
|
|
857
875
|
j,
|
|
858
876
|
A,
|
|
859
877
|
e
|
|
860
|
-
].filter((
|
|
878
|
+
].filter((z) => z).join(" "),
|
|
861
879
|
"data-testid": l,
|
|
862
|
-
...b && { "data-tracklabel": b },
|
|
863
880
|
disabled: r,
|
|
864
881
|
id: i,
|
|
865
|
-
onClick: r ? void 0 :
|
|
866
|
-
children: /* @__PURE__ */ I("span", { className: ["ds-button__text",
|
|
882
|
+
onClick: r ? void 0 : N,
|
|
883
|
+
children: /* @__PURE__ */ I("span", { className: ["ds-button__text", w].join(" "), children: [
|
|
867
884
|
t,
|
|
868
885
|
a && /* @__PURE__ */ c(
|
|
869
886
|
G,
|
|
@@ -879,20 +896,20 @@ const ut = ({
|
|
|
879
896
|
);
|
|
880
897
|
};
|
|
881
898
|
ut.propTypes = {
|
|
882
|
-
color: o.oneOf(
|
|
883
|
-
variant: o.oneOf(
|
|
884
|
-
size: o.oneOf(
|
|
899
|
+
color: o.oneOf(X.props.color.options),
|
|
900
|
+
variant: o.oneOf(X.props.variant.options),
|
|
901
|
+
size: o.oneOf(X.props.size.options),
|
|
885
902
|
disabled: o.bool,
|
|
886
903
|
icon: o.string,
|
|
887
904
|
iconFill: o.bool,
|
|
888
|
-
iconPosition: o.oneOf(
|
|
905
|
+
iconPosition: o.oneOf(X.props.iconPosition.options),
|
|
889
906
|
testId: o.string,
|
|
890
907
|
id: o.string,
|
|
891
908
|
fullSize: o.bool,
|
|
892
|
-
|
|
909
|
+
trackingData: o.object
|
|
893
910
|
};
|
|
894
911
|
ut.displayName = "DsButton";
|
|
895
|
-
const
|
|
912
|
+
const Mn = {
|
|
896
913
|
name: "Caption",
|
|
897
914
|
class: "ds-caption"
|
|
898
915
|
}, ps = ({
|
|
@@ -902,7 +919,7 @@ const Nn = {
|
|
|
902
919
|
}) => /* @__PURE__ */ c(
|
|
903
920
|
"p",
|
|
904
921
|
{
|
|
905
|
-
className: [
|
|
922
|
+
className: [Mn.class, e].filter((n) => n).join(" "),
|
|
906
923
|
"data-testid": s,
|
|
907
924
|
children: t
|
|
908
925
|
}
|
|
@@ -913,7 +930,7 @@ ps.propTypes = {
|
|
|
913
930
|
testId: o.string
|
|
914
931
|
};
|
|
915
932
|
ps.displayName = "DsCaption";
|
|
916
|
-
var Ft = /* @__PURE__ */ ((t) => (t.None = "", t.PrimaryDarker = "primary-darker", t.PrimaryDark = "primary-dark", t.Primary = "primary", t.PrimaryLight = "primary-light", t.PrimaryLighter = "primary-lighter", t.PrimaryLightest = "primary-lightest", t.SecondaryDarker = "secondary-darker", t.SecondaryDark = "secondary-dark", t.Secondary = "secondary", t.SecondaryLight = "secondary-light", t.SecondaryLighter = "secondary-lighter", t.SecondaryLightest = "secondary-lightest", t.Neutral90 = "neutral-90", t.Neutral80 = "neutral-80", t.Neutral60 = "neutral-60", t.Neutral40 = "neutral-40", t.Neutral20 = "neutral-20", t.Neutral10 = "neutral-10", t.Neutral05 = "neutral-05", t.Neutral00 = "neutral-00", t.SuccessDark = "success-dark", t.Success = "success", t.SuccessLight = "success-light", t.SuccessLighter = "success-lighter", t.WarningDark = "warning-dark", t.Warning = "warning", t.WarningLight = "warning-light", t.WarningLighter = "warning-lighter", t.DangerDark = "danger-dark", t.Danger = "danger", t.DangerLight = "danger-light", t.DangerLighter = "danger-lighter", t.InfoDark = "info-dark", t.Info = "info", t.InfoLight = "info-light", t.InfoLighter = "info-lighter", t))(Ft || {}),
|
|
933
|
+
var Ft = /* @__PURE__ */ ((t) => (t.None = "", t.PrimaryDarker = "primary-darker", t.PrimaryDark = "primary-dark", t.Primary = "primary", t.PrimaryLight = "primary-light", t.PrimaryLighter = "primary-lighter", t.PrimaryLightest = "primary-lightest", t.SecondaryDarker = "secondary-darker", t.SecondaryDark = "secondary-dark", t.Secondary = "secondary", t.SecondaryLight = "secondary-light", t.SecondaryLighter = "secondary-lighter", t.SecondaryLightest = "secondary-lightest", t.Neutral90 = "neutral-90", t.Neutral80 = "neutral-80", t.Neutral60 = "neutral-60", t.Neutral40 = "neutral-40", t.Neutral20 = "neutral-20", t.Neutral10 = "neutral-10", t.Neutral05 = "neutral-05", t.Neutral00 = "neutral-00", t.SuccessDark = "success-dark", t.Success = "success", t.SuccessLight = "success-light", t.SuccessLighter = "success-lighter", t.WarningDark = "warning-dark", t.Warning = "warning", t.WarningLight = "warning-light", t.WarningLighter = "warning-lighter", t.DangerDark = "danger-dark", t.Danger = "danger", t.DangerLight = "danger-light", t.DangerLighter = "danger-lighter", t.InfoDark = "info-dark", t.Info = "info", t.InfoLight = "info-light", t.InfoLighter = "info-lighter", t))(Ft || {}), Vn = /* @__PURE__ */ ((t) => (t[t.Elevation = 0] = "Elevation", t[t.Elevation1 = 1] = "Elevation1", t[t.Elevation2 = 2] = "Elevation2", t[t.Elevation3 = 3] = "Elevation3", t[t.Elevation4 = 4] = "Elevation4", t))(Vn || {});
|
|
917
934
|
const Ne = {
|
|
918
935
|
name: "Card",
|
|
919
936
|
class: "ds-card",
|
|
@@ -947,10 +964,6 @@ const Ne = {
|
|
|
947
964
|
testId: {
|
|
948
965
|
type: String,
|
|
949
966
|
default: "ds-card"
|
|
950
|
-
},
|
|
951
|
-
trackLabel: {
|
|
952
|
-
type: String,
|
|
953
|
-
default: ""
|
|
954
967
|
}
|
|
955
968
|
}
|
|
956
969
|
}, hs = ({
|
|
@@ -960,22 +973,20 @@ const Ne = {
|
|
|
960
973
|
className: n,
|
|
961
974
|
elevation: r = Ne.props.elevation.default,
|
|
962
975
|
backgroundColor: a = Ne.props.backgroundColor.default,
|
|
963
|
-
borderColor: i = Ne.props.borderColor.default
|
|
964
|
-
trackLabel: l
|
|
976
|
+
borderColor: i = Ne.props.borderColor.default
|
|
965
977
|
}) => {
|
|
966
|
-
const
|
|
978
|
+
const l = r && `elevation-${r}`, u = i && `border-color__${lt[i] ?? i}`, d = a && `bg-color__${lt[a] ?? a}`;
|
|
967
979
|
return /* @__PURE__ */ c(
|
|
968
980
|
"div",
|
|
969
981
|
{
|
|
970
982
|
className: [
|
|
971
983
|
Ne.class,
|
|
972
984
|
n,
|
|
985
|
+
l,
|
|
973
986
|
u,
|
|
974
|
-
d
|
|
975
|
-
|
|
976
|
-
].filter((f) => f).join(" "),
|
|
987
|
+
d
|
|
988
|
+
].filter((h) => h).join(" "),
|
|
977
989
|
"data-testid": e,
|
|
978
|
-
...l && { "data-tracklabel": l },
|
|
979
990
|
id: t,
|
|
980
991
|
children: s
|
|
981
992
|
}
|
|
@@ -986,8 +997,7 @@ hs.propTypes = {
|
|
|
986
997
|
testId: o.string,
|
|
987
998
|
backgroundColor: o.oneOf(Ne.props.backgroundColor.options),
|
|
988
999
|
borderColor: o.oneOf(Ne.props.borderColor.options),
|
|
989
|
-
elevation: o.oneOf(Ne.props.elevation.options)
|
|
990
|
-
trackLabel: o.string
|
|
1000
|
+
elevation: o.oneOf(Ne.props.elevation.options)
|
|
991
1001
|
};
|
|
992
1002
|
hs.displayName = "DsCard";
|
|
993
1003
|
const ie = {
|
|
@@ -1211,7 +1221,7 @@ const S = {
|
|
|
1211
1221
|
RIGHT: "RIGHT",
|
|
1212
1222
|
FORCE_RIGHT: "FORCE_RIGHT"
|
|
1213
1223
|
};
|
|
1214
|
-
function
|
|
1224
|
+
function Ln(t) {
|
|
1215
1225
|
switch (t) {
|
|
1216
1226
|
case S.LEFT:
|
|
1217
1227
|
return S.FORCE_LEFT;
|
|
@@ -1249,7 +1259,7 @@ function ct(t, e) {
|
|
|
1249
1259
|
return e.toString() === t.toString();
|
|
1250
1260
|
return !1;
|
|
1251
1261
|
}
|
|
1252
|
-
class
|
|
1262
|
+
class jn {
|
|
1253
1263
|
/** Current input value */
|
|
1254
1264
|
/** Current cursor position */
|
|
1255
1265
|
/** Old input value */
|
|
@@ -1377,7 +1387,7 @@ class Bt {
|
|
|
1377
1387
|
/** */
|
|
1378
1388
|
}
|
|
1379
1389
|
D.MaskElement = Bt;
|
|
1380
|
-
const Zt = 90,
|
|
1390
|
+
const Zt = 90, Pn = 89;
|
|
1381
1391
|
class ht extends Bt {
|
|
1382
1392
|
/** HTMLElement to use mask on */
|
|
1383
1393
|
constructor(e) {
|
|
@@ -1396,7 +1406,7 @@ class ht extends Bt {
|
|
|
1396
1406
|
this.input.addEventListener("keydown", this._onKeydown), this.input.addEventListener("input", this._onInput), this.input.addEventListener("beforeinput", this._onBeforeinput), this.input.addEventListener("compositionend", this._onCompositionEnd), this.input.addEventListener("drop", e.drop), this.input.addEventListener("click", e.click), this.input.addEventListener("focus", e.focus), this.input.addEventListener("blur", e.commit), this._handlers = e;
|
|
1397
1407
|
}
|
|
1398
1408
|
_onKeydown(e) {
|
|
1399
|
-
if (this._handlers.redo && (e.keyCode === Zt && e.shiftKey && (e.metaKey || e.ctrlKey) || e.keyCode ===
|
|
1409
|
+
if (this._handlers.redo && (e.keyCode === Zt && e.shiftKey && (e.metaKey || e.ctrlKey) || e.keyCode === Pn && e.ctrlKey))
|
|
1400
1410
|
return e.preventDefault(), this._handlers.redo(e);
|
|
1401
1411
|
if (this._handlers.undo && e.keyCode === Zt && (e.metaKey || e.ctrlKey))
|
|
1402
1412
|
return e.preventDefault(), this._handlers.undo(e);
|
|
@@ -1420,7 +1430,7 @@ class ht extends Bt {
|
|
|
1420
1430
|
}
|
|
1421
1431
|
}
|
|
1422
1432
|
D.HTMLMaskElement = ht;
|
|
1423
|
-
class
|
|
1433
|
+
class qn extends ht {
|
|
1424
1434
|
/** InputElement to use mask on */
|
|
1425
1435
|
constructor(e) {
|
|
1426
1436
|
super(e), this.input = e;
|
|
@@ -1500,13 +1510,13 @@ class ft {
|
|
|
1500
1510
|
}
|
|
1501
1511
|
}
|
|
1502
1512
|
ft.MAX_LENGTH = 100;
|
|
1503
|
-
class
|
|
1513
|
+
class Un {
|
|
1504
1514
|
/**
|
|
1505
1515
|
View element
|
|
1506
1516
|
*/
|
|
1507
1517
|
/** Internal {@link Masked} model */
|
|
1508
1518
|
constructor(e, s) {
|
|
1509
|
-
this.el = e instanceof Bt ? e : e.isContentEditable && e.tagName !== "INPUT" && e.tagName !== "TEXTAREA" ? new bs(e) : new
|
|
1519
|
+
this.el = e instanceof Bt ? e : e.isContentEditable && e.tagName !== "INPUT" && e.tagName !== "TEXTAREA" ? new bs(e) : new qn(e), this.masked = De(s), this._listeners = {}, this._value = "", this._unmaskedValue = "", this._rawInputValue = "", this.history = new ft(), this._saveSelection = this._saveSelection.bind(this), this._onInput = this._onInput.bind(this), this._onChange = this._onChange.bind(this), this._onDrop = this._onDrop.bind(this), this._onFocus = this._onFocus.bind(this), this._onClick = this._onClick.bind(this), this._onUndo = this._onUndo.bind(this), this._onRedo = this._onRedo.bind(this), this.alignCursor = this.alignCursor.bind(this), this.alignCursorFriendly = this.alignCursorFriendly.bind(this), this._bindEvents(), this.updateValue(), this._onChange();
|
|
1510
1520
|
}
|
|
1511
1521
|
maskEquals(e) {
|
|
1512
1522
|
var s;
|
|
@@ -1665,7 +1675,7 @@ class jn {
|
|
|
1665
1675
|
/** Handles view input event */
|
|
1666
1676
|
_onInput(e) {
|
|
1667
1677
|
this._inputEvent = e, this._abortUpdateCursor();
|
|
1668
|
-
const s = new
|
|
1678
|
+
const s = new jn({
|
|
1669
1679
|
// new state
|
|
1670
1680
|
value: this.el.value,
|
|
1671
1681
|
cursorPos: this.cursorPos,
|
|
@@ -1709,7 +1719,7 @@ class jn {
|
|
|
1709
1719
|
this._unbindEvents(), this._listeners.length = 0, delete this.el;
|
|
1710
1720
|
}
|
|
1711
1721
|
}
|
|
1712
|
-
D.InputMask =
|
|
1722
|
+
D.InputMask = Un;
|
|
1713
1723
|
class M {
|
|
1714
1724
|
/** Inserted symbols */
|
|
1715
1725
|
/** Additional offset if any changes occurred before tail */
|
|
@@ -1742,7 +1752,7 @@ class M {
|
|
|
1742
1752
|
}
|
|
1743
1753
|
}
|
|
1744
1754
|
D.ChangeDetails = M;
|
|
1745
|
-
class
|
|
1755
|
+
class xe {
|
|
1746
1756
|
/** Tail value as string */
|
|
1747
1757
|
/** Tail start position */
|
|
1748
1758
|
/** Start position */
|
|
@@ -1882,11 +1892,11 @@ class re {
|
|
|
1882
1892
|
}
|
|
1883
1893
|
/** Extracts tail in range */
|
|
1884
1894
|
extractTail(e, s) {
|
|
1885
|
-
return e === void 0 && (e = 0), s === void 0 && (s = this.displayValue.length), new
|
|
1895
|
+
return e === void 0 && (e = 0), s === void 0 && (s = this.displayValue.length), new xe(this.extractInput(e, s), e);
|
|
1886
1896
|
}
|
|
1887
1897
|
/** Appends tail */
|
|
1888
1898
|
appendTail(e) {
|
|
1889
|
-
return $e(e) && (e = new
|
|
1899
|
+
return $e(e) && (e = new xe(String(e))), e.appendTo(this);
|
|
1890
1900
|
}
|
|
1891
1901
|
/** Appends char */
|
|
1892
1902
|
_appendCharRaw(e, s) {
|
|
@@ -1940,7 +1950,7 @@ class re {
|
|
|
1940
1950
|
/** Appends symbols considering flags */
|
|
1941
1951
|
append(e, s, n) {
|
|
1942
1952
|
if (!$e(e)) throw new Error("value should be string");
|
|
1943
|
-
const r = $e(n) ? new
|
|
1953
|
+
const r = $e(n) ? new xe(String(n)) : n;
|
|
1944
1954
|
s != null && s.tail && (s._beforeTailState = this.state);
|
|
1945
1955
|
let a;
|
|
1946
1956
|
[e, a] = this.doPrepare(e, s);
|
|
@@ -1992,7 +2002,7 @@ class re {
|
|
|
1992
2002
|
});
|
|
1993
2003
|
const i = e + s, l = this.extractTail(i), u = this.eager === !0 || this.eager === "remove";
|
|
1994
2004
|
let d;
|
|
1995
|
-
u && (r =
|
|
2005
|
+
u && (r = Ln(r), d = this.extractInput(0, i, {
|
|
1996
2006
|
raw: !0
|
|
1997
2007
|
}));
|
|
1998
2008
|
let h = e;
|
|
@@ -2036,11 +2046,11 @@ class qe {
|
|
|
2036
2046
|
}
|
|
2037
2047
|
extend(e) {
|
|
2038
2048
|
if (!String(e)) return;
|
|
2039
|
-
e = $e(e) ? new
|
|
2049
|
+
e = $e(e) ? new xe(String(e)) : e;
|
|
2040
2050
|
const s = this.chunks[this.chunks.length - 1], n = s && // if stops are same or tail has no stop
|
|
2041
2051
|
(s.stop === e.stop || e.stop == null) && // if tail chunk goes just after last chunk
|
|
2042
2052
|
e.from === s.from + s.toString().length;
|
|
2043
|
-
if (e instanceof
|
|
2053
|
+
if (e instanceof xe)
|
|
2044
2054
|
n ? s.extend(e.toString()) : this.chunks.push(e);
|
|
2045
2055
|
else if (e instanceof qe) {
|
|
2046
2056
|
if (e.stop == null) {
|
|
@@ -2053,7 +2063,7 @@ class qe {
|
|
|
2053
2063
|
}
|
|
2054
2064
|
appendTo(e) {
|
|
2055
2065
|
if (!(e instanceof D.MaskedPattern))
|
|
2056
|
-
return new
|
|
2066
|
+
return new xe(this.toString()).appendTo(e);
|
|
2057
2067
|
const s = new M();
|
|
2058
2068
|
for (let n = 0; n < this.chunks.length; ++n) {
|
|
2059
2069
|
const r = this.chunks[n], a = e._mapPosToBlock(e.displayValue.length), i = r.stop;
|
|
@@ -2088,7 +2098,7 @@ class qe {
|
|
|
2088
2098
|
...n
|
|
2089
2099
|
} = e;
|
|
2090
2100
|
Object.assign(this, n), this.chunks = s.map((r) => {
|
|
2091
|
-
const a = "chunks" in r ? new qe() : new
|
|
2101
|
+
const a = "chunks" in r ? new qe() : new xe();
|
|
2092
2102
|
return a.state = r, a;
|
|
2093
2103
|
});
|
|
2094
2104
|
}
|
|
@@ -2122,7 +2132,7 @@ class qe {
|
|
|
2122
2132
|
return "";
|
|
2123
2133
|
}
|
|
2124
2134
|
}
|
|
2125
|
-
class
|
|
2135
|
+
class zn {
|
|
2126
2136
|
constructor(e, s) {
|
|
2127
2137
|
this.masked = e, this._log = [];
|
|
2128
2138
|
const {
|
|
@@ -2290,10 +2300,10 @@ class Es {
|
|
|
2290
2300
|
return this.isFilled || (this._value = e.inserted = this.char), e;
|
|
2291
2301
|
}
|
|
2292
2302
|
extractTail() {
|
|
2293
|
-
return new
|
|
2303
|
+
return new xe("");
|
|
2294
2304
|
}
|
|
2295
2305
|
appendTail(e) {
|
|
2296
|
-
return $e(e) && (e = new
|
|
2306
|
+
return $e(e) && (e = new xe(String(e))), e.appendTo(this);
|
|
2297
2307
|
}
|
|
2298
2308
|
append(e, s, n) {
|
|
2299
2309
|
const r = this._appendChar(e[0], s);
|
|
@@ -2441,7 +2451,7 @@ dt.DEFAULT_DEFINITIONS = {
|
|
|
2441
2451
|
// http://stackoverflow.com/a/22075070
|
|
2442
2452
|
"*": /./
|
|
2443
2453
|
};
|
|
2444
|
-
class
|
|
2454
|
+
class Hn extends re {
|
|
2445
2455
|
/** */
|
|
2446
2456
|
/** Enable characters overwriting */
|
|
2447
2457
|
/** */
|
|
@@ -2455,7 +2465,7 @@ class qn extends re {
|
|
|
2455
2465
|
s && (e.validate = (n) => n.search(s) >= 0), super._update(e);
|
|
2456
2466
|
}
|
|
2457
2467
|
}
|
|
2458
|
-
D.MaskedRegExp =
|
|
2468
|
+
D.MaskedRegExp = Hn;
|
|
2459
2469
|
class ae extends re {
|
|
2460
2470
|
/** */
|
|
2461
2471
|
/** */
|
|
@@ -2718,7 +2728,7 @@ class ae extends re {
|
|
|
2718
2728
|
}
|
|
2719
2729
|
nearestInputPos(e, s) {
|
|
2720
2730
|
if (s === void 0 && (s = S.NONE), !this._blocks.length) return 0;
|
|
2721
|
-
const n = new
|
|
2731
|
+
const n = new zn(this, e);
|
|
2722
2732
|
if (s === S.NONE)
|
|
2723
2733
|
return n.pushRightBeforeInput() || (n.popState(), n.pushLeftBeforeInput()) ? n.pos : this.displayValue.length;
|
|
2724
2734
|
if (s === S.LEFT || s === S.FORCE_LEFT) {
|
|
@@ -2833,7 +2843,7 @@ class it extends ae {
|
|
|
2833
2843
|
}
|
|
2834
2844
|
}
|
|
2835
2845
|
D.MaskedRange = it;
|
|
2836
|
-
const
|
|
2846
|
+
const Wn = "d{.}`m{.}`Y";
|
|
2837
2847
|
class Oe extends ae {
|
|
2838
2848
|
static extractPatternOptions(e) {
|
|
2839
2849
|
const {
|
|
@@ -2926,7 +2936,7 @@ Oe.GET_DEFAULT_BLOCKS = () => ({
|
|
|
2926
2936
|
Oe.DEFAULTS = {
|
|
2927
2937
|
...ae.DEFAULTS,
|
|
2928
2938
|
mask: Date,
|
|
2929
|
-
pattern:
|
|
2939
|
+
pattern: Wn,
|
|
2930
2940
|
format: (t, e) => {
|
|
2931
2941
|
if (!t) return "";
|
|
2932
2942
|
const s = String(t.getDate()).padStart(2, "0"), n = String(t.getMonth() + 1).padStart(2, "0"), r = t.getFullYear();
|
|
@@ -3189,7 +3199,7 @@ class mt extends ae {
|
|
|
3189
3199
|
});
|
|
3190
3200
|
}
|
|
3191
3201
|
extractTail(e, s) {
|
|
3192
|
-
return e === void 0 && (e = 0), s === void 0 && (s = this.displayValue.length), new
|
|
3202
|
+
return e === void 0 && (e = 0), s === void 0 && (s = this.displayValue.length), new xe("", e);
|
|
3193
3203
|
}
|
|
3194
3204
|
remove(e, s) {
|
|
3195
3205
|
if (e === void 0 && (e = 0), s === void 0 && (s = this.displayValue.length), e === s) return new M();
|
|
@@ -3209,7 +3219,7 @@ mt.DEFAULTS = {
|
|
|
3209
3219
|
matchValue: (t, e, s) => t.indexOf(e, s) === s
|
|
3210
3220
|
};
|
|
3211
3221
|
D.MaskedEnum = mt;
|
|
3212
|
-
class
|
|
3222
|
+
class Yn extends re {
|
|
3213
3223
|
/** */
|
|
3214
3224
|
/** Enable characters overwriting */
|
|
3215
3225
|
/** */
|
|
@@ -3225,7 +3235,7 @@ class zn extends re {
|
|
|
3225
3235
|
});
|
|
3226
3236
|
}
|
|
3227
3237
|
}
|
|
3228
|
-
D.MaskedFunction =
|
|
3238
|
+
D.MaskedFunction = Yn;
|
|
3229
3239
|
var Ss;
|
|
3230
3240
|
class he extends re {
|
|
3231
3241
|
/** Single char */
|
|
@@ -3441,13 +3451,13 @@ function Cs(t, e, s) {
|
|
|
3441
3451
|
const n = De(t);
|
|
3442
3452
|
return (r) => n.runIsolated((a) => (a[e] = r, a[s]));
|
|
3443
3453
|
}
|
|
3444
|
-
function
|
|
3454
|
+
function Xn(t, e, s, n) {
|
|
3445
3455
|
return Cs(e, s, n)(t);
|
|
3446
3456
|
}
|
|
3447
3457
|
D.PIPE_TYPE = Ot;
|
|
3448
3458
|
D.createPipe = Cs;
|
|
3449
|
-
D.pipe =
|
|
3450
|
-
class
|
|
3459
|
+
D.pipe = Xn;
|
|
3460
|
+
class Kn extends ae {
|
|
3451
3461
|
get repeatFrom() {
|
|
3452
3462
|
var e;
|
|
3453
3463
|
return (e = Array.isArray(this.repeat) ? this.repeat[0] : this.repeat === 1 / 0 ? 0 : this.repeat) != null ? e : 0;
|
|
@@ -3540,12 +3550,12 @@ class Wn extends ae {
|
|
|
3540
3550
|
this._blocks.length = e._blocks.length, this.mask = this.mask.slice(0, this._blocks.length), super.state = e;
|
|
3541
3551
|
}
|
|
3542
3552
|
}
|
|
3543
|
-
D.RepeatBlock =
|
|
3553
|
+
D.RepeatBlock = Kn;
|
|
3544
3554
|
try {
|
|
3545
3555
|
globalThis.IMask = D;
|
|
3546
3556
|
} catch {
|
|
3547
3557
|
}
|
|
3548
|
-
const
|
|
3558
|
+
const ws = {
|
|
3549
3559
|
// common
|
|
3550
3560
|
mask: o.oneOfType([o.array, o.func, o.string, o.instanceOf(RegExp), o.oneOf([Date, Number, D.Masked]), o.instanceOf(D.Masked)]),
|
|
3551
3561
|
value: o.any,
|
|
@@ -3592,8 +3602,8 @@ const xs = {
|
|
|
3592
3602
|
inputRef: o.oneOfType([o.func, o.shape({
|
|
3593
3603
|
current: o.object
|
|
3594
3604
|
})])
|
|
3595
|
-
},
|
|
3596
|
-
function
|
|
3605
|
+
}, xs = Object.keys(ws).filter((t) => t !== "value"), Gn = ["value", "unmask", "onAccept", "onComplete", "inputRef"], Zn = xs.filter((t) => Gn.indexOf(t) < 0);
|
|
3606
|
+
function Qn(t) {
|
|
3597
3607
|
var e;
|
|
3598
3608
|
const s = (e = class extends ke.Component {
|
|
3599
3609
|
constructor(a) {
|
|
@@ -3627,7 +3637,7 @@ function Kn(t) {
|
|
|
3627
3637
|
const {
|
|
3628
3638
|
...i
|
|
3629
3639
|
} = a;
|
|
3630
|
-
return Object.keys(i).filter((l) =>
|
|
3640
|
+
return Object.keys(i).filter((l) => Zn.indexOf(l) < 0).forEach((l) => {
|
|
3631
3641
|
delete i[l];
|
|
3632
3642
|
}), i;
|
|
3633
3643
|
}
|
|
@@ -3635,7 +3645,7 @@ function Kn(t) {
|
|
|
3635
3645
|
const {
|
|
3636
3646
|
...i
|
|
3637
3647
|
} = a;
|
|
3638
|
-
return
|
|
3648
|
+
return xs.forEach((l) => {
|
|
3639
3649
|
l !== "maxLength" && delete i[l];
|
|
3640
3650
|
}), "defaultValue" in i || (i.defaultValue = a.mask ? "" : i.value), delete i.value, i;
|
|
3641
3651
|
}
|
|
@@ -3658,12 +3668,12 @@ function Kn(t) {
|
|
|
3658
3668
|
});
|
|
3659
3669
|
}
|
|
3660
3670
|
}, e.displayName = void 0, e.propTypes = void 0, e), n = t.displayName || t.name || "Component";
|
|
3661
|
-
return s.displayName = "IMask(" + n + ")", s.propTypes =
|
|
3671
|
+
return s.displayName = "IMask(" + n + ")", s.propTypes = ws, ke.forwardRef((r, a) => ke.createElement(s, {
|
|
3662
3672
|
...r,
|
|
3663
3673
|
ref: a
|
|
3664
3674
|
}));
|
|
3665
3675
|
}
|
|
3666
|
-
const
|
|
3676
|
+
const Jn = Qn((t) => {
|
|
3667
3677
|
let {
|
|
3668
3678
|
inputRef: e,
|
|
3669
3679
|
...s
|
|
@@ -3672,12 +3682,12 @@ const Gn = Kn((t) => {
|
|
|
3672
3682
|
...s,
|
|
3673
3683
|
ref: e
|
|
3674
3684
|
});
|
|
3675
|
-
}),
|
|
3685
|
+
}), er = (t, e) => ke.createElement(Jn, {
|
|
3676
3686
|
...t,
|
|
3677
3687
|
ref: e
|
|
3678
3688
|
});
|
|
3679
|
-
ke.forwardRef(
|
|
3680
|
-
function
|
|
3689
|
+
ke.forwardRef(er);
|
|
3690
|
+
function tr(t, e) {
|
|
3681
3691
|
let {
|
|
3682
3692
|
onAccept: s,
|
|
3683
3693
|
onComplete: n,
|
|
@@ -3686,43 +3696,43 @@ function Qn(t, e) {
|
|
|
3686
3696
|
defaultUnmaskedValue: i,
|
|
3687
3697
|
defaultTypedValue: l
|
|
3688
3698
|
} = e === void 0 ? {} : e;
|
|
3689
|
-
const u = Qe(null), [d, h] = P({}), [f, _] = P(""), [y, b] = P(""), [v, m] = P(), F =
|
|
3699
|
+
const u = Qe(null), [d, h] = P({}), [f, _] = P(""), [y, b] = P(""), [v, m] = P(), F = we(() => {
|
|
3690
3700
|
var p;
|
|
3691
3701
|
(p = u.current) == null || p.destroy(), u.current = null;
|
|
3692
|
-
}, []), j =
|
|
3702
|
+
}, []), j = we(() => {
|
|
3693
3703
|
const p = u.current;
|
|
3694
3704
|
p && (h({
|
|
3695
3705
|
value: p.value,
|
|
3696
3706
|
unmaskedValue: p.unmaskedValue,
|
|
3697
3707
|
typedValue: p.typedValue
|
|
3698
3708
|
}), m(p.typedValue), b(p.unmaskedValue), _(p.value));
|
|
3699
|
-
}, []), A =
|
|
3700
|
-
const
|
|
3701
|
-
|
|
3702
|
-
}, [s]), C =
|
|
3709
|
+
}, []), A = we((p) => {
|
|
3710
|
+
const w = u.current;
|
|
3711
|
+
w && (j(), s == null || s(w.value, w, p));
|
|
3712
|
+
}, [s]), C = we((p) => u.current && (n == null ? void 0 : n(u.current.value, u.current, p)), [n]);
|
|
3703
3713
|
return Q(() => {
|
|
3704
3714
|
const {
|
|
3705
3715
|
value: p,
|
|
3706
|
-
...
|
|
3707
|
-
} = d,
|
|
3708
|
-
!
|
|
3716
|
+
...w
|
|
3717
|
+
} = d, N = u.current;
|
|
3718
|
+
!N || f === void 0 || (p !== f && (N.value = f, N.value !== f && A()), h(w));
|
|
3709
3719
|
}, [f]), Q(() => {
|
|
3710
3720
|
const {
|
|
3711
3721
|
unmaskedValue: p,
|
|
3712
|
-
...
|
|
3713
|
-
} = d,
|
|
3714
|
-
!
|
|
3722
|
+
...w
|
|
3723
|
+
} = d, N = u.current;
|
|
3724
|
+
!N || y === void 0 || (p !== y && (N.unmaskedValue = y, N.unmaskedValue !== y && A()), h(w));
|
|
3715
3725
|
}, [y]), Q(() => {
|
|
3716
3726
|
const {
|
|
3717
3727
|
typedValue: p,
|
|
3718
|
-
...
|
|
3719
|
-
} = d,
|
|
3720
|
-
!
|
|
3728
|
+
...w
|
|
3729
|
+
} = d, N = u.current;
|
|
3730
|
+
!N || v === void 0 || (p !== v && (N.typedValue = v, N.masked.typedValueEquals(v) || A()), h(w));
|
|
3721
3731
|
}, [v]), Q(() => {
|
|
3722
3732
|
const p = r.current;
|
|
3723
3733
|
if (!p || !(t != null && t.mask)) return F();
|
|
3724
|
-
const
|
|
3725
|
-
|
|
3734
|
+
const w = u.current;
|
|
3735
|
+
w ? w == null || w.updateOptions(t) : p && t != null && t.mask && (u.current = D(p, t), j(), a !== void 0 && _(a), i !== void 0 && b(i), l !== void 0 && m(l));
|
|
3726
3736
|
}, [t, F, A]), Q(() => {
|
|
3727
3737
|
if (!u.current) return;
|
|
3728
3738
|
const p = u.current;
|
|
@@ -4035,9 +4045,9 @@ const et = ke.forwardRef(
|
|
|
4035
4045
|
className: A,
|
|
4036
4046
|
mask: C,
|
|
4037
4047
|
onChangeHandler: p = K.props.onChangeHandler.default,
|
|
4038
|
-
onBlurHandler:
|
|
4039
|
-
onKeyDownHandler:
|
|
4040
|
-
onFocusHandler:
|
|
4048
|
+
onBlurHandler: w,
|
|
4049
|
+
onKeyDownHandler: N,
|
|
4050
|
+
onFocusHandler: z
|
|
4041
4051
|
}, O) => {
|
|
4042
4052
|
const [te, ue] = P(!1), [ce, Ae] = P(!1), me = !!p && !!C, Ve = (T, q, J) => {
|
|
4043
4053
|
if (me && J) {
|
|
@@ -4058,7 +4068,7 @@ const et = ke.forwardRef(
|
|
|
4058
4068
|
min: u,
|
|
4059
4069
|
max: d,
|
|
4060
4070
|
lazy: !0
|
|
4061
|
-
} : { mask: C ?? "", min: u, max: d, lazy: !0 }, [C]), { ref: ve, setUnmaskedValue: Te } =
|
|
4071
|
+
} : { mask: C ?? "", min: u, max: d, lazy: !0 }, [C]), { ref: ve, setUnmaskedValue: Te } = tr(
|
|
4062
4072
|
oe,
|
|
4063
4073
|
{
|
|
4064
4074
|
onAccept: Ve
|
|
@@ -4066,14 +4076,14 @@ const et = ke.forwardRef(
|
|
|
4066
4076
|
), Re = (T) => {
|
|
4067
4077
|
p && !me && p(T);
|
|
4068
4078
|
}, g = (T) => {
|
|
4069
|
-
|
|
4079
|
+
N && N(T);
|
|
4070
4080
|
}, E = (T) => {
|
|
4071
|
-
ue(!1),
|
|
4081
|
+
ue(!1), w && w(T);
|
|
4072
4082
|
}, V = (T) => {
|
|
4073
|
-
ue(!0),
|
|
4083
|
+
ue(!0), z && z(T);
|
|
4074
4084
|
}, B = () => {
|
|
4075
4085
|
Ae((T) => !T);
|
|
4076
|
-
},
|
|
4086
|
+
}, R = be(() => ce && s === "password" ? "text" : s, [ce, s]), x = () => {
|
|
4077
4087
|
const T = [`${K.class}`];
|
|
4078
4088
|
return r && T.push(`${K.class}--${r}`), n && T.push(`${K.class}--animated`), F && T.push(`${K.class}--no-margin`), y && T.push(`${K.class}--with-icon`), b && T.push(`${K.class}--${b}`), A && T.push(A), T.join(" ");
|
|
4079
4089
|
}, $ = be(() => {
|
|
@@ -4082,7 +4092,7 @@ const et = ke.forwardRef(
|
|
|
4082
4092
|
}, [l, te]), L = () => !n && i ? i : "", U = () => b && b === "error" ? "info" : "check_circle";
|
|
4083
4093
|
return Q(() => {
|
|
4084
4094
|
C && Te(l ?? "");
|
|
4085
|
-
}, [l, C, Te]), /* @__PURE__ */ I("div", { className:
|
|
4095
|
+
}, [l, C, Te]), /* @__PURE__ */ I("div", { className: x(), ref: O, children: [
|
|
4086
4096
|
m && /* @__PURE__ */ c("div", { className: "ds-input__feedback", children: v && /* @__PURE__ */ I(pt, { children: [
|
|
4087
4097
|
/* @__PURE__ */ c(G, { image: U() }),
|
|
4088
4098
|
v
|
|
@@ -4104,7 +4114,7 @@ const et = ke.forwardRef(
|
|
|
4104
4114
|
onKeyDown: g,
|
|
4105
4115
|
placeholder: L(),
|
|
4106
4116
|
ref: ve,
|
|
4107
|
-
type:
|
|
4117
|
+
type: R,
|
|
4108
4118
|
...!C && { value: l ?? "" }
|
|
4109
4119
|
}
|
|
4110
4120
|
),
|
|
@@ -4698,20 +4708,20 @@ const Z = {
|
|
|
4698
4708
|
feedback: F,
|
|
4699
4709
|
...j
|
|
4700
4710
|
}, A) => {
|
|
4701
|
-
const [C, p] = P(!1),
|
|
4711
|
+
const [C, p] = P(!1), w = (O) => {
|
|
4702
4712
|
p(!1), h && h(O, O.target.value), f && f(O, O.target.value);
|
|
4703
|
-
},
|
|
4713
|
+
}, N = () => {
|
|
4704
4714
|
const O = [Z.class, "select-placeholder"];
|
|
4705
4715
|
return O.push(`${Z.class}--${_}`), y && O.push(`${Z.class}--${y}`), C && O.push(`${Z.class}--active`), s && O.push(`${Z.class}--disabled`), e && O.push(e), O.join(" ");
|
|
4706
|
-
},
|
|
4716
|
+
}, z = be(() => {
|
|
4707
4717
|
const O = [`${Z.class}__label`];
|
|
4708
4718
|
return !n && O.push(`${Z.class}__label--not-animated`), u && O.push(`${Z.class}__label--has-value`), n && !u && !b && O.push(`${Z.class}__label--hidden`), O.join(" ");
|
|
4709
4719
|
}, [u]);
|
|
4710
|
-
return /* @__PURE__ */ I("div", { className:
|
|
4720
|
+
return /* @__PURE__ */ I("div", { className: N(), "data-testid": "ds-select-component", children: [
|
|
4711
4721
|
t && /* @__PURE__ */ I(
|
|
4712
4722
|
"label",
|
|
4713
4723
|
{
|
|
4714
|
-
className:
|
|
4724
|
+
className: z,
|
|
4715
4725
|
"data-testid": "ds-label-id",
|
|
4716
4726
|
htmlFor: i,
|
|
4717
4727
|
children: [
|
|
@@ -4744,7 +4754,7 @@ const Z = {
|
|
|
4744
4754
|
multiple: r,
|
|
4745
4755
|
name: i,
|
|
4746
4756
|
onBlur: () => p(!1),
|
|
4747
|
-
onChange: (O) =>
|
|
4757
|
+
onChange: (O) => w(O),
|
|
4748
4758
|
onFocus: () => p(!0),
|
|
4749
4759
|
ref: A,
|
|
4750
4760
|
value: u ?? "",
|
|
@@ -4809,7 +4819,7 @@ Ks.propTypes = {
|
|
|
4809
4819
|
};
|
|
4810
4820
|
Ks.displayName = "DsSelect";
|
|
4811
4821
|
var Gs = /* @__PURE__ */ ((t) => (t.Large = "large", t.Small = "small", t))(Gs || {});
|
|
4812
|
-
const
|
|
4822
|
+
const wt = {
|
|
4813
4823
|
name: "Subtitle",
|
|
4814
4824
|
class: "ds-subtitle",
|
|
4815
4825
|
props: {
|
|
@@ -4819,23 +4829,23 @@ const xt = {
|
|
|
4819
4829
|
options: Object.values(Gs)
|
|
4820
4830
|
}
|
|
4821
4831
|
}
|
|
4822
|
-
},
|
|
4832
|
+
}, sr = ({
|
|
4823
4833
|
children: t,
|
|
4824
4834
|
className: e,
|
|
4825
4835
|
testId: s = "ds-subtitle-test",
|
|
4826
4836
|
type: n
|
|
4827
4837
|
}) => {
|
|
4828
|
-
const r =
|
|
4838
|
+
const r = wt.props.type.options.find((a) => a === n) && `${wt.class}--${n}`;
|
|
4829
4839
|
return /* @__PURE__ */ c(
|
|
4830
4840
|
"p",
|
|
4831
4841
|
{
|
|
4832
|
-
className: [
|
|
4842
|
+
className: [wt.class, r, e].filter((a) => a).join(" "),
|
|
4833
4843
|
"data-testid": s,
|
|
4834
4844
|
children: t
|
|
4835
4845
|
}
|
|
4836
4846
|
);
|
|
4837
4847
|
};
|
|
4838
|
-
|
|
4848
|
+
sr.displayName = "DsSubtitle";
|
|
4839
4849
|
var Zs = /* @__PURE__ */ ((t) => (t.Small = "small", t.Medium = "medium", t.Large = "large", t))(Zs || {}), Qs = /* @__PURE__ */ ((t) => (t.Text = "text", t))(Qs || {}), Js = /* @__PURE__ */ ((t) => (t.None = "", t.Error = "error", t.Success = "success", t))(Js || {}), en = /* @__PURE__ */ ((t) => (t.None = "none", t.Both = "both", t.Horizontal = "horizontal", t.Vertical = "vertical", t.Block = "block", t.Inline = "inline", t))(en || {});
|
|
4840
4850
|
const se = {
|
|
4841
4851
|
name: "TextArea",
|
|
@@ -4947,34 +4957,34 @@ const se = {
|
|
|
4947
4957
|
onKeyDownHandler: A,
|
|
4948
4958
|
onFocusHandler: C,
|
|
4949
4959
|
rows: p = se.props.rows.default,
|
|
4950
|
-
cols:
|
|
4951
|
-
description:
|
|
4952
|
-
style:
|
|
4960
|
+
cols: w,
|
|
4961
|
+
description: N,
|
|
4962
|
+
style: z
|
|
4953
4963
|
}, O) => {
|
|
4954
4964
|
const [te, ue] = P(!1), [ce, Ae] = P(0), [me, Ve] = P(crypto.randomUUID());
|
|
4955
4965
|
Q(() => {
|
|
4956
4966
|
i == null && Ve(crypto.randomUUID());
|
|
4957
4967
|
}, [i]);
|
|
4958
|
-
const oe = (
|
|
4959
|
-
Ae(
|
|
4960
|
-
}, ve = (
|
|
4961
|
-
A && A(
|
|
4962
|
-
}, Te = (
|
|
4963
|
-
ue(!1), j && j(
|
|
4964
|
-
}, Re = (
|
|
4965
|
-
ue(!0), C && C(
|
|
4968
|
+
const oe = (x) => {
|
|
4969
|
+
Ae(x.target.value.length), F && F(x);
|
|
4970
|
+
}, ve = (x) => {
|
|
4971
|
+
A && A(x);
|
|
4972
|
+
}, Te = (x) => {
|
|
4973
|
+
ue(!1), j && j(x);
|
|
4974
|
+
}, Re = (x) => {
|
|
4975
|
+
ue(!0), C && C(x);
|
|
4966
4976
|
}, g = () => {
|
|
4967
|
-
const
|
|
4968
|
-
return n &&
|
|
4977
|
+
const x = [`${se.class}`];
|
|
4978
|
+
return n && x.push(`${se.class}--${n}`), s && x.push(`${se.class}--animated`), d && x.push(`${se.class}--with-icon`), f && x.push(`${se.class}--${f}`), v && x.push(v), x.join(" ");
|
|
4969
4979
|
}, E = be(() => {
|
|
4970
|
-
const
|
|
4971
|
-
return (te || i) &&
|
|
4972
|
-
}, [i, te]), V = () => !s && a ? a : "", B = () => f && f === "error" ? "info" : "check_circle",
|
|
4980
|
+
const x = [`${se.class}__label`];
|
|
4981
|
+
return (te || i) && x.push(`${se.class}__label--active`), x.join(" ");
|
|
4982
|
+
}, [i, te]), V = () => !s && a ? a : "", B = () => f && f === "error" ? "info" : "check_circle", R = {
|
|
4973
4983
|
resize: m,
|
|
4974
|
-
...
|
|
4984
|
+
...z ?? {}
|
|
4975
4985
|
};
|
|
4976
4986
|
return /* @__PURE__ */ I("div", { className: g(), children: [
|
|
4977
|
-
|
|
4987
|
+
N && /* @__PURE__ */ c("span", { className: "ds-textarea__description", children: N }),
|
|
4978
4988
|
_ && /* @__PURE__ */ I("div", { className: "ds-textarea__feedback", children: [
|
|
4979
4989
|
/* @__PURE__ */ c(G, { image: B() }),
|
|
4980
4990
|
_
|
|
@@ -4983,7 +4993,7 @@ const se = {
|
|
|
4983
4993
|
"textarea",
|
|
4984
4994
|
{
|
|
4985
4995
|
className: "ds-textarea__textarea",
|
|
4986
|
-
cols:
|
|
4996
|
+
cols: w,
|
|
4987
4997
|
"data-testid": e,
|
|
4988
4998
|
defaultValue: i ?? "",
|
|
4989
4999
|
disabled: y,
|
|
@@ -4999,7 +5009,7 @@ const se = {
|
|
|
4999
5009
|
ref: O,
|
|
5000
5010
|
required: b,
|
|
5001
5011
|
rows: p,
|
|
5002
|
-
style:
|
|
5012
|
+
style: R
|
|
5003
5013
|
}
|
|
5004
5014
|
),
|
|
5005
5015
|
/* @__PURE__ */ c("label", { className: E, htmlFor: t, children: r }),
|
|
@@ -5136,7 +5146,7 @@ function es() {
|
|
|
5136
5146
|
height: e
|
|
5137
5147
|
};
|
|
5138
5148
|
}
|
|
5139
|
-
function
|
|
5149
|
+
function nr() {
|
|
5140
5150
|
const [t, e] = P(
|
|
5141
5151
|
es()
|
|
5142
5152
|
);
|
|
@@ -5162,7 +5172,7 @@ const nn = ({
|
|
|
5162
5172
|
(A) => A === a
|
|
5163
5173
|
) ? `${ee.class}--h-${a}` : null, _ = i && ee.props.verticalAlign.options.find(
|
|
5164
5174
|
(A) => A === i
|
|
5165
|
-
) ? `${ee.class}--v-${i}` : null, { width: y } =
|
|
5175
|
+
) ? `${ee.class}--v-${i}` : null, { width: y } = nr(), [b, v] = P("auto");
|
|
5166
5176
|
Q(() => {
|
|
5167
5177
|
y <= 768 ? v("6") : v("12");
|
|
5168
5178
|
}, [y]);
|
|
@@ -5205,7 +5215,7 @@ nn.propTypes = {
|
|
|
5205
5215
|
verticalAlign: o.oneOf(ee.props.verticalAlign.options)
|
|
5206
5216
|
};
|
|
5207
5217
|
nn.displayName = "DsGridLayout";
|
|
5208
|
-
const ts = () => typeof window < "u" && window.innerWidth ? window.innerWidth : 0,
|
|
5218
|
+
const ts = () => typeof window < "u" && window.innerWidth ? window.innerWidth : 0, rr = ({ children: t, grid: e }) => {
|
|
5209
5219
|
const { row: s, col: n, mobileRow: r, mobileCol: a } = e, [i, l] = P(ts());
|
|
5210
5220
|
Q(() => {
|
|
5211
5221
|
const d = () => {
|
|
@@ -5223,8 +5233,8 @@ const ts = () => typeof window < "u" && window.innerWidth ? window.innerWidth :
|
|
|
5223
5233
|
}, [i, s, n, r, a]);
|
|
5224
5234
|
return /* @__PURE__ */ c("div", { style: u, children: t });
|
|
5225
5235
|
};
|
|
5226
|
-
|
|
5227
|
-
const
|
|
5236
|
+
rr.displayName = "DsGridElement";
|
|
5237
|
+
const _r = {
|
|
5228
5238
|
name: "Grid-Element",
|
|
5229
5239
|
class: "ds-grid-element",
|
|
5230
5240
|
props: {
|
|
@@ -5293,7 +5303,7 @@ const _e = {
|
|
|
5293
5303
|
);
|
|
5294
5304
|
};
|
|
5295
5305
|
Ze.displayName = "DsWrapper";
|
|
5296
|
-
const
|
|
5306
|
+
const xt = {
|
|
5297
5307
|
name: "Accordion",
|
|
5298
5308
|
class: "ds-accordion",
|
|
5299
5309
|
props: {
|
|
@@ -5377,8 +5387,8 @@ Vt.propTypes = {
|
|
|
5377
5387
|
};
|
|
5378
5388
|
Vt.displayName = "DsAccordionItem";
|
|
5379
5389
|
const rn = ({
|
|
5380
|
-
items: t =
|
|
5381
|
-
activeItem: e =
|
|
5390
|
+
items: t = xt.props.items.default,
|
|
5391
|
+
activeItem: e = xt.props.activeItem.default,
|
|
5382
5392
|
onClick: s
|
|
5383
5393
|
}) => {
|
|
5384
5394
|
const [n, r] = P(-1);
|
|
@@ -5394,7 +5404,7 @@ const rn = ({
|
|
|
5394
5404
|
return s && s(-1), r(-1);
|
|
5395
5405
|
r(i), s && s(i);
|
|
5396
5406
|
};
|
|
5397
|
-
return /* @__PURE__ */ c("ul", { className:
|
|
5407
|
+
return /* @__PURE__ */ c("ul", { className: xt.class, children: t.map((i, l) => /* @__PURE__ */ c(
|
|
5398
5408
|
Vt,
|
|
5399
5409
|
{
|
|
5400
5410
|
active: n === l,
|
|
@@ -5413,7 +5423,7 @@ rn.propTypes = {
|
|
|
5413
5423
|
activeItem: o.number
|
|
5414
5424
|
};
|
|
5415
5425
|
rn.displayName = "DsAccordion";
|
|
5416
|
-
const
|
|
5426
|
+
const ar = ({
|
|
5417
5427
|
title: t,
|
|
5418
5428
|
activeTags: e,
|
|
5419
5429
|
handleTagClose: s
|
|
@@ -5458,8 +5468,8 @@ const sr = ({
|
|
|
5458
5468
|
`ds-tooltip-key-${n.id}-${n.text}`
|
|
5459
5469
|
)) })
|
|
5460
5470
|
] }) });
|
|
5461
|
-
|
|
5462
|
-
const
|
|
5471
|
+
ar.displayName = "DsActiveTags";
|
|
5472
|
+
const yr = {
|
|
5463
5473
|
name: "ActiveTags",
|
|
5464
5474
|
class: "ds-active-tags",
|
|
5465
5475
|
props: {
|
|
@@ -5481,7 +5491,7 @@ const mr = {
|
|
|
5481
5491
|
name: "Carousel",
|
|
5482
5492
|
class: "ds-carousel",
|
|
5483
5493
|
props: {}
|
|
5484
|
-
},
|
|
5494
|
+
}, ir = ({
|
|
5485
5495
|
slides: t,
|
|
5486
5496
|
interval: e = 3e3,
|
|
5487
5497
|
imageHeight: s = 100,
|
|
@@ -5548,7 +5558,7 @@ const mr = {
|
|
|
5548
5558
|
}
|
|
5549
5559
|
);
|
|
5550
5560
|
};
|
|
5551
|
-
|
|
5561
|
+
ir.propTypes = {
|
|
5552
5562
|
slides: o.arrayOf(
|
|
5553
5563
|
o.shape({
|
|
5554
5564
|
title: o.string.isRequired,
|
|
@@ -5564,7 +5574,7 @@ nr.propTypes = {
|
|
|
5564
5574
|
imageMaxWidth: o.oneOfType([o.number, o.string])
|
|
5565
5575
|
};
|
|
5566
5576
|
var an = /* @__PURE__ */ ((t) => (t.Small = "small", t.Medium = "medium", t.Large = "large", t))(an || {});
|
|
5567
|
-
const
|
|
5577
|
+
const Y = {
|
|
5568
5578
|
name: "EditableSelect",
|
|
5569
5579
|
class: "ds-editable-select",
|
|
5570
5580
|
props: {
|
|
@@ -5641,58 +5651,58 @@ const W = {
|
|
|
5641
5651
|
}
|
|
5642
5652
|
}
|
|
5643
5653
|
}
|
|
5644
|
-
},
|
|
5645
|
-
label: t =
|
|
5646
|
-
name: e =
|
|
5647
|
-
testId: s =
|
|
5648
|
-
value: n =
|
|
5649
|
-
options: r =
|
|
5650
|
-
size: a =
|
|
5651
|
-
onChangeHandler: i =
|
|
5652
|
-
onSelectHandler: l =
|
|
5653
|
-
icon: u =
|
|
5654
|
-
noOptionsMessage: d =
|
|
5655
|
-
disabled: h =
|
|
5656
|
-
status: f =
|
|
5657
|
-
onBlurHandler: _ =
|
|
5658
|
-
onFocusHandler: y =
|
|
5659
|
-
animated: b =
|
|
5660
|
-
placeholder: v =
|
|
5654
|
+
}, or = ({
|
|
5655
|
+
label: t = Y.props.label.default,
|
|
5656
|
+
name: e = Y.props.name.default,
|
|
5657
|
+
testId: s = Y.props.testId.default,
|
|
5658
|
+
value: n = Y.props.value.default,
|
|
5659
|
+
options: r = Y.props.options.default,
|
|
5660
|
+
size: a = Y.props.size.default,
|
|
5661
|
+
onChangeHandler: i = Y.props.onChangeHandler.default,
|
|
5662
|
+
onSelectHandler: l = Y.props.onSelectHandler.default,
|
|
5663
|
+
icon: u = Y.props.icon.default,
|
|
5664
|
+
noOptionsMessage: d = Y.props.noOptionsMessage.default,
|
|
5665
|
+
disabled: h = Y.props.disabled.default,
|
|
5666
|
+
status: f = Y.props.status.default,
|
|
5667
|
+
onBlurHandler: _ = Y.props.onBlurHandler.default,
|
|
5668
|
+
onFocusHandler: y = Y.props.onFocusHandler.default,
|
|
5669
|
+
animated: b = Y.props.animated.default,
|
|
5670
|
+
placeholder: v = Y.props.placeholder.default,
|
|
5661
5671
|
loading: m
|
|
5662
5672
|
}) => {
|
|
5663
5673
|
const [F, j] = P(!1), [A, C] = P(n), p = (O) => {
|
|
5664
5674
|
i(O), (m == null && O.currentTarget.value.length || !m && O.currentTarget.value.length > 2) && j(!0);
|
|
5665
|
-
},
|
|
5675
|
+
}, w = (O) => {
|
|
5666
5676
|
l(O), _(), C(crypto.randomUUID().toString()), j(!1);
|
|
5667
|
-
},
|
|
5668
|
-
h ||
|
|
5677
|
+
}, N = (O) => {
|
|
5678
|
+
h || w(O);
|
|
5669
5679
|
};
|
|
5670
5680
|
Q(() => {
|
|
5671
5681
|
n.length === 0 && j(!1);
|
|
5672
5682
|
}, [n]);
|
|
5673
|
-
const
|
|
5683
|
+
const z = () => r.length > 0 ? r.map((O, te) => /* @__PURE__ */ c(
|
|
5674
5684
|
"button",
|
|
5675
5685
|
{
|
|
5676
|
-
className: `${
|
|
5686
|
+
className: `${Y.class}__option ${Y.class}__option--${a}`,
|
|
5677
5687
|
"data-testid": `ds-option-${O.id ?? O.label}`,
|
|
5678
|
-
onClick: () =>
|
|
5688
|
+
onClick: () => N(O),
|
|
5679
5689
|
children: O.label
|
|
5680
5690
|
},
|
|
5681
5691
|
te
|
|
5682
5692
|
)) : /* @__PURE__ */ c(
|
|
5683
5693
|
"div",
|
|
5684
5694
|
{
|
|
5685
|
-
className: `${
|
|
5695
|
+
className: `${Y.class}__option ${Y.class}__option--not-found--${a}`,
|
|
5686
5696
|
children: d
|
|
5687
5697
|
},
|
|
5688
5698
|
"no_option"
|
|
5689
5699
|
);
|
|
5690
|
-
return /* @__PURE__ */ I("div", { className: `${
|
|
5700
|
+
return /* @__PURE__ */ I("div", { className: `${Y.class}__container`, children: [
|
|
5691
5701
|
/* @__PURE__ */ c(
|
|
5692
5702
|
et,
|
|
5693
5703
|
{
|
|
5694
5704
|
animated: b,
|
|
5695
|
-
className: `${
|
|
5705
|
+
className: `${Y.class}__input`,
|
|
5696
5706
|
disabled: h,
|
|
5697
5707
|
label: t,
|
|
5698
5708
|
name: e,
|
|
@@ -5710,28 +5720,28 @@ const W = {
|
|
|
5710
5720
|
(u || m) && (m ? /* @__PURE__ */ c(
|
|
5711
5721
|
"div",
|
|
5712
5722
|
{
|
|
5713
|
-
className: `${
|
|
5723
|
+
className: `${Y.class}__loading ${Y.class}__loading--${a}`,
|
|
5714
5724
|
style: { width: "18px" },
|
|
5715
5725
|
children: /* @__PURE__ */ c($t, { fullscreen: !1 })
|
|
5716
5726
|
}
|
|
5717
5727
|
) : u && /* @__PURE__ */ c(
|
|
5718
5728
|
G,
|
|
5719
5729
|
{
|
|
5720
|
-
className: `${
|
|
5730
|
+
className: `${Y.class}__icon ${Y.class}__icon--${a}`,
|
|
5721
5731
|
image: u
|
|
5722
5732
|
}
|
|
5723
5733
|
)),
|
|
5724
5734
|
F && /* @__PURE__ */ c(
|
|
5725
5735
|
"div",
|
|
5726
5736
|
{
|
|
5727
|
-
className: `${
|
|
5737
|
+
className: `${Y.class}__list ${Y.class}__list--${a}`,
|
|
5728
5738
|
"data-testid": "ds-list",
|
|
5729
|
-
children:
|
|
5739
|
+
children: z()
|
|
5730
5740
|
}
|
|
5731
5741
|
)
|
|
5732
5742
|
] });
|
|
5733
5743
|
};
|
|
5734
|
-
|
|
5744
|
+
or.displayName = "DsEditableSelect";
|
|
5735
5745
|
const Ye = {
|
|
5736
5746
|
name: "DsIndicator",
|
|
5737
5747
|
class: "ds-indicator",
|
|
@@ -5745,7 +5755,7 @@ const Ye = {
|
|
|
5745
5755
|
required: !0
|
|
5746
5756
|
}
|
|
5747
5757
|
}
|
|
5748
|
-
},
|
|
5758
|
+
}, kr = ({
|
|
5749
5759
|
length: t,
|
|
5750
5760
|
current: e = Ye.props.current.default
|
|
5751
5761
|
}) => {
|
|
@@ -5766,7 +5776,7 @@ const Ye = {
|
|
|
5766
5776
|
)
|
|
5767
5777
|
);
|
|
5768
5778
|
return /* @__PURE__ */ c("div", { className: Ye.class, children: a });
|
|
5769
|
-
},
|
|
5779
|
+
}, lr = {
|
|
5770
5780
|
name: "DsInlineEditable",
|
|
5771
5781
|
class: "ds-inline-editable",
|
|
5772
5782
|
props: {
|
|
@@ -5825,7 +5835,7 @@ const Ye = {
|
|
|
5825
5835
|
var m;
|
|
5826
5836
|
await d(!0), (m = l.current) == null || m.focus();
|
|
5827
5837
|
};
|
|
5828
|
-
return /* @__PURE__ */ c("div", { className:
|
|
5838
|
+
return /* @__PURE__ */ c("div", { className: lr.class, children: u ? /* @__PURE__ */ c(
|
|
5829
5839
|
"input",
|
|
5830
5840
|
{
|
|
5831
5841
|
className: "ds-input__input",
|
|
@@ -5860,7 +5870,7 @@ on.propTypes = {
|
|
|
5860
5870
|
value: o.string
|
|
5861
5871
|
};
|
|
5862
5872
|
on.displayName = "DsInlineEditable";
|
|
5863
|
-
var
|
|
5873
|
+
var ur = /* @__PURE__ */ ((t) => (t[t.Elevation1 = 1] = "Elevation1", t[t.Elevation2 = 2] = "Elevation2", t[t.Elevation3 = 3] = "Elevation3", t[t.Elevation4 = 4] = "Elevation4", t))(ur || {}), ln = /* @__PURE__ */ ((t) => (t.Squared = "squared", t.Rounded = "rounded", t))(ln || {});
|
|
5864
5874
|
const fe = {
|
|
5865
5875
|
name: "Modal",
|
|
5866
5876
|
class: "ds-modal",
|
|
@@ -5907,7 +5917,7 @@ const fe = {
|
|
|
5907
5917
|
onConfirm: h,
|
|
5908
5918
|
...f
|
|
5909
5919
|
}) => {
|
|
5910
|
-
const _ = a && fe.props.variant.options.find((m) => m === a) ? `${fe.class}--${a}` : `${fe.class}--${fe.props.variant.default}`, y = i && `${fe.class}--elevation-${i}`, b = h || d, v =
|
|
5920
|
+
const _ = a && fe.props.variant.options.find((m) => m === a) ? `${fe.class}--${a}` : `${fe.class}--${fe.props.variant.default}`, y = i && `${fe.class}--elevation-${i}`, b = h || d, v = we(
|
|
5911
5921
|
(m) => {
|
|
5912
5922
|
m.keyCode === 27 && u();
|
|
5913
5923
|
},
|
|
@@ -6050,20 +6060,20 @@ const hn = ({
|
|
|
6050
6060
|
s && `${le.class}--${s}`,
|
|
6051
6061
|
d && `${le.class}--elevation-${d}`,
|
|
6052
6062
|
t
|
|
6053
|
-
].join(" "), C = () => b((
|
|
6063
|
+
].join(" "), C = () => b((z) => (z === 0 && j(!1), z - 100));
|
|
6054
6064
|
Q(() => {
|
|
6055
6065
|
!i && !u && j(!0);
|
|
6056
|
-
let
|
|
6057
|
-
return !v && i && (
|
|
6058
|
-
clearInterval(
|
|
6066
|
+
let z;
|
|
6067
|
+
return !v && i && (z = setInterval(C, 100)), () => {
|
|
6068
|
+
clearInterval(z);
|
|
6059
6069
|
};
|
|
6060
6070
|
}, [v, i, l, F, u]);
|
|
6061
6071
|
const p = () => {
|
|
6062
6072
|
m(!0);
|
|
6063
|
-
},
|
|
6073
|
+
}, w = () => {
|
|
6064
6074
|
m(!1);
|
|
6065
|
-
},
|
|
6066
|
-
j(!1), f && f(
|
|
6075
|
+
}, N = (z) => {
|
|
6076
|
+
j(!1), f && f(z);
|
|
6067
6077
|
};
|
|
6068
6078
|
return F ? /* @__PURE__ */ I(
|
|
6069
6079
|
"div",
|
|
@@ -6072,7 +6082,7 @@ const hn = ({
|
|
|
6072
6082
|
"data-testid": _,
|
|
6073
6083
|
id: n,
|
|
6074
6084
|
onMouseEnter: p,
|
|
6075
|
-
onMouseLeave:
|
|
6085
|
+
onMouseLeave: w,
|
|
6076
6086
|
children: [
|
|
6077
6087
|
/* @__PURE__ */ c(Ze, { bottom: "nano", top: "nano", children: /* @__PURE__ */ I(Me, { alignItems: "center", flexWrap: "nowrap", gap: "xxxs", children: [
|
|
6078
6088
|
/* @__PURE__ */ c(ne, { children: /* @__PURE__ */ c(
|
|
@@ -6089,7 +6099,7 @@ const hn = ({
|
|
|
6089
6099
|
{
|
|
6090
6100
|
className: `${le.class}__button`,
|
|
6091
6101
|
"data-testid": `${_}-close`,
|
|
6092
|
-
onClick: (
|
|
6102
|
+
onClick: (z) => N(z),
|
|
6093
6103
|
children: /* @__PURE__ */ c(Ze, { children: /* @__PURE__ */ c(G, { image: "close" }) })
|
|
6094
6104
|
}
|
|
6095
6105
|
) : /* @__PURE__ */ c(ge, { horizontal: "quark" }) })
|
|
@@ -6163,66 +6173,66 @@ const At = {
|
|
|
6163
6173
|
score: 0,
|
|
6164
6174
|
color: "danger",
|
|
6165
6175
|
label: "Fraco"
|
|
6166
|
-
}), [_, y] = P(!1), b =
|
|
6176
|
+
}), [_, y] = P(!1), b = we(
|
|
6167
6177
|
(p) => {
|
|
6168
|
-
const
|
|
6169
|
-
(
|
|
6178
|
+
const w = e.map(
|
|
6179
|
+
(N) => N == null ? void 0 : N.rule(p)
|
|
6170
6180
|
);
|
|
6171
|
-
return d(
|
|
6181
|
+
return d(w), w;
|
|
6172
6182
|
},
|
|
6173
6183
|
[e]
|
|
6174
|
-
), v =
|
|
6184
|
+
), v = we(
|
|
6175
6185
|
(p) => {
|
|
6176
6186
|
a(p.currentTarget.value);
|
|
6177
|
-
const
|
|
6187
|
+
const w = b(p.currentTarget.value), N = A(w);
|
|
6178
6188
|
t({
|
|
6179
6189
|
password: p.currentTarget.value,
|
|
6180
6190
|
confirmationPassword: i,
|
|
6181
6191
|
isEqual: i === p.currentTarget.value,
|
|
6182
|
-
feedback:
|
|
6192
|
+
feedback: N
|
|
6183
6193
|
});
|
|
6184
6194
|
},
|
|
6185
6195
|
[i, t, b]
|
|
6186
|
-
), m =
|
|
6196
|
+
), m = we(
|
|
6187
6197
|
(p) => {
|
|
6188
6198
|
l(p.currentTarget.value);
|
|
6189
|
-
const
|
|
6199
|
+
const w = b(r), N = A(w);
|
|
6190
6200
|
t({
|
|
6191
6201
|
password: r,
|
|
6192
6202
|
confirmationPassword: p.currentTarget.value,
|
|
6193
6203
|
isEqual: r === p.currentTarget.value,
|
|
6194
|
-
feedback:
|
|
6204
|
+
feedback: N
|
|
6195
6205
|
});
|
|
6196
6206
|
},
|
|
6197
6207
|
[r, t, b]
|
|
6198
|
-
), F = be(() => r !== i && _ ? { status: "error", feedback: "As senhas são diferentes" } : { status: "", feedback: "" }, [r, i, _]), j =
|
|
6208
|
+
), F = be(() => r !== i && _ ? { status: "error", feedback: "As senhas são diferentes" } : { status: "", feedback: "" }, [r, i, _]), j = we(
|
|
6199
6209
|
(p) => {
|
|
6200
|
-
const
|
|
6210
|
+
const w = {
|
|
6201
6211
|
score: p,
|
|
6202
6212
|
color: "danger",
|
|
6203
6213
|
label: rt.weak
|
|
6204
6214
|
};
|
|
6205
|
-
return p > 30 && p < 75 ? (
|
|
6215
|
+
return p > 30 && p < 75 ? (w.color = "warning", w.label = rt.medium) : p >= 75 && p < 100 ? (w.color = "success", w.label = rt.good) : p === 100 && (w.color = "success-dark", w.label = rt.strong), w;
|
|
6206
6216
|
},
|
|
6207
6217
|
[]
|
|
6208
|
-
), A =
|
|
6218
|
+
), A = we(
|
|
6209
6219
|
(p) => {
|
|
6210
|
-
const
|
|
6211
|
-
(
|
|
6212
|
-
let te =
|
|
6213
|
-
return O ? (te++, te) :
|
|
6220
|
+
const w = p.reduce(
|
|
6221
|
+
(z, O) => {
|
|
6222
|
+
let te = z;
|
|
6223
|
+
return O ? (te++, te) : z;
|
|
6214
6224
|
},
|
|
6215
6225
|
0
|
|
6216
|
-
),
|
|
6217
|
-
|
|
6226
|
+
), N = j(
|
|
6227
|
+
w * 100 / p.length
|
|
6218
6228
|
);
|
|
6219
|
-
return f(
|
|
6229
|
+
return f(N), N;
|
|
6220
6230
|
},
|
|
6221
6231
|
[j]
|
|
6222
|
-
), C = () => /* @__PURE__ */ c("ul", { children: e.map((p,
|
|
6223
|
-
const
|
|
6224
|
-
return /* @__PURE__ */ I("li", { className:
|
|
6225
|
-
u[
|
|
6232
|
+
), C = () => /* @__PURE__ */ c("ul", { children: e.map((p, w) => {
|
|
6233
|
+
const N = u[w] ? "ds-password-confirmation__list" : "ds-password-confirmation__list--disc";
|
|
6234
|
+
return /* @__PURE__ */ I("li", { className: N, children: [
|
|
6235
|
+
u[w] ? /* @__PURE__ */ c(
|
|
6226
6236
|
G,
|
|
6227
6237
|
{
|
|
6228
6238
|
color: "success-dark",
|
|
@@ -6232,7 +6242,7 @@ const At = {
|
|
|
6232
6242
|
) : null,
|
|
6233
6243
|
/* @__PURE__ */ c(ge, { horizontal: "quark" }),
|
|
6234
6244
|
/* @__PURE__ */ c(Ie, { children: p.title })
|
|
6235
|
-
] },
|
|
6245
|
+
] }, w + p.title);
|
|
6236
6246
|
}) });
|
|
6237
6247
|
return /* @__PURE__ */ I(Me, { className: "ds-password-confirmation", flexDirection: "column", children: [
|
|
6238
6248
|
/* @__PURE__ */ c(ne, { children: /* @__PURE__ */ c(
|
|
@@ -6294,7 +6304,7 @@ const ye = {
|
|
|
6294
6304
|
default: 0
|
|
6295
6305
|
}
|
|
6296
6306
|
}
|
|
6297
|
-
},
|
|
6307
|
+
}, cr = ({
|
|
6298
6308
|
steps: t,
|
|
6299
6309
|
selectedStep: e = ye.props.selectedStep.default,
|
|
6300
6310
|
onChange: s
|
|
@@ -6352,7 +6362,7 @@ const ye = {
|
|
|
6352
6362
|
)) })
|
|
6353
6363
|
] });
|
|
6354
6364
|
};
|
|
6355
|
-
|
|
6365
|
+
cr.displayName = "DsStepper";
|
|
6356
6366
|
const Ce = {
|
|
6357
6367
|
name: "Table",
|
|
6358
6368
|
class: "ds-table",
|
|
@@ -6385,7 +6395,7 @@ const Ce = {
|
|
|
6385
6395
|
) }, n);
|
|
6386
6396
|
}) });
|
|
6387
6397
|
gn.displayName = "DsTableRow";
|
|
6388
|
-
const
|
|
6398
|
+
const dr = ({ columns: t, data: e, className: s }) => /* @__PURE__ */ c("div", { className: `${Ce.class}__wrapper`, children: /* @__PURE__ */ I(
|
|
6389
6399
|
"table",
|
|
6390
6400
|
{
|
|
6391
6401
|
className: [`${Ce.class}`, s].filter((n) => n).join(" "),
|
|
@@ -6404,7 +6414,7 @@ const lr = ({ columns: t, data: e, className: s }) => /* @__PURE__ */ c("div", {
|
|
|
6404
6414
|
]
|
|
6405
6415
|
}
|
|
6406
6416
|
) });
|
|
6407
|
-
|
|
6417
|
+
dr.displayName = "DsTable";
|
|
6408
6418
|
var mn = /* @__PURE__ */ ((t) => (t.None = "", t.Primary = "primary", t.Secondary = "secondary", t.Neutral = "neutral", t.Success = "success", t.Warning = "warning", t.Danger = "danger", t.Info = "info", t))(mn || {});
|
|
6409
6419
|
const Be = {
|
|
6410
6420
|
name: "DsTabs",
|
|
@@ -6433,7 +6443,7 @@ const Be = {
|
|
|
6433
6443
|
}
|
|
6434
6444
|
}
|
|
6435
6445
|
}
|
|
6436
|
-
},
|
|
6446
|
+
}, pr = ({
|
|
6437
6447
|
active: t,
|
|
6438
6448
|
className: e,
|
|
6439
6449
|
color: s,
|
|
@@ -6462,7 +6472,7 @@ const Be = {
|
|
|
6462
6472
|
children: i
|
|
6463
6473
|
}
|
|
6464
6474
|
);
|
|
6465
|
-
},
|
|
6475
|
+
}, br = ({
|
|
6466
6476
|
tabs: t,
|
|
6467
6477
|
color: e,
|
|
6468
6478
|
selectedTab: s = Be.props.selectedTab.default,
|
|
@@ -6479,7 +6489,7 @@ const Be = {
|
|
|
6479
6489
|
"data-testid": "ds-tabs",
|
|
6480
6490
|
children: [
|
|
6481
6491
|
/* @__PURE__ */ c("div", { className: `${Be.class}__header`, children: t.map((u, d) => /* @__PURE__ */ bn(
|
|
6482
|
-
|
|
6492
|
+
pr,
|
|
6483
6493
|
{
|
|
6484
6494
|
...u,
|
|
6485
6495
|
active: a === d,
|
|
@@ -6494,10 +6504,10 @@ const Be = {
|
|
|
6494
6504
|
}
|
|
6495
6505
|
);
|
|
6496
6506
|
};
|
|
6497
|
-
function
|
|
6507
|
+
function hr({ library: t, children: e, theme: s }) {
|
|
6498
6508
|
return /* @__PURE__ */ c("div", { "data-library": t, "data-theme": s, children: /* @__PURE__ */ c("div", { className: "ds-theme", children: e }) });
|
|
6499
6509
|
}
|
|
6500
|
-
|
|
6510
|
+
hr.propTypes = {
|
|
6501
6511
|
library: o.string,
|
|
6502
6512
|
children: o.node.isRequired,
|
|
6503
6513
|
theme: o.string
|
|
@@ -6564,7 +6574,7 @@ _n.propTypes = {
|
|
|
6564
6574
|
_n.displayName = "DsNotificationList";
|
|
6565
6575
|
const Xe = {
|
|
6566
6576
|
class: "ds-split-layout"
|
|
6567
|
-
},
|
|
6577
|
+
}, fr = ({
|
|
6568
6578
|
leftContent: t,
|
|
6569
6579
|
rightContent: e,
|
|
6570
6580
|
leftBackgroundColor: s,
|
|
@@ -6577,7 +6587,7 @@ const Xe = {
|
|
|
6577
6587
|
/* @__PURE__ */ c("div", { className: h, children: e })
|
|
6578
6588
|
] });
|
|
6579
6589
|
};
|
|
6580
|
-
|
|
6590
|
+
fr.displayName = "DsSplitLayout";
|
|
6581
6591
|
const at = {
|
|
6582
6592
|
name: "TwoColumns",
|
|
6583
6593
|
class: "ds-two-columns",
|
|
@@ -6615,30 +6625,30 @@ yn.propTypes = {
|
|
|
6615
6625
|
yn.displayName = "DsTwoColumns";
|
|
6616
6626
|
export {
|
|
6617
6627
|
rs as ButtonColor,
|
|
6618
|
-
|
|
6628
|
+
Bn as ButtonElevation,
|
|
6619
6629
|
os as ButtonIconPosition,
|
|
6620
6630
|
is as ButtonSize,
|
|
6621
6631
|
as as ButtonVariant,
|
|
6622
6632
|
Ft as CardColor,
|
|
6623
|
-
|
|
6633
|
+
Vn as CardElevation,
|
|
6624
6634
|
rn as DsAccordion,
|
|
6625
6635
|
Vt as DsAccordionItem,
|
|
6626
|
-
|
|
6636
|
+
ar as DsActiveTags,
|
|
6627
6637
|
ut as DsButton,
|
|
6628
6638
|
ps as DsCaption,
|
|
6629
6639
|
hs as DsCard,
|
|
6630
|
-
|
|
6640
|
+
ir as DsCarousel,
|
|
6631
6641
|
fs as DsCheckbox,
|
|
6632
6642
|
Mt as DsContainer,
|
|
6633
|
-
|
|
6643
|
+
or as DsEditableSelect,
|
|
6634
6644
|
ne as DsFlexElement,
|
|
6635
6645
|
Me as DsFlexLayout,
|
|
6636
|
-
|
|
6646
|
+
rr as DsGridElement,
|
|
6637
6647
|
nn as DsGridLayout,
|
|
6638
6648
|
_s as DsHR,
|
|
6639
6649
|
Nt as DsHeading,
|
|
6640
6650
|
G as DsIcon,
|
|
6641
|
-
|
|
6651
|
+
kr as DsIndicator,
|
|
6642
6652
|
on as DsInlineEditable,
|
|
6643
6653
|
et as DsInput,
|
|
6644
6654
|
$t as DsLoading,
|
|
@@ -6651,11 +6661,11 @@ export {
|
|
|
6651
6661
|
zs as DsProgress,
|
|
6652
6662
|
Ks as DsSelect,
|
|
6653
6663
|
ge as DsSpacer,
|
|
6654
|
-
|
|
6655
|
-
|
|
6656
|
-
|
|
6657
|
-
|
|
6658
|
-
|
|
6664
|
+
fr as DsSplitLayout,
|
|
6665
|
+
cr as DsStepper,
|
|
6666
|
+
sr as DsSubtitle,
|
|
6667
|
+
dr as DsTable,
|
|
6668
|
+
br as DsTabs,
|
|
6659
6669
|
tn as DsTextArea,
|
|
6660
6670
|
He as DsTooltip,
|
|
6661
6671
|
yn as DsTwoColumns,
|
|
@@ -6682,7 +6692,7 @@ export {
|
|
|
6682
6692
|
As as InputType,
|
|
6683
6693
|
Bs as LoadingBackgroundColor,
|
|
6684
6694
|
Ns as LoadingSize,
|
|
6685
|
-
|
|
6695
|
+
ur as ModalElevation,
|
|
6686
6696
|
ln as ModalVariant,
|
|
6687
6697
|
vn as NotificationListPosition,
|
|
6688
6698
|
cn as NotificationType,
|
|
@@ -6700,29 +6710,29 @@ export {
|
|
|
6700
6710
|
Zs as TextAreaSize,
|
|
6701
6711
|
Js as TextAreaStatus,
|
|
6702
6712
|
Qs as TextAreaType,
|
|
6703
|
-
|
|
6713
|
+
hr as ThemeProvider,
|
|
6704
6714
|
Rs as TooltipPlacement,
|
|
6705
6715
|
Is as TooltipPosition,
|
|
6706
6716
|
ze as WrapperSpace,
|
|
6707
|
-
|
|
6717
|
+
xt as accordionConfig,
|
|
6708
6718
|
Ue as accordionItemConfig,
|
|
6709
|
-
|
|
6710
|
-
|
|
6711
|
-
|
|
6719
|
+
yr as activeTagsConfig,
|
|
6720
|
+
X as buttonConfig,
|
|
6721
|
+
Mn as captionConfig,
|
|
6712
6722
|
Ne as cardConfig,
|
|
6713
6723
|
We as carouselConfig,
|
|
6714
6724
|
ie as checkboxConfig,
|
|
6715
6725
|
nt as containerConfig,
|
|
6716
|
-
|
|
6726
|
+
Y as editableSelectConfig,
|
|
6717
6727
|
Ct as flexElementConfig,
|
|
6718
6728
|
Le as flexLayoutConfig,
|
|
6719
|
-
|
|
6729
|
+
_r as gridElementConfig,
|
|
6720
6730
|
ee as gridLayoutConfig,
|
|
6721
6731
|
Ke as headingConfig,
|
|
6722
6732
|
Pe as horizontalRuleConfig,
|
|
6723
6733
|
pe as iconConfig,
|
|
6724
6734
|
Ye as indicatorConfig,
|
|
6725
|
-
|
|
6735
|
+
lr as inlineEditableConfig,
|
|
6726
6736
|
K as inputConfig,
|
|
6727
6737
|
de as loadingConfig,
|
|
6728
6738
|
fe as modalConfig,
|
|
@@ -6735,7 +6745,7 @@ export {
|
|
|
6735
6745
|
Z as selectConfig,
|
|
6736
6746
|
Ge as spacerConfig,
|
|
6737
6747
|
ye as stepperConfig,
|
|
6738
|
-
|
|
6748
|
+
wt as subtitleConfig,
|
|
6739
6749
|
Ce as tableConfig,
|
|
6740
6750
|
Be as tabsConfig,
|
|
6741
6751
|
se as textAreaConfig,
|