@akad/design-system 1.1.10 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/react/react-lib.js
CHANGED
|
@@ -1,29 +1,169 @@
|
|
|
1
|
-
import { jsx as c, jsxs as F, Fragment as
|
|
2
|
-
import xe, { useMemo as ce, useState as q, useEffect as
|
|
3
|
-
const
|
|
4
|
-
function
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
if (!((n = globalThis.window) != null && n.dataLayer)) return;
|
|
12
|
-
const e = {};
|
|
13
|
-
Object.keys(t).forEach((a) => {
|
|
14
|
-
const r = t[a];
|
|
15
|
-
r != null && (typeof r == "string" && !r.trim() || (e[a] = r));
|
|
1
|
+
import { jsx as c, jsxs as F, Fragment as kt } from "react/jsx-runtime";
|
|
2
|
+
import xe, { useMemo as ce, useState as q, useEffect as Z, useRef as Xe, useCallback as Ae, useLayoutEffect as Wn, useId as gs, forwardRef as Xn } from "react";
|
|
3
|
+
const Yn = ["amplitude"];
|
|
4
|
+
function Kn(t, e, s, n = Yn) {
|
|
5
|
+
var a;
|
|
6
|
+
(a = globalThis.window) != null && a.dataLayer && globalThis.window.dataLayer.push({
|
|
7
|
+
event: t,
|
|
8
|
+
eventName: e,
|
|
9
|
+
properties: s,
|
|
10
|
+
targets: n
|
|
16
11
|
});
|
|
17
|
-
const s = {
|
|
18
|
-
event: "clickEvent",
|
|
19
|
-
userClick: e
|
|
20
|
-
};
|
|
21
|
-
globalThis.window.dataLayer.push(s);
|
|
22
12
|
}
|
|
23
|
-
|
|
13
|
+
var ms = /* @__PURE__ */ ((t) => (t.EAO = "SQ-A7K3", t.BrokerPortal = "SQ-X9P2", t.GuaranteesAndRD = "SQ-M4T8", t.Partnerships = "SQ-Q2L9", t.Claims = "SQ-Z8N1", t.NewProductsAndTransport = "SQ-B5R7", t.OperationsExcellence = "SQ-H3D6", t.Underwriting = "SQ-J9K4", t.IssuanceAndReinsurance = "SQ-W2C8", t.Regulatory = "SQ-P7X3", t.TaxClosing = "SQ-L8F2", t.BillingSettlementAndCommission = "SQ-D4V9", t.Cybersecurity = "SQ-F0D9", t.DataEngineering = "SQ-K8V1", t.AI = "SQ-R1K7", t.PlatformEngineering = "SQ-G7R1", t.TraineePresidency = "SQ-TRN1", t))(ms || {}), Ht = /* @__PURE__ */ ((t) => (t.AkadDigital = "AkadDigital", t.AkadImo = "AkadImo", t.Hub = "Hub", t.Custom = "Custom", t))(Ht || {}), vs = /* @__PURE__ */ ((t) => (t.DataOwl = "npm-data-owl", t.Sdk = "npm-sdk", t.Custom = "custom", t))(vs || {}), ys = /* @__PURE__ */ ((t) => (t.EAO = "eao", t.Transport = "transportes", t.Guarantees = "garantias", t.Partnerships = "parcerias", t.Cross = "cross", t))(ys || {}), _s = /* @__PURE__ */ ((t) => (t.Quote = "cotacao", t.PolicyManagement = "gestao_apolice", t.BrokerageManagement = "gestao_corretora", t.Finance = "financeiro", t.Documents = "documentos", t.Claim = "sinistro", t.Support = "suporte", t.Performance = "performance", t.Onboarding = "onboarding", t.Loyalty = "fidelidade", t.Campaigns = "campanhas", t.Feedback = "feedback", t))(_s || {});
|
|
14
|
+
const Qn = {
|
|
15
|
+
businessFlow: "business_flow",
|
|
16
|
+
feature: "feature",
|
|
17
|
+
contextOrigin: "context_origin",
|
|
18
|
+
product: "product",
|
|
19
|
+
productCategory: "product_category",
|
|
20
|
+
squadId: "squad_id",
|
|
21
|
+
source: "source",
|
|
22
|
+
customSource: "custom_source",
|
|
23
|
+
handler: "handler"
|
|
24
|
+
}, Gn = [
|
|
25
|
+
"product",
|
|
26
|
+
"productCategory",
|
|
27
|
+
"squadId",
|
|
28
|
+
"source",
|
|
29
|
+
"handler",
|
|
30
|
+
"businessFlow"
|
|
31
|
+
], Zn = {
|
|
32
|
+
businessFlow: _s,
|
|
33
|
+
productCategory: ys,
|
|
34
|
+
squadId: ms,
|
|
35
|
+
source: Ht,
|
|
36
|
+
handler: vs
|
|
37
|
+
}, Jn = "direct", ea = {
|
|
38
|
+
pagePath: "page_path",
|
|
39
|
+
pageTitle: "page_title",
|
|
40
|
+
pageUrl: "page_url",
|
|
41
|
+
pageReferrer: "page_referrer"
|
|
42
|
+
}, ta = [
|
|
43
|
+
"pagePath",
|
|
44
|
+
"pageTitle",
|
|
45
|
+
"pageUrl"
|
|
46
|
+
];
|
|
47
|
+
function bt(t, e) {
|
|
48
|
+
console.warn(`[data-owl] ${t}: ${e}`);
|
|
49
|
+
}
|
|
50
|
+
function ot(t, e) {
|
|
51
|
+
bt(t, e);
|
|
52
|
+
}
|
|
53
|
+
function gt(t) {
|
|
54
|
+
return t == null || typeof t == "string" && !t.trim();
|
|
55
|
+
}
|
|
56
|
+
function sa(t, e) {
|
|
57
|
+
return e.filter((s) => gt(t[s]));
|
|
58
|
+
}
|
|
59
|
+
function na(t, e) {
|
|
60
|
+
const s = [];
|
|
61
|
+
return Object.entries(e).forEach(([n, a]) => {
|
|
62
|
+
const r = t[n];
|
|
63
|
+
if (gt(r)) return;
|
|
64
|
+
const i = Object.values(a);
|
|
65
|
+
i.includes(r) || s.push(
|
|
66
|
+
`invalid value for ${n}: "${String(r)}" (expected one of: ${i.join(", ")})`
|
|
67
|
+
);
|
|
68
|
+
}), s;
|
|
69
|
+
}
|
|
70
|
+
function aa(t, e, s, n) {
|
|
71
|
+
if (e === null || typeof e != "object")
|
|
72
|
+
return ot(t, "event data must be an object"), null;
|
|
73
|
+
const a = sa(e, s);
|
|
74
|
+
if (a.length)
|
|
75
|
+
return ot(t, `missing required field(s): ${a.join(", ")}`), null;
|
|
76
|
+
const r = na(e, n);
|
|
77
|
+
if (r.length)
|
|
78
|
+
return ot(t, r.join("; ")), null;
|
|
79
|
+
const i = { ...e };
|
|
80
|
+
if (i.source === Ht.Custom) {
|
|
81
|
+
if (gt(i.customSource))
|
|
82
|
+
return ot(
|
|
83
|
+
t,
|
|
84
|
+
"customSource is required when source is EventSource.Custom"
|
|
85
|
+
), null;
|
|
86
|
+
} else gt(i.customSource) || (bt(
|
|
87
|
+
t,
|
|
88
|
+
"customSource is only allowed when source is EventSource.Custom and was discarded"
|
|
89
|
+
), delete i.customSource);
|
|
90
|
+
return i;
|
|
91
|
+
}
|
|
92
|
+
function ra(t) {
|
|
93
|
+
return t.replace(/([a-z0-9])([A-Z])/g, "$1_$2").toLowerCase();
|
|
94
|
+
}
|
|
95
|
+
function ia(t, e, s, n = []) {
|
|
96
|
+
const a = /* @__PURE__ */ new Set([
|
|
97
|
+
...Object.values(s),
|
|
98
|
+
...n
|
|
99
|
+
]), r = {};
|
|
100
|
+
return Object.keys(e).forEach((i) => {
|
|
101
|
+
const o = e[i];
|
|
102
|
+
if (o == null || typeof o == "string" && !o.trim()) return;
|
|
103
|
+
const u = s[i];
|
|
104
|
+
if (u) {
|
|
105
|
+
r[u] = o;
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
const d = ra(i);
|
|
109
|
+
if (a.has(d)) {
|
|
110
|
+
bt(
|
|
111
|
+
t,
|
|
112
|
+
`custom property "${i}" collides with the reserved property "${d}" and was discarded`
|
|
113
|
+
);
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
r[d] = o;
|
|
117
|
+
}), r;
|
|
118
|
+
}
|
|
119
|
+
var Wt = /* @__PURE__ */ ((t) => (t.Button = "button", t.Link = "link", t.Icon = "icon", t.Card = "card", t.Tab = "tab", t.Carousel = "carousel", t))(Wt || {});
|
|
120
|
+
const la = "Element Clicked", xt = "pushClickEvent", oa = [
|
|
121
|
+
"elementType",
|
|
122
|
+
"elementName",
|
|
123
|
+
...ta,
|
|
124
|
+
...Gn
|
|
125
|
+
], ua = {
|
|
126
|
+
...Zn,
|
|
127
|
+
elementType: Wt
|
|
128
|
+
}, ca = {
|
|
129
|
+
...Qn,
|
|
130
|
+
...ea,
|
|
131
|
+
elementType: "element_type",
|
|
132
|
+
elementName: "element_name",
|
|
133
|
+
elementText: "element_text",
|
|
134
|
+
elementSection: "element_section",
|
|
135
|
+
elementIndex: "element_index",
|
|
136
|
+
elementDestinationUrl: "element_destination_url",
|
|
137
|
+
elementLoadTimeMs: "element_load_time_ms"
|
|
138
|
+
};
|
|
139
|
+
function da(t) {
|
|
140
|
+
var e;
|
|
141
|
+
try {
|
|
142
|
+
const s = aa(
|
|
143
|
+
xt,
|
|
144
|
+
t,
|
|
145
|
+
oa,
|
|
146
|
+
ua
|
|
147
|
+
);
|
|
148
|
+
if (!s) return;
|
|
149
|
+
const { targets: n, ...a } = s;
|
|
150
|
+
a.pageReferrer = ((e = a.pageReferrer) == null ? void 0 : e.trim()) || Jn, Kn(
|
|
151
|
+
"clickEventV2",
|
|
152
|
+
la,
|
|
153
|
+
ia(xt, a, ca),
|
|
154
|
+
n
|
|
155
|
+
);
|
|
156
|
+
} catch (s) {
|
|
157
|
+
bt(
|
|
158
|
+
xt,
|
|
159
|
+
`unexpected error: ${s instanceof Error ? s.message : String(s)}`
|
|
160
|
+
);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
function pa(t) {
|
|
24
164
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
25
165
|
}
|
|
26
|
-
var
|
|
166
|
+
var Lt = { exports: {} }, ut = { exports: {} }, K = {};
|
|
27
167
|
/** @license React v16.13.1
|
|
28
168
|
* react-is.production.min.js
|
|
29
169
|
*
|
|
@@ -32,10 +172,10 @@ var Bt = { exports: {} }, ot = { exports: {} }, K = {};
|
|
|
32
172
|
* This source code is licensed under the MIT license found in the
|
|
33
173
|
* LICENSE file in the root directory of this source tree.
|
|
34
174
|
*/
|
|
35
|
-
var
|
|
36
|
-
function
|
|
37
|
-
if (
|
|
38
|
-
|
|
175
|
+
var Jt;
|
|
176
|
+
function ha() {
|
|
177
|
+
if (Jt) return K;
|
|
178
|
+
Jt = 1;
|
|
39
179
|
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, s = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, r = t ? Symbol.for("react.profiler") : 60114, i = t ? Symbol.for("react.provider") : 60109, o = t ? Symbol.for("react.context") : 60110, u = t ? Symbol.for("react.async_mode") : 60111, d = t ? Symbol.for("react.concurrent_mode") : 60111, h = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, y = t ? Symbol.for("react.suspense_list") : 60120, b = t ? Symbol.for("react.memo") : 60115, S = t ? Symbol.for("react.lazy") : 60116, v = t ? Symbol.for("react.block") : 60121, g = t ? Symbol.for("react.fundamental") : 60117, A = t ? Symbol.for("react.responder") : 60118, R = t ? Symbol.for("react.scope") : 60119;
|
|
40
180
|
function w(p) {
|
|
41
181
|
if (typeof p == "object" && p !== null) {
|
|
@@ -98,7 +238,7 @@ function qn() {
|
|
|
98
238
|
return typeof p == "string" || typeof p == "function" || p === n || p === d || p === r || p === a || p === f || p === y || typeof p == "object" && p !== null && (p.$$typeof === S || p.$$typeof === b || p.$$typeof === i || p.$$typeof === o || p.$$typeof === h || p.$$typeof === g || p.$$typeof === A || p.$$typeof === R || p.$$typeof === v);
|
|
99
239
|
}, K.typeOf = w, K;
|
|
100
240
|
}
|
|
101
|
-
var
|
|
241
|
+
var Q = {};
|
|
102
242
|
/** @license React v16.13.1
|
|
103
243
|
* react-is.development.js
|
|
104
244
|
*
|
|
@@ -107,9 +247,9 @@ var G = {};
|
|
|
107
247
|
* This source code is licensed under the MIT license found in the
|
|
108
248
|
* LICENSE file in the root directory of this source tree.
|
|
109
249
|
*/
|
|
110
|
-
var
|
|
111
|
-
function
|
|
112
|
-
return
|
|
250
|
+
var es;
|
|
251
|
+
function fa() {
|
|
252
|
+
return es || (es = 1, process.env.NODE_ENV !== "production" && function() {
|
|
113
253
|
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, s = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, r = t ? Symbol.for("react.profiler") : 60114, i = t ? Symbol.for("react.provider") : 60109, o = t ? Symbol.for("react.context") : 60110, u = t ? Symbol.for("react.async_mode") : 60111, d = t ? Symbol.for("react.concurrent_mode") : 60111, h = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, y = t ? Symbol.for("react.suspense_list") : 60120, b = t ? Symbol.for("react.memo") : 60115, S = t ? Symbol.for("react.lazy") : 60116, v = t ? Symbol.for("react.block") : 60121, g = t ? Symbol.for("react.fundamental") : 60117, A = t ? Symbol.for("react.responder") : 60118, R = t ? Symbol.for("react.scope") : 60119;
|
|
114
254
|
function w(k) {
|
|
115
255
|
return typeof k == "string" || typeof k == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
@@ -117,37 +257,37 @@ function Un() {
|
|
|
117
257
|
}
|
|
118
258
|
function x(k) {
|
|
119
259
|
if (typeof k == "object" && k !== null) {
|
|
120
|
-
var
|
|
121
|
-
switch (
|
|
260
|
+
var re = k.$$typeof;
|
|
261
|
+
switch (re) {
|
|
122
262
|
case e:
|
|
123
|
-
var
|
|
124
|
-
switch (
|
|
263
|
+
var $e = k.type;
|
|
264
|
+
switch ($e) {
|
|
125
265
|
case u:
|
|
126
266
|
case d:
|
|
127
267
|
case n:
|
|
128
268
|
case r:
|
|
129
269
|
case a:
|
|
130
270
|
case f:
|
|
131
|
-
return
|
|
271
|
+
return $e;
|
|
132
272
|
default:
|
|
133
|
-
var
|
|
134
|
-
switch (
|
|
273
|
+
var Ge = $e && $e.$$typeof;
|
|
274
|
+
switch (Ge) {
|
|
135
275
|
case o:
|
|
136
276
|
case h:
|
|
137
277
|
case S:
|
|
138
278
|
case b:
|
|
139
279
|
case i:
|
|
140
|
-
return
|
|
280
|
+
return Ge;
|
|
141
281
|
default:
|
|
142
|
-
return
|
|
282
|
+
return re;
|
|
143
283
|
}
|
|
144
284
|
}
|
|
145
285
|
case s:
|
|
146
|
-
return
|
|
286
|
+
return re;
|
|
147
287
|
}
|
|
148
288
|
}
|
|
149
289
|
}
|
|
150
|
-
var p = u, C = d, O = o,
|
|
290
|
+
var p = u, C = d, O = o, H = i, B = e, ae = h, $ = n, z = S, J = b, ie = s, Se = r, ne = a, oe = f, Oe = !1;
|
|
151
291
|
function De(k) {
|
|
152
292
|
return Oe || (Oe = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), m(k) || x(k) === u;
|
|
153
293
|
}
|
|
@@ -157,10 +297,10 @@ function Un() {
|
|
|
157
297
|
function E(k) {
|
|
158
298
|
return x(k) === o;
|
|
159
299
|
}
|
|
160
|
-
function
|
|
300
|
+
function L(k) {
|
|
161
301
|
return x(k) === i;
|
|
162
302
|
}
|
|
163
|
-
function
|
|
303
|
+
function M(k) {
|
|
164
304
|
return typeof k == "object" && k !== null && k.$$typeof === e;
|
|
165
305
|
}
|
|
166
306
|
function N(k) {
|
|
@@ -169,7 +309,7 @@ function Un() {
|
|
|
169
309
|
function D(k) {
|
|
170
310
|
return x(k) === n;
|
|
171
311
|
}
|
|
172
|
-
function
|
|
312
|
+
function V(k) {
|
|
173
313
|
return x(k) === S;
|
|
174
314
|
}
|
|
175
315
|
function j(k) {
|
|
@@ -178,31 +318,31 @@ function Un() {
|
|
|
178
318
|
function U(k) {
|
|
179
319
|
return x(k) === s;
|
|
180
320
|
}
|
|
181
|
-
function
|
|
321
|
+
function W(k) {
|
|
182
322
|
return x(k) === r;
|
|
183
323
|
}
|
|
184
324
|
function _(k) {
|
|
185
325
|
return x(k) === a;
|
|
186
326
|
}
|
|
187
|
-
function
|
|
327
|
+
function X(k) {
|
|
188
328
|
return x(k) === f;
|
|
189
329
|
}
|
|
190
|
-
|
|
191
|
-
}()),
|
|
330
|
+
Q.AsyncMode = p, Q.ConcurrentMode = C, Q.ContextConsumer = O, Q.ContextProvider = H, Q.Element = B, Q.ForwardRef = ae, Q.Fragment = $, Q.Lazy = z, Q.Memo = J, Q.Portal = ie, Q.Profiler = Se, Q.StrictMode = ne, Q.Suspense = oe, Q.isAsyncMode = De, Q.isConcurrentMode = m, Q.isContextConsumer = E, Q.isContextProvider = L, Q.isElement = M, Q.isForwardRef = N, Q.isFragment = D, Q.isLazy = V, Q.isMemo = j, Q.isPortal = U, Q.isProfiler = W, Q.isStrictMode = _, Q.isSuspense = X, Q.isValidElementType = w, Q.typeOf = x;
|
|
331
|
+
}()), Q;
|
|
192
332
|
}
|
|
193
|
-
var
|
|
194
|
-
function
|
|
195
|
-
return
|
|
333
|
+
var ts;
|
|
334
|
+
function ks() {
|
|
335
|
+
return ts || (ts = 1, process.env.NODE_ENV === "production" ? ut.exports = ha() : ut.exports = fa()), ut.exports;
|
|
196
336
|
}
|
|
197
337
|
/*
|
|
198
338
|
object-assign
|
|
199
339
|
(c) Sindre Sorhus
|
|
200
340
|
@license MIT
|
|
201
341
|
*/
|
|
202
|
-
var
|
|
203
|
-
function
|
|
204
|
-
if (
|
|
205
|
-
|
|
342
|
+
var Ct, ss;
|
|
343
|
+
function ga() {
|
|
344
|
+
if (ss) return Ct;
|
|
345
|
+
ss = 1;
|
|
206
346
|
var t = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, s = Object.prototype.propertyIsEnumerable;
|
|
207
347
|
function n(r) {
|
|
208
348
|
if (r == null)
|
|
@@ -231,7 +371,7 @@ function zn() {
|
|
|
231
371
|
return !1;
|
|
232
372
|
}
|
|
233
373
|
}
|
|
234
|
-
return
|
|
374
|
+
return Ct = a() ? Object.assign : function(r, i) {
|
|
235
375
|
for (var o, u = n(r), d, h = 1; h < arguments.length; h++) {
|
|
236
376
|
o = Object(arguments[h]);
|
|
237
377
|
for (var f in o)
|
|
@@ -243,27 +383,27 @@ function zn() {
|
|
|
243
383
|
}
|
|
244
384
|
}
|
|
245
385
|
return u;
|
|
246
|
-
},
|
|
386
|
+
}, Ct;
|
|
247
387
|
}
|
|
248
|
-
var
|
|
249
|
-
function
|
|
250
|
-
if (
|
|
251
|
-
|
|
388
|
+
var Dt, ns;
|
|
389
|
+
function Xt() {
|
|
390
|
+
if (ns) return Dt;
|
|
391
|
+
ns = 1;
|
|
252
392
|
var t = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
253
|
-
return
|
|
393
|
+
return Dt = t, Dt;
|
|
254
394
|
}
|
|
255
|
-
var
|
|
256
|
-
function
|
|
257
|
-
return
|
|
395
|
+
var Tt, as;
|
|
396
|
+
function bs() {
|
|
397
|
+
return as || (as = 1, Tt = Function.call.bind(Object.prototype.hasOwnProperty)), Tt;
|
|
258
398
|
}
|
|
259
|
-
var
|
|
260
|
-
function
|
|
261
|
-
if (
|
|
262
|
-
|
|
399
|
+
var Ft, rs;
|
|
400
|
+
function ma() {
|
|
401
|
+
if (rs) return Ft;
|
|
402
|
+
rs = 1;
|
|
263
403
|
var t = function() {
|
|
264
404
|
};
|
|
265
405
|
if (process.env.NODE_ENV !== "production") {
|
|
266
|
-
var e =
|
|
406
|
+
var e = Xt(), s = {}, n = bs();
|
|
267
407
|
t = function(r) {
|
|
268
408
|
var i = "Warning: " + r;
|
|
269
409
|
typeof console < "u" && console.error(i);
|
|
@@ -303,13 +443,13 @@ function Hn() {
|
|
|
303
443
|
}
|
|
304
444
|
return a.resetWarningCache = function() {
|
|
305
445
|
process.env.NODE_ENV !== "production" && (s = {});
|
|
306
|
-
},
|
|
446
|
+
}, Ft = a, Ft;
|
|
307
447
|
}
|
|
308
|
-
var
|
|
309
|
-
function
|
|
310
|
-
if (
|
|
311
|
-
|
|
312
|
-
var t =
|
|
448
|
+
var Ot, is;
|
|
449
|
+
function va() {
|
|
450
|
+
if (is) return Ot;
|
|
451
|
+
is = 1;
|
|
452
|
+
var t = ks(), e = ga(), s = Xt(), n = bs(), a = ma(), r = function() {
|
|
313
453
|
};
|
|
314
454
|
process.env.NODE_ENV !== "production" && (r = function(o) {
|
|
315
455
|
var u = "Warning: " + o;
|
|
@@ -322,7 +462,7 @@ function Wn() {
|
|
|
322
462
|
function i() {
|
|
323
463
|
return null;
|
|
324
464
|
}
|
|
325
|
-
return
|
|
465
|
+
return Ot = function(o, u) {
|
|
326
466
|
var d = typeof Symbol == "function" && Symbol.iterator, h = "@@iterator";
|
|
327
467
|
function f(m) {
|
|
328
468
|
var E = m && (d && m[d] || m[h]);
|
|
@@ -343,11 +483,11 @@ function Wn() {
|
|
|
343
483
|
element: x(),
|
|
344
484
|
elementType: p(),
|
|
345
485
|
instanceOf: C,
|
|
346
|
-
node:
|
|
347
|
-
objectOf:
|
|
486
|
+
node: ae(),
|
|
487
|
+
objectOf: H,
|
|
348
488
|
oneOf: O,
|
|
349
|
-
oneOfType:
|
|
350
|
-
shape:
|
|
489
|
+
oneOfType: B,
|
|
490
|
+
shape: z,
|
|
351
491
|
exact: J
|
|
352
492
|
};
|
|
353
493
|
function S(m, E) {
|
|
@@ -359,34 +499,34 @@ function Wn() {
|
|
|
359
499
|
v.prototype = Error.prototype;
|
|
360
500
|
function g(m) {
|
|
361
501
|
if (process.env.NODE_ENV !== "production")
|
|
362
|
-
var E = {},
|
|
363
|
-
function
|
|
364
|
-
if (U = U || y, _ = _ || j,
|
|
502
|
+
var E = {}, L = 0;
|
|
503
|
+
function M(D, V, j, U, W, _, X) {
|
|
504
|
+
if (U = U || y, _ = _ || j, X !== s) {
|
|
365
505
|
if (u) {
|
|
366
506
|
var k = new Error(
|
|
367
507
|
"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
508
|
);
|
|
369
509
|
throw k.name = "Invariant Violation", k;
|
|
370
510
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
371
|
-
var
|
|
372
|
-
!E[
|
|
373
|
-
|
|
511
|
+
var re = U + ":" + j;
|
|
512
|
+
!E[re] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
513
|
+
L < 3 && (r(
|
|
374
514
|
"You are manually calling a React.PropTypes validation function for the `" + _ + "` prop on `" + U + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
375
|
-
), E[
|
|
515
|
+
), E[re] = !0, L++);
|
|
376
516
|
}
|
|
377
517
|
}
|
|
378
|
-
return
|
|
518
|
+
return V[j] == null ? D ? V[j] === null ? new v("The " + W + " `" + _ + "` is marked as required " + ("in `" + U + "`, but its value is `null`.")) : new v("The " + W + " `" + _ + "` is marked as required in " + ("`" + U + "`, but its value is `undefined`.")) : null : m(V, j, U, W, _);
|
|
379
519
|
}
|
|
380
|
-
var N =
|
|
381
|
-
return N.isRequired =
|
|
520
|
+
var N = M.bind(null, !1);
|
|
521
|
+
return N.isRequired = M.bind(null, !0), N;
|
|
382
522
|
}
|
|
383
523
|
function A(m) {
|
|
384
|
-
function E(
|
|
385
|
-
var U =
|
|
386
|
-
if (
|
|
524
|
+
function E(L, M, N, D, V, j) {
|
|
525
|
+
var U = L[M], W = ne(U);
|
|
526
|
+
if (W !== m) {
|
|
387
527
|
var _ = oe(U);
|
|
388
528
|
return new v(
|
|
389
|
-
"Invalid " + D + " `" +
|
|
529
|
+
"Invalid " + D + " `" + V + "` of type " + ("`" + _ + "` supplied to `" + N + "`, expected ") + ("`" + m + "`."),
|
|
390
530
|
{ expectedType: m }
|
|
391
531
|
);
|
|
392
532
|
}
|
|
@@ -398,16 +538,16 @@ function Wn() {
|
|
|
398
538
|
return g(i);
|
|
399
539
|
}
|
|
400
540
|
function w(m) {
|
|
401
|
-
function E(
|
|
541
|
+
function E(L, M, N, D, V) {
|
|
402
542
|
if (typeof m != "function")
|
|
403
|
-
return new v("Property `" +
|
|
404
|
-
var j =
|
|
543
|
+
return new v("Property `" + V + "` of component `" + N + "` has invalid PropType notation inside arrayOf.");
|
|
544
|
+
var j = L[M];
|
|
405
545
|
if (!Array.isArray(j)) {
|
|
406
546
|
var U = ne(j);
|
|
407
|
-
return new v("Invalid " + D + " `" +
|
|
547
|
+
return new v("Invalid " + D + " `" + V + "` of type " + ("`" + U + "` supplied to `" + N + "`, expected an array."));
|
|
408
548
|
}
|
|
409
|
-
for (var
|
|
410
|
-
var _ = m(j,
|
|
549
|
+
for (var W = 0; W < j.length; W++) {
|
|
550
|
+
var _ = m(j, W, N, D, V + "[" + W + "]", s);
|
|
411
551
|
if (_ instanceof Error)
|
|
412
552
|
return _;
|
|
413
553
|
}
|
|
@@ -416,32 +556,32 @@ function Wn() {
|
|
|
416
556
|
return g(E);
|
|
417
557
|
}
|
|
418
558
|
function x() {
|
|
419
|
-
function m(E,
|
|
420
|
-
var
|
|
421
|
-
if (!o(
|
|
422
|
-
var j = ne(
|
|
423
|
-
return new v("Invalid " + N + " `" + D + "` of type " + ("`" + j + "` supplied to `" +
|
|
559
|
+
function m(E, L, M, N, D) {
|
|
560
|
+
var V = E[L];
|
|
561
|
+
if (!o(V)) {
|
|
562
|
+
var j = ne(V);
|
|
563
|
+
return new v("Invalid " + N + " `" + D + "` of type " + ("`" + j + "` supplied to `" + M + "`, expected a single ReactElement."));
|
|
424
564
|
}
|
|
425
565
|
return null;
|
|
426
566
|
}
|
|
427
567
|
return g(m);
|
|
428
568
|
}
|
|
429
569
|
function p() {
|
|
430
|
-
function m(E,
|
|
431
|
-
var
|
|
432
|
-
if (!t.isValidElementType(
|
|
433
|
-
var j = ne(
|
|
434
|
-
return new v("Invalid " + N + " `" + D + "` of type " + ("`" + j + "` supplied to `" +
|
|
570
|
+
function m(E, L, M, N, D) {
|
|
571
|
+
var V = E[L];
|
|
572
|
+
if (!t.isValidElementType(V)) {
|
|
573
|
+
var j = ne(V);
|
|
574
|
+
return new v("Invalid " + N + " `" + D + "` of type " + ("`" + j + "` supplied to `" + M + "`, expected a single ReactElement type."));
|
|
435
575
|
}
|
|
436
576
|
return null;
|
|
437
577
|
}
|
|
438
578
|
return g(m);
|
|
439
579
|
}
|
|
440
580
|
function C(m) {
|
|
441
|
-
function E(
|
|
442
|
-
if (!(
|
|
443
|
-
var j = m.name || y, U = De(
|
|
444
|
-
return new v("Invalid " + D + " `" +
|
|
581
|
+
function E(L, M, N, D, V) {
|
|
582
|
+
if (!(L[M] instanceof m)) {
|
|
583
|
+
var j = m.name || y, U = De(L[M]);
|
|
584
|
+
return new v("Invalid " + D + " `" + V + "` of type " + ("`" + U + "` supplied to `" + N + "`, expected ") + ("instance of `" + j + "`."));
|
|
445
585
|
}
|
|
446
586
|
return null;
|
|
447
587
|
}
|
|
@@ -452,28 +592,28 @@ function Wn() {
|
|
|
452
592
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? r(
|
|
453
593
|
"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
594
|
) : r("Invalid argument supplied to oneOf, expected an array.")), i;
|
|
455
|
-
function E(
|
|
456
|
-
for (var j =
|
|
595
|
+
function E(L, M, N, D, V) {
|
|
596
|
+
for (var j = L[M], U = 0; U < m.length; U++)
|
|
457
597
|
if (S(j, m[U]))
|
|
458
598
|
return null;
|
|
459
|
-
var
|
|
460
|
-
var
|
|
461
|
-
return
|
|
599
|
+
var W = JSON.stringify(m, function(X, k) {
|
|
600
|
+
var re = oe(k);
|
|
601
|
+
return re === "symbol" ? String(k) : k;
|
|
462
602
|
});
|
|
463
|
-
return new v("Invalid " + D + " `" +
|
|
603
|
+
return new v("Invalid " + D + " `" + V + "` of value `" + String(j) + "` " + ("supplied to `" + N + "`, expected one of " + W + "."));
|
|
464
604
|
}
|
|
465
605
|
return g(E);
|
|
466
606
|
}
|
|
467
|
-
function
|
|
468
|
-
function E(
|
|
607
|
+
function H(m) {
|
|
608
|
+
function E(L, M, N, D, V) {
|
|
469
609
|
if (typeof m != "function")
|
|
470
|
-
return new v("Property `" +
|
|
471
|
-
var j =
|
|
610
|
+
return new v("Property `" + V + "` of component `" + N + "` has invalid PropType notation inside objectOf.");
|
|
611
|
+
var j = L[M], U = ne(j);
|
|
472
612
|
if (U !== "object")
|
|
473
|
-
return new v("Invalid " + D + " `" +
|
|
474
|
-
for (var
|
|
475
|
-
if (n(j,
|
|
476
|
-
var _ = m(j,
|
|
613
|
+
return new v("Invalid " + D + " `" + V + "` of type " + ("`" + U + "` supplied to `" + N + "`, expected an object."));
|
|
614
|
+
for (var W in j)
|
|
615
|
+
if (n(j, W)) {
|
|
616
|
+
var _ = m(j, W, N, D, V + "." + W, s);
|
|
477
617
|
if (_ instanceof Error)
|
|
478
618
|
return _;
|
|
479
619
|
}
|
|
@@ -481,72 +621,72 @@ function Wn() {
|
|
|
481
621
|
}
|
|
482
622
|
return g(E);
|
|
483
623
|
}
|
|
484
|
-
function
|
|
624
|
+
function B(m) {
|
|
485
625
|
if (!Array.isArray(m))
|
|
486
626
|
return process.env.NODE_ENV !== "production" && r("Invalid argument supplied to oneOfType, expected an instance of array."), i;
|
|
487
627
|
for (var E = 0; E < m.length; E++) {
|
|
488
|
-
var
|
|
489
|
-
if (typeof
|
|
628
|
+
var L = m[E];
|
|
629
|
+
if (typeof L != "function")
|
|
490
630
|
return r(
|
|
491
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Oe(
|
|
631
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Oe(L) + " at index " + E + "."
|
|
492
632
|
), i;
|
|
493
633
|
}
|
|
494
|
-
function
|
|
495
|
-
for (var
|
|
496
|
-
var
|
|
634
|
+
function M(N, D, V, j, U) {
|
|
635
|
+
for (var W = [], _ = 0; _ < m.length; _++) {
|
|
636
|
+
var X = m[_], k = X(N, D, V, j, U, s);
|
|
497
637
|
if (k == null)
|
|
498
638
|
return null;
|
|
499
|
-
k.data && n(k.data, "expectedType") &&
|
|
639
|
+
k.data && n(k.data, "expectedType") && W.push(k.data.expectedType);
|
|
500
640
|
}
|
|
501
|
-
var
|
|
502
|
-
return new v("Invalid " + j + " `" + U + "` supplied to " + ("`" +
|
|
641
|
+
var re = W.length > 0 ? ", expected one of type [" + W.join(", ") + "]" : "";
|
|
642
|
+
return new v("Invalid " + j + " `" + U + "` supplied to " + ("`" + V + "`" + re + "."));
|
|
503
643
|
}
|
|
504
|
-
return g(
|
|
644
|
+
return g(M);
|
|
505
645
|
}
|
|
506
|
-
function
|
|
507
|
-
function m(E,
|
|
508
|
-
return
|
|
646
|
+
function ae() {
|
|
647
|
+
function m(E, L, M, N, D) {
|
|
648
|
+
return ie(E[L]) ? null : new v("Invalid " + N + " `" + D + "` supplied to " + ("`" + M + "`, expected a ReactNode."));
|
|
509
649
|
}
|
|
510
650
|
return g(m);
|
|
511
651
|
}
|
|
512
|
-
function
|
|
652
|
+
function $(m, E, L, M, N) {
|
|
513
653
|
return new v(
|
|
514
|
-
(m || "React class") + ": " + E + " type `" +
|
|
654
|
+
(m || "React class") + ": " + E + " type `" + L + "." + M + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + N + "`."
|
|
515
655
|
);
|
|
516
656
|
}
|
|
517
|
-
function
|
|
518
|
-
function E(
|
|
519
|
-
var j =
|
|
657
|
+
function z(m) {
|
|
658
|
+
function E(L, M, N, D, V) {
|
|
659
|
+
var j = L[M], U = ne(j);
|
|
520
660
|
if (U !== "object")
|
|
521
|
-
return new v("Invalid " + D + " `" +
|
|
522
|
-
for (var
|
|
523
|
-
var _ = m[
|
|
661
|
+
return new v("Invalid " + D + " `" + V + "` of type `" + U + "` " + ("supplied to `" + N + "`, expected `object`."));
|
|
662
|
+
for (var W in m) {
|
|
663
|
+
var _ = m[W];
|
|
524
664
|
if (typeof _ != "function")
|
|
525
|
-
return
|
|
526
|
-
var
|
|
527
|
-
if (
|
|
528
|
-
return
|
|
665
|
+
return $(N, D, V, W, oe(_));
|
|
666
|
+
var X = _(j, W, N, D, V + "." + W, s);
|
|
667
|
+
if (X)
|
|
668
|
+
return X;
|
|
529
669
|
}
|
|
530
670
|
return null;
|
|
531
671
|
}
|
|
532
672
|
return g(E);
|
|
533
673
|
}
|
|
534
674
|
function J(m) {
|
|
535
|
-
function E(
|
|
536
|
-
var j =
|
|
675
|
+
function E(L, M, N, D, V) {
|
|
676
|
+
var j = L[M], U = ne(j);
|
|
537
677
|
if (U !== "object")
|
|
538
|
-
return new v("Invalid " + D + " `" +
|
|
539
|
-
var
|
|
540
|
-
for (var _ in
|
|
541
|
-
var
|
|
542
|
-
if (n(m, _) && typeof
|
|
543
|
-
return
|
|
544
|
-
if (!
|
|
678
|
+
return new v("Invalid " + D + " `" + V + "` of type `" + U + "` " + ("supplied to `" + N + "`, expected `object`."));
|
|
679
|
+
var W = e({}, L[M], m);
|
|
680
|
+
for (var _ in W) {
|
|
681
|
+
var X = m[_];
|
|
682
|
+
if (n(m, _) && typeof X != "function")
|
|
683
|
+
return $(N, D, V, _, oe(X));
|
|
684
|
+
if (!X)
|
|
545
685
|
return new v(
|
|
546
|
-
"Invalid " + D + " `" +
|
|
686
|
+
"Invalid " + D + " `" + V + "` key `" + _ + "` supplied to `" + N + "`.\nBad object: " + JSON.stringify(L[M], null, " ") + `
|
|
547
687
|
Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
|
|
548
688
|
);
|
|
549
|
-
var k =
|
|
689
|
+
var k = X(j, _, N, D, V + "." + _, s);
|
|
550
690
|
if (k)
|
|
551
691
|
return k;
|
|
552
692
|
}
|
|
@@ -554,7 +694,7 @@ Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
|
|
|
554
694
|
}
|
|
555
695
|
return g(E);
|
|
556
696
|
}
|
|
557
|
-
function
|
|
697
|
+
function ie(m) {
|
|
558
698
|
switch (typeof m) {
|
|
559
699
|
case "number":
|
|
560
700
|
case "string":
|
|
@@ -564,20 +704,20 @@ Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
|
|
|
564
704
|
return !m;
|
|
565
705
|
case "object":
|
|
566
706
|
if (Array.isArray(m))
|
|
567
|
-
return m.every(
|
|
707
|
+
return m.every(ie);
|
|
568
708
|
if (m === null || o(m))
|
|
569
709
|
return !0;
|
|
570
710
|
var E = f(m);
|
|
571
711
|
if (E) {
|
|
572
|
-
var
|
|
712
|
+
var L = E.call(m), M;
|
|
573
713
|
if (E !== m.entries) {
|
|
574
|
-
for (; !(
|
|
575
|
-
if (!
|
|
714
|
+
for (; !(M = L.next()).done; )
|
|
715
|
+
if (!ie(M.value))
|
|
576
716
|
return !1;
|
|
577
717
|
} else
|
|
578
|
-
for (; !(
|
|
579
|
-
var N =
|
|
580
|
-
if (N && !
|
|
718
|
+
for (; !(M = L.next()).done; ) {
|
|
719
|
+
var N = M.value;
|
|
720
|
+
if (N && !ie(N[1]))
|
|
581
721
|
return !1;
|
|
582
722
|
}
|
|
583
723
|
} else
|
|
@@ -624,18 +764,18 @@ Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
|
|
|
624
764
|
return !m.constructor || !m.constructor.name ? y : m.constructor.name;
|
|
625
765
|
}
|
|
626
766
|
return b.checkPropTypes = a, b.resetWarningCache = a.resetWarningCache, b.PropTypes = b, b;
|
|
627
|
-
},
|
|
767
|
+
}, Ot;
|
|
628
768
|
}
|
|
629
|
-
var
|
|
630
|
-
function
|
|
631
|
-
if (
|
|
632
|
-
|
|
633
|
-
var t =
|
|
769
|
+
var It, ls;
|
|
770
|
+
function ya() {
|
|
771
|
+
if (ls) return It;
|
|
772
|
+
ls = 1;
|
|
773
|
+
var t = Xt();
|
|
634
774
|
function e() {
|
|
635
775
|
}
|
|
636
776
|
function s() {
|
|
637
777
|
}
|
|
638
|
-
return s.resetWarningCache = e,
|
|
778
|
+
return s.resetWarningCache = e, It = function() {
|
|
639
779
|
function n(i, o, u, d, h, f) {
|
|
640
780
|
if (f !== t) {
|
|
641
781
|
var y = new Error(
|
|
@@ -672,34 +812,34 @@ function Yn() {
|
|
|
672
812
|
resetWarningCache: e
|
|
673
813
|
};
|
|
674
814
|
return r.PropTypes = r, r;
|
|
675
|
-
},
|
|
815
|
+
}, It;
|
|
676
816
|
}
|
|
677
817
|
if (process.env.NODE_ENV !== "production") {
|
|
678
|
-
var
|
|
679
|
-
|
|
818
|
+
var _a = ks(), ka = !0;
|
|
819
|
+
Lt.exports = va()(_a.isElement, ka);
|
|
680
820
|
} else
|
|
681
|
-
|
|
682
|
-
var
|
|
683
|
-
const l = /* @__PURE__ */
|
|
684
|
-
var
|
|
685
|
-
const
|
|
821
|
+
Lt.exports = ya()();
|
|
822
|
+
var ba = Lt.exports;
|
|
823
|
+
const l = /* @__PURE__ */ pa(ba);
|
|
824
|
+
var Ss = /* @__PURE__ */ ((t) => (t.Primary = "primary", t.Secondary = "secondary", t.Info = "info", t.Success = "success", t.Danger = "danger", t.Warning = "warning", t.Neutral = "neutral", t))(Ss || {}), Es = /* @__PURE__ */ ((t) => (t.Solid = "solid", t.Outline = "outline", t.Text = "text", t))(Es || {}), ws = /* @__PURE__ */ ((t) => (t.Large = "lg", t.Medium = "md", t.Small = "sm", t))(ws || {}), As = /* @__PURE__ */ ((t) => (t.Right = "right", t.Left = "left", t))(As || {}), Sa = /* @__PURE__ */ ((t) => (t[t.Elevation1 = 1] = "Elevation1", t[t.Elevation2 = 2] = "Elevation2", t[t.Elevation3 = 3] = "Elevation3", t[t.Elevation4 = 4] = "Elevation4", t))(Sa || {});
|
|
825
|
+
const G = {
|
|
686
826
|
name: "Button",
|
|
687
827
|
class: "ds-button",
|
|
688
828
|
props: {
|
|
689
829
|
color: {
|
|
690
830
|
type: String,
|
|
691
831
|
default: "primary",
|
|
692
|
-
options: Object.values(
|
|
832
|
+
options: Object.values(Ss)
|
|
693
833
|
},
|
|
694
834
|
variant: {
|
|
695
835
|
type: String,
|
|
696
836
|
default: "solid",
|
|
697
|
-
options: Object.values(
|
|
837
|
+
options: Object.values(Es)
|
|
698
838
|
},
|
|
699
839
|
size: {
|
|
700
840
|
type: String,
|
|
701
841
|
default: "md",
|
|
702
|
-
options: Object.values(
|
|
842
|
+
options: Object.values(ws)
|
|
703
843
|
},
|
|
704
844
|
elevation: {
|
|
705
845
|
type: Number,
|
|
@@ -726,7 +866,7 @@ const Z = {
|
|
|
726
866
|
iconPosition: {
|
|
727
867
|
type: String,
|
|
728
868
|
default: "right",
|
|
729
|
-
options: Object.values(
|
|
869
|
+
options: Object.values(As)
|
|
730
870
|
},
|
|
731
871
|
id: {
|
|
732
872
|
type: String,
|
|
@@ -742,7 +882,7 @@ const Z = {
|
|
|
742
882
|
}
|
|
743
883
|
}
|
|
744
884
|
};
|
|
745
|
-
var
|
|
885
|
+
var xs = /* @__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))(xs || {}), Cs = /* @__PURE__ */ ((t) => (t.Outlined = "outlined", t.Rounded = "rounded", t.Sharp = "sharp", t))(Cs || {}), Ds = /* @__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))(Ds || {}), Ts = /* @__PURE__ */ ((t) => (t.Bold = "bold", t.Semibold = "semibold", t.Medium = "medium", t.Regular = "regular", t.Light = "light", t.Extralight = "extralight", t))(Ts || {});
|
|
746
886
|
const _e = {
|
|
747
887
|
name: "Icon",
|
|
748
888
|
class: "ds-icon",
|
|
@@ -750,7 +890,7 @@ const _e = {
|
|
|
750
890
|
color: {
|
|
751
891
|
type: String,
|
|
752
892
|
default: "neutral-90",
|
|
753
|
-
options: Object.values(
|
|
893
|
+
options: Object.values(xs)
|
|
754
894
|
},
|
|
755
895
|
image: {
|
|
756
896
|
type: String,
|
|
@@ -759,12 +899,12 @@ const _e = {
|
|
|
759
899
|
variation: {
|
|
760
900
|
type: String,
|
|
761
901
|
default: "outlined",
|
|
762
|
-
options: Object.values(
|
|
902
|
+
options: Object.values(Cs)
|
|
763
903
|
},
|
|
764
904
|
size: {
|
|
765
905
|
type: String,
|
|
766
906
|
default: "md",
|
|
767
|
-
options: Object.values(
|
|
907
|
+
options: Object.values(Ds)
|
|
768
908
|
},
|
|
769
909
|
fontVariationSettings: {
|
|
770
910
|
type: Object,
|
|
@@ -786,7 +926,7 @@ const _e = {
|
|
|
786
926
|
weight: {
|
|
787
927
|
type: String,
|
|
788
928
|
default: "semibold",
|
|
789
|
-
options: Object.values(
|
|
929
|
+
options: Object.values(Ts)
|
|
790
930
|
},
|
|
791
931
|
onClick: {
|
|
792
932
|
type: Function,
|
|
@@ -795,7 +935,7 @@ const _e = {
|
|
|
795
935
|
}
|
|
796
936
|
};
|
|
797
937
|
var at = /* @__PURE__ */ ((t) => (t["primary-darker"] = "primary--darker", t["primary-dark"] = "primary--dark", t["primary-light"] = "primary--light", t["primary-lighter"] = "primary--lighter", t["primary-lightest"] = "primary--lightest", t["secondary-darker"] = "secondary--darker", t["secondary-dark"] = "secondary--dark", t["secondary-light"] = "secondary--light", t["secondary-lighter"] = "secondary--lighter", t["secondary-lightest"] = "secondary--lightest", t["success-dark"] = "success--dark", t["success-light"] = "success--light", t["success-lighter"] = "success--lighter", t["warning-dark"] = "warning--dark", t["warning-light"] = "warning--light", t["warning-lighter"] = "warning--lighter", t["danger-dark"] = "danger--dark", t["danger-light"] = "danger--light", t["danger-lighter"] = "danger--lighter", t["info-dark"] = "info--dark", t["info-light"] = "info--light", t["info-lighter"] = "info--lighter", t))(at || {});
|
|
798
|
-
const
|
|
938
|
+
const Ea = {
|
|
799
939
|
bold: 700,
|
|
800
940
|
semibold: 600,
|
|
801
941
|
medium: 500,
|
|
@@ -813,7 +953,7 @@ const Qn = {
|
|
|
813
953
|
onClick: o = _e.props.onClick.default
|
|
814
954
|
}) => {
|
|
815
955
|
const u = "material-symbols-rounded", d = e && _e.props.color.options.find((f) => f === e) && `color__${at[e] ?? e}`, h = ce(() => ({
|
|
816
|
-
fontVariationSettings: `'FILL' ${a ? 1 : 0}, 'GRAD' 0,'wght' ${
|
|
956
|
+
fontVariationSettings: `'FILL' ${a ? 1 : 0}, 'GRAD' 0,'wght' ${Ea[r]}, 'opsz' 48`
|
|
817
957
|
}), [r, a]);
|
|
818
958
|
return /* @__PURE__ */ c(
|
|
819
959
|
"i",
|
|
@@ -843,31 +983,41 @@ te.propTypes = {
|
|
|
843
983
|
onClick: l.func
|
|
844
984
|
};
|
|
845
985
|
te.displayName = "DsIcon";
|
|
846
|
-
const
|
|
986
|
+
const mt = ({
|
|
847
987
|
children: t,
|
|
848
988
|
className: e,
|
|
849
989
|
onClick: s,
|
|
850
|
-
size: n =
|
|
851
|
-
disabled: a =
|
|
852
|
-
icon: r =
|
|
853
|
-
id: i =
|
|
854
|
-
testId: o =
|
|
990
|
+
size: n = G.props.size.default,
|
|
991
|
+
disabled: a = G.props.disabled.default,
|
|
992
|
+
icon: r = G.props.icon.default,
|
|
993
|
+
id: i = G.props.id.default,
|
|
994
|
+
testId: o = G.props.testId.default,
|
|
855
995
|
elevation: u,
|
|
856
|
-
variant: d =
|
|
857
|
-
color: h =
|
|
858
|
-
iconFill: f =
|
|
859
|
-
iconPosition: y =
|
|
860
|
-
fullSize: b =
|
|
996
|
+
variant: d = G.props.variant.default,
|
|
997
|
+
color: h = G.props.color.default,
|
|
998
|
+
iconFill: f = G.props.iconFill.default,
|
|
999
|
+
iconPosition: y = G.props.iconPosition.default,
|
|
1000
|
+
fullSize: b = G.props.fullSize.default,
|
|
861
1001
|
trackingData: S
|
|
862
1002
|
}) => {
|
|
863
|
-
const v = n &&
|
|
864
|
-
|
|
1003
|
+
const v = n && G.props.size.options.find((H) => H === n) ? `${G.class}--${n}` : `${G.class}__${G.props.size.default}`, g = a && `${G.class}--disabled`, A = `${G.class}__${h}--${d}`, R = u && `${G.class}--elevation-${u}`, w = r && `${G.class}--with-icon`, x = b ? `${G.class}--full-size` : "", p = y === "right" ? `${G.class}__icon` : `${G.class}__icon--left`, C = y === "right" ? `${G.class}__text` : `${G.class}__text--reversed`, O = (H) => {
|
|
1004
|
+
var B, ae, $, z;
|
|
1005
|
+
S && da({
|
|
1006
|
+
elementType: Wt.Button,
|
|
1007
|
+
pagePath: ((B = globalThis.window) == null ? void 0 : B.location.pathname) ?? "",
|
|
1008
|
+
pageTitle: ((ae = globalThis.document) == null ? void 0 : ae.title) ?? "",
|
|
1009
|
+
pageUrl: (($ = globalThis.window) == null ? void 0 : $.location.href) ?? "",
|
|
1010
|
+
pageReferrer: ((z = globalThis.document) == null ? void 0 : z.referrer) ?? "",
|
|
1011
|
+
elementText: typeof t == "string" ? t : void 0,
|
|
1012
|
+
...S
|
|
1013
|
+
// consumer values always win over the defaults
|
|
1014
|
+
}), s && s(H);
|
|
865
1015
|
};
|
|
866
1016
|
return /* @__PURE__ */ c(
|
|
867
1017
|
"button",
|
|
868
1018
|
{
|
|
869
1019
|
className: [
|
|
870
|
-
|
|
1020
|
+
G.class,
|
|
871
1021
|
x,
|
|
872
1022
|
g,
|
|
873
1023
|
v,
|
|
@@ -875,7 +1025,7 @@ const ft = ({
|
|
|
875
1025
|
R,
|
|
876
1026
|
w,
|
|
877
1027
|
e
|
|
878
|
-
].filter((
|
|
1028
|
+
].filter((H) => H).join(" "),
|
|
879
1029
|
"data-testid": o,
|
|
880
1030
|
disabled: a,
|
|
881
1031
|
id: i,
|
|
@@ -895,42 +1045,53 @@ const ft = ({
|
|
|
895
1045
|
}
|
|
896
1046
|
);
|
|
897
1047
|
};
|
|
898
|
-
|
|
899
|
-
color: l.oneOf(
|
|
900
|
-
variant: l.oneOf(
|
|
901
|
-
size: l.oneOf(
|
|
1048
|
+
mt.propTypes = {
|
|
1049
|
+
color: l.oneOf(G.props.color.options),
|
|
1050
|
+
variant: l.oneOf(G.props.variant.options),
|
|
1051
|
+
size: l.oneOf(G.props.size.options),
|
|
902
1052
|
disabled: l.bool,
|
|
903
1053
|
icon: l.string,
|
|
904
1054
|
iconFill: l.bool,
|
|
905
|
-
iconPosition: l.oneOf(
|
|
1055
|
+
iconPosition: l.oneOf(G.props.iconPosition.options),
|
|
906
1056
|
testId: l.string,
|
|
907
1057
|
id: l.string,
|
|
908
1058
|
fullSize: l.bool,
|
|
909
|
-
trackingData: l.
|
|
1059
|
+
trackingData: l.shape({
|
|
1060
|
+
// element identity (elementType is filled by the button when omitted)
|
|
1061
|
+
elementName: l.string.isRequired,
|
|
1062
|
+
elementType: l.string,
|
|
1063
|
+
// shared business context (data-owl 2.0.0 enums)
|
|
1064
|
+
product: l.string.isRequired,
|
|
1065
|
+
productCategory: l.string.isRequired,
|
|
1066
|
+
squadId: l.string.isRequired,
|
|
1067
|
+
source: l.string.isRequired,
|
|
1068
|
+
handler: l.string.isRequired,
|
|
1069
|
+
businessFlow: l.string.isRequired
|
|
1070
|
+
})
|
|
910
1071
|
};
|
|
911
|
-
|
|
912
|
-
const
|
|
1072
|
+
mt.displayName = "DsButton";
|
|
1073
|
+
const wa = {
|
|
913
1074
|
name: "Caption",
|
|
914
1075
|
class: "ds-caption"
|
|
915
|
-
},
|
|
1076
|
+
}, Fs = ({
|
|
916
1077
|
children: t,
|
|
917
1078
|
className: e,
|
|
918
1079
|
testId: s = "ds-caption-test"
|
|
919
1080
|
}) => /* @__PURE__ */ c(
|
|
920
1081
|
"p",
|
|
921
1082
|
{
|
|
922
|
-
className: [
|
|
1083
|
+
className: [wa.class, e].filter((n) => n).join(" "),
|
|
923
1084
|
"data-testid": s,
|
|
924
1085
|
children: t
|
|
925
1086
|
}
|
|
926
1087
|
);
|
|
927
|
-
|
|
1088
|
+
Fs.propTypes = {
|
|
928
1089
|
children: l.node.isRequired,
|
|
929
1090
|
className: l.string,
|
|
930
1091
|
testId: l.string
|
|
931
1092
|
};
|
|
932
|
-
|
|
933
|
-
var
|
|
1093
|
+
Fs.displayName = "DsCaption";
|
|
1094
|
+
var jt = /* @__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))(jt || {}), Os = /* @__PURE__ */ ((t) => (t.None = "none", t.Quark = "quark", t.Nano = "nano", t.XXXS = "xxxs", t.XXS = "xxs", t.XS = "xs", t))(Os || {}), Aa = /* @__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))(Aa || {});
|
|
934
1095
|
const ke = {
|
|
935
1096
|
name: "Card",
|
|
936
1097
|
class: "ds-card",
|
|
@@ -938,12 +1099,12 @@ const ke = {
|
|
|
938
1099
|
backgroundColor: {
|
|
939
1100
|
type: String,
|
|
940
1101
|
default: "",
|
|
941
|
-
options: Object.values(
|
|
1102
|
+
options: Object.values(jt)
|
|
942
1103
|
},
|
|
943
1104
|
borderColor: {
|
|
944
1105
|
type: String,
|
|
945
1106
|
default: "",
|
|
946
|
-
options: Object.values(
|
|
1107
|
+
options: Object.values(jt)
|
|
947
1108
|
},
|
|
948
1109
|
elevation: {
|
|
949
1110
|
type: Number,
|
|
@@ -960,7 +1121,7 @@ const ke = {
|
|
|
960
1121
|
size: {
|
|
961
1122
|
type: String,
|
|
962
1123
|
default: "xxxs",
|
|
963
|
-
options: Object.values(
|
|
1124
|
+
options: Object.values(Os)
|
|
964
1125
|
},
|
|
965
1126
|
id: {
|
|
966
1127
|
type: String,
|
|
@@ -971,7 +1132,7 @@ const ke = {
|
|
|
971
1132
|
default: "ds-card"
|
|
972
1133
|
}
|
|
973
1134
|
}
|
|
974
|
-
},
|
|
1135
|
+
}, Is = ({
|
|
975
1136
|
id: t,
|
|
976
1137
|
testId: e = ke.props.testId.default,
|
|
977
1138
|
children: s,
|
|
@@ -999,14 +1160,14 @@ const ke = {
|
|
|
999
1160
|
}
|
|
1000
1161
|
);
|
|
1001
1162
|
};
|
|
1002
|
-
|
|
1163
|
+
Is.propTypes = {
|
|
1003
1164
|
id: l.string,
|
|
1004
1165
|
testId: l.string,
|
|
1005
1166
|
backgroundColor: l.oneOf(ke.props.backgroundColor.options),
|
|
1006
1167
|
borderColor: l.oneOf(ke.props.borderColor.options),
|
|
1007
1168
|
elevation: l.oneOf(ke.props.elevation.options)
|
|
1008
1169
|
};
|
|
1009
|
-
|
|
1170
|
+
Is.displayName = "DsCard";
|
|
1010
1171
|
const fe = {
|
|
1011
1172
|
name: "Checkbox",
|
|
1012
1173
|
class: "ds-checkbox",
|
|
@@ -1044,7 +1205,7 @@ const fe = {
|
|
|
1044
1205
|
default: () => ({})
|
|
1045
1206
|
}
|
|
1046
1207
|
}
|
|
1047
|
-
},
|
|
1208
|
+
}, Ns = xe.forwardRef(
|
|
1048
1209
|
({
|
|
1049
1210
|
id: t,
|
|
1050
1211
|
className: e,
|
|
@@ -1063,7 +1224,7 @@ const fe = {
|
|
|
1063
1224
|
}, g = o && `${fe.class}--disabled`, A = (R) => {
|
|
1064
1225
|
o || (S((w) => !w), d && d(R));
|
|
1065
1226
|
};
|
|
1066
|
-
return
|
|
1227
|
+
return Z(() => {
|
|
1067
1228
|
f && S(i);
|
|
1068
1229
|
}, [i, f]), /* @__PURE__ */ F(
|
|
1069
1230
|
"label",
|
|
@@ -1120,7 +1281,7 @@ const fe = {
|
|
|
1120
1281
|
);
|
|
1121
1282
|
}
|
|
1122
1283
|
);
|
|
1123
|
-
|
|
1284
|
+
Ns.propTypes = {
|
|
1124
1285
|
label: l.oneOfType([l.string, l.element]),
|
|
1125
1286
|
name: l.string,
|
|
1126
1287
|
className: l.string,
|
|
@@ -1129,59 +1290,59 @@ Es.propTypes = {
|
|
|
1129
1290
|
checked: l.bool,
|
|
1130
1291
|
disabled: l.bool
|
|
1131
1292
|
};
|
|
1132
|
-
|
|
1133
|
-
var
|
|
1134
|
-
const
|
|
1293
|
+
Ns.displayName = "DsCheckbox";
|
|
1294
|
+
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 || {}), $s = /* @__PURE__ */ ((t) => (t.Solid = "solid", t.Light = "light", t))($s || {}), vt = /* @__PURE__ */ ((t) => (t.Left = "left", t.Right = "right", t))(vt || {});
|
|
1295
|
+
const Be = {
|
|
1135
1296
|
name: "DsChip",
|
|
1136
1297
|
class: "ds-chip",
|
|
1137
1298
|
props: {
|
|
1138
1299
|
color: {
|
|
1139
1300
|
type: String,
|
|
1140
1301
|
default: "primary",
|
|
1141
|
-
options: Object.values(
|
|
1302
|
+
options: Object.values(Rs)
|
|
1142
1303
|
},
|
|
1143
1304
|
variant: {
|
|
1144
1305
|
type: String,
|
|
1145
1306
|
default: "solid",
|
|
1146
|
-
options: Object.values(
|
|
1307
|
+
options: Object.values($s)
|
|
1147
1308
|
},
|
|
1148
1309
|
iconPosition: {
|
|
1149
1310
|
type: String,
|
|
1150
1311
|
default: "left",
|
|
1151
|
-
options: Object.values(
|
|
1312
|
+
options: Object.values(vt)
|
|
1152
1313
|
}
|
|
1153
1314
|
}
|
|
1154
|
-
},
|
|
1315
|
+
}, lr = ({
|
|
1155
1316
|
label: t,
|
|
1156
|
-
color: e =
|
|
1157
|
-
variant: s =
|
|
1317
|
+
color: e = Be.props.color.default,
|
|
1318
|
+
variant: s = Be.props.variant.default,
|
|
1158
1319
|
icon: n,
|
|
1159
|
-
iconPosition: a =
|
|
1320
|
+
iconPosition: a = Be.props.iconPosition.default,
|
|
1160
1321
|
className: r,
|
|
1161
1322
|
title: i,
|
|
1162
1323
|
testId: o = "ds-chip"
|
|
1163
1324
|
}) => {
|
|
1164
1325
|
const u = [
|
|
1165
|
-
|
|
1166
|
-
`${
|
|
1167
|
-
n && `${
|
|
1168
|
-
n && `${
|
|
1326
|
+
Be.class,
|
|
1327
|
+
`${Be.class}__${e}--${s}`,
|
|
1328
|
+
n && `${Be.class}--with-icon`,
|
|
1329
|
+
n && `${Be.class}--icon-${a}`,
|
|
1169
1330
|
r
|
|
1170
1331
|
].filter(Boolean).join(" "), d = n ? /* @__PURE__ */ c(
|
|
1171
1332
|
"span",
|
|
1172
1333
|
{
|
|
1173
|
-
className: `${
|
|
1334
|
+
className: `${Be.class}__icon`,
|
|
1174
1335
|
"data-testid": `${o}-icon`,
|
|
1175
1336
|
children: n
|
|
1176
1337
|
}
|
|
1177
1338
|
) : null;
|
|
1178
1339
|
return /* @__PURE__ */ F("span", { className: u, "data-testid": o, title: i, children: [
|
|
1179
|
-
a ===
|
|
1180
|
-
/* @__PURE__ */ c("span", { className: `${
|
|
1181
|
-
a ===
|
|
1340
|
+
a === vt.Left && d,
|
|
1341
|
+
/* @__PURE__ */ c("span", { className: `${Be.class}__label`, children: t }),
|
|
1342
|
+
a === vt.Right && d
|
|
1182
1343
|
] });
|
|
1183
1344
|
};
|
|
1184
|
-
var
|
|
1345
|
+
var Bs = /* @__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))(Bs || {});
|
|
1185
1346
|
const tt = {
|
|
1186
1347
|
name: "Heading",
|
|
1187
1348
|
class: "ds-heading",
|
|
@@ -1189,10 +1350,10 @@ const tt = {
|
|
|
1189
1350
|
type: {
|
|
1190
1351
|
type: String,
|
|
1191
1352
|
default: "heading-1",
|
|
1192
|
-
options: Object.values(
|
|
1353
|
+
options: Object.values(Bs)
|
|
1193
1354
|
}
|
|
1194
1355
|
}
|
|
1195
|
-
},
|
|
1356
|
+
}, Yt = ({
|
|
1196
1357
|
children: t,
|
|
1197
1358
|
testId: e = "ds-heading-test",
|
|
1198
1359
|
type: s = tt.props.type.default,
|
|
@@ -1215,13 +1376,13 @@ const tt = {
|
|
|
1215
1376
|
}
|
|
1216
1377
|
);
|
|
1217
1378
|
};
|
|
1218
|
-
|
|
1379
|
+
Yt.propTypes = {
|
|
1219
1380
|
className: l.string,
|
|
1220
1381
|
testId: l.string,
|
|
1221
1382
|
type: l.oneOf(tt.props.type.options)
|
|
1222
1383
|
};
|
|
1223
|
-
|
|
1224
|
-
var
|
|
1384
|
+
Yt.displayName = "DsHeading";
|
|
1385
|
+
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 || {});
|
|
1225
1386
|
const He = {
|
|
1226
1387
|
name: "HR",
|
|
1227
1388
|
class: "ds-hr",
|
|
@@ -1229,24 +1390,24 @@ const He = {
|
|
|
1229
1390
|
borderStyle: {
|
|
1230
1391
|
type: String,
|
|
1231
1392
|
default: "",
|
|
1232
|
-
options: Object.values(
|
|
1393
|
+
options: Object.values(Ms)
|
|
1233
1394
|
},
|
|
1234
1395
|
size: {
|
|
1235
1396
|
type: String,
|
|
1236
1397
|
default: "",
|
|
1237
|
-
options: Object.values(
|
|
1398
|
+
options: Object.values(Vs)
|
|
1238
1399
|
}
|
|
1239
1400
|
}
|
|
1240
1401
|
};
|
|
1241
|
-
function
|
|
1402
|
+
function os(t, e, s) {
|
|
1242
1403
|
const n = s.props[t];
|
|
1243
1404
|
return n.options && n.options.some((a) => a === e) ? `${s.class}--${e}` : "";
|
|
1244
1405
|
}
|
|
1245
|
-
const
|
|
1406
|
+
const Ls = ({
|
|
1246
1407
|
size: t = He.props.size.default,
|
|
1247
1408
|
borderStyle: e = He.props.borderStyle.default
|
|
1248
1409
|
}) => {
|
|
1249
|
-
const s =
|
|
1410
|
+
const s = os("size", t, He), n = os("borderStyle", e, He);
|
|
1250
1411
|
return /* @__PURE__ */ c(
|
|
1251
1412
|
"hr",
|
|
1252
1413
|
{
|
|
@@ -1254,20 +1415,20 @@ const Ts = ({
|
|
|
1254
1415
|
}
|
|
1255
1416
|
);
|
|
1256
1417
|
};
|
|
1257
|
-
|
|
1418
|
+
Ls.propTypes = {
|
|
1258
1419
|
size: l.oneOf(He.props.size.options),
|
|
1259
1420
|
borderStyle: l.oneOf(He.props.borderStyle.options)
|
|
1260
1421
|
};
|
|
1261
|
-
|
|
1422
|
+
Ls.displayName = "DsHR";
|
|
1262
1423
|
function Pe(t) {
|
|
1263
1424
|
return typeof t == "string" || t instanceof String;
|
|
1264
1425
|
}
|
|
1265
|
-
function
|
|
1426
|
+
function us(t) {
|
|
1266
1427
|
var e;
|
|
1267
1428
|
return typeof t == "object" && t != null && (t == null || (e = t.constructor) == null ? void 0 : e.name) === "Object";
|
|
1268
1429
|
}
|
|
1269
|
-
function
|
|
1270
|
-
return Array.isArray(e) ?
|
|
1430
|
+
function js(t, e) {
|
|
1431
|
+
return Array.isArray(e) ? js(t, (s, n) => e.includes(n)) : Object.entries(t).reduce((s, n) => {
|
|
1271
1432
|
let [a, r] = n;
|
|
1272
1433
|
return e(r, a) && (s[a] = r), s;
|
|
1273
1434
|
}, {});
|
|
@@ -1279,7 +1440,7 @@ const T = {
|
|
|
1279
1440
|
RIGHT: "RIGHT",
|
|
1280
1441
|
FORCE_RIGHT: "FORCE_RIGHT"
|
|
1281
1442
|
};
|
|
1282
|
-
function
|
|
1443
|
+
function xa(t) {
|
|
1283
1444
|
switch (t) {
|
|
1284
1445
|
case T.LEFT:
|
|
1285
1446
|
return T.FORCE_LEFT;
|
|
@@ -1289,16 +1450,16 @@ function ta(t) {
|
|
|
1289
1450
|
return t;
|
|
1290
1451
|
}
|
|
1291
1452
|
}
|
|
1292
|
-
function
|
|
1453
|
+
function Nt(t) {
|
|
1293
1454
|
return t.replace(/([.*+?^=!:${}()|[\]/\\])/g, "\\$1");
|
|
1294
1455
|
}
|
|
1295
|
-
function
|
|
1456
|
+
function yt(t, e) {
|
|
1296
1457
|
if (e === t) return !0;
|
|
1297
1458
|
const s = Array.isArray(e), n = Array.isArray(t);
|
|
1298
1459
|
let a;
|
|
1299
1460
|
if (s && n) {
|
|
1300
1461
|
if (e.length != t.length) return !1;
|
|
1301
|
-
for (a = 0; a < e.length; a++) if (!
|
|
1462
|
+
for (a = 0; a < e.length; a++) if (!yt(e[a], t[a])) return !1;
|
|
1302
1463
|
return !0;
|
|
1303
1464
|
}
|
|
1304
1465
|
if (s != n) return !1;
|
|
@@ -1311,13 +1472,13 @@ function mt(t, e) {
|
|
|
1311
1472
|
if (o != u) return !1;
|
|
1312
1473
|
const d = Object.keys(e);
|
|
1313
1474
|
for (a = 0; a < d.length; a++) if (!Object.prototype.hasOwnProperty.call(t, d[a])) return !1;
|
|
1314
|
-
for (a = 0; a < d.length; a++) if (!
|
|
1475
|
+
for (a = 0; a < d.length; a++) if (!yt(t[d[a]], e[d[a]])) return !1;
|
|
1315
1476
|
return !0;
|
|
1316
1477
|
} else if (e && t && typeof e == "function" && typeof t == "function")
|
|
1317
1478
|
return e.toString() === t.toString();
|
|
1318
1479
|
return !1;
|
|
1319
1480
|
}
|
|
1320
|
-
class
|
|
1481
|
+
class Ca {
|
|
1321
1482
|
/** Current input value */
|
|
1322
1483
|
/** Current cursor position */
|
|
1323
1484
|
/** Old input value */
|
|
@@ -1367,7 +1528,7 @@ class sa {
|
|
|
1367
1528
|
function I(t, e) {
|
|
1368
1529
|
return new I.InputMask(t, e);
|
|
1369
1530
|
}
|
|
1370
|
-
function
|
|
1531
|
+
function Ps(t) {
|
|
1371
1532
|
if (t == null) throw new Error("mask property should be defined");
|
|
1372
1533
|
return t instanceof RegExp ? I.MaskedRegExp : Pe(t) ? I.MaskedPattern : t === Date ? I.MaskedDate : t === Number ? I.MaskedNumber : Array.isArray(t) || t === Array ? I.MaskedDynamic : I.Masked && t.prototype instanceof I.Masked ? t : I.Masked && t instanceof I.Masked ? t.constructor : t instanceof Function ? I.MaskedFunction : (console.warn("Mask not found for mask", t), I.Masked);
|
|
1373
1534
|
}
|
|
@@ -1382,18 +1543,18 @@ function rt(t) {
|
|
|
1382
1543
|
...s
|
|
1383
1544
|
} = t instanceof I.Masked ? {
|
|
1384
1545
|
mask: t
|
|
1385
|
-
} :
|
|
1546
|
+
} : us(t) && t.mask instanceof I.Masked ? t : {};
|
|
1386
1547
|
if (e) {
|
|
1387
1548
|
const n = e.mask;
|
|
1388
1549
|
return {
|
|
1389
|
-
...
|
|
1550
|
+
...js(e, (a, r) => !r.startsWith("_")),
|
|
1390
1551
|
mask: e.constructor,
|
|
1391
1552
|
_mask: n,
|
|
1392
1553
|
...s
|
|
1393
1554
|
};
|
|
1394
1555
|
}
|
|
1395
1556
|
}
|
|
1396
|
-
return
|
|
1557
|
+
return us(t) ? {
|
|
1397
1558
|
...t
|
|
1398
1559
|
} : {
|
|
1399
1560
|
mask: t
|
|
@@ -1401,12 +1562,12 @@ function rt(t) {
|
|
|
1401
1562
|
}
|
|
1402
1563
|
function Le(t) {
|
|
1403
1564
|
if (I.Masked && t instanceof I.Masked) return t;
|
|
1404
|
-
const e = rt(t), s =
|
|
1565
|
+
const e = rt(t), s = Ps(e.mask);
|
|
1405
1566
|
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.");
|
|
1406
1567
|
return e.mask === s && delete e.mask, e._mask && (e.mask = e._mask, delete e._mask), new s(e);
|
|
1407
1568
|
}
|
|
1408
1569
|
I.createMask = Le;
|
|
1409
|
-
class
|
|
1570
|
+
class Kt {
|
|
1410
1571
|
/** */
|
|
1411
1572
|
/** */
|
|
1412
1573
|
/** */
|
|
@@ -1444,9 +1605,9 @@ class Ut {
|
|
|
1444
1605
|
/** */
|
|
1445
1606
|
/** */
|
|
1446
1607
|
}
|
|
1447
|
-
I.MaskElement =
|
|
1448
|
-
const
|
|
1449
|
-
class
|
|
1608
|
+
I.MaskElement = Kt;
|
|
1609
|
+
const cs = 90, Da = 89;
|
|
1610
|
+
class St extends Kt {
|
|
1450
1611
|
/** HTMLElement to use mask on */
|
|
1451
1612
|
constructor(e) {
|
|
1452
1613
|
super(), this.input = e, this._onKeydown = this._onKeydown.bind(this), this._onInput = this._onInput.bind(this), this._onBeforeinput = this._onBeforeinput.bind(this), this._onCompositionEnd = this._onCompositionEnd.bind(this);
|
|
@@ -1464,9 +1625,9 @@ class _t extends Ut {
|
|
|
1464
1625
|
this.input.addEventListener("keydown", this._onKeydown), this.input.addEventListener("input", this._onInput), this.input.addEventListener("beforeinput", this._onBeforeinput), this.input.addEventListener("compositionend", this._onCompositionEnd), this.input.addEventListener("drop", e.drop), this.input.addEventListener("click", e.click), this.input.addEventListener("focus", e.focus), this.input.addEventListener("blur", e.commit), this._handlers = e;
|
|
1465
1626
|
}
|
|
1466
1627
|
_onKeydown(e) {
|
|
1467
|
-
if (this._handlers.redo && (e.keyCode ===
|
|
1628
|
+
if (this._handlers.redo && (e.keyCode === cs && e.shiftKey && (e.metaKey || e.ctrlKey) || e.keyCode === Da && e.ctrlKey))
|
|
1468
1629
|
return e.preventDefault(), this._handlers.redo(e);
|
|
1469
|
-
if (this._handlers.undo && e.keyCode ===
|
|
1630
|
+
if (this._handlers.undo && e.keyCode === cs && (e.metaKey || e.ctrlKey))
|
|
1470
1631
|
return e.preventDefault(), this._handlers.undo(e);
|
|
1471
1632
|
e.isComposing || this._handlers.selectionChange(e);
|
|
1472
1633
|
}
|
|
@@ -1487,8 +1648,8 @@ class _t extends Ut {
|
|
|
1487
1648
|
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 = {};
|
|
1488
1649
|
}
|
|
1489
1650
|
}
|
|
1490
|
-
I.HTMLMaskElement =
|
|
1491
|
-
class
|
|
1651
|
+
I.HTMLMaskElement = St;
|
|
1652
|
+
class Ta extends St {
|
|
1492
1653
|
/** InputElement to use mask on */
|
|
1493
1654
|
constructor(e) {
|
|
1494
1655
|
super(e), this.input = e;
|
|
@@ -1512,8 +1673,8 @@ class aa extends _t {
|
|
|
1512
1673
|
this.input.value = e;
|
|
1513
1674
|
}
|
|
1514
1675
|
}
|
|
1515
|
-
I.HTMLMaskElement =
|
|
1516
|
-
class
|
|
1676
|
+
I.HTMLMaskElement = St;
|
|
1677
|
+
class qs extends St {
|
|
1517
1678
|
/** Returns HTMLElement selection start */
|
|
1518
1679
|
get _unsafeSelectionStart() {
|
|
1519
1680
|
const e = this.rootElement, s = e.getSelection && e.getSelection(), n = s && s.anchorOffset, a = s && s.focusOffset;
|
|
@@ -1540,8 +1701,8 @@ class Is extends _t {
|
|
|
1540
1701
|
this.input.textContent = e;
|
|
1541
1702
|
}
|
|
1542
1703
|
}
|
|
1543
|
-
I.HTMLContenteditableMaskElement =
|
|
1544
|
-
class
|
|
1704
|
+
I.HTMLContenteditableMaskElement = qs;
|
|
1705
|
+
class Et {
|
|
1545
1706
|
constructor() {
|
|
1546
1707
|
this.states = [], this.currentIndex = 0;
|
|
1547
1708
|
}
|
|
@@ -1552,7 +1713,7 @@ class kt {
|
|
|
1552
1713
|
return this.states.length === 0;
|
|
1553
1714
|
}
|
|
1554
1715
|
push(e) {
|
|
1555
|
-
this.currentIndex < this.states.length - 1 && (this.states.length = this.currentIndex + 1), this.states.push(e), this.states.length >
|
|
1716
|
+
this.currentIndex < this.states.length - 1 && (this.states.length = this.currentIndex + 1), this.states.push(e), this.states.length > Et.MAX_LENGTH && this.states.shift(), this.currentIndex = this.states.length - 1;
|
|
1556
1717
|
}
|
|
1557
1718
|
go(e) {
|
|
1558
1719
|
return this.currentIndex = Math.min(Math.max(this.currentIndex + e, 0), this.states.length - 1), this.currentState;
|
|
@@ -1567,14 +1728,14 @@ class kt {
|
|
|
1567
1728
|
this.states.length = 0, this.currentIndex = 0;
|
|
1568
1729
|
}
|
|
1569
1730
|
}
|
|
1570
|
-
|
|
1571
|
-
class
|
|
1731
|
+
Et.MAX_LENGTH = 100;
|
|
1732
|
+
class Fa {
|
|
1572
1733
|
/**
|
|
1573
1734
|
View element
|
|
1574
1735
|
*/
|
|
1575
1736
|
/** Internal {@link Masked} model */
|
|
1576
1737
|
constructor(e, s) {
|
|
1577
|
-
this.el = e instanceof
|
|
1738
|
+
this.el = e instanceof Kt ? e : e.isContentEditable && e.tagName !== "INPUT" && e.tagName !== "TEXTAREA" ? new qs(e) : new Ta(e), this.masked = Le(s), this._listeners = {}, this._value = "", this._unmaskedValue = "", this._rawInputValue = "", this.history = new Et(), 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();
|
|
1578
1739
|
}
|
|
1579
1740
|
maskEquals(e) {
|
|
1580
1741
|
var s;
|
|
@@ -1586,7 +1747,7 @@ class ra {
|
|
|
1586
1747
|
}
|
|
1587
1748
|
set mask(e) {
|
|
1588
1749
|
if (this.maskEquals(e)) return;
|
|
1589
|
-
if (!(e instanceof I.Masked) && this.masked.constructor ===
|
|
1750
|
+
if (!(e instanceof I.Masked) && this.masked.constructor === Ps(e)) {
|
|
1590
1751
|
this.masked.updateOptions({
|
|
1591
1752
|
mask: e
|
|
1592
1753
|
});
|
|
@@ -1733,7 +1894,7 @@ class ra {
|
|
|
1733
1894
|
/** Handles view input event */
|
|
1734
1895
|
_onInput(e) {
|
|
1735
1896
|
this._inputEvent = e, this._abortUpdateCursor();
|
|
1736
|
-
const s = new
|
|
1897
|
+
const s = new Ca({
|
|
1737
1898
|
// new state
|
|
1738
1899
|
value: this.el.value,
|
|
1739
1900
|
cursorPos: this.cursorPos,
|
|
@@ -1777,7 +1938,7 @@ class ra {
|
|
|
1777
1938
|
this._unbindEvents(), this._listeners.length = 0, delete this.el;
|
|
1778
1939
|
}
|
|
1779
1940
|
}
|
|
1780
|
-
I.InputMask =
|
|
1941
|
+
I.InputMask = Fa;
|
|
1781
1942
|
class P {
|
|
1782
1943
|
/** Inserted symbols */
|
|
1783
1944
|
/** Additional offset if any changes occurred before tail */
|
|
@@ -2060,7 +2221,7 @@ class pe {
|
|
|
2060
2221
|
});
|
|
2061
2222
|
const i = e + s, o = this.extractTail(i), u = this.eager === !0 || this.eager === "remove";
|
|
2062
2223
|
let d;
|
|
2063
|
-
u && (a =
|
|
2224
|
+
u && (a = xa(a), d = this.extractInput(0, i, {
|
|
2064
2225
|
raw: !0
|
|
2065
2226
|
}));
|
|
2066
2227
|
let h = e;
|
|
@@ -2079,7 +2240,7 @@ class pe {
|
|
|
2079
2240
|
return this.mask === e;
|
|
2080
2241
|
}
|
|
2081
2242
|
optionsIsChanged(e) {
|
|
2082
|
-
return !
|
|
2243
|
+
return !yt(this, e);
|
|
2083
2244
|
}
|
|
2084
2245
|
typedValueEquals(e) {
|
|
2085
2246
|
const s = this.typedValue;
|
|
@@ -2190,7 +2351,7 @@ class We {
|
|
|
2190
2351
|
return "";
|
|
2191
2352
|
}
|
|
2192
2353
|
}
|
|
2193
|
-
class
|
|
2354
|
+
class Oa {
|
|
2194
2355
|
constructor(e, s) {
|
|
2195
2356
|
this.masked = e, this._log = [];
|
|
2196
2357
|
const {
|
|
@@ -2286,7 +2447,7 @@ class ia {
|
|
|
2286
2447
|
});
|
|
2287
2448
|
}
|
|
2288
2449
|
}
|
|
2289
|
-
class
|
|
2450
|
+
class Us {
|
|
2290
2451
|
/** */
|
|
2291
2452
|
/** */
|
|
2292
2453
|
/** */
|
|
@@ -2382,7 +2543,7 @@ class Ns {
|
|
|
2382
2543
|
return this._appendPlaceholder();
|
|
2383
2544
|
}
|
|
2384
2545
|
}
|
|
2385
|
-
class
|
|
2546
|
+
class _t {
|
|
2386
2547
|
/** */
|
|
2387
2548
|
/** */
|
|
2388
2549
|
/** */
|
|
@@ -2503,13 +2664,13 @@ class vt {
|
|
|
2503
2664
|
return new P();
|
|
2504
2665
|
}
|
|
2505
2666
|
}
|
|
2506
|
-
|
|
2667
|
+
_t.DEFAULT_DEFINITIONS = {
|
|
2507
2668
|
0: /\d/,
|
|
2508
2669
|
a: /[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,
|
|
2509
2670
|
// http://stackoverflow.com/a/22075070
|
|
2510
2671
|
"*": /./
|
|
2511
2672
|
};
|
|
2512
|
-
class
|
|
2673
|
+
class Ia extends pe {
|
|
2513
2674
|
/** */
|
|
2514
2675
|
/** Enable characters overwriting */
|
|
2515
2676
|
/** */
|
|
@@ -2523,7 +2684,7 @@ class la extends pe {
|
|
|
2523
2684
|
s && (e.validate = (n) => n.search(s) >= 0), super._update(e);
|
|
2524
2685
|
}
|
|
2525
2686
|
}
|
|
2526
|
-
I.MaskedRegExp =
|
|
2687
|
+
I.MaskedRegExp = Ia;
|
|
2527
2688
|
class he extends pe {
|
|
2528
2689
|
/** */
|
|
2529
2690
|
/** */
|
|
@@ -2538,7 +2699,7 @@ class he extends pe {
|
|
|
2538
2699
|
super({
|
|
2539
2700
|
...he.DEFAULTS,
|
|
2540
2701
|
...e,
|
|
2541
|
-
definitions: Object.assign({},
|
|
2702
|
+
definitions: Object.assign({}, _t.DEFAULT_DEFINITIONS, e == null ? void 0 : e.definitions)
|
|
2542
2703
|
});
|
|
2543
2704
|
}
|
|
2544
2705
|
updateOptions(e) {
|
|
@@ -2598,7 +2759,7 @@ class he extends pe {
|
|
|
2598
2759
|
if (++r, i = s[r], !i) break;
|
|
2599
2760
|
o = !1;
|
|
2600
2761
|
}
|
|
2601
|
-
const u = o ? new
|
|
2762
|
+
const u = o ? new _t({
|
|
2602
2763
|
isOptional: a,
|
|
2603
2764
|
lazy: this.lazy,
|
|
2604
2765
|
eager: this.eager,
|
|
@@ -2606,7 +2767,7 @@ class he extends pe {
|
|
|
2606
2767
|
displayChar: this.displayChar,
|
|
2607
2768
|
...rt(e[i]),
|
|
2608
2769
|
parent: this
|
|
2609
|
-
}) : new
|
|
2770
|
+
}) : new Us({
|
|
2610
2771
|
char: i,
|
|
2611
2772
|
eager: this.eager,
|
|
2612
2773
|
isUnmasking: n
|
|
@@ -2786,7 +2947,7 @@ class he extends pe {
|
|
|
2786
2947
|
}
|
|
2787
2948
|
nearestInputPos(e, s) {
|
|
2788
2949
|
if (s === void 0 && (s = T.NONE), !this._blocks.length) return 0;
|
|
2789
|
-
const n = new
|
|
2950
|
+
const n = new Oa(this, e);
|
|
2790
2951
|
if (s === T.NONE)
|
|
2791
2952
|
return n.pushRightBeforeInput() || (n.popState(), n.pushLeftBeforeInput()) ? n.pos : this.displayValue.length;
|
|
2792
2953
|
if (s === T.LEFT || s === T.FORCE_LEFT) {
|
|
@@ -2830,10 +2991,10 @@ he.DEFAULTS = {
|
|
|
2830
2991
|
};
|
|
2831
2992
|
he.STOP_CHAR = "`";
|
|
2832
2993
|
he.ESCAPE_CHAR = "\\";
|
|
2833
|
-
he.InputDefinition =
|
|
2834
|
-
he.FixedDefinition =
|
|
2994
|
+
he.InputDefinition = _t;
|
|
2995
|
+
he.FixedDefinition = Us;
|
|
2835
2996
|
I.MaskedPattern = he;
|
|
2836
|
-
class
|
|
2997
|
+
class ht extends he {
|
|
2837
2998
|
/**
|
|
2838
2999
|
Optionally sets max length of pattern.
|
|
2839
3000
|
Used when pattern length is longer then `to` param length. Pads zeros at start in this case.
|
|
@@ -2900,8 +3061,8 @@ class pt extends he {
|
|
|
2900
3061
|
return s;
|
|
2901
3062
|
}
|
|
2902
3063
|
}
|
|
2903
|
-
I.MaskedRange =
|
|
2904
|
-
const
|
|
3064
|
+
I.MaskedRange = ht;
|
|
3065
|
+
const Na = "d{.}`m{.}`Y";
|
|
2905
3066
|
class Ve extends he {
|
|
2906
3067
|
static extractPatternOptions(e) {
|
|
2907
3068
|
const {
|
|
@@ -2974,19 +3135,19 @@ class Ve extends he {
|
|
|
2974
3135
|
}
|
|
2975
3136
|
Ve.GET_DEFAULT_BLOCKS = () => ({
|
|
2976
3137
|
d: {
|
|
2977
|
-
mask:
|
|
3138
|
+
mask: ht,
|
|
2978
3139
|
from: 1,
|
|
2979
3140
|
to: 31,
|
|
2980
3141
|
maxLength: 2
|
|
2981
3142
|
},
|
|
2982
3143
|
m: {
|
|
2983
|
-
mask:
|
|
3144
|
+
mask: ht,
|
|
2984
3145
|
from: 1,
|
|
2985
3146
|
to: 12,
|
|
2986
3147
|
maxLength: 2
|
|
2987
3148
|
},
|
|
2988
3149
|
Y: {
|
|
2989
|
-
mask:
|
|
3150
|
+
mask: ht,
|
|
2990
3151
|
from: 1900,
|
|
2991
3152
|
to: 9999
|
|
2992
3153
|
}
|
|
@@ -2994,7 +3155,7 @@ Ve.GET_DEFAULT_BLOCKS = () => ({
|
|
|
2994
3155
|
Ve.DEFAULTS = {
|
|
2995
3156
|
...he.DEFAULTS,
|
|
2996
3157
|
mask: Date,
|
|
2997
|
-
pattern:
|
|
3158
|
+
pattern: Na,
|
|
2998
3159
|
format: (t, e) => {
|
|
2999
3160
|
if (!t) return "";
|
|
3000
3161
|
const s = String(t.getDate()).padStart(2, "0"), n = String(t.getMonth() + 1).padStart(2, "0"), a = t.getFullYear();
|
|
@@ -3006,10 +3167,10 @@ Ve.DEFAULTS = {
|
|
|
3006
3167
|
}
|
|
3007
3168
|
};
|
|
3008
3169
|
I.MaskedDate = Ve;
|
|
3009
|
-
class
|
|
3170
|
+
class wt extends pe {
|
|
3010
3171
|
constructor(e) {
|
|
3011
3172
|
super({
|
|
3012
|
-
...
|
|
3173
|
+
...wt.DEFAULTS,
|
|
3013
3174
|
...e
|
|
3014
3175
|
}), this.currentMask = void 0;
|
|
3015
3176
|
}
|
|
@@ -3194,7 +3355,7 @@ class bt extends pe {
|
|
|
3194
3355
|
mask: a,
|
|
3195
3356
|
...r
|
|
3196
3357
|
} = e[n];
|
|
3197
|
-
return
|
|
3358
|
+
return yt(s, r) && s.maskEquals(a);
|
|
3198
3359
|
}) : super.maskEquals(e);
|
|
3199
3360
|
}
|
|
3200
3361
|
typedValueEquals(e) {
|
|
@@ -3202,7 +3363,7 @@ class bt extends pe {
|
|
|
3202
3363
|
return !!((s = this.currentMask) != null && s.typedValueEquals(e));
|
|
3203
3364
|
}
|
|
3204
3365
|
}
|
|
3205
|
-
|
|
3366
|
+
wt.DEFAULTS = {
|
|
3206
3367
|
...pe.DEFAULTS,
|
|
3207
3368
|
dispatch: (t, e, s, n) => {
|
|
3208
3369
|
if (!e.compiledMasks.length) return;
|
|
@@ -3219,11 +3380,11 @@ bt.DEFAULTS = {
|
|
|
3219
3380
|
return r.sort((i, o) => o.weight - i.weight || o.totalInputPositions - i.totalInputPositions), e.compiledMasks[r[0].index];
|
|
3220
3381
|
}
|
|
3221
3382
|
};
|
|
3222
|
-
I.MaskedDynamic =
|
|
3223
|
-
class
|
|
3383
|
+
I.MaskedDynamic = wt;
|
|
3384
|
+
class At extends he {
|
|
3224
3385
|
constructor(e) {
|
|
3225
3386
|
super({
|
|
3226
|
-
...
|
|
3387
|
+
...At.DEFAULTS,
|
|
3227
3388
|
...e
|
|
3228
3389
|
});
|
|
3229
3390
|
}
|
|
@@ -3272,12 +3433,12 @@ class St extends he {
|
|
|
3272
3433
|
return this.enum.indexOf(this.value) >= 0;
|
|
3273
3434
|
}
|
|
3274
3435
|
}
|
|
3275
|
-
|
|
3436
|
+
At.DEFAULTS = {
|
|
3276
3437
|
...he.DEFAULTS,
|
|
3277
3438
|
matchValue: (t, e, s) => t.indexOf(e, s) === s
|
|
3278
3439
|
};
|
|
3279
|
-
I.MaskedEnum =
|
|
3280
|
-
class
|
|
3440
|
+
I.MaskedEnum = At;
|
|
3441
|
+
class Ra extends pe {
|
|
3281
3442
|
/** */
|
|
3282
3443
|
/** Enable characters overwriting */
|
|
3283
3444
|
/** */
|
|
@@ -3293,8 +3454,8 @@ class ua extends pe {
|
|
|
3293
3454
|
});
|
|
3294
3455
|
}
|
|
3295
3456
|
}
|
|
3296
|
-
I.MaskedFunction =
|
|
3297
|
-
var
|
|
3457
|
+
I.MaskedFunction = Ra;
|
|
3458
|
+
var zs;
|
|
3298
3459
|
class be extends pe {
|
|
3299
3460
|
/** Single char */
|
|
3300
3461
|
/** Single char */
|
|
@@ -3323,8 +3484,8 @@ class be extends pe {
|
|
|
3323
3484
|
super._update(e), this._updateRegExps();
|
|
3324
3485
|
}
|
|
3325
3486
|
_updateRegExps() {
|
|
3326
|
-
const e = "^" + (this.allowNegative ? "[+|\\-]?" : ""), s = "\\d*", n = (this.scale ? "(" +
|
|
3327
|
-
this._numberRegExp = new RegExp(e + s + n), this._mapToRadixRegExp = new RegExp("[" + this.mapToRadix.map(
|
|
3487
|
+
const e = "^" + (this.allowNegative ? "[+|\\-]?" : ""), s = "\\d*", n = (this.scale ? "(" + Nt(this.radix) + "\\d{0," + this.scale + "})?" : "") + "$";
|
|
3488
|
+
this._numberRegExp = new RegExp(e + s + n), this._mapToRadixRegExp = new RegExp("[" + this.mapToRadix.map(Nt).join("") + "]", "g"), this._thousandsSeparatorRegExp = new RegExp(Nt(this.thousandsSeparator), "g");
|
|
3328
3489
|
}
|
|
3329
3490
|
_removeThousandsSeparators(e) {
|
|
3330
3491
|
return e.replace(this._thousandsSeparatorRegExp, "");
|
|
@@ -3478,7 +3639,7 @@ class be extends pe {
|
|
|
3478
3639
|
return (super.typedValueEquals(e) || be.EMPTY_VALUES.includes(e) && be.EMPTY_VALUES.includes(this.typedValue)) && !(e === 0 && this.value === "");
|
|
3479
3640
|
}
|
|
3480
3641
|
}
|
|
3481
|
-
|
|
3642
|
+
zs = be;
|
|
3482
3643
|
be.UNMASKED_RADIX = ".";
|
|
3483
3644
|
be.EMPTY_VALUES = [...pe.EMPTY_VALUES, 0];
|
|
3484
3645
|
be.DEFAULTS = {
|
|
@@ -3486,7 +3647,7 @@ be.DEFAULTS = {
|
|
|
3486
3647
|
mask: Number,
|
|
3487
3648
|
radix: ",",
|
|
3488
3649
|
thousandsSeparator: "",
|
|
3489
|
-
mapToRadix: [
|
|
3650
|
+
mapToRadix: [zs.UNMASKED_RADIX],
|
|
3490
3651
|
min: Number.MIN_SAFE_INTEGER,
|
|
3491
3652
|
max: Number.MAX_SAFE_INTEGER,
|
|
3492
3653
|
scale: 2,
|
|
@@ -3499,23 +3660,23 @@ be.DEFAULTS = {
|
|
|
3499
3660
|
})
|
|
3500
3661
|
};
|
|
3501
3662
|
I.MaskedNumber = be;
|
|
3502
|
-
const
|
|
3663
|
+
const Pt = {
|
|
3503
3664
|
MASKED: "value",
|
|
3504
3665
|
UNMASKED: "unmaskedValue",
|
|
3505
3666
|
TYPED: "typedValue"
|
|
3506
3667
|
};
|
|
3507
|
-
function
|
|
3508
|
-
e === void 0 && (e =
|
|
3668
|
+
function Hs(t, e, s) {
|
|
3669
|
+
e === void 0 && (e = Pt.MASKED), s === void 0 && (s = Pt.MASKED);
|
|
3509
3670
|
const n = Le(t);
|
|
3510
3671
|
return (a) => n.runIsolated((r) => (r[e] = a, r[s]));
|
|
3511
3672
|
}
|
|
3512
|
-
function
|
|
3513
|
-
return
|
|
3673
|
+
function $a(t, e, s, n) {
|
|
3674
|
+
return Hs(e, s, n)(t);
|
|
3514
3675
|
}
|
|
3515
|
-
I.PIPE_TYPE =
|
|
3516
|
-
I.createPipe =
|
|
3517
|
-
I.pipe =
|
|
3518
|
-
class
|
|
3676
|
+
I.PIPE_TYPE = Pt;
|
|
3677
|
+
I.createPipe = Hs;
|
|
3678
|
+
I.pipe = $a;
|
|
3679
|
+
class Ba extends he {
|
|
3519
3680
|
get repeatFrom() {
|
|
3520
3681
|
var e;
|
|
3521
3682
|
return (e = Array.isArray(this.repeat) ? this.repeat[0] : this.repeat === 1 / 0 ? 0 : this.repeat) != null ? e : 0;
|
|
@@ -3608,12 +3769,12 @@ class da extends he {
|
|
|
3608
3769
|
this._blocks.length = e._blocks.length, this.mask = this.mask.slice(0, this._blocks.length), super.state = e;
|
|
3609
3770
|
}
|
|
3610
3771
|
}
|
|
3611
|
-
I.RepeatBlock =
|
|
3772
|
+
I.RepeatBlock = Ba;
|
|
3612
3773
|
try {
|
|
3613
3774
|
globalThis.IMask = I;
|
|
3614
3775
|
} catch {
|
|
3615
3776
|
}
|
|
3616
|
-
const
|
|
3777
|
+
const Ws = {
|
|
3617
3778
|
// common
|
|
3618
3779
|
mask: l.oneOfType([l.array, l.func, l.string, l.instanceOf(RegExp), l.oneOf([Date, Number, I.Masked]), l.instanceOf(I.Masked)]),
|
|
3619
3780
|
value: l.any,
|
|
@@ -3660,8 +3821,8 @@ const $s = {
|
|
|
3660
3821
|
inputRef: l.oneOfType([l.func, l.shape({
|
|
3661
3822
|
current: l.object
|
|
3662
3823
|
})])
|
|
3663
|
-
},
|
|
3664
|
-
function
|
|
3824
|
+
}, Xs = Object.keys(Ws).filter((t) => t !== "value"), Ma = ["value", "unmask", "onAccept", "onComplete", "inputRef"], Va = Xs.filter((t) => Ma.indexOf(t) < 0);
|
|
3825
|
+
function La(t) {
|
|
3665
3826
|
var e;
|
|
3666
3827
|
const s = (e = class extends xe.Component {
|
|
3667
3828
|
constructor(r) {
|
|
@@ -3695,7 +3856,7 @@ function fa(t) {
|
|
|
3695
3856
|
const {
|
|
3696
3857
|
...i
|
|
3697
3858
|
} = r;
|
|
3698
|
-
return Object.keys(i).filter((o) =>
|
|
3859
|
+
return Object.keys(i).filter((o) => Va.indexOf(o) < 0).forEach((o) => {
|
|
3699
3860
|
delete i[o];
|
|
3700
3861
|
}), i;
|
|
3701
3862
|
}
|
|
@@ -3703,7 +3864,7 @@ function fa(t) {
|
|
|
3703
3864
|
const {
|
|
3704
3865
|
...i
|
|
3705
3866
|
} = r;
|
|
3706
|
-
return
|
|
3867
|
+
return Xs.forEach((o) => {
|
|
3707
3868
|
o !== "maxLength" && delete i[o];
|
|
3708
3869
|
}), "defaultValue" in i || (i.defaultValue = r.mask ? "" : i.value), delete i.value, i;
|
|
3709
3870
|
}
|
|
@@ -3726,12 +3887,12 @@ function fa(t) {
|
|
|
3726
3887
|
});
|
|
3727
3888
|
}
|
|
3728
3889
|
}, e.displayName = void 0, e.propTypes = void 0, e), n = t.displayName || t.name || "Component";
|
|
3729
|
-
return s.displayName = "IMask(" + n + ")", s.propTypes =
|
|
3890
|
+
return s.displayName = "IMask(" + n + ")", s.propTypes = Ws, xe.forwardRef((a, r) => xe.createElement(s, {
|
|
3730
3891
|
...a,
|
|
3731
3892
|
ref: r
|
|
3732
3893
|
}));
|
|
3733
3894
|
}
|
|
3734
|
-
const
|
|
3895
|
+
const ja = La((t) => {
|
|
3735
3896
|
let {
|
|
3736
3897
|
inputRef: e,
|
|
3737
3898
|
...s
|
|
@@ -3740,21 +3901,21 @@ const ga = fa((t) => {
|
|
|
3740
3901
|
...s,
|
|
3741
3902
|
ref: e
|
|
3742
3903
|
});
|
|
3743
|
-
}),
|
|
3904
|
+
}), Pa = (t, e) => xe.createElement(ja, {
|
|
3744
3905
|
...t,
|
|
3745
3906
|
ref: e
|
|
3746
3907
|
});
|
|
3747
|
-
xe.forwardRef(
|
|
3748
|
-
function
|
|
3908
|
+
xe.forwardRef(Pa);
|
|
3909
|
+
function qa(t, e) {
|
|
3749
3910
|
let {
|
|
3750
3911
|
onAccept: s,
|
|
3751
3912
|
onComplete: n,
|
|
3752
|
-
ref: a =
|
|
3913
|
+
ref: a = Xe(null),
|
|
3753
3914
|
defaultValue: r,
|
|
3754
3915
|
defaultUnmaskedValue: i,
|
|
3755
3916
|
defaultTypedValue: o
|
|
3756
3917
|
} = e === void 0 ? {} : e;
|
|
3757
|
-
const u =
|
|
3918
|
+
const u = Xe(null), [d, h] = q({}), [f, y] = q(""), [b, S] = q(""), [v, g] = q(), A = Ae(() => {
|
|
3758
3919
|
var p;
|
|
3759
3920
|
(p = u.current) == null || p.destroy(), u.current = null;
|
|
3760
3921
|
}, []), R = Ae(() => {
|
|
@@ -3768,36 +3929,36 @@ function va(t, e) {
|
|
|
3768
3929
|
const C = u.current;
|
|
3769
3930
|
C && (R(), s == null || s(C.value, C, p));
|
|
3770
3931
|
}, [s]), x = Ae((p) => u.current && (n == null ? void 0 : n(u.current.value, u.current, p)), [n]);
|
|
3771
|
-
return
|
|
3932
|
+
return Z(() => {
|
|
3772
3933
|
const {
|
|
3773
3934
|
value: p,
|
|
3774
3935
|
...C
|
|
3775
3936
|
} = d, O = u.current;
|
|
3776
3937
|
!O || f === void 0 || (p !== f && (O.value = f, O.value !== f && w()), h(C));
|
|
3777
|
-
}, [f]),
|
|
3938
|
+
}, [f]), Z(() => {
|
|
3778
3939
|
const {
|
|
3779
3940
|
unmaskedValue: p,
|
|
3780
3941
|
...C
|
|
3781
3942
|
} = d, O = u.current;
|
|
3782
3943
|
!O || b === void 0 || (p !== b && (O.unmaskedValue = b, O.unmaskedValue !== b && w()), h(C));
|
|
3783
|
-
}, [b]),
|
|
3944
|
+
}, [b]), Z(() => {
|
|
3784
3945
|
const {
|
|
3785
3946
|
typedValue: p,
|
|
3786
3947
|
...C
|
|
3787
3948
|
} = d, O = u.current;
|
|
3788
3949
|
!O || v === void 0 || (p !== v && (O.typedValue = v, O.masked.typedValueEquals(v) || w()), h(C));
|
|
3789
|
-
}, [v]),
|
|
3950
|
+
}, [v]), Z(() => {
|
|
3790
3951
|
const p = a.current;
|
|
3791
3952
|
if (!p || !(t != null && t.mask)) return A();
|
|
3792
3953
|
const C = u.current;
|
|
3793
3954
|
C ? C == null || C.updateOptions(t) : p && t != null && t.mask && (u.current = I(p, t), R(), r !== void 0 && y(r), i !== void 0 && S(i), o !== void 0 && g(o));
|
|
3794
|
-
}, [t, A, w]),
|
|
3955
|
+
}, [t, A, w]), Z(() => {
|
|
3795
3956
|
if (!u.current) return;
|
|
3796
3957
|
const p = u.current;
|
|
3797
3958
|
return p.on("accept", w), p.on("complete", x), () => {
|
|
3798
3959
|
p.off("accept", w), p.off("complete", x);
|
|
3799
3960
|
};
|
|
3800
|
-
}, [w, x]),
|
|
3961
|
+
}, [w, x]), Z(() => A, [A]), {
|
|
3801
3962
|
ref: a,
|
|
3802
3963
|
maskRef: u,
|
|
3803
3964
|
value: f,
|
|
@@ -3808,7 +3969,7 @@ function va(t, e) {
|
|
|
3808
3969
|
setTypedValue: g
|
|
3809
3970
|
};
|
|
3810
3971
|
}
|
|
3811
|
-
var
|
|
3972
|
+
var Ys = /* @__PURE__ */ ((t) => (t.Text = "text", t.Password = "password", t.Email = "email", t.Date = "date", t.Number = "number", t))(Ys || {}), Ks = /* @__PURE__ */ ((t) => (t.Small = "small", t.Medium = "medium", t.Large = "large", t))(Ks || {}), Qs = /* @__PURE__ */ ((t) => (t.Default = "", t.Error = "error", t.Success = "success", t))(Qs || {}), Gs = /* @__PURE__ */ ((t) => (t.Center = "center", t.End = "end", t.Initial = "initial", t))(Gs || {}), Zs = /* @__PURE__ */ ((t) => (t.Top = "top", t.Right = "right", t.Bottom = "bottom", t.Left = "left", t))(Zs || {});
|
|
3812
3973
|
const ee = {
|
|
3813
3974
|
name: "Input",
|
|
3814
3975
|
class: "ds-input",
|
|
@@ -3824,7 +3985,7 @@ const ee = {
|
|
|
3824
3985
|
type: {
|
|
3825
3986
|
type: String,
|
|
3826
3987
|
default: "text",
|
|
3827
|
-
options: Object.values(
|
|
3988
|
+
options: Object.values(Ys)
|
|
3828
3989
|
},
|
|
3829
3990
|
animated: {
|
|
3830
3991
|
type: Boolean,
|
|
@@ -3837,7 +3998,7 @@ const ee = {
|
|
|
3837
3998
|
size: {
|
|
3838
3999
|
type: String,
|
|
3839
4000
|
default: "medium",
|
|
3840
|
-
options: Object.values(
|
|
4001
|
+
options: Object.values(Ks)
|
|
3841
4002
|
},
|
|
3842
4003
|
label: {
|
|
3843
4004
|
type: String,
|
|
@@ -3862,7 +4023,7 @@ const ee = {
|
|
|
3862
4023
|
status: {
|
|
3863
4024
|
type: String,
|
|
3864
4025
|
default: "",
|
|
3865
|
-
options: Object.values(
|
|
4026
|
+
options: Object.values(Qs)
|
|
3866
4027
|
},
|
|
3867
4028
|
feedback: {
|
|
3868
4029
|
type: String,
|
|
@@ -3887,12 +4048,12 @@ const ee = {
|
|
|
3887
4048
|
tooltipPlacement: {
|
|
3888
4049
|
type: String,
|
|
3889
4050
|
default: "center",
|
|
3890
|
-
options: Object.values(
|
|
4051
|
+
options: Object.values(Gs)
|
|
3891
4052
|
},
|
|
3892
4053
|
tooltipPosition: {
|
|
3893
4054
|
type: String,
|
|
3894
4055
|
default: "top",
|
|
3895
|
-
options: Object.values(
|
|
4056
|
+
options: Object.values(Zs)
|
|
3896
4057
|
},
|
|
3897
4058
|
mask: {
|
|
3898
4059
|
type: String,
|
|
@@ -3903,7 +4064,7 @@ const ee = {
|
|
|
3903
4064
|
default: () => ({})
|
|
3904
4065
|
}
|
|
3905
4066
|
}
|
|
3906
|
-
},
|
|
4067
|
+
}, ds = {
|
|
3907
4068
|
currency: {
|
|
3908
4069
|
mask: "currency",
|
|
3909
4070
|
blocks: {
|
|
@@ -3949,7 +4110,7 @@ const ee = {
|
|
|
3949
4110
|
dispatch: (t, e) => (e.value + t).replace(/\D/g, "").length <= 10 ? e.compiledMasks[0] : e.compiledMasks[1]
|
|
3950
4111
|
}
|
|
3951
4112
|
};
|
|
3952
|
-
var
|
|
4113
|
+
var Js = /* @__PURE__ */ ((t) => (t.Top = "top", t.Right = "right", t.Bottom = "bottom", t.Left = "left", t))(Js || {}), en = /* @__PURE__ */ ((t) => (t.Center = "center", t.End = "end", t.Initial = "initial", t))(en || {});
|
|
3953
4114
|
const Ie = {
|
|
3954
4115
|
name: "Tooltip",
|
|
3955
4116
|
class: "ds-tooltip",
|
|
@@ -3957,12 +4118,12 @@ const Ie = {
|
|
|
3957
4118
|
position: {
|
|
3958
4119
|
type: String,
|
|
3959
4120
|
default: "top",
|
|
3960
|
-
options: Object.values(
|
|
4121
|
+
options: Object.values(Js)
|
|
3961
4122
|
},
|
|
3962
4123
|
placement: {
|
|
3963
4124
|
type: String,
|
|
3964
4125
|
default: "center",
|
|
3965
|
-
options: Object.values(
|
|
4126
|
+
options: Object.values(en)
|
|
3966
4127
|
},
|
|
3967
4128
|
text: {
|
|
3968
4129
|
type: String,
|
|
@@ -3973,7 +4134,7 @@ const Ie = {
|
|
|
3973
4134
|
default: "ds-tooltip"
|
|
3974
4135
|
}
|
|
3975
4136
|
}
|
|
3976
|
-
},
|
|
4137
|
+
}, Qe = ({
|
|
3977
4138
|
children: t,
|
|
3978
4139
|
position: e = Ie.props.position.default,
|
|
3979
4140
|
placement: s = Ie.props.placement.default,
|
|
@@ -3981,13 +4142,13 @@ const Ie = {
|
|
|
3981
4142
|
testId: a = Ie.props.testId.default,
|
|
3982
4143
|
className: r
|
|
3983
4144
|
}) => {
|
|
3984
|
-
const i =
|
|
4145
|
+
const i = Xe(null), [o, u] = q(0), [d, h] = q(0), [f, y] = q(!1), b = e && Ie.props.position.options.find(
|
|
3985
4146
|
(A) => A === e
|
|
3986
4147
|
) && `${Ie.class}--${e}`, S = s && Ie.props.placement.options.find(
|
|
3987
4148
|
(A) => A === s
|
|
3988
4149
|
) && `${Ie.class}--${s}`;
|
|
3989
4150
|
let v;
|
|
3990
|
-
|
|
4151
|
+
Wn(() => {
|
|
3991
4152
|
var A, R;
|
|
3992
4153
|
i.current && (u((A = i == null ? void 0 : i.current) == null ? void 0 : A.offsetHeight), h((R = i == null ? void 0 : i.current) == null ? void 0 : R.offsetWidth));
|
|
3993
4154
|
}, []);
|
|
@@ -4076,13 +4237,13 @@ const Ie = {
|
|
|
4076
4237
|
}
|
|
4077
4238
|
);
|
|
4078
4239
|
};
|
|
4079
|
-
|
|
4240
|
+
Qe.propTypes = {
|
|
4080
4241
|
position: l.string,
|
|
4081
4242
|
placement: l.string,
|
|
4082
4243
|
text: l.oneOfType([l.string, l.node]),
|
|
4083
4244
|
testId: l.string
|
|
4084
4245
|
};
|
|
4085
|
-
|
|
4246
|
+
Qe.displayName = "DsTooltip";
|
|
4086
4247
|
const it = xe.forwardRef(
|
|
4087
4248
|
({
|
|
4088
4249
|
name: t,
|
|
@@ -4109,29 +4270,29 @@ const it = xe.forwardRef(
|
|
|
4109
4270
|
mask: p,
|
|
4110
4271
|
onChangeHandler: C = ee.props.onChangeHandler.default,
|
|
4111
4272
|
onBlurHandler: O,
|
|
4112
|
-
onKeyDownHandler:
|
|
4113
|
-
onFocusHandler:
|
|
4114
|
-
},
|
|
4115
|
-
const [
|
|
4273
|
+
onKeyDownHandler: H,
|
|
4274
|
+
onFocusHandler: B
|
|
4275
|
+
}, ae) => {
|
|
4276
|
+
const [$, z] = q(!1), [J, ie] = q(!1), Se = !!C && !!p, ne = (_, X, k) => {
|
|
4116
4277
|
if (Se && k) {
|
|
4117
|
-
const
|
|
4278
|
+
const re = {
|
|
4118
4279
|
...k,
|
|
4119
4280
|
target: {
|
|
4120
4281
|
...k.target,
|
|
4121
4282
|
name: t,
|
|
4122
4283
|
maskedValue: _,
|
|
4123
|
-
value:
|
|
4284
|
+
value: X.unmaskedValue,
|
|
4124
4285
|
type: "text"
|
|
4125
4286
|
}
|
|
4126
4287
|
};
|
|
4127
|
-
C(
|
|
4288
|
+
C(re);
|
|
4128
4289
|
}
|
|
4129
|
-
}, oe = ce(() => typeof p == "object" ? { lazy: !0, ...p } :
|
|
4130
|
-
...
|
|
4290
|
+
}, oe = ce(() => typeof p == "object" ? { lazy: !0, ...p } : ds[p] ? {
|
|
4291
|
+
...ds[p],
|
|
4131
4292
|
min: u,
|
|
4132
4293
|
max: d,
|
|
4133
4294
|
lazy: !0
|
|
4134
|
-
} : { mask: p ?? "", min: u, max: d, lazy: !0 }, [p]), { ref: Oe, setUnmaskedValue: De } =
|
|
4295
|
+
} : { mask: p ?? "", min: u, max: d, lazy: !0 }, [p]), { ref: Oe, setUnmaskedValue: De } = qa(
|
|
4135
4296
|
oe,
|
|
4136
4297
|
{
|
|
4137
4298
|
onAccept: ne
|
|
@@ -4139,25 +4300,25 @@ const it = xe.forwardRef(
|
|
|
4139
4300
|
), m = (_) => {
|
|
4140
4301
|
C && !Se && C(_);
|
|
4141
4302
|
}, E = (_) => {
|
|
4142
|
-
|
|
4143
|
-
},
|
|
4144
|
-
|
|
4145
|
-
},
|
|
4146
|
-
|
|
4303
|
+
H && H(_);
|
|
4304
|
+
}, L = (_) => {
|
|
4305
|
+
z(!1), O && O(_);
|
|
4306
|
+
}, M = (_) => {
|
|
4307
|
+
z(!0), B && B(_);
|
|
4147
4308
|
}, N = () => {
|
|
4148
|
-
|
|
4149
|
-
}, D = ce(() => J && s === "password" ? "text" : s, [J, s]),
|
|
4309
|
+
ie((_) => !_);
|
|
4310
|
+
}, D = ce(() => J && s === "password" ? "text" : s, [J, s]), V = () => {
|
|
4150
4311
|
const _ = [`${ee.class}`];
|
|
4151
4312
|
return a && _.push(`${ee.class}--${a}`), n && _.push(`${ee.class}--animated`), A && _.push(`${ee.class}--no-margin`), b && _.push(`${ee.class}--with-icon`), S && _.push(`${ee.class}--${S}`), x && _.push(x), _.join(" ");
|
|
4152
4313
|
}, j = ce(() => {
|
|
4153
4314
|
const _ = [`${ee.class}__label`];
|
|
4154
|
-
return (
|
|
4155
|
-
}, [o,
|
|
4156
|
-
return
|
|
4315
|
+
return ($ || o) && _.push(`${ee.class}__label--active`), _.join(" ");
|
|
4316
|
+
}, [o, $]), U = () => !n && i ? i : "", W = () => S && S === "error" ? "info" : "check_circle";
|
|
4317
|
+
return Z(() => {
|
|
4157
4318
|
p && De(o ?? "");
|
|
4158
|
-
}, [o, p, De]), /* @__PURE__ */ F("div", { className:
|
|
4159
|
-
g && /* @__PURE__ */ c("div", { className: "ds-input__feedback", children: v && /* @__PURE__ */ F(
|
|
4160
|
-
/* @__PURE__ */ c(te, { image:
|
|
4319
|
+
}, [o, p, De]), /* @__PURE__ */ F("div", { className: V(), ref: ae, children: [
|
|
4320
|
+
g && /* @__PURE__ */ c("div", { className: "ds-input__feedback", children: v && /* @__PURE__ */ F(kt, { children: [
|
|
4321
|
+
/* @__PURE__ */ c(te, { image: W() }),
|
|
4161
4322
|
v
|
|
4162
4323
|
] }) }),
|
|
4163
4324
|
/* @__PURE__ */ c(
|
|
@@ -4171,9 +4332,9 @@ const it = xe.forwardRef(
|
|
|
4171
4332
|
max: d,
|
|
4172
4333
|
min: u,
|
|
4173
4334
|
name: t,
|
|
4174
|
-
onBlur:
|
|
4335
|
+
onBlur: L,
|
|
4175
4336
|
onChange: m,
|
|
4176
|
-
onFocus:
|
|
4337
|
+
onFocus: M,
|
|
4177
4338
|
onInput: m,
|
|
4178
4339
|
onKeyDown: E,
|
|
4179
4340
|
placeholder: U(),
|
|
@@ -4185,7 +4346,7 @@ const it = xe.forwardRef(
|
|
|
4185
4346
|
/* @__PURE__ */ F("label", { className: j, htmlFor: t, children: [
|
|
4186
4347
|
r,
|
|
4187
4348
|
h && /* @__PURE__ */ c(
|
|
4188
|
-
|
|
4349
|
+
Qe,
|
|
4189
4350
|
{
|
|
4190
4351
|
className: "ds-input__tooltip",
|
|
4191
4352
|
placement: y,
|
|
@@ -4233,7 +4394,7 @@ it.propTypes = {
|
|
|
4233
4394
|
onFocusHandler: l.func
|
|
4234
4395
|
};
|
|
4235
4396
|
it.displayName = "DsInput";
|
|
4236
|
-
var
|
|
4397
|
+
var tn = /* @__PURE__ */ ((t) => (t.Small = "small", t.Medium = "medium", t.Large = "large", t))(tn || {}), sn = /* @__PURE__ */ ((t) => (t.None = "", t.Neutral20 = "neutral-20", t.Neutral10 = "neutral-10", t.Neutral05 = "neutral-05", t.Neutral00 = "neutral-00", t))(sn || {});
|
|
4237
4398
|
const ye = {
|
|
4238
4399
|
name: "Loading",
|
|
4239
4400
|
class: "ds-loading",
|
|
@@ -4241,7 +4402,7 @@ const ye = {
|
|
|
4241
4402
|
size: {
|
|
4242
4403
|
type: String,
|
|
4243
4404
|
default: "medium",
|
|
4244
|
-
options: Object.values(
|
|
4405
|
+
options: Object.values(tn)
|
|
4245
4406
|
},
|
|
4246
4407
|
opacity: {
|
|
4247
4408
|
type: Boolean,
|
|
@@ -4254,7 +4415,7 @@ const ye = {
|
|
|
4254
4415
|
backgroundColor: {
|
|
4255
4416
|
type: String,
|
|
4256
4417
|
default: "neutral-10",
|
|
4257
|
-
options: Object.values(
|
|
4418
|
+
options: Object.values(sn)
|
|
4258
4419
|
},
|
|
4259
4420
|
id: {
|
|
4260
4421
|
type: String,
|
|
@@ -4265,7 +4426,7 @@ const ye = {
|
|
|
4265
4426
|
default: "ds-loading"
|
|
4266
4427
|
}
|
|
4267
4428
|
}
|
|
4268
|
-
},
|
|
4429
|
+
}, Qt = ({
|
|
4269
4430
|
id: t,
|
|
4270
4431
|
testId: e = ye.props.testId.default,
|
|
4271
4432
|
className: s,
|
|
@@ -4305,7 +4466,7 @@ const ye = {
|
|
|
4305
4466
|
}
|
|
4306
4467
|
);
|
|
4307
4468
|
};
|
|
4308
|
-
|
|
4469
|
+
Qt.propTypes = {
|
|
4309
4470
|
id: l.string,
|
|
4310
4471
|
testId: l.string,
|
|
4311
4472
|
size: l.oneOf(ye.props.size.options),
|
|
@@ -4313,7 +4474,7 @@ zt.propTypes = {
|
|
|
4313
4474
|
fullscreen: l.bool,
|
|
4314
4475
|
backgroundColor: l.string
|
|
4315
4476
|
};
|
|
4316
|
-
|
|
4477
|
+
Qt.displayName = "DsLoading";
|
|
4317
4478
|
const Me = {
|
|
4318
4479
|
name: "Option",
|
|
4319
4480
|
class: "ds-option",
|
|
@@ -4355,7 +4516,7 @@ const Me = {
|
|
|
4355
4516
|
default: () => ({})
|
|
4356
4517
|
}
|
|
4357
4518
|
}
|
|
4358
|
-
},
|
|
4519
|
+
}, nn = ({
|
|
4359
4520
|
id: t,
|
|
4360
4521
|
label: e,
|
|
4361
4522
|
detail: s,
|
|
@@ -4412,7 +4573,7 @@ const Me = {
|
|
|
4412
4573
|
] })
|
|
4413
4574
|
] });
|
|
4414
4575
|
};
|
|
4415
|
-
|
|
4576
|
+
nn.propTypes = {
|
|
4416
4577
|
id: l.string,
|
|
4417
4578
|
name: l.string,
|
|
4418
4579
|
testId: l.string,
|
|
@@ -4423,29 +4584,29 @@ Ys.propTypes = {
|
|
|
4423
4584
|
checked: l.bool,
|
|
4424
4585
|
onChangeHandler: l.func
|
|
4425
4586
|
};
|
|
4426
|
-
|
|
4427
|
-
var
|
|
4428
|
-
const
|
|
4587
|
+
nn.displayName = "DsOption";
|
|
4588
|
+
var an = /* @__PURE__ */ ((t) => (t.Default = "", t.Large = "large", t.Small = "small", t))(an || {});
|
|
4589
|
+
const ft = {
|
|
4429
4590
|
name: "Paragraph",
|
|
4430
4591
|
class: "ds-paragraph",
|
|
4431
4592
|
props: {
|
|
4432
4593
|
type: {
|
|
4433
4594
|
type: String,
|
|
4434
4595
|
default: "",
|
|
4435
|
-
options: Object.values(
|
|
4596
|
+
options: Object.values(an)
|
|
4436
4597
|
}
|
|
4437
4598
|
}
|
|
4438
4599
|
}, je = ({
|
|
4439
4600
|
children: t,
|
|
4440
4601
|
className: e,
|
|
4441
4602
|
testId: s = "ds-paragraph-test",
|
|
4442
|
-
type: n =
|
|
4603
|
+
type: n = ft.props.type.default
|
|
4443
4604
|
}) => {
|
|
4444
|
-
const a = n && `${
|
|
4605
|
+
const a = n && `${ft.class}--${n}`;
|
|
4445
4606
|
return /* @__PURE__ */ c(
|
|
4446
4607
|
"p",
|
|
4447
4608
|
{
|
|
4448
|
-
className: [
|
|
4609
|
+
className: [ft.class, a, e].filter((r) => r).join(" "),
|
|
4449
4610
|
"data-testid": s,
|
|
4450
4611
|
children: t
|
|
4451
4612
|
}
|
|
@@ -4454,11 +4615,11 @@ const ht = {
|
|
|
4454
4615
|
je.propTypes = {
|
|
4455
4616
|
className: l.string,
|
|
4456
4617
|
testId: l.string,
|
|
4457
|
-
type: l.oneOf(
|
|
4618
|
+
type: l.oneOf(ft.props.type.options)
|
|
4458
4619
|
};
|
|
4459
4620
|
je.displayName = "DsParagraph";
|
|
4460
|
-
var
|
|
4461
|
-
const
|
|
4621
|
+
var rn = /* @__PURE__ */ ((t) => (t.PrimaryDarker = "primary-darker", t.PrimaryDark = "primary-dark", t.Primary = "primary", t.PrimaryLight = "primary-light", t.PrimaryLighter = "primary-lighter", t.PrimaryLightest = "primary-lightest", t.SecondaryDarker = "secondary-darker", t.SecondaryDark = "secondary-dark", t.Secondary = "secondary", t.SecondaryLight = "secondary-light", t.SecondaryLighter = "secondary-lighter", t.SecondaryLightest = "secondary-lightest", t.Neutral90 = "neutral-90", t.Neutral80 = "neutral-80", t.Neutral60 = "neutral-60", t.Neutral40 = "neutral-40", t.Neutral20 = "neutral-20", t.Neutral10 = "neutral-10", t.Neutral05 = "neutral-05", t.Neutral00 = "neutral-00", t.SuccessDark = "success-dark", t.Success = "success", t.SuccessLight = "success-light", t.SuccessLighter = "success-lighter", t.WarningDark = "warning-dark", t.Warning = "warning", t.WarningLight = "warning-light", t.WarningLighter = "warning-lighter", t.DangerDark = "danger-dark", t.Danger = "danger", t.DangerLight = "danger-light", t.DangerLighter = "danger-lighter", t.InfoDark = "info-dark", t.Info = "info", t.InfoLight = "info-light", t.InfoLighter = "info-lighter", t))(rn || {});
|
|
4622
|
+
const qt = {
|
|
4462
4623
|
name: "Progress",
|
|
4463
4624
|
class: "ds-progress",
|
|
4464
4625
|
props: {
|
|
@@ -4473,11 +4634,11 @@ const Vt = {
|
|
|
4473
4634
|
color: {
|
|
4474
4635
|
type: String,
|
|
4475
4636
|
default: "success",
|
|
4476
|
-
options: Object.values(
|
|
4637
|
+
options: Object.values(rn)
|
|
4477
4638
|
}
|
|
4478
4639
|
}
|
|
4479
4640
|
};
|
|
4480
|
-
var
|
|
4641
|
+
var ln = /* @__PURE__ */ ((t) => (t.Stretch = "stretch", t.FlexStart = "flex-start", t.FlexEnd = "flex-end", t.Center = "center", t.SpaceAround = "space-around", t.SpaceBetween = "space-between", t))(ln || {}), on = /* @__PURE__ */ ((t) => (t.Stretch = "stretch", t.FlexStart = "flex-start", t.FlexEnd = "flex-end", t.Center = "center", t))(on || {}), un = /* @__PURE__ */ ((t) => (t.Row = "row", t.Column = "column", t.RowReverse = "row-reverse", t.ColumnReverse = "column-reverse", t))(un || {}), cn = /* @__PURE__ */ ((t) => (t.NoWrap = "nowrap", t.Wrap = "wrap", t.WrapReverse = "wrap-reverse", t))(cn || {}), dn = /* @__PURE__ */ ((t) => (t.Quark = "quark", t.Nano = "nano", t.XXXS = "xxxs", 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))(dn || {});
|
|
4481
4642
|
const Ue = {
|
|
4482
4643
|
name: "Flex-Layout",
|
|
4483
4644
|
class: "ds-flex-layout",
|
|
@@ -4486,25 +4647,25 @@ const Ue = {
|
|
|
4486
4647
|
type: String,
|
|
4487
4648
|
default: "stretch",
|
|
4488
4649
|
required: !0,
|
|
4489
|
-
options: Object.values(
|
|
4650
|
+
options: Object.values(ln)
|
|
4490
4651
|
},
|
|
4491
4652
|
alignItems: {
|
|
4492
4653
|
type: String,
|
|
4493
4654
|
default: "stretch",
|
|
4494
4655
|
required: !0,
|
|
4495
|
-
options: Object.values(
|
|
4656
|
+
options: Object.values(on)
|
|
4496
4657
|
},
|
|
4497
4658
|
flexDirection: {
|
|
4498
4659
|
type: String,
|
|
4499
4660
|
default: "row",
|
|
4500
4661
|
required: !0,
|
|
4501
|
-
options: Object.values(
|
|
4662
|
+
options: Object.values(un)
|
|
4502
4663
|
},
|
|
4503
4664
|
flexWrap: {
|
|
4504
4665
|
type: String,
|
|
4505
4666
|
default: "wrap",
|
|
4506
4667
|
required: !1,
|
|
4507
|
-
options: Object.values(
|
|
4668
|
+
options: Object.values(cn)
|
|
4508
4669
|
},
|
|
4509
4670
|
className: {
|
|
4510
4671
|
type: String,
|
|
@@ -4521,7 +4682,7 @@ const Ue = {
|
|
|
4521
4682
|
gap: {
|
|
4522
4683
|
type: String,
|
|
4523
4684
|
default: "",
|
|
4524
|
-
options: Object.values(
|
|
4685
|
+
options: Object.values(dn)
|
|
4525
4686
|
}
|
|
4526
4687
|
}
|
|
4527
4688
|
}, qe = ({
|
|
@@ -4561,7 +4722,7 @@ qe.propTypes = {
|
|
|
4561
4722
|
gap: l.string
|
|
4562
4723
|
};
|
|
4563
4724
|
qe.displayName = "DsFlexLayout";
|
|
4564
|
-
const
|
|
4725
|
+
const Rt = {
|
|
4565
4726
|
name: "Flex-Element",
|
|
4566
4727
|
class: "ds-flex-element",
|
|
4567
4728
|
props: {
|
|
@@ -4578,10 +4739,10 @@ const Ft = {
|
|
|
4578
4739
|
}
|
|
4579
4740
|
}, de = ({
|
|
4580
4741
|
children: t,
|
|
4581
|
-
flex: e =
|
|
4582
|
-
className: s =
|
|
4742
|
+
flex: e = Rt.props.flex.default,
|
|
4743
|
+
className: s = Rt.props.className.default
|
|
4583
4744
|
}) => {
|
|
4584
|
-
const n = () => [
|
|
4745
|
+
const n = () => [Rt.class, s].join(" "), a = () => ({
|
|
4585
4746
|
flex: e
|
|
4586
4747
|
});
|
|
4587
4748
|
return /* @__PURE__ */ c("div", { className: n(), style: a(), children: t });
|
|
@@ -4591,7 +4752,7 @@ de.propTypes = {
|
|
|
4591
4752
|
flex: l.string
|
|
4592
4753
|
};
|
|
4593
4754
|
de.displayName = "DsFlexElement";
|
|
4594
|
-
var
|
|
4755
|
+
var Ut = /* @__PURE__ */ ((t) => (t.None = "none", t.Quark = "quark", t.Nano = "nano", t.XXXS = "xxxs", t.XXS = "xxs", t.XS = "xs", t.SM = "sm", t))(Ut || {});
|
|
4595
4756
|
const st = {
|
|
4596
4757
|
name: "Spacer",
|
|
4597
4758
|
class: "ds-spacer",
|
|
@@ -4599,12 +4760,12 @@ const st = {
|
|
|
4599
4760
|
vertical: {
|
|
4600
4761
|
type: String,
|
|
4601
4762
|
default: "none",
|
|
4602
|
-
options: Object.values(
|
|
4763
|
+
options: Object.values(Ut)
|
|
4603
4764
|
},
|
|
4604
4765
|
horizontal: {
|
|
4605
4766
|
type: String,
|
|
4606
4767
|
default: "none",
|
|
4607
|
-
options: Object.values(
|
|
4768
|
+
options: Object.values(Ut)
|
|
4608
4769
|
}
|
|
4609
4770
|
}
|
|
4610
4771
|
}, Ce = ({
|
|
@@ -4625,10 +4786,10 @@ Ce.propTypes = {
|
|
|
4625
4786
|
horizontal: l.oneOf(st.props.horizontal.options)
|
|
4626
4787
|
};
|
|
4627
4788
|
Ce.displayName = "DsSpacer";
|
|
4628
|
-
const
|
|
4789
|
+
const pn = ({
|
|
4629
4790
|
label: t,
|
|
4630
|
-
progress: e =
|
|
4631
|
-
color: s =
|
|
4791
|
+
progress: e = qt.props.progress.default,
|
|
4792
|
+
color: s = qt.props.color.default
|
|
4632
4793
|
}) => {
|
|
4633
4794
|
const n = ce(
|
|
4634
4795
|
() => e > 100 ? 100 : e < 0 ? 0 : e,
|
|
@@ -4667,18 +4828,18 @@ const tn = ({
|
|
|
4667
4828
|
justifyContent: "center",
|
|
4668
4829
|
children: [
|
|
4669
4830
|
/* @__PURE__ */ c(Ce, { vertical: "quark" }),
|
|
4670
|
-
/* @__PURE__ */ c(
|
|
4831
|
+
/* @__PURE__ */ c(kt, { children: t && /* @__PURE__ */ c(je, { className: i, children: t }) })
|
|
4671
4832
|
]
|
|
4672
4833
|
}
|
|
4673
4834
|
) })
|
|
4674
4835
|
] }) });
|
|
4675
4836
|
};
|
|
4676
|
-
|
|
4837
|
+
pn.propTypes = {
|
|
4677
4838
|
label: l.string,
|
|
4678
4839
|
progress: l.number,
|
|
4679
|
-
color: l.oneOf(
|
|
4840
|
+
color: l.oneOf(qt.props.color.options)
|
|
4680
4841
|
};
|
|
4681
|
-
var
|
|
4842
|
+
var hn = /* @__PURE__ */ ((t) => (t.Default = "default", t.Card = "card", t))(hn || {});
|
|
4682
4843
|
const Ee = {
|
|
4683
4844
|
name: "DsRadio",
|
|
4684
4845
|
class: "ds-radio",
|
|
@@ -4686,14 +4847,14 @@ const Ee = {
|
|
|
4686
4847
|
variant: {
|
|
4687
4848
|
type: String,
|
|
4688
4849
|
default: "default",
|
|
4689
|
-
options: Object.values(
|
|
4850
|
+
options: Object.values(hn)
|
|
4690
4851
|
},
|
|
4691
4852
|
fullWidth: {
|
|
4692
4853
|
type: Boolean,
|
|
4693
4854
|
default: !1
|
|
4694
4855
|
}
|
|
4695
4856
|
}
|
|
4696
|
-
},
|
|
4857
|
+
}, Ua = xe.forwardRef(
|
|
4697
4858
|
({
|
|
4698
4859
|
variant: t = Ee.props.variant.default,
|
|
4699
4860
|
fullWidth: e = Ee.props.fullWidth.default,
|
|
@@ -4705,7 +4866,7 @@ const Ee = {
|
|
|
4705
4866
|
disabled: o,
|
|
4706
4867
|
...u
|
|
4707
4868
|
}, d) => {
|
|
4708
|
-
const h =
|
|
4869
|
+
const h = gs(), f = r ?? `${Ee.class}-${h.replace(/:/g, "")}`, y = [
|
|
4709
4870
|
Ee.class,
|
|
4710
4871
|
`${Ee.class}--${t}`,
|
|
4711
4872
|
e && `${Ee.class}--full-width`,
|
|
@@ -4741,8 +4902,8 @@ const Ee = {
|
|
|
4741
4902
|
);
|
|
4742
4903
|
}
|
|
4743
4904
|
);
|
|
4744
|
-
|
|
4745
|
-
var
|
|
4905
|
+
Ua.displayName = "DsRadio";
|
|
4906
|
+
var fn = /* @__PURE__ */ ((t) => (t.Small = "sm", t.Medium = "md", t))(fn || {});
|
|
4746
4907
|
const ve = {
|
|
4747
4908
|
name: "DsSegmentControl",
|
|
4748
4909
|
class: "ds-segment-control",
|
|
@@ -4762,7 +4923,7 @@ const ve = {
|
|
|
4762
4923
|
size: {
|
|
4763
4924
|
type: String,
|
|
4764
4925
|
default: "sm",
|
|
4765
|
-
options: Object.values(
|
|
4926
|
+
options: Object.values(fn)
|
|
4766
4927
|
},
|
|
4767
4928
|
fullWidth: {
|
|
4768
4929
|
type: Boolean,
|
|
@@ -4786,7 +4947,7 @@ const ve = {
|
|
|
4786
4947
|
}
|
|
4787
4948
|
}
|
|
4788
4949
|
}
|
|
4789
|
-
},
|
|
4950
|
+
}, za = Xn(
|
|
4790
4951
|
({
|
|
4791
4952
|
items: t,
|
|
4792
4953
|
value: e,
|
|
@@ -4801,55 +4962,55 @@ const ve = {
|
|
|
4801
4962
|
"aria-label": h,
|
|
4802
4963
|
"aria-labelledby": f
|
|
4803
4964
|
}, y) => {
|
|
4804
|
-
const b =
|
|
4805
|
-
() => t.findIndex((
|
|
4965
|
+
const b = gs(), S = n ?? `${ve.class}-${b.replace(/:/g, "")}`, v = e !== void 0, g = ce(
|
|
4966
|
+
() => t.findIndex(($) => !$.disabled),
|
|
4806
4967
|
[t]
|
|
4807
4968
|
), A = ce(() => v ? e : s !== void 0 ? s : g >= 0 ? t[g].value : void 0, [s, g, v, t, e]), [R, w] = q(
|
|
4808
4969
|
A
|
|
4809
|
-
), x = v ? e : R, p =
|
|
4810
|
-
|
|
4970
|
+
), x = v ? e : R, p = Xe([]);
|
|
4971
|
+
Z(() => {
|
|
4811
4972
|
p.current = p.current.slice(0, t.length);
|
|
4812
4973
|
}, [t.length]);
|
|
4813
4974
|
const C = ce(
|
|
4814
|
-
() => t.findIndex((
|
|
4975
|
+
() => t.findIndex(($) => $.value === x),
|
|
4815
4976
|
[x, t]
|
|
4816
4977
|
), O = Ae(
|
|
4817
|
-
(
|
|
4818
|
-
const
|
|
4819
|
-
let J = (
|
|
4820
|
-
for (; t[J].disabled &&
|
|
4821
|
-
J = (J + 1) %
|
|
4978
|
+
($) => {
|
|
4979
|
+
const z = t.length;
|
|
4980
|
+
let J = ($ % z + z) % z, ie = 0;
|
|
4981
|
+
for (; t[J].disabled && ie < z; )
|
|
4982
|
+
J = (J + 1) % z, ie += 1;
|
|
4822
4983
|
p.current[J].focus();
|
|
4823
4984
|
},
|
|
4824
4985
|
[t]
|
|
4825
|
-
),
|
|
4826
|
-
(
|
|
4827
|
-
i ||
|
|
4986
|
+
), H = Ae(
|
|
4987
|
+
($, z) => {
|
|
4988
|
+
i || $.disabled || $.value !== x && (v || w($.value), d == null || d($.value, z));
|
|
4828
4989
|
},
|
|
4829
4990
|
[x, i, v, d]
|
|
4830
|
-
),
|
|
4991
|
+
), B = ($, z) => {
|
|
4831
4992
|
const J = t.length - 1;
|
|
4832
|
-
switch (
|
|
4993
|
+
switch ($.key) {
|
|
4833
4994
|
case "ArrowRight":
|
|
4834
4995
|
case "ArrowDown":
|
|
4835
|
-
|
|
4996
|
+
$.preventDefault(), O(z + 1);
|
|
4836
4997
|
break;
|
|
4837
4998
|
case "ArrowLeft":
|
|
4838
4999
|
case "ArrowUp":
|
|
4839
|
-
|
|
5000
|
+
$.preventDefault(), O(z - 1);
|
|
4840
5001
|
break;
|
|
4841
5002
|
case "Home":
|
|
4842
|
-
|
|
5003
|
+
$.preventDefault(), O(0);
|
|
4843
5004
|
break;
|
|
4844
5005
|
case "End":
|
|
4845
|
-
|
|
5006
|
+
$.preventDefault(), O(J);
|
|
4846
5007
|
break;
|
|
4847
5008
|
case " ":
|
|
4848
5009
|
case "Enter":
|
|
4849
|
-
|
|
5010
|
+
$.preventDefault(), H(t[z], z);
|
|
4850
5011
|
break;
|
|
4851
5012
|
}
|
|
4852
|
-
},
|
|
5013
|
+
}, ae = [
|
|
4853
5014
|
ve.class,
|
|
4854
5015
|
`${ve.class}--size-${a}`,
|
|
4855
5016
|
r && `${ve.class}--full-width`,
|
|
@@ -4862,42 +5023,42 @@ const ve = {
|
|
|
4862
5023
|
"aria-disabled": i || void 0,
|
|
4863
5024
|
"aria-label": h,
|
|
4864
5025
|
"aria-labelledby": f,
|
|
4865
|
-
className:
|
|
5026
|
+
className: ae,
|
|
4866
5027
|
"data-testid": u,
|
|
4867
5028
|
ref: y,
|
|
4868
5029
|
role: "radiogroup",
|
|
4869
|
-
children: t.map((
|
|
4870
|
-
const J = x ===
|
|
5030
|
+
children: t.map(($, z) => {
|
|
5031
|
+
const J = x === $.value, ie = i || !!$.disabled, Se = [
|
|
4871
5032
|
`${ve.class}__item`,
|
|
4872
5033
|
J && `${ve.class}__item--active`,
|
|
4873
|
-
|
|
4874
|
-
].filter(Boolean).join(" "), ne =
|
|
5034
|
+
ie && `${ve.class}__item--disabled`
|
|
5035
|
+
].filter(Boolean).join(" "), ne = ie ? -1 : C === -1 ? z === g ? 0 : -1 : J ? 0 : -1;
|
|
4875
5036
|
return /* @__PURE__ */ F("label", { className: Se, children: [
|
|
4876
5037
|
/* @__PURE__ */ c(
|
|
4877
5038
|
"input",
|
|
4878
5039
|
{
|
|
4879
5040
|
checked: J,
|
|
4880
5041
|
className: `${ve.class}__item-input`,
|
|
4881
|
-
"data-testid":
|
|
4882
|
-
disabled:
|
|
5042
|
+
"data-testid": $.testId ?? `${u}-item-${$.value}`,
|
|
5043
|
+
disabled: ie,
|
|
4883
5044
|
name: S,
|
|
4884
|
-
onChange: () =>
|
|
4885
|
-
onKeyDown: (oe) =>
|
|
4886
|
-
ref: (oe) => p.current[
|
|
5045
|
+
onChange: () => H($, z),
|
|
5046
|
+
onKeyDown: (oe) => B(oe, z),
|
|
5047
|
+
ref: (oe) => p.current[z] = oe,
|
|
4887
5048
|
tabIndex: ne,
|
|
4888
5049
|
type: "radio",
|
|
4889
|
-
value:
|
|
5050
|
+
value: $.value
|
|
4890
5051
|
}
|
|
4891
5052
|
),
|
|
4892
|
-
|
|
4893
|
-
] },
|
|
5053
|
+
$.label
|
|
5054
|
+
] }, $.value);
|
|
4894
5055
|
})
|
|
4895
5056
|
}
|
|
4896
5057
|
);
|
|
4897
5058
|
}
|
|
4898
5059
|
);
|
|
4899
|
-
|
|
4900
|
-
var
|
|
5060
|
+
za.displayName = "DsSegmentControl";
|
|
5061
|
+
var gn = /* @__PURE__ */ ((t) => (t.Small = "sm", t.Medium = "md", t.Large = "lg", t))(gn || {}), mn = /* @__PURE__ */ ((t) => (t.Default = "", t.Error = "error", t.Success = "success", t))(mn || {}), vn = /* @__PURE__ */ ((t) => (t.Center = "center", t.End = "end", t.Initial = "initial", t))(vn || {}), yn = /* @__PURE__ */ ((t) => (t.Top = "top", t.Right = "right", t.Bottom = "bottom", t.Left = "left", t))(yn || {});
|
|
4901
5062
|
const se = {
|
|
4902
5063
|
name: "Select",
|
|
4903
5064
|
class: "ds-select",
|
|
@@ -4943,14 +5104,14 @@ const se = {
|
|
|
4943
5104
|
},
|
|
4944
5105
|
size: {
|
|
4945
5106
|
type: String,
|
|
4946
|
-
options: Object.values(
|
|
5107
|
+
options: Object.values(gn),
|
|
4947
5108
|
default: "md"
|
|
4948
5109
|
/* Medium */
|
|
4949
5110
|
},
|
|
4950
5111
|
status: {
|
|
4951
5112
|
type: String,
|
|
4952
5113
|
default: "",
|
|
4953
|
-
options: Object.values(
|
|
5114
|
+
options: Object.values(mn)
|
|
4954
5115
|
},
|
|
4955
5116
|
tooltip: {
|
|
4956
5117
|
type: String,
|
|
@@ -4959,12 +5120,12 @@ const se = {
|
|
|
4959
5120
|
tooltipPlacement: {
|
|
4960
5121
|
type: String,
|
|
4961
5122
|
default: "initial",
|
|
4962
|
-
options: Object.values(
|
|
5123
|
+
options: Object.values(vn)
|
|
4963
5124
|
},
|
|
4964
5125
|
tooltipPosition: {
|
|
4965
5126
|
type: String,
|
|
4966
5127
|
default: "top",
|
|
4967
|
-
options: Object.values(
|
|
5128
|
+
options: Object.values(yn)
|
|
4968
5129
|
},
|
|
4969
5130
|
feedback: {
|
|
4970
5131
|
type: String,
|
|
@@ -4972,7 +5133,7 @@ const se = {
|
|
|
4972
5133
|
},
|
|
4973
5134
|
options: []
|
|
4974
5135
|
}
|
|
4975
|
-
},
|
|
5136
|
+
}, _n = xe.forwardRef(
|
|
4976
5137
|
({
|
|
4977
5138
|
label: t,
|
|
4978
5139
|
className: e,
|
|
@@ -4994,26 +5155,26 @@ const se = {
|
|
|
4994
5155
|
feedback: A,
|
|
4995
5156
|
...R
|
|
4996
5157
|
}, w) => {
|
|
4997
|
-
const [x, p] = q(!1), C = (
|
|
4998
|
-
p(!1), h && h(
|
|
5158
|
+
const [x, p] = q(!1), C = (B) => {
|
|
5159
|
+
p(!1), h && h(B, B.target.value), f && f(B, B.target.value);
|
|
4999
5160
|
}, O = () => {
|
|
5000
|
-
const
|
|
5001
|
-
return
|
|
5002
|
-
},
|
|
5003
|
-
const
|
|
5004
|
-
return !n &&
|
|
5161
|
+
const B = [se.class, "select-placeholder"];
|
|
5162
|
+
return B.push(`${se.class}--${y}`), b && B.push(`${se.class}--${b}`), x && B.push(`${se.class}--active`), s && B.push(`${se.class}--disabled`), e && B.push(e), B.join(" ");
|
|
5163
|
+
}, H = ce(() => {
|
|
5164
|
+
const B = [`${se.class}__label`];
|
|
5165
|
+
return !n && B.push(`${se.class}__label--not-animated`), u && B.push(`${se.class}__label--has-value`), n && !u && !S && B.push(`${se.class}__label--hidden`), B.join(" ");
|
|
5005
5166
|
}, [u]);
|
|
5006
5167
|
return /* @__PURE__ */ F("div", { className: O(), "data-testid": "ds-select-component", children: [
|
|
5007
5168
|
t && /* @__PURE__ */ F(
|
|
5008
5169
|
"label",
|
|
5009
5170
|
{
|
|
5010
|
-
className:
|
|
5171
|
+
className: H,
|
|
5011
5172
|
"data-testid": "ds-label-id",
|
|
5012
5173
|
htmlFor: i,
|
|
5013
5174
|
children: [
|
|
5014
5175
|
t,
|
|
5015
5176
|
S && /* @__PURE__ */ c(
|
|
5016
|
-
|
|
5177
|
+
Qe,
|
|
5017
5178
|
{
|
|
5018
5179
|
className: `${se.class}__tooltip`,
|
|
5019
5180
|
placement: g,
|
|
@@ -5040,31 +5201,31 @@ const se = {
|
|
|
5040
5201
|
multiple: a,
|
|
5041
5202
|
name: i,
|
|
5042
5203
|
onBlur: () => p(!1),
|
|
5043
|
-
onChange: (
|
|
5204
|
+
onChange: (B) => C(B),
|
|
5044
5205
|
onFocus: () => p(!0),
|
|
5045
5206
|
ref: w,
|
|
5046
5207
|
value: u ?? "",
|
|
5047
5208
|
...R,
|
|
5048
5209
|
children: [
|
|
5049
5210
|
(d || n) && /* @__PURE__ */ c("option", { disabled: !0, value: "", children: d ?? t }),
|
|
5050
|
-
o == null ? void 0 : o.map((
|
|
5051
|
-
var
|
|
5052
|
-
return "options" in
|
|
5211
|
+
o == null ? void 0 : o.map((B, ae) => {
|
|
5212
|
+
var $;
|
|
5213
|
+
return "options" in B ? /* @__PURE__ */ c("optgroup", { label: B.label, children: ($ = B.options) == null ? void 0 : $.map((z, J) => /* @__PURE__ */ c(
|
|
5053
5214
|
"option",
|
|
5054
5215
|
{
|
|
5055
5216
|
className: `${se.class}__option-select`,
|
|
5056
|
-
value:
|
|
5057
|
-
children:
|
|
5217
|
+
value: z.value,
|
|
5218
|
+
children: z.label ?? z.value
|
|
5058
5219
|
},
|
|
5059
5220
|
J
|
|
5060
|
-
)) },
|
|
5221
|
+
)) }, ae) : /* @__PURE__ */ c(
|
|
5061
5222
|
"option",
|
|
5062
5223
|
{
|
|
5063
5224
|
className: `${se.class}__option-select`,
|
|
5064
|
-
value:
|
|
5065
|
-
children:
|
|
5225
|
+
value: B.value,
|
|
5226
|
+
children: B.label ?? B.value
|
|
5066
5227
|
},
|
|
5067
|
-
|
|
5228
|
+
ae
|
|
5068
5229
|
);
|
|
5069
5230
|
})
|
|
5070
5231
|
]
|
|
@@ -5083,7 +5244,7 @@ const se = {
|
|
|
5083
5244
|
] });
|
|
5084
5245
|
}
|
|
5085
5246
|
);
|
|
5086
|
-
|
|
5247
|
+
_n.propTypes = {
|
|
5087
5248
|
label: l.string.isRequired,
|
|
5088
5249
|
className: l.string,
|
|
5089
5250
|
disabled: l.bool,
|
|
@@ -5103,36 +5264,36 @@ un.propTypes = {
|
|
|
5103
5264
|
tooltipPlacement: l.string,
|
|
5104
5265
|
feedback: l.string
|
|
5105
5266
|
};
|
|
5106
|
-
|
|
5107
|
-
var
|
|
5108
|
-
const
|
|
5267
|
+
_n.displayName = "DsSelect";
|
|
5268
|
+
var kn = /* @__PURE__ */ ((t) => (t.Large = "large", t.Small = "small", t))(kn || {});
|
|
5269
|
+
const $t = {
|
|
5109
5270
|
name: "Subtitle",
|
|
5110
5271
|
class: "ds-subtitle",
|
|
5111
5272
|
props: {
|
|
5112
5273
|
type: {
|
|
5113
5274
|
type: String,
|
|
5114
5275
|
default: "large",
|
|
5115
|
-
options: Object.values(
|
|
5276
|
+
options: Object.values(kn)
|
|
5116
5277
|
}
|
|
5117
5278
|
}
|
|
5118
|
-
},
|
|
5279
|
+
}, Ha = ({
|
|
5119
5280
|
children: t,
|
|
5120
5281
|
className: e,
|
|
5121
5282
|
testId: s = "ds-subtitle-test",
|
|
5122
5283
|
type: n
|
|
5123
5284
|
}) => {
|
|
5124
|
-
const a =
|
|
5285
|
+
const a = $t.props.type.options.find((r) => r === n) && `${$t.class}--${n}`;
|
|
5125
5286
|
return /* @__PURE__ */ c(
|
|
5126
5287
|
"p",
|
|
5127
5288
|
{
|
|
5128
|
-
className: [
|
|
5289
|
+
className: [$t.class, a, e].filter((r) => r).join(" "),
|
|
5129
5290
|
"data-testid": s,
|
|
5130
5291
|
children: t
|
|
5131
5292
|
}
|
|
5132
5293
|
);
|
|
5133
5294
|
};
|
|
5134
|
-
|
|
5135
|
-
var
|
|
5295
|
+
Ha.displayName = "DsSubtitle";
|
|
5296
|
+
var bn = /* @__PURE__ */ ((t) => (t.Small = "small", t.Medium = "medium", t.Large = "large", t))(bn || {}), Sn = /* @__PURE__ */ ((t) => (t.Text = "text", t))(Sn || {}), En = /* @__PURE__ */ ((t) => (t.None = "", t.Error = "error", t.Success = "success", t))(En || {}), wn = /* @__PURE__ */ ((t) => (t.None = "none", t.Both = "both", t.Horizontal = "horizontal", t.Vertical = "vertical", t.Block = "block", t.Inline = "inline", t))(wn || {});
|
|
5136
5297
|
const ue = {
|
|
5137
5298
|
name: "TextArea",
|
|
5138
5299
|
class: "ds-textarea",
|
|
@@ -5148,7 +5309,7 @@ const ue = {
|
|
|
5148
5309
|
type: {
|
|
5149
5310
|
type: String,
|
|
5150
5311
|
default: "text",
|
|
5151
|
-
options: Object.values(
|
|
5312
|
+
options: Object.values(Sn)
|
|
5152
5313
|
},
|
|
5153
5314
|
animated: {
|
|
5154
5315
|
type: Boolean,
|
|
@@ -5161,7 +5322,7 @@ const ue = {
|
|
|
5161
5322
|
size: {
|
|
5162
5323
|
type: String,
|
|
5163
5324
|
default: "medium",
|
|
5164
|
-
options: Object.values(
|
|
5325
|
+
options: Object.values(bn)
|
|
5165
5326
|
},
|
|
5166
5327
|
label: {
|
|
5167
5328
|
type: String,
|
|
@@ -5190,7 +5351,7 @@ const ue = {
|
|
|
5190
5351
|
status: {
|
|
5191
5352
|
type: String,
|
|
5192
5353
|
default: "",
|
|
5193
|
-
options: Object.values(
|
|
5354
|
+
options: Object.values(En)
|
|
5194
5355
|
},
|
|
5195
5356
|
feedback: {
|
|
5196
5357
|
type: String,
|
|
@@ -5211,7 +5372,7 @@ const ue = {
|
|
|
5211
5372
|
resize: {
|
|
5212
5373
|
type: String,
|
|
5213
5374
|
default: "none",
|
|
5214
|
-
options: Object.values(
|
|
5375
|
+
options: Object.values(wn)
|
|
5215
5376
|
},
|
|
5216
5377
|
onChangeHandler: {
|
|
5217
5378
|
type: Function,
|
|
@@ -5219,7 +5380,7 @@ const ue = {
|
|
|
5219
5380
|
}
|
|
5220
5381
|
}
|
|
5221
5382
|
}
|
|
5222
|
-
},
|
|
5383
|
+
}, An = xe.forwardRef(
|
|
5223
5384
|
({
|
|
5224
5385
|
name: t,
|
|
5225
5386
|
testId: e = ue.props.testId.default,
|
|
@@ -5245,10 +5406,10 @@ const ue = {
|
|
|
5245
5406
|
rows: p = ue.props.rows.default,
|
|
5246
5407
|
cols: C,
|
|
5247
5408
|
description: O,
|
|
5248
|
-
style:
|
|
5249
|
-
},
|
|
5250
|
-
const [
|
|
5251
|
-
|
|
5409
|
+
style: H
|
|
5410
|
+
}, B) => {
|
|
5411
|
+
const [ae, $] = q(!1), [z, J] = q(0), [ie, Se] = q(crypto.randomUUID());
|
|
5412
|
+
Z(() => {
|
|
5252
5413
|
i == null && Se(crypto.randomUUID());
|
|
5253
5414
|
}, [i]);
|
|
5254
5415
|
const ne = (D) => {
|
|
@@ -5256,23 +5417,23 @@ const ue = {
|
|
|
5256
5417
|
}, oe = (D) => {
|
|
5257
5418
|
w && w(D);
|
|
5258
5419
|
}, Oe = (D) => {
|
|
5259
|
-
|
|
5420
|
+
$(!1), R && R(D);
|
|
5260
5421
|
}, De = (D) => {
|
|
5261
|
-
|
|
5422
|
+
$(!0), x && x(D);
|
|
5262
5423
|
}, m = () => {
|
|
5263
5424
|
const D = [`${ue.class}`];
|
|
5264
5425
|
return n && D.push(`${ue.class}--${n}`), s && D.push(`${ue.class}--animated`), d && D.push(`${ue.class}--with-icon`), f && D.push(`${ue.class}--${f}`), v && D.push(v), D.join(" ");
|
|
5265
5426
|
}, E = ce(() => {
|
|
5266
5427
|
const D = [`${ue.class}__label`];
|
|
5267
|
-
return (
|
|
5268
|
-
}, [i,
|
|
5428
|
+
return (ae || i) && D.push(`${ue.class}__label--active`), D.join(" ");
|
|
5429
|
+
}, [i, ae]), L = () => !s && r ? r : "", M = () => f && f === "error" ? "info" : "check_circle", N = {
|
|
5269
5430
|
resize: g,
|
|
5270
|
-
...
|
|
5431
|
+
...H ?? {}
|
|
5271
5432
|
};
|
|
5272
5433
|
return /* @__PURE__ */ F("div", { className: m(), children: [
|
|
5273
5434
|
O && /* @__PURE__ */ c("span", { className: "ds-textarea__description", children: O }),
|
|
5274
5435
|
y && /* @__PURE__ */ F("div", { className: "ds-textarea__feedback", children: [
|
|
5275
|
-
/* @__PURE__ */ c(te, { image:
|
|
5436
|
+
/* @__PURE__ */ c(te, { image: M() }),
|
|
5276
5437
|
y
|
|
5277
5438
|
] }),
|
|
5278
5439
|
/* @__PURE__ */ c(
|
|
@@ -5291,8 +5452,8 @@ const ue = {
|
|
|
5291
5452
|
onChange: ne,
|
|
5292
5453
|
onFocus: De,
|
|
5293
5454
|
onKeyDown: oe,
|
|
5294
|
-
placeholder:
|
|
5295
|
-
ref:
|
|
5455
|
+
placeholder: L(),
|
|
5456
|
+
ref: B,
|
|
5296
5457
|
required: S,
|
|
5297
5458
|
rows: p,
|
|
5298
5459
|
style: N
|
|
@@ -5300,12 +5461,12 @@ const ue = {
|
|
|
5300
5461
|
),
|
|
5301
5462
|
/* @__PURE__ */ c("label", { className: E, htmlFor: t, children: a }),
|
|
5302
5463
|
u && /* @__PURE__ */ F("span", { className: "ds-textarea__count", children: [
|
|
5303
|
-
|
|
5464
|
+
z,
|
|
5304
5465
|
"/",
|
|
5305
5466
|
u
|
|
5306
5467
|
] }),
|
|
5307
5468
|
d && /* @__PURE__ */ c(
|
|
5308
|
-
|
|
5469
|
+
Qe,
|
|
5309
5470
|
{
|
|
5310
5471
|
className: "ds-textarea__tooltip",
|
|
5311
5472
|
placement: "end",
|
|
@@ -5313,10 +5474,10 @@ const ue = {
|
|
|
5313
5474
|
children: /* @__PURE__ */ c(te, { className: "ds-textarea__icon", image: h })
|
|
5314
5475
|
}
|
|
5315
5476
|
)
|
|
5316
|
-
] },
|
|
5477
|
+
] }, ie);
|
|
5317
5478
|
}
|
|
5318
5479
|
);
|
|
5319
|
-
|
|
5480
|
+
An.propTypes = {
|
|
5320
5481
|
name: l.string,
|
|
5321
5482
|
testId: l.string,
|
|
5322
5483
|
animated: l.bool,
|
|
@@ -5342,8 +5503,8 @@ gn.propTypes = {
|
|
|
5342
5503
|
description: l.string,
|
|
5343
5504
|
style: l.object
|
|
5344
5505
|
};
|
|
5345
|
-
|
|
5346
|
-
const
|
|
5506
|
+
An.displayName = "DsTextArea";
|
|
5507
|
+
const ct = {
|
|
5347
5508
|
name: "Container",
|
|
5348
5509
|
class: "ds-container",
|
|
5349
5510
|
props: {
|
|
@@ -5356,14 +5517,14 @@ const ut = {
|
|
|
5356
5517
|
default: "ds-container-test"
|
|
5357
5518
|
}
|
|
5358
5519
|
}
|
|
5359
|
-
},
|
|
5520
|
+
}, Gt = ({
|
|
5360
5521
|
children: t,
|
|
5361
|
-
fluid: e =
|
|
5522
|
+
fluid: e = ct.props.fluid.default,
|
|
5362
5523
|
className: s,
|
|
5363
5524
|
style: n,
|
|
5364
|
-
testId: a =
|
|
5525
|
+
testId: a = ct.props.testId.default
|
|
5365
5526
|
}) => {
|
|
5366
|
-
const r = e ? `${
|
|
5527
|
+
const r = e ? `${ct.class}--fluid` : ct.class;
|
|
5367
5528
|
return /* @__PURE__ */ c(
|
|
5368
5529
|
"div",
|
|
5369
5530
|
{
|
|
@@ -5374,15 +5535,15 @@ const ut = {
|
|
|
5374
5535
|
}
|
|
5375
5536
|
);
|
|
5376
5537
|
};
|
|
5377
|
-
|
|
5538
|
+
Gt.propTypes = {
|
|
5378
5539
|
children: l.node,
|
|
5379
5540
|
fluid: l.bool,
|
|
5380
5541
|
className: l.string,
|
|
5381
5542
|
style: l.object,
|
|
5382
5543
|
testId: l.string
|
|
5383
5544
|
};
|
|
5384
|
-
|
|
5385
|
-
var
|
|
5545
|
+
Gt.displayName = "DsContainer";
|
|
5546
|
+
var xn = /* @__PURE__ */ ((t) => (t.Quark = "quark", t.Nano = "nano", t.ExtraSmall = "xs", t.Small = "sm", t.Medium = "md", t.Large = "lg", t))(xn || {}), zt = /* @__PURE__ */ ((t) => (t.Start = "start", t.End = "end", t.Center = "center", t.Stretch = "stretch", t.SpaceAround = "space-around", t.SpaceBetween = "space-between", t.SpaceEvenly = "space-evenly", t))(zt || {});
|
|
5386
5547
|
const le = {
|
|
5387
5548
|
name: "Grid-Layout",
|
|
5388
5549
|
class: "ds-grid-layout",
|
|
@@ -5395,7 +5556,7 @@ const le = {
|
|
|
5395
5556
|
gap: {
|
|
5396
5557
|
type: String,
|
|
5397
5558
|
default: "sm",
|
|
5398
|
-
options: Object.values(
|
|
5559
|
+
options: Object.values(xn)
|
|
5399
5560
|
},
|
|
5400
5561
|
vGap: {
|
|
5401
5562
|
type: Boolean,
|
|
@@ -5416,34 +5577,34 @@ const le = {
|
|
|
5416
5577
|
horizontalAlign: {
|
|
5417
5578
|
type: String,
|
|
5418
5579
|
default: "start",
|
|
5419
|
-
options: Object.values(
|
|
5580
|
+
options: Object.values(zt)
|
|
5420
5581
|
},
|
|
5421
5582
|
verticalAlign: {
|
|
5422
5583
|
type: String,
|
|
5423
5584
|
default: "start",
|
|
5424
|
-
options: Object.values(
|
|
5585
|
+
options: Object.values(zt)
|
|
5425
5586
|
}
|
|
5426
5587
|
}
|
|
5427
5588
|
};
|
|
5428
|
-
function
|
|
5589
|
+
function ps() {
|
|
5429
5590
|
const { innerWidth: t, innerHeight: e } = window;
|
|
5430
5591
|
return {
|
|
5431
5592
|
width: t,
|
|
5432
5593
|
height: e
|
|
5433
5594
|
};
|
|
5434
5595
|
}
|
|
5435
|
-
function
|
|
5596
|
+
function Wa() {
|
|
5436
5597
|
const [t, e] = q(
|
|
5437
|
-
|
|
5598
|
+
ps()
|
|
5438
5599
|
);
|
|
5439
|
-
return
|
|
5600
|
+
return Z(() => {
|
|
5440
5601
|
function s() {
|
|
5441
|
-
e(
|
|
5602
|
+
e(ps());
|
|
5442
5603
|
}
|
|
5443
5604
|
return window.addEventListener("resize", s), () => window.removeEventListener("resize", s);
|
|
5444
5605
|
}, []), t;
|
|
5445
5606
|
}
|
|
5446
|
-
const
|
|
5607
|
+
const Cn = ({
|
|
5447
5608
|
children: t,
|
|
5448
5609
|
rows: e = le.props.rows.default,
|
|
5449
5610
|
gap: s = le.props.gap.default,
|
|
@@ -5458,8 +5619,8 @@ const vn = ({
|
|
|
5458
5619
|
(w) => w === r
|
|
5459
5620
|
) ? `${le.class}--h-${r}` : null, y = i && le.props.verticalAlign.options.find(
|
|
5460
5621
|
(w) => w === i
|
|
5461
|
-
) ? `${le.class}--v-${i}` : null, { width: b } =
|
|
5462
|
-
|
|
5622
|
+
) ? `${le.class}--v-${i}` : null, { width: b } = Wa(), [S, v] = q("auto");
|
|
5623
|
+
Z(() => {
|
|
5463
5624
|
b <= 768 ? v("6") : v("12");
|
|
5464
5625
|
}, [b]);
|
|
5465
5626
|
const g = (w) => /^[+-]?\d+$/.test(w), A = () => e.split(",").map((x) => (x = x.trim(), x === "0" || x === "*" || x === "auto" ? "auto" : g(x) ? x + "fr" : x)).join(" "), R = () => `repeat(${S}, minmax(0, 1fr))`;
|
|
@@ -5483,7 +5644,7 @@ const vn = ({
|
|
|
5483
5644
|
}
|
|
5484
5645
|
);
|
|
5485
5646
|
};
|
|
5486
|
-
|
|
5647
|
+
Cn.propTypes = {
|
|
5487
5648
|
children: l.oneOfType([
|
|
5488
5649
|
l.arrayOf(l.node),
|
|
5489
5650
|
l.node,
|
|
@@ -5500,12 +5661,12 @@ vn.propTypes = {
|
|
|
5500
5661
|
),
|
|
5501
5662
|
verticalAlign: l.oneOf(le.props.verticalAlign.options)
|
|
5502
5663
|
};
|
|
5503
|
-
|
|
5504
|
-
const
|
|
5505
|
-
const { row: s, col: n, mobileRow: a, mobileCol: r } = e, [i, o] = q(
|
|
5506
|
-
|
|
5664
|
+
Cn.displayName = "DsGridLayout";
|
|
5665
|
+
const hs = () => typeof window < "u" && window.innerWidth ? window.innerWidth : 0, Xa = ({ children: t, grid: e }) => {
|
|
5666
|
+
const { row: s, col: n, mobileRow: a, mobileCol: r } = e, [i, o] = q(hs());
|
|
5667
|
+
Z(() => {
|
|
5507
5668
|
const d = () => {
|
|
5508
|
-
o(
|
|
5669
|
+
o(hs());
|
|
5509
5670
|
};
|
|
5510
5671
|
if (typeof window < "u")
|
|
5511
5672
|
return window.addEventListener("resize", d), () => window.removeEventListener("resize", d);
|
|
@@ -5519,8 +5680,8 @@ const ls = () => typeof window < "u" && window.innerWidth ? window.innerWidth :
|
|
|
5519
5680
|
}, [i, s, n, a, r]);
|
|
5520
5681
|
return /* @__PURE__ */ c("div", { style: u, children: t });
|
|
5521
5682
|
};
|
|
5522
|
-
|
|
5523
|
-
const
|
|
5683
|
+
Xa.displayName = "DsGridElement";
|
|
5684
|
+
const ur = {
|
|
5524
5685
|
name: "Grid-Element",
|
|
5525
5686
|
class: "ds-grid-element",
|
|
5526
5687
|
props: {
|
|
@@ -5589,7 +5750,7 @@ const Te = {
|
|
|
5589
5750
|
);
|
|
5590
5751
|
};
|
|
5591
5752
|
nt.displayName = "DsWrapper";
|
|
5592
|
-
const
|
|
5753
|
+
const Bt = {
|
|
5593
5754
|
name: "Accordion",
|
|
5594
5755
|
class: "ds-accordion",
|
|
5595
5756
|
props: {
|
|
@@ -5606,7 +5767,7 @@ const It = {
|
|
|
5606
5767
|
default: 0
|
|
5607
5768
|
}
|
|
5608
5769
|
}
|
|
5609
|
-
},
|
|
5770
|
+
}, Ye = {
|
|
5610
5771
|
name: "AccordionItem",
|
|
5611
5772
|
class: "ds-accordion-item",
|
|
5612
5773
|
props: {
|
|
@@ -5627,23 +5788,23 @@ const It = {
|
|
|
5627
5788
|
default: !1
|
|
5628
5789
|
}
|
|
5629
5790
|
}
|
|
5630
|
-
},
|
|
5791
|
+
}, Zt = ({
|
|
5631
5792
|
title: t,
|
|
5632
5793
|
content: e,
|
|
5633
5794
|
onToggle: s,
|
|
5634
|
-
active: n =
|
|
5635
|
-
disabled: a =
|
|
5795
|
+
active: n = Ye.props.active.default,
|
|
5796
|
+
disabled: a = Ye.props.disabled.default
|
|
5636
5797
|
}) => {
|
|
5637
|
-
const r = n && `${
|
|
5798
|
+
const r = n && `${Ye.class}--active`;
|
|
5638
5799
|
return /* @__PURE__ */ F(
|
|
5639
5800
|
"li",
|
|
5640
5801
|
{
|
|
5641
|
-
className: [
|
|
5802
|
+
className: [Ye.class, r].filter((i) => i).join(" "),
|
|
5642
5803
|
children: [
|
|
5643
5804
|
/* @__PURE__ */ F(
|
|
5644
5805
|
"button",
|
|
5645
5806
|
{
|
|
5646
|
-
className: `${
|
|
5807
|
+
className: `${Ye.class}__button`,
|
|
5647
5808
|
disabled: a,
|
|
5648
5809
|
onClick: s,
|
|
5649
5810
|
children: [
|
|
@@ -5651,7 +5812,7 @@ const It = {
|
|
|
5651
5812
|
/* @__PURE__ */ c(
|
|
5652
5813
|
te,
|
|
5653
5814
|
{
|
|
5654
|
-
className: `${
|
|
5815
|
+
className: `${Ye.class}__icon`,
|
|
5655
5816
|
color: "neutral-90",
|
|
5656
5817
|
image: "expand_more",
|
|
5657
5818
|
size: "xl"
|
|
@@ -5665,24 +5826,24 @@ const It = {
|
|
|
5665
5826
|
}
|
|
5666
5827
|
);
|
|
5667
5828
|
};
|
|
5668
|
-
|
|
5829
|
+
Zt.propTypes = {
|
|
5669
5830
|
active: l.bool,
|
|
5670
5831
|
title: l.oneOfType([l.element, l.string]),
|
|
5671
5832
|
content: l.oneOfType([l.element, l.string]),
|
|
5672
5833
|
disabled: l.bool
|
|
5673
5834
|
};
|
|
5674
|
-
|
|
5675
|
-
const
|
|
5676
|
-
items: t =
|
|
5677
|
-
activeItem: e =
|
|
5835
|
+
Zt.displayName = "DsAccordionItem";
|
|
5836
|
+
const Dn = ({
|
|
5837
|
+
items: t = Bt.props.items.default,
|
|
5838
|
+
activeItem: e = Bt.props.activeItem.default,
|
|
5678
5839
|
onClick: s
|
|
5679
5840
|
}) => {
|
|
5680
5841
|
const [n, a] = q(-1);
|
|
5681
|
-
|
|
5842
|
+
Z(() => {
|
|
5682
5843
|
t.map((i, o) => {
|
|
5683
5844
|
i.active && a(o);
|
|
5684
5845
|
});
|
|
5685
|
-
}, [t]),
|
|
5846
|
+
}, [t]), Z(() => {
|
|
5686
5847
|
e != null && a(e);
|
|
5687
5848
|
}, [e]);
|
|
5688
5849
|
const r = (i) => {
|
|
@@ -5690,8 +5851,8 @@ const yn = ({
|
|
|
5690
5851
|
return s && s(-1), a(-1);
|
|
5691
5852
|
a(i), s && s(i);
|
|
5692
5853
|
};
|
|
5693
|
-
return /* @__PURE__ */ c("ul", { className:
|
|
5694
|
-
|
|
5854
|
+
return /* @__PURE__ */ c("ul", { className: Bt.class, children: t.map((i, o) => /* @__PURE__ */ c(
|
|
5855
|
+
Zt,
|
|
5695
5856
|
{
|
|
5696
5857
|
active: n === o,
|
|
5697
5858
|
content: i.content,
|
|
@@ -5704,19 +5865,19 @@ const yn = ({
|
|
|
5704
5865
|
o
|
|
5705
5866
|
)) });
|
|
5706
5867
|
};
|
|
5707
|
-
|
|
5868
|
+
Dn.propTypes = {
|
|
5708
5869
|
items: l.array,
|
|
5709
5870
|
activeItem: l.number
|
|
5710
5871
|
};
|
|
5711
|
-
|
|
5712
|
-
const
|
|
5872
|
+
Dn.displayName = "DsAccordion";
|
|
5873
|
+
const Ya = ({
|
|
5713
5874
|
title: t,
|
|
5714
5875
|
activeTags: e,
|
|
5715
5876
|
handleTagClose: s
|
|
5716
|
-
}) => /* @__PURE__ */ c("div", { className: "active-tags", children: e.length > 0 && /* @__PURE__ */ F(
|
|
5877
|
+
}) => /* @__PURE__ */ c("div", { className: "active-tags", children: e.length > 0 && /* @__PURE__ */ F(kt, { children: [
|
|
5717
5878
|
/* @__PURE__ */ c(je, { className: "active-tags__title", children: t }),
|
|
5718
5879
|
/* @__PURE__ */ c("div", { className: "active-tags__list", "data-testid": "ds-list", children: e.map((n, a) => /* @__PURE__ */ c(
|
|
5719
|
-
|
|
5880
|
+
Qe,
|
|
5720
5881
|
{
|
|
5721
5882
|
text: `Filtro ${n.text} aplicado`,
|
|
5722
5883
|
children: /* @__PURE__ */ F(
|
|
@@ -5754,8 +5915,8 @@ const Ea = ({
|
|
|
5754
5915
|
`ds-tooltip-key-${n.id}-${n.text}`
|
|
5755
5916
|
)) })
|
|
5756
5917
|
] }) });
|
|
5757
|
-
|
|
5758
|
-
const
|
|
5918
|
+
Ya.displayName = "DsActiveTags";
|
|
5919
|
+
const cr = {
|
|
5759
5920
|
name: "ActiveTags",
|
|
5760
5921
|
class: "ds-active-tags",
|
|
5761
5922
|
props: {
|
|
@@ -5773,11 +5934,11 @@ const La = {
|
|
|
5773
5934
|
}
|
|
5774
5935
|
}
|
|
5775
5936
|
}
|
|
5776
|
-
},
|
|
5937
|
+
}, Ze = {
|
|
5777
5938
|
name: "Carousel",
|
|
5778
5939
|
class: "ds-carousel",
|
|
5779
5940
|
props: {}
|
|
5780
|
-
},
|
|
5941
|
+
}, Ka = ({
|
|
5781
5942
|
slides: t,
|
|
5782
5943
|
interval: e = 3e3,
|
|
5783
5944
|
imageHeight: s = 100,
|
|
@@ -5785,8 +5946,8 @@ const La = {
|
|
|
5785
5946
|
imageMaxHeight: a,
|
|
5786
5947
|
imageMaxWidth: r
|
|
5787
5948
|
}) => {
|
|
5788
|
-
const [i, o] = q(0), [u, d] = q(!1), h =
|
|
5789
|
-
|
|
5949
|
+
const [i, o] = q(0), [u, d] = q(!1), h = Xe(null);
|
|
5950
|
+
Z(() => (u || (h.current = setInterval(() => {
|
|
5790
5951
|
o((b) => b === t.length - 1 ? 0 : b + 1);
|
|
5791
5952
|
}, e)), () => {
|
|
5792
5953
|
h.current && clearInterval(h.current);
|
|
@@ -5795,7 +5956,7 @@ const La = {
|
|
|
5795
5956
|
return /* @__PURE__ */ F(
|
|
5796
5957
|
"div",
|
|
5797
5958
|
{
|
|
5798
|
-
className: `${
|
|
5959
|
+
className: `${Ze.class}`,
|
|
5799
5960
|
"data-testid": "ds-carousel",
|
|
5800
5961
|
onMouseEnter: f,
|
|
5801
5962
|
onMouseLeave: y,
|
|
@@ -5803,7 +5964,7 @@ const La = {
|
|
|
5803
5964
|
/* @__PURE__ */ c(
|
|
5804
5965
|
"div",
|
|
5805
5966
|
{
|
|
5806
|
-
className: `${
|
|
5967
|
+
className: `${Ze.class}__image-wrapper`,
|
|
5807
5968
|
style: {
|
|
5808
5969
|
height: s,
|
|
5809
5970
|
width: n,
|
|
@@ -5814,7 +5975,7 @@ const La = {
|
|
|
5814
5975
|
"img",
|
|
5815
5976
|
{
|
|
5816
5977
|
alt: b.title,
|
|
5817
|
-
className: `${
|
|
5978
|
+
className: `${Ze.class}__image ${S === i ? "active" : "inactive"}`,
|
|
5818
5979
|
height: s,
|
|
5819
5980
|
src: b.image,
|
|
5820
5981
|
style: {
|
|
@@ -5828,10 +5989,10 @@ const La = {
|
|
|
5828
5989
|
}
|
|
5829
5990
|
),
|
|
5830
5991
|
/* @__PURE__ */ c(Ce, { vertical: "xxs" }),
|
|
5831
|
-
/* @__PURE__ */ c("div", { children: /* @__PURE__ */ c(
|
|
5992
|
+
/* @__PURE__ */ c("div", { children: /* @__PURE__ */ c(Yt, { className: "color__primary", type: "heading-4", children: t[i].title }) }),
|
|
5832
5993
|
/* @__PURE__ */ c("div", { children: /* @__PURE__ */ c(je, { type: "large", children: t[i].description }) }),
|
|
5833
5994
|
/* @__PURE__ */ c(Ce, { vertical: "xxs" }),
|
|
5834
|
-
/* @__PURE__ */ c("div", { className: `${
|
|
5995
|
+
/* @__PURE__ */ c("div", { className: `${Ze.class}__dots`, children: /* @__PURE__ */ c("div", { className: `${Ze.class}__dots-wrapper`, children: t.map((b, S) => /* @__PURE__ */ c(
|
|
5835
5996
|
"button",
|
|
5836
5997
|
{
|
|
5837
5998
|
"aria-label": `Go to slide ${S + 1}`,
|
|
@@ -5844,7 +6005,7 @@ const La = {
|
|
|
5844
6005
|
}
|
|
5845
6006
|
);
|
|
5846
6007
|
};
|
|
5847
|
-
|
|
6008
|
+
Ka.propTypes = {
|
|
5848
6009
|
slides: l.arrayOf(
|
|
5849
6010
|
l.shape({
|
|
5850
6011
|
title: l.string.isRequired,
|
|
@@ -5859,8 +6020,8 @@ wa.propTypes = {
|
|
|
5859
6020
|
imageMaxHeight: l.oneOfType([l.number, l.string]),
|
|
5860
6021
|
imageMaxWidth: l.oneOfType([l.number, l.string])
|
|
5861
6022
|
};
|
|
5862
|
-
var
|
|
5863
|
-
const
|
|
6023
|
+
var Tn = /* @__PURE__ */ ((t) => (t.Small = "small", t.Medium = "medium", t.Large = "large", t))(Tn || {});
|
|
6024
|
+
const Y = {
|
|
5864
6025
|
name: "EditableSelect",
|
|
5865
6026
|
class: "ds-editable-select",
|
|
5866
6027
|
props: {
|
|
@@ -5899,7 +6060,7 @@ const X = {
|
|
|
5899
6060
|
size: {
|
|
5900
6061
|
type: String,
|
|
5901
6062
|
default: "medium",
|
|
5902
|
-
options: Object.values(
|
|
6063
|
+
options: Object.values(Tn)
|
|
5903
6064
|
},
|
|
5904
6065
|
status: {
|
|
5905
6066
|
type: String,
|
|
@@ -5946,102 +6107,102 @@ const X = {
|
|
|
5946
6107
|
}
|
|
5947
6108
|
}
|
|
5948
6109
|
}
|
|
5949
|
-
},
|
|
6110
|
+
}, Qa = (t, e) => {
|
|
5950
6111
|
if (!e) return t;
|
|
5951
6112
|
const s = e.toLowerCase();
|
|
5952
6113
|
return t.filter((n) => n.label.toLowerCase().includes(s));
|
|
5953
|
-
},
|
|
5954
|
-
label: t =
|
|
5955
|
-
name: e =
|
|
5956
|
-
testId: s =
|
|
5957
|
-
value: n =
|
|
5958
|
-
options: a =
|
|
5959
|
-
size: r =
|
|
5960
|
-
onChangeHandler: i =
|
|
5961
|
-
onSelectHandler: o =
|
|
5962
|
-
onClearHandler: u =
|
|
5963
|
-
icon: d =
|
|
5964
|
-
noOptionsMessage: h =
|
|
5965
|
-
disabled: f =
|
|
5966
|
-
status: y =
|
|
5967
|
-
onBlurHandler: b =
|
|
5968
|
-
onFocusHandler: S =
|
|
5969
|
-
animated: v =
|
|
5970
|
-
inputAutoFocus: g =
|
|
5971
|
-
placeholder: A =
|
|
6114
|
+
}, fs = (t) => t, Ga = ({
|
|
6115
|
+
label: t = Y.props.label.default,
|
|
6116
|
+
name: e = Y.props.name.default,
|
|
6117
|
+
testId: s = Y.props.testId.default,
|
|
6118
|
+
value: n = Y.props.value.default,
|
|
6119
|
+
options: a = Y.props.options.default,
|
|
6120
|
+
size: r = Y.props.size.default,
|
|
6121
|
+
onChangeHandler: i = Y.props.onChangeHandler.default,
|
|
6122
|
+
onSelectHandler: o = Y.props.onSelectHandler.default,
|
|
6123
|
+
onClearHandler: u = Y.props.onClearHandler.default,
|
|
6124
|
+
icon: d = Y.props.icon.default,
|
|
6125
|
+
noOptionsMessage: h = Y.props.noOptionsMessage.default,
|
|
6126
|
+
disabled: f = Y.props.disabled.default,
|
|
6127
|
+
status: y = Y.props.status.default,
|
|
6128
|
+
onBlurHandler: b = Y.props.onBlurHandler.default,
|
|
6129
|
+
onFocusHandler: S = Y.props.onFocusHandler.default,
|
|
6130
|
+
animated: v = Y.props.animated.default,
|
|
6131
|
+
inputAutoFocus: g = Y.props.inputAutoFocus.default,
|
|
6132
|
+
placeholder: A = Y.props.placeholder.default,
|
|
5972
6133
|
loading: R,
|
|
5973
6134
|
showOptionsOnFocus: w = !1,
|
|
5974
6135
|
inputType: x,
|
|
5975
6136
|
inputMin: p,
|
|
5976
6137
|
inputMax: C,
|
|
5977
6138
|
inputTooltip: O,
|
|
5978
|
-
inputTooltipPosition:
|
|
5979
|
-
inputTooltipPlacement:
|
|
5980
|
-
inputFeedback:
|
|
5981
|
-
inputHasFeedback:
|
|
5982
|
-
inputNoMargin:
|
|
6139
|
+
inputTooltipPosition: H,
|
|
6140
|
+
inputTooltipPlacement: B,
|
|
6141
|
+
inputFeedback: ae,
|
|
6142
|
+
inputHasFeedback: $,
|
|
6143
|
+
inputNoMargin: z,
|
|
5983
6144
|
inputMask: J,
|
|
5984
|
-
inputOnKeyDownHandler:
|
|
6145
|
+
inputOnKeyDownHandler: ie
|
|
5985
6146
|
}) => {
|
|
5986
|
-
const [Se, ne] = q(!1), [oe, Oe] = q(n), [De, m] = q(!0), E =
|
|
6147
|
+
const [Se, ne] = q(!1), [oe, Oe] = q(n), [De, m] = q(!0), E = Xe(null), L = (_) => {
|
|
5987
6148
|
if (w) {
|
|
5988
|
-
const
|
|
5989
|
-
|
|
6149
|
+
const re = n.trim().toLowerCase(), $e = _.currentTarget.value.trim().toLowerCase(), Ge = a.map((Hn) => Hn.label.trim().toLowerCase()), Un = !!re && Ge.includes(re), zn = !!$e && Ge.includes($e);
|
|
6150
|
+
Un && !zn && u();
|
|
5990
6151
|
}
|
|
5991
6152
|
i(_), m(!1);
|
|
5992
|
-
const
|
|
5993
|
-
(w || R == null &&
|
|
5994
|
-
},
|
|
6153
|
+
const X = _.currentTarget.value.length;
|
|
6154
|
+
(w || R == null && X > 0 || !R && X > 2) && ne(!0);
|
|
6155
|
+
}, M = () => {
|
|
5995
6156
|
S(), m(!0), w && ne(!0);
|
|
5996
6157
|
}, N = () => {
|
|
5997
|
-
var k,
|
|
6158
|
+
var k, re;
|
|
5998
6159
|
const _ = (k = E.current) == null ? void 0 : k.querySelector("input");
|
|
5999
6160
|
if (!_) return;
|
|
6000
|
-
const
|
|
6161
|
+
const X = (re = Object.getOwnPropertyDescriptor(
|
|
6001
6162
|
window.HTMLInputElement.prototype,
|
|
6002
6163
|
"value"
|
|
6003
|
-
)) == null ? void 0 :
|
|
6004
|
-
|
|
6164
|
+
)) == null ? void 0 : re.set;
|
|
6165
|
+
X == null || X.call(_, ""), _.dispatchEvent(new Event("input", { bubbles: !0 }));
|
|
6005
6166
|
}, D = () => {
|
|
6006
6167
|
if (w) {
|
|
6007
|
-
const _ = n.trim(),
|
|
6168
|
+
const _ = n.trim(), X = _ ? a.find(
|
|
6008
6169
|
(k) => k.label.trim().toLowerCase() === _.toLowerCase()
|
|
6009
6170
|
) : void 0;
|
|
6010
|
-
_ && (
|
|
6171
|
+
_ && (X ? o(X) : (N(), u()));
|
|
6011
6172
|
}
|
|
6012
6173
|
b(), m(!0);
|
|
6013
|
-
},
|
|
6174
|
+
}, V = (_) => {
|
|
6014
6175
|
o(_), b(), w || Oe(crypto.randomUUID().toString()), m(!0), ne(!1);
|
|
6015
6176
|
}, j = (_) => {
|
|
6016
|
-
f ||
|
|
6177
|
+
f || V(_);
|
|
6017
6178
|
};
|
|
6018
|
-
|
|
6179
|
+
Z(() => {
|
|
6019
6180
|
!w && n.length === 0 && ne(!1);
|
|
6020
|
-
}, [n, w]),
|
|
6181
|
+
}, [n, w]), Z(() => {
|
|
6021
6182
|
if (!w) return;
|
|
6022
|
-
const _ = (
|
|
6023
|
-
E.current && !E.current.contains(
|
|
6183
|
+
const _ = (X) => {
|
|
6184
|
+
E.current && !E.current.contains(X.target) && ne(!1);
|
|
6024
6185
|
};
|
|
6025
6186
|
return document.addEventListener("mousedown", _), () => document.removeEventListener("mousedown", _);
|
|
6026
6187
|
}, [w]);
|
|
6027
|
-
const U = ce(() => w ? De ?
|
|
6028
|
-
const
|
|
6188
|
+
const U = ce(() => w ? De ? fs(a) : Qa(a, n) : fs(a), [a, n, w, De]), W = () => U.length > 0 ? U.map((_, X) => {
|
|
6189
|
+
const re = _.label === n ? ` ${Y.class}__option--selected` : "";
|
|
6029
6190
|
return /* @__PURE__ */ c(
|
|
6030
6191
|
"button",
|
|
6031
6192
|
{
|
|
6032
|
-
className: `${
|
|
6193
|
+
className: `${Y.class}__option ${Y.class}__option--${r}${re}`,
|
|
6033
6194
|
"data-testid": `ds-option-${_.id ?? _.label}`,
|
|
6034
6195
|
onClick: () => j(_),
|
|
6035
|
-
onMouseDown: (
|
|
6196
|
+
onMouseDown: ($e) => $e.preventDefault(),
|
|
6036
6197
|
type: "button",
|
|
6037
6198
|
children: _.label
|
|
6038
6199
|
},
|
|
6039
|
-
|
|
6200
|
+
X
|
|
6040
6201
|
);
|
|
6041
6202
|
}) : /* @__PURE__ */ c(
|
|
6042
6203
|
"div",
|
|
6043
6204
|
{
|
|
6044
|
-
className: `${
|
|
6205
|
+
className: `${Y.class}__option ${Y.class}__option--not-found--${r}`,
|
|
6045
6206
|
children: h
|
|
6046
6207
|
},
|
|
6047
6208
|
"no_option"
|
|
@@ -6049,7 +6210,7 @@ const X = {
|
|
|
6049
6210
|
return /* @__PURE__ */ F(
|
|
6050
6211
|
"div",
|
|
6051
6212
|
{
|
|
6052
|
-
className: `${
|
|
6213
|
+
className: `${Y.class}__container`,
|
|
6053
6214
|
ref: E,
|
|
6054
6215
|
children: [
|
|
6055
6216
|
/* @__PURE__ */ c(
|
|
@@ -6057,27 +6218,27 @@ const X = {
|
|
|
6057
6218
|
{
|
|
6058
6219
|
animated: v,
|
|
6059
6220
|
autoFocus: g,
|
|
6060
|
-
className: `${
|
|
6221
|
+
className: `${Y.class}__input`,
|
|
6061
6222
|
disabled: f,
|
|
6062
|
-
feedback:
|
|
6063
|
-
hasFeedback:
|
|
6223
|
+
feedback: ae,
|
|
6224
|
+
hasFeedback: $,
|
|
6064
6225
|
label: t,
|
|
6065
6226
|
mask: J,
|
|
6066
6227
|
max: C,
|
|
6067
6228
|
min: p,
|
|
6068
6229
|
name: e,
|
|
6069
|
-
noMargin:
|
|
6230
|
+
noMargin: z,
|
|
6070
6231
|
onBlurHandler: D,
|
|
6071
|
-
onChangeHandler:
|
|
6072
|
-
onFocusHandler:
|
|
6073
|
-
onKeyDownHandler:
|
|
6232
|
+
onChangeHandler: L,
|
|
6233
|
+
onFocusHandler: M,
|
|
6234
|
+
onKeyDownHandler: ie,
|
|
6074
6235
|
placeholder: A,
|
|
6075
6236
|
size: r,
|
|
6076
6237
|
status: y,
|
|
6077
6238
|
testId: s,
|
|
6078
6239
|
tooltip: O,
|
|
6079
|
-
tooltipPlacement:
|
|
6080
|
-
tooltipPosition:
|
|
6240
|
+
tooltipPlacement: B,
|
|
6241
|
+
tooltipPosition: H,
|
|
6081
6242
|
type: x,
|
|
6082
6243
|
value: n
|
|
6083
6244
|
},
|
|
@@ -6086,30 +6247,30 @@ const X = {
|
|
|
6086
6247
|
(d || R) && (R ? /* @__PURE__ */ c(
|
|
6087
6248
|
"div",
|
|
6088
6249
|
{
|
|
6089
|
-
className: `${
|
|
6250
|
+
className: `${Y.class}__loading ${Y.class}__loading--${r}`,
|
|
6090
6251
|
style: { width: "18px" },
|
|
6091
|
-
children: /* @__PURE__ */ c(
|
|
6252
|
+
children: /* @__PURE__ */ c(Qt, { fullscreen: !1 })
|
|
6092
6253
|
}
|
|
6093
6254
|
) : d && /* @__PURE__ */ c(
|
|
6094
6255
|
te,
|
|
6095
6256
|
{
|
|
6096
|
-
className: `${
|
|
6257
|
+
className: `${Y.class}__icon ${Y.class}__icon--${r}`,
|
|
6097
6258
|
image: d
|
|
6098
6259
|
}
|
|
6099
6260
|
)),
|
|
6100
6261
|
Se && /* @__PURE__ */ c(
|
|
6101
6262
|
"div",
|
|
6102
6263
|
{
|
|
6103
|
-
className: `${
|
|
6264
|
+
className: `${Y.class}__list ${Y.class}__list--${r}`,
|
|
6104
6265
|
"data-testid": "ds-list",
|
|
6105
|
-
children:
|
|
6266
|
+
children: W()
|
|
6106
6267
|
}
|
|
6107
6268
|
)
|
|
6108
6269
|
]
|
|
6109
6270
|
}
|
|
6110
6271
|
);
|
|
6111
6272
|
};
|
|
6112
|
-
|
|
6273
|
+
Ga.displayName = "DsEditableSelect";
|
|
6113
6274
|
const Je = {
|
|
6114
6275
|
name: "DsIndicator",
|
|
6115
6276
|
class: "ds-indicator",
|
|
@@ -6123,12 +6284,12 @@ const Je = {
|
|
|
6123
6284
|
required: !0
|
|
6124
6285
|
}
|
|
6125
6286
|
}
|
|
6126
|
-
},
|
|
6287
|
+
}, dr = ({
|
|
6127
6288
|
length: t,
|
|
6128
6289
|
current: e = Je.props.current.default
|
|
6129
6290
|
}) => {
|
|
6130
6291
|
const [s, n] = q(e), a = (i) => i < s ? `${Je.class}__step--older` : i === s ? `${Je.class}__step--active` : "";
|
|
6131
|
-
|
|
6292
|
+
Z(() => {
|
|
6132
6293
|
n(e);
|
|
6133
6294
|
}, [e]);
|
|
6134
6295
|
const r = [];
|
|
@@ -6144,7 +6305,7 @@ const Je = {
|
|
|
6144
6305
|
)
|
|
6145
6306
|
);
|
|
6146
6307
|
return /* @__PURE__ */ c("div", { className: Je.class, children: r });
|
|
6147
|
-
},
|
|
6308
|
+
}, Za = {
|
|
6148
6309
|
name: "DsInlineEditable",
|
|
6149
6310
|
class: "ds-inline-editable",
|
|
6150
6311
|
props: {
|
|
@@ -6178,7 +6339,7 @@ const Je = {
|
|
|
6178
6339
|
}
|
|
6179
6340
|
}
|
|
6180
6341
|
}
|
|
6181
|
-
},
|
|
6342
|
+
}, Fn = ({
|
|
6182
6343
|
name: t,
|
|
6183
6344
|
value: e,
|
|
6184
6345
|
prefix: s,
|
|
@@ -6187,8 +6348,8 @@ const Je = {
|
|
|
6187
6348
|
max: r,
|
|
6188
6349
|
onChangeHandler: i
|
|
6189
6350
|
}) => {
|
|
6190
|
-
const o =
|
|
6191
|
-
|
|
6351
|
+
const o = Xe(null), [u, d] = q(!1), [h, f] = q("");
|
|
6352
|
+
Z(() => {
|
|
6192
6353
|
f(e ?? "");
|
|
6193
6354
|
}, [e]);
|
|
6194
6355
|
const y = (g) => {
|
|
@@ -6203,7 +6364,7 @@ const Je = {
|
|
|
6203
6364
|
var g;
|
|
6204
6365
|
await d(!0), (g = o.current) == null || g.focus();
|
|
6205
6366
|
};
|
|
6206
|
-
return /* @__PURE__ */ c("div", { className:
|
|
6367
|
+
return /* @__PURE__ */ c("div", { className: Za.class, children: u ? /* @__PURE__ */ c(
|
|
6207
6368
|
"input",
|
|
6208
6369
|
{
|
|
6209
6370
|
className: "ds-input__input",
|
|
@@ -6234,11 +6395,11 @@ const Je = {
|
|
|
6234
6395
|
}
|
|
6235
6396
|
) });
|
|
6236
6397
|
};
|
|
6237
|
-
|
|
6398
|
+
Fn.propTypes = {
|
|
6238
6399
|
value: l.string
|
|
6239
6400
|
};
|
|
6240
|
-
|
|
6241
|
-
var
|
|
6401
|
+
Fn.displayName = "DsInlineEditable";
|
|
6402
|
+
var Ja = /* @__PURE__ */ ((t) => (t[t.Elevation1 = 1] = "Elevation1", t[t.Elevation2 = 2] = "Elevation2", t[t.Elevation3 = 3] = "Elevation3", t[t.Elevation4 = 4] = "Elevation4", t))(Ja || {}), On = /* @__PURE__ */ ((t) => (t.Squared = "squared", t.Rounded = "rounded", t))(On || {});
|
|
6242
6403
|
const we = {
|
|
6243
6404
|
name: "Modal",
|
|
6244
6405
|
class: "ds-modal",
|
|
@@ -6256,7 +6417,7 @@ const we = {
|
|
|
6256
6417
|
variant: {
|
|
6257
6418
|
type: String,
|
|
6258
6419
|
default: "rounded",
|
|
6259
|
-
options: Object.values(
|
|
6420
|
+
options: Object.values(On)
|
|
6260
6421
|
},
|
|
6261
6422
|
cancelBtnText: {
|
|
6262
6423
|
type: String,
|
|
@@ -6271,7 +6432,7 @@ const we = {
|
|
|
6271
6432
|
default: !1
|
|
6272
6433
|
}
|
|
6273
6434
|
}
|
|
6274
|
-
},
|
|
6435
|
+
}, In = ({
|
|
6275
6436
|
className: t,
|
|
6276
6437
|
title: e,
|
|
6277
6438
|
content: s,
|
|
@@ -6291,9 +6452,9 @@ const we = {
|
|
|
6291
6452
|
},
|
|
6292
6453
|
[u]
|
|
6293
6454
|
);
|
|
6294
|
-
return
|
|
6455
|
+
return Z(() => (o && window && !S && window.addEventListener("keyup", v), () => {
|
|
6295
6456
|
window.removeEventListener("keyup", v);
|
|
6296
|
-
}), [S, v]), o ? /* @__PURE__ */ F(
|
|
6457
|
+
}), [S, v]), o ? /* @__PURE__ */ F(kt, { children: [
|
|
6297
6458
|
/* @__PURE__ */ c(
|
|
6298
6459
|
"div",
|
|
6299
6460
|
{
|
|
@@ -6328,7 +6489,7 @@ const we = {
|
|
|
6328
6489
|
!S && /* @__PURE__ */ c(Ce, { vertical: "xxs" }),
|
|
6329
6490
|
/* @__PURE__ */ F("div", { className: "ds-modal__cta", children: [
|
|
6330
6491
|
d && /* @__PURE__ */ c(
|
|
6331
|
-
|
|
6492
|
+
mt,
|
|
6332
6493
|
{
|
|
6333
6494
|
onClick: () => {
|
|
6334
6495
|
u(), d();
|
|
@@ -6337,7 +6498,7 @@ const we = {
|
|
|
6337
6498
|
}
|
|
6338
6499
|
),
|
|
6339
6500
|
h && /* @__PURE__ */ c(
|
|
6340
|
-
|
|
6501
|
+
mt,
|
|
6341
6502
|
{
|
|
6342
6503
|
onClick: () => {
|
|
6343
6504
|
u(), h();
|
|
@@ -6351,7 +6512,7 @@ const we = {
|
|
|
6351
6512
|
)
|
|
6352
6513
|
] }) : null;
|
|
6353
6514
|
};
|
|
6354
|
-
|
|
6515
|
+
In.propTypes = {
|
|
6355
6516
|
firstButtonText: l.string,
|
|
6356
6517
|
confirmBtnText: l.string,
|
|
6357
6518
|
cancelBtnText: l.string,
|
|
@@ -6361,8 +6522,8 @@ Sn.propTypes = {
|
|
|
6361
6522
|
title: l.node,
|
|
6362
6523
|
content: l.node
|
|
6363
6524
|
};
|
|
6364
|
-
|
|
6365
|
-
var
|
|
6525
|
+
In.displayName = "DsModal";
|
|
6526
|
+
var Nn = /* @__PURE__ */ ((t) => (t.Success = "success", t.Danger = "danger", t.Warning = "warning", t.Info = "info", t))(Nn || {}), Rn = /* @__PURE__ */ ((t) => (t.Rounded = "rounded", t.Squared = "squared", t))(Rn || {});
|
|
6366
6527
|
const me = {
|
|
6367
6528
|
name: "DsNotification",
|
|
6368
6529
|
class: "ds-notification",
|
|
@@ -6370,7 +6531,7 @@ const me = {
|
|
|
6370
6531
|
type: {
|
|
6371
6532
|
type: String,
|
|
6372
6533
|
default: "info",
|
|
6373
|
-
options: Object.values(
|
|
6534
|
+
options: Object.values(Nn)
|
|
6374
6535
|
},
|
|
6375
6536
|
id: {
|
|
6376
6537
|
type: String
|
|
@@ -6394,7 +6555,7 @@ const me = {
|
|
|
6394
6555
|
variant: {
|
|
6395
6556
|
type: String,
|
|
6396
6557
|
default: "rounded",
|
|
6397
|
-
options: Object.values(
|
|
6558
|
+
options: Object.values(Rn)
|
|
6398
6559
|
},
|
|
6399
6560
|
progressBar: {
|
|
6400
6561
|
type: Boolean,
|
|
@@ -6406,8 +6567,8 @@ const me = {
|
|
|
6406
6567
|
}
|
|
6407
6568
|
}
|
|
6408
6569
|
};
|
|
6409
|
-
var
|
|
6410
|
-
const
|
|
6570
|
+
var $n = /* @__PURE__ */ ((t) => (t.success = "check", t.danger = "error", t.warning = "warning", t.info = "info", t))($n || {});
|
|
6571
|
+
const Bn = ({
|
|
6411
6572
|
className: t,
|
|
6412
6573
|
type: e = me.props.type.default,
|
|
6413
6574
|
variant: s = me.props.variant.default,
|
|
@@ -6428,20 +6589,20 @@ const xn = ({
|
|
|
6428
6589
|
s && `${me.class}--${s}`,
|
|
6429
6590
|
d && `${me.class}--elevation-${d}`,
|
|
6430
6591
|
t
|
|
6431
|
-
].join(" "), x = () => S((
|
|
6432
|
-
|
|
6592
|
+
].join(" "), x = () => S((H) => (H === 0 && R(!1), H - 100));
|
|
6593
|
+
Z(() => {
|
|
6433
6594
|
!i && !u && R(!0);
|
|
6434
|
-
let
|
|
6435
|
-
return !v && i && (
|
|
6436
|
-
clearInterval(
|
|
6595
|
+
let H;
|
|
6596
|
+
return !v && i && (H = setInterval(x, 100)), () => {
|
|
6597
|
+
clearInterval(H);
|
|
6437
6598
|
};
|
|
6438
6599
|
}, [v, i, o, A, u]);
|
|
6439
6600
|
const p = () => {
|
|
6440
6601
|
g(!0);
|
|
6441
6602
|
}, C = () => {
|
|
6442
6603
|
g(!1);
|
|
6443
|
-
}, O = (
|
|
6444
|
-
R(!1), f && f(
|
|
6604
|
+
}, O = (H) => {
|
|
6605
|
+
R(!1), f && f(H);
|
|
6445
6606
|
};
|
|
6446
6607
|
return A ? /* @__PURE__ */ F(
|
|
6447
6608
|
"div",
|
|
@@ -6458,7 +6619,7 @@ const xn = ({
|
|
|
6458
6619
|
{
|
|
6459
6620
|
color: e,
|
|
6460
6621
|
fill: !0,
|
|
6461
|
-
image:
|
|
6622
|
+
image: $n[e]
|
|
6462
6623
|
}
|
|
6463
6624
|
) }),
|
|
6464
6625
|
/* @__PURE__ */ c(de, { flex: "1", children: /* @__PURE__ */ c(nt, { left: "none", right: "none", space: "nano", children: a ?? r }) }),
|
|
@@ -6467,7 +6628,7 @@ const xn = ({
|
|
|
6467
6628
|
{
|
|
6468
6629
|
className: `${me.class}__button`,
|
|
6469
6630
|
"data-testid": `${y}-close`,
|
|
6470
|
-
onClick: (
|
|
6631
|
+
onClick: (H) => O(H),
|
|
6471
6632
|
children: /* @__PURE__ */ c(nt, { children: /* @__PURE__ */ c(te, { image: "close" }) })
|
|
6472
6633
|
}
|
|
6473
6634
|
) : /* @__PURE__ */ c(Ce, { horizontal: "quark" }) })
|
|
@@ -6486,8 +6647,8 @@ const xn = ({
|
|
|
6486
6647
|
}
|
|
6487
6648
|
) : null;
|
|
6488
6649
|
};
|
|
6489
|
-
|
|
6490
|
-
const
|
|
6650
|
+
Bn.displayName = "DsNotification";
|
|
6651
|
+
const Mt = {
|
|
6491
6652
|
name: "DsPasswordConfirmation",
|
|
6492
6653
|
class: "ds-password-confirmation",
|
|
6493
6654
|
props: {
|
|
@@ -6526,16 +6687,16 @@ const Nt = {
|
|
|
6526
6687
|
default: "ds-password-confirmation"
|
|
6527
6688
|
}
|
|
6528
6689
|
}
|
|
6529
|
-
},
|
|
6690
|
+
}, dt = {
|
|
6530
6691
|
strong: "Forte",
|
|
6531
6692
|
good: "Boa",
|
|
6532
6693
|
medium: "Médio",
|
|
6533
6694
|
weak: "Fraco"
|
|
6534
|
-
},
|
|
6695
|
+
}, Mn = ({
|
|
6535
6696
|
onChange: t,
|
|
6536
|
-
validationList: e =
|
|
6537
|
-
instructionLabel: s =
|
|
6538
|
-
testId: n =
|
|
6697
|
+
validationList: e = Mt.props.validationList.default,
|
|
6698
|
+
instructionLabel: s = Mt.props.instructionLabel.default,
|
|
6699
|
+
testId: n = Mt.props.testId.default
|
|
6539
6700
|
}) => {
|
|
6540
6701
|
const [a, r] = q(""), [i, o] = q(""), [u, d] = q([]), [h, f] = q({
|
|
6541
6702
|
score: 0,
|
|
@@ -6578,17 +6739,17 @@ const Nt = {
|
|
|
6578
6739
|
const C = {
|
|
6579
6740
|
score: p,
|
|
6580
6741
|
color: "danger",
|
|
6581
|
-
label:
|
|
6742
|
+
label: dt.weak
|
|
6582
6743
|
};
|
|
6583
|
-
return p > 30 && p < 75 ? (C.color = "warning", C.label =
|
|
6744
|
+
return p > 30 && p < 75 ? (C.color = "warning", C.label = dt.medium) : p >= 75 && p < 100 ? (C.color = "success", C.label = dt.good) : p === 100 && (C.color = "success-dark", C.label = dt.strong), C;
|
|
6584
6745
|
},
|
|
6585
6746
|
[]
|
|
6586
6747
|
), w = Ae(
|
|
6587
6748
|
(p) => {
|
|
6588
6749
|
const C = p.reduce(
|
|
6589
|
-
(
|
|
6590
|
-
let
|
|
6591
|
-
return
|
|
6750
|
+
(H, B) => {
|
|
6751
|
+
let ae = H;
|
|
6752
|
+
return B ? (ae++, ae) : H;
|
|
6592
6753
|
},
|
|
6593
6754
|
0
|
|
6594
6755
|
), O = R(
|
|
@@ -6625,7 +6786,7 @@ const Nt = {
|
|
|
6625
6786
|
}
|
|
6626
6787
|
) }),
|
|
6627
6788
|
/* @__PURE__ */ c(de, { children: /* @__PURE__ */ c(
|
|
6628
|
-
|
|
6789
|
+
pn,
|
|
6629
6790
|
{
|
|
6630
6791
|
color: h == null ? void 0 : h.color,
|
|
6631
6792
|
label: h == null ? void 0 : h.label,
|
|
@@ -6652,13 +6813,13 @@ const Nt = {
|
|
|
6652
6813
|
) })
|
|
6653
6814
|
] });
|
|
6654
6815
|
};
|
|
6655
|
-
|
|
6816
|
+
Mn.propTypes = {
|
|
6656
6817
|
onChange: l.func,
|
|
6657
6818
|
validationList: l.array,
|
|
6658
6819
|
instructionLabel: l.string,
|
|
6659
6820
|
testId: l.string
|
|
6660
6821
|
};
|
|
6661
|
-
|
|
6822
|
+
Mn.displayName = "DsPasswordConfirmation";
|
|
6662
6823
|
const Fe = {
|
|
6663
6824
|
name: "DsStepper",
|
|
6664
6825
|
class: "ds-stepper",
|
|
@@ -6672,7 +6833,7 @@ const Fe = {
|
|
|
6672
6833
|
default: 0
|
|
6673
6834
|
}
|
|
6674
6835
|
}
|
|
6675
|
-
},
|
|
6836
|
+
}, er = ({
|
|
6676
6837
|
steps: t,
|
|
6677
6838
|
selectedStep: e = Fe.props.selectedStep.default,
|
|
6678
6839
|
onChange: s
|
|
@@ -6681,9 +6842,9 @@ const Fe = {
|
|
|
6681
6842
|
const u = [`${Fe.class}__button`];
|
|
6682
6843
|
return o !== i && u.push(`${Fe.class}__button--round`), t[i] && t[i].disabled && u.push(`${Fe.class}__button--disabled`), u.join(" ");
|
|
6683
6844
|
};
|
|
6684
|
-
return
|
|
6845
|
+
return Z(() => {
|
|
6685
6846
|
a(e);
|
|
6686
|
-
}, [e]),
|
|
6847
|
+
}, [e]), Z(() => {
|
|
6687
6848
|
s(n);
|
|
6688
6849
|
}, [n]), /* @__PURE__ */ F("div", { className: Fe.class, children: [
|
|
6689
6850
|
/* @__PURE__ */ F("span", { className: `${Fe.class}__step-counter`, children: [
|
|
@@ -6730,7 +6891,7 @@ const Fe = {
|
|
|
6730
6891
|
)) })
|
|
6731
6892
|
] });
|
|
6732
6893
|
};
|
|
6733
|
-
|
|
6894
|
+
er.displayName = "DsStepper";
|
|
6734
6895
|
const Ne = {
|
|
6735
6896
|
name: "Table",
|
|
6736
6897
|
class: "ds-table",
|
|
@@ -6748,7 +6909,7 @@ const Ne = {
|
|
|
6748
6909
|
default: []
|
|
6749
6910
|
}
|
|
6750
6911
|
}
|
|
6751
|
-
},
|
|
6912
|
+
}, Vn = ({ item: t, columns: e }) => /* @__PURE__ */ c("tr", { className: `${Ne.class}__row`, children: e.map((s, n) => {
|
|
6752
6913
|
const a = s.align && `${Ne.class}__cell--align-${s.align}`;
|
|
6753
6914
|
return /* @__PURE__ */ c("td", { children: /* @__PURE__ */ c(
|
|
6754
6915
|
"div",
|
|
@@ -6762,8 +6923,8 @@ const Ne = {
|
|
|
6762
6923
|
}
|
|
6763
6924
|
) }, n);
|
|
6764
6925
|
}) });
|
|
6765
|
-
|
|
6766
|
-
const
|
|
6926
|
+
Vn.displayName = "DsTableRow";
|
|
6927
|
+
const tr = ({ columns: t, data: e, className: s }) => /* @__PURE__ */ c("div", { className: `${Ne.class}__wrapper`, children: /* @__PURE__ */ F(
|
|
6767
6928
|
"table",
|
|
6768
6929
|
{
|
|
6769
6930
|
className: [`${Ne.class}`, s].filter((n) => n).join(" "),
|
|
@@ -6778,12 +6939,12 @@ const Fa = ({ columns: t, data: e, className: s }) => /* @__PURE__ */ c("div", {
|
|
|
6778
6939
|
children: n.label
|
|
6779
6940
|
}
|
|
6780
6941
|
) }, a)) }) }),
|
|
6781
|
-
/* @__PURE__ */ c("tbody", { className: `${Ne.class}__body`, children: e && e.map((n, a) => /* @__PURE__ */ c(
|
|
6942
|
+
/* @__PURE__ */ c("tbody", { className: `${Ne.class}__body`, children: e && e.map((n, a) => /* @__PURE__ */ c(Vn, { columns: t, item: n }, a)) })
|
|
6782
6943
|
]
|
|
6783
6944
|
}
|
|
6784
6945
|
) });
|
|
6785
|
-
|
|
6786
|
-
var
|
|
6946
|
+
tr.displayName = "DsTable";
|
|
6947
|
+
var Ln = /* @__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))(Ln || {}), lt = /* @__PURE__ */ ((t) => (t.Segmented = "segmented", t.Navigation = "navigation", t))(lt || {});
|
|
6787
6948
|
const ge = {
|
|
6788
6949
|
name: "DsTabs",
|
|
6789
6950
|
class: "ds-tabs",
|
|
@@ -6799,7 +6960,7 @@ const ge = {
|
|
|
6799
6960
|
color: {
|
|
6800
6961
|
type: String,
|
|
6801
6962
|
default: "primary",
|
|
6802
|
-
options: Object.values(
|
|
6963
|
+
options: Object.values(Ln)
|
|
6803
6964
|
},
|
|
6804
6965
|
variant: {
|
|
6805
6966
|
type: String,
|
|
@@ -6816,7 +6977,7 @@ const ge = {
|
|
|
6816
6977
|
}
|
|
6817
6978
|
}
|
|
6818
6979
|
}
|
|
6819
|
-
},
|
|
6980
|
+
}, sr = ({
|
|
6820
6981
|
active: t,
|
|
6821
6982
|
className: e,
|
|
6822
6983
|
color: s,
|
|
@@ -6872,14 +7033,14 @@ const ge = {
|
|
|
6872
7033
|
}
|
|
6873
7034
|
);
|
|
6874
7035
|
};
|
|
6875
|
-
function
|
|
7036
|
+
function Vt(t, e) {
|
|
6876
7037
|
if (t.length === 0) return 0;
|
|
6877
7038
|
const s = t[e];
|
|
6878
7039
|
if (s && !s.hidden) return e;
|
|
6879
7040
|
const n = t.findIndex((a) => !a.hidden);
|
|
6880
7041
|
return n >= 0 ? n : 0;
|
|
6881
7042
|
}
|
|
6882
|
-
const
|
|
7043
|
+
const pr = ({
|
|
6883
7044
|
tabs: t,
|
|
6884
7045
|
color: e,
|
|
6885
7046
|
selectedTab: s = ge.props.selectedTab.default,
|
|
@@ -6891,14 +7052,14 @@ const Pa = ({
|
|
|
6891
7052
|
rootDataTestId: u
|
|
6892
7053
|
}) => {
|
|
6893
7054
|
const [d, h] = q(
|
|
6894
|
-
() =>
|
|
7055
|
+
() => Vt(t, s)
|
|
6895
7056
|
);
|
|
6896
|
-
|
|
6897
|
-
h(
|
|
6898
|
-
}, [s, t]),
|
|
7057
|
+
Z(() => {
|
|
7058
|
+
h(Vt(t, s));
|
|
7059
|
+
}, [s, t]), Z(() => {
|
|
6899
7060
|
if (t.length === 0) return;
|
|
6900
7061
|
const g = t[d];
|
|
6901
|
-
(!g || g.hidden) && h(
|
|
7062
|
+
(!g || g.hidden) && h(Vt(t, d));
|
|
6902
7063
|
}, [t, d]);
|
|
6903
7064
|
const f = ce(
|
|
6904
7065
|
() => t.map((g, A) => ({ tab: g, index: A })).filter(({ tab: g }) => !g.hidden),
|
|
@@ -6926,7 +7087,7 @@ const Pa = ({
|
|
|
6926
7087
|
children: f.map(({ tab: g, index: A }) => {
|
|
6927
7088
|
const R = `${ge.class}-tab-${g.name ?? A}`, w = `${ge.class}-panel-${g.name ?? A}`, x = g.content !== void 0;
|
|
6928
7089
|
return /* @__PURE__ */ c(
|
|
6929
|
-
|
|
7090
|
+
sr,
|
|
6930
7091
|
{
|
|
6931
7092
|
...g,
|
|
6932
7093
|
active: d === A,
|
|
@@ -6965,15 +7126,15 @@ const Pa = ({
|
|
|
6965
7126
|
}
|
|
6966
7127
|
);
|
|
6967
7128
|
};
|
|
6968
|
-
function
|
|
7129
|
+
function nr({ library: t, children: e, theme: s }) {
|
|
6969
7130
|
return /* @__PURE__ */ c("div", { "data-library": t, "data-theme": s, children: /* @__PURE__ */ c("div", { className: "ds-theme", children: e }) });
|
|
6970
7131
|
}
|
|
6971
|
-
|
|
7132
|
+
nr.propTypes = {
|
|
6972
7133
|
library: l.string,
|
|
6973
7134
|
children: l.node.isRequired,
|
|
6974
7135
|
theme: l.string
|
|
6975
7136
|
};
|
|
6976
|
-
var
|
|
7137
|
+
var jn = /* @__PURE__ */ ((t) => (t.TopLeft = "top-left", t.TopCenter = "top-center", t.TopRight = "top-right", t.BottomLeft = "bottom-left", t.BottomCenter = "bottom-center", t.BottomRight = "bottom-right", t))(jn || {});
|
|
6977
7138
|
const ze = {
|
|
6978
7139
|
name: "DsNotificationList",
|
|
6979
7140
|
class: "ds-notification-list",
|
|
@@ -6981,7 +7142,7 @@ const ze = {
|
|
|
6981
7142
|
position: {
|
|
6982
7143
|
type: String,
|
|
6983
7144
|
default: "top-right",
|
|
6984
|
-
options: Object.values(
|
|
7145
|
+
options: Object.values(jn)
|
|
6985
7146
|
},
|
|
6986
7147
|
fluid: {
|
|
6987
7148
|
type: Boolean,
|
|
@@ -6992,7 +7153,7 @@ const ze = {
|
|
|
6992
7153
|
default: ""
|
|
6993
7154
|
}
|
|
6994
7155
|
}
|
|
6995
|
-
},
|
|
7156
|
+
}, Pn = ({
|
|
6996
7157
|
className: t = ze.props.className.default,
|
|
6997
7158
|
position: e = ze.props.position.default,
|
|
6998
7159
|
fluid: s = ze.props.fluid.default,
|
|
@@ -7010,7 +7171,7 @@ const ze = {
|
|
|
7010
7171
|
return /* @__PURE__ */ c("div", { className: r, "data-testid": "ds-notification-list", children: n.map((o) => {
|
|
7011
7172
|
const u = o.autoClose ?? !0, d = o.autoCloseTimer ?? 4e3, h = o.dismissible ?? !0, f = o.elevation ?? 2, y = o.progressBar ?? !0;
|
|
7012
7173
|
return /* @__PURE__ */ c(
|
|
7013
|
-
|
|
7174
|
+
Bn,
|
|
7014
7175
|
{
|
|
7015
7176
|
autoClose: u,
|
|
7016
7177
|
autoCloseTimer: d,
|
|
@@ -7026,16 +7187,16 @@ const ze = {
|
|
|
7026
7187
|
);
|
|
7027
7188
|
}) });
|
|
7028
7189
|
};
|
|
7029
|
-
|
|
7190
|
+
Pn.propTypes = {
|
|
7030
7191
|
position: l.oneOf(ze.props.position.options),
|
|
7031
7192
|
fluid: l.bool,
|
|
7032
7193
|
notifications: l.array,
|
|
7033
7194
|
removeNotification: l.func
|
|
7034
7195
|
};
|
|
7035
|
-
|
|
7196
|
+
Pn.displayName = "DsNotificationList";
|
|
7036
7197
|
const et = {
|
|
7037
7198
|
class: "ds-split-layout"
|
|
7038
|
-
},
|
|
7199
|
+
}, ar = ({
|
|
7039
7200
|
leftContent: t,
|
|
7040
7201
|
rightContent: e,
|
|
7041
7202
|
leftBackgroundColor: s,
|
|
@@ -7048,28 +7209,28 @@ const et = {
|
|
|
7048
7209
|
/* @__PURE__ */ c("div", { className: h, children: e })
|
|
7049
7210
|
] });
|
|
7050
7211
|
};
|
|
7051
|
-
|
|
7052
|
-
const
|
|
7212
|
+
ar.displayName = "DsSplitLayout";
|
|
7213
|
+
const pt = {
|
|
7053
7214
|
name: "TwoColumns",
|
|
7054
7215
|
class: "ds-two-columns",
|
|
7055
7216
|
props: {}
|
|
7056
|
-
},
|
|
7217
|
+
}, qn = ({
|
|
7057
7218
|
header: t,
|
|
7058
7219
|
main: e,
|
|
7059
7220
|
sidebar: s,
|
|
7060
7221
|
breadcrumb: n
|
|
7061
|
-
}) => /* @__PURE__ */ F(
|
|
7222
|
+
}) => /* @__PURE__ */ F(Gt, { children: [
|
|
7062
7223
|
/* @__PURE__ */ F("div", { className: "ds-grid", children: [
|
|
7063
7224
|
/* @__PURE__ */ c("div", { className: "ds-grid__row", children: /* @__PURE__ */ c("div", { className: "ds-grid__col ds-grid__col-12", children: n }) }),
|
|
7064
|
-
/* @__PURE__ */ F("div", { className: `${
|
|
7225
|
+
/* @__PURE__ */ F("div", { className: `${pt.class}__content ds-grid__row`, children: [
|
|
7065
7226
|
/* @__PURE__ */ F("div", { className: "ds-grid__col ds-grid__col--lg-8 ds-grid__col--sm-12 ds-grid__col-12", children: [
|
|
7066
|
-
/* @__PURE__ */ c("div", { className: `${
|
|
7067
|
-
/* @__PURE__ */ c("div", { className: `${
|
|
7227
|
+
/* @__PURE__ */ c("div", { className: `${pt.class}__header`, children: t }),
|
|
7228
|
+
/* @__PURE__ */ c("div", { className: `${pt.class}__main`, children: e })
|
|
7068
7229
|
] }),
|
|
7069
7230
|
/* @__PURE__ */ c(
|
|
7070
7231
|
"div",
|
|
7071
7232
|
{
|
|
7072
|
-
className: `${
|
|
7233
|
+
className: `${pt.class}__sidebar ds-grid__col ds-grid__col--lg-4 ds-grid__col--sm-12 ds-grid__col-12`,
|
|
7073
7234
|
children: s
|
|
7074
7235
|
}
|
|
7075
7236
|
)
|
|
@@ -7077,153 +7238,153 @@ const dt = {
|
|
|
7077
7238
|
] }),
|
|
7078
7239
|
/* @__PURE__ */ c(Ce, { vertical: "sm" })
|
|
7079
7240
|
] });
|
|
7080
|
-
|
|
7241
|
+
qn.propTypes = {
|
|
7081
7242
|
breadcrumb: l.node,
|
|
7082
7243
|
header: l.node,
|
|
7083
7244
|
main: l.node,
|
|
7084
7245
|
sidebar: l.node
|
|
7085
7246
|
};
|
|
7086
|
-
|
|
7247
|
+
qn.displayName = "DsTwoColumns";
|
|
7087
7248
|
export {
|
|
7088
|
-
|
|
7089
|
-
|
|
7090
|
-
|
|
7091
|
-
|
|
7092
|
-
|
|
7093
|
-
|
|
7094
|
-
|
|
7095
|
-
|
|
7096
|
-
|
|
7097
|
-
|
|
7098
|
-
|
|
7099
|
-
|
|
7100
|
-
|
|
7101
|
-
|
|
7102
|
-
|
|
7103
|
-
|
|
7104
|
-
|
|
7105
|
-
|
|
7106
|
-
|
|
7107
|
-
|
|
7108
|
-
|
|
7109
|
-
|
|
7249
|
+
Ss as ButtonColor,
|
|
7250
|
+
Sa as ButtonElevation,
|
|
7251
|
+
As as ButtonIconPosition,
|
|
7252
|
+
ws as ButtonSize,
|
|
7253
|
+
Es as ButtonVariant,
|
|
7254
|
+
jt as CardColor,
|
|
7255
|
+
Aa as CardElevation,
|
|
7256
|
+
Os as CardSize,
|
|
7257
|
+
Rs as ChipColor,
|
|
7258
|
+
vt as ChipIconPosition,
|
|
7259
|
+
$s as ChipVariant,
|
|
7260
|
+
Dn as DsAccordion,
|
|
7261
|
+
Zt as DsAccordionItem,
|
|
7262
|
+
Ya as DsActiveTags,
|
|
7263
|
+
mt as DsButton,
|
|
7264
|
+
Fs as DsCaption,
|
|
7265
|
+
Is as DsCard,
|
|
7266
|
+
Ka as DsCarousel,
|
|
7267
|
+
Ns as DsCheckbox,
|
|
7268
|
+
lr as DsChip,
|
|
7269
|
+
Gt as DsContainer,
|
|
7270
|
+
Ga as DsEditableSelect,
|
|
7110
7271
|
de as DsFlexElement,
|
|
7111
7272
|
qe as DsFlexLayout,
|
|
7112
|
-
|
|
7113
|
-
|
|
7114
|
-
|
|
7115
|
-
|
|
7273
|
+
Xa as DsGridElement,
|
|
7274
|
+
Cn as DsGridLayout,
|
|
7275
|
+
Ls as DsHR,
|
|
7276
|
+
Yt as DsHeading,
|
|
7116
7277
|
te as DsIcon,
|
|
7117
|
-
|
|
7118
|
-
|
|
7278
|
+
dr as DsIndicator,
|
|
7279
|
+
Fn as DsInlineEditable,
|
|
7119
7280
|
it as DsInput,
|
|
7120
|
-
|
|
7121
|
-
|
|
7122
|
-
|
|
7123
|
-
|
|
7124
|
-
|
|
7281
|
+
Qt as DsLoading,
|
|
7282
|
+
In as DsModal,
|
|
7283
|
+
Bn as DsNotification,
|
|
7284
|
+
Pn as DsNotificationList,
|
|
7285
|
+
nn as DsOption,
|
|
7125
7286
|
je as DsParagraph,
|
|
7126
|
-
|
|
7127
|
-
|
|
7128
|
-
|
|
7129
|
-
|
|
7130
|
-
|
|
7287
|
+
Mn as DsPasswordConfirmation,
|
|
7288
|
+
pn as DsProgress,
|
|
7289
|
+
Ua as DsRadio,
|
|
7290
|
+
za as DsSegmentControl,
|
|
7291
|
+
_n as DsSelect,
|
|
7131
7292
|
Ce as DsSpacer,
|
|
7132
|
-
|
|
7133
|
-
|
|
7134
|
-
|
|
7135
|
-
|
|
7136
|
-
|
|
7137
|
-
|
|
7138
|
-
|
|
7139
|
-
|
|
7293
|
+
ar as DsSplitLayout,
|
|
7294
|
+
er as DsStepper,
|
|
7295
|
+
Ha as DsSubtitle,
|
|
7296
|
+
tr as DsTable,
|
|
7297
|
+
pr as DsTabs,
|
|
7298
|
+
An as DsTextArea,
|
|
7299
|
+
Qe as DsTooltip,
|
|
7300
|
+
qn as DsTwoColumns,
|
|
7140
7301
|
nt as DsWrapper,
|
|
7141
|
-
|
|
7142
|
-
|
|
7143
|
-
|
|
7144
|
-
|
|
7145
|
-
|
|
7146
|
-
|
|
7147
|
-
|
|
7148
|
-
|
|
7149
|
-
|
|
7150
|
-
|
|
7151
|
-
|
|
7152
|
-
|
|
7153
|
-
|
|
7154
|
-
|
|
7155
|
-
|
|
7156
|
-
|
|
7157
|
-
|
|
7158
|
-
|
|
7159
|
-
|
|
7160
|
-
|
|
7161
|
-
|
|
7162
|
-
|
|
7163
|
-
|
|
7164
|
-
|
|
7165
|
-
|
|
7166
|
-
|
|
7167
|
-
|
|
7168
|
-
|
|
7169
|
-
|
|
7170
|
-
|
|
7171
|
-
|
|
7172
|
-
|
|
7173
|
-
|
|
7174
|
-
|
|
7175
|
-
|
|
7176
|
-
|
|
7177
|
-
|
|
7178
|
-
|
|
7302
|
+
Tn as EditableSelectSize,
|
|
7303
|
+
on as FlexLayoutAlignItems,
|
|
7304
|
+
un as FlexLayoutDirection,
|
|
7305
|
+
dn as FlexLayoutGap,
|
|
7306
|
+
ln as FlexLayoutJustifyContent,
|
|
7307
|
+
cn as FlexLayoutWrap,
|
|
7308
|
+
zt as GridLayoutAlign,
|
|
7309
|
+
xn as GridLayoutGap,
|
|
7310
|
+
Ms as HRBorderStyle,
|
|
7311
|
+
Vs as HRSize,
|
|
7312
|
+
Bs as HeadingType,
|
|
7313
|
+
xs as IconColor,
|
|
7314
|
+
Ds as IconSize,
|
|
7315
|
+
Cs as IconVariation,
|
|
7316
|
+
Ts as IconWeight,
|
|
7317
|
+
Ks as InputSize,
|
|
7318
|
+
Qs as InputStatus,
|
|
7319
|
+
Gs as InputTooltipPlacement,
|
|
7320
|
+
Zs as InputTooltipPosition,
|
|
7321
|
+
Ys as InputType,
|
|
7322
|
+
sn as LoadingBackgroundColor,
|
|
7323
|
+
tn as LoadingSize,
|
|
7324
|
+
Ja as ModalElevation,
|
|
7325
|
+
On as ModalVariant,
|
|
7326
|
+
jn as NotificationListPosition,
|
|
7327
|
+
Nn as NotificationType,
|
|
7328
|
+
Rn as NotificationVariant,
|
|
7329
|
+
an as ParagraphType,
|
|
7330
|
+
rn as ProgressColor,
|
|
7331
|
+
hn as RadioVariant,
|
|
7332
|
+
fn as SegmentControlSize,
|
|
7333
|
+
gn as SelectSize,
|
|
7334
|
+
mn as SelectStatus,
|
|
7335
|
+
vn as SelectTooltipPlacement,
|
|
7336
|
+
yn as SelectTooltipPosition,
|
|
7337
|
+
Ut as SpacerSize,
|
|
7338
|
+
kn as SubtitleType,
|
|
7339
|
+
Ln as TabsColor,
|
|
7179
7340
|
lt as TabsVariant,
|
|
7180
|
-
|
|
7181
|
-
|
|
7182
|
-
|
|
7183
|
-
|
|
7184
|
-
|
|
7185
|
-
|
|
7186
|
-
|
|
7341
|
+
wn as TextAreaResize,
|
|
7342
|
+
bn as TextAreaSize,
|
|
7343
|
+
En as TextAreaStatus,
|
|
7344
|
+
Sn as TextAreaType,
|
|
7345
|
+
nr as ThemeProvider,
|
|
7346
|
+
en as TooltipPlacement,
|
|
7347
|
+
Js as TooltipPosition,
|
|
7187
7348
|
Ke as WrapperSpace,
|
|
7188
|
-
|
|
7189
|
-
|
|
7190
|
-
|
|
7191
|
-
|
|
7192
|
-
|
|
7349
|
+
Bt as accordionConfig,
|
|
7350
|
+
Ye as accordionItemConfig,
|
|
7351
|
+
cr as activeTagsConfig,
|
|
7352
|
+
G as buttonConfig,
|
|
7353
|
+
wa as captionConfig,
|
|
7193
7354
|
ke as cardConfig,
|
|
7194
|
-
|
|
7355
|
+
Ze as carouselConfig,
|
|
7195
7356
|
fe as checkboxConfig,
|
|
7196
|
-
|
|
7197
|
-
|
|
7198
|
-
|
|
7199
|
-
|
|
7357
|
+
Be as chipConfig,
|
|
7358
|
+
ct as containerConfig,
|
|
7359
|
+
Y as editableSelectConfig,
|
|
7360
|
+
Rt as flexElementConfig,
|
|
7200
7361
|
Ue as flexLayoutConfig,
|
|
7201
|
-
|
|
7362
|
+
ur as gridElementConfig,
|
|
7202
7363
|
le as gridLayoutConfig,
|
|
7203
7364
|
tt as headingConfig,
|
|
7204
7365
|
He as horizontalRuleConfig,
|
|
7205
7366
|
_e as iconConfig,
|
|
7206
7367
|
Je as indicatorConfig,
|
|
7207
|
-
|
|
7368
|
+
Za as inlineEditableConfig,
|
|
7208
7369
|
ee as inputConfig,
|
|
7209
7370
|
ye as loadingConfig,
|
|
7210
7371
|
we as modalConfig,
|
|
7211
7372
|
me as notificationConfig,
|
|
7212
7373
|
ze as notificationListConfig,
|
|
7213
7374
|
Me as optionConfig,
|
|
7214
|
-
|
|
7215
|
-
|
|
7216
|
-
|
|
7375
|
+
ft as paragraphConfig,
|
|
7376
|
+
Mt as passwordConfirmationConfig,
|
|
7377
|
+
qt as progressConfig,
|
|
7217
7378
|
Ee as radioConfig,
|
|
7218
7379
|
ve as segmentControlConfig,
|
|
7219
7380
|
se as selectConfig,
|
|
7220
7381
|
st as spacerConfig,
|
|
7221
7382
|
Fe as stepperConfig,
|
|
7222
|
-
|
|
7383
|
+
$t as subtitleConfig,
|
|
7223
7384
|
Ne as tableConfig,
|
|
7224
7385
|
ge as tabsConfig,
|
|
7225
7386
|
ue as textAreaConfig,
|
|
7226
7387
|
Ie as tooltipConfig,
|
|
7227
|
-
|
|
7388
|
+
pt as twoColumnsConfig,
|
|
7228
7389
|
Te as wrapperConfig
|
|
7229
7390
|
};
|