skillgrid 0.0.23-dev-31782-34252-avatar-and-badge.1144012 → 0.0.24-dev-31782-34252-avatar-and-badge.1146081
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/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as ut from "react";
|
|
2
|
-
import _t, { forwardRef as
|
|
3
|
-
import tt, { clsx as
|
|
2
|
+
import _t, { forwardRef as K, useState as Se, useEffect as De, useRef as pt, useCallback as et, Fragment as ft, createContext as qt, useContext as Vt } from "react";
|
|
3
|
+
import tt, { clsx as U } from "clsx";
|
|
4
4
|
import './index.css';function Wt(t) {
|
|
5
5
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
6
6
|
}
|
|
@@ -68,14 +68,14 @@ function Ut() {
|
|
|
68
68
|
}
|
|
69
69
|
var P = !1, z = !1, B = !1, L = !1, F = !1, A;
|
|
70
70
|
A = Symbol.for("react.module.reference");
|
|
71
|
-
function
|
|
71
|
+
function G(e) {
|
|
72
72
|
return !!(typeof e == "string" || typeof e == "function" || e === s || e === i || F || e === d || e === b || e === f || L || e === C || P || z || B || typeof e == "object" && e !== null && (e.$$typeof === h || e.$$typeof === g || e.$$typeof === u || e.$$typeof === _ || e.$$typeof === c || // This needs to include all possible module reference object
|
|
73
73
|
// types supported by any Flight configuration anywhere since
|
|
74
74
|
// we don't know which Flight build this will end up being used
|
|
75
75
|
// with.
|
|
76
76
|
e.$$typeof === A || e.getModuleId !== void 0));
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function Y(e, a, l) {
|
|
79
79
|
var p = e.displayName;
|
|
80
80
|
if (p)
|
|
81
81
|
return p;
|
|
@@ -115,7 +115,7 @@ function Ut() {
|
|
|
115
115
|
var l = e;
|
|
116
116
|
return W(l._context) + ".Provider";
|
|
117
117
|
case c:
|
|
118
|
-
return
|
|
118
|
+
return Y(e, e.render, "ForwardRef");
|
|
119
119
|
case g:
|
|
120
120
|
var p = e.displayName || null;
|
|
121
121
|
return p !== null ? p : M(e.type) || "Memo";
|
|
@@ -130,14 +130,14 @@ function Ut() {
|
|
|
130
130
|
}
|
|
131
131
|
return null;
|
|
132
132
|
}
|
|
133
|
-
var S = Object.assign, q = 0,
|
|
133
|
+
var S = Object.assign, q = 0, Q, te, he, ye, me, ve, Ce;
|
|
134
134
|
function xe() {
|
|
135
135
|
}
|
|
136
136
|
xe.__reactDisabledLog = !0;
|
|
137
137
|
function Re() {
|
|
138
138
|
{
|
|
139
139
|
if (q === 0) {
|
|
140
|
-
|
|
140
|
+
Q = console.log, te = console.info, he = console.warn, ye = console.error, me = console.group, ve = console.groupCollapsed, Ce = console.groupEnd;
|
|
141
141
|
var e = {
|
|
142
142
|
configurable: !0,
|
|
143
143
|
enumerable: !0,
|
|
@@ -167,10 +167,10 @@ function Ut() {
|
|
|
167
167
|
};
|
|
168
168
|
Object.defineProperties(console, {
|
|
169
169
|
log: S({}, e, {
|
|
170
|
-
value:
|
|
170
|
+
value: Q
|
|
171
171
|
}),
|
|
172
172
|
info: S({}, e, {
|
|
173
|
-
value:
|
|
173
|
+
value: te
|
|
174
174
|
}),
|
|
175
175
|
warn: S({}, e, {
|
|
176
176
|
value: he
|
|
@@ -192,35 +192,35 @@ function Ut() {
|
|
|
192
192
|
q < 0 && m("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
|
-
var de = k.ReactCurrentDispatcher,
|
|
196
|
-
function
|
|
195
|
+
var de = k.ReactCurrentDispatcher, ae;
|
|
196
|
+
function X(e, a, l) {
|
|
197
197
|
{
|
|
198
|
-
if (
|
|
198
|
+
if (ae === void 0)
|
|
199
199
|
try {
|
|
200
200
|
throw Error();
|
|
201
201
|
} catch (x) {
|
|
202
202
|
var p = x.stack.trim().match(/\n( *(at )?)/);
|
|
203
|
-
|
|
203
|
+
ae = p && p[1] || "";
|
|
204
204
|
}
|
|
205
205
|
return `
|
|
206
|
-
` +
|
|
206
|
+
` + ae + e;
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
|
-
var
|
|
209
|
+
var re = !1, ee;
|
|
210
210
|
{
|
|
211
211
|
var ue = typeof WeakMap == "function" ? WeakMap : Map;
|
|
212
|
-
|
|
212
|
+
ee = new ue();
|
|
213
213
|
}
|
|
214
214
|
function ze(e, a) {
|
|
215
|
-
if (!e ||
|
|
215
|
+
if (!e || re)
|
|
216
216
|
return "";
|
|
217
217
|
{
|
|
218
|
-
var l =
|
|
218
|
+
var l = ee.get(e);
|
|
219
219
|
if (l !== void 0)
|
|
220
220
|
return l;
|
|
221
221
|
}
|
|
222
222
|
var p;
|
|
223
|
-
|
|
223
|
+
re = !0;
|
|
224
224
|
var x = Error.prepareStackTrace;
|
|
225
225
|
Error.prepareStackTrace = void 0;
|
|
226
226
|
var $;
|
|
@@ -270,22 +270,22 @@ function Ut() {
|
|
|
270
270
|
if (R--, T--, T < 0 || y[R] !== I[T]) {
|
|
271
271
|
var V = `
|
|
272
272
|
` + y[R].replace(" at new ", " at ");
|
|
273
|
-
return e.displayName && V.includes("<anonymous>") && (V = V.replace("<anonymous>", e.displayName)), typeof e == "function" &&
|
|
273
|
+
return e.displayName && V.includes("<anonymous>") && (V = V.replace("<anonymous>", e.displayName)), typeof e == "function" && ee.set(e, V), V;
|
|
274
274
|
}
|
|
275
275
|
while (R >= 1 && T >= 0);
|
|
276
276
|
break;
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
279
|
} finally {
|
|
280
|
-
|
|
280
|
+
re = !1, de.current = $, je(), Error.prepareStackTrace = x;
|
|
281
281
|
}
|
|
282
|
-
var
|
|
283
|
-
return typeof e == "function" &&
|
|
282
|
+
var ie = e ? e.displayName || e.name : "", ne = ie ? X(ie) : "";
|
|
283
|
+
return typeof e == "function" && ee.set(e, ne), ne;
|
|
284
284
|
}
|
|
285
|
-
function
|
|
285
|
+
function yt(e, a, l) {
|
|
286
286
|
return ze(e, !1);
|
|
287
287
|
}
|
|
288
|
-
function
|
|
288
|
+
function mt(e) {
|
|
289
289
|
var a = e.prototype;
|
|
290
290
|
return !!(a && a.isReactComponent);
|
|
291
291
|
}
|
|
@@ -293,19 +293,19 @@ function Ut() {
|
|
|
293
293
|
if (e == null)
|
|
294
294
|
return "";
|
|
295
295
|
if (typeof e == "function")
|
|
296
|
-
return ze(e,
|
|
296
|
+
return ze(e, mt(e));
|
|
297
297
|
if (typeof e == "string")
|
|
298
|
-
return
|
|
298
|
+
return X(e);
|
|
299
299
|
switch (e) {
|
|
300
300
|
case b:
|
|
301
|
-
return
|
|
301
|
+
return X("Suspense");
|
|
302
302
|
case f:
|
|
303
|
-
return
|
|
303
|
+
return X("SuspenseList");
|
|
304
304
|
}
|
|
305
305
|
if (typeof e == "object")
|
|
306
306
|
switch (e.$$typeof) {
|
|
307
307
|
case c:
|
|
308
|
-
return
|
|
308
|
+
return yt(e.render);
|
|
309
309
|
case g:
|
|
310
310
|
return we(e.type, a, l);
|
|
311
311
|
case h: {
|
|
@@ -326,7 +326,7 @@ function Ut() {
|
|
|
326
326
|
} else
|
|
327
327
|
Fe.setExtraStackFrame(null);
|
|
328
328
|
}
|
|
329
|
-
function
|
|
329
|
+
function vt(e, a, l, p, x) {
|
|
330
330
|
{
|
|
331
331
|
var $ = Function.call.bind(_e);
|
|
332
332
|
for (var v in e)
|
|
@@ -345,17 +345,17 @@ function Ut() {
|
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
|
-
var
|
|
348
|
+
var Ct = Array.isArray;
|
|
349
349
|
function Te(e) {
|
|
350
|
-
return
|
|
350
|
+
return Ct(e);
|
|
351
351
|
}
|
|
352
|
-
function
|
|
352
|
+
function xt(e) {
|
|
353
353
|
{
|
|
354
354
|
var a = typeof Symbol == "function" && Symbol.toStringTag, l = a && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
355
355
|
return l;
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
|
-
function
|
|
358
|
+
function wt(e) {
|
|
359
359
|
try {
|
|
360
360
|
return qe(e), !1;
|
|
361
361
|
} catch {
|
|
@@ -366,16 +366,16 @@ function Ut() {
|
|
|
366
366
|
return "" + e;
|
|
367
367
|
}
|
|
368
368
|
function Ve(e) {
|
|
369
|
-
if (
|
|
370
|
-
return m("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
369
|
+
if (wt(e))
|
|
370
|
+
return m("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", xt(e)), qe(e);
|
|
371
371
|
}
|
|
372
|
-
var We = k.ReactCurrentOwner,
|
|
372
|
+
var We = k.ReactCurrentOwner, $t = {
|
|
373
373
|
key: !0,
|
|
374
374
|
ref: !0,
|
|
375
375
|
__self: !0,
|
|
376
376
|
__source: !0
|
|
377
377
|
}, Ze, Ue;
|
|
378
|
-
function
|
|
378
|
+
function kt(e) {
|
|
379
379
|
if (_e.call(e, "ref")) {
|
|
380
380
|
var a = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
381
381
|
if (a && a.isReactWarning)
|
|
@@ -383,7 +383,7 @@ function Ut() {
|
|
|
383
383
|
}
|
|
384
384
|
return e.ref !== void 0;
|
|
385
385
|
}
|
|
386
|
-
function
|
|
386
|
+
function Et(e) {
|
|
387
387
|
if (_e.call(e, "key")) {
|
|
388
388
|
var a = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
389
389
|
if (a && a.isReactWarning)
|
|
@@ -391,10 +391,10 @@ function Ut() {
|
|
|
391
391
|
}
|
|
392
392
|
return e.key !== void 0;
|
|
393
393
|
}
|
|
394
|
-
function
|
|
394
|
+
function St(e, a) {
|
|
395
395
|
typeof e.ref == "string" && We.current;
|
|
396
396
|
}
|
|
397
|
-
function
|
|
397
|
+
function Rt(e, a) {
|
|
398
398
|
{
|
|
399
399
|
var l = function() {
|
|
400
400
|
Ze || (Ze = !0, m("%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://reactjs.org/link/special-props)", a));
|
|
@@ -405,7 +405,7 @@ function Ut() {
|
|
|
405
405
|
});
|
|
406
406
|
}
|
|
407
407
|
}
|
|
408
|
-
function
|
|
408
|
+
function jt(e, a) {
|
|
409
409
|
{
|
|
410
410
|
var l = function() {
|
|
411
411
|
Ue || (Ue = !0, m("%s: `ref` 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://reactjs.org/link/special-props)", a));
|
|
@@ -416,7 +416,7 @@ function Ut() {
|
|
|
416
416
|
});
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
|
-
var
|
|
419
|
+
var Tt = function(e, a, l, p, x, $, v) {
|
|
420
420
|
var y = {
|
|
421
421
|
// This tag allows us to uniquely identify this as a React Element
|
|
422
422
|
$$typeof: n,
|
|
@@ -445,12 +445,12 @@ function Ut() {
|
|
|
445
445
|
value: x
|
|
446
446
|
}), Object.freeze && (Object.freeze(y.props), Object.freeze(y)), y;
|
|
447
447
|
};
|
|
448
|
-
function
|
|
448
|
+
function Nt(e, a, l, p, x) {
|
|
449
449
|
{
|
|
450
450
|
var $, v = {}, y = null, I = null;
|
|
451
|
-
l !== void 0 && (Ve(l), y = "" + l),
|
|
451
|
+
l !== void 0 && (Ve(l), y = "" + l), Et(a) && (Ve(a.key), y = "" + a.key), kt(a) && (I = a.ref, St(a, x));
|
|
452
452
|
for ($ in a)
|
|
453
|
-
_e.call(a, $) &&
|
|
453
|
+
_e.call(a, $) && !$t.hasOwnProperty($) && (v[$] = a[$]);
|
|
454
454
|
if (e && e.defaultProps) {
|
|
455
455
|
var R = e.defaultProps;
|
|
456
456
|
for ($ in R)
|
|
@@ -458,13 +458,13 @@ function Ut() {
|
|
|
458
458
|
}
|
|
459
459
|
if (y || I) {
|
|
460
460
|
var T = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
461
|
-
y &&
|
|
461
|
+
y && Rt(v, T), I && jt(v, T);
|
|
462
462
|
}
|
|
463
|
-
return
|
|
463
|
+
return Tt(e, y, I, x, p, We.current, v);
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
466
|
var Ne = k.ReactCurrentOwner, Ge = k.ReactDebugCurrentFrame;
|
|
467
|
-
function
|
|
467
|
+
function se(e) {
|
|
468
468
|
if (e) {
|
|
469
469
|
var a = e._owner, l = we(e.type, e._source, a ? a.type : null);
|
|
470
470
|
Ge.setExtraStackFrame(l);
|
|
@@ -488,11 +488,11 @@ Check the render method of \`` + e + "`.";
|
|
|
488
488
|
return "";
|
|
489
489
|
}
|
|
490
490
|
}
|
|
491
|
-
function
|
|
491
|
+
function Ot(e) {
|
|
492
492
|
return "";
|
|
493
493
|
}
|
|
494
494
|
var He = {};
|
|
495
|
-
function
|
|
495
|
+
function Lt(e) {
|
|
496
496
|
{
|
|
497
497
|
var a = Ye();
|
|
498
498
|
if (!a) {
|
|
@@ -509,12 +509,12 @@ Check the top-level render call using <` + l + ">.");
|
|
|
509
509
|
if (!e._store || e._store.validated || e.key != null)
|
|
510
510
|
return;
|
|
511
511
|
e._store.validated = !0;
|
|
512
|
-
var l =
|
|
512
|
+
var l = Lt(a);
|
|
513
513
|
if (He[l])
|
|
514
514
|
return;
|
|
515
515
|
He[l] = !0;
|
|
516
516
|
var p = "";
|
|
517
|
-
e && e._owner && e._owner !== Ne.current && (p = " It was passed a child from " + M(e._owner.type) + "."),
|
|
517
|
+
e && e._owner && e._owner !== Ne.current && (p = " It was passed a child from " + M(e._owner.type) + "."), se(e), m('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', l, p), se(null);
|
|
518
518
|
}
|
|
519
519
|
}
|
|
520
520
|
function Ke(e, a) {
|
|
@@ -536,7 +536,7 @@ Check the top-level render call using <` + l + ">.");
|
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
538
|
}
|
|
539
|
-
function
|
|
539
|
+
function Pt(e) {
|
|
540
540
|
{
|
|
541
541
|
var a = e.type;
|
|
542
542
|
if (a == null || typeof a == "string")
|
|
@@ -552,7 +552,7 @@ Check the top-level render call using <` + l + ">.");
|
|
|
552
552
|
return;
|
|
553
553
|
if (l) {
|
|
554
554
|
var p = M(a);
|
|
555
|
-
|
|
555
|
+
vt(l, e.props, "prop", p, e);
|
|
556
556
|
} else if (a.PropTypes !== void 0 && !Oe) {
|
|
557
557
|
Oe = !0;
|
|
558
558
|
var x = M(a);
|
|
@@ -561,31 +561,31 @@ Check the top-level render call using <` + l + ">.");
|
|
|
561
561
|
typeof a.getDefaultProps == "function" && !a.getDefaultProps.isReactClassApproved && m("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
562
562
|
}
|
|
563
563
|
}
|
|
564
|
-
function
|
|
564
|
+
function It(e) {
|
|
565
565
|
{
|
|
566
566
|
for (var a = Object.keys(e.props), l = 0; l < a.length; l++) {
|
|
567
567
|
var p = a[l];
|
|
568
568
|
if (p !== "children" && p !== "key") {
|
|
569
|
-
|
|
569
|
+
se(e), m("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", p), se(null);
|
|
570
570
|
break;
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
|
-
e.ref !== null && (
|
|
573
|
+
e.ref !== null && (se(e), m("Invalid attribute `ref` supplied to `React.Fragment`."), se(null));
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
576
|
var Qe = {};
|
|
577
577
|
function Xe(e, a, l, p, x, $) {
|
|
578
578
|
{
|
|
579
|
-
var v =
|
|
579
|
+
var v = G(e);
|
|
580
580
|
if (!v) {
|
|
581
581
|
var y = "";
|
|
582
582
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (y += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
583
|
-
var I =
|
|
583
|
+
var I = Ot();
|
|
584
584
|
I ? y += I : y += Ye();
|
|
585
585
|
var R;
|
|
586
586
|
e === null ? R = "null" : Te(e) ? R = "array" : e !== void 0 && e.$$typeof === n ? (R = "<" + (M(e.type) || "Unknown") + " />", y = " Did you accidentally export a JSX literal instead of a component?") : R = typeof e, m("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", R, y);
|
|
587
587
|
}
|
|
588
|
-
var T =
|
|
588
|
+
var T = Nt(e, a, l, x, $);
|
|
589
589
|
if (T == null)
|
|
590
590
|
return T;
|
|
591
591
|
if (v) {
|
|
@@ -593,8 +593,8 @@ Check the top-level render call using <` + l + ">.");
|
|
|
593
593
|
if (V !== void 0)
|
|
594
594
|
if (p)
|
|
595
595
|
if (Te(V)) {
|
|
596
|
-
for (var
|
|
597
|
-
Ke(V[
|
|
596
|
+
for (var ie = 0; ie < V.length; ie++)
|
|
597
|
+
Ke(V[ie], e);
|
|
598
598
|
Object.freeze && Object.freeze(V);
|
|
599
599
|
} else
|
|
600
600
|
m("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
@@ -602,30 +602,30 @@ Check the top-level render call using <` + l + ">.");
|
|
|
602
602
|
Ke(V, e);
|
|
603
603
|
}
|
|
604
604
|
if (_e.call(a, "key")) {
|
|
605
|
-
var
|
|
606
|
-
return
|
|
605
|
+
var ne = M(e), D = Object.keys(a).filter(function(Ft) {
|
|
606
|
+
return Ft !== "key";
|
|
607
607
|
}), Pe = D.length > 0 ? "{key: someKey, " + D.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
608
|
-
if (!Qe[
|
|
609
|
-
var
|
|
608
|
+
if (!Qe[ne + Pe]) {
|
|
609
|
+
var Bt = D.length > 0 ? "{" + D.join(": ..., ") + ": ...}" : "{}";
|
|
610
610
|
m(`A props object containing a "key" prop is being spread into JSX:
|
|
611
611
|
let props = %s;
|
|
612
612
|
<%s {...props} />
|
|
613
613
|
React keys must be passed directly to JSX without using spread:
|
|
614
614
|
let props = %s;
|
|
615
|
-
<%s key={someKey} {...props} />`, Pe,
|
|
615
|
+
<%s key={someKey} {...props} />`, Pe, ne, Bt, ne), Qe[ne + Pe] = !0;
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
|
-
return e === s ?
|
|
618
|
+
return e === s ? It(T) : Pt(T), T;
|
|
619
619
|
}
|
|
620
620
|
}
|
|
621
|
-
function
|
|
621
|
+
function At(e, a, l) {
|
|
622
622
|
return Xe(e, a, l, !0);
|
|
623
623
|
}
|
|
624
|
-
function
|
|
624
|
+
function Mt(e, a, l) {
|
|
625
625
|
return Xe(e, a, l, !1);
|
|
626
626
|
}
|
|
627
|
-
var
|
|
628
|
-
fe.Fragment = s, fe.jsx =
|
|
627
|
+
var Dt = Mt, zt = At;
|
|
628
|
+
fe.Fragment = s, fe.jsx = Dt, fe.jsxs = zt;
|
|
629
629
|
}()), fe;
|
|
630
630
|
}
|
|
631
631
|
var nt;
|
|
@@ -688,7 +688,7 @@ const Yt = (t) => t.as === "a", Ht = (t) => t.as === void 0 || t.as === "button"
|
|
|
688
688
|
"span",
|
|
689
689
|
{
|
|
690
690
|
"data-testid": "button-badge",
|
|
691
|
-
className:
|
|
691
|
+
className: U(
|
|
692
692
|
j.badge,
|
|
693
693
|
j[`badge${f ? "ExtraSmall" : s === "medium" ? "Medium" : "Small"}`],
|
|
694
694
|
{ [j.circular]: h && !f }
|
|
@@ -707,7 +707,7 @@ const Yt = (t) => t.as === "a", Ht = (t) => t.as === void 0 || t.as === "button"
|
|
|
707
707
|
] })
|
|
708
708
|
] }) : /* @__PURE__ */ o.jsx("span", { "data-testid": "button-icon", className: j.icon, children: d })
|
|
709
709
|
] });
|
|
710
|
-
}, w2 =
|
|
710
|
+
}, w2 = K((t, n) => {
|
|
711
711
|
const {
|
|
712
712
|
mode: r = "primary",
|
|
713
713
|
size: s = "m",
|
|
@@ -725,7 +725,7 @@ const Yt = (t) => t.as === "a", Ht = (t) => t.as === void 0 || t.as === "button"
|
|
|
725
725
|
postfix: N,
|
|
726
726
|
className: E,
|
|
727
727
|
children: k
|
|
728
|
-
} = t, m = u, O = i, P = !m && !O, z = !!w && !k, B =
|
|
728
|
+
} = t, m = u, O = i, P = !m && !O, z = !!w && !k, B = U(
|
|
729
729
|
j.button,
|
|
730
730
|
j[s],
|
|
731
731
|
j[r],
|
|
@@ -755,14 +755,14 @@ const Yt = (t) => t.as === "a", Ht = (t) => t.as === void 0 || t.as === "button"
|
|
|
755
755
|
const {
|
|
756
756
|
href: F,
|
|
757
757
|
onClick: A,
|
|
758
|
-
mode:
|
|
759
|
-
size:
|
|
758
|
+
mode: G,
|
|
759
|
+
size: Y,
|
|
760
760
|
buttonStyle: W,
|
|
761
761
|
loading: M,
|
|
762
762
|
disabled: S,
|
|
763
763
|
showBadge: q,
|
|
764
|
-
badgeSize:
|
|
765
|
-
badgeValue:
|
|
764
|
+
badgeSize: Q,
|
|
765
|
+
badgeValue: te,
|
|
766
766
|
showSubcaption: he,
|
|
767
767
|
subcaption: ye,
|
|
768
768
|
stretched: me,
|
|
@@ -772,10 +772,10 @@ const Yt = (t) => t.as === "a", Ht = (t) => t.as === void 0 || t.as === "button"
|
|
|
772
772
|
className: Re,
|
|
773
773
|
tabIndex: je,
|
|
774
774
|
children: de,
|
|
775
|
-
"data-testid":
|
|
776
|
-
style:
|
|
777
|
-
...
|
|
778
|
-
} = t,
|
|
775
|
+
"data-testid": ae,
|
|
776
|
+
style: X,
|
|
777
|
+
...re
|
|
778
|
+
} = t, ee = (ue) => {
|
|
779
779
|
P && A && A(ue);
|
|
780
780
|
};
|
|
781
781
|
return /* @__PURE__ */ o.jsx(
|
|
@@ -785,11 +785,11 @@ const Yt = (t) => t.as === "a", Ht = (t) => t.as === void 0 || t.as === "button"
|
|
|
785
785
|
className: B,
|
|
786
786
|
href: P ? F : void 0,
|
|
787
787
|
tabIndex: t.tabIndex,
|
|
788
|
-
onClick:
|
|
789
|
-
"data-testid":
|
|
788
|
+
onClick: ee,
|
|
789
|
+
"data-testid": ae,
|
|
790
790
|
"aria-disabled": m || O,
|
|
791
|
-
style:
|
|
792
|
-
...
|
|
791
|
+
style: X,
|
|
792
|
+
...re,
|
|
793
793
|
children: /* @__PURE__ */ o.jsx(ot, { ...L })
|
|
794
794
|
}
|
|
795
795
|
);
|
|
@@ -798,14 +798,14 @@ const Yt = (t) => t.as === "a", Ht = (t) => t.as === void 0 || t.as === "button"
|
|
|
798
798
|
const {
|
|
799
799
|
type: F = "button",
|
|
800
800
|
onClick: A,
|
|
801
|
-
mode:
|
|
802
|
-
size:
|
|
801
|
+
mode: G,
|
|
802
|
+
size: Y,
|
|
803
803
|
buttonStyle: W,
|
|
804
804
|
loading: M,
|
|
805
805
|
disabled: S,
|
|
806
806
|
showBadge: q,
|
|
807
|
-
badgeSize:
|
|
808
|
-
badgeValue:
|
|
807
|
+
badgeSize: Q,
|
|
808
|
+
badgeValue: te,
|
|
809
809
|
showSubcaption: he,
|
|
810
810
|
subcaption: ye,
|
|
811
811
|
stretched: me,
|
|
@@ -815,10 +815,10 @@ const Yt = (t) => t.as === "a", Ht = (t) => t.as === void 0 || t.as === "button"
|
|
|
815
815
|
className: Re,
|
|
816
816
|
tabIndex: je,
|
|
817
817
|
children: de,
|
|
818
|
-
"data-testid":
|
|
819
|
-
style:
|
|
820
|
-
...
|
|
821
|
-
} = t,
|
|
818
|
+
"data-testid": ae,
|
|
819
|
+
style: X,
|
|
820
|
+
...re
|
|
821
|
+
} = t, ee = (ue) => {
|
|
822
822
|
P && A && A(ue);
|
|
823
823
|
};
|
|
824
824
|
return /* @__PURE__ */ o.jsx(
|
|
@@ -829,11 +829,11 @@ const Yt = (t) => t.as === "a", Ht = (t) => t.as === void 0 || t.as === "button"
|
|
|
829
829
|
className: B,
|
|
830
830
|
disabled: m,
|
|
831
831
|
tabIndex: t.tabIndex,
|
|
832
|
-
onClick:
|
|
833
|
-
"data-testid":
|
|
832
|
+
onClick: ee,
|
|
833
|
+
"data-testid": ae,
|
|
834
834
|
"aria-disabled": m || O,
|
|
835
|
-
style:
|
|
836
|
-
...
|
|
835
|
+
style: X,
|
|
836
|
+
...re,
|
|
837
837
|
children: /* @__PURE__ */ o.jsx(ot, { ...L })
|
|
838
838
|
}
|
|
839
839
|
);
|
|
@@ -880,7 +880,7 @@ function Ta() {
|
|
|
880
880
|
}(Ie)), Ie.exports;
|
|
881
881
|
}
|
|
882
882
|
var Na = Ta();
|
|
883
|
-
const
|
|
883
|
+
const ce = /* @__PURE__ */ Wt(Na), Oa = "_avatar_1kyiq_17", La = "_clickable_1kyiq_41", Pa = "_icon_1kyiq_58", Ia = "_disabled_1kyiq_63", Aa = "_loading_1kyiq_68", Ma = "_image_1kyiq_74", Da = "_name_1kyiq_74", Z = {
|
|
884
884
|
avatar: Oa,
|
|
885
885
|
clickable: La,
|
|
886
886
|
icon: Pa,
|
|
@@ -969,7 +969,7 @@ const Va = {
|
|
|
969
969
|
96: 24,
|
|
970
970
|
208: 8
|
|
971
971
|
};
|
|
972
|
-
function
|
|
972
|
+
function gt(t, n) {
|
|
973
973
|
return n === "circle" ? t / 2 : Va[t] || 12;
|
|
974
974
|
}
|
|
975
975
|
const Wa = {
|
|
@@ -991,7 +991,7 @@ const Ua = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
991
991
|
female: Ga,
|
|
992
992
|
org: Ha,
|
|
993
993
|
neutral: Ya
|
|
994
|
-
}, Ee =
|
|
994
|
+
}, Ee = K((t, n) => {
|
|
995
995
|
const {
|
|
996
996
|
style: r,
|
|
997
997
|
size: s = 40,
|
|
@@ -1000,9 +1000,9 @@ const Ua = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
1000
1000
|
shape: u = "circle",
|
|
1001
1001
|
variant: _ = "filled",
|
|
1002
1002
|
placeholderType: c = "neutral",
|
|
1003
|
-
name: b
|
|
1003
|
+
name: b,
|
|
1004
1004
|
imgSrc: f,
|
|
1005
|
-
imgAlt: g
|
|
1005
|
+
imgAlt: g,
|
|
1006
1006
|
icon: h,
|
|
1007
1007
|
imgProps: C,
|
|
1008
1008
|
colorScheme: w,
|
|
@@ -1013,12 +1013,12 @@ const Ua = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
1013
1013
|
De(() => {
|
|
1014
1014
|
f && L(!1);
|
|
1015
1015
|
}, [f]);
|
|
1016
|
-
const F = f && !B ? "image" : h ? "icon" : b ? "name" : "placeholder", A = w || F === "name" && Fa(b) || "gray",
|
|
1016
|
+
const F = f && !B ? "image" : h ? "icon" : b ? "name" : "placeholder", A = w || F === "name" && Fa(b) || "gray", G = Za(s), Y = gt(s, u), W = U(
|
|
1017
1017
|
N,
|
|
1018
1018
|
Z.avatar,
|
|
1019
1019
|
Z[`variant-${_}`],
|
|
1020
1020
|
Z[`color-${A}`],
|
|
1021
|
-
be[
|
|
1021
|
+
be[G],
|
|
1022
1022
|
{
|
|
1023
1023
|
[Z.disabled]: i,
|
|
1024
1024
|
[Z.loading]: d,
|
|
@@ -1026,18 +1026,18 @@ const Ua = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
1026
1026
|
}
|
|
1027
1027
|
), M = {
|
|
1028
1028
|
"--avatar-size": `${s}px`,
|
|
1029
|
-
"--avatar-border-radius": `${
|
|
1029
|
+
"--avatar-border-radius": `${Y}px`,
|
|
1030
1030
|
...r
|
|
1031
1031
|
}, S = {
|
|
1032
|
-
icon: () => /* @__PURE__ */ o.jsx("span", { "data-testid": "avatar-icon", title: g, role: "img", className:
|
|
1032
|
+
icon: () => /* @__PURE__ */ o.jsx("span", { "data-testid": "avatar-icon", title: g || void 0, role: "img", className: Z.icon, children: h == null ? void 0 : h({}) }),
|
|
1033
1033
|
name: () => /* @__PURE__ */ o.jsx(
|
|
1034
1034
|
"span",
|
|
1035
1035
|
{
|
|
1036
1036
|
role: "textbox",
|
|
1037
1037
|
"data-testid": "avatar-name",
|
|
1038
|
-
className:
|
|
1039
|
-
title: g,
|
|
1040
|
-
children: qa(b)
|
|
1038
|
+
className: Z.name,
|
|
1039
|
+
title: g || void 0,
|
|
1040
|
+
children: qa(b || "")
|
|
1041
1041
|
}
|
|
1042
1042
|
),
|
|
1043
1043
|
placeholder: () => /* @__PURE__ */ o.jsx(
|
|
@@ -1047,7 +1047,7 @@ const Ua = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
1047
1047
|
"data-testid": "avatar-placeholder",
|
|
1048
1048
|
className: Z.image,
|
|
1049
1049
|
src: Ja[c],
|
|
1050
|
-
alt: g
|
|
1050
|
+
alt: g || void 0
|
|
1051
1051
|
}
|
|
1052
1052
|
),
|
|
1053
1053
|
image: () => /* @__PURE__ */ o.jsx(
|
|
@@ -1056,17 +1056,17 @@ const Ua = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
1056
1056
|
"data-testid": "avatar-image",
|
|
1057
1057
|
...C,
|
|
1058
1058
|
className: Z.image,
|
|
1059
|
-
src: f,
|
|
1060
|
-
alt: g,
|
|
1059
|
+
src: f || void 0,
|
|
1060
|
+
alt: g || void 0,
|
|
1061
1061
|
onLoad: () => L(!1),
|
|
1062
|
-
onError: (
|
|
1063
|
-
var
|
|
1064
|
-
L(!0), (
|
|
1062
|
+
onError: (Q) => {
|
|
1063
|
+
var te;
|
|
1064
|
+
L(!0), (te = C == null ? void 0 : C.onError) == null || te.call(C, Q);
|
|
1065
1065
|
}
|
|
1066
1066
|
}
|
|
1067
1067
|
)
|
|
1068
|
-
}, q = (
|
|
1069
|
-
z && (m == null || m(
|
|
1068
|
+
}, q = (Q) => {
|
|
1069
|
+
z && (m == null || m(Q));
|
|
1070
1070
|
};
|
|
1071
1071
|
return /* @__PURE__ */ o.jsx(
|
|
1072
1072
|
"div",
|
|
@@ -1111,7 +1111,7 @@ const tr = 3, ar = (t) => {
|
|
|
1111
1111
|
shape: d = "circle",
|
|
1112
1112
|
overflowCount: i = 0,
|
|
1113
1113
|
overflowProps: u
|
|
1114
|
-
} = t, _ = r * s, c = -_ + tr, b =
|
|
1114
|
+
} = t, _ = r * s, c = -_ + tr, b = gt(r, d), g = pt(Xa()).current.toString(), h = ce(Qa.avatarGroup), C = er(
|
|
1115
1115
|
r,
|
|
1116
1116
|
r,
|
|
1117
1117
|
r - _,
|
|
@@ -1168,7 +1168,7 @@ const tr = 3, ar = (t) => {
|
|
|
1168
1168
|
] });
|
|
1169
1169
|
}, $2 = Object.assign(Ee, {
|
|
1170
1170
|
Group: ar
|
|
1171
|
-
}), rr = "_wrapper_ecbsu_5", nr = "_badge__container_ecbsu_6", or = "_badge__content_ecbsu_7", sr = "_interactive_ecbsu_20", ir = "_disabled_ecbsu_21", lr = "_icon_ecbsu_22",
|
|
1171
|
+
}), rr = "_wrapper_ecbsu_5", nr = "_badge__container_ecbsu_6", or = "_badge__content_ecbsu_7", sr = "_interactive_ecbsu_20", ir = "_disabled_ecbsu_21", lr = "_icon_ecbsu_22", H = {
|
|
1172
1172
|
wrapper: rr,
|
|
1173
1173
|
badge__container: nr,
|
|
1174
1174
|
badge__content: or,
|
|
@@ -1223,7 +1223,7 @@ const tr = 3, ar = (t) => {
|
|
|
1223
1223
|
r(s);
|
|
1224
1224
|
}
|
|
1225
1225
|
}, []), { ref: t, bgColor: n };
|
|
1226
|
-
}, k2 =
|
|
1226
|
+
}, k2 = K((t, n) => {
|
|
1227
1227
|
const {
|
|
1228
1228
|
icon: r,
|
|
1229
1229
|
children: s,
|
|
@@ -1239,15 +1239,15 @@ const tr = 3, ar = (t) => {
|
|
|
1239
1239
|
className: C,
|
|
1240
1240
|
"data-testid": w = "badge",
|
|
1241
1241
|
...N
|
|
1242
|
-
} = t, { onClick: E, onPointerDown: k } = N, { ref: m, bgColor: O } = ur(), P = g || O, B = !h && (!!E || !!k), L =
|
|
1242
|
+
} = t, { onClick: E, onPointerDown: k } = N, { ref: m, bgColor: O } = ur(), P = g || O, B = !h && (!!E || !!k), L = ce(H.badge__container, H[`position-${b}`]), F = ce(
|
|
1243
1243
|
C,
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1244
|
+
H.badge__content,
|
|
1245
|
+
H[`color-${_}`],
|
|
1246
|
+
H[`variant-${d}`],
|
|
1247
1247
|
{
|
|
1248
|
-
[
|
|
1249
|
-
[
|
|
1250
|
-
[
|
|
1248
|
+
[H.disabled]: h,
|
|
1249
|
+
[H.icon]: !!r,
|
|
1250
|
+
[H.interactive]: B
|
|
1251
1251
|
}
|
|
1252
1252
|
), A = {
|
|
1253
1253
|
"--badge-height": `${c}px`,
|
|
@@ -1255,10 +1255,10 @@ const tr = 3, ar = (t) => {
|
|
|
1255
1255
|
"--badge-offset-y": `${f.y}px`,
|
|
1256
1256
|
...P && { "--badge-cutout-bg": P },
|
|
1257
1257
|
...d === "transparent" && { "--badge-cutout-bg": "transparent" }
|
|
1258
|
-
},
|
|
1258
|
+
}, G = (r == null ? void 0 : r({})) || i, Y = (W) => {
|
|
1259
1259
|
B && (E == null || E(W));
|
|
1260
1260
|
};
|
|
1261
|
-
return /* @__PURE__ */ o.jsxs("div", { className:
|
|
1261
|
+
return /* @__PURE__ */ o.jsxs("div", { className: H.wrapper, ref: m, "data-testid": w + "-wrapper", children: [
|
|
1262
1262
|
s,
|
|
1263
1263
|
!u && /* @__PURE__ */ o.jsx(
|
|
1264
1264
|
"span",
|
|
@@ -1270,12 +1270,12 @@ const tr = 3, ar = (t) => {
|
|
|
1270
1270
|
"span",
|
|
1271
1271
|
{
|
|
1272
1272
|
...N,
|
|
1273
|
-
onClick:
|
|
1273
|
+
onClick: Y,
|
|
1274
1274
|
className: F,
|
|
1275
1275
|
"data-testid": w + "-content",
|
|
1276
1276
|
ref: n,
|
|
1277
1277
|
"aria-disabled": h,
|
|
1278
|
-
children:
|
|
1278
|
+
children: G
|
|
1279
1279
|
}
|
|
1280
1280
|
)
|
|
1281
1281
|
}
|
|
@@ -1302,7 +1302,7 @@ const tr = 3, ar = (t) => {
|
|
|
1302
1302
|
"size-48": "_size-48_1tevf_79",
|
|
1303
1303
|
"size-64": "_size-64_1tevf_83",
|
|
1304
1304
|
"size-96": "_size-96_1tevf_87"
|
|
1305
|
-
},
|
|
1305
|
+
}, bt = K(
|
|
1306
1306
|
({
|
|
1307
1307
|
size: t = 24,
|
|
1308
1308
|
variant: n = "accent",
|
|
@@ -1311,7 +1311,7 @@ const tr = 3, ar = (t) => {
|
|
|
1311
1311
|
style: d,
|
|
1312
1312
|
...i
|
|
1313
1313
|
}, u) => {
|
|
1314
|
-
const _ =
|
|
1314
|
+
const _ = ce(
|
|
1315
1315
|
ge.loader,
|
|
1316
1316
|
ge[n],
|
|
1317
1317
|
ge[`size-${t}`],
|
|
@@ -1340,7 +1340,7 @@ const tr = 3, ar = (t) => {
|
|
|
1340
1340
|
}
|
|
1341
1341
|
);
|
|
1342
1342
|
}
|
|
1343
|
-
), Er =
|
|
1343
|
+
), Er = K((t, n) => {
|
|
1344
1344
|
const {
|
|
1345
1345
|
loading: r = !1,
|
|
1346
1346
|
size: s = 24,
|
|
@@ -1350,18 +1350,18 @@ const tr = 3, ar = (t) => {
|
|
|
1350
1350
|
style: _,
|
|
1351
1351
|
"data-testid": c,
|
|
1352
1352
|
...b
|
|
1353
|
-
} = t, f =
|
|
1353
|
+
} = t, f = ce(ge.container, u);
|
|
1354
1354
|
return /* @__PURE__ */ o.jsxs("div", { ref: n, className: f, style: _, "data-testid": c, ...b, children: [
|
|
1355
1355
|
i,
|
|
1356
|
-
r && /* @__PURE__ */ o.jsx("div", { className: ge.overlay, children: /* @__PURE__ */ o.jsx(
|
|
1356
|
+
r && /* @__PURE__ */ o.jsx("div", { className: ge.overlay, children: /* @__PURE__ */ o.jsx(bt, { size: s, variant: d, "data-testid": `${c}-spinner` }) })
|
|
1357
1357
|
] });
|
|
1358
|
-
}), Sr =
|
|
1358
|
+
}), Sr = K((t, n) => t.children ? /* @__PURE__ */ o.jsx(
|
|
1359
1359
|
Er,
|
|
1360
1360
|
{
|
|
1361
1361
|
ref: n,
|
|
1362
1362
|
...t
|
|
1363
1363
|
}
|
|
1364
|
-
) : /* @__PURE__ */ o.jsx(
|
|
1364
|
+
) : /* @__PURE__ */ o.jsx(bt, { ref: n, ...t })), Rr = ({ width: t = 48, height: n = 48, className: r, "data-testid": s }) => /* @__PURE__ */ o.jsx(
|
|
1365
1365
|
"svg",
|
|
1366
1366
|
{
|
|
1367
1367
|
width: t,
|
|
@@ -1382,7 +1382,7 @@ const tr = 3, ar = (t) => {
|
|
|
1382
1382
|
}
|
|
1383
1383
|
)
|
|
1384
1384
|
}
|
|
1385
|
-
), E2 =
|
|
1385
|
+
), E2 = K((t, n) => {
|
|
1386
1386
|
const {
|
|
1387
1387
|
alt: r = "",
|
|
1388
1388
|
loading: s = "lazy",
|
|
@@ -1393,7 +1393,7 @@ const tr = 3, ar = (t) => {
|
|
|
1393
1393
|
onError: c,
|
|
1394
1394
|
onLoad: b,
|
|
1395
1395
|
...f
|
|
1396
|
-
} = t, [g, h] = Se("loading"), C = g === "error", w = (i || g === "loading") && !C, N = g === "loaded" && !i, E =
|
|
1396
|
+
} = t, [g, h] = Se("loading"), C = g === "error", w = (i || g === "loading") && !C, N = g === "loaded" && !i, E = ce(
|
|
1397
1397
|
Ae.image,
|
|
1398
1398
|
{
|
|
1399
1399
|
[Ae.loading]: w
|
|
@@ -1410,7 +1410,7 @@ const tr = 3, ar = (t) => {
|
|
|
1410
1410
|
},
|
|
1411
1411
|
[c]
|
|
1412
1412
|
), O = {
|
|
1413
|
-
loader: /* @__PURE__ */ o.jsxs(
|
|
1413
|
+
loader: /* @__PURE__ */ o.jsxs(ft, { children: [
|
|
1414
1414
|
/* @__PURE__ */ o.jsx(Sr, { size: 48, variant: "special", "data-testid": `${_}-loader` }),
|
|
1415
1415
|
/* @__PURE__ */ o.jsx(
|
|
1416
1416
|
"img",
|
|
@@ -1447,10 +1447,10 @@ const tr = 3, ar = (t) => {
|
|
|
1447
1447
|
C && O.error,
|
|
1448
1448
|
N && O.image
|
|
1449
1449
|
] });
|
|
1450
|
-
}), jr = {},
|
|
1450
|
+
}), jr = {}, ht = qt({
|
|
1451
1451
|
locale: jr
|
|
1452
1452
|
}), Tr = () => {
|
|
1453
|
-
const t = Vt(
|
|
1453
|
+
const t = Vt(ht);
|
|
1454
1454
|
if (!t)
|
|
1455
1455
|
throw new Error("useConfig must be used within a ConfigProvider");
|
|
1456
1456
|
return t;
|
|
@@ -1464,21 +1464,18 @@ const tr = 3, ar = (t) => {
|
|
|
1464
1464
|
className: s
|
|
1465
1465
|
}) => {
|
|
1466
1466
|
const d = n ? { ...Object.fromEntries(Object.entries(n)) } : {};
|
|
1467
|
-
return /* @__PURE__ */ o.
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
Nr,
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
}
|
|
1480
|
-
);
|
|
1481
|
-
}, j2 = {}, Pr = "_tag_1llsi_1", Ir = "_label_1llsi_16", Ar = "_iconWrapper_1llsi_20", Mr = "_medium_1llsi_27", Dr = "_large_1llsi_33", zr = "_disabled_1llsi_43", Br = "_neutral_1llsi_47", Fr = "_positive_1llsi_53", qr = "_negative_1llsi_59", Vr = "_warning_1llsi_65", Wr = "_vivid_1llsi_71", Zr = "_special_1llsi_77", Ur = "_accent_1llsi_84", Gr = "_blue_1llsi_90", Yr = "_lovely_1llsi_96", Hr = "_dreamy_1llsi_102", se = {
|
|
1467
|
+
return /* @__PURE__ */ o.jsxs(ft, { children: [
|
|
1468
|
+
/* @__PURE__ */ o.jsx(
|
|
1469
|
+
"div",
|
|
1470
|
+
{
|
|
1471
|
+
"data-testid": "ConfigProvider-component",
|
|
1472
|
+
style: d,
|
|
1473
|
+
className: U(Nr, Or, Lr, s)
|
|
1474
|
+
}
|
|
1475
|
+
),
|
|
1476
|
+
/* @__PURE__ */ o.jsx(ht.Provider, { value: { locale: t }, children: r })
|
|
1477
|
+
] });
|
|
1478
|
+
}, j2 = {}, Pr = "_tag_1llsi_1", Ir = "_label_1llsi_16", Ar = "_iconWrapper_1llsi_20", Mr = "_medium_1llsi_27", Dr = "_large_1llsi_33", zr = "_disabled_1llsi_43", Br = "_neutral_1llsi_47", Fr = "_positive_1llsi_53", qr = "_negative_1llsi_59", Vr = "_warning_1llsi_65", Wr = "_vivid_1llsi_71", Zr = "_special_1llsi_77", Ur = "_accent_1llsi_84", Gr = "_blue_1llsi_90", Yr = "_lovely_1llsi_96", Hr = "_dreamy_1llsi_102", oe = {
|
|
1482
1479
|
tag: Pr,
|
|
1483
1480
|
label: Ir,
|
|
1484
1481
|
iconWrapper: Ar,
|
|
@@ -1495,7 +1492,7 @@ const tr = 3, ar = (t) => {
|
|
|
1495
1492
|
blue: Gr,
|
|
1496
1493
|
lovely: Yr,
|
|
1497
1494
|
dreamy: Hr
|
|
1498
|
-
}, T2 =
|
|
1495
|
+
}, T2 = K((t, n) => {
|
|
1499
1496
|
const {
|
|
1500
1497
|
className: r,
|
|
1501
1498
|
children: s,
|
|
@@ -1512,12 +1509,12 @@ const tr = 3, ar = (t) => {
|
|
|
1512
1509
|
return /* @__PURE__ */ o.jsxs(
|
|
1513
1510
|
"div",
|
|
1514
1511
|
{
|
|
1515
|
-
className:
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1512
|
+
className: U(
|
|
1513
|
+
oe.tag,
|
|
1514
|
+
oe[i],
|
|
1515
|
+
oe[d],
|
|
1519
1516
|
{
|
|
1520
|
-
[
|
|
1517
|
+
[oe.disabled]: u,
|
|
1521
1518
|
[be["typography-label-3-regular"]]: i === "medium",
|
|
1522
1519
|
[be["typography-subtitle-1-semibold"]]: i === "large"
|
|
1523
1520
|
},
|
|
@@ -1526,13 +1523,13 @@ const tr = 3, ar = (t) => {
|
|
|
1526
1523
|
"data-testid": h || "tag-component",
|
|
1527
1524
|
ref: n,
|
|
1528
1525
|
children: [
|
|
1529
|
-
c && /* @__PURE__ */ o.jsx("span", { className:
|
|
1530
|
-
_ && /* @__PURE__ */ o.jsx("span", { className:
|
|
1531
|
-
b && /* @__PURE__ */ o.jsx("span", { className:
|
|
1526
|
+
c && /* @__PURE__ */ o.jsx("span", { className: U([oe.iconWrapper, C]), ...w, children: c }),
|
|
1527
|
+
_ && /* @__PURE__ */ o.jsx("span", { className: U([oe.label]), children: s }),
|
|
1528
|
+
b && /* @__PURE__ */ o.jsx("span", { className: U([oe.iconWrapper, N]), ...E, children: b })
|
|
1532
1529
|
]
|
|
1533
1530
|
}
|
|
1534
1531
|
);
|
|
1535
|
-
}), Jr = "_checkbox_qo5f5_43", Kr = "_input_qo5f5_59", Qr = "_icon_qo5f5_67", Xr = "_container_qo5f5_84", e2 = "_error_qo5f5_135", t2 = "_checkboxWrapper_qo5f5_147", a2 = "_medium_qo5f5_201", r2 = "_large_qo5f5_206", n2 = "_label_qo5f5_247",
|
|
1532
|
+
}), Jr = "_checkbox_qo5f5_43", Kr = "_input_qo5f5_59", Qr = "_icon_qo5f5_67", Xr = "_container_qo5f5_84", e2 = "_error_qo5f5_135", t2 = "_checkboxWrapper_qo5f5_147", a2 = "_medium_qo5f5_201", r2 = "_large_qo5f5_206", n2 = "_label_qo5f5_247", J = {
|
|
1536
1533
|
checkbox: Jr,
|
|
1537
1534
|
input: Kr,
|
|
1538
1535
|
icon: Qr,
|
|
@@ -1608,7 +1605,7 @@ const tr = 3, ar = (t) => {
|
|
|
1608
1605
|
return /* @__PURE__ */ o.jsx(
|
|
1609
1606
|
"div",
|
|
1610
1607
|
{
|
|
1611
|
-
className:
|
|
1608
|
+
className: J.icon,
|
|
1612
1609
|
"data-testid": `${d}-icon`,
|
|
1613
1610
|
"data-checked": n,
|
|
1614
1611
|
"data-disabled": r,
|
|
@@ -1616,7 +1613,7 @@ const tr = 3, ar = (t) => {
|
|
|
1616
1613
|
children: s ? /* @__PURE__ */ o.jsx(s2, { width: i, height: u }) : /* @__PURE__ */ o.jsx(o2, { width: i, height: u })
|
|
1617
1614
|
}
|
|
1618
1615
|
);
|
|
1619
|
-
}, N2 =
|
|
1616
|
+
}, N2 = K((t, n) => {
|
|
1620
1617
|
const {
|
|
1621
1618
|
name: r,
|
|
1622
1619
|
value: s,
|
|
@@ -1634,16 +1631,16 @@ const tr = 3, ar = (t) => {
|
|
|
1634
1631
|
tabIndex: N,
|
|
1635
1632
|
onChange: E,
|
|
1636
1633
|
"data-testid": k = "checkbox"
|
|
1637
|
-
} = t, [m, O] = Se(!1), P = s ?? m, z = c || u, B = !!_, L = P || i, F = tt(
|
|
1638
|
-
|
|
1639
|
-
|
|
1634
|
+
} = t, [m, O] = Se(!1), P = s ?? m, z = c || u, B = !!_, L = P || i, F = tt(J.container, J[d], b), A = tt(
|
|
1635
|
+
J.checkbox,
|
|
1636
|
+
J[d],
|
|
1640
1637
|
{
|
|
1641
|
-
[
|
|
1638
|
+
[J.error]: B
|
|
1642
1639
|
},
|
|
1643
1640
|
f
|
|
1644
|
-
),
|
|
1641
|
+
), G = (S) => {
|
|
1645
1642
|
z || (O(S.target.checked), E == null || E(S.target.checked, S));
|
|
1646
|
-
},
|
|
1643
|
+
}, Y = (S) => {
|
|
1647
1644
|
if (S.key === "Enter" && !z) {
|
|
1648
1645
|
S.preventDefault();
|
|
1649
1646
|
const q = !L;
|
|
@@ -1661,13 +1658,13 @@ const tr = 3, ar = (t) => {
|
|
|
1661
1658
|
"data-testid": k,
|
|
1662
1659
|
"data-clickable-label": w,
|
|
1663
1660
|
children: [
|
|
1664
|
-
/* @__PURE__ */ o.jsx("div", { className:
|
|
1661
|
+
/* @__PURE__ */ o.jsx("div", { className: J.checkboxWrapper, children: /* @__PURE__ */ o.jsxs(
|
|
1665
1662
|
"div",
|
|
1666
1663
|
{
|
|
1667
1664
|
tabIndex: N || 0,
|
|
1668
1665
|
className: A,
|
|
1669
1666
|
style: h,
|
|
1670
|
-
onKeyDown:
|
|
1667
|
+
onKeyDown: Y,
|
|
1671
1668
|
"aria-checked": L,
|
|
1672
1669
|
"aria-disabled": z,
|
|
1673
1670
|
"aria-invalid": B,
|
|
@@ -1683,8 +1680,8 @@ const tr = 3, ar = (t) => {
|
|
|
1683
1680
|
name: r,
|
|
1684
1681
|
checked: L,
|
|
1685
1682
|
disabled: z,
|
|
1686
|
-
className:
|
|
1687
|
-
onChange:
|
|
1683
|
+
className: J.input,
|
|
1684
|
+
onChange: G,
|
|
1688
1685
|
onClick: M,
|
|
1689
1686
|
"aria-checked": L,
|
|
1690
1687
|
"aria-invalid": B,
|
|
@@ -1711,7 +1708,7 @@ const tr = 3, ar = (t) => {
|
|
|
1711
1708
|
{
|
|
1712
1709
|
"data-testid": `${k}-label-text`,
|
|
1713
1710
|
"data-clickable-label": w,
|
|
1714
|
-
className:
|
|
1711
|
+
className: J.label,
|
|
1715
1712
|
onClick: W,
|
|
1716
1713
|
children: C
|
|
1717
1714
|
}
|
|
@@ -1719,7 +1716,7 @@ const tr = 3, ar = (t) => {
|
|
|
1719
1716
|
]
|
|
1720
1717
|
}
|
|
1721
1718
|
);
|
|
1722
|
-
}), c2 = "_typography_zt7xg_1", d2 = "_disabled_zt7xg_8", u2 = "_primary_zt7xg_13", _2 = "_secondary_zt7xg_18", p2 = "_tertiary_zt7xg_23", f2 = "_accent_zt7xg_28", g2 = "_positive_zt7xg_38", b2 = "_negative_zt7xg_48", h2 = "_warning_zt7xg_58", y2 = "_special_zt7xg_68", m2 = "_contrast_zt7xg_78",
|
|
1719
|
+
}), c2 = "_typography_zt7xg_1", d2 = "_disabled_zt7xg_8", u2 = "_primary_zt7xg_13", _2 = "_secondary_zt7xg_18", p2 = "_tertiary_zt7xg_23", f2 = "_accent_zt7xg_28", g2 = "_positive_zt7xg_38", b2 = "_negative_zt7xg_48", h2 = "_warning_zt7xg_58", y2 = "_special_zt7xg_68", m2 = "_contrast_zt7xg_78", le = {
|
|
1723
1720
|
typography: c2,
|
|
1724
1721
|
disabled: d2,
|
|
1725
1722
|
primary: u2,
|
|
@@ -1756,12 +1753,12 @@ const tr = 3, ar = (t) => {
|
|
|
1756
1753
|
typographyStyle: b = "primary",
|
|
1757
1754
|
...f
|
|
1758
1755
|
}, g) => {
|
|
1759
|
-
const h = u || v2[r], C =
|
|
1760
|
-
|
|
1756
|
+
const h = u || v2[r], C = U(
|
|
1757
|
+
le.typography,
|
|
1761
1758
|
be[`typography-${t}-${r}-${_}`],
|
|
1762
|
-
|
|
1759
|
+
le[b],
|
|
1763
1760
|
{
|
|
1764
|
-
[
|
|
1761
|
+
[le.disabled]: c
|
|
1765
1762
|
},
|
|
1766
1763
|
d
|
|
1767
1764
|
);
|
|
@@ -1782,12 +1779,12 @@ const tr = 3, ar = (t) => {
|
|
|
1782
1779
|
typographyStyle: b = "primary",
|
|
1783
1780
|
...f
|
|
1784
1781
|
}, g) => {
|
|
1785
|
-
const h = u, C =
|
|
1786
|
-
|
|
1782
|
+
const h = u, C = U(
|
|
1783
|
+
le.typography,
|
|
1787
1784
|
be[`typography-${t}-${r}-${_}`],
|
|
1788
|
-
|
|
1785
|
+
le[b],
|
|
1789
1786
|
{
|
|
1790
|
-
[
|
|
1787
|
+
[le.disabled]: c
|
|
1791
1788
|
},
|
|
1792
1789
|
d
|
|
1793
1790
|
);
|