@akad/design-system 1.1.4 → 1.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css/core.css +1 -1
- package/package.json +1 -1
- package/react/react-lib.js +689 -686
- package/react/react-lib.umd.cjs +4 -4
- package/react/src/components/atoms/Progress/Progress.config.d.ts +34 -2
- package/react/src/components/atoms/Progress/Progress.d.ts +1 -1
- package/react/src/components/atoms/Progress/Progress.stories.d.ts +5 -1
- package/scss/core/components/atoms/progress.scss +0 -16
package/react/react-lib.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as c, jsxs as I, Fragment as vt } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import we, { useMemo as he, useState as q, useEffect as G, useRef as Ke, useCallback as Oe, useLayoutEffect as On, useId as In } from "react";
|
|
3
3
|
const Nn = "pushClickEvent: missing required field(s). Required: eventLabel";
|
|
4
4
|
function Rn(t) {
|
|
5
5
|
return !!(t.eventLabel && typeof t.eventLabel == "string" && t.eventLabel.trim());
|
|
@@ -23,7 +23,7 @@ function Bn(t) {
|
|
|
23
23
|
function $n(t) {
|
|
24
24
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
25
25
|
}
|
|
26
|
-
var Rt = { exports: {} },
|
|
26
|
+
var Rt = { exports: {} }, lt = { exports: {} }, H = {};
|
|
27
27
|
/** @license React v16.13.1
|
|
28
28
|
* react-is.production.min.js
|
|
29
29
|
*
|
|
@@ -32,15 +32,15 @@ var Rt = { exports: {} }, it = { exports: {} }, H = {};
|
|
|
32
32
|
* This source code is licensed under the MIT license found in the
|
|
33
33
|
* LICENSE file in the root directory of this source tree.
|
|
34
34
|
*/
|
|
35
|
-
var
|
|
35
|
+
var Wt;
|
|
36
36
|
function Mn() {
|
|
37
|
-
if (
|
|
38
|
-
|
|
39
|
-
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, s = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, r = t ? Symbol.for("react.profiler") : 60114, i = t ? Symbol.for("react.provider") : 60109, o = 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,
|
|
40
|
-
function
|
|
37
|
+
if (Wt) return H;
|
|
38
|
+
Wt = 1;
|
|
39
|
+
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, s = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, r = t ? Symbol.for("react.profiler") : 60114, i = t ? Symbol.for("react.provider") : 60109, o = 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, y = t ? Symbol.for("react.suspense_list") : 60120, b = t ? Symbol.for("react.memo") : 60115, E = t ? Symbol.for("react.lazy") : 60116, v = t ? Symbol.for("react.block") : 60121, g = t ? Symbol.for("react.fundamental") : 60117, w = t ? Symbol.for("react.responder") : 60118, F = t ? Symbol.for("react.scope") : 60119;
|
|
40
|
+
function x(p) {
|
|
41
41
|
if (typeof p == "object" && p !== null) {
|
|
42
|
-
var
|
|
43
|
-
switch (
|
|
42
|
+
var T = p.$$typeof;
|
|
43
|
+
switch (T) {
|
|
44
44
|
case e:
|
|
45
45
|
switch (p = p.type, p) {
|
|
46
46
|
case u:
|
|
@@ -59,44 +59,44 @@ function Mn() {
|
|
|
59
59
|
case i:
|
|
60
60
|
return p;
|
|
61
61
|
default:
|
|
62
|
-
return
|
|
62
|
+
return T;
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
case s:
|
|
66
|
-
return
|
|
66
|
+
return T;
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
function
|
|
71
|
-
return
|
|
70
|
+
function A(p) {
|
|
71
|
+
return x(p) === d;
|
|
72
72
|
}
|
|
73
73
|
return H.AsyncMode = u, H.ConcurrentMode = d, H.ContextConsumer = o, H.ContextProvider = i, H.Element = e, H.ForwardRef = h, H.Fragment = n, H.Lazy = E, H.Memo = b, H.Portal = s, H.Profiler = r, H.StrictMode = a, H.Suspense = f, H.isAsyncMode = function(p) {
|
|
74
|
-
return
|
|
75
|
-
}, H.isConcurrentMode =
|
|
76
|
-
return
|
|
74
|
+
return A(p) || x(p) === u;
|
|
75
|
+
}, H.isConcurrentMode = A, H.isContextConsumer = function(p) {
|
|
76
|
+
return x(p) === o;
|
|
77
77
|
}, H.isContextProvider = function(p) {
|
|
78
|
-
return
|
|
78
|
+
return x(p) === i;
|
|
79
79
|
}, H.isElement = function(p) {
|
|
80
80
|
return typeof p == "object" && p !== null && p.$$typeof === e;
|
|
81
81
|
}, H.isForwardRef = function(p) {
|
|
82
|
-
return
|
|
82
|
+
return x(p) === h;
|
|
83
83
|
}, H.isFragment = function(p) {
|
|
84
|
-
return
|
|
84
|
+
return x(p) === n;
|
|
85
85
|
}, H.isLazy = function(p) {
|
|
86
|
-
return
|
|
86
|
+
return x(p) === E;
|
|
87
87
|
}, H.isMemo = function(p) {
|
|
88
|
-
return
|
|
88
|
+
return x(p) === b;
|
|
89
89
|
}, H.isPortal = function(p) {
|
|
90
|
-
return
|
|
90
|
+
return x(p) === s;
|
|
91
91
|
}, H.isProfiler = function(p) {
|
|
92
|
-
return
|
|
92
|
+
return x(p) === r;
|
|
93
93
|
}, H.isStrictMode = function(p) {
|
|
94
|
-
return
|
|
94
|
+
return x(p) === a;
|
|
95
95
|
}, H.isSuspense = function(p) {
|
|
96
|
-
return
|
|
96
|
+
return x(p) === f;
|
|
97
97
|
}, H.isValidElementType = function(p) {
|
|
98
|
-
return typeof p == "string" || typeof p == "function" || p === n || p === d || p === r || p === a || p === f || p ===
|
|
99
|
-
}, H.typeOf =
|
|
98
|
+
return typeof p == "string" || typeof p == "function" || p === n || p === d || p === r || p === a || p === f || p === y || typeof p == "object" && p !== null && (p.$$typeof === E || p.$$typeof === b || p.$$typeof === i || p.$$typeof === o || p.$$typeof === h || p.$$typeof === g || p.$$typeof === w || p.$$typeof === F || p.$$typeof === v);
|
|
99
|
+
}, H.typeOf = x, H;
|
|
100
100
|
}
|
|
101
101
|
var W = {};
|
|
102
102
|
/** @license React v16.13.1
|
|
@@ -107,20 +107,20 @@ var W = {};
|
|
|
107
107
|
* This source code is licensed under the MIT license found in the
|
|
108
108
|
* LICENSE file in the root directory of this source tree.
|
|
109
109
|
*/
|
|
110
|
-
var
|
|
110
|
+
var Yt;
|
|
111
111
|
function Vn() {
|
|
112
|
-
return
|
|
113
|
-
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, s = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, r = t ? Symbol.for("react.profiler") : 60114, i = t ? Symbol.for("react.provider") : 60109, o = 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,
|
|
114
|
-
function
|
|
115
|
-
return typeof
|
|
116
|
-
|
|
117
|
-
}
|
|
118
|
-
function
|
|
119
|
-
if (typeof
|
|
120
|
-
var ue =
|
|
112
|
+
return Yt || (Yt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
113
|
+
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, s = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, r = t ? Symbol.for("react.profiler") : 60114, i = t ? Symbol.for("react.provider") : 60109, o = 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, y = t ? Symbol.for("react.suspense_list") : 60120, b = t ? Symbol.for("react.memo") : 60115, E = t ? Symbol.for("react.lazy") : 60116, v = t ? Symbol.for("react.block") : 60121, g = t ? Symbol.for("react.fundamental") : 60117, w = t ? Symbol.for("react.responder") : 60118, F = t ? Symbol.for("react.scope") : 60119;
|
|
114
|
+
function x(_) {
|
|
115
|
+
return typeof _ == "string" || typeof _ == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
116
|
+
_ === n || _ === d || _ === r || _ === a || _ === f || _ === y || typeof _ == "object" && _ !== null && (_.$$typeof === E || _.$$typeof === b || _.$$typeof === i || _.$$typeof === o || _.$$typeof === h || _.$$typeof === g || _.$$typeof === w || _.$$typeof === F || _.$$typeof === v);
|
|
117
|
+
}
|
|
118
|
+
function A(_) {
|
|
119
|
+
if (typeof _ == "object" && _ !== null) {
|
|
120
|
+
var ue = _.$$typeof;
|
|
121
121
|
switch (ue) {
|
|
122
122
|
case e:
|
|
123
|
-
var Pe =
|
|
123
|
+
var Pe = _.type;
|
|
124
124
|
switch (Pe) {
|
|
125
125
|
case u:
|
|
126
126
|
case d:
|
|
@@ -130,14 +130,14 @@ function Vn() {
|
|
|
130
130
|
case f:
|
|
131
131
|
return Pe;
|
|
132
132
|
default:
|
|
133
|
-
var
|
|
134
|
-
switch (
|
|
133
|
+
var it = Pe && Pe.$$typeof;
|
|
134
|
+
switch (it) {
|
|
135
135
|
case o:
|
|
136
136
|
case h:
|
|
137
137
|
case E:
|
|
138
138
|
case b:
|
|
139
139
|
case i:
|
|
140
|
-
return
|
|
140
|
+
return it;
|
|
141
141
|
default:
|
|
142
142
|
return ue;
|
|
143
143
|
}
|
|
@@ -147,62 +147,62 @@ function Vn() {
|
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
|
-
var p = u,
|
|
151
|
-
function
|
|
152
|
-
return be || (be = !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.")), m(
|
|
150
|
+
var p = u, T = d, B = o, z = i, P = e, te = h, le = n, oe = E, xe = b, fe = s, ge = r, ne = a, me = f, be = !1;
|
|
151
|
+
function ve(_) {
|
|
152
|
+
return be || (be = !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.")), m(_) || A(_) === u;
|
|
153
153
|
}
|
|
154
|
-
function m(
|
|
155
|
-
return
|
|
154
|
+
function m(_) {
|
|
155
|
+
return A(_) === d;
|
|
156
156
|
}
|
|
157
|
-
function S(
|
|
158
|
-
return
|
|
157
|
+
function S(_) {
|
|
158
|
+
return A(_) === o;
|
|
159
159
|
}
|
|
160
|
-
function V(
|
|
161
|
-
return
|
|
160
|
+
function V(_) {
|
|
161
|
+
return A(_) === i;
|
|
162
162
|
}
|
|
163
|
-
function $(
|
|
164
|
-
return typeof
|
|
163
|
+
function $(_) {
|
|
164
|
+
return typeof _ == "object" && _ !== null && _.$$typeof === e;
|
|
165
165
|
}
|
|
166
|
-
function R(
|
|
167
|
-
return
|
|
166
|
+
function R(_) {
|
|
167
|
+
return A(_) === h;
|
|
168
168
|
}
|
|
169
|
-
function
|
|
170
|
-
return
|
|
169
|
+
function C(_) {
|
|
170
|
+
return A(_) === n;
|
|
171
171
|
}
|
|
172
|
-
function M(
|
|
173
|
-
return
|
|
172
|
+
function M(_) {
|
|
173
|
+
return A(_) === E;
|
|
174
174
|
}
|
|
175
|
-
function L(
|
|
176
|
-
return
|
|
175
|
+
function L(_) {
|
|
176
|
+
return A(_) === b;
|
|
177
177
|
}
|
|
178
|
-
function U(
|
|
179
|
-
return
|
|
178
|
+
function U(_) {
|
|
179
|
+
return A(_) === s;
|
|
180
180
|
}
|
|
181
|
-
function k(
|
|
182
|
-
return
|
|
181
|
+
function k(_) {
|
|
182
|
+
return A(_) === r;
|
|
183
183
|
}
|
|
184
|
-
function O(
|
|
185
|
-
return
|
|
184
|
+
function O(_) {
|
|
185
|
+
return A(_) === a;
|
|
186
186
|
}
|
|
187
|
-
function X(
|
|
188
|
-
return
|
|
187
|
+
function X(_) {
|
|
188
|
+
return A(_) === f;
|
|
189
189
|
}
|
|
190
|
-
W.AsyncMode = p, W.ConcurrentMode =
|
|
190
|
+
W.AsyncMode = p, W.ConcurrentMode = T, W.ContextConsumer = B, W.ContextProvider = z, W.Element = P, W.ForwardRef = te, W.Fragment = le, W.Lazy = oe, W.Memo = xe, W.Portal = fe, W.Profiler = ge, W.StrictMode = ne, W.Suspense = me, W.isAsyncMode = ve, W.isConcurrentMode = m, W.isContextConsumer = S, W.isContextProvider = V, W.isElement = $, W.isForwardRef = R, W.isFragment = C, W.isLazy = M, W.isMemo = L, W.isPortal = U, W.isProfiler = k, W.isStrictMode = O, W.isSuspense = X, W.isValidElementType = x, W.typeOf = A;
|
|
191
191
|
}()), W;
|
|
192
192
|
}
|
|
193
|
-
var
|
|
193
|
+
var Kt;
|
|
194
194
|
function os() {
|
|
195
|
-
return
|
|
195
|
+
return Kt || (Kt = 1, process.env.NODE_ENV === "production" ? lt.exports = Mn() : lt.exports = Vn()), lt.exports;
|
|
196
196
|
}
|
|
197
197
|
/*
|
|
198
198
|
object-assign
|
|
199
199
|
(c) Sindre Sorhus
|
|
200
200
|
@license MIT
|
|
201
201
|
*/
|
|
202
|
-
var Et,
|
|
202
|
+
var Et, Xt;
|
|
203
203
|
function Ln() {
|
|
204
|
-
if (
|
|
205
|
-
|
|
204
|
+
if (Xt) return Et;
|
|
205
|
+
Xt = 1;
|
|
206
206
|
var t = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, s = Object.prototype.propertyIsEnumerable;
|
|
207
207
|
function n(r) {
|
|
208
208
|
if (r == null)
|
|
@@ -238,32 +238,32 @@ function Ln() {
|
|
|
238
238
|
e.call(o, f) && (u[f] = o[f]);
|
|
239
239
|
if (t) {
|
|
240
240
|
d = t(o);
|
|
241
|
-
for (var
|
|
242
|
-
s.call(o, d[
|
|
241
|
+
for (var y = 0; y < d.length; y++)
|
|
242
|
+
s.call(o, d[y]) && (u[d[y]] = o[d[y]]);
|
|
243
243
|
}
|
|
244
244
|
}
|
|
245
245
|
return u;
|
|
246
246
|
}, Et;
|
|
247
247
|
}
|
|
248
|
-
var St,
|
|
249
|
-
function
|
|
250
|
-
if (
|
|
251
|
-
|
|
248
|
+
var St, Gt;
|
|
249
|
+
function jt() {
|
|
250
|
+
if (Gt) return St;
|
|
251
|
+
Gt = 1;
|
|
252
252
|
var t = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
253
253
|
return St = t, St;
|
|
254
254
|
}
|
|
255
|
-
var
|
|
255
|
+
var wt, Zt;
|
|
256
256
|
function us() {
|
|
257
|
-
return
|
|
257
|
+
return Zt || (Zt = 1, wt = Function.call.bind(Object.prototype.hasOwnProperty)), wt;
|
|
258
258
|
}
|
|
259
|
-
var
|
|
259
|
+
var At, Qt;
|
|
260
260
|
function jn() {
|
|
261
|
-
if (
|
|
262
|
-
|
|
261
|
+
if (Qt) return At;
|
|
262
|
+
Qt = 1;
|
|
263
263
|
var t = function() {
|
|
264
264
|
};
|
|
265
265
|
if (process.env.NODE_ENV !== "production") {
|
|
266
|
-
var e =
|
|
266
|
+
var e = jt(), s = {}, n = us();
|
|
267
267
|
t = function(r) {
|
|
268
268
|
var i = "Warning: " + r;
|
|
269
269
|
typeof console < "u" && console.error(i);
|
|
@@ -280,10 +280,10 @@ function jn() {
|
|
|
280
280
|
var f;
|
|
281
281
|
try {
|
|
282
282
|
if (typeof r[h] != "function") {
|
|
283
|
-
var
|
|
283
|
+
var y = Error(
|
|
284
284
|
(u || "React class") + ": " + o + " type `" + h + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[h] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
285
285
|
);
|
|
286
|
-
throw
|
|
286
|
+
throw y.name = "Invariant Violation", y;
|
|
287
287
|
}
|
|
288
288
|
f = r[h](i, h, u, o, null, e);
|
|
289
289
|
} catch (E) {
|
|
@@ -303,13 +303,13 @@ function jn() {
|
|
|
303
303
|
}
|
|
304
304
|
return a.resetWarningCache = function() {
|
|
305
305
|
process.env.NODE_ENV !== "production" && (s = {});
|
|
306
|
-
},
|
|
306
|
+
}, At = a, At;
|
|
307
307
|
}
|
|
308
|
-
var
|
|
308
|
+
var xt, Jt;
|
|
309
309
|
function Pn() {
|
|
310
|
-
if (
|
|
311
|
-
|
|
312
|
-
var t = os(), e = Ln(), s =
|
|
310
|
+
if (Jt) return xt;
|
|
311
|
+
Jt = 1;
|
|
312
|
+
var t = os(), e = Ln(), s = jt(), n = us(), a = jn(), r = function() {
|
|
313
313
|
};
|
|
314
314
|
process.env.NODE_ENV !== "production" && (r = function(o) {
|
|
315
315
|
var u = "Warning: " + o;
|
|
@@ -322,33 +322,33 @@ function Pn() {
|
|
|
322
322
|
function i() {
|
|
323
323
|
return null;
|
|
324
324
|
}
|
|
325
|
-
return
|
|
325
|
+
return xt = function(o, u) {
|
|
326
326
|
var d = typeof Symbol == "function" && Symbol.iterator, h = "@@iterator";
|
|
327
327
|
function f(m) {
|
|
328
328
|
var S = m && (d && m[d] || m[h]);
|
|
329
329
|
if (typeof S == "function")
|
|
330
330
|
return S;
|
|
331
331
|
}
|
|
332
|
-
var
|
|
333
|
-
array:
|
|
334
|
-
bigint:
|
|
335
|
-
bool:
|
|
336
|
-
func:
|
|
337
|
-
number:
|
|
338
|
-
object:
|
|
339
|
-
string:
|
|
340
|
-
symbol:
|
|
332
|
+
var y = "<<anonymous>>", b = {
|
|
333
|
+
array: w("array"),
|
|
334
|
+
bigint: w("bigint"),
|
|
335
|
+
bool: w("boolean"),
|
|
336
|
+
func: w("function"),
|
|
337
|
+
number: w("number"),
|
|
338
|
+
object: w("object"),
|
|
339
|
+
string: w("string"),
|
|
340
|
+
symbol: w("symbol"),
|
|
341
341
|
any: F(),
|
|
342
|
-
arrayOf:
|
|
343
|
-
element:
|
|
342
|
+
arrayOf: x,
|
|
343
|
+
element: A(),
|
|
344
344
|
elementType: p(),
|
|
345
|
-
instanceOf:
|
|
345
|
+
instanceOf: T,
|
|
346
346
|
node: te(),
|
|
347
347
|
objectOf: z,
|
|
348
348
|
oneOf: B,
|
|
349
349
|
oneOfType: P,
|
|
350
350
|
shape: oe,
|
|
351
|
-
exact:
|
|
351
|
+
exact: xe
|
|
352
352
|
};
|
|
353
353
|
function E(m, S) {
|
|
354
354
|
return m === S ? m !== 0 || 1 / m === 1 / S : m !== m && S !== S;
|
|
@@ -360,13 +360,13 @@ function Pn() {
|
|
|
360
360
|
function g(m) {
|
|
361
361
|
if (process.env.NODE_ENV !== "production")
|
|
362
362
|
var S = {}, V = 0;
|
|
363
|
-
function $(
|
|
364
|
-
if (U = U ||
|
|
363
|
+
function $(C, M, L, U, k, O, X) {
|
|
364
|
+
if (U = U || y, O = O || L, X !== s) {
|
|
365
365
|
if (u) {
|
|
366
|
-
var
|
|
366
|
+
var _ = new Error(
|
|
367
367
|
"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"
|
|
368
368
|
);
|
|
369
|
-
throw
|
|
369
|
+
throw _.name = "Invariant Violation", _;
|
|
370
370
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
371
371
|
var ue = U + ":" + L;
|
|
372
372
|
!S[ue] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
@@ -375,18 +375,18 @@ function Pn() {
|
|
|
375
375
|
), S[ue] = !0, V++);
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
|
-
return M[L] == null ?
|
|
378
|
+
return M[L] == null ? C ? M[L] === null ? new v("The " + k + " `" + O + "` is marked as required " + ("in `" + U + "`, but its value is `null`.")) : new v("The " + k + " `" + O + "` is marked as required in " + ("`" + U + "`, but its value is `undefined`.")) : null : m(M, L, U, k, O);
|
|
379
379
|
}
|
|
380
380
|
var R = $.bind(null, !1);
|
|
381
381
|
return R.isRequired = $.bind(null, !0), R;
|
|
382
382
|
}
|
|
383
|
-
function
|
|
384
|
-
function S(V, $, R,
|
|
383
|
+
function w(m) {
|
|
384
|
+
function S(V, $, R, C, M, L) {
|
|
385
385
|
var U = V[$], k = ne(U);
|
|
386
386
|
if (k !== m) {
|
|
387
|
-
var O =
|
|
387
|
+
var O = me(U);
|
|
388
388
|
return new v(
|
|
389
|
-
"Invalid " +
|
|
389
|
+
"Invalid " + C + " `" + M + "` of type " + ("`" + O + "` supplied to `" + R + "`, expected ") + ("`" + m + "`."),
|
|
390
390
|
{ expectedType: m }
|
|
391
391
|
);
|
|
392
392
|
}
|
|
@@ -397,17 +397,17 @@ function Pn() {
|
|
|
397
397
|
function F() {
|
|
398
398
|
return g(i);
|
|
399
399
|
}
|
|
400
|
-
function
|
|
401
|
-
function S(V, $, R,
|
|
400
|
+
function x(m) {
|
|
401
|
+
function S(V, $, R, C, M) {
|
|
402
402
|
if (typeof m != "function")
|
|
403
403
|
return new v("Property `" + M + "` of component `" + R + "` has invalid PropType notation inside arrayOf.");
|
|
404
404
|
var L = V[$];
|
|
405
405
|
if (!Array.isArray(L)) {
|
|
406
406
|
var U = ne(L);
|
|
407
|
-
return new v("Invalid " +
|
|
407
|
+
return new v("Invalid " + C + " `" + M + "` of type " + ("`" + U + "` supplied to `" + R + "`, expected an array."));
|
|
408
408
|
}
|
|
409
409
|
for (var k = 0; k < L.length; k++) {
|
|
410
|
-
var O = m(L, k, R,
|
|
410
|
+
var O = m(L, k, R, C, M + "[" + k + "]", s);
|
|
411
411
|
if (O instanceof Error)
|
|
412
412
|
return O;
|
|
413
413
|
}
|
|
@@ -415,33 +415,33 @@ function Pn() {
|
|
|
415
415
|
}
|
|
416
416
|
return g(S);
|
|
417
417
|
}
|
|
418
|
-
function
|
|
419
|
-
function m(S, V, $, R,
|
|
418
|
+
function A() {
|
|
419
|
+
function m(S, V, $, R, C) {
|
|
420
420
|
var M = S[V];
|
|
421
421
|
if (!o(M)) {
|
|
422
422
|
var L = ne(M);
|
|
423
|
-
return new v("Invalid " + R + " `" +
|
|
423
|
+
return new v("Invalid " + R + " `" + C + "` of type " + ("`" + L + "` supplied to `" + $ + "`, expected a single ReactElement."));
|
|
424
424
|
}
|
|
425
425
|
return null;
|
|
426
426
|
}
|
|
427
427
|
return g(m);
|
|
428
428
|
}
|
|
429
429
|
function p() {
|
|
430
|
-
function m(S, V, $, R,
|
|
430
|
+
function m(S, V, $, R, C) {
|
|
431
431
|
var M = S[V];
|
|
432
432
|
if (!t.isValidElementType(M)) {
|
|
433
433
|
var L = ne(M);
|
|
434
|
-
return new v("Invalid " + R + " `" +
|
|
434
|
+
return new v("Invalid " + R + " `" + C + "` of type " + ("`" + L + "` supplied to `" + $ + "`, expected a single ReactElement type."));
|
|
435
435
|
}
|
|
436
436
|
return null;
|
|
437
437
|
}
|
|
438
438
|
return g(m);
|
|
439
439
|
}
|
|
440
|
-
function
|
|
441
|
-
function S(V, $, R,
|
|
440
|
+
function T(m) {
|
|
441
|
+
function S(V, $, R, C, M) {
|
|
442
442
|
if (!(V[$] instanceof m)) {
|
|
443
|
-
var L = m.name ||
|
|
444
|
-
return new v("Invalid " +
|
|
443
|
+
var L = m.name || y, U = ve(V[$]);
|
|
444
|
+
return new v("Invalid " + C + " `" + M + "` of type " + ("`" + U + "` supplied to `" + R + "`, expected ") + ("instance of `" + L + "`."));
|
|
445
445
|
}
|
|
446
446
|
return null;
|
|
447
447
|
}
|
|
@@ -452,28 +452,28 @@ function Pn() {
|
|
|
452
452
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? r(
|
|
453
453
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
454
454
|
) : r("Invalid argument supplied to oneOf, expected an array.")), i;
|
|
455
|
-
function S(V, $, R,
|
|
455
|
+
function S(V, $, R, C, M) {
|
|
456
456
|
for (var L = V[$], U = 0; U < m.length; U++)
|
|
457
457
|
if (E(L, m[U]))
|
|
458
458
|
return null;
|
|
459
|
-
var k = JSON.stringify(m, function(X,
|
|
460
|
-
var ue =
|
|
461
|
-
return ue === "symbol" ? String(
|
|
459
|
+
var k = JSON.stringify(m, function(X, _) {
|
|
460
|
+
var ue = me(_);
|
|
461
|
+
return ue === "symbol" ? String(_) : _;
|
|
462
462
|
});
|
|
463
|
-
return new v("Invalid " +
|
|
463
|
+
return new v("Invalid " + C + " `" + M + "` of value `" + String(L) + "` " + ("supplied to `" + R + "`, expected one of " + k + "."));
|
|
464
464
|
}
|
|
465
465
|
return g(S);
|
|
466
466
|
}
|
|
467
467
|
function z(m) {
|
|
468
|
-
function S(V, $, R,
|
|
468
|
+
function S(V, $, R, C, M) {
|
|
469
469
|
if (typeof m != "function")
|
|
470
470
|
return new v("Property `" + M + "` of component `" + R + "` has invalid PropType notation inside objectOf.");
|
|
471
471
|
var L = V[$], U = ne(L);
|
|
472
472
|
if (U !== "object")
|
|
473
|
-
return new v("Invalid " +
|
|
473
|
+
return new v("Invalid " + C + " `" + M + "` of type " + ("`" + U + "` supplied to `" + R + "`, expected an object."));
|
|
474
474
|
for (var k in L)
|
|
475
475
|
if (n(L, k)) {
|
|
476
|
-
var O = m(L, k, R,
|
|
476
|
+
var O = m(L, k, R, C, M + "." + k, s);
|
|
477
477
|
if (O instanceof Error)
|
|
478
478
|
return O;
|
|
479
479
|
}
|
|
@@ -491,12 +491,12 @@ function Pn() {
|
|
|
491
491
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + be(V) + " at index " + S + "."
|
|
492
492
|
), i;
|
|
493
493
|
}
|
|
494
|
-
function $(R,
|
|
494
|
+
function $(R, C, M, L, U) {
|
|
495
495
|
for (var k = [], O = 0; O < m.length; O++) {
|
|
496
|
-
var X = m[O],
|
|
497
|
-
if (
|
|
496
|
+
var X = m[O], _ = X(R, C, M, L, U, s);
|
|
497
|
+
if (_ == null)
|
|
498
498
|
return null;
|
|
499
|
-
|
|
499
|
+
_.data && n(_.data, "expectedType") && k.push(_.data.expectedType);
|
|
500
500
|
}
|
|
501
501
|
var ue = k.length > 0 ? ", expected one of type [" + k.join(", ") + "]" : "";
|
|
502
502
|
return new v("Invalid " + L + " `" + U + "` supplied to " + ("`" + M + "`" + ue + "."));
|
|
@@ -504,8 +504,8 @@ function Pn() {
|
|
|
504
504
|
return g($);
|
|
505
505
|
}
|
|
506
506
|
function te() {
|
|
507
|
-
function m(S, V, $, R,
|
|
508
|
-
return
|
|
507
|
+
function m(S, V, $, R, C) {
|
|
508
|
+
return fe(S[V]) ? null : new v("Invalid " + R + " `" + C + "` supplied to " + ("`" + $ + "`, expected a ReactNode."));
|
|
509
509
|
}
|
|
510
510
|
return g(m);
|
|
511
511
|
}
|
|
@@ -515,15 +515,15 @@ function Pn() {
|
|
|
515
515
|
);
|
|
516
516
|
}
|
|
517
517
|
function oe(m) {
|
|
518
|
-
function S(V, $, R,
|
|
518
|
+
function S(V, $, R, C, M) {
|
|
519
519
|
var L = V[$], U = ne(L);
|
|
520
520
|
if (U !== "object")
|
|
521
|
-
return new v("Invalid " +
|
|
521
|
+
return new v("Invalid " + C + " `" + M + "` of type `" + U + "` " + ("supplied to `" + R + "`, expected `object`."));
|
|
522
522
|
for (var k in m) {
|
|
523
523
|
var O = m[k];
|
|
524
524
|
if (typeof O != "function")
|
|
525
|
-
return le(R,
|
|
526
|
-
var X = O(L, k, R,
|
|
525
|
+
return le(R, C, M, k, me(O));
|
|
526
|
+
var X = O(L, k, R, C, M + "." + k, s);
|
|
527
527
|
if (X)
|
|
528
528
|
return X;
|
|
529
529
|
}
|
|
@@ -531,30 +531,30 @@ function Pn() {
|
|
|
531
531
|
}
|
|
532
532
|
return g(S);
|
|
533
533
|
}
|
|
534
|
-
function
|
|
535
|
-
function S(V, $, R,
|
|
534
|
+
function xe(m) {
|
|
535
|
+
function S(V, $, R, C, M) {
|
|
536
536
|
var L = V[$], U = ne(L);
|
|
537
537
|
if (U !== "object")
|
|
538
|
-
return new v("Invalid " +
|
|
538
|
+
return new v("Invalid " + C + " `" + M + "` of type `" + U + "` " + ("supplied to `" + R + "`, expected `object`."));
|
|
539
539
|
var k = e({}, V[$], m);
|
|
540
540
|
for (var O in k) {
|
|
541
541
|
var X = m[O];
|
|
542
542
|
if (n(m, O) && typeof X != "function")
|
|
543
|
-
return le(R,
|
|
543
|
+
return le(R, C, M, O, me(X));
|
|
544
544
|
if (!X)
|
|
545
545
|
return new v(
|
|
546
|
-
"Invalid " +
|
|
546
|
+
"Invalid " + C + " `" + M + "` key `" + O + "` supplied to `" + R + "`.\nBad object: " + JSON.stringify(V[$], null, " ") + `
|
|
547
547
|
Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
|
|
548
548
|
);
|
|
549
|
-
var
|
|
550
|
-
if (
|
|
551
|
-
return
|
|
549
|
+
var _ = X(L, O, R, C, M + "." + O, s);
|
|
550
|
+
if (_)
|
|
551
|
+
return _;
|
|
552
552
|
}
|
|
553
553
|
return null;
|
|
554
554
|
}
|
|
555
555
|
return g(S);
|
|
556
556
|
}
|
|
557
|
-
function
|
|
557
|
+
function fe(m) {
|
|
558
558
|
switch (typeof m) {
|
|
559
559
|
case "number":
|
|
560
560
|
case "string":
|
|
@@ -564,7 +564,7 @@ Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
|
|
|
564
564
|
return !m;
|
|
565
565
|
case "object":
|
|
566
566
|
if (Array.isArray(m))
|
|
567
|
-
return m.every(
|
|
567
|
+
return m.every(fe);
|
|
568
568
|
if (m === null || o(m))
|
|
569
569
|
return !0;
|
|
570
570
|
var S = f(m);
|
|
@@ -572,12 +572,12 @@ Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
|
|
|
572
572
|
var V = S.call(m), $;
|
|
573
573
|
if (S !== m.entries) {
|
|
574
574
|
for (; !($ = V.next()).done; )
|
|
575
|
-
if (!
|
|
575
|
+
if (!fe($.value))
|
|
576
576
|
return !1;
|
|
577
577
|
} else
|
|
578
578
|
for (; !($ = V.next()).done; ) {
|
|
579
579
|
var R = $.value;
|
|
580
|
-
if (R && !
|
|
580
|
+
if (R && !fe(R[1]))
|
|
581
581
|
return !1;
|
|
582
582
|
}
|
|
583
583
|
} else
|
|
@@ -587,14 +587,14 @@ Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
|
|
|
587
587
|
return !1;
|
|
588
588
|
}
|
|
589
589
|
}
|
|
590
|
-
function
|
|
590
|
+
function ge(m, S) {
|
|
591
591
|
return m === "symbol" ? !0 : S ? S["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && S instanceof Symbol : !1;
|
|
592
592
|
}
|
|
593
593
|
function ne(m) {
|
|
594
594
|
var S = typeof m;
|
|
595
|
-
return Array.isArray(m) ? "array" : m instanceof RegExp ? "object" :
|
|
595
|
+
return Array.isArray(m) ? "array" : m instanceof RegExp ? "object" : ge(S, m) ? "symbol" : S;
|
|
596
596
|
}
|
|
597
|
-
function
|
|
597
|
+
function me(m) {
|
|
598
598
|
if (typeof m > "u" || m === null)
|
|
599
599
|
return "" + m;
|
|
600
600
|
var S = ne(m);
|
|
@@ -607,7 +607,7 @@ Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
|
|
|
607
607
|
return S;
|
|
608
608
|
}
|
|
609
609
|
function be(m) {
|
|
610
|
-
var S =
|
|
610
|
+
var S = me(m);
|
|
611
611
|
switch (S) {
|
|
612
612
|
case "array":
|
|
613
613
|
case "object":
|
|
@@ -620,28 +620,28 @@ Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
|
|
|
620
620
|
return S;
|
|
621
621
|
}
|
|
622
622
|
}
|
|
623
|
-
function
|
|
624
|
-
return !m.constructor || !m.constructor.name ?
|
|
623
|
+
function ve(m) {
|
|
624
|
+
return !m.constructor || !m.constructor.name ? y : m.constructor.name;
|
|
625
625
|
}
|
|
626
626
|
return b.checkPropTypes = a, b.resetWarningCache = a.resetWarningCache, b.PropTypes = b, b;
|
|
627
|
-
},
|
|
627
|
+
}, xt;
|
|
628
628
|
}
|
|
629
|
-
var
|
|
629
|
+
var Ct, es;
|
|
630
630
|
function qn() {
|
|
631
|
-
if (
|
|
632
|
-
|
|
633
|
-
var t =
|
|
631
|
+
if (es) return Ct;
|
|
632
|
+
es = 1;
|
|
633
|
+
var t = jt();
|
|
634
634
|
function e() {
|
|
635
635
|
}
|
|
636
636
|
function s() {
|
|
637
637
|
}
|
|
638
|
-
return s.resetWarningCache = e,
|
|
638
|
+
return s.resetWarningCache = e, Ct = function() {
|
|
639
639
|
function n(i, o, u, d, h, f) {
|
|
640
640
|
if (f !== t) {
|
|
641
|
-
var
|
|
641
|
+
var y = new Error(
|
|
642
642
|
"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"
|
|
643
643
|
);
|
|
644
|
-
throw
|
|
644
|
+
throw y.name = "Invariant Violation", y;
|
|
645
645
|
}
|
|
646
646
|
}
|
|
647
647
|
n.isRequired = n;
|
|
@@ -672,7 +672,7 @@ function qn() {
|
|
|
672
672
|
resetWarningCache: e
|
|
673
673
|
};
|
|
674
674
|
return r.PropTypes = r, r;
|
|
675
|
-
},
|
|
675
|
+
}, Ct;
|
|
676
676
|
}
|
|
677
677
|
if (process.env.NODE_ENV !== "production") {
|
|
678
678
|
var Un = os(), zn = !0;
|
|
@@ -794,7 +794,7 @@ const _e = {
|
|
|
794
794
|
}
|
|
795
795
|
}
|
|
796
796
|
};
|
|
797
|
-
var
|
|
797
|
+
var st = /* @__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))(st || {});
|
|
798
798
|
const Yn = {
|
|
799
799
|
bold: 700,
|
|
800
800
|
semibold: 600,
|
|
@@ -812,7 +812,7 @@ const Yn = {
|
|
|
812
812
|
testId: i = _e.props.testId.default,
|
|
813
813
|
onClick: o = _e.props.onClick.default
|
|
814
814
|
}) => {
|
|
815
|
-
const u = "material-symbols-rounded", d = e && _e.props.color.options.find((f) => f === e) && `color__${
|
|
815
|
+
const u = "material-symbols-rounded", d = e && _e.props.color.options.find((f) => f === e) && `color__${st[e] ?? e}`, h = he(() => ({
|
|
816
816
|
fontVariationSettings: `'FILL' ${a ? 1 : 0}, 'GRAD' 0,'wght' ${Yn[r]}, 'opsz' 48`
|
|
817
817
|
}), [r, a]);
|
|
818
818
|
return /* @__PURE__ */ c(
|
|
@@ -856,11 +856,11 @@ const ht = ({
|
|
|
856
856
|
variant: d = K.props.variant.default,
|
|
857
857
|
color: h = K.props.color.default,
|
|
858
858
|
iconFill: f = K.props.iconFill.default,
|
|
859
|
-
iconPosition:
|
|
859
|
+
iconPosition: y = K.props.iconPosition.default,
|
|
860
860
|
fullSize: b = K.props.fullSize.default,
|
|
861
861
|
trackingData: E
|
|
862
862
|
}) => {
|
|
863
|
-
const v = n && K.props.size.options.find((z) => z === n) ? `${K.class}--${n}` : `${K.class}__${K.props.size.default}`, g = a && `${K.class}--disabled`,
|
|
863
|
+
const v = n && K.props.size.options.find((z) => z === n) ? `${K.class}--${n}` : `${K.class}__${K.props.size.default}`, g = a && `${K.class}--disabled`, w = `${K.class}__${h}--${d}`, F = u && `${K.class}--elevation-${u}`, x = r && `${K.class}--with-icon`, A = b ? `${K.class}--full-size` : "", p = y === "right" ? `${K.class}__icon` : `${K.class}__icon--left`, T = y === "right" ? `${K.class}__text` : `${K.class}__text--reversed`, B = (z) => {
|
|
864
864
|
E && Bn(E), s && s(z);
|
|
865
865
|
};
|
|
866
866
|
return /* @__PURE__ */ c(
|
|
@@ -868,19 +868,19 @@ const ht = ({
|
|
|
868
868
|
{
|
|
869
869
|
className: [
|
|
870
870
|
K.class,
|
|
871
|
-
|
|
871
|
+
A,
|
|
872
872
|
g,
|
|
873
873
|
v,
|
|
874
|
-
|
|
874
|
+
w,
|
|
875
875
|
F,
|
|
876
|
-
|
|
876
|
+
x,
|
|
877
877
|
e
|
|
878
878
|
].filter((z) => z).join(" "),
|
|
879
879
|
"data-testid": o,
|
|
880
880
|
disabled: a,
|
|
881
881
|
id: i,
|
|
882
882
|
onClick: a ? void 0 : B,
|
|
883
|
-
children: /* @__PURE__ */ I("span", { className: ["ds-button__text",
|
|
883
|
+
children: /* @__PURE__ */ I("span", { className: ["ds-button__text", T].join(" "), children: [
|
|
884
884
|
t,
|
|
885
885
|
r && /* @__PURE__ */ c(
|
|
886
886
|
Q,
|
|
@@ -912,7 +912,7 @@ ht.displayName = "DsButton";
|
|
|
912
912
|
const Kn = {
|
|
913
913
|
name: "Caption",
|
|
914
914
|
class: "ds-caption"
|
|
915
|
-
},
|
|
915
|
+
}, ys = ({
|
|
916
916
|
children: t,
|
|
917
917
|
className: e,
|
|
918
918
|
testId: s = "ds-caption-test"
|
|
@@ -924,12 +924,12 @@ const Kn = {
|
|
|
924
924
|
children: t
|
|
925
925
|
}
|
|
926
926
|
);
|
|
927
|
-
|
|
927
|
+
ys.propTypes = {
|
|
928
928
|
children: l.node.isRequired,
|
|
929
929
|
className: l.string,
|
|
930
930
|
testId: l.string
|
|
931
931
|
};
|
|
932
|
-
|
|
932
|
+
ys.displayName = "DsCaption";
|
|
933
933
|
var Bt = /* @__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))(Bt || {}), Xn = /* @__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))(Xn || {});
|
|
934
934
|
const Ve = {
|
|
935
935
|
name: "Card",
|
|
@@ -966,7 +966,7 @@ const Ve = {
|
|
|
966
966
|
default: "ds-card"
|
|
967
967
|
}
|
|
968
968
|
}
|
|
969
|
-
},
|
|
969
|
+
}, _s = ({
|
|
970
970
|
id: t,
|
|
971
971
|
testId: e = Ve.props.testId.default,
|
|
972
972
|
children: s,
|
|
@@ -975,7 +975,7 @@ const Ve = {
|
|
|
975
975
|
backgroundColor: r = Ve.props.backgroundColor.default,
|
|
976
976
|
borderColor: i = Ve.props.borderColor.default
|
|
977
977
|
}) => {
|
|
978
|
-
const o = a && `elevation-${a}`, u = i && `border-color__${
|
|
978
|
+
const o = a && `elevation-${a}`, u = i && `border-color__${st[i] ?? i}`, d = r && `bg-color__${st[r] ?? r}`;
|
|
979
979
|
return /* @__PURE__ */ c(
|
|
980
980
|
"div",
|
|
981
981
|
{
|
|
@@ -992,14 +992,14 @@ const Ve = {
|
|
|
992
992
|
}
|
|
993
993
|
);
|
|
994
994
|
};
|
|
995
|
-
|
|
995
|
+
_s.propTypes = {
|
|
996
996
|
id: l.string,
|
|
997
997
|
testId: l.string,
|
|
998
998
|
backgroundColor: l.oneOf(Ve.props.backgroundColor.options),
|
|
999
999
|
borderColor: l.oneOf(Ve.props.borderColor.options),
|
|
1000
1000
|
elevation: l.oneOf(Ve.props.elevation.options)
|
|
1001
1001
|
};
|
|
1002
|
-
|
|
1002
|
+
_s.displayName = "DsCard";
|
|
1003
1003
|
const ce = {
|
|
1004
1004
|
name: "Checkbox",
|
|
1005
1005
|
class: "ds-checkbox",
|
|
@@ -1037,7 +1037,7 @@ const ce = {
|
|
|
1037
1037
|
default: () => ({})
|
|
1038
1038
|
}
|
|
1039
1039
|
}
|
|
1040
|
-
}, ks =
|
|
1040
|
+
}, ks = we.forwardRef(
|
|
1041
1041
|
({
|
|
1042
1042
|
id: t,
|
|
1043
1043
|
className: e,
|
|
@@ -1050,11 +1050,11 @@ const ce = {
|
|
|
1050
1050
|
changeByChecked: u = ce.props.changeByChecked.default,
|
|
1051
1051
|
onChangeHandler: d
|
|
1052
1052
|
}, h) => {
|
|
1053
|
-
const f = u ?? !1,
|
|
1053
|
+
const f = u ?? !1, y = i ?? !1, [b, E] = q(y), v = {
|
|
1054
1054
|
image: b ? "check_box" : "check_box_outline_blank",
|
|
1055
1055
|
class: b ? `${ce.class}__icon--checked` : `${ce.class}__icon--unchecked`
|
|
1056
|
-
}, g = o && `${ce.class}--disabled`,
|
|
1057
|
-
o || (E((
|
|
1056
|
+
}, g = o && `${ce.class}--disabled`, w = (F) => {
|
|
1057
|
+
o || (E((x) => !x), d && d(F));
|
|
1058
1058
|
};
|
|
1059
1059
|
return G(() => {
|
|
1060
1060
|
f && E(i);
|
|
@@ -1075,7 +1075,7 @@ const ce = {
|
|
|
1075
1075
|
disabled: o,
|
|
1076
1076
|
id: t || s,
|
|
1077
1077
|
name: s,
|
|
1078
|
-
onChange:
|
|
1078
|
+
onChange: w,
|
|
1079
1079
|
ref: h,
|
|
1080
1080
|
type: "checkbox"
|
|
1081
1081
|
}
|
|
@@ -1185,7 +1185,7 @@ const Je = {
|
|
|
1185
1185
|
options: Object.values(Ss)
|
|
1186
1186
|
}
|
|
1187
1187
|
}
|
|
1188
|
-
},
|
|
1188
|
+
}, Pt = ({
|
|
1189
1189
|
children: t,
|
|
1190
1190
|
testId: e = "ds-heading-test",
|
|
1191
1191
|
type: s = Je.props.type.default,
|
|
@@ -1208,13 +1208,13 @@ const Je = {
|
|
|
1208
1208
|
}
|
|
1209
1209
|
);
|
|
1210
1210
|
};
|
|
1211
|
-
|
|
1211
|
+
Pt.propTypes = {
|
|
1212
1212
|
className: l.string,
|
|
1213
1213
|
testId: l.string,
|
|
1214
1214
|
type: l.oneOf(Je.props.type.options)
|
|
1215
1215
|
};
|
|
1216
|
-
|
|
1217
|
-
var
|
|
1216
|
+
Pt.displayName = "DsHeading";
|
|
1217
|
+
var ws = /* @__PURE__ */ ((t) => (t.None = "", t.Dashed = "dashed", t.Dotted = "dotted", t))(ws || {}), As = /* @__PURE__ */ ((t) => (t.None = "", t.Small = "small", t.Large = "large", t))(As || {});
|
|
1218
1218
|
const ze = {
|
|
1219
1219
|
name: "HR",
|
|
1220
1220
|
class: "ds-hr",
|
|
@@ -1222,24 +1222,24 @@ const ze = {
|
|
|
1222
1222
|
borderStyle: {
|
|
1223
1223
|
type: String,
|
|
1224
1224
|
default: "",
|
|
1225
|
-
options: Object.values(
|
|
1225
|
+
options: Object.values(ws)
|
|
1226
1226
|
},
|
|
1227
1227
|
size: {
|
|
1228
1228
|
type: String,
|
|
1229
1229
|
default: "",
|
|
1230
|
-
options: Object.values(
|
|
1230
|
+
options: Object.values(As)
|
|
1231
1231
|
}
|
|
1232
1232
|
}
|
|
1233
1233
|
};
|
|
1234
|
-
function
|
|
1234
|
+
function ts(t, e, s) {
|
|
1235
1235
|
const n = s.props[t];
|
|
1236
1236
|
return n.options && n.options.some((a) => a === e) ? `${s.class}--${e}` : "";
|
|
1237
1237
|
}
|
|
1238
|
-
const
|
|
1238
|
+
const xs = ({
|
|
1239
1239
|
size: t = ze.props.size.default,
|
|
1240
1240
|
borderStyle: e = ze.props.borderStyle.default
|
|
1241
1241
|
}) => {
|
|
1242
|
-
const s =
|
|
1242
|
+
const s = ts("size", t, ze), n = ts("borderStyle", e, ze);
|
|
1243
1243
|
return /* @__PURE__ */ c(
|
|
1244
1244
|
"hr",
|
|
1245
1245
|
{
|
|
@@ -1247,25 +1247,25 @@ const As = ({
|
|
|
1247
1247
|
}
|
|
1248
1248
|
);
|
|
1249
1249
|
};
|
|
1250
|
-
|
|
1250
|
+
xs.propTypes = {
|
|
1251
1251
|
size: l.oneOf(ze.props.size.options),
|
|
1252
1252
|
borderStyle: l.oneOf(ze.props.borderStyle.options)
|
|
1253
1253
|
};
|
|
1254
|
-
|
|
1254
|
+
xs.displayName = "DsHR";
|
|
1255
1255
|
function Le(t) {
|
|
1256
1256
|
return typeof t == "string" || t instanceof String;
|
|
1257
1257
|
}
|
|
1258
|
-
function
|
|
1258
|
+
function ss(t) {
|
|
1259
1259
|
var e;
|
|
1260
1260
|
return typeof t == "object" && t != null && (t == null || (e = t.constructor) == null ? void 0 : e.name) === "Object";
|
|
1261
1261
|
}
|
|
1262
|
-
function
|
|
1263
|
-
return Array.isArray(e) ?
|
|
1262
|
+
function Cs(t, e) {
|
|
1263
|
+
return Array.isArray(e) ? Cs(t, (s, n) => e.includes(n)) : Object.entries(t).reduce((s, n) => {
|
|
1264
1264
|
let [a, r] = n;
|
|
1265
1265
|
return e(r, a) && (s[a] = r), s;
|
|
1266
1266
|
}, {});
|
|
1267
1267
|
}
|
|
1268
|
-
const
|
|
1268
|
+
const D = {
|
|
1269
1269
|
NONE: "NONE",
|
|
1270
1270
|
LEFT: "LEFT",
|
|
1271
1271
|
FORCE_LEFT: "FORCE_LEFT",
|
|
@@ -1274,15 +1274,15 @@ const T = {
|
|
|
1274
1274
|
};
|
|
1275
1275
|
function Gn(t) {
|
|
1276
1276
|
switch (t) {
|
|
1277
|
-
case
|
|
1278
|
-
return
|
|
1279
|
-
case
|
|
1280
|
-
return
|
|
1277
|
+
case D.LEFT:
|
|
1278
|
+
return D.FORCE_LEFT;
|
|
1279
|
+
case D.RIGHT:
|
|
1280
|
+
return D.FORCE_RIGHT;
|
|
1281
1281
|
default:
|
|
1282
1282
|
return t;
|
|
1283
1283
|
}
|
|
1284
1284
|
}
|
|
1285
|
-
function
|
|
1285
|
+
function Dt(t) {
|
|
1286
1286
|
return t.replace(/([.*+?^=!:${}()|[\]/\\])/g, "\\$1");
|
|
1287
1287
|
}
|
|
1288
1288
|
function gt(t, e) {
|
|
@@ -1353,18 +1353,18 @@ class Zn {
|
|
|
1353
1353
|
}
|
|
1354
1354
|
/** Remove direction */
|
|
1355
1355
|
get removeDirection() {
|
|
1356
|
-
return !this.removedCount || this.insertedCount ?
|
|
1357
|
-
this.oldSelection.end === this.oldSelection.start ?
|
|
1356
|
+
return !this.removedCount || this.insertedCount ? D.NONE : (this.oldSelection.end === this.cursorPos || this.oldSelection.start === this.cursorPos) && // if not range removed (event with backspace)
|
|
1357
|
+
this.oldSelection.end === this.oldSelection.start ? D.RIGHT : D.LEFT;
|
|
1358
1358
|
}
|
|
1359
1359
|
}
|
|
1360
1360
|
function N(t, e) {
|
|
1361
1361
|
return new N.InputMask(t, e);
|
|
1362
1362
|
}
|
|
1363
|
-
function
|
|
1363
|
+
function Ds(t) {
|
|
1364
1364
|
if (t == null) throw new Error("mask property should be defined");
|
|
1365
1365
|
return t instanceof RegExp ? N.MaskedRegExp : Le(t) ? N.MaskedPattern : t === Date ? N.MaskedDate : t === Number ? N.MaskedNumber : Array.isArray(t) || t === Array ? N.MaskedDynamic : N.Masked && t.prototype instanceof N.Masked ? t : N.Masked && t instanceof N.Masked ? t.constructor : t instanceof Function ? N.MaskedFunction : (console.warn("Mask not found for mask", t), N.Masked);
|
|
1366
1366
|
}
|
|
1367
|
-
function
|
|
1367
|
+
function nt(t) {
|
|
1368
1368
|
if (!t) throw new Error("Options in not defined");
|
|
1369
1369
|
if (N.Masked) {
|
|
1370
1370
|
if (t.prototype instanceof N.Masked) return {
|
|
@@ -1375,18 +1375,18 @@ function st(t) {
|
|
|
1375
1375
|
...s
|
|
1376
1376
|
} = t instanceof N.Masked ? {
|
|
1377
1377
|
mask: t
|
|
1378
|
-
} :
|
|
1378
|
+
} : ss(t) && t.mask instanceof N.Masked ? t : {};
|
|
1379
1379
|
if (e) {
|
|
1380
1380
|
const n = e.mask;
|
|
1381
1381
|
return {
|
|
1382
|
-
...
|
|
1382
|
+
...Cs(e, (a, r) => !r.startsWith("_")),
|
|
1383
1383
|
mask: e.constructor,
|
|
1384
1384
|
_mask: n,
|
|
1385
1385
|
...s
|
|
1386
1386
|
};
|
|
1387
1387
|
}
|
|
1388
1388
|
}
|
|
1389
|
-
return
|
|
1389
|
+
return ss(t) ? {
|
|
1390
1390
|
...t
|
|
1391
1391
|
} : {
|
|
1392
1392
|
mask: t
|
|
@@ -1394,12 +1394,12 @@ function st(t) {
|
|
|
1394
1394
|
}
|
|
1395
1395
|
function $e(t) {
|
|
1396
1396
|
if (N.Masked && t instanceof N.Masked) return t;
|
|
1397
|
-
const e =
|
|
1397
|
+
const e = nt(t), s = Ds(e.mask);
|
|
1398
1398
|
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.");
|
|
1399
1399
|
return e.mask === s && delete e.mask, e._mask && (e.mask = e._mask, delete e._mask), new s(e);
|
|
1400
1400
|
}
|
|
1401
1401
|
N.createMask = $e;
|
|
1402
|
-
class
|
|
1402
|
+
class qt {
|
|
1403
1403
|
/** */
|
|
1404
1404
|
/** */
|
|
1405
1405
|
/** */
|
|
@@ -1437,9 +1437,9 @@ class Pt {
|
|
|
1437
1437
|
/** */
|
|
1438
1438
|
/** */
|
|
1439
1439
|
}
|
|
1440
|
-
N.MaskElement =
|
|
1441
|
-
const
|
|
1442
|
-
class
|
|
1440
|
+
N.MaskElement = qt;
|
|
1441
|
+
const ns = 90, Qn = 89;
|
|
1442
|
+
class yt extends qt {
|
|
1443
1443
|
/** HTMLElement to use mask on */
|
|
1444
1444
|
constructor(e) {
|
|
1445
1445
|
super(), this.input = e, this._onKeydown = this._onKeydown.bind(this), this._onInput = this._onInput.bind(this), this._onBeforeinput = this._onBeforeinput.bind(this), this._onCompositionEnd = this._onCompositionEnd.bind(this);
|
|
@@ -1457,9 +1457,9 @@ class _t extends Pt {
|
|
|
1457
1457
|
this.input.addEventListener("keydown", this._onKeydown), this.input.addEventListener("input", this._onInput), this.input.addEventListener("beforeinput", this._onBeforeinput), this.input.addEventListener("compositionend", this._onCompositionEnd), this.input.addEventListener("drop", e.drop), this.input.addEventListener("click", e.click), this.input.addEventListener("focus", e.focus), this.input.addEventListener("blur", e.commit), this._handlers = e;
|
|
1458
1458
|
}
|
|
1459
1459
|
_onKeydown(e) {
|
|
1460
|
-
if (this._handlers.redo && (e.keyCode ===
|
|
1460
|
+
if (this._handlers.redo && (e.keyCode === ns && e.shiftKey && (e.metaKey || e.ctrlKey) || e.keyCode === Qn && e.ctrlKey))
|
|
1461
1461
|
return e.preventDefault(), this._handlers.redo(e);
|
|
1462
|
-
if (this._handlers.undo && e.keyCode ===
|
|
1462
|
+
if (this._handlers.undo && e.keyCode === ns && (e.metaKey || e.ctrlKey))
|
|
1463
1463
|
return e.preventDefault(), this._handlers.undo(e);
|
|
1464
1464
|
e.isComposing || this._handlers.selectionChange(e);
|
|
1465
1465
|
}
|
|
@@ -1480,8 +1480,8 @@ class _t extends Pt {
|
|
|
1480
1480
|
this.input.removeEventListener("keydown", this._onKeydown), this.input.removeEventListener("input", this._onInput), this.input.removeEventListener("beforeinput", this._onBeforeinput), this.input.removeEventListener("compositionend", this._onCompositionEnd), this.input.removeEventListener("drop", this._handlers.drop), this.input.removeEventListener("click", this._handlers.click), this.input.removeEventListener("focus", this._handlers.focus), this.input.removeEventListener("blur", this._handlers.commit), this._handlers = {};
|
|
1481
1481
|
}
|
|
1482
1482
|
}
|
|
1483
|
-
N.HTMLMaskElement =
|
|
1484
|
-
class Jn extends
|
|
1483
|
+
N.HTMLMaskElement = yt;
|
|
1484
|
+
class Jn extends yt {
|
|
1485
1485
|
/** InputElement to use mask on */
|
|
1486
1486
|
constructor(e) {
|
|
1487
1487
|
super(e), this.input = e;
|
|
@@ -1505,8 +1505,8 @@ class Jn extends _t {
|
|
|
1505
1505
|
this.input.value = e;
|
|
1506
1506
|
}
|
|
1507
1507
|
}
|
|
1508
|
-
N.HTMLMaskElement =
|
|
1509
|
-
class
|
|
1508
|
+
N.HTMLMaskElement = yt;
|
|
1509
|
+
class Ts extends yt {
|
|
1510
1510
|
/** Returns HTMLElement selection start */
|
|
1511
1511
|
get _unsafeSelectionStart() {
|
|
1512
1512
|
const e = this.rootElement, s = e.getSelection && e.getSelection(), n = s && s.anchorOffset, a = s && s.focusOffset;
|
|
@@ -1533,8 +1533,8 @@ class Ds extends _t {
|
|
|
1533
1533
|
this.input.textContent = e;
|
|
1534
1534
|
}
|
|
1535
1535
|
}
|
|
1536
|
-
N.HTMLContenteditableMaskElement =
|
|
1537
|
-
class
|
|
1536
|
+
N.HTMLContenteditableMaskElement = Ts;
|
|
1537
|
+
class _t {
|
|
1538
1538
|
constructor() {
|
|
1539
1539
|
this.states = [], this.currentIndex = 0;
|
|
1540
1540
|
}
|
|
@@ -1545,7 +1545,7 @@ class yt {
|
|
|
1545
1545
|
return this.states.length === 0;
|
|
1546
1546
|
}
|
|
1547
1547
|
push(e) {
|
|
1548
|
-
this.currentIndex < this.states.length - 1 && (this.states.length = this.currentIndex + 1), this.states.push(e), this.states.length >
|
|
1548
|
+
this.currentIndex < this.states.length - 1 && (this.states.length = this.currentIndex + 1), this.states.push(e), this.states.length > _t.MAX_LENGTH && this.states.shift(), this.currentIndex = this.states.length - 1;
|
|
1549
1549
|
}
|
|
1550
1550
|
go(e) {
|
|
1551
1551
|
return this.currentIndex = Math.min(Math.max(this.currentIndex + e, 0), this.states.length - 1), this.currentState;
|
|
@@ -1560,14 +1560,14 @@ class yt {
|
|
|
1560
1560
|
this.states.length = 0, this.currentIndex = 0;
|
|
1561
1561
|
}
|
|
1562
1562
|
}
|
|
1563
|
-
|
|
1563
|
+
_t.MAX_LENGTH = 100;
|
|
1564
1564
|
class ea {
|
|
1565
1565
|
/**
|
|
1566
1566
|
View element
|
|
1567
1567
|
*/
|
|
1568
1568
|
/** Internal {@link Masked} model */
|
|
1569
1569
|
constructor(e, s) {
|
|
1570
|
-
this.el = e instanceof
|
|
1570
|
+
this.el = e instanceof qt ? e : e.isContentEditable && e.tagName !== "INPUT" && e.tagName !== "TEXTAREA" ? new Ts(e) : new Jn(e), this.masked = $e(s), this._listeners = {}, this._value = "", this._unmaskedValue = "", this._rawInputValue = "", this.history = new _t(), 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();
|
|
1571
1571
|
}
|
|
1572
1572
|
maskEquals(e) {
|
|
1573
1573
|
var s;
|
|
@@ -1579,7 +1579,7 @@ class ea {
|
|
|
1579
1579
|
}
|
|
1580
1580
|
set mask(e) {
|
|
1581
1581
|
if (this.maskEquals(e)) return;
|
|
1582
|
-
if (!(e instanceof N.Masked) && this.masked.constructor ===
|
|
1582
|
+
if (!(e instanceof N.Masked) && this.masked.constructor === Ds(e)) {
|
|
1583
1583
|
this.masked.updateOptions({
|
|
1584
1584
|
mask: e
|
|
1585
1585
|
});
|
|
@@ -1705,7 +1705,7 @@ class ea {
|
|
|
1705
1705
|
}
|
|
1706
1706
|
/** Aligns cursor to nearest available position */
|
|
1707
1707
|
alignCursor() {
|
|
1708
|
-
this.cursorPos = this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,
|
|
1708
|
+
this.cursorPos = this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos, D.LEFT));
|
|
1709
1709
|
}
|
|
1710
1710
|
/** Aligns cursor only if selection is empty */
|
|
1711
1711
|
alignCursorFriendly() {
|
|
@@ -1736,9 +1736,9 @@ class ea {
|
|
|
1736
1736
|
}), n = this.masked.rawInputValue, a = this.masked.splice(s.startChangePos, s.removed.length, s.inserted, s.removeDirection, {
|
|
1737
1737
|
input: !0,
|
|
1738
1738
|
raw: !0
|
|
1739
|
-
}).offset, r = n === this.masked.rawInputValue ? s.removeDirection :
|
|
1739
|
+
}).offset, r = n === this.masked.rawInputValue ? s.removeDirection : D.NONE;
|
|
1740
1740
|
let i = this.masked.nearestInputPos(s.startChangePos + a, r);
|
|
1741
|
-
r !==
|
|
1741
|
+
r !== D.NONE && (i = this.masked.nearestInputPos(i, D.NONE)), this.updateControl(i), delete this._inputEvent;
|
|
1742
1742
|
}
|
|
1743
1743
|
/** Handles view change event and commits model value */
|
|
1744
1744
|
_onChange() {
|
|
@@ -2048,7 +2048,7 @@ class re {
|
|
|
2048
2048
|
this.commit && this.commit(this.value, this);
|
|
2049
2049
|
}
|
|
2050
2050
|
splice(e, s, n, a, r) {
|
|
2051
|
-
n === void 0 && (n = ""), a === void 0 && (a =
|
|
2051
|
+
n === void 0 && (n = ""), a === void 0 && (a = D.NONE), r === void 0 && (r = {
|
|
2052
2052
|
input: !0
|
|
2053
2053
|
});
|
|
2054
2054
|
const i = e + s, o = this.extractTail(i), u = this.eager === !0 || this.eager === "remove";
|
|
@@ -2058,14 +2058,14 @@ class re {
|
|
|
2058
2058
|
}));
|
|
2059
2059
|
let h = e;
|
|
2060
2060
|
const f = new j();
|
|
2061
|
-
if (a !==
|
|
2062
|
-
if (a ===
|
|
2063
|
-
let
|
|
2064
|
-
for (; d === this.rawInputValue && (
|
|
2061
|
+
if (a !== D.NONE && (h = this.nearestInputPos(e, s > 1 && e !== 0 && !u ? D.NONE : a), f.tailShift = h - e), f.aggregate(this.remove(h)), u && a !== D.NONE && d === this.rawInputValue)
|
|
2062
|
+
if (a === D.FORCE_LEFT) {
|
|
2063
|
+
let y;
|
|
2064
|
+
for (; d === this.rawInputValue && (y = this.displayValue.length); )
|
|
2065
2065
|
f.aggregate(new j({
|
|
2066
2066
|
tailShift: -1
|
|
2067
|
-
})).aggregate(this.remove(
|
|
2068
|
-
} else a ===
|
|
2067
|
+
})).aggregate(this.remove(y - 1));
|
|
2068
|
+
} else a === D.FORCE_RIGHT && o.unshift();
|
|
2069
2069
|
return f.aggregate(this.append(n, r, o));
|
|
2070
2070
|
}
|
|
2071
2071
|
maskEquals(e) {
|
|
@@ -2244,38 +2244,38 @@ class ta {
|
|
|
2244
2244
|
}
|
|
2245
2245
|
pushLeftBeforeFilled() {
|
|
2246
2246
|
return this._pushLeft(() => {
|
|
2247
|
-
if (!(this.block.isFixed || !this.block.value) && (this.offset = this.block.nearestInputPos(this.offset,
|
|
2247
|
+
if (!(this.block.isFixed || !this.block.value) && (this.offset = this.block.nearestInputPos(this.offset, D.FORCE_LEFT), this.offset !== 0))
|
|
2248
2248
|
return !0;
|
|
2249
2249
|
});
|
|
2250
2250
|
}
|
|
2251
2251
|
pushLeftBeforeInput() {
|
|
2252
2252
|
return this._pushLeft(() => {
|
|
2253
2253
|
if (!this.block.isFixed)
|
|
2254
|
-
return this.offset = this.block.nearestInputPos(this.offset,
|
|
2254
|
+
return this.offset = this.block.nearestInputPos(this.offset, D.LEFT), !0;
|
|
2255
2255
|
});
|
|
2256
2256
|
}
|
|
2257
2257
|
pushLeftBeforeRequired() {
|
|
2258
2258
|
return this._pushLeft(() => {
|
|
2259
2259
|
if (!(this.block.isFixed || this.block.isOptional && !this.block.value))
|
|
2260
|
-
return this.offset = this.block.nearestInputPos(this.offset,
|
|
2260
|
+
return this.offset = this.block.nearestInputPos(this.offset, D.LEFT), !0;
|
|
2261
2261
|
});
|
|
2262
2262
|
}
|
|
2263
2263
|
pushRightBeforeFilled() {
|
|
2264
2264
|
return this._pushRight(() => {
|
|
2265
|
-
if (!(this.block.isFixed || !this.block.value) && (this.offset = this.block.nearestInputPos(this.offset,
|
|
2265
|
+
if (!(this.block.isFixed || !this.block.value) && (this.offset = this.block.nearestInputPos(this.offset, D.FORCE_RIGHT), this.offset !== this.block.value.length))
|
|
2266
2266
|
return !0;
|
|
2267
2267
|
});
|
|
2268
2268
|
}
|
|
2269
2269
|
pushRightBeforeInput() {
|
|
2270
2270
|
return this._pushRight(() => {
|
|
2271
2271
|
if (!this.block.isFixed)
|
|
2272
|
-
return this.offset = this.block.nearestInputPos(this.offset,
|
|
2272
|
+
return this.offset = this.block.nearestInputPos(this.offset, D.NONE), !0;
|
|
2273
2273
|
});
|
|
2274
2274
|
}
|
|
2275
2275
|
pushRightBeforeRequired() {
|
|
2276
2276
|
return this._pushRight(() => {
|
|
2277
2277
|
if (!(this.block.isFixed || this.block.isOptional && !this.block.value))
|
|
2278
|
-
return this.offset = this.block.nearestInputPos(this.offset,
|
|
2278
|
+
return this.offset = this.block.nearestInputPos(this.offset, D.NONE), !0;
|
|
2279
2279
|
});
|
|
2280
2280
|
}
|
|
2281
2281
|
}
|
|
@@ -2308,15 +2308,15 @@ class Fs {
|
|
|
2308
2308
|
return e === void 0 && (e = 0), s === void 0 && (s = this._value.length), this._value = this._value.slice(0, e) + this._value.slice(s), this._value || (this._isRawInput = !1), new j();
|
|
2309
2309
|
}
|
|
2310
2310
|
nearestInputPos(e, s) {
|
|
2311
|
-
s === void 0 && (s =
|
|
2311
|
+
s === void 0 && (s = D.NONE);
|
|
2312
2312
|
const n = 0, a = this._value.length;
|
|
2313
2313
|
switch (s) {
|
|
2314
|
-
case
|
|
2315
|
-
case
|
|
2314
|
+
case D.LEFT:
|
|
2315
|
+
case D.FORCE_LEFT:
|
|
2316
2316
|
return n;
|
|
2317
|
-
case
|
|
2318
|
-
case
|
|
2319
|
-
case
|
|
2317
|
+
case D.NONE:
|
|
2318
|
+
case D.RIGHT:
|
|
2319
|
+
case D.FORCE_RIGHT:
|
|
2320
2320
|
default:
|
|
2321
2321
|
return a;
|
|
2322
2322
|
}
|
|
@@ -2451,16 +2451,16 @@ class mt {
|
|
|
2451
2451
|
return e === void 0 && (e = 0), s === void 0 && (s = this.value.length), this.masked.extractInput(e, s, n);
|
|
2452
2452
|
}
|
|
2453
2453
|
nearestInputPos(e, s) {
|
|
2454
|
-
s === void 0 && (s =
|
|
2454
|
+
s === void 0 && (s = D.NONE);
|
|
2455
2455
|
const n = 0, a = this.value.length, r = Math.min(Math.max(e, n), a);
|
|
2456
2456
|
switch (s) {
|
|
2457
|
-
case
|
|
2458
|
-
case
|
|
2457
|
+
case D.LEFT:
|
|
2458
|
+
case D.FORCE_LEFT:
|
|
2459
2459
|
return this.isComplete ? r : n;
|
|
2460
|
-
case
|
|
2461
|
-
case
|
|
2460
|
+
case D.RIGHT:
|
|
2461
|
+
case D.FORCE_RIGHT:
|
|
2462
2462
|
return this.isComplete ? r : a;
|
|
2463
|
-
case
|
|
2463
|
+
case D.NONE:
|
|
2464
2464
|
default:
|
|
2465
2465
|
return r;
|
|
2466
2466
|
}
|
|
@@ -2548,15 +2548,15 @@ class ie extends re {
|
|
|
2548
2548
|
let n = !1, a = !1;
|
|
2549
2549
|
for (let r = 0; r < s.length; ++r) {
|
|
2550
2550
|
if (this.blocks) {
|
|
2551
|
-
const d = s.slice(r), h = Object.keys(this.blocks).filter((
|
|
2552
|
-
h.sort((
|
|
2551
|
+
const d = s.slice(r), h = Object.keys(this.blocks).filter((y) => d.indexOf(y) === 0);
|
|
2552
|
+
h.sort((y, b) => b.length - y.length);
|
|
2553
2553
|
const f = h[0];
|
|
2554
2554
|
if (f) {
|
|
2555
2555
|
const {
|
|
2556
|
-
expose:
|
|
2556
|
+
expose: y,
|
|
2557
2557
|
repeat: b,
|
|
2558
2558
|
...E
|
|
2559
|
-
} =
|
|
2559
|
+
} = nt(this.blocks[f]), v = {
|
|
2560
2560
|
lazy: this.lazy,
|
|
2561
2561
|
eager: this.eager,
|
|
2562
2562
|
placeholderChar: this.placeholderChar,
|
|
@@ -2570,7 +2570,7 @@ class ie extends re {
|
|
|
2570
2570
|
v
|
|
2571
2571
|
/* TODO */
|
|
2572
2572
|
) : $e(v);
|
|
2573
|
-
g && (this._blocks.push(g),
|
|
2573
|
+
g && (this._blocks.push(g), y && (this.exposeBlock = g), this._maskedBlocks[f] || (this._maskedBlocks[f] = []), this._maskedBlocks[f].push(this._blocks.length - 1)), r += f.length - 1;
|
|
2574
2574
|
continue;
|
|
2575
2575
|
}
|
|
2576
2576
|
}
|
|
@@ -2597,7 +2597,7 @@ class ie extends re {
|
|
|
2597
2597
|
eager: this.eager,
|
|
2598
2598
|
placeholderChar: this.placeholderChar,
|
|
2599
2599
|
displayChar: this.displayChar,
|
|
2600
|
-
...
|
|
2600
|
+
...nt(e[i]),
|
|
2601
2601
|
parent: this
|
|
2602
2602
|
}) : new Fs({
|
|
2603
2603
|
char: i,
|
|
@@ -2778,22 +2778,22 @@ class ie extends re {
|
|
|
2778
2778
|
}), n;
|
|
2779
2779
|
}
|
|
2780
2780
|
nearestInputPos(e, s) {
|
|
2781
|
-
if (s === void 0 && (s =
|
|
2781
|
+
if (s === void 0 && (s = D.NONE), !this._blocks.length) return 0;
|
|
2782
2782
|
const n = new ta(this, e);
|
|
2783
|
-
if (s ===
|
|
2783
|
+
if (s === D.NONE)
|
|
2784
2784
|
return n.pushRightBeforeInput() || (n.popState(), n.pushLeftBeforeInput()) ? n.pos : this.displayValue.length;
|
|
2785
|
-
if (s ===
|
|
2786
|
-
if (s ===
|
|
2785
|
+
if (s === D.LEFT || s === D.FORCE_LEFT) {
|
|
2786
|
+
if (s === D.LEFT) {
|
|
2787
2787
|
if (n.pushRightBeforeFilled(), n.ok && n.pos === e) return e;
|
|
2788
2788
|
n.popState();
|
|
2789
2789
|
}
|
|
2790
|
-
if (n.pushLeftBeforeInput(), n.pushLeftBeforeRequired(), n.pushLeftBeforeFilled(), s ===
|
|
2790
|
+
if (n.pushLeftBeforeInput(), n.pushLeftBeforeRequired(), n.pushLeftBeforeFilled(), s === D.LEFT) {
|
|
2791
2791
|
if (n.pushRightBeforeInput(), n.pushRightBeforeRequired(), n.ok && n.pos <= e || (n.popState(), n.ok && n.pos <= e)) return n.pos;
|
|
2792
2792
|
n.popState();
|
|
2793
2793
|
}
|
|
2794
|
-
return n.ok ? n.pos : s ===
|
|
2794
|
+
return n.ok ? n.pos : s === D.FORCE_LEFT ? 0 : (n.popState(), n.ok || (n.popState(), n.ok) ? n.pos : 0);
|
|
2795
2795
|
}
|
|
2796
|
-
return s ===
|
|
2796
|
+
return s === D.RIGHT || s === D.FORCE_RIGHT ? (n.pushRightBeforeInput(), n.pushRightBeforeRequired(), n.pushRightBeforeFilled() ? n.pos : s === D.FORCE_RIGHT ? this.displayValue.length : (n.popState(), n.ok || (n.popState(), n.ok) ? n.pos : this.nearestInputPos(e, D.LEFT))) : e;
|
|
2797
2797
|
}
|
|
2798
2798
|
totalInputPositions(e, s) {
|
|
2799
2799
|
e === void 0 && (e = 0), s === void 0 && (s = this.displayValue.length);
|
|
@@ -2826,7 +2826,7 @@ ie.ESCAPE_CHAR = "\\";
|
|
|
2826
2826
|
ie.InputDefinition = mt;
|
|
2827
2827
|
ie.FixedDefinition = Fs;
|
|
2828
2828
|
N.MaskedPattern = ie;
|
|
2829
|
-
class
|
|
2829
|
+
class dt extends ie {
|
|
2830
2830
|
/**
|
|
2831
2831
|
Optionally sets max length of pattern.
|
|
2832
2832
|
Used when pattern length is longer then `to` param length. Pads zeros at start in this case.
|
|
@@ -2893,7 +2893,7 @@ class ct extends ie {
|
|
|
2893
2893
|
return s;
|
|
2894
2894
|
}
|
|
2895
2895
|
}
|
|
2896
|
-
N.MaskedRange =
|
|
2896
|
+
N.MaskedRange = dt;
|
|
2897
2897
|
const na = "d{.}`m{.}`Y";
|
|
2898
2898
|
class Be extends ie {
|
|
2899
2899
|
static extractPatternOptions(e) {
|
|
@@ -2967,19 +2967,19 @@ class Be extends ie {
|
|
|
2967
2967
|
}
|
|
2968
2968
|
Be.GET_DEFAULT_BLOCKS = () => ({
|
|
2969
2969
|
d: {
|
|
2970
|
-
mask:
|
|
2970
|
+
mask: dt,
|
|
2971
2971
|
from: 1,
|
|
2972
2972
|
to: 31,
|
|
2973
2973
|
maxLength: 2
|
|
2974
2974
|
},
|
|
2975
2975
|
m: {
|
|
2976
|
-
mask:
|
|
2976
|
+
mask: dt,
|
|
2977
2977
|
from: 1,
|
|
2978
2978
|
to: 12,
|
|
2979
2979
|
maxLength: 2
|
|
2980
2980
|
},
|
|
2981
2981
|
Y: {
|
|
2982
|
-
mask:
|
|
2982
|
+
mask: dt,
|
|
2983
2983
|
from: 1900,
|
|
2984
2984
|
to: 9999
|
|
2985
2985
|
}
|
|
@@ -3014,7 +3014,7 @@ class kt extends re {
|
|
|
3014
3014
|
const {
|
|
3015
3015
|
expose: n,
|
|
3016
3016
|
...a
|
|
3017
|
-
} =
|
|
3017
|
+
} = nt(s), r = $e({
|
|
3018
3018
|
overwrite: this._overwrite,
|
|
3019
3019
|
eager: this._eager,
|
|
3020
3020
|
skipInvalid: this._skipInvalid,
|
|
@@ -3200,13 +3200,13 @@ kt.DEFAULTS = {
|
|
|
3200
3200
|
dispatch: (t, e, s, n) => {
|
|
3201
3201
|
if (!e.compiledMasks.length) return;
|
|
3202
3202
|
const a = e.rawInputValue, r = e.compiledMasks.map((i, o) => {
|
|
3203
|
-
const u = e.currentMask === i, d = u ? i.displayValue.length : i.nearestInputPos(i.displayValue.length,
|
|
3203
|
+
const u = e.currentMask === i, d = u ? i.displayValue.length : i.nearestInputPos(i.displayValue.length, D.FORCE_LEFT);
|
|
3204
3204
|
return i.rawInputValue !== a ? (i.reset(), i.append(a, {
|
|
3205
3205
|
raw: !0
|
|
3206
3206
|
})) : u || i.remove(d), i.append(t, e.currentMaskFlags(s)), i.appendTail(n), {
|
|
3207
3207
|
index: o,
|
|
3208
3208
|
weight: i.rawInputValue.length,
|
|
3209
|
-
totalInputPositions: i.totalInputPositions(0, Math.max(d, i.nearestInputPos(i.displayValue.length,
|
|
3209
|
+
totalInputPositions: i.totalInputPositions(0, Math.max(d, i.nearestInputPos(i.displayValue.length, D.FORCE_LEFT)))
|
|
3210
3210
|
};
|
|
3211
3211
|
});
|
|
3212
3212
|
return r.sort((i, o) => o.weight - i.weight || o.totalInputPositions - i.totalInputPositions), e.compiledMasks[r[0].index];
|
|
@@ -3236,7 +3236,7 @@ class bt extends ie {
|
|
|
3236
3236
|
}
|
|
3237
3237
|
_appendCharRaw(e, s) {
|
|
3238
3238
|
s === void 0 && (s = {});
|
|
3239
|
-
const n = Math.min(this.nearestInputPos(0,
|
|
3239
|
+
const n = Math.min(this.nearestInputPos(0, D.FORCE_RIGHT), this.value.length), a = this.enum.filter((r) => this.matchValue(r, this.unmaskedValue + e, n));
|
|
3240
3240
|
if (a.length) {
|
|
3241
3241
|
a.length === 1 && this._forEachBlocksInRange(0, this.value.length, (i, o) => {
|
|
3242
3242
|
const u = a[0][o];
|
|
@@ -3254,7 +3254,7 @@ class bt extends ie {
|
|
|
3254
3254
|
}
|
|
3255
3255
|
remove(e, s) {
|
|
3256
3256
|
if (e === void 0 && (e = 0), s === void 0 && (s = this.displayValue.length), e === s) return new j();
|
|
3257
|
-
const n = Math.min(super.nearestInputPos(0,
|
|
3257
|
+
const n = Math.min(super.nearestInputPos(0, D.FORCE_RIGHT), this.value.length);
|
|
3258
3258
|
let a;
|
|
3259
3259
|
for (a = e; a >= 0 && !(this.enum.filter((o) => this.matchValue(o, this.value.slice(n, a), n)).length > 1); --a)
|
|
3260
3260
|
;
|
|
@@ -3288,7 +3288,7 @@ class aa extends re {
|
|
|
3288
3288
|
}
|
|
3289
3289
|
N.MaskedFunction = aa;
|
|
3290
3290
|
var Os;
|
|
3291
|
-
class
|
|
3291
|
+
class ke extends re {
|
|
3292
3292
|
/** Single char */
|
|
3293
3293
|
/** Single char */
|
|
3294
3294
|
/** Array of single chars */
|
|
@@ -3305,7 +3305,7 @@ class ye extends re {
|
|
|
3305
3305
|
/** Parse string to get typed value */
|
|
3306
3306
|
constructor(e) {
|
|
3307
3307
|
super({
|
|
3308
|
-
...
|
|
3308
|
+
...ke.DEFAULTS,
|
|
3309
3309
|
...e
|
|
3310
3310
|
});
|
|
3311
3311
|
}
|
|
@@ -3316,8 +3316,8 @@ class ye extends re {
|
|
|
3316
3316
|
super._update(e), this._updateRegExps();
|
|
3317
3317
|
}
|
|
3318
3318
|
_updateRegExps() {
|
|
3319
|
-
const e = "^" + (this.allowNegative ? "[+|\\-]?" : ""), s = "\\d*", n = (this.scale ? "(" +
|
|
3320
|
-
this._numberRegExp = new RegExp(e + s + n), this._mapToRadixRegExp = new RegExp("[" + this.mapToRadix.map(
|
|
3319
|
+
const e = "^" + (this.allowNegative ? "[+|\\-]?" : ""), s = "\\d*", n = (this.scale ? "(" + Dt(this.radix) + "\\d{0," + this.scale + "})?" : "") + "$";
|
|
3320
|
+
this._numberRegExp = new RegExp(e + s + n), this._mapToRadixRegExp = new RegExp("[" + this.mapToRadix.map(Dt).join("") + "]", "g"), this._thousandsSeparatorRegExp = new RegExp(Dt(this.thousandsSeparator), "g");
|
|
3321
3321
|
}
|
|
3322
3322
|
_removeThousandsSeparators(e) {
|
|
3323
3323
|
return e.replace(this._thousandsSeparatorRegExp, "");
|
|
@@ -3361,8 +3361,8 @@ class ye extends re {
|
|
|
3361
3361
|
const i = this.number;
|
|
3362
3362
|
let o = !isNaN(i), u = !1;
|
|
3363
3363
|
if (o) {
|
|
3364
|
-
let
|
|
3365
|
-
this.min != null && this.min < 0 && this.number < this.min && (
|
|
3364
|
+
let y;
|
|
3365
|
+
this.min != null && this.min < 0 && this.number < this.min && (y = this.min), this.max != null && this.max > 0 && this.number > this.max && (y = this.max), y != null && (this.autofix ? (this._value = this.format(y, this).replace(ke.UNMASKED_RADIX, this.radix), u || (u = r === this._value && !s.tail)) : o = !1), o && (o = !!this._value.match(this._numberRegExp));
|
|
3366
3366
|
}
|
|
3367
3367
|
let d;
|
|
3368
3368
|
o ? d = new j({
|
|
@@ -3398,19 +3398,19 @@ class ye extends re {
|
|
|
3398
3398
|
nearestInputPos(e, s) {
|
|
3399
3399
|
if (!this.thousandsSeparator) return e;
|
|
3400
3400
|
switch (s) {
|
|
3401
|
-
case
|
|
3402
|
-
case
|
|
3403
|
-
case
|
|
3401
|
+
case D.NONE:
|
|
3402
|
+
case D.LEFT:
|
|
3403
|
+
case D.FORCE_LEFT: {
|
|
3404
3404
|
const n = this._findSeparatorAround(e - 1);
|
|
3405
3405
|
if (n >= 0) {
|
|
3406
3406
|
const a = n + this.thousandsSeparator.length;
|
|
3407
|
-
if (e < a || this.value.length <= a || s ===
|
|
3407
|
+
if (e < a || this.value.length <= a || s === D.FORCE_LEFT)
|
|
3408
3408
|
return n;
|
|
3409
3409
|
}
|
|
3410
3410
|
break;
|
|
3411
3411
|
}
|
|
3412
|
-
case
|
|
3413
|
-
case
|
|
3412
|
+
case D.RIGHT:
|
|
3413
|
+
case D.FORCE_RIGHT: {
|
|
3414
3414
|
const n = this._findSeparatorAround(e);
|
|
3415
3415
|
if (n >= 0)
|
|
3416
3416
|
return n + this.thousandsSeparator.length;
|
|
@@ -3439,11 +3439,11 @@ class ye extends re {
|
|
|
3439
3439
|
}
|
|
3440
3440
|
doSkipInvalid(e, s, n) {
|
|
3441
3441
|
s === void 0 && (s = {});
|
|
3442
|
-
const a = this.scale === 0 && e !== this.thousandsSeparator && (e === this.radix || e ===
|
|
3442
|
+
const a = this.scale === 0 && e !== this.thousandsSeparator && (e === this.radix || e === ke.UNMASKED_RADIX || this.mapToRadix.includes(e));
|
|
3443
3443
|
return super.doSkipInvalid(e, s, n) && !a;
|
|
3444
3444
|
}
|
|
3445
3445
|
get unmaskedValue() {
|
|
3446
|
-
return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,
|
|
3446
|
+
return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix, ke.UNMASKED_RADIX);
|
|
3447
3447
|
}
|
|
3448
3448
|
set unmaskedValue(e) {
|
|
3449
3449
|
super.unmaskedValue = e;
|
|
@@ -3452,7 +3452,7 @@ class ye extends re {
|
|
|
3452
3452
|
return this.parse(this.unmaskedValue, this);
|
|
3453
3453
|
}
|
|
3454
3454
|
set typedValue(e) {
|
|
3455
|
-
this.rawInputValue = this.format(e, this).replace(
|
|
3455
|
+
this.rawInputValue = this.format(e, this).replace(ke.UNMASKED_RADIX, this.radix);
|
|
3456
3456
|
}
|
|
3457
3457
|
/** Parsed Number */
|
|
3458
3458
|
get number() {
|
|
@@ -3468,13 +3468,13 @@ class ye extends re {
|
|
|
3468
3468
|
return this.min != null && this.min > 0 || this.max != null && this.max > 0;
|
|
3469
3469
|
}
|
|
3470
3470
|
typedValueEquals(e) {
|
|
3471
|
-
return (super.typedValueEquals(e) ||
|
|
3471
|
+
return (super.typedValueEquals(e) || ke.EMPTY_VALUES.includes(e) && ke.EMPTY_VALUES.includes(this.typedValue)) && !(e === 0 && this.value === "");
|
|
3472
3472
|
}
|
|
3473
3473
|
}
|
|
3474
|
-
Os =
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3474
|
+
Os = ke;
|
|
3475
|
+
ke.UNMASKED_RADIX = ".";
|
|
3476
|
+
ke.EMPTY_VALUES = [...re.EMPTY_VALUES, 0];
|
|
3477
|
+
ke.DEFAULTS = {
|
|
3478
3478
|
...re.DEFAULTS,
|
|
3479
3479
|
mask: Number,
|
|
3480
3480
|
radix: ",",
|
|
@@ -3491,7 +3491,7 @@ ye.DEFAULTS = {
|
|
|
3491
3491
|
maximumFractionDigits: 20
|
|
3492
3492
|
})
|
|
3493
3493
|
};
|
|
3494
|
-
N.MaskedNumber =
|
|
3494
|
+
N.MaskedNumber = ke;
|
|
3495
3495
|
const $t = {
|
|
3496
3496
|
MASKED: "value",
|
|
3497
3497
|
UNMASKED: "unmaskedValue",
|
|
@@ -3528,7 +3528,7 @@ class ia extends ie {
|
|
|
3528
3528
|
const {
|
|
3529
3529
|
repeat: r,
|
|
3530
3530
|
...i
|
|
3531
|
-
} =
|
|
3531
|
+
} = nt(e);
|
|
3532
3532
|
this._blockOpts = Object.assign({}, this._blockOpts, i);
|
|
3533
3533
|
const o = $e(this._blockOpts);
|
|
3534
3534
|
this.repeat = (s = (n = r ?? o.repeat) != null ? n : this.repeat) != null ? s : 1 / 0, super._update({
|
|
@@ -3656,7 +3656,7 @@ const Ns = {
|
|
|
3656
3656
|
}, Rs = Object.keys(Ns).filter((t) => t !== "value"), la = ["value", "unmask", "onAccept", "onComplete", "inputRef"], oa = Rs.filter((t) => la.indexOf(t) < 0);
|
|
3657
3657
|
function ua(t) {
|
|
3658
3658
|
var e;
|
|
3659
|
-
const s = (e = class extends
|
|
3659
|
+
const s = (e = class extends we.Component {
|
|
3660
3660
|
constructor(r) {
|
|
3661
3661
|
super(r), this._inputRef = this._inputRef.bind(this);
|
|
3662
3662
|
}
|
|
@@ -3713,13 +3713,13 @@ function ua(t) {
|
|
|
3713
3713
|
this.props.onComplete && this.maskRef && this.props.onComplete(this.maskValue, this.maskRef, r);
|
|
3714
3714
|
}
|
|
3715
3715
|
render() {
|
|
3716
|
-
return
|
|
3716
|
+
return we.createElement(t, {
|
|
3717
3717
|
...this._extractNonMaskProps(this.props),
|
|
3718
3718
|
inputRef: this._inputRef
|
|
3719
3719
|
});
|
|
3720
3720
|
}
|
|
3721
3721
|
}, e.displayName = void 0, e.propTypes = void 0, e), n = t.displayName || t.name || "Component";
|
|
3722
|
-
return s.displayName = "IMask(" + n + ")", s.propTypes = Ns,
|
|
3722
|
+
return s.displayName = "IMask(" + n + ")", s.propTypes = Ns, we.forwardRef((a, r) => we.createElement(s, {
|
|
3723
3723
|
...a,
|
|
3724
3724
|
ref: r
|
|
3725
3725
|
}));
|
|
@@ -3729,15 +3729,15 @@ const ca = ua((t) => {
|
|
|
3729
3729
|
inputRef: e,
|
|
3730
3730
|
...s
|
|
3731
3731
|
} = t;
|
|
3732
|
-
return
|
|
3732
|
+
return we.createElement("input", {
|
|
3733
3733
|
...s,
|
|
3734
3734
|
ref: e
|
|
3735
3735
|
});
|
|
3736
|
-
}), da = (t, e) =>
|
|
3736
|
+
}), da = (t, e) => we.createElement(ca, {
|
|
3737
3737
|
...t,
|
|
3738
3738
|
ref: e
|
|
3739
3739
|
});
|
|
3740
|
-
|
|
3740
|
+
we.forwardRef(da);
|
|
3741
3741
|
function pa(t, e) {
|
|
3742
3742
|
let {
|
|
3743
3743
|
onAccept: s,
|
|
@@ -3747,7 +3747,7 @@ function pa(t, e) {
|
|
|
3747
3747
|
defaultUnmaskedValue: i,
|
|
3748
3748
|
defaultTypedValue: o
|
|
3749
3749
|
} = e === void 0 ? {} : e;
|
|
3750
|
-
const u = Ke(null), [d, h] = q({}), [f,
|
|
3750
|
+
const u = Ke(null), [d, h] = q({}), [f, y] = q(""), [b, E] = q(""), [v, g] = q(), w = Oe(() => {
|
|
3751
3751
|
var p;
|
|
3752
3752
|
(p = u.current) == null || p.destroy(), u.current = null;
|
|
3753
3753
|
}, []), F = Oe(() => {
|
|
@@ -3756,45 +3756,45 @@ function pa(t, e) {
|
|
|
3756
3756
|
value: p.value,
|
|
3757
3757
|
unmaskedValue: p.unmaskedValue,
|
|
3758
3758
|
typedValue: p.typedValue
|
|
3759
|
-
}), g(p.typedValue), E(p.unmaskedValue),
|
|
3760
|
-
}, []),
|
|
3761
|
-
const
|
|
3762
|
-
|
|
3763
|
-
}, [s]),
|
|
3759
|
+
}), g(p.typedValue), E(p.unmaskedValue), y(p.value));
|
|
3760
|
+
}, []), x = Oe((p) => {
|
|
3761
|
+
const T = u.current;
|
|
3762
|
+
T && (F(), s == null || s(T.value, T, p));
|
|
3763
|
+
}, [s]), A = Oe((p) => u.current && (n == null ? void 0 : n(u.current.value, u.current, p)), [n]);
|
|
3764
3764
|
return G(() => {
|
|
3765
3765
|
const {
|
|
3766
3766
|
value: p,
|
|
3767
|
-
...
|
|
3767
|
+
...T
|
|
3768
3768
|
} = d, B = u.current;
|
|
3769
|
-
!B || f === void 0 || (p !== f && (B.value = f, B.value !== f &&
|
|
3769
|
+
!B || f === void 0 || (p !== f && (B.value = f, B.value !== f && x()), h(T));
|
|
3770
3770
|
}, [f]), G(() => {
|
|
3771
3771
|
const {
|
|
3772
3772
|
unmaskedValue: p,
|
|
3773
|
-
...
|
|
3773
|
+
...T
|
|
3774
3774
|
} = d, B = u.current;
|
|
3775
|
-
!B || b === void 0 || (p !== b && (B.unmaskedValue = b, B.unmaskedValue !== b &&
|
|
3775
|
+
!B || b === void 0 || (p !== b && (B.unmaskedValue = b, B.unmaskedValue !== b && x()), h(T));
|
|
3776
3776
|
}, [b]), G(() => {
|
|
3777
3777
|
const {
|
|
3778
3778
|
typedValue: p,
|
|
3779
|
-
...
|
|
3779
|
+
...T
|
|
3780
3780
|
} = d, B = u.current;
|
|
3781
|
-
!B || v === void 0 || (p !== v && (B.typedValue = v, B.masked.typedValueEquals(v) ||
|
|
3781
|
+
!B || v === void 0 || (p !== v && (B.typedValue = v, B.masked.typedValueEquals(v) || x()), h(T));
|
|
3782
3782
|
}, [v]), G(() => {
|
|
3783
3783
|
const p = a.current;
|
|
3784
|
-
if (!p || !(t != null && t.mask)) return
|
|
3785
|
-
const
|
|
3786
|
-
|
|
3787
|
-
}, [t,
|
|
3784
|
+
if (!p || !(t != null && t.mask)) return w();
|
|
3785
|
+
const T = u.current;
|
|
3786
|
+
T ? T == null || T.updateOptions(t) : p && t != null && t.mask && (u.current = N(p, t), F(), r !== void 0 && y(r), i !== void 0 && E(i), o !== void 0 && g(o));
|
|
3787
|
+
}, [t, w, x]), G(() => {
|
|
3788
3788
|
if (!u.current) return;
|
|
3789
3789
|
const p = u.current;
|
|
3790
|
-
return p.on("accept",
|
|
3791
|
-
p.off("accept",
|
|
3790
|
+
return p.on("accept", x), p.on("complete", A), () => {
|
|
3791
|
+
p.off("accept", x), p.off("complete", A);
|
|
3792
3792
|
};
|
|
3793
|
-
}, [
|
|
3793
|
+
}, [x, A]), G(() => w, [w]), {
|
|
3794
3794
|
ref: a,
|
|
3795
3795
|
maskRef: u,
|
|
3796
3796
|
value: f,
|
|
3797
|
-
setValue:
|
|
3797
|
+
setValue: y,
|
|
3798
3798
|
unmaskedValue: b,
|
|
3799
3799
|
setUnmaskedValue: E,
|
|
3800
3800
|
typedValue: v,
|
|
@@ -3896,7 +3896,7 @@ const Z = {
|
|
|
3896
3896
|
default: () => ({})
|
|
3897
3897
|
}
|
|
3898
3898
|
}
|
|
3899
|
-
},
|
|
3899
|
+
}, as = {
|
|
3900
3900
|
currency: {
|
|
3901
3901
|
mask: "currency",
|
|
3902
3902
|
blocks: {
|
|
@@ -3943,7 +3943,7 @@ const Z = {
|
|
|
3943
3943
|
}
|
|
3944
3944
|
};
|
|
3945
3945
|
var js = /* @__PURE__ */ ((t) => (t.Top = "top", t.Right = "right", t.Bottom = "bottom", t.Left = "left", t))(js || {}), Ps = /* @__PURE__ */ ((t) => (t.Center = "center", t.End = "end", t.Initial = "initial", t))(Ps || {});
|
|
3946
|
-
const
|
|
3946
|
+
const Te = {
|
|
3947
3947
|
name: "Tooltip",
|
|
3948
3948
|
class: "ds-tooltip",
|
|
3949
3949
|
props: {
|
|
@@ -3968,21 +3968,21 @@ const De = {
|
|
|
3968
3968
|
}
|
|
3969
3969
|
}, Xe = ({
|
|
3970
3970
|
children: t,
|
|
3971
|
-
position: e =
|
|
3972
|
-
placement: s =
|
|
3973
|
-
text: n =
|
|
3974
|
-
testId: a =
|
|
3971
|
+
position: e = Te.props.position.default,
|
|
3972
|
+
placement: s = Te.props.placement.default,
|
|
3973
|
+
text: n = Te.props.text.default,
|
|
3974
|
+
testId: a = Te.props.testId.default,
|
|
3975
3975
|
className: r
|
|
3976
3976
|
}) => {
|
|
3977
|
-
const i = Ke(null), [o, u] = q(0), [d, h] = q(0), [f,
|
|
3978
|
-
(
|
|
3979
|
-
) && `${
|
|
3980
|
-
(
|
|
3981
|
-
) && `${
|
|
3977
|
+
const i = Ke(null), [o, u] = q(0), [d, h] = q(0), [f, y] = q(!1), b = e && Te.props.position.options.find(
|
|
3978
|
+
(w) => w === e
|
|
3979
|
+
) && `${Te.class}--${e}`, E = s && Te.props.placement.options.find(
|
|
3980
|
+
(w) => w === s
|
|
3981
|
+
) && `${Te.class}--${s}`;
|
|
3982
3982
|
let v;
|
|
3983
3983
|
On(() => {
|
|
3984
|
-
var
|
|
3985
|
-
i.current && (u((
|
|
3984
|
+
var w, F;
|
|
3985
|
+
i.current && (u((w = i == null ? void 0 : i.current) == null ? void 0 : w.offsetHeight), h((F = i == null ? void 0 : i.current) == null ? void 0 : F.offsetWidth));
|
|
3986
3986
|
}, []);
|
|
3987
3987
|
const g = 9;
|
|
3988
3988
|
switch (e) {
|
|
@@ -4042,10 +4042,10 @@ const De = {
|
|
|
4042
4042
|
return /* @__PURE__ */ I(
|
|
4043
4043
|
"div",
|
|
4044
4044
|
{
|
|
4045
|
-
className: [
|
|
4045
|
+
className: [Te.class, r].join(" "),
|
|
4046
4046
|
"data-testid": a,
|
|
4047
|
-
onMouseEnter: () =>
|
|
4048
|
-
onMouseLeave: () =>
|
|
4047
|
+
onMouseEnter: () => y(!0),
|
|
4048
|
+
onMouseLeave: () => y(!1),
|
|
4049
4049
|
ref: i,
|
|
4050
4050
|
role: "tooltip",
|
|
4051
4051
|
children: [
|
|
@@ -4053,11 +4053,11 @@ const De = {
|
|
|
4053
4053
|
f && /* @__PURE__ */ c(
|
|
4054
4054
|
"div",
|
|
4055
4055
|
{
|
|
4056
|
-
className: [b, E].filter((
|
|
4056
|
+
className: [b, E].filter((w) => w).join(" "),
|
|
4057
4057
|
children: /* @__PURE__ */ c(
|
|
4058
4058
|
"span",
|
|
4059
4059
|
{
|
|
4060
|
-
className: `${
|
|
4060
|
+
className: `${Te.class}__wrapper`,
|
|
4061
4061
|
"data-testid": "ds-tooltip-wrapper",
|
|
4062
4062
|
style: v,
|
|
4063
4063
|
children: n
|
|
@@ -4076,7 +4076,7 @@ Xe.propTypes = {
|
|
|
4076
4076
|
testId: l.string
|
|
4077
4077
|
};
|
|
4078
4078
|
Xe.displayName = "DsTooltip";
|
|
4079
|
-
const
|
|
4079
|
+
const at = we.forwardRef(
|
|
4080
4080
|
({
|
|
4081
4081
|
name: t,
|
|
4082
4082
|
testId: e = Z.props.testId.default,
|
|
@@ -4090,23 +4090,23 @@ const nt = Ce.forwardRef(
|
|
|
4090
4090
|
max: d,
|
|
4091
4091
|
tooltip: h = Z.props.tooltip.default,
|
|
4092
4092
|
tooltipPosition: f = Z.props.tooltipPosition.default,
|
|
4093
|
-
tooltipPlacement:
|
|
4093
|
+
tooltipPlacement: y = Z.props.tooltipPlacement.default,
|
|
4094
4094
|
icon: b = Z.props.icon.default,
|
|
4095
4095
|
status: E = Z.props.status.default,
|
|
4096
4096
|
feedback: v,
|
|
4097
4097
|
hasFeedback: g = Z.props.hasFeedback.default,
|
|
4098
|
-
noMargin:
|
|
4098
|
+
noMargin: w = Z.props.noMargin.default,
|
|
4099
4099
|
disabled: F = Z.props.disabled.default,
|
|
4100
|
-
className:
|
|
4101
|
-
mask:
|
|
4100
|
+
className: x,
|
|
4101
|
+
mask: A,
|
|
4102
4102
|
onChangeHandler: p = Z.props.onChangeHandler.default,
|
|
4103
|
-
onBlurHandler:
|
|
4103
|
+
onBlurHandler: T,
|
|
4104
4104
|
onKeyDownHandler: B,
|
|
4105
4105
|
onFocusHandler: z
|
|
4106
4106
|
}, P) => {
|
|
4107
|
-
const [te, le] = q(!1), [oe,
|
|
4108
|
-
if (
|
|
4109
|
-
const
|
|
4107
|
+
const [te, le] = q(!1), [oe, xe] = q(!1), fe = !!p && !!A, ge = (k, O, X) => {
|
|
4108
|
+
if (fe && X) {
|
|
4109
|
+
const _ = {
|
|
4110
4110
|
...X,
|
|
4111
4111
|
target: {
|
|
4112
4112
|
...X.target,
|
|
@@ -4116,38 +4116,38 @@ const nt = Ce.forwardRef(
|
|
|
4116
4116
|
type: "text"
|
|
4117
4117
|
}
|
|
4118
4118
|
};
|
|
4119
|
-
p(
|
|
4119
|
+
p(_);
|
|
4120
4120
|
}
|
|
4121
|
-
}, ne =
|
|
4122
|
-
...
|
|
4121
|
+
}, ne = he(() => typeof A == "object" ? { lazy: !0, ...A } : as[A] ? {
|
|
4122
|
+
...as[A],
|
|
4123
4123
|
min: u,
|
|
4124
4124
|
max: d,
|
|
4125
4125
|
lazy: !0
|
|
4126
|
-
} : { mask:
|
|
4126
|
+
} : { mask: A ?? "", min: u, max: d, lazy: !0 }, [A]), { ref: me, setUnmaskedValue: be } = pa(
|
|
4127
4127
|
ne,
|
|
4128
4128
|
{
|
|
4129
|
-
onAccept:
|
|
4129
|
+
onAccept: ge
|
|
4130
4130
|
}
|
|
4131
|
-
),
|
|
4132
|
-
p && !
|
|
4131
|
+
), ve = (k) => {
|
|
4132
|
+
p && !fe && p(k);
|
|
4133
4133
|
}, m = (k) => {
|
|
4134
4134
|
B && B(k);
|
|
4135
4135
|
}, S = (k) => {
|
|
4136
|
-
le(!1),
|
|
4136
|
+
le(!1), T && T(k);
|
|
4137
4137
|
}, V = (k) => {
|
|
4138
4138
|
le(!0), z && z(k);
|
|
4139
4139
|
}, $ = () => {
|
|
4140
|
-
|
|
4141
|
-
}, R =
|
|
4140
|
+
xe((k) => !k);
|
|
4141
|
+
}, R = he(() => oe && s === "password" ? "text" : s, [oe, s]), C = () => {
|
|
4142
4142
|
const k = [`${Z.class}`];
|
|
4143
|
-
return a && k.push(`${Z.class}--${a}`), n && k.push(`${Z.class}--animated`),
|
|
4144
|
-
}, M =
|
|
4143
|
+
return a && k.push(`${Z.class}--${a}`), n && k.push(`${Z.class}--animated`), w && k.push(`${Z.class}--no-margin`), b && k.push(`${Z.class}--with-icon`), E && k.push(`${Z.class}--${E}`), x && k.push(x), k.join(" ");
|
|
4144
|
+
}, M = he(() => {
|
|
4145
4145
|
const k = [`${Z.class}__label`];
|
|
4146
4146
|
return (te || o) && k.push(`${Z.class}__label--active`), k.join(" ");
|
|
4147
4147
|
}, [o, te]), L = () => !n && i ? i : "", U = () => E && E === "error" ? "info" : "check_circle";
|
|
4148
4148
|
return G(() => {
|
|
4149
|
-
|
|
4150
|
-
}, [o,
|
|
4149
|
+
A && be(o ?? "");
|
|
4150
|
+
}, [o, A, be]), /* @__PURE__ */ I("div", { className: C(), ref: P, children: [
|
|
4151
4151
|
g && /* @__PURE__ */ c("div", { className: "ds-input__feedback", children: v && /* @__PURE__ */ I(vt, { children: [
|
|
4152
4152
|
/* @__PURE__ */ c(Q, { image: U() }),
|
|
4153
4153
|
v
|
|
@@ -4163,14 +4163,14 @@ const nt = Ce.forwardRef(
|
|
|
4163
4163
|
min: u,
|
|
4164
4164
|
name: t,
|
|
4165
4165
|
onBlur: S,
|
|
4166
|
-
onChange:
|
|
4166
|
+
onChange: ve,
|
|
4167
4167
|
onFocus: V,
|
|
4168
|
-
onInput:
|
|
4168
|
+
onInput: ve,
|
|
4169
4169
|
onKeyDown: m,
|
|
4170
4170
|
placeholder: L(),
|
|
4171
|
-
ref:
|
|
4171
|
+
ref: me,
|
|
4172
4172
|
type: R,
|
|
4173
|
-
...!
|
|
4173
|
+
...!A && { value: o ?? "" }
|
|
4174
4174
|
}
|
|
4175
4175
|
),
|
|
4176
4176
|
/* @__PURE__ */ I("label", { className: M, htmlFor: t, children: [
|
|
@@ -4179,7 +4179,7 @@ const nt = Ce.forwardRef(
|
|
|
4179
4179
|
Xe,
|
|
4180
4180
|
{
|
|
4181
4181
|
className: "ds-input__tooltip",
|
|
4182
|
-
placement:
|
|
4182
|
+
placement: y,
|
|
4183
4183
|
position: f,
|
|
4184
4184
|
text: h,
|
|
4185
4185
|
children: /* @__PURE__ */ c(Q, { className: "ds-input__icon", image: "info" })
|
|
@@ -4199,7 +4199,7 @@ const nt = Ce.forwardRef(
|
|
|
4199
4199
|
] });
|
|
4200
4200
|
}
|
|
4201
4201
|
);
|
|
4202
|
-
|
|
4202
|
+
at.propTypes = {
|
|
4203
4203
|
name: l.string,
|
|
4204
4204
|
testId: l.string,
|
|
4205
4205
|
type: l.oneOf(Z.props.type.options),
|
|
@@ -4223,9 +4223,9 @@ nt.propTypes = {
|
|
|
4223
4223
|
onChangeHandler: l.func,
|
|
4224
4224
|
onFocusHandler: l.func
|
|
4225
4225
|
};
|
|
4226
|
-
|
|
4226
|
+
at.displayName = "DsInput";
|
|
4227
4227
|
var qs = /* @__PURE__ */ ((t) => (t.Small = "small", t.Medium = "medium", t.Large = "large", t))(qs || {}), Us = /* @__PURE__ */ ((t) => (t.None = "", t.Neutral20 = "neutral-20", t.Neutral10 = "neutral-10", t.Neutral05 = "neutral-05", t.Neutral00 = "neutral-00", t))(Us || {});
|
|
4228
|
-
const
|
|
4228
|
+
const ye = {
|
|
4229
4229
|
name: "Loading",
|
|
4230
4230
|
class: "ds-loading",
|
|
4231
4231
|
props: {
|
|
@@ -4256,22 +4256,22 @@ const ve = {
|
|
|
4256
4256
|
default: "ds-loading"
|
|
4257
4257
|
}
|
|
4258
4258
|
}
|
|
4259
|
-
},
|
|
4259
|
+
}, Ut = ({
|
|
4260
4260
|
id: t,
|
|
4261
|
-
testId: e =
|
|
4261
|
+
testId: e = ye.props.testId.default,
|
|
4262
4262
|
className: s,
|
|
4263
|
-
size: n =
|
|
4264
|
-
opacity: a =
|
|
4265
|
-
fullscreen: r =
|
|
4266
|
-
backgroundColor: i =
|
|
4263
|
+
size: n = ye.props.size.default,
|
|
4264
|
+
opacity: a = ye.props.opacity.default,
|
|
4265
|
+
fullscreen: r = ye.props.fullscreen.default,
|
|
4266
|
+
backgroundColor: i = ye.props.backgroundColor.default
|
|
4267
4267
|
}) => {
|
|
4268
|
-
const o = !r && `${
|
|
4268
|
+
const o = !r && `${ye.class}--absolute`, u = n && `${ye.class}__dots--${n}`, d = i && ye.props.backgroundColor.options.find(
|
|
4269
4269
|
(f) => f === i
|
|
4270
|
-
) && `${
|
|
4270
|
+
) && `${ye.class}__background--${i}`, h = a && `${ye.class}__background--opacity`;
|
|
4271
4271
|
return /* @__PURE__ */ I(
|
|
4272
4272
|
"div",
|
|
4273
4273
|
{
|
|
4274
|
-
className: [
|
|
4274
|
+
className: [ye.class, s, o].filter((f) => f).join(" "),
|
|
4275
4275
|
"data-testid": e,
|
|
4276
4276
|
id: t,
|
|
4277
4277
|
children: [
|
|
@@ -4279,7 +4279,7 @@ const ve = {
|
|
|
4279
4279
|
"div",
|
|
4280
4280
|
{
|
|
4281
4281
|
className: [
|
|
4282
|
-
`${
|
|
4282
|
+
`${ye.class}__background`,
|
|
4283
4283
|
d,
|
|
4284
4284
|
h
|
|
4285
4285
|
].filter((f) => f).join(" ")
|
|
@@ -4296,15 +4296,15 @@ const ve = {
|
|
|
4296
4296
|
}
|
|
4297
4297
|
);
|
|
4298
4298
|
};
|
|
4299
|
-
|
|
4299
|
+
Ut.propTypes = {
|
|
4300
4300
|
id: l.string,
|
|
4301
4301
|
testId: l.string,
|
|
4302
|
-
size: l.oneOf(
|
|
4302
|
+
size: l.oneOf(ye.props.size.options),
|
|
4303
4303
|
opacity: l.bool,
|
|
4304
4304
|
fullscreen: l.bool,
|
|
4305
4305
|
backgroundColor: l.string
|
|
4306
4306
|
};
|
|
4307
|
-
|
|
4307
|
+
Ut.displayName = "DsLoading";
|
|
4308
4308
|
const Re = {
|
|
4309
4309
|
name: "Option",
|
|
4310
4310
|
class: "ds-option",
|
|
@@ -4416,7 +4416,7 @@ zs.propTypes = {
|
|
|
4416
4416
|
};
|
|
4417
4417
|
zs.displayName = "DsOption";
|
|
4418
4418
|
var Hs = /* @__PURE__ */ ((t) => (t.Default = "", t.Large = "large", t.Small = "small", t))(Hs || {});
|
|
4419
|
-
const
|
|
4419
|
+
const pt = {
|
|
4420
4420
|
name: "Paragraph",
|
|
4421
4421
|
class: "ds-paragraph",
|
|
4422
4422
|
props: {
|
|
@@ -4430,13 +4430,13 @@ const dt = {
|
|
|
4430
4430
|
children: t,
|
|
4431
4431
|
className: e,
|
|
4432
4432
|
testId: s = "ds-paragraph-test",
|
|
4433
|
-
type: n =
|
|
4433
|
+
type: n = pt.props.type.default
|
|
4434
4434
|
}) => {
|
|
4435
|
-
const a = n && `${
|
|
4435
|
+
const a = n && `${pt.class}--${n}`;
|
|
4436
4436
|
return /* @__PURE__ */ c(
|
|
4437
4437
|
"p",
|
|
4438
4438
|
{
|
|
4439
|
-
className: [
|
|
4439
|
+
className: [pt.class, a, e].filter((r) => r).join(" "),
|
|
4440
4440
|
"data-testid": s,
|
|
4441
4441
|
children: t
|
|
4442
4442
|
}
|
|
@@ -4445,11 +4445,11 @@ const dt = {
|
|
|
4445
4445
|
Me.propTypes = {
|
|
4446
4446
|
className: l.string,
|
|
4447
4447
|
testId: l.string,
|
|
4448
|
-
type: l.oneOf(
|
|
4448
|
+
type: l.oneOf(pt.props.type.options)
|
|
4449
4449
|
};
|
|
4450
4450
|
Me.displayName = "DsParagraph";
|
|
4451
|
-
var Ws = /* @__PURE__ */ ((t) => (t.Success = "success", t.
|
|
4452
|
-
const
|
|
4451
|
+
var Ws = /* @__PURE__ */ ((t) => (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))(Ws || {});
|
|
4452
|
+
const Mt = {
|
|
4453
4453
|
name: "Progress",
|
|
4454
4454
|
class: "ds-progress",
|
|
4455
4455
|
props: {
|
|
@@ -4552,7 +4552,7 @@ je.propTypes = {
|
|
|
4552
4552
|
gap: l.string
|
|
4553
4553
|
};
|
|
4554
4554
|
je.displayName = "DsFlexLayout";
|
|
4555
|
-
const
|
|
4555
|
+
const Tt = {
|
|
4556
4556
|
name: "Flex-Element",
|
|
4557
4557
|
class: "ds-flex-element",
|
|
4558
4558
|
props: {
|
|
@@ -4569,10 +4569,10 @@ const Dt = {
|
|
|
4569
4569
|
}
|
|
4570
4570
|
}, ae = ({
|
|
4571
4571
|
children: t,
|
|
4572
|
-
flex: e =
|
|
4573
|
-
className: s =
|
|
4572
|
+
flex: e = Tt.props.flex.default,
|
|
4573
|
+
className: s = Tt.props.className.default
|
|
4574
4574
|
}) => {
|
|
4575
|
-
const n = () => [
|
|
4575
|
+
const n = () => [Tt.class, s].join(" "), a = () => ({
|
|
4576
4576
|
flex: e
|
|
4577
4577
|
});
|
|
4578
4578
|
return /* @__PURE__ */ c("div", { className: n(), style: a(), children: t });
|
|
@@ -4582,7 +4582,7 @@ ae.propTypes = {
|
|
|
4582
4582
|
flex: l.string
|
|
4583
4583
|
};
|
|
4584
4584
|
ae.displayName = "DsFlexElement";
|
|
4585
|
-
var
|
|
4585
|
+
var Vt = /* @__PURE__ */ ((t) => (t.None = "none", t.Quark = "quark", t.Nano = "nano", t.XXXS = "xxxs", t.XXS = "xxs", t.XS = "xs", t.SM = "sm", t))(Vt || {});
|
|
4586
4586
|
const et = {
|
|
4587
4587
|
name: "Spacer",
|
|
4588
4588
|
class: "ds-spacer",
|
|
@@ -4590,15 +4590,15 @@ const et = {
|
|
|
4590
4590
|
vertical: {
|
|
4591
4591
|
type: String,
|
|
4592
4592
|
default: "none",
|
|
4593
|
-
options: Object.values(
|
|
4593
|
+
options: Object.values(Vt)
|
|
4594
4594
|
},
|
|
4595
4595
|
horizontal: {
|
|
4596
4596
|
type: String,
|
|
4597
4597
|
default: "none",
|
|
4598
|
-
options: Object.values(
|
|
4598
|
+
options: Object.values(Vt)
|
|
4599
4599
|
}
|
|
4600
4600
|
}
|
|
4601
|
-
},
|
|
4601
|
+
}, Ae = ({
|
|
4602
4602
|
vertical: t = et.props.vertical.default,
|
|
4603
4603
|
horizontal: e = et.props.horizontal.default
|
|
4604
4604
|
}) => {
|
|
@@ -4611,23 +4611,26 @@ const et = {
|
|
|
4611
4611
|
}
|
|
4612
4612
|
);
|
|
4613
4613
|
};
|
|
4614
|
-
|
|
4614
|
+
Ae.propTypes = {
|
|
4615
4615
|
vertical: l.oneOf(et.props.vertical.options),
|
|
4616
4616
|
horizontal: l.oneOf(et.props.horizontal.options)
|
|
4617
4617
|
};
|
|
4618
|
-
|
|
4618
|
+
Ae.displayName = "DsSpacer";
|
|
4619
4619
|
const Qs = ({
|
|
4620
4620
|
label: t,
|
|
4621
|
-
progress: e =
|
|
4622
|
-
color: s =
|
|
4621
|
+
progress: e = Mt.props.progress.default,
|
|
4622
|
+
color: s = Mt.props.color.default
|
|
4623
4623
|
}) => {
|
|
4624
|
-
const n =
|
|
4624
|
+
const n = he(
|
|
4625
4625
|
() => e > 100 ? 100 : e < 0 ? 0 : e,
|
|
4626
4626
|
[e]
|
|
4627
|
-
), a =
|
|
4628
|
-
() =>
|
|
4627
|
+
), a = he(
|
|
4628
|
+
() => st[s] ?? s,
|
|
4629
4629
|
[s]
|
|
4630
|
-
), r =
|
|
4630
|
+
), r = he(
|
|
4631
|
+
() => `bg-color__${a}`,
|
|
4632
|
+
[a]
|
|
4633
|
+
), i = he(() => `color__${a}`, [a]);
|
|
4631
4634
|
return /* @__PURE__ */ c("div", { className: "ds-progress", children: /* @__PURE__ */ I(je, { flexDirection: "column", children: [
|
|
4632
4635
|
/* @__PURE__ */ c(ae, { children: /* @__PURE__ */ c(
|
|
4633
4636
|
"div",
|
|
@@ -4640,7 +4643,7 @@ const Qs = ({
|
|
|
4640
4643
|
children: /* @__PURE__ */ c(
|
|
4641
4644
|
"div",
|
|
4642
4645
|
{
|
|
4643
|
-
className: `ds-progress__progress ${
|
|
4646
|
+
className: `ds-progress__progress ${r}`,
|
|
4644
4647
|
"data-testid": "ds-progress-bar",
|
|
4645
4648
|
style: { width: `${n}%` }
|
|
4646
4649
|
}
|
|
@@ -4654,8 +4657,8 @@ const Qs = ({
|
|
|
4654
4657
|
flexDirection: "column",
|
|
4655
4658
|
justifyContent: "center",
|
|
4656
4659
|
children: [
|
|
4657
|
-
/* @__PURE__ */ c(
|
|
4658
|
-
/* @__PURE__ */ c(vt, { children: t && /* @__PURE__ */ c(Me, { className:
|
|
4660
|
+
/* @__PURE__ */ c(Ae, { vertical: "quark" }),
|
|
4661
|
+
/* @__PURE__ */ c(vt, { children: t && /* @__PURE__ */ c(Me, { className: i, children: t }) })
|
|
4659
4662
|
]
|
|
4660
4663
|
}
|
|
4661
4664
|
) })
|
|
@@ -4664,7 +4667,7 @@ const Qs = ({
|
|
|
4664
4667
|
Qs.propTypes = {
|
|
4665
4668
|
label: l.string,
|
|
4666
4669
|
progress: l.number,
|
|
4667
|
-
color: l.
|
|
4670
|
+
color: l.oneOf(Mt.props.color.options)
|
|
4668
4671
|
};
|
|
4669
4672
|
var Js = /* @__PURE__ */ ((t) => (t.Default = "default", t.Card = "card", t))(Js || {});
|
|
4670
4673
|
const Ee = {
|
|
@@ -4681,7 +4684,7 @@ const Ee = {
|
|
|
4681
4684
|
default: !1
|
|
4682
4685
|
}
|
|
4683
4686
|
}
|
|
4684
|
-
}, ha =
|
|
4687
|
+
}, ha = we.forwardRef(
|
|
4685
4688
|
({
|
|
4686
4689
|
variant: t = Ee.props.variant.default,
|
|
4687
4690
|
fullWidth: e = Ee.props.fullWidth.default,
|
|
@@ -4693,7 +4696,7 @@ const Ee = {
|
|
|
4693
4696
|
disabled: o,
|
|
4694
4697
|
...u
|
|
4695
4698
|
}, d) => {
|
|
4696
|
-
const h = In(), f = r ?? `${Ee.class}-${h.replace(/:/g, "")}`,
|
|
4699
|
+
const h = In(), f = r ?? `${Ee.class}-${h.replace(/:/g, "")}`, y = [
|
|
4697
4700
|
Ee.class,
|
|
4698
4701
|
`${Ee.class}--${t}`,
|
|
4699
4702
|
e && `${Ee.class}--full-width`,
|
|
@@ -4703,7 +4706,7 @@ const Ee = {
|
|
|
4703
4706
|
return /* @__PURE__ */ I(
|
|
4704
4707
|
"label",
|
|
4705
4708
|
{
|
|
4706
|
-
className:
|
|
4709
|
+
className: y,
|
|
4707
4710
|
"data-testid": `${i}-root`,
|
|
4708
4711
|
htmlFor: f,
|
|
4709
4712
|
children: [
|
|
@@ -4805,7 +4808,7 @@ const J = {
|
|
|
4805
4808
|
},
|
|
4806
4809
|
options: []
|
|
4807
4810
|
}
|
|
4808
|
-
}, an =
|
|
4811
|
+
}, an = we.forwardRef(
|
|
4809
4812
|
({
|
|
4810
4813
|
label: t,
|
|
4811
4814
|
className: e,
|
|
@@ -4819,20 +4822,20 @@ const J = {
|
|
|
4819
4822
|
placeholder: d,
|
|
4820
4823
|
onChange: h,
|
|
4821
4824
|
onChangeHandler: f,
|
|
4822
|
-
size:
|
|
4825
|
+
size: y = J.props.size.default,
|
|
4823
4826
|
status: b = J.props.status.default,
|
|
4824
4827
|
tooltip: E,
|
|
4825
4828
|
tooltipPosition: v = J.props.tooltipPosition.default,
|
|
4826
4829
|
tooltipPlacement: g = J.props.tooltipPlacement.default,
|
|
4827
|
-
feedback:
|
|
4830
|
+
feedback: w,
|
|
4828
4831
|
...F
|
|
4829
|
-
},
|
|
4830
|
-
const [
|
|
4832
|
+
}, x) => {
|
|
4833
|
+
const [A, p] = q(!1), T = (P) => {
|
|
4831
4834
|
p(!1), h && h(P, P.target.value), f && f(P, P.target.value);
|
|
4832
4835
|
}, B = () => {
|
|
4833
4836
|
const P = [J.class, "select-placeholder"];
|
|
4834
|
-
return P.push(`${J.class}--${
|
|
4835
|
-
}, z =
|
|
4837
|
+
return P.push(`${J.class}--${y}`), b && P.push(`${J.class}--${b}`), A && P.push(`${J.class}--active`), s && P.push(`${J.class}--disabled`), e && P.push(e), P.join(" ");
|
|
4838
|
+
}, z = he(() => {
|
|
4836
4839
|
const P = [`${J.class}__label`];
|
|
4837
4840
|
return !n && P.push(`${J.class}__label--not-animated`), u && P.push(`${J.class}__label--has-value`), n && !u && !E && P.push(`${J.class}__label--hidden`), P.join(" ");
|
|
4838
4841
|
}, [u]);
|
|
@@ -4873,23 +4876,23 @@ const J = {
|
|
|
4873
4876
|
multiple: a,
|
|
4874
4877
|
name: i,
|
|
4875
4878
|
onBlur: () => p(!1),
|
|
4876
|
-
onChange: (P) =>
|
|
4879
|
+
onChange: (P) => T(P),
|
|
4877
4880
|
onFocus: () => p(!0),
|
|
4878
|
-
ref:
|
|
4881
|
+
ref: x,
|
|
4879
4882
|
value: u ?? "",
|
|
4880
4883
|
...F,
|
|
4881
4884
|
children: [
|
|
4882
4885
|
(d || n) && /* @__PURE__ */ c("option", { disabled: !0, value: "", children: d ?? t }),
|
|
4883
4886
|
o == null ? void 0 : o.map((P, te) => {
|
|
4884
4887
|
var le;
|
|
4885
|
-
return "options" in P ? /* @__PURE__ */ c("optgroup", { label: P.label, children: (le = P.options) == null ? void 0 : le.map((oe,
|
|
4888
|
+
return "options" in P ? /* @__PURE__ */ c("optgroup", { label: P.label, children: (le = P.options) == null ? void 0 : le.map((oe, xe) => /* @__PURE__ */ c(
|
|
4886
4889
|
"option",
|
|
4887
4890
|
{
|
|
4888
4891
|
className: `${J.class}__option-select`,
|
|
4889
4892
|
value: oe.value,
|
|
4890
4893
|
children: oe.label ?? oe.value
|
|
4891
4894
|
},
|
|
4892
|
-
|
|
4895
|
+
xe
|
|
4893
4896
|
)) }, te) : /* @__PURE__ */ c(
|
|
4894
4897
|
"option",
|
|
4895
4898
|
{
|
|
@@ -4903,7 +4906,7 @@ const J = {
|
|
|
4903
4906
|
]
|
|
4904
4907
|
}
|
|
4905
4908
|
),
|
|
4906
|
-
|
|
4909
|
+
w && /* @__PURE__ */ I("div", { className: "ds-select__feedback-container", children: [
|
|
4907
4910
|
/* @__PURE__ */ c(
|
|
4908
4911
|
Q,
|
|
4909
4912
|
{
|
|
@@ -4911,7 +4914,7 @@ const J = {
|
|
|
4911
4914
|
image: b === "success" ? "check_circle" : "info"
|
|
4912
4915
|
}
|
|
4913
4916
|
),
|
|
4914
|
-
/* @__PURE__ */ c("span", { className: "ds-select__feedback", children:
|
|
4917
|
+
/* @__PURE__ */ c("span", { className: "ds-select__feedback", children: w })
|
|
4915
4918
|
] })
|
|
4916
4919
|
] });
|
|
4917
4920
|
}
|
|
@@ -5052,7 +5055,7 @@ const se = {
|
|
|
5052
5055
|
}
|
|
5053
5056
|
}
|
|
5054
5057
|
}
|
|
5055
|
-
}, dn =
|
|
5058
|
+
}, dn = we.forwardRef(
|
|
5056
5059
|
({
|
|
5057
5060
|
name: t,
|
|
5058
5061
|
testId: e = se.props.testId.default,
|
|
@@ -5066,53 +5069,53 @@ const se = {
|
|
|
5066
5069
|
tooltip: d,
|
|
5067
5070
|
icon: h,
|
|
5068
5071
|
status: f = se.props.status.default,
|
|
5069
|
-
feedback:
|
|
5072
|
+
feedback: y,
|
|
5070
5073
|
disabled: b = se.props.disabled.default,
|
|
5071
5074
|
required: E,
|
|
5072
5075
|
className: v,
|
|
5073
5076
|
resize: g = se.props.resize.default,
|
|
5074
|
-
onChangeHandler:
|
|
5077
|
+
onChangeHandler: w,
|
|
5075
5078
|
onBlurHandler: F,
|
|
5076
|
-
onKeyDownHandler:
|
|
5077
|
-
onFocusHandler:
|
|
5079
|
+
onKeyDownHandler: x,
|
|
5080
|
+
onFocusHandler: A,
|
|
5078
5081
|
rows: p = se.props.rows.default,
|
|
5079
|
-
cols:
|
|
5082
|
+
cols: T,
|
|
5080
5083
|
description: B,
|
|
5081
5084
|
style: z
|
|
5082
5085
|
}, P) => {
|
|
5083
|
-
const [te, le] = q(!1), [oe,
|
|
5086
|
+
const [te, le] = q(!1), [oe, xe] = q(0), [fe, ge] = q(crypto.randomUUID());
|
|
5084
5087
|
G(() => {
|
|
5085
|
-
i == null &&
|
|
5088
|
+
i == null && ge(crypto.randomUUID());
|
|
5086
5089
|
}, [i]);
|
|
5087
|
-
const ne = (
|
|
5088
|
-
|
|
5089
|
-
},
|
|
5090
|
-
|
|
5091
|
-
}, be = (
|
|
5092
|
-
le(!1), F && F(
|
|
5093
|
-
},
|
|
5094
|
-
le(!0),
|
|
5090
|
+
const ne = (C) => {
|
|
5091
|
+
xe(C.target.value.length), w && w(C);
|
|
5092
|
+
}, me = (C) => {
|
|
5093
|
+
x && x(C);
|
|
5094
|
+
}, be = (C) => {
|
|
5095
|
+
le(!1), F && F(C);
|
|
5096
|
+
}, ve = (C) => {
|
|
5097
|
+
le(!0), A && A(C);
|
|
5095
5098
|
}, m = () => {
|
|
5096
|
-
const
|
|
5097
|
-
return n &&
|
|
5098
|
-
}, S =
|
|
5099
|
-
const
|
|
5100
|
-
return (te || i) &&
|
|
5099
|
+
const C = [`${se.class}`];
|
|
5100
|
+
return n && C.push(`${se.class}--${n}`), s && C.push(`${se.class}--animated`), d && C.push(`${se.class}--with-icon`), f && C.push(`${se.class}--${f}`), v && C.push(v), C.join(" ");
|
|
5101
|
+
}, S = he(() => {
|
|
5102
|
+
const C = [`${se.class}__label`];
|
|
5103
|
+
return (te || i) && C.push(`${se.class}__label--active`), C.join(" ");
|
|
5101
5104
|
}, [i, te]), V = () => !s && r ? r : "", $ = () => f && f === "error" ? "info" : "check_circle", R = {
|
|
5102
5105
|
resize: g,
|
|
5103
5106
|
...z ?? {}
|
|
5104
5107
|
};
|
|
5105
5108
|
return /* @__PURE__ */ I("div", { className: m(), children: [
|
|
5106
5109
|
B && /* @__PURE__ */ c("span", { className: "ds-textarea__description", children: B }),
|
|
5107
|
-
|
|
5110
|
+
y && /* @__PURE__ */ I("div", { className: "ds-textarea__feedback", children: [
|
|
5108
5111
|
/* @__PURE__ */ c(Q, { image: $() }),
|
|
5109
|
-
|
|
5112
|
+
y
|
|
5110
5113
|
] }),
|
|
5111
5114
|
/* @__PURE__ */ c(
|
|
5112
5115
|
"textarea",
|
|
5113
5116
|
{
|
|
5114
5117
|
className: "ds-textarea__textarea",
|
|
5115
|
-
cols:
|
|
5118
|
+
cols: T,
|
|
5116
5119
|
"data-testid": e,
|
|
5117
5120
|
defaultValue: i ?? "",
|
|
5118
5121
|
disabled: b,
|
|
@@ -5122,8 +5125,8 @@ const se = {
|
|
|
5122
5125
|
name: t,
|
|
5123
5126
|
onBlur: be,
|
|
5124
5127
|
onChange: ne,
|
|
5125
|
-
onFocus:
|
|
5126
|
-
onKeyDown:
|
|
5128
|
+
onFocus: ve,
|
|
5129
|
+
onKeyDown: me,
|
|
5127
5130
|
placeholder: V(),
|
|
5128
5131
|
ref: P,
|
|
5129
5132
|
required: E,
|
|
@@ -5146,7 +5149,7 @@ const se = {
|
|
|
5146
5149
|
children: /* @__PURE__ */ c(Q, { className: "ds-textarea__icon", image: h })
|
|
5147
5150
|
}
|
|
5148
5151
|
)
|
|
5149
|
-
] },
|
|
5152
|
+
] }, fe);
|
|
5150
5153
|
}
|
|
5151
5154
|
);
|
|
5152
5155
|
dn.propTypes = {
|
|
@@ -5176,7 +5179,7 @@ dn.propTypes = {
|
|
|
5176
5179
|
style: l.object
|
|
5177
5180
|
};
|
|
5178
5181
|
dn.displayName = "DsTextArea";
|
|
5179
|
-
const
|
|
5182
|
+
const ot = {
|
|
5180
5183
|
name: "Container",
|
|
5181
5184
|
class: "ds-container",
|
|
5182
5185
|
props: {
|
|
@@ -5189,14 +5192,14 @@ const lt = {
|
|
|
5189
5192
|
default: "ds-container-test"
|
|
5190
5193
|
}
|
|
5191
5194
|
}
|
|
5192
|
-
},
|
|
5195
|
+
}, zt = ({
|
|
5193
5196
|
children: t,
|
|
5194
|
-
fluid: e =
|
|
5197
|
+
fluid: e = ot.props.fluid.default,
|
|
5195
5198
|
className: s,
|
|
5196
5199
|
style: n,
|
|
5197
|
-
testId: a =
|
|
5200
|
+
testId: a = ot.props.testId.default
|
|
5198
5201
|
}) => {
|
|
5199
|
-
const r = e ? `${
|
|
5202
|
+
const r = e ? `${ot.class}--fluid` : ot.class;
|
|
5200
5203
|
return /* @__PURE__ */ c(
|
|
5201
5204
|
"div",
|
|
5202
5205
|
{
|
|
@@ -5207,15 +5210,15 @@ const lt = {
|
|
|
5207
5210
|
}
|
|
5208
5211
|
);
|
|
5209
5212
|
};
|
|
5210
|
-
|
|
5213
|
+
zt.propTypes = {
|
|
5211
5214
|
children: l.node,
|
|
5212
5215
|
fluid: l.bool,
|
|
5213
5216
|
className: l.string,
|
|
5214
5217
|
style: l.object,
|
|
5215
5218
|
testId: l.string
|
|
5216
5219
|
};
|
|
5217
|
-
|
|
5218
|
-
var pn = /* @__PURE__ */ ((t) => (t.Quark = "quark", t.Nano = "nano", t.ExtraSmall = "xs", t.Small = "sm", t.Medium = "md", t.Large = "lg", t))(pn || {}),
|
|
5220
|
+
zt.displayName = "DsContainer";
|
|
5221
|
+
var pn = /* @__PURE__ */ ((t) => (t.Quark = "quark", t.Nano = "nano", t.ExtraSmall = "xs", t.Small = "sm", t.Medium = "md", t.Large = "lg", t))(pn || {}), Lt = /* @__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))(Lt || {});
|
|
5219
5222
|
const ee = {
|
|
5220
5223
|
name: "Grid-Layout",
|
|
5221
5224
|
class: "ds-grid-layout",
|
|
@@ -5249,12 +5252,12 @@ const ee = {
|
|
|
5249
5252
|
horizontalAlign: {
|
|
5250
5253
|
type: String,
|
|
5251
5254
|
default: "start",
|
|
5252
|
-
options: Object.values(
|
|
5255
|
+
options: Object.values(Lt)
|
|
5253
5256
|
},
|
|
5254
5257
|
verticalAlign: {
|
|
5255
5258
|
type: String,
|
|
5256
5259
|
default: "start",
|
|
5257
|
-
options: Object.values(
|
|
5260
|
+
options: Object.values(Lt)
|
|
5258
5261
|
}
|
|
5259
5262
|
}
|
|
5260
5263
|
};
|
|
@@ -5288,29 +5291,29 @@ const hn = ({
|
|
|
5288
5291
|
height: u = ee.props.height.default
|
|
5289
5292
|
}) => {
|
|
5290
5293
|
const d = n && `${ee.class}__v-gap--${s}`, h = a && `${ee.class}__h-gap--${s}`, f = r && ee.props.horizontalAlign.options.find(
|
|
5291
|
-
(
|
|
5292
|
-
) ? `${ee.class}--h-${r}` : null,
|
|
5293
|
-
(
|
|
5294
|
+
(x) => x === r
|
|
5295
|
+
) ? `${ee.class}--h-${r}` : null, y = i && ee.props.verticalAlign.options.find(
|
|
5296
|
+
(x) => x === i
|
|
5294
5297
|
) ? `${ee.class}--v-${i}` : null, { width: b } = ga(), [E, v] = q("auto");
|
|
5295
5298
|
G(() => {
|
|
5296
5299
|
b <= 768 ? v("6") : v("12");
|
|
5297
5300
|
}, [b]);
|
|
5298
|
-
const g = (
|
|
5301
|
+
const g = (x) => /^[+-]?\d+$/.test(x), w = () => e.split(",").map((A) => (A = A.trim(), A === "0" || A === "*" || A === "auto" ? "auto" : g(A) ? A + "fr" : A)).join(" "), F = () => `repeat(${E}, minmax(0, 1fr))`;
|
|
5299
5302
|
return /* @__PURE__ */ c(
|
|
5300
5303
|
"div",
|
|
5301
5304
|
{
|
|
5302
5305
|
className: [
|
|
5303
5306
|
ee.class,
|
|
5304
5307
|
f,
|
|
5305
|
-
|
|
5308
|
+
y,
|
|
5306
5309
|
d,
|
|
5307
5310
|
h
|
|
5308
|
-
].filter((
|
|
5311
|
+
].filter((x) => x).join(" "),
|
|
5309
5312
|
style: {
|
|
5310
5313
|
width: o,
|
|
5311
5314
|
height: u,
|
|
5312
5315
|
gridTemplateColumns: F(),
|
|
5313
|
-
gridTemplateRows:
|
|
5316
|
+
gridTemplateRows: w()
|
|
5314
5317
|
},
|
|
5315
5318
|
children: t
|
|
5316
5319
|
}
|
|
@@ -5343,7 +5346,7 @@ const is = () => typeof window < "u" && window.innerWidth ? window.innerWidth :
|
|
|
5343
5346
|
if (typeof window < "u")
|
|
5344
5347
|
return window.addEventListener("resize", d), () => window.removeEventListener("resize", d);
|
|
5345
5348
|
}, []);
|
|
5346
|
-
const u =
|
|
5349
|
+
const u = he(() => i <= 768 ? {
|
|
5347
5350
|
gridRow: a ?? s,
|
|
5348
5351
|
gridColumn: r ?? n
|
|
5349
5352
|
} : {
|
|
@@ -5367,7 +5370,7 @@ const Ia = {
|
|
|
5367
5370
|
}
|
|
5368
5371
|
};
|
|
5369
5372
|
var Ye = /* @__PURE__ */ ((t) => (t.None = "none", t.Quark = "quark", t.Nano = "nano", t.ExtraSmall = "xs", t.Small = "sm", t.Medium = "md", t.Large = "lg", t))(Ye || {});
|
|
5370
|
-
const
|
|
5373
|
+
const Ce = {
|
|
5371
5374
|
name: "Wrapper",
|
|
5372
5375
|
class: "ds-wrapper",
|
|
5373
5376
|
props: {
|
|
@@ -5399,18 +5402,18 @@ const xe = {
|
|
|
5399
5402
|
}
|
|
5400
5403
|
}, tt = ({
|
|
5401
5404
|
children: t,
|
|
5402
|
-
space: e =
|
|
5403
|
-
top: s =
|
|
5404
|
-
right: n =
|
|
5405
|
-
bottom: a =
|
|
5406
|
-
left: r =
|
|
5405
|
+
space: e = Ce.props.space.default,
|
|
5406
|
+
top: s = Ce.props.top.default,
|
|
5407
|
+
right: n = Ce.props.right.default,
|
|
5408
|
+
bottom: a = Ce.props.bottom.default,
|
|
5409
|
+
left: r = Ce.props.left.default
|
|
5407
5410
|
}) => {
|
|
5408
|
-
const i = s && `${
|
|
5411
|
+
const i = s && `${Ce.class}__top--${s}`, o = n && `${Ce.class}__right--${n}`, u = a && `${Ce.class}__bottom--${a}`, d = r && `${Ce.class}__left--${r}`, h = e && `${Ce.class}--${e}`;
|
|
5409
5412
|
return /* @__PURE__ */ c(
|
|
5410
5413
|
"div",
|
|
5411
5414
|
{
|
|
5412
5415
|
className: [
|
|
5413
|
-
|
|
5416
|
+
Ce.class,
|
|
5414
5417
|
i,
|
|
5415
5418
|
o,
|
|
5416
5419
|
u,
|
|
@@ -5460,7 +5463,7 @@ const Ot = {
|
|
|
5460
5463
|
default: !1
|
|
5461
5464
|
}
|
|
5462
5465
|
}
|
|
5463
|
-
},
|
|
5466
|
+
}, Ht = ({
|
|
5464
5467
|
title: t,
|
|
5465
5468
|
content: e,
|
|
5466
5469
|
onToggle: s,
|
|
@@ -5498,13 +5501,13 @@ const Ot = {
|
|
|
5498
5501
|
}
|
|
5499
5502
|
);
|
|
5500
5503
|
};
|
|
5501
|
-
|
|
5504
|
+
Ht.propTypes = {
|
|
5502
5505
|
active: l.bool,
|
|
5503
5506
|
title: l.oneOfType([l.element, l.string]),
|
|
5504
5507
|
content: l.oneOfType([l.element, l.string]),
|
|
5505
5508
|
disabled: l.bool
|
|
5506
5509
|
};
|
|
5507
|
-
|
|
5510
|
+
Ht.displayName = "DsAccordionItem";
|
|
5508
5511
|
const fn = ({
|
|
5509
5512
|
items: t = Ot.props.items.default,
|
|
5510
5513
|
activeItem: e = Ot.props.activeItem.default,
|
|
@@ -5524,7 +5527,7 @@ const fn = ({
|
|
|
5524
5527
|
a(i), s && s(i);
|
|
5525
5528
|
};
|
|
5526
5529
|
return /* @__PURE__ */ c("ul", { className: Ot.class, children: t.map((i, o) => /* @__PURE__ */ c(
|
|
5527
|
-
|
|
5530
|
+
Ht,
|
|
5528
5531
|
{
|
|
5529
5532
|
active: n === o,
|
|
5530
5533
|
content: i.content,
|
|
@@ -5610,7 +5613,7 @@ const Na = {
|
|
|
5610
5613
|
name: "Carousel",
|
|
5611
5614
|
class: "ds-carousel",
|
|
5612
5615
|
props: {}
|
|
5613
|
-
},
|
|
5616
|
+
}, ya = ({
|
|
5614
5617
|
slides: t,
|
|
5615
5618
|
interval: e = 3e3,
|
|
5616
5619
|
imageHeight: s = 100,
|
|
@@ -5624,14 +5627,14 @@ const Na = {
|
|
|
5624
5627
|
}, e)), () => {
|
|
5625
5628
|
h.current && clearInterval(h.current);
|
|
5626
5629
|
}), [u, e, t.length]);
|
|
5627
|
-
const f = () => d(!0),
|
|
5630
|
+
const f = () => d(!0), y = () => d(!1);
|
|
5628
5631
|
return /* @__PURE__ */ I(
|
|
5629
5632
|
"div",
|
|
5630
5633
|
{
|
|
5631
5634
|
className: `${Ge.class}`,
|
|
5632
5635
|
"data-testid": "ds-carousel",
|
|
5633
5636
|
onMouseEnter: f,
|
|
5634
|
-
onMouseLeave:
|
|
5637
|
+
onMouseLeave: y,
|
|
5635
5638
|
children: [
|
|
5636
5639
|
/* @__PURE__ */ c(
|
|
5637
5640
|
"div",
|
|
@@ -5660,10 +5663,10 @@ const Na = {
|
|
|
5660
5663
|
))
|
|
5661
5664
|
}
|
|
5662
5665
|
),
|
|
5663
|
-
/* @__PURE__ */ c(
|
|
5664
|
-
/* @__PURE__ */ c("div", { children: /* @__PURE__ */ c(
|
|
5666
|
+
/* @__PURE__ */ c(Ae, { vertical: "xxs" }),
|
|
5667
|
+
/* @__PURE__ */ c("div", { children: /* @__PURE__ */ c(Pt, { className: "color__primary", type: "heading-4", children: t[i].title }) }),
|
|
5665
5668
|
/* @__PURE__ */ c("div", { children: /* @__PURE__ */ c(Me, { type: "large", children: t[i].description }) }),
|
|
5666
|
-
/* @__PURE__ */ c(
|
|
5669
|
+
/* @__PURE__ */ c(Ae, { vertical: "xxs" }),
|
|
5667
5670
|
/* @__PURE__ */ c("div", { className: `${Ge.class}__dots`, children: /* @__PURE__ */ c("div", { className: `${Ge.class}__dots-wrapper`, children: t.map((b, E) => /* @__PURE__ */ c(
|
|
5668
5671
|
"button",
|
|
5669
5672
|
{
|
|
@@ -5677,7 +5680,7 @@ const Na = {
|
|
|
5677
5680
|
}
|
|
5678
5681
|
);
|
|
5679
5682
|
};
|
|
5680
|
-
|
|
5683
|
+
ya.propTypes = {
|
|
5681
5684
|
slides: l.arrayOf(
|
|
5682
5685
|
l.shape({
|
|
5683
5686
|
title: l.string.isRequired,
|
|
@@ -5775,7 +5778,7 @@ const Y = {
|
|
|
5775
5778
|
}
|
|
5776
5779
|
}
|
|
5777
5780
|
}
|
|
5778
|
-
},
|
|
5781
|
+
}, _a = (t, e) => {
|
|
5779
5782
|
if (!e) return t;
|
|
5780
5783
|
const s = e.toLowerCase();
|
|
5781
5784
|
return t.filter((n) => n.label.toLowerCase().includes(s));
|
|
@@ -5792,43 +5795,43 @@ const Y = {
|
|
|
5792
5795
|
icon: d = Y.props.icon.default,
|
|
5793
5796
|
noOptionsMessage: h = Y.props.noOptionsMessage.default,
|
|
5794
5797
|
disabled: f = Y.props.disabled.default,
|
|
5795
|
-
status:
|
|
5798
|
+
status: y = Y.props.status.default,
|
|
5796
5799
|
onBlurHandler: b = Y.props.onBlurHandler.default,
|
|
5797
5800
|
onFocusHandler: E = Y.props.onFocusHandler.default,
|
|
5798
5801
|
animated: v = Y.props.animated.default,
|
|
5799
5802
|
placeholder: g = Y.props.placeholder.default,
|
|
5800
|
-
loading:
|
|
5803
|
+
loading: w,
|
|
5801
5804
|
showOptionsOnFocus: F = !1,
|
|
5802
|
-
inputType:
|
|
5803
|
-
inputMin:
|
|
5805
|
+
inputType: x,
|
|
5806
|
+
inputMin: A,
|
|
5804
5807
|
inputMax: p,
|
|
5805
|
-
inputTooltip:
|
|
5808
|
+
inputTooltip: T,
|
|
5806
5809
|
inputTooltipPosition: B,
|
|
5807
5810
|
inputTooltipPlacement: z,
|
|
5808
5811
|
inputFeedback: P,
|
|
5809
5812
|
inputHasFeedback: te,
|
|
5810
5813
|
inputNoMargin: le,
|
|
5811
5814
|
inputMask: oe,
|
|
5812
|
-
inputOnKeyDownHandler:
|
|
5815
|
+
inputOnKeyDownHandler: xe
|
|
5813
5816
|
}) => {
|
|
5814
|
-
const [
|
|
5817
|
+
const [fe, ge] = q(!1), [ne, me] = q(n), [be, ve] = q(!0), m = Ke(null), S = (k) => {
|
|
5815
5818
|
if (F) {
|
|
5816
|
-
const
|
|
5817
|
-
|
|
5819
|
+
const _ = n.trim().toLowerCase(), ue = k.currentTarget.value.trim().toLowerCase(), Pe = a.map((Fn) => Fn.label.trim().toLowerCase()), it = !!_ && Pe.includes(_), Tn = !!ue && Pe.includes(ue);
|
|
5820
|
+
it && !Tn && u();
|
|
5818
5821
|
}
|
|
5819
|
-
i(k),
|
|
5822
|
+
i(k), ve(!1);
|
|
5820
5823
|
const O = k.currentTarget.value.length;
|
|
5821
|
-
(F ||
|
|
5824
|
+
(F || w == null && O > 0 || !w && O > 2) && ge(!0);
|
|
5822
5825
|
}, V = () => {
|
|
5823
|
-
E(),
|
|
5826
|
+
E(), ve(!0), F && ge(!0);
|
|
5824
5827
|
}, $ = () => {
|
|
5825
|
-
var X,
|
|
5828
|
+
var X, _;
|
|
5826
5829
|
const k = (X = m.current) == null ? void 0 : X.querySelector("input");
|
|
5827
5830
|
if (!k) return;
|
|
5828
|
-
const O = (
|
|
5831
|
+
const O = (_ = Object.getOwnPropertyDescriptor(
|
|
5829
5832
|
window.HTMLInputElement.prototype,
|
|
5830
5833
|
"value"
|
|
5831
|
-
)) == null ? void 0 :
|
|
5834
|
+
)) == null ? void 0 : _.set;
|
|
5832
5835
|
O == null || O.call(k, ""), k.dispatchEvent(new Event("input", { bubbles: !0 }));
|
|
5833
5836
|
}, R = () => {
|
|
5834
5837
|
if (F) {
|
|
@@ -5837,27 +5840,27 @@ const Y = {
|
|
|
5837
5840
|
) : void 0;
|
|
5838
5841
|
k && (O ? o(O) : ($(), u()));
|
|
5839
5842
|
}
|
|
5840
|
-
b(),
|
|
5841
|
-
},
|
|
5842
|
-
o(k), b(), F ||
|
|
5843
|
+
b(), ve(!0);
|
|
5844
|
+
}, C = (k) => {
|
|
5845
|
+
o(k), b(), F || me(crypto.randomUUID().toString()), ve(!0), ge(!1);
|
|
5843
5846
|
}, M = (k) => {
|
|
5844
|
-
f ||
|
|
5847
|
+
f || C(k);
|
|
5845
5848
|
};
|
|
5846
5849
|
G(() => {
|
|
5847
|
-
!F && n.length === 0 &&
|
|
5850
|
+
!F && n.length === 0 && ge(!1);
|
|
5848
5851
|
}, [n, F]), G(() => {
|
|
5849
5852
|
if (!F) return;
|
|
5850
5853
|
const k = (O) => {
|
|
5851
|
-
m.current && !m.current.contains(O.target) &&
|
|
5854
|
+
m.current && !m.current.contains(O.target) && ge(!1);
|
|
5852
5855
|
};
|
|
5853
5856
|
return document.addEventListener("mousedown", k), () => document.removeEventListener("mousedown", k);
|
|
5854
5857
|
}, [F]);
|
|
5855
|
-
const L =
|
|
5856
|
-
const
|
|
5858
|
+
const L = he(() => F ? be ? ls(a) : _a(a, n) : ls(a), [a, n, F, be]), U = () => L.length > 0 ? L.map((k, O) => {
|
|
5859
|
+
const _ = k.label === n ? ` ${Y.class}__option--selected` : "";
|
|
5857
5860
|
return /* @__PURE__ */ c(
|
|
5858
5861
|
"button",
|
|
5859
5862
|
{
|
|
5860
|
-
className: `${Y.class}__option ${Y.class}__option--${r}${
|
|
5863
|
+
className: `${Y.class}__option ${Y.class}__option--${r}${_}`,
|
|
5861
5864
|
"data-testid": `ds-option-${k.id ?? k.label}`,
|
|
5862
5865
|
onClick: () => M(k),
|
|
5863
5866
|
onMouseDown: (ue) => ue.preventDefault(),
|
|
@@ -5881,7 +5884,7 @@ const Y = {
|
|
|
5881
5884
|
ref: m,
|
|
5882
5885
|
children: [
|
|
5883
5886
|
/* @__PURE__ */ c(
|
|
5884
|
-
|
|
5887
|
+
at,
|
|
5885
5888
|
{
|
|
5886
5889
|
animated: v,
|
|
5887
5890
|
className: `${Y.class}__input`,
|
|
@@ -5891,31 +5894,31 @@ const Y = {
|
|
|
5891
5894
|
label: t,
|
|
5892
5895
|
mask: oe,
|
|
5893
5896
|
max: p,
|
|
5894
|
-
min:
|
|
5897
|
+
min: A,
|
|
5895
5898
|
name: e,
|
|
5896
5899
|
noMargin: le,
|
|
5897
5900
|
onBlurHandler: R,
|
|
5898
5901
|
onChangeHandler: S,
|
|
5899
5902
|
onFocusHandler: V,
|
|
5900
|
-
onKeyDownHandler:
|
|
5903
|
+
onKeyDownHandler: xe,
|
|
5901
5904
|
placeholder: g,
|
|
5902
5905
|
size: r,
|
|
5903
|
-
status:
|
|
5906
|
+
status: y,
|
|
5904
5907
|
testId: s,
|
|
5905
|
-
tooltip:
|
|
5908
|
+
tooltip: T,
|
|
5906
5909
|
tooltipPlacement: z,
|
|
5907
5910
|
tooltipPosition: B,
|
|
5908
|
-
type:
|
|
5911
|
+
type: x,
|
|
5909
5912
|
value: n
|
|
5910
5913
|
},
|
|
5911
5914
|
ne
|
|
5912
5915
|
),
|
|
5913
|
-
(d ||
|
|
5916
|
+
(d || w) && (w ? /* @__PURE__ */ c(
|
|
5914
5917
|
"div",
|
|
5915
5918
|
{
|
|
5916
5919
|
className: `${Y.class}__loading ${Y.class}__loading--${r}`,
|
|
5917
5920
|
style: { width: "18px" },
|
|
5918
|
-
children: /* @__PURE__ */ c(
|
|
5921
|
+
children: /* @__PURE__ */ c(Ut, { fullscreen: !1 })
|
|
5919
5922
|
}
|
|
5920
5923
|
) : d && /* @__PURE__ */ c(
|
|
5921
5924
|
Q,
|
|
@@ -5924,7 +5927,7 @@ const Y = {
|
|
|
5924
5927
|
image: d
|
|
5925
5928
|
}
|
|
5926
5929
|
)),
|
|
5927
|
-
|
|
5930
|
+
fe && /* @__PURE__ */ c(
|
|
5928
5931
|
"div",
|
|
5929
5932
|
{
|
|
5930
5933
|
className: `${Y.class}__list ${Y.class}__list--${r}`,
|
|
@@ -6018,7 +6021,7 @@ const Ze = {
|
|
|
6018
6021
|
G(() => {
|
|
6019
6022
|
f(e ?? "");
|
|
6020
6023
|
}, [e]);
|
|
6021
|
-
const
|
|
6024
|
+
const y = (g) => {
|
|
6022
6025
|
g.key === "Enter" && b(g);
|
|
6023
6026
|
};
|
|
6024
6027
|
function b(g) {
|
|
@@ -6040,7 +6043,7 @@ const Ze = {
|
|
|
6040
6043
|
name: t,
|
|
6041
6044
|
onBlur: b,
|
|
6042
6045
|
onChange: E,
|
|
6043
|
-
onKeyDown:
|
|
6046
|
+
onKeyDown: y,
|
|
6044
6047
|
ref: o,
|
|
6045
6048
|
type: "number",
|
|
6046
6049
|
value: h
|
|
@@ -6098,7 +6101,7 @@ const Se = {
|
|
|
6098
6101
|
default: !1
|
|
6099
6102
|
}
|
|
6100
6103
|
}
|
|
6101
|
-
},
|
|
6104
|
+
}, yn = ({
|
|
6102
6105
|
className: t,
|
|
6103
6106
|
title: e,
|
|
6104
6107
|
content: s,
|
|
@@ -6112,7 +6115,7 @@ const Se = {
|
|
|
6112
6115
|
onConfirm: h,
|
|
6113
6116
|
...f
|
|
6114
6117
|
}) => {
|
|
6115
|
-
const
|
|
6118
|
+
const y = r && Se.props.variant.options.find((g) => g === r) ? `${Se.class}--${r}` : `${Se.class}--${Se.props.variant.default}`, b = i && `${Se.class}--elevation-${i}`, E = h || d, v = Oe(
|
|
6116
6119
|
(g) => {
|
|
6117
6120
|
g.keyCode === 27 && u();
|
|
6118
6121
|
},
|
|
@@ -6134,7 +6137,7 @@ const Se = {
|
|
|
6134
6137
|
/* @__PURE__ */ I(
|
|
6135
6138
|
"div",
|
|
6136
6139
|
{
|
|
6137
|
-
className: [Se.class,
|
|
6140
|
+
className: [Se.class, y, b, t].filter((g) => g).join(" "),
|
|
6138
6141
|
"data-testid": "ds-modal",
|
|
6139
6142
|
children: [
|
|
6140
6143
|
!E && /* @__PURE__ */ c(
|
|
@@ -6148,11 +6151,11 @@ const Se = {
|
|
|
6148
6151
|
),
|
|
6149
6152
|
/* @__PURE__ */ I("div", { className: "ds-modal__content", children: [
|
|
6150
6153
|
/* @__PURE__ */ c("div", { className: "ds-modal__content__title", children: e }),
|
|
6151
|
-
e && /* @__PURE__ */ c(
|
|
6154
|
+
e && /* @__PURE__ */ c(Ae, { vertical: "xxxs" }),
|
|
6152
6155
|
/* @__PURE__ */ c("div", { className: "ds-modal__content__content", children: s })
|
|
6153
6156
|
] }),
|
|
6154
|
-
E && /* @__PURE__ */ c(
|
|
6155
|
-
!E && /* @__PURE__ */ c(
|
|
6157
|
+
E && /* @__PURE__ */ c(Ae, { vertical: "sm" }),
|
|
6158
|
+
!E && /* @__PURE__ */ c(Ae, { vertical: "xxs" }),
|
|
6156
6159
|
/* @__PURE__ */ I("div", { className: "ds-modal__cta", children: [
|
|
6157
6160
|
d && /* @__PURE__ */ c(
|
|
6158
6161
|
ht,
|
|
@@ -6178,7 +6181,7 @@ const Se = {
|
|
|
6178
6181
|
)
|
|
6179
6182
|
] }) : null;
|
|
6180
6183
|
};
|
|
6181
|
-
|
|
6184
|
+
yn.propTypes = {
|
|
6182
6185
|
firstButtonText: l.string,
|
|
6183
6186
|
confirmBtnText: l.string,
|
|
6184
6187
|
cancelBtnText: l.string,
|
|
@@ -6188,8 +6191,8 @@ _n.propTypes = {
|
|
|
6188
6191
|
title: l.node,
|
|
6189
6192
|
content: l.node
|
|
6190
6193
|
};
|
|
6191
|
-
|
|
6192
|
-
var
|
|
6194
|
+
yn.displayName = "DsModal";
|
|
6195
|
+
var _n = /* @__PURE__ */ ((t) => (t.Success = "success", t.Danger = "danger", t.Warning = "warning", t.Info = "info", t))(_n || {}), kn = /* @__PURE__ */ ((t) => (t.Rounded = "rounded", t.Squared = "squared", t))(kn || {});
|
|
6193
6196
|
const pe = {
|
|
6194
6197
|
name: "DsNotification",
|
|
6195
6198
|
class: "ds-notification",
|
|
@@ -6197,7 +6200,7 @@ const pe = {
|
|
|
6197
6200
|
type: {
|
|
6198
6201
|
type: String,
|
|
6199
6202
|
default: "info",
|
|
6200
|
-
options: Object.values(
|
|
6203
|
+
options: Object.values(_n)
|
|
6201
6204
|
},
|
|
6202
6205
|
id: {
|
|
6203
6206
|
type: String
|
|
@@ -6247,37 +6250,37 @@ const En = ({
|
|
|
6247
6250
|
elevation: d,
|
|
6248
6251
|
progressBar: h = pe.props.progressBar.default,
|
|
6249
6252
|
handleClose: f,
|
|
6250
|
-
testId:
|
|
6253
|
+
testId: y = pe.props.testId.default
|
|
6251
6254
|
}) => {
|
|
6252
|
-
const [b, E] = q(o), [v, g] = q(!1), [
|
|
6255
|
+
const [b, E] = q(o), [v, g] = q(!1), [w, F] = q(!0), x = [
|
|
6253
6256
|
pe.class,
|
|
6254
6257
|
e && `${pe.class}--${e}`,
|
|
6255
6258
|
s && `${pe.class}--${s}`,
|
|
6256
6259
|
d && `${pe.class}--elevation-${d}`,
|
|
6257
6260
|
t
|
|
6258
|
-
].join(" "),
|
|
6261
|
+
].join(" "), A = () => E((z) => (z === 0 && F(!1), z - 100));
|
|
6259
6262
|
G(() => {
|
|
6260
6263
|
!i && !u && F(!0);
|
|
6261
6264
|
let z;
|
|
6262
|
-
return !v && i && (z = setInterval(
|
|
6265
|
+
return !v && i && (z = setInterval(A, 100)), () => {
|
|
6263
6266
|
clearInterval(z);
|
|
6264
6267
|
};
|
|
6265
|
-
}, [v, i, o,
|
|
6268
|
+
}, [v, i, o, w, u]);
|
|
6266
6269
|
const p = () => {
|
|
6267
6270
|
g(!0);
|
|
6268
|
-
},
|
|
6271
|
+
}, T = () => {
|
|
6269
6272
|
g(!1);
|
|
6270
6273
|
}, B = (z) => {
|
|
6271
6274
|
F(!1), f && f(z);
|
|
6272
6275
|
};
|
|
6273
|
-
return
|
|
6276
|
+
return w ? /* @__PURE__ */ I(
|
|
6274
6277
|
"div",
|
|
6275
6278
|
{
|
|
6276
|
-
className:
|
|
6277
|
-
"data-testid":
|
|
6279
|
+
className: x,
|
|
6280
|
+
"data-testid": y,
|
|
6278
6281
|
id: n,
|
|
6279
6282
|
onMouseEnter: p,
|
|
6280
|
-
onMouseLeave:
|
|
6283
|
+
onMouseLeave: T,
|
|
6281
6284
|
children: [
|
|
6282
6285
|
/* @__PURE__ */ c(tt, { bottom: "nano", top: "nano", children: /* @__PURE__ */ I(je, { alignItems: "center", flexWrap: "nowrap", gap: "xxxs", children: [
|
|
6283
6286
|
/* @__PURE__ */ c(ae, { children: /* @__PURE__ */ c(
|
|
@@ -6293,17 +6296,17 @@ const En = ({
|
|
|
6293
6296
|
"div",
|
|
6294
6297
|
{
|
|
6295
6298
|
className: `${pe.class}__button`,
|
|
6296
|
-
"data-testid": `${
|
|
6299
|
+
"data-testid": `${y}-close`,
|
|
6297
6300
|
onClick: (z) => B(z),
|
|
6298
6301
|
children: /* @__PURE__ */ c(tt, { children: /* @__PURE__ */ c(Q, { image: "close" }) })
|
|
6299
6302
|
}
|
|
6300
|
-
) : /* @__PURE__ */ c(
|
|
6303
|
+
) : /* @__PURE__ */ c(Ae, { horizontal: "quark" }) })
|
|
6301
6304
|
] }) }),
|
|
6302
6305
|
h && i && /* @__PURE__ */ c(
|
|
6303
6306
|
"div",
|
|
6304
6307
|
{
|
|
6305
6308
|
className: `${pe.class}__progress-bar ${pe.class}__progress-bar--${e}`,
|
|
6306
|
-
"data-testid": `${
|
|
6309
|
+
"data-testid": `${y}-progress-bar`,
|
|
6307
6310
|
style: {
|
|
6308
6311
|
width: `${b / o * 100}%`
|
|
6309
6312
|
}
|
|
@@ -6353,7 +6356,7 @@ const It = {
|
|
|
6353
6356
|
default: "ds-password-confirmation"
|
|
6354
6357
|
}
|
|
6355
6358
|
}
|
|
6356
|
-
},
|
|
6359
|
+
}, ut = {
|
|
6357
6360
|
strong: "Forte",
|
|
6358
6361
|
good: "Boa",
|
|
6359
6362
|
medium: "Médio",
|
|
@@ -6368,18 +6371,18 @@ const It = {
|
|
|
6368
6371
|
score: 0,
|
|
6369
6372
|
color: "danger",
|
|
6370
6373
|
label: "Fraco"
|
|
6371
|
-
}), [
|
|
6374
|
+
}), [y, b] = q(!1), E = Oe(
|
|
6372
6375
|
(p) => {
|
|
6373
|
-
const
|
|
6376
|
+
const T = e.map(
|
|
6374
6377
|
(B) => B == null ? void 0 : B.rule(p)
|
|
6375
6378
|
);
|
|
6376
|
-
return d(
|
|
6379
|
+
return d(T), T;
|
|
6377
6380
|
},
|
|
6378
6381
|
[e]
|
|
6379
6382
|
), v = Oe(
|
|
6380
6383
|
(p) => {
|
|
6381
6384
|
r(p.currentTarget.value);
|
|
6382
|
-
const
|
|
6385
|
+
const T = E(p.currentTarget.value), B = x(T);
|
|
6383
6386
|
t({
|
|
6384
6387
|
password: p.currentTarget.value,
|
|
6385
6388
|
confirmationPassword: i,
|
|
@@ -6391,7 +6394,7 @@ const It = {
|
|
|
6391
6394
|
), g = Oe(
|
|
6392
6395
|
(p) => {
|
|
6393
6396
|
o(p.currentTarget.value);
|
|
6394
|
-
const
|
|
6397
|
+
const T = E(a), B = x(T);
|
|
6395
6398
|
t({
|
|
6396
6399
|
password: a,
|
|
6397
6400
|
confirmationPassword: p.currentTarget.value,
|
|
@@ -6400,34 +6403,34 @@ const It = {
|
|
|
6400
6403
|
});
|
|
6401
6404
|
},
|
|
6402
6405
|
[a, t, E]
|
|
6403
|
-
),
|
|
6406
|
+
), w = he(() => a !== i && y ? { status: "error", feedback: "As senhas são diferentes" } : { status: "", feedback: "" }, [a, i, y]), F = Oe(
|
|
6404
6407
|
(p) => {
|
|
6405
|
-
const
|
|
6408
|
+
const T = {
|
|
6406
6409
|
score: p,
|
|
6407
6410
|
color: "danger",
|
|
6408
|
-
label:
|
|
6411
|
+
label: ut.weak
|
|
6409
6412
|
};
|
|
6410
|
-
return p > 30 && p < 75 ? (
|
|
6413
|
+
return p > 30 && p < 75 ? (T.color = "warning", T.label = ut.medium) : p >= 75 && p < 100 ? (T.color = "success", T.label = ut.good) : p === 100 && (T.color = "success-dark", T.label = ut.strong), T;
|
|
6411
6414
|
},
|
|
6412
6415
|
[]
|
|
6413
|
-
),
|
|
6416
|
+
), x = Oe(
|
|
6414
6417
|
(p) => {
|
|
6415
|
-
const
|
|
6418
|
+
const T = p.reduce(
|
|
6416
6419
|
(z, P) => {
|
|
6417
6420
|
let te = z;
|
|
6418
6421
|
return P ? (te++, te) : z;
|
|
6419
6422
|
},
|
|
6420
6423
|
0
|
|
6421
6424
|
), B = F(
|
|
6422
|
-
|
|
6425
|
+
T * 100 / p.length
|
|
6423
6426
|
);
|
|
6424
6427
|
return f(B), B;
|
|
6425
6428
|
},
|
|
6426
6429
|
[F]
|
|
6427
|
-
),
|
|
6428
|
-
const B = u[
|
|
6430
|
+
), A = () => /* @__PURE__ */ c("ul", { children: e.map((p, T) => {
|
|
6431
|
+
const B = u[T] ? "ds-password-confirmation__list" : "ds-password-confirmation__list--disc";
|
|
6429
6432
|
return /* @__PURE__ */ I("li", { className: B, children: [
|
|
6430
|
-
u[
|
|
6433
|
+
u[T] ? /* @__PURE__ */ c(
|
|
6431
6434
|
Q,
|
|
6432
6435
|
{
|
|
6433
6436
|
color: "success-dark",
|
|
@@ -6435,13 +6438,13 @@ const It = {
|
|
|
6435
6438
|
testId: "ds-check-icon"
|
|
6436
6439
|
}
|
|
6437
6440
|
) : null,
|
|
6438
|
-
/* @__PURE__ */ c(
|
|
6441
|
+
/* @__PURE__ */ c(Ae, { horizontal: "quark" }),
|
|
6439
6442
|
/* @__PURE__ */ c(Me, { children: p.title })
|
|
6440
|
-
] },
|
|
6443
|
+
] }, T + p.title);
|
|
6441
6444
|
}) });
|
|
6442
6445
|
return /* @__PURE__ */ I(je, { className: "ds-password-confirmation", flexDirection: "column", children: [
|
|
6443
6446
|
/* @__PURE__ */ c(ae, { children: /* @__PURE__ */ c(
|
|
6444
|
-
|
|
6447
|
+
at,
|
|
6445
6448
|
{
|
|
6446
6449
|
label: "Senha",
|
|
6447
6450
|
name: "password",
|
|
@@ -6460,18 +6463,18 @@ const It = {
|
|
|
6460
6463
|
}
|
|
6461
6464
|
) }),
|
|
6462
6465
|
/* @__PURE__ */ c(ae, { children: /* @__PURE__ */ c(Me, { children: s }) }),
|
|
6463
|
-
/* @__PURE__ */ c(ae, { children:
|
|
6464
|
-
/* @__PURE__ */ c(
|
|
6466
|
+
/* @__PURE__ */ c(ae, { children: A() }),
|
|
6467
|
+
/* @__PURE__ */ c(Ae, { vertical: "xxs" }),
|
|
6465
6468
|
/* @__PURE__ */ c(ae, { children: /* @__PURE__ */ c(
|
|
6466
|
-
|
|
6469
|
+
at,
|
|
6467
6470
|
{
|
|
6468
|
-
feedback:
|
|
6471
|
+
feedback: w.feedback,
|
|
6469
6472
|
label: "Confirme a senha",
|
|
6470
6473
|
name: "confirmPassword",
|
|
6471
6474
|
onBlurHandler: () => b(!0),
|
|
6472
6475
|
onChangeHandler: g,
|
|
6473
6476
|
onFocusHandler: () => b(!0),
|
|
6474
|
-
status:
|
|
6477
|
+
status: w.status,
|
|
6475
6478
|
testId: `${n}-confirm-input`,
|
|
6476
6479
|
type: "password",
|
|
6477
6480
|
value: i
|
|
@@ -6486,7 +6489,7 @@ Sn.propTypes = {
|
|
|
6486
6489
|
testId: l.string
|
|
6487
6490
|
};
|
|
6488
6491
|
Sn.displayName = "DsPasswordConfirmation";
|
|
6489
|
-
const
|
|
6492
|
+
const De = {
|
|
6490
6493
|
name: "DsStepper",
|
|
6491
6494
|
class: "ds-stepper",
|
|
6492
6495
|
props: {
|
|
@@ -6501,28 +6504,28 @@ const Te = {
|
|
|
6501
6504
|
}
|
|
6502
6505
|
}, Sa = ({
|
|
6503
6506
|
steps: t,
|
|
6504
|
-
selectedStep: e =
|
|
6507
|
+
selectedStep: e = De.props.selectedStep.default,
|
|
6505
6508
|
onChange: s
|
|
6506
6509
|
}) => {
|
|
6507
6510
|
const [n, a] = q(e), r = (i, o) => {
|
|
6508
|
-
const u = [`${
|
|
6509
|
-
return o !== i && u.push(`${
|
|
6511
|
+
const u = [`${De.class}__button`];
|
|
6512
|
+
return o !== i && u.push(`${De.class}__button--round`), t[i] && t[i].disabled && u.push(`${De.class}__button--disabled`), u.join(" ");
|
|
6510
6513
|
};
|
|
6511
6514
|
return G(() => {
|
|
6512
6515
|
a(e);
|
|
6513
6516
|
}, [e]), G(() => {
|
|
6514
6517
|
s(n);
|
|
6515
|
-
}, [n]), /* @__PURE__ */ I("div", { className:
|
|
6516
|
-
/* @__PURE__ */ I("span", { className: `${
|
|
6518
|
+
}, [n]), /* @__PURE__ */ I("div", { className: De.class, children: [
|
|
6519
|
+
/* @__PURE__ */ I("span", { className: `${De.class}__step-counter`, children: [
|
|
6517
6520
|
"Etapa ",
|
|
6518
6521
|
n + 1,
|
|
6519
6522
|
" de ",
|
|
6520
6523
|
t == null ? void 0 : t.length
|
|
6521
6524
|
] }),
|
|
6522
|
-
/* @__PURE__ */ c("div", { className: `${
|
|
6525
|
+
/* @__PURE__ */ c("div", { className: `${De.class}__step`, children: t.map((i, o) => /* @__PURE__ */ c(
|
|
6523
6526
|
"div",
|
|
6524
6527
|
{
|
|
6525
|
-
className: `${
|
|
6528
|
+
className: `${De.class}__content`,
|
|
6526
6529
|
children: /* @__PURE__ */ c(
|
|
6527
6530
|
"button",
|
|
6528
6531
|
{
|
|
@@ -6530,11 +6533,11 @@ const Te = {
|
|
|
6530
6533
|
"data-testid": `ds-button-${o}`,
|
|
6531
6534
|
disabled: i.disabled,
|
|
6532
6535
|
onClick: () => a(o),
|
|
6533
|
-
children: /* @__PURE__ */ I("span", { className: `${
|
|
6536
|
+
children: /* @__PURE__ */ I("span", { className: `${De.class}__text`, children: [
|
|
6534
6537
|
n === o ? /* @__PURE__ */ c(tt, { bottom: "none", left: "nano", right: "nano", top: "none", children: /* @__PURE__ */ c(
|
|
6535
6538
|
Q,
|
|
6536
6539
|
{
|
|
6537
|
-
className: `${
|
|
6540
|
+
className: `${De.class}__icon`,
|
|
6538
6541
|
fill: !0,
|
|
6539
6542
|
image: i.icon,
|
|
6540
6543
|
testId: `ds-icon-${o}`
|
|
@@ -6542,7 +6545,7 @@ const Te = {
|
|
|
6542
6545
|
) }) : /* @__PURE__ */ c(
|
|
6543
6546
|
Q,
|
|
6544
6547
|
{
|
|
6545
|
-
className: `${
|
|
6548
|
+
className: `${De.class}__icon`,
|
|
6546
6549
|
fill: !0,
|
|
6547
6550
|
image: i.icon,
|
|
6548
6551
|
testId: `ds-icon-${o}`
|
|
@@ -6575,7 +6578,7 @@ const Fe = {
|
|
|
6575
6578
|
default: []
|
|
6576
6579
|
}
|
|
6577
6580
|
}
|
|
6578
|
-
},
|
|
6581
|
+
}, wn = ({ item: t, columns: e }) => /* @__PURE__ */ c("tr", { className: `${Fe.class}__row`, children: e.map((s, n) => {
|
|
6579
6582
|
const a = s.align && `${Fe.class}__cell--align-${s.align}`;
|
|
6580
6583
|
return /* @__PURE__ */ c("td", { children: /* @__PURE__ */ c(
|
|
6581
6584
|
"div",
|
|
@@ -6589,8 +6592,8 @@ const Fe = {
|
|
|
6589
6592
|
}
|
|
6590
6593
|
) }, n);
|
|
6591
6594
|
}) });
|
|
6592
|
-
|
|
6593
|
-
const
|
|
6595
|
+
wn.displayName = "DsTableRow";
|
|
6596
|
+
const wa = ({ columns: t, data: e, className: s }) => /* @__PURE__ */ c("div", { className: `${Fe.class}__wrapper`, children: /* @__PURE__ */ I(
|
|
6594
6597
|
"table",
|
|
6595
6598
|
{
|
|
6596
6599
|
className: [`${Fe.class}`, s].filter((n) => n).join(" "),
|
|
@@ -6605,12 +6608,12 @@ const Ca = ({ columns: t, data: e, className: s }) => /* @__PURE__ */ c("div", {
|
|
|
6605
6608
|
children: n.label
|
|
6606
6609
|
}
|
|
6607
6610
|
) }, a)) }) }),
|
|
6608
|
-
/* @__PURE__ */ c("tbody", { className: `${Fe.class}__body`, children: e && e.map((n, a) => /* @__PURE__ */ c(
|
|
6611
|
+
/* @__PURE__ */ c("tbody", { className: `${Fe.class}__body`, children: e && e.map((n, a) => /* @__PURE__ */ c(wn, { columns: t, item: n }, a)) })
|
|
6609
6612
|
]
|
|
6610
6613
|
}
|
|
6611
6614
|
) });
|
|
6612
|
-
|
|
6613
|
-
var
|
|
6615
|
+
wa.displayName = "DsTable";
|
|
6616
|
+
var An = /* @__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))(An || {}), rt = /* @__PURE__ */ ((t) => (t.Segmented = "segmented", t.Navigation = "navigation", t))(rt || {});
|
|
6614
6617
|
const de = {
|
|
6615
6618
|
name: "DsTabs",
|
|
6616
6619
|
class: "ds-tabs",
|
|
@@ -6626,12 +6629,12 @@ const de = {
|
|
|
6626
6629
|
color: {
|
|
6627
6630
|
type: String,
|
|
6628
6631
|
default: "primary",
|
|
6629
|
-
options: Object.values(
|
|
6632
|
+
options: Object.values(An)
|
|
6630
6633
|
},
|
|
6631
6634
|
variant: {
|
|
6632
6635
|
type: String,
|
|
6633
6636
|
default: "segmented",
|
|
6634
|
-
options: Object.values(
|
|
6637
|
+
options: Object.values(rt)
|
|
6635
6638
|
},
|
|
6636
6639
|
className: {
|
|
6637
6640
|
type: String,
|
|
@@ -6643,7 +6646,7 @@ const de = {
|
|
|
6643
6646
|
}
|
|
6644
6647
|
}
|
|
6645
6648
|
}
|
|
6646
|
-
},
|
|
6649
|
+
}, Aa = ({
|
|
6647
6650
|
active: t,
|
|
6648
6651
|
className: e,
|
|
6649
6652
|
color: s,
|
|
@@ -6656,7 +6659,7 @@ const de = {
|
|
|
6656
6659
|
tabDomId: d,
|
|
6657
6660
|
panelDomId: h,
|
|
6658
6661
|
hasPanel: f,
|
|
6659
|
-
tabDataTestId:
|
|
6662
|
+
tabDataTestId: y
|
|
6660
6663
|
}) => {
|
|
6661
6664
|
const b = [
|
|
6662
6665
|
`${de.class}__tab`,
|
|
@@ -6669,13 +6672,13 @@ const de = {
|
|
|
6669
6672
|
}, v = (g) => {
|
|
6670
6673
|
(g.key === "Enter" || g.key === " ") && (g.preventDefault(), E());
|
|
6671
6674
|
};
|
|
6672
|
-
return u ===
|
|
6675
|
+
return u === rt.Navigation ? /* @__PURE__ */ c(
|
|
6673
6676
|
"button",
|
|
6674
6677
|
{
|
|
6675
6678
|
"aria-controls": f ? h : void 0,
|
|
6676
6679
|
"aria-selected": t,
|
|
6677
6680
|
className: b,
|
|
6678
|
-
"data-testid":
|
|
6681
|
+
"data-testid": y ?? `ds-tab-${a}`,
|
|
6679
6682
|
disabled: n,
|
|
6680
6683
|
id: d,
|
|
6681
6684
|
onClick: E,
|
|
@@ -6689,7 +6692,7 @@ const de = {
|
|
|
6689
6692
|
"aria-disabled": n,
|
|
6690
6693
|
"aria-selected": t,
|
|
6691
6694
|
className: b,
|
|
6692
|
-
"data-testid":
|
|
6695
|
+
"data-testid": y ?? `ds-tab-${a}`,
|
|
6693
6696
|
id: r,
|
|
6694
6697
|
onClick: E,
|
|
6695
6698
|
onKeyDown: v,
|
|
@@ -6727,16 +6730,16 @@ const Ba = ({
|
|
|
6727
6730
|
const g = t[d];
|
|
6728
6731
|
(!g || g.hidden) && h(Nt(t, d));
|
|
6729
6732
|
}, [t, d]);
|
|
6730
|
-
const f =
|
|
6731
|
-
() => t.map((g,
|
|
6733
|
+
const f = he(
|
|
6734
|
+
() => t.map((g, w) => ({ tab: g, index: w })).filter(({ tab: g }) => !g.hidden),
|
|
6732
6735
|
[t]
|
|
6733
|
-
),
|
|
6736
|
+
), y = (g) => {
|
|
6734
6737
|
h(g), r == null || r(g);
|
|
6735
6738
|
}, b = [
|
|
6736
6739
|
de.class,
|
|
6737
|
-
a ===
|
|
6740
|
+
a === rt.Navigation && `${de.class}--navigation`,
|
|
6738
6741
|
n
|
|
6739
|
-
].filter(Boolean).join(" "), E = a ===
|
|
6742
|
+
].filter(Boolean).join(" "), E = a === rt.Navigation, v = t[d];
|
|
6740
6743
|
return /* @__PURE__ */ I(
|
|
6741
6744
|
"div",
|
|
6742
6745
|
{
|
|
@@ -6750,18 +6753,18 @@ const Ba = ({
|
|
|
6750
6753
|
{
|
|
6751
6754
|
className: `${de.class}__header`,
|
|
6752
6755
|
role: E ? "tablist" : void 0,
|
|
6753
|
-
children: f.map(({ tab: g, index:
|
|
6754
|
-
const F = `${de.class}-tab-${g.name ??
|
|
6756
|
+
children: f.map(({ tab: g, index: w }) => {
|
|
6757
|
+
const F = `${de.class}-tab-${g.name ?? w}`, x = `${de.class}-panel-${g.name ?? w}`, A = g.content !== void 0;
|
|
6755
6758
|
return /* @__PURE__ */ c(
|
|
6756
|
-
|
|
6759
|
+
Aa,
|
|
6757
6760
|
{
|
|
6758
6761
|
...g,
|
|
6759
|
-
active: d ===
|
|
6762
|
+
active: d === w,
|
|
6760
6763
|
color: e,
|
|
6761
|
-
hasPanel:
|
|
6762
|
-
index:
|
|
6763
|
-
onClick: () =>
|
|
6764
|
-
panelDomId:
|
|
6764
|
+
hasPanel: A,
|
|
6765
|
+
index: w,
|
|
6766
|
+
onClick: () => y(w),
|
|
6767
|
+
panelDomId: A ? x : void 0,
|
|
6765
6768
|
tabDomId: F,
|
|
6766
6769
|
variant: a
|
|
6767
6770
|
},
|
|
@@ -6770,19 +6773,19 @@ const Ba = ({
|
|
|
6770
6773
|
})
|
|
6771
6774
|
}
|
|
6772
6775
|
),
|
|
6773
|
-
E ? f.map(({ tab: g, index:
|
|
6776
|
+
E ? f.map(({ tab: g, index: w }) => {
|
|
6774
6777
|
if (g.content === void 0) return null;
|
|
6775
|
-
const F = `${de.class}-panel-${g.name ??
|
|
6778
|
+
const F = `${de.class}-panel-${g.name ?? w}`, x = `${de.class}-tab-${g.name ?? w}`, A = d === w;
|
|
6776
6779
|
return /* @__PURE__ */ c(
|
|
6777
6780
|
"div",
|
|
6778
6781
|
{
|
|
6779
|
-
"aria-labelledby":
|
|
6782
|
+
"aria-labelledby": x,
|
|
6780
6783
|
className: `${de.class}__panel`,
|
|
6781
|
-
"data-testid": g.panelDataTestId ?? `ds-tabs-panel-${g.name ??
|
|
6782
|
-
hidden: !
|
|
6784
|
+
"data-testid": g.panelDataTestId ?? `ds-tabs-panel-${g.name ?? w}`,
|
|
6785
|
+
hidden: !A,
|
|
6783
6786
|
id: F,
|
|
6784
6787
|
role: "tabpanel",
|
|
6785
|
-
tabIndex:
|
|
6788
|
+
tabIndex: A ? 0 : -1,
|
|
6786
6789
|
children: g.content
|
|
6787
6790
|
},
|
|
6788
6791
|
F
|
|
@@ -6792,15 +6795,15 @@ const Ba = ({
|
|
|
6792
6795
|
}
|
|
6793
6796
|
);
|
|
6794
6797
|
};
|
|
6795
|
-
function
|
|
6798
|
+
function xa({ library: t, children: e, theme: s }) {
|
|
6796
6799
|
return /* @__PURE__ */ c("div", { "data-library": t, "data-theme": s, children: /* @__PURE__ */ c("div", { className: "ds-theme", children: e }) });
|
|
6797
6800
|
}
|
|
6798
|
-
|
|
6801
|
+
xa.propTypes = {
|
|
6799
6802
|
library: l.string,
|
|
6800
6803
|
children: l.node.isRequired,
|
|
6801
6804
|
theme: l.string
|
|
6802
6805
|
};
|
|
6803
|
-
var
|
|
6806
|
+
var xn = /* @__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))(xn || {});
|
|
6804
6807
|
const Ue = {
|
|
6805
6808
|
name: "DsNotificationList",
|
|
6806
6809
|
class: "ds-notification-list",
|
|
@@ -6808,7 +6811,7 @@ const Ue = {
|
|
|
6808
6811
|
position: {
|
|
6809
6812
|
type: String,
|
|
6810
6813
|
default: "top-right",
|
|
6811
|
-
options: Object.values(
|
|
6814
|
+
options: Object.values(xn)
|
|
6812
6815
|
},
|
|
6813
6816
|
fluid: {
|
|
6814
6817
|
type: Boolean,
|
|
@@ -6819,7 +6822,7 @@ const Ue = {
|
|
|
6819
6822
|
default: ""
|
|
6820
6823
|
}
|
|
6821
6824
|
}
|
|
6822
|
-
},
|
|
6825
|
+
}, Cn = ({
|
|
6823
6826
|
className: t = Ue.props.className.default,
|
|
6824
6827
|
position: e = Ue.props.position.default,
|
|
6825
6828
|
fluid: s = Ue.props.fluid.default,
|
|
@@ -6835,7 +6838,7 @@ const Ue = {
|
|
|
6835
6838
|
a && a(o);
|
|
6836
6839
|
};
|
|
6837
6840
|
return /* @__PURE__ */ c("div", { className: r, "data-testid": "ds-notification-list", children: n.map((o) => {
|
|
6838
|
-
const u = o.autoClose ?? !0, d = o.autoCloseTimer ?? 4e3, h = o.dismissible ?? !0, f = o.elevation ?? 2,
|
|
6841
|
+
const u = o.autoClose ?? !0, d = o.autoCloseTimer ?? 4e3, h = o.dismissible ?? !0, f = o.elevation ?? 2, y = o.progressBar ?? !0;
|
|
6839
6842
|
return /* @__PURE__ */ c(
|
|
6840
6843
|
En,
|
|
6841
6844
|
{
|
|
@@ -6846,23 +6849,23 @@ const Ue = {
|
|
|
6846
6849
|
handleClose: () => i(o.id),
|
|
6847
6850
|
id: o.id,
|
|
6848
6851
|
message: o.message,
|
|
6849
|
-
progressBar:
|
|
6852
|
+
progressBar: y,
|
|
6850
6853
|
type: o.type
|
|
6851
6854
|
},
|
|
6852
6855
|
o.id
|
|
6853
6856
|
);
|
|
6854
6857
|
}) });
|
|
6855
6858
|
};
|
|
6856
|
-
|
|
6859
|
+
Cn.propTypes = {
|
|
6857
6860
|
position: l.oneOf(Ue.props.position.options),
|
|
6858
6861
|
fluid: l.bool,
|
|
6859
6862
|
notifications: l.array,
|
|
6860
6863
|
removeNotification: l.func
|
|
6861
6864
|
};
|
|
6862
|
-
|
|
6865
|
+
Cn.displayName = "DsNotificationList";
|
|
6863
6866
|
const Qe = {
|
|
6864
6867
|
class: "ds-split-layout"
|
|
6865
|
-
},
|
|
6868
|
+
}, Ca = ({
|
|
6866
6869
|
leftContent: t,
|
|
6867
6870
|
rightContent: e,
|
|
6868
6871
|
leftBackgroundColor: s,
|
|
@@ -6875,42 +6878,42 @@ const Qe = {
|
|
|
6875
6878
|
/* @__PURE__ */ c("div", { className: h, children: e })
|
|
6876
6879
|
] });
|
|
6877
6880
|
};
|
|
6878
|
-
|
|
6879
|
-
const
|
|
6881
|
+
Ca.displayName = "DsSplitLayout";
|
|
6882
|
+
const ct = {
|
|
6880
6883
|
name: "TwoColumns",
|
|
6881
6884
|
class: "ds-two-columns",
|
|
6882
6885
|
props: {}
|
|
6883
|
-
},
|
|
6886
|
+
}, Dn = ({
|
|
6884
6887
|
header: t,
|
|
6885
6888
|
main: e,
|
|
6886
6889
|
sidebar: s,
|
|
6887
6890
|
breadcrumb: n
|
|
6888
|
-
}) => /* @__PURE__ */ I(
|
|
6891
|
+
}) => /* @__PURE__ */ I(zt, { children: [
|
|
6889
6892
|
/* @__PURE__ */ I("div", { className: "ds-grid", children: [
|
|
6890
6893
|
/* @__PURE__ */ c("div", { className: "ds-grid__row", children: /* @__PURE__ */ c("div", { className: "ds-grid__col ds-grid__col-12", children: n }) }),
|
|
6891
|
-
/* @__PURE__ */ I("div", { className: `${
|
|
6894
|
+
/* @__PURE__ */ I("div", { className: `${ct.class}__content ds-grid__row`, children: [
|
|
6892
6895
|
/* @__PURE__ */ I("div", { className: "ds-grid__col ds-grid__col--lg-8 ds-grid__col--sm-12 ds-grid__col-12", children: [
|
|
6893
|
-
/* @__PURE__ */ c("div", { className: `${
|
|
6894
|
-
/* @__PURE__ */ c("div", { className: `${
|
|
6896
|
+
/* @__PURE__ */ c("div", { className: `${ct.class}__header`, children: t }),
|
|
6897
|
+
/* @__PURE__ */ c("div", { className: `${ct.class}__main`, children: e })
|
|
6895
6898
|
] }),
|
|
6896
6899
|
/* @__PURE__ */ c(
|
|
6897
6900
|
"div",
|
|
6898
6901
|
{
|
|
6899
|
-
className: `${
|
|
6902
|
+
className: `${ct.class}__sidebar ds-grid__col ds-grid__col--lg-4 ds-grid__col--sm-12 ds-grid__col-12`,
|
|
6900
6903
|
children: s
|
|
6901
6904
|
}
|
|
6902
6905
|
)
|
|
6903
6906
|
] })
|
|
6904
6907
|
] }),
|
|
6905
|
-
/* @__PURE__ */ c(
|
|
6908
|
+
/* @__PURE__ */ c(Ae, { vertical: "sm" })
|
|
6906
6909
|
] });
|
|
6907
|
-
|
|
6910
|
+
Dn.propTypes = {
|
|
6908
6911
|
breadcrumb: l.node,
|
|
6909
6912
|
header: l.node,
|
|
6910
6913
|
main: l.node,
|
|
6911
6914
|
sidebar: l.node
|
|
6912
6915
|
};
|
|
6913
|
-
|
|
6916
|
+
Dn.displayName = "DsTwoColumns";
|
|
6914
6917
|
export {
|
|
6915
6918
|
cs as ButtonColor,
|
|
6916
6919
|
Wn as ButtonElevation,
|
|
@@ -6923,45 +6926,45 @@ export {
|
|
|
6923
6926
|
ft as ChipIconPosition,
|
|
6924
6927
|
Es as ChipVariant,
|
|
6925
6928
|
fn as DsAccordion,
|
|
6926
|
-
|
|
6929
|
+
Ht as DsAccordionItem,
|
|
6927
6930
|
va as DsActiveTags,
|
|
6928
6931
|
ht as DsButton,
|
|
6929
|
-
|
|
6930
|
-
|
|
6931
|
-
|
|
6932
|
+
ys as DsCaption,
|
|
6933
|
+
_s as DsCard,
|
|
6934
|
+
ya as DsCarousel,
|
|
6932
6935
|
ks as DsCheckbox,
|
|
6933
6936
|
Fa as DsChip,
|
|
6934
|
-
|
|
6937
|
+
zt as DsContainer,
|
|
6935
6938
|
ka as DsEditableSelect,
|
|
6936
6939
|
ae as DsFlexElement,
|
|
6937
6940
|
je as DsFlexLayout,
|
|
6938
6941
|
ma as DsGridElement,
|
|
6939
6942
|
hn as DsGridLayout,
|
|
6940
|
-
|
|
6941
|
-
|
|
6943
|
+
xs as DsHR,
|
|
6944
|
+
Pt as DsHeading,
|
|
6942
6945
|
Q as DsIcon,
|
|
6943
6946
|
Ra as DsIndicator,
|
|
6944
6947
|
mn as DsInlineEditable,
|
|
6945
|
-
|
|
6946
|
-
|
|
6947
|
-
|
|
6948
|
+
at as DsInput,
|
|
6949
|
+
Ut as DsLoading,
|
|
6950
|
+
yn as DsModal,
|
|
6948
6951
|
En as DsNotification,
|
|
6949
|
-
|
|
6952
|
+
Cn as DsNotificationList,
|
|
6950
6953
|
zs as DsOption,
|
|
6951
6954
|
Me as DsParagraph,
|
|
6952
6955
|
Sn as DsPasswordConfirmation,
|
|
6953
6956
|
Qs as DsProgress,
|
|
6954
6957
|
ha as DsRadio,
|
|
6955
6958
|
an as DsSelect,
|
|
6956
|
-
|
|
6957
|
-
|
|
6959
|
+
Ae as DsSpacer,
|
|
6960
|
+
Ca as DsSplitLayout,
|
|
6958
6961
|
Sa as DsStepper,
|
|
6959
6962
|
fa as DsSubtitle,
|
|
6960
|
-
|
|
6963
|
+
wa as DsTable,
|
|
6961
6964
|
Ba as DsTabs,
|
|
6962
6965
|
dn as DsTextArea,
|
|
6963
6966
|
Xe as DsTooltip,
|
|
6964
|
-
|
|
6967
|
+
Dn as DsTwoColumns,
|
|
6965
6968
|
tt as DsWrapper,
|
|
6966
6969
|
gn as EditableSelectSize,
|
|
6967
6970
|
Ks as FlexLayoutAlignItems,
|
|
@@ -6969,10 +6972,10 @@ export {
|
|
|
6969
6972
|
Zs as FlexLayoutGap,
|
|
6970
6973
|
Ys as FlexLayoutJustifyContent,
|
|
6971
6974
|
Gs as FlexLayoutWrap,
|
|
6972
|
-
|
|
6975
|
+
Lt as GridLayoutAlign,
|
|
6973
6976
|
pn as GridLayoutGap,
|
|
6974
|
-
|
|
6975
|
-
|
|
6977
|
+
ws as HRBorderStyle,
|
|
6978
|
+
As as HRSize,
|
|
6976
6979
|
Ss as HeadingType,
|
|
6977
6980
|
fs as IconColor,
|
|
6978
6981
|
ms as IconSize,
|
|
@@ -6987,8 +6990,8 @@ export {
|
|
|
6987
6990
|
qs as LoadingSize,
|
|
6988
6991
|
Ea as ModalElevation,
|
|
6989
6992
|
vn as ModalVariant,
|
|
6990
|
-
|
|
6991
|
-
|
|
6993
|
+
xn as NotificationListPosition,
|
|
6994
|
+
_n as NotificationType,
|
|
6992
6995
|
kn as NotificationVariant,
|
|
6993
6996
|
Hs as ParagraphType,
|
|
6994
6997
|
Ws as ProgressColor,
|
|
@@ -6997,15 +7000,15 @@ export {
|
|
|
6997
7000
|
tn as SelectStatus,
|
|
6998
7001
|
sn as SelectTooltipPlacement,
|
|
6999
7002
|
nn as SelectTooltipPosition,
|
|
7000
|
-
|
|
7003
|
+
Vt as SpacerSize,
|
|
7001
7004
|
rn as SubtitleType,
|
|
7002
|
-
|
|
7003
|
-
|
|
7005
|
+
An as TabsColor,
|
|
7006
|
+
rt as TabsVariant,
|
|
7004
7007
|
cn as TextAreaResize,
|
|
7005
7008
|
ln as TextAreaSize,
|
|
7006
7009
|
un as TextAreaStatus,
|
|
7007
7010
|
on as TextAreaType,
|
|
7008
|
-
|
|
7011
|
+
xa as ThemeProvider,
|
|
7009
7012
|
Ps as TooltipPlacement,
|
|
7010
7013
|
js as TooltipPosition,
|
|
7011
7014
|
Ye as WrapperSpace,
|
|
@@ -7018,9 +7021,9 @@ export {
|
|
|
7018
7021
|
Ge as carouselConfig,
|
|
7019
7022
|
ce as checkboxConfig,
|
|
7020
7023
|
Ne as chipConfig,
|
|
7021
|
-
|
|
7024
|
+
ot as containerConfig,
|
|
7022
7025
|
Y as editableSelectConfig,
|
|
7023
|
-
|
|
7026
|
+
Tt as flexElementConfig,
|
|
7024
7027
|
qe as flexLayoutConfig,
|
|
7025
7028
|
Ia as gridElementConfig,
|
|
7026
7029
|
ee as gridLayoutConfig,
|
|
@@ -7030,23 +7033,23 @@ export {
|
|
|
7030
7033
|
Ze as indicatorConfig,
|
|
7031
7034
|
ba as inlineEditableConfig,
|
|
7032
7035
|
Z as inputConfig,
|
|
7033
|
-
|
|
7036
|
+
ye as loadingConfig,
|
|
7034
7037
|
Se as modalConfig,
|
|
7035
7038
|
pe as notificationConfig,
|
|
7036
7039
|
Ue as notificationListConfig,
|
|
7037
7040
|
Re as optionConfig,
|
|
7038
|
-
|
|
7041
|
+
pt as paragraphConfig,
|
|
7039
7042
|
It as passwordConfirmationConfig,
|
|
7040
|
-
|
|
7043
|
+
Mt as progressConfig,
|
|
7041
7044
|
Ee as radioConfig,
|
|
7042
7045
|
J as selectConfig,
|
|
7043
7046
|
et as spacerConfig,
|
|
7044
|
-
|
|
7047
|
+
De as stepperConfig,
|
|
7045
7048
|
Ft as subtitleConfig,
|
|
7046
7049
|
Fe as tableConfig,
|
|
7047
7050
|
de as tabsConfig,
|
|
7048
7051
|
se as textAreaConfig,
|
|
7049
|
-
|
|
7050
|
-
|
|
7051
|
-
|
|
7052
|
+
Te as tooltipConfig,
|
|
7053
|
+
ct as twoColumnsConfig,
|
|
7054
|
+
Ce as wrapperConfig
|
|
7052
7055
|
};
|