@akad/design-system 1.0.0-alpha.3 → 1.0.0-alpha.5
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/css/core.css +1 -1
- package/package.json +1 -1
- package/react/react-lib.js +736 -750
- package/react/react-lib.umd.cjs +4 -4
- package/react/src/components/atoms/Button/Button.config.d.ts +0 -5
- package/react/src/components/atoms/Button/Button.d.ts +1 -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/scss/core/components/molecules/table.scss +6 -10
package/react/react-lib.js
CHANGED
|
@@ -16,7 +16,7 @@ var jt;
|
|
|
16
16
|
function Sn() {
|
|
17
17
|
if (jt) return z;
|
|
18
18
|
jt = 1;
|
|
19
|
-
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,
|
|
19
|
+
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
20
|
function A(p) {
|
|
21
21
|
if (typeof p == "object" && p !== null) {
|
|
22
22
|
var x = p.$$typeof;
|
|
@@ -32,9 +32,9 @@ function Sn() {
|
|
|
32
32
|
return p;
|
|
33
33
|
default:
|
|
34
34
|
switch (p = p && p.$$typeof, p) {
|
|
35
|
-
case
|
|
35
|
+
case l:
|
|
36
36
|
case h:
|
|
37
|
-
case
|
|
37
|
+
case b:
|
|
38
38
|
case y:
|
|
39
39
|
case i:
|
|
40
40
|
return p;
|
|
@@ -50,10 +50,10 @@ function Sn() {
|
|
|
50
50
|
function C(p) {
|
|
51
51
|
return A(p) === d;
|
|
52
52
|
}
|
|
53
|
-
return z.AsyncMode = u, z.ConcurrentMode = d, z.ContextConsumer =
|
|
53
|
+
return z.AsyncMode = u, z.ConcurrentMode = d, z.ContextConsumer = l, z.ContextProvider = i, z.Element = e, z.ForwardRef = h, z.Fragment = n, z.Lazy = b, z.Memo = y, z.Portal = s, z.Profiler = a, z.StrictMode = r, z.Suspense = f, z.isAsyncMode = function(p) {
|
|
54
54
|
return C(p) || A(p) === u;
|
|
55
55
|
}, z.isConcurrentMode = C, z.isContextConsumer = function(p) {
|
|
56
|
-
return A(p) ===
|
|
56
|
+
return A(p) === l;
|
|
57
57
|
}, z.isContextProvider = function(p) {
|
|
58
58
|
return A(p) === i;
|
|
59
59
|
}, z.isElement = function(p) {
|
|
@@ -63,7 +63,7 @@ function Sn() {
|
|
|
63
63
|
}, z.isFragment = function(p) {
|
|
64
64
|
return A(p) === n;
|
|
65
65
|
}, z.isLazy = function(p) {
|
|
66
|
-
return A(p) ===
|
|
66
|
+
return A(p) === b;
|
|
67
67
|
}, z.isMemo = function(p) {
|
|
68
68
|
return A(p) === y;
|
|
69
69
|
}, z.isPortal = function(p) {
|
|
@@ -75,7 +75,7 @@ function Sn() {
|
|
|
75
75
|
}, z.isSuspense = function(p) {
|
|
76
76
|
return A(p) === f;
|
|
77
77
|
}, z.isValidElementType = function(p) {
|
|
78
|
-
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 ===
|
|
78
|
+
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
79
|
}, z.typeOf = A, z;
|
|
80
80
|
}
|
|
81
81
|
var H = {};
|
|
@@ -90,10 +90,10 @@ var H = {};
|
|
|
90
90
|
var Pt;
|
|
91
91
|
function Cn() {
|
|
92
92
|
return Pt || (Pt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
93
|
-
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,
|
|
93
|
+
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
94
|
function A(k) {
|
|
95
95
|
return typeof k == "string" || typeof k == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
96
|
-
k === n || k === d || k === a || k === r || k === f || k === _ || typeof k == "object" && k !== null && (k.$$typeof ===
|
|
96
|
+
k === n || k === d || k === a || k === r || k === f || k === _ || typeof k == "object" && k !== null && (k.$$typeof === b || k.$$typeof === y || k.$$typeof === i || k.$$typeof === l || k.$$typeof === h || k.$$typeof === m || k.$$typeof === F || k.$$typeof === j || k.$$typeof === v);
|
|
97
97
|
}
|
|
98
98
|
function C(k) {
|
|
99
99
|
if (typeof k == "object" && k !== null) {
|
|
@@ -112,9 +112,9 @@ function Cn() {
|
|
|
112
112
|
default:
|
|
113
113
|
var Lt = tt && tt.$$typeof;
|
|
114
114
|
switch (Lt) {
|
|
115
|
-
case
|
|
115
|
+
case l:
|
|
116
116
|
case h:
|
|
117
|
-
case
|
|
117
|
+
case b:
|
|
118
118
|
case y:
|
|
119
119
|
case i:
|
|
120
120
|
return Lt;
|
|
@@ -127,15 +127,15 @@ function Cn() {
|
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
|
-
var p = u, x = d,
|
|
131
|
-
function
|
|
130
|
+
var p = u, x = d, R = l, X = i, O = e, te = h, ue = n, ce = b, Ae = y, me = s, Ve = a, oe = r, ve = f, Te = !1;
|
|
131
|
+
function Re(k) {
|
|
132
132
|
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
133
|
}
|
|
134
134
|
function g(k) {
|
|
135
135
|
return C(k) === d;
|
|
136
136
|
}
|
|
137
|
-
function
|
|
138
|
-
return C(k) ===
|
|
137
|
+
function E(k) {
|
|
138
|
+
return C(k) === l;
|
|
139
139
|
}
|
|
140
140
|
function V(k) {
|
|
141
141
|
return C(k) === i;
|
|
@@ -143,14 +143,14 @@ function Cn() {
|
|
|
143
143
|
function B(k) {
|
|
144
144
|
return typeof k == "object" && k !== null && k.$$typeof === e;
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function N(k) {
|
|
147
147
|
return C(k) === h;
|
|
148
148
|
}
|
|
149
149
|
function w(k) {
|
|
150
150
|
return C(k) === n;
|
|
151
151
|
}
|
|
152
152
|
function $(k) {
|
|
153
|
-
return C(k) ===
|
|
153
|
+
return C(k) === b;
|
|
154
154
|
}
|
|
155
155
|
function L(k) {
|
|
156
156
|
return C(k) === y;
|
|
@@ -167,7 +167,7 @@ function Cn() {
|
|
|
167
167
|
function J(k) {
|
|
168
168
|
return C(k) === f;
|
|
169
169
|
}
|
|
170
|
-
H.AsyncMode = p, H.ConcurrentMode = x, H.ContextConsumer =
|
|
170
|
+
H.AsyncMode = p, H.ConcurrentMode = x, H.ContextConsumer = R, H.ContextProvider = X, H.Element = O, H.ForwardRef = te, H.Fragment = ue, H.Lazy = ce, H.Memo = Ae, H.Portal = me, H.Profiler = Ve, H.StrictMode = oe, H.Suspense = ve, H.isAsyncMode = Re, H.isConcurrentMode = g, H.isContextConsumer = E, H.isContextProvider = V, H.isElement = B, H.isForwardRef = N, H.isFragment = w, H.isLazy = $, H.isMemo = L, H.isPortal = U, H.isProfiler = T, H.isStrictMode = q, H.isSuspense = J, H.isValidElementType = A, H.typeOf = C;
|
|
171
171
|
}()), H;
|
|
172
172
|
}
|
|
173
173
|
var qt;
|
|
@@ -196,8 +196,8 @@ function xn() {
|
|
|
196
196
|
var a = new String("abc");
|
|
197
197
|
if (a[5] = "de", Object.getOwnPropertyNames(a)[0] === "5")
|
|
198
198
|
return !1;
|
|
199
|
-
for (var i = {},
|
|
200
|
-
i["_" + String.fromCharCode(
|
|
199
|
+
for (var i = {}, l = 0; l < 10; l++)
|
|
200
|
+
i["_" + String.fromCharCode(l)] = l;
|
|
201
201
|
var u = Object.getOwnPropertyNames(i).map(function(h) {
|
|
202
202
|
return i[h];
|
|
203
203
|
});
|
|
@@ -212,14 +212,14 @@ function xn() {
|
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
214
|
return vt = r() ? Object.assign : function(a, i) {
|
|
215
|
-
for (var
|
|
216
|
-
|
|
217
|
-
for (var f in
|
|
218
|
-
e.call(
|
|
215
|
+
for (var l, u = n(a), d, h = 1; h < arguments.length; h++) {
|
|
216
|
+
l = Object(arguments[h]);
|
|
217
|
+
for (var f in l)
|
|
218
|
+
e.call(l, f) && (u[f] = l[f]);
|
|
219
219
|
if (t) {
|
|
220
|
-
d = t(
|
|
220
|
+
d = t(l);
|
|
221
221
|
for (var _ = 0; _ < d.length; _++)
|
|
222
|
-
s.call(
|
|
222
|
+
s.call(l, d[_]) && (u[d[_]] = l[d[_]]);
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
225
|
return u;
|
|
@@ -253,7 +253,7 @@ function wn() {
|
|
|
253
253
|
}
|
|
254
254
|
};
|
|
255
255
|
}
|
|
256
|
-
function r(a, i,
|
|
256
|
+
function r(a, i, l, u, d) {
|
|
257
257
|
if (process.env.NODE_ENV !== "production") {
|
|
258
258
|
for (var h in a)
|
|
259
259
|
if (n(a, h)) {
|
|
@@ -261,21 +261,21 @@ function wn() {
|
|
|
261
261
|
try {
|
|
262
262
|
if (typeof a[h] != "function") {
|
|
263
263
|
var _ = Error(
|
|
264
|
-
(u || "React class") + ": " +
|
|
264
|
+
(u || "React class") + ": " + l + " type `" + h + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[h] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
265
265
|
);
|
|
266
266
|
throw _.name = "Invariant Violation", _;
|
|
267
267
|
}
|
|
268
|
-
f = a[h](i, h, u,
|
|
269
|
-
} catch (
|
|
270
|
-
f =
|
|
268
|
+
f = a[h](i, h, u, l, null, e);
|
|
269
|
+
} catch (b) {
|
|
270
|
+
f = b;
|
|
271
271
|
}
|
|
272
272
|
if (f && !(f instanceof Error) && t(
|
|
273
|
-
(u || "React class") + ": type specification of " +
|
|
273
|
+
(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)."
|
|
274
274
|
), f instanceof Error && !(f.message in s)) {
|
|
275
275
|
s[f.message] = !0;
|
|
276
276
|
var y = d ? d() : "";
|
|
277
277
|
t(
|
|
278
|
-
"Failed " +
|
|
278
|
+
"Failed " + l + " type: " + f.message + (y ?? "")
|
|
279
279
|
);
|
|
280
280
|
}
|
|
281
281
|
}
|
|
@@ -291,8 +291,8 @@ function An() {
|
|
|
291
291
|
Yt = 1;
|
|
292
292
|
var t = ss(), e = xn(), s = Rt(), n = ns(), r = wn(), a = function() {
|
|
293
293
|
};
|
|
294
|
-
process.env.NODE_ENV !== "production" && (a = function(
|
|
295
|
-
var u = "Warning: " +
|
|
294
|
+
process.env.NODE_ENV !== "production" && (a = function(l) {
|
|
295
|
+
var u = "Warning: " + l;
|
|
296
296
|
typeof console < "u" && console.error(u);
|
|
297
297
|
try {
|
|
298
298
|
throw new Error(u);
|
|
@@ -302,12 +302,12 @@ function An() {
|
|
|
302
302
|
function i() {
|
|
303
303
|
return null;
|
|
304
304
|
}
|
|
305
|
-
return bt = function(
|
|
305
|
+
return bt = function(l, u) {
|
|
306
306
|
var d = typeof Symbol == "function" && Symbol.iterator, h = "@@iterator";
|
|
307
307
|
function f(g) {
|
|
308
|
-
var
|
|
309
|
-
if (typeof
|
|
310
|
-
return
|
|
308
|
+
var E = g && (d && g[d] || g[h]);
|
|
309
|
+
if (typeof E == "function")
|
|
310
|
+
return E;
|
|
311
311
|
}
|
|
312
312
|
var _ = "<<anonymous>>", y = {
|
|
313
313
|
array: F("array"),
|
|
@@ -324,22 +324,22 @@ function An() {
|
|
|
324
324
|
elementType: p(),
|
|
325
325
|
instanceOf: x,
|
|
326
326
|
node: te(),
|
|
327
|
-
objectOf:
|
|
328
|
-
oneOf:
|
|
327
|
+
objectOf: X,
|
|
328
|
+
oneOf: R,
|
|
329
329
|
oneOfType: O,
|
|
330
330
|
shape: ce,
|
|
331
331
|
exact: Ae
|
|
332
332
|
};
|
|
333
|
-
function
|
|
334
|
-
return g ===
|
|
333
|
+
function b(g, E) {
|
|
334
|
+
return g === E ? g !== 0 || 1 / g === 1 / E : g !== g && E !== E;
|
|
335
335
|
}
|
|
336
|
-
function v(g,
|
|
337
|
-
this.message = g, this.data =
|
|
336
|
+
function v(g, E) {
|
|
337
|
+
this.message = g, this.data = E && typeof E == "object" ? E : {}, this.stack = "";
|
|
338
338
|
}
|
|
339
339
|
v.prototype = Error.prototype;
|
|
340
340
|
function m(g) {
|
|
341
341
|
if (process.env.NODE_ENV !== "production")
|
|
342
|
-
var
|
|
342
|
+
var E = {}, V = 0;
|
|
343
343
|
function B(w, $, L, U, T, q, J) {
|
|
344
344
|
if (U = U || _, q = q || L, J !== s) {
|
|
345
345
|
if (u) {
|
|
@@ -349,131 +349,131 @@ function An() {
|
|
|
349
349
|
throw k.name = "Invariant Violation", k;
|
|
350
350
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
351
351
|
var Ee = U + ":" + L;
|
|
352
|
-
!
|
|
352
|
+
!E[Ee] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
353
353
|
V < 3 && (a(
|
|
354
354
|
"You are manually calling a React.PropTypes validation function for the `" + q + "` 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."
|
|
355
|
-
),
|
|
355
|
+
), E[Ee] = !0, V++);
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
358
|
return $[L] == null ? w ? $[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
359
|
}
|
|
360
|
-
var
|
|
361
|
-
return
|
|
360
|
+
var N = B.bind(null, !1);
|
|
361
|
+
return N.isRequired = B.bind(null, !0), N;
|
|
362
362
|
}
|
|
363
363
|
function F(g) {
|
|
364
|
-
function
|
|
365
|
-
var U = V[B], T =
|
|
364
|
+
function E(V, B, N, w, $, L) {
|
|
365
|
+
var U = V[B], T = oe(U);
|
|
366
366
|
if (T !== g) {
|
|
367
367
|
var q = ve(U);
|
|
368
368
|
return new v(
|
|
369
|
-
"Invalid " + w + " `" + $ + "` of type " + ("`" + q + "` supplied to `" +
|
|
369
|
+
"Invalid " + w + " `" + $ + "` of type " + ("`" + q + "` supplied to `" + N + "`, expected ") + ("`" + g + "`."),
|
|
370
370
|
{ expectedType: g }
|
|
371
371
|
);
|
|
372
372
|
}
|
|
373
373
|
return null;
|
|
374
374
|
}
|
|
375
|
-
return m(
|
|
375
|
+
return m(E);
|
|
376
376
|
}
|
|
377
377
|
function j() {
|
|
378
378
|
return m(i);
|
|
379
379
|
}
|
|
380
380
|
function A(g) {
|
|
381
|
-
function
|
|
381
|
+
function E(V, B, N, w, $) {
|
|
382
382
|
if (typeof g != "function")
|
|
383
|
-
return new v("Property `" + $ + "` of component `" +
|
|
383
|
+
return new v("Property `" + $ + "` of component `" + N + "` has invalid PropType notation inside arrayOf.");
|
|
384
384
|
var L = V[B];
|
|
385
385
|
if (!Array.isArray(L)) {
|
|
386
|
-
var U =
|
|
387
|
-
return new v("Invalid " + w + " `" + $ + "` of type " + ("`" + U + "` supplied to `" +
|
|
386
|
+
var U = oe(L);
|
|
387
|
+
return new v("Invalid " + w + " `" + $ + "` of type " + ("`" + U + "` supplied to `" + N + "`, expected an array."));
|
|
388
388
|
}
|
|
389
389
|
for (var T = 0; T < L.length; T++) {
|
|
390
|
-
var q = g(L, T,
|
|
390
|
+
var q = g(L, T, N, w, $ + "[" + T + "]", s);
|
|
391
391
|
if (q instanceof Error)
|
|
392
392
|
return q;
|
|
393
393
|
}
|
|
394
394
|
return null;
|
|
395
395
|
}
|
|
396
|
-
return m(
|
|
396
|
+
return m(E);
|
|
397
397
|
}
|
|
398
398
|
function C() {
|
|
399
|
-
function g(
|
|
400
|
-
var $ =
|
|
401
|
-
if (!
|
|
402
|
-
var L =
|
|
403
|
-
return new v("Invalid " +
|
|
399
|
+
function g(E, V, B, N, w) {
|
|
400
|
+
var $ = E[V];
|
|
401
|
+
if (!l($)) {
|
|
402
|
+
var L = oe($);
|
|
403
|
+
return new v("Invalid " + N + " `" + w + "` of type " + ("`" + L + "` supplied to `" + B + "`, expected a single ReactElement."));
|
|
404
404
|
}
|
|
405
405
|
return null;
|
|
406
406
|
}
|
|
407
407
|
return m(g);
|
|
408
408
|
}
|
|
409
409
|
function p() {
|
|
410
|
-
function g(
|
|
411
|
-
var $ =
|
|
410
|
+
function g(E, V, B, N, w) {
|
|
411
|
+
var $ = E[V];
|
|
412
412
|
if (!t.isValidElementType($)) {
|
|
413
|
-
var L =
|
|
414
|
-
return new v("Invalid " +
|
|
413
|
+
var L = oe($);
|
|
414
|
+
return new v("Invalid " + N + " `" + w + "` of type " + ("`" + L + "` supplied to `" + B + "`, expected a single ReactElement type."));
|
|
415
415
|
}
|
|
416
416
|
return null;
|
|
417
417
|
}
|
|
418
418
|
return m(g);
|
|
419
419
|
}
|
|
420
420
|
function x(g) {
|
|
421
|
-
function
|
|
421
|
+
function E(V, B, N, w, $) {
|
|
422
422
|
if (!(V[B] instanceof g)) {
|
|
423
|
-
var L = g.name || _, U =
|
|
424
|
-
return new v("Invalid " + w + " `" + $ + "` of type " + ("`" + U + "` supplied to `" +
|
|
423
|
+
var L = g.name || _, U = Re(V[B]);
|
|
424
|
+
return new v("Invalid " + w + " `" + $ + "` of type " + ("`" + U + "` supplied to `" + N + "`, expected ") + ("instance of `" + L + "`."));
|
|
425
425
|
}
|
|
426
426
|
return null;
|
|
427
427
|
}
|
|
428
|
-
return m(
|
|
428
|
+
return m(E);
|
|
429
429
|
}
|
|
430
|
-
function
|
|
430
|
+
function R(g) {
|
|
431
431
|
if (!Array.isArray(g))
|
|
432
432
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
433
433
|
"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
434
|
) : a("Invalid argument supplied to oneOf, expected an array.")), i;
|
|
435
|
-
function
|
|
435
|
+
function E(V, B, N, w, $) {
|
|
436
436
|
for (var L = V[B], U = 0; U < g.length; U++)
|
|
437
|
-
if (
|
|
437
|
+
if (b(L, g[U]))
|
|
438
438
|
return null;
|
|
439
439
|
var T = JSON.stringify(g, function(J, k) {
|
|
440
440
|
var Ee = ve(k);
|
|
441
441
|
return Ee === "symbol" ? String(k) : k;
|
|
442
442
|
});
|
|
443
|
-
return new v("Invalid " + w + " `" + $ + "` of value `" + String(L) + "` " + ("supplied to `" +
|
|
443
|
+
return new v("Invalid " + w + " `" + $ + "` of value `" + String(L) + "` " + ("supplied to `" + N + "`, expected one of " + T + "."));
|
|
444
444
|
}
|
|
445
|
-
return m(
|
|
445
|
+
return m(E);
|
|
446
446
|
}
|
|
447
|
-
function
|
|
448
|
-
function
|
|
447
|
+
function X(g) {
|
|
448
|
+
function E(V, B, N, w, $) {
|
|
449
449
|
if (typeof g != "function")
|
|
450
|
-
return new v("Property `" + $ + "` of component `" +
|
|
451
|
-
var L = V[B], U =
|
|
450
|
+
return new v("Property `" + $ + "` of component `" + N + "` has invalid PropType notation inside objectOf.");
|
|
451
|
+
var L = V[B], U = oe(L);
|
|
452
452
|
if (U !== "object")
|
|
453
|
-
return new v("Invalid " + w + " `" + $ + "` of type " + ("`" + U + "` supplied to `" +
|
|
453
|
+
return new v("Invalid " + w + " `" + $ + "` of type " + ("`" + U + "` supplied to `" + N + "`, expected an object."));
|
|
454
454
|
for (var T in L)
|
|
455
455
|
if (n(L, T)) {
|
|
456
|
-
var q = g(L, T,
|
|
456
|
+
var q = g(L, T, N, w, $ + "." + T, s);
|
|
457
457
|
if (q instanceof Error)
|
|
458
458
|
return q;
|
|
459
459
|
}
|
|
460
460
|
return null;
|
|
461
461
|
}
|
|
462
|
-
return m(
|
|
462
|
+
return m(E);
|
|
463
463
|
}
|
|
464
464
|
function O(g) {
|
|
465
465
|
if (!Array.isArray(g))
|
|
466
466
|
return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), i;
|
|
467
|
-
for (var
|
|
468
|
-
var V = g[
|
|
467
|
+
for (var E = 0; E < g.length; E++) {
|
|
468
|
+
var V = g[E];
|
|
469
469
|
if (typeof V != "function")
|
|
470
470
|
return a(
|
|
471
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Te(V) + " at index " +
|
|
471
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Te(V) + " at index " + E + "."
|
|
472
472
|
), i;
|
|
473
473
|
}
|
|
474
|
-
function B(
|
|
474
|
+
function B(N, w, $, L, U) {
|
|
475
475
|
for (var T = [], q = 0; q < g.length; q++) {
|
|
476
|
-
var J = g[q], k = J(
|
|
476
|
+
var J = g[q], k = J(N, w, $, L, U, s);
|
|
477
477
|
if (k == null)
|
|
478
478
|
return null;
|
|
479
479
|
k.data && n(k.data, "expectedType") && T.push(k.data.expectedType);
|
|
@@ -484,55 +484,55 @@ function An() {
|
|
|
484
484
|
return m(B);
|
|
485
485
|
}
|
|
486
486
|
function te() {
|
|
487
|
-
function g(
|
|
488
|
-
return me(
|
|
487
|
+
function g(E, V, B, N, w) {
|
|
488
|
+
return me(E[V]) ? null : new v("Invalid " + N + " `" + w + "` supplied to " + ("`" + B + "`, expected a ReactNode."));
|
|
489
489
|
}
|
|
490
490
|
return m(g);
|
|
491
491
|
}
|
|
492
|
-
function ue(g,
|
|
492
|
+
function ue(g, E, V, B, N) {
|
|
493
493
|
return new v(
|
|
494
|
-
(g || "React class") + ": " +
|
|
494
|
+
(g || "React class") + ": " + E + " type `" + V + "." + B + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + N + "`."
|
|
495
495
|
);
|
|
496
496
|
}
|
|
497
497
|
function ce(g) {
|
|
498
|
-
function
|
|
499
|
-
var L = V[B], U =
|
|
498
|
+
function E(V, B, N, w, $) {
|
|
499
|
+
var L = V[B], U = oe(L);
|
|
500
500
|
if (U !== "object")
|
|
501
|
-
return new v("Invalid " + w + " `" + $ + "` of type `" + U + "` " + ("supplied to `" +
|
|
501
|
+
return new v("Invalid " + w + " `" + $ + "` of type `" + U + "` " + ("supplied to `" + N + "`, expected `object`."));
|
|
502
502
|
for (var T in g) {
|
|
503
503
|
var q = g[T];
|
|
504
504
|
if (typeof q != "function")
|
|
505
|
-
return ue(
|
|
506
|
-
var J = q(L, T,
|
|
505
|
+
return ue(N, w, $, T, ve(q));
|
|
506
|
+
var J = q(L, T, N, w, $ + "." + T, s);
|
|
507
507
|
if (J)
|
|
508
508
|
return J;
|
|
509
509
|
}
|
|
510
510
|
return null;
|
|
511
511
|
}
|
|
512
|
-
return m(
|
|
512
|
+
return m(E);
|
|
513
513
|
}
|
|
514
514
|
function Ae(g) {
|
|
515
|
-
function
|
|
516
|
-
var L = V[B], U =
|
|
515
|
+
function E(V, B, N, w, $) {
|
|
516
|
+
var L = V[B], U = oe(L);
|
|
517
517
|
if (U !== "object")
|
|
518
|
-
return new v("Invalid " + w + " `" + $ + "` of type `" + U + "` " + ("supplied to `" +
|
|
518
|
+
return new v("Invalid " + w + " `" + $ + "` of type `" + U + "` " + ("supplied to `" + N + "`, expected `object`."));
|
|
519
519
|
var T = e({}, V[B], g);
|
|
520
520
|
for (var q in T) {
|
|
521
521
|
var J = g[q];
|
|
522
522
|
if (n(g, q) && typeof J != "function")
|
|
523
|
-
return ue(
|
|
523
|
+
return ue(N, w, $, q, ve(J));
|
|
524
524
|
if (!J)
|
|
525
525
|
return new v(
|
|
526
|
-
"Invalid " + w + " `" + $ + "` key `" + q + "` supplied to `" +
|
|
526
|
+
"Invalid " + w + " `" + $ + "` key `" + q + "` supplied to `" + N + "`.\nBad object: " + JSON.stringify(V[B], null, " ") + `
|
|
527
527
|
Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
|
|
528
528
|
);
|
|
529
|
-
var k = J(L, q,
|
|
529
|
+
var k = J(L, q, N, w, $ + "." + q, s);
|
|
530
530
|
if (k)
|
|
531
531
|
return k;
|
|
532
532
|
}
|
|
533
533
|
return null;
|
|
534
534
|
}
|
|
535
|
-
return m(
|
|
535
|
+
return m(E);
|
|
536
536
|
}
|
|
537
537
|
function me(g) {
|
|
538
538
|
switch (typeof g) {
|
|
@@ -545,19 +545,19 @@ Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
|
|
|
545
545
|
case "object":
|
|
546
546
|
if (Array.isArray(g))
|
|
547
547
|
return g.every(me);
|
|
548
|
-
if (g === null ||
|
|
548
|
+
if (g === null || l(g))
|
|
549
549
|
return !0;
|
|
550
|
-
var
|
|
551
|
-
if (
|
|
552
|
-
var V =
|
|
553
|
-
if (
|
|
550
|
+
var E = f(g);
|
|
551
|
+
if (E) {
|
|
552
|
+
var V = E.call(g), B;
|
|
553
|
+
if (E !== g.entries) {
|
|
554
554
|
for (; !(B = V.next()).done; )
|
|
555
555
|
if (!me(B.value))
|
|
556
556
|
return !1;
|
|
557
557
|
} else
|
|
558
558
|
for (; !(B = V.next()).done; ) {
|
|
559
|
-
var
|
|
560
|
-
if (
|
|
559
|
+
var N = B.value;
|
|
560
|
+
if (N && !me(N[1]))
|
|
561
561
|
return !1;
|
|
562
562
|
}
|
|
563
563
|
} else
|
|
@@ -567,40 +567,40 @@ Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
|
|
|
567
567
|
return !1;
|
|
568
568
|
}
|
|
569
569
|
}
|
|
570
|
-
function Ve(g,
|
|
571
|
-
return g === "symbol" ? !0 :
|
|
570
|
+
function Ve(g, E) {
|
|
571
|
+
return g === "symbol" ? !0 : E ? E["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && E instanceof Symbol : !1;
|
|
572
572
|
}
|
|
573
|
-
function
|
|
574
|
-
var
|
|
575
|
-
return Array.isArray(g) ? "array" : g instanceof RegExp ? "object" : Ve(
|
|
573
|
+
function oe(g) {
|
|
574
|
+
var E = typeof g;
|
|
575
|
+
return Array.isArray(g) ? "array" : g instanceof RegExp ? "object" : Ve(E, g) ? "symbol" : E;
|
|
576
576
|
}
|
|
577
577
|
function ve(g) {
|
|
578
578
|
if (typeof g > "u" || g === null)
|
|
579
579
|
return "" + g;
|
|
580
|
-
var
|
|
581
|
-
if (
|
|
580
|
+
var E = oe(g);
|
|
581
|
+
if (E === "object") {
|
|
582
582
|
if (g instanceof Date)
|
|
583
583
|
return "date";
|
|
584
584
|
if (g instanceof RegExp)
|
|
585
585
|
return "regexp";
|
|
586
586
|
}
|
|
587
|
-
return
|
|
587
|
+
return E;
|
|
588
588
|
}
|
|
589
589
|
function Te(g) {
|
|
590
|
-
var
|
|
591
|
-
switch (
|
|
590
|
+
var E = ve(g);
|
|
591
|
+
switch (E) {
|
|
592
592
|
case "array":
|
|
593
593
|
case "object":
|
|
594
|
-
return "an " +
|
|
594
|
+
return "an " + E;
|
|
595
595
|
case "boolean":
|
|
596
596
|
case "date":
|
|
597
597
|
case "regexp":
|
|
598
|
-
return "a " +
|
|
598
|
+
return "a " + E;
|
|
599
599
|
default:
|
|
600
|
-
return
|
|
600
|
+
return E;
|
|
601
601
|
}
|
|
602
602
|
}
|
|
603
|
-
function
|
|
603
|
+
function Re(g) {
|
|
604
604
|
return !g.constructor || !g.constructor.name ? _ : g.constructor.name;
|
|
605
605
|
}
|
|
606
606
|
return y.checkPropTypes = r, y.resetWarningCache = r.resetWarningCache, y.PropTypes = y, y;
|
|
@@ -616,7 +616,7 @@ function Tn() {
|
|
|
616
616
|
function s() {
|
|
617
617
|
}
|
|
618
618
|
return s.resetWarningCache = e, Et = function() {
|
|
619
|
-
function n(i,
|
|
619
|
+
function n(i, l, u, d, h, f) {
|
|
620
620
|
if (f !== t) {
|
|
621
621
|
var _ = new Error(
|
|
622
622
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
@@ -660,8 +660,8 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
660
660
|
} else
|
|
661
661
|
Tt.exports = Tn()();
|
|
662
662
|
var Dn = Tt.exports;
|
|
663
|
-
const
|
|
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 || {}),
|
|
663
|
+
const o = /* @__PURE__ */ En(Dn);
|
|
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 || {}), In = /* @__PURE__ */ ((t) => (t[t.Elevation1 = 1] = "Elevation1", t[t.Elevation2 = 2] = "Elevation2", t[t.Elevation3 = 3] = "Elevation3", t[t.Elevation4 = 4] = "Elevation4", t))(In || {});
|
|
665
665
|
const Y = {
|
|
666
666
|
name: "Button",
|
|
667
667
|
class: "ds-button",
|
|
@@ -706,7 +706,7 @@ const Y = {
|
|
|
706
706
|
iconPosition: {
|
|
707
707
|
type: String,
|
|
708
708
|
default: "right",
|
|
709
|
-
options: Object.values(
|
|
709
|
+
options: Object.values(os)
|
|
710
710
|
},
|
|
711
711
|
id: {
|
|
712
712
|
type: String,
|
|
@@ -720,17 +720,13 @@ const Y = {
|
|
|
720
720
|
type: Boolean,
|
|
721
721
|
default: !1
|
|
722
722
|
},
|
|
723
|
-
trackId: {
|
|
724
|
-
type: String,
|
|
725
|
-
default: "track-click"
|
|
726
|
-
},
|
|
727
723
|
trackLabel: {
|
|
728
724
|
type: String,
|
|
729
725
|
default: ""
|
|
730
726
|
}
|
|
731
727
|
}
|
|
732
728
|
};
|
|
733
|
-
var
|
|
729
|
+
var ls = /* @__PURE__ */ ((t) => (t.Primary = "primary", t.PrimaryLightest = "primary-lightest", t.PrimaryLighter = "primary-lighter", t.PrimaryLight = "primary-light", t.PrimaryDark = "primary-dark", t.PrimaryDarker = "primary-darker", 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.Secondary = "secondary", t.SecondaryLightest = "secondary-lightest", t.SecondaryLighter = "secondary-lighter", t.SecondaryLight = "secondary-light", t.SecondaryDark = "secondary-dark", t.SecondaryDarker = "secondary-darker", t.Success = "success", t.SuccessLighter = "success-lighter", t.SuccessLight = "success-light", t.SuccessDark = "success-dark", t.Warning = "warning", t.WarningLighter = "warning-lighter", t.WarningLight = "warning-light", t.WarningDark = "warning-dark", t.Danger = "danger", t.DangerLighter = "danger-lighter", t.DangerLight = "danger-light", t.DangerDark = "danger-dark", t.Info = "info", t.InfoLighter = "info-lighter", t.InfoLight = "info-light", t.InfoDark = "info-dark", t))(ls || {}), us = /* @__PURE__ */ ((t) => (t.Outlined = "outlined", t.Rounded = "rounded", t.Sharp = "sharp", t))(us || {}), cs = /* @__PURE__ */ ((t) => (t.XXS = "xxs", t.XS = "xs", t.SM = "sm", t.MD = "md", t.LG = "lg", t.XL = "xl", t.XXL = "xxl", t.XXXL = "xxxl", t.Huge = "huge", t))(cs || {}), ds = /* @__PURE__ */ ((t) => (t.Bold = "bold", t.Semibold = "semibold", t.Medium = "medium", t.Regular = "regular", t.Light = "light", t.Extralight = "extralight", t))(ds || {});
|
|
734
730
|
const pe = {
|
|
735
731
|
name: "Icon",
|
|
736
732
|
class: "ds-icon",
|
|
@@ -738,7 +734,7 @@ const pe = {
|
|
|
738
734
|
color: {
|
|
739
735
|
type: String,
|
|
740
736
|
default: "neutral-90",
|
|
741
|
-
options: Object.values(
|
|
737
|
+
options: Object.values(ls)
|
|
742
738
|
},
|
|
743
739
|
image: {
|
|
744
740
|
type: String,
|
|
@@ -782,7 +778,7 @@ const pe = {
|
|
|
782
778
|
}
|
|
783
779
|
}
|
|
784
780
|
};
|
|
785
|
-
var
|
|
781
|
+
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 || {});
|
|
786
782
|
const Rn = {
|
|
787
783
|
bold: 700,
|
|
788
784
|
semibold: 600,
|
|
@@ -798,9 +794,9 @@ const Rn = {
|
|
|
798
794
|
fill: r = pe.props.fill.default,
|
|
799
795
|
weight: a = pe.props.weight.default,
|
|
800
796
|
testId: i = pe.props.testId.default,
|
|
801
|
-
onClick:
|
|
797
|
+
onClick: l = pe.props.onClick.default
|
|
802
798
|
}) => {
|
|
803
|
-
const u = "material-symbols-rounded", d = e && pe.props.color.options.find((f) => f === e) && `color__${
|
|
799
|
+
const u = "material-symbols-rounded", d = e && pe.props.color.options.find((f) => f === e) && `color__${lt[e] ?? e}`, h = be(() => ({
|
|
804
800
|
fontVariationSettings: `'FILL' ${r ? 1 : 0}, 'GRAD' 0,'wght' ${Rn[a]}, 'opsz' 48`
|
|
805
801
|
}), [a, r]);
|
|
806
802
|
return /* @__PURE__ */ c(
|
|
@@ -814,7 +810,7 @@ const Rn = {
|
|
|
814
810
|
s
|
|
815
811
|
].filter((f) => f).join(" "),
|
|
816
812
|
"data-testid": i,
|
|
817
|
-
onClick:
|
|
813
|
+
onClick: l,
|
|
818
814
|
style: h,
|
|
819
815
|
translate: "no",
|
|
820
816
|
children: t
|
|
@@ -822,13 +818,13 @@ const Rn = {
|
|
|
822
818
|
);
|
|
823
819
|
};
|
|
824
820
|
G.propTypes = {
|
|
825
|
-
color:
|
|
826
|
-
image:
|
|
827
|
-
fontVariationSettings:
|
|
828
|
-
size:
|
|
829
|
-
fill:
|
|
830
|
-
weight:
|
|
831
|
-
onClick:
|
|
821
|
+
color: o.oneOf(pe.props.color.options),
|
|
822
|
+
image: o.string,
|
|
823
|
+
fontVariationSettings: o.object,
|
|
824
|
+
size: o.oneOf(pe.props.size.options),
|
|
825
|
+
fill: o.bool,
|
|
826
|
+
weight: o.oneOf(pe.props.weight.options),
|
|
827
|
+
onClick: o.func
|
|
832
828
|
};
|
|
833
829
|
G.displayName = "DsIcon";
|
|
834
830
|
const ut = ({
|
|
@@ -839,42 +835,40 @@ const ut = ({
|
|
|
839
835
|
disabled: r = Y.props.disabled.default,
|
|
840
836
|
icon: a = Y.props.icon.default,
|
|
841
837
|
id: i = Y.props.id.default,
|
|
842
|
-
testId:
|
|
838
|
+
testId: l = Y.props.testId.default,
|
|
843
839
|
elevation: u,
|
|
844
840
|
variant: d = Y.props.variant.default,
|
|
845
841
|
color: h = Y.props.color.default,
|
|
846
842
|
iconFill: f = Y.props.iconFill.default,
|
|
847
843
|
iconPosition: _ = Y.props.iconPosition.default,
|
|
848
844
|
fullSize: y = Y.props.fullSize.default,
|
|
849
|
-
|
|
850
|
-
trackLabel: v
|
|
845
|
+
trackLabel: b
|
|
851
846
|
}) => {
|
|
852
|
-
const
|
|
847
|
+
const v = n && Y.props.size.options.find((R) => R === n) ? `${Y.class}--${n}` : `${Y.class}__${Y.props.size.default}`, m = r && `${Y.class}--disabled`, F = `${Y.class}__${h}--${d}`, j = u && `${Y.class}--elevation-${u}`, A = a && `${Y.class}--with-icon`, C = y ? `${Y.class}--full-size` : "", p = _ === "right" ? `${Y.class}__icon` : `${Y.class}__icon--left`, x = _ === "right" ? `${Y.class}__text` : `${Y.class}__text--reversed`;
|
|
853
848
|
return /* @__PURE__ */ c(
|
|
854
849
|
"button",
|
|
855
850
|
{
|
|
856
851
|
className: [
|
|
857
852
|
Y.class,
|
|
858
|
-
|
|
859
|
-
F,
|
|
853
|
+
C,
|
|
860
854
|
m,
|
|
855
|
+
v,
|
|
856
|
+
F,
|
|
861
857
|
j,
|
|
862
858
|
A,
|
|
863
|
-
C,
|
|
864
859
|
e
|
|
865
|
-
].filter((
|
|
866
|
-
"data-testid":
|
|
867
|
-
"data-
|
|
868
|
-
...v && { "data-tracklabel": v },
|
|
860
|
+
].filter((R) => R).join(" "),
|
|
861
|
+
"data-testid": l,
|
|
862
|
+
...b && { "data-tracklabel": b },
|
|
869
863
|
disabled: r,
|
|
870
864
|
id: i,
|
|
871
865
|
onClick: r ? void 0 : s,
|
|
872
|
-
children: /* @__PURE__ */ I("span", { className: ["ds-button__text",
|
|
866
|
+
children: /* @__PURE__ */ I("span", { className: ["ds-button__text", x].join(" "), children: [
|
|
873
867
|
t,
|
|
874
868
|
a && /* @__PURE__ */ c(
|
|
875
869
|
G,
|
|
876
870
|
{
|
|
877
|
-
className: ["ds-button__icon",
|
|
871
|
+
className: ["ds-button__icon", p].join(" "),
|
|
878
872
|
fill: f,
|
|
879
873
|
image: a,
|
|
880
874
|
size: n
|
|
@@ -885,18 +879,17 @@ const ut = ({
|
|
|
885
879
|
);
|
|
886
880
|
};
|
|
887
881
|
ut.propTypes = {
|
|
888
|
-
color:
|
|
889
|
-
variant:
|
|
890
|
-
size:
|
|
891
|
-
disabled:
|
|
892
|
-
icon:
|
|
893
|
-
iconFill:
|
|
894
|
-
iconPosition:
|
|
895
|
-
testId:
|
|
896
|
-
id:
|
|
897
|
-
fullSize:
|
|
898
|
-
|
|
899
|
-
trackLabel: l.string
|
|
882
|
+
color: o.oneOf(Y.props.color.options),
|
|
883
|
+
variant: o.oneOf(Y.props.variant.options),
|
|
884
|
+
size: o.oneOf(Y.props.size.options),
|
|
885
|
+
disabled: o.bool,
|
|
886
|
+
icon: o.string,
|
|
887
|
+
iconFill: o.bool,
|
|
888
|
+
iconPosition: o.oneOf(Y.props.iconPosition.options),
|
|
889
|
+
testId: o.string,
|
|
890
|
+
id: o.string,
|
|
891
|
+
fullSize: o.bool,
|
|
892
|
+
trackLabel: o.string
|
|
900
893
|
};
|
|
901
894
|
ut.displayName = "DsButton";
|
|
902
895
|
const Nn = {
|
|
@@ -915,13 +908,13 @@ const Nn = {
|
|
|
915
908
|
}
|
|
916
909
|
);
|
|
917
910
|
ps.propTypes = {
|
|
918
|
-
children:
|
|
919
|
-
className:
|
|
920
|
-
testId:
|
|
911
|
+
children: o.node.isRequired,
|
|
912
|
+
className: o.string,
|
|
913
|
+
testId: o.string
|
|
921
914
|
};
|
|
922
915
|
ps.displayName = "DsCaption";
|
|
923
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 || {}), Bn = /* @__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))(Bn || {});
|
|
924
|
-
const
|
|
917
|
+
const Ne = {
|
|
925
918
|
name: "Card",
|
|
926
919
|
class: "ds-card",
|
|
927
920
|
props: {
|
|
@@ -955,10 +948,6 @@ const Oe = {
|
|
|
955
948
|
type: String,
|
|
956
949
|
default: "ds-card"
|
|
957
950
|
},
|
|
958
|
-
trackId: {
|
|
959
|
-
type: String,
|
|
960
|
-
default: "track-click"
|
|
961
|
-
},
|
|
962
951
|
trackLabel: {
|
|
963
952
|
type: String,
|
|
964
953
|
default: ""
|
|
@@ -966,42 +955,39 @@ const Oe = {
|
|
|
966
955
|
}
|
|
967
956
|
}, hs = ({
|
|
968
957
|
id: t,
|
|
969
|
-
testId: e =
|
|
958
|
+
testId: e = Ne.props.testId.default,
|
|
970
959
|
children: s,
|
|
971
960
|
className: n,
|
|
972
|
-
elevation: r =
|
|
973
|
-
backgroundColor: a =
|
|
974
|
-
borderColor: i =
|
|
975
|
-
|
|
976
|
-
trackLabel: u
|
|
961
|
+
elevation: r = Ne.props.elevation.default,
|
|
962
|
+
backgroundColor: a = Ne.props.backgroundColor.default,
|
|
963
|
+
borderColor: i = Ne.props.borderColor.default,
|
|
964
|
+
trackLabel: l
|
|
977
965
|
}) => {
|
|
978
|
-
const
|
|
966
|
+
const u = r && `elevation-${r}`, d = i && `border-color__${lt[i] ?? i}`, h = a && `bg-color__${lt[a] ?? a}`;
|
|
979
967
|
return /* @__PURE__ */ c(
|
|
980
968
|
"div",
|
|
981
969
|
{
|
|
982
970
|
className: [
|
|
983
|
-
|
|
971
|
+
Ne.class,
|
|
984
972
|
n,
|
|
973
|
+
u,
|
|
985
974
|
d,
|
|
986
|
-
h
|
|
987
|
-
|
|
988
|
-
].filter((_) => _).join(" "),
|
|
975
|
+
h
|
|
976
|
+
].filter((f) => f).join(" "),
|
|
989
977
|
"data-testid": e,
|
|
990
|
-
"data-
|
|
991
|
-
...u && { "data-tracklabel": u },
|
|
978
|
+
...l && { "data-tracklabel": l },
|
|
992
979
|
id: t,
|
|
993
980
|
children: s
|
|
994
981
|
}
|
|
995
982
|
);
|
|
996
983
|
};
|
|
997
984
|
hs.propTypes = {
|
|
998
|
-
id:
|
|
999
|
-
testId:
|
|
1000
|
-
backgroundColor:
|
|
1001
|
-
borderColor:
|
|
1002
|
-
elevation:
|
|
1003
|
-
|
|
1004
|
-
trackLabel: l.string
|
|
985
|
+
id: o.string,
|
|
986
|
+
testId: o.string,
|
|
987
|
+
backgroundColor: o.oneOf(Ne.props.backgroundColor.options),
|
|
988
|
+
borderColor: o.oneOf(Ne.props.borderColor.options),
|
|
989
|
+
elevation: o.oneOf(Ne.props.elevation.options),
|
|
990
|
+
trackLabel: o.string
|
|
1005
991
|
};
|
|
1006
992
|
hs.displayName = "DsCard";
|
|
1007
993
|
const ie = {
|
|
@@ -1050,18 +1036,18 @@ const ie = {
|
|
|
1050
1036
|
label: r = ie.props.label.default,
|
|
1051
1037
|
description: a = ie.props.description.default,
|
|
1052
1038
|
checked: i = ie.props.checked.default,
|
|
1053
|
-
disabled:
|
|
1039
|
+
disabled: l = ie.props.disabled.default,
|
|
1054
1040
|
changeByChecked: u = ie.props.changeByChecked.default,
|
|
1055
1041
|
onChangeHandler: d
|
|
1056
1042
|
}, h) => {
|
|
1057
|
-
const f = u ?? !1, _ = i ?? !1, [y,
|
|
1043
|
+
const f = u ?? !1, _ = i ?? !1, [y, b] = P(_), v = {
|
|
1058
1044
|
image: y ? "check_box" : "check_box_outline_blank",
|
|
1059
1045
|
class: y ? `${ie.class}__icon--checked` : `${ie.class}__icon--unchecked`
|
|
1060
|
-
}, m =
|
|
1061
|
-
|
|
1046
|
+
}, m = l && `${ie.class}--disabled`, F = (j) => {
|
|
1047
|
+
l || (b((A) => !A), d && d(j));
|
|
1062
1048
|
};
|
|
1063
1049
|
return Q(() => {
|
|
1064
|
-
f &&
|
|
1050
|
+
f && b(i);
|
|
1065
1051
|
}, [i, f]), /* @__PURE__ */ I(
|
|
1066
1052
|
"label",
|
|
1067
1053
|
{
|
|
@@ -1076,7 +1062,7 @@ const ie = {
|
|
|
1076
1062
|
checked: y,
|
|
1077
1063
|
className: `${ie.class}__input`,
|
|
1078
1064
|
"data-testid": n,
|
|
1079
|
-
disabled:
|
|
1065
|
+
disabled: l,
|
|
1080
1066
|
id: t || s,
|
|
1081
1067
|
name: s,
|
|
1082
1068
|
onChange: F,
|
|
@@ -1118,13 +1104,13 @@ const ie = {
|
|
|
1118
1104
|
}
|
|
1119
1105
|
);
|
|
1120
1106
|
fs.propTypes = {
|
|
1121
|
-
label:
|
|
1122
|
-
name:
|
|
1123
|
-
className:
|
|
1124
|
-
testId:
|
|
1125
|
-
description:
|
|
1126
|
-
checked:
|
|
1127
|
-
disabled:
|
|
1107
|
+
label: o.oneOfType([o.string, o.element]),
|
|
1108
|
+
name: o.string,
|
|
1109
|
+
className: o.string,
|
|
1110
|
+
testId: o.string,
|
|
1111
|
+
description: o.oneOfType([o.string, o.element]),
|
|
1112
|
+
checked: o.bool,
|
|
1113
|
+
disabled: o.bool
|
|
1128
1114
|
};
|
|
1129
1115
|
fs.displayName = "DsCheckbox";
|
|
1130
1116
|
var gs = /* @__PURE__ */ ((t) => (t.Heading1 = "heading-1", t.Heading2 = "heading-2", t.Heading3 = "heading-3", t.Heading4 = "heading-4", t.Heading5 = "heading-5", t.Heading6 = "heading-6", t))(gs || {});
|
|
@@ -1162,9 +1148,9 @@ const Ke = {
|
|
|
1162
1148
|
);
|
|
1163
1149
|
};
|
|
1164
1150
|
Nt.propTypes = {
|
|
1165
|
-
className:
|
|
1166
|
-
testId:
|
|
1167
|
-
type:
|
|
1151
|
+
className: o.string,
|
|
1152
|
+
testId: o.string,
|
|
1153
|
+
type: o.oneOf(Ke.props.type.options)
|
|
1168
1154
|
};
|
|
1169
1155
|
Nt.displayName = "DsHeading";
|
|
1170
1156
|
var ms = /* @__PURE__ */ ((t) => (t.None = "", t.Dashed = "dashed", t.Dotted = "dotted", t))(ms || {}), vs = /* @__PURE__ */ ((t) => (t.None = "", t.Small = "small", t.Large = "large", t))(vs || {});
|
|
@@ -1201,8 +1187,8 @@ const _s = ({
|
|
|
1201
1187
|
);
|
|
1202
1188
|
};
|
|
1203
1189
|
_s.propTypes = {
|
|
1204
|
-
size:
|
|
1205
|
-
borderStyle:
|
|
1190
|
+
size: o.oneOf(Pe.props.size.options),
|
|
1191
|
+
borderStyle: o.oneOf(Pe.props.borderStyle.options)
|
|
1206
1192
|
};
|
|
1207
1193
|
_s.displayName = "DsHR";
|
|
1208
1194
|
function $e(t) {
|
|
@@ -1252,9 +1238,9 @@ function ct(t, e) {
|
|
|
1252
1238
|
const a = e instanceof Date, i = t instanceof Date;
|
|
1253
1239
|
if (a && i) return e.getTime() == t.getTime();
|
|
1254
1240
|
if (a != i) return !1;
|
|
1255
|
-
const
|
|
1256
|
-
if (
|
|
1257
|
-
if (
|
|
1241
|
+
const l = e instanceof RegExp, u = t instanceof RegExp;
|
|
1242
|
+
if (l && u) return e.toString() == t.toString();
|
|
1243
|
+
if (l != u) return !1;
|
|
1258
1244
|
const d = Object.keys(e);
|
|
1259
1245
|
for (r = 0; r < d.length; r++) if (!Object.prototype.hasOwnProperty.call(t, d[r])) return !1;
|
|
1260
1246
|
for (r = 0; r < d.length; r++) if (!ct(t[d[r]], e[d[r]])) return !1;
|
|
@@ -1345,13 +1331,13 @@ function Je(t) {
|
|
|
1345
1331
|
mask: t
|
|
1346
1332
|
};
|
|
1347
1333
|
}
|
|
1348
|
-
function
|
|
1334
|
+
function De(t) {
|
|
1349
1335
|
if (D.Masked && t instanceof D.Masked) return t;
|
|
1350
1336
|
const e = Je(t), s = ks(e.mask);
|
|
1351
1337
|
if (!s) throw new Error("Masked class is not found for provided mask " + e.mask + ", appropriate module needs to be imported manually before creating mask.");
|
|
1352
1338
|
return e.mask === s && delete e.mask, e._mask && (e.mask = e._mask, delete e._mask), new s(e);
|
|
1353
1339
|
}
|
|
1354
|
-
D.createMask =
|
|
1340
|
+
D.createMask = De;
|
|
1355
1341
|
class Bt {
|
|
1356
1342
|
/** */
|
|
1357
1343
|
/** */
|
|
@@ -1520,7 +1506,7 @@ class jn {
|
|
|
1520
1506
|
*/
|
|
1521
1507
|
/** Internal {@link Masked} model */
|
|
1522
1508
|
constructor(e, s) {
|
|
1523
|
-
this.el = e instanceof Bt ? e : e.isContentEditable && e.tagName !== "INPUT" && e.tagName !== "TEXTAREA" ? new bs(e) : new Ln(e), this.masked =
|
|
1509
|
+
this.el = e instanceof Bt ? e : e.isContentEditable && e.tagName !== "INPUT" && e.tagName !== "TEXTAREA" ? new bs(e) : new Ln(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();
|
|
1524
1510
|
}
|
|
1525
1511
|
maskEquals(e) {
|
|
1526
1512
|
var s;
|
|
@@ -1538,7 +1524,7 @@ class jn {
|
|
|
1538
1524
|
});
|
|
1539
1525
|
return;
|
|
1540
1526
|
}
|
|
1541
|
-
const s = e instanceof D.Masked ? e :
|
|
1527
|
+
const s = e instanceof D.Masked ? e : De({
|
|
1542
1528
|
mask: e
|
|
1543
1529
|
});
|
|
1544
1530
|
s.unmaskedValue = this.masked.unmaskedValue, this.masked = s;
|
|
@@ -1917,13 +1903,13 @@ class re {
|
|
|
1917
1903
|
if ([e, a] = this.doPrepareChar(e, s), e && (a = a.aggregate(this._appendCharRaw(e, s)), !a.rawInserted && this.autofix === "pad")) {
|
|
1918
1904
|
const i = this.state;
|
|
1919
1905
|
this.state = r;
|
|
1920
|
-
let
|
|
1906
|
+
let l = this.pad(s);
|
|
1921
1907
|
const u = this._appendCharRaw(e, s);
|
|
1922
|
-
|
|
1908
|
+
l = l.aggregate(u), u.rawInserted || l.equals(a) ? a = l : this.state = i;
|
|
1923
1909
|
}
|
|
1924
1910
|
if (a.inserted) {
|
|
1925
|
-
let i,
|
|
1926
|
-
if (
|
|
1911
|
+
let i, l = this.doValidate(s) !== !1;
|
|
1912
|
+
if (l && n != null) {
|
|
1927
1913
|
const u = this.state;
|
|
1928
1914
|
if (this.overwrite === !0) {
|
|
1929
1915
|
i = n.state;
|
|
@@ -1931,15 +1917,15 @@ class re {
|
|
|
1931
1917
|
n.unshift(this.displayValue.length - a.tailShift);
|
|
1932
1918
|
}
|
|
1933
1919
|
let d = this.appendTail(n);
|
|
1934
|
-
if (
|
|
1920
|
+
if (l = d.rawInserted.length === n.toString().length, !(l && d.inserted) && this.overwrite === "shift") {
|
|
1935
1921
|
this.state = u, i = n.state;
|
|
1936
1922
|
for (let h = 0; h < a.rawInserted.length; ++h)
|
|
1937
1923
|
n.shift();
|
|
1938
|
-
d = this.appendTail(n),
|
|
1924
|
+
d = this.appendTail(n), l = d.rawInserted.length === n.toString().length;
|
|
1939
1925
|
}
|
|
1940
|
-
|
|
1926
|
+
l && d.inserted && (this.state = u);
|
|
1941
1927
|
}
|
|
1942
|
-
|
|
1928
|
+
l || (a = new M(), this.state = r, n && i && (n.state = i));
|
|
1943
1929
|
}
|
|
1944
1930
|
return a;
|
|
1945
1931
|
}
|
|
@@ -1959,9 +1945,9 @@ class re {
|
|
|
1959
1945
|
let a;
|
|
1960
1946
|
[e, a] = this.doPrepare(e, s);
|
|
1961
1947
|
for (let i = 0; i < e.length; ++i) {
|
|
1962
|
-
const
|
|
1963
|
-
if (!
|
|
1964
|
-
a.aggregate(
|
|
1948
|
+
const l = this._appendChar(e[i], s, r);
|
|
1949
|
+
if (!l.rawInserted && !this.doSkipInvalid(e[i], s, r)) break;
|
|
1950
|
+
a.aggregate(l);
|
|
1965
1951
|
}
|
|
1966
1952
|
return (this.eager === !0 || this.eager === "append") && s != null && s.input && e && a.aggregate(this._appendEager()), r != null && (a.tailShift += this.appendTail(r).tailShift), a;
|
|
1967
1953
|
}
|
|
@@ -2004,7 +1990,7 @@ class re {
|
|
|
2004
1990
|
n === void 0 && (n = ""), r === void 0 && (r = S.NONE), a === void 0 && (a = {
|
|
2005
1991
|
input: !0
|
|
2006
1992
|
});
|
|
2007
|
-
const i = e + s,
|
|
1993
|
+
const i = e + s, l = this.extractTail(i), u = this.eager === !0 || this.eager === "remove";
|
|
2008
1994
|
let d;
|
|
2009
1995
|
u && (r = $n(r), d = this.extractInput(0, i, {
|
|
2010
1996
|
raw: !0
|
|
@@ -2018,8 +2004,8 @@ class re {
|
|
|
2018
2004
|
f.aggregate(new M({
|
|
2019
2005
|
tailShift: -1
|
|
2020
2006
|
})).aggregate(this.remove(_ - 1));
|
|
2021
|
-
} else r === S.FORCE_RIGHT &&
|
|
2022
|
-
return f.aggregate(this.append(n, a,
|
|
2007
|
+
} else r === S.FORCE_RIGHT && l.unshift();
|
|
2008
|
+
return f.aggregate(this.append(n, a, l));
|
|
2023
2009
|
}
|
|
2024
2010
|
maskEquals(e) {
|
|
2025
2011
|
return this.mask === e;
|
|
@@ -2071,11 +2057,11 @@ class qe {
|
|
|
2071
2057
|
const s = new M();
|
|
2072
2058
|
for (let n = 0; n < this.chunks.length; ++n) {
|
|
2073
2059
|
const r = this.chunks[n], a = e._mapPosToBlock(e.displayValue.length), i = r.stop;
|
|
2074
|
-
let
|
|
2060
|
+
let l;
|
|
2075
2061
|
if (i != null && // if block not found or stop is behind lastBlock
|
|
2076
2062
|
(!a || a.index <= i) && ((r instanceof qe || // for continuous block also check if stop is exist
|
|
2077
|
-
e._stops.indexOf(i) >= 0) && s.aggregate(e._appendPlaceholder(i)),
|
|
2078
|
-
const u =
|
|
2063
|
+
e._stops.indexOf(i) >= 0) && s.aggregate(e._appendPlaceholder(i)), l = r instanceof qe && e._blocks[i]), l) {
|
|
2064
|
+
const u = l.appendTail(r);
|
|
2079
2065
|
s.aggregate(u);
|
|
2080
2066
|
const d = r.toString().slice(u.rawInserted.length);
|
|
2081
2067
|
d && s.aggregate(e.append(d, {
|
|
@@ -2344,16 +2330,16 @@ class dt {
|
|
|
2344
2330
|
placeholderChar: r,
|
|
2345
2331
|
displayChar: a,
|
|
2346
2332
|
lazy: i,
|
|
2347
|
-
eager:
|
|
2333
|
+
eager: l,
|
|
2348
2334
|
...u
|
|
2349
2335
|
} = e;
|
|
2350
|
-
this.masked =
|
|
2336
|
+
this.masked = De(u), Object.assign(this, {
|
|
2351
2337
|
parent: s,
|
|
2352
2338
|
isOptional: n,
|
|
2353
2339
|
placeholderChar: r,
|
|
2354
2340
|
displayChar: a,
|
|
2355
2341
|
lazy: i,
|
|
2356
|
-
eager:
|
|
2342
|
+
eager: l
|
|
2357
2343
|
});
|
|
2358
2344
|
}
|
|
2359
2345
|
reset() {
|
|
@@ -2508,7 +2494,7 @@ class ae extends re {
|
|
|
2508
2494
|
const {
|
|
2509
2495
|
expose: _,
|
|
2510
2496
|
repeat: y,
|
|
2511
|
-
...
|
|
2497
|
+
...b
|
|
2512
2498
|
} = Je(this.blocks[f]), v = {
|
|
2513
2499
|
lazy: this.lazy,
|
|
2514
2500
|
eager: this.eager,
|
|
@@ -2516,18 +2502,18 @@ class ae extends re {
|
|
|
2516
2502
|
displayChar: this.displayChar,
|
|
2517
2503
|
overwrite: this.overwrite,
|
|
2518
2504
|
autofix: this.autofix,
|
|
2519
|
-
...
|
|
2505
|
+
...b,
|
|
2520
2506
|
repeat: y,
|
|
2521
2507
|
parent: this
|
|
2522
2508
|
}, m = y != null ? new D.RepeatBlock(
|
|
2523
2509
|
v
|
|
2524
2510
|
/* TODO */
|
|
2525
|
-
) :
|
|
2511
|
+
) : De(v);
|
|
2526
2512
|
m && (this._blocks.push(m), _ && (this.exposeBlock = m), this._maskedBlocks[f] || (this._maskedBlocks[f] = []), this._maskedBlocks[f].push(this._blocks.length - 1)), a += f.length - 1;
|
|
2527
2513
|
continue;
|
|
2528
2514
|
}
|
|
2529
2515
|
}
|
|
2530
|
-
let i = s[a],
|
|
2516
|
+
let i = s[a], l = i in e;
|
|
2531
2517
|
if (i === ae.STOP_CHAR) {
|
|
2532
2518
|
this._stops.push(this._blocks.length);
|
|
2533
2519
|
continue;
|
|
@@ -2542,9 +2528,9 @@ class ae extends re {
|
|
|
2542
2528
|
}
|
|
2543
2529
|
if (i === ae.ESCAPE_CHAR) {
|
|
2544
2530
|
if (++a, i = s[a], !i) break;
|
|
2545
|
-
|
|
2531
|
+
l = !1;
|
|
2546
2532
|
}
|
|
2547
|
-
const u =
|
|
2533
|
+
const u = l ? new dt({
|
|
2548
2534
|
isOptional: r,
|
|
2549
2535
|
lazy: this.lazy,
|
|
2550
2536
|
eager: this.eager,
|
|
@@ -2648,9 +2634,9 @@ class ae extends re {
|
|
|
2648
2634
|
s === void 0 && (s = {});
|
|
2649
2635
|
const n = this._mapPosToBlock(this.displayValue.length), r = new M();
|
|
2650
2636
|
if (!n) return r;
|
|
2651
|
-
for (let i = n.index,
|
|
2637
|
+
for (let i = n.index, l; l = this._blocks[i]; ++i) {
|
|
2652
2638
|
var a;
|
|
2653
|
-
const u =
|
|
2639
|
+
const u = l._appendChar(e, {
|
|
2654
2640
|
...s,
|
|
2655
2641
|
_beforeTailState: (a = s._beforeTailState) == null || (a = a._blocks) == null ? void 0 : a[i]
|
|
2656
2642
|
});
|
|
@@ -2661,16 +2647,16 @@ class ae extends re {
|
|
|
2661
2647
|
extractTail(e, s) {
|
|
2662
2648
|
e === void 0 && (e = 0), s === void 0 && (s = this.displayValue.length);
|
|
2663
2649
|
const n = new qe();
|
|
2664
|
-
return e === s || this._forEachBlocksInRange(e, s, (r, a, i,
|
|
2665
|
-
const u = r.extractTail(i,
|
|
2650
|
+
return e === s || this._forEachBlocksInRange(e, s, (r, a, i, l) => {
|
|
2651
|
+
const u = r.extractTail(i, l);
|
|
2666
2652
|
u.stop = this._findStopBefore(a), u.from = this._blockStartPos(a), u instanceof qe && (u.blockIndex = a), n.extend(u);
|
|
2667
2653
|
}), n;
|
|
2668
2654
|
}
|
|
2669
2655
|
extractInput(e, s, n) {
|
|
2670
2656
|
if (e === void 0 && (e = 0), s === void 0 && (s = this.displayValue.length), n === void 0 && (n = {}), e === s) return "";
|
|
2671
2657
|
let r = "";
|
|
2672
|
-
return this._forEachBlocksInRange(e, s, (a, i,
|
|
2673
|
-
r += a.extractInput(
|
|
2658
|
+
return this._forEachBlocksInRange(e, s, (a, i, l, u) => {
|
|
2659
|
+
r += a.extractInput(l, u, n);
|
|
2674
2660
|
}), r;
|
|
2675
2661
|
}
|
|
2676
2662
|
_findStopBefore(e) {
|
|
@@ -2691,8 +2677,8 @@ class ae extends re {
|
|
|
2691
2677
|
const r = n.index, a = e ?? this._blocks.length;
|
|
2692
2678
|
return this._blocks.slice(r, a).forEach((i) => {
|
|
2693
2679
|
if (!i.lazy || e != null) {
|
|
2694
|
-
var
|
|
2695
|
-
s.aggregate(i._appendPlaceholder((
|
|
2680
|
+
var l;
|
|
2681
|
+
s.aggregate(i._appendPlaceholder((l = i._blocks) == null ? void 0 : l.length));
|
|
2696
2682
|
}
|
|
2697
2683
|
}), s;
|
|
2698
2684
|
}
|
|
@@ -2715,8 +2701,8 @@ class ae extends re {
|
|
|
2715
2701
|
s === void 0 && (s = this.displayValue.length);
|
|
2716
2702
|
const r = this._mapPosToBlock(e);
|
|
2717
2703
|
if (r) {
|
|
2718
|
-
const a = this._mapPosToBlock(s), i = a && r.index === a.index,
|
|
2719
|
-
if (n(this._blocks[r.index], r.index,
|
|
2704
|
+
const a = this._mapPosToBlock(s), i = a && r.index === a.index, l = r.offset, u = a && i ? a.offset : this._blocks[r.index].displayValue.length;
|
|
2705
|
+
if (n(this._blocks[r.index], r.index, l, u), a && !i) {
|
|
2720
2706
|
for (let d = r.index + 1; d < a.index; ++d)
|
|
2721
2707
|
n(this._blocks[d], d, 0, this._blocks[d].displayValue.length);
|
|
2722
2708
|
n(this._blocks[a.index], a.index, 0, a.offset);
|
|
@@ -2726,8 +2712,8 @@ class ae extends re {
|
|
|
2726
2712
|
remove(e, s) {
|
|
2727
2713
|
e === void 0 && (e = 0), s === void 0 && (s = this.displayValue.length);
|
|
2728
2714
|
const n = super.remove(e, s);
|
|
2729
|
-
return this._forEachBlocksInRange(e, s, (r, a, i,
|
|
2730
|
-
n.aggregate(r.remove(i,
|
|
2715
|
+
return this._forEachBlocksInRange(e, s, (r, a, i, l) => {
|
|
2716
|
+
n.aggregate(r.remove(i, l));
|
|
2731
2717
|
}), n;
|
|
2732
2718
|
}
|
|
2733
2719
|
nearestInputPos(e, s) {
|
|
@@ -2751,8 +2737,8 @@ class ae extends re {
|
|
|
2751
2737
|
totalInputPositions(e, s) {
|
|
2752
2738
|
e === void 0 && (e = 0), s === void 0 && (s = this.displayValue.length);
|
|
2753
2739
|
let n = 0;
|
|
2754
|
-
return this._forEachBlocksInRange(e, s, (r, a, i,
|
|
2755
|
-
n += r.totalInputPositions(i,
|
|
2740
|
+
return this._forEachBlocksInRange(e, s, (r, a, i, l) => {
|
|
2741
|
+
n += r.totalInputPositions(i, l);
|
|
2756
2742
|
}), n;
|
|
2757
2743
|
}
|
|
2758
2744
|
/** Get block by name */
|
|
@@ -2804,9 +2790,9 @@ class it extends ae {
|
|
|
2804
2790
|
...i
|
|
2805
2791
|
} = e;
|
|
2806
2792
|
this.to = s, this.from = n, this.maxLength = Math.max(String(s).length, r), this.autofix = a;
|
|
2807
|
-
const
|
|
2793
|
+
const l = String(this.from).padStart(this.maxLength, "0"), u = String(this.to).padStart(this.maxLength, "0");
|
|
2808
2794
|
let d = 0;
|
|
2809
|
-
for (; d < u.length && u[d] ===
|
|
2795
|
+
for (; d < u.length && u[d] === l[d]; ) ++d;
|
|
2810
2796
|
i.mask = u.slice(0, d).replace(/0/g, "\\0") + "0".repeat(this.maxLength - d), super._update(i);
|
|
2811
2797
|
}
|
|
2812
2798
|
get isComplete() {
|
|
@@ -2848,7 +2834,7 @@ class it extends ae {
|
|
|
2848
2834
|
}
|
|
2849
2835
|
D.MaskedRange = it;
|
|
2850
2836
|
const Un = "d{.}`m{.}`Y";
|
|
2851
|
-
class
|
|
2837
|
+
class Oe extends ae {
|
|
2852
2838
|
static extractPatternOptions(e) {
|
|
2853
2839
|
const {
|
|
2854
2840
|
mask: s,
|
|
@@ -2866,8 +2852,8 @@ class De extends ae {
|
|
|
2866
2852
|
/** Format typed value to string */
|
|
2867
2853
|
/** Parse string to get typed value */
|
|
2868
2854
|
constructor(e) {
|
|
2869
|
-
super(
|
|
2870
|
-
...
|
|
2855
|
+
super(Oe.extractPatternOptions({
|
|
2856
|
+
...Oe.DEFAULTS,
|
|
2871
2857
|
...e
|
|
2872
2858
|
}));
|
|
2873
2859
|
}
|
|
@@ -2881,9 +2867,9 @@ class De extends ae {
|
|
|
2881
2867
|
blocks: r,
|
|
2882
2868
|
...a
|
|
2883
2869
|
} = {
|
|
2884
|
-
...
|
|
2870
|
+
...Oe.DEFAULTS,
|
|
2885
2871
|
...e
|
|
2886
|
-
}, i = Object.assign({},
|
|
2872
|
+
}, i = Object.assign({}, Oe.GET_DEFAULT_BLOCKS());
|
|
2887
2873
|
e.min && (i.Y.from = e.min.getFullYear()), e.max && (i.Y.to = e.max.getFullYear()), e.min && e.max && i.Y.from === i.Y.to && (i.m.from = e.min.getMonth() + 1, i.m.to = e.max.getMonth() + 1, i.m.from === i.m.to && (i.d.from = e.min.getDate(), i.d.to = e.max.getDate())), Object.assign(i, this.blocks, r), super._update({
|
|
2888
2874
|
...a,
|
|
2889
2875
|
mask: $e(s) ? s : n,
|
|
@@ -2915,10 +2901,10 @@ class De extends ae {
|
|
|
2915
2901
|
return e === Date || super.maskEquals(e);
|
|
2916
2902
|
}
|
|
2917
2903
|
optionsIsChanged(e) {
|
|
2918
|
-
return super.optionsIsChanged(
|
|
2904
|
+
return super.optionsIsChanged(Oe.extractPatternOptions(e));
|
|
2919
2905
|
}
|
|
2920
2906
|
}
|
|
2921
|
-
|
|
2907
|
+
Oe.GET_DEFAULT_BLOCKS = () => ({
|
|
2922
2908
|
d: {
|
|
2923
2909
|
mask: it,
|
|
2924
2910
|
from: 1,
|
|
@@ -2937,7 +2923,7 @@ De.GET_DEFAULT_BLOCKS = () => ({
|
|
|
2937
2923
|
to: 9999
|
|
2938
2924
|
}
|
|
2939
2925
|
});
|
|
2940
|
-
|
|
2926
|
+
Oe.DEFAULTS = {
|
|
2941
2927
|
...ae.DEFAULTS,
|
|
2942
2928
|
mask: Date,
|
|
2943
2929
|
pattern: Un,
|
|
@@ -2951,7 +2937,7 @@ De.DEFAULTS = {
|
|
|
2951
2937
|
return new Date(r, n - 1, s);
|
|
2952
2938
|
}
|
|
2953
2939
|
};
|
|
2954
|
-
D.MaskedDate =
|
|
2940
|
+
D.MaskedDate = Oe;
|
|
2955
2941
|
class gt extends re {
|
|
2956
2942
|
constructor(e) {
|
|
2957
2943
|
super({
|
|
@@ -2967,7 +2953,7 @@ class gt extends re {
|
|
|
2967
2953
|
const {
|
|
2968
2954
|
expose: n,
|
|
2969
2955
|
...r
|
|
2970
|
-
} = Je(s), a =
|
|
2956
|
+
} = Je(s), a = De({
|
|
2971
2957
|
overwrite: this._overwrite,
|
|
2972
2958
|
eager: this._eager,
|
|
2973
2959
|
skipInvalid: this._skipInvalid,
|
|
@@ -2983,12 +2969,12 @@ class gt extends re {
|
|
|
2983
2969
|
}
|
|
2984
2970
|
_applyDispatch(e, s, n) {
|
|
2985
2971
|
e === void 0 && (e = ""), s === void 0 && (s = {}), n === void 0 && (n = "");
|
|
2986
|
-
const r = s.tail && s._beforeTailState != null ? s._beforeTailState._value : this.value, a = this.rawInputValue, i = s.tail && s._beforeTailState != null ? s._beforeTailState._rawInputValue : a,
|
|
2972
|
+
const r = s.tail && s._beforeTailState != null ? s._beforeTailState._value : this.value, a = this.rawInputValue, i = s.tail && s._beforeTailState != null ? s._beforeTailState._rawInputValue : a, l = a.slice(i.length), u = this.currentMask, d = new M(), h = u == null ? void 0 : u.state;
|
|
2987
2973
|
return this.currentMask = this.doDispatch(e, {
|
|
2988
2974
|
...s
|
|
2989
2975
|
}, n), this.currentMask && (this.currentMask !== u ? (this.currentMask.reset(), i && (this.currentMask.append(i, {
|
|
2990
2976
|
raw: !0
|
|
2991
|
-
}), d.tailShift = this.currentMask.value.length - r.length),
|
|
2977
|
+
}), d.tailShift = this.currentMask.value.length - r.length), l && (d.tailShift += this.currentMask.append(l, {
|
|
2992
2978
|
raw: !0,
|
|
2993
2979
|
tail: !0
|
|
2994
2980
|
}).tailShift)) : h && (this.currentMask.state = h)), d;
|
|
@@ -3095,7 +3081,7 @@ class gt extends re {
|
|
|
3095
3081
|
currentMask: r,
|
|
3096
3082
|
...a
|
|
3097
3083
|
} = e;
|
|
3098
|
-
s && this.compiledMasks.forEach((i,
|
|
3084
|
+
s && this.compiledMasks.forEach((i, l) => i.state = s[l]), n != null && (this.currentMask = n, this.currentMask.state = r), super.state = a;
|
|
3099
3085
|
}
|
|
3100
3086
|
extractInput(e, s, n) {
|
|
3101
3087
|
return this.currentMask ? this.currentMask.extractInput(e, s, n) : "";
|
|
@@ -3152,17 +3138,17 @@ gt.DEFAULTS = {
|
|
|
3152
3138
|
...re.DEFAULTS,
|
|
3153
3139
|
dispatch: (t, e, s, n) => {
|
|
3154
3140
|
if (!e.compiledMasks.length) return;
|
|
3155
|
-
const r = e.rawInputValue, a = e.compiledMasks.map((i,
|
|
3141
|
+
const r = e.rawInputValue, a = e.compiledMasks.map((i, l) => {
|
|
3156
3142
|
const u = e.currentMask === i, d = u ? i.displayValue.length : i.nearestInputPos(i.displayValue.length, S.FORCE_LEFT);
|
|
3157
3143
|
return i.rawInputValue !== r ? (i.reset(), i.append(r, {
|
|
3158
3144
|
raw: !0
|
|
3159
3145
|
})) : u || i.remove(d), i.append(t, e.currentMaskFlags(s)), i.appendTail(n), {
|
|
3160
|
-
index:
|
|
3146
|
+
index: l,
|
|
3161
3147
|
weight: i.rawInputValue.length,
|
|
3162
3148
|
totalInputPositions: i.totalInputPositions(0, Math.max(d, i.nearestInputPos(i.displayValue.length, S.FORCE_LEFT)))
|
|
3163
3149
|
};
|
|
3164
3150
|
});
|
|
3165
|
-
return a.sort((i,
|
|
3151
|
+
return a.sort((i, l) => l.weight - i.weight || l.totalInputPositions - i.totalInputPositions), e.compiledMasks[a[0].index];
|
|
3166
3152
|
}
|
|
3167
3153
|
};
|
|
3168
3154
|
D.MaskedDynamic = gt;
|
|
@@ -3182,7 +3168,7 @@ class mt extends ae {
|
|
|
3182
3168
|
...n
|
|
3183
3169
|
} = e;
|
|
3184
3170
|
if (s) {
|
|
3185
|
-
const r = s.map((
|
|
3171
|
+
const r = s.map((l) => l.length), a = Math.min(...r), i = Math.max(...r) - a;
|
|
3186
3172
|
n.mask = "*".repeat(a), i && (n.mask += "[" + "*".repeat(i) + "]"), this.enum = s;
|
|
3187
3173
|
}
|
|
3188
3174
|
super._update(n);
|
|
@@ -3191,9 +3177,9 @@ class mt extends ae {
|
|
|
3191
3177
|
s === void 0 && (s = {});
|
|
3192
3178
|
const n = Math.min(this.nearestInputPos(0, S.FORCE_RIGHT), this.value.length), r = this.enum.filter((a) => this.matchValue(a, this.unmaskedValue + e, n));
|
|
3193
3179
|
if (r.length) {
|
|
3194
|
-
r.length === 1 && this._forEachBlocksInRange(0, this.value.length, (i,
|
|
3195
|
-
const u = r[0][
|
|
3196
|
-
|
|
3180
|
+
r.length === 1 && this._forEachBlocksInRange(0, this.value.length, (i, l) => {
|
|
3181
|
+
const u = r[0][l];
|
|
3182
|
+
l >= this.value.length || u === i.value || (i.reset(), i._appendChar(u, s));
|
|
3197
3183
|
});
|
|
3198
3184
|
const a = super._appendCharRaw(r[0][this.value.length], s);
|
|
3199
3185
|
return r.length === 1 && r[0].slice(this.unmaskedValue.length).split("").forEach((i) => a.aggregate(super._appendCharRaw(i))), a;
|
|
@@ -3209,7 +3195,7 @@ class mt extends ae {
|
|
|
3209
3195
|
if (e === void 0 && (e = 0), s === void 0 && (s = this.displayValue.length), e === s) return new M();
|
|
3210
3196
|
const n = Math.min(super.nearestInputPos(0, S.FORCE_RIGHT), this.value.length);
|
|
3211
3197
|
let r;
|
|
3212
|
-
for (r = e; r >= 0 && !(this.enum.filter((
|
|
3198
|
+
for (r = e; r >= 0 && !(this.enum.filter((l) => this.matchValue(l, this.value.slice(n, r), n)).length > 1); --r)
|
|
3213
3199
|
;
|
|
3214
3200
|
const a = super.remove(r, s);
|
|
3215
3201
|
return a.tailShift += r - e, a;
|
|
@@ -3312,13 +3298,13 @@ class he extends re {
|
|
|
3312
3298
|
const a = this._value;
|
|
3313
3299
|
this._value += e;
|
|
3314
3300
|
const i = this.number;
|
|
3315
|
-
let
|
|
3316
|
-
if (
|
|
3301
|
+
let l = !isNaN(i), u = !1;
|
|
3302
|
+
if (l) {
|
|
3317
3303
|
let _;
|
|
3318
|
-
this.min != null && this.min < 0 && this.number < this.min && (_ = this.min), this.max != null && this.max > 0 && this.number > this.max && (_ = this.max), _ != null && (this.autofix ? (this._value = this.format(_, this).replace(he.UNMASKED_RADIX, this.radix), u || (u = a === this._value && !s.tail)) :
|
|
3304
|
+
this.min != null && this.min < 0 && this.number < this.min && (_ = this.min), this.max != null && this.max > 0 && this.number > this.max && (_ = this.max), _ != null && (this.autofix ? (this._value = this.format(_, this).replace(he.UNMASKED_RADIX, this.radix), u || (u = a === this._value && !s.tail)) : l = !1), l && (l = !!this._value.match(this._numberRegExp));
|
|
3319
3305
|
}
|
|
3320
3306
|
let d;
|
|
3321
|
-
|
|
3307
|
+
l ? d = new M({
|
|
3322
3308
|
inserted: this._value.slice(a.length),
|
|
3323
3309
|
rawInserted: u ? "" : e,
|
|
3324
3310
|
skip: u
|
|
@@ -3452,7 +3438,7 @@ const Ot = {
|
|
|
3452
3438
|
};
|
|
3453
3439
|
function Cs(t, e, s) {
|
|
3454
3440
|
e === void 0 && (e = Ot.MASKED), s === void 0 && (s = Ot.MASKED);
|
|
3455
|
-
const n =
|
|
3441
|
+
const n = De(t);
|
|
3456
3442
|
return (r) => n.runIsolated((a) => (a[e] = r, a[s]));
|
|
3457
3443
|
}
|
|
3458
3444
|
function Hn(t, e, s, n) {
|
|
@@ -3483,24 +3469,24 @@ class Wn extends ae {
|
|
|
3483
3469
|
...i
|
|
3484
3470
|
} = Je(e);
|
|
3485
3471
|
this._blockOpts = Object.assign({}, this._blockOpts, i);
|
|
3486
|
-
const
|
|
3487
|
-
this.repeat = (s = (n = a ??
|
|
3472
|
+
const l = De(this._blockOpts);
|
|
3473
|
+
this.repeat = (s = (n = a ?? l.repeat) != null ? n : this.repeat) != null ? s : 1 / 0, super._update({
|
|
3488
3474
|
mask: "m".repeat(Math.max(this.repeatTo === 1 / 0 && ((r = this._blocks) == null ? void 0 : r.length) || 0, this.repeatFrom)),
|
|
3489
3475
|
blocks: {
|
|
3490
|
-
m:
|
|
3476
|
+
m: l
|
|
3491
3477
|
},
|
|
3492
|
-
eager:
|
|
3493
|
-
overwrite:
|
|
3494
|
-
skipInvalid:
|
|
3495
|
-
lazy:
|
|
3496
|
-
placeholderChar:
|
|
3497
|
-
displayChar:
|
|
3478
|
+
eager: l.eager,
|
|
3479
|
+
overwrite: l.overwrite,
|
|
3480
|
+
skipInvalid: l.skipInvalid,
|
|
3481
|
+
lazy: l.lazy,
|
|
3482
|
+
placeholderChar: l.placeholderChar,
|
|
3483
|
+
displayChar: l.displayChar
|
|
3498
3484
|
});
|
|
3499
3485
|
}
|
|
3500
3486
|
_allocateBlock(e) {
|
|
3501
3487
|
if (e < this._blocks.length) return this._blocks[e];
|
|
3502
3488
|
if (this.repeatTo === 1 / 0 || this._blocks.length < this.repeatTo)
|
|
3503
|
-
return this._blocks.push(
|
|
3489
|
+
return this._blocks.push(De(this._blockOpts)), this.mask += "m", this._blocks[this._blocks.length - 1];
|
|
3504
3490
|
}
|
|
3505
3491
|
_appendCharRaw(e, s) {
|
|
3506
3492
|
s === void 0 && (s = {});
|
|
@@ -3512,10 +3498,10 @@ class Wn extends ae {
|
|
|
3512
3498
|
d = (i = this._blocks[u]) != null ? i : h = !h && this._allocateBlock(u);
|
|
3513
3499
|
++u
|
|
3514
3500
|
) {
|
|
3515
|
-
var r, a, i,
|
|
3501
|
+
var r, a, i, l;
|
|
3516
3502
|
const f = d._appendChar(e, {
|
|
3517
3503
|
...s,
|
|
3518
|
-
_beforeTailState: (
|
|
3504
|
+
_beforeTailState: (l = s._beforeTailState) == null || (l = l._blocks) == null ? void 0 : l[u]
|
|
3519
3505
|
});
|
|
3520
3506
|
if (f.skip && h) {
|
|
3521
3507
|
this._blocks.pop(), this.mask = this.mask.slice(1);
|
|
@@ -3531,10 +3517,10 @@ class Wn extends ae {
|
|
|
3531
3517
|
const a = Math.max(((n = this._mapPosToBlock(e)) == null ? void 0 : n.index) || 0, this.repeatFrom, 0);
|
|
3532
3518
|
let i;
|
|
3533
3519
|
s != null && (i = (r = this._mapPosToBlock(s)) == null ? void 0 : r.index), i == null && (i = this._blocks.length - 1);
|
|
3534
|
-
let
|
|
3535
|
-
for (let u = i; a <= u && !this._blocks[u].unmaskedValue; --u, ++
|
|
3520
|
+
let l = 0;
|
|
3521
|
+
for (let u = i; a <= u && !this._blocks[u].unmaskedValue; --u, ++l)
|
|
3536
3522
|
;
|
|
3537
|
-
|
|
3523
|
+
l && (this._blocks.splice(i - l + 1, l), this.mask = this.mask.slice(l));
|
|
3538
3524
|
}
|
|
3539
3525
|
reset() {
|
|
3540
3526
|
super.reset(), this._trimEmptyTail();
|
|
@@ -3561,50 +3547,50 @@ try {
|
|
|
3561
3547
|
}
|
|
3562
3548
|
const xs = {
|
|
3563
3549
|
// common
|
|
3564
|
-
mask:
|
|
3565
|
-
value:
|
|
3566
|
-
unmask:
|
|
3567
|
-
prepare:
|
|
3568
|
-
prepareChar:
|
|
3569
|
-
validate:
|
|
3570
|
-
commit:
|
|
3571
|
-
overwrite:
|
|
3572
|
-
eager:
|
|
3573
|
-
skipInvalid:
|
|
3550
|
+
mask: o.oneOfType([o.array, o.func, o.string, o.instanceOf(RegExp), o.oneOf([Date, Number, D.Masked]), o.instanceOf(D.Masked)]),
|
|
3551
|
+
value: o.any,
|
|
3552
|
+
unmask: o.oneOfType([o.bool, o.oneOf(["typed"])]),
|
|
3553
|
+
prepare: o.func,
|
|
3554
|
+
prepareChar: o.func,
|
|
3555
|
+
validate: o.func,
|
|
3556
|
+
commit: o.func,
|
|
3557
|
+
overwrite: o.oneOfType([o.bool, o.oneOf(["shift"])]),
|
|
3558
|
+
eager: o.oneOfType([o.bool, o.oneOf(["append", "remove"])]),
|
|
3559
|
+
skipInvalid: o.bool,
|
|
3574
3560
|
// events
|
|
3575
|
-
onAccept:
|
|
3576
|
-
onComplete:
|
|
3561
|
+
onAccept: o.func,
|
|
3562
|
+
onComplete: o.func,
|
|
3577
3563
|
// pattern
|
|
3578
|
-
placeholderChar:
|
|
3579
|
-
displayChar:
|
|
3580
|
-
lazy:
|
|
3581
|
-
definitions:
|
|
3582
|
-
blocks:
|
|
3564
|
+
placeholderChar: o.string,
|
|
3565
|
+
displayChar: o.string,
|
|
3566
|
+
lazy: o.bool,
|
|
3567
|
+
definitions: o.object,
|
|
3568
|
+
blocks: o.object,
|
|
3583
3569
|
// enum
|
|
3584
|
-
enum:
|
|
3570
|
+
enum: o.arrayOf(o.string),
|
|
3585
3571
|
// range
|
|
3586
|
-
maxLength:
|
|
3587
|
-
from:
|
|
3588
|
-
to:
|
|
3572
|
+
maxLength: o.number,
|
|
3573
|
+
from: o.number,
|
|
3574
|
+
to: o.number,
|
|
3589
3575
|
// date
|
|
3590
|
-
pattern:
|
|
3591
|
-
format:
|
|
3592
|
-
parse:
|
|
3593
|
-
autofix:
|
|
3576
|
+
pattern: o.string,
|
|
3577
|
+
format: o.func,
|
|
3578
|
+
parse: o.func,
|
|
3579
|
+
autofix: o.oneOfType([o.bool, o.oneOf(["pad"])]),
|
|
3594
3580
|
// number
|
|
3595
|
-
radix:
|
|
3596
|
-
thousandsSeparator:
|
|
3597
|
-
mapToRadix:
|
|
3598
|
-
scale:
|
|
3599
|
-
normalizeZeros:
|
|
3600
|
-
padFractionalZeros:
|
|
3601
|
-
min:
|
|
3602
|
-
max:
|
|
3581
|
+
radix: o.string,
|
|
3582
|
+
thousandsSeparator: o.string,
|
|
3583
|
+
mapToRadix: o.arrayOf(o.string),
|
|
3584
|
+
scale: o.number,
|
|
3585
|
+
normalizeZeros: o.bool,
|
|
3586
|
+
padFractionalZeros: o.bool,
|
|
3587
|
+
min: o.oneOfType([o.number, o.instanceOf(Date)]),
|
|
3588
|
+
max: o.oneOfType([o.number, o.instanceOf(Date)]),
|
|
3603
3589
|
// dynamic
|
|
3604
|
-
dispatch:
|
|
3590
|
+
dispatch: o.func,
|
|
3605
3591
|
// ref
|
|
3606
|
-
inputRef:
|
|
3607
|
-
current:
|
|
3592
|
+
inputRef: o.oneOfType([o.func, o.shape({
|
|
3593
|
+
current: o.object
|
|
3608
3594
|
})])
|
|
3609
3595
|
}, ws = Object.keys(xs).filter((t) => t !== "value"), Yn = ["value", "unmask", "onAccept", "onComplete", "inputRef"], Xn = ws.filter((t) => Yn.indexOf(t) < 0);
|
|
3610
3596
|
function Kn(t) {
|
|
@@ -3621,8 +3607,8 @@ function Kn(t) {
|
|
|
3621
3607
|
if (i.mask)
|
|
3622
3608
|
this.maskRef ? (this.maskRef.updateOptions(i), "value" in a && a.value !== void 0 && (this.maskValue = a.value)) : this.initMask(i);
|
|
3623
3609
|
else if (this.destroyMask(), "value" in a && a.value !== void 0) {
|
|
3624
|
-
var
|
|
3625
|
-
(
|
|
3610
|
+
var l;
|
|
3611
|
+
(l = this.element) != null && l.isContentEditable && this.element.tagName !== "INPUT" && this.element.tagName !== "TEXTAREA" ? this.element.textContent = a.value : this.element.value = a.value;
|
|
3626
3612
|
}
|
|
3627
3613
|
}
|
|
3628
3614
|
componentWillUnmount() {
|
|
@@ -3641,16 +3627,16 @@ function Kn(t) {
|
|
|
3641
3627
|
const {
|
|
3642
3628
|
...i
|
|
3643
3629
|
} = a;
|
|
3644
|
-
return Object.keys(i).filter((
|
|
3645
|
-
delete i[
|
|
3630
|
+
return Object.keys(i).filter((l) => Xn.indexOf(l) < 0).forEach((l) => {
|
|
3631
|
+
delete i[l];
|
|
3646
3632
|
}), i;
|
|
3647
3633
|
}
|
|
3648
3634
|
_extractNonMaskProps(a) {
|
|
3649
3635
|
const {
|
|
3650
3636
|
...i
|
|
3651
3637
|
} = a;
|
|
3652
|
-
return ws.forEach((
|
|
3653
|
-
|
|
3638
|
+
return ws.forEach((l) => {
|
|
3639
|
+
l !== "maxLength" && delete i[l];
|
|
3654
3640
|
}), "defaultValue" in i || (i.defaultValue = a.mask ? "" : i.value), delete i.value, i;
|
|
3655
3641
|
}
|
|
3656
3642
|
get maskValue() {
|
|
@@ -3698,9 +3684,9 @@ function Qn(t, e) {
|
|
|
3698
3684
|
ref: r = Qe(null),
|
|
3699
3685
|
defaultValue: a,
|
|
3700
3686
|
defaultUnmaskedValue: i,
|
|
3701
|
-
defaultTypedValue:
|
|
3687
|
+
defaultTypedValue: l
|
|
3702
3688
|
} = e === void 0 ? {} : e;
|
|
3703
|
-
const u = Qe(null), [d, h] = P({}), [f, _] = P(""), [y,
|
|
3689
|
+
const u = Qe(null), [d, h] = P({}), [f, _] = P(""), [y, b] = P(""), [v, m] = P(), F = xe(() => {
|
|
3704
3690
|
var p;
|
|
3705
3691
|
(p = u.current) == null || p.destroy(), u.current = null;
|
|
3706
3692
|
}, []), j = xe(() => {
|
|
@@ -3709,7 +3695,7 @@ function Qn(t, e) {
|
|
|
3709
3695
|
value: p.value,
|
|
3710
3696
|
unmaskedValue: p.unmaskedValue,
|
|
3711
3697
|
typedValue: p.typedValue
|
|
3712
|
-
}), m(p.typedValue),
|
|
3698
|
+
}), m(p.typedValue), b(p.unmaskedValue), _(p.value));
|
|
3713
3699
|
}, []), A = xe((p) => {
|
|
3714
3700
|
const x = u.current;
|
|
3715
3701
|
x && (j(), s == null || s(x.value, x, p));
|
|
@@ -3718,25 +3704,25 @@ function Qn(t, e) {
|
|
|
3718
3704
|
const {
|
|
3719
3705
|
value: p,
|
|
3720
3706
|
...x
|
|
3721
|
-
} = d,
|
|
3722
|
-
!
|
|
3707
|
+
} = d, R = u.current;
|
|
3708
|
+
!R || f === void 0 || (p !== f && (R.value = f, R.value !== f && A()), h(x));
|
|
3723
3709
|
}, [f]), Q(() => {
|
|
3724
3710
|
const {
|
|
3725
3711
|
unmaskedValue: p,
|
|
3726
3712
|
...x
|
|
3727
|
-
} = d,
|
|
3728
|
-
!
|
|
3713
|
+
} = d, R = u.current;
|
|
3714
|
+
!R || y === void 0 || (p !== y && (R.unmaskedValue = y, R.unmaskedValue !== y && A()), h(x));
|
|
3729
3715
|
}, [y]), Q(() => {
|
|
3730
3716
|
const {
|
|
3731
3717
|
typedValue: p,
|
|
3732
3718
|
...x
|
|
3733
|
-
} = d,
|
|
3734
|
-
!
|
|
3719
|
+
} = d, R = u.current;
|
|
3720
|
+
!R || v === void 0 || (p !== v && (R.typedValue = v, R.masked.typedValueEquals(v) || A()), h(x));
|
|
3735
3721
|
}, [v]), Q(() => {
|
|
3736
3722
|
const p = r.current;
|
|
3737
3723
|
if (!p || !(t != null && t.mask)) return F();
|
|
3738
3724
|
const x = u.current;
|
|
3739
|
-
x ? x == null || x.updateOptions(t) : p && t != null && t.mask && (u.current = D(p, t), j(), a !== void 0 && _(a), i !== void 0 &&
|
|
3725
|
+
x ? x == null || x.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));
|
|
3740
3726
|
}, [t, F, A]), Q(() => {
|
|
3741
3727
|
if (!u.current) return;
|
|
3742
3728
|
const p = u.current;
|
|
@@ -3749,7 +3735,7 @@ function Qn(t, e) {
|
|
|
3749
3735
|
value: f,
|
|
3750
3736
|
setValue: _,
|
|
3751
3737
|
unmaskedValue: y,
|
|
3752
|
-
setUnmaskedValue:
|
|
3738
|
+
setUnmaskedValue: b,
|
|
3753
3739
|
typedValue: v,
|
|
3754
3740
|
setTypedValue: m
|
|
3755
3741
|
};
|
|
@@ -3923,9 +3909,9 @@ const Se = {
|
|
|
3923
3909
|
testId: r = Se.props.testId.default,
|
|
3924
3910
|
className: a
|
|
3925
3911
|
}) => {
|
|
3926
|
-
const i = Qe(null), [
|
|
3912
|
+
const i = Qe(null), [l, u] = P(0), [d, h] = P(0), [f, _] = P(!1), y = e && Se.props.position.options.find(
|
|
3927
3913
|
(F) => F === e
|
|
3928
|
-
) && `${Se.class}--${e}`,
|
|
3914
|
+
) && `${Se.class}--${e}`, b = s && Se.props.placement.options.find(
|
|
3929
3915
|
(F) => F === s
|
|
3930
3916
|
) && `${Se.class}--${s}`;
|
|
3931
3917
|
let v;
|
|
@@ -3937,26 +3923,26 @@ const Se = {
|
|
|
3937
3923
|
switch (e) {
|
|
3938
3924
|
case "top":
|
|
3939
3925
|
s === "initial" ? v = {
|
|
3940
|
-
bottom:
|
|
3926
|
+
bottom: l + m,
|
|
3941
3927
|
left: -m
|
|
3942
3928
|
} : s === "end" ? v = {
|
|
3943
|
-
bottom:
|
|
3929
|
+
bottom: l + m,
|
|
3944
3930
|
right: -m
|
|
3945
3931
|
} : v = {
|
|
3946
|
-
bottom:
|
|
3932
|
+
bottom: l + m,
|
|
3947
3933
|
left: "50%",
|
|
3948
3934
|
transform: "translateX(-50%)"
|
|
3949
3935
|
};
|
|
3950
3936
|
break;
|
|
3951
3937
|
case "bottom":
|
|
3952
3938
|
s === "initial" ? v = {
|
|
3953
|
-
top:
|
|
3939
|
+
top: l + m,
|
|
3954
3940
|
left: -m
|
|
3955
3941
|
} : s === "end" ? v = {
|
|
3956
|
-
top:
|
|
3942
|
+
top: l + m,
|
|
3957
3943
|
right: -m
|
|
3958
3944
|
} : v = {
|
|
3959
|
-
top:
|
|
3945
|
+
top: l + m,
|
|
3960
3946
|
left: "50%",
|
|
3961
3947
|
transform: "translateX(-50%)"
|
|
3962
3948
|
};
|
|
@@ -4002,7 +3988,7 @@ const Se = {
|
|
|
4002
3988
|
f && /* @__PURE__ */ c(
|
|
4003
3989
|
"div",
|
|
4004
3990
|
{
|
|
4005
|
-
className: [y,
|
|
3991
|
+
className: [y, b].filter((F) => F).join(" "),
|
|
4006
3992
|
children: /* @__PURE__ */ c(
|
|
4007
3993
|
"span",
|
|
4008
3994
|
{
|
|
@@ -4019,10 +4005,10 @@ const Se = {
|
|
|
4019
4005
|
);
|
|
4020
4006
|
};
|
|
4021
4007
|
He.propTypes = {
|
|
4022
|
-
position:
|
|
4023
|
-
placement:
|
|
4024
|
-
text:
|
|
4025
|
-
testId:
|
|
4008
|
+
position: o.string,
|
|
4009
|
+
placement: o.string,
|
|
4010
|
+
text: o.oneOfType([o.string, o.node]),
|
|
4011
|
+
testId: o.string
|
|
4026
4012
|
};
|
|
4027
4013
|
He.displayName = "DsTooltip";
|
|
4028
4014
|
const et = ke.forwardRef(
|
|
@@ -4034,14 +4020,14 @@ const et = ke.forwardRef(
|
|
|
4034
4020
|
size: r = K.props.size.default,
|
|
4035
4021
|
label: a,
|
|
4036
4022
|
placeholder: i,
|
|
4037
|
-
value:
|
|
4023
|
+
value: l,
|
|
4038
4024
|
min: u,
|
|
4039
4025
|
max: d,
|
|
4040
4026
|
tooltip: h = K.props.tooltip.default,
|
|
4041
4027
|
tooltipPosition: f = K.props.tooltipPosition.default,
|
|
4042
4028
|
tooltipPlacement: _ = K.props.tooltipPlacement.default,
|
|
4043
4029
|
icon: y = K.props.icon.default,
|
|
4044
|
-
status:
|
|
4030
|
+
status: b = K.props.status.default,
|
|
4045
4031
|
feedback: v,
|
|
4046
4032
|
hasFeedback: m = K.props.hasFeedback.default,
|
|
4047
4033
|
noMargin: F = K.props.noMargin.default,
|
|
@@ -4050,8 +4036,8 @@ const et = ke.forwardRef(
|
|
|
4050
4036
|
mask: C,
|
|
4051
4037
|
onChangeHandler: p = K.props.onChangeHandler.default,
|
|
4052
4038
|
onBlurHandler: x,
|
|
4053
|
-
onKeyDownHandler:
|
|
4054
|
-
onFocusHandler:
|
|
4039
|
+
onKeyDownHandler: R,
|
|
4040
|
+
onFocusHandler: X
|
|
4055
4041
|
}, O) => {
|
|
4056
4042
|
const [te, ue] = P(!1), [ce, Ae] = P(!1), me = !!p && !!C, Ve = (T, q, J) => {
|
|
4057
4043
|
if (me && J) {
|
|
@@ -4067,36 +4053,36 @@ const et = ke.forwardRef(
|
|
|
4067
4053
|
};
|
|
4068
4054
|
p(k);
|
|
4069
4055
|
}
|
|
4070
|
-
},
|
|
4056
|
+
}, oe = be(() => typeof C == "object" ? { lazy: !0, ...C } : Qt[C] ? {
|
|
4071
4057
|
...Qt[C],
|
|
4072
4058
|
min: u,
|
|
4073
4059
|
max: d,
|
|
4074
4060
|
lazy: !0
|
|
4075
4061
|
} : { mask: C ?? "", min: u, max: d, lazy: !0 }, [C]), { ref: ve, setUnmaskedValue: Te } = Qn(
|
|
4076
|
-
|
|
4062
|
+
oe,
|
|
4077
4063
|
{
|
|
4078
4064
|
onAccept: Ve
|
|
4079
4065
|
}
|
|
4080
|
-
),
|
|
4066
|
+
), Re = (T) => {
|
|
4081
4067
|
p && !me && p(T);
|
|
4082
4068
|
}, g = (T) => {
|
|
4083
|
-
|
|
4084
|
-
},
|
|
4069
|
+
R && R(T);
|
|
4070
|
+
}, E = (T) => {
|
|
4085
4071
|
ue(!1), x && x(T);
|
|
4086
4072
|
}, V = (T) => {
|
|
4087
|
-
ue(!0),
|
|
4073
|
+
ue(!0), X && X(T);
|
|
4088
4074
|
}, B = () => {
|
|
4089
4075
|
Ae((T) => !T);
|
|
4090
|
-
},
|
|
4076
|
+
}, N = be(() => ce && s === "password" ? "text" : s, [ce, s]), w = () => {
|
|
4091
4077
|
const T = [`${K.class}`];
|
|
4092
|
-
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`),
|
|
4078
|
+
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(" ");
|
|
4093
4079
|
}, $ = be(() => {
|
|
4094
4080
|
const T = [`${K.class}__label`];
|
|
4095
|
-
return (te ||
|
|
4096
|
-
}, [
|
|
4081
|
+
return (te || l) && T.push(`${K.class}__label--active`), T.join(" ");
|
|
4082
|
+
}, [l, te]), L = () => !n && i ? i : "", U = () => b && b === "error" ? "info" : "check_circle";
|
|
4097
4083
|
return Q(() => {
|
|
4098
|
-
C && Te(
|
|
4099
|
-
}, [
|
|
4084
|
+
C && Te(l ?? "");
|
|
4085
|
+
}, [l, C, Te]), /* @__PURE__ */ I("div", { className: w(), ref: O, children: [
|
|
4100
4086
|
m && /* @__PURE__ */ c("div", { className: "ds-input__feedback", children: v && /* @__PURE__ */ I(pt, { children: [
|
|
4101
4087
|
/* @__PURE__ */ c(G, { image: U() }),
|
|
4102
4088
|
v
|
|
@@ -4111,15 +4097,15 @@ const et = ke.forwardRef(
|
|
|
4111
4097
|
max: d,
|
|
4112
4098
|
min: u,
|
|
4113
4099
|
name: t,
|
|
4114
|
-
onBlur:
|
|
4115
|
-
onChange:
|
|
4100
|
+
onBlur: E,
|
|
4101
|
+
onChange: Re,
|
|
4116
4102
|
onFocus: V,
|
|
4117
|
-
onInput:
|
|
4103
|
+
onInput: Re,
|
|
4118
4104
|
onKeyDown: g,
|
|
4119
4105
|
placeholder: L(),
|
|
4120
4106
|
ref: ve,
|
|
4121
|
-
type:
|
|
4122
|
-
...!C && { value:
|
|
4107
|
+
type: N,
|
|
4108
|
+
...!C && { value: l ?? "" }
|
|
4123
4109
|
}
|
|
4124
4110
|
),
|
|
4125
4111
|
/* @__PURE__ */ I("label", { className: $, htmlFor: t, children: [
|
|
@@ -4149,28 +4135,28 @@ const et = ke.forwardRef(
|
|
|
4149
4135
|
}
|
|
4150
4136
|
);
|
|
4151
4137
|
et.propTypes = {
|
|
4152
|
-
name:
|
|
4153
|
-
testId:
|
|
4154
|
-
type:
|
|
4155
|
-
animated:
|
|
4156
|
-
size:
|
|
4157
|
-
label:
|
|
4158
|
-
placeholder:
|
|
4159
|
-
value:
|
|
4160
|
-
min:
|
|
4161
|
-
max:
|
|
4162
|
-
tooltip:
|
|
4163
|
-
tooltipPosition:
|
|
4164
|
-
tooltipPlacement:
|
|
4165
|
-
icon:
|
|
4166
|
-
status:
|
|
4167
|
-
feedback:
|
|
4168
|
-
hasFeedback:
|
|
4169
|
-
noMargin:
|
|
4170
|
-
disabled:
|
|
4171
|
-
mask:
|
|
4172
|
-
onChangeHandler:
|
|
4173
|
-
onFocusHandler:
|
|
4138
|
+
name: o.string,
|
|
4139
|
+
testId: o.string,
|
|
4140
|
+
type: o.oneOf(K.props.type.options),
|
|
4141
|
+
animated: o.bool,
|
|
4142
|
+
size: o.oneOf(K.props.size.options),
|
|
4143
|
+
label: o.string,
|
|
4144
|
+
placeholder: o.string,
|
|
4145
|
+
value: o.oneOfType([o.string]),
|
|
4146
|
+
min: o.string,
|
|
4147
|
+
max: o.string,
|
|
4148
|
+
tooltip: o.string,
|
|
4149
|
+
tooltipPosition: o.string,
|
|
4150
|
+
tooltipPlacement: o.string,
|
|
4151
|
+
icon: o.string,
|
|
4152
|
+
status: o.oneOf(K.props.status.options),
|
|
4153
|
+
feedback: o.string,
|
|
4154
|
+
hasFeedback: o.bool,
|
|
4155
|
+
noMargin: o.bool,
|
|
4156
|
+
disabled: o.bool,
|
|
4157
|
+
mask: o.oneOfType([o.string, o.object]),
|
|
4158
|
+
onChangeHandler: o.func,
|
|
4159
|
+
onFocusHandler: o.func
|
|
4174
4160
|
};
|
|
4175
4161
|
et.displayName = "DsInput";
|
|
4176
4162
|
var Ns = /* @__PURE__ */ ((t) => (t.Small = "small", t.Medium = "medium", t.Large = "large", t))(Ns || {}), Bs = /* @__PURE__ */ ((t) => (t.None = "", t.Neutral20 = "neutral-20", t.Neutral10 = "neutral-10", t.Neutral05 = "neutral-05", t.Neutral00 = "neutral-00", t))(Bs || {});
|
|
@@ -4214,13 +4200,13 @@ const de = {
|
|
|
4214
4200
|
fullscreen: a = de.props.fullscreen.default,
|
|
4215
4201
|
backgroundColor: i = de.props.backgroundColor.default
|
|
4216
4202
|
}) => {
|
|
4217
|
-
const
|
|
4203
|
+
const l = !a && `${de.class}--absolute`, u = n && `${de.class}__dots--${n}`, d = i && de.props.backgroundColor.options.find(
|
|
4218
4204
|
(f) => f === i
|
|
4219
4205
|
) && `${de.class}__background--${i}`, h = r && `${de.class}__background--opacity`;
|
|
4220
4206
|
return /* @__PURE__ */ I(
|
|
4221
4207
|
"div",
|
|
4222
4208
|
{
|
|
4223
|
-
className: [de.class, s,
|
|
4209
|
+
className: [de.class, s, l].filter((f) => f).join(" "),
|
|
4224
4210
|
"data-testid": e,
|
|
4225
4211
|
id: t,
|
|
4226
4212
|
children: [
|
|
@@ -4246,12 +4232,12 @@ const de = {
|
|
|
4246
4232
|
);
|
|
4247
4233
|
};
|
|
4248
4234
|
$t.propTypes = {
|
|
4249
|
-
id:
|
|
4250
|
-
testId:
|
|
4251
|
-
size:
|
|
4252
|
-
opacity:
|
|
4253
|
-
fullscreen:
|
|
4254
|
-
backgroundColor:
|
|
4235
|
+
id: o.string,
|
|
4236
|
+
testId: o.string,
|
|
4237
|
+
size: o.oneOf(de.props.size.options),
|
|
4238
|
+
opacity: o.bool,
|
|
4239
|
+
fullscreen: o.bool,
|
|
4240
|
+
backgroundColor: o.string
|
|
4255
4241
|
};
|
|
4256
4242
|
$t.displayName = "DsLoading";
|
|
4257
4243
|
const Fe = {
|
|
@@ -4303,7 +4289,7 @@ const Fe = {
|
|
|
4303
4289
|
testId: r = n ?? "ds-option-test",
|
|
4304
4290
|
disabled: a = Fe.props.disabled.default,
|
|
4305
4291
|
value: i,
|
|
4306
|
-
checked:
|
|
4292
|
+
checked: l = Fe.props.checked.default,
|
|
4307
4293
|
onChangeHandler: u = Fe.props.onChangeHandler.default
|
|
4308
4294
|
}) => {
|
|
4309
4295
|
const [d] = P(crypto.randomUUID());
|
|
@@ -4314,7 +4300,7 @@ const Fe = {
|
|
|
4314
4300
|
/* @__PURE__ */ c(
|
|
4315
4301
|
"input",
|
|
4316
4302
|
{
|
|
4317
|
-
checked:
|
|
4303
|
+
checked: l,
|
|
4318
4304
|
"data-testid": r,
|
|
4319
4305
|
disabled: a,
|
|
4320
4306
|
id: t ?? String(d),
|
|
@@ -4328,7 +4314,7 @@ const Fe = {
|
|
|
4328
4314
|
G,
|
|
4329
4315
|
{
|
|
4330
4316
|
className: `${Fe.class}__icon`,
|
|
4331
|
-
image:
|
|
4317
|
+
image: l ? "radio_button_checked" : "radio_button_unchecked",
|
|
4332
4318
|
size: "xxl"
|
|
4333
4319
|
}
|
|
4334
4320
|
),
|
|
@@ -4353,19 +4339,19 @@ const Fe = {
|
|
|
4353
4339
|
] });
|
|
4354
4340
|
};
|
|
4355
4341
|
$s.propTypes = {
|
|
4356
|
-
id:
|
|
4357
|
-
name:
|
|
4358
|
-
testId:
|
|
4359
|
-
label:
|
|
4360
|
-
value:
|
|
4361
|
-
detail:
|
|
4362
|
-
disabled:
|
|
4363
|
-
checked:
|
|
4364
|
-
onChangeHandler:
|
|
4342
|
+
id: o.string,
|
|
4343
|
+
name: o.string,
|
|
4344
|
+
testId: o.string,
|
|
4345
|
+
label: o.oneOfType([o.string, o.node]),
|
|
4346
|
+
value: o.oneOfType([o.string, o.number]),
|
|
4347
|
+
detail: o.string,
|
|
4348
|
+
disabled: o.bool,
|
|
4349
|
+
checked: o.bool,
|
|
4350
|
+
onChangeHandler: o.func
|
|
4365
4351
|
};
|
|
4366
4352
|
$s.displayName = "DsOption";
|
|
4367
4353
|
var Ms = /* @__PURE__ */ ((t) => (t.Default = "", t.Large = "large", t.Small = "small", t))(Ms || {});
|
|
4368
|
-
const
|
|
4354
|
+
const ot = {
|
|
4369
4355
|
name: "Paragraph",
|
|
4370
4356
|
class: "ds-paragraph",
|
|
4371
4357
|
props: {
|
|
@@ -4375,28 +4361,28 @@ const lt = {
|
|
|
4375
4361
|
options: Object.values(Ms)
|
|
4376
4362
|
}
|
|
4377
4363
|
}
|
|
4378
|
-
},
|
|
4364
|
+
}, Ie = ({
|
|
4379
4365
|
children: t,
|
|
4380
4366
|
className: e,
|
|
4381
4367
|
testId: s = "ds-paragraph-test",
|
|
4382
|
-
type: n =
|
|
4368
|
+
type: n = ot.props.type.default
|
|
4383
4369
|
}) => {
|
|
4384
|
-
const r = n && `${
|
|
4370
|
+
const r = n && `${ot.class}--${n}`;
|
|
4385
4371
|
return /* @__PURE__ */ c(
|
|
4386
4372
|
"p",
|
|
4387
4373
|
{
|
|
4388
|
-
className: [
|
|
4374
|
+
className: [ot.class, r, e].filter((a) => a).join(" "),
|
|
4389
4375
|
"data-testid": s,
|
|
4390
4376
|
children: t
|
|
4391
4377
|
}
|
|
4392
4378
|
);
|
|
4393
4379
|
};
|
|
4394
|
-
|
|
4395
|
-
className:
|
|
4396
|
-
testId:
|
|
4397
|
-
type:
|
|
4380
|
+
Ie.propTypes = {
|
|
4381
|
+
className: o.string,
|
|
4382
|
+
testId: o.string,
|
|
4383
|
+
type: o.oneOf(ot.props.type.options)
|
|
4398
4384
|
};
|
|
4399
|
-
|
|
4385
|
+
Ie.displayName = "DsParagraph";
|
|
4400
4386
|
var Vs = /* @__PURE__ */ ((t) => (t.Success = "success", t.SuccessDark = "success-dark", t.Warning = "warning", t.Danger = "danger", t))(Vs || {});
|
|
4401
4387
|
const Jt = {
|
|
4402
4388
|
name: "Progress",
|
|
@@ -4472,7 +4458,7 @@ const Le = {
|
|
|
4472
4458
|
flexDirection: r = Le.props.flexDirection.default,
|
|
4473
4459
|
flexWrap: a = Le.props.flexWrap.default,
|
|
4474
4460
|
width: i = Le.props.width.default,
|
|
4475
|
-
height:
|
|
4461
|
+
height: l,
|
|
4476
4462
|
gap: u
|
|
4477
4463
|
}) => {
|
|
4478
4464
|
const d = () => {
|
|
@@ -4485,20 +4471,20 @@ const Le = {
|
|
|
4485
4471
|
flexDirection: r,
|
|
4486
4472
|
flexWrap: a,
|
|
4487
4473
|
width: i,
|
|
4488
|
-
height:
|
|
4474
|
+
height: l,
|
|
4489
4475
|
gap: u
|
|
4490
4476
|
});
|
|
4491
4477
|
return /* @__PURE__ */ c("div", { className: d(), style: h(), children: t });
|
|
4492
4478
|
};
|
|
4493
4479
|
Me.propTypes = {
|
|
4494
|
-
className:
|
|
4495
|
-
justifyContent:
|
|
4496
|
-
alignItems:
|
|
4497
|
-
flexDirection:
|
|
4498
|
-
flexWrap:
|
|
4499
|
-
width:
|
|
4500
|
-
height:
|
|
4501
|
-
gap:
|
|
4480
|
+
className: o.string,
|
|
4481
|
+
justifyContent: o.string,
|
|
4482
|
+
alignItems: o.string,
|
|
4483
|
+
flexDirection: o.string,
|
|
4484
|
+
flexWrap: o.string,
|
|
4485
|
+
width: o.string,
|
|
4486
|
+
height: o.string,
|
|
4487
|
+
gap: o.string
|
|
4502
4488
|
};
|
|
4503
4489
|
Me.displayName = "DsFlexLayout";
|
|
4504
4490
|
const Ct = {
|
|
@@ -4527,8 +4513,8 @@ const Ct = {
|
|
|
4527
4513
|
return /* @__PURE__ */ c("div", { className: n(), style: r(), children: t });
|
|
4528
4514
|
};
|
|
4529
4515
|
ne.propTypes = {
|
|
4530
|
-
className:
|
|
4531
|
-
flex:
|
|
4516
|
+
className: o.string,
|
|
4517
|
+
flex: o.string
|
|
4532
4518
|
};
|
|
4533
4519
|
ne.displayName = "DsFlexElement";
|
|
4534
4520
|
var Dt = /* @__PURE__ */ ((t) => (t.None = "none", t.Quark = "quark", t.Nano = "nano", t.XXXS = "xxxs", t.XXS = "xxs", t.XS = "xs", t.SM = "sm", t))(Dt || {});
|
|
@@ -4561,8 +4547,8 @@ const Ge = {
|
|
|
4561
4547
|
);
|
|
4562
4548
|
};
|
|
4563
4549
|
ge.propTypes = {
|
|
4564
|
-
vertical:
|
|
4565
|
-
horizontal:
|
|
4550
|
+
vertical: o.oneOf(Ge.props.vertical.options),
|
|
4551
|
+
horizontal: o.oneOf(Ge.props.horizontal.options)
|
|
4566
4552
|
};
|
|
4567
4553
|
ge.displayName = "DsSpacer";
|
|
4568
4554
|
const zs = ({
|
|
@@ -4604,16 +4590,16 @@ const zs = ({
|
|
|
4604
4590
|
justifyContent: "center",
|
|
4605
4591
|
children: [
|
|
4606
4592
|
/* @__PURE__ */ c(ge, { vertical: "quark" }),
|
|
4607
|
-
/* @__PURE__ */ c(pt, { children: t && /* @__PURE__ */ c(
|
|
4593
|
+
/* @__PURE__ */ c(pt, { children: t && /* @__PURE__ */ c(Ie, { className: a, children: t }) })
|
|
4608
4594
|
]
|
|
4609
4595
|
}
|
|
4610
4596
|
) })
|
|
4611
4597
|
] }) });
|
|
4612
4598
|
};
|
|
4613
4599
|
zs.propTypes = {
|
|
4614
|
-
label:
|
|
4615
|
-
progress:
|
|
4616
|
-
color:
|
|
4600
|
+
label: o.string,
|
|
4601
|
+
progress: o.number,
|
|
4602
|
+
color: o.string
|
|
4617
4603
|
};
|
|
4618
4604
|
var Hs = /* @__PURE__ */ ((t) => (t.Small = "sm", t.Medium = "md", t.Large = "lg", t))(Hs || {}), Ws = /* @__PURE__ */ ((t) => (t.Default = "", t.Error = "error", t.Success = "success", t))(Ws || {}), Ys = /* @__PURE__ */ ((t) => (t.Center = "center", t.End = "end", t.Initial = "initial", t))(Ys || {}), Xs = /* @__PURE__ */ ((t) => (t.Top = "top", t.Right = "right", t.Bottom = "bottom", t.Left = "left", t))(Xs || {});
|
|
4619
4605
|
const Z = {
|
|
@@ -4699,14 +4685,14 @@ const Z = {
|
|
|
4699
4685
|
multiple: r = Z.props.multiple.default,
|
|
4700
4686
|
testId: a = Z.props.testId.default,
|
|
4701
4687
|
name: i,
|
|
4702
|
-
options:
|
|
4688
|
+
options: l,
|
|
4703
4689
|
value: u,
|
|
4704
4690
|
placeholder: d,
|
|
4705
4691
|
onChange: h,
|
|
4706
4692
|
onChangeHandler: f,
|
|
4707
4693
|
size: _ = Z.props.size.default,
|
|
4708
4694
|
status: y = Z.props.status.default,
|
|
4709
|
-
tooltip:
|
|
4695
|
+
tooltip: b,
|
|
4710
4696
|
tooltipPosition: v = Z.props.tooltipPosition.default,
|
|
4711
4697
|
tooltipPlacement: m = Z.props.tooltipPlacement.default,
|
|
4712
4698
|
feedback: F,
|
|
@@ -4714,29 +4700,29 @@ const Z = {
|
|
|
4714
4700
|
}, A) => {
|
|
4715
4701
|
const [C, p] = P(!1), x = (O) => {
|
|
4716
4702
|
p(!1), h && h(O, O.target.value), f && f(O, O.target.value);
|
|
4717
|
-
},
|
|
4703
|
+
}, R = () => {
|
|
4718
4704
|
const O = [Z.class, "select-placeholder"];
|
|
4719
4705
|
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(" ");
|
|
4720
|
-
},
|
|
4706
|
+
}, X = be(() => {
|
|
4721
4707
|
const O = [`${Z.class}__label`];
|
|
4722
|
-
return !n && O.push(`${Z.class}__label--not-animated`), u && O.push(`${Z.class}__label--has-value`), n && !u && !
|
|
4708
|
+
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(" ");
|
|
4723
4709
|
}, [u]);
|
|
4724
|
-
return /* @__PURE__ */ I("div", { className:
|
|
4710
|
+
return /* @__PURE__ */ I("div", { className: R(), "data-testid": "ds-select-component", children: [
|
|
4725
4711
|
t && /* @__PURE__ */ I(
|
|
4726
4712
|
"label",
|
|
4727
4713
|
{
|
|
4728
|
-
className:
|
|
4714
|
+
className: X,
|
|
4729
4715
|
"data-testid": "ds-label-id",
|
|
4730
4716
|
htmlFor: i,
|
|
4731
4717
|
children: [
|
|
4732
4718
|
t,
|
|
4733
|
-
|
|
4719
|
+
b && /* @__PURE__ */ c(
|
|
4734
4720
|
He,
|
|
4735
4721
|
{
|
|
4736
4722
|
className: `${Z.class}__tooltip`,
|
|
4737
4723
|
placement: m,
|
|
4738
4724
|
position: v,
|
|
4739
|
-
text:
|
|
4725
|
+
text: b,
|
|
4740
4726
|
children: /* @__PURE__ */ c(
|
|
4741
4727
|
G,
|
|
4742
4728
|
{
|
|
@@ -4765,7 +4751,7 @@ const Z = {
|
|
|
4765
4751
|
...j,
|
|
4766
4752
|
children: [
|
|
4767
4753
|
(d || n) && /* @__PURE__ */ c("option", { disabled: !0, value: "", children: d ?? t }),
|
|
4768
|
-
|
|
4754
|
+
l == null ? void 0 : l.map((O, te) => {
|
|
4769
4755
|
var ue;
|
|
4770
4756
|
return "options" in O ? /* @__PURE__ */ c("optgroup", { label: O.label, children: (ue = O.options) == null ? void 0 : ue.map((ce, Ae) => /* @__PURE__ */ c(
|
|
4771
4757
|
"option",
|
|
@@ -4802,24 +4788,24 @@ const Z = {
|
|
|
4802
4788
|
}
|
|
4803
4789
|
);
|
|
4804
4790
|
Ks.propTypes = {
|
|
4805
|
-
label:
|
|
4806
|
-
className:
|
|
4807
|
-
disabled:
|
|
4808
|
-
animated:
|
|
4809
|
-
multiple:
|
|
4810
|
-
name:
|
|
4811
|
-
testId:
|
|
4812
|
-
options:
|
|
4813
|
-
placeholder:
|
|
4814
|
-
onChange:
|
|
4815
|
-
onChangeHandler:
|
|
4816
|
-
value:
|
|
4817
|
-
size:
|
|
4818
|
-
status:
|
|
4819
|
-
tooltip:
|
|
4820
|
-
tooltipPosition:
|
|
4821
|
-
tooltipPlacement:
|
|
4822
|
-
feedback:
|
|
4791
|
+
label: o.string.isRequired,
|
|
4792
|
+
className: o.string,
|
|
4793
|
+
disabled: o.bool,
|
|
4794
|
+
animated: o.bool,
|
|
4795
|
+
multiple: o.bool,
|
|
4796
|
+
name: o.string,
|
|
4797
|
+
testId: o.string,
|
|
4798
|
+
options: o.array.isRequired,
|
|
4799
|
+
placeholder: o.string,
|
|
4800
|
+
onChange: o.func,
|
|
4801
|
+
onChangeHandler: o.func,
|
|
4802
|
+
value: o.oneOfType([o.string, o.number]),
|
|
4803
|
+
size: o.oneOf(Z.props.size.options),
|
|
4804
|
+
status: o.oneOf(Z.props.status.options),
|
|
4805
|
+
tooltip: o.string,
|
|
4806
|
+
tooltipPosition: o.string,
|
|
4807
|
+
tooltipPlacement: o.string,
|
|
4808
|
+
feedback: o.string
|
|
4823
4809
|
};
|
|
4824
4810
|
Ks.displayName = "DsSelect";
|
|
4825
4811
|
var Gs = /* @__PURE__ */ ((t) => (t.Large = "large", t.Small = "small", t))(Gs || {});
|
|
@@ -4946,14 +4932,14 @@ const se = {
|
|
|
4946
4932
|
label: r,
|
|
4947
4933
|
placeholder: a,
|
|
4948
4934
|
value: i,
|
|
4949
|
-
minLength:
|
|
4935
|
+
minLength: l,
|
|
4950
4936
|
maxLength: u,
|
|
4951
4937
|
tooltip: d,
|
|
4952
4938
|
icon: h,
|
|
4953
4939
|
status: f = se.props.status.default,
|
|
4954
4940
|
feedback: _,
|
|
4955
4941
|
disabled: y = se.props.disabled.default,
|
|
4956
|
-
required:
|
|
4942
|
+
required: b,
|
|
4957
4943
|
className: v,
|
|
4958
4944
|
resize: m = se.props.resize.default,
|
|
4959
4945
|
onChangeHandler: F,
|
|
@@ -4962,33 +4948,33 @@ const se = {
|
|
|
4962
4948
|
onFocusHandler: C,
|
|
4963
4949
|
rows: p = se.props.rows.default,
|
|
4964
4950
|
cols: x,
|
|
4965
|
-
description:
|
|
4966
|
-
style:
|
|
4951
|
+
description: R,
|
|
4952
|
+
style: X
|
|
4967
4953
|
}, O) => {
|
|
4968
4954
|
const [te, ue] = P(!1), [ce, Ae] = P(0), [me, Ve] = P(crypto.randomUUID());
|
|
4969
4955
|
Q(() => {
|
|
4970
4956
|
i == null && Ve(crypto.randomUUID());
|
|
4971
4957
|
}, [i]);
|
|
4972
|
-
const
|
|
4958
|
+
const oe = (w) => {
|
|
4973
4959
|
Ae(w.target.value.length), F && F(w);
|
|
4974
4960
|
}, ve = (w) => {
|
|
4975
4961
|
A && A(w);
|
|
4976
4962
|
}, Te = (w) => {
|
|
4977
4963
|
ue(!1), j && j(w);
|
|
4978
|
-
},
|
|
4964
|
+
}, Re = (w) => {
|
|
4979
4965
|
ue(!0), C && C(w);
|
|
4980
4966
|
}, g = () => {
|
|
4981
4967
|
const w = [`${se.class}`];
|
|
4982
4968
|
return n && w.push(`${se.class}--${n}`), s && w.push(`${se.class}--animated`), d && w.push(`${se.class}--with-icon`), f && w.push(`${se.class}--${f}`), v && w.push(v), w.join(" ");
|
|
4983
|
-
},
|
|
4969
|
+
}, E = be(() => {
|
|
4984
4970
|
const w = [`${se.class}__label`];
|
|
4985
4971
|
return (te || i) && w.push(`${se.class}__label--active`), w.join(" ");
|
|
4986
|
-
}, [i, te]), V = () => !s && a ? a : "", B = () => f && f === "error" ? "info" : "check_circle",
|
|
4972
|
+
}, [i, te]), V = () => !s && a ? a : "", B = () => f && f === "error" ? "info" : "check_circle", N = {
|
|
4987
4973
|
resize: m,
|
|
4988
|
-
...
|
|
4974
|
+
...X ?? {}
|
|
4989
4975
|
};
|
|
4990
4976
|
return /* @__PURE__ */ I("div", { className: g(), children: [
|
|
4991
|
-
|
|
4977
|
+
R && /* @__PURE__ */ c("span", { className: "ds-textarea__description", children: R }),
|
|
4992
4978
|
_ && /* @__PURE__ */ I("div", { className: "ds-textarea__feedback", children: [
|
|
4993
4979
|
/* @__PURE__ */ c(G, { image: B() }),
|
|
4994
4980
|
_
|
|
@@ -5003,20 +4989,20 @@ const se = {
|
|
|
5003
4989
|
disabled: y,
|
|
5004
4990
|
id: t,
|
|
5005
4991
|
maxLength: u,
|
|
5006
|
-
minLength:
|
|
4992
|
+
minLength: l,
|
|
5007
4993
|
name: t,
|
|
5008
4994
|
onBlur: Te,
|
|
5009
|
-
onChange:
|
|
5010
|
-
onFocus:
|
|
4995
|
+
onChange: oe,
|
|
4996
|
+
onFocus: Re,
|
|
5011
4997
|
onKeyDown: ve,
|
|
5012
4998
|
placeholder: V(),
|
|
5013
4999
|
ref: O,
|
|
5014
|
-
required:
|
|
5000
|
+
required: b,
|
|
5015
5001
|
rows: p,
|
|
5016
|
-
style:
|
|
5002
|
+
style: N
|
|
5017
5003
|
}
|
|
5018
5004
|
),
|
|
5019
|
-
/* @__PURE__ */ c("label", { className:
|
|
5005
|
+
/* @__PURE__ */ c("label", { className: E, htmlFor: t, children: r }),
|
|
5020
5006
|
u && /* @__PURE__ */ I("span", { className: "ds-textarea__count", children: [
|
|
5021
5007
|
ce,
|
|
5022
5008
|
"/",
|
|
@@ -5035,30 +5021,30 @@ const se = {
|
|
|
5035
5021
|
}
|
|
5036
5022
|
);
|
|
5037
5023
|
tn.propTypes = {
|
|
5038
|
-
name:
|
|
5039
|
-
testId:
|
|
5040
|
-
animated:
|
|
5041
|
-
size:
|
|
5042
|
-
label:
|
|
5043
|
-
placeholder:
|
|
5044
|
-
value:
|
|
5045
|
-
tooltip:
|
|
5046
|
-
icon:
|
|
5047
|
-
status:
|
|
5048
|
-
feedback:
|
|
5049
|
-
minLength:
|
|
5050
|
-
maxLength:
|
|
5051
|
-
rows:
|
|
5052
|
-
cols:
|
|
5053
|
-
disabled:
|
|
5054
|
-
required:
|
|
5055
|
-
onChangeHandler:
|
|
5056
|
-
onBlur:
|
|
5057
|
-
onKeyDown:
|
|
5058
|
-
onFocus:
|
|
5059
|
-
resize:
|
|
5060
|
-
description:
|
|
5061
|
-
style:
|
|
5024
|
+
name: o.string,
|
|
5025
|
+
testId: o.string,
|
|
5026
|
+
animated: o.bool,
|
|
5027
|
+
size: o.oneOf(se.props.size.options),
|
|
5028
|
+
label: o.string,
|
|
5029
|
+
placeholder: o.string,
|
|
5030
|
+
value: o.oneOfType([o.string]),
|
|
5031
|
+
tooltip: o.string,
|
|
5032
|
+
icon: o.string,
|
|
5033
|
+
status: o.oneOf(se.props.status.options),
|
|
5034
|
+
feedback: o.string,
|
|
5035
|
+
minLength: o.number,
|
|
5036
|
+
maxLength: o.number,
|
|
5037
|
+
rows: o.number,
|
|
5038
|
+
cols: o.number,
|
|
5039
|
+
disabled: o.bool,
|
|
5040
|
+
required: o.bool,
|
|
5041
|
+
onChangeHandler: o.func,
|
|
5042
|
+
onBlur: o.func,
|
|
5043
|
+
onKeyDown: o.func,
|
|
5044
|
+
onFocus: o.func,
|
|
5045
|
+
resize: o.oneOf(se.props.resize.options).isRequired,
|
|
5046
|
+
description: o.string,
|
|
5047
|
+
style: o.object
|
|
5062
5048
|
};
|
|
5063
5049
|
tn.displayName = "DsTextArea";
|
|
5064
5050
|
const nt = {
|
|
@@ -5093,11 +5079,11 @@ const nt = {
|
|
|
5093
5079
|
);
|
|
5094
5080
|
};
|
|
5095
5081
|
Mt.propTypes = {
|
|
5096
|
-
children:
|
|
5097
|
-
fluid:
|
|
5098
|
-
className:
|
|
5099
|
-
style:
|
|
5100
|
-
testId:
|
|
5082
|
+
children: o.node,
|
|
5083
|
+
fluid: o.bool,
|
|
5084
|
+
className: o.string,
|
|
5085
|
+
style: o.object,
|
|
5086
|
+
testId: o.string
|
|
5101
5087
|
};
|
|
5102
5088
|
Mt.displayName = "DsContainer";
|
|
5103
5089
|
var sn = /* @__PURE__ */ ((t) => (t.Quark = "quark", t.Nano = "nano", t.ExtraSmall = "xs", t.Small = "sm", t.Medium = "md", t.Large = "lg", t))(sn || {}), It = /* @__PURE__ */ ((t) => (t.Start = "start", t.End = "end", t.Center = "center", t.Stretch = "stretch", t.SpaceAround = "space-around", t.SpaceBetween = "space-between", t.SpaceEvenly = "space-evenly", t))(It || {});
|
|
@@ -5169,18 +5155,18 @@ const nn = ({
|
|
|
5169
5155
|
hGap: r = ee.props.hGap.default,
|
|
5170
5156
|
horizontalAlign: a = ee.props.horizontalAlign.default,
|
|
5171
5157
|
verticalAlign: i = ee.props.verticalAlign.default,
|
|
5172
|
-
width:
|
|
5158
|
+
width: l = ee.props.width.default,
|
|
5173
5159
|
height: u = ee.props.height.default
|
|
5174
5160
|
}) => {
|
|
5175
5161
|
const d = n && `${ee.class}__v-gap--${s}`, h = r && `${ee.class}__h-gap--${s}`, f = a && ee.props.horizontalAlign.options.find(
|
|
5176
5162
|
(A) => A === a
|
|
5177
5163
|
) ? `${ee.class}--h-${a}` : null, _ = i && ee.props.verticalAlign.options.find(
|
|
5178
5164
|
(A) => A === i
|
|
5179
|
-
) ? `${ee.class}--v-${i}` : null, { width: y } = er(), [
|
|
5165
|
+
) ? `${ee.class}--v-${i}` : null, { width: y } = er(), [b, v] = P("auto");
|
|
5180
5166
|
Q(() => {
|
|
5181
5167
|
y <= 768 ? v("6") : v("12");
|
|
5182
5168
|
}, [y]);
|
|
5183
|
-
const m = (A) => /^[+-]?\d+$/.test(A), F = () => e.split(",").map((C) => (C = C.trim(), C === "0" || C === "*" || C === "auto" ? "auto" : m(C) ? C + "fr" : C)).join(" "), j = () => `repeat(${
|
|
5169
|
+
const m = (A) => /^[+-]?\d+$/.test(A), F = () => e.split(",").map((C) => (C = C.trim(), C === "0" || C === "*" || C === "auto" ? "auto" : m(C) ? C + "fr" : C)).join(" "), j = () => `repeat(${b}, minmax(0, 1fr))`;
|
|
5184
5170
|
return /* @__PURE__ */ c(
|
|
5185
5171
|
"div",
|
|
5186
5172
|
{
|
|
@@ -5192,7 +5178,7 @@ const nn = ({
|
|
|
5192
5178
|
h
|
|
5193
5179
|
].filter((A) => A).join(" "),
|
|
5194
5180
|
style: {
|
|
5195
|
-
width:
|
|
5181
|
+
width: l,
|
|
5196
5182
|
height: u,
|
|
5197
5183
|
gridTemplateColumns: j(),
|
|
5198
5184
|
gridTemplateRows: F()
|
|
@@ -5202,28 +5188,28 @@ const nn = ({
|
|
|
5202
5188
|
);
|
|
5203
5189
|
};
|
|
5204
5190
|
nn.propTypes = {
|
|
5205
|
-
children:
|
|
5206
|
-
|
|
5207
|
-
|
|
5208
|
-
|
|
5191
|
+
children: o.oneOfType([
|
|
5192
|
+
o.arrayOf(o.node),
|
|
5193
|
+
o.node,
|
|
5194
|
+
o.func
|
|
5209
5195
|
]),
|
|
5210
|
-
rows:
|
|
5211
|
-
gap:
|
|
5212
|
-
vGap:
|
|
5213
|
-
hGap:
|
|
5214
|
-
width:
|
|
5215
|
-
height:
|
|
5216
|
-
horizontalAlign:
|
|
5196
|
+
rows: o.string,
|
|
5197
|
+
gap: o.oneOf(ee.props.gap.options),
|
|
5198
|
+
vGap: o.bool,
|
|
5199
|
+
hGap: o.bool,
|
|
5200
|
+
width: o.string,
|
|
5201
|
+
height: o.string,
|
|
5202
|
+
horizontalAlign: o.oneOf(
|
|
5217
5203
|
ee.props.horizontalAlign.options
|
|
5218
5204
|
),
|
|
5219
|
-
verticalAlign:
|
|
5205
|
+
verticalAlign: o.oneOf(ee.props.verticalAlign.options)
|
|
5220
5206
|
};
|
|
5221
5207
|
nn.displayName = "DsGridLayout";
|
|
5222
5208
|
const ts = () => typeof window < "u" && window.innerWidth ? window.innerWidth : 0, tr = ({ children: t, grid: e }) => {
|
|
5223
|
-
const { row: s, col: n, mobileRow: r, mobileCol: a } = e, [i,
|
|
5209
|
+
const { row: s, col: n, mobileRow: r, mobileCol: a } = e, [i, l] = P(ts());
|
|
5224
5210
|
Q(() => {
|
|
5225
5211
|
const d = () => {
|
|
5226
|
-
|
|
5212
|
+
l(ts());
|
|
5227
5213
|
};
|
|
5228
5214
|
if (typeof window < "u")
|
|
5229
5215
|
return window.addEventListener("resize", d), () => window.removeEventListener("resize", d);
|
|
@@ -5290,14 +5276,14 @@ const _e = {
|
|
|
5290
5276
|
bottom: r = _e.props.bottom.default,
|
|
5291
5277
|
left: a = _e.props.left.default
|
|
5292
5278
|
}) => {
|
|
5293
|
-
const i = s && `${_e.class}__top--${s}`,
|
|
5279
|
+
const i = s && `${_e.class}__top--${s}`, l = n && `${_e.class}__right--${n}`, u = r && `${_e.class}__bottom--${r}`, d = a && `${_e.class}__left--${a}`, h = e && `${_e.class}--${e}`;
|
|
5294
5280
|
return /* @__PURE__ */ c(
|
|
5295
5281
|
"div",
|
|
5296
5282
|
{
|
|
5297
5283
|
className: [
|
|
5298
5284
|
_e.class,
|
|
5299
5285
|
i,
|
|
5300
|
-
|
|
5286
|
+
l,
|
|
5301
5287
|
u,
|
|
5302
5288
|
d,
|
|
5303
5289
|
h
|
|
@@ -5384,10 +5370,10 @@ const wt = {
|
|
|
5384
5370
|
);
|
|
5385
5371
|
};
|
|
5386
5372
|
Vt.propTypes = {
|
|
5387
|
-
active:
|
|
5388
|
-
title:
|
|
5389
|
-
content:
|
|
5390
|
-
disabled:
|
|
5373
|
+
active: o.bool,
|
|
5374
|
+
title: o.oneOfType([o.element, o.string]),
|
|
5375
|
+
content: o.oneOfType([o.element, o.string]),
|
|
5376
|
+
disabled: o.bool
|
|
5391
5377
|
};
|
|
5392
5378
|
Vt.displayName = "DsAccordionItem";
|
|
5393
5379
|
const rn = ({
|
|
@@ -5397,8 +5383,8 @@ const rn = ({
|
|
|
5397
5383
|
}) => {
|
|
5398
5384
|
const [n, r] = P(-1);
|
|
5399
5385
|
Q(() => {
|
|
5400
|
-
t.map((i,
|
|
5401
|
-
i.active && r(
|
|
5386
|
+
t.map((i, l) => {
|
|
5387
|
+
i.active && r(l);
|
|
5402
5388
|
});
|
|
5403
5389
|
}, [t]), Q(() => {
|
|
5404
5390
|
e != null && r(e);
|
|
@@ -5408,23 +5394,23 @@ const rn = ({
|
|
|
5408
5394
|
return s && s(-1), r(-1);
|
|
5409
5395
|
r(i), s && s(i);
|
|
5410
5396
|
};
|
|
5411
|
-
return /* @__PURE__ */ c("ul", { className: wt.class, children: t.map((i,
|
|
5397
|
+
return /* @__PURE__ */ c("ul", { className: wt.class, children: t.map((i, l) => /* @__PURE__ */ c(
|
|
5412
5398
|
Vt,
|
|
5413
5399
|
{
|
|
5414
|
-
active: n ===
|
|
5400
|
+
active: n === l,
|
|
5415
5401
|
content: i.content,
|
|
5416
5402
|
disabled: i.disabled,
|
|
5417
5403
|
onToggle: () => {
|
|
5418
|
-
a(
|
|
5404
|
+
a(l);
|
|
5419
5405
|
},
|
|
5420
5406
|
title: i.title
|
|
5421
5407
|
},
|
|
5422
|
-
|
|
5408
|
+
l
|
|
5423
5409
|
)) });
|
|
5424
5410
|
};
|
|
5425
5411
|
rn.propTypes = {
|
|
5426
|
-
items:
|
|
5427
|
-
activeItem:
|
|
5412
|
+
items: o.array,
|
|
5413
|
+
activeItem: o.number
|
|
5428
5414
|
};
|
|
5429
5415
|
rn.displayName = "DsAccordion";
|
|
5430
5416
|
const sr = ({
|
|
@@ -5432,7 +5418,7 @@ const sr = ({
|
|
|
5432
5418
|
activeTags: e,
|
|
5433
5419
|
handleTagClose: s
|
|
5434
5420
|
}) => /* @__PURE__ */ c("div", { className: "active-tags", children: e.length > 0 && /* @__PURE__ */ I(pt, { children: [
|
|
5435
|
-
/* @__PURE__ */ c(
|
|
5421
|
+
/* @__PURE__ */ c(Ie, { className: "active-tags__title", children: t }),
|
|
5436
5422
|
/* @__PURE__ */ c("div", { className: "active-tags__list", "data-testid": "ds-list", children: e.map((n, r) => /* @__PURE__ */ c(
|
|
5437
5423
|
He,
|
|
5438
5424
|
{
|
|
@@ -5454,7 +5440,7 @@ const sr = ({
|
|
|
5454
5440
|
testId: `icon-${r}`
|
|
5455
5441
|
}
|
|
5456
5442
|
) }),
|
|
5457
|
-
/* @__PURE__ */ c(ne, { children: /* @__PURE__ */ c(
|
|
5443
|
+
/* @__PURE__ */ c(ne, { children: /* @__PURE__ */ c(Ie, { type: "small", children: n.text }) })
|
|
5458
5444
|
] }),
|
|
5459
5445
|
!n.hiddenClose && /* @__PURE__ */ c(
|
|
5460
5446
|
G,
|
|
@@ -5503,9 +5489,9 @@ const mr = {
|
|
|
5503
5489
|
imageMaxHeight: r,
|
|
5504
5490
|
imageMaxWidth: a
|
|
5505
5491
|
}) => {
|
|
5506
|
-
const [i,
|
|
5492
|
+
const [i, l] = P(0), [u, d] = P(!1), h = Qe(null);
|
|
5507
5493
|
Q(() => (u || (h.current = setInterval(() => {
|
|
5508
|
-
|
|
5494
|
+
l((y) => y === t.length - 1 ? 0 : y + 1);
|
|
5509
5495
|
}, e)), () => {
|
|
5510
5496
|
h.current && clearInterval(h.current);
|
|
5511
5497
|
}), [u, e, t.length]);
|
|
@@ -5528,11 +5514,11 @@ const mr = {
|
|
|
5528
5514
|
maxHeight: r,
|
|
5529
5515
|
maxWidth: a
|
|
5530
5516
|
},
|
|
5531
|
-
children: t.map((y,
|
|
5517
|
+
children: t.map((y, b) => /* @__PURE__ */ c(
|
|
5532
5518
|
"img",
|
|
5533
5519
|
{
|
|
5534
5520
|
alt: y.title,
|
|
5535
|
-
className: `${We.class}__image ${
|
|
5521
|
+
className: `${We.class}__image ${b === i ? "active" : "inactive"}`,
|
|
5536
5522
|
height: s,
|
|
5537
5523
|
src: y.image,
|
|
5538
5524
|
style: {
|
|
@@ -5541,44 +5527,44 @@ const mr = {
|
|
|
5541
5527
|
},
|
|
5542
5528
|
width: n
|
|
5543
5529
|
},
|
|
5544
|
-
|
|
5530
|
+
b
|
|
5545
5531
|
))
|
|
5546
5532
|
}
|
|
5547
5533
|
),
|
|
5548
5534
|
/* @__PURE__ */ c(ge, { vertical: "xxs" }),
|
|
5549
5535
|
/* @__PURE__ */ c("div", { children: /* @__PURE__ */ c(Nt, { className: "color__primary", type: "heading-4", children: t[i].title }) }),
|
|
5550
|
-
/* @__PURE__ */ c("div", { children: /* @__PURE__ */ c(
|
|
5536
|
+
/* @__PURE__ */ c("div", { children: /* @__PURE__ */ c(Ie, { type: "large", children: t[i].description }) }),
|
|
5551
5537
|
/* @__PURE__ */ c(ge, { vertical: "xxs" }),
|
|
5552
|
-
/* @__PURE__ */ c("div", { className: `${We.class}__dots`, children: /* @__PURE__ */ c("div", { className: `${We.class}__dots-wrapper`, children: t.map((y,
|
|
5538
|
+
/* @__PURE__ */ c("div", { className: `${We.class}__dots`, children: /* @__PURE__ */ c("div", { className: `${We.class}__dots-wrapper`, children: t.map((y, b) => /* @__PURE__ */ c(
|
|
5553
5539
|
"button",
|
|
5554
5540
|
{
|
|
5555
|
-
"aria-label": `Go to slide ${
|
|
5556
|
-
className: `dot ${i ===
|
|
5557
|
-
onClick: () =>
|
|
5541
|
+
"aria-label": `Go to slide ${b + 1}`,
|
|
5542
|
+
className: `dot ${i === b ? "dot--active" : ""}`,
|
|
5543
|
+
onClick: () => l(b)
|
|
5558
5544
|
},
|
|
5559
|
-
|
|
5545
|
+
b
|
|
5560
5546
|
)) }) })
|
|
5561
5547
|
]
|
|
5562
5548
|
}
|
|
5563
5549
|
);
|
|
5564
5550
|
};
|
|
5565
5551
|
nr.propTypes = {
|
|
5566
|
-
slides:
|
|
5567
|
-
|
|
5568
|
-
title:
|
|
5569
|
-
image:
|
|
5570
|
-
description:
|
|
5552
|
+
slides: o.arrayOf(
|
|
5553
|
+
o.shape({
|
|
5554
|
+
title: o.string.isRequired,
|
|
5555
|
+
image: o.string.isRequired,
|
|
5556
|
+
description: o.string.isRequired
|
|
5571
5557
|
})
|
|
5572
5558
|
).isRequired,
|
|
5573
|
-
interval:
|
|
5559
|
+
interval: o.number,
|
|
5574
5560
|
// in milliseconds
|
|
5575
|
-
imageHeight:
|
|
5576
|
-
imageWidth:
|
|
5577
|
-
imageMaxHeight:
|
|
5578
|
-
imageMaxWidth:
|
|
5561
|
+
imageHeight: o.oneOfType([o.number, o.string]),
|
|
5562
|
+
imageWidth: o.oneOfType([o.number, o.string]),
|
|
5563
|
+
imageMaxHeight: o.oneOfType([o.number, o.string]),
|
|
5564
|
+
imageMaxWidth: o.oneOfType([o.number, o.string])
|
|
5579
5565
|
};
|
|
5580
5566
|
var an = /* @__PURE__ */ ((t) => (t.Small = "small", t.Medium = "medium", t.Large = "large", t))(an || {});
|
|
5581
|
-
const
|
|
5567
|
+
const W = {
|
|
5582
5568
|
name: "EditableSelect",
|
|
5583
5569
|
class: "ds-editable-select",
|
|
5584
5570
|
props: {
|
|
@@ -5656,57 +5642,57 @@ const X = {
|
|
|
5656
5642
|
}
|
|
5657
5643
|
}
|
|
5658
5644
|
}, rr = ({
|
|
5659
|
-
label: t =
|
|
5660
|
-
name: e =
|
|
5661
|
-
testId: s =
|
|
5662
|
-
value: n =
|
|
5663
|
-
options: r =
|
|
5664
|
-
size: a =
|
|
5665
|
-
onChangeHandler: i =
|
|
5666
|
-
onSelectHandler:
|
|
5667
|
-
icon: u =
|
|
5668
|
-
noOptionsMessage: d =
|
|
5669
|
-
disabled: h =
|
|
5670
|
-
status: f =
|
|
5671
|
-
onBlurHandler: _ =
|
|
5672
|
-
onFocusHandler: y =
|
|
5673
|
-
animated:
|
|
5674
|
-
placeholder: v =
|
|
5645
|
+
label: t = W.props.label.default,
|
|
5646
|
+
name: e = W.props.name.default,
|
|
5647
|
+
testId: s = W.props.testId.default,
|
|
5648
|
+
value: n = W.props.value.default,
|
|
5649
|
+
options: r = W.props.options.default,
|
|
5650
|
+
size: a = W.props.size.default,
|
|
5651
|
+
onChangeHandler: i = W.props.onChangeHandler.default,
|
|
5652
|
+
onSelectHandler: l = W.props.onSelectHandler.default,
|
|
5653
|
+
icon: u = W.props.icon.default,
|
|
5654
|
+
noOptionsMessage: d = W.props.noOptionsMessage.default,
|
|
5655
|
+
disabled: h = W.props.disabled.default,
|
|
5656
|
+
status: f = W.props.status.default,
|
|
5657
|
+
onBlurHandler: _ = W.props.onBlurHandler.default,
|
|
5658
|
+
onFocusHandler: y = W.props.onFocusHandler.default,
|
|
5659
|
+
animated: b = W.props.animated.default,
|
|
5660
|
+
placeholder: v = W.props.placeholder.default,
|
|
5675
5661
|
loading: m
|
|
5676
5662
|
}) => {
|
|
5677
5663
|
const [F, j] = P(!1), [A, C] = P(n), p = (O) => {
|
|
5678
5664
|
i(O), (m == null && O.currentTarget.value.length || !m && O.currentTarget.value.length > 2) && j(!0);
|
|
5679
5665
|
}, x = (O) => {
|
|
5680
|
-
|
|
5681
|
-
},
|
|
5666
|
+
l(O), _(), C(crypto.randomUUID().toString()), j(!1);
|
|
5667
|
+
}, R = (O) => {
|
|
5682
5668
|
h || x(O);
|
|
5683
5669
|
};
|
|
5684
5670
|
Q(() => {
|
|
5685
5671
|
n.length === 0 && j(!1);
|
|
5686
5672
|
}, [n]);
|
|
5687
|
-
const
|
|
5673
|
+
const X = () => r.length > 0 ? r.map((O, te) => /* @__PURE__ */ c(
|
|
5688
5674
|
"button",
|
|
5689
5675
|
{
|
|
5690
|
-
className: `${
|
|
5676
|
+
className: `${W.class}__option ${W.class}__option--${a}`,
|
|
5691
5677
|
"data-testid": `ds-option-${O.id ?? O.label}`,
|
|
5692
|
-
onClick: () =>
|
|
5678
|
+
onClick: () => R(O),
|
|
5693
5679
|
children: O.label
|
|
5694
5680
|
},
|
|
5695
5681
|
te
|
|
5696
5682
|
)) : /* @__PURE__ */ c(
|
|
5697
5683
|
"div",
|
|
5698
5684
|
{
|
|
5699
|
-
className: `${
|
|
5685
|
+
className: `${W.class}__option ${W.class}__option--not-found--${a}`,
|
|
5700
5686
|
children: d
|
|
5701
5687
|
},
|
|
5702
5688
|
"no_option"
|
|
5703
5689
|
);
|
|
5704
|
-
return /* @__PURE__ */ I("div", { className: `${
|
|
5690
|
+
return /* @__PURE__ */ I("div", { className: `${W.class}__container`, children: [
|
|
5705
5691
|
/* @__PURE__ */ c(
|
|
5706
5692
|
et,
|
|
5707
5693
|
{
|
|
5708
|
-
animated:
|
|
5709
|
-
className: `${
|
|
5694
|
+
animated: b,
|
|
5695
|
+
className: `${W.class}__input`,
|
|
5710
5696
|
disabled: h,
|
|
5711
5697
|
label: t,
|
|
5712
5698
|
name: e,
|
|
@@ -5724,23 +5710,23 @@ const X = {
|
|
|
5724
5710
|
(u || m) && (m ? /* @__PURE__ */ c(
|
|
5725
5711
|
"div",
|
|
5726
5712
|
{
|
|
5727
|
-
className: `${
|
|
5713
|
+
className: `${W.class}__loading ${W.class}__loading--${a}`,
|
|
5728
5714
|
style: { width: "18px" },
|
|
5729
5715
|
children: /* @__PURE__ */ c($t, { fullscreen: !1 })
|
|
5730
5716
|
}
|
|
5731
5717
|
) : u && /* @__PURE__ */ c(
|
|
5732
5718
|
G,
|
|
5733
5719
|
{
|
|
5734
|
-
className: `${
|
|
5720
|
+
className: `${W.class}__icon ${W.class}__icon--${a}`,
|
|
5735
5721
|
image: u
|
|
5736
5722
|
}
|
|
5737
5723
|
)),
|
|
5738
5724
|
F && /* @__PURE__ */ c(
|
|
5739
5725
|
"div",
|
|
5740
5726
|
{
|
|
5741
|
-
className: `${
|
|
5727
|
+
className: `${W.class}__list ${W.class}__list--${a}`,
|
|
5742
5728
|
"data-testid": "ds-list",
|
|
5743
|
-
children:
|
|
5729
|
+
children: X()
|
|
5744
5730
|
}
|
|
5745
5731
|
)
|
|
5746
5732
|
] });
|
|
@@ -5814,7 +5800,7 @@ const Ye = {
|
|
|
5814
5800
|
}
|
|
5815
5801
|
}
|
|
5816
5802
|
}
|
|
5817
|
-
},
|
|
5803
|
+
}, on = ({
|
|
5818
5804
|
name: t,
|
|
5819
5805
|
value: e,
|
|
5820
5806
|
prefix: s,
|
|
@@ -5823,7 +5809,7 @@ const Ye = {
|
|
|
5823
5809
|
max: a,
|
|
5824
5810
|
onChangeHandler: i
|
|
5825
5811
|
}) => {
|
|
5826
|
-
const
|
|
5812
|
+
const l = Qe(null), [u, d] = P(!1), [h, f] = P("");
|
|
5827
5813
|
Q(() => {
|
|
5828
5814
|
f(e ?? "");
|
|
5829
5815
|
}, [e]);
|
|
@@ -5833,11 +5819,11 @@ const Ye = {
|
|
|
5833
5819
|
function y(m) {
|
|
5834
5820
|
d(!1), i && (r && parseInt(r) >= parseInt(h === "" ? r : h) ? (m.currentTarget.value = r, f(r)) : a && parseInt(a) < parseInt(h) ? (m.currentTarget.value = a, f(a)) : m.currentTarget.value = h, i(m));
|
|
5835
5821
|
}
|
|
5836
|
-
const
|
|
5822
|
+
const b = (m) => {
|
|
5837
5823
|
f(m.currentTarget.value);
|
|
5838
5824
|
}, v = async () => {
|
|
5839
5825
|
var m;
|
|
5840
|
-
await d(!0), (m =
|
|
5826
|
+
await d(!0), (m = l.current) == null || m.focus();
|
|
5841
5827
|
};
|
|
5842
5828
|
return /* @__PURE__ */ c("div", { className: ar.class, children: u ? /* @__PURE__ */ c(
|
|
5843
5829
|
"input",
|
|
@@ -5848,9 +5834,9 @@ const Ye = {
|
|
|
5848
5834
|
min: r,
|
|
5849
5835
|
name: t,
|
|
5850
5836
|
onBlur: y,
|
|
5851
|
-
onChange:
|
|
5837
|
+
onChange: b,
|
|
5852
5838
|
onKeyDown: _,
|
|
5853
|
-
ref:
|
|
5839
|
+
ref: l,
|
|
5854
5840
|
type: "number",
|
|
5855
5841
|
value: h
|
|
5856
5842
|
}
|
|
@@ -5860,7 +5846,7 @@ const Ye = {
|
|
|
5860
5846
|
"data-testid": "ds-inline-editible-div-click",
|
|
5861
5847
|
onClick: v,
|
|
5862
5848
|
children: /* @__PURE__ */ I(Me, { alignItems: "center", gap: "nano", children: [
|
|
5863
|
-
/* @__PURE__ */ c(ne, { children: /* @__PURE__ */ c(
|
|
5849
|
+
/* @__PURE__ */ c(ne, { children: /* @__PURE__ */ c(Ie, { children: /* @__PURE__ */ I("b", { children: [
|
|
5864
5850
|
s,
|
|
5865
5851
|
e,
|
|
5866
5852
|
n
|
|
@@ -5870,11 +5856,11 @@ const Ye = {
|
|
|
5870
5856
|
}
|
|
5871
5857
|
) });
|
|
5872
5858
|
};
|
|
5873
|
-
|
|
5874
|
-
value:
|
|
5859
|
+
on.propTypes = {
|
|
5860
|
+
value: o.string
|
|
5875
5861
|
};
|
|
5876
|
-
|
|
5877
|
-
var ir = /* @__PURE__ */ ((t) => (t[t.Elevation1 = 1] = "Elevation1", t[t.Elevation2 = 2] = "Elevation2", t[t.Elevation3 = 3] = "Elevation3", t[t.Elevation4 = 4] = "Elevation4", t))(ir || {}),
|
|
5862
|
+
on.displayName = "DsInlineEditable";
|
|
5863
|
+
var ir = /* @__PURE__ */ ((t) => (t[t.Elevation1 = 1] = "Elevation1", t[t.Elevation2 = 2] = "Elevation2", t[t.Elevation3 = 3] = "Elevation3", t[t.Elevation4 = 4] = "Elevation4", t))(ir || {}), ln = /* @__PURE__ */ ((t) => (t.Squared = "squared", t.Rounded = "rounded", t))(ln || {});
|
|
5878
5864
|
const fe = {
|
|
5879
5865
|
name: "Modal",
|
|
5880
5866
|
class: "ds-modal",
|
|
@@ -5892,7 +5878,7 @@ const fe = {
|
|
|
5892
5878
|
variant: {
|
|
5893
5879
|
type: String,
|
|
5894
5880
|
default: "rounded",
|
|
5895
|
-
options: Object.values(
|
|
5881
|
+
options: Object.values(ln)
|
|
5896
5882
|
},
|
|
5897
5883
|
cancelBtnText: {
|
|
5898
5884
|
type: String,
|
|
@@ -5915,28 +5901,28 @@ const fe = {
|
|
|
5915
5901
|
confirmBtnText: r = fe.props.confirmBtnText.default,
|
|
5916
5902
|
variant: a = fe.props.variant.default,
|
|
5917
5903
|
elevation: i,
|
|
5918
|
-
isModalOpen:
|
|
5904
|
+
isModalOpen: l = fe.props.isModalOpen.default,
|
|
5919
5905
|
onClose: u,
|
|
5920
5906
|
onCancel: d,
|
|
5921
5907
|
onConfirm: h,
|
|
5922
5908
|
...f
|
|
5923
5909
|
}) => {
|
|
5924
|
-
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}`,
|
|
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 = xe(
|
|
5925
5911
|
(m) => {
|
|
5926
5912
|
m.keyCode === 27 && u();
|
|
5927
5913
|
},
|
|
5928
5914
|
[u]
|
|
5929
5915
|
);
|
|
5930
|
-
return Q(() => (
|
|
5916
|
+
return Q(() => (l && window && !b && window.addEventListener("keyup", v), () => {
|
|
5931
5917
|
window.removeEventListener("keyup", v);
|
|
5932
|
-
}), [
|
|
5918
|
+
}), [b, v]), l ? /* @__PURE__ */ I(pt, { children: [
|
|
5933
5919
|
/* @__PURE__ */ c(
|
|
5934
5920
|
"div",
|
|
5935
5921
|
{
|
|
5936
5922
|
className: "ds-modal-overlay",
|
|
5937
5923
|
"data-testid": "ds-modal-overlay",
|
|
5938
5924
|
...f,
|
|
5939
|
-
onClick: () =>
|
|
5925
|
+
onClick: () => b ? () => {
|
|
5940
5926
|
} : u()
|
|
5941
5927
|
}
|
|
5942
5928
|
),
|
|
@@ -5946,7 +5932,7 @@ const fe = {
|
|
|
5946
5932
|
className: [fe.class, _, y, t].filter((m) => m).join(" "),
|
|
5947
5933
|
"data-testid": "ds-modal",
|
|
5948
5934
|
children: [
|
|
5949
|
-
!
|
|
5935
|
+
!b && /* @__PURE__ */ c(
|
|
5950
5936
|
"button",
|
|
5951
5937
|
{
|
|
5952
5938
|
className: "ds-modal__closeBtn",
|
|
@@ -5960,8 +5946,8 @@ const fe = {
|
|
|
5960
5946
|
e && /* @__PURE__ */ c(ge, { vertical: "xxxs" }),
|
|
5961
5947
|
/* @__PURE__ */ c("div", { className: "ds-modal__content__content", children: s })
|
|
5962
5948
|
] }),
|
|
5963
|
-
|
|
5964
|
-
!
|
|
5949
|
+
b && /* @__PURE__ */ c(ge, { vertical: "sm" }),
|
|
5950
|
+
!b && /* @__PURE__ */ c(ge, { vertical: "xxs" }),
|
|
5965
5951
|
/* @__PURE__ */ I("div", { className: "ds-modal__cta", children: [
|
|
5966
5952
|
d && /* @__PURE__ */ c(
|
|
5967
5953
|
ut,
|
|
@@ -5988,18 +5974,18 @@ const fe = {
|
|
|
5988
5974
|
] }) : null;
|
|
5989
5975
|
};
|
|
5990
5976
|
un.propTypes = {
|
|
5991
|
-
firstButtonText:
|
|
5992
|
-
confirmBtnText:
|
|
5993
|
-
cancelBtnText:
|
|
5994
|
-
variant:
|
|
5995
|
-
elevation:
|
|
5996
|
-
isModalOpen:
|
|
5997
|
-
title:
|
|
5998
|
-
content:
|
|
5977
|
+
firstButtonText: o.string,
|
|
5978
|
+
confirmBtnText: o.string,
|
|
5979
|
+
cancelBtnText: o.string,
|
|
5980
|
+
variant: o.oneOf(fe.props.variant.options),
|
|
5981
|
+
elevation: o.oneOf(fe.props.elevation.options),
|
|
5982
|
+
isModalOpen: o.bool,
|
|
5983
|
+
title: o.node,
|
|
5984
|
+
content: o.node
|
|
5999
5985
|
};
|
|
6000
5986
|
un.displayName = "DsModal";
|
|
6001
5987
|
var cn = /* @__PURE__ */ ((t) => (t.Success = "success", t.Danger = "danger", t.Warning = "warning", t.Info = "info", t))(cn || {}), dn = /* @__PURE__ */ ((t) => (t.Rounded = "rounded", t.Squared = "squared", t))(dn || {});
|
|
6002
|
-
const
|
|
5988
|
+
const le = {
|
|
6003
5989
|
name: "DsNotification",
|
|
6004
5990
|
class: "ds-notification",
|
|
6005
5991
|
props: {
|
|
@@ -6045,39 +6031,39 @@ const oe = {
|
|
|
6045
6031
|
var pn = /* @__PURE__ */ ((t) => (t.success = "check", t.danger = "error", t.warning = "warning", t.info = "info", t))(pn || {});
|
|
6046
6032
|
const hn = ({
|
|
6047
6033
|
className: t,
|
|
6048
|
-
type: e =
|
|
6049
|
-
variant: s =
|
|
6034
|
+
type: e = le.props.type.default,
|
|
6035
|
+
variant: s = le.props.variant.default,
|
|
6050
6036
|
id: n,
|
|
6051
6037
|
children: r,
|
|
6052
6038
|
message: a,
|
|
6053
|
-
autoClose: i =
|
|
6054
|
-
autoCloseTimer:
|
|
6055
|
-
dismissible: u =
|
|
6039
|
+
autoClose: i = le.props.autoClose.default,
|
|
6040
|
+
autoCloseTimer: l = le.props.autoCloseTimer.default,
|
|
6041
|
+
dismissible: u = le.props.dismissible.default,
|
|
6056
6042
|
elevation: d,
|
|
6057
|
-
progressBar: h =
|
|
6043
|
+
progressBar: h = le.props.progressBar.default,
|
|
6058
6044
|
handleClose: f,
|
|
6059
|
-
testId: _ =
|
|
6045
|
+
testId: _ = le.props.testId.default
|
|
6060
6046
|
}) => {
|
|
6061
|
-
const [y,
|
|
6062
|
-
|
|
6063
|
-
e && `${
|
|
6064
|
-
s && `${
|
|
6065
|
-
d && `${
|
|
6047
|
+
const [y, b] = P(l), [v, m] = P(!1), [F, j] = P(!0), A = [
|
|
6048
|
+
le.class,
|
|
6049
|
+
e && `${le.class}--${e}`,
|
|
6050
|
+
s && `${le.class}--${s}`,
|
|
6051
|
+
d && `${le.class}--elevation-${d}`,
|
|
6066
6052
|
t
|
|
6067
|
-
].join(" "), C = () =>
|
|
6053
|
+
].join(" "), C = () => b((X) => (X === 0 && j(!1), X - 100));
|
|
6068
6054
|
Q(() => {
|
|
6069
6055
|
!i && !u && j(!0);
|
|
6070
|
-
let
|
|
6071
|
-
return !v && i && (
|
|
6072
|
-
clearInterval(
|
|
6056
|
+
let X;
|
|
6057
|
+
return !v && i && (X = setInterval(C, 100)), () => {
|
|
6058
|
+
clearInterval(X);
|
|
6073
6059
|
};
|
|
6074
|
-
}, [v, i,
|
|
6060
|
+
}, [v, i, l, F, u]);
|
|
6075
6061
|
const p = () => {
|
|
6076
6062
|
m(!0);
|
|
6077
6063
|
}, x = () => {
|
|
6078
6064
|
m(!1);
|
|
6079
|
-
},
|
|
6080
|
-
j(!1), f && f(
|
|
6065
|
+
}, R = (X) => {
|
|
6066
|
+
j(!1), f && f(X);
|
|
6081
6067
|
};
|
|
6082
6068
|
return F ? /* @__PURE__ */ I(
|
|
6083
6069
|
"div",
|
|
@@ -6101,9 +6087,9 @@ const hn = ({
|
|
|
6101
6087
|
/* @__PURE__ */ c(ne, { children: u ? /* @__PURE__ */ c(
|
|
6102
6088
|
"div",
|
|
6103
6089
|
{
|
|
6104
|
-
className: `${
|
|
6090
|
+
className: `${le.class}__button`,
|
|
6105
6091
|
"data-testid": `${_}-close`,
|
|
6106
|
-
onClick: (
|
|
6092
|
+
onClick: (X) => R(X),
|
|
6107
6093
|
children: /* @__PURE__ */ c(Ze, { children: /* @__PURE__ */ c(G, { image: "close" }) })
|
|
6108
6094
|
}
|
|
6109
6095
|
) : /* @__PURE__ */ c(ge, { horizontal: "quark" }) })
|
|
@@ -6111,10 +6097,10 @@ const hn = ({
|
|
|
6111
6097
|
h && i && /* @__PURE__ */ c(
|
|
6112
6098
|
"div",
|
|
6113
6099
|
{
|
|
6114
|
-
className: `${
|
|
6100
|
+
className: `${le.class}__progress-bar ${le.class}__progress-bar--${e}`,
|
|
6115
6101
|
"data-testid": `${_}-progress-bar`,
|
|
6116
6102
|
style: {
|
|
6117
|
-
width: `${y /
|
|
6103
|
+
width: `${y / l * 100}%`
|
|
6118
6104
|
}
|
|
6119
6105
|
}
|
|
6120
6106
|
)
|
|
@@ -6173,14 +6159,14 @@ const At = {
|
|
|
6173
6159
|
instructionLabel: s = At.props.instructionLabel.default,
|
|
6174
6160
|
testId: n = At.props.testId.default
|
|
6175
6161
|
}) => {
|
|
6176
|
-
const [r, a] = P(""), [i,
|
|
6162
|
+
const [r, a] = P(""), [i, l] = P(""), [u, d] = P([]), [h, f] = P({
|
|
6177
6163
|
score: 0,
|
|
6178
6164
|
color: "danger",
|
|
6179
6165
|
label: "Fraco"
|
|
6180
|
-
}), [_, y] = P(!1),
|
|
6166
|
+
}), [_, y] = P(!1), b = xe(
|
|
6181
6167
|
(p) => {
|
|
6182
6168
|
const x = e.map(
|
|
6183
|
-
(
|
|
6169
|
+
(R) => R == null ? void 0 : R.rule(p)
|
|
6184
6170
|
);
|
|
6185
6171
|
return d(x), x;
|
|
6186
6172
|
},
|
|
@@ -6188,27 +6174,27 @@ const At = {
|
|
|
6188
6174
|
), v = xe(
|
|
6189
6175
|
(p) => {
|
|
6190
6176
|
a(p.currentTarget.value);
|
|
6191
|
-
const x =
|
|
6177
|
+
const x = b(p.currentTarget.value), R = A(x);
|
|
6192
6178
|
t({
|
|
6193
6179
|
password: p.currentTarget.value,
|
|
6194
6180
|
confirmationPassword: i,
|
|
6195
6181
|
isEqual: i === p.currentTarget.value,
|
|
6196
|
-
feedback:
|
|
6182
|
+
feedback: R
|
|
6197
6183
|
});
|
|
6198
6184
|
},
|
|
6199
|
-
[i, t,
|
|
6185
|
+
[i, t, b]
|
|
6200
6186
|
), m = xe(
|
|
6201
6187
|
(p) => {
|
|
6202
|
-
|
|
6203
|
-
const x =
|
|
6188
|
+
l(p.currentTarget.value);
|
|
6189
|
+
const x = b(r), R = A(x);
|
|
6204
6190
|
t({
|
|
6205
6191
|
password: r,
|
|
6206
6192
|
confirmationPassword: p.currentTarget.value,
|
|
6207
6193
|
isEqual: r === p.currentTarget.value,
|
|
6208
|
-
feedback:
|
|
6194
|
+
feedback: R
|
|
6209
6195
|
});
|
|
6210
6196
|
},
|
|
6211
|
-
[r, t,
|
|
6197
|
+
[r, t, b]
|
|
6212
6198
|
), F = be(() => r !== i && _ ? { status: "error", feedback: "As senhas são diferentes" } : { status: "", feedback: "" }, [r, i, _]), j = xe(
|
|
6213
6199
|
(p) => {
|
|
6214
6200
|
const x = {
|
|
@@ -6222,20 +6208,20 @@ const At = {
|
|
|
6222
6208
|
), A = xe(
|
|
6223
6209
|
(p) => {
|
|
6224
6210
|
const x = p.reduce(
|
|
6225
|
-
(
|
|
6226
|
-
let te =
|
|
6227
|
-
return O ? (te++, te) :
|
|
6211
|
+
(X, O) => {
|
|
6212
|
+
let te = X;
|
|
6213
|
+
return O ? (te++, te) : X;
|
|
6228
6214
|
},
|
|
6229
6215
|
0
|
|
6230
|
-
),
|
|
6216
|
+
), R = j(
|
|
6231
6217
|
x * 100 / p.length
|
|
6232
6218
|
);
|
|
6233
|
-
return f(
|
|
6219
|
+
return f(R), R;
|
|
6234
6220
|
},
|
|
6235
6221
|
[j]
|
|
6236
6222
|
), C = () => /* @__PURE__ */ c("ul", { children: e.map((p, x) => {
|
|
6237
|
-
const
|
|
6238
|
-
return /* @__PURE__ */ I("li", { className:
|
|
6223
|
+
const R = u[x] ? "ds-password-confirmation__list" : "ds-password-confirmation__list--disc";
|
|
6224
|
+
return /* @__PURE__ */ I("li", { className: R, children: [
|
|
6239
6225
|
u[x] ? /* @__PURE__ */ c(
|
|
6240
6226
|
G,
|
|
6241
6227
|
{
|
|
@@ -6245,7 +6231,7 @@ const At = {
|
|
|
6245
6231
|
}
|
|
6246
6232
|
) : null,
|
|
6247
6233
|
/* @__PURE__ */ c(ge, { horizontal: "quark" }),
|
|
6248
|
-
/* @__PURE__ */ c(
|
|
6234
|
+
/* @__PURE__ */ c(Ie, { children: p.title })
|
|
6249
6235
|
] }, x + p.title);
|
|
6250
6236
|
}) });
|
|
6251
6237
|
return /* @__PURE__ */ I(Me, { className: "ds-password-confirmation", flexDirection: "column", children: [
|
|
@@ -6268,7 +6254,7 @@ const At = {
|
|
|
6268
6254
|
progress: h == null ? void 0 : h.score
|
|
6269
6255
|
}
|
|
6270
6256
|
) }),
|
|
6271
|
-
/* @__PURE__ */ c(ne, { children: /* @__PURE__ */ c(
|
|
6257
|
+
/* @__PURE__ */ c(ne, { children: /* @__PURE__ */ c(Ie, { children: s }) }),
|
|
6272
6258
|
/* @__PURE__ */ c(ne, { children: C() }),
|
|
6273
6259
|
/* @__PURE__ */ c(ge, { vertical: "xxs" }),
|
|
6274
6260
|
/* @__PURE__ */ c(ne, { children: /* @__PURE__ */ c(
|
|
@@ -6289,10 +6275,10 @@ const At = {
|
|
|
6289
6275
|
] });
|
|
6290
6276
|
};
|
|
6291
6277
|
fn.propTypes = {
|
|
6292
|
-
onChange:
|
|
6293
|
-
validationList:
|
|
6294
|
-
instructionLabel:
|
|
6295
|
-
testId:
|
|
6278
|
+
onChange: o.func,
|
|
6279
|
+
validationList: o.array,
|
|
6280
|
+
instructionLabel: o.string,
|
|
6281
|
+
testId: o.string
|
|
6296
6282
|
};
|
|
6297
6283
|
fn.displayName = "DsPasswordConfirmation";
|
|
6298
6284
|
const ye = {
|
|
@@ -6308,14 +6294,14 @@ const ye = {
|
|
|
6308
6294
|
default: 0
|
|
6309
6295
|
}
|
|
6310
6296
|
}
|
|
6311
|
-
},
|
|
6297
|
+
}, or = ({
|
|
6312
6298
|
steps: t,
|
|
6313
6299
|
selectedStep: e = ye.props.selectedStep.default,
|
|
6314
6300
|
onChange: s
|
|
6315
6301
|
}) => {
|
|
6316
|
-
const [n, r] = P(e), a = (i,
|
|
6302
|
+
const [n, r] = P(e), a = (i, l) => {
|
|
6317
6303
|
const u = [`${ye.class}__button`];
|
|
6318
|
-
return
|
|
6304
|
+
return l !== i && u.push(`${ye.class}__button--round`), t[i] && t[i].disabled && u.push(`${ye.class}__button--disabled`), u.join(" ");
|
|
6319
6305
|
};
|
|
6320
6306
|
return Q(() => {
|
|
6321
6307
|
r(e);
|
|
@@ -6328,25 +6314,25 @@ const ye = {
|
|
|
6328
6314
|
" de ",
|
|
6329
6315
|
t == null ? void 0 : t.length
|
|
6330
6316
|
] }),
|
|
6331
|
-
/* @__PURE__ */ c("div", { className: `${ye.class}__step`, children: t.map((i,
|
|
6317
|
+
/* @__PURE__ */ c("div", { className: `${ye.class}__step`, children: t.map((i, l) => /* @__PURE__ */ c(
|
|
6332
6318
|
"div",
|
|
6333
6319
|
{
|
|
6334
6320
|
className: `${ye.class}__content`,
|
|
6335
6321
|
children: /* @__PURE__ */ c(
|
|
6336
6322
|
"button",
|
|
6337
6323
|
{
|
|
6338
|
-
className: a(
|
|
6339
|
-
"data-testid": `ds-button-${
|
|
6324
|
+
className: a(l, n),
|
|
6325
|
+
"data-testid": `ds-button-${l}`,
|
|
6340
6326
|
disabled: i.disabled,
|
|
6341
|
-
onClick: () => r(
|
|
6327
|
+
onClick: () => r(l),
|
|
6342
6328
|
children: /* @__PURE__ */ I("span", { className: `${ye.class}__text`, children: [
|
|
6343
|
-
n ===
|
|
6329
|
+
n === l ? /* @__PURE__ */ c(Ze, { bottom: "none", left: "nano", right: "nano", top: "none", children: /* @__PURE__ */ c(
|
|
6344
6330
|
G,
|
|
6345
6331
|
{
|
|
6346
6332
|
className: `${ye.class}__icon`,
|
|
6347
6333
|
fill: !0,
|
|
6348
6334
|
image: i.icon,
|
|
6349
|
-
testId: `ds-icon-${
|
|
6335
|
+
testId: `ds-icon-${l}`
|
|
6350
6336
|
}
|
|
6351
6337
|
) }) : /* @__PURE__ */ c(
|
|
6352
6338
|
G,
|
|
@@ -6354,10 +6340,10 @@ const ye = {
|
|
|
6354
6340
|
className: `${ye.class}__icon`,
|
|
6355
6341
|
fill: !0,
|
|
6356
6342
|
image: i.icon,
|
|
6357
|
-
testId: `ds-icon-${
|
|
6343
|
+
testId: `ds-icon-${l}`
|
|
6358
6344
|
}
|
|
6359
6345
|
),
|
|
6360
|
-
n ===
|
|
6346
|
+
n === l && i.label
|
|
6361
6347
|
] })
|
|
6362
6348
|
}
|
|
6363
6349
|
)
|
|
@@ -6366,7 +6352,7 @@ const ye = {
|
|
|
6366
6352
|
)) })
|
|
6367
6353
|
] });
|
|
6368
6354
|
};
|
|
6369
|
-
|
|
6355
|
+
or.displayName = "DsStepper";
|
|
6370
6356
|
const Ce = {
|
|
6371
6357
|
name: "Table",
|
|
6372
6358
|
class: "ds-table",
|
|
@@ -6399,7 +6385,7 @@ const Ce = {
|
|
|
6399
6385
|
) }, n);
|
|
6400
6386
|
}) });
|
|
6401
6387
|
gn.displayName = "DsTableRow";
|
|
6402
|
-
const
|
|
6388
|
+
const lr = ({ columns: t, data: e, className: s }) => /* @__PURE__ */ c("div", { className: `${Ce.class}__wrapper`, children: /* @__PURE__ */ I(
|
|
6403
6389
|
"table",
|
|
6404
6390
|
{
|
|
6405
6391
|
className: [`${Ce.class}`, s].filter((n) => n).join(" "),
|
|
@@ -6418,7 +6404,7 @@ const or = ({ columns: t, data: e, className: s }) => /* @__PURE__ */ c("div", {
|
|
|
6418
6404
|
]
|
|
6419
6405
|
}
|
|
6420
6406
|
) });
|
|
6421
|
-
|
|
6407
|
+
lr.displayName = "DsTable";
|
|
6422
6408
|
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 || {});
|
|
6423
6409
|
const Be = {
|
|
6424
6410
|
name: "DsTabs",
|
|
@@ -6455,7 +6441,7 @@ const Be = {
|
|
|
6455
6441
|
name: r,
|
|
6456
6442
|
index: a,
|
|
6457
6443
|
title: i,
|
|
6458
|
-
onClick:
|
|
6444
|
+
onClick: l
|
|
6459
6445
|
}) => {
|
|
6460
6446
|
const u = [
|
|
6461
6447
|
`${Be.class}__tab`,
|
|
@@ -6464,7 +6450,7 @@ const Be = {
|
|
|
6464
6450
|
n && `${Be.class}__tab--disabled`,
|
|
6465
6451
|
e
|
|
6466
6452
|
].join(" "), d = (h) => {
|
|
6467
|
-
|
|
6453
|
+
l && !n && l(h);
|
|
6468
6454
|
};
|
|
6469
6455
|
return /* @__PURE__ */ c(
|
|
6470
6456
|
"div",
|
|
@@ -6483,7 +6469,7 @@ const Be = {
|
|
|
6483
6469
|
className: n,
|
|
6484
6470
|
onChange: r
|
|
6485
6471
|
}) => {
|
|
6486
|
-
const [a, i] = P(s),
|
|
6472
|
+
const [a, i] = P(s), l = (u) => {
|
|
6487
6473
|
i(u), r && r(u);
|
|
6488
6474
|
};
|
|
6489
6475
|
return Q(() => i(s), [s]), /* @__PURE__ */ I(
|
|
@@ -6500,7 +6486,7 @@ const Be = {
|
|
|
6500
6486
|
color: e,
|
|
6501
6487
|
index: d,
|
|
6502
6488
|
key: d,
|
|
6503
|
-
onClick: () =>
|
|
6489
|
+
onClick: () => l(d)
|
|
6504
6490
|
}
|
|
6505
6491
|
)) }),
|
|
6506
6492
|
/* @__PURE__ */ c("div", { className: `${Be.class}__content`, children: t[a].content })
|
|
@@ -6512,9 +6498,9 @@ function cr({ library: t, children: e, theme: s }) {
|
|
|
6512
6498
|
return /* @__PURE__ */ c("div", { "data-library": t, "data-theme": s, children: /* @__PURE__ */ c("div", { className: "ds-theme", children: e }) });
|
|
6513
6499
|
}
|
|
6514
6500
|
cr.propTypes = {
|
|
6515
|
-
library:
|
|
6516
|
-
children:
|
|
6517
|
-
theme:
|
|
6501
|
+
library: o.string,
|
|
6502
|
+
children: o.node.isRequired,
|
|
6503
|
+
theme: o.string
|
|
6518
6504
|
};
|
|
6519
6505
|
var vn = /* @__PURE__ */ ((t) => (t.TopLeft = "top-left", t.TopCenter = "top-center", t.TopRight = "top-right", t.BottomLeft = "bottom-left", t.BottomCenter = "bottom-center", t.BottomRight = "bottom-right", t))(vn || {});
|
|
6520
6506
|
const je = {
|
|
@@ -6547,11 +6533,11 @@ const je = {
|
|
|
6547
6533
|
`${je.class}--${e}`,
|
|
6548
6534
|
s && `${je.class}--fluid`,
|
|
6549
6535
|
t
|
|
6550
|
-
].join(" "), i = (
|
|
6551
|
-
r && r(
|
|
6536
|
+
].join(" "), i = (l) => {
|
|
6537
|
+
r && r(l);
|
|
6552
6538
|
};
|
|
6553
|
-
return /* @__PURE__ */ c("div", { className: a, "data-testid": "ds-notification-list", children: n.map((
|
|
6554
|
-
const u =
|
|
6539
|
+
return /* @__PURE__ */ c("div", { className: a, "data-testid": "ds-notification-list", children: n.map((l) => {
|
|
6540
|
+
const u = l.autoClose ?? !0, d = l.autoCloseTimer ?? 4e3, h = l.dismissible ?? !0, f = l.elevation ?? 2, _ = l.progressBar ?? !0;
|
|
6555
6541
|
return /* @__PURE__ */ c(
|
|
6556
6542
|
hn,
|
|
6557
6543
|
{
|
|
@@ -6559,21 +6545,21 @@ const je = {
|
|
|
6559
6545
|
autoCloseTimer: d,
|
|
6560
6546
|
dismissible: h,
|
|
6561
6547
|
elevation: f,
|
|
6562
|
-
handleClose: () => i(
|
|
6563
|
-
id:
|
|
6564
|
-
message:
|
|
6548
|
+
handleClose: () => i(l.id),
|
|
6549
|
+
id: l.id,
|
|
6550
|
+
message: l.message,
|
|
6565
6551
|
progressBar: _,
|
|
6566
|
-
type:
|
|
6552
|
+
type: l.type
|
|
6567
6553
|
},
|
|
6568
|
-
|
|
6554
|
+
l.id
|
|
6569
6555
|
);
|
|
6570
6556
|
}) });
|
|
6571
6557
|
};
|
|
6572
6558
|
_n.propTypes = {
|
|
6573
|
-
position:
|
|
6574
|
-
fluid:
|
|
6575
|
-
notifications:
|
|
6576
|
-
removeNotification:
|
|
6559
|
+
position: o.oneOf(je.props.position.options),
|
|
6560
|
+
fluid: o.bool,
|
|
6561
|
+
notifications: o.array,
|
|
6562
|
+
removeNotification: o.func
|
|
6577
6563
|
};
|
|
6578
6564
|
_n.displayName = "DsNotificationList";
|
|
6579
6565
|
const Xe = {
|
|
@@ -6585,7 +6571,7 @@ const Xe = {
|
|
|
6585
6571
|
rightBackgroundColor: n,
|
|
6586
6572
|
reverseOnMobile: r = !1
|
|
6587
6573
|
}) => {
|
|
6588
|
-
const a = s ? `bg-color__${s}` : "", i = n ? `bg-color__${n}` : "",
|
|
6574
|
+
const a = s ? `bg-color__${s}` : "", i = n ? `bg-color__${n}` : "", l = r ? `${Xe.class}__content--mobile-order-2` : "", u = r ? `${Xe.class}__content--mobile-order-1` : "", d = `${Xe.class}__content ${a} ${l}`, h = `${Xe.class}__content ${i} ${u}`;
|
|
6589
6575
|
return /* @__PURE__ */ I("div", { className: Xe.class, children: [
|
|
6590
6576
|
/* @__PURE__ */ c("div", { className: d, children: t }),
|
|
6591
6577
|
/* @__PURE__ */ c("div", { className: h, children: e })
|
|
@@ -6621,16 +6607,16 @@ const at = {
|
|
|
6621
6607
|
/* @__PURE__ */ c(ge, { vertical: "sm" })
|
|
6622
6608
|
] });
|
|
6623
6609
|
yn.propTypes = {
|
|
6624
|
-
breadcrumb:
|
|
6625
|
-
header:
|
|
6626
|
-
main:
|
|
6627
|
-
sidebar:
|
|
6610
|
+
breadcrumb: o.node,
|
|
6611
|
+
header: o.node,
|
|
6612
|
+
main: o.node,
|
|
6613
|
+
sidebar: o.node
|
|
6628
6614
|
};
|
|
6629
6615
|
yn.displayName = "DsTwoColumns";
|
|
6630
6616
|
export {
|
|
6631
6617
|
rs as ButtonColor,
|
|
6632
6618
|
In as ButtonElevation,
|
|
6633
|
-
|
|
6619
|
+
os as ButtonIconPosition,
|
|
6634
6620
|
is as ButtonSize,
|
|
6635
6621
|
as as ButtonVariant,
|
|
6636
6622
|
Ft as CardColor,
|
|
@@ -6653,22 +6639,22 @@ export {
|
|
|
6653
6639
|
Nt as DsHeading,
|
|
6654
6640
|
G as DsIcon,
|
|
6655
6641
|
vr as DsIndicator,
|
|
6656
|
-
|
|
6642
|
+
on as DsInlineEditable,
|
|
6657
6643
|
et as DsInput,
|
|
6658
6644
|
$t as DsLoading,
|
|
6659
6645
|
un as DsModal,
|
|
6660
6646
|
hn as DsNotification,
|
|
6661
6647
|
_n as DsNotificationList,
|
|
6662
6648
|
$s as DsOption,
|
|
6663
|
-
|
|
6649
|
+
Ie as DsParagraph,
|
|
6664
6650
|
fn as DsPasswordConfirmation,
|
|
6665
6651
|
zs as DsProgress,
|
|
6666
6652
|
Ks as DsSelect,
|
|
6667
6653
|
ge as DsSpacer,
|
|
6668
6654
|
dr as DsSplitLayout,
|
|
6669
|
-
|
|
6655
|
+
or as DsStepper,
|
|
6670
6656
|
Jn as DsSubtitle,
|
|
6671
|
-
|
|
6657
|
+
lr as DsTable,
|
|
6672
6658
|
_r as DsTabs,
|
|
6673
6659
|
tn as DsTextArea,
|
|
6674
6660
|
He as DsTooltip,
|
|
@@ -6685,7 +6671,7 @@ export {
|
|
|
6685
6671
|
ms as HRBorderStyle,
|
|
6686
6672
|
vs as HRSize,
|
|
6687
6673
|
gs as HeadingType,
|
|
6688
|
-
|
|
6674
|
+
ls as IconColor,
|
|
6689
6675
|
cs as IconSize,
|
|
6690
6676
|
us as IconVariation,
|
|
6691
6677
|
ds as IconWeight,
|
|
@@ -6697,7 +6683,7 @@ export {
|
|
|
6697
6683
|
Bs as LoadingBackgroundColor,
|
|
6698
6684
|
Ns as LoadingSize,
|
|
6699
6685
|
ir as ModalElevation,
|
|
6700
|
-
|
|
6686
|
+
ln as ModalVariant,
|
|
6701
6687
|
vn as NotificationListPosition,
|
|
6702
6688
|
cn as NotificationType,
|
|
6703
6689
|
dn as NotificationVariant,
|
|
@@ -6723,11 +6709,11 @@ export {
|
|
|
6723
6709
|
mr as activeTagsConfig,
|
|
6724
6710
|
Y as buttonConfig,
|
|
6725
6711
|
Nn as captionConfig,
|
|
6726
|
-
|
|
6712
|
+
Ne as cardConfig,
|
|
6727
6713
|
We as carouselConfig,
|
|
6728
6714
|
ie as checkboxConfig,
|
|
6729
6715
|
nt as containerConfig,
|
|
6730
|
-
|
|
6716
|
+
W as editableSelectConfig,
|
|
6731
6717
|
Ct as flexElementConfig,
|
|
6732
6718
|
Le as flexLayoutConfig,
|
|
6733
6719
|
gr as gridElementConfig,
|
|
@@ -6740,10 +6726,10 @@ export {
|
|
|
6740
6726
|
K as inputConfig,
|
|
6741
6727
|
de as loadingConfig,
|
|
6742
6728
|
fe as modalConfig,
|
|
6743
|
-
|
|
6729
|
+
le as notificationConfig,
|
|
6744
6730
|
je as notificationListConfig,
|
|
6745
6731
|
Fe as optionConfig,
|
|
6746
|
-
|
|
6732
|
+
ot as paragraphConfig,
|
|
6747
6733
|
At as passwordConfirmationConfig,
|
|
6748
6734
|
Jt as progressConfig,
|
|
6749
6735
|
Z as selectConfig,
|