@akad/design-system 1.0.0-alpha.6 → 1.0.0-alpha.8
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 +1077 -1031
- package/react/react-lib.umd.cjs +5 -5
- package/react/src/components/molecules/EditableSelect/EditableSelect.d.ts +47 -1
- package/react/src/components/molecules/EditableSelect/EditableSelect.utils.d.ts +15 -0
- package/react/src/components/molecules/EditableSelect/EditableSelect.utils.test.d.ts +1 -0
- package/scss/core/components/atoms/button.scss +81 -40
- package/scss/core/components/atoms/checkbox.scss +7 -1
- package/scss/core/components/atoms/select.scss +2 -1
- package/scss/core/components/molecules/editable-select.scss +1 -1
package/react/react-lib.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as c, jsxs as
|
|
2
|
-
import
|
|
1
|
+
import { jsx as c, jsxs as R, Fragment as pt } from "react/jsx-runtime";
|
|
2
|
+
import Se, { useMemo as ve, useState as j, useEffect as G, useRef as He, useCallback as Te, useLayoutEffect as kn, createElement as bn } from "react";
|
|
3
3
|
const En = "pushClickEvent: missing required field(s). Required: eventLabel";
|
|
4
4
|
function Sn(t) {
|
|
5
5
|
return !!(t.eventLabel && typeof t.eventLabel == "string" && t.eventLabel.trim());
|
|
@@ -20,7 +20,7 @@ function Cn(t) {
|
|
|
20
20
|
};
|
|
21
21
|
globalThis.window.dataLayer.push(s);
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function xn(t) {
|
|
24
24
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
25
25
|
}
|
|
26
26
|
var Tt = { exports: {} }, st = { exports: {} }, H = {};
|
|
@@ -33,14 +33,14 @@ var Tt = { exports: {} }, st = { exports: {} }, H = {};
|
|
|
33
33
|
* LICENSE file in the root directory of this source tree.
|
|
34
34
|
*/
|
|
35
35
|
var jt;
|
|
36
|
-
function
|
|
36
|
+
function wn() {
|
|
37
37
|
if (jt) return H;
|
|
38
38
|
jt = 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, r = t ? Symbol.for("react.strict_mode") : 60108, a = t ? Symbol.for("react.profiler") : 60114, i = t ? Symbol.for("react.provider") : 60109, l = t ? Symbol.for("react.context") : 60110, u = t ? Symbol.for("react.async_mode") : 60111, d = t ? Symbol.for("react.concurrent_mode") : 60111, h = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, _ = t ? Symbol.for("react.suspense_list") : 60120, y = t ? Symbol.for("react.memo") : 60115,
|
|
40
|
-
function
|
|
39
|
+
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, s = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, r = t ? Symbol.for("react.strict_mode") : 60108, a = t ? Symbol.for("react.profiler") : 60114, i = t ? Symbol.for("react.provider") : 60109, l = t ? Symbol.for("react.context") : 60110, u = t ? Symbol.for("react.async_mode") : 60111, d = t ? Symbol.for("react.concurrent_mode") : 60111, h = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, _ = t ? Symbol.for("react.suspense_list") : 60120, y = t ? Symbol.for("react.memo") : 60115, S = t ? Symbol.for("react.lazy") : 60116, v = t ? Symbol.for("react.block") : 60121, m = t ? Symbol.for("react.fundamental") : 60117, C = t ? Symbol.for("react.responder") : 60118, U = t ? Symbol.for("react.scope") : 60119;
|
|
40
|
+
function T(p) {
|
|
41
41
|
if (typeof p == "object" && p !== null) {
|
|
42
|
-
var
|
|
43
|
-
switch (
|
|
42
|
+
var A = p.$$typeof;
|
|
43
|
+
switch (A) {
|
|
44
44
|
case e:
|
|
45
45
|
switch (p = p.type, p) {
|
|
46
46
|
case u:
|
|
@@ -54,49 +54,49 @@ function xn() {
|
|
|
54
54
|
switch (p = p && p.$$typeof, p) {
|
|
55
55
|
case l:
|
|
56
56
|
case h:
|
|
57
|
-
case
|
|
57
|
+
case S:
|
|
58
58
|
case y:
|
|
59
59
|
case i:
|
|
60
60
|
return p;
|
|
61
61
|
default:
|
|
62
|
-
return
|
|
62
|
+
return A;
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
case s:
|
|
66
|
-
return
|
|
66
|
+
return A;
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
function
|
|
71
|
-
return
|
|
70
|
+
function w(p) {
|
|
71
|
+
return T(p) === d;
|
|
72
72
|
}
|
|
73
|
-
return H.AsyncMode = u, H.ConcurrentMode = d, H.ContextConsumer = l, H.ContextProvider = i, H.Element = e, H.ForwardRef = h, H.Fragment = n, H.Lazy =
|
|
74
|
-
return
|
|
75
|
-
}, H.isConcurrentMode =
|
|
76
|
-
return
|
|
73
|
+
return H.AsyncMode = u, H.ConcurrentMode = d, H.ContextConsumer = l, H.ContextProvider = i, H.Element = e, H.ForwardRef = h, H.Fragment = n, H.Lazy = S, H.Memo = y, H.Portal = s, H.Profiler = a, H.StrictMode = r, H.Suspense = f, H.isAsyncMode = function(p) {
|
|
74
|
+
return w(p) || T(p) === u;
|
|
75
|
+
}, H.isConcurrentMode = w, H.isContextConsumer = function(p) {
|
|
76
|
+
return T(p) === l;
|
|
77
77
|
}, H.isContextProvider = function(p) {
|
|
78
|
-
return
|
|
78
|
+
return T(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 T(p) === h;
|
|
83
83
|
}, H.isFragment = function(p) {
|
|
84
|
-
return
|
|
84
|
+
return T(p) === n;
|
|
85
85
|
}, H.isLazy = function(p) {
|
|
86
|
-
return
|
|
86
|
+
return T(p) === S;
|
|
87
87
|
}, H.isMemo = function(p) {
|
|
88
|
-
return
|
|
88
|
+
return T(p) === y;
|
|
89
89
|
}, H.isPortal = function(p) {
|
|
90
|
-
return
|
|
90
|
+
return T(p) === s;
|
|
91
91
|
}, H.isProfiler = function(p) {
|
|
92
|
-
return
|
|
92
|
+
return T(p) === a;
|
|
93
93
|
}, H.isStrictMode = function(p) {
|
|
94
|
-
return
|
|
94
|
+
return T(p) === r;
|
|
95
95
|
}, H.isSuspense = function(p) {
|
|
96
|
-
return
|
|
96
|
+
return T(p) === f;
|
|
97
97
|
}, H.isValidElementType = function(p) {
|
|
98
|
-
return typeof p == "string" || typeof p == "function" || p === n || p === d || p === a || p === r || p === f || p === _ || typeof p == "object" && p !== null && (p.$$typeof ===
|
|
99
|
-
}, H.typeOf =
|
|
98
|
+
return typeof p == "string" || typeof p == "function" || p === n || p === d || p === a || p === r || p === f || p === _ || typeof p == "object" && p !== null && (p.$$typeof === S || p.$$typeof === y || p.$$typeof === i || p.$$typeof === l || p.$$typeof === h || p.$$typeof === m || p.$$typeof === C || p.$$typeof === U || p.$$typeof === v);
|
|
99
|
+
}, H.typeOf = T, H;
|
|
100
100
|
}
|
|
101
101
|
var W = {};
|
|
102
102
|
/** @license React v16.13.1
|
|
@@ -110,15 +110,15 @@ var W = {};
|
|
|
110
110
|
var Pt;
|
|
111
111
|
function An() {
|
|
112
112
|
return Pt || (Pt = 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, r = t ? Symbol.for("react.strict_mode") : 60108, a = t ? Symbol.for("react.profiler") : 60114, i = t ? Symbol.for("react.provider") : 60109, l = t ? Symbol.for("react.context") : 60110, u = t ? Symbol.for("react.async_mode") : 60111, d = t ? Symbol.for("react.concurrent_mode") : 60111, h = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, _ = t ? Symbol.for("react.suspense_list") : 60120, y = t ? Symbol.for("react.memo") : 60115,
|
|
114
|
-
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, r = t ? Symbol.for("react.strict_mode") : 60108, a = t ? Symbol.for("react.profiler") : 60114, i = t ? Symbol.for("react.provider") : 60109, l = t ? Symbol.for("react.context") : 60110, u = t ? Symbol.for("react.async_mode") : 60111, d = t ? Symbol.for("react.concurrent_mode") : 60111, h = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, _ = t ? Symbol.for("react.suspense_list") : 60120, y = t ? Symbol.for("react.memo") : 60115, S = t ? Symbol.for("react.lazy") : 60116, v = t ? Symbol.for("react.block") : 60121, m = t ? Symbol.for("react.fundamental") : 60117, C = t ? Symbol.for("react.responder") : 60118, U = t ? Symbol.for("react.scope") : 60119;
|
|
114
|
+
function T(k) {
|
|
115
115
|
return typeof k == "string" || typeof k == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
116
|
-
k === n || k === d || k === a || k === r || k === f || k === _ || typeof k == "object" && k !== null && (k.$$typeof ===
|
|
116
|
+
k === n || k === d || k === a || k === r || k === f || k === _ || typeof k == "object" && k !== null && (k.$$typeof === S || k.$$typeof === y || k.$$typeof === i || k.$$typeof === l || k.$$typeof === h || k.$$typeof === m || k.$$typeof === C || k.$$typeof === U || k.$$typeof === v);
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function w(k) {
|
|
119
119
|
if (typeof k == "object" && k !== null) {
|
|
120
|
-
var
|
|
121
|
-
switch (
|
|
120
|
+
var xe = k.$$typeof;
|
|
121
|
+
switch (xe) {
|
|
122
122
|
case e:
|
|
123
123
|
var tt = k.type;
|
|
124
124
|
switch (tt) {
|
|
@@ -134,65 +134,65 @@ function An() {
|
|
|
134
134
|
switch (Lt) {
|
|
135
135
|
case l:
|
|
136
136
|
case h:
|
|
137
|
-
case
|
|
137
|
+
case S:
|
|
138
138
|
case y:
|
|
139
139
|
case i:
|
|
140
140
|
return Lt;
|
|
141
141
|
default:
|
|
142
|
-
return
|
|
142
|
+
return xe;
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
145
|
case s:
|
|
146
|
-
return
|
|
146
|
+
return xe;
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
|
-
var p = u,
|
|
151
|
-
function
|
|
152
|
-
return
|
|
150
|
+
var p = u, A = d, B = l, z = i, L = e, te = h, le = n, ue = S, ye = y, se = s, De = a, re = r, ce = f, ke = !1;
|
|
151
|
+
function Ce(k) {
|
|
152
|
+
return ke || (ke = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), g(k) || w(k) === u;
|
|
153
153
|
}
|
|
154
154
|
function g(k) {
|
|
155
|
-
return
|
|
155
|
+
return w(k) === d;
|
|
156
156
|
}
|
|
157
157
|
function E(k) {
|
|
158
|
-
return
|
|
158
|
+
return w(k) === l;
|
|
159
159
|
}
|
|
160
|
-
function
|
|
161
|
-
return
|
|
160
|
+
function $(k) {
|
|
161
|
+
return w(k) === i;
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function N(k) {
|
|
164
164
|
return typeof k == "object" && k !== null && k.$$typeof === e;
|
|
165
165
|
}
|
|
166
|
-
function
|
|
167
|
-
return
|
|
166
|
+
function I(k) {
|
|
167
|
+
return w(k) === h;
|
|
168
168
|
}
|
|
169
|
-
function
|
|
170
|
-
return
|
|
169
|
+
function b(k) {
|
|
170
|
+
return w(k) === n;
|
|
171
171
|
}
|
|
172
|
-
function
|
|
173
|
-
return
|
|
172
|
+
function D(k) {
|
|
173
|
+
return w(k) === S;
|
|
174
174
|
}
|
|
175
|
-
function
|
|
176
|
-
return
|
|
175
|
+
function V(k) {
|
|
176
|
+
return w(k) === y;
|
|
177
177
|
}
|
|
178
|
-
function
|
|
179
|
-
return
|
|
178
|
+
function q(k) {
|
|
179
|
+
return w(k) === s;
|
|
180
180
|
}
|
|
181
|
-
function
|
|
182
|
-
return
|
|
181
|
+
function F(k) {
|
|
182
|
+
return w(k) === a;
|
|
183
183
|
}
|
|
184
|
-
function
|
|
185
|
-
return
|
|
184
|
+
function P(k) {
|
|
185
|
+
return w(k) === r;
|
|
186
186
|
}
|
|
187
187
|
function J(k) {
|
|
188
|
-
return
|
|
188
|
+
return w(k) === f;
|
|
189
189
|
}
|
|
190
|
-
W.AsyncMode = p, W.ConcurrentMode =
|
|
190
|
+
W.AsyncMode = p, W.ConcurrentMode = A, W.ContextConsumer = B, W.ContextProvider = z, W.Element = L, W.ForwardRef = te, W.Fragment = le, W.Lazy = ue, W.Memo = ye, W.Portal = se, W.Profiler = De, W.StrictMode = re, W.Suspense = ce, W.isAsyncMode = Ce, W.isConcurrentMode = g, W.isContextConsumer = E, W.isContextProvider = $, W.isElement = N, W.isForwardRef = I, W.isFragment = b, W.isLazy = D, W.isMemo = V, W.isPortal = q, W.isProfiler = F, W.isStrictMode = P, W.isSuspense = J, W.isValidElementType = T, W.typeOf = w;
|
|
191
191
|
}()), W;
|
|
192
192
|
}
|
|
193
193
|
var qt;
|
|
194
194
|
function ss() {
|
|
195
|
-
return qt || (qt = 1, process.env.NODE_ENV === "production" ? st.exports =
|
|
195
|
+
return qt || (qt = 1, process.env.NODE_ENV === "production" ? st.exports = wn() : st.exports = An()), st.exports;
|
|
196
196
|
}
|
|
197
197
|
/*
|
|
198
198
|
object-assign
|
|
@@ -286,8 +286,8 @@ function Fn() {
|
|
|
286
286
|
throw _.name = "Invariant Violation", _;
|
|
287
287
|
}
|
|
288
288
|
f = a[h](i, h, u, l, null, e);
|
|
289
|
-
} catch (
|
|
290
|
-
f =
|
|
289
|
+
} catch (S) {
|
|
290
|
+
f = S;
|
|
291
291
|
}
|
|
292
292
|
if (f && !(f instanceof Error) && t(
|
|
293
293
|
(u || "React class") + ": type specification of " + l + " `" + h + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof f + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
@@ -306,7 +306,7 @@ function Fn() {
|
|
|
306
306
|
}, kt = r, kt;
|
|
307
307
|
}
|
|
308
308
|
var bt, Yt;
|
|
309
|
-
function
|
|
309
|
+
function Dn() {
|
|
310
310
|
if (Yt) return bt;
|
|
311
311
|
Yt = 1;
|
|
312
312
|
var t = ss(), e = Tn(), s = Rt(), n = ns(), r = Fn(), a = function() {
|
|
@@ -330,27 +330,27 @@ function On() {
|
|
|
330
330
|
return E;
|
|
331
331
|
}
|
|
332
332
|
var _ = "<<anonymous>>", y = {
|
|
333
|
-
array:
|
|
334
|
-
bigint:
|
|
335
|
-
bool:
|
|
336
|
-
func:
|
|
337
|
-
number:
|
|
338
|
-
object:
|
|
339
|
-
string:
|
|
340
|
-
symbol:
|
|
341
|
-
any:
|
|
342
|
-
arrayOf:
|
|
343
|
-
element:
|
|
333
|
+
array: C("array"),
|
|
334
|
+
bigint: C("bigint"),
|
|
335
|
+
bool: C("boolean"),
|
|
336
|
+
func: C("function"),
|
|
337
|
+
number: C("number"),
|
|
338
|
+
object: C("object"),
|
|
339
|
+
string: C("string"),
|
|
340
|
+
symbol: C("symbol"),
|
|
341
|
+
any: U(),
|
|
342
|
+
arrayOf: T,
|
|
343
|
+
element: w(),
|
|
344
344
|
elementType: p(),
|
|
345
|
-
instanceOf:
|
|
345
|
+
instanceOf: A,
|
|
346
346
|
node: te(),
|
|
347
347
|
objectOf: z,
|
|
348
|
-
oneOf:
|
|
349
|
-
oneOfType:
|
|
350
|
-
shape:
|
|
351
|
-
exact:
|
|
348
|
+
oneOf: B,
|
|
349
|
+
oneOfType: L,
|
|
350
|
+
shape: ue,
|
|
351
|
+
exact: ye
|
|
352
352
|
};
|
|
353
|
-
function
|
|
353
|
+
function S(g, E) {
|
|
354
354
|
return g === E ? g !== 0 || 1 / g === 1 / E : g !== g && E !== E;
|
|
355
355
|
}
|
|
356
356
|
function v(g, E) {
|
|
@@ -359,34 +359,34 @@ function On() {
|
|
|
359
359
|
v.prototype = Error.prototype;
|
|
360
360
|
function m(g) {
|
|
361
361
|
if (process.env.NODE_ENV !== "production")
|
|
362
|
-
var E = {},
|
|
363
|
-
function
|
|
364
|
-
if (
|
|
362
|
+
var E = {}, $ = 0;
|
|
363
|
+
function N(b, D, V, q, F, P, J) {
|
|
364
|
+
if (q = q || _, P = P || V, J !== s) {
|
|
365
365
|
if (u) {
|
|
366
366
|
var k = 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
369
|
throw k.name = "Invariant Violation", k;
|
|
370
370
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
371
|
-
var
|
|
372
|
-
!E[
|
|
373
|
-
|
|
374
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
375
|
-
), E[
|
|
371
|
+
var xe = q + ":" + V;
|
|
372
|
+
!E[xe] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
373
|
+
$ < 3 && (a(
|
|
374
|
+
"You are manually calling a React.PropTypes validation function for the `" + P + "` prop on `" + q + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
375
|
+
), E[xe] = !0, $++);
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
|
-
return
|
|
378
|
+
return D[V] == null ? b ? D[V] === null ? new v("The " + F + " `" + P + "` is marked as required " + ("in `" + q + "`, but its value is `null`.")) : new v("The " + F + " `" + P + "` is marked as required in " + ("`" + q + "`, but its value is `undefined`.")) : null : g(D, V, q, F, P);
|
|
379
379
|
}
|
|
380
|
-
var
|
|
381
|
-
return
|
|
382
|
-
}
|
|
383
|
-
function
|
|
384
|
-
function E(
|
|
385
|
-
var
|
|
386
|
-
if (
|
|
387
|
-
var
|
|
380
|
+
var I = N.bind(null, !1);
|
|
381
|
+
return I.isRequired = N.bind(null, !0), I;
|
|
382
|
+
}
|
|
383
|
+
function C(g) {
|
|
384
|
+
function E($, N, I, b, D, V) {
|
|
385
|
+
var q = $[N], F = re(q);
|
|
386
|
+
if (F !== g) {
|
|
387
|
+
var P = ce(q);
|
|
388
388
|
return new v(
|
|
389
|
-
"Invalid " +
|
|
389
|
+
"Invalid " + b + " `" + D + "` of type " + ("`" + P + "` supplied to `" + I + "`, expected ") + ("`" + g + "`."),
|
|
390
390
|
{ expectedType: g }
|
|
391
391
|
);
|
|
392
392
|
}
|
|
@@ -394,136 +394,136 @@ function On() {
|
|
|
394
394
|
}
|
|
395
395
|
return m(E);
|
|
396
396
|
}
|
|
397
|
-
function
|
|
397
|
+
function U() {
|
|
398
398
|
return m(i);
|
|
399
399
|
}
|
|
400
|
-
function
|
|
401
|
-
function E(
|
|
400
|
+
function T(g) {
|
|
401
|
+
function E($, N, I, b, D) {
|
|
402
402
|
if (typeof g != "function")
|
|
403
|
-
return new v("Property `" +
|
|
404
|
-
var
|
|
405
|
-
if (!Array.isArray(
|
|
406
|
-
var
|
|
407
|
-
return new v("Invalid " +
|
|
403
|
+
return new v("Property `" + D + "` of component `" + I + "` has invalid PropType notation inside arrayOf.");
|
|
404
|
+
var V = $[N];
|
|
405
|
+
if (!Array.isArray(V)) {
|
|
406
|
+
var q = re(V);
|
|
407
|
+
return new v("Invalid " + b + " `" + D + "` of type " + ("`" + q + "` supplied to `" + I + "`, expected an array."));
|
|
408
408
|
}
|
|
409
|
-
for (var
|
|
410
|
-
var
|
|
411
|
-
if (
|
|
412
|
-
return
|
|
409
|
+
for (var F = 0; F < V.length; F++) {
|
|
410
|
+
var P = g(V, F, I, b, D + "[" + F + "]", s);
|
|
411
|
+
if (P instanceof Error)
|
|
412
|
+
return P;
|
|
413
413
|
}
|
|
414
414
|
return null;
|
|
415
415
|
}
|
|
416
416
|
return m(E);
|
|
417
417
|
}
|
|
418
|
-
function
|
|
419
|
-
function g(E,
|
|
420
|
-
var
|
|
421
|
-
if (!l(
|
|
422
|
-
var
|
|
423
|
-
return new v("Invalid " +
|
|
418
|
+
function w() {
|
|
419
|
+
function g(E, $, N, I, b) {
|
|
420
|
+
var D = E[$];
|
|
421
|
+
if (!l(D)) {
|
|
422
|
+
var V = re(D);
|
|
423
|
+
return new v("Invalid " + I + " `" + b + "` of type " + ("`" + V + "` supplied to `" + N + "`, expected a single ReactElement."));
|
|
424
424
|
}
|
|
425
425
|
return null;
|
|
426
426
|
}
|
|
427
427
|
return m(g);
|
|
428
428
|
}
|
|
429
429
|
function p() {
|
|
430
|
-
function g(E,
|
|
431
|
-
var
|
|
432
|
-
if (!t.isValidElementType(
|
|
433
|
-
var
|
|
434
|
-
return new v("Invalid " +
|
|
430
|
+
function g(E, $, N, I, b) {
|
|
431
|
+
var D = E[$];
|
|
432
|
+
if (!t.isValidElementType(D)) {
|
|
433
|
+
var V = re(D);
|
|
434
|
+
return new v("Invalid " + I + " `" + b + "` of type " + ("`" + V + "` supplied to `" + N + "`, expected a single ReactElement type."));
|
|
435
435
|
}
|
|
436
436
|
return null;
|
|
437
437
|
}
|
|
438
438
|
return m(g);
|
|
439
439
|
}
|
|
440
|
-
function
|
|
441
|
-
function E(
|
|
442
|
-
if (!(
|
|
443
|
-
var
|
|
444
|
-
return new v("Invalid " +
|
|
440
|
+
function A(g) {
|
|
441
|
+
function E($, N, I, b, D) {
|
|
442
|
+
if (!($[N] instanceof g)) {
|
|
443
|
+
var V = g.name || _, q = Ce($[N]);
|
|
444
|
+
return new v("Invalid " + b + " `" + D + "` of type " + ("`" + q + "` supplied to `" + I + "`, expected ") + ("instance of `" + V + "`."));
|
|
445
445
|
}
|
|
446
446
|
return null;
|
|
447
447
|
}
|
|
448
448
|
return m(E);
|
|
449
449
|
}
|
|
450
|
-
function
|
|
450
|
+
function B(g) {
|
|
451
451
|
if (!Array.isArray(g))
|
|
452
452
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
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
|
) : a("Invalid argument supplied to oneOf, expected an array.")), i;
|
|
455
|
-
function E(
|
|
456
|
-
for (var
|
|
457
|
-
if (
|
|
455
|
+
function E($, N, I, b, D) {
|
|
456
|
+
for (var V = $[N], q = 0; q < g.length; q++)
|
|
457
|
+
if (S(V, g[q]))
|
|
458
458
|
return null;
|
|
459
|
-
var
|
|
460
|
-
var
|
|
461
|
-
return
|
|
459
|
+
var F = JSON.stringify(g, function(J, k) {
|
|
460
|
+
var xe = ce(k);
|
|
461
|
+
return xe === "symbol" ? String(k) : k;
|
|
462
462
|
});
|
|
463
|
-
return new v("Invalid " +
|
|
463
|
+
return new v("Invalid " + b + " `" + D + "` of value `" + String(V) + "` " + ("supplied to `" + I + "`, expected one of " + F + "."));
|
|
464
464
|
}
|
|
465
465
|
return m(E);
|
|
466
466
|
}
|
|
467
467
|
function z(g) {
|
|
468
|
-
function E(
|
|
468
|
+
function E($, N, I, b, D) {
|
|
469
469
|
if (typeof g != "function")
|
|
470
|
-
return new v("Property `" +
|
|
471
|
-
var
|
|
472
|
-
if (
|
|
473
|
-
return new v("Invalid " +
|
|
474
|
-
for (var
|
|
475
|
-
if (n(
|
|
476
|
-
var
|
|
477
|
-
if (
|
|
478
|
-
return
|
|
470
|
+
return new v("Property `" + D + "` of component `" + I + "` has invalid PropType notation inside objectOf.");
|
|
471
|
+
var V = $[N], q = re(V);
|
|
472
|
+
if (q !== "object")
|
|
473
|
+
return new v("Invalid " + b + " `" + D + "` of type " + ("`" + q + "` supplied to `" + I + "`, expected an object."));
|
|
474
|
+
for (var F in V)
|
|
475
|
+
if (n(V, F)) {
|
|
476
|
+
var P = g(V, F, I, b, D + "." + F, s);
|
|
477
|
+
if (P instanceof Error)
|
|
478
|
+
return P;
|
|
479
479
|
}
|
|
480
480
|
return null;
|
|
481
481
|
}
|
|
482
482
|
return m(E);
|
|
483
483
|
}
|
|
484
|
-
function
|
|
484
|
+
function L(g) {
|
|
485
485
|
if (!Array.isArray(g))
|
|
486
486
|
return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), i;
|
|
487
487
|
for (var E = 0; E < g.length; E++) {
|
|
488
|
-
var
|
|
489
|
-
if (typeof
|
|
488
|
+
var $ = g[E];
|
|
489
|
+
if (typeof $ != "function")
|
|
490
490
|
return a(
|
|
491
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " +
|
|
491
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ke($) + " at index " + E + "."
|
|
492
492
|
), i;
|
|
493
493
|
}
|
|
494
|
-
function
|
|
495
|
-
for (var
|
|
496
|
-
var J = g[
|
|
494
|
+
function N(I, b, D, V, q) {
|
|
495
|
+
for (var F = [], P = 0; P < g.length; P++) {
|
|
496
|
+
var J = g[P], k = J(I, b, D, V, q, s);
|
|
497
497
|
if (k == null)
|
|
498
498
|
return null;
|
|
499
|
-
k.data && n(k.data, "expectedType") &&
|
|
499
|
+
k.data && n(k.data, "expectedType") && F.push(k.data.expectedType);
|
|
500
500
|
}
|
|
501
|
-
var
|
|
502
|
-
return new v("Invalid " +
|
|
501
|
+
var xe = F.length > 0 ? ", expected one of type [" + F.join(", ") + "]" : "";
|
|
502
|
+
return new v("Invalid " + V + " `" + q + "` supplied to " + ("`" + D + "`" + xe + "."));
|
|
503
503
|
}
|
|
504
|
-
return m(
|
|
504
|
+
return m(N);
|
|
505
505
|
}
|
|
506
506
|
function te() {
|
|
507
|
-
function g(E,
|
|
508
|
-
return
|
|
507
|
+
function g(E, $, N, I, b) {
|
|
508
|
+
return se(E[$]) ? null : new v("Invalid " + I + " `" + b + "` supplied to " + ("`" + N + "`, expected a ReactNode."));
|
|
509
509
|
}
|
|
510
510
|
return m(g);
|
|
511
511
|
}
|
|
512
|
-
function
|
|
512
|
+
function le(g, E, $, N, I) {
|
|
513
513
|
return new v(
|
|
514
|
-
(g || "React class") + ": " + E + " type `" +
|
|
514
|
+
(g || "React class") + ": " + E + " type `" + $ + "." + N + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + I + "`."
|
|
515
515
|
);
|
|
516
516
|
}
|
|
517
|
-
function
|
|
518
|
-
function E(
|
|
519
|
-
var
|
|
520
|
-
if (
|
|
521
|
-
return new v("Invalid " +
|
|
522
|
-
for (var
|
|
523
|
-
var
|
|
524
|
-
if (typeof
|
|
525
|
-
return
|
|
526
|
-
var J =
|
|
517
|
+
function ue(g) {
|
|
518
|
+
function E($, N, I, b, D) {
|
|
519
|
+
var V = $[N], q = re(V);
|
|
520
|
+
if (q !== "object")
|
|
521
|
+
return new v("Invalid " + b + " `" + D + "` of type `" + q + "` " + ("supplied to `" + I + "`, expected `object`."));
|
|
522
|
+
for (var F in g) {
|
|
523
|
+
var P = g[F];
|
|
524
|
+
if (typeof P != "function")
|
|
525
|
+
return le(I, b, D, F, ce(P));
|
|
526
|
+
var J = P(V, F, I, b, D + "." + F, s);
|
|
527
527
|
if (J)
|
|
528
528
|
return J;
|
|
529
529
|
}
|
|
@@ -531,22 +531,22 @@ function On() {
|
|
|
531
531
|
}
|
|
532
532
|
return m(E);
|
|
533
533
|
}
|
|
534
|
-
function
|
|
535
|
-
function E(
|
|
536
|
-
var
|
|
537
|
-
if (
|
|
538
|
-
return new v("Invalid " +
|
|
539
|
-
var
|
|
540
|
-
for (var
|
|
541
|
-
var J = g[
|
|
542
|
-
if (n(g,
|
|
543
|
-
return
|
|
534
|
+
function ye(g) {
|
|
535
|
+
function E($, N, I, b, D) {
|
|
536
|
+
var V = $[N], q = re(V);
|
|
537
|
+
if (q !== "object")
|
|
538
|
+
return new v("Invalid " + b + " `" + D + "` of type `" + q + "` " + ("supplied to `" + I + "`, expected `object`."));
|
|
539
|
+
var F = e({}, $[N], g);
|
|
540
|
+
for (var P in F) {
|
|
541
|
+
var J = g[P];
|
|
542
|
+
if (n(g, P) && typeof J != "function")
|
|
543
|
+
return le(I, b, D, P, ce(J));
|
|
544
544
|
if (!J)
|
|
545
545
|
return new v(
|
|
546
|
-
"Invalid " +
|
|
546
|
+
"Invalid " + b + " `" + D + "` key `" + P + "` supplied to `" + I + "`.\nBad object: " + JSON.stringify($[N], null, " ") + `
|
|
547
547
|
Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
|
|
548
548
|
);
|
|
549
|
-
var k = J(
|
|
549
|
+
var k = J(V, P, I, b, D + "." + P, s);
|
|
550
550
|
if (k)
|
|
551
551
|
return k;
|
|
552
552
|
}
|
|
@@ -554,7 +554,7 @@ Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
|
|
|
554
554
|
}
|
|
555
555
|
return m(E);
|
|
556
556
|
}
|
|
557
|
-
function
|
|
557
|
+
function se(g) {
|
|
558
558
|
switch (typeof g) {
|
|
559
559
|
case "number":
|
|
560
560
|
case "string":
|
|
@@ -564,20 +564,20 @@ Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
|
|
|
564
564
|
return !g;
|
|
565
565
|
case "object":
|
|
566
566
|
if (Array.isArray(g))
|
|
567
|
-
return g.every(
|
|
567
|
+
return g.every(se);
|
|
568
568
|
if (g === null || l(g))
|
|
569
569
|
return !0;
|
|
570
570
|
var E = f(g);
|
|
571
571
|
if (E) {
|
|
572
|
-
var
|
|
572
|
+
var $ = E.call(g), N;
|
|
573
573
|
if (E !== g.entries) {
|
|
574
|
-
for (; !(
|
|
575
|
-
if (!
|
|
574
|
+
for (; !(N = $.next()).done; )
|
|
575
|
+
if (!se(N.value))
|
|
576
576
|
return !1;
|
|
577
577
|
} else
|
|
578
|
-
for (; !(
|
|
579
|
-
var
|
|
580
|
-
if (
|
|
578
|
+
for (; !(N = $.next()).done; ) {
|
|
579
|
+
var I = N.value;
|
|
580
|
+
if (I && !se(I[1]))
|
|
581
581
|
return !1;
|
|
582
582
|
}
|
|
583
583
|
} else
|
|
@@ -587,17 +587,17 @@ Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
|
|
|
587
587
|
return !1;
|
|
588
588
|
}
|
|
589
589
|
}
|
|
590
|
-
function
|
|
590
|
+
function De(g, E) {
|
|
591
591
|
return g === "symbol" ? !0 : E ? E["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && E instanceof Symbol : !1;
|
|
592
592
|
}
|
|
593
|
-
function
|
|
593
|
+
function re(g) {
|
|
594
594
|
var E = typeof g;
|
|
595
|
-
return Array.isArray(g) ? "array" : g instanceof RegExp ? "object" :
|
|
595
|
+
return Array.isArray(g) ? "array" : g instanceof RegExp ? "object" : De(E, g) ? "symbol" : E;
|
|
596
596
|
}
|
|
597
|
-
function
|
|
597
|
+
function ce(g) {
|
|
598
598
|
if (typeof g > "u" || g === null)
|
|
599
599
|
return "" + g;
|
|
600
|
-
var E =
|
|
600
|
+
var E = re(g);
|
|
601
601
|
if (E === "object") {
|
|
602
602
|
if (g instanceof Date)
|
|
603
603
|
return "date";
|
|
@@ -606,8 +606,8 @@ Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
|
|
|
606
606
|
}
|
|
607
607
|
return E;
|
|
608
608
|
}
|
|
609
|
-
function
|
|
610
|
-
var E =
|
|
609
|
+
function ke(g) {
|
|
610
|
+
var E = ce(g);
|
|
611
611
|
switch (E) {
|
|
612
612
|
case "array":
|
|
613
613
|
case "object":
|
|
@@ -620,14 +620,14 @@ Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
|
|
|
620
620
|
return E;
|
|
621
621
|
}
|
|
622
622
|
}
|
|
623
|
-
function
|
|
623
|
+
function Ce(g) {
|
|
624
624
|
return !g.constructor || !g.constructor.name ? _ : g.constructor.name;
|
|
625
625
|
}
|
|
626
626
|
return y.checkPropTypes = r, y.resetWarningCache = r.resetWarningCache, y.PropTypes = y, y;
|
|
627
627
|
}, bt;
|
|
628
628
|
}
|
|
629
629
|
var Et, Xt;
|
|
630
|
-
function
|
|
630
|
+
function On() {
|
|
631
631
|
if (Xt) return Et;
|
|
632
632
|
Xt = 1;
|
|
633
633
|
var t = Rt();
|
|
@@ -676,11 +676,11 @@ function Dn() {
|
|
|
676
676
|
}
|
|
677
677
|
if (process.env.NODE_ENV !== "production") {
|
|
678
678
|
var In = ss(), Rn = !0;
|
|
679
|
-
Tt.exports =
|
|
679
|
+
Tt.exports = Dn()(In.isElement, Rn);
|
|
680
680
|
} else
|
|
681
|
-
Tt.exports =
|
|
681
|
+
Tt.exports = On()();
|
|
682
682
|
var Nn = Tt.exports;
|
|
683
|
-
const o = /* @__PURE__ */
|
|
683
|
+
const o = /* @__PURE__ */ xn(Nn);
|
|
684
684
|
var rs = /* @__PURE__ */ ((t) => (t.Primary = "primary", t.Secondary = "secondary", t.Info = "info", t.Success = "success", t.Danger = "danger", t.Warning = "warning", t.Neutral = "neutral", t))(rs || {}), as = /* @__PURE__ */ ((t) => (t.Solid = "solid", t.Outline = "outline", t.Text = "text", t))(as || {}), is = /* @__PURE__ */ ((t) => (t.Large = "lg", t.Medium = "md", t.Small = "sm", t))(is || {}), os = /* @__PURE__ */ ((t) => (t.Right = "right", t.Left = "left", t))(os || {}), Bn = /* @__PURE__ */ ((t) => (t[t.Elevation1 = 1] = "Elevation1", t[t.Elevation2 = 2] = "Elevation2", t[t.Elevation3 = 3] = "Elevation3", t[t.Elevation4 = 4] = "Elevation4", t))(Bn || {});
|
|
685
685
|
const X = {
|
|
686
686
|
name: "Button",
|
|
@@ -743,7 +743,7 @@ const X = {
|
|
|
743
743
|
}
|
|
744
744
|
};
|
|
745
745
|
var ls = /* @__PURE__ */ ((t) => (t.Primary = "primary", t.PrimaryLightest = "primary-lightest", t.PrimaryLighter = "primary-lighter", t.PrimaryLight = "primary-light", t.PrimaryDark = "primary-dark", t.PrimaryDarker = "primary-darker", t.Neutral90 = "neutral-90", t.Neutral80 = "neutral-80", t.Neutral60 = "neutral-60", t.Neutral40 = "neutral-40", t.Neutral20 = "neutral-20", t.Neutral10 = "neutral-10", t.Neutral05 = "neutral-05", t.Neutral00 = "neutral-00", t.Secondary = "secondary", t.SecondaryLightest = "secondary-lightest", t.SecondaryLighter = "secondary-lighter", t.SecondaryLight = "secondary-light", t.SecondaryDark = "secondary-dark", t.SecondaryDarker = "secondary-darker", t.Success = "success", t.SuccessLighter = "success-lighter", t.SuccessLight = "success-light", t.SuccessDark = "success-dark", t.Warning = "warning", t.WarningLighter = "warning-lighter", t.WarningLight = "warning-light", t.WarningDark = "warning-dark", t.Danger = "danger", t.DangerLighter = "danger-lighter", t.DangerLight = "danger-light", t.DangerDark = "danger-dark", t.Info = "info", t.InfoLighter = "info-lighter", t.InfoLight = "info-light", t.InfoDark = "info-dark", t))(ls || {}), us = /* @__PURE__ */ ((t) => (t.Outlined = "outlined", t.Rounded = "rounded", t.Sharp = "sharp", t))(us || {}), cs = /* @__PURE__ */ ((t) => (t.XXS = "xxs", t.XS = "xs", t.SM = "sm", t.MD = "md", t.LG = "lg", t.XL = "xl", t.XXL = "xxl", t.XXXL = "xxxl", t.Huge = "huge", t))(cs || {}), ds = /* @__PURE__ */ ((t) => (t.Bold = "bold", t.Semibold = "semibold", t.Medium = "medium", t.Regular = "regular", t.Light = "light", t.Extralight = "extralight", t))(ds || {});
|
|
746
|
-
const
|
|
746
|
+
const fe = {
|
|
747
747
|
name: "Icon",
|
|
748
748
|
class: "ds-icon",
|
|
749
749
|
props: {
|
|
@@ -802,25 +802,25 @@ const $n = {
|
|
|
802
802
|
regular: 400,
|
|
803
803
|
light: 300,
|
|
804
804
|
extralight: 200
|
|
805
|
-
},
|
|
806
|
-
image: t =
|
|
807
|
-
color: e =
|
|
805
|
+
}, Z = ({
|
|
806
|
+
image: t = fe.props.image.default,
|
|
807
|
+
color: e = fe.props.color.default,
|
|
808
808
|
className: s,
|
|
809
|
-
size: n =
|
|
810
|
-
fill: r =
|
|
811
|
-
weight: a =
|
|
812
|
-
testId: i =
|
|
813
|
-
onClick: l =
|
|
809
|
+
size: n = fe.props.size.default,
|
|
810
|
+
fill: r = fe.props.fill.default,
|
|
811
|
+
weight: a = fe.props.weight.default,
|
|
812
|
+
testId: i = fe.props.testId.default,
|
|
813
|
+
onClick: l = fe.props.onClick.default
|
|
814
814
|
}) => {
|
|
815
|
-
const u = "material-symbols-rounded", d = e &&
|
|
815
|
+
const u = "material-symbols-rounded", d = e && fe.props.color.options.find((f) => f === e) && `color__${lt[e] ?? e}`, h = ve(() => ({
|
|
816
816
|
fontVariationSettings: `'FILL' ${r ? 1 : 0}, 'GRAD' 0,'wght' ${$n[a]}, 'opsz' 48`
|
|
817
817
|
}), [a, r]);
|
|
818
818
|
return /* @__PURE__ */ c(
|
|
819
819
|
"i",
|
|
820
820
|
{
|
|
821
821
|
className: [
|
|
822
|
-
`${
|
|
823
|
-
|
|
822
|
+
`${fe.class}--${n}`,
|
|
823
|
+
fe.class,
|
|
824
824
|
u,
|
|
825
825
|
d,
|
|
826
826
|
s
|
|
@@ -833,16 +833,16 @@ const $n = {
|
|
|
833
833
|
}
|
|
834
834
|
);
|
|
835
835
|
};
|
|
836
|
-
|
|
837
|
-
color: o.oneOf(
|
|
836
|
+
Z.propTypes = {
|
|
837
|
+
color: o.oneOf(fe.props.color.options),
|
|
838
838
|
image: o.string,
|
|
839
839
|
fontVariationSettings: o.object,
|
|
840
|
-
size: o.oneOf(
|
|
840
|
+
size: o.oneOf(fe.props.size.options),
|
|
841
841
|
fill: o.bool,
|
|
842
|
-
weight: o.oneOf(
|
|
842
|
+
weight: o.oneOf(fe.props.weight.options),
|
|
843
843
|
onClick: o.func
|
|
844
844
|
};
|
|
845
|
-
|
|
845
|
+
Z.displayName = "DsIcon";
|
|
846
846
|
const ut = ({
|
|
847
847
|
children: t,
|
|
848
848
|
className: e,
|
|
@@ -858,32 +858,32 @@ const ut = ({
|
|
|
858
858
|
iconFill: f = X.props.iconFill.default,
|
|
859
859
|
iconPosition: _ = X.props.iconPosition.default,
|
|
860
860
|
fullSize: y = X.props.fullSize.default,
|
|
861
|
-
trackingData:
|
|
861
|
+
trackingData: S
|
|
862
862
|
}) => {
|
|
863
|
-
const v = n && X.props.size.options.find((z) => z === n) ? `${X.class}--${n}` : `${X.class}__${X.props.size.default}`, m = r && `${X.class}--disabled`,
|
|
864
|
-
|
|
863
|
+
const v = n && X.props.size.options.find((z) => z === n) ? `${X.class}--${n}` : `${X.class}__${X.props.size.default}`, m = r && `${X.class}--disabled`, C = `${X.class}__${h}--${d}`, U = u && `${X.class}--elevation-${u}`, T = a && `${X.class}--with-icon`, w = y ? `${X.class}--full-size` : "", p = _ === "right" ? `${X.class}__icon` : `${X.class}__icon--left`, A = _ === "right" ? `${X.class}__text` : `${X.class}__text--reversed`, B = (z) => {
|
|
864
|
+
S && Cn(S), s && s(z);
|
|
865
865
|
};
|
|
866
866
|
return /* @__PURE__ */ c(
|
|
867
867
|
"button",
|
|
868
868
|
{
|
|
869
869
|
className: [
|
|
870
870
|
X.class,
|
|
871
|
-
|
|
871
|
+
w,
|
|
872
872
|
m,
|
|
873
873
|
v,
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
874
|
+
C,
|
|
875
|
+
U,
|
|
876
|
+
T,
|
|
877
877
|
e
|
|
878
878
|
].filter((z) => z).join(" "),
|
|
879
879
|
"data-testid": l,
|
|
880
880
|
disabled: r,
|
|
881
881
|
id: i,
|
|
882
|
-
onClick: r ? void 0 :
|
|
883
|
-
children: /* @__PURE__ */
|
|
882
|
+
onClick: r ? void 0 : B,
|
|
883
|
+
children: /* @__PURE__ */ R("span", { className: ["ds-button__text", A].join(" "), children: [
|
|
884
884
|
t,
|
|
885
885
|
a && /* @__PURE__ */ c(
|
|
886
|
-
|
|
886
|
+
Z,
|
|
887
887
|
{
|
|
888
888
|
className: ["ds-button__icon", p].join(" "),
|
|
889
889
|
fill: f,
|
|
@@ -931,7 +931,7 @@ ps.propTypes = {
|
|
|
931
931
|
};
|
|
932
932
|
ps.displayName = "DsCaption";
|
|
933
933
|
var Ft = /* @__PURE__ */ ((t) => (t.None = "", t.PrimaryDarker = "primary-darker", t.PrimaryDark = "primary-dark", t.Primary = "primary", t.PrimaryLight = "primary-light", t.PrimaryLighter = "primary-lighter", t.PrimaryLightest = "primary-lightest", t.SecondaryDarker = "secondary-darker", t.SecondaryDark = "secondary-dark", t.Secondary = "secondary", t.SecondaryLight = "secondary-light", t.SecondaryLighter = "secondary-lighter", t.SecondaryLightest = "secondary-lightest", t.Neutral90 = "neutral-90", t.Neutral80 = "neutral-80", t.Neutral60 = "neutral-60", t.Neutral40 = "neutral-40", t.Neutral20 = "neutral-20", t.Neutral10 = "neutral-10", t.Neutral05 = "neutral-05", t.Neutral00 = "neutral-00", t.SuccessDark = "success-dark", t.Success = "success", t.SuccessLight = "success-light", t.SuccessLighter = "success-lighter", t.WarningDark = "warning-dark", t.Warning = "warning", t.WarningLight = "warning-light", t.WarningLighter = "warning-lighter", t.DangerDark = "danger-dark", t.Danger = "danger", t.DangerLight = "danger-light", t.DangerLighter = "danger-lighter", t.InfoDark = "info-dark", t.Info = "info", t.InfoLight = "info-light", t.InfoLighter = "info-lighter", t))(Ft || {}), Vn = /* @__PURE__ */ ((t) => (t[t.Elevation = 0] = "Elevation", t[t.Elevation1 = 1] = "Elevation1", t[t.Elevation2 = 2] = "Elevation2", t[t.Elevation3 = 3] = "Elevation3", t[t.Elevation4 = 4] = "Elevation4", t))(Vn || {});
|
|
934
|
-
const
|
|
934
|
+
const Be = {
|
|
935
935
|
name: "Card",
|
|
936
936
|
class: "ds-card",
|
|
937
937
|
props: {
|
|
@@ -968,19 +968,19 @@ const Ne = {
|
|
|
968
968
|
}
|
|
969
969
|
}, hs = ({
|
|
970
970
|
id: t,
|
|
971
|
-
testId: e =
|
|
971
|
+
testId: e = Be.props.testId.default,
|
|
972
972
|
children: s,
|
|
973
973
|
className: n,
|
|
974
|
-
elevation: r =
|
|
975
|
-
backgroundColor: a =
|
|
976
|
-
borderColor: i =
|
|
974
|
+
elevation: r = Be.props.elevation.default,
|
|
975
|
+
backgroundColor: a = Be.props.backgroundColor.default,
|
|
976
|
+
borderColor: i = Be.props.borderColor.default
|
|
977
977
|
}) => {
|
|
978
978
|
const l = r && `elevation-${r}`, u = i && `border-color__${lt[i] ?? i}`, d = a && `bg-color__${lt[a] ?? a}`;
|
|
979
979
|
return /* @__PURE__ */ c(
|
|
980
980
|
"div",
|
|
981
981
|
{
|
|
982
982
|
className: [
|
|
983
|
-
|
|
983
|
+
Be.class,
|
|
984
984
|
n,
|
|
985
985
|
l,
|
|
986
986
|
u,
|
|
@@ -995,12 +995,12 @@ const Ne = {
|
|
|
995
995
|
hs.propTypes = {
|
|
996
996
|
id: o.string,
|
|
997
997
|
testId: o.string,
|
|
998
|
-
backgroundColor: o.oneOf(
|
|
999
|
-
borderColor: o.oneOf(
|
|
1000
|
-
elevation: o.oneOf(
|
|
998
|
+
backgroundColor: o.oneOf(Be.props.backgroundColor.options),
|
|
999
|
+
borderColor: o.oneOf(Be.props.borderColor.options),
|
|
1000
|
+
elevation: o.oneOf(Be.props.elevation.options)
|
|
1001
1001
|
};
|
|
1002
1002
|
hs.displayName = "DsCard";
|
|
1003
|
-
const
|
|
1003
|
+
const de = {
|
|
1004
1004
|
name: "Checkbox",
|
|
1005
1005
|
class: "ds-checkbox",
|
|
1006
1006
|
props: {
|
|
@@ -1037,31 +1037,31 @@ const ie = {
|
|
|
1037
1037
|
default: () => ({})
|
|
1038
1038
|
}
|
|
1039
1039
|
}
|
|
1040
|
-
}, fs =
|
|
1040
|
+
}, fs = Se.forwardRef(
|
|
1041
1041
|
({
|
|
1042
1042
|
id: t,
|
|
1043
1043
|
className: e,
|
|
1044
1044
|
name: s,
|
|
1045
|
-
testId: n =
|
|
1046
|
-
label: r =
|
|
1047
|
-
description: a =
|
|
1048
|
-
checked: i =
|
|
1049
|
-
disabled: l =
|
|
1050
|
-
changeByChecked: u =
|
|
1045
|
+
testId: n = de.props.testId.default,
|
|
1046
|
+
label: r = de.props.label.default,
|
|
1047
|
+
description: a = de.props.description.default,
|
|
1048
|
+
checked: i = de.props.checked.default,
|
|
1049
|
+
disabled: l = de.props.disabled.default,
|
|
1050
|
+
changeByChecked: u = de.props.changeByChecked.default,
|
|
1051
1051
|
onChangeHandler: d
|
|
1052
1052
|
}, h) => {
|
|
1053
|
-
const f = u ?? !1, _ = i ?? !1, [y,
|
|
1053
|
+
const f = u ?? !1, _ = i ?? !1, [y, S] = j(_), v = {
|
|
1054
1054
|
image: y ? "check_box" : "check_box_outline_blank",
|
|
1055
|
-
class: y ? `${
|
|
1056
|
-
}, m = l && `${
|
|
1057
|
-
l || (
|
|
1055
|
+
class: y ? `${de.class}__icon--checked` : `${de.class}__icon--unchecked`
|
|
1056
|
+
}, m = l && `${de.class}--disabled`, C = (U) => {
|
|
1057
|
+
l || (S((T) => !T), d && d(U));
|
|
1058
1058
|
};
|
|
1059
|
-
return
|
|
1060
|
-
f &&
|
|
1061
|
-
}, [i, f]), /* @__PURE__ */
|
|
1059
|
+
return G(() => {
|
|
1060
|
+
f && S(i);
|
|
1061
|
+
}, [i, f]), /* @__PURE__ */ R(
|
|
1062
1062
|
"label",
|
|
1063
1063
|
{
|
|
1064
|
-
className: [
|
|
1064
|
+
className: [de.class, m, e].join(
|
|
1065
1065
|
" "
|
|
1066
1066
|
),
|
|
1067
1067
|
htmlFor: t || s,
|
|
@@ -1070,31 +1070,31 @@ const ie = {
|
|
|
1070
1070
|
"input",
|
|
1071
1071
|
{
|
|
1072
1072
|
checked: y,
|
|
1073
|
-
className: `${
|
|
1073
|
+
className: `${de.class}__input`,
|
|
1074
1074
|
"data-testid": n,
|
|
1075
1075
|
disabled: l,
|
|
1076
1076
|
id: t || s,
|
|
1077
1077
|
name: s,
|
|
1078
|
-
onChange:
|
|
1078
|
+
onChange: C,
|
|
1079
1079
|
ref: h,
|
|
1080
1080
|
type: "checkbox"
|
|
1081
1081
|
}
|
|
1082
1082
|
),
|
|
1083
1083
|
/* @__PURE__ */ c(
|
|
1084
|
-
|
|
1084
|
+
Z,
|
|
1085
1085
|
{
|
|
1086
|
-
className: `${
|
|
1086
|
+
className: `${de.class}__icon ${v.class}`,
|
|
1087
1087
|
fill: !0,
|
|
1088
1088
|
image: v.image,
|
|
1089
1089
|
size: "xxl",
|
|
1090
1090
|
testId: `${n}-icon`
|
|
1091
1091
|
}
|
|
1092
1092
|
),
|
|
1093
|
-
(a || r) && /* @__PURE__ */
|
|
1093
|
+
(a || r) && /* @__PURE__ */ R("div", { className: `${de.class}__label`, children: [
|
|
1094
1094
|
r && /* @__PURE__ */ c(
|
|
1095
1095
|
"label",
|
|
1096
1096
|
{
|
|
1097
|
-
className: `${
|
|
1097
|
+
className: `${de.class}__label-title`,
|
|
1098
1098
|
htmlFor: t || s,
|
|
1099
1099
|
children: r
|
|
1100
1100
|
}
|
|
@@ -1102,7 +1102,7 @@ const ie = {
|
|
|
1102
1102
|
a && /* @__PURE__ */ c(
|
|
1103
1103
|
"label",
|
|
1104
1104
|
{
|
|
1105
|
-
className: `${
|
|
1105
|
+
className: `${de.class}__label-description`,
|
|
1106
1106
|
htmlFor: t || s,
|
|
1107
1107
|
children: a
|
|
1108
1108
|
}
|
|
@@ -1124,7 +1124,7 @@ fs.propTypes = {
|
|
|
1124
1124
|
};
|
|
1125
1125
|
fs.displayName = "DsCheckbox";
|
|
1126
1126
|
var gs = /* @__PURE__ */ ((t) => (t.Heading1 = "heading-1", t.Heading2 = "heading-2", t.Heading3 = "heading-3", t.Heading4 = "heading-4", t.Heading5 = "heading-5", t.Heading6 = "heading-6", t))(gs || {});
|
|
1127
|
-
const
|
|
1127
|
+
const Ge = {
|
|
1128
1128
|
name: "Heading",
|
|
1129
1129
|
class: "ds-heading",
|
|
1130
1130
|
props: {
|
|
@@ -1137,7 +1137,7 @@ const Ke = {
|
|
|
1137
1137
|
}, Nt = ({
|
|
1138
1138
|
children: t,
|
|
1139
1139
|
testId: e = "ds-heading-test",
|
|
1140
|
-
type: s =
|
|
1140
|
+
type: s = Ge.props.type.default,
|
|
1141
1141
|
className: n
|
|
1142
1142
|
}) => {
|
|
1143
1143
|
const r = {
|
|
@@ -1147,11 +1147,11 @@ const Ke = {
|
|
|
1147
1147
|
"heading-4": "h4",
|
|
1148
1148
|
"heading-5": "h5",
|
|
1149
1149
|
"heading-6": "h6"
|
|
1150
|
-
}, a = s.replace("heading-", ""), i =
|
|
1150
|
+
}, a = s.replace("heading-", ""), i = Ge.props.type.options.find((d) => d === s) && `${Ge.class}--${a}`, u = r[s];
|
|
1151
1151
|
return /* @__PURE__ */ c(
|
|
1152
1152
|
u,
|
|
1153
1153
|
{
|
|
1154
|
-
className: [
|
|
1154
|
+
className: [Ge.class, i, n].filter((d) => d).join(" "),
|
|
1155
1155
|
"data-testid": e,
|
|
1156
1156
|
children: t
|
|
1157
1157
|
}
|
|
@@ -1160,7 +1160,7 @@ const Ke = {
|
|
|
1160
1160
|
Nt.propTypes = {
|
|
1161
1161
|
className: o.string,
|
|
1162
1162
|
testId: o.string,
|
|
1163
|
-
type: o.oneOf(
|
|
1163
|
+
type: o.oneOf(Ge.props.type.options)
|
|
1164
1164
|
};
|
|
1165
1165
|
Nt.displayName = "DsHeading";
|
|
1166
1166
|
var ms = /* @__PURE__ */ ((t) => (t.None = "", t.Dashed = "dashed", t.Dotted = "dotted", t))(ms || {}), vs = /* @__PURE__ */ ((t) => (t.None = "", t.Small = "small", t.Large = "large", t))(vs || {});
|
|
@@ -1201,7 +1201,7 @@ _s.propTypes = {
|
|
|
1201
1201
|
borderStyle: o.oneOf(Pe.props.borderStyle.options)
|
|
1202
1202
|
};
|
|
1203
1203
|
_s.displayName = "DsHR";
|
|
1204
|
-
function
|
|
1204
|
+
function Me(t) {
|
|
1205
1205
|
return typeof t == "string" || t instanceof String;
|
|
1206
1206
|
}
|
|
1207
1207
|
function Gt(t) {
|
|
@@ -1214,7 +1214,7 @@ function ys(t, e) {
|
|
|
1214
1214
|
return e(a, r) && (s[r] = a), s;
|
|
1215
1215
|
}, {});
|
|
1216
1216
|
}
|
|
1217
|
-
const
|
|
1217
|
+
const x = {
|
|
1218
1218
|
NONE: "NONE",
|
|
1219
1219
|
LEFT: "LEFT",
|
|
1220
1220
|
FORCE_LEFT: "FORCE_LEFT",
|
|
@@ -1223,10 +1223,10 @@ const S = {
|
|
|
1223
1223
|
};
|
|
1224
1224
|
function Ln(t) {
|
|
1225
1225
|
switch (t) {
|
|
1226
|
-
case
|
|
1227
|
-
return
|
|
1228
|
-
case
|
|
1229
|
-
return
|
|
1226
|
+
case x.LEFT:
|
|
1227
|
+
return x.FORCE_LEFT;
|
|
1228
|
+
case x.RIGHT:
|
|
1229
|
+
return x.FORCE_RIGHT;
|
|
1230
1230
|
default:
|
|
1231
1231
|
return t;
|
|
1232
1232
|
}
|
|
@@ -1302,29 +1302,29 @@ class jn {
|
|
|
1302
1302
|
}
|
|
1303
1303
|
/** Remove direction */
|
|
1304
1304
|
get removeDirection() {
|
|
1305
|
-
return !this.removedCount || this.insertedCount ?
|
|
1306
|
-
this.oldSelection.end === this.oldSelection.start ?
|
|
1305
|
+
return !this.removedCount || this.insertedCount ? x.NONE : (this.oldSelection.end === this.cursorPos || this.oldSelection.start === this.cursorPos) && // if not range removed (event with backspace)
|
|
1306
|
+
this.oldSelection.end === this.oldSelection.start ? x.RIGHT : x.LEFT;
|
|
1307
1307
|
}
|
|
1308
1308
|
}
|
|
1309
|
-
function
|
|
1310
|
-
return new
|
|
1309
|
+
function O(t, e) {
|
|
1310
|
+
return new O.InputMask(t, e);
|
|
1311
1311
|
}
|
|
1312
1312
|
function ks(t) {
|
|
1313
1313
|
if (t == null) throw new Error("mask property should be defined");
|
|
1314
|
-
return t instanceof RegExp ?
|
|
1314
|
+
return t instanceof RegExp ? O.MaskedRegExp : Me(t) ? O.MaskedPattern : t === Date ? O.MaskedDate : t === Number ? O.MaskedNumber : Array.isArray(t) || t === Array ? O.MaskedDynamic : O.Masked && t.prototype instanceof O.Masked ? t : O.Masked && t instanceof O.Masked ? t.constructor : t instanceof Function ? O.MaskedFunction : (console.warn("Mask not found for mask", t), O.Masked);
|
|
1315
1315
|
}
|
|
1316
1316
|
function Je(t) {
|
|
1317
1317
|
if (!t) throw new Error("Options in not defined");
|
|
1318
|
-
if (
|
|
1319
|
-
if (t.prototype instanceof
|
|
1318
|
+
if (O.Masked) {
|
|
1319
|
+
if (t.prototype instanceof O.Masked) return {
|
|
1320
1320
|
mask: t
|
|
1321
1321
|
};
|
|
1322
1322
|
const {
|
|
1323
1323
|
mask: e = void 0,
|
|
1324
1324
|
...s
|
|
1325
|
-
} = t instanceof
|
|
1325
|
+
} = t instanceof O.Masked ? {
|
|
1326
1326
|
mask: t
|
|
1327
|
-
} : Gt(t) && t.mask instanceof
|
|
1327
|
+
} : Gt(t) && t.mask instanceof O.Masked ? t : {};
|
|
1328
1328
|
if (e) {
|
|
1329
1329
|
const n = e.mask;
|
|
1330
1330
|
return {
|
|
@@ -1341,13 +1341,13 @@ function Je(t) {
|
|
|
1341
1341
|
mask: t
|
|
1342
1342
|
};
|
|
1343
1343
|
}
|
|
1344
|
-
function
|
|
1345
|
-
if (
|
|
1344
|
+
function Re(t) {
|
|
1345
|
+
if (O.Masked && t instanceof O.Masked) return t;
|
|
1346
1346
|
const e = Je(t), s = ks(e.mask);
|
|
1347
1347
|
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.");
|
|
1348
1348
|
return e.mask === s && delete e.mask, e._mask && (e.mask = e._mask, delete e._mask), new s(e);
|
|
1349
1349
|
}
|
|
1350
|
-
|
|
1350
|
+
O.createMask = Re;
|
|
1351
1351
|
class Bt {
|
|
1352
1352
|
/** */
|
|
1353
1353
|
/** */
|
|
@@ -1386,7 +1386,7 @@ class Bt {
|
|
|
1386
1386
|
/** */
|
|
1387
1387
|
/** */
|
|
1388
1388
|
}
|
|
1389
|
-
|
|
1389
|
+
O.MaskElement = Bt;
|
|
1390
1390
|
const Zt = 90, Pn = 89;
|
|
1391
1391
|
class ht extends Bt {
|
|
1392
1392
|
/** HTMLElement to use mask on */
|
|
@@ -1429,7 +1429,7 @@ class ht extends Bt {
|
|
|
1429
1429
|
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 = {};
|
|
1430
1430
|
}
|
|
1431
1431
|
}
|
|
1432
|
-
|
|
1432
|
+
O.HTMLMaskElement = ht;
|
|
1433
1433
|
class qn extends ht {
|
|
1434
1434
|
/** InputElement to use mask on */
|
|
1435
1435
|
constructor(e) {
|
|
@@ -1454,7 +1454,7 @@ class qn extends ht {
|
|
|
1454
1454
|
this.input.value = e;
|
|
1455
1455
|
}
|
|
1456
1456
|
}
|
|
1457
|
-
|
|
1457
|
+
O.HTMLMaskElement = ht;
|
|
1458
1458
|
class bs extends ht {
|
|
1459
1459
|
/** Returns HTMLElement selection start */
|
|
1460
1460
|
get _unsafeSelectionStart() {
|
|
@@ -1482,7 +1482,7 @@ class bs extends ht {
|
|
|
1482
1482
|
this.input.textContent = e;
|
|
1483
1483
|
}
|
|
1484
1484
|
}
|
|
1485
|
-
|
|
1485
|
+
O.HTMLContenteditableMaskElement = bs;
|
|
1486
1486
|
class ft {
|
|
1487
1487
|
constructor() {
|
|
1488
1488
|
this.states = [], this.currentIndex = 0;
|
|
@@ -1516,7 +1516,7 @@ class Un {
|
|
|
1516
1516
|
*/
|
|
1517
1517
|
/** Internal {@link Masked} model */
|
|
1518
1518
|
constructor(e, s) {
|
|
1519
|
-
this.el = e instanceof Bt ? e : e.isContentEditable && e.tagName !== "INPUT" && e.tagName !== "TEXTAREA" ? new bs(e) : new qn(e), this.masked =
|
|
1519
|
+
this.el = e instanceof Bt ? e : e.isContentEditable && e.tagName !== "INPUT" && e.tagName !== "TEXTAREA" ? new bs(e) : new qn(e), this.masked = Re(s), this._listeners = {}, this._value = "", this._unmaskedValue = "", this._rawInputValue = "", this.history = new ft(), this._saveSelection = this._saveSelection.bind(this), this._onInput = this._onInput.bind(this), this._onChange = this._onChange.bind(this), this._onDrop = this._onDrop.bind(this), this._onFocus = this._onFocus.bind(this), this._onClick = this._onClick.bind(this), this._onUndo = this._onUndo.bind(this), this._onRedo = this._onRedo.bind(this), this.alignCursor = this.alignCursor.bind(this), this.alignCursorFriendly = this.alignCursorFriendly.bind(this), this._bindEvents(), this.updateValue(), this._onChange();
|
|
1520
1520
|
}
|
|
1521
1521
|
maskEquals(e) {
|
|
1522
1522
|
var s;
|
|
@@ -1528,13 +1528,13 @@ class Un {
|
|
|
1528
1528
|
}
|
|
1529
1529
|
set mask(e) {
|
|
1530
1530
|
if (this.maskEquals(e)) return;
|
|
1531
|
-
if (!(e instanceof
|
|
1531
|
+
if (!(e instanceof O.Masked) && this.masked.constructor === ks(e)) {
|
|
1532
1532
|
this.masked.updateOptions({
|
|
1533
1533
|
mask: e
|
|
1534
1534
|
});
|
|
1535
1535
|
return;
|
|
1536
1536
|
}
|
|
1537
|
-
const s = e instanceof
|
|
1537
|
+
const s = e instanceof O.Masked ? e : Re({
|
|
1538
1538
|
mask: e
|
|
1539
1539
|
});
|
|
1540
1540
|
s.unmaskedValue = this.masked.unmaskedValue, this.masked = s;
|
|
@@ -1654,7 +1654,7 @@ class Un {
|
|
|
1654
1654
|
}
|
|
1655
1655
|
/** Aligns cursor to nearest available position */
|
|
1656
1656
|
alignCursor() {
|
|
1657
|
-
this.cursorPos = this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,
|
|
1657
|
+
this.cursorPos = this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos, x.LEFT));
|
|
1658
1658
|
}
|
|
1659
1659
|
/** Aligns cursor only if selection is empty */
|
|
1660
1660
|
alignCursorFriendly() {
|
|
@@ -1685,9 +1685,9 @@ class Un {
|
|
|
1685
1685
|
}), n = this.masked.rawInputValue, r = this.masked.splice(s.startChangePos, s.removed.length, s.inserted, s.removeDirection, {
|
|
1686
1686
|
input: !0,
|
|
1687
1687
|
raw: !0
|
|
1688
|
-
}).offset, a = n === this.masked.rawInputValue ? s.removeDirection :
|
|
1688
|
+
}).offset, a = n === this.masked.rawInputValue ? s.removeDirection : x.NONE;
|
|
1689
1689
|
let i = this.masked.nearestInputPos(s.startChangePos + r, a);
|
|
1690
|
-
a !==
|
|
1690
|
+
a !== x.NONE && (i = this.masked.nearestInputPos(i, x.NONE)), this.updateControl(i), delete this._inputEvent;
|
|
1691
1691
|
}
|
|
1692
1692
|
/** Handles view change event and commits model value */
|
|
1693
1693
|
_onChange() {
|
|
@@ -1719,7 +1719,7 @@ class Un {
|
|
|
1719
1719
|
this._unbindEvents(), this._listeners.length = 0, delete this.el;
|
|
1720
1720
|
}
|
|
1721
1721
|
}
|
|
1722
|
-
|
|
1722
|
+
O.InputMask = Un;
|
|
1723
1723
|
class M {
|
|
1724
1724
|
/** Inserted symbols */
|
|
1725
1725
|
/** Additional offset if any changes occurred before tail */
|
|
@@ -1751,8 +1751,8 @@ class M {
|
|
|
1751
1751
|
return this.inserted === e.inserted && this.tailShift === e.tailShift && this.rawInserted === e.rawInserted && this.skip === e.skip;
|
|
1752
1752
|
}
|
|
1753
1753
|
}
|
|
1754
|
-
|
|
1755
|
-
class
|
|
1754
|
+
O.ChangeDetails = M;
|
|
1755
|
+
class Fe {
|
|
1756
1756
|
/** Tail value as string */
|
|
1757
1757
|
/** Tail start position */
|
|
1758
1758
|
/** Start position */
|
|
@@ -1791,7 +1791,7 @@ class xe {
|
|
|
1791
1791
|
return this.value = this.value.slice(0, -1), e;
|
|
1792
1792
|
}
|
|
1793
1793
|
}
|
|
1794
|
-
class
|
|
1794
|
+
class ie {
|
|
1795
1795
|
/** */
|
|
1796
1796
|
/** */
|
|
1797
1797
|
/** Transforms value before mask processing */
|
|
@@ -1807,7 +1807,7 @@ class re {
|
|
|
1807
1807
|
/** */
|
|
1808
1808
|
constructor(e) {
|
|
1809
1809
|
this._value = "", this._update({
|
|
1810
|
-
...
|
|
1810
|
+
...ie.DEFAULTS,
|
|
1811
1811
|
...e
|
|
1812
1812
|
}), this._initialized = !0;
|
|
1813
1813
|
}
|
|
@@ -1892,11 +1892,11 @@ class re {
|
|
|
1892
1892
|
}
|
|
1893
1893
|
/** Extracts tail in range */
|
|
1894
1894
|
extractTail(e, s) {
|
|
1895
|
-
return e === void 0 && (e = 0), s === void 0 && (s = this.displayValue.length), new
|
|
1895
|
+
return e === void 0 && (e = 0), s === void 0 && (s = this.displayValue.length), new Fe(this.extractInput(e, s), e);
|
|
1896
1896
|
}
|
|
1897
1897
|
/** Appends tail */
|
|
1898
1898
|
appendTail(e) {
|
|
1899
|
-
return
|
|
1899
|
+
return Me(e) && (e = new Fe(String(e))), e.appendTo(this);
|
|
1900
1900
|
}
|
|
1901
1901
|
/** Appends char */
|
|
1902
1902
|
_appendCharRaw(e, s) {
|
|
@@ -1949,8 +1949,8 @@ class re {
|
|
|
1949
1949
|
}
|
|
1950
1950
|
/** Appends symbols considering flags */
|
|
1951
1951
|
append(e, s, n) {
|
|
1952
|
-
if (
|
|
1953
|
-
const r =
|
|
1952
|
+
if (!Me(e)) throw new Error("value should be string");
|
|
1953
|
+
const r = Me(n) ? new Fe(String(n)) : n;
|
|
1954
1954
|
s != null && s.tail && (s._beforeTailState = this.state);
|
|
1955
1955
|
let a;
|
|
1956
1956
|
[e, a] = this.doPrepare(e, s);
|
|
@@ -1997,7 +1997,7 @@ class re {
|
|
|
1997
1997
|
this.commit && this.commit(this.value, this);
|
|
1998
1998
|
}
|
|
1999
1999
|
splice(e, s, n, r, a) {
|
|
2000
|
-
n === void 0 && (n = ""), r === void 0 && (r =
|
|
2000
|
+
n === void 0 && (n = ""), r === void 0 && (r = x.NONE), a === void 0 && (a = {
|
|
2001
2001
|
input: !0
|
|
2002
2002
|
});
|
|
2003
2003
|
const i = e + s, l = this.extractTail(i), u = this.eager === !0 || this.eager === "remove";
|
|
@@ -2007,14 +2007,14 @@ class re {
|
|
|
2007
2007
|
}));
|
|
2008
2008
|
let h = e;
|
|
2009
2009
|
const f = new M();
|
|
2010
|
-
if (r !==
|
|
2011
|
-
if (r ===
|
|
2010
|
+
if (r !== x.NONE && (h = this.nearestInputPos(e, s > 1 && e !== 0 && !u ? x.NONE : r), f.tailShift = h - e), f.aggregate(this.remove(h)), u && r !== x.NONE && d === this.rawInputValue)
|
|
2011
|
+
if (r === x.FORCE_LEFT) {
|
|
2012
2012
|
let _;
|
|
2013
2013
|
for (; d === this.rawInputValue && (_ = this.displayValue.length); )
|
|
2014
2014
|
f.aggregate(new M({
|
|
2015
2015
|
tailShift: -1
|
|
2016
2016
|
})).aggregate(this.remove(_ - 1));
|
|
2017
|
-
} else r ===
|
|
2017
|
+
} else r === x.FORCE_RIGHT && l.unshift();
|
|
2018
2018
|
return f.aggregate(this.append(n, a, l));
|
|
2019
2019
|
}
|
|
2020
2020
|
maskEquals(e) {
|
|
@@ -2025,17 +2025,17 @@ class re {
|
|
|
2025
2025
|
}
|
|
2026
2026
|
typedValueEquals(e) {
|
|
2027
2027
|
const s = this.typedValue;
|
|
2028
|
-
return e === s ||
|
|
2028
|
+
return e === s || ie.EMPTY_VALUES.includes(e) && ie.EMPTY_VALUES.includes(s) || (this.format ? this.format(e, this) === this.format(this.typedValue, this) : !1);
|
|
2029
2029
|
}
|
|
2030
2030
|
pad(e) {
|
|
2031
2031
|
return new M();
|
|
2032
2032
|
}
|
|
2033
2033
|
}
|
|
2034
|
-
|
|
2034
|
+
ie.DEFAULTS = {
|
|
2035
2035
|
skipInvalid: !0
|
|
2036
2036
|
};
|
|
2037
|
-
|
|
2038
|
-
|
|
2037
|
+
ie.EMPTY_VALUES = [void 0, null, ""];
|
|
2038
|
+
O.Masked = ie;
|
|
2039
2039
|
class qe {
|
|
2040
2040
|
/** */
|
|
2041
2041
|
constructor(e, s) {
|
|
@@ -2046,11 +2046,11 @@ class qe {
|
|
|
2046
2046
|
}
|
|
2047
2047
|
extend(e) {
|
|
2048
2048
|
if (!String(e)) return;
|
|
2049
|
-
e =
|
|
2049
|
+
e = Me(e) ? new Fe(String(e)) : e;
|
|
2050
2050
|
const s = this.chunks[this.chunks.length - 1], n = s && // if stops are same or tail has no stop
|
|
2051
2051
|
(s.stop === e.stop || e.stop == null) && // if tail chunk goes just after last chunk
|
|
2052
2052
|
e.from === s.from + s.toString().length;
|
|
2053
|
-
if (e instanceof
|
|
2053
|
+
if (e instanceof Fe)
|
|
2054
2054
|
n ? s.extend(e.toString()) : this.chunks.push(e);
|
|
2055
2055
|
else if (e instanceof qe) {
|
|
2056
2056
|
if (e.stop == null) {
|
|
@@ -2062,8 +2062,8 @@ class qe {
|
|
|
2062
2062
|
}
|
|
2063
2063
|
}
|
|
2064
2064
|
appendTo(e) {
|
|
2065
|
-
if (!(e instanceof
|
|
2066
|
-
return new
|
|
2065
|
+
if (!(e instanceof O.MaskedPattern))
|
|
2066
|
+
return new Fe(this.toString()).appendTo(e);
|
|
2067
2067
|
const s = new M();
|
|
2068
2068
|
for (let n = 0; n < this.chunks.length; ++n) {
|
|
2069
2069
|
const r = this.chunks[n], a = e._mapPosToBlock(e.displayValue.length), i = r.stop;
|
|
@@ -2098,7 +2098,7 @@ class qe {
|
|
|
2098
2098
|
...n
|
|
2099
2099
|
} = e;
|
|
2100
2100
|
Object.assign(this, n), this.chunks = s.map((r) => {
|
|
2101
|
-
const a = "chunks" in r ? new qe() : new
|
|
2101
|
+
const a = "chunks" in r ? new qe() : new Fe();
|
|
2102
2102
|
return a.state = r, a;
|
|
2103
2103
|
});
|
|
2104
2104
|
}
|
|
@@ -2193,38 +2193,38 @@ class zn {
|
|
|
2193
2193
|
}
|
|
2194
2194
|
pushLeftBeforeFilled() {
|
|
2195
2195
|
return this._pushLeft(() => {
|
|
2196
|
-
if (!(this.block.isFixed || !this.block.value) && (this.offset = this.block.nearestInputPos(this.offset,
|
|
2196
|
+
if (!(this.block.isFixed || !this.block.value) && (this.offset = this.block.nearestInputPos(this.offset, x.FORCE_LEFT), this.offset !== 0))
|
|
2197
2197
|
return !0;
|
|
2198
2198
|
});
|
|
2199
2199
|
}
|
|
2200
2200
|
pushLeftBeforeInput() {
|
|
2201
2201
|
return this._pushLeft(() => {
|
|
2202
2202
|
if (!this.block.isFixed)
|
|
2203
|
-
return this.offset = this.block.nearestInputPos(this.offset,
|
|
2203
|
+
return this.offset = this.block.nearestInputPos(this.offset, x.LEFT), !0;
|
|
2204
2204
|
});
|
|
2205
2205
|
}
|
|
2206
2206
|
pushLeftBeforeRequired() {
|
|
2207
2207
|
return this._pushLeft(() => {
|
|
2208
2208
|
if (!(this.block.isFixed || this.block.isOptional && !this.block.value))
|
|
2209
|
-
return this.offset = this.block.nearestInputPos(this.offset,
|
|
2209
|
+
return this.offset = this.block.nearestInputPos(this.offset, x.LEFT), !0;
|
|
2210
2210
|
});
|
|
2211
2211
|
}
|
|
2212
2212
|
pushRightBeforeFilled() {
|
|
2213
2213
|
return this._pushRight(() => {
|
|
2214
|
-
if (!(this.block.isFixed || !this.block.value) && (this.offset = this.block.nearestInputPos(this.offset,
|
|
2214
|
+
if (!(this.block.isFixed || !this.block.value) && (this.offset = this.block.nearestInputPos(this.offset, x.FORCE_RIGHT), this.offset !== this.block.value.length))
|
|
2215
2215
|
return !0;
|
|
2216
2216
|
});
|
|
2217
2217
|
}
|
|
2218
2218
|
pushRightBeforeInput() {
|
|
2219
2219
|
return this._pushRight(() => {
|
|
2220
2220
|
if (!this.block.isFixed)
|
|
2221
|
-
return this.offset = this.block.nearestInputPos(this.offset,
|
|
2221
|
+
return this.offset = this.block.nearestInputPos(this.offset, x.NONE), !0;
|
|
2222
2222
|
});
|
|
2223
2223
|
}
|
|
2224
2224
|
pushRightBeforeRequired() {
|
|
2225
2225
|
return this._pushRight(() => {
|
|
2226
2226
|
if (!(this.block.isFixed || this.block.isOptional && !this.block.value))
|
|
2227
|
-
return this.offset = this.block.nearestInputPos(this.offset,
|
|
2227
|
+
return this.offset = this.block.nearestInputPos(this.offset, x.NONE), !0;
|
|
2228
2228
|
});
|
|
2229
2229
|
}
|
|
2230
2230
|
}
|
|
@@ -2257,15 +2257,15 @@ class Es {
|
|
|
2257
2257
|
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 M();
|
|
2258
2258
|
}
|
|
2259
2259
|
nearestInputPos(e, s) {
|
|
2260
|
-
s === void 0 && (s =
|
|
2260
|
+
s === void 0 && (s = x.NONE);
|
|
2261
2261
|
const n = 0, r = this._value.length;
|
|
2262
2262
|
switch (s) {
|
|
2263
|
-
case
|
|
2264
|
-
case
|
|
2263
|
+
case x.LEFT:
|
|
2264
|
+
case x.FORCE_LEFT:
|
|
2265
2265
|
return n;
|
|
2266
|
-
case
|
|
2267
|
-
case
|
|
2268
|
-
case
|
|
2266
|
+
case x.NONE:
|
|
2267
|
+
case x.RIGHT:
|
|
2268
|
+
case x.FORCE_RIGHT:
|
|
2269
2269
|
default:
|
|
2270
2270
|
return r;
|
|
2271
2271
|
}
|
|
@@ -2300,10 +2300,10 @@ class Es {
|
|
|
2300
2300
|
return this.isFilled || (this._value = e.inserted = this.char), e;
|
|
2301
2301
|
}
|
|
2302
2302
|
extractTail() {
|
|
2303
|
-
return new
|
|
2303
|
+
return new Fe("");
|
|
2304
2304
|
}
|
|
2305
2305
|
appendTail(e) {
|
|
2306
|
-
return
|
|
2306
|
+
return Me(e) && (e = new Fe(String(e))), e.appendTo(this);
|
|
2307
2307
|
}
|
|
2308
2308
|
append(e, s, n) {
|
|
2309
2309
|
const r = this._appendChar(e[0], s);
|
|
@@ -2343,7 +2343,7 @@ class dt {
|
|
|
2343
2343
|
eager: l,
|
|
2344
2344
|
...u
|
|
2345
2345
|
} = e;
|
|
2346
|
-
this.masked =
|
|
2346
|
+
this.masked = Re(u), Object.assign(this, {
|
|
2347
2347
|
parent: s,
|
|
2348
2348
|
isOptional: n,
|
|
2349
2349
|
placeholderChar: r,
|
|
@@ -2400,16 +2400,16 @@ class dt {
|
|
|
2400
2400
|
return e === void 0 && (e = 0), s === void 0 && (s = this.value.length), this.masked.extractInput(e, s, n);
|
|
2401
2401
|
}
|
|
2402
2402
|
nearestInputPos(e, s) {
|
|
2403
|
-
s === void 0 && (s =
|
|
2403
|
+
s === void 0 && (s = x.NONE);
|
|
2404
2404
|
const n = 0, r = this.value.length, a = Math.min(Math.max(e, n), r);
|
|
2405
2405
|
switch (s) {
|
|
2406
|
-
case
|
|
2407
|
-
case
|
|
2406
|
+
case x.LEFT:
|
|
2407
|
+
case x.FORCE_LEFT:
|
|
2408
2408
|
return this.isComplete ? a : n;
|
|
2409
|
-
case
|
|
2410
|
-
case
|
|
2409
|
+
case x.RIGHT:
|
|
2410
|
+
case x.FORCE_RIGHT:
|
|
2411
2411
|
return this.isComplete ? a : r;
|
|
2412
|
-
case
|
|
2412
|
+
case x.NONE:
|
|
2413
2413
|
default:
|
|
2414
2414
|
return a;
|
|
2415
2415
|
}
|
|
@@ -2451,7 +2451,7 @@ dt.DEFAULT_DEFINITIONS = {
|
|
|
2451
2451
|
// http://stackoverflow.com/a/22075070
|
|
2452
2452
|
"*": /./
|
|
2453
2453
|
};
|
|
2454
|
-
class Hn extends
|
|
2454
|
+
class Hn extends ie {
|
|
2455
2455
|
/** */
|
|
2456
2456
|
/** Enable characters overwriting */
|
|
2457
2457
|
/** */
|
|
@@ -2465,8 +2465,8 @@ class Hn extends re {
|
|
|
2465
2465
|
s && (e.validate = (n) => n.search(s) >= 0), super._update(e);
|
|
2466
2466
|
}
|
|
2467
2467
|
}
|
|
2468
|
-
|
|
2469
|
-
class
|
|
2468
|
+
O.MaskedRegExp = Hn;
|
|
2469
|
+
class oe extends ie {
|
|
2470
2470
|
/** */
|
|
2471
2471
|
/** */
|
|
2472
2472
|
/** Single char for empty input */
|
|
@@ -2478,7 +2478,7 @@ class ae extends re {
|
|
|
2478
2478
|
/** */
|
|
2479
2479
|
constructor(e) {
|
|
2480
2480
|
super({
|
|
2481
|
-
...
|
|
2481
|
+
...oe.DEFAULTS,
|
|
2482
2482
|
...e,
|
|
2483
2483
|
definitions: Object.assign({}, dt.DEFAULT_DEFINITIONS, e == null ? void 0 : e.definitions)
|
|
2484
2484
|
});
|
|
@@ -2504,7 +2504,7 @@ class ae extends re {
|
|
|
2504
2504
|
const {
|
|
2505
2505
|
expose: _,
|
|
2506
2506
|
repeat: y,
|
|
2507
|
-
...
|
|
2507
|
+
...S
|
|
2508
2508
|
} = Je(this.blocks[f]), v = {
|
|
2509
2509
|
lazy: this.lazy,
|
|
2510
2510
|
eager: this.eager,
|
|
@@ -2512,19 +2512,19 @@ class ae extends re {
|
|
|
2512
2512
|
displayChar: this.displayChar,
|
|
2513
2513
|
overwrite: this.overwrite,
|
|
2514
2514
|
autofix: this.autofix,
|
|
2515
|
-
...
|
|
2515
|
+
...S,
|
|
2516
2516
|
repeat: y,
|
|
2517
2517
|
parent: this
|
|
2518
|
-
}, m = y != null ? new
|
|
2518
|
+
}, m = y != null ? new O.RepeatBlock(
|
|
2519
2519
|
v
|
|
2520
2520
|
/* TODO */
|
|
2521
|
-
) :
|
|
2521
|
+
) : Re(v);
|
|
2522
2522
|
m && (this._blocks.push(m), _ && (this.exposeBlock = m), this._maskedBlocks[f] || (this._maskedBlocks[f] = []), this._maskedBlocks[f].push(this._blocks.length - 1)), a += f.length - 1;
|
|
2523
2523
|
continue;
|
|
2524
2524
|
}
|
|
2525
2525
|
}
|
|
2526
2526
|
let i = s[a], l = i in e;
|
|
2527
|
-
if (i ===
|
|
2527
|
+
if (i === oe.STOP_CHAR) {
|
|
2528
2528
|
this._stops.push(this._blocks.length);
|
|
2529
2529
|
continue;
|
|
2530
2530
|
}
|
|
@@ -2536,7 +2536,7 @@ class ae extends re {
|
|
|
2536
2536
|
r = !r;
|
|
2537
2537
|
continue;
|
|
2538
2538
|
}
|
|
2539
|
-
if (i ===
|
|
2539
|
+
if (i === oe.ESCAPE_CHAR) {
|
|
2540
2540
|
if (++a, i = s[a], !i) break;
|
|
2541
2541
|
l = !1;
|
|
2542
2542
|
}
|
|
@@ -2727,22 +2727,22 @@ class ae extends re {
|
|
|
2727
2727
|
}), n;
|
|
2728
2728
|
}
|
|
2729
2729
|
nearestInputPos(e, s) {
|
|
2730
|
-
if (s === void 0 && (s =
|
|
2730
|
+
if (s === void 0 && (s = x.NONE), !this._blocks.length) return 0;
|
|
2731
2731
|
const n = new zn(this, e);
|
|
2732
|
-
if (s ===
|
|
2732
|
+
if (s === x.NONE)
|
|
2733
2733
|
return n.pushRightBeforeInput() || (n.popState(), n.pushLeftBeforeInput()) ? n.pos : this.displayValue.length;
|
|
2734
|
-
if (s ===
|
|
2735
|
-
if (s ===
|
|
2734
|
+
if (s === x.LEFT || s === x.FORCE_LEFT) {
|
|
2735
|
+
if (s === x.LEFT) {
|
|
2736
2736
|
if (n.pushRightBeforeFilled(), n.ok && n.pos === e) return e;
|
|
2737
2737
|
n.popState();
|
|
2738
2738
|
}
|
|
2739
|
-
if (n.pushLeftBeforeInput(), n.pushLeftBeforeRequired(), n.pushLeftBeforeFilled(), s ===
|
|
2739
|
+
if (n.pushLeftBeforeInput(), n.pushLeftBeforeRequired(), n.pushLeftBeforeFilled(), s === x.LEFT) {
|
|
2740
2740
|
if (n.pushRightBeforeInput(), n.pushRightBeforeRequired(), n.ok && n.pos <= e || (n.popState(), n.ok && n.pos <= e)) return n.pos;
|
|
2741
2741
|
n.popState();
|
|
2742
2742
|
}
|
|
2743
|
-
return n.ok ? n.pos : s ===
|
|
2743
|
+
return n.ok ? n.pos : s === x.FORCE_LEFT ? 0 : (n.popState(), n.ok || (n.popState(), n.ok) ? n.pos : 0);
|
|
2744
2744
|
}
|
|
2745
|
-
return s ===
|
|
2745
|
+
return s === x.RIGHT || s === x.FORCE_RIGHT ? (n.pushRightBeforeInput(), n.pushRightBeforeRequired(), n.pushRightBeforeFilled() ? n.pos : s === x.FORCE_RIGHT ? this.displayValue.length : (n.popState(), n.ok || (n.popState(), n.ok) ? n.pos : this.nearestInputPos(e, x.LEFT))) : e;
|
|
2746
2746
|
}
|
|
2747
2747
|
totalInputPositions(e, s) {
|
|
2748
2748
|
e === void 0 && (e = 0), s === void 0 && (s = this.displayValue.length);
|
|
@@ -2765,17 +2765,17 @@ class ae extends re {
|
|
|
2765
2765
|
return this._forEachBlocksInRange(0, this.displayValue.length, (n) => s.aggregate(n.pad(e))), s;
|
|
2766
2766
|
}
|
|
2767
2767
|
}
|
|
2768
|
-
|
|
2769
|
-
...
|
|
2768
|
+
oe.DEFAULTS = {
|
|
2769
|
+
...ie.DEFAULTS,
|
|
2770
2770
|
lazy: !0,
|
|
2771
2771
|
placeholderChar: "_"
|
|
2772
2772
|
};
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
class it extends
|
|
2773
|
+
oe.STOP_CHAR = "`";
|
|
2774
|
+
oe.ESCAPE_CHAR = "\\";
|
|
2775
|
+
oe.InputDefinition = dt;
|
|
2776
|
+
oe.FixedDefinition = Es;
|
|
2777
|
+
O.MaskedPattern = oe;
|
|
2778
|
+
class it extends oe {
|
|
2779
2779
|
/**
|
|
2780
2780
|
Optionally sets max length of pattern.
|
|
2781
2781
|
Used when pattern length is longer then `to` param length. Pads zeros at start in this case.
|
|
@@ -2842,9 +2842,9 @@ class it extends ae {
|
|
|
2842
2842
|
return s;
|
|
2843
2843
|
}
|
|
2844
2844
|
}
|
|
2845
|
-
|
|
2845
|
+
O.MaskedRange = it;
|
|
2846
2846
|
const Wn = "d{.}`m{.}`Y";
|
|
2847
|
-
class
|
|
2847
|
+
class Ie extends oe {
|
|
2848
2848
|
static extractPatternOptions(e) {
|
|
2849
2849
|
const {
|
|
2850
2850
|
mask: s,
|
|
@@ -2853,7 +2853,7 @@ class Oe extends ae {
|
|
|
2853
2853
|
} = e;
|
|
2854
2854
|
return {
|
|
2855
2855
|
...r,
|
|
2856
|
-
mask:
|
|
2856
|
+
mask: Me(s) ? s : n
|
|
2857
2857
|
};
|
|
2858
2858
|
}
|
|
2859
2859
|
/** Pattern mask for date according to {@link MaskedDate#format} */
|
|
@@ -2862,8 +2862,8 @@ class Oe extends ae {
|
|
|
2862
2862
|
/** Format typed value to string */
|
|
2863
2863
|
/** Parse string to get typed value */
|
|
2864
2864
|
constructor(e) {
|
|
2865
|
-
super(
|
|
2866
|
-
...
|
|
2865
|
+
super(Ie.extractPatternOptions({
|
|
2866
|
+
...Ie.DEFAULTS,
|
|
2867
2867
|
...e
|
|
2868
2868
|
}));
|
|
2869
2869
|
}
|
|
@@ -2877,12 +2877,12 @@ class Oe extends ae {
|
|
|
2877
2877
|
blocks: r,
|
|
2878
2878
|
...a
|
|
2879
2879
|
} = {
|
|
2880
|
-
...
|
|
2880
|
+
...Ie.DEFAULTS,
|
|
2881
2881
|
...e
|
|
2882
|
-
}, i = Object.assign({},
|
|
2882
|
+
}, i = Object.assign({}, Ie.GET_DEFAULT_BLOCKS());
|
|
2883
2883
|
e.min && (i.Y.from = e.min.getFullYear()), e.max && (i.Y.to = e.max.getFullYear()), e.min && e.max && i.Y.from === i.Y.to && (i.m.from = e.min.getMonth() + 1, i.m.to = e.max.getMonth() + 1, i.m.from === i.m.to && (i.d.from = e.min.getDate(), i.d.to = e.max.getDate())), Object.assign(i, this.blocks, r), super._update({
|
|
2884
2884
|
...a,
|
|
2885
|
-
mask:
|
|
2885
|
+
mask: Me(s) ? s : n,
|
|
2886
2886
|
blocks: i
|
|
2887
2887
|
});
|
|
2888
2888
|
}
|
|
@@ -2911,10 +2911,10 @@ class Oe extends ae {
|
|
|
2911
2911
|
return e === Date || super.maskEquals(e);
|
|
2912
2912
|
}
|
|
2913
2913
|
optionsIsChanged(e) {
|
|
2914
|
-
return super.optionsIsChanged(
|
|
2914
|
+
return super.optionsIsChanged(Ie.extractPatternOptions(e));
|
|
2915
2915
|
}
|
|
2916
2916
|
}
|
|
2917
|
-
|
|
2917
|
+
Ie.GET_DEFAULT_BLOCKS = () => ({
|
|
2918
2918
|
d: {
|
|
2919
2919
|
mask: it,
|
|
2920
2920
|
from: 1,
|
|
@@ -2933,8 +2933,8 @@ Oe.GET_DEFAULT_BLOCKS = () => ({
|
|
|
2933
2933
|
to: 9999
|
|
2934
2934
|
}
|
|
2935
2935
|
});
|
|
2936
|
-
|
|
2937
|
-
...
|
|
2936
|
+
Ie.DEFAULTS = {
|
|
2937
|
+
...oe.DEFAULTS,
|
|
2938
2938
|
mask: Date,
|
|
2939
2939
|
pattern: Wn,
|
|
2940
2940
|
format: (t, e) => {
|
|
@@ -2947,8 +2947,8 @@ Oe.DEFAULTS = {
|
|
|
2947
2947
|
return new Date(r, n - 1, s);
|
|
2948
2948
|
}
|
|
2949
2949
|
};
|
|
2950
|
-
|
|
2951
|
-
class gt extends
|
|
2950
|
+
O.MaskedDate = Ie;
|
|
2951
|
+
class gt extends ie {
|
|
2952
2952
|
constructor(e) {
|
|
2953
2953
|
super({
|
|
2954
2954
|
...gt.DEFAULTS,
|
|
@@ -2963,7 +2963,7 @@ class gt extends re {
|
|
|
2963
2963
|
const {
|
|
2964
2964
|
expose: n,
|
|
2965
2965
|
...r
|
|
2966
|
-
} = Je(s), a =
|
|
2966
|
+
} = Je(s), a = Re({
|
|
2967
2967
|
overwrite: this._overwrite,
|
|
2968
2968
|
eager: this._eager,
|
|
2969
2969
|
skipInvalid: this._skipInvalid,
|
|
@@ -3145,24 +3145,24 @@ class gt extends re {
|
|
|
3145
3145
|
}
|
|
3146
3146
|
}
|
|
3147
3147
|
gt.DEFAULTS = {
|
|
3148
|
-
...
|
|
3148
|
+
...ie.DEFAULTS,
|
|
3149
3149
|
dispatch: (t, e, s, n) => {
|
|
3150
3150
|
if (!e.compiledMasks.length) return;
|
|
3151
3151
|
const r = e.rawInputValue, a = e.compiledMasks.map((i, l) => {
|
|
3152
|
-
const u = e.currentMask === i, d = u ? i.displayValue.length : i.nearestInputPos(i.displayValue.length,
|
|
3152
|
+
const u = e.currentMask === i, d = u ? i.displayValue.length : i.nearestInputPos(i.displayValue.length, x.FORCE_LEFT);
|
|
3153
3153
|
return i.rawInputValue !== r ? (i.reset(), i.append(r, {
|
|
3154
3154
|
raw: !0
|
|
3155
3155
|
})) : u || i.remove(d), i.append(t, e.currentMaskFlags(s)), i.appendTail(n), {
|
|
3156
3156
|
index: l,
|
|
3157
3157
|
weight: i.rawInputValue.length,
|
|
3158
|
-
totalInputPositions: i.totalInputPositions(0, Math.max(d, i.nearestInputPos(i.displayValue.length,
|
|
3158
|
+
totalInputPositions: i.totalInputPositions(0, Math.max(d, i.nearestInputPos(i.displayValue.length, x.FORCE_LEFT)))
|
|
3159
3159
|
};
|
|
3160
3160
|
});
|
|
3161
3161
|
return a.sort((i, l) => l.weight - i.weight || l.totalInputPositions - i.totalInputPositions), e.compiledMasks[a[0].index];
|
|
3162
3162
|
}
|
|
3163
3163
|
};
|
|
3164
|
-
|
|
3165
|
-
class mt extends
|
|
3164
|
+
O.MaskedDynamic = gt;
|
|
3165
|
+
class mt extends oe {
|
|
3166
3166
|
constructor(e) {
|
|
3167
3167
|
super({
|
|
3168
3168
|
...mt.DEFAULTS,
|
|
@@ -3185,7 +3185,7 @@ class mt extends ae {
|
|
|
3185
3185
|
}
|
|
3186
3186
|
_appendCharRaw(e, s) {
|
|
3187
3187
|
s === void 0 && (s = {});
|
|
3188
|
-
const n = Math.min(this.nearestInputPos(0,
|
|
3188
|
+
const n = Math.min(this.nearestInputPos(0, x.FORCE_RIGHT), this.value.length), r = this.enum.filter((a) => this.matchValue(a, this.unmaskedValue + e, n));
|
|
3189
3189
|
if (r.length) {
|
|
3190
3190
|
r.length === 1 && this._forEachBlocksInRange(0, this.value.length, (i, l) => {
|
|
3191
3191
|
const u = r[0][l];
|
|
@@ -3199,11 +3199,11 @@ class mt extends ae {
|
|
|
3199
3199
|
});
|
|
3200
3200
|
}
|
|
3201
3201
|
extractTail(e, s) {
|
|
3202
|
-
return e === void 0 && (e = 0), s === void 0 && (s = this.displayValue.length), new
|
|
3202
|
+
return e === void 0 && (e = 0), s === void 0 && (s = this.displayValue.length), new Fe("", e);
|
|
3203
3203
|
}
|
|
3204
3204
|
remove(e, s) {
|
|
3205
3205
|
if (e === void 0 && (e = 0), s === void 0 && (s = this.displayValue.length), e === s) return new M();
|
|
3206
|
-
const n = Math.min(super.nearestInputPos(0,
|
|
3206
|
+
const n = Math.min(super.nearestInputPos(0, x.FORCE_RIGHT), this.value.length);
|
|
3207
3207
|
let r;
|
|
3208
3208
|
for (r = e; r >= 0 && !(this.enum.filter((l) => this.matchValue(l, this.value.slice(n, r), n)).length > 1); --r)
|
|
3209
3209
|
;
|
|
@@ -3215,11 +3215,11 @@ class mt extends ae {
|
|
|
3215
3215
|
}
|
|
3216
3216
|
}
|
|
3217
3217
|
mt.DEFAULTS = {
|
|
3218
|
-
...
|
|
3218
|
+
...oe.DEFAULTS,
|
|
3219
3219
|
matchValue: (t, e, s) => t.indexOf(e, s) === s
|
|
3220
3220
|
};
|
|
3221
|
-
|
|
3222
|
-
class Yn extends
|
|
3221
|
+
O.MaskedEnum = mt;
|
|
3222
|
+
class Yn extends ie {
|
|
3223
3223
|
/** */
|
|
3224
3224
|
/** Enable characters overwriting */
|
|
3225
3225
|
/** */
|
|
@@ -3235,9 +3235,9 @@ class Yn extends re {
|
|
|
3235
3235
|
});
|
|
3236
3236
|
}
|
|
3237
3237
|
}
|
|
3238
|
-
|
|
3238
|
+
O.MaskedFunction = Yn;
|
|
3239
3239
|
var Ss;
|
|
3240
|
-
class
|
|
3240
|
+
class ge extends ie {
|
|
3241
3241
|
/** Single char */
|
|
3242
3242
|
/** Single char */
|
|
3243
3243
|
/** Array of single chars */
|
|
@@ -3254,7 +3254,7 @@ class he extends re {
|
|
|
3254
3254
|
/** Parse string to get typed value */
|
|
3255
3255
|
constructor(e) {
|
|
3256
3256
|
super({
|
|
3257
|
-
...
|
|
3257
|
+
...ge.DEFAULTS,
|
|
3258
3258
|
...e
|
|
3259
3259
|
});
|
|
3260
3260
|
}
|
|
@@ -3311,7 +3311,7 @@ class he extends re {
|
|
|
3311
3311
|
let l = !isNaN(i), u = !1;
|
|
3312
3312
|
if (l) {
|
|
3313
3313
|
let _;
|
|
3314
|
-
this.min != null && this.min < 0 && this.number < this.min && (_ = this.min), this.max != null && this.max > 0 && this.number > this.max && (_ = this.max), _ != null && (this.autofix ? (this._value = this.format(_, this).replace(
|
|
3314
|
+
this.min != null && this.min < 0 && this.number < this.min && (_ = this.min), this.max != null && this.max > 0 && this.number > this.max && (_ = this.max), _ != null && (this.autofix ? (this._value = this.format(_, this).replace(ge.UNMASKED_RADIX, this.radix), u || (u = a === this._value && !s.tail)) : l = !1), l && (l = !!this._value.match(this._numberRegExp));
|
|
3315
3315
|
}
|
|
3316
3316
|
let d;
|
|
3317
3317
|
l ? d = new M({
|
|
@@ -3347,19 +3347,19 @@ class he extends re {
|
|
|
3347
3347
|
nearestInputPos(e, s) {
|
|
3348
3348
|
if (!this.thousandsSeparator) return e;
|
|
3349
3349
|
switch (s) {
|
|
3350
|
-
case
|
|
3351
|
-
case
|
|
3352
|
-
case
|
|
3350
|
+
case x.NONE:
|
|
3351
|
+
case x.LEFT:
|
|
3352
|
+
case x.FORCE_LEFT: {
|
|
3353
3353
|
const n = this._findSeparatorAround(e - 1);
|
|
3354
3354
|
if (n >= 0) {
|
|
3355
3355
|
const r = n + this.thousandsSeparator.length;
|
|
3356
|
-
if (e < r || this.value.length <= r || s ===
|
|
3356
|
+
if (e < r || this.value.length <= r || s === x.FORCE_LEFT)
|
|
3357
3357
|
return n;
|
|
3358
3358
|
}
|
|
3359
3359
|
break;
|
|
3360
3360
|
}
|
|
3361
|
-
case
|
|
3362
|
-
case
|
|
3361
|
+
case x.RIGHT:
|
|
3362
|
+
case x.FORCE_RIGHT: {
|
|
3363
3363
|
const n = this._findSeparatorAround(e);
|
|
3364
3364
|
if (n >= 0)
|
|
3365
3365
|
return n + this.thousandsSeparator.length;
|
|
@@ -3388,11 +3388,11 @@ class he extends re {
|
|
|
3388
3388
|
}
|
|
3389
3389
|
doSkipInvalid(e, s, n) {
|
|
3390
3390
|
s === void 0 && (s = {});
|
|
3391
|
-
const r = this.scale === 0 && e !== this.thousandsSeparator && (e === this.radix || e ===
|
|
3391
|
+
const r = this.scale === 0 && e !== this.thousandsSeparator && (e === this.radix || e === ge.UNMASKED_RADIX || this.mapToRadix.includes(e));
|
|
3392
3392
|
return super.doSkipInvalid(e, s, n) && !r;
|
|
3393
3393
|
}
|
|
3394
3394
|
get unmaskedValue() {
|
|
3395
|
-
return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,
|
|
3395
|
+
return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix, ge.UNMASKED_RADIX);
|
|
3396
3396
|
}
|
|
3397
3397
|
set unmaskedValue(e) {
|
|
3398
3398
|
super.unmaskedValue = e;
|
|
@@ -3401,7 +3401,7 @@ class he extends re {
|
|
|
3401
3401
|
return this.parse(this.unmaskedValue, this);
|
|
3402
3402
|
}
|
|
3403
3403
|
set typedValue(e) {
|
|
3404
|
-
this.rawInputValue = this.format(e, this).replace(
|
|
3404
|
+
this.rawInputValue = this.format(e, this).replace(ge.UNMASKED_RADIX, this.radix);
|
|
3405
3405
|
}
|
|
3406
3406
|
/** Parsed Number */
|
|
3407
3407
|
get number() {
|
|
@@ -3417,14 +3417,14 @@ class he extends re {
|
|
|
3417
3417
|
return this.min != null && this.min > 0 || this.max != null && this.max > 0;
|
|
3418
3418
|
}
|
|
3419
3419
|
typedValueEquals(e) {
|
|
3420
|
-
return (super.typedValueEquals(e) ||
|
|
3420
|
+
return (super.typedValueEquals(e) || ge.EMPTY_VALUES.includes(e) && ge.EMPTY_VALUES.includes(this.typedValue)) && !(e === 0 && this.value === "");
|
|
3421
3421
|
}
|
|
3422
3422
|
}
|
|
3423
|
-
Ss =
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
...
|
|
3423
|
+
Ss = ge;
|
|
3424
|
+
ge.UNMASKED_RADIX = ".";
|
|
3425
|
+
ge.EMPTY_VALUES = [...ie.EMPTY_VALUES, 0];
|
|
3426
|
+
ge.DEFAULTS = {
|
|
3427
|
+
...ie.DEFAULTS,
|
|
3428
3428
|
mask: Number,
|
|
3429
3429
|
radix: ",",
|
|
3430
3430
|
thousandsSeparator: "",
|
|
@@ -3440,24 +3440,24 @@ he.DEFAULTS = {
|
|
|
3440
3440
|
maximumFractionDigits: 20
|
|
3441
3441
|
})
|
|
3442
3442
|
};
|
|
3443
|
-
|
|
3444
|
-
const
|
|
3443
|
+
O.MaskedNumber = ge;
|
|
3444
|
+
const Dt = {
|
|
3445
3445
|
MASKED: "value",
|
|
3446
3446
|
UNMASKED: "unmaskedValue",
|
|
3447
3447
|
TYPED: "typedValue"
|
|
3448
3448
|
};
|
|
3449
3449
|
function Cs(t, e, s) {
|
|
3450
|
-
e === void 0 && (e =
|
|
3451
|
-
const n =
|
|
3450
|
+
e === void 0 && (e = Dt.MASKED), s === void 0 && (s = Dt.MASKED);
|
|
3451
|
+
const n = Re(t);
|
|
3452
3452
|
return (r) => n.runIsolated((a) => (a[e] = r, a[s]));
|
|
3453
3453
|
}
|
|
3454
3454
|
function Xn(t, e, s, n) {
|
|
3455
3455
|
return Cs(e, s, n)(t);
|
|
3456
3456
|
}
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
class Kn extends
|
|
3457
|
+
O.PIPE_TYPE = Dt;
|
|
3458
|
+
O.createPipe = Cs;
|
|
3459
|
+
O.pipe = Xn;
|
|
3460
|
+
class Kn extends oe {
|
|
3461
3461
|
get repeatFrom() {
|
|
3462
3462
|
var e;
|
|
3463
3463
|
return (e = Array.isArray(this.repeat) ? this.repeat[0] : this.repeat === 1 / 0 ? 0 : this.repeat) != null ? e : 0;
|
|
@@ -3479,7 +3479,7 @@ class Kn extends ae {
|
|
|
3479
3479
|
...i
|
|
3480
3480
|
} = Je(e);
|
|
3481
3481
|
this._blockOpts = Object.assign({}, this._blockOpts, i);
|
|
3482
|
-
const l =
|
|
3482
|
+
const l = Re(this._blockOpts);
|
|
3483
3483
|
this.repeat = (s = (n = a ?? l.repeat) != null ? n : this.repeat) != null ? s : 1 / 0, super._update({
|
|
3484
3484
|
mask: "m".repeat(Math.max(this.repeatTo === 1 / 0 && ((r = this._blocks) == null ? void 0 : r.length) || 0, this.repeatFrom)),
|
|
3485
3485
|
blocks: {
|
|
@@ -3496,7 +3496,7 @@ class Kn extends ae {
|
|
|
3496
3496
|
_allocateBlock(e) {
|
|
3497
3497
|
if (e < this._blocks.length) return this._blocks[e];
|
|
3498
3498
|
if (this.repeatTo === 1 / 0 || this._blocks.length < this.repeatTo)
|
|
3499
|
-
return this._blocks.push(
|
|
3499
|
+
return this._blocks.push(Re(this._blockOpts)), this.mask += "m", this._blocks[this._blocks.length - 1];
|
|
3500
3500
|
}
|
|
3501
3501
|
_appendCharRaw(e, s) {
|
|
3502
3502
|
s === void 0 && (s = {});
|
|
@@ -3550,14 +3550,14 @@ class Kn extends ae {
|
|
|
3550
3550
|
this._blocks.length = e._blocks.length, this.mask = this.mask.slice(0, this._blocks.length), super.state = e;
|
|
3551
3551
|
}
|
|
3552
3552
|
}
|
|
3553
|
-
|
|
3553
|
+
O.RepeatBlock = Kn;
|
|
3554
3554
|
try {
|
|
3555
|
-
globalThis.IMask =
|
|
3555
|
+
globalThis.IMask = O;
|
|
3556
3556
|
} catch {
|
|
3557
3557
|
}
|
|
3558
|
-
const
|
|
3558
|
+
const xs = {
|
|
3559
3559
|
// common
|
|
3560
|
-
mask: o.oneOfType([o.array, o.func, o.string, o.instanceOf(RegExp), o.oneOf([Date, Number,
|
|
3560
|
+
mask: o.oneOfType([o.array, o.func, o.string, o.instanceOf(RegExp), o.oneOf([Date, Number, O.Masked]), o.instanceOf(O.Masked)]),
|
|
3561
3561
|
value: o.any,
|
|
3562
3562
|
unmask: o.oneOfType([o.bool, o.oneOf(["typed"])]),
|
|
3563
3563
|
prepare: o.func,
|
|
@@ -3602,10 +3602,10 @@ const ws = {
|
|
|
3602
3602
|
inputRef: o.oneOfType([o.func, o.shape({
|
|
3603
3603
|
current: o.object
|
|
3604
3604
|
})])
|
|
3605
|
-
},
|
|
3605
|
+
}, ws = Object.keys(xs).filter((t) => t !== "value"), Gn = ["value", "unmask", "onAccept", "onComplete", "inputRef"], Zn = ws.filter((t) => Gn.indexOf(t) < 0);
|
|
3606
3606
|
function Qn(t) {
|
|
3607
3607
|
var e;
|
|
3608
|
-
const s = (e = class extends
|
|
3608
|
+
const s = (e = class extends Se.Component {
|
|
3609
3609
|
constructor(a) {
|
|
3610
3610
|
super(a), this._inputRef = this._inputRef.bind(this);
|
|
3611
3611
|
}
|
|
@@ -3628,7 +3628,7 @@ function Qn(t) {
|
|
|
3628
3628
|
this.element = a, this.props.inputRef && (Object.prototype.hasOwnProperty.call(this.props.inputRef, "current") ? this.props.inputRef.current = a : this.props.inputRef(a));
|
|
3629
3629
|
}
|
|
3630
3630
|
initMask(a) {
|
|
3631
|
-
a === void 0 && (a = this._extractMaskOptionsFromProps(this.props)), this.maskRef =
|
|
3631
|
+
a === void 0 && (a = this._extractMaskOptionsFromProps(this.props)), this.maskRef = O(this.element, a).on("accept", this._onAccept.bind(this)).on("complete", this._onComplete.bind(this)), "value" in this.props && this.props.value !== void 0 && (this.maskValue = this.props.value);
|
|
3632
3632
|
}
|
|
3633
3633
|
destroyMask() {
|
|
3634
3634
|
this.maskRef && (this.maskRef.destroy(), delete this.maskRef);
|
|
@@ -3645,7 +3645,7 @@ function Qn(t) {
|
|
|
3645
3645
|
const {
|
|
3646
3646
|
...i
|
|
3647
3647
|
} = a;
|
|
3648
|
-
return
|
|
3648
|
+
return ws.forEach((l) => {
|
|
3649
3649
|
l !== "maxLength" && delete i[l];
|
|
3650
3650
|
}), "defaultValue" in i || (i.defaultValue = a.mask ? "" : i.value), delete i.value, i;
|
|
3651
3651
|
}
|
|
@@ -3662,13 +3662,13 @@ function Qn(t) {
|
|
|
3662
3662
|
this.props.onComplete && this.maskRef && this.props.onComplete(this.maskValue, this.maskRef, a);
|
|
3663
3663
|
}
|
|
3664
3664
|
render() {
|
|
3665
|
-
return
|
|
3665
|
+
return Se.createElement(t, {
|
|
3666
3666
|
...this._extractNonMaskProps(this.props),
|
|
3667
3667
|
inputRef: this._inputRef
|
|
3668
3668
|
});
|
|
3669
3669
|
}
|
|
3670
3670
|
}, e.displayName = void 0, e.propTypes = void 0, e), n = t.displayName || t.name || "Component";
|
|
3671
|
-
return s.displayName = "IMask(" + n + ")", s.propTypes =
|
|
3671
|
+
return s.displayName = "IMask(" + n + ")", s.propTypes = xs, Se.forwardRef((r, a) => Se.createElement(s, {
|
|
3672
3672
|
...r,
|
|
3673
3673
|
ref: a
|
|
3674
3674
|
}));
|
|
@@ -3678,79 +3678,79 @@ const Jn = Qn((t) => {
|
|
|
3678
3678
|
inputRef: e,
|
|
3679
3679
|
...s
|
|
3680
3680
|
} = t;
|
|
3681
|
-
return
|
|
3681
|
+
return Se.createElement("input", {
|
|
3682
3682
|
...s,
|
|
3683
3683
|
ref: e
|
|
3684
3684
|
});
|
|
3685
|
-
}), er = (t, e) =>
|
|
3685
|
+
}), er = (t, e) => Se.createElement(Jn, {
|
|
3686
3686
|
...t,
|
|
3687
3687
|
ref: e
|
|
3688
3688
|
});
|
|
3689
|
-
|
|
3689
|
+
Se.forwardRef(er);
|
|
3690
3690
|
function tr(t, e) {
|
|
3691
3691
|
let {
|
|
3692
3692
|
onAccept: s,
|
|
3693
3693
|
onComplete: n,
|
|
3694
|
-
ref: r =
|
|
3694
|
+
ref: r = He(null),
|
|
3695
3695
|
defaultValue: a,
|
|
3696
3696
|
defaultUnmaskedValue: i,
|
|
3697
3697
|
defaultTypedValue: l
|
|
3698
3698
|
} = e === void 0 ? {} : e;
|
|
3699
|
-
const u =
|
|
3699
|
+
const u = He(null), [d, h] = j({}), [f, _] = j(""), [y, S] = j(""), [v, m] = j(), C = Te(() => {
|
|
3700
3700
|
var p;
|
|
3701
3701
|
(p = u.current) == null || p.destroy(), u.current = null;
|
|
3702
|
-
}, []),
|
|
3702
|
+
}, []), U = Te(() => {
|
|
3703
3703
|
const p = u.current;
|
|
3704
3704
|
p && (h({
|
|
3705
3705
|
value: p.value,
|
|
3706
3706
|
unmaskedValue: p.unmaskedValue,
|
|
3707
3707
|
typedValue: p.typedValue
|
|
3708
|
-
}), m(p.typedValue),
|
|
3709
|
-
}, []),
|
|
3710
|
-
const
|
|
3711
|
-
|
|
3712
|
-
}, [s]),
|
|
3713
|
-
return
|
|
3708
|
+
}), m(p.typedValue), S(p.unmaskedValue), _(p.value));
|
|
3709
|
+
}, []), T = Te((p) => {
|
|
3710
|
+
const A = u.current;
|
|
3711
|
+
A && (U(), s == null || s(A.value, A, p));
|
|
3712
|
+
}, [s]), w = Te((p) => u.current && (n == null ? void 0 : n(u.current.value, u.current, p)), [n]);
|
|
3713
|
+
return G(() => {
|
|
3714
3714
|
const {
|
|
3715
3715
|
value: p,
|
|
3716
|
-
...
|
|
3717
|
-
} = d,
|
|
3718
|
-
!
|
|
3719
|
-
}, [f]),
|
|
3716
|
+
...A
|
|
3717
|
+
} = d, B = u.current;
|
|
3718
|
+
!B || f === void 0 || (p !== f && (B.value = f, B.value !== f && T()), h(A));
|
|
3719
|
+
}, [f]), G(() => {
|
|
3720
3720
|
const {
|
|
3721
3721
|
unmaskedValue: p,
|
|
3722
|
-
...
|
|
3723
|
-
} = d,
|
|
3724
|
-
!
|
|
3725
|
-
}, [y]),
|
|
3722
|
+
...A
|
|
3723
|
+
} = d, B = u.current;
|
|
3724
|
+
!B || y === void 0 || (p !== y && (B.unmaskedValue = y, B.unmaskedValue !== y && T()), h(A));
|
|
3725
|
+
}, [y]), G(() => {
|
|
3726
3726
|
const {
|
|
3727
3727
|
typedValue: p,
|
|
3728
|
-
...
|
|
3729
|
-
} = d,
|
|
3730
|
-
!
|
|
3731
|
-
}, [v]),
|
|
3728
|
+
...A
|
|
3729
|
+
} = d, B = u.current;
|
|
3730
|
+
!B || v === void 0 || (p !== v && (B.typedValue = v, B.masked.typedValueEquals(v) || T()), h(A));
|
|
3731
|
+
}, [v]), G(() => {
|
|
3732
3732
|
const p = r.current;
|
|
3733
|
-
if (!p || !(t != null && t.mask)) return
|
|
3734
|
-
const
|
|
3735
|
-
|
|
3736
|
-
}, [t,
|
|
3733
|
+
if (!p || !(t != null && t.mask)) return C();
|
|
3734
|
+
const A = u.current;
|
|
3735
|
+
A ? A == null || A.updateOptions(t) : p && t != null && t.mask && (u.current = O(p, t), U(), a !== void 0 && _(a), i !== void 0 && S(i), l !== void 0 && m(l));
|
|
3736
|
+
}, [t, C, T]), G(() => {
|
|
3737
3737
|
if (!u.current) return;
|
|
3738
3738
|
const p = u.current;
|
|
3739
|
-
return p.on("accept",
|
|
3740
|
-
p.off("accept",
|
|
3739
|
+
return p.on("accept", T), p.on("complete", w), () => {
|
|
3740
|
+
p.off("accept", T), p.off("complete", w);
|
|
3741
3741
|
};
|
|
3742
|
-
}, [
|
|
3742
|
+
}, [T, w]), G(() => C, [C]), {
|
|
3743
3743
|
ref: r,
|
|
3744
3744
|
maskRef: u,
|
|
3745
3745
|
value: f,
|
|
3746
3746
|
setValue: _,
|
|
3747
3747
|
unmaskedValue: y,
|
|
3748
|
-
setUnmaskedValue:
|
|
3748
|
+
setUnmaskedValue: S,
|
|
3749
3749
|
typedValue: v,
|
|
3750
3750
|
setTypedValue: m
|
|
3751
3751
|
};
|
|
3752
3752
|
}
|
|
3753
|
-
var As = /* @__PURE__ */ ((t) => (t.Text = "text", t.Password = "password", t.Email = "email", t.Date = "date", t.Number = "number", t))(As || {}), Ts = /* @__PURE__ */ ((t) => (t.Small = "small", t.Medium = "medium", t.Large = "large", t))(Ts || {}), Fs = /* @__PURE__ */ ((t) => (t.Default = "", t.Error = "error", t.Success = "success", t))(Fs || {}),
|
|
3753
|
+
var As = /* @__PURE__ */ ((t) => (t.Text = "text", t.Password = "password", t.Email = "email", t.Date = "date", t.Number = "number", t))(As || {}), Ts = /* @__PURE__ */ ((t) => (t.Small = "small", t.Medium = "medium", t.Large = "large", t))(Ts || {}), Fs = /* @__PURE__ */ ((t) => (t.Default = "", t.Error = "error", t.Success = "success", t))(Fs || {}), Ds = /* @__PURE__ */ ((t) => (t.Center = "center", t.End = "end", t.Initial = "initial", t))(Ds || {}), Os = /* @__PURE__ */ ((t) => (t.Top = "top", t.Right = "right", t.Bottom = "bottom", t.Left = "left", t))(Os || {});
|
|
3754
3754
|
const K = {
|
|
3755
3755
|
name: "Input",
|
|
3756
3756
|
class: "ds-input",
|
|
@@ -3829,12 +3829,12 @@ const K = {
|
|
|
3829
3829
|
tooltipPlacement: {
|
|
3830
3830
|
type: String,
|
|
3831
3831
|
default: "center",
|
|
3832
|
-
options: Object.values(
|
|
3832
|
+
options: Object.values(Ds)
|
|
3833
3833
|
},
|
|
3834
3834
|
tooltipPosition: {
|
|
3835
3835
|
type: String,
|
|
3836
3836
|
default: "top",
|
|
3837
|
-
options: Object.values(
|
|
3837
|
+
options: Object.values(Os)
|
|
3838
3838
|
},
|
|
3839
3839
|
mask: {
|
|
3840
3840
|
type: String,
|
|
@@ -3888,7 +3888,7 @@ const K = {
|
|
|
3888
3888
|
}
|
|
3889
3889
|
};
|
|
3890
3890
|
var Is = /* @__PURE__ */ ((t) => (t.Top = "top", t.Right = "right", t.Bottom = "bottom", t.Left = "left", t))(Is || {}), Rs = /* @__PURE__ */ ((t) => (t.Center = "center", t.End = "end", t.Initial = "initial", t))(Rs || {});
|
|
3891
|
-
const
|
|
3891
|
+
const we = {
|
|
3892
3892
|
name: "Tooltip",
|
|
3893
3893
|
class: "ds-tooltip",
|
|
3894
3894
|
props: {
|
|
@@ -3911,23 +3911,23 @@ const Se = {
|
|
|
3911
3911
|
default: "ds-tooltip"
|
|
3912
3912
|
}
|
|
3913
3913
|
}
|
|
3914
|
-
},
|
|
3914
|
+
}, We = ({
|
|
3915
3915
|
children: t,
|
|
3916
|
-
position: e =
|
|
3917
|
-
placement: s =
|
|
3918
|
-
text: n =
|
|
3919
|
-
testId: r =
|
|
3916
|
+
position: e = we.props.position.default,
|
|
3917
|
+
placement: s = we.props.placement.default,
|
|
3918
|
+
text: n = we.props.text.default,
|
|
3919
|
+
testId: r = we.props.testId.default,
|
|
3920
3920
|
className: a
|
|
3921
3921
|
}) => {
|
|
3922
|
-
const i =
|
|
3923
|
-
(
|
|
3924
|
-
) && `${
|
|
3925
|
-
(
|
|
3926
|
-
) && `${
|
|
3922
|
+
const i = He(null), [l, u] = j(0), [d, h] = j(0), [f, _] = j(!1), y = e && we.props.position.options.find(
|
|
3923
|
+
(C) => C === e
|
|
3924
|
+
) && `${we.class}--${e}`, S = s && we.props.placement.options.find(
|
|
3925
|
+
(C) => C === s
|
|
3926
|
+
) && `${we.class}--${s}`;
|
|
3927
3927
|
let v;
|
|
3928
3928
|
kn(() => {
|
|
3929
|
-
var
|
|
3930
|
-
i.current && (u((
|
|
3929
|
+
var C, U;
|
|
3930
|
+
i.current && (u((C = i == null ? void 0 : i.current) == null ? void 0 : C.offsetHeight), h((U = i == null ? void 0 : i.current) == null ? void 0 : U.offsetWidth));
|
|
3931
3931
|
}, []);
|
|
3932
3932
|
const m = 9;
|
|
3933
3933
|
switch (e) {
|
|
@@ -3984,10 +3984,10 @@ const Se = {
|
|
|
3984
3984
|
};
|
|
3985
3985
|
break;
|
|
3986
3986
|
}
|
|
3987
|
-
return /* @__PURE__ */
|
|
3987
|
+
return /* @__PURE__ */ R(
|
|
3988
3988
|
"div",
|
|
3989
3989
|
{
|
|
3990
|
-
className: [
|
|
3990
|
+
className: [we.class, a].join(" "),
|
|
3991
3991
|
"data-testid": r,
|
|
3992
3992
|
onMouseEnter: () => _(!0),
|
|
3993
3993
|
onMouseLeave: () => _(!1),
|
|
@@ -3998,11 +3998,11 @@ const Se = {
|
|
|
3998
3998
|
f && /* @__PURE__ */ c(
|
|
3999
3999
|
"div",
|
|
4000
4000
|
{
|
|
4001
|
-
className: [y,
|
|
4001
|
+
className: [y, S].filter((C) => C).join(" "),
|
|
4002
4002
|
children: /* @__PURE__ */ c(
|
|
4003
4003
|
"span",
|
|
4004
4004
|
{
|
|
4005
|
-
className: `${
|
|
4005
|
+
className: `${we.class}__wrapper`,
|
|
4006
4006
|
"data-testid": "ds-tooltip-wrapper",
|
|
4007
4007
|
style: v,
|
|
4008
4008
|
children: n
|
|
@@ -4014,14 +4014,14 @@ const Se = {
|
|
|
4014
4014
|
}
|
|
4015
4015
|
);
|
|
4016
4016
|
};
|
|
4017
|
-
|
|
4017
|
+
We.propTypes = {
|
|
4018
4018
|
position: o.string,
|
|
4019
4019
|
placement: o.string,
|
|
4020
4020
|
text: o.oneOfType([o.string, o.node]),
|
|
4021
4021
|
testId: o.string
|
|
4022
4022
|
};
|
|
4023
|
-
|
|
4024
|
-
const et =
|
|
4023
|
+
We.displayName = "DsTooltip";
|
|
4024
|
+
const et = Se.forwardRef(
|
|
4025
4025
|
({
|
|
4026
4026
|
name: t,
|
|
4027
4027
|
testId: e = K.props.testId.default,
|
|
@@ -4037,64 +4037,64 @@ const et = ke.forwardRef(
|
|
|
4037
4037
|
tooltipPosition: f = K.props.tooltipPosition.default,
|
|
4038
4038
|
tooltipPlacement: _ = K.props.tooltipPlacement.default,
|
|
4039
4039
|
icon: y = K.props.icon.default,
|
|
4040
|
-
status:
|
|
4040
|
+
status: S = K.props.status.default,
|
|
4041
4041
|
feedback: v,
|
|
4042
4042
|
hasFeedback: m = K.props.hasFeedback.default,
|
|
4043
|
-
noMargin:
|
|
4044
|
-
disabled:
|
|
4045
|
-
className:
|
|
4046
|
-
mask:
|
|
4043
|
+
noMargin: C = K.props.noMargin.default,
|
|
4044
|
+
disabled: U = K.props.disabled.default,
|
|
4045
|
+
className: T,
|
|
4046
|
+
mask: w,
|
|
4047
4047
|
onChangeHandler: p = K.props.onChangeHandler.default,
|
|
4048
|
-
onBlurHandler:
|
|
4049
|
-
onKeyDownHandler:
|
|
4048
|
+
onBlurHandler: A,
|
|
4049
|
+
onKeyDownHandler: B,
|
|
4050
4050
|
onFocusHandler: z
|
|
4051
|
-
},
|
|
4052
|
-
const [te,
|
|
4053
|
-
if (
|
|
4051
|
+
}, L) => {
|
|
4052
|
+
const [te, le] = j(!1), [ue, ye] = j(!1), se = !!p && !!w, De = (F, P, J) => {
|
|
4053
|
+
if (se && J) {
|
|
4054
4054
|
const k = {
|
|
4055
4055
|
...J,
|
|
4056
4056
|
target: {
|
|
4057
4057
|
...J.target,
|
|
4058
4058
|
name: t,
|
|
4059
|
-
maskedValue:
|
|
4060
|
-
value:
|
|
4059
|
+
maskedValue: F,
|
|
4060
|
+
value: P.unmaskedValue,
|
|
4061
4061
|
type: "text"
|
|
4062
4062
|
}
|
|
4063
4063
|
};
|
|
4064
4064
|
p(k);
|
|
4065
4065
|
}
|
|
4066
|
-
},
|
|
4067
|
-
...Qt[
|
|
4066
|
+
}, re = ve(() => typeof w == "object" ? { lazy: !0, ...w } : Qt[w] ? {
|
|
4067
|
+
...Qt[w],
|
|
4068
4068
|
min: u,
|
|
4069
4069
|
max: d,
|
|
4070
4070
|
lazy: !0
|
|
4071
|
-
} : { mask:
|
|
4072
|
-
|
|
4071
|
+
} : { mask: w ?? "", min: u, max: d, lazy: !0 }, [w]), { ref: ce, setUnmaskedValue: ke } = tr(
|
|
4072
|
+
re,
|
|
4073
4073
|
{
|
|
4074
|
-
onAccept:
|
|
4074
|
+
onAccept: De
|
|
4075
4075
|
}
|
|
4076
|
-
),
|
|
4077
|
-
p && !
|
|
4078
|
-
}, g = (
|
|
4079
|
-
|
|
4080
|
-
}, E = (
|
|
4081
|
-
|
|
4082
|
-
},
|
|
4083
|
-
|
|
4084
|
-
},
|
|
4085
|
-
|
|
4086
|
-
},
|
|
4087
|
-
const
|
|
4088
|
-
return r &&
|
|
4089
|
-
},
|
|
4090
|
-
const
|
|
4091
|
-
return (te || l) &&
|
|
4092
|
-
}, [l, te]),
|
|
4093
|
-
return
|
|
4094
|
-
|
|
4095
|
-
}, [l,
|
|
4096
|
-
m && /* @__PURE__ */ c("div", { className: "ds-input__feedback", children: v && /* @__PURE__ */
|
|
4097
|
-
/* @__PURE__ */ c(
|
|
4076
|
+
), Ce = (F) => {
|
|
4077
|
+
p && !se && p(F);
|
|
4078
|
+
}, g = (F) => {
|
|
4079
|
+
B && B(F);
|
|
4080
|
+
}, E = (F) => {
|
|
4081
|
+
le(!1), A && A(F);
|
|
4082
|
+
}, $ = (F) => {
|
|
4083
|
+
le(!0), z && z(F);
|
|
4084
|
+
}, N = () => {
|
|
4085
|
+
ye((F) => !F);
|
|
4086
|
+
}, I = ve(() => ue && s === "password" ? "text" : s, [ue, s]), b = () => {
|
|
4087
|
+
const F = [`${K.class}`];
|
|
4088
|
+
return r && F.push(`${K.class}--${r}`), n && F.push(`${K.class}--animated`), C && F.push(`${K.class}--no-margin`), y && F.push(`${K.class}--with-icon`), S && F.push(`${K.class}--${S}`), T && F.push(T), F.join(" ");
|
|
4089
|
+
}, D = ve(() => {
|
|
4090
|
+
const F = [`${K.class}__label`];
|
|
4091
|
+
return (te || l) && F.push(`${K.class}__label--active`), F.join(" ");
|
|
4092
|
+
}, [l, te]), V = () => !n && i ? i : "", q = () => S && S === "error" ? "info" : "check_circle";
|
|
4093
|
+
return G(() => {
|
|
4094
|
+
w && ke(l ?? "");
|
|
4095
|
+
}, [l, w, ke]), /* @__PURE__ */ R("div", { className: b(), ref: L, children: [
|
|
4096
|
+
m && /* @__PURE__ */ c("div", { className: "ds-input__feedback", children: v && /* @__PURE__ */ R(pt, { children: [
|
|
4097
|
+
/* @__PURE__ */ c(Z, { image: q() }),
|
|
4098
4098
|
v
|
|
4099
4099
|
] }) }),
|
|
4100
4100
|
/* @__PURE__ */ c(
|
|
@@ -4102,42 +4102,42 @@ const et = ke.forwardRef(
|
|
|
4102
4102
|
{
|
|
4103
4103
|
className: "ds-input__input",
|
|
4104
4104
|
"data-testid": e,
|
|
4105
|
-
disabled:
|
|
4105
|
+
disabled: U,
|
|
4106
4106
|
id: t,
|
|
4107
4107
|
max: d,
|
|
4108
4108
|
min: u,
|
|
4109
4109
|
name: t,
|
|
4110
4110
|
onBlur: E,
|
|
4111
|
-
onChange:
|
|
4112
|
-
onFocus:
|
|
4113
|
-
onInput:
|
|
4111
|
+
onChange: Ce,
|
|
4112
|
+
onFocus: $,
|
|
4113
|
+
onInput: Ce,
|
|
4114
4114
|
onKeyDown: g,
|
|
4115
|
-
placeholder:
|
|
4116
|
-
ref:
|
|
4117
|
-
type:
|
|
4118
|
-
...!
|
|
4115
|
+
placeholder: V(),
|
|
4116
|
+
ref: ce,
|
|
4117
|
+
type: I,
|
|
4118
|
+
...!w && { value: l ?? "" }
|
|
4119
4119
|
}
|
|
4120
4120
|
),
|
|
4121
|
-
/* @__PURE__ */
|
|
4121
|
+
/* @__PURE__ */ R("label", { className: D, htmlFor: t, children: [
|
|
4122
4122
|
a,
|
|
4123
4123
|
h && /* @__PURE__ */ c(
|
|
4124
|
-
|
|
4124
|
+
We,
|
|
4125
4125
|
{
|
|
4126
4126
|
className: "ds-input__tooltip",
|
|
4127
4127
|
placement: _,
|
|
4128
4128
|
position: f,
|
|
4129
4129
|
text: h,
|
|
4130
|
-
children: /* @__PURE__ */ c(
|
|
4130
|
+
children: /* @__PURE__ */ c(Z, { className: "ds-input__icon", image: "info" })
|
|
4131
4131
|
}
|
|
4132
4132
|
)
|
|
4133
4133
|
] }),
|
|
4134
|
-
y && /* @__PURE__ */ c(
|
|
4134
|
+
y && /* @__PURE__ */ c(Z, { className: "ds-input__icon", image: y }),
|
|
4135
4135
|
s === "password" && /* @__PURE__ */ c(
|
|
4136
|
-
|
|
4136
|
+
Z,
|
|
4137
4137
|
{
|
|
4138
4138
|
className: "ds-input__password-icon",
|
|
4139
|
-
image:
|
|
4140
|
-
onClick:
|
|
4139
|
+
image: ue ? "visibility_off" : "visibility",
|
|
4140
|
+
onClick: N,
|
|
4141
4141
|
size: "xl"
|
|
4142
4142
|
}
|
|
4143
4143
|
)
|
|
@@ -4170,7 +4170,7 @@ et.propTypes = {
|
|
|
4170
4170
|
};
|
|
4171
4171
|
et.displayName = "DsInput";
|
|
4172
4172
|
var Ns = /* @__PURE__ */ ((t) => (t.Small = "small", t.Medium = "medium", t.Large = "large", t))(Ns || {}), Bs = /* @__PURE__ */ ((t) => (t.None = "", t.Neutral20 = "neutral-20", t.Neutral10 = "neutral-10", t.Neutral05 = "neutral-05", t.Neutral00 = "neutral-00", t))(Bs || {});
|
|
4173
|
-
const
|
|
4173
|
+
const he = {
|
|
4174
4174
|
name: "Loading",
|
|
4175
4175
|
class: "ds-loading",
|
|
4176
4176
|
props: {
|
|
@@ -4203,20 +4203,20 @@ const de = {
|
|
|
4203
4203
|
}
|
|
4204
4204
|
}, $t = ({
|
|
4205
4205
|
id: t,
|
|
4206
|
-
testId: e =
|
|
4206
|
+
testId: e = he.props.testId.default,
|
|
4207
4207
|
className: s,
|
|
4208
|
-
size: n =
|
|
4209
|
-
opacity: r =
|
|
4210
|
-
fullscreen: a =
|
|
4211
|
-
backgroundColor: i =
|
|
4208
|
+
size: n = he.props.size.default,
|
|
4209
|
+
opacity: r = he.props.opacity.default,
|
|
4210
|
+
fullscreen: a = he.props.fullscreen.default,
|
|
4211
|
+
backgroundColor: i = he.props.backgroundColor.default
|
|
4212
4212
|
}) => {
|
|
4213
|
-
const l = !a && `${
|
|
4213
|
+
const l = !a && `${he.class}--absolute`, u = n && `${he.class}__dots--${n}`, d = i && he.props.backgroundColor.options.find(
|
|
4214
4214
|
(f) => f === i
|
|
4215
|
-
) && `${
|
|
4216
|
-
return /* @__PURE__ */
|
|
4215
|
+
) && `${he.class}__background--${i}`, h = r && `${he.class}__background--opacity`;
|
|
4216
|
+
return /* @__PURE__ */ R(
|
|
4217
4217
|
"div",
|
|
4218
4218
|
{
|
|
4219
|
-
className: [
|
|
4219
|
+
className: [he.class, s, l].filter((f) => f).join(" "),
|
|
4220
4220
|
"data-testid": e,
|
|
4221
4221
|
id: t,
|
|
4222
4222
|
children: [
|
|
@@ -4224,7 +4224,7 @@ const de = {
|
|
|
4224
4224
|
"div",
|
|
4225
4225
|
{
|
|
4226
4226
|
className: [
|
|
4227
|
-
`${
|
|
4227
|
+
`${he.class}__background`,
|
|
4228
4228
|
d,
|
|
4229
4229
|
h
|
|
4230
4230
|
].filter((f) => f).join(" ")
|
|
@@ -4244,13 +4244,13 @@ const de = {
|
|
|
4244
4244
|
$t.propTypes = {
|
|
4245
4245
|
id: o.string,
|
|
4246
4246
|
testId: o.string,
|
|
4247
|
-
size: o.oneOf(
|
|
4247
|
+
size: o.oneOf(he.props.size.options),
|
|
4248
4248
|
opacity: o.bool,
|
|
4249
4249
|
fullscreen: o.bool,
|
|
4250
4250
|
backgroundColor: o.string
|
|
4251
4251
|
};
|
|
4252
4252
|
$t.displayName = "DsLoading";
|
|
4253
|
-
const
|
|
4253
|
+
const Oe = {
|
|
4254
4254
|
name: "Option",
|
|
4255
4255
|
class: "ds-option",
|
|
4256
4256
|
props: {
|
|
@@ -4297,15 +4297,15 @@ const Fe = {
|
|
|
4297
4297
|
detail: s,
|
|
4298
4298
|
name: n,
|
|
4299
4299
|
testId: r = n ?? "ds-option-test",
|
|
4300
|
-
disabled: a =
|
|
4300
|
+
disabled: a = Oe.props.disabled.default,
|
|
4301
4301
|
value: i,
|
|
4302
|
-
checked: l =
|
|
4303
|
-
onChangeHandler: u =
|
|
4302
|
+
checked: l = Oe.props.checked.default,
|
|
4303
|
+
onChangeHandler: u = Oe.props.onChangeHandler.default
|
|
4304
4304
|
}) => {
|
|
4305
|
-
const [d] =
|
|
4306
|
-
return /* @__PURE__ */
|
|
4307
|
-
const f = [
|
|
4308
|
-
return a && f.push(`${
|
|
4305
|
+
const [d] = j(crypto.randomUUID());
|
|
4306
|
+
return /* @__PURE__ */ R("div", { className: (() => {
|
|
4307
|
+
const f = [Oe.class];
|
|
4308
|
+
return a && f.push(`${Oe.class}--disabled`), f.join(" ");
|
|
4309
4309
|
})(), children: [
|
|
4310
4310
|
/* @__PURE__ */ c(
|
|
4311
4311
|
"input",
|
|
@@ -4321,18 +4321,18 @@ const Fe = {
|
|
|
4321
4321
|
}
|
|
4322
4322
|
),
|
|
4323
4323
|
/* @__PURE__ */ c(
|
|
4324
|
-
|
|
4324
|
+
Z,
|
|
4325
4325
|
{
|
|
4326
|
-
className: `${
|
|
4326
|
+
className: `${Oe.class}__icon`,
|
|
4327
4327
|
image: l ? "radio_button_checked" : "radio_button_unchecked",
|
|
4328
4328
|
size: "xxl"
|
|
4329
4329
|
}
|
|
4330
4330
|
),
|
|
4331
|
-
/* @__PURE__ */
|
|
4331
|
+
/* @__PURE__ */ R("div", { className: `${Oe.class}__text-container`, children: [
|
|
4332
4332
|
e && /* @__PURE__ */ c(
|
|
4333
4333
|
"label",
|
|
4334
4334
|
{
|
|
4335
|
-
className: `${
|
|
4335
|
+
className: `${Oe.class}__label`,
|
|
4336
4336
|
htmlFor: t ?? String(d),
|
|
4337
4337
|
children: e
|
|
4338
4338
|
}
|
|
@@ -4340,7 +4340,7 @@ const Fe = {
|
|
|
4340
4340
|
s && /* @__PURE__ */ c(
|
|
4341
4341
|
"label",
|
|
4342
4342
|
{
|
|
4343
|
-
className: `${
|
|
4343
|
+
className: `${Oe.class}__detail`,
|
|
4344
4344
|
htmlFor: t ?? String(d),
|
|
4345
4345
|
children: s
|
|
4346
4346
|
}
|
|
@@ -4371,7 +4371,7 @@ const ot = {
|
|
|
4371
4371
|
options: Object.values(Ms)
|
|
4372
4372
|
}
|
|
4373
4373
|
}
|
|
4374
|
-
},
|
|
4374
|
+
}, Ne = ({
|
|
4375
4375
|
children: t,
|
|
4376
4376
|
className: e,
|
|
4377
4377
|
testId: s = "ds-paragraph-test",
|
|
@@ -4387,12 +4387,12 @@ const ot = {
|
|
|
4387
4387
|
}
|
|
4388
4388
|
);
|
|
4389
4389
|
};
|
|
4390
|
-
|
|
4390
|
+
Ne.propTypes = {
|
|
4391
4391
|
className: o.string,
|
|
4392
4392
|
testId: o.string,
|
|
4393
4393
|
type: o.oneOf(ot.props.type.options)
|
|
4394
4394
|
};
|
|
4395
|
-
|
|
4395
|
+
Ne.displayName = "DsParagraph";
|
|
4396
4396
|
var Vs = /* @__PURE__ */ ((t) => (t.Success = "success", t.SuccessDark = "success-dark", t.Warning = "warning", t.Danger = "danger", t))(Vs || {});
|
|
4397
4397
|
const Jt = {
|
|
4398
4398
|
name: "Progress",
|
|
@@ -4460,7 +4460,7 @@ const Le = {
|
|
|
4460
4460
|
options: Object.values(Us)
|
|
4461
4461
|
}
|
|
4462
4462
|
}
|
|
4463
|
-
},
|
|
4463
|
+
}, Ve = ({
|
|
4464
4464
|
children: t,
|
|
4465
4465
|
className: e,
|
|
4466
4466
|
justifyContent: s = Le.props.justifyContent.default,
|
|
@@ -4486,7 +4486,7 @@ const Le = {
|
|
|
4486
4486
|
});
|
|
4487
4487
|
return /* @__PURE__ */ c("div", { className: d(), style: h(), children: t });
|
|
4488
4488
|
};
|
|
4489
|
-
|
|
4489
|
+
Ve.propTypes = {
|
|
4490
4490
|
className: o.string,
|
|
4491
4491
|
justifyContent: o.string,
|
|
4492
4492
|
alignItems: o.string,
|
|
@@ -4496,7 +4496,7 @@ Me.propTypes = {
|
|
|
4496
4496
|
height: o.string,
|
|
4497
4497
|
gap: o.string
|
|
4498
4498
|
};
|
|
4499
|
-
|
|
4499
|
+
Ve.displayName = "DsFlexLayout";
|
|
4500
4500
|
const Ct = {
|
|
4501
4501
|
name: "Flex-Element",
|
|
4502
4502
|
class: "ds-flex-element",
|
|
@@ -4512,7 +4512,7 @@ const Ct = {
|
|
|
4512
4512
|
required: !1
|
|
4513
4513
|
}
|
|
4514
4514
|
}
|
|
4515
|
-
},
|
|
4515
|
+
}, ae = ({
|
|
4516
4516
|
children: t,
|
|
4517
4517
|
flex: e = Ct.props.flex.default,
|
|
4518
4518
|
className: s = Ct.props.className.default
|
|
@@ -4522,59 +4522,59 @@ const Ct = {
|
|
|
4522
4522
|
});
|
|
4523
4523
|
return /* @__PURE__ */ c("div", { className: n(), style: r(), children: t });
|
|
4524
4524
|
};
|
|
4525
|
-
|
|
4525
|
+
ae.propTypes = {
|
|
4526
4526
|
className: o.string,
|
|
4527
4527
|
flex: o.string
|
|
4528
4528
|
};
|
|
4529
|
-
|
|
4530
|
-
var
|
|
4531
|
-
const
|
|
4529
|
+
ae.displayName = "DsFlexElement";
|
|
4530
|
+
var Ot = /* @__PURE__ */ ((t) => (t.None = "none", t.Quark = "quark", t.Nano = "nano", t.XXXS = "xxxs", t.XXS = "xxs", t.XS = "xs", t.SM = "sm", t))(Ot || {});
|
|
4531
|
+
const Ze = {
|
|
4532
4532
|
name: "Spacer",
|
|
4533
4533
|
class: "ds-spacer",
|
|
4534
4534
|
props: {
|
|
4535
4535
|
vertical: {
|
|
4536
4536
|
type: String,
|
|
4537
4537
|
default: "none",
|
|
4538
|
-
options: Object.values(
|
|
4538
|
+
options: Object.values(Ot)
|
|
4539
4539
|
},
|
|
4540
4540
|
horizontal: {
|
|
4541
4541
|
type: String,
|
|
4542
4542
|
default: "none",
|
|
4543
|
-
options: Object.values(
|
|
4543
|
+
options: Object.values(Ot)
|
|
4544
4544
|
}
|
|
4545
4545
|
}
|
|
4546
|
-
},
|
|
4547
|
-
vertical: t =
|
|
4548
|
-
horizontal: e =
|
|
4546
|
+
}, _e = ({
|
|
4547
|
+
vertical: t = Ze.props.vertical.default,
|
|
4548
|
+
horizontal: e = Ze.props.horizontal.default
|
|
4549
4549
|
}) => {
|
|
4550
4550
|
const s = t && `ds-spacer__vertical--${t}`, n = e && `ds-spacer__horizontal--${e}`;
|
|
4551
4551
|
return /* @__PURE__ */ c(
|
|
4552
4552
|
"div",
|
|
4553
4553
|
{
|
|
4554
|
-
className: [
|
|
4554
|
+
className: [Ze.class, s, n].filter((r) => r).join(" "),
|
|
4555
4555
|
"data-testid": "ds-spacer"
|
|
4556
4556
|
}
|
|
4557
4557
|
);
|
|
4558
4558
|
};
|
|
4559
|
-
|
|
4560
|
-
vertical: o.oneOf(
|
|
4561
|
-
horizontal: o.oneOf(
|
|
4559
|
+
_e.propTypes = {
|
|
4560
|
+
vertical: o.oneOf(Ze.props.vertical.options),
|
|
4561
|
+
horizontal: o.oneOf(Ze.props.horizontal.options)
|
|
4562
4562
|
};
|
|
4563
|
-
|
|
4563
|
+
_e.displayName = "DsSpacer";
|
|
4564
4564
|
const zs = ({
|
|
4565
4565
|
label: t,
|
|
4566
4566
|
progress: e = Jt.props.progress.default,
|
|
4567
4567
|
color: s = Jt.props.color.default
|
|
4568
4568
|
}) => {
|
|
4569
|
-
const n =
|
|
4569
|
+
const n = ve(
|
|
4570
4570
|
() => e > 100 ? 100 : e < 0 ? 0 : e,
|
|
4571
4571
|
[e]
|
|
4572
|
-
), r =
|
|
4572
|
+
), r = ve(
|
|
4573
4573
|
() => `ds-progress__progress--${s}`,
|
|
4574
4574
|
[s]
|
|
4575
|
-
), a =
|
|
4576
|
-
return /* @__PURE__ */ c("div", { className: "ds-progress", children: /* @__PURE__ */
|
|
4577
|
-
/* @__PURE__ */ c(
|
|
4575
|
+
), a = ve(() => s === "success-dark" ? "color__success--dark" : s === "warning" ? "color__warning--dark" : `color__${s}`, [s]);
|
|
4576
|
+
return /* @__PURE__ */ c("div", { className: "ds-progress", children: /* @__PURE__ */ R(Ve, { flexDirection: "column", children: [
|
|
4577
|
+
/* @__PURE__ */ c(ae, { children: /* @__PURE__ */ c(
|
|
4578
4578
|
"div",
|
|
4579
4579
|
{
|
|
4580
4580
|
"aria-valuemax": 100,
|
|
@@ -4592,15 +4592,15 @@ const zs = ({
|
|
|
4592
4592
|
)
|
|
4593
4593
|
}
|
|
4594
4594
|
) }),
|
|
4595
|
-
/* @__PURE__ */ c(
|
|
4596
|
-
|
|
4595
|
+
/* @__PURE__ */ c(ae, { children: /* @__PURE__ */ R(
|
|
4596
|
+
Ve,
|
|
4597
4597
|
{
|
|
4598
4598
|
alignItems: "flex-end",
|
|
4599
4599
|
flexDirection: "column",
|
|
4600
4600
|
justifyContent: "center",
|
|
4601
4601
|
children: [
|
|
4602
|
-
/* @__PURE__ */ c(
|
|
4603
|
-
/* @__PURE__ */ c(pt, { children: t && /* @__PURE__ */ c(
|
|
4602
|
+
/* @__PURE__ */ c(_e, { vertical: "quark" }),
|
|
4603
|
+
/* @__PURE__ */ c(pt, { children: t && /* @__PURE__ */ c(Ne, { className: a, children: t }) })
|
|
4604
4604
|
]
|
|
4605
4605
|
}
|
|
4606
4606
|
) })
|
|
@@ -4612,7 +4612,7 @@ zs.propTypes = {
|
|
|
4612
4612
|
color: o.string
|
|
4613
4613
|
};
|
|
4614
4614
|
var Hs = /* @__PURE__ */ ((t) => (t.Small = "sm", t.Medium = "md", t.Large = "lg", t))(Hs || {}), Ws = /* @__PURE__ */ ((t) => (t.Default = "", t.Error = "error", t.Success = "success", t))(Ws || {}), Ys = /* @__PURE__ */ ((t) => (t.Center = "center", t.End = "end", t.Initial = "initial", t))(Ys || {}), Xs = /* @__PURE__ */ ((t) => (t.Top = "top", t.Right = "right", t.Bottom = "bottom", t.Left = "left", t))(Xs || {});
|
|
4615
|
-
const
|
|
4615
|
+
const Q = {
|
|
4616
4616
|
name: "Select",
|
|
4617
4617
|
class: "ds-select",
|
|
4618
4618
|
props: {
|
|
@@ -4686,39 +4686,39 @@ const Z = {
|
|
|
4686
4686
|
},
|
|
4687
4687
|
options: []
|
|
4688
4688
|
}
|
|
4689
|
-
}, Ks =
|
|
4689
|
+
}, Ks = Se.forwardRef(
|
|
4690
4690
|
({
|
|
4691
4691
|
label: t,
|
|
4692
4692
|
className: e,
|
|
4693
|
-
disabled: s =
|
|
4694
|
-
animated: n =
|
|
4695
|
-
multiple: r =
|
|
4696
|
-
testId: a =
|
|
4693
|
+
disabled: s = Q.props.disabled.default,
|
|
4694
|
+
animated: n = Q.props.animated.default,
|
|
4695
|
+
multiple: r = Q.props.multiple.default,
|
|
4696
|
+
testId: a = Q.props.testId.default,
|
|
4697
4697
|
name: i,
|
|
4698
4698
|
options: l,
|
|
4699
4699
|
value: u,
|
|
4700
4700
|
placeholder: d,
|
|
4701
4701
|
onChange: h,
|
|
4702
4702
|
onChangeHandler: f,
|
|
4703
|
-
size: _ =
|
|
4704
|
-
status: y =
|
|
4705
|
-
tooltip:
|
|
4706
|
-
tooltipPosition: v =
|
|
4707
|
-
tooltipPlacement: m =
|
|
4708
|
-
feedback:
|
|
4709
|
-
...
|
|
4710
|
-
},
|
|
4711
|
-
const [
|
|
4712
|
-
p(!1), h && h(
|
|
4713
|
-
},
|
|
4714
|
-
const
|
|
4715
|
-
return
|
|
4716
|
-
}, z =
|
|
4717
|
-
const
|
|
4718
|
-
return !n &&
|
|
4703
|
+
size: _ = Q.props.size.default,
|
|
4704
|
+
status: y = Q.props.status.default,
|
|
4705
|
+
tooltip: S,
|
|
4706
|
+
tooltipPosition: v = Q.props.tooltipPosition.default,
|
|
4707
|
+
tooltipPlacement: m = Q.props.tooltipPlacement.default,
|
|
4708
|
+
feedback: C,
|
|
4709
|
+
...U
|
|
4710
|
+
}, T) => {
|
|
4711
|
+
const [w, p] = j(!1), A = (L) => {
|
|
4712
|
+
p(!1), h && h(L, L.target.value), f && f(L, L.target.value);
|
|
4713
|
+
}, B = () => {
|
|
4714
|
+
const L = [Q.class, "select-placeholder"];
|
|
4715
|
+
return L.push(`${Q.class}--${_}`), y && L.push(`${Q.class}--${y}`), w && L.push(`${Q.class}--active`), s && L.push(`${Q.class}--disabled`), e && L.push(e), L.join(" ");
|
|
4716
|
+
}, z = ve(() => {
|
|
4717
|
+
const L = [`${Q.class}__label`];
|
|
4718
|
+
return !n && L.push(`${Q.class}__label--not-animated`), u && L.push(`${Q.class}__label--has-value`), n && !u && !S && L.push(`${Q.class}__label--hidden`), L.join(" ");
|
|
4719
4719
|
}, [u]);
|
|
4720
|
-
return /* @__PURE__ */
|
|
4721
|
-
t && /* @__PURE__ */
|
|
4720
|
+
return /* @__PURE__ */ R("div", { className: B(), "data-testid": "ds-select-component", children: [
|
|
4721
|
+
t && /* @__PURE__ */ R(
|
|
4722
4722
|
"label",
|
|
4723
4723
|
{
|
|
4724
4724
|
className: z,
|
|
@@ -4726,17 +4726,17 @@ const Z = {
|
|
|
4726
4726
|
htmlFor: i,
|
|
4727
4727
|
children: [
|
|
4728
4728
|
t,
|
|
4729
|
-
|
|
4730
|
-
|
|
4729
|
+
S && /* @__PURE__ */ c(
|
|
4730
|
+
We,
|
|
4731
4731
|
{
|
|
4732
|
-
className: `${
|
|
4732
|
+
className: `${Q.class}__tooltip`,
|
|
4733
4733
|
placement: m,
|
|
4734
4734
|
position: v,
|
|
4735
|
-
text:
|
|
4735
|
+
text: S,
|
|
4736
4736
|
children: /* @__PURE__ */ c(
|
|
4737
|
-
|
|
4737
|
+
Z,
|
|
4738
4738
|
{
|
|
4739
|
-
className: `${
|
|
4739
|
+
className: `${Q.class}__icon`,
|
|
4740
4740
|
image: "info"
|
|
4741
4741
|
}
|
|
4742
4742
|
)
|
|
@@ -4745,7 +4745,7 @@ const Z = {
|
|
|
4745
4745
|
]
|
|
4746
4746
|
}
|
|
4747
4747
|
),
|
|
4748
|
-
/* @__PURE__ */
|
|
4748
|
+
/* @__PURE__ */ R(
|
|
4749
4749
|
"select",
|
|
4750
4750
|
{
|
|
4751
4751
|
"data-testid": a,
|
|
@@ -4754,29 +4754,29 @@ const Z = {
|
|
|
4754
4754
|
multiple: r,
|
|
4755
4755
|
name: i,
|
|
4756
4756
|
onBlur: () => p(!1),
|
|
4757
|
-
onChange: (
|
|
4757
|
+
onChange: (L) => A(L),
|
|
4758
4758
|
onFocus: () => p(!0),
|
|
4759
|
-
ref:
|
|
4759
|
+
ref: T,
|
|
4760
4760
|
value: u ?? "",
|
|
4761
|
-
...
|
|
4761
|
+
...U,
|
|
4762
4762
|
children: [
|
|
4763
4763
|
(d || n) && /* @__PURE__ */ c("option", { disabled: !0, value: "", children: d ?? t }),
|
|
4764
|
-
l == null ? void 0 : l.map((
|
|
4765
|
-
var
|
|
4766
|
-
return "options" in
|
|
4764
|
+
l == null ? void 0 : l.map((L, te) => {
|
|
4765
|
+
var le;
|
|
4766
|
+
return "options" in L ? /* @__PURE__ */ c("optgroup", { label: L.label, children: (le = L.options) == null ? void 0 : le.map((ue, ye) => /* @__PURE__ */ c(
|
|
4767
4767
|
"option",
|
|
4768
4768
|
{
|
|
4769
|
-
className: `${
|
|
4770
|
-
value:
|
|
4771
|
-
children:
|
|
4769
|
+
className: `${Q.class}__option-select`,
|
|
4770
|
+
value: ue.value,
|
|
4771
|
+
children: ue.label ?? ue.value
|
|
4772
4772
|
},
|
|
4773
|
-
|
|
4773
|
+
ye
|
|
4774
4774
|
)) }, te) : /* @__PURE__ */ c(
|
|
4775
4775
|
"option",
|
|
4776
4776
|
{
|
|
4777
|
-
className: `${
|
|
4778
|
-
value:
|
|
4779
|
-
children:
|
|
4777
|
+
className: `${Q.class}__option-select`,
|
|
4778
|
+
value: L.value,
|
|
4779
|
+
children: L.label ?? L.value
|
|
4780
4780
|
},
|
|
4781
4781
|
te
|
|
4782
4782
|
);
|
|
@@ -4784,15 +4784,15 @@ const Z = {
|
|
|
4784
4784
|
]
|
|
4785
4785
|
}
|
|
4786
4786
|
),
|
|
4787
|
-
|
|
4787
|
+
C && /* @__PURE__ */ R("div", { className: "ds-select__feedback-container", children: [
|
|
4788
4788
|
/* @__PURE__ */ c(
|
|
4789
|
-
|
|
4789
|
+
Z,
|
|
4790
4790
|
{
|
|
4791
4791
|
className: "ds-select__icon",
|
|
4792
4792
|
image: y === "success" ? "check_circle" : "info"
|
|
4793
4793
|
}
|
|
4794
4794
|
),
|
|
4795
|
-
/* @__PURE__ */ c("span", { className: "ds-select__feedback", children:
|
|
4795
|
+
/* @__PURE__ */ c("span", { className: "ds-select__feedback", children: C })
|
|
4796
4796
|
] })
|
|
4797
4797
|
] });
|
|
4798
4798
|
}
|
|
@@ -4810,8 +4810,8 @@ Ks.propTypes = {
|
|
|
4810
4810
|
onChange: o.func,
|
|
4811
4811
|
onChangeHandler: o.func,
|
|
4812
4812
|
value: o.oneOfType([o.string, o.number]),
|
|
4813
|
-
size: o.oneOf(
|
|
4814
|
-
status: o.oneOf(
|
|
4813
|
+
size: o.oneOf(Q.props.size.options),
|
|
4814
|
+
status: o.oneOf(Q.props.status.options),
|
|
4815
4815
|
tooltip: o.string,
|
|
4816
4816
|
tooltipPosition: o.string,
|
|
4817
4817
|
tooltipPlacement: o.string,
|
|
@@ -4819,7 +4819,7 @@ Ks.propTypes = {
|
|
|
4819
4819
|
};
|
|
4820
4820
|
Ks.displayName = "DsSelect";
|
|
4821
4821
|
var Gs = /* @__PURE__ */ ((t) => (t.Large = "large", t.Small = "small", t))(Gs || {});
|
|
4822
|
-
const
|
|
4822
|
+
const xt = {
|
|
4823
4823
|
name: "Subtitle",
|
|
4824
4824
|
class: "ds-subtitle",
|
|
4825
4825
|
props: {
|
|
@@ -4835,11 +4835,11 @@ const wt = {
|
|
|
4835
4835
|
testId: s = "ds-subtitle-test",
|
|
4836
4836
|
type: n
|
|
4837
4837
|
}) => {
|
|
4838
|
-
const r =
|
|
4838
|
+
const r = xt.props.type.options.find((a) => a === n) && `${xt.class}--${n}`;
|
|
4839
4839
|
return /* @__PURE__ */ c(
|
|
4840
4840
|
"p",
|
|
4841
4841
|
{
|
|
4842
|
-
className: [
|
|
4842
|
+
className: [xt.class, r, e].filter((a) => a).join(" "),
|
|
4843
4843
|
"data-testid": s,
|
|
4844
4844
|
children: t
|
|
4845
4845
|
}
|
|
@@ -4847,7 +4847,7 @@ const wt = {
|
|
|
4847
4847
|
};
|
|
4848
4848
|
sr.displayName = "DsSubtitle";
|
|
4849
4849
|
var Zs = /* @__PURE__ */ ((t) => (t.Small = "small", t.Medium = "medium", t.Large = "large", t))(Zs || {}), Qs = /* @__PURE__ */ ((t) => (t.Text = "text", t))(Qs || {}), Js = /* @__PURE__ */ ((t) => (t.None = "", t.Error = "error", t.Success = "success", t))(Js || {}), en = /* @__PURE__ */ ((t) => (t.None = "none", t.Both = "both", t.Horizontal = "horizontal", t.Vertical = "vertical", t.Block = "block", t.Inline = "inline", t))(en || {});
|
|
4850
|
-
const
|
|
4850
|
+
const ne = {
|
|
4851
4851
|
name: "TextArea",
|
|
4852
4852
|
class: "ds-textarea",
|
|
4853
4853
|
props: {
|
|
@@ -4933,12 +4933,12 @@ const se = {
|
|
|
4933
4933
|
}
|
|
4934
4934
|
}
|
|
4935
4935
|
}
|
|
4936
|
-
}, tn =
|
|
4936
|
+
}, tn = Se.forwardRef(
|
|
4937
4937
|
({
|
|
4938
4938
|
name: t,
|
|
4939
|
-
testId: e =
|
|
4940
|
-
animated: s =
|
|
4941
|
-
size: n =
|
|
4939
|
+
testId: e = ne.props.testId.default,
|
|
4940
|
+
animated: s = ne.props.animated.default,
|
|
4941
|
+
size: n = ne.props.size.default,
|
|
4942
4942
|
label: r,
|
|
4943
4943
|
placeholder: a,
|
|
4944
4944
|
value: i,
|
|
@@ -4946,54 +4946,54 @@ const se = {
|
|
|
4946
4946
|
maxLength: u,
|
|
4947
4947
|
tooltip: d,
|
|
4948
4948
|
icon: h,
|
|
4949
|
-
status: f =
|
|
4949
|
+
status: f = ne.props.status.default,
|
|
4950
4950
|
feedback: _,
|
|
4951
|
-
disabled: y =
|
|
4952
|
-
required:
|
|
4951
|
+
disabled: y = ne.props.disabled.default,
|
|
4952
|
+
required: S,
|
|
4953
4953
|
className: v,
|
|
4954
|
-
resize: m =
|
|
4955
|
-
onChangeHandler:
|
|
4956
|
-
onBlurHandler:
|
|
4957
|
-
onKeyDownHandler:
|
|
4958
|
-
onFocusHandler:
|
|
4959
|
-
rows: p =
|
|
4960
|
-
cols:
|
|
4961
|
-
description:
|
|
4954
|
+
resize: m = ne.props.resize.default,
|
|
4955
|
+
onChangeHandler: C,
|
|
4956
|
+
onBlurHandler: U,
|
|
4957
|
+
onKeyDownHandler: T,
|
|
4958
|
+
onFocusHandler: w,
|
|
4959
|
+
rows: p = ne.props.rows.default,
|
|
4960
|
+
cols: A,
|
|
4961
|
+
description: B,
|
|
4962
4962
|
style: z
|
|
4963
|
-
},
|
|
4964
|
-
const [te,
|
|
4965
|
-
|
|
4966
|
-
i == null &&
|
|
4963
|
+
}, L) => {
|
|
4964
|
+
const [te, le] = j(!1), [ue, ye] = j(0), [se, De] = j(crypto.randomUUID());
|
|
4965
|
+
G(() => {
|
|
4966
|
+
i == null && De(crypto.randomUUID());
|
|
4967
4967
|
}, [i]);
|
|
4968
|
-
const
|
|
4969
|
-
|
|
4970
|
-
},
|
|
4971
|
-
|
|
4972
|
-
},
|
|
4973
|
-
|
|
4974
|
-
},
|
|
4975
|
-
|
|
4968
|
+
const re = (b) => {
|
|
4969
|
+
ye(b.target.value.length), C && C(b);
|
|
4970
|
+
}, ce = (b) => {
|
|
4971
|
+
T && T(b);
|
|
4972
|
+
}, ke = (b) => {
|
|
4973
|
+
le(!1), U && U(b);
|
|
4974
|
+
}, Ce = (b) => {
|
|
4975
|
+
le(!0), w && w(b);
|
|
4976
4976
|
}, g = () => {
|
|
4977
|
-
const
|
|
4978
|
-
return n &&
|
|
4979
|
-
}, E =
|
|
4980
|
-
const
|
|
4981
|
-
return (te || i) &&
|
|
4982
|
-
}, [i, te]),
|
|
4977
|
+
const b = [`${ne.class}`];
|
|
4978
|
+
return n && b.push(`${ne.class}--${n}`), s && b.push(`${ne.class}--animated`), d && b.push(`${ne.class}--with-icon`), f && b.push(`${ne.class}--${f}`), v && b.push(v), b.join(" ");
|
|
4979
|
+
}, E = ve(() => {
|
|
4980
|
+
const b = [`${ne.class}__label`];
|
|
4981
|
+
return (te || i) && b.push(`${ne.class}__label--active`), b.join(" ");
|
|
4982
|
+
}, [i, te]), $ = () => !s && a ? a : "", N = () => f && f === "error" ? "info" : "check_circle", I = {
|
|
4983
4983
|
resize: m,
|
|
4984
4984
|
...z ?? {}
|
|
4985
4985
|
};
|
|
4986
|
-
return /* @__PURE__ */
|
|
4987
|
-
|
|
4988
|
-
_ && /* @__PURE__ */
|
|
4989
|
-
/* @__PURE__ */ c(
|
|
4986
|
+
return /* @__PURE__ */ R("div", { className: g(), children: [
|
|
4987
|
+
B && /* @__PURE__ */ c("span", { className: "ds-textarea__description", children: B }),
|
|
4988
|
+
_ && /* @__PURE__ */ R("div", { className: "ds-textarea__feedback", children: [
|
|
4989
|
+
/* @__PURE__ */ c(Z, { image: N() }),
|
|
4990
4990
|
_
|
|
4991
4991
|
] }),
|
|
4992
4992
|
/* @__PURE__ */ c(
|
|
4993
4993
|
"textarea",
|
|
4994
4994
|
{
|
|
4995
4995
|
className: "ds-textarea__textarea",
|
|
4996
|
-
cols:
|
|
4996
|
+
cols: A,
|
|
4997
4997
|
"data-testid": e,
|
|
4998
4998
|
defaultValue: i ?? "",
|
|
4999
4999
|
disabled: y,
|
|
@@ -5001,46 +5001,46 @@ const se = {
|
|
|
5001
5001
|
maxLength: u,
|
|
5002
5002
|
minLength: l,
|
|
5003
5003
|
name: t,
|
|
5004
|
-
onBlur:
|
|
5005
|
-
onChange:
|
|
5006
|
-
onFocus:
|
|
5007
|
-
onKeyDown:
|
|
5008
|
-
placeholder:
|
|
5009
|
-
ref:
|
|
5010
|
-
required:
|
|
5004
|
+
onBlur: ke,
|
|
5005
|
+
onChange: re,
|
|
5006
|
+
onFocus: Ce,
|
|
5007
|
+
onKeyDown: ce,
|
|
5008
|
+
placeholder: $(),
|
|
5009
|
+
ref: L,
|
|
5010
|
+
required: S,
|
|
5011
5011
|
rows: p,
|
|
5012
|
-
style:
|
|
5012
|
+
style: I
|
|
5013
5013
|
}
|
|
5014
5014
|
),
|
|
5015
5015
|
/* @__PURE__ */ c("label", { className: E, htmlFor: t, children: r }),
|
|
5016
|
-
u && /* @__PURE__ */
|
|
5017
|
-
|
|
5016
|
+
u && /* @__PURE__ */ R("span", { className: "ds-textarea__count", children: [
|
|
5017
|
+
ue,
|
|
5018
5018
|
"/",
|
|
5019
5019
|
u
|
|
5020
5020
|
] }),
|
|
5021
5021
|
d && /* @__PURE__ */ c(
|
|
5022
|
-
|
|
5022
|
+
We,
|
|
5023
5023
|
{
|
|
5024
5024
|
className: "ds-textarea__tooltip",
|
|
5025
5025
|
placement: "end",
|
|
5026
5026
|
text: d,
|
|
5027
|
-
children: /* @__PURE__ */ c(
|
|
5027
|
+
children: /* @__PURE__ */ c(Z, { className: "ds-textarea__icon", image: h })
|
|
5028
5028
|
}
|
|
5029
5029
|
)
|
|
5030
|
-
] },
|
|
5030
|
+
] }, se);
|
|
5031
5031
|
}
|
|
5032
5032
|
);
|
|
5033
5033
|
tn.propTypes = {
|
|
5034
5034
|
name: o.string,
|
|
5035
5035
|
testId: o.string,
|
|
5036
5036
|
animated: o.bool,
|
|
5037
|
-
size: o.oneOf(
|
|
5037
|
+
size: o.oneOf(ne.props.size.options),
|
|
5038
5038
|
label: o.string,
|
|
5039
5039
|
placeholder: o.string,
|
|
5040
5040
|
value: o.oneOfType([o.string]),
|
|
5041
5041
|
tooltip: o.string,
|
|
5042
5042
|
icon: o.string,
|
|
5043
|
-
status: o.oneOf(
|
|
5043
|
+
status: o.oneOf(ne.props.status.options),
|
|
5044
5044
|
feedback: o.string,
|
|
5045
5045
|
minLength: o.number,
|
|
5046
5046
|
maxLength: o.number,
|
|
@@ -5052,7 +5052,7 @@ tn.propTypes = {
|
|
|
5052
5052
|
onBlur: o.func,
|
|
5053
5053
|
onKeyDown: o.func,
|
|
5054
5054
|
onFocus: o.func,
|
|
5055
|
-
resize: o.oneOf(
|
|
5055
|
+
resize: o.oneOf(ne.props.resize.options).isRequired,
|
|
5056
5056
|
description: o.string,
|
|
5057
5057
|
style: o.object
|
|
5058
5058
|
};
|
|
@@ -5147,10 +5147,10 @@ function es() {
|
|
|
5147
5147
|
};
|
|
5148
5148
|
}
|
|
5149
5149
|
function nr() {
|
|
5150
|
-
const [t, e] =
|
|
5150
|
+
const [t, e] = j(
|
|
5151
5151
|
es()
|
|
5152
5152
|
);
|
|
5153
|
-
return
|
|
5153
|
+
return G(() => {
|
|
5154
5154
|
function s() {
|
|
5155
5155
|
e(es());
|
|
5156
5156
|
}
|
|
@@ -5169,14 +5169,14 @@ const nn = ({
|
|
|
5169
5169
|
height: u = ee.props.height.default
|
|
5170
5170
|
}) => {
|
|
5171
5171
|
const d = n && `${ee.class}__v-gap--${s}`, h = r && `${ee.class}__h-gap--${s}`, f = a && ee.props.horizontalAlign.options.find(
|
|
5172
|
-
(
|
|
5172
|
+
(T) => T === a
|
|
5173
5173
|
) ? `${ee.class}--h-${a}` : null, _ = i && ee.props.verticalAlign.options.find(
|
|
5174
|
-
(
|
|
5175
|
-
) ? `${ee.class}--v-${i}` : null, { width: y } = nr(), [
|
|
5176
|
-
|
|
5174
|
+
(T) => T === i
|
|
5175
|
+
) ? `${ee.class}--v-${i}` : null, { width: y } = nr(), [S, v] = j("auto");
|
|
5176
|
+
G(() => {
|
|
5177
5177
|
y <= 768 ? v("6") : v("12");
|
|
5178
5178
|
}, [y]);
|
|
5179
|
-
const m = (
|
|
5179
|
+
const m = (T) => /^[+-]?\d+$/.test(T), C = () => e.split(",").map((w) => (w = w.trim(), w === "0" || w === "*" || w === "auto" ? "auto" : m(w) ? w + "fr" : w)).join(" "), U = () => `repeat(${S}, minmax(0, 1fr))`;
|
|
5180
5180
|
return /* @__PURE__ */ c(
|
|
5181
5181
|
"div",
|
|
5182
5182
|
{
|
|
@@ -5186,12 +5186,12 @@ const nn = ({
|
|
|
5186
5186
|
_,
|
|
5187
5187
|
d,
|
|
5188
5188
|
h
|
|
5189
|
-
].filter((
|
|
5189
|
+
].filter((T) => T).join(" "),
|
|
5190
5190
|
style: {
|
|
5191
5191
|
width: l,
|
|
5192
5192
|
height: u,
|
|
5193
|
-
gridTemplateColumns:
|
|
5194
|
-
gridTemplateRows:
|
|
5193
|
+
gridTemplateColumns: U(),
|
|
5194
|
+
gridTemplateRows: C()
|
|
5195
5195
|
},
|
|
5196
5196
|
children: t
|
|
5197
5197
|
}
|
|
@@ -5216,15 +5216,15 @@ nn.propTypes = {
|
|
|
5216
5216
|
};
|
|
5217
5217
|
nn.displayName = "DsGridLayout";
|
|
5218
5218
|
const ts = () => typeof window < "u" && window.innerWidth ? window.innerWidth : 0, rr = ({ children: t, grid: e }) => {
|
|
5219
|
-
const { row: s, col: n, mobileRow: r, mobileCol: a } = e, [i, l] =
|
|
5220
|
-
|
|
5219
|
+
const { row: s, col: n, mobileRow: r, mobileCol: a } = e, [i, l] = j(ts());
|
|
5220
|
+
G(() => {
|
|
5221
5221
|
const d = () => {
|
|
5222
5222
|
l(ts());
|
|
5223
5223
|
};
|
|
5224
5224
|
if (typeof window < "u")
|
|
5225
5225
|
return window.addEventListener("resize", d), () => window.removeEventListener("resize", d);
|
|
5226
5226
|
}, []);
|
|
5227
|
-
const u =
|
|
5227
|
+
const u = ve(() => i <= 768 ? {
|
|
5228
5228
|
gridRow: r ?? s,
|
|
5229
5229
|
gridColumn: a ?? n
|
|
5230
5230
|
} : {
|
|
@@ -5234,7 +5234,7 @@ const ts = () => typeof window < "u" && window.innerWidth ? window.innerWidth :
|
|
|
5234
5234
|
return /* @__PURE__ */ c("div", { style: u, children: t });
|
|
5235
5235
|
};
|
|
5236
5236
|
rr.displayName = "DsGridElement";
|
|
5237
|
-
const
|
|
5237
|
+
const kr = {
|
|
5238
5238
|
name: "Grid-Element",
|
|
5239
5239
|
class: "ds-grid-element",
|
|
5240
5240
|
props: {
|
|
@@ -5248,7 +5248,7 @@ const _r = {
|
|
|
5248
5248
|
}
|
|
5249
5249
|
};
|
|
5250
5250
|
var ze = /* @__PURE__ */ ((t) => (t.None = "none", t.Quark = "quark", t.Nano = "nano", t.ExtraSmall = "xs", t.Small = "sm", t.Medium = "md", t.Large = "lg", t))(ze || {});
|
|
5251
|
-
const
|
|
5251
|
+
const be = {
|
|
5252
5252
|
name: "Wrapper",
|
|
5253
5253
|
class: "ds-wrapper",
|
|
5254
5254
|
props: {
|
|
@@ -5278,20 +5278,20 @@ const _e = {
|
|
|
5278
5278
|
options: Object.values(ze)
|
|
5279
5279
|
}
|
|
5280
5280
|
}
|
|
5281
|
-
},
|
|
5281
|
+
}, Qe = ({
|
|
5282
5282
|
children: t,
|
|
5283
|
-
space: e =
|
|
5284
|
-
top: s =
|
|
5285
|
-
right: n =
|
|
5286
|
-
bottom: r =
|
|
5287
|
-
left: a =
|
|
5283
|
+
space: e = be.props.space.default,
|
|
5284
|
+
top: s = be.props.top.default,
|
|
5285
|
+
right: n = be.props.right.default,
|
|
5286
|
+
bottom: r = be.props.bottom.default,
|
|
5287
|
+
left: a = be.props.left.default
|
|
5288
5288
|
}) => {
|
|
5289
|
-
const i = s && `${
|
|
5289
|
+
const i = s && `${be.class}__top--${s}`, l = n && `${be.class}__right--${n}`, u = r && `${be.class}__bottom--${r}`, d = a && `${be.class}__left--${a}`, h = e && `${be.class}--${e}`;
|
|
5290
5290
|
return /* @__PURE__ */ c(
|
|
5291
5291
|
"div",
|
|
5292
5292
|
{
|
|
5293
5293
|
className: [
|
|
5294
|
-
|
|
5294
|
+
be.class,
|
|
5295
5295
|
i,
|
|
5296
5296
|
l,
|
|
5297
5297
|
u,
|
|
@@ -5302,8 +5302,8 @@ const _e = {
|
|
|
5302
5302
|
}
|
|
5303
5303
|
);
|
|
5304
5304
|
};
|
|
5305
|
-
|
|
5306
|
-
const
|
|
5305
|
+
Qe.displayName = "DsWrapper";
|
|
5306
|
+
const wt = {
|
|
5307
5307
|
name: "Accordion",
|
|
5308
5308
|
class: "ds-accordion",
|
|
5309
5309
|
props: {
|
|
@@ -5349,12 +5349,12 @@ const xt = {
|
|
|
5349
5349
|
disabled: r = Ue.props.disabled.default
|
|
5350
5350
|
}) => {
|
|
5351
5351
|
const a = n && `${Ue.class}--active`;
|
|
5352
|
-
return /* @__PURE__ */
|
|
5352
|
+
return /* @__PURE__ */ R(
|
|
5353
5353
|
"li",
|
|
5354
5354
|
{
|
|
5355
5355
|
className: [Ue.class, a].filter((i) => i).join(" "),
|
|
5356
5356
|
children: [
|
|
5357
|
-
/* @__PURE__ */
|
|
5357
|
+
/* @__PURE__ */ R(
|
|
5358
5358
|
"button",
|
|
5359
5359
|
{
|
|
5360
5360
|
className: `${Ue.class}__button`,
|
|
@@ -5363,7 +5363,7 @@ const xt = {
|
|
|
5363
5363
|
children: [
|
|
5364
5364
|
t,
|
|
5365
5365
|
/* @__PURE__ */ c(
|
|
5366
|
-
|
|
5366
|
+
Z,
|
|
5367
5367
|
{
|
|
5368
5368
|
className: `${Ue.class}__icon`,
|
|
5369
5369
|
color: "neutral-90",
|
|
@@ -5387,16 +5387,16 @@ Vt.propTypes = {
|
|
|
5387
5387
|
};
|
|
5388
5388
|
Vt.displayName = "DsAccordionItem";
|
|
5389
5389
|
const rn = ({
|
|
5390
|
-
items: t =
|
|
5391
|
-
activeItem: e =
|
|
5390
|
+
items: t = wt.props.items.default,
|
|
5391
|
+
activeItem: e = wt.props.activeItem.default,
|
|
5392
5392
|
onClick: s
|
|
5393
5393
|
}) => {
|
|
5394
|
-
const [n, r] =
|
|
5395
|
-
|
|
5394
|
+
const [n, r] = j(-1);
|
|
5395
|
+
G(() => {
|
|
5396
5396
|
t.map((i, l) => {
|
|
5397
5397
|
i.active && r(l);
|
|
5398
5398
|
});
|
|
5399
|
-
}, [t]),
|
|
5399
|
+
}, [t]), G(() => {
|
|
5400
5400
|
e != null && r(e);
|
|
5401
5401
|
}, [e]);
|
|
5402
5402
|
const a = (i) => {
|
|
@@ -5404,7 +5404,7 @@ const rn = ({
|
|
|
5404
5404
|
return s && s(-1), r(-1);
|
|
5405
5405
|
r(i), s && s(i);
|
|
5406
5406
|
};
|
|
5407
|
-
return /* @__PURE__ */ c("ul", { className:
|
|
5407
|
+
return /* @__PURE__ */ c("ul", { className: wt.class, children: t.map((i, l) => /* @__PURE__ */ c(
|
|
5408
5408
|
Vt,
|
|
5409
5409
|
{
|
|
5410
5410
|
active: n === l,
|
|
@@ -5427,21 +5427,21 @@ const ar = ({
|
|
|
5427
5427
|
title: t,
|
|
5428
5428
|
activeTags: e,
|
|
5429
5429
|
handleTagClose: s
|
|
5430
|
-
}) => /* @__PURE__ */ c("div", { className: "active-tags", children: e.length > 0 && /* @__PURE__ */
|
|
5431
|
-
/* @__PURE__ */ c(
|
|
5430
|
+
}) => /* @__PURE__ */ c("div", { className: "active-tags", children: e.length > 0 && /* @__PURE__ */ R(pt, { children: [
|
|
5431
|
+
/* @__PURE__ */ c(Ne, { className: "active-tags__title", children: t }),
|
|
5432
5432
|
/* @__PURE__ */ c("div", { className: "active-tags__list", "data-testid": "ds-list", children: e.map((n, r) => /* @__PURE__ */ c(
|
|
5433
|
-
|
|
5433
|
+
We,
|
|
5434
5434
|
{
|
|
5435
5435
|
text: `Filtro ${n.text} aplicado`,
|
|
5436
|
-
children: /* @__PURE__ */
|
|
5436
|
+
children: /* @__PURE__ */ R(
|
|
5437
5437
|
"div",
|
|
5438
5438
|
{
|
|
5439
5439
|
className: `active-tags__item ${n.hiddenClose && "active-tags__item--no-close"}`,
|
|
5440
5440
|
"data-testid": `ds-active-tag-${r}`,
|
|
5441
5441
|
children: [
|
|
5442
|
-
/* @__PURE__ */
|
|
5443
|
-
/* @__PURE__ */ c(
|
|
5444
|
-
|
|
5442
|
+
/* @__PURE__ */ R(Ve, { alignItems: "center", gap: "nano", children: [
|
|
5443
|
+
/* @__PURE__ */ c(ae, { children: /* @__PURE__ */ c(
|
|
5444
|
+
Z,
|
|
5445
5445
|
{
|
|
5446
5446
|
className: "active-tags__icon",
|
|
5447
5447
|
color: n.hiddenClose ? "neutral-00" : "neutral-90",
|
|
@@ -5450,10 +5450,10 @@ const ar = ({
|
|
|
5450
5450
|
testId: `icon-${r}`
|
|
5451
5451
|
}
|
|
5452
5452
|
) }),
|
|
5453
|
-
/* @__PURE__ */ c(
|
|
5453
|
+
/* @__PURE__ */ c(ae, { children: /* @__PURE__ */ c(Ne, { type: "small", children: n.text }) })
|
|
5454
5454
|
] }),
|
|
5455
5455
|
!n.hiddenClose && /* @__PURE__ */ c(
|
|
5456
|
-
|
|
5456
|
+
Z,
|
|
5457
5457
|
{
|
|
5458
5458
|
image: "close",
|
|
5459
5459
|
onClick: () => s(r),
|
|
@@ -5469,7 +5469,7 @@ const ar = ({
|
|
|
5469
5469
|
)) })
|
|
5470
5470
|
] }) });
|
|
5471
5471
|
ar.displayName = "DsActiveTags";
|
|
5472
|
-
const
|
|
5472
|
+
const br = {
|
|
5473
5473
|
name: "ActiveTags",
|
|
5474
5474
|
class: "ds-active-tags",
|
|
5475
5475
|
props: {
|
|
@@ -5487,7 +5487,7 @@ const yr = {
|
|
|
5487
5487
|
}
|
|
5488
5488
|
}
|
|
5489
5489
|
}
|
|
5490
|
-
},
|
|
5490
|
+
}, Ye = {
|
|
5491
5491
|
name: "Carousel",
|
|
5492
5492
|
class: "ds-carousel",
|
|
5493
5493
|
props: {}
|
|
@@ -5499,17 +5499,17 @@ const yr = {
|
|
|
5499
5499
|
imageMaxHeight: r,
|
|
5500
5500
|
imageMaxWidth: a
|
|
5501
5501
|
}) => {
|
|
5502
|
-
const [i, l] =
|
|
5503
|
-
|
|
5502
|
+
const [i, l] = j(0), [u, d] = j(!1), h = He(null);
|
|
5503
|
+
G(() => (u || (h.current = setInterval(() => {
|
|
5504
5504
|
l((y) => y === t.length - 1 ? 0 : y + 1);
|
|
5505
5505
|
}, e)), () => {
|
|
5506
5506
|
h.current && clearInterval(h.current);
|
|
5507
5507
|
}), [u, e, t.length]);
|
|
5508
5508
|
const f = () => d(!0), _ = () => d(!1);
|
|
5509
|
-
return /* @__PURE__ */
|
|
5509
|
+
return /* @__PURE__ */ R(
|
|
5510
5510
|
"div",
|
|
5511
5511
|
{
|
|
5512
|
-
className: `${
|
|
5512
|
+
className: `${Ye.class}`,
|
|
5513
5513
|
"data-testid": "ds-carousel",
|
|
5514
5514
|
onMouseEnter: f,
|
|
5515
5515
|
onMouseLeave: _,
|
|
@@ -5517,18 +5517,18 @@ const yr = {
|
|
|
5517
5517
|
/* @__PURE__ */ c(
|
|
5518
5518
|
"div",
|
|
5519
5519
|
{
|
|
5520
|
-
className: `${
|
|
5520
|
+
className: `${Ye.class}__image-wrapper`,
|
|
5521
5521
|
style: {
|
|
5522
5522
|
height: s,
|
|
5523
5523
|
width: n,
|
|
5524
5524
|
maxHeight: r,
|
|
5525
5525
|
maxWidth: a
|
|
5526
5526
|
},
|
|
5527
|
-
children: t.map((y,
|
|
5527
|
+
children: t.map((y, S) => /* @__PURE__ */ c(
|
|
5528
5528
|
"img",
|
|
5529
5529
|
{
|
|
5530
5530
|
alt: y.title,
|
|
5531
|
-
className: `${
|
|
5531
|
+
className: `${Ye.class}__image ${S === i ? "active" : "inactive"}`,
|
|
5532
5532
|
height: s,
|
|
5533
5533
|
src: y.image,
|
|
5534
5534
|
style: {
|
|
@@ -5537,22 +5537,22 @@ const yr = {
|
|
|
5537
5537
|
},
|
|
5538
5538
|
width: n
|
|
5539
5539
|
},
|
|
5540
|
-
|
|
5540
|
+
S
|
|
5541
5541
|
))
|
|
5542
5542
|
}
|
|
5543
5543
|
),
|
|
5544
|
-
/* @__PURE__ */ c(
|
|
5544
|
+
/* @__PURE__ */ c(_e, { vertical: "xxs" }),
|
|
5545
5545
|
/* @__PURE__ */ c("div", { children: /* @__PURE__ */ c(Nt, { className: "color__primary", type: "heading-4", children: t[i].title }) }),
|
|
5546
|
-
/* @__PURE__ */ c("div", { children: /* @__PURE__ */ c(
|
|
5547
|
-
/* @__PURE__ */ c(
|
|
5548
|
-
/* @__PURE__ */ c("div", { className: `${
|
|
5546
|
+
/* @__PURE__ */ c("div", { children: /* @__PURE__ */ c(Ne, { type: "large", children: t[i].description }) }),
|
|
5547
|
+
/* @__PURE__ */ c(_e, { vertical: "xxs" }),
|
|
5548
|
+
/* @__PURE__ */ c("div", { className: `${Ye.class}__dots`, children: /* @__PURE__ */ c("div", { className: `${Ye.class}__dots-wrapper`, children: t.map((y, S) => /* @__PURE__ */ c(
|
|
5549
5549
|
"button",
|
|
5550
5550
|
{
|
|
5551
|
-
"aria-label": `Go to slide ${
|
|
5552
|
-
className: `dot ${i ===
|
|
5553
|
-
onClick: () => l(
|
|
5551
|
+
"aria-label": `Go to slide ${S + 1}`,
|
|
5552
|
+
className: `dot ${i === S ? "dot--active" : ""}`,
|
|
5553
|
+
onClick: () => l(S)
|
|
5554
5554
|
},
|
|
5555
|
-
|
|
5555
|
+
S
|
|
5556
5556
|
)) }) })
|
|
5557
5557
|
]
|
|
5558
5558
|
}
|
|
@@ -5651,7 +5651,11 @@ const Y = {
|
|
|
5651
5651
|
}
|
|
5652
5652
|
}
|
|
5653
5653
|
}
|
|
5654
|
-
}, or = ({
|
|
5654
|
+
}, or = (t, e) => {
|
|
5655
|
+
if (!e) return t;
|
|
5656
|
+
const s = e.toLowerCase();
|
|
5657
|
+
return t.filter((n) => n.label.toLowerCase().includes(s));
|
|
5658
|
+
}, lr = (t) => t, ur = ({
|
|
5655
5659
|
label: t = Y.props.label.default,
|
|
5656
5660
|
name: e = Y.props.name.default,
|
|
5657
5661
|
testId: s = Y.props.testId.default,
|
|
@@ -5666,29 +5670,53 @@ const Y = {
|
|
|
5666
5670
|
status: f = Y.props.status.default,
|
|
5667
5671
|
onBlurHandler: _ = Y.props.onBlurHandler.default,
|
|
5668
5672
|
onFocusHandler: y = Y.props.onFocusHandler.default,
|
|
5669
|
-
animated:
|
|
5673
|
+
animated: S = Y.props.animated.default,
|
|
5670
5674
|
placeholder: v = Y.props.placeholder.default,
|
|
5671
|
-
loading: m
|
|
5675
|
+
loading: m,
|
|
5676
|
+
showOptionsOnFocus: C = !1,
|
|
5677
|
+
inputType: U,
|
|
5678
|
+
inputMin: T,
|
|
5679
|
+
inputMax: w,
|
|
5680
|
+
inputTooltip: p,
|
|
5681
|
+
inputTooltipPosition: A,
|
|
5682
|
+
inputTooltipPlacement: B,
|
|
5683
|
+
inputFeedback: z,
|
|
5684
|
+
inputHasFeedback: L,
|
|
5685
|
+
inputNoMargin: te,
|
|
5686
|
+
inputMask: le,
|
|
5687
|
+
inputOnKeyDownHandler: ue
|
|
5672
5688
|
}) => {
|
|
5673
|
-
const [
|
|
5674
|
-
i(
|
|
5675
|
-
|
|
5676
|
-
|
|
5677
|
-
},
|
|
5678
|
-
|
|
5689
|
+
const [ye, se] = j(!1), [De, re] = j(n), ce = He(null), ke = (b) => {
|
|
5690
|
+
i(b);
|
|
5691
|
+
const D = b.currentTarget.value.length;
|
|
5692
|
+
(C || m == null && D > 0 || !m && D > 2) && se(!0);
|
|
5693
|
+
}, Ce = () => {
|
|
5694
|
+
y(), C && se(!0);
|
|
5695
|
+
}, g = () => {
|
|
5696
|
+
_();
|
|
5697
|
+
}, E = (b) => {
|
|
5698
|
+
l(b), _(), C || re(crypto.randomUUID().toString()), se(!1);
|
|
5699
|
+
}, $ = (b) => {
|
|
5700
|
+
h || E(b);
|
|
5679
5701
|
};
|
|
5680
|
-
|
|
5681
|
-
n.length === 0 &&
|
|
5682
|
-
}, [n])
|
|
5683
|
-
|
|
5702
|
+
G(() => {
|
|
5703
|
+
!C && n.length === 0 && se(!1);
|
|
5704
|
+
}, [n, C]), G(() => {
|
|
5705
|
+
if (!C) return;
|
|
5706
|
+
const b = (D) => {
|
|
5707
|
+
ce.current && !ce.current.contains(D.target) && se(!1);
|
|
5708
|
+
};
|
|
5709
|
+
return document.addEventListener("mousedown", b), () => document.removeEventListener("mousedown", b);
|
|
5710
|
+
}, [C]);
|
|
5711
|
+
const N = ve(() => C ? or(r, n) : lr(r), [r, n, C]), I = () => N.length > 0 ? N.map((b, D) => /* @__PURE__ */ c(
|
|
5684
5712
|
"button",
|
|
5685
5713
|
{
|
|
5686
5714
|
className: `${Y.class}__option ${Y.class}__option--${a}`,
|
|
5687
|
-
"data-testid": `ds-option-${
|
|
5688
|
-
onClick: () =>
|
|
5689
|
-
children:
|
|
5715
|
+
"data-testid": `ds-option-${b.id ?? b.label}`,
|
|
5716
|
+
onClick: () => $(b),
|
|
5717
|
+
children: b.label
|
|
5690
5718
|
},
|
|
5691
|
-
|
|
5719
|
+
D
|
|
5692
5720
|
)) : /* @__PURE__ */ c(
|
|
5693
5721
|
"div",
|
|
5694
5722
|
{
|
|
@@ -5697,52 +5725,70 @@ const Y = {
|
|
|
5697
5725
|
},
|
|
5698
5726
|
"no_option"
|
|
5699
5727
|
);
|
|
5700
|
-
return /* @__PURE__ */
|
|
5701
|
-
|
|
5702
|
-
|
|
5703
|
-
{
|
|
5704
|
-
|
|
5705
|
-
|
|
5706
|
-
|
|
5707
|
-
|
|
5708
|
-
|
|
5709
|
-
|
|
5710
|
-
|
|
5711
|
-
|
|
5712
|
-
|
|
5713
|
-
|
|
5714
|
-
|
|
5715
|
-
|
|
5716
|
-
|
|
5717
|
-
|
|
5718
|
-
|
|
5719
|
-
|
|
5720
|
-
|
|
5721
|
-
|
|
5722
|
-
|
|
5723
|
-
|
|
5724
|
-
|
|
5725
|
-
|
|
5726
|
-
|
|
5727
|
-
|
|
5728
|
-
|
|
5729
|
-
|
|
5730
|
-
|
|
5731
|
-
|
|
5732
|
-
|
|
5733
|
-
|
|
5734
|
-
|
|
5735
|
-
|
|
5736
|
-
|
|
5737
|
-
|
|
5738
|
-
|
|
5739
|
-
|
|
5740
|
-
|
|
5741
|
-
|
|
5742
|
-
|
|
5728
|
+
return /* @__PURE__ */ R(
|
|
5729
|
+
"div",
|
|
5730
|
+
{
|
|
5731
|
+
className: `${Y.class}__container`,
|
|
5732
|
+
ref: ce,
|
|
5733
|
+
children: [
|
|
5734
|
+
/* @__PURE__ */ c(
|
|
5735
|
+
et,
|
|
5736
|
+
{
|
|
5737
|
+
animated: S,
|
|
5738
|
+
className: `${Y.class}__input`,
|
|
5739
|
+
disabled: h,
|
|
5740
|
+
feedback: z,
|
|
5741
|
+
hasFeedback: L,
|
|
5742
|
+
label: t,
|
|
5743
|
+
mask: le,
|
|
5744
|
+
max: w,
|
|
5745
|
+
min: T,
|
|
5746
|
+
name: e,
|
|
5747
|
+
noMargin: te,
|
|
5748
|
+
onBlurHandler: g,
|
|
5749
|
+
onChangeHandler: ke,
|
|
5750
|
+
onFocusHandler: Ce,
|
|
5751
|
+
onKeyDownHandler: ue,
|
|
5752
|
+
placeholder: v,
|
|
5753
|
+
size: a,
|
|
5754
|
+
status: f,
|
|
5755
|
+
testId: s,
|
|
5756
|
+
tooltip: p,
|
|
5757
|
+
tooltipPlacement: B,
|
|
5758
|
+
tooltipPosition: A,
|
|
5759
|
+
type: U,
|
|
5760
|
+
value: n
|
|
5761
|
+
},
|
|
5762
|
+
De
|
|
5763
|
+
),
|
|
5764
|
+
(u || m) && (m ? /* @__PURE__ */ c(
|
|
5765
|
+
"div",
|
|
5766
|
+
{
|
|
5767
|
+
className: `${Y.class}__loading ${Y.class}__loading--${a}`,
|
|
5768
|
+
style: { width: "18px" },
|
|
5769
|
+
children: /* @__PURE__ */ c($t, { fullscreen: !1 })
|
|
5770
|
+
}
|
|
5771
|
+
) : u && /* @__PURE__ */ c(
|
|
5772
|
+
Z,
|
|
5773
|
+
{
|
|
5774
|
+
className: `${Y.class}__icon ${Y.class}__icon--${a}`,
|
|
5775
|
+
image: u
|
|
5776
|
+
}
|
|
5777
|
+
)),
|
|
5778
|
+
ye && /* @__PURE__ */ c(
|
|
5779
|
+
"div",
|
|
5780
|
+
{
|
|
5781
|
+
className: `${Y.class}__list ${Y.class}__list--${a}`,
|
|
5782
|
+
"data-testid": "ds-list",
|
|
5783
|
+
children: I()
|
|
5784
|
+
}
|
|
5785
|
+
)
|
|
5786
|
+
]
|
|
5787
|
+
}
|
|
5788
|
+
);
|
|
5743
5789
|
};
|
|
5744
|
-
|
|
5745
|
-
const
|
|
5790
|
+
ur.displayName = "DsEditableSelect";
|
|
5791
|
+
const Xe = {
|
|
5746
5792
|
name: "DsIndicator",
|
|
5747
5793
|
class: "ds-indicator",
|
|
5748
5794
|
props: {
|
|
@@ -5755,12 +5801,12 @@ const Ye = {
|
|
|
5755
5801
|
required: !0
|
|
5756
5802
|
}
|
|
5757
5803
|
}
|
|
5758
|
-
},
|
|
5804
|
+
}, Er = ({
|
|
5759
5805
|
length: t,
|
|
5760
|
-
current: e =
|
|
5806
|
+
current: e = Xe.props.current.default
|
|
5761
5807
|
}) => {
|
|
5762
|
-
const [s, n] =
|
|
5763
|
-
|
|
5808
|
+
const [s, n] = j(e), r = (i) => i < s ? `${Xe.class}__step--older` : i === s ? `${Xe.class}__step--active` : "";
|
|
5809
|
+
G(() => {
|
|
5764
5810
|
n(e);
|
|
5765
5811
|
}, [e]);
|
|
5766
5812
|
const a = [];
|
|
@@ -5769,14 +5815,14 @@ const Ye = {
|
|
|
5769
5815
|
/* @__PURE__ */ c(
|
|
5770
5816
|
"div",
|
|
5771
5817
|
{
|
|
5772
|
-
className: `${
|
|
5818
|
+
className: `${Xe.class}__step ${r(i)}`,
|
|
5773
5819
|
"data-testid": `ds-indicator-step-${i}`
|
|
5774
5820
|
},
|
|
5775
5821
|
i
|
|
5776
5822
|
)
|
|
5777
5823
|
);
|
|
5778
|
-
return /* @__PURE__ */ c("div", { className:
|
|
5779
|
-
},
|
|
5824
|
+
return /* @__PURE__ */ c("div", { className: Xe.class, children: a });
|
|
5825
|
+
}, cr = {
|
|
5780
5826
|
name: "DsInlineEditable",
|
|
5781
5827
|
class: "ds-inline-editable",
|
|
5782
5828
|
props: {
|
|
@@ -5819,8 +5865,8 @@ const Ye = {
|
|
|
5819
5865
|
max: a,
|
|
5820
5866
|
onChangeHandler: i
|
|
5821
5867
|
}) => {
|
|
5822
|
-
const l =
|
|
5823
|
-
|
|
5868
|
+
const l = He(null), [u, d] = j(!1), [h, f] = j("");
|
|
5869
|
+
G(() => {
|
|
5824
5870
|
f(e ?? "");
|
|
5825
5871
|
}, [e]);
|
|
5826
5872
|
const _ = (m) => {
|
|
@@ -5829,13 +5875,13 @@ const Ye = {
|
|
|
5829
5875
|
function y(m) {
|
|
5830
5876
|
d(!1), i && (r && parseInt(r) >= parseInt(h === "" ? r : h) ? (m.currentTarget.value = r, f(r)) : a && parseInt(a) < parseInt(h) ? (m.currentTarget.value = a, f(a)) : m.currentTarget.value = h, i(m));
|
|
5831
5877
|
}
|
|
5832
|
-
const
|
|
5878
|
+
const S = (m) => {
|
|
5833
5879
|
f(m.currentTarget.value);
|
|
5834
5880
|
}, v = async () => {
|
|
5835
5881
|
var m;
|
|
5836
5882
|
await d(!0), (m = l.current) == null || m.focus();
|
|
5837
5883
|
};
|
|
5838
|
-
return /* @__PURE__ */ c("div", { className:
|
|
5884
|
+
return /* @__PURE__ */ c("div", { className: cr.class, children: u ? /* @__PURE__ */ c(
|
|
5839
5885
|
"input",
|
|
5840
5886
|
{
|
|
5841
5887
|
className: "ds-input__input",
|
|
@@ -5844,7 +5890,7 @@ const Ye = {
|
|
|
5844
5890
|
min: r,
|
|
5845
5891
|
name: t,
|
|
5846
5892
|
onBlur: y,
|
|
5847
|
-
onChange:
|
|
5893
|
+
onChange: S,
|
|
5848
5894
|
onKeyDown: _,
|
|
5849
5895
|
ref: l,
|
|
5850
5896
|
type: "number",
|
|
@@ -5855,13 +5901,13 @@ const Ye = {
|
|
|
5855
5901
|
{
|
|
5856
5902
|
"data-testid": "ds-inline-editible-div-click",
|
|
5857
5903
|
onClick: v,
|
|
5858
|
-
children: /* @__PURE__ */
|
|
5859
|
-
/* @__PURE__ */ c(
|
|
5904
|
+
children: /* @__PURE__ */ R(Ve, { alignItems: "center", gap: "nano", children: [
|
|
5905
|
+
/* @__PURE__ */ c(ae, { children: /* @__PURE__ */ c(Ne, { children: /* @__PURE__ */ R("b", { children: [
|
|
5860
5906
|
s,
|
|
5861
5907
|
e,
|
|
5862
5908
|
n
|
|
5863
5909
|
] }) }) }),
|
|
5864
|
-
/* @__PURE__ */ c(
|
|
5910
|
+
/* @__PURE__ */ c(ae, { children: /* @__PURE__ */ c(Z, { image: "edit_square" }) })
|
|
5865
5911
|
] })
|
|
5866
5912
|
}
|
|
5867
5913
|
) });
|
|
@@ -5870,8 +5916,8 @@ on.propTypes = {
|
|
|
5870
5916
|
value: o.string
|
|
5871
5917
|
};
|
|
5872
5918
|
on.displayName = "DsInlineEditable";
|
|
5873
|
-
var
|
|
5874
|
-
const
|
|
5919
|
+
var dr = /* @__PURE__ */ ((t) => (t[t.Elevation1 = 1] = "Elevation1", t[t.Elevation2 = 2] = "Elevation2", t[t.Elevation3 = 3] = "Elevation3", t[t.Elevation4 = 4] = "Elevation4", t))(dr || {}), ln = /* @__PURE__ */ ((t) => (t.Squared = "squared", t.Rounded = "rounded", t))(ln || {});
|
|
5920
|
+
const me = {
|
|
5875
5921
|
name: "Modal",
|
|
5876
5922
|
class: "ds-modal",
|
|
5877
5923
|
props: {
|
|
@@ -5907,58 +5953,58 @@ const fe = {
|
|
|
5907
5953
|
className: t,
|
|
5908
5954
|
title: e,
|
|
5909
5955
|
content: s,
|
|
5910
|
-
cancelBtnText: n =
|
|
5911
|
-
confirmBtnText: r =
|
|
5912
|
-
variant: a =
|
|
5956
|
+
cancelBtnText: n = me.props.cancelBtnText.default,
|
|
5957
|
+
confirmBtnText: r = me.props.confirmBtnText.default,
|
|
5958
|
+
variant: a = me.props.variant.default,
|
|
5913
5959
|
elevation: i,
|
|
5914
|
-
isModalOpen: l =
|
|
5960
|
+
isModalOpen: l = me.props.isModalOpen.default,
|
|
5915
5961
|
onClose: u,
|
|
5916
5962
|
onCancel: d,
|
|
5917
5963
|
onConfirm: h,
|
|
5918
5964
|
...f
|
|
5919
5965
|
}) => {
|
|
5920
|
-
const _ = a &&
|
|
5966
|
+
const _ = a && me.props.variant.options.find((m) => m === a) ? `${me.class}--${a}` : `${me.class}--${me.props.variant.default}`, y = i && `${me.class}--elevation-${i}`, S = h || d, v = Te(
|
|
5921
5967
|
(m) => {
|
|
5922
5968
|
m.keyCode === 27 && u();
|
|
5923
5969
|
},
|
|
5924
5970
|
[u]
|
|
5925
5971
|
);
|
|
5926
|
-
return
|
|
5972
|
+
return G(() => (l && window && !S && window.addEventListener("keyup", v), () => {
|
|
5927
5973
|
window.removeEventListener("keyup", v);
|
|
5928
|
-
}), [
|
|
5974
|
+
}), [S, v]), l ? /* @__PURE__ */ R(pt, { children: [
|
|
5929
5975
|
/* @__PURE__ */ c(
|
|
5930
5976
|
"div",
|
|
5931
5977
|
{
|
|
5932
5978
|
className: "ds-modal-overlay",
|
|
5933
5979
|
"data-testid": "ds-modal-overlay",
|
|
5934
5980
|
...f,
|
|
5935
|
-
onClick: () =>
|
|
5981
|
+
onClick: () => S ? () => {
|
|
5936
5982
|
} : u()
|
|
5937
5983
|
}
|
|
5938
5984
|
),
|
|
5939
|
-
/* @__PURE__ */
|
|
5985
|
+
/* @__PURE__ */ R(
|
|
5940
5986
|
"div",
|
|
5941
5987
|
{
|
|
5942
|
-
className: [
|
|
5988
|
+
className: [me.class, _, y, t].filter((m) => m).join(" "),
|
|
5943
5989
|
"data-testid": "ds-modal",
|
|
5944
5990
|
children: [
|
|
5945
|
-
!
|
|
5991
|
+
!S && /* @__PURE__ */ c(
|
|
5946
5992
|
"button",
|
|
5947
5993
|
{
|
|
5948
5994
|
className: "ds-modal__closeBtn",
|
|
5949
5995
|
"data-testid": "ds-modal-close-button",
|
|
5950
5996
|
onClick: u,
|
|
5951
|
-
children: /* @__PURE__ */ c(
|
|
5997
|
+
children: /* @__PURE__ */ c(Z, { image: "close", size: "lg" })
|
|
5952
5998
|
}
|
|
5953
5999
|
),
|
|
5954
|
-
/* @__PURE__ */
|
|
6000
|
+
/* @__PURE__ */ R("div", { className: "ds-modal__content", children: [
|
|
5955
6001
|
/* @__PURE__ */ c("div", { className: "ds-modal__content__title", children: e }),
|
|
5956
|
-
e && /* @__PURE__ */ c(
|
|
6002
|
+
e && /* @__PURE__ */ c(_e, { vertical: "xxxs" }),
|
|
5957
6003
|
/* @__PURE__ */ c("div", { className: "ds-modal__content__content", children: s })
|
|
5958
6004
|
] }),
|
|
5959
|
-
|
|
5960
|
-
!
|
|
5961
|
-
/* @__PURE__ */
|
|
6005
|
+
S && /* @__PURE__ */ c(_e, { vertical: "sm" }),
|
|
6006
|
+
!S && /* @__PURE__ */ c(_e, { vertical: "xxs" }),
|
|
6007
|
+
/* @__PURE__ */ R("div", { className: "ds-modal__cta", children: [
|
|
5962
6008
|
d && /* @__PURE__ */ c(
|
|
5963
6009
|
ut,
|
|
5964
6010
|
{
|
|
@@ -5987,15 +6033,15 @@ un.propTypes = {
|
|
|
5987
6033
|
firstButtonText: o.string,
|
|
5988
6034
|
confirmBtnText: o.string,
|
|
5989
6035
|
cancelBtnText: o.string,
|
|
5990
|
-
variant: o.oneOf(
|
|
5991
|
-
elevation: o.oneOf(
|
|
6036
|
+
variant: o.oneOf(me.props.variant.options),
|
|
6037
|
+
elevation: o.oneOf(me.props.elevation.options),
|
|
5992
6038
|
isModalOpen: o.bool,
|
|
5993
6039
|
title: o.node,
|
|
5994
6040
|
content: o.node
|
|
5995
6041
|
};
|
|
5996
6042
|
un.displayName = "DsModal";
|
|
5997
6043
|
var cn = /* @__PURE__ */ ((t) => (t.Success = "success", t.Danger = "danger", t.Warning = "warning", t.Info = "info", t))(cn || {}), dn = /* @__PURE__ */ ((t) => (t.Rounded = "rounded", t.Squared = "squared", t))(dn || {});
|
|
5998
|
-
const
|
|
6044
|
+
const pe = {
|
|
5999
6045
|
name: "DsNotification",
|
|
6000
6046
|
class: "ds-notification",
|
|
6001
6047
|
props: {
|
|
@@ -6041,73 +6087,73 @@ const le = {
|
|
|
6041
6087
|
var pn = /* @__PURE__ */ ((t) => (t.success = "check", t.danger = "error", t.warning = "warning", t.info = "info", t))(pn || {});
|
|
6042
6088
|
const hn = ({
|
|
6043
6089
|
className: t,
|
|
6044
|
-
type: e =
|
|
6045
|
-
variant: s =
|
|
6090
|
+
type: e = pe.props.type.default,
|
|
6091
|
+
variant: s = pe.props.variant.default,
|
|
6046
6092
|
id: n,
|
|
6047
6093
|
children: r,
|
|
6048
6094
|
message: a,
|
|
6049
|
-
autoClose: i =
|
|
6050
|
-
autoCloseTimer: l =
|
|
6051
|
-
dismissible: u =
|
|
6095
|
+
autoClose: i = pe.props.autoClose.default,
|
|
6096
|
+
autoCloseTimer: l = pe.props.autoCloseTimer.default,
|
|
6097
|
+
dismissible: u = pe.props.dismissible.default,
|
|
6052
6098
|
elevation: d,
|
|
6053
|
-
progressBar: h =
|
|
6099
|
+
progressBar: h = pe.props.progressBar.default,
|
|
6054
6100
|
handleClose: f,
|
|
6055
|
-
testId: _ =
|
|
6101
|
+
testId: _ = pe.props.testId.default
|
|
6056
6102
|
}) => {
|
|
6057
|
-
const [y,
|
|
6058
|
-
|
|
6059
|
-
e && `${
|
|
6060
|
-
s && `${
|
|
6061
|
-
d && `${
|
|
6103
|
+
const [y, S] = j(l), [v, m] = j(!1), [C, U] = j(!0), T = [
|
|
6104
|
+
pe.class,
|
|
6105
|
+
e && `${pe.class}--${e}`,
|
|
6106
|
+
s && `${pe.class}--${s}`,
|
|
6107
|
+
d && `${pe.class}--elevation-${d}`,
|
|
6062
6108
|
t
|
|
6063
|
-
].join(" "),
|
|
6064
|
-
|
|
6065
|
-
!i && !u &&
|
|
6109
|
+
].join(" "), w = () => S((z) => (z === 0 && U(!1), z - 100));
|
|
6110
|
+
G(() => {
|
|
6111
|
+
!i && !u && U(!0);
|
|
6066
6112
|
let z;
|
|
6067
|
-
return !v && i && (z = setInterval(
|
|
6113
|
+
return !v && i && (z = setInterval(w, 100)), () => {
|
|
6068
6114
|
clearInterval(z);
|
|
6069
6115
|
};
|
|
6070
|
-
}, [v, i, l,
|
|
6116
|
+
}, [v, i, l, C, u]);
|
|
6071
6117
|
const p = () => {
|
|
6072
6118
|
m(!0);
|
|
6073
|
-
},
|
|
6119
|
+
}, A = () => {
|
|
6074
6120
|
m(!1);
|
|
6075
|
-
},
|
|
6076
|
-
|
|
6121
|
+
}, B = (z) => {
|
|
6122
|
+
U(!1), f && f(z);
|
|
6077
6123
|
};
|
|
6078
|
-
return
|
|
6124
|
+
return C ? /* @__PURE__ */ R(
|
|
6079
6125
|
"div",
|
|
6080
6126
|
{
|
|
6081
|
-
className:
|
|
6127
|
+
className: T,
|
|
6082
6128
|
"data-testid": _,
|
|
6083
6129
|
id: n,
|
|
6084
6130
|
onMouseEnter: p,
|
|
6085
|
-
onMouseLeave:
|
|
6131
|
+
onMouseLeave: A,
|
|
6086
6132
|
children: [
|
|
6087
|
-
/* @__PURE__ */ c(
|
|
6088
|
-
/* @__PURE__ */ c(
|
|
6089
|
-
|
|
6133
|
+
/* @__PURE__ */ c(Qe, { bottom: "nano", top: "nano", children: /* @__PURE__ */ R(Ve, { alignItems: "center", flexWrap: "nowrap", gap: "xxxs", children: [
|
|
6134
|
+
/* @__PURE__ */ c(ae, { children: /* @__PURE__ */ c(
|
|
6135
|
+
Z,
|
|
6090
6136
|
{
|
|
6091
6137
|
color: e,
|
|
6092
6138
|
fill: !0,
|
|
6093
6139
|
image: pn[e]
|
|
6094
6140
|
}
|
|
6095
6141
|
) }),
|
|
6096
|
-
/* @__PURE__ */ c(
|
|
6097
|
-
/* @__PURE__ */ c(
|
|
6142
|
+
/* @__PURE__ */ c(ae, { flex: "1", children: /* @__PURE__ */ c(Qe, { left: "none", right: "none", space: "nano", children: r ?? a }) }),
|
|
6143
|
+
/* @__PURE__ */ c(ae, { children: u ? /* @__PURE__ */ c(
|
|
6098
6144
|
"div",
|
|
6099
6145
|
{
|
|
6100
|
-
className: `${
|
|
6146
|
+
className: `${pe.class}__button`,
|
|
6101
6147
|
"data-testid": `${_}-close`,
|
|
6102
|
-
onClick: (z) =>
|
|
6103
|
-
children: /* @__PURE__ */ c(
|
|
6148
|
+
onClick: (z) => B(z),
|
|
6149
|
+
children: /* @__PURE__ */ c(Qe, { children: /* @__PURE__ */ c(Z, { image: "close" }) })
|
|
6104
6150
|
}
|
|
6105
|
-
) : /* @__PURE__ */ c(
|
|
6151
|
+
) : /* @__PURE__ */ c(_e, { horizontal: "quark" }) })
|
|
6106
6152
|
] }) }),
|
|
6107
6153
|
h && i && /* @__PURE__ */ c(
|
|
6108
6154
|
"div",
|
|
6109
6155
|
{
|
|
6110
|
-
className: `${
|
|
6156
|
+
className: `${pe.class}__progress-bar ${pe.class}__progress-bar--${e}`,
|
|
6111
6157
|
"data-testid": `${_}-progress-bar`,
|
|
6112
6158
|
style: {
|
|
6113
6159
|
width: `${y / l * 100}%`
|
|
@@ -6169,83 +6215,83 @@ const At = {
|
|
|
6169
6215
|
instructionLabel: s = At.props.instructionLabel.default,
|
|
6170
6216
|
testId: n = At.props.testId.default
|
|
6171
6217
|
}) => {
|
|
6172
|
-
const [r, a] =
|
|
6218
|
+
const [r, a] = j(""), [i, l] = j(""), [u, d] = j([]), [h, f] = j({
|
|
6173
6219
|
score: 0,
|
|
6174
6220
|
color: "danger",
|
|
6175
6221
|
label: "Fraco"
|
|
6176
|
-
}), [_, y] =
|
|
6222
|
+
}), [_, y] = j(!1), S = Te(
|
|
6177
6223
|
(p) => {
|
|
6178
|
-
const
|
|
6179
|
-
(
|
|
6224
|
+
const A = e.map(
|
|
6225
|
+
(B) => B == null ? void 0 : B.rule(p)
|
|
6180
6226
|
);
|
|
6181
|
-
return d(
|
|
6227
|
+
return d(A), A;
|
|
6182
6228
|
},
|
|
6183
6229
|
[e]
|
|
6184
|
-
), v =
|
|
6230
|
+
), v = Te(
|
|
6185
6231
|
(p) => {
|
|
6186
6232
|
a(p.currentTarget.value);
|
|
6187
|
-
const
|
|
6233
|
+
const A = S(p.currentTarget.value), B = T(A);
|
|
6188
6234
|
t({
|
|
6189
6235
|
password: p.currentTarget.value,
|
|
6190
6236
|
confirmationPassword: i,
|
|
6191
6237
|
isEqual: i === p.currentTarget.value,
|
|
6192
|
-
feedback:
|
|
6238
|
+
feedback: B
|
|
6193
6239
|
});
|
|
6194
6240
|
},
|
|
6195
|
-
[i, t,
|
|
6196
|
-
), m =
|
|
6241
|
+
[i, t, S]
|
|
6242
|
+
), m = Te(
|
|
6197
6243
|
(p) => {
|
|
6198
6244
|
l(p.currentTarget.value);
|
|
6199
|
-
const
|
|
6245
|
+
const A = S(r), B = T(A);
|
|
6200
6246
|
t({
|
|
6201
6247
|
password: r,
|
|
6202
6248
|
confirmationPassword: p.currentTarget.value,
|
|
6203
6249
|
isEqual: r === p.currentTarget.value,
|
|
6204
|
-
feedback:
|
|
6250
|
+
feedback: B
|
|
6205
6251
|
});
|
|
6206
6252
|
},
|
|
6207
|
-
[r, t,
|
|
6208
|
-
),
|
|
6253
|
+
[r, t, S]
|
|
6254
|
+
), C = ve(() => r !== i && _ ? { status: "error", feedback: "As senhas são diferentes" } : { status: "", feedback: "" }, [r, i, _]), U = Te(
|
|
6209
6255
|
(p) => {
|
|
6210
|
-
const
|
|
6256
|
+
const A = {
|
|
6211
6257
|
score: p,
|
|
6212
6258
|
color: "danger",
|
|
6213
6259
|
label: rt.weak
|
|
6214
6260
|
};
|
|
6215
|
-
return p > 30 && p < 75 ? (
|
|
6261
|
+
return p > 30 && p < 75 ? (A.color = "warning", A.label = rt.medium) : p >= 75 && p < 100 ? (A.color = "success", A.label = rt.good) : p === 100 && (A.color = "success-dark", A.label = rt.strong), A;
|
|
6216
6262
|
},
|
|
6217
6263
|
[]
|
|
6218
|
-
),
|
|
6264
|
+
), T = Te(
|
|
6219
6265
|
(p) => {
|
|
6220
|
-
const
|
|
6221
|
-
(z,
|
|
6266
|
+
const A = p.reduce(
|
|
6267
|
+
(z, L) => {
|
|
6222
6268
|
let te = z;
|
|
6223
|
-
return
|
|
6269
|
+
return L ? (te++, te) : z;
|
|
6224
6270
|
},
|
|
6225
6271
|
0
|
|
6226
|
-
),
|
|
6227
|
-
|
|
6272
|
+
), B = U(
|
|
6273
|
+
A * 100 / p.length
|
|
6228
6274
|
);
|
|
6229
|
-
return f(
|
|
6230
|
-
},
|
|
6231
|
-
[
|
|
6232
|
-
),
|
|
6233
|
-
const
|
|
6234
|
-
return /* @__PURE__ */
|
|
6235
|
-
u[
|
|
6236
|
-
|
|
6275
|
+
return f(B), B;
|
|
6276
|
+
},
|
|
6277
|
+
[U]
|
|
6278
|
+
), w = () => /* @__PURE__ */ c("ul", { children: e.map((p, A) => {
|
|
6279
|
+
const B = u[A] ? "ds-password-confirmation__list" : "ds-password-confirmation__list--disc";
|
|
6280
|
+
return /* @__PURE__ */ R("li", { className: B, children: [
|
|
6281
|
+
u[A] ? /* @__PURE__ */ c(
|
|
6282
|
+
Z,
|
|
6237
6283
|
{
|
|
6238
6284
|
color: "success-dark",
|
|
6239
6285
|
image: "check",
|
|
6240
6286
|
testId: "ds-check-icon"
|
|
6241
6287
|
}
|
|
6242
6288
|
) : null,
|
|
6243
|
-
/* @__PURE__ */ c(
|
|
6244
|
-
/* @__PURE__ */ c(
|
|
6245
|
-
] },
|
|
6289
|
+
/* @__PURE__ */ c(_e, { horizontal: "quark" }),
|
|
6290
|
+
/* @__PURE__ */ c(Ne, { children: p.title })
|
|
6291
|
+
] }, A + p.title);
|
|
6246
6292
|
}) });
|
|
6247
|
-
return /* @__PURE__ */
|
|
6248
|
-
/* @__PURE__ */ c(
|
|
6293
|
+
return /* @__PURE__ */ R(Ve, { className: "ds-password-confirmation", flexDirection: "column", children: [
|
|
6294
|
+
/* @__PURE__ */ c(ae, { children: /* @__PURE__ */ c(
|
|
6249
6295
|
et,
|
|
6250
6296
|
{
|
|
6251
6297
|
label: "Senha",
|
|
@@ -6256,7 +6302,7 @@ const At = {
|
|
|
6256
6302
|
value: r
|
|
6257
6303
|
}
|
|
6258
6304
|
) }),
|
|
6259
|
-
/* @__PURE__ */ c(
|
|
6305
|
+
/* @__PURE__ */ c(ae, { children: /* @__PURE__ */ c(
|
|
6260
6306
|
zs,
|
|
6261
6307
|
{
|
|
6262
6308
|
color: h == null ? void 0 : h.color,
|
|
@@ -6264,19 +6310,19 @@ const At = {
|
|
|
6264
6310
|
progress: h == null ? void 0 : h.score
|
|
6265
6311
|
}
|
|
6266
6312
|
) }),
|
|
6267
|
-
/* @__PURE__ */ c(
|
|
6268
|
-
/* @__PURE__ */ c(
|
|
6269
|
-
/* @__PURE__ */ c(
|
|
6270
|
-
/* @__PURE__ */ c(
|
|
6313
|
+
/* @__PURE__ */ c(ae, { children: /* @__PURE__ */ c(Ne, { children: s }) }),
|
|
6314
|
+
/* @__PURE__ */ c(ae, { children: w() }),
|
|
6315
|
+
/* @__PURE__ */ c(_e, { vertical: "xxs" }),
|
|
6316
|
+
/* @__PURE__ */ c(ae, { children: /* @__PURE__ */ c(
|
|
6271
6317
|
et,
|
|
6272
6318
|
{
|
|
6273
|
-
feedback:
|
|
6319
|
+
feedback: C.feedback,
|
|
6274
6320
|
label: "Confirme a senha",
|
|
6275
6321
|
name: "confirmPassword",
|
|
6276
6322
|
onBlurHandler: () => y(!0),
|
|
6277
6323
|
onChangeHandler: m,
|
|
6278
6324
|
onFocusHandler: () => y(!0),
|
|
6279
|
-
status:
|
|
6325
|
+
status: C.status,
|
|
6280
6326
|
testId: `${n}-confirm-input`,
|
|
6281
6327
|
type: "password",
|
|
6282
6328
|
value: i
|
|
@@ -6291,7 +6337,7 @@ fn.propTypes = {
|
|
|
6291
6337
|
testId: o.string
|
|
6292
6338
|
};
|
|
6293
6339
|
fn.displayName = "DsPasswordConfirmation";
|
|
6294
|
-
const
|
|
6340
|
+
const Ee = {
|
|
6295
6341
|
name: "DsStepper",
|
|
6296
6342
|
class: "ds-stepper",
|
|
6297
6343
|
props: {
|
|
@@ -6304,30 +6350,30 @@ const ye = {
|
|
|
6304
6350
|
default: 0
|
|
6305
6351
|
}
|
|
6306
6352
|
}
|
|
6307
|
-
},
|
|
6353
|
+
}, pr = ({
|
|
6308
6354
|
steps: t,
|
|
6309
|
-
selectedStep: e =
|
|
6355
|
+
selectedStep: e = Ee.props.selectedStep.default,
|
|
6310
6356
|
onChange: s
|
|
6311
6357
|
}) => {
|
|
6312
|
-
const [n, r] =
|
|
6313
|
-
const u = [`${
|
|
6314
|
-
return l !== i && u.push(`${
|
|
6358
|
+
const [n, r] = j(e), a = (i, l) => {
|
|
6359
|
+
const u = [`${Ee.class}__button`];
|
|
6360
|
+
return l !== i && u.push(`${Ee.class}__button--round`), t[i] && t[i].disabled && u.push(`${Ee.class}__button--disabled`), u.join(" ");
|
|
6315
6361
|
};
|
|
6316
|
-
return
|
|
6362
|
+
return G(() => {
|
|
6317
6363
|
r(e);
|
|
6318
|
-
}, [e]),
|
|
6364
|
+
}, [e]), G(() => {
|
|
6319
6365
|
s(n);
|
|
6320
|
-
}, [n]), /* @__PURE__ */
|
|
6321
|
-
/* @__PURE__ */
|
|
6366
|
+
}, [n]), /* @__PURE__ */ R("div", { className: Ee.class, children: [
|
|
6367
|
+
/* @__PURE__ */ R("span", { className: `${Ee.class}__step-counter`, children: [
|
|
6322
6368
|
"Etapa ",
|
|
6323
6369
|
n + 1,
|
|
6324
6370
|
" de ",
|
|
6325
6371
|
t == null ? void 0 : t.length
|
|
6326
6372
|
] }),
|
|
6327
|
-
/* @__PURE__ */ c("div", { className: `${
|
|
6373
|
+
/* @__PURE__ */ c("div", { className: `${Ee.class}__step`, children: t.map((i, l) => /* @__PURE__ */ c(
|
|
6328
6374
|
"div",
|
|
6329
6375
|
{
|
|
6330
|
-
className: `${
|
|
6376
|
+
className: `${Ee.class}__content`,
|
|
6331
6377
|
children: /* @__PURE__ */ c(
|
|
6332
6378
|
"button",
|
|
6333
6379
|
{
|
|
@@ -6335,19 +6381,19 @@ const ye = {
|
|
|
6335
6381
|
"data-testid": `ds-button-${l}`,
|
|
6336
6382
|
disabled: i.disabled,
|
|
6337
6383
|
onClick: () => r(l),
|
|
6338
|
-
children: /* @__PURE__ */
|
|
6339
|
-
n === l ? /* @__PURE__ */ c(
|
|
6340
|
-
|
|
6384
|
+
children: /* @__PURE__ */ R("span", { className: `${Ee.class}__text`, children: [
|
|
6385
|
+
n === l ? /* @__PURE__ */ c(Qe, { bottom: "none", left: "nano", right: "nano", top: "none", children: /* @__PURE__ */ c(
|
|
6386
|
+
Z,
|
|
6341
6387
|
{
|
|
6342
|
-
className: `${
|
|
6388
|
+
className: `${Ee.class}__icon`,
|
|
6343
6389
|
fill: !0,
|
|
6344
6390
|
image: i.icon,
|
|
6345
6391
|
testId: `ds-icon-${l}`
|
|
6346
6392
|
}
|
|
6347
6393
|
) }) : /* @__PURE__ */ c(
|
|
6348
|
-
|
|
6394
|
+
Z,
|
|
6349
6395
|
{
|
|
6350
|
-
className: `${
|
|
6396
|
+
className: `${Ee.class}__icon`,
|
|
6351
6397
|
fill: !0,
|
|
6352
6398
|
image: i.icon,
|
|
6353
6399
|
testId: `ds-icon-${l}`
|
|
@@ -6362,8 +6408,8 @@ const ye = {
|
|
|
6362
6408
|
)) })
|
|
6363
6409
|
] });
|
|
6364
6410
|
};
|
|
6365
|
-
|
|
6366
|
-
const
|
|
6411
|
+
pr.displayName = "DsStepper";
|
|
6412
|
+
const Ae = {
|
|
6367
6413
|
name: "Table",
|
|
6368
6414
|
class: "ds-table",
|
|
6369
6415
|
props: {
|
|
@@ -6380,13 +6426,13 @@ const Ce = {
|
|
|
6380
6426
|
default: []
|
|
6381
6427
|
}
|
|
6382
6428
|
}
|
|
6383
|
-
}, gn = ({ item: t, columns: e }) => /* @__PURE__ */ c("tr", { className: `${
|
|
6384
|
-
const r = s.align && `${
|
|
6429
|
+
}, gn = ({ item: t, columns: e }) => /* @__PURE__ */ c("tr", { className: `${Ae.class}__row`, children: e.map((s, n) => {
|
|
6430
|
+
const r = s.align && `${Ae.class}__cell--align-${s.align}`;
|
|
6385
6431
|
return /* @__PURE__ */ c("td", { children: /* @__PURE__ */ c(
|
|
6386
6432
|
"div",
|
|
6387
6433
|
{
|
|
6388
6434
|
className: [
|
|
6389
|
-
`${
|
|
6435
|
+
`${Ae.class}__cell`,
|
|
6390
6436
|
r,
|
|
6391
6437
|
s.className
|
|
6392
6438
|
].filter((a) => a).join(" "),
|
|
@@ -6395,28 +6441,28 @@ const Ce = {
|
|
|
6395
6441
|
) }, n);
|
|
6396
6442
|
}) });
|
|
6397
6443
|
gn.displayName = "DsTableRow";
|
|
6398
|
-
const
|
|
6444
|
+
const hr = ({ columns: t, data: e, className: s }) => /* @__PURE__ */ c("div", { className: `${Ae.class}__wrapper`, children: /* @__PURE__ */ R(
|
|
6399
6445
|
"table",
|
|
6400
6446
|
{
|
|
6401
|
-
className: [`${
|
|
6447
|
+
className: [`${Ae.class}`, s].filter((n) => n).join(" "),
|
|
6402
6448
|
children: [
|
|
6403
|
-
/* @__PURE__ */ c("thead", { className: `${
|
|
6449
|
+
/* @__PURE__ */ c("thead", { className: `${Ae.class}__head`, children: /* @__PURE__ */ c("tr", { className: `${Ae.class}__row`, children: t == null ? void 0 : t.map((n, r) => /* @__PURE__ */ c("th", { style: { width: n.size }, children: /* @__PURE__ */ c(
|
|
6404
6450
|
"div",
|
|
6405
6451
|
{
|
|
6406
6452
|
className: [
|
|
6407
|
-
`${
|
|
6408
|
-
n.align && `${
|
|
6453
|
+
`${Ae.class}__cell`,
|
|
6454
|
+
n.align && `${Ae.class}__cell--align-${n.align}`
|
|
6409
6455
|
].filter((a) => a).join(" "),
|
|
6410
6456
|
children: n.label
|
|
6411
6457
|
}
|
|
6412
6458
|
) }, r)) }) }),
|
|
6413
|
-
/* @__PURE__ */ c("tbody", { className: `${
|
|
6459
|
+
/* @__PURE__ */ c("tbody", { className: `${Ae.class}__body`, children: e && e.map((n, r) => /* @__PURE__ */ c(gn, { columns: t, item: n }, r)) })
|
|
6414
6460
|
]
|
|
6415
6461
|
}
|
|
6416
6462
|
) });
|
|
6417
|
-
|
|
6463
|
+
hr.displayName = "DsTable";
|
|
6418
6464
|
var mn = /* @__PURE__ */ ((t) => (t.None = "", t.Primary = "primary", t.Secondary = "secondary", t.Neutral = "neutral", t.Success = "success", t.Warning = "warning", t.Danger = "danger", t.Info = "info", t))(mn || {});
|
|
6419
|
-
const
|
|
6465
|
+
const $e = {
|
|
6420
6466
|
name: "DsTabs",
|
|
6421
6467
|
class: "ds-tabs",
|
|
6422
6468
|
props: {
|
|
@@ -6443,7 +6489,7 @@ const Be = {
|
|
|
6443
6489
|
}
|
|
6444
6490
|
}
|
|
6445
6491
|
}
|
|
6446
|
-
},
|
|
6492
|
+
}, fr = ({
|
|
6447
6493
|
active: t,
|
|
6448
6494
|
className: e,
|
|
6449
6495
|
color: s,
|
|
@@ -6454,10 +6500,10 @@ const Be = {
|
|
|
6454
6500
|
onClick: l
|
|
6455
6501
|
}) => {
|
|
6456
6502
|
const u = [
|
|
6457
|
-
`${
|
|
6458
|
-
`${
|
|
6459
|
-
t && `${
|
|
6460
|
-
n && `${
|
|
6503
|
+
`${$e.class}__tab`,
|
|
6504
|
+
`${$e.class}__tab-color--${s}`,
|
|
6505
|
+
t && `${$e.class}__tab--active`,
|
|
6506
|
+
n && `${$e.class}__tab--disabled`,
|
|
6461
6507
|
e
|
|
6462
6508
|
].join(" "), d = (h) => {
|
|
6463
6509
|
l && !n && l(h);
|
|
@@ -6472,24 +6518,24 @@ const Be = {
|
|
|
6472
6518
|
children: i
|
|
6473
6519
|
}
|
|
6474
6520
|
);
|
|
6475
|
-
},
|
|
6521
|
+
}, Sr = ({
|
|
6476
6522
|
tabs: t,
|
|
6477
6523
|
color: e,
|
|
6478
|
-
selectedTab: s =
|
|
6524
|
+
selectedTab: s = $e.props.selectedTab.default,
|
|
6479
6525
|
className: n,
|
|
6480
6526
|
onChange: r
|
|
6481
6527
|
}) => {
|
|
6482
|
-
const [a, i] =
|
|
6528
|
+
const [a, i] = j(s), l = (u) => {
|
|
6483
6529
|
i(u), r && r(u);
|
|
6484
6530
|
};
|
|
6485
|
-
return
|
|
6531
|
+
return G(() => i(s), [s]), /* @__PURE__ */ R(
|
|
6486
6532
|
"div",
|
|
6487
6533
|
{
|
|
6488
|
-
className: [
|
|
6534
|
+
className: [$e.class, n].filter((u) => u).join(" "),
|
|
6489
6535
|
"data-testid": "ds-tabs",
|
|
6490
6536
|
children: [
|
|
6491
|
-
/* @__PURE__ */ c("div", { className: `${
|
|
6492
|
-
|
|
6537
|
+
/* @__PURE__ */ c("div", { className: `${$e.class}__header`, children: t.map((u, d) => /* @__PURE__ */ bn(
|
|
6538
|
+
fr,
|
|
6493
6539
|
{
|
|
6494
6540
|
...u,
|
|
6495
6541
|
active: a === d,
|
|
@@ -6499,15 +6545,15 @@ const Be = {
|
|
|
6499
6545
|
onClick: () => l(d)
|
|
6500
6546
|
}
|
|
6501
6547
|
)) }),
|
|
6502
|
-
/* @__PURE__ */ c("div", { className: `${
|
|
6548
|
+
/* @__PURE__ */ c("div", { className: `${$e.class}__content`, children: t[a].content })
|
|
6503
6549
|
]
|
|
6504
6550
|
}
|
|
6505
6551
|
);
|
|
6506
6552
|
};
|
|
6507
|
-
function
|
|
6553
|
+
function gr({ library: t, children: e, theme: s }) {
|
|
6508
6554
|
return /* @__PURE__ */ c("div", { "data-library": t, "data-theme": s, children: /* @__PURE__ */ c("div", { className: "ds-theme", children: e }) });
|
|
6509
6555
|
}
|
|
6510
|
-
|
|
6556
|
+
gr.propTypes = {
|
|
6511
6557
|
library: o.string,
|
|
6512
6558
|
children: o.node.isRequired,
|
|
6513
6559
|
theme: o.string
|
|
@@ -6572,22 +6618,22 @@ _n.propTypes = {
|
|
|
6572
6618
|
removeNotification: o.func
|
|
6573
6619
|
};
|
|
6574
6620
|
_n.displayName = "DsNotificationList";
|
|
6575
|
-
const
|
|
6621
|
+
const Ke = {
|
|
6576
6622
|
class: "ds-split-layout"
|
|
6577
|
-
},
|
|
6623
|
+
}, mr = ({
|
|
6578
6624
|
leftContent: t,
|
|
6579
6625
|
rightContent: e,
|
|
6580
6626
|
leftBackgroundColor: s,
|
|
6581
6627
|
rightBackgroundColor: n,
|
|
6582
6628
|
reverseOnMobile: r = !1
|
|
6583
6629
|
}) => {
|
|
6584
|
-
const a = s ? `bg-color__${s}` : "", i = n ? `bg-color__${n}` : "", l = r ? `${
|
|
6585
|
-
return /* @__PURE__ */
|
|
6630
|
+
const a = s ? `bg-color__${s}` : "", i = n ? `bg-color__${n}` : "", l = r ? `${Ke.class}__content--mobile-order-2` : "", u = r ? `${Ke.class}__content--mobile-order-1` : "", d = `${Ke.class}__content ${a} ${l}`, h = `${Ke.class}__content ${i} ${u}`;
|
|
6631
|
+
return /* @__PURE__ */ R("div", { className: Ke.class, children: [
|
|
6586
6632
|
/* @__PURE__ */ c("div", { className: d, children: t }),
|
|
6587
6633
|
/* @__PURE__ */ c("div", { className: h, children: e })
|
|
6588
6634
|
] });
|
|
6589
6635
|
};
|
|
6590
|
-
|
|
6636
|
+
mr.displayName = "DsSplitLayout";
|
|
6591
6637
|
const at = {
|
|
6592
6638
|
name: "TwoColumns",
|
|
6593
6639
|
class: "ds-two-columns",
|
|
@@ -6597,11 +6643,11 @@ const at = {
|
|
|
6597
6643
|
main: e,
|
|
6598
6644
|
sidebar: s,
|
|
6599
6645
|
breadcrumb: n
|
|
6600
|
-
}) => /* @__PURE__ */
|
|
6601
|
-
/* @__PURE__ */
|
|
6646
|
+
}) => /* @__PURE__ */ R(Mt, { children: [
|
|
6647
|
+
/* @__PURE__ */ R("div", { className: "ds-grid", children: [
|
|
6602
6648
|
/* @__PURE__ */ c("div", { className: "ds-grid__row", children: /* @__PURE__ */ c("div", { className: "ds-grid__col ds-grid__col-12", children: n }) }),
|
|
6603
|
-
/* @__PURE__ */
|
|
6604
|
-
/* @__PURE__ */
|
|
6649
|
+
/* @__PURE__ */ R("div", { className: `${at.class}__content ds-grid__row`, children: [
|
|
6650
|
+
/* @__PURE__ */ R("div", { className: "ds-grid__col ds-grid__col--lg-8 ds-grid__col--sm-12 ds-grid__col-12", children: [
|
|
6605
6651
|
/* @__PURE__ */ c("div", { className: `${at.class}__header`, children: t }),
|
|
6606
6652
|
/* @__PURE__ */ c("div", { className: `${at.class}__main`, children: e })
|
|
6607
6653
|
] }),
|
|
@@ -6614,7 +6660,7 @@ const at = {
|
|
|
6614
6660
|
)
|
|
6615
6661
|
] })
|
|
6616
6662
|
] }),
|
|
6617
|
-
/* @__PURE__ */ c(
|
|
6663
|
+
/* @__PURE__ */ c(_e, { vertical: "sm" })
|
|
6618
6664
|
] });
|
|
6619
6665
|
yn.propTypes = {
|
|
6620
6666
|
breadcrumb: o.node,
|
|
@@ -6640,15 +6686,15 @@ export {
|
|
|
6640
6686
|
ir as DsCarousel,
|
|
6641
6687
|
fs as DsCheckbox,
|
|
6642
6688
|
Mt as DsContainer,
|
|
6643
|
-
|
|
6644
|
-
|
|
6645
|
-
|
|
6689
|
+
ur as DsEditableSelect,
|
|
6690
|
+
ae as DsFlexElement,
|
|
6691
|
+
Ve as DsFlexLayout,
|
|
6646
6692
|
rr as DsGridElement,
|
|
6647
6693
|
nn as DsGridLayout,
|
|
6648
6694
|
_s as DsHR,
|
|
6649
6695
|
Nt as DsHeading,
|
|
6650
|
-
|
|
6651
|
-
|
|
6696
|
+
Z as DsIcon,
|
|
6697
|
+
Er as DsIndicator,
|
|
6652
6698
|
on as DsInlineEditable,
|
|
6653
6699
|
et as DsInput,
|
|
6654
6700
|
$t as DsLoading,
|
|
@@ -6656,20 +6702,20 @@ export {
|
|
|
6656
6702
|
hn as DsNotification,
|
|
6657
6703
|
_n as DsNotificationList,
|
|
6658
6704
|
$s as DsOption,
|
|
6659
|
-
|
|
6705
|
+
Ne as DsParagraph,
|
|
6660
6706
|
fn as DsPasswordConfirmation,
|
|
6661
6707
|
zs as DsProgress,
|
|
6662
6708
|
Ks as DsSelect,
|
|
6663
|
-
|
|
6664
|
-
|
|
6665
|
-
|
|
6709
|
+
_e as DsSpacer,
|
|
6710
|
+
mr as DsSplitLayout,
|
|
6711
|
+
pr as DsStepper,
|
|
6666
6712
|
sr as DsSubtitle,
|
|
6667
|
-
|
|
6668
|
-
|
|
6713
|
+
hr as DsTable,
|
|
6714
|
+
Sr as DsTabs,
|
|
6669
6715
|
tn as DsTextArea,
|
|
6670
|
-
|
|
6716
|
+
We as DsTooltip,
|
|
6671
6717
|
yn as DsTwoColumns,
|
|
6672
|
-
|
|
6718
|
+
Qe as DsWrapper,
|
|
6673
6719
|
an as EditableSelectSize,
|
|
6674
6720
|
js as FlexLayoutAlignItems,
|
|
6675
6721
|
Ps as FlexLayoutDirection,
|
|
@@ -6687,12 +6733,12 @@ export {
|
|
|
6687
6733
|
ds as IconWeight,
|
|
6688
6734
|
Ts as InputSize,
|
|
6689
6735
|
Fs as InputStatus,
|
|
6690
|
-
|
|
6691
|
-
|
|
6736
|
+
Ds as InputTooltipPlacement,
|
|
6737
|
+
Os as InputTooltipPosition,
|
|
6692
6738
|
As as InputType,
|
|
6693
6739
|
Bs as LoadingBackgroundColor,
|
|
6694
6740
|
Ns as LoadingSize,
|
|
6695
|
-
|
|
6741
|
+
dr as ModalElevation,
|
|
6696
6742
|
ln as ModalVariant,
|
|
6697
6743
|
vn as NotificationListPosition,
|
|
6698
6744
|
cn as NotificationType,
|
|
@@ -6703,53 +6749,53 @@ export {
|
|
|
6703
6749
|
Ws as SelectStatus,
|
|
6704
6750
|
Ys as SelectTooltipPlacement,
|
|
6705
6751
|
Xs as SelectTooltipPosition,
|
|
6706
|
-
|
|
6752
|
+
Ot as SpacerSize,
|
|
6707
6753
|
Gs as SubtitleType,
|
|
6708
6754
|
mn as TabsColor,
|
|
6709
6755
|
en as TextAreaResize,
|
|
6710
6756
|
Zs as TextAreaSize,
|
|
6711
6757
|
Js as TextAreaStatus,
|
|
6712
6758
|
Qs as TextAreaType,
|
|
6713
|
-
|
|
6759
|
+
gr as ThemeProvider,
|
|
6714
6760
|
Rs as TooltipPlacement,
|
|
6715
6761
|
Is as TooltipPosition,
|
|
6716
6762
|
ze as WrapperSpace,
|
|
6717
|
-
|
|
6763
|
+
wt as accordionConfig,
|
|
6718
6764
|
Ue as accordionItemConfig,
|
|
6719
|
-
|
|
6765
|
+
br as activeTagsConfig,
|
|
6720
6766
|
X as buttonConfig,
|
|
6721
6767
|
Mn as captionConfig,
|
|
6722
|
-
|
|
6723
|
-
|
|
6724
|
-
|
|
6768
|
+
Be as cardConfig,
|
|
6769
|
+
Ye as carouselConfig,
|
|
6770
|
+
de as checkboxConfig,
|
|
6725
6771
|
nt as containerConfig,
|
|
6726
6772
|
Y as editableSelectConfig,
|
|
6727
6773
|
Ct as flexElementConfig,
|
|
6728
6774
|
Le as flexLayoutConfig,
|
|
6729
|
-
|
|
6775
|
+
kr as gridElementConfig,
|
|
6730
6776
|
ee as gridLayoutConfig,
|
|
6731
|
-
|
|
6777
|
+
Ge as headingConfig,
|
|
6732
6778
|
Pe as horizontalRuleConfig,
|
|
6733
|
-
|
|
6734
|
-
|
|
6735
|
-
|
|
6779
|
+
fe as iconConfig,
|
|
6780
|
+
Xe as indicatorConfig,
|
|
6781
|
+
cr as inlineEditableConfig,
|
|
6736
6782
|
K as inputConfig,
|
|
6737
|
-
|
|
6738
|
-
|
|
6739
|
-
|
|
6783
|
+
he as loadingConfig,
|
|
6784
|
+
me as modalConfig,
|
|
6785
|
+
pe as notificationConfig,
|
|
6740
6786
|
je as notificationListConfig,
|
|
6741
|
-
|
|
6787
|
+
Oe as optionConfig,
|
|
6742
6788
|
ot as paragraphConfig,
|
|
6743
6789
|
At as passwordConfirmationConfig,
|
|
6744
6790
|
Jt as progressConfig,
|
|
6745
|
-
|
|
6746
|
-
|
|
6747
|
-
|
|
6748
|
-
|
|
6749
|
-
|
|
6750
|
-
|
|
6751
|
-
|
|
6752
|
-
|
|
6791
|
+
Q as selectConfig,
|
|
6792
|
+
Ze as spacerConfig,
|
|
6793
|
+
Ee as stepperConfig,
|
|
6794
|
+
xt as subtitleConfig,
|
|
6795
|
+
Ae as tableConfig,
|
|
6796
|
+
$e as tabsConfig,
|
|
6797
|
+
ne as textAreaConfig,
|
|
6798
|
+
we as tooltipConfig,
|
|
6753
6799
|
at as twoColumnsConfig,
|
|
6754
|
-
|
|
6800
|
+
be as wrapperConfig
|
|
6755
6801
|
};
|