@emporix/component-library 1.5.0 → 1.5.2
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/README.md +23 -24
- package/dist/index.es.js +535 -812
- package/dist/index.umd.js +1 -22
- package/dist/style.css +1 -1
- package/package.json +3 -3
package/dist/index.es.js
CHANGED
|
@@ -1,1073 +1,796 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
8
|
-
*
|
|
9
|
-
* This source code is licensed under the MIT license found in the
|
|
10
|
-
* LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/
|
|
12
|
-
var Ee;
|
|
13
|
-
function qe() {
|
|
14
|
-
if (Ee) return fe;
|
|
15
|
-
Ee = 1;
|
|
16
|
-
var e = Symbol.for("react.transitional.element"), r = Symbol.for("react.fragment");
|
|
17
|
-
function n(o, a, c) {
|
|
18
|
-
var u = null;
|
|
19
|
-
if (c !== void 0 && (u = "" + c), a.key !== void 0 && (u = "" + a.key), "key" in a) {
|
|
20
|
-
c = {};
|
|
21
|
-
for (var g in a)
|
|
22
|
-
g !== "key" && (c[g] = a[g]);
|
|
23
|
-
} else c = a;
|
|
24
|
-
return a = c.ref, {
|
|
25
|
-
$$typeof: e,
|
|
26
|
-
type: o,
|
|
27
|
-
key: u,
|
|
28
|
-
ref: a !== void 0 ? a : null,
|
|
29
|
-
props: c
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
return fe.Fragment = r, fe.jsx = n, fe.jsxs = n, fe;
|
|
33
|
-
}
|
|
34
|
-
var pe = {};
|
|
35
|
-
/**
|
|
36
|
-
* @license React
|
|
37
|
-
* react-jsx-runtime.development.js
|
|
38
|
-
*
|
|
39
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
40
|
-
*
|
|
41
|
-
* This source code is licensed under the MIT license found in the
|
|
42
|
-
* LICENSE file in the root directory of this source tree.
|
|
43
|
-
*/
|
|
44
|
-
var Ne;
|
|
45
|
-
function Fe() {
|
|
46
|
-
return Ne || (Ne = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
47
|
-
function e(t) {
|
|
48
|
-
if (t == null) return null;
|
|
49
|
-
if (typeof t == "function")
|
|
50
|
-
return t.$$typeof === Z ? null : t.displayName || t.name || null;
|
|
51
|
-
if (typeof t == "string") return t;
|
|
52
|
-
switch (t) {
|
|
53
|
-
case v:
|
|
54
|
-
return "Fragment";
|
|
55
|
-
case k:
|
|
56
|
-
return "Profiler";
|
|
57
|
-
case O:
|
|
58
|
-
return "StrictMode";
|
|
59
|
-
case T:
|
|
60
|
-
return "Suspense";
|
|
61
|
-
case I:
|
|
62
|
-
return "SuspenseList";
|
|
63
|
-
case oe:
|
|
64
|
-
return "Activity";
|
|
65
|
-
}
|
|
66
|
-
if (typeof t == "object")
|
|
67
|
-
switch (typeof t.tag == "number" && console.error(
|
|
68
|
-
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
69
|
-
), t.$$typeof) {
|
|
70
|
-
case b:
|
|
71
|
-
return "Portal";
|
|
72
|
-
case C:
|
|
73
|
-
return t.displayName || "Context";
|
|
74
|
-
case P:
|
|
75
|
-
return (t._context.displayName || "Context") + ".Consumer";
|
|
76
|
-
case f:
|
|
77
|
-
var l = t.render;
|
|
78
|
-
return t = t.displayName, t || (t = l.displayName || l.name || "", t = t !== "" ? "ForwardRef(" + t + ")" : "ForwardRef"), t;
|
|
79
|
-
case ne:
|
|
80
|
-
return l = t.displayName || null, l !== null ? l : e(t.type) || "Memo";
|
|
81
|
-
case M:
|
|
82
|
-
l = t._payload, t = t._init;
|
|
83
|
-
try {
|
|
84
|
-
return e(t(l));
|
|
85
|
-
} catch {
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
return null;
|
|
89
|
-
}
|
|
90
|
-
function r(t) {
|
|
91
|
-
return "" + t;
|
|
92
|
-
}
|
|
93
|
-
function n(t) {
|
|
94
|
-
try {
|
|
95
|
-
r(t);
|
|
96
|
-
var l = !1;
|
|
97
|
-
} catch {
|
|
98
|
-
l = !0;
|
|
99
|
-
}
|
|
100
|
-
if (l) {
|
|
101
|
-
l = console;
|
|
102
|
-
var h = l.error, x = typeof Symbol == "function" && Symbol.toStringTag && t[Symbol.toStringTag] || t.constructor.name || "Object";
|
|
103
|
-
return h.call(
|
|
104
|
-
l,
|
|
105
|
-
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
106
|
-
x
|
|
107
|
-
), r(t);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
function o(t) {
|
|
111
|
-
if (t === v) return "<>";
|
|
112
|
-
if (typeof t == "object" && t !== null && t.$$typeof === M)
|
|
113
|
-
return "<...>";
|
|
114
|
-
try {
|
|
115
|
-
var l = e(t);
|
|
116
|
-
return l ? "<" + l + ">" : "<...>";
|
|
117
|
-
} catch {
|
|
118
|
-
return "<...>";
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
function a() {
|
|
122
|
-
var t = w.A;
|
|
123
|
-
return t === null ? null : t.getOwner();
|
|
124
|
-
}
|
|
125
|
-
function c() {
|
|
126
|
-
return Error("react-stack-top-frame");
|
|
127
|
-
}
|
|
128
|
-
function u(t) {
|
|
129
|
-
if (y.call(t, "key")) {
|
|
130
|
-
var l = Object.getOwnPropertyDescriptor(t, "key").get;
|
|
131
|
-
if (l && l.isReactWarning) return !1;
|
|
132
|
-
}
|
|
133
|
-
return t.key !== void 0;
|
|
134
|
-
}
|
|
135
|
-
function g(t, l) {
|
|
136
|
-
function h() {
|
|
137
|
-
L || (L = !0, console.error(
|
|
138
|
-
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
139
|
-
l
|
|
140
|
-
));
|
|
141
|
-
}
|
|
142
|
-
h.isReactWarning = !0, Object.defineProperty(t, "key", {
|
|
143
|
-
get: h,
|
|
144
|
-
configurable: !0
|
|
145
|
-
});
|
|
146
|
-
}
|
|
147
|
-
function d() {
|
|
148
|
-
var t = e(this.type);
|
|
149
|
-
return q[t] || (q[t] = !0, console.error(
|
|
150
|
-
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
151
|
-
)), t = this.props.ref, t !== void 0 ? t : null;
|
|
152
|
-
}
|
|
153
|
-
function m(t, l, h, x, z, se) {
|
|
154
|
-
var N = h.ref;
|
|
155
|
-
return t = {
|
|
156
|
-
$$typeof: W,
|
|
157
|
-
type: t,
|
|
158
|
-
key: l,
|
|
159
|
-
props: h,
|
|
160
|
-
_owner: x
|
|
161
|
-
}, (N !== void 0 ? N : null) !== null ? Object.defineProperty(t, "ref", {
|
|
162
|
-
enumerable: !1,
|
|
163
|
-
get: d
|
|
164
|
-
}) : Object.defineProperty(t, "ref", { enumerable: !1, value: null }), t._store = {}, Object.defineProperty(t._store, "validated", {
|
|
165
|
-
configurable: !1,
|
|
166
|
-
enumerable: !1,
|
|
167
|
-
writable: !0,
|
|
168
|
-
value: 0
|
|
169
|
-
}), Object.defineProperty(t, "_debugInfo", {
|
|
170
|
-
configurable: !1,
|
|
171
|
-
enumerable: !1,
|
|
172
|
-
writable: !0,
|
|
173
|
-
value: null
|
|
174
|
-
}), Object.defineProperty(t, "_debugStack", {
|
|
175
|
-
configurable: !1,
|
|
176
|
-
enumerable: !1,
|
|
177
|
-
writable: !0,
|
|
178
|
-
value: z
|
|
179
|
-
}), Object.defineProperty(t, "_debugTask", {
|
|
180
|
-
configurable: !1,
|
|
181
|
-
enumerable: !1,
|
|
182
|
-
writable: !0,
|
|
183
|
-
value: se
|
|
184
|
-
}), Object.freeze && (Object.freeze(t.props), Object.freeze(t)), t;
|
|
185
|
-
}
|
|
186
|
-
function S(t, l, h, x, z, se) {
|
|
187
|
-
var N = l.children;
|
|
188
|
-
if (N !== void 0)
|
|
189
|
-
if (x)
|
|
190
|
-
if (p(N)) {
|
|
191
|
-
for (x = 0; x < N.length; x++)
|
|
192
|
-
$(N[x]);
|
|
193
|
-
Object.freeze && Object.freeze(N);
|
|
194
|
-
} else
|
|
195
|
-
console.error(
|
|
196
|
-
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
197
|
-
);
|
|
198
|
-
else $(N);
|
|
199
|
-
if (y.call(l, "key")) {
|
|
200
|
-
N = e(t);
|
|
201
|
-
var K = Object.keys(l).filter(function(ge) {
|
|
202
|
-
return ge !== "key";
|
|
203
|
-
});
|
|
204
|
-
x = 0 < K.length ? "{key: someKey, " + K.join(": ..., ") + ": ...}" : "{key: someKey}", G[N + x] || (K = 0 < K.length ? "{" + K.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
205
|
-
`A props object containing a "key" prop is being spread into JSX:
|
|
206
|
-
let props = %s;
|
|
207
|
-
<%s {...props} />
|
|
208
|
-
React keys must be passed directly to JSX without using spread:
|
|
209
|
-
let props = %s;
|
|
210
|
-
<%s key={someKey} {...props} />`,
|
|
211
|
-
x,
|
|
212
|
-
N,
|
|
213
|
-
K,
|
|
214
|
-
N
|
|
215
|
-
), G[N + x] = !0);
|
|
216
|
-
}
|
|
217
|
-
if (N = null, h !== void 0 && (n(h), N = "" + h), u(l) && (n(l.key), N = "" + l.key), "key" in l) {
|
|
218
|
-
h = {};
|
|
219
|
-
for (var ue in l)
|
|
220
|
-
ue !== "key" && (h[ue] = l[ue]);
|
|
221
|
-
} else h = l;
|
|
222
|
-
return N && g(
|
|
223
|
-
h,
|
|
224
|
-
typeof t == "function" ? t.displayName || t.name || "Unknown" : t
|
|
225
|
-
), m(
|
|
226
|
-
t,
|
|
227
|
-
N,
|
|
228
|
-
h,
|
|
229
|
-
a(),
|
|
230
|
-
z,
|
|
231
|
-
se
|
|
232
|
-
);
|
|
233
|
-
}
|
|
234
|
-
function $(t) {
|
|
235
|
-
A(t) ? t._store && (t._store.validated = 1) : typeof t == "object" && t !== null && t.$$typeof === M && (t._payload.status === "fulfilled" ? A(t._payload.value) && t._payload.value._store && (t._payload.value._store.validated = 1) : t._store && (t._store.validated = 1));
|
|
236
|
-
}
|
|
237
|
-
function A(t) {
|
|
238
|
-
return typeof t == "object" && t !== null && t.$$typeof === W;
|
|
239
|
-
}
|
|
240
|
-
var D = Y, W = Symbol.for("react.transitional.element"), b = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), O = Symbol.for("react.strict_mode"), k = Symbol.for("react.profiler"), P = Symbol.for("react.consumer"), C = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), I = Symbol.for("react.suspense_list"), ne = Symbol.for("react.memo"), M = Symbol.for("react.lazy"), oe = Symbol.for("react.activity"), Z = Symbol.for("react.client.reference"), w = D.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, y = Object.prototype.hasOwnProperty, p = Array.isArray, B = console.createTask ? console.createTask : function() {
|
|
241
|
-
return null;
|
|
242
|
-
};
|
|
243
|
-
D = {
|
|
244
|
-
react_stack_bottom_frame: function(t) {
|
|
245
|
-
return t();
|
|
246
|
-
}
|
|
247
|
-
};
|
|
248
|
-
var L, q = {}, H = D.react_stack_bottom_frame.bind(
|
|
249
|
-
D,
|
|
250
|
-
c
|
|
251
|
-
)(), U = B(o(c)), G = {};
|
|
252
|
-
pe.Fragment = v, pe.jsx = function(t, l, h) {
|
|
253
|
-
var x = 1e4 > w.recentlyCreatedOwnerStacks++;
|
|
254
|
-
return S(
|
|
255
|
-
t,
|
|
256
|
-
l,
|
|
257
|
-
h,
|
|
258
|
-
!1,
|
|
259
|
-
x ? Error("react-stack-top-frame") : H,
|
|
260
|
-
x ? B(o(t)) : U
|
|
261
|
-
);
|
|
262
|
-
}, pe.jsxs = function(t, l, h) {
|
|
263
|
-
var x = 1e4 > w.recentlyCreatedOwnerStacks++;
|
|
264
|
-
return S(
|
|
265
|
-
t,
|
|
266
|
-
l,
|
|
267
|
-
h,
|
|
268
|
-
!0,
|
|
269
|
-
x ? Error("react-stack-top-frame") : H,
|
|
270
|
-
x ? B(o(t)) : U
|
|
271
|
-
);
|
|
272
|
-
};
|
|
273
|
-
})()), pe;
|
|
274
|
-
}
|
|
275
|
-
var Oe;
|
|
276
|
-
function We() {
|
|
277
|
-
return Oe || (Oe = 1, process.env.NODE_ENV === "production" ? ve.exports = qe() : ve.exports = Fe()), ve.exports;
|
|
278
|
-
}
|
|
279
|
-
var i = We();
|
|
280
|
-
const ze = "_primaryButton_uyzzr_1", Ve = "_primaryButtonDisabled_uyzzr_34", Ye = "_spinner_uyzzr_42", xe = {
|
|
281
|
-
primaryButton: ze,
|
|
282
|
-
primaryButtonDisabled: Ve,
|
|
283
|
-
spinner: Ye
|
|
1
|
+
import { jsxs as D, jsx as u } from "react/jsx-runtime";
|
|
2
|
+
import F, { useState as T, useRef as X, useMemo as me, useEffect as se, useId as he } from "react";
|
|
3
|
+
const $e = "_primaryButton_uyzzr_1", Le = "_primaryButtonDisabled_uyzzr_34", Ae = "_spinner_uyzzr_42", _e = {
|
|
4
|
+
primaryButton: $e,
|
|
5
|
+
primaryButtonDisabled: Le,
|
|
6
|
+
spinner: Ae
|
|
284
7
|
};
|
|
285
|
-
var
|
|
8
|
+
var Ne = {
|
|
286
9
|
color: void 0,
|
|
287
10
|
size: void 0,
|
|
288
11
|
className: void 0,
|
|
289
12
|
style: void 0,
|
|
290
13
|
attr: void 0
|
|
291
|
-
},
|
|
292
|
-
function
|
|
14
|
+
}, ge = F.createContext && /* @__PURE__ */ F.createContext(Ne), qe = ["attr", "size", "title"];
|
|
15
|
+
function Fe(e, t) {
|
|
293
16
|
if (e == null) return {};
|
|
294
|
-
var n, o,
|
|
17
|
+
var n, o, s = We(e, t);
|
|
295
18
|
if (Object.getOwnPropertySymbols) {
|
|
296
|
-
var
|
|
297
|
-
for (o = 0; o <
|
|
19
|
+
var a = Object.getOwnPropertySymbols(e);
|
|
20
|
+
for (o = 0; o < a.length; o++) n = a[o], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (s[n] = e[n]);
|
|
298
21
|
}
|
|
299
|
-
return
|
|
22
|
+
return s;
|
|
300
23
|
}
|
|
301
|
-
function
|
|
24
|
+
function We(e, t) {
|
|
302
25
|
if (e == null) return {};
|
|
303
26
|
var n = {};
|
|
304
27
|
for (var o in e) if ({}.hasOwnProperty.call(e, o)) {
|
|
305
|
-
if (
|
|
28
|
+
if (t.indexOf(o) !== -1) continue;
|
|
306
29
|
n[o] = e[o];
|
|
307
30
|
}
|
|
308
31
|
return n;
|
|
309
32
|
}
|
|
310
|
-
function
|
|
311
|
-
return
|
|
312
|
-
for (var
|
|
313
|
-
var n = arguments[
|
|
33
|
+
function ue() {
|
|
34
|
+
return ue = Object.assign ? Object.assign.bind() : function(e) {
|
|
35
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
36
|
+
var n = arguments[t];
|
|
314
37
|
for (var o in n) ({}).hasOwnProperty.call(n, o) && (e[o] = n[o]);
|
|
315
38
|
}
|
|
316
39
|
return e;
|
|
317
|
-
},
|
|
40
|
+
}, ue.apply(null, arguments);
|
|
318
41
|
}
|
|
319
|
-
function
|
|
42
|
+
function be(e, t) {
|
|
320
43
|
var n = Object.keys(e);
|
|
321
44
|
if (Object.getOwnPropertySymbols) {
|
|
322
45
|
var o = Object.getOwnPropertySymbols(e);
|
|
323
|
-
|
|
324
|
-
return Object.getOwnPropertyDescriptor(e,
|
|
46
|
+
t && (o = o.filter(function(s) {
|
|
47
|
+
return Object.getOwnPropertyDescriptor(e, s).enumerable;
|
|
325
48
|
})), n.push.apply(n, o);
|
|
326
49
|
}
|
|
327
50
|
return n;
|
|
328
51
|
}
|
|
329
|
-
function
|
|
330
|
-
for (var
|
|
331
|
-
var n = arguments[
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
52
|
+
function de(e) {
|
|
53
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
54
|
+
var n = arguments[t] != null ? arguments[t] : {};
|
|
55
|
+
t % 2 ? be(Object(n), !0).forEach(function(o) {
|
|
56
|
+
Ee(e, o, n[o]);
|
|
57
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : be(Object(n)).forEach(function(o) {
|
|
335
58
|
Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(n, o));
|
|
336
59
|
});
|
|
337
60
|
}
|
|
338
61
|
return e;
|
|
339
62
|
}
|
|
340
|
-
function
|
|
341
|
-
return (
|
|
63
|
+
function Ee(e, t, n) {
|
|
64
|
+
return (t = Re(t)) in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
342
65
|
}
|
|
343
|
-
function
|
|
344
|
-
var
|
|
345
|
-
return typeof
|
|
66
|
+
function Re(e) {
|
|
67
|
+
var t = Ve(e, "string");
|
|
68
|
+
return typeof t == "symbol" ? t : t + "";
|
|
346
69
|
}
|
|
347
|
-
function
|
|
70
|
+
function Ve(e, t) {
|
|
348
71
|
if (typeof e != "object" || !e) return e;
|
|
349
72
|
var n = e[Symbol.toPrimitive];
|
|
350
73
|
if (n !== void 0) {
|
|
351
|
-
var o = n.call(e,
|
|
74
|
+
var o = n.call(e, t);
|
|
352
75
|
if (typeof o != "object") return o;
|
|
353
76
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
354
77
|
}
|
|
355
|
-
return (
|
|
78
|
+
return (t === "string" ? String : Number)(e);
|
|
356
79
|
}
|
|
357
|
-
function
|
|
358
|
-
return e && e.map((
|
|
80
|
+
function ke(e) {
|
|
81
|
+
return e && e.map((t, n) => /* @__PURE__ */ F.createElement(t.tag, de({
|
|
359
82
|
key: n
|
|
360
|
-
},
|
|
83
|
+
}, t.attr), ke(t.child)));
|
|
361
84
|
}
|
|
362
|
-
function
|
|
363
|
-
return (
|
|
364
|
-
attr:
|
|
365
|
-
},
|
|
85
|
+
function ie(e) {
|
|
86
|
+
return (t) => /* @__PURE__ */ F.createElement(He, ue({
|
|
87
|
+
attr: de({}, e.attr)
|
|
88
|
+
}, t), ke(e.child));
|
|
366
89
|
}
|
|
367
|
-
function
|
|
368
|
-
var
|
|
90
|
+
function He(e) {
|
|
91
|
+
var t = (n) => {
|
|
369
92
|
var {
|
|
370
93
|
attr: o,
|
|
371
|
-
size:
|
|
372
|
-
title:
|
|
373
|
-
} = e,
|
|
374
|
-
return n.className && (
|
|
94
|
+
size: s,
|
|
95
|
+
title: a
|
|
96
|
+
} = e, i = Fe(e, qe), b = s || n.size || "1em", l;
|
|
97
|
+
return n.className && (l = n.className), e.className && (l = (l ? l + " " : "") + e.className), /* @__PURE__ */ F.createElement("svg", ue({
|
|
375
98
|
stroke: "currentColor",
|
|
376
99
|
fill: "currentColor",
|
|
377
100
|
strokeWidth: "0"
|
|
378
|
-
}, n.attr, o,
|
|
379
|
-
className:
|
|
380
|
-
style:
|
|
101
|
+
}, n.attr, o, i, {
|
|
102
|
+
className: l,
|
|
103
|
+
style: de(de({
|
|
381
104
|
color: e.color || n.color
|
|
382
105
|
}, n.style), e.style),
|
|
383
|
-
height:
|
|
384
|
-
width:
|
|
106
|
+
height: b,
|
|
107
|
+
width: b,
|
|
385
108
|
xmlns: "http://www.w3.org/2000/svg"
|
|
386
|
-
}),
|
|
109
|
+
}), a && /* @__PURE__ */ F.createElement("title", null, a), e.children);
|
|
387
110
|
};
|
|
388
|
-
return
|
|
111
|
+
return ge !== void 0 ? /* @__PURE__ */ F.createElement(ge.Consumer, null, (n) => t(n)) : t(Ne);
|
|
389
112
|
}
|
|
390
|
-
function
|
|
391
|
-
return
|
|
113
|
+
function Ke(e) {
|
|
114
|
+
return ie({ attr: { viewBox: "0 0 24 24", fill: "none" }, child: [{ tag: "path", attr: { opacity: "0.2", fillRule: "evenodd", clipRule: "evenodd", d: "M12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19ZM12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z", fill: "currentColor" }, child: [] }, { tag: "path", attr: { d: "M2 12C2 6.47715 6.47715 2 12 2V5C8.13401 5 5 8.13401 5 12H2Z", fill: "currentColor" }, child: [] }] })(e);
|
|
392
115
|
}
|
|
393
|
-
const
|
|
116
|
+
const nn = ({
|
|
394
117
|
children: e,
|
|
395
|
-
disabled:
|
|
118
|
+
disabled: t = !1,
|
|
396
119
|
loading: n = !1,
|
|
397
120
|
onClick: o,
|
|
398
|
-
className:
|
|
399
|
-
"data-testid":
|
|
400
|
-
...
|
|
121
|
+
className: s = "",
|
|
122
|
+
"data-testid": a,
|
|
123
|
+
...i
|
|
401
124
|
}) => {
|
|
402
|
-
const
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
125
|
+
const b = [
|
|
126
|
+
_e.primaryButton,
|
|
127
|
+
t ? _e.primaryButtonDisabled : "",
|
|
128
|
+
s
|
|
406
129
|
].filter(Boolean).join(" ");
|
|
407
|
-
return /* @__PURE__ */
|
|
130
|
+
return /* @__PURE__ */ D(
|
|
408
131
|
"button",
|
|
409
132
|
{
|
|
410
133
|
type: "button",
|
|
411
|
-
className:
|
|
412
|
-
disabled:
|
|
134
|
+
className: b,
|
|
135
|
+
disabled: t || n,
|
|
413
136
|
onClick: o,
|
|
414
|
-
"data-testid":
|
|
415
|
-
...
|
|
137
|
+
"data-testid": a,
|
|
138
|
+
...i,
|
|
416
139
|
children: [
|
|
417
|
-
n && /* @__PURE__ */
|
|
140
|
+
n && /* @__PURE__ */ u(Ke, { className: _e.spinner, size: 12 }),
|
|
418
141
|
e
|
|
419
142
|
]
|
|
420
143
|
}
|
|
421
144
|
);
|
|
422
|
-
},
|
|
423
|
-
secondaryButton:
|
|
424
|
-
secondaryButtonDisabled:
|
|
425
|
-
},
|
|
145
|
+
}, Me = "_secondaryButton_1s7ft_1", Ze = "_secondaryButtonDisabled_1s7ft_33", Be = {
|
|
146
|
+
secondaryButton: Me,
|
|
147
|
+
secondaryButtonDisabled: Ze
|
|
148
|
+
}, rn = ({
|
|
426
149
|
children: e,
|
|
427
|
-
disabled:
|
|
150
|
+
disabled: t = !1,
|
|
428
151
|
onClick: n,
|
|
429
152
|
className: o = "",
|
|
430
|
-
"data-testid":
|
|
431
|
-
...
|
|
153
|
+
"data-testid": s,
|
|
154
|
+
...a
|
|
432
155
|
}) => {
|
|
433
|
-
const
|
|
434
|
-
|
|
435
|
-
|
|
156
|
+
const i = [
|
|
157
|
+
Be.secondaryButton,
|
|
158
|
+
t ? Be.secondaryButtonDisabled : "",
|
|
436
159
|
o
|
|
437
160
|
].filter(Boolean).join(" ");
|
|
438
|
-
return /* @__PURE__ */
|
|
161
|
+
return /* @__PURE__ */ u(
|
|
439
162
|
"button",
|
|
440
163
|
{
|
|
441
164
|
type: "button",
|
|
442
|
-
className:
|
|
443
|
-
disabled:
|
|
165
|
+
className: i,
|
|
166
|
+
disabled: t,
|
|
444
167
|
onClick: n,
|
|
445
|
-
"data-testid":
|
|
446
|
-
...
|
|
168
|
+
"data-testid": s,
|
|
169
|
+
...a,
|
|
447
170
|
children: e
|
|
448
171
|
}
|
|
449
172
|
);
|
|
450
|
-
},
|
|
451
|
-
tabsContainer:
|
|
452
|
-
tabsHeader:
|
|
453
|
-
tabItem:
|
|
454
|
-
tabContent:
|
|
455
|
-
tabLabel:
|
|
456
|
-
tabLine:
|
|
457
|
-
active:
|
|
458
|
-
inactive:
|
|
459
|
-
tabPanels:
|
|
460
|
-
},
|
|
173
|
+
}, Qe = "_tabsContainer_m3c4e_1", Ge = "_tabsHeader_m3c4e_7", Ue = "_tabItem_m3c4e_13", Je = "_tabContent_m3c4e_29", Xe = "_tabLabel_m3c4e_51", Ye = "_tabLine_m3c4e_61", Te = "_active_m3c4e_68", et = "_inactive_m3c4e_76", tt = "_tabPanels_m3c4e_84", q = {
|
|
174
|
+
tabsContainer: Qe,
|
|
175
|
+
tabsHeader: Ge,
|
|
176
|
+
tabItem: Ue,
|
|
177
|
+
tabContent: Je,
|
|
178
|
+
tabLabel: Xe,
|
|
179
|
+
tabLine: Ye,
|
|
180
|
+
active: Te,
|
|
181
|
+
inactive: et,
|
|
182
|
+
tabPanels: tt
|
|
183
|
+
}, on = ({
|
|
461
184
|
tabs: e,
|
|
462
|
-
activeTabId:
|
|
185
|
+
activeTabId: t,
|
|
463
186
|
onTabChange: n,
|
|
464
187
|
className: o = "",
|
|
465
|
-
"data-testid":
|
|
466
|
-
...
|
|
188
|
+
"data-testid": s,
|
|
189
|
+
...a
|
|
467
190
|
}) => {
|
|
468
|
-
var
|
|
469
|
-
const
|
|
470
|
-
return /* @__PURE__ */
|
|
471
|
-
/* @__PURE__ */
|
|
472
|
-
const
|
|
473
|
-
|
|
474
|
-
|
|
191
|
+
var b;
|
|
192
|
+
const i = [q.tabsContainer, o].filter(Boolean).join(" ");
|
|
193
|
+
return /* @__PURE__ */ D("div", { className: i, "data-testid": s, ...a, children: [
|
|
194
|
+
/* @__PURE__ */ u("div", { className: q.tabsHeader, children: e.map((l) => {
|
|
195
|
+
const p = l.id === t, k = [
|
|
196
|
+
q.tabItem,
|
|
197
|
+
p ? q.active : q.inactive
|
|
475
198
|
].filter(Boolean).join(" ");
|
|
476
|
-
return /* @__PURE__ */
|
|
199
|
+
return /* @__PURE__ */ D(
|
|
477
200
|
"button",
|
|
478
201
|
{
|
|
479
202
|
type: "button",
|
|
480
|
-
className:
|
|
481
|
-
onClick: () => n(
|
|
482
|
-
"data-testid": `${
|
|
203
|
+
className: k,
|
|
204
|
+
onClick: () => n(l.id),
|
|
205
|
+
"data-testid": `${s}-tab-${l.id}`,
|
|
483
206
|
children: [
|
|
484
|
-
/* @__PURE__ */
|
|
485
|
-
/* @__PURE__ */
|
|
207
|
+
/* @__PURE__ */ u("div", { className: q.tabContent, children: /* @__PURE__ */ u("span", { className: q.tabLabel, children: l.label }) }),
|
|
208
|
+
/* @__PURE__ */ u("div", { className: q.tabLine })
|
|
486
209
|
]
|
|
487
210
|
},
|
|
488
|
-
|
|
211
|
+
l.id
|
|
489
212
|
);
|
|
490
213
|
}) }),
|
|
491
|
-
/* @__PURE__ */
|
|
214
|
+
/* @__PURE__ */ u("div", { className: q.tabPanels, children: (b = e.find((l) => l.id === t)) == null ? void 0 : b.content })
|
|
492
215
|
] });
|
|
493
216
|
};
|
|
494
|
-
function
|
|
495
|
-
return
|
|
217
|
+
function nt(e) {
|
|
218
|
+
return ie({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "circle", attr: { cx: "11", cy: "11", r: "8" }, child: [] }, { tag: "line", attr: { x1: "21", y1: "21", x2: "16.65", y2: "16.65" }, child: [] }] })(e);
|
|
496
219
|
}
|
|
497
|
-
function
|
|
498
|
-
return
|
|
220
|
+
function rt(e) {
|
|
221
|
+
return ie({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "circle", attr: { cx: "12", cy: "12", r: "10" }, child: [] }, { tag: "line", attr: { x1: "12", y1: "16", x2: "12", y2: "12" }, child: [] }, { tag: "line", attr: { x1: "12", y1: "8", x2: "12.01", y2: "8" }, child: [] }] })(e);
|
|
499
222
|
}
|
|
500
|
-
function
|
|
501
|
-
return
|
|
223
|
+
function ot(e) {
|
|
224
|
+
return ie({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "polyline", attr: { points: "9 18 15 12 9 6" }, child: [] }] })(e);
|
|
502
225
|
}
|
|
503
|
-
function
|
|
504
|
-
return
|
|
226
|
+
function xe(e) {
|
|
227
|
+
return ie({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "polyline", attr: { points: "6 9 12 15 18 9" }, child: [] }] })(e);
|
|
505
228
|
}
|
|
506
|
-
const
|
|
507
|
-
dropdown:
|
|
508
|
-
label:
|
|
509
|
-
required:
|
|
510
|
-
trigger:
|
|
511
|
-
triggerDisabled:
|
|
512
|
-
triggerInput:
|
|
513
|
-
value:
|
|
514
|
-
placeholder:
|
|
515
|
-
chevron:
|
|
516
|
-
open:
|
|
517
|
-
panel:
|
|
518
|
-
panelClosing:
|
|
519
|
-
filterWrapper:
|
|
520
|
-
filterInput:
|
|
521
|
-
filterIcon:
|
|
522
|
-
list:
|
|
523
|
-
option:
|
|
524
|
-
optionSelected:
|
|
525
|
-
optionHighlighted:
|
|
526
|
-
optionDisabled:
|
|
527
|
-
empty:
|
|
528
|
-
disabled:
|
|
529
|
-
},
|
|
530
|
-
const o = e[
|
|
229
|
+
const st = "_dropdown_yz8m1_1", it = "_label_yz8m1_9", lt = "_required_yz8m1_18", at = "_trigger_yz8m1_23", ct = "_triggerDisabled_yz8m1_47", ut = "_triggerInput_yz8m1_56", dt = "_value_yz8m1_74", ft = "_placeholder_yz8m1_81", pt = "_chevron_yz8m1_85", _t = "_open_yz8m1_92", yt = "_panel_yz8m1_116", mt = "_panelClosing_yz8m1_133", ht = "_filterWrapper_yz8m1_137", vt = "_filterInput_yz8m1_144", gt = "_filterIcon_yz8m1_163", bt = "_list_yz8m1_174", Bt = "_option_yz8m1_183", Ct = "_optionSelected_yz8m1_195", wt = "_optionHighlighted_yz8m1_199", Nt = "_optionDisabled_yz8m1_203", kt = "_empty_yz8m1_212", xt = "_disabled_yz8m1_219", v = {
|
|
230
|
+
dropdown: st,
|
|
231
|
+
label: it,
|
|
232
|
+
required: lt,
|
|
233
|
+
trigger: at,
|
|
234
|
+
triggerDisabled: ct,
|
|
235
|
+
triggerInput: ut,
|
|
236
|
+
value: dt,
|
|
237
|
+
placeholder: ft,
|
|
238
|
+
chevron: pt,
|
|
239
|
+
open: _t,
|
|
240
|
+
panel: yt,
|
|
241
|
+
panelClosing: mt,
|
|
242
|
+
filterWrapper: ht,
|
|
243
|
+
filterInput: vt,
|
|
244
|
+
filterIcon: gt,
|
|
245
|
+
list: bt,
|
|
246
|
+
option: Bt,
|
|
247
|
+
optionSelected: Ct,
|
|
248
|
+
optionHighlighted: wt,
|
|
249
|
+
optionDisabled: Nt,
|
|
250
|
+
empty: kt,
|
|
251
|
+
disabled: xt
|
|
252
|
+
}, K = (e, t) => {
|
|
253
|
+
const o = e[t];
|
|
531
254
|
return o != null ? String(o) : "";
|
|
532
|
-
},
|
|
255
|
+
}, Y = (e, t) => e[t], S = (e, t) => t == null ? !1 : !!e[t], sn = ({
|
|
533
256
|
value: e,
|
|
534
|
-
onChange:
|
|
257
|
+
onChange: t,
|
|
535
258
|
onEditEnd: n,
|
|
536
259
|
options: o,
|
|
537
|
-
optionLabel:
|
|
538
|
-
optionValue:
|
|
539
|
-
optionDisabled:
|
|
540
|
-
placeholder:
|
|
541
|
-
filter:
|
|
542
|
-
editable:
|
|
543
|
-
disabled:
|
|
544
|
-
required:
|
|
545
|
-
label:
|
|
546
|
-
inputId:
|
|
547
|
-
className:
|
|
548
|
-
panelClassName:
|
|
549
|
-
valueTemplate:
|
|
550
|
-
itemTemplate:
|
|
551
|
-
"data-testid":
|
|
260
|
+
optionLabel: s = "label",
|
|
261
|
+
optionValue: a = "value",
|
|
262
|
+
optionDisabled: i,
|
|
263
|
+
placeholder: b = "Select",
|
|
264
|
+
filter: l = !1,
|
|
265
|
+
editable: p = !1,
|
|
266
|
+
disabled: k = !1,
|
|
267
|
+
required: P = !1,
|
|
268
|
+
label: I,
|
|
269
|
+
inputId: L,
|
|
270
|
+
className: H = "",
|
|
271
|
+
panelClassName: h = "",
|
|
272
|
+
valueTemplate: y,
|
|
273
|
+
itemTemplate: C,
|
|
274
|
+
"data-testid": g
|
|
552
275
|
}) => {
|
|
553
|
-
const
|
|
554
|
-
(
|
|
555
|
-
),
|
|
556
|
-
() =>
|
|
557
|
-
(
|
|
276
|
+
const x = o.find(
|
|
277
|
+
(r) => Y(r, a) === e
|
|
278
|
+
), N = x ? K(x, s) : "", [c, A] = T(!1), [O, le] = T(!1), [ee, ae] = T(""), [Q, w] = T(N), [_, d] = T(0), z = X(null), W = X(null), E = X(null), G = X(null), U = X(null), te = X(!1), j = me(
|
|
279
|
+
() => l && !p ? o.filter(
|
|
280
|
+
(r) => K(r, s).toLowerCase().includes(ee.toLowerCase())
|
|
558
281
|
) : o,
|
|
559
|
-
[
|
|
282
|
+
[l, p, o, s, ee]
|
|
560
283
|
);
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
}, [
|
|
564
|
-
|
|
565
|
-
var
|
|
566
|
-
return (
|
|
284
|
+
se(() => {
|
|
285
|
+
p && w(N);
|
|
286
|
+
}, [p, e, N]), se(() => {
|
|
287
|
+
c && l && !p && (ae(""), d(0), setTimeout(() => {
|
|
288
|
+
var r;
|
|
289
|
+
return (r = E.current) == null ? void 0 : r.focus();
|
|
567
290
|
}, 0));
|
|
568
|
-
}, [
|
|
569
|
-
if (!
|
|
570
|
-
const
|
|
571
|
-
(
|
|
572
|
-
),
|
|
573
|
-
(
|
|
574
|
-
),
|
|
575
|
-
|
|
576
|
-
}, [
|
|
577
|
-
const
|
|
578
|
-
|
|
579
|
-
}, [
|
|
580
|
-
const
|
|
581
|
-
|
|
582
|
-
},
|
|
583
|
-
var
|
|
584
|
-
(
|
|
291
|
+
}, [c, l, p]), se(() => {
|
|
292
|
+
if (!c) return;
|
|
293
|
+
const r = j.findIndex(
|
|
294
|
+
(B) => Y(B, a) === e
|
|
295
|
+
), f = j.findIndex(
|
|
296
|
+
(B) => !S(B, i)
|
|
297
|
+
), m = r >= 0 && !S(j[r], i);
|
|
298
|
+
d(m ? r : f >= 0 ? f : 0);
|
|
299
|
+
}, [c, e, j, a, i]), se(() => {
|
|
300
|
+
const r = U.current;
|
|
301
|
+
r != null && r.scrollIntoView && typeof r.scrollIntoView == "function" && r.scrollIntoView({ block: "nearest" });
|
|
302
|
+
}, [_]);
|
|
303
|
+
const ne = () => {
|
|
304
|
+
te.current = !0, le(!0);
|
|
305
|
+
}, fe = (r) => {
|
|
306
|
+
var f;
|
|
307
|
+
(te.current || (f = r.animationName) != null && f.includes("menuOut")) && (te.current = !1, A(!1), le(!1), p && w(N));
|
|
585
308
|
};
|
|
586
|
-
|
|
587
|
-
if (!
|
|
588
|
-
const
|
|
589
|
-
|
|
309
|
+
se(() => {
|
|
310
|
+
if (!c && !O) return;
|
|
311
|
+
const r = (f) => {
|
|
312
|
+
z.current && !z.current.contains(f.target) && (p && w(N), ne());
|
|
590
313
|
};
|
|
591
|
-
return document.addEventListener("mousedown",
|
|
592
|
-
}, [
|
|
593
|
-
const
|
|
594
|
-
|
|
595
|
-
},
|
|
596
|
-
if (
|
|
597
|
-
const
|
|
598
|
-
|
|
599
|
-
value:
|
|
600
|
-
originalEvent:
|
|
601
|
-
}),
|
|
602
|
-
},
|
|
603
|
-
if (!
|
|
604
|
-
if (
|
|
605
|
-
|
|
606
|
-
const
|
|
607
|
-
const
|
|
608
|
-
return
|
|
609
|
-
}),
|
|
610
|
-
|
|
611
|
-
value:
|
|
612
|
-
originalEvent:
|
|
314
|
+
return document.addEventListener("mousedown", r), () => document.removeEventListener("mousedown", r);
|
|
315
|
+
}, [c, O, p, N]);
|
|
316
|
+
const re = () => {
|
|
317
|
+
k || A((r) => !r);
|
|
318
|
+
}, oe = (r, f) => {
|
|
319
|
+
if (S(r, i)) return;
|
|
320
|
+
const m = Y(r, a);
|
|
321
|
+
p && w(K(r, s)), t == null || t({
|
|
322
|
+
value: m ?? null,
|
|
323
|
+
originalEvent: f
|
|
324
|
+
}), ne();
|
|
325
|
+
}, ve = (r) => {
|
|
326
|
+
if (!c) {
|
|
327
|
+
if (r.key === "Enter" && p && Q.trim()) {
|
|
328
|
+
r.preventDefault();
|
|
329
|
+
const f = Q.trim(), m = f.toLowerCase(), B = o.find((J) => {
|
|
330
|
+
const V = K(J, s).toLowerCase();
|
|
331
|
+
return V === m || V.startsWith(m);
|
|
332
|
+
}), R = B && !S(B, i) ? Y(B, a) : null;
|
|
333
|
+
B && !S(B, i) && (w(K(B, s)), t == null || t({
|
|
334
|
+
value: R,
|
|
335
|
+
originalEvent: r
|
|
613
336
|
})), n == null || n({
|
|
614
|
-
value:
|
|
615
|
-
selectedValue:
|
|
616
|
-
originalEvent:
|
|
337
|
+
value: f,
|
|
338
|
+
selectedValue: R,
|
|
339
|
+
originalEvent: r
|
|
617
340
|
});
|
|
618
341
|
return;
|
|
619
342
|
}
|
|
620
|
-
(
|
|
343
|
+
(r.key === "Enter" || r.key === " " || r.key === "ArrowDown") && (r.preventDefault(), A(!0));
|
|
621
344
|
return;
|
|
622
345
|
}
|
|
623
|
-
if (
|
|
624
|
-
|
|
346
|
+
if (r.key === "Escape") {
|
|
347
|
+
r.preventDefault(), ne();
|
|
625
348
|
return;
|
|
626
349
|
}
|
|
627
|
-
if (
|
|
628
|
-
|
|
629
|
-
for (let
|
|
630
|
-
if (!
|
|
631
|
-
return
|
|
632
|
-
return
|
|
350
|
+
if (r.key === "ArrowDown") {
|
|
351
|
+
r.preventDefault(), d((f) => {
|
|
352
|
+
for (let m = f + 1; m < j.length; m++)
|
|
353
|
+
if (!S(j[m], i))
|
|
354
|
+
return m;
|
|
355
|
+
return f;
|
|
633
356
|
});
|
|
634
357
|
return;
|
|
635
358
|
}
|
|
636
|
-
if (
|
|
637
|
-
|
|
638
|
-
for (let
|
|
639
|
-
if (!
|
|
640
|
-
return
|
|
641
|
-
return
|
|
359
|
+
if (r.key === "ArrowUp") {
|
|
360
|
+
r.preventDefault(), d((f) => {
|
|
361
|
+
for (let m = f - 1; m >= 0; m--)
|
|
362
|
+
if (!S(j[m], i))
|
|
363
|
+
return m;
|
|
364
|
+
return f;
|
|
642
365
|
});
|
|
643
366
|
return;
|
|
644
367
|
}
|
|
645
|
-
if (
|
|
646
|
-
if (
|
|
647
|
-
const
|
|
648
|
-
if (
|
|
649
|
-
const
|
|
650
|
-
const
|
|
651
|
-
return
|
|
652
|
-
}),
|
|
653
|
-
|
|
654
|
-
value:
|
|
655
|
-
selectedValue:
|
|
656
|
-
originalEvent:
|
|
368
|
+
if (r.key === "Enter") {
|
|
369
|
+
if (r.preventDefault(), p) {
|
|
370
|
+
const f = Q.trim();
|
|
371
|
+
if (f) {
|
|
372
|
+
const m = f.toLowerCase(), B = o.find((J) => {
|
|
373
|
+
const V = K(J, s).toLowerCase();
|
|
374
|
+
return V === m || V.startsWith(m);
|
|
375
|
+
}), R = B && !S(B, i) ? Y(B, a) : null;
|
|
376
|
+
B && !S(B, i) && oe(B, r), n == null || n({
|
|
377
|
+
value: f,
|
|
378
|
+
selectedValue: R,
|
|
379
|
+
originalEvent: r
|
|
657
380
|
});
|
|
658
381
|
} else
|
|
659
|
-
n == null || n({ value: "", selectedValue: null, originalEvent:
|
|
660
|
-
} else if (
|
|
661
|
-
const
|
|
662
|
-
|
|
382
|
+
n == null || n({ value: "", selectedValue: null, originalEvent: r });
|
|
383
|
+
} else if (j[_]) {
|
|
384
|
+
const f = j[_];
|
|
385
|
+
S(f, i) || oe(f, r);
|
|
663
386
|
}
|
|
664
387
|
}
|
|
665
|
-
},
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
].filter(Boolean).join(" "),
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
].filter(Boolean).join(" "),
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
].filter(Boolean).join(" "),
|
|
678
|
-
return /* @__PURE__ */
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
388
|
+
}, Oe = [
|
|
389
|
+
v.dropdown,
|
|
390
|
+
k ? v.disabled : "",
|
|
391
|
+
c ? v.open : "",
|
|
392
|
+
H
|
|
393
|
+
].filter(Boolean).join(" "), ze = [
|
|
394
|
+
v.trigger,
|
|
395
|
+
k ? v.triggerDisabled : ""
|
|
396
|
+
].filter(Boolean).join(" "), De = [
|
|
397
|
+
v.panel,
|
|
398
|
+
O ? v.panelClosing : "",
|
|
399
|
+
h
|
|
400
|
+
].filter(Boolean).join(" "), Ie = he(), ce = L ?? `dropdown-${Ie.replace(/[^a-zA-Z0-9_-]/g, "")}`, pe = `${ce}-panel`;
|
|
401
|
+
return /* @__PURE__ */ D("div", { className: Oe, ref: z, "data-testid": g, children: [
|
|
402
|
+
I != null && /* @__PURE__ */ D("label", { htmlFor: ce, className: v.label, children: [
|
|
403
|
+
I,
|
|
404
|
+
P && /* @__PURE__ */ u("span", { className: v.required, children: "*" })
|
|
682
405
|
] }),
|
|
683
|
-
/* @__PURE__ */
|
|
406
|
+
/* @__PURE__ */ D(
|
|
684
407
|
"div",
|
|
685
408
|
{
|
|
686
|
-
id:
|
|
409
|
+
id: p ? void 0 : ce,
|
|
687
410
|
role: "combobox",
|
|
688
|
-
"aria-expanded":
|
|
411
|
+
"aria-expanded": c || O,
|
|
689
412
|
"aria-haspopup": "listbox",
|
|
690
|
-
"aria-controls":
|
|
691
|
-
"aria-disabled":
|
|
692
|
-
"aria-label": typeof
|
|
693
|
-
tabIndex:
|
|
694
|
-
className:
|
|
695
|
-
onClick:
|
|
696
|
-
onKeyDown:
|
|
697
|
-
"data-testid":
|
|
413
|
+
"aria-controls": c || O ? pe : void 0,
|
|
414
|
+
"aria-disabled": k,
|
|
415
|
+
"aria-label": typeof I == "string" ? I : void 0,
|
|
416
|
+
tabIndex: p || k ? -1 : 0,
|
|
417
|
+
className: ze,
|
|
418
|
+
onClick: p ? void 0 : re,
|
|
419
|
+
onKeyDown: p ? void 0 : ve,
|
|
420
|
+
"data-testid": g && !p ? `${g}-trigger` : void 0,
|
|
698
421
|
children: [
|
|
699
|
-
|
|
422
|
+
p ? /* @__PURE__ */ u(
|
|
700
423
|
"input",
|
|
701
424
|
{
|
|
702
|
-
ref:
|
|
703
|
-
id:
|
|
425
|
+
ref: G,
|
|
426
|
+
id: ce,
|
|
704
427
|
type: "text",
|
|
705
|
-
className:
|
|
706
|
-
value:
|
|
707
|
-
onChange: (
|
|
708
|
-
w(
|
|
428
|
+
className: v.triggerInput,
|
|
429
|
+
value: Q,
|
|
430
|
+
onChange: (r) => {
|
|
431
|
+
w(r.target.value), !c && !O && A(!0), d(0);
|
|
709
432
|
},
|
|
710
433
|
onFocus: () => {
|
|
711
|
-
!
|
|
434
|
+
!k && !c && !O && A(!0);
|
|
712
435
|
},
|
|
713
|
-
onKeyDown:
|
|
714
|
-
placeholder:
|
|
715
|
-
disabled:
|
|
436
|
+
onKeyDown: ve,
|
|
437
|
+
placeholder: b,
|
|
438
|
+
disabled: k,
|
|
716
439
|
"aria-autocomplete": "list",
|
|
717
|
-
"aria-controls":
|
|
718
|
-
"aria-expanded":
|
|
719
|
-
"data-testid":
|
|
440
|
+
"aria-controls": c || O ? pe : void 0,
|
|
441
|
+
"aria-expanded": c || O,
|
|
442
|
+
"data-testid": g ? `${g}-trigger` : void 0
|
|
720
443
|
}
|
|
721
|
-
) : /* @__PURE__ */
|
|
722
|
-
/* @__PURE__ */
|
|
723
|
-
|
|
444
|
+
) : /* @__PURE__ */ u("span", { className: v.value, children: y ? y(x ?? null) : N || /* @__PURE__ */ u("span", { className: v.placeholder, children: b }) }),
|
|
445
|
+
/* @__PURE__ */ u(
|
|
446
|
+
xe,
|
|
724
447
|
{
|
|
725
|
-
className:
|
|
448
|
+
className: v.chevron,
|
|
726
449
|
"aria-hidden": !0,
|
|
727
|
-
onClick:
|
|
450
|
+
onClick: p ? re : void 0
|
|
728
451
|
}
|
|
729
452
|
)
|
|
730
453
|
]
|
|
731
454
|
}
|
|
732
455
|
),
|
|
733
|
-
(
|
|
456
|
+
(c || O) && /* @__PURE__ */ D(
|
|
734
457
|
"div",
|
|
735
458
|
{
|
|
736
|
-
ref:
|
|
737
|
-
id:
|
|
738
|
-
className:
|
|
459
|
+
ref: W,
|
|
460
|
+
id: pe,
|
|
461
|
+
className: De,
|
|
739
462
|
role: "presentation",
|
|
740
|
-
onAnimationEnd:
|
|
741
|
-
"data-testid":
|
|
463
|
+
onAnimationEnd: fe,
|
|
464
|
+
"data-testid": g ? `${g}-panel` : void 0,
|
|
742
465
|
children: [
|
|
743
|
-
|
|
744
|
-
/* @__PURE__ */
|
|
466
|
+
l && !p && /* @__PURE__ */ D("div", { className: v.filterWrapper, children: [
|
|
467
|
+
/* @__PURE__ */ u(
|
|
745
468
|
"input",
|
|
746
469
|
{
|
|
747
|
-
ref:
|
|
470
|
+
ref: E,
|
|
748
471
|
type: "text",
|
|
749
|
-
className:
|
|
750
|
-
value:
|
|
751
|
-
onChange: (
|
|
752
|
-
|
|
472
|
+
className: v.filterInput,
|
|
473
|
+
value: ee,
|
|
474
|
+
onChange: (r) => {
|
|
475
|
+
ae(r.target.value), d(0);
|
|
753
476
|
},
|
|
754
|
-
onKeyDown: (
|
|
755
|
-
|
|
477
|
+
onKeyDown: (r) => {
|
|
478
|
+
r.key === "Escape" && A(!1), r.stopPropagation();
|
|
756
479
|
},
|
|
757
480
|
placeholder: "Search...",
|
|
758
481
|
"aria-label": "Filter options",
|
|
759
482
|
title: "Filter options",
|
|
760
|
-
"data-testid":
|
|
483
|
+
"data-testid": g ? `${g}-filter` : void 0
|
|
761
484
|
}
|
|
762
485
|
),
|
|
763
|
-
/* @__PURE__ */
|
|
486
|
+
/* @__PURE__ */ u(nt, { className: v.filterIcon, "aria-hidden": !0 })
|
|
764
487
|
] }),
|
|
765
|
-
/* @__PURE__ */
|
|
766
|
-
const
|
|
767
|
-
return /* @__PURE__ */
|
|
488
|
+
/* @__PURE__ */ u("ul", { className: v.list, role: "listbox", "aria-label": "Options", children: j.length === 0 ? /* @__PURE__ */ u("li", { className: v.empty, children: "No results" }) : j.map((r, f) => {
|
|
489
|
+
const m = Y(r, a), B = K(r, s), R = S(r, i), J = e === m, V = f === _, Se = m != null ? String(m) : `option-${f}`;
|
|
490
|
+
return /* @__PURE__ */ u(
|
|
768
491
|
"li",
|
|
769
492
|
{
|
|
770
|
-
ref:
|
|
493
|
+
ref: V ? U : void 0,
|
|
771
494
|
role: "option",
|
|
772
|
-
"aria-selected":
|
|
773
|
-
"aria-disabled":
|
|
495
|
+
"aria-selected": J,
|
|
496
|
+
"aria-disabled": R,
|
|
774
497
|
className: [
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
498
|
+
v.option,
|
|
499
|
+
J ? v.optionSelected : "",
|
|
500
|
+
V ? v.optionHighlighted : "",
|
|
501
|
+
R ? v.optionDisabled : ""
|
|
779
502
|
].filter(Boolean).join(" "),
|
|
780
|
-
onMouseEnter: () => !
|
|
781
|
-
onClick: (
|
|
782
|
-
"data-testid":
|
|
783
|
-
children:
|
|
503
|
+
onMouseEnter: () => !R && d(f),
|
|
504
|
+
onClick: (Pe) => oe(r, Pe),
|
|
505
|
+
"data-testid": g ? `${g}-option-${f}` : void 0,
|
|
506
|
+
children: C ? C(r) : B
|
|
784
507
|
},
|
|
785
|
-
|
|
508
|
+
Se
|
|
786
509
|
);
|
|
787
510
|
}) })
|
|
788
511
|
]
|
|
789
512
|
}
|
|
790
513
|
)
|
|
791
514
|
] });
|
|
792
|
-
},
|
|
793
|
-
inputText:
|
|
794
|
-
label:
|
|
795
|
-
required:
|
|
796
|
-
tooltipIcon:
|
|
797
|
-
input:
|
|
798
|
-
inputTextarea:
|
|
799
|
-
inputTextDisabled:
|
|
800
|
-
},
|
|
515
|
+
}, jt = "_inputText_1crp5_1", Ot = "_label_1crp5_9", zt = "_required_1crp5_20", Dt = "_tooltipIcon_1crp5_25", It = "_input_1crp5_1", St = "_inputTextarea_1crp5_72", Pt = "_inputTextDisabled_1crp5_79", M = {
|
|
516
|
+
inputText: jt,
|
|
517
|
+
label: Ot,
|
|
518
|
+
required: zt,
|
|
519
|
+
tooltipIcon: Dt,
|
|
520
|
+
input: It,
|
|
521
|
+
inputTextarea: St,
|
|
522
|
+
inputTextDisabled: Pt
|
|
523
|
+
}, ln = ({
|
|
801
524
|
label: e,
|
|
802
|
-
tooltip:
|
|
525
|
+
tooltip: t,
|
|
803
526
|
required: n = !1,
|
|
804
527
|
inputId: o,
|
|
805
|
-
textarea:
|
|
806
|
-
rows:
|
|
807
|
-
className:
|
|
808
|
-
"data-testid":
|
|
809
|
-
disabled:
|
|
810
|
-
...
|
|
528
|
+
textarea: s = !1,
|
|
529
|
+
rows: a,
|
|
530
|
+
className: i = "",
|
|
531
|
+
"data-testid": b,
|
|
532
|
+
disabled: l = !1,
|
|
533
|
+
...p
|
|
811
534
|
}) => {
|
|
812
|
-
const { type:
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
].filter(Boolean).join(" "),
|
|
817
|
-
let
|
|
818
|
-
|
|
819
|
-
const
|
|
820
|
-
id:
|
|
821
|
-
className:
|
|
822
|
-
disabled:
|
|
823
|
-
...
|
|
824
|
-
...
|
|
825
|
-
"data-testid":
|
|
535
|
+
const { type: k = "text", ...P } = p, I = he(), L = o || `input-text-${I.replace(/[^a-zA-Z0-9_-]/g, "")}`, H = [
|
|
536
|
+
M.inputText,
|
|
537
|
+
l ? M.inputTextDisabled : "",
|
|
538
|
+
i
|
|
539
|
+
].filter(Boolean).join(" "), h = P["aria-invalid"];
|
|
540
|
+
let y;
|
|
541
|
+
h === void 0 ? y = void 0 : h === !0 ? y = "true" : h === !1 ? y = "false" : y = h;
|
|
542
|
+
const C = n ? { "aria-required": "true" } : { "aria-required": "false" }, g = y === void 0 ? {} : { "aria-invalid": y }, x = [M.input, s ? M.inputTextarea : ""].filter(Boolean).join(" "), N = {
|
|
543
|
+
id: L,
|
|
544
|
+
className: x,
|
|
545
|
+
disabled: l,
|
|
546
|
+
...C,
|
|
547
|
+
...g,
|
|
548
|
+
"data-testid": b ? `${b}-input` : void 0
|
|
826
549
|
};
|
|
827
|
-
return /* @__PURE__ */
|
|
828
|
-
e != null && /* @__PURE__ */
|
|
550
|
+
return /* @__PURE__ */ D("div", { className: H, "data-testid": b, children: [
|
|
551
|
+
e != null && /* @__PURE__ */ D("label", { htmlFor: L, className: M.label, children: [
|
|
829
552
|
e,
|
|
830
|
-
n && /* @__PURE__ */
|
|
831
|
-
|
|
553
|
+
n && /* @__PURE__ */ u("span", { className: M.required, children: "*" }),
|
|
554
|
+
t != null && /* @__PURE__ */ u(
|
|
832
555
|
"span",
|
|
833
556
|
{
|
|
834
|
-
className:
|
|
835
|
-
title:
|
|
836
|
-
"aria-label":
|
|
837
|
-
children: /* @__PURE__ */
|
|
557
|
+
className: M.tooltipIcon,
|
|
558
|
+
title: t,
|
|
559
|
+
"aria-label": t,
|
|
560
|
+
children: /* @__PURE__ */ u(rt, { "aria-hidden": !0 })
|
|
838
561
|
}
|
|
839
562
|
)
|
|
840
563
|
] }),
|
|
841
|
-
|
|
564
|
+
s ? /* @__PURE__ */ u(
|
|
842
565
|
"textarea",
|
|
843
566
|
{
|
|
844
|
-
|
|
845
|
-
...
|
|
846
|
-
rows:
|
|
567
|
+
...P,
|
|
568
|
+
...N,
|
|
569
|
+
rows: a ?? 3
|
|
847
570
|
}
|
|
848
|
-
) : /* @__PURE__ */
|
|
571
|
+
) : /* @__PURE__ */ u("input", { ...P, ...N, type: k })
|
|
849
572
|
] });
|
|
850
|
-
},
|
|
851
|
-
accordion:
|
|
852
|
-
tab:
|
|
853
|
-
headerButton:
|
|
854
|
-
headerContent:
|
|
855
|
-
icon:
|
|
856
|
-
panel:
|
|
857
|
-
panelCollapsed:
|
|
858
|
-
panelOpen:
|
|
859
|
-
panelContent:
|
|
860
|
-
noBorderLast:
|
|
861
|
-
},
|
|
862
|
-
|
|
863
|
-
const
|
|
573
|
+
}, $t = "_accordion_l1hoq_1", Lt = "_tab_l1hoq_6", At = "_headerButton_l1hoq_11", qt = "_headerContent_l1hoq_39", Ft = "_icon_l1hoq_45", Wt = "_panel_l1hoq_53", Et = "_panelCollapsed_l1hoq_58", Rt = "_panelOpen_l1hoq_64", Vt = "_panelContent_l1hoq_70", Ht = "_noBorderLast_l1hoq_74", $ = {
|
|
574
|
+
accordion: $t,
|
|
575
|
+
tab: Lt,
|
|
576
|
+
headerButton: At,
|
|
577
|
+
headerContent: qt,
|
|
578
|
+
icon: Ft,
|
|
579
|
+
panel: Wt,
|
|
580
|
+
panelCollapsed: Et,
|
|
581
|
+
panelOpen: Rt,
|
|
582
|
+
panelContent: Vt,
|
|
583
|
+
noBorderLast: Ht
|
|
584
|
+
}, je = (e) => null;
|
|
585
|
+
je.displayName = "AccordionTab";
|
|
586
|
+
const Kt = (e, t) => e == null ? [] : Array.isArray(e) ? t ? e : e.slice(0, 1) : [e], Mt = (e) => e.replace(/[^a-zA-Z0-9_-]/g, ""), Zt = ({
|
|
864
587
|
activeIndex: e,
|
|
865
|
-
multiple:
|
|
588
|
+
multiple: t = !1,
|
|
866
589
|
expandIcon: n,
|
|
867
590
|
collapseIcon: o,
|
|
868
|
-
onTabChange:
|
|
869
|
-
onTabOpen:
|
|
870
|
-
onTabClose:
|
|
871
|
-
className:
|
|
872
|
-
transitionOptions:
|
|
873
|
-
pt:
|
|
874
|
-
ptOptions:
|
|
875
|
-
unstyled:
|
|
876
|
-
children:
|
|
877
|
-
...
|
|
591
|
+
onTabChange: s,
|
|
592
|
+
onTabOpen: a,
|
|
593
|
+
onTabClose: i,
|
|
594
|
+
className: b = "",
|
|
595
|
+
transitionOptions: l,
|
|
596
|
+
pt: p,
|
|
597
|
+
ptOptions: k,
|
|
598
|
+
unstyled: P,
|
|
599
|
+
children: I,
|
|
600
|
+
...L
|
|
878
601
|
}) => {
|
|
879
|
-
const
|
|
880
|
-
(
|
|
881
|
-
), [
|
|
882
|
-
const
|
|
883
|
-
if (
|
|
884
|
-
const
|
|
885
|
-
|
|
602
|
+
const H = he(), h = Mt(H), y = me(() => F.Children.toArray(I).filter(
|
|
603
|
+
(_) => F.isValidElement(_) && _.type === je
|
|
604
|
+
), [I]), C = e !== void 0, g = me(() => Kt(e, t), [e, t]), [x, N] = T([]), c = C ? g : x, A = typeof l == "object" && l != null && typeof l.timeout == "number" ? l.timeout : void 0, O = /* @__PURE__ */ u(ot, { "aria-hidden": !0 }), le = /* @__PURE__ */ u(xe, { "aria-hidden": !0 }), ee = n ?? O, ae = o ?? le, Q = (w, _) => {
|
|
605
|
+
const d = c.includes(w);
|
|
606
|
+
if (t) {
|
|
607
|
+
const E = d ? c.filter((G) => G !== w) : [...c, w];
|
|
608
|
+
C || N(E), s == null || s({ index: E, originalEvent: _ }), d ? i == null || i({ index: w, originalEvent: _ }) : a == null || a({ index: w, originalEvent: _ });
|
|
886
609
|
return;
|
|
887
610
|
}
|
|
888
|
-
const
|
|
889
|
-
if (
|
|
890
|
-
|
|
611
|
+
const z = c.length ? c[0] : null, W = d ? [] : [w];
|
|
612
|
+
if (C || N(W), s == null || s({ index: W, originalEvent: _ }), d) {
|
|
613
|
+
i == null || i({ index: w, originalEvent: _ });
|
|
891
614
|
return;
|
|
892
615
|
}
|
|
893
|
-
|
|
616
|
+
z != null && (i == null || i({ index: z, originalEvent: _ })), a == null || a({ index: w, originalEvent: _ });
|
|
894
617
|
};
|
|
895
|
-
return /* @__PURE__ */
|
|
618
|
+
return /* @__PURE__ */ u(
|
|
896
619
|
"div",
|
|
897
620
|
{
|
|
898
|
-
className: [
|
|
899
|
-
...
|
|
900
|
-
children:
|
|
901
|
-
var
|
|
902
|
-
const
|
|
903
|
-
index:
|
|
904
|
-
selected:
|
|
905
|
-
disabled:
|
|
906
|
-
count:
|
|
907
|
-
first:
|
|
908
|
-
last:
|
|
909
|
-
}) :
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
].filter(Boolean).join(" "),
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
].filter(Boolean).join(" "),
|
|
917
|
-
return /* @__PURE__ */
|
|
621
|
+
className: [$.accordion, b].filter(Boolean).join(" "),
|
|
622
|
+
...L,
|
|
623
|
+
children: y.map((w, _) => {
|
|
624
|
+
var re;
|
|
625
|
+
const d = w.props, z = c.includes(_), W = !!d.disabled, E = `${h}-header-${_}`, G = `${h}-content-${_}`, U = d.headerTemplate != null ? typeof d.headerTemplate == "function" ? d.headerTemplate({
|
|
626
|
+
index: _,
|
|
627
|
+
selected: z,
|
|
628
|
+
disabled: W,
|
|
629
|
+
count: y.length,
|
|
630
|
+
first: _ === 0,
|
|
631
|
+
last: _ === y.length - 1
|
|
632
|
+
}) : d.headerTemplate : d.header, te = z ? ae : ee, j = [
|
|
633
|
+
$.headerButton,
|
|
634
|
+
d.headerClassName ?? ""
|
|
635
|
+
].filter(Boolean).join(" "), ne = [
|
|
636
|
+
$.tab,
|
|
637
|
+
d.className ?? "",
|
|
638
|
+
_ === y.length - 1 ? $.noBorderLast : ""
|
|
639
|
+
].filter(Boolean).join(" "), fe = typeof U == "string" ? U : void 0;
|
|
640
|
+
return /* @__PURE__ */ D(
|
|
918
641
|
"div",
|
|
919
642
|
{
|
|
920
|
-
className:
|
|
921
|
-
style:
|
|
643
|
+
className: ne,
|
|
644
|
+
style: d.style,
|
|
922
645
|
children: [
|
|
923
|
-
/* @__PURE__ */
|
|
646
|
+
/* @__PURE__ */ D(
|
|
924
647
|
"button",
|
|
925
648
|
{
|
|
926
|
-
id:
|
|
649
|
+
id: E,
|
|
927
650
|
type: "button",
|
|
928
|
-
disabled:
|
|
929
|
-
className:
|
|
930
|
-
style:
|
|
931
|
-
"aria-controls":
|
|
932
|
-
"aria-expanded":
|
|
933
|
-
"aria-disabled":
|
|
934
|
-
tabIndex:
|
|
935
|
-
onClick: (
|
|
936
|
-
...
|
|
937
|
-
"aria-label": ((
|
|
651
|
+
disabled: W,
|
|
652
|
+
className: j,
|
|
653
|
+
style: d.headerStyle,
|
|
654
|
+
"aria-controls": G,
|
|
655
|
+
"aria-expanded": z,
|
|
656
|
+
"aria-disabled": W,
|
|
657
|
+
tabIndex: d.tabIndex,
|
|
658
|
+
onClick: (oe) => Q(_, oe),
|
|
659
|
+
...d.headerProps,
|
|
660
|
+
"aria-label": ((re = d.headerProps) == null ? void 0 : re["aria-label"]) ?? fe,
|
|
938
661
|
children: [
|
|
939
|
-
/* @__PURE__ */
|
|
940
|
-
/* @__PURE__ */
|
|
662
|
+
/* @__PURE__ */ u("span", { className: $.headerContent, children: U }),
|
|
663
|
+
/* @__PURE__ */ u("span", { className: $.icon, "aria-hidden": !0, children: te })
|
|
941
664
|
]
|
|
942
665
|
}
|
|
943
666
|
),
|
|
944
|
-
/* @__PURE__ */
|
|
667
|
+
/* @__PURE__ */ u(
|
|
945
668
|
"div",
|
|
946
669
|
{
|
|
947
|
-
id:
|
|
670
|
+
id: G,
|
|
948
671
|
role: "region",
|
|
949
|
-
"aria-labelledby":
|
|
950
|
-
"aria-hidden": !
|
|
672
|
+
"aria-labelledby": E,
|
|
673
|
+
"aria-hidden": !z,
|
|
951
674
|
className: [
|
|
952
|
-
|
|
953
|
-
|
|
675
|
+
$.panel,
|
|
676
|
+
z ? $.panelOpen : $.panelCollapsed
|
|
954
677
|
].join(" "),
|
|
955
678
|
style: {
|
|
956
|
-
transitionDuration:
|
|
679
|
+
transitionDuration: A ? `${A}ms` : void 0
|
|
957
680
|
},
|
|
958
|
-
children: /* @__PURE__ */
|
|
681
|
+
children: /* @__PURE__ */ u(
|
|
959
682
|
"div",
|
|
960
683
|
{
|
|
961
684
|
className: [
|
|
962
|
-
|
|
963
|
-
|
|
685
|
+
$.panelContent,
|
|
686
|
+
d.contentClassName ?? ""
|
|
964
687
|
].filter(Boolean).join(" "),
|
|
965
|
-
style:
|
|
966
|
-
children:
|
|
688
|
+
style: d.contentStyle,
|
|
689
|
+
children: d.children
|
|
967
690
|
}
|
|
968
691
|
)
|
|
969
692
|
}
|
|
970
693
|
)
|
|
971
694
|
]
|
|
972
695
|
},
|
|
973
|
-
|
|
696
|
+
_
|
|
974
697
|
);
|
|
975
698
|
})
|
|
976
699
|
}
|
|
977
700
|
);
|
|
978
701
|
};
|
|
979
|
-
|
|
980
|
-
const
|
|
981
|
-
selectButton:
|
|
982
|
-
selectButtonDisabled:
|
|
983
|
-
selectButtonInvalid:
|
|
984
|
-
button:
|
|
985
|
-
buttonFirst:
|
|
986
|
-
buttonLast:
|
|
987
|
-
buttonSelected:
|
|
988
|
-
},
|
|
989
|
-
const o = e[
|
|
702
|
+
Zt.displayName = "Accordion";
|
|
703
|
+
const Qt = "_selectButton_1u3fo_1", Gt = "_selectButtonDisabled_1u3fo_9", Ut = "_selectButtonInvalid_1u3fo_14", Jt = "_button_1u3fo_14", Xt = "_buttonFirst_1u3fo_47", Yt = "_buttonLast_1u3fo_51", Tt = "_buttonSelected_1u3fo_59", Z = {
|
|
704
|
+
selectButton: Qt,
|
|
705
|
+
selectButtonDisabled: Gt,
|
|
706
|
+
selectButtonInvalid: Ut,
|
|
707
|
+
button: Jt,
|
|
708
|
+
buttonFirst: Xt,
|
|
709
|
+
buttonLast: Yt,
|
|
710
|
+
buttonSelected: Tt
|
|
711
|
+
}, Ce = (e, t) => {
|
|
712
|
+
const o = e[t];
|
|
990
713
|
return o != null ? String(o) : "";
|
|
991
|
-
},
|
|
714
|
+
}, ye = (e, t) => e[t], we = (e, t) => t == null ? !1 : !!e[t], an = ({
|
|
992
715
|
value: e,
|
|
993
|
-
onChange:
|
|
716
|
+
onChange: t,
|
|
994
717
|
options: n,
|
|
995
718
|
optionLabel: o = "label",
|
|
996
|
-
optionValue:
|
|
997
|
-
optionDisabled:
|
|
998
|
-
multiple:
|
|
999
|
-
itemTemplate:
|
|
1000
|
-
disabled:
|
|
1001
|
-
invalid:
|
|
1002
|
-
className:
|
|
1003
|
-
"data-testid":
|
|
719
|
+
optionValue: s = "value",
|
|
720
|
+
optionDisabled: a,
|
|
721
|
+
multiple: i = !1,
|
|
722
|
+
itemTemplate: b,
|
|
723
|
+
disabled: l = !1,
|
|
724
|
+
invalid: p = !1,
|
|
725
|
+
className: k = "",
|
|
726
|
+
"data-testid": P
|
|
1004
727
|
}) => {
|
|
1005
|
-
const
|
|
1006
|
-
const
|
|
1007
|
-
return
|
|
1008
|
-
},
|
|
1009
|
-
if (
|
|
1010
|
-
const
|
|
1011
|
-
if (
|
|
1012
|
-
let
|
|
1013
|
-
if (
|
|
1014
|
-
const
|
|
1015
|
-
|
|
728
|
+
const I = (h) => {
|
|
729
|
+
const y = ye(h, s);
|
|
730
|
+
return i && Array.isArray(e) ? e.includes(y) : e === y;
|
|
731
|
+
}, L = (h, y) => {
|
|
732
|
+
if (l || we(h, a)) return;
|
|
733
|
+
const C = ye(h, s);
|
|
734
|
+
if (C === void 0) return;
|
|
735
|
+
let g;
|
|
736
|
+
if (i) {
|
|
737
|
+
const x = Array.isArray(e) ? e : [];
|
|
738
|
+
g = x.includes(C) ? x.filter((c) => c !== C) : [...x, C];
|
|
1016
739
|
} else
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
value:
|
|
1020
|
-
originalEvent:
|
|
740
|
+
g = e === C ? null : C;
|
|
741
|
+
t == null || t({
|
|
742
|
+
value: g,
|
|
743
|
+
originalEvent: y
|
|
1021
744
|
});
|
|
1022
|
-
},
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
745
|
+
}, H = [
|
|
746
|
+
Z.selectButton,
|
|
747
|
+
l ? Z.selectButtonDisabled : "",
|
|
748
|
+
p ? Z.selectButtonInvalid : "",
|
|
749
|
+
k
|
|
1027
750
|
].filter(Boolean).join(" ");
|
|
1028
|
-
return /* @__PURE__ */
|
|
751
|
+
return /* @__PURE__ */ u(
|
|
1029
752
|
"div",
|
|
1030
753
|
{
|
|
1031
|
-
className:
|
|
754
|
+
className: H,
|
|
1032
755
|
role: "group",
|
|
1033
|
-
"aria-disabled":
|
|
1034
|
-
"data-testid":
|
|
1035
|
-
children: n.map((
|
|
1036
|
-
const
|
|
1037
|
-
return /* @__PURE__ */
|
|
756
|
+
"aria-disabled": l,
|
|
757
|
+
"data-testid": P,
|
|
758
|
+
children: n.map((h, y) => {
|
|
759
|
+
const C = ye(h, s), g = C != null ? String(C) : `option-${y}`, x = we(h, a), N = I(h);
|
|
760
|
+
return /* @__PURE__ */ u(
|
|
1038
761
|
"button",
|
|
1039
762
|
{
|
|
1040
763
|
type: "button",
|
|
1041
|
-
"aria-pressed":
|
|
1042
|
-
"aria-disabled":
|
|
1043
|
-
"aria-label":
|
|
1044
|
-
disabled:
|
|
764
|
+
"aria-pressed": N,
|
|
765
|
+
"aria-disabled": x || l,
|
|
766
|
+
"aria-label": Ce(h, o),
|
|
767
|
+
disabled: l || x,
|
|
1045
768
|
className: [
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
769
|
+
Z.button,
|
|
770
|
+
N ? Z.buttonSelected : "",
|
|
771
|
+
y === 0 ? Z.buttonFirst : "",
|
|
772
|
+
y === n.length - 1 ? Z.buttonLast : ""
|
|
1050
773
|
].filter(Boolean).join(" "),
|
|
1051
|
-
onClick: (
|
|
1052
|
-
onKeyDown: (
|
|
1053
|
-
(
|
|
774
|
+
onClick: (c) => L(h, c),
|
|
775
|
+
onKeyDown: (c) => {
|
|
776
|
+
(c.key === " " || c.key === "Enter") && (c.preventDefault(), L(h, c));
|
|
1054
777
|
},
|
|
1055
|
-
"data-testid":
|
|
1056
|
-
children:
|
|
778
|
+
"data-testid": P ? `${P}-option-${y}` : void 0,
|
|
779
|
+
children: b ? b(h) : Ce(h, o)
|
|
1057
780
|
},
|
|
1058
|
-
|
|
781
|
+
g
|
|
1059
782
|
);
|
|
1060
783
|
})
|
|
1061
784
|
}
|
|
1062
785
|
);
|
|
1063
786
|
};
|
|
1064
787
|
export {
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
788
|
+
Zt as Accordion,
|
|
789
|
+
je as AccordionTab,
|
|
790
|
+
sn as Dropdown,
|
|
791
|
+
ln as InputText,
|
|
792
|
+
nn as PrimaryButton,
|
|
793
|
+
rn as SecondaryButton,
|
|
794
|
+
an as SelectButton,
|
|
795
|
+
on as Tabs
|
|
1073
796
|
};
|