skillgrid 0.0.31-dev-39184-segmented-control-and-tag-updates.1188117 → 0.0.31-dev-40201-checkbox.1191463
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/components/Checkbox/Checkbox.type.d.ts +5 -0
- package/dist/components/SegmentedControl/SegmentedControl.type.d.ts +4 -8
- package/dist/components/SegmentedControl/index.d.ts +1 -1
- package/dist/index.cjs.js +11 -11
- package/dist/index.css +1 -1
- package/dist/index.es.js +891 -901
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as Xt from "react";
|
|
2
|
-
import _t, { forwardRef as K, Fragment as Pe, useState as
|
|
2
|
+
import _t, { forwardRef as K, Fragment as Pe, useState as _e, useEffect as le, useRef as qe, useCallback as Se, useMemo as Lr, createContext as Yt, useContext as Zt, useLayoutEffect as jr, useImperativeHandle as kr, useId as pt } from "react";
|
|
3
3
|
import { clsx as $ } from "clsx";
|
|
4
4
|
import $r from "rc-tooltip";
|
|
5
5
|
import './index.css';function Er(e) {
|
|
6
6
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
7
7
|
}
|
|
8
|
-
var Ye = { exports: {} },
|
|
8
|
+
var Ye = { exports: {} }, De = {};
|
|
9
9
|
/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.production.min.js
|
|
@@ -17,19 +17,19 @@ var Ye = { exports: {} }, ze = {};
|
|
|
17
17
|
*/
|
|
18
18
|
var $t;
|
|
19
19
|
function Tr() {
|
|
20
|
-
if ($t) return
|
|
20
|
+
if ($t) return De;
|
|
21
21
|
$t = 1;
|
|
22
22
|
var e = _t, r = Symbol.for("react.element"), a = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
23
|
-
function l(c, _,
|
|
24
|
-
var
|
|
25
|
-
|
|
26
|
-
for (
|
|
27
|
-
if (c && c.defaultProps) for (
|
|
23
|
+
function l(c, _, f) {
|
|
24
|
+
var p, h = {}, m = null, g = null;
|
|
25
|
+
f !== void 0 && (m = "" + f), _.key !== void 0 && (m = "" + _.key), _.ref !== void 0 && (g = _.ref);
|
|
26
|
+
for (p in _) o.call(_, p) && !s.hasOwnProperty(p) && (h[p] = _[p]);
|
|
27
|
+
if (c && c.defaultProps) for (p in _ = c.defaultProps, _) h[p] === void 0 && (h[p] = _[p]);
|
|
28
28
|
return { $$typeof: r, type: c, key: m, ref: g, props: h, _owner: i.current };
|
|
29
29
|
}
|
|
30
|
-
return
|
|
30
|
+
return De.Fragment = a, De.jsx = l, De.jsxs = l, De;
|
|
31
31
|
}
|
|
32
|
-
var
|
|
32
|
+
var We = {};
|
|
33
33
|
/**
|
|
34
34
|
* @license React
|
|
35
35
|
* react-jsx-runtime.development.js
|
|
@@ -42,46 +42,46 @@ var qe = {};
|
|
|
42
42
|
var Et;
|
|
43
43
|
function Rr() {
|
|
44
44
|
return Et || (Et = 1, process.env.NODE_ENV !== "production" && function() {
|
|
45
|
-
var e = _t, r = Symbol.for("react.element"), a = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), c = Symbol.for("react.context"), _ = Symbol.for("react.forward_ref"),
|
|
46
|
-
function
|
|
45
|
+
var e = _t, r = Symbol.for("react.element"), a = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), c = Symbol.for("react.context"), _ = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), y = Symbol.iterator, C = "@@iterator";
|
|
46
|
+
function x(t) {
|
|
47
47
|
if (t === null || typeof t != "object")
|
|
48
48
|
return null;
|
|
49
|
-
var
|
|
50
|
-
return typeof
|
|
49
|
+
var u = y && t[y] || t[C];
|
|
50
|
+
return typeof u == "function" ? u : null;
|
|
51
51
|
}
|
|
52
|
-
var
|
|
53
|
-
function
|
|
52
|
+
var w = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
53
|
+
function d(t) {
|
|
54
54
|
{
|
|
55
|
-
for (var
|
|
56
|
-
b[
|
|
57
|
-
|
|
55
|
+
for (var u = arguments.length, b = new Array(u > 1 ? u - 1 : 0), k = 1; k < u; k++)
|
|
56
|
+
b[k - 1] = arguments[k];
|
|
57
|
+
v("error", t, b);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function v(t, u, b) {
|
|
61
61
|
{
|
|
62
|
-
var
|
|
63
|
-
|
|
64
|
-
var
|
|
65
|
-
return String(
|
|
62
|
+
var k = w.ReactDebugCurrentFrame, B = k.getStackAddendum();
|
|
63
|
+
B !== "" && (u += "%s", b = b.concat([B]));
|
|
64
|
+
var D = b.map(function(M) {
|
|
65
|
+
return String(M);
|
|
66
66
|
});
|
|
67
|
-
|
|
67
|
+
D.unshift("Warning: " + u), Function.prototype.apply.call(console[t], console, D);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
var L = !1,
|
|
70
|
+
var L = !1, T = !1, j = !1, R = !1, E = !1, A;
|
|
71
71
|
A = Symbol.for("react.module.reference");
|
|
72
|
-
function
|
|
73
|
-
return !!(typeof t == "string" || typeof t == "function" || t === o || t === s ||
|
|
72
|
+
function W(t) {
|
|
73
|
+
return !!(typeof t == "string" || typeof t == "function" || t === o || t === s || E || t === i || t === f || t === p || R || t === g || L || T || j || typeof t == "object" && t !== null && (t.$$typeof === m || t.$$typeof === h || t.$$typeof === l || t.$$typeof === c || t.$$typeof === _ || // This needs to include all possible module reference object
|
|
74
74
|
// types supported by any Flight configuration anywhere since
|
|
75
75
|
// we don't know which Flight build this will end up being used
|
|
76
76
|
// with.
|
|
77
77
|
t.$$typeof === A || t.getModuleId !== void 0));
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
var
|
|
81
|
-
if (
|
|
82
|
-
return
|
|
83
|
-
var
|
|
84
|
-
return
|
|
79
|
+
function q(t, u, b) {
|
|
80
|
+
var k = t.displayName;
|
|
81
|
+
if (k)
|
|
82
|
+
return k;
|
|
83
|
+
var B = u.displayName || u.name || "";
|
|
84
|
+
return B !== "" ? b + "(" + B + ")" : b;
|
|
85
85
|
}
|
|
86
86
|
function P(t) {
|
|
87
87
|
return t.displayName || "Context";
|
|
@@ -89,7 +89,7 @@ function Rr() {
|
|
|
89
89
|
function S(t) {
|
|
90
90
|
if (t == null)
|
|
91
91
|
return null;
|
|
92
|
-
if (typeof t.tag == "number" &&
|
|
92
|
+
if (typeof t.tag == "number" && d("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof t == "function")
|
|
93
93
|
return t.displayName || t.name || null;
|
|
94
94
|
if (typeof t == "string")
|
|
95
95
|
return t;
|
|
@@ -102,28 +102,28 @@ function Rr() {
|
|
|
102
102
|
return "Profiler";
|
|
103
103
|
case i:
|
|
104
104
|
return "StrictMode";
|
|
105
|
-
case p:
|
|
106
|
-
return "Suspense";
|
|
107
105
|
case f:
|
|
106
|
+
return "Suspense";
|
|
107
|
+
case p:
|
|
108
108
|
return "SuspenseList";
|
|
109
109
|
}
|
|
110
110
|
if (typeof t == "object")
|
|
111
111
|
switch (t.$$typeof) {
|
|
112
112
|
case c:
|
|
113
|
-
var
|
|
114
|
-
return P(
|
|
113
|
+
var u = t;
|
|
114
|
+
return P(u) + ".Consumer";
|
|
115
115
|
case l:
|
|
116
116
|
var b = t;
|
|
117
117
|
return P(b._context) + ".Provider";
|
|
118
118
|
case _:
|
|
119
|
-
return
|
|
119
|
+
return q(t, t.render, "ForwardRef");
|
|
120
120
|
case h:
|
|
121
|
-
var
|
|
122
|
-
return
|
|
121
|
+
var k = t.displayName || null;
|
|
122
|
+
return k !== null ? k : S(t.type) || "Memo";
|
|
123
123
|
case m: {
|
|
124
|
-
var
|
|
124
|
+
var B = t, D = B._payload, M = B._init;
|
|
125
125
|
try {
|
|
126
|
-
return S(
|
|
126
|
+
return S(M(D));
|
|
127
127
|
} catch {
|
|
128
128
|
return null;
|
|
129
129
|
}
|
|
@@ -131,14 +131,14 @@ function Rr() {
|
|
|
131
131
|
}
|
|
132
132
|
return null;
|
|
133
133
|
}
|
|
134
|
-
var
|
|
134
|
+
var O = Object.assign, z = 0, F, X, Q, ce, ae, ee, te;
|
|
135
135
|
function me() {
|
|
136
136
|
}
|
|
137
137
|
me.__reactDisabledLog = !0;
|
|
138
|
-
function
|
|
138
|
+
function ze() {
|
|
139
139
|
{
|
|
140
140
|
if (z === 0) {
|
|
141
|
-
|
|
141
|
+
F = console.log, X = console.info, Q = console.warn, ce = console.error, ae = console.group, ee = console.groupCollapsed, te = console.groupEnd;
|
|
142
142
|
var t = {
|
|
143
143
|
configurable: !0,
|
|
144
144
|
enumerable: !0,
|
|
@@ -158,7 +158,7 @@ function Rr() {
|
|
|
158
158
|
z++;
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function Ee() {
|
|
162
162
|
{
|
|
163
163
|
if (z--, z === 0) {
|
|
164
164
|
var t = {
|
|
@@ -167,196 +167,196 @@ function Rr() {
|
|
|
167
167
|
writable: !0
|
|
168
168
|
};
|
|
169
169
|
Object.defineProperties(console, {
|
|
170
|
-
log:
|
|
171
|
-
value:
|
|
170
|
+
log: O({}, t, {
|
|
171
|
+
value: F
|
|
172
172
|
}),
|
|
173
|
-
info:
|
|
173
|
+
info: O({}, t, {
|
|
174
174
|
value: X
|
|
175
175
|
}),
|
|
176
|
-
warn:
|
|
176
|
+
warn: O({}, t, {
|
|
177
177
|
value: Q
|
|
178
178
|
}),
|
|
179
|
-
error:
|
|
180
|
-
value:
|
|
179
|
+
error: O({}, t, {
|
|
180
|
+
value: ce
|
|
181
181
|
}),
|
|
182
|
-
group:
|
|
182
|
+
group: O({}, t, {
|
|
183
183
|
value: ae
|
|
184
184
|
}),
|
|
185
|
-
groupCollapsed:
|
|
185
|
+
groupCollapsed: O({}, t, {
|
|
186
186
|
value: ee
|
|
187
187
|
}),
|
|
188
|
-
groupEnd:
|
|
188
|
+
groupEnd: O({}, t, {
|
|
189
189
|
value: te
|
|
190
190
|
})
|
|
191
191
|
});
|
|
192
192
|
}
|
|
193
|
-
z < 0 &&
|
|
193
|
+
z < 0 && d("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
|
-
var be =
|
|
197
|
-
function
|
|
196
|
+
var be = w.ReactCurrentDispatcher, Te;
|
|
197
|
+
function je(t, u, b) {
|
|
198
198
|
{
|
|
199
|
-
if (
|
|
199
|
+
if (Te === void 0)
|
|
200
200
|
try {
|
|
201
201
|
throw Error();
|
|
202
|
-
} catch (
|
|
203
|
-
var
|
|
204
|
-
|
|
202
|
+
} catch (B) {
|
|
203
|
+
var k = B.stack.trim().match(/\n( *(at )?)/);
|
|
204
|
+
Te = k && k[1] || "";
|
|
205
205
|
}
|
|
206
206
|
return `
|
|
207
|
-
` +
|
|
207
|
+
` + Te + t;
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
|
-
var He = !1,
|
|
210
|
+
var He = !1, Re;
|
|
211
211
|
{
|
|
212
212
|
var Ke = typeof WeakMap == "function" ? WeakMap : Map;
|
|
213
|
-
|
|
213
|
+
Re = new Ke();
|
|
214
214
|
}
|
|
215
|
-
function Ve(t,
|
|
215
|
+
function Ve(t, u) {
|
|
216
216
|
if (!t || He)
|
|
217
217
|
return "";
|
|
218
218
|
{
|
|
219
|
-
var b =
|
|
219
|
+
var b = Re.get(t);
|
|
220
220
|
if (b !== void 0)
|
|
221
221
|
return b;
|
|
222
222
|
}
|
|
223
|
-
var
|
|
223
|
+
var k;
|
|
224
224
|
He = !0;
|
|
225
|
-
var
|
|
225
|
+
var B = Error.prepareStackTrace;
|
|
226
226
|
Error.prepareStackTrace = void 0;
|
|
227
|
-
var
|
|
228
|
-
|
|
227
|
+
var D;
|
|
228
|
+
D = be.current, be.current = null, ze();
|
|
229
229
|
try {
|
|
230
|
-
if (
|
|
231
|
-
var
|
|
230
|
+
if (u) {
|
|
231
|
+
var M = function() {
|
|
232
232
|
throw Error();
|
|
233
233
|
};
|
|
234
|
-
if (Object.defineProperty(
|
|
234
|
+
if (Object.defineProperty(M.prototype, "props", {
|
|
235
235
|
set: function() {
|
|
236
236
|
throw Error();
|
|
237
237
|
}
|
|
238
238
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
239
239
|
try {
|
|
240
|
-
Reflect.construct(
|
|
240
|
+
Reflect.construct(M, []);
|
|
241
241
|
} catch (oe) {
|
|
242
|
-
|
|
242
|
+
k = oe;
|
|
243
243
|
}
|
|
244
|
-
Reflect.construct(t, [],
|
|
244
|
+
Reflect.construct(t, [], M);
|
|
245
245
|
} else {
|
|
246
246
|
try {
|
|
247
|
-
|
|
247
|
+
M.call();
|
|
248
248
|
} catch (oe) {
|
|
249
|
-
|
|
249
|
+
k = oe;
|
|
250
250
|
}
|
|
251
|
-
t.call(
|
|
251
|
+
t.call(M.prototype);
|
|
252
252
|
}
|
|
253
253
|
} else {
|
|
254
254
|
try {
|
|
255
255
|
throw Error();
|
|
256
256
|
} catch (oe) {
|
|
257
|
-
|
|
257
|
+
k = oe;
|
|
258
258
|
}
|
|
259
259
|
t();
|
|
260
260
|
}
|
|
261
261
|
} catch (oe) {
|
|
262
|
-
if (oe &&
|
|
263
|
-
for (var
|
|
264
|
-
`), re =
|
|
265
|
-
`), Y =
|
|
262
|
+
if (oe && k && typeof oe.stack == "string") {
|
|
263
|
+
for (var N = oe.stack.split(`
|
|
264
|
+
`), re = k.stack.split(`
|
|
265
|
+
`), Y = N.length - 1, Z = re.length - 1; Y >= 1 && Z >= 0 && N[Y] !== re[Z]; )
|
|
266
266
|
Z--;
|
|
267
267
|
for (; Y >= 1 && Z >= 0; Y--, Z--)
|
|
268
|
-
if (
|
|
268
|
+
if (N[Y] !== re[Z]) {
|
|
269
269
|
if (Y !== 1 || Z !== 1)
|
|
270
270
|
do
|
|
271
|
-
if (Y--, Z--, Z < 0 ||
|
|
271
|
+
if (Y--, Z--, Z < 0 || N[Y] !== re[Z]) {
|
|
272
272
|
var pe = `
|
|
273
|
-
` +
|
|
274
|
-
return t.displayName && pe.includes("<anonymous>") && (pe = pe.replace("<anonymous>", t.displayName)), typeof t == "function" &&
|
|
273
|
+
` + N[Y].replace(" at new ", " at ");
|
|
274
|
+
return t.displayName && pe.includes("<anonymous>") && (pe = pe.replace("<anonymous>", t.displayName)), typeof t == "function" && Re.set(t, pe), pe;
|
|
275
275
|
}
|
|
276
276
|
while (Y >= 1 && Z >= 0);
|
|
277
277
|
break;
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
280
|
} finally {
|
|
281
|
-
He = !1, be.current =
|
|
281
|
+
He = !1, be.current = D, Ee(), Error.prepareStackTrace = B;
|
|
282
282
|
}
|
|
283
|
-
var
|
|
284
|
-
return typeof t == "function" &&
|
|
283
|
+
var Ie = t ? t.displayName || t.name : "", ke = Ie ? je(Ie) : "";
|
|
284
|
+
return typeof t == "function" && Re.set(t, ke), ke;
|
|
285
285
|
}
|
|
286
|
-
function Qe(t,
|
|
286
|
+
function Qe(t, u, b) {
|
|
287
287
|
return Ve(t, !1);
|
|
288
288
|
}
|
|
289
289
|
function et(t) {
|
|
290
|
-
var
|
|
291
|
-
return !!(
|
|
290
|
+
var u = t.prototype;
|
|
291
|
+
return !!(u && u.isReactComponent);
|
|
292
292
|
}
|
|
293
|
-
function G(t,
|
|
293
|
+
function G(t, u, b) {
|
|
294
294
|
if (t == null)
|
|
295
295
|
return "";
|
|
296
296
|
if (typeof t == "function")
|
|
297
297
|
return Ve(t, et(t));
|
|
298
298
|
if (typeof t == "string")
|
|
299
|
-
return
|
|
299
|
+
return je(t);
|
|
300
300
|
switch (t) {
|
|
301
|
-
case p:
|
|
302
|
-
return ke("Suspense");
|
|
303
301
|
case f:
|
|
304
|
-
return
|
|
302
|
+
return je("Suspense");
|
|
303
|
+
case p:
|
|
304
|
+
return je("SuspenseList");
|
|
305
305
|
}
|
|
306
306
|
if (typeof t == "object")
|
|
307
307
|
switch (t.$$typeof) {
|
|
308
308
|
case _:
|
|
309
309
|
return Qe(t.render);
|
|
310
310
|
case h:
|
|
311
|
-
return G(t.type,
|
|
311
|
+
return G(t.type, u, b);
|
|
312
312
|
case m: {
|
|
313
|
-
var
|
|
313
|
+
var k = t, B = k._payload, D = k._init;
|
|
314
314
|
try {
|
|
315
|
-
return G(
|
|
315
|
+
return G(D(B), u, b);
|
|
316
316
|
} catch {
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
return "";
|
|
321
321
|
}
|
|
322
|
-
var U = Object.prototype.hasOwnProperty, he = {}, gt =
|
|
322
|
+
var U = Object.prototype.hasOwnProperty, he = {}, gt = w.ReactDebugCurrentFrame;
|
|
323
323
|
function Xe(t) {
|
|
324
324
|
if (t) {
|
|
325
|
-
var
|
|
325
|
+
var u = t._owner, b = G(t.type, t._source, u ? u.type : null);
|
|
326
326
|
gt.setExtraStackFrame(b);
|
|
327
327
|
} else
|
|
328
328
|
gt.setExtraStackFrame(null);
|
|
329
329
|
}
|
|
330
|
-
function
|
|
330
|
+
function ar(t, u, b, k, B) {
|
|
331
331
|
{
|
|
332
|
-
var
|
|
333
|
-
for (var
|
|
334
|
-
if (
|
|
335
|
-
var
|
|
332
|
+
var D = Function.call.bind(U);
|
|
333
|
+
for (var M in t)
|
|
334
|
+
if (D(t, M)) {
|
|
335
|
+
var N = void 0;
|
|
336
336
|
try {
|
|
337
|
-
if (typeof t[
|
|
338
|
-
var re = Error((
|
|
337
|
+
if (typeof t[M] != "function") {
|
|
338
|
+
var re = Error((k || "React class") + ": " + b + " type `" + M + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[M] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
339
339
|
throw re.name = "Invariant Violation", re;
|
|
340
340
|
}
|
|
341
|
-
|
|
341
|
+
N = t[M](u, M, k, b, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
342
342
|
} catch (Y) {
|
|
343
|
-
|
|
343
|
+
N = Y;
|
|
344
344
|
}
|
|
345
|
-
|
|
345
|
+
N && !(N instanceof Error) && (Xe(B), d("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", k || "React class", b, M, typeof N), Xe(null)), N instanceof Error && !(N.message in he) && (he[N.message] = !0, Xe(B), d("Failed %s type: %s", b, N.message), Xe(null));
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
|
-
var
|
|
349
|
+
var or = Array.isArray;
|
|
350
350
|
function tt(t) {
|
|
351
|
-
return
|
|
351
|
+
return or(t);
|
|
352
352
|
}
|
|
353
|
-
function
|
|
353
|
+
function nr(t) {
|
|
354
354
|
{
|
|
355
|
-
var
|
|
355
|
+
var u = typeof Symbol == "function" && Symbol.toStringTag, b = u && t[Symbol.toStringTag] || t.constructor.name || "Object";
|
|
356
356
|
return b;
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
|
-
function
|
|
359
|
+
function sr(t) {
|
|
360
360
|
try {
|
|
361
361
|
return bt(t), !1;
|
|
362
362
|
} catch {
|
|
@@ -367,38 +367,38 @@ function Rr() {
|
|
|
367
367
|
return "" + t;
|
|
368
368
|
}
|
|
369
369
|
function ht(t) {
|
|
370
|
-
if (
|
|
371
|
-
return
|
|
370
|
+
if (sr(t))
|
|
371
|
+
return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", nr(t)), bt(t);
|
|
372
372
|
}
|
|
373
|
-
var mt =
|
|
373
|
+
var mt = w.ReactCurrentOwner, ir = {
|
|
374
374
|
key: !0,
|
|
375
375
|
ref: !0,
|
|
376
376
|
__self: !0,
|
|
377
377
|
__source: !0
|
|
378
378
|
}, yt, xt;
|
|
379
|
-
function
|
|
379
|
+
function lr(t) {
|
|
380
380
|
if (U.call(t, "ref")) {
|
|
381
|
-
var
|
|
382
|
-
if (
|
|
381
|
+
var u = Object.getOwnPropertyDescriptor(t, "ref").get;
|
|
382
|
+
if (u && u.isReactWarning)
|
|
383
383
|
return !1;
|
|
384
384
|
}
|
|
385
385
|
return t.ref !== void 0;
|
|
386
386
|
}
|
|
387
|
-
function
|
|
387
|
+
function cr(t) {
|
|
388
388
|
if (U.call(t, "key")) {
|
|
389
|
-
var
|
|
390
|
-
if (
|
|
389
|
+
var u = Object.getOwnPropertyDescriptor(t, "key").get;
|
|
390
|
+
if (u && u.isReactWarning)
|
|
391
391
|
return !1;
|
|
392
392
|
}
|
|
393
393
|
return t.key !== void 0;
|
|
394
394
|
}
|
|
395
|
-
function
|
|
395
|
+
function dr(t, u) {
|
|
396
396
|
typeof t.ref == "string" && mt.current;
|
|
397
397
|
}
|
|
398
|
-
function
|
|
398
|
+
function ur(t, u) {
|
|
399
399
|
{
|
|
400
400
|
var b = function() {
|
|
401
|
-
yt || (yt = !0,
|
|
401
|
+
yt || (yt = !0, d("%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)", u));
|
|
402
402
|
};
|
|
403
403
|
b.isReactWarning = !0, Object.defineProperty(t, "key", {
|
|
404
404
|
get: b,
|
|
@@ -406,10 +406,10 @@ function Rr() {
|
|
|
406
406
|
});
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
|
-
function
|
|
409
|
+
function _r(t, u) {
|
|
410
410
|
{
|
|
411
411
|
var b = function() {
|
|
412
|
-
xt || (xt = !0,
|
|
412
|
+
xt || (xt = !0, d("%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)", u));
|
|
413
413
|
};
|
|
414
414
|
b.isReactWarning = !0, Object.defineProperty(t, "ref", {
|
|
415
415
|
get: b,
|
|
@@ -417,57 +417,57 @@ function Rr() {
|
|
|
417
417
|
});
|
|
418
418
|
}
|
|
419
419
|
}
|
|
420
|
-
var
|
|
421
|
-
var
|
|
420
|
+
var pr = function(t, u, b, k, B, D, M) {
|
|
421
|
+
var N = {
|
|
422
422
|
// This tag allows us to uniquely identify this as a React Element
|
|
423
423
|
$$typeof: r,
|
|
424
424
|
// Built-in properties that belong on the element
|
|
425
425
|
type: t,
|
|
426
|
-
key:
|
|
426
|
+
key: u,
|
|
427
427
|
ref: b,
|
|
428
|
-
props:
|
|
428
|
+
props: M,
|
|
429
429
|
// Record the component responsible for creating this element.
|
|
430
|
-
_owner:
|
|
430
|
+
_owner: D
|
|
431
431
|
};
|
|
432
|
-
return
|
|
432
|
+
return N._store = {}, Object.defineProperty(N._store, "validated", {
|
|
433
433
|
configurable: !1,
|
|
434
434
|
enumerable: !1,
|
|
435
435
|
writable: !0,
|
|
436
436
|
value: !1
|
|
437
|
-
}), Object.defineProperty(
|
|
437
|
+
}), Object.defineProperty(N, "_self", {
|
|
438
438
|
configurable: !1,
|
|
439
439
|
enumerable: !1,
|
|
440
440
|
writable: !1,
|
|
441
|
-
value:
|
|
442
|
-
}), Object.defineProperty(
|
|
441
|
+
value: k
|
|
442
|
+
}), Object.defineProperty(N, "_source", {
|
|
443
443
|
configurable: !1,
|
|
444
444
|
enumerable: !1,
|
|
445
445
|
writable: !1,
|
|
446
|
-
value:
|
|
447
|
-
}), Object.freeze && (Object.freeze(
|
|
446
|
+
value: B
|
|
447
|
+
}), Object.freeze && (Object.freeze(N.props), Object.freeze(N)), N;
|
|
448
448
|
};
|
|
449
|
-
function
|
|
449
|
+
function fr(t, u, b, k, B) {
|
|
450
450
|
{
|
|
451
|
-
var
|
|
452
|
-
b !== void 0 && (ht(b),
|
|
453
|
-
for (
|
|
454
|
-
U.call(
|
|
451
|
+
var D, M = {}, N = null, re = null;
|
|
452
|
+
b !== void 0 && (ht(b), N = "" + b), cr(u) && (ht(u.key), N = "" + u.key), lr(u) && (re = u.ref, dr(u, B));
|
|
453
|
+
for (D in u)
|
|
454
|
+
U.call(u, D) && !ir.hasOwnProperty(D) && (M[D] = u[D]);
|
|
455
455
|
if (t && t.defaultProps) {
|
|
456
456
|
var Y = t.defaultProps;
|
|
457
|
-
for (
|
|
458
|
-
|
|
457
|
+
for (D in Y)
|
|
458
|
+
M[D] === void 0 && (M[D] = Y[D]);
|
|
459
459
|
}
|
|
460
|
-
if (
|
|
460
|
+
if (N || re) {
|
|
461
461
|
var Z = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
|
|
462
|
-
|
|
462
|
+
N && ur(M, Z), re && _r(M, Z);
|
|
463
463
|
}
|
|
464
|
-
return
|
|
464
|
+
return pr(t, N, re, B, k, mt.current, M);
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
|
-
var rt =
|
|
468
|
-
function
|
|
467
|
+
var rt = w.ReactCurrentOwner, vt = w.ReactDebugCurrentFrame;
|
|
468
|
+
function Ne(t) {
|
|
469
469
|
if (t) {
|
|
470
|
-
var
|
|
470
|
+
var u = t._owner, b = G(t.type, t._source, u ? u.type : null);
|
|
471
471
|
vt.setExtraStackFrame(b);
|
|
472
472
|
} else
|
|
473
473
|
vt.setExtraStackFrame(null);
|
|
@@ -489,161 +489,161 @@ Check the render method of \`` + t + "`.";
|
|
|
489
489
|
return "";
|
|
490
490
|
}
|
|
491
491
|
}
|
|
492
|
-
function
|
|
492
|
+
function gr(t) {
|
|
493
493
|
return "";
|
|
494
494
|
}
|
|
495
495
|
var Ct = {};
|
|
496
|
-
function
|
|
496
|
+
function br(t) {
|
|
497
497
|
{
|
|
498
|
-
var
|
|
499
|
-
if (!
|
|
498
|
+
var u = wt();
|
|
499
|
+
if (!u) {
|
|
500
500
|
var b = typeof t == "string" ? t : t.displayName || t.name;
|
|
501
|
-
b && (
|
|
501
|
+
b && (u = `
|
|
502
502
|
|
|
503
503
|
Check the top-level render call using <` + b + ">.");
|
|
504
504
|
}
|
|
505
|
-
return
|
|
505
|
+
return u;
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
|
-
function St(t,
|
|
508
|
+
function St(t, u) {
|
|
509
509
|
{
|
|
510
510
|
if (!t._store || t._store.validated || t.key != null)
|
|
511
511
|
return;
|
|
512
512
|
t._store.validated = !0;
|
|
513
|
-
var b =
|
|
513
|
+
var b = br(u);
|
|
514
514
|
if (Ct[b])
|
|
515
515
|
return;
|
|
516
516
|
Ct[b] = !0;
|
|
517
|
-
var
|
|
518
|
-
t && t._owner && t._owner !== rt.current && (
|
|
517
|
+
var k = "";
|
|
518
|
+
t && t._owner && t._owner !== rt.current && (k = " It was passed a child from " + S(t._owner.type) + "."), Ne(t), d('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', b, k), Ne(null);
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
|
-
function Lt(t,
|
|
521
|
+
function Lt(t, u) {
|
|
522
522
|
{
|
|
523
523
|
if (typeof t != "object")
|
|
524
524
|
return;
|
|
525
525
|
if (tt(t))
|
|
526
526
|
for (var b = 0; b < t.length; b++) {
|
|
527
|
-
var
|
|
528
|
-
ot(
|
|
527
|
+
var k = t[b];
|
|
528
|
+
ot(k) && St(k, u);
|
|
529
529
|
}
|
|
530
530
|
else if (ot(t))
|
|
531
531
|
t._store && (t._store.validated = !0);
|
|
532
532
|
else if (t) {
|
|
533
|
-
var
|
|
534
|
-
if (typeof
|
|
535
|
-
for (var
|
|
536
|
-
ot(
|
|
533
|
+
var B = x(t);
|
|
534
|
+
if (typeof B == "function" && B !== t.entries)
|
|
535
|
+
for (var D = B.call(t), M; !(M = D.next()).done; )
|
|
536
|
+
ot(M.value) && St(M.value, u);
|
|
537
537
|
}
|
|
538
538
|
}
|
|
539
539
|
}
|
|
540
|
-
function
|
|
540
|
+
function hr(t) {
|
|
541
541
|
{
|
|
542
|
-
var
|
|
543
|
-
if (
|
|
542
|
+
var u = t.type;
|
|
543
|
+
if (u == null || typeof u == "string")
|
|
544
544
|
return;
|
|
545
545
|
var b;
|
|
546
|
-
if (typeof
|
|
547
|
-
b =
|
|
548
|
-
else if (typeof
|
|
546
|
+
if (typeof u == "function")
|
|
547
|
+
b = u.propTypes;
|
|
548
|
+
else if (typeof u == "object" && (u.$$typeof === _ || // Note: Memo only checks outer props here.
|
|
549
549
|
// Inner props are checked in the reconciler.
|
|
550
|
-
|
|
551
|
-
b =
|
|
550
|
+
u.$$typeof === h))
|
|
551
|
+
b = u.propTypes;
|
|
552
552
|
else
|
|
553
553
|
return;
|
|
554
554
|
if (b) {
|
|
555
|
-
var
|
|
556
|
-
|
|
557
|
-
} else if (
|
|
555
|
+
var k = S(u);
|
|
556
|
+
ar(b, t.props, "prop", k, t);
|
|
557
|
+
} else if (u.PropTypes !== void 0 && !at) {
|
|
558
558
|
at = !0;
|
|
559
|
-
var
|
|
560
|
-
|
|
559
|
+
var B = S(u);
|
|
560
|
+
d("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", B || "Unknown");
|
|
561
561
|
}
|
|
562
|
-
typeof
|
|
562
|
+
typeof u.getDefaultProps == "function" && !u.getDefaultProps.isReactClassApproved && d("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
563
563
|
}
|
|
564
564
|
}
|
|
565
|
-
function
|
|
565
|
+
function mr(t) {
|
|
566
566
|
{
|
|
567
|
-
for (var
|
|
568
|
-
var
|
|
569
|
-
if (
|
|
570
|
-
|
|
567
|
+
for (var u = Object.keys(t.props), b = 0; b < u.length; b++) {
|
|
568
|
+
var k = u[b];
|
|
569
|
+
if (k !== "children" && k !== "key") {
|
|
570
|
+
Ne(t), d("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", k), Ne(null);
|
|
571
571
|
break;
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
|
-
t.ref !== null && (
|
|
574
|
+
t.ref !== null && (Ne(t), d("Invalid attribute `ref` supplied to `React.Fragment`."), Ne(null));
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
577
|
var jt = {};
|
|
578
|
-
function kt(t,
|
|
578
|
+
function kt(t, u, b, k, B, D) {
|
|
579
579
|
{
|
|
580
|
-
var
|
|
581
|
-
if (!
|
|
582
|
-
var
|
|
583
|
-
(t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (
|
|
584
|
-
var re =
|
|
585
|
-
re ?
|
|
580
|
+
var M = W(t);
|
|
581
|
+
if (!M) {
|
|
582
|
+
var N = "";
|
|
583
|
+
(t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (N += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
584
|
+
var re = gr();
|
|
585
|
+
re ? N += re : N += wt();
|
|
586
586
|
var Y;
|
|
587
|
-
t === null ? Y = "null" : tt(t) ? Y = "array" : t !== void 0 && t.$$typeof === r ? (Y = "<" + (S(t.type) || "Unknown") + " />",
|
|
587
|
+
t === null ? Y = "null" : tt(t) ? Y = "array" : t !== void 0 && t.$$typeof === r ? (Y = "<" + (S(t.type) || "Unknown") + " />", N = " Did you accidentally export a JSX literal instead of a component?") : Y = typeof t, d("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Y, N);
|
|
588
588
|
}
|
|
589
|
-
var Z =
|
|
589
|
+
var Z = fr(t, u, b, B, D);
|
|
590
590
|
if (Z == null)
|
|
591
591
|
return Z;
|
|
592
|
-
if (
|
|
593
|
-
var pe =
|
|
592
|
+
if (M) {
|
|
593
|
+
var pe = u.children;
|
|
594
594
|
if (pe !== void 0)
|
|
595
|
-
if (
|
|
595
|
+
if (k)
|
|
596
596
|
if (tt(pe)) {
|
|
597
|
-
for (var
|
|
598
|
-
Lt(pe[
|
|
597
|
+
for (var Ie = 0; Ie < pe.length; Ie++)
|
|
598
|
+
Lt(pe[Ie], t);
|
|
599
599
|
Object.freeze && Object.freeze(pe);
|
|
600
600
|
} else
|
|
601
|
-
|
|
601
|
+
d("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
602
|
else
|
|
603
603
|
Lt(pe, t);
|
|
604
604
|
}
|
|
605
|
-
if (U.call(
|
|
606
|
-
var
|
|
607
|
-
return
|
|
605
|
+
if (U.call(u, "key")) {
|
|
606
|
+
var ke = S(t), oe = Object.keys(u).filter(function(Sr) {
|
|
607
|
+
return Sr !== "key";
|
|
608
608
|
}), nt = oe.length > 0 ? "{key: someKey, " + oe.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
609
|
-
if (!jt[
|
|
610
|
-
var
|
|
611
|
-
|
|
609
|
+
if (!jt[ke + nt]) {
|
|
610
|
+
var Cr = oe.length > 0 ? "{" + oe.join(": ..., ") + ": ...}" : "{}";
|
|
611
|
+
d(`A props object containing a "key" prop is being spread into JSX:
|
|
612
612
|
let props = %s;
|
|
613
613
|
<%s {...props} />
|
|
614
614
|
React keys must be passed directly to JSX without using spread:
|
|
615
615
|
let props = %s;
|
|
616
|
-
<%s key={someKey} {...props} />`, nt,
|
|
616
|
+
<%s key={someKey} {...props} />`, nt, ke, Cr, ke), jt[ke + nt] = !0;
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
|
-
return t === o ?
|
|
619
|
+
return t === o ? mr(Z) : hr(Z), Z;
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
|
-
function
|
|
623
|
-
return kt(t,
|
|
622
|
+
function yr(t, u, b) {
|
|
623
|
+
return kt(t, u, b, !0);
|
|
624
624
|
}
|
|
625
|
-
function
|
|
626
|
-
return kt(t,
|
|
625
|
+
function xr(t, u, b) {
|
|
626
|
+
return kt(t, u, b, !1);
|
|
627
627
|
}
|
|
628
|
-
var
|
|
629
|
-
|
|
630
|
-
}()),
|
|
628
|
+
var vr = xr, wr = yr;
|
|
629
|
+
We.Fragment = o, We.jsx = vr, We.jsxs = wr;
|
|
630
|
+
}()), We;
|
|
631
631
|
}
|
|
632
632
|
var Tt;
|
|
633
633
|
function Nr() {
|
|
634
634
|
return Tt || (Tt = 1, process.env.NODE_ENV === "production" ? Ye.exports = Tr() : Ye.exports = Rr()), Ye.exports;
|
|
635
635
|
}
|
|
636
636
|
var n = Nr();
|
|
637
|
-
const Ir = (e) => e.as === "a", Mr = (e) => e.as === void 0 || e.as === "button",
|
|
637
|
+
const Ir = (e) => e.as === "a", Mr = (e) => e.as === void 0 || e.as === "button", Me = (e) => e.displayAs === void 0 || e.displayAs === "button", st = (e) => e.displayAs === "link", Or = "_button_6bymk_1", Ar = "_link_6bymk_17", Pr = "_disabled_6bymk_22", Br = "_loading_6bymk_22", zr = "_neutral_6bymk_50", Dr = "_accent_6bymk_54", Wr = "_positive_6bymk_58", Fr = "_negative_6bymk_62", qr = "_contrast_6bymk_66", Hr = "_special_6bymk_70", Vr = "_primary_6bymk_74", Xr = "_secondary_6bymk_75", Yr = "_tertiary_6bymk_76", Zr = "_spaceBetween_6bymk_116", Gr = "_rightGroup_6bymk_116", Ur = "_label_6bymk_136", Jr = "_iconOnly_6bymk_155", Kr = "_stretched_6bymk_171", Qr = "_icon_6bymk_155", ea = "_postfix_6bymk_176", ta = "_underline_6bymk_202", ra = "_warning_6bymk_1082", aa = "_withSubcaption_6bymk_1268", oa = "_subcaption_6bymk_1273", na = "_loader_6bymk_1279", sa = "_spin_6bymk_1", ia = "_l_6bymk_17", la = "_m_6bymk_1318", ca = "_s_6bymk_70", da = "_xs_6bymk_1364", ua = "_iconRight_6bymk_1410", V = {
|
|
638
638
|
button: Or,
|
|
639
639
|
link: Ar,
|
|
640
640
|
disabled: Pr,
|
|
641
641
|
loading: Br,
|
|
642
|
-
neutral:
|
|
643
|
-
accent:
|
|
644
|
-
positive:
|
|
645
|
-
negative:
|
|
646
|
-
contrast:
|
|
642
|
+
neutral: zr,
|
|
643
|
+
accent: Dr,
|
|
644
|
+
positive: Wr,
|
|
645
|
+
negative: Fr,
|
|
646
|
+
contrast: qr,
|
|
647
647
|
special: Hr,
|
|
648
648
|
primary: Vr,
|
|
649
649
|
secondary: Xr,
|
|
@@ -732,13 +732,13 @@ const ie = {
|
|
|
732
732
|
}) => {
|
|
733
733
|
if (e && c)
|
|
734
734
|
return /* @__PURE__ */ n.jsx("span", { className: V.loader, "data-testid": "button-loader", "aria-hidden": "true" });
|
|
735
|
-
const _ = r && c || r && !c && l,
|
|
735
|
+
const _ = r && c || r && !c && l, f = s && c && l !== "s" && l !== "xs";
|
|
736
736
|
return /* @__PURE__ */ n.jsxs(Pe, { children: [
|
|
737
|
-
|
|
737
|
+
f && /* @__PURE__ */ n.jsxs(Pe, { children: [
|
|
738
738
|
/* @__PURE__ */ n.jsx("span", { "data-testid": "button-label", className: V.label, children: o }),
|
|
739
739
|
/* @__PURE__ */ n.jsx("span", { "data-testid": "button-subcaption", className: V.subcaption, children: s })
|
|
740
740
|
] }),
|
|
741
|
-
!
|
|
741
|
+
!f && o && /* @__PURE__ */ n.jsxs(Pe, { children: [
|
|
742
742
|
/* @__PURE__ */ n.jsxs("span", { "data-testid": "button-label", className: V.label, children: [
|
|
743
743
|
!c && a && /* @__PURE__ */ n.jsx("span", { "data-testid": "button-left-icon", className: V.icon, children: a }),
|
|
744
744
|
o,
|
|
@@ -749,55 +749,55 @@ const ie = {
|
|
|
749
749
|
i && c && /* @__PURE__ */ n.jsx("span", { "data-testid": "button-postfix", className: V.postfix, children: i })
|
|
750
750
|
] })
|
|
751
751
|
] }),
|
|
752
|
-
!
|
|
752
|
+
!f && !o && /* @__PURE__ */ n.jsx("span", { "data-testid": "button-icon", className: V.icon, children: r })
|
|
753
753
|
] });
|
|
754
754
|
}, ga = K((e, r) => {
|
|
755
755
|
const {
|
|
756
756
|
mode: a = "primary",
|
|
757
757
|
size: o = "m",
|
|
758
|
-
buttonStyle: i =
|
|
758
|
+
buttonStyle: i = Me(e) ? "neutral" : "accent",
|
|
759
759
|
disabled: s = !1,
|
|
760
760
|
displayAs: l = "button",
|
|
761
761
|
iconRight: c,
|
|
762
762
|
className: _,
|
|
763
|
-
children:
|
|
764
|
-
tabIndex:
|
|
765
|
-
} = e, h =
|
|
763
|
+
children: f,
|
|
764
|
+
tabIndex: p
|
|
765
|
+
} = e, h = Me(e) ? e.subcaption : void 0, m = Me(e) ? e.postfix : void 0, g = Me(e) ? e.stretched : void 0, y = !(st(e) && e.size === void 0), C = st(e) && y ? e.iconLeft : void 0, x = !!(l === "button" && "loading" in e && e.loading), w = Me(e) ? s : s || x, d = !w && !x, v = y ? c : void 0, L = !!(v && !f), T = typeof g == "object" ? g.justify === "space-between" : void 0, j = st(e) ? fa(e.size ?? "m") : void 0, R = j ? ie[j] : void 0, E = w || x ? -1 : p, A = $(
|
|
766
766
|
V.button,
|
|
767
767
|
V[o],
|
|
768
768
|
V[a],
|
|
769
769
|
V[i],
|
|
770
|
-
|
|
770
|
+
R,
|
|
771
771
|
{
|
|
772
|
-
[V.disabled]:
|
|
772
|
+
[V.disabled]: w,
|
|
773
773
|
[V.loading]: l === "button" && "loading" in e && e.loading,
|
|
774
774
|
[V.stretched]: g,
|
|
775
|
-
[V.spaceBetween]:
|
|
775
|
+
[V.spaceBetween]: T,
|
|
776
776
|
[V.withSubcaption]: h && o !== "s" && o !== "xs",
|
|
777
777
|
[V.iconOnly]: L,
|
|
778
778
|
[V.link]: l === "link",
|
|
779
779
|
[V.underline]: l === "link" && "showUnderline" in e && e.showUnderline
|
|
780
780
|
},
|
|
781
781
|
_
|
|
782
|
-
),
|
|
783
|
-
isLoading:
|
|
784
|
-
iconRight:
|
|
782
|
+
), W = {
|
|
783
|
+
isLoading: x,
|
|
784
|
+
iconRight: v,
|
|
785
785
|
iconLeft: C,
|
|
786
|
-
children:
|
|
786
|
+
children: f,
|
|
787
787
|
postfix: m,
|
|
788
788
|
subcaption: h,
|
|
789
789
|
size: o,
|
|
790
|
-
isAsButton:
|
|
790
|
+
isAsButton: Me(e)
|
|
791
791
|
};
|
|
792
792
|
if (Ir(e)) {
|
|
793
|
-
const { href:
|
|
793
|
+
const { href: q, onClick: P, style: S, target: O, rel: z, "data-testid": F, ...X } = e, Q = Rt(X), ce = O ?? (e.isExternal ? "_blank" : void 0);
|
|
794
794
|
let ae = z;
|
|
795
|
-
if (
|
|
795
|
+
if (ce === "_blank") {
|
|
796
796
|
const te = new Set((z ?? "").split(/\s+/).filter(Boolean));
|
|
797
797
|
te.add("noopener").add("noreferrer"), ae = Array.from(te).join(" ");
|
|
798
798
|
}
|
|
799
799
|
const ee = (te) => {
|
|
800
|
-
if (!
|
|
800
|
+
if (!d) {
|
|
801
801
|
te.preventDefault();
|
|
802
802
|
return;
|
|
803
803
|
}
|
|
@@ -808,37 +808,37 @@ const ie = {
|
|
|
808
808
|
{
|
|
809
809
|
ref: r,
|
|
810
810
|
className: A,
|
|
811
|
-
href:
|
|
812
|
-
tabIndex:
|
|
811
|
+
href: d ? q : void 0,
|
|
812
|
+
tabIndex: E,
|
|
813
813
|
onClick: ee,
|
|
814
|
-
"data-testid":
|
|
815
|
-
"aria-disabled":
|
|
814
|
+
"data-testid": F,
|
|
815
|
+
"aria-disabled": w || x,
|
|
816
816
|
style: S,
|
|
817
|
-
target:
|
|
817
|
+
target: ce,
|
|
818
818
|
rel: ae,
|
|
819
819
|
...Q,
|
|
820
|
-
children: /* @__PURE__ */ n.jsx(Nt, { ...
|
|
820
|
+
children: /* @__PURE__ */ n.jsx(Nt, { ...W })
|
|
821
821
|
}
|
|
822
822
|
);
|
|
823
823
|
}
|
|
824
824
|
if (Mr(e)) {
|
|
825
|
-
const { type:
|
|
826
|
-
|
|
825
|
+
const { type: q = "button", onClick: P, style: S, "data-testid": O, ...z } = e, F = Rt(z), X = (Q) => {
|
|
826
|
+
d && P && P(Q);
|
|
827
827
|
};
|
|
828
828
|
return /* @__PURE__ */ n.jsx(
|
|
829
829
|
"button",
|
|
830
830
|
{
|
|
831
831
|
ref: r,
|
|
832
|
-
type:
|
|
832
|
+
type: q,
|
|
833
833
|
className: A,
|
|
834
|
-
disabled:
|
|
835
|
-
tabIndex:
|
|
834
|
+
disabled: w,
|
|
835
|
+
tabIndex: E,
|
|
836
836
|
onClick: X,
|
|
837
|
-
"data-testid":
|
|
838
|
-
"aria-disabled":
|
|
837
|
+
"data-testid": O,
|
|
838
|
+
"aria-disabled": w || x,
|
|
839
839
|
style: S,
|
|
840
|
-
...
|
|
841
|
-
children: /* @__PURE__ */ n.jsx(Nt, { ...
|
|
840
|
+
...F,
|
|
841
|
+
children: /* @__PURE__ */ n.jsx(Nt, { ...W })
|
|
842
842
|
}
|
|
843
843
|
);
|
|
844
844
|
}
|
|
@@ -884,7 +884,7 @@ function ba() {
|
|
|
884
884
|
}(it)), it.exports;
|
|
885
885
|
}
|
|
886
886
|
var ha = ba();
|
|
887
|
-
const
|
|
887
|
+
const Le = /* @__PURE__ */ Er(ha), ma = "_avatar_19ug4_18", ya = "_clickable_19ug4_40", xa = "_icon_19ug4_57", va = "_disabled_19ug4_62", wa = "_loading_19ug4_67", Ca = "_image_19ug4_73", Sa = "_name_19ug4_73", ye = {
|
|
888
888
|
avatar: ma,
|
|
889
889
|
clickable: ya,
|
|
890
890
|
icon: xa,
|
|
@@ -980,35 +980,35 @@ const Ma = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
980
980
|
shape: l = "circle",
|
|
981
981
|
variant: c = "filled",
|
|
982
982
|
placeholderType: _ = "neutral",
|
|
983
|
-
name:
|
|
984
|
-
imgSrc:
|
|
983
|
+
name: f,
|
|
984
|
+
imgSrc: p,
|
|
985
985
|
imgAlt: h,
|
|
986
986
|
icon: m,
|
|
987
987
|
imgProps: g,
|
|
988
|
-
colorScheme:
|
|
988
|
+
colorScheme: y,
|
|
989
989
|
className: C,
|
|
990
|
-
"data-testid":
|
|
991
|
-
...
|
|
992
|
-
} = e, { onClick:
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
}, [
|
|
996
|
-
const
|
|
990
|
+
"data-testid": x,
|
|
991
|
+
...w
|
|
992
|
+
} = e, { onClick: d, onPointerDown: v } = w, T = !s && !i && (!!d || !!v), [j, R] = _e(!1);
|
|
993
|
+
le(() => {
|
|
994
|
+
p && R(!1);
|
|
995
|
+
}, [p]);
|
|
996
|
+
const E = p && !j ? "image" : m ? "icon" : f ? "name" : "placeholder", A = y || E === "name" && $a(f) || "gray", W = Ia(o), q = Ra(o, l), P = $(
|
|
997
997
|
C,
|
|
998
998
|
ye.avatar,
|
|
999
999
|
ye[`variant-${c}`],
|
|
1000
1000
|
ye[`color-${A}`],
|
|
1001
|
-
ie[
|
|
1001
|
+
ie[W],
|
|
1002
1002
|
{
|
|
1003
1003
|
[ye.disabled]: s,
|
|
1004
1004
|
[ye.loading]: i,
|
|
1005
|
-
[ye.clickable]:
|
|
1005
|
+
[ye.clickable]: T
|
|
1006
1006
|
}
|
|
1007
1007
|
), S = {
|
|
1008
1008
|
"--avatar-size": `${o}px`,
|
|
1009
|
-
"--avatar-border-radius": `${
|
|
1009
|
+
"--avatar-border-radius": `${q}px`,
|
|
1010
1010
|
...a
|
|
1011
|
-
},
|
|
1011
|
+
}, O = {
|
|
1012
1012
|
icon: () => /* @__PURE__ */ n.jsx("span", { "data-testid": "avatar-icon", title: h || void 0, role: "img", className: ye.icon, children: m == null ? void 0 : m({}) }),
|
|
1013
1013
|
name: () => /* @__PURE__ */ n.jsx(
|
|
1014
1014
|
"span",
|
|
@@ -1017,7 +1017,7 @@ const Ma = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
1017
1017
|
"data-testid": "avatar-name",
|
|
1018
1018
|
className: ye.name,
|
|
1019
1019
|
title: h || void 0,
|
|
1020
|
-
children: Ea(
|
|
1020
|
+
children: Ea(f || "")
|
|
1021
1021
|
}
|
|
1022
1022
|
),
|
|
1023
1023
|
placeholder: () => /* @__PURE__ */ n.jsx(
|
|
@@ -1036,17 +1036,17 @@ const Ma = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
1036
1036
|
"data-testid": "avatar-image",
|
|
1037
1037
|
...g,
|
|
1038
1038
|
className: ye.image,
|
|
1039
|
-
src:
|
|
1039
|
+
src: p || void 0,
|
|
1040
1040
|
alt: h || void 0,
|
|
1041
|
-
onLoad: () =>
|
|
1042
|
-
onError: (
|
|
1041
|
+
onLoad: () => R(!1),
|
|
1042
|
+
onError: (F) => {
|
|
1043
1043
|
var X;
|
|
1044
|
-
|
|
1044
|
+
R(!0), (X = g == null ? void 0 : g.onError) == null || X.call(g, F);
|
|
1045
1045
|
}
|
|
1046
1046
|
}
|
|
1047
1047
|
)
|
|
1048
|
-
}, z = (
|
|
1049
|
-
|
|
1048
|
+
}, z = (F) => {
|
|
1049
|
+
T && (d == null || d(F));
|
|
1050
1050
|
};
|
|
1051
1051
|
return /* @__PURE__ */ n.jsx(
|
|
1052
1052
|
"div",
|
|
@@ -1055,49 +1055,49 @@ const Ma = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
1055
1055
|
onClick: z,
|
|
1056
1056
|
className: P,
|
|
1057
1057
|
style: S,
|
|
1058
|
-
"data-testid":
|
|
1058
|
+
"data-testid": x,
|
|
1059
1059
|
"aria-disabled": s || i,
|
|
1060
|
-
children:
|
|
1060
|
+
children: O[E](null)
|
|
1061
1061
|
}
|
|
1062
1062
|
);
|
|
1063
|
-
}),
|
|
1064
|
-
avatarGroup:
|
|
1065
|
-
},
|
|
1063
|
+
}), za = "_avatarGroup_157g4_1", Da = {
|
|
1064
|
+
avatarGroup: za
|
|
1065
|
+
}, Wa = (e) => e === "rgba(0, 0, 0, 0)" || e === "transparent" || e.startsWith("rgba") && e.endsWith(", 0)"), Fa = (e) => {
|
|
1066
1066
|
if (!e) return null;
|
|
1067
1067
|
let r = e;
|
|
1068
1068
|
for (; r; ) {
|
|
1069
1069
|
const o = window.getComputedStyle(r).backgroundColor;
|
|
1070
|
-
if (!
|
|
1070
|
+
if (!Wa(o)) return o;
|
|
1071
1071
|
r = r.parentElement;
|
|
1072
1072
|
}
|
|
1073
1073
|
return null;
|
|
1074
1074
|
}, ft = () => {
|
|
1075
|
-
const e =
|
|
1076
|
-
return
|
|
1075
|
+
const e = qe(null), [r, a] = _e(null);
|
|
1076
|
+
return le(() => {
|
|
1077
1077
|
if (e.current) {
|
|
1078
|
-
const o =
|
|
1078
|
+
const o = Fa(e.current);
|
|
1079
1079
|
a(o);
|
|
1080
1080
|
}
|
|
1081
1081
|
}, []), { ref: e, bgColor: r };
|
|
1082
1082
|
};
|
|
1083
1083
|
function At(e, r, a) {
|
|
1084
|
-
|
|
1084
|
+
le(() => (window.addEventListener(e, r, a), () => window.removeEventListener(e, r, a)), [e, r]);
|
|
1085
1085
|
}
|
|
1086
1086
|
const Pt = {
|
|
1087
1087
|
passive: !0
|
|
1088
1088
|
};
|
|
1089
|
-
function
|
|
1090
|
-
const [e, r] =
|
|
1089
|
+
function qa() {
|
|
1090
|
+
const [e, r] = _e({
|
|
1091
1091
|
width: 0,
|
|
1092
1092
|
height: 0
|
|
1093
|
-
}), a =
|
|
1093
|
+
}), a = Se(() => {
|
|
1094
1094
|
r({ width: window.innerWidth || 0, height: window.innerHeight || 0 });
|
|
1095
1095
|
}, []);
|
|
1096
|
-
return At("resize", a, Pt), At("orientationchange", a, Pt),
|
|
1096
|
+
return At("resize", a, Pt), At("orientationchange", a, Pt), le(a, []), e;
|
|
1097
1097
|
}
|
|
1098
1098
|
function Ha(e = 768) {
|
|
1099
|
-
const { width: r } =
|
|
1100
|
-
return
|
|
1099
|
+
const { width: r } = qa();
|
|
1100
|
+
return Lr(() => r <= e, [r, e]);
|
|
1101
1101
|
}
|
|
1102
1102
|
const Va = 2, Xa = (e) => {
|
|
1103
1103
|
const {
|
|
@@ -1108,36 +1108,36 @@ const Va = 2, Xa = (e) => {
|
|
|
1108
1108
|
overflowCount: s = 0,
|
|
1109
1109
|
overflowProps: l,
|
|
1110
1110
|
cutoutBackground: c
|
|
1111
|
-
} = e,
|
|
1111
|
+
} = e, f = -(a * o) + Va, { ref: p, bgColor: h } = ft(), m = c || h || "#ffffff", g = Le(Da.avatarGroup), y = {
|
|
1112
1112
|
"--avatar-cutout-bg": m
|
|
1113
1113
|
};
|
|
1114
|
-
return r.length === 0 ? null : /* @__PURE__ */ n.jsxs("div", { className: g, ref:
|
|
1115
|
-
r.map((C,
|
|
1114
|
+
return r.length === 0 ? null : /* @__PURE__ */ n.jsxs("div", { className: g, ref: p, style: y, children: [
|
|
1115
|
+
r.map((C, x) => {
|
|
1116
1116
|
if (C.wrapper) {
|
|
1117
|
-
const
|
|
1117
|
+
const w = C.wrapper;
|
|
1118
1118
|
return /* @__PURE__ */ n.jsx(
|
|
1119
1119
|
"div",
|
|
1120
1120
|
{
|
|
1121
1121
|
style: {
|
|
1122
|
-
marginRight:
|
|
1122
|
+
marginRight: f
|
|
1123
1123
|
},
|
|
1124
|
-
children: /* @__PURE__ */ n.jsx(
|
|
1124
|
+
children: /* @__PURE__ */ n.jsx(w, { children: /* @__PURE__ */ n.jsx(Ge, { size: a, shape: i, ...C }) })
|
|
1125
1125
|
},
|
|
1126
|
-
Je(C) +
|
|
1126
|
+
Je(C) + x
|
|
1127
1127
|
);
|
|
1128
1128
|
}
|
|
1129
1129
|
return /* @__PURE__ */ n.jsx(
|
|
1130
1130
|
"div",
|
|
1131
1131
|
{
|
|
1132
1132
|
style: {
|
|
1133
|
-
marginRight:
|
|
1133
|
+
marginRight: f
|
|
1134
1134
|
},
|
|
1135
1135
|
children: /* @__PURE__ */ n.jsx(Ge, { size: a, shape: i, ...C })
|
|
1136
1136
|
},
|
|
1137
|
-
Je(C) +
|
|
1137
|
+
Je(C) + x
|
|
1138
1138
|
);
|
|
1139
1139
|
}),
|
|
1140
|
-
s > 0 && /* @__PURE__ */ n.jsx("div", { style: { marginRight:
|
|
1140
|
+
s > 0 && /* @__PURE__ */ n.jsx("div", { style: { marginRight: f }, children: /* @__PURE__ */ n.jsx(
|
|
1141
1141
|
Ge,
|
|
1142
1142
|
{
|
|
1143
1143
|
size: a,
|
|
@@ -1149,7 +1149,7 @@ const Va = 2, Xa = (e) => {
|
|
|
1149
1149
|
}
|
|
1150
1150
|
) })
|
|
1151
1151
|
] });
|
|
1152
|
-
},
|
|
1152
|
+
}, Al = Object.assign(Ge, {
|
|
1153
1153
|
Group: Xa
|
|
1154
1154
|
}), Ya = "_wrapper_ecbsu_5", Za = "_badge__container_ecbsu_6", Ga = "_badge__content_ecbsu_7", Ua = "_interactive_ecbsu_20", Ja = "_disabled_ecbsu_21", Ka = "_icon_ecbsu_22", xe = {
|
|
1155
1155
|
wrapper: Ya,
|
|
@@ -1198,14 +1198,14 @@ const Va = 2, Xa = (e) => {
|
|
|
1198
1198
|
isHidden: l = !1,
|
|
1199
1199
|
colorScheme: c = "red",
|
|
1200
1200
|
size: _ = 20,
|
|
1201
|
-
position:
|
|
1202
|
-
positionOffset:
|
|
1201
|
+
position: f = "top-right",
|
|
1202
|
+
positionOffset: p = { x: 0, y: 0 },
|
|
1203
1203
|
cutoutBackground: h,
|
|
1204
1204
|
isDisabled: m,
|
|
1205
1205
|
className: g,
|
|
1206
|
-
"data-testid":
|
|
1206
|
+
"data-testid": y = "badge",
|
|
1207
1207
|
...C
|
|
1208
|
-
} = e, { onClick:
|
|
1208
|
+
} = e, { onClick: x, onPointerDown: w } = C, { ref: d, bgColor: v } = ft(), L = h || v, j = !m && (!!x || !!w), R = Le(xe.badge__container, xe[`position-${f}`]), E = Le(
|
|
1209
1209
|
g,
|
|
1210
1210
|
xe.badge__content,
|
|
1211
1211
|
xe[`color-${c}`],
|
|
@@ -1213,35 +1213,35 @@ const Va = 2, Xa = (e) => {
|
|
|
1213
1213
|
{
|
|
1214
1214
|
[xe.disabled]: m,
|
|
1215
1215
|
[xe.icon]: !!a,
|
|
1216
|
-
[xe.interactive]:
|
|
1216
|
+
[xe.interactive]: j
|
|
1217
1217
|
}
|
|
1218
1218
|
), A = {
|
|
1219
1219
|
"--badge-height": `${_}px`,
|
|
1220
|
-
"--badge-offset-x": `${
|
|
1221
|
-
"--badge-offset-y": `${
|
|
1220
|
+
"--badge-offset-x": `${p.x}px`,
|
|
1221
|
+
"--badge-offset-y": `${p.y}px`,
|
|
1222
1222
|
...L && { "--badge-cutout-bg": L },
|
|
1223
1223
|
...i === "transparent" && { "--badge-cutout-bg": "transparent" }
|
|
1224
|
-
},
|
|
1225
|
-
|
|
1224
|
+
}, W = (a == null ? void 0 : a({})) || s, q = (P) => {
|
|
1225
|
+
j && (x == null || x(P));
|
|
1226
1226
|
};
|
|
1227
|
-
return /* @__PURE__ */ n.jsxs("div", { className: xe.wrapper, ref:
|
|
1227
|
+
return /* @__PURE__ */ n.jsxs("div", { className: xe.wrapper, ref: d, "data-testid": y + "-wrapper", children: [
|
|
1228
1228
|
o,
|
|
1229
1229
|
!l && /* @__PURE__ */ n.jsx(
|
|
1230
1230
|
"span",
|
|
1231
1231
|
{
|
|
1232
|
-
className:
|
|
1232
|
+
className: R,
|
|
1233
1233
|
style: A,
|
|
1234
|
-
"data-testid":
|
|
1234
|
+
"data-testid": y + "-container",
|
|
1235
1235
|
children: /* @__PURE__ */ n.jsx(
|
|
1236
1236
|
"span",
|
|
1237
1237
|
{
|
|
1238
1238
|
...C,
|
|
1239
|
-
onClick:
|
|
1240
|
-
className:
|
|
1241
|
-
"data-testid":
|
|
1239
|
+
onClick: q,
|
|
1240
|
+
className: E,
|
|
1241
|
+
"data-testid": y + "-content",
|
|
1242
1242
|
ref: r,
|
|
1243
1243
|
"aria-disabled": m,
|
|
1244
|
-
children:
|
|
1244
|
+
children: W
|
|
1245
1245
|
}
|
|
1246
1246
|
)
|
|
1247
1247
|
}
|
|
@@ -1251,7 +1251,7 @@ const Va = 2, Xa = (e) => {
|
|
|
1251
1251
|
container: eo,
|
|
1252
1252
|
image: to,
|
|
1253
1253
|
loading: ro
|
|
1254
|
-
}, ao = "_loader_isv17_1", oo = "_spin_isv17_1", no = "_accent_isv17_19", so = "_neutral_isv17_23", io = "_positive_isv17_27", lo = "_negative_isv17_31", co = "_gray_isv17_35", uo = "_special_isv17_39", _o = "_contrast_isv17_43", po = "_container_isv17_47", fo = "_overlay_isv17_57",
|
|
1254
|
+
}, ao = "_loader_isv17_1", oo = "_spin_isv17_1", no = "_accent_isv17_19", so = "_neutral_isv17_23", io = "_positive_isv17_27", lo = "_negative_isv17_31", co = "_gray_isv17_35", uo = "_special_isv17_39", _o = "_contrast_isv17_43", po = "_container_isv17_47", fo = "_overlay_isv17_57", Fe = {
|
|
1255
1255
|
loader: ao,
|
|
1256
1256
|
spin: oo,
|
|
1257
1257
|
accent: no,
|
|
@@ -1268,7 +1268,7 @@ const Va = 2, Xa = (e) => {
|
|
|
1268
1268
|
"size-48": "_size-48_isv17_80",
|
|
1269
1269
|
"size-64": "_size-64_isv17_84",
|
|
1270
1270
|
"size-96": "_size-96_isv17_88"
|
|
1271
|
-
},
|
|
1271
|
+
}, Gt = K(
|
|
1272
1272
|
({
|
|
1273
1273
|
size: e = 24,
|
|
1274
1274
|
variant: r = "accent",
|
|
@@ -1277,10 +1277,10 @@ const Va = 2, Xa = (e) => {
|
|
|
1277
1277
|
style: i,
|
|
1278
1278
|
...s
|
|
1279
1279
|
}, l) => {
|
|
1280
|
-
const c =
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1280
|
+
const c = Le(
|
|
1281
|
+
Fe.loader,
|
|
1282
|
+
Fe[r],
|
|
1283
|
+
Fe[`size-${e}`],
|
|
1284
1284
|
a
|
|
1285
1285
|
);
|
|
1286
1286
|
return /* @__PURE__ */ n.jsx(
|
|
@@ -1315,11 +1315,11 @@ const Va = 2, Xa = (e) => {
|
|
|
1315
1315
|
className: l,
|
|
1316
1316
|
style: c,
|
|
1317
1317
|
"data-testid": _,
|
|
1318
|
-
...
|
|
1319
|
-
} = e,
|
|
1320
|
-
return /* @__PURE__ */ n.jsxs("div", { ref: r, className:
|
|
1318
|
+
...f
|
|
1319
|
+
} = e, p = Le(Fe.container, l);
|
|
1320
|
+
return /* @__PURE__ */ n.jsxs("div", { ref: r, className: p, style: c, "data-testid": _, ...f, children: [
|
|
1321
1321
|
s,
|
|
1322
|
-
a && /* @__PURE__ */ n.jsx("div", { className:
|
|
1322
|
+
a && /* @__PURE__ */ n.jsx("div", { className: Fe.overlay, children: /* @__PURE__ */ n.jsx(Gt, { size: o, variant: i, "data-testid": `${_}-spinner` }) })
|
|
1323
1323
|
] });
|
|
1324
1324
|
}), bo = K((e, r) => e.children ? /* @__PURE__ */ n.jsx(
|
|
1325
1325
|
go,
|
|
@@ -1327,7 +1327,7 @@ const Va = 2, Xa = (e) => {
|
|
|
1327
1327
|
ref: r,
|
|
1328
1328
|
...e
|
|
1329
1329
|
}
|
|
1330
|
-
) : /* @__PURE__ */ n.jsx(
|
|
1330
|
+
) : /* @__PURE__ */ n.jsx(Gt, { ref: r, ...e })), ho = ({ width: e = 48, height: r = 48, className: a, "data-testid": o }) => /* @__PURE__ */ n.jsx(
|
|
1331
1331
|
"svg",
|
|
1332
1332
|
{
|
|
1333
1333
|
width: e,
|
|
@@ -1348,7 +1348,7 @@ const Va = 2, Xa = (e) => {
|
|
|
1348
1348
|
}
|
|
1349
1349
|
)
|
|
1350
1350
|
}
|
|
1351
|
-
),
|
|
1351
|
+
), Pl = K((e, r) => {
|
|
1352
1352
|
const {
|
|
1353
1353
|
alt: a = "",
|
|
1354
1354
|
loading: o = "lazy",
|
|
@@ -1357,25 +1357,25 @@ const Va = 2, Xa = (e) => {
|
|
|
1357
1357
|
className: l,
|
|
1358
1358
|
"data-testid": c = "image",
|
|
1359
1359
|
onError: _,
|
|
1360
|
-
onLoad:
|
|
1361
|
-
...
|
|
1362
|
-
} = e, [h, m] =
|
|
1360
|
+
onLoad: f,
|
|
1361
|
+
...p
|
|
1362
|
+
} = e, [h, m] = _e("loading"), g = h === "error", y = (s || h === "loading") && !g, C = h === "loaded" && !s, x = Le(
|
|
1363
1363
|
lt.image,
|
|
1364
1364
|
{
|
|
1365
|
-
[lt.loading]:
|
|
1365
|
+
[lt.loading]: y
|
|
1366
1366
|
},
|
|
1367
1367
|
l
|
|
1368
|
-
),
|
|
1368
|
+
), w = Se(
|
|
1369
1369
|
(L) => {
|
|
1370
|
-
m("loaded"),
|
|
1370
|
+
m("loaded"), f == null || f(L);
|
|
1371
1371
|
},
|
|
1372
|
-
[
|
|
1373
|
-
),
|
|
1372
|
+
[f]
|
|
1373
|
+
), d = Se(
|
|
1374
1374
|
(L) => {
|
|
1375
1375
|
m("error"), _ == null || _(L);
|
|
1376
1376
|
},
|
|
1377
1377
|
[_]
|
|
1378
|
-
),
|
|
1378
|
+
), v = {
|
|
1379
1379
|
loader: /* @__PURE__ */ n.jsxs(Pe, { children: [
|
|
1380
1380
|
/* @__PURE__ */ n.jsx(bo, { size: 48, variant: "special", "data-testid": `${c}-loader` }),
|
|
1381
1381
|
/* @__PURE__ */ n.jsx(
|
|
@@ -1383,8 +1383,8 @@ const Va = 2, Xa = (e) => {
|
|
|
1383
1383
|
{
|
|
1384
1384
|
alt: a,
|
|
1385
1385
|
src: i,
|
|
1386
|
-
onLoad:
|
|
1387
|
-
onError:
|
|
1386
|
+
onLoad: w,
|
|
1387
|
+
onError: d,
|
|
1388
1388
|
style: { display: "none" }
|
|
1389
1389
|
}
|
|
1390
1390
|
)
|
|
@@ -1398,32 +1398,32 @@ const Va = 2, Xa = (e) => {
|
|
|
1398
1398
|
"data-testid": c,
|
|
1399
1399
|
loading: o,
|
|
1400
1400
|
src: i,
|
|
1401
|
-
className:
|
|
1401
|
+
className: x
|
|
1402
1402
|
}
|
|
1403
1403
|
)
|
|
1404
1404
|
};
|
|
1405
|
-
return
|
|
1405
|
+
return le(() => {
|
|
1406
1406
|
if (!i) {
|
|
1407
1407
|
m("error");
|
|
1408
1408
|
return;
|
|
1409
1409
|
}
|
|
1410
1410
|
m("loading");
|
|
1411
|
-
}, [i]), /* @__PURE__ */ n.jsxs("div", { className: lt.container, "data-testid": `${c}-container`, ...
|
|
1412
|
-
|
|
1413
|
-
g &&
|
|
1414
|
-
C &&
|
|
1411
|
+
}, [i]), /* @__PURE__ */ n.jsxs("div", { className: lt.container, "data-testid": `${c}-container`, ...p, children: [
|
|
1412
|
+
y && v.loader,
|
|
1413
|
+
g && v.error,
|
|
1414
|
+
C && v.image
|
|
1415
1415
|
] });
|
|
1416
|
-
}), mo = {},
|
|
1416
|
+
}), mo = {}, Ut = Yt({
|
|
1417
1417
|
locale: mo
|
|
1418
1418
|
}), yo = () => {
|
|
1419
|
-
const e = Zt(
|
|
1419
|
+
const e = Zt(Ut);
|
|
1420
1420
|
if (!e)
|
|
1421
1421
|
throw new Error("useConfig must be used within a ConfigProvider");
|
|
1422
1422
|
return e;
|
|
1423
|
-
},
|
|
1423
|
+
}, Bl = () => {
|
|
1424
1424
|
const { locale: e } = yo();
|
|
1425
1425
|
return e;
|
|
1426
|
-
}, xo = {}, vo = {}, wo = {}, Co = {}, So = {}, Lo = "_base_1p0qo_50", jo = "_content_1p0qo_54", ko = "_background_1p0qo_58", $o = "_button_1p0qo_62", Eo = "_link_1p0qo_66", To = "_input_1p0qo_70", Ro = "_suffix_1p0qo_74", No = "_prefix_1p0qo_78", Io = "_tooltip_1p0qo_82", Mo = "_hint_1p0qo_86", Oo = "_dropdown_1p0qo_90", Ao = "_popover_1p0qo_94", Po = "_modalBackdrop_1p0qo_98", Bo = "_modal_1p0qo_98",
|
|
1426
|
+
}, xo = {}, vo = {}, wo = {}, Co = {}, So = {}, Lo = "_base_1p0qo_50", jo = "_content_1p0qo_54", ko = "_background_1p0qo_58", $o = "_button_1p0qo_62", Eo = "_link_1p0qo_66", To = "_input_1p0qo_70", Ro = "_suffix_1p0qo_74", No = "_prefix_1p0qo_78", Io = "_tooltip_1p0qo_82", Mo = "_hint_1p0qo_86", Oo = "_dropdown_1p0qo_90", Ao = "_popover_1p0qo_94", Po = "_modalBackdrop_1p0qo_98", Bo = "_modal_1p0qo_98", zo = "_overlay_1p0qo_106", Do = "_drawer_1p0qo_110", Wo = "_notification_1p0qo_114", Fo = "_alert_1p0qo_118", qo = "_toast_1p0qo_122", Ho = "_loading_1p0qo_126", Vo = "_error_1p0qo_130", Xo = "_critical_1p0qo_134", Yo = {
|
|
1427
1427
|
base: Lo,
|
|
1428
1428
|
content: jo,
|
|
1429
1429
|
background: ko,
|
|
@@ -1438,20 +1438,20 @@ const Va = 2, Xa = (e) => {
|
|
|
1438
1438
|
popover: Ao,
|
|
1439
1439
|
modalBackdrop: Po,
|
|
1440
1440
|
modal: Bo,
|
|
1441
|
-
overlay:
|
|
1442
|
-
drawer:
|
|
1443
|
-
notification:
|
|
1444
|
-
alert:
|
|
1445
|
-
toast:
|
|
1441
|
+
overlay: zo,
|
|
1442
|
+
drawer: Do,
|
|
1443
|
+
notification: Wo,
|
|
1444
|
+
alert: Fo,
|
|
1445
|
+
toast: qo,
|
|
1446
1446
|
loading: Ho,
|
|
1447
1447
|
error: Vo,
|
|
1448
1448
|
critical: Xo
|
|
1449
|
-
},
|
|
1449
|
+
}, zl = ({
|
|
1450
1450
|
locale: e = {},
|
|
1451
1451
|
theme: r,
|
|
1452
1452
|
children: a,
|
|
1453
1453
|
className: o
|
|
1454
|
-
}) => (
|
|
1454
|
+
}) => (jr(() => {
|
|
1455
1455
|
if (r) {
|
|
1456
1456
|
const i = document.documentElement;
|
|
1457
1457
|
Object.entries(r).forEach(([s, l]) => {
|
|
@@ -1466,8 +1466,8 @@ const Va = 2, Xa = (e) => {
|
|
|
1466
1466
|
className: $(xo, vo, wo, Co, So, Yo, ie, o)
|
|
1467
1467
|
}
|
|
1468
1468
|
),
|
|
1469
|
-
/* @__PURE__ */ n.jsx(
|
|
1470
|
-
] })),
|
|
1469
|
+
/* @__PURE__ */ n.jsx(Ut.Provider, { value: { locale: e }, children: a })
|
|
1470
|
+
] })), Dl = {}, Zo = "_tag_1llsi_1", Go = "_label_1llsi_16", Uo = "_iconWrapper_1llsi_20", Jo = "_medium_1llsi_27", Ko = "_large_1llsi_33", Qo = "_disabled_1llsi_43", en = "_neutral_1llsi_47", tn = "_positive_1llsi_53", rn = "_negative_1llsi_59", an = "_warning_1llsi_65", on = "_vivid_1llsi_71", nn = "_special_1llsi_77", sn = "_accent_1llsi_84", ln = "_blue_1llsi_90", cn = "_lovely_1llsi_96", dn = "_dreamy_1llsi_102", $e = {
|
|
1471
1471
|
tag: Zo,
|
|
1472
1472
|
label: Go,
|
|
1473
1473
|
iconWrapper: Uo,
|
|
@@ -1484,7 +1484,7 @@ const Va = 2, Xa = (e) => {
|
|
|
1484
1484
|
blue: ln,
|
|
1485
1485
|
lovely: cn,
|
|
1486
1486
|
dreamy: dn
|
|
1487
|
-
},
|
|
1487
|
+
}, Wl = K((e, r) => {
|
|
1488
1488
|
const {
|
|
1489
1489
|
className: a,
|
|
1490
1490
|
children: o,
|
|
@@ -1493,21 +1493,20 @@ const Va = 2, Xa = (e) => {
|
|
|
1493
1493
|
disabled: l = !1,
|
|
1494
1494
|
showLabel: c = !!o,
|
|
1495
1495
|
slotStart: _,
|
|
1496
|
-
slotEnd:
|
|
1497
|
-
slotStartWrapperProps:
|
|
1496
|
+
slotEnd: f,
|
|
1497
|
+
slotStartWrapperProps: p = {},
|
|
1498
1498
|
slotEndWrapperProps: h = {},
|
|
1499
|
-
"data-testid": m
|
|
1500
|
-
|
|
1501
|
-
} = e, { className: x, ...C } = f, { className: y, ...v } = h;
|
|
1499
|
+
"data-testid": m
|
|
1500
|
+
} = e, { className: g, ...y } = p, { className: C, ...x } = h;
|
|
1502
1501
|
return /* @__PURE__ */ n.jsxs(
|
|
1503
1502
|
"div",
|
|
1504
1503
|
{
|
|
1505
1504
|
className: $(
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1505
|
+
$e.tag,
|
|
1506
|
+
$e[s],
|
|
1507
|
+
$e[i],
|
|
1509
1508
|
{
|
|
1510
|
-
[
|
|
1509
|
+
[$e.disabled]: l,
|
|
1511
1510
|
[ie["typography-label-3-regular"]]: s === "medium",
|
|
1512
1511
|
[ie["typography-subtitle-1-semibold"]]: s === "large"
|
|
1513
1512
|
},
|
|
@@ -1515,15 +1514,14 @@ const Va = 2, Xa = (e) => {
|
|
|
1515
1514
|
),
|
|
1516
1515
|
"data-testid": m || "tag-component",
|
|
1517
1516
|
ref: r,
|
|
1518
|
-
...g,
|
|
1519
1517
|
children: [
|
|
1520
|
-
_ && /* @__PURE__ */ n.jsx("span", { className: $([
|
|
1521
|
-
c && /* @__PURE__ */ n.jsx("span", { className: $([
|
|
1522
|
-
|
|
1518
|
+
_ && /* @__PURE__ */ n.jsx("span", { className: $([$e.iconWrapper, g]), ...y, children: _ }),
|
|
1519
|
+
c && /* @__PURE__ */ n.jsx("span", { className: $([$e.label]), children: o }),
|
|
1520
|
+
f && /* @__PURE__ */ n.jsx("span", { className: $([$e.iconWrapper, C]), ...x, children: f })
|
|
1523
1521
|
]
|
|
1524
1522
|
}
|
|
1525
1523
|
);
|
|
1526
|
-
}), un = "
|
|
1524
|
+
}), un = "_checkbox_gtrs6_43", _n = "_input_gtrs6_64", pn = "_icon_gtrs6_72", fn = "_container_gtrs6_92", gn = "_error_gtrs6_143", bn = "_checkboxWrapper_gtrs6_156", hn = "_medium_gtrs6_211", mn = "_large_gtrs6_216", yn = "_label_gtrs6_258", we = {
|
|
1527
1525
|
checkbox: un,
|
|
1528
1526
|
input: _n,
|
|
1529
1527
|
icon: pn,
|
|
@@ -1607,7 +1605,7 @@ const Va = 2, Xa = (e) => {
|
|
|
1607
1605
|
children: o ? /* @__PURE__ */ n.jsx(vn, { width: s, height: l }) : /* @__PURE__ */ n.jsx(xn, { width: s, height: l })
|
|
1608
1606
|
}
|
|
1609
1607
|
);
|
|
1610
|
-
},
|
|
1608
|
+
}, Fl = K((e, r) => {
|
|
1611
1609
|
const {
|
|
1612
1610
|
name: a,
|
|
1613
1611
|
value: o,
|
|
@@ -1616,54 +1614,55 @@ const Va = 2, Xa = (e) => {
|
|
|
1616
1614
|
loading: l = !1,
|
|
1617
1615
|
error: c,
|
|
1618
1616
|
disabled: _ = !1,
|
|
1619
|
-
containerClassName:
|
|
1620
|
-
className:
|
|
1617
|
+
containerClassName: f,
|
|
1618
|
+
className: p,
|
|
1621
1619
|
containerStyle: h,
|
|
1622
1620
|
style: m,
|
|
1623
1621
|
children: g,
|
|
1624
|
-
clickableLabel:
|
|
1622
|
+
clickableLabel: y = !0,
|
|
1625
1623
|
tabIndex: C,
|
|
1626
|
-
onChange:
|
|
1627
|
-
|
|
1628
|
-
|
|
1624
|
+
onChange: x,
|
|
1625
|
+
onClick: w,
|
|
1626
|
+
"data-testid": d = "checkbox"
|
|
1627
|
+
} = e, [v, L] = _e(!1), T = o ?? v, j = _ || l, R = !!c, E = T || s, A = $(we.container, we[i], f), W = $(
|
|
1629
1628
|
we.checkbox,
|
|
1630
1629
|
we[i],
|
|
1631
1630
|
{
|
|
1632
|
-
[we.error]:
|
|
1631
|
+
[we.error]: R
|
|
1633
1632
|
},
|
|
1634
|
-
|
|
1635
|
-
),
|
|
1636
|
-
|
|
1637
|
-
},
|
|
1638
|
-
if (
|
|
1639
|
-
|
|
1640
|
-
const z = !
|
|
1641
|
-
|
|
1642
|
-
}
|
|
1643
|
-
},
|
|
1644
|
-
|
|
1645
|
-
}
|
|
1633
|
+
p
|
|
1634
|
+
), q = (O) => {
|
|
1635
|
+
j || (L(O.target.checked), x == null || x(O.target.checked, O));
|
|
1636
|
+
}, P = (O) => {
|
|
1637
|
+
if (O.key === "Enter" && !j) {
|
|
1638
|
+
O.preventDefault();
|
|
1639
|
+
const z = !E;
|
|
1640
|
+
L(z), x == null || x(z);
|
|
1641
|
+
}
|
|
1642
|
+
}, S = (O) => {
|
|
1643
|
+
y || O.preventDefault(), w == null || w(O);
|
|
1644
|
+
};
|
|
1646
1645
|
return /* @__PURE__ */ n.jsxs(
|
|
1647
1646
|
"label",
|
|
1648
1647
|
{
|
|
1649
|
-
className:
|
|
1648
|
+
className: A,
|
|
1650
1649
|
htmlFor: a,
|
|
1651
1650
|
style: h,
|
|
1652
|
-
"data-testid":
|
|
1653
|
-
"data-clickable-label":
|
|
1651
|
+
"data-testid": d,
|
|
1652
|
+
"data-clickable-label": y,
|
|
1654
1653
|
children: [
|
|
1655
1654
|
/* @__PURE__ */ n.jsx("div", { className: we.checkboxWrapper, children: /* @__PURE__ */ n.jsxs(
|
|
1656
1655
|
"div",
|
|
1657
1656
|
{
|
|
1658
1657
|
tabIndex: C || 0,
|
|
1659
|
-
className:
|
|
1658
|
+
className: W,
|
|
1660
1659
|
style: m,
|
|
1661
|
-
onKeyDown:
|
|
1662
|
-
"aria-checked":
|
|
1663
|
-
"aria-disabled":
|
|
1664
|
-
"aria-invalid":
|
|
1660
|
+
onKeyDown: P,
|
|
1661
|
+
"aria-checked": E,
|
|
1662
|
+
"aria-disabled": j,
|
|
1663
|
+
"aria-invalid": R,
|
|
1665
1664
|
"aria-describedby": c ? `${a}-error` : void 0,
|
|
1666
|
-
"data-testid": `${
|
|
1665
|
+
"data-testid": `${d}-label`,
|
|
1667
1666
|
children: [
|
|
1668
1667
|
/* @__PURE__ */ n.jsx(
|
|
1669
1668
|
"input",
|
|
@@ -1672,15 +1671,14 @@ const Va = 2, Xa = (e) => {
|
|
|
1672
1671
|
type: "checkbox",
|
|
1673
1672
|
id: a,
|
|
1674
1673
|
name: a,
|
|
1675
|
-
checked:
|
|
1676
|
-
disabled:
|
|
1674
|
+
checked: E,
|
|
1675
|
+
disabled: j,
|
|
1677
1676
|
className: we.input,
|
|
1678
|
-
onChange:
|
|
1679
|
-
|
|
1680
|
-
"aria-
|
|
1681
|
-
"aria-invalid": k,
|
|
1677
|
+
onChange: q,
|
|
1678
|
+
"aria-checked": E,
|
|
1679
|
+
"aria-invalid": R,
|
|
1682
1680
|
"aria-describedby": c ? `${a}-error` : void 0,
|
|
1683
|
-
"data-testid": `${
|
|
1681
|
+
"data-testid": `${d}-input`
|
|
1684
1682
|
}
|
|
1685
1683
|
),
|
|
1686
1684
|
/* @__PURE__ */ n.jsx(
|
|
@@ -1688,10 +1686,10 @@ const Va = 2, Xa = (e) => {
|
|
|
1688
1686
|
{
|
|
1689
1687
|
name: a,
|
|
1690
1688
|
size: i,
|
|
1691
|
-
isChecked:
|
|
1692
|
-
isDisabled:
|
|
1689
|
+
isChecked: E,
|
|
1690
|
+
isDisabled: j,
|
|
1693
1691
|
indeterminate: s,
|
|
1694
|
-
dataTestId:
|
|
1692
|
+
dataTestId: d
|
|
1695
1693
|
}
|
|
1696
1694
|
)
|
|
1697
1695
|
]
|
|
@@ -1700,10 +1698,10 @@ const Va = 2, Xa = (e) => {
|
|
|
1700
1698
|
g && /* @__PURE__ */ n.jsx(
|
|
1701
1699
|
"span",
|
|
1702
1700
|
{
|
|
1703
|
-
"data-testid": `${
|
|
1704
|
-
"data-clickable-label":
|
|
1701
|
+
"data-testid": `${d}-label-text`,
|
|
1702
|
+
"data-clickable-label": y,
|
|
1705
1703
|
className: we.label,
|
|
1706
|
-
onClick:
|
|
1704
|
+
onClick: S,
|
|
1707
1705
|
children: g
|
|
1708
1706
|
}
|
|
1709
1707
|
)
|
|
@@ -1744,23 +1742,23 @@ const Va = 2, Xa = (e) => {
|
|
|
1744
1742
|
as: l,
|
|
1745
1743
|
fontWeight: c = "semibold",
|
|
1746
1744
|
disabled: _ = !1,
|
|
1747
|
-
typographyStyle:
|
|
1748
|
-
...
|
|
1745
|
+
typographyStyle: f = "primary",
|
|
1746
|
+
...p
|
|
1749
1747
|
}, h) => {
|
|
1750
1748
|
const m = l || On[a], g = $(
|
|
1751
1749
|
Be.typography,
|
|
1752
1750
|
ie[`typography-${e}-${a}-${c}`],
|
|
1753
|
-
Be[
|
|
1751
|
+
Be[f],
|
|
1754
1752
|
{
|
|
1755
1753
|
[Be.disabled]: _
|
|
1756
1754
|
},
|
|
1757
1755
|
i
|
|
1758
1756
|
);
|
|
1759
|
-
return o ? /* @__PURE__ */ n.jsx(m, { ref: h, className: g, "data-testid": s, ...
|
|
1757
|
+
return o ? /* @__PURE__ */ n.jsx(m, { ref: h, className: g, "data-testid": s, ...p, children: o }) : null;
|
|
1760
1758
|
}
|
|
1761
1759
|
);
|
|
1762
1760
|
return r.displayName = `Typography.${e === "title" ? "Title" : "Subtitle"}`, r;
|
|
1763
|
-
},
|
|
1761
|
+
}, zt = (e) => {
|
|
1764
1762
|
const r = Xt.forwardRef(
|
|
1765
1763
|
({
|
|
1766
1764
|
size: a = 3,
|
|
@@ -1770,13 +1768,13 @@ const Va = 2, Xa = (e) => {
|
|
|
1770
1768
|
as: l = "p",
|
|
1771
1769
|
fontWeight: c = "regular",
|
|
1772
1770
|
disabled: _ = !1,
|
|
1773
|
-
typographyStyle:
|
|
1774
|
-
...
|
|
1771
|
+
typographyStyle: f = "primary",
|
|
1772
|
+
...p
|
|
1775
1773
|
}, h) => {
|
|
1776
1774
|
const m = l, g = $(
|
|
1777
1775
|
Be.typography,
|
|
1778
1776
|
ie[`typography-${e}-${a}-${c}`],
|
|
1779
|
-
Be[
|
|
1777
|
+
Be[f],
|
|
1780
1778
|
{
|
|
1781
1779
|
[Be.disabled]: _
|
|
1782
1780
|
},
|
|
@@ -1788,27 +1786,27 @@ const Va = 2, Xa = (e) => {
|
|
|
1788
1786
|
ref: h,
|
|
1789
1787
|
className: g,
|
|
1790
1788
|
"data-testid": s,
|
|
1791
|
-
...
|
|
1789
|
+
...p,
|
|
1792
1790
|
children: o
|
|
1793
1791
|
}
|
|
1794
1792
|
) : null;
|
|
1795
1793
|
}
|
|
1796
1794
|
);
|
|
1797
1795
|
return r.displayName = `Typography.${e.charAt(0).toUpperCase() + e.slice(1)}`, r;
|
|
1798
|
-
},
|
|
1796
|
+
}, Dt = {
|
|
1799
1797
|
Title: Bt("title"),
|
|
1800
1798
|
Subtitle: Bt("subtitle"),
|
|
1801
|
-
Label:
|
|
1802
|
-
Paragraph:
|
|
1803
|
-
}, An = "_base_10oxr_1", Pn = "_content_10oxr_1", Bn = "_background_10oxr_1",
|
|
1799
|
+
Label: zt("label"),
|
|
1800
|
+
Paragraph: zt("paragraph")
|
|
1801
|
+
}, An = "_base_10oxr_1", Pn = "_content_10oxr_1", Bn = "_background_10oxr_1", zn = "_button_10oxr_1", Dn = "_link_10oxr_1", Wn = "_input_10oxr_96", Fn = "_suffix_10oxr_1", qn = "_prefix_10oxr_1", Hn = "_tooltip_10oxr_1", Vn = "_hint_10oxr_794", Xn = "_dropdown_10oxr_1", Yn = "_popover_10oxr_1", Zn = "_modalBackdrop_10oxr_1", Gn = "_modal_10oxr_1", Un = "_overlay_10oxr_1", Jn = "_drawer_10oxr_1", Kn = "_notification_10oxr_1", Qn = "_alert_10oxr_1", es = "_toast_10oxr_1", ts = "_loading_10oxr_291", rs = "_error_10oxr_252", as = "_critical_10oxr_1", os = "_inputBase_10oxr_96", ns = "_wrapper_10oxr_106", ss = "_gripHandle_10oxr_186", is = "_tabFocused_10oxr_259", ls = "_disabled_10oxr_284", cs = "_label_10oxr_301", ds = "_S_10oxr_315", us = "_M_10oxr_321", _s = "_XL_10oxr_328", ps = "_leftSection_10oxr_335", fs = "_rightSection_10oxr_347", gs = "_helper_10oxr_385", bs = "_floatingLabel_10oxr_415", hs = "_focused_10oxr_481", ms = "_filled_10oxr_482", ys = "_L_10oxr_522", xs = "_characterLimit_10oxr_564", vs = "_textarea_10oxr_124", ws = "_truncate_10oxr_707", I = {
|
|
1804
1802
|
base: An,
|
|
1805
1803
|
content: Pn,
|
|
1806
1804
|
background: Bn,
|
|
1807
|
-
button:
|
|
1808
|
-
link:
|
|
1809
|
-
input:
|
|
1810
|
-
suffix:
|
|
1811
|
-
prefix:
|
|
1805
|
+
button: zn,
|
|
1806
|
+
link: Dn,
|
|
1807
|
+
input: Wn,
|
|
1808
|
+
suffix: Fn,
|
|
1809
|
+
prefix: qn,
|
|
1812
1810
|
tooltip: Hn,
|
|
1813
1811
|
hint: Vn,
|
|
1814
1812
|
dropdown: Xn,
|
|
@@ -1875,7 +1873,7 @@ const Va = 2, Xa = (e) => {
|
|
|
1875
1873
|
}
|
|
1876
1874
|
)
|
|
1877
1875
|
}
|
|
1878
|
-
),
|
|
1876
|
+
), Jt = ({
|
|
1879
1877
|
className: e = "",
|
|
1880
1878
|
style: r,
|
|
1881
1879
|
size: a = "md",
|
|
@@ -1919,8 +1917,8 @@ const Va = 2, Xa = (e) => {
|
|
|
1919
1917
|
}
|
|
1920
1918
|
);
|
|
1921
1919
|
}, Ss = (e, r) => {
|
|
1922
|
-
const a =
|
|
1923
|
-
return
|
|
1920
|
+
const a = qe(null), o = qe(null);
|
|
1921
|
+
return le(() => {
|
|
1924
1922
|
const i = r === "textarea" ? a.current : o.current;
|
|
1925
1923
|
i && i.value !== e && (i.value = e || "");
|
|
1926
1924
|
}, [e, r]), {
|
|
@@ -1938,25 +1936,25 @@ const Va = 2, Xa = (e) => {
|
|
|
1938
1936
|
const l = a.current.closest(`.${I.wrapper}`);
|
|
1939
1937
|
l && (l.setAttribute("data-resize", "hug"), l.setAttribute("data-show-grip", "false"));
|
|
1940
1938
|
};
|
|
1941
|
-
return
|
|
1939
|
+
return le(o, [e, r]), le(() => {
|
|
1942
1940
|
r === "hug" && a.current && o();
|
|
1943
1941
|
}, []), { resizeTextArea: o };
|
|
1944
|
-
}, js = (e, r, a, o) => ({ handleGripMouseDown:
|
|
1942
|
+
}, js = (e, r, a, o) => ({ handleGripMouseDown: Se(
|
|
1945
1943
|
(s) => {
|
|
1946
1944
|
if (!e || r || a || !(o === "fixed" || !o)) return;
|
|
1947
1945
|
s.preventDefault(), s.stopPropagation();
|
|
1948
1946
|
const l = s.currentTarget.closest(`.${I.wrapper}`);
|
|
1949
1947
|
if (!l) return;
|
|
1950
|
-
const c = s.clientY, _ = l.clientHeight,
|
|
1951
|
-
const m = h.clientY - c, g = Math.min(100, _),
|
|
1952
|
-
l.style.height = `${
|
|
1953
|
-
},
|
|
1954
|
-
document.removeEventListener("mousemove",
|
|
1948
|
+
const c = s.clientY, _ = l.clientHeight, f = (h) => {
|
|
1949
|
+
const m = h.clientY - c, g = Math.min(100, _), y = Math.max(g, _ + m);
|
|
1950
|
+
l.style.height = `${y}px`;
|
|
1951
|
+
}, p = () => {
|
|
1952
|
+
document.removeEventListener("mousemove", f), document.removeEventListener("mouseup", p);
|
|
1955
1953
|
};
|
|
1956
|
-
document.addEventListener("mousemove",
|
|
1954
|
+
document.addEventListener("mousemove", f), document.addEventListener("mouseup", p);
|
|
1957
1955
|
},
|
|
1958
1956
|
[e, r, a, o]
|
|
1959
|
-
) }),
|
|
1957
|
+
) }), Wt = 30, ks = K(
|
|
1960
1958
|
({
|
|
1961
1959
|
component: e = "input",
|
|
1962
1960
|
size: r = "L",
|
|
@@ -1967,34 +1965,34 @@ const Va = 2, Xa = (e) => {
|
|
|
1967
1965
|
onFocus: l,
|
|
1968
1966
|
onBlur: c,
|
|
1969
1967
|
onChange: _,
|
|
1970
|
-
onKeyDown:
|
|
1971
|
-
onKeyUp:
|
|
1968
|
+
onKeyDown: f,
|
|
1969
|
+
onKeyUp: p,
|
|
1972
1970
|
maxLength: h,
|
|
1973
1971
|
className: m,
|
|
1974
1972
|
style: g,
|
|
1975
|
-
truncate:
|
|
1973
|
+
truncate: y = !1,
|
|
1976
1974
|
shouldShowFloatingLabelClass: C = !1,
|
|
1977
|
-
"aria-invalid":
|
|
1978
|
-
"aria-errormessage":
|
|
1979
|
-
id:
|
|
1980
|
-
resize:
|
|
1975
|
+
"aria-invalid": x,
|
|
1976
|
+
"aria-errormessage": w,
|
|
1977
|
+
id: d,
|
|
1978
|
+
resize: v,
|
|
1981
1979
|
...L
|
|
1982
|
-
},
|
|
1983
|
-
const { textareaRef:
|
|
1984
|
-
if (Ls(a,
|
|
1980
|
+
}, T) => {
|
|
1981
|
+
const { textareaRef: j, inputRef: R, currentRef: E } = Ss(a, e);
|
|
1982
|
+
if (Ls(a, v, j), kr(T, () => E.current, [E]), e === "textarea")
|
|
1985
1983
|
return /* @__PURE__ */ n.jsx(
|
|
1986
1984
|
"textarea",
|
|
1987
1985
|
{
|
|
1988
|
-
ref:
|
|
1989
|
-
id:
|
|
1986
|
+
ref: j,
|
|
1987
|
+
id: d,
|
|
1990
1988
|
value: a,
|
|
1991
1989
|
placeholder: o,
|
|
1992
1990
|
disabled: i || s,
|
|
1993
1991
|
onFocus: l,
|
|
1994
1992
|
onBlur: c,
|
|
1995
1993
|
onChange: _,
|
|
1996
|
-
onKeyDown:
|
|
1997
|
-
onKeyUp:
|
|
1994
|
+
onKeyDown: f,
|
|
1995
|
+
onKeyUp: p,
|
|
1998
1996
|
maxLength: h,
|
|
1999
1997
|
className: $(
|
|
2000
1998
|
I.textarea,
|
|
@@ -2003,11 +2001,11 @@ const Va = 2, Xa = (e) => {
|
|
|
2003
2001
|
m
|
|
2004
2002
|
),
|
|
2005
2003
|
style: g,
|
|
2006
|
-
"aria-invalid":
|
|
2007
|
-
"aria-errormessage":
|
|
2008
|
-
"aria-describedby":
|
|
2004
|
+
"aria-invalid": x,
|
|
2005
|
+
"aria-errormessage": w,
|
|
2006
|
+
"aria-describedby": w ? `${d}-error` : void 0,
|
|
2009
2007
|
tabIndex: 0,
|
|
2010
|
-
"data-resize":
|
|
2008
|
+
"data-resize": v,
|
|
2011
2009
|
...L
|
|
2012
2010
|
}
|
|
2013
2011
|
);
|
|
@@ -2015,28 +2013,28 @@ const Va = 2, Xa = (e) => {
|
|
|
2015
2013
|
return /* @__PURE__ */ n.jsx(
|
|
2016
2014
|
"input",
|
|
2017
2015
|
{
|
|
2018
|
-
ref:
|
|
2019
|
-
id:
|
|
2016
|
+
ref: R,
|
|
2017
|
+
id: d,
|
|
2020
2018
|
value: a,
|
|
2021
2019
|
placeholder: o,
|
|
2022
2020
|
disabled: i || s,
|
|
2023
2021
|
onFocus: l,
|
|
2024
2022
|
onBlur: c,
|
|
2025
2023
|
onChange: _,
|
|
2026
|
-
onKeyDown:
|
|
2027
|
-
onKeyUp:
|
|
2024
|
+
onKeyDown: f,
|
|
2025
|
+
onKeyUp: p,
|
|
2028
2026
|
maxLength: h,
|
|
2029
2027
|
className: $(
|
|
2030
2028
|
I.input,
|
|
2031
2029
|
I[`size-${r}`],
|
|
2032
2030
|
C && I["with-floating-label"],
|
|
2033
|
-
|
|
2031
|
+
y && I.truncate,
|
|
2034
2032
|
m
|
|
2035
2033
|
),
|
|
2036
2034
|
style: g,
|
|
2037
|
-
"aria-invalid":
|
|
2038
|
-
"aria-errormessage":
|
|
2039
|
-
"aria-describedby":
|
|
2035
|
+
"aria-invalid": x,
|
|
2036
|
+
"aria-errormessage": w,
|
|
2037
|
+
"aria-describedby": w ? `${d}-error` : void 0,
|
|
2040
2038
|
tabIndex: 0,
|
|
2041
2039
|
...L
|
|
2042
2040
|
}
|
|
@@ -2046,7 +2044,7 @@ const Va = 2, Xa = (e) => {
|
|
|
2046
2044
|
`[Input] Недопустимое значение prop 'component': "${String(e)}". Допустимые значения: 'input', 'textarea'`
|
|
2047
2045
|
), null;
|
|
2048
2046
|
}
|
|
2049
|
-
),
|
|
2047
|
+
), Kt = K(
|
|
2050
2048
|
({
|
|
2051
2049
|
children: e,
|
|
2052
2050
|
size: r = "L",
|
|
@@ -2057,46 +2055,46 @@ const Va = 2, Xa = (e) => {
|
|
|
2057
2055
|
wrapperProps: l,
|
|
2058
2056
|
wrapperStyles: c,
|
|
2059
2057
|
floatingLabelStyles: _,
|
|
2060
|
-
prefixStyles:
|
|
2061
|
-
suffixStyles:
|
|
2058
|
+
prefixStyles: f,
|
|
2059
|
+
suffixStyles: p,
|
|
2062
2060
|
labelProps: h,
|
|
2063
2061
|
helperProps: m,
|
|
2064
2062
|
showLimit: g = !1,
|
|
2065
|
-
maxLength:
|
|
2063
|
+
maxLength: y,
|
|
2066
2064
|
hint: C,
|
|
2067
|
-
showHint:
|
|
2068
|
-
showHintOnEmpty:
|
|
2069
|
-
prefix:
|
|
2070
|
-
suffix:
|
|
2065
|
+
showHint: x = !1,
|
|
2066
|
+
showHintOnEmpty: w = !1,
|
|
2067
|
+
prefix: d,
|
|
2068
|
+
suffix: v,
|
|
2071
2069
|
onSuffixClick: L,
|
|
2072
|
-
placeholder:
|
|
2073
|
-
showLabel:
|
|
2074
|
-
labelClassName:
|
|
2075
|
-
hasValue:
|
|
2070
|
+
placeholder: T,
|
|
2071
|
+
showLabel: j = !0,
|
|
2072
|
+
labelClassName: R,
|
|
2073
|
+
hasValue: E = !1,
|
|
2076
2074
|
helper: A,
|
|
2077
|
-
id:
|
|
2078
|
-
value:
|
|
2075
|
+
id: W,
|
|
2076
|
+
value: q = "",
|
|
2079
2077
|
resize: P,
|
|
2080
2078
|
showGrip: S = !1,
|
|
2081
|
-
...
|
|
2079
|
+
...O
|
|
2082
2080
|
}, z) => {
|
|
2083
|
-
const
|
|
2081
|
+
const F = pt(), X = W || F, Q = x && C && (E || w), ce = C && C.length > Wt ? C.substring(0, Wt) + "..." : C, ae = $(
|
|
2084
2082
|
I.wrapper,
|
|
2085
2083
|
I[`size-${r}`],
|
|
2086
2084
|
a && I.error,
|
|
2087
2085
|
o && I.disabled,
|
|
2088
2086
|
i && I.loading,
|
|
2089
2087
|
Q && I["has-hint"],
|
|
2090
|
-
|
|
2088
|
+
v && I["has-suffix"],
|
|
2091
2089
|
g && I["has-limit"],
|
|
2092
2090
|
s
|
|
2093
2091
|
), ee = $(
|
|
2094
2092
|
I.floatingLabel,
|
|
2095
2093
|
I[r],
|
|
2096
|
-
|
|
2097
|
-
|
|
2094
|
+
E && I.filled,
|
|
2095
|
+
R
|
|
2098
2096
|
), { handleGripMouseDown: te } = js(S, o, i, P);
|
|
2099
|
-
return /* @__PURE__ */ n.jsxs("div", { ref: z, className: I.inputBase, "data-testid": "input-base-wrapper", ...
|
|
2097
|
+
return /* @__PURE__ */ n.jsxs("div", { ref: z, className: I.inputBase, "data-testid": "input-base-wrapper", ...O, children: [
|
|
2100
2098
|
/* @__PURE__ */ n.jsxs(
|
|
2101
2099
|
"div",
|
|
2102
2100
|
{
|
|
@@ -2106,25 +2104,25 @@ const Va = 2, Xa = (e) => {
|
|
|
2106
2104
|
"data-show-grip": S ? "true" : "false",
|
|
2107
2105
|
...l,
|
|
2108
2106
|
children: [
|
|
2109
|
-
|
|
2110
|
-
|
|
2107
|
+
d && /* @__PURE__ */ n.jsx("label", { htmlFor: X, className: I.leftSection, style: f, children: d }),
|
|
2108
|
+
v && /* @__PURE__ */ n.jsx(
|
|
2111
2109
|
"label",
|
|
2112
2110
|
{
|
|
2113
2111
|
htmlFor: X,
|
|
2114
2112
|
className: I.rightSection,
|
|
2115
|
-
style:
|
|
2113
|
+
style: p,
|
|
2116
2114
|
onClick: L,
|
|
2117
|
-
children:
|
|
2115
|
+
children: v
|
|
2118
2116
|
}
|
|
2119
2117
|
),
|
|
2120
|
-
|
|
2118
|
+
T && j && /* @__PURE__ */ n.jsx(
|
|
2121
2119
|
"label",
|
|
2122
2120
|
{
|
|
2123
2121
|
htmlFor: X,
|
|
2124
2122
|
className: ee,
|
|
2125
2123
|
style: _,
|
|
2126
2124
|
...h,
|
|
2127
|
-
children:
|
|
2125
|
+
children: T
|
|
2128
2126
|
}
|
|
2129
2127
|
),
|
|
2130
2128
|
e,
|
|
@@ -2142,15 +2140,15 @@ const Va = 2, Xa = (e) => {
|
|
|
2142
2140
|
Q && /* @__PURE__ */ n.jsx(
|
|
2143
2141
|
"div",
|
|
2144
2142
|
{
|
|
2145
|
-
className: $(I.hint,
|
|
2143
|
+
className: $(I.hint, E && I.truncate),
|
|
2146
2144
|
"data-disabled": o || i,
|
|
2147
|
-
children:
|
|
2145
|
+
children: ce
|
|
2148
2146
|
}
|
|
2149
2147
|
),
|
|
2150
|
-
g &&
|
|
2151
|
-
(
|
|
2148
|
+
g && y && /* @__PURE__ */ n.jsxs("div", { className: I.characterLimit, children: [
|
|
2149
|
+
(q || "").length,
|
|
2152
2150
|
" из ",
|
|
2153
|
-
|
|
2151
|
+
y
|
|
2154
2152
|
] })
|
|
2155
2153
|
]
|
|
2156
2154
|
}
|
|
@@ -2171,10 +2169,10 @@ const Va = 2, Xa = (e) => {
|
|
|
2171
2169
|
] });
|
|
2172
2170
|
}
|
|
2173
2171
|
);
|
|
2174
|
-
|
|
2175
|
-
const
|
|
2176
|
-
Wrapper:
|
|
2177
|
-
}),
|
|
2172
|
+
Kt.displayName = "InputWrapperComponent";
|
|
2173
|
+
const Ft = Object.assign(ks, {
|
|
2174
|
+
Wrapper: Kt
|
|
2175
|
+
}), Qt = K(
|
|
2178
2176
|
({
|
|
2179
2177
|
component: e = "input",
|
|
2180
2178
|
size: r = "L",
|
|
@@ -2185,36 +2183,36 @@ const Wt = Object.assign(ks, {
|
|
|
2185
2183
|
placeholder: l,
|
|
2186
2184
|
showLabel: c = !0,
|
|
2187
2185
|
labelClassName: _,
|
|
2188
|
-
helper:
|
|
2189
|
-
prefix:
|
|
2186
|
+
helper: f,
|
|
2187
|
+
prefix: p,
|
|
2190
2188
|
suffix: h,
|
|
2191
2189
|
id: m,
|
|
2192
2190
|
onFocus: g,
|
|
2193
|
-
onBlur:
|
|
2191
|
+
onBlur: y,
|
|
2194
2192
|
onKeyDown: C,
|
|
2195
|
-
onSuffixClick:
|
|
2196
|
-
onChange:
|
|
2197
|
-
value:
|
|
2198
|
-
wrapperProps:
|
|
2193
|
+
onSuffixClick: x,
|
|
2194
|
+
onChange: w,
|
|
2195
|
+
value: d = "",
|
|
2196
|
+
wrapperProps: v,
|
|
2199
2197
|
wrapperStyles: L,
|
|
2200
|
-
floatingLabelStyles:
|
|
2201
|
-
prefixStyles:
|
|
2202
|
-
suffixStyles:
|
|
2203
|
-
textareaStyles:
|
|
2198
|
+
floatingLabelStyles: T,
|
|
2199
|
+
prefixStyles: j,
|
|
2200
|
+
suffixStyles: R,
|
|
2201
|
+
textareaStyles: E,
|
|
2204
2202
|
labelProps: A,
|
|
2205
|
-
helperProps:
|
|
2206
|
-
showLimit:
|
|
2203
|
+
helperProps: W,
|
|
2204
|
+
showLimit: q = !1,
|
|
2207
2205
|
maxLength: P,
|
|
2208
2206
|
inputProps: S,
|
|
2209
|
-
hint:
|
|
2207
|
+
hint: O,
|
|
2210
2208
|
showHint: z = !1,
|
|
2211
|
-
showHintOnEmpty:
|
|
2209
|
+
showHintOnEmpty: F = !1,
|
|
2212
2210
|
truncate: X = !1,
|
|
2213
2211
|
resize: Q,
|
|
2214
|
-
showGrip:
|
|
2212
|
+
showGrip: ce = !1,
|
|
2215
2213
|
...ae
|
|
2216
2214
|
}, ee) => {
|
|
2217
|
-
const te = pt(), me = m || te, [
|
|
2215
|
+
const te = pt(), me = m || te, [ze, Ee] = _e(d), be = d !== void 0 ? d : ze, Te = (be || "").length > 0, je = be || "", Re = c && (r === "XL" || e === "textarea") && !p, Ke = Se(
|
|
2218
2216
|
(G) => {
|
|
2219
2217
|
var U;
|
|
2220
2218
|
i || s || (g == null || g(), (U = S == null ? void 0 : S.onFocus) == null || U.call(
|
|
@@ -2223,7 +2221,7 @@ const Wt = Object.assign(ks, {
|
|
|
2223
2221
|
));
|
|
2224
2222
|
},
|
|
2225
2223
|
[g, S, i, s]
|
|
2226
|
-
), Ve =
|
|
2224
|
+
), Ve = Se(
|
|
2227
2225
|
(G) => {
|
|
2228
2226
|
var U;
|
|
2229
2227
|
if (G.key === "Tab") {
|
|
@@ -2236,32 +2234,32 @@ const Wt = Object.assign(ks, {
|
|
|
2236
2234
|
);
|
|
2237
2235
|
},
|
|
2238
2236
|
[S]
|
|
2239
|
-
), Qe =
|
|
2237
|
+
), Qe = Se(
|
|
2240
2238
|
(G) => {
|
|
2241
2239
|
var he;
|
|
2242
2240
|
const U = G.target.closest(`.${I.wrapper}`);
|
|
2243
|
-
U && U.classList.remove(I.tabFocused),
|
|
2241
|
+
U && U.classList.remove(I.tabFocused), y == null || y(), (he = S == null ? void 0 : S.onBlur) == null || he.call(
|
|
2244
2242
|
S,
|
|
2245
2243
|
G
|
|
2246
2244
|
);
|
|
2247
2245
|
},
|
|
2248
|
-
[
|
|
2249
|
-
), et =
|
|
2246
|
+
[y, S]
|
|
2247
|
+
), et = Se(
|
|
2250
2248
|
(G) => {
|
|
2251
2249
|
var he;
|
|
2252
2250
|
if (i || s) return;
|
|
2253
2251
|
const U = G.target.value;
|
|
2254
|
-
|
|
2252
|
+
Ee(U), w == null || w(U, G), (he = S == null ? void 0 : S.onChange) == null || he.call(
|
|
2255
2253
|
S,
|
|
2256
2254
|
G
|
|
2257
2255
|
);
|
|
2258
2256
|
},
|
|
2259
|
-
[
|
|
2257
|
+
[w, S, i, s]
|
|
2260
2258
|
);
|
|
2261
|
-
return
|
|
2262
|
-
|
|
2263
|
-
}, [
|
|
2264
|
-
|
|
2259
|
+
return le(() => {
|
|
2260
|
+
Ee(d || "");
|
|
2261
|
+
}, [d]), /* @__PURE__ */ n.jsx(
|
|
2262
|
+
Ft.Wrapper,
|
|
2265
2263
|
{
|
|
2266
2264
|
ref: ee,
|
|
2267
2265
|
size: r,
|
|
@@ -2269,37 +2267,37 @@ const Wt = Object.assign(ks, {
|
|
|
2269
2267
|
disabled: i || s,
|
|
2270
2268
|
loading: s,
|
|
2271
2269
|
className: $(a, e === "textarea" && I["textarea-wrapper"]),
|
|
2272
|
-
wrapperProps:
|
|
2270
|
+
wrapperProps: v,
|
|
2273
2271
|
wrapperStyles: L,
|
|
2274
|
-
floatingLabelStyles:
|
|
2275
|
-
prefixStyles:
|
|
2276
|
-
suffixStyles:
|
|
2272
|
+
floatingLabelStyles: T,
|
|
2273
|
+
prefixStyles: j,
|
|
2274
|
+
suffixStyles: R,
|
|
2277
2275
|
labelProps: A,
|
|
2278
|
-
helperProps:
|
|
2279
|
-
showLimit:
|
|
2276
|
+
helperProps: W,
|
|
2277
|
+
showLimit: q,
|
|
2280
2278
|
maxLength: P,
|
|
2281
|
-
hint:
|
|
2279
|
+
hint: O,
|
|
2282
2280
|
showHint: z,
|
|
2283
|
-
showHintOnEmpty:
|
|
2284
|
-
prefix:
|
|
2281
|
+
showHintOnEmpty: F,
|
|
2282
|
+
prefix: p,
|
|
2285
2283
|
suffix: h,
|
|
2286
|
-
onSuffixClick:
|
|
2284
|
+
onSuffixClick: x,
|
|
2287
2285
|
placeholder: l,
|
|
2288
2286
|
showLabel: c,
|
|
2289
2287
|
labelClassName: _,
|
|
2290
|
-
hasValue:
|
|
2291
|
-
helper:
|
|
2288
|
+
hasValue: Te,
|
|
2289
|
+
helper: f,
|
|
2292
2290
|
id: me,
|
|
2293
|
-
value:
|
|
2294
|
-
showGrip:
|
|
2291
|
+
value: je,
|
|
2292
|
+
showGrip: ce,
|
|
2295
2293
|
resize: Q,
|
|
2296
2294
|
...ae,
|
|
2297
2295
|
children: /* @__PURE__ */ n.jsx(
|
|
2298
|
-
|
|
2296
|
+
Ft,
|
|
2299
2297
|
{
|
|
2300
2298
|
component: e,
|
|
2301
2299
|
size: r,
|
|
2302
|
-
value:
|
|
2300
|
+
value: je,
|
|
2303
2301
|
placeholder: l,
|
|
2304
2302
|
disabled: i,
|
|
2305
2303
|
loading: s,
|
|
@@ -2310,9 +2308,9 @@ const Wt = Object.assign(ks, {
|
|
|
2310
2308
|
onKeyUp: Ve,
|
|
2311
2309
|
maxLength: P,
|
|
2312
2310
|
truncate: X,
|
|
2313
|
-
"data-empty": !
|
|
2314
|
-
shouldShowFloatingLabelClass:
|
|
2315
|
-
style: e === "textarea" ?
|
|
2311
|
+
"data-empty": !Te,
|
|
2312
|
+
shouldShowFloatingLabelClass: Re,
|
|
2313
|
+
style: e === "textarea" ? E : void 0,
|
|
2316
2314
|
"aria-invalid": !!o,
|
|
2317
2315
|
"aria-errormessage": o ? `${me}-error` : void 0,
|
|
2318
2316
|
id: me,
|
|
@@ -2480,7 +2478,7 @@ const Wt = Object.assign(ks, {
|
|
|
2480
2478
|
suffixStyles: {}
|
|
2481
2479
|
};
|
|
2482
2480
|
}
|
|
2483
|
-
},
|
|
2481
|
+
}, ql = K(
|
|
2484
2482
|
({
|
|
2485
2483
|
value: e = "",
|
|
2486
2484
|
onChange: r,
|
|
@@ -2491,87 +2489,87 @@ const Wt = Object.assign(ks, {
|
|
|
2491
2489
|
autoComplete: l,
|
|
2492
2490
|
autoFocus: c,
|
|
2493
2491
|
size: _ = H.L,
|
|
2494
|
-
inputProps:
|
|
2495
|
-
error:
|
|
2492
|
+
inputProps: f,
|
|
2493
|
+
error: p,
|
|
2496
2494
|
disabled: h,
|
|
2497
2495
|
loading: m,
|
|
2498
2496
|
helper: g,
|
|
2499
|
-
prefix:
|
|
2497
|
+
prefix: y,
|
|
2500
2498
|
suffix: C,
|
|
2501
|
-
clearable:
|
|
2502
|
-
id:
|
|
2503
|
-
showLabel:
|
|
2504
|
-
onFocus:
|
|
2499
|
+
clearable: x = !1,
|
|
2500
|
+
id: w,
|
|
2501
|
+
showLabel: d = !0,
|
|
2502
|
+
onFocus: v,
|
|
2505
2503
|
onBlur: L,
|
|
2506
|
-
onSuffixClick:
|
|
2507
|
-
onClear:
|
|
2508
|
-
className:
|
|
2509
|
-
truncate:
|
|
2504
|
+
onSuffixClick: T,
|
|
2505
|
+
onClear: j,
|
|
2506
|
+
className: R,
|
|
2507
|
+
truncate: E = !0,
|
|
2510
2508
|
hint: A,
|
|
2511
|
-
showHint:
|
|
2512
|
-
showHintOnEmpty:
|
|
2509
|
+
showHint: W = !1,
|
|
2510
|
+
showHintOnEmpty: q = !1,
|
|
2513
2511
|
wrapperProps: P,
|
|
2514
2512
|
labelProps: S,
|
|
2515
|
-
helperProps:
|
|
2513
|
+
helperProps: O,
|
|
2516
2514
|
...z
|
|
2517
|
-
},
|
|
2518
|
-
const X = (e || "").length > 0, Q = _ === H.XL,
|
|
2519
|
-
r == null || r(""),
|
|
2515
|
+
}, F) => {
|
|
2516
|
+
const X = (e || "").length > 0, Q = _ === H.XL, ce = !!y, ae = Q && d && !y, ee = x && X && !(h || m), te = () => {
|
|
2517
|
+
r == null || r(""), j == null || j();
|
|
2520
2518
|
}, me = () => {
|
|
2521
|
-
ee && te(),
|
|
2522
|
-
},
|
|
2523
|
-
|
|
2519
|
+
ee && te(), T == null || T();
|
|
2520
|
+
}, ze = ee ? /* @__PURE__ */ n.jsx(
|
|
2521
|
+
Jt,
|
|
2524
2522
|
{
|
|
2525
2523
|
size: _ === H.S || _ === H.M ? "xs" : "sm",
|
|
2526
2524
|
color: "var(--icon-secondary)",
|
|
2527
2525
|
style: { cursor: "pointer" },
|
|
2528
2526
|
"data-testid": "x-icon"
|
|
2529
2527
|
}
|
|
2530
|
-
) : C,
|
|
2528
|
+
) : C, Ee = {
|
|
2531
2529
|
type: a,
|
|
2532
2530
|
minLength: s,
|
|
2533
2531
|
autoComplete: l,
|
|
2534
2532
|
autoFocus: c,
|
|
2535
|
-
...
|
|
2536
|
-
}, be = As(_, ae, X,
|
|
2533
|
+
...f
|
|
2534
|
+
}, be = As(_, ae, X, ce);
|
|
2537
2535
|
return /* @__PURE__ */ n.jsx(
|
|
2538
|
-
|
|
2536
|
+
Qt,
|
|
2539
2537
|
{
|
|
2540
2538
|
size: _,
|
|
2541
|
-
error:
|
|
2539
|
+
error: p,
|
|
2542
2540
|
disabled: h || m,
|
|
2543
2541
|
loading: m,
|
|
2544
2542
|
helper: g,
|
|
2545
|
-
prefix:
|
|
2546
|
-
suffix:
|
|
2547
|
-
id:
|
|
2543
|
+
prefix: y,
|
|
2544
|
+
suffix: ze,
|
|
2545
|
+
id: w,
|
|
2548
2546
|
showLabel: ae,
|
|
2549
|
-
onFocus:
|
|
2547
|
+
onFocus: v,
|
|
2550
2548
|
onBlur: L,
|
|
2551
2549
|
onSuffixClick: me,
|
|
2552
2550
|
onChange: r,
|
|
2553
2551
|
value: e,
|
|
2554
2552
|
placeholder: o,
|
|
2555
|
-
className:
|
|
2553
|
+
className: R,
|
|
2556
2554
|
wrapperStyles: be.wrapperStyles,
|
|
2557
2555
|
floatingLabelStyles: be.floatingLabelStyles,
|
|
2558
2556
|
prefixStyles: be.prefixStyles,
|
|
2559
2557
|
suffixStyles: be.suffixStyles,
|
|
2560
2558
|
wrapperProps: P,
|
|
2561
2559
|
labelProps: S,
|
|
2562
|
-
helperProps:
|
|
2560
|
+
helperProps: O,
|
|
2563
2561
|
showLimit: !1,
|
|
2564
2562
|
maxLength: i,
|
|
2565
|
-
inputProps:
|
|
2563
|
+
inputProps: Ee,
|
|
2566
2564
|
hint: A,
|
|
2567
|
-
showHint:
|
|
2568
|
-
showHintOnEmpty:
|
|
2569
|
-
truncate:
|
|
2565
|
+
showHint: W,
|
|
2566
|
+
showHintOnEmpty: q,
|
|
2567
|
+
truncate: E,
|
|
2570
2568
|
...z
|
|
2571
2569
|
}
|
|
2572
2570
|
);
|
|
2573
2571
|
}
|
|
2574
|
-
),
|
|
2572
|
+
), ue = {
|
|
2575
2573
|
M: "M",
|
|
2576
2574
|
L: "L"
|
|
2577
2575
|
}, Ue = {
|
|
@@ -2586,7 +2584,7 @@ const Wt = Object.assign(ks, {
|
|
|
2586
2584
|
}, ct = {
|
|
2587
2585
|
M: "112px",
|
|
2588
2586
|
L: "56px"
|
|
2589
|
-
},
|
|
2587
|
+
}, Oe = {
|
|
2590
2588
|
M: "48px",
|
|
2591
2589
|
L: "22px"
|
|
2592
2590
|
}, ve = {
|
|
@@ -2599,37 +2597,37 @@ const Wt = Object.assign(ks, {
|
|
|
2599
2597
|
L: 56,
|
|
2600
2598
|
XL: 112
|
|
2601
2599
|
}, Bs = (e, r) => {
|
|
2602
|
-
if (e ===
|
|
2600
|
+
if (e === ue.M)
|
|
2603
2601
|
return ct.M;
|
|
2604
2602
|
if (r)
|
|
2605
2603
|
return `${r}px`;
|
|
2606
2604
|
switch (e) {
|
|
2607
|
-
case
|
|
2605
|
+
case ue.L:
|
|
2608
2606
|
return ct.L;
|
|
2609
2607
|
default:
|
|
2610
2608
|
return ct.L;
|
|
2611
2609
|
}
|
|
2612
|
-
},
|
|
2613
|
-
if (e ===
|
|
2614
|
-
return
|
|
2610
|
+
}, zs = (e, r) => {
|
|
2611
|
+
if (e === ue.M)
|
|
2612
|
+
return Oe.M;
|
|
2615
2613
|
if (r)
|
|
2616
2614
|
switch (r) {
|
|
2617
2615
|
case Ce.M:
|
|
2618
2616
|
case Ce.L:
|
|
2619
|
-
return
|
|
2617
|
+
return Oe.L;
|
|
2620
2618
|
case Ce.XL:
|
|
2621
|
-
return
|
|
2619
|
+
return Oe.M;
|
|
2622
2620
|
default:
|
|
2623
|
-
return
|
|
2621
|
+
return Oe.L;
|
|
2624
2622
|
}
|
|
2625
2623
|
switch (e) {
|
|
2626
|
-
case
|
|
2627
|
-
return
|
|
2624
|
+
case ue.L:
|
|
2625
|
+
return Oe.L;
|
|
2628
2626
|
default:
|
|
2629
|
-
return
|
|
2627
|
+
return Oe.L;
|
|
2630
2628
|
}
|
|
2631
|
-
},
|
|
2632
|
-
if (e ===
|
|
2629
|
+
}, Ds = (e, r, a) => {
|
|
2630
|
+
if (e === ue.M)
|
|
2633
2631
|
return ve.M;
|
|
2634
2632
|
if (r)
|
|
2635
2633
|
switch (r) {
|
|
@@ -2643,13 +2641,13 @@ const Wt = Object.assign(ks, {
|
|
|
2643
2641
|
return ve.L;
|
|
2644
2642
|
}
|
|
2645
2643
|
switch (e) {
|
|
2646
|
-
case
|
|
2644
|
+
case ue.L:
|
|
2647
2645
|
return a ? ve.L_FLOATING_LABEL : ve.L;
|
|
2648
2646
|
default:
|
|
2649
2647
|
return ve.L;
|
|
2650
2648
|
}
|
|
2651
|
-
},
|
|
2652
|
-
if (e ===
|
|
2649
|
+
}, Ws = (e, r) => {
|
|
2650
|
+
if (e === ue.M)
|
|
2653
2651
|
return "M";
|
|
2654
2652
|
if (r)
|
|
2655
2653
|
switch (r) {
|
|
@@ -2663,8 +2661,8 @@ const Wt = Object.assign(ks, {
|
|
|
2663
2661
|
return "L";
|
|
2664
2662
|
}
|
|
2665
2663
|
return e;
|
|
2666
|
-
},
|
|
2667
|
-
const i = Bs(e, r), s =
|
|
2664
|
+
}, Fs = (e) => Ps[e], qs = (e) => Ue[e], Hs = (e, r, a, o) => {
|
|
2665
|
+
const i = Bs(e, r), s = zs(e, r), l = Ds(e, r, a);
|
|
2668
2666
|
return {
|
|
2669
2667
|
wrapperStyles: {
|
|
2670
2668
|
minHeight: i,
|
|
@@ -2676,13 +2674,13 @@ const Wt = Object.assign(ks, {
|
|
|
2676
2674
|
padding: l
|
|
2677
2675
|
},
|
|
2678
2676
|
floatingLabelStyles: {
|
|
2679
|
-
left: e ===
|
|
2677
|
+
left: e === ue.M ? Ue.M : Ue.L,
|
|
2680
2678
|
transformOrigin: "left top",
|
|
2681
|
-
top: r === 112 && a && e ===
|
|
2679
|
+
top: r === 112 && a && e === ue.L ? Ue.L : void 0
|
|
2682
2680
|
},
|
|
2683
2681
|
suffixStyles: {
|
|
2684
|
-
right:
|
|
2685
|
-
top: r === 48 && e ===
|
|
2682
|
+
right: qs(e),
|
|
2683
|
+
top: r === 48 && e === ue.L ? "11px" : void 0,
|
|
2686
2684
|
boxSizing: "border-box"
|
|
2687
2685
|
},
|
|
2688
2686
|
textareaStyles: {
|
|
@@ -2693,7 +2691,7 @@ const Wt = Object.assign(ks, {
|
|
|
2693
2691
|
...o === Ze.FIXED && r && { height: s }
|
|
2694
2692
|
}
|
|
2695
2693
|
};
|
|
2696
|
-
},
|
|
2694
|
+
}, Hl = K(
|
|
2697
2695
|
({
|
|
2698
2696
|
value: e = "",
|
|
2699
2697
|
onChange: r,
|
|
@@ -2701,84 +2699,84 @@ const Wt = Object.assign(ks, {
|
|
|
2701
2699
|
maxLength: o,
|
|
2702
2700
|
minLength: i,
|
|
2703
2701
|
autoFocus: s,
|
|
2704
|
-
size: l =
|
|
2702
|
+
size: l = ue.L,
|
|
2705
2703
|
textareaProps: c,
|
|
2706
2704
|
error: _,
|
|
2707
|
-
disabled:
|
|
2708
|
-
loading:
|
|
2705
|
+
disabled: f,
|
|
2706
|
+
loading: p,
|
|
2709
2707
|
helper: h,
|
|
2710
2708
|
suffix: m,
|
|
2711
2709
|
clearable: g = !1,
|
|
2712
|
-
id:
|
|
2710
|
+
id: y,
|
|
2713
2711
|
showLabel: C = !0,
|
|
2714
|
-
onFocus:
|
|
2715
|
-
onBlur:
|
|
2716
|
-
onClear:
|
|
2717
|
-
onKeyDown:
|
|
2712
|
+
onFocus: x,
|
|
2713
|
+
onBlur: w,
|
|
2714
|
+
onClear: d,
|
|
2715
|
+
onKeyDown: v,
|
|
2718
2716
|
className: L,
|
|
2719
|
-
rows:
|
|
2720
|
-
showLimit:
|
|
2721
|
-
wrapperProps:
|
|
2722
|
-
labelProps:
|
|
2717
|
+
rows: T = 1,
|
|
2718
|
+
showLimit: j = !1,
|
|
2719
|
+
wrapperProps: R,
|
|
2720
|
+
labelProps: E,
|
|
2723
2721
|
helperProps: A,
|
|
2724
|
-
showGrip:
|
|
2725
|
-
minHeight:
|
|
2722
|
+
showGrip: W,
|
|
2723
|
+
minHeight: q,
|
|
2726
2724
|
resize: P,
|
|
2727
2725
|
...S
|
|
2728
|
-
},
|
|
2729
|
-
const z = (e || "").length > 0,
|
|
2730
|
-
r == null || r(""),
|
|
2731
|
-
},
|
|
2726
|
+
}, O) => {
|
|
2727
|
+
const z = (e || "").length > 0, F = C && !!a && (l === ue.M || q !== 48), X = g && z && !(f || p), Q = () => {
|
|
2728
|
+
r == null || r(""), d == null || d();
|
|
2729
|
+
}, ce = () => {
|
|
2732
2730
|
X && Q();
|
|
2733
2731
|
}, ae = X ? /* @__PURE__ */ n.jsx(
|
|
2734
|
-
|
|
2732
|
+
Jt,
|
|
2735
2733
|
{
|
|
2736
|
-
size:
|
|
2734
|
+
size: Fs(l),
|
|
2737
2735
|
color: "var(--icon-secondary)",
|
|
2738
2736
|
style: { cursor: "pointer" },
|
|
2739
2737
|
"data-testid": "x-icon"
|
|
2740
2738
|
}
|
|
2741
|
-
) : m, ee = Hs(l,
|
|
2742
|
-
rows:
|
|
2739
|
+
) : m, ee = Hs(l, q, F && z, P), te = Ws(l, q), me = {
|
|
2740
|
+
rows: T,
|
|
2743
2741
|
minLength: i,
|
|
2744
2742
|
autoFocus: s,
|
|
2745
2743
|
resize: P,
|
|
2746
2744
|
...c
|
|
2747
2745
|
};
|
|
2748
2746
|
return /* @__PURE__ */ n.jsx(
|
|
2749
|
-
|
|
2747
|
+
Qt,
|
|
2750
2748
|
{
|
|
2751
|
-
ref:
|
|
2749
|
+
ref: O,
|
|
2752
2750
|
component: "textarea",
|
|
2753
2751
|
size: te,
|
|
2754
2752
|
error: _,
|
|
2755
|
-
disabled:
|
|
2756
|
-
loading:
|
|
2757
|
-
onSuffixClick:
|
|
2753
|
+
disabled: f || p,
|
|
2754
|
+
loading: p,
|
|
2755
|
+
onSuffixClick: ce,
|
|
2758
2756
|
helper: h,
|
|
2759
2757
|
suffix: ae,
|
|
2760
|
-
id:
|
|
2761
|
-
showLabel:
|
|
2762
|
-
onFocus:
|
|
2763
|
-
onBlur:
|
|
2764
|
-
onKeyDown:
|
|
2758
|
+
id: y,
|
|
2759
|
+
showLabel: F,
|
|
2760
|
+
onFocus: x,
|
|
2761
|
+
onBlur: w,
|
|
2762
|
+
onKeyDown: v,
|
|
2765
2763
|
onChange: r,
|
|
2766
2764
|
value: e || "",
|
|
2767
2765
|
placeholder: a,
|
|
2768
2766
|
className: L,
|
|
2769
|
-
"data-floating-label":
|
|
2767
|
+
"data-floating-label": F,
|
|
2770
2768
|
wrapperStyles: ee.wrapperStyles,
|
|
2771
2769
|
floatingLabelStyles: ee.floatingLabelStyles,
|
|
2772
2770
|
suffixStyles: ee.suffixStyles,
|
|
2773
2771
|
textareaStyles: ee.textareaStyles,
|
|
2774
|
-
wrapperProps:
|
|
2775
|
-
labelProps:
|
|
2772
|
+
wrapperProps: R,
|
|
2773
|
+
labelProps: E,
|
|
2776
2774
|
helperProps: A,
|
|
2777
|
-
showLimit:
|
|
2775
|
+
showLimit: j && (q === 112 || l === ue.M),
|
|
2778
2776
|
maxLength: o,
|
|
2779
2777
|
inputProps: me,
|
|
2780
2778
|
resize: P,
|
|
2781
|
-
showGrip:
|
|
2779
|
+
showGrip: W,
|
|
2782
2780
|
...S
|
|
2783
2781
|
}
|
|
2784
2782
|
);
|
|
@@ -2787,7 +2785,7 @@ const Wt = Object.assign(ks, {
|
|
|
2787
2785
|
helper: Vs,
|
|
2788
2786
|
"helper--error": "_helper--error_1jq7j_28",
|
|
2789
2787
|
"helper--disabled": "_helper--disabled_1jq7j_33"
|
|
2790
|
-
},
|
|
2788
|
+
}, Vl = ({
|
|
2791
2789
|
title: e,
|
|
2792
2790
|
error: r,
|
|
2793
2791
|
className: a = "",
|
|
@@ -2797,24 +2795,24 @@ const Wt = Object.assign(ks, {
|
|
|
2797
2795
|
"aria-label": l,
|
|
2798
2796
|
"aria-describedby": c
|
|
2799
2797
|
}) => {
|
|
2800
|
-
const _ = !!r,
|
|
2798
|
+
const _ = !!r, f = $(
|
|
2801
2799
|
dt.helper,
|
|
2802
2800
|
_ && dt["helper--error"],
|
|
2803
2801
|
i && dt["helper--disabled"],
|
|
2804
2802
|
a
|
|
2805
|
-
),
|
|
2803
|
+
), p = i ? e : r || e;
|
|
2806
2804
|
return /* @__PURE__ */ n.jsx(
|
|
2807
2805
|
"div",
|
|
2808
2806
|
{
|
|
2809
|
-
className:
|
|
2807
|
+
className: f,
|
|
2810
2808
|
style: o,
|
|
2811
2809
|
"data-testid": s,
|
|
2812
2810
|
"aria-label": l,
|
|
2813
2811
|
"aria-describedby": c,
|
|
2814
|
-
children: /* @__PURE__ */ n.jsx("p", { children:
|
|
2812
|
+
children: /* @__PURE__ */ n.jsx("p", { children: p })
|
|
2815
2813
|
}
|
|
2816
2814
|
);
|
|
2817
|
-
}, Xs = "_radio_1q34w_54", Ys = "_checked_1q34w_75", Zs = "_error_1q34w_80", Gs = "_disabled_1q34w_89", Us = "_icon_1q34w_125", Js = "_small_1q34w_133", Ks = "_medium_1q34w_140", Qs = "_large_1q34w_147", ei = "_label_1q34w_154", ti = "_container_1q34w_180", ri = "_input_1q34w_193", ai = "_card_1q34w_200", oi = "_smallCard_1q34w_206", ni = "_mediumCard_1q34w_210", si = "_largeCard_1q34w_214",
|
|
2815
|
+
}, Xs = "_radio_1q34w_54", Ys = "_checked_1q34w_75", Zs = "_error_1q34w_80", Gs = "_disabled_1q34w_89", Us = "_icon_1q34w_125", Js = "_small_1q34w_133", Ks = "_medium_1q34w_140", Qs = "_large_1q34w_147", ei = "_label_1q34w_154", ti = "_container_1q34w_180", ri = "_input_1q34w_193", ai = "_card_1q34w_200", oi = "_smallCard_1q34w_206", ni = "_mediumCard_1q34w_210", si = "_largeCard_1q34w_214", de = {
|
|
2818
2816
|
radio: Xs,
|
|
2819
2817
|
checked: Ys,
|
|
2820
2818
|
error: Zs,
|
|
@@ -2830,7 +2828,7 @@ const Wt = Object.assign(ks, {
|
|
|
2830
2828
|
smallCard: oi,
|
|
2831
2829
|
mediumCard: ni,
|
|
2832
2830
|
largeCard: si
|
|
2833
|
-
}, ii = "radio-container-", li = "radio-label",
|
|
2831
|
+
}, ii = "radio-container-", li = "radio-label", er = K(
|
|
2834
2832
|
(e, r) => {
|
|
2835
2833
|
const {
|
|
2836
2834
|
name: a,
|
|
@@ -2840,87 +2838,87 @@ const Wt = Object.assign(ks, {
|
|
|
2840
2838
|
loading: l = !1,
|
|
2841
2839
|
error: c,
|
|
2842
2840
|
disabled: _ = !1,
|
|
2843
|
-
checked:
|
|
2844
|
-
containerClassName:
|
|
2841
|
+
checked: f = !1,
|
|
2842
|
+
containerClassName: p,
|
|
2845
2843
|
className: h,
|
|
2846
2844
|
children: m,
|
|
2847
2845
|
clickable: g = "all",
|
|
2848
|
-
mode:
|
|
2846
|
+
mode: y = "default",
|
|
2849
2847
|
tabIndex: C,
|
|
2850
|
-
style:
|
|
2851
|
-
containerStyle:
|
|
2852
|
-
onChange:
|
|
2853
|
-
"data-testid":
|
|
2848
|
+
style: x,
|
|
2849
|
+
containerStyle: w,
|
|
2850
|
+
onChange: d,
|
|
2851
|
+
"data-testid": v,
|
|
2854
2852
|
...L
|
|
2855
|
-
} = e,
|
|
2856
|
-
|
|
2857
|
-
}, P = (
|
|
2858
|
-
|
|
2859
|
-
}, S = (
|
|
2853
|
+
} = e, T = !!c, j = _ || l, R = g === "all", E = y === "card", A = de[`${s}Card`], W = o ?? a, q = (F) => {
|
|
2854
|
+
j || d == null || d(i, F);
|
|
2855
|
+
}, P = (F) => {
|
|
2856
|
+
F.key === "Enter" && !j && (F.preventDefault(), d == null || d(i));
|
|
2857
|
+
}, S = (F) => F.stopPropagation(), O = () => /* @__PURE__ */ n.jsxs(
|
|
2860
2858
|
"div",
|
|
2861
2859
|
{
|
|
2862
2860
|
className: $(
|
|
2863
|
-
|
|
2864
|
-
|
|
2861
|
+
de.radio,
|
|
2862
|
+
de[s],
|
|
2865
2863
|
{
|
|
2866
|
-
[
|
|
2867
|
-
[
|
|
2868
|
-
[
|
|
2864
|
+
[de.checked]: f,
|
|
2865
|
+
[de.disabled]: j,
|
|
2866
|
+
[de.error]: T && !j
|
|
2869
2867
|
},
|
|
2870
2868
|
h
|
|
2871
2869
|
),
|
|
2872
|
-
style:
|
|
2870
|
+
style: x,
|
|
2873
2871
|
tabIndex: C || 1,
|
|
2874
|
-
"data-testid": `${ii}${
|
|
2872
|
+
"data-testid": `${ii}${W}`,
|
|
2875
2873
|
children: [
|
|
2876
2874
|
/* @__PURE__ */ n.jsx(
|
|
2877
2875
|
"input",
|
|
2878
2876
|
{
|
|
2879
2877
|
"aria-errormessage": c,
|
|
2880
|
-
"aria-invalid":
|
|
2881
|
-
checked:
|
|
2882
|
-
className:
|
|
2883
|
-
"data-testid": `radio-${
|
|
2884
|
-
disabled:
|
|
2885
|
-
id:
|
|
2878
|
+
"aria-invalid": T,
|
|
2879
|
+
checked: f,
|
|
2880
|
+
className: de.input,
|
|
2881
|
+
"data-testid": `radio-${W}`,
|
|
2882
|
+
disabled: j,
|
|
2883
|
+
id: W,
|
|
2886
2884
|
name: a,
|
|
2887
2885
|
ref: r,
|
|
2888
2886
|
type: "radio",
|
|
2889
2887
|
value: i,
|
|
2890
|
-
onChange:
|
|
2888
|
+
onChange: q,
|
|
2891
2889
|
onClick: S
|
|
2892
2890
|
}
|
|
2893
2891
|
),
|
|
2894
|
-
/* @__PURE__ */ n.jsx("svg", { "data-testid": `radio-icon-${
|
|
2892
|
+
/* @__PURE__ */ n.jsx("svg", { "data-testid": `radio-icon-${W}`, viewBox: "0 0 8 8", className: de.icon, children: /* @__PURE__ */ n.jsx("circle", { cx: 4, cy: 4, fill: "current", r: 4 }) })
|
|
2895
2893
|
]
|
|
2896
2894
|
}
|
|
2897
2895
|
), z = () => /* @__PURE__ */ n.jsxs(
|
|
2898
2896
|
"label",
|
|
2899
2897
|
{
|
|
2900
|
-
"aria-checked":
|
|
2901
|
-
"aria-disabled":
|
|
2902
|
-
"data-testid":
|
|
2903
|
-
htmlFor:
|
|
2904
|
-
style:
|
|
2905
|
-
className: $(
|
|
2906
|
-
[$(
|
|
2907
|
-
[A]:
|
|
2898
|
+
"aria-checked": f,
|
|
2899
|
+
"aria-disabled": j,
|
|
2900
|
+
"data-testid": R ? v : li,
|
|
2901
|
+
htmlFor: W,
|
|
2902
|
+
style: w,
|
|
2903
|
+
className: $(de.label, {
|
|
2904
|
+
[$(de.container, de[y], p)]: R,
|
|
2905
|
+
[A]: R && E
|
|
2908
2906
|
}),
|
|
2909
2907
|
onKeyDown: P,
|
|
2910
2908
|
...L,
|
|
2911
2909
|
children: [
|
|
2912
|
-
|
|
2913
|
-
|
|
2910
|
+
O(),
|
|
2911
|
+
R && m
|
|
2914
2912
|
]
|
|
2915
2913
|
}
|
|
2916
2914
|
);
|
|
2917
|
-
return
|
|
2915
|
+
return R ? z() : /* @__PURE__ */ n.jsxs(
|
|
2918
2916
|
"div",
|
|
2919
2917
|
{
|
|
2920
|
-
className: $(
|
|
2921
|
-
[A]:
|
|
2918
|
+
className: $(de.container, de[y], p, {
|
|
2919
|
+
[A]: E
|
|
2922
2920
|
}),
|
|
2923
|
-
"data-testid":
|
|
2921
|
+
"data-testid": v,
|
|
2924
2922
|
children: [
|
|
2925
2923
|
z(),
|
|
2926
2924
|
m
|
|
@@ -2928,7 +2926,7 @@ const Wt = Object.assign(ks, {
|
|
|
2928
2926
|
}
|
|
2929
2927
|
);
|
|
2930
2928
|
}
|
|
2931
|
-
), ci = "_group_o6mjt_7", di = "_vertical_o6mjt_12", ui = "_horizontal_o6mjt_16",
|
|
2929
|
+
), ci = "_group_o6mjt_7", di = "_vertical_o6mjt_12", ui = "_horizontal_o6mjt_16", qt = {
|
|
2932
2930
|
group: ci,
|
|
2933
2931
|
vertical: di,
|
|
2934
2932
|
horizontal: ui
|
|
@@ -2942,26 +2940,26 @@ const Wt = Object.assign(ks, {
|
|
|
2942
2940
|
className: l,
|
|
2943
2941
|
radioClassName: c,
|
|
2944
2942
|
disabled: _ = !1,
|
|
2945
|
-
layout:
|
|
2946
|
-
"data-testid":
|
|
2943
|
+
layout: f = "vertical",
|
|
2944
|
+
"data-testid": p,
|
|
2947
2945
|
...h
|
|
2948
2946
|
} = e;
|
|
2949
2947
|
return /* @__PURE__ */ n.jsx(
|
|
2950
2948
|
"div",
|
|
2951
2949
|
{
|
|
2952
|
-
className:
|
|
2953
|
-
"data-testid":
|
|
2950
|
+
className: Le(qt.group, qt[f], l),
|
|
2951
|
+
"data-testid": p ?? `radio-group-${o}`,
|
|
2954
2952
|
id: a,
|
|
2955
2953
|
ref: r,
|
|
2956
|
-
children: s.map(({ label: m, value: g, disabled:
|
|
2957
|
-
const C = `${o}-${String(g)}`,
|
|
2954
|
+
children: s.map(({ label: m, value: g, disabled: y }) => {
|
|
2955
|
+
const C = `${o}-${String(g)}`, x = String(g) === String(i);
|
|
2958
2956
|
return /* @__PURE__ */ n.jsx(
|
|
2959
|
-
|
|
2957
|
+
er,
|
|
2960
2958
|
{
|
|
2961
2959
|
id: C,
|
|
2962
|
-
checked:
|
|
2960
|
+
checked: x,
|
|
2963
2961
|
"data-testid": C,
|
|
2964
|
-
disabled: _ ||
|
|
2962
|
+
disabled: _ || y,
|
|
2965
2963
|
name: o,
|
|
2966
2964
|
value: g,
|
|
2967
2965
|
className: c,
|
|
@@ -2974,7 +2972,7 @@ const Wt = Object.assign(ks, {
|
|
|
2974
2972
|
}
|
|
2975
2973
|
);
|
|
2976
2974
|
}
|
|
2977
|
-
),
|
|
2975
|
+
), Xl = Object.assign(er, {
|
|
2978
2976
|
Group: _i
|
|
2979
2977
|
}), pi = "_root_1jj3e_25", fi = "_unordered_1jj3e_39", gi = "_ordered_1jj3e_43", bi = "_sm_1jj3e_48", hi = "_md_1jj3e_59", mi = "_lg_1jj3e_70", yi = "_xl_1jj3e_81", ut = {
|
|
2980
2978
|
root: pi,
|
|
@@ -2987,7 +2985,7 @@ const Wt = Object.assign(ks, {
|
|
|
2987
2985
|
}, xi = (e) => {
|
|
2988
2986
|
const { children: r, className: a, "data-testid": o = "list-item" } = e;
|
|
2989
2987
|
return /* @__PURE__ */ n.jsx("li", { "data-testid": o, className: a, children: r });
|
|
2990
|
-
},
|
|
2988
|
+
}, Yl = Object.assign(
|
|
2991
2989
|
K((e, r) => {
|
|
2992
2990
|
const {
|
|
2993
2991
|
variant: a = "unordered",
|
|
@@ -3002,7 +3000,7 @@ const Wt = Object.assign(ks, {
|
|
|
3002
3000
|
{
|
|
3003
3001
|
"data-testid": l,
|
|
3004
3002
|
ref: r,
|
|
3005
|
-
className:
|
|
3003
|
+
className: Le(ut.root, ut[a], ut[s], o),
|
|
3006
3004
|
...a === "ordered" && c,
|
|
3007
3005
|
children: i
|
|
3008
3006
|
}
|
|
@@ -3028,14 +3026,14 @@ const Wt = Object.assign(ks, {
|
|
|
3028
3026
|
className: a,
|
|
3029
3027
|
size: o
|
|
3030
3028
|
}) => {
|
|
3031
|
-
const i =
|
|
3029
|
+
const i = qe(null), [s, l] = _e(!1), [c, _] = _e(!1), { ref: f, bgColor: p } = ft(), h = f ?? { current: null }, m = p ?? Ii, g = r && s, y = r && c, C = ({ direction: d }) => /* @__PURE__ */ n.jsx(
|
|
3032
3030
|
"svg",
|
|
3033
3031
|
{
|
|
3034
3032
|
height: "12px",
|
|
3035
3033
|
width: "12px",
|
|
3036
3034
|
viewBox: "0 0 185.343 185.343",
|
|
3037
3035
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3038
|
-
children: /* @__PURE__ */ n.jsx("g", { transform:
|
|
3036
|
+
children: /* @__PURE__ */ n.jsx("g", { transform: d === "left" ? "scale(-1,1) translate(-185.343,0)" : void 0, children: /* @__PURE__ */ n.jsx(
|
|
3039
3037
|
"path",
|
|
3040
3038
|
{
|
|
3041
3039
|
fill: "currentColor",
|
|
@@ -3043,30 +3041,30 @@ const Wt = Object.assign(ks, {
|
|
|
3043
3041
|
}
|
|
3044
3042
|
) })
|
|
3045
3043
|
}
|
|
3046
|
-
),
|
|
3047
|
-
const
|
|
3048
|
-
if (!
|
|
3049
|
-
const
|
|
3050
|
-
l(
|
|
3051
|
-
},
|
|
3052
|
-
const
|
|
3053
|
-
if (!
|
|
3054
|
-
const L =
|
|
3055
|
-
|
|
3044
|
+
), x = () => {
|
|
3045
|
+
const d = i.current;
|
|
3046
|
+
if (!d) return;
|
|
3047
|
+
const v = Math.round(d.scrollLeft), L = Math.round(d.scrollLeft + d.clientWidth), T = Math.round(d.scrollWidth);
|
|
3048
|
+
l(v > 0), _(L < T);
|
|
3049
|
+
}, w = (d) => {
|
|
3050
|
+
const v = i.current;
|
|
3051
|
+
if (!v) return;
|
|
3052
|
+
const L = v.clientWidth;
|
|
3053
|
+
v.scrollBy({ left: d === "left" ? -L : L, behavior: "smooth" });
|
|
3056
3054
|
};
|
|
3057
|
-
return
|
|
3058
|
-
const
|
|
3059
|
-
if (!
|
|
3060
|
-
const
|
|
3061
|
-
Math.abs(L.deltaX) > Math.abs(L.deltaY) ||
|
|
3055
|
+
return le(() => {
|
|
3056
|
+
const d = i.current;
|
|
3057
|
+
if (!d) return;
|
|
3058
|
+
const v = (L) => {
|
|
3059
|
+
Math.abs(L.deltaX) > Math.abs(L.deltaY) || d.scrollWidth > d.clientWidth && (L.preventDefault(), d.scrollBy({ left: L.deltaY, behavior: "auto" }));
|
|
3062
3060
|
};
|
|
3063
|
-
return
|
|
3064
|
-
}, []),
|
|
3065
|
-
|
|
3066
|
-
const
|
|
3067
|
-
if (
|
|
3068
|
-
return
|
|
3069
|
-
|
|
3061
|
+
return d.addEventListener("wheel", v, { passive: !1 }), () => d.removeEventListener("wheel", v);
|
|
3062
|
+
}, []), le(() => {
|
|
3063
|
+
x();
|
|
3064
|
+
const d = i.current;
|
|
3065
|
+
if (d)
|
|
3066
|
+
return d.addEventListener("scroll", x, { passive: !0 }), window.addEventListener("resize", x), () => {
|
|
3067
|
+
d.removeEventListener("scroll", x), window.removeEventListener("resize", x);
|
|
3070
3068
|
};
|
|
3071
3069
|
}, []), /* @__PURE__ */ n.jsxs("div", { ref: h, className: $(ne.wrapper, a), children: [
|
|
3072
3070
|
g && /* @__PURE__ */ n.jsx(
|
|
@@ -3078,7 +3076,7 @@ const Wt = Object.assign(ks, {
|
|
|
3078
3076
|
}
|
|
3079
3077
|
}
|
|
3080
3078
|
),
|
|
3081
|
-
|
|
3079
|
+
y && /* @__PURE__ */ n.jsx(
|
|
3082
3080
|
"div",
|
|
3083
3081
|
{
|
|
3084
3082
|
className: $(ne.mask, ne.maskRight, c && ne.visible),
|
|
@@ -3095,37 +3093,37 @@ const Wt = Object.assign(ks, {
|
|
|
3095
3093
|
tabIndex: -1,
|
|
3096
3094
|
"aria-hidden": "true",
|
|
3097
3095
|
className: $(ne.control, ne.left, ne[o]),
|
|
3098
|
-
onClick: () =>
|
|
3096
|
+
onClick: () => w("left"),
|
|
3099
3097
|
children: /* @__PURE__ */ n.jsx(C, { direction: "left" })
|
|
3100
3098
|
}
|
|
3101
3099
|
),
|
|
3102
|
-
|
|
3100
|
+
y && /* @__PURE__ */ n.jsx(
|
|
3103
3101
|
"button",
|
|
3104
3102
|
{
|
|
3105
3103
|
type: "button",
|
|
3106
3104
|
tabIndex: -1,
|
|
3107
3105
|
"aria-hidden": "true",
|
|
3108
3106
|
className: $(ne.control, ne.right, ne[o]),
|
|
3109
|
-
onClick: () =>
|
|
3107
|
+
onClick: () => w("right"),
|
|
3110
3108
|
children: /* @__PURE__ */ n.jsx(C, { direction: "right" })
|
|
3111
3109
|
}
|
|
3112
3110
|
)
|
|
3113
3111
|
] });
|
|
3114
|
-
}, Oi = "_tabBar_1ndpm_82", Ai = "_primary_1ndpm_88", Pi = "_secondary_1ndpm_93", Bi = "_tab_1ndpm_82",
|
|
3112
|
+
}, Oi = "_tabBar_1ndpm_82", Ai = "_primary_1ndpm_88", Pi = "_secondary_1ndpm_93", Bi = "_tab_1ndpm_82", zi = "_md_1ndpm_125", Di = "_sm_1ndpm_129", Wi = "_xs_1ndpm_133", Fi = "_disabled_1ndpm_137", qi = "_selected_1ndpm_143", Hi = "_tabLabel_1ndpm_222", Vi = "_tabPrefix_1ndpm_234", Xi = "_tabPostfix_1ndpm_270", J = {
|
|
3115
3113
|
tabBar: Oi,
|
|
3116
3114
|
primary: Ai,
|
|
3117
3115
|
secondary: Pi,
|
|
3118
3116
|
tab: Bi,
|
|
3119
|
-
md:
|
|
3120
|
-
sm:
|
|
3121
|
-
xs:
|
|
3122
|
-
disabled:
|
|
3123
|
-
selected:
|
|
3117
|
+
md: zi,
|
|
3118
|
+
sm: Di,
|
|
3119
|
+
xs: Wi,
|
|
3120
|
+
disabled: Fi,
|
|
3121
|
+
selected: qi,
|
|
3124
3122
|
tabLabel: Hi,
|
|
3125
3123
|
tabPrefix: Vi,
|
|
3126
3124
|
tabPostfix: Xi
|
|
3127
|
-
}, Yi = "md", Zi = !1, Gi = 8, Ui = "top-right-inside",
|
|
3128
|
-
const e = Zt(
|
|
3125
|
+
}, Yi = "md", Zi = !1, Gi = 8, Ui = "top-right-inside", tr = Yt(null), rr = () => {
|
|
3126
|
+
const e = Zt(tr);
|
|
3129
3127
|
if (!e) throw new Error("useTabs должен использоваться внутри TabsProvider");
|
|
3130
3128
|
return e;
|
|
3131
3129
|
}, Ji = ({
|
|
@@ -3134,10 +3132,10 @@ const Wt = Object.assign(ks, {
|
|
|
3134
3132
|
activeTab: a,
|
|
3135
3133
|
onChange: o
|
|
3136
3134
|
}) => {
|
|
3137
|
-
const [i, s] =
|
|
3138
|
-
l || s(
|
|
3135
|
+
const [i, s] = _e(r), l = a !== void 0, c = l ? a : i, _ = (f) => {
|
|
3136
|
+
l || s(f), o && o(f);
|
|
3139
3137
|
};
|
|
3140
|
-
return /* @__PURE__ */ n.jsx(
|
|
3138
|
+
return /* @__PURE__ */ n.jsx(tr.Provider, { value: { activeTab: c, setTab: _ }, children: e });
|
|
3141
3139
|
}, Ki = ({
|
|
3142
3140
|
mode: e,
|
|
3143
3141
|
item: r,
|
|
@@ -3150,70 +3148,70 @@ const Wt = Object.assign(ks, {
|
|
|
3150
3148
|
}) => {
|
|
3151
3149
|
const {
|
|
3152
3150
|
value: _,
|
|
3153
|
-
label:
|
|
3154
|
-
prefix:
|
|
3151
|
+
label: f,
|
|
3152
|
+
prefix: p,
|
|
3155
3153
|
prefixWrapperProps: h = {},
|
|
3156
3154
|
postfix: m,
|
|
3157
3155
|
postfixWrapperProps: g = {}
|
|
3158
|
-
} = r, { className:
|
|
3156
|
+
} = r, { className: y, ...C } = h, { className: x, ...w } = g, d = {
|
|
3159
3157
|
primary: ie["typography-label-3-medium"],
|
|
3160
3158
|
secondary: ie["typography-label-3-regular"],
|
|
3161
3159
|
prefix: ie["typography-label-3-medium"],
|
|
3162
3160
|
postfix: ie["typography-label-3-medium"]
|
|
3163
|
-
},
|
|
3161
|
+
}, v = {
|
|
3164
3162
|
size: Gi,
|
|
3165
3163
|
position: Ui,
|
|
3166
3164
|
...i
|
|
3167
3165
|
}, L = $(J.tab, J[e], J[s], {
|
|
3168
3166
|
[J.selected]: a,
|
|
3169
3167
|
[J.disabled]: l
|
|
3170
|
-
}),
|
|
3168
|
+
}), T = $(
|
|
3171
3169
|
J.tabPrefix,
|
|
3172
|
-
|
|
3170
|
+
y,
|
|
3173
3171
|
J[e],
|
|
3174
|
-
|
|
3172
|
+
d.prefix,
|
|
3175
3173
|
{
|
|
3176
3174
|
[J.selected]: a,
|
|
3177
3175
|
[J.disabled]: l
|
|
3178
3176
|
}
|
|
3179
|
-
),
|
|
3177
|
+
), j = $(
|
|
3180
3178
|
J.tabPostfix,
|
|
3181
|
-
|
|
3179
|
+
x,
|
|
3182
3180
|
J[e],
|
|
3183
|
-
|
|
3181
|
+
d.postfix,
|
|
3184
3182
|
{
|
|
3185
3183
|
[J.selected]: a,
|
|
3186
3184
|
[J.disabled]: l
|
|
3187
3185
|
}
|
|
3188
|
-
),
|
|
3189
|
-
a || l || (c(_),
|
|
3186
|
+
), R = $(J.tabLabel, J[e], d[e]), E = (W) => {
|
|
3187
|
+
a || l || (c(_), W.currentTarget.scrollIntoView({ behavior: "smooth", inline: "center", block: "nearest" }));
|
|
3190
3188
|
}, A = /* @__PURE__ */ n.jsxs(
|
|
3191
3189
|
"button",
|
|
3192
3190
|
{
|
|
3193
3191
|
className: L,
|
|
3194
3192
|
role: "tab",
|
|
3195
|
-
"aria-label":
|
|
3193
|
+
"aria-label": f,
|
|
3196
3194
|
"aria-selected": a,
|
|
3197
3195
|
"aria-disabled": l,
|
|
3198
3196
|
"aria-controls": `tab-panel-${_}`,
|
|
3199
3197
|
"data-testid": `tab-item-${_}`,
|
|
3200
|
-
onClick:
|
|
3198
|
+
onClick: E,
|
|
3201
3199
|
children: [
|
|
3202
|
-
|
|
3200
|
+
p && /* @__PURE__ */ n.jsx(
|
|
3203
3201
|
"span",
|
|
3204
3202
|
{
|
|
3205
|
-
className:
|
|
3203
|
+
className: T,
|
|
3206
3204
|
...C,
|
|
3207
3205
|
"data-testid": `tab-prefix-${_}`,
|
|
3208
|
-
children:
|
|
3206
|
+
children: p
|
|
3209
3207
|
}
|
|
3210
3208
|
),
|
|
3211
|
-
/* @__PURE__ */ n.jsx("span", { className:
|
|
3209
|
+
/* @__PURE__ */ n.jsx("span", { className: R, "data-testid": `tab-label-${_}`, children: f }),
|
|
3212
3210
|
m && /* @__PURE__ */ n.jsx(
|
|
3213
3211
|
"span",
|
|
3214
3212
|
{
|
|
3215
|
-
className:
|
|
3216
|
-
...
|
|
3213
|
+
className: j,
|
|
3214
|
+
...w,
|
|
3217
3215
|
"data-testid": `tab-postfix-${_}`,
|
|
3218
3216
|
children: m
|
|
3219
3217
|
}
|
|
@@ -3221,14 +3219,14 @@ const Wt = Object.assign(ks, {
|
|
|
3221
3219
|
]
|
|
3222
3220
|
}
|
|
3223
3221
|
);
|
|
3224
|
-
return o ? /* @__PURE__ */ n.jsx(Qa, { ...
|
|
3222
|
+
return o ? /* @__PURE__ */ n.jsx(Qa, { ...v, "data-testid": `tab-badge-${_}`, children: A }) : A;
|
|
3225
3223
|
}, Qi = ({
|
|
3226
3224
|
mode: e,
|
|
3227
3225
|
items: r,
|
|
3228
3226
|
size: a = Yi,
|
|
3229
3227
|
isAllItemsDisabled: o = Zi
|
|
3230
3228
|
}) => {
|
|
3231
|
-
const { activeTab: i, setTab: s } =
|
|
3229
|
+
const { activeTab: i, setTab: s } = rr(), l = Ha();
|
|
3232
3230
|
return /* @__PURE__ */ n.jsx(Mi, { size: a, withControls: l, children: /* @__PURE__ */ n.jsx(
|
|
3233
3231
|
"div",
|
|
3234
3232
|
{
|
|
@@ -3262,9 +3260,9 @@ const Wt = Object.assign(ks, {
|
|
|
3262
3260
|
children: r
|
|
3263
3261
|
}
|
|
3264
3262
|
), tl = ({ children: e, ...r }) => {
|
|
3265
|
-
const { activeTab: a } =
|
|
3263
|
+
const { activeTab: a } = rr(), o = Array.isArray(e) ? e : [e], i = (s, l) => _t.isValidElement(s) && typeof s.props == "object" && s.props !== null && l in s.props;
|
|
3266
3264
|
return /* @__PURE__ */ n.jsx("div", { "data-testid": "tab-content", ...r, children: o.map((s) => i(s, "tabValue") && String(s.props.tabValue) === a ? s : null) });
|
|
3267
|
-
},
|
|
3265
|
+
}, Zl = {
|
|
3268
3266
|
Provider: Ji,
|
|
3269
3267
|
Content: tl,
|
|
3270
3268
|
Panel: el,
|
|
@@ -3469,28 +3467,28 @@ const Wt = Object.assign(ks, {
|
|
|
3469
3467
|
onClose: l,
|
|
3470
3468
|
buttons: c,
|
|
3471
3469
|
buttonProps: _,
|
|
3472
|
-
showClose:
|
|
3470
|
+
showClose: f
|
|
3473
3471
|
}) => {
|
|
3474
|
-
const
|
|
3472
|
+
const p = ["neutral", "accent"].includes(o) ? "contrast" : "primary", h = i === "m", m = !!(r && h), g = !!(a && h), y = c && !!c.length, C = !!(f && h) || !f && h && !y, x = i === "xs" ? 4 : 3;
|
|
3475
3473
|
return /* @__PURE__ */ n.jsxs("div", { className: se.content, children: [
|
|
3476
3474
|
g && /* @__PURE__ */ n.jsx("div", { className: $(se.mediaWrapper, s.mediaWrapper), children: a }),
|
|
3477
3475
|
/* @__PURE__ */ n.jsxs("div", { className: s.textWrapper, children: [
|
|
3478
3476
|
m && /* @__PURE__ */ n.jsx(
|
|
3479
|
-
|
|
3477
|
+
Dt.Subtitle,
|
|
3480
3478
|
{
|
|
3481
3479
|
className: $(se.typography, se.title, s.typography),
|
|
3482
3480
|
size: 1,
|
|
3483
3481
|
as: "h3",
|
|
3484
|
-
typographyStyle:
|
|
3482
|
+
typographyStyle: p,
|
|
3485
3483
|
children: r
|
|
3486
3484
|
}
|
|
3487
3485
|
),
|
|
3488
3486
|
/* @__PURE__ */ n.jsx(
|
|
3489
|
-
|
|
3487
|
+
Dt.Label,
|
|
3490
3488
|
{
|
|
3491
3489
|
className: $(se.typography, se.text, s.typography),
|
|
3492
|
-
typographyStyle:
|
|
3493
|
-
size:
|
|
3490
|
+
typographyStyle: p,
|
|
3491
|
+
size: x,
|
|
3494
3492
|
children: e
|
|
3495
3493
|
}
|
|
3496
3494
|
)
|
|
@@ -3508,19 +3506,19 @@ const Wt = Object.assign(ks, {
|
|
|
3508
3506
|
children: /* @__PURE__ */ n.jsx(ml, {})
|
|
3509
3507
|
}
|
|
3510
3508
|
),
|
|
3511
|
-
h &&
|
|
3509
|
+
h && y && /* @__PURE__ */ n.jsx("div", { className: se.buttonStack, children: c.map((w, d) => {
|
|
3512
3510
|
const L = {
|
|
3513
|
-
...Cl(
|
|
3511
|
+
...Cl(d, c.length, o),
|
|
3514
3512
|
..._,
|
|
3515
|
-
...
|
|
3516
|
-
}, { closeOnClick:
|
|
3513
|
+
...w
|
|
3514
|
+
}, { closeOnClick: T, ...j } = L, R = (E) => {
|
|
3517
3515
|
var A;
|
|
3518
|
-
(A =
|
|
3516
|
+
(A = j.onClick) == null || A.call(j, E), T && (l == null || l());
|
|
3519
3517
|
};
|
|
3520
|
-
return /* @__PURE__ */ n.jsx(ga, { ...
|
|
3518
|
+
return /* @__PURE__ */ n.jsx(ga, { ...j, onClick: R }, d);
|
|
3521
3519
|
}) })
|
|
3522
3520
|
] });
|
|
3523
|
-
},
|
|
3521
|
+
}, Gl = ({
|
|
3524
3522
|
customContent: e,
|
|
3525
3523
|
children: r,
|
|
3526
3524
|
placement: a = "top",
|
|
@@ -3530,30 +3528,30 @@ const Wt = Object.assign(ks, {
|
|
|
3530
3528
|
showArrow: l = !0,
|
|
3531
3529
|
showClose: c = !0,
|
|
3532
3530
|
trigger: _ = "hover",
|
|
3533
|
-
variant:
|
|
3534
|
-
size:
|
|
3531
|
+
variant: f = "neutral",
|
|
3532
|
+
size: p = "s",
|
|
3535
3533
|
text: h,
|
|
3536
3534
|
title: m,
|
|
3537
3535
|
media: g,
|
|
3538
|
-
buttons:
|
|
3536
|
+
buttons: y,
|
|
3539
3537
|
buttonProps: C,
|
|
3540
|
-
onClose:
|
|
3541
|
-
...
|
|
3538
|
+
onClose: x,
|
|
3539
|
+
...w
|
|
3542
3540
|
}) => {
|
|
3543
|
-
const [
|
|
3544
|
-
|
|
3545
|
-
},
|
|
3541
|
+
const [d, v] = _e(!1), [L, T] = _e(!1), j = p === "m" ? xl : vl, R = () => {
|
|
3542
|
+
v(!1), x == null || x();
|
|
3543
|
+
}, E = e || (p === "m" ? /* @__PURE__ */ n.jsx(
|
|
3546
3544
|
Ht,
|
|
3547
3545
|
{
|
|
3548
3546
|
classNames: o,
|
|
3549
3547
|
text: h,
|
|
3550
|
-
variant:
|
|
3551
|
-
size:
|
|
3552
|
-
onClose:
|
|
3548
|
+
variant: f,
|
|
3549
|
+
size: p,
|
|
3550
|
+
onClose: R,
|
|
3553
3551
|
title: m,
|
|
3554
3552
|
media: g,
|
|
3555
3553
|
showClose: c,
|
|
3556
|
-
buttons:
|
|
3554
|
+
buttons: y,
|
|
3557
3555
|
buttonProps: C
|
|
3558
3556
|
}
|
|
3559
3557
|
) : /* @__PURE__ */ n.jsx(
|
|
@@ -3561,59 +3559,58 @@ const Wt = Object.assign(ks, {
|
|
|
3561
3559
|
{
|
|
3562
3560
|
classNames: o,
|
|
3563
3561
|
text: h,
|
|
3564
|
-
variant:
|
|
3565
|
-
size:
|
|
3566
|
-
onClose:
|
|
3562
|
+
variant: f,
|
|
3563
|
+
size: p,
|
|
3564
|
+
onClose: R
|
|
3567
3565
|
}
|
|
3568
3566
|
));
|
|
3569
|
-
return
|
|
3570
|
-
if (
|
|
3571
|
-
const A = requestAnimationFrame(() =>
|
|
3567
|
+
return le(() => {
|
|
3568
|
+
if (d) {
|
|
3569
|
+
const A = requestAnimationFrame(() => T(!0));
|
|
3572
3570
|
return () => cancelAnimationFrame(A);
|
|
3573
3571
|
}
|
|
3574
|
-
|
|
3575
|
-
}, [
|
|
3572
|
+
T(!1);
|
|
3573
|
+
}, [d]), /* @__PURE__ */ n.jsx(
|
|
3576
3574
|
$r,
|
|
3577
3575
|
{
|
|
3578
|
-
visible:
|
|
3579
|
-
onVisibleChange:
|
|
3576
|
+
visible: d,
|
|
3577
|
+
onVisibleChange: v,
|
|
3580
3578
|
classNames: {
|
|
3581
|
-
root: $(se.root, se[
|
|
3582
|
-
...
|
|
3579
|
+
root: $(se.root, se[f], se[p], L && se.open),
|
|
3580
|
+
...w.classNames
|
|
3583
3581
|
},
|
|
3584
3582
|
placement: a,
|
|
3585
|
-
overlay: () =>
|
|
3583
|
+
overlay: () => E,
|
|
3586
3584
|
trigger: _,
|
|
3587
3585
|
mouseEnterDelay: i,
|
|
3588
3586
|
mouseLeaveDelay: s,
|
|
3589
3587
|
motion: { motionName: "tooltipMotion" },
|
|
3590
|
-
builtinPlacements:
|
|
3588
|
+
builtinPlacements: j,
|
|
3591
3589
|
showArrow: l ? {
|
|
3592
3590
|
content: /* @__PURE__ */ n.jsx(yl, {}),
|
|
3593
|
-
className: `tooltipArrow tooltipArrow-${
|
|
3591
|
+
className: `tooltipArrow tooltipArrow-${p}`
|
|
3594
3592
|
} : !1,
|
|
3595
3593
|
destroyTooltipOnHide: !0,
|
|
3596
|
-
...
|
|
3594
|
+
...w,
|
|
3597
3595
|
children: r
|
|
3598
3596
|
}
|
|
3599
3597
|
);
|
|
3600
|
-
}, Sl = "
|
|
3598
|
+
}, Sl = "_segmentedControl_1yvz7_5", Ll = "_segment_1yvz7_5", jl = "_activeSegmentIndicator_1yvz7_51", kl = "_stretched_1yvz7_82", $l = "_s_1yvz7_5", El = "_icon_1yvz7_90", Tl = "_label_1yvz7_94", Rl = "_m_1yvz7_98", Nl = "_l_1yvz7_94", Ae = {
|
|
3601
3599
|
segmentedControl: Sl,
|
|
3602
3600
|
segment: Ll,
|
|
3603
3601
|
activeSegmentIndicator: jl,
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
m: Il,
|
|
3611
|
-
l: Ml
|
|
3602
|
+
stretched: kl,
|
|
3603
|
+
s: $l,
|
|
3604
|
+
icon: El,
|
|
3605
|
+
label: Tl,
|
|
3606
|
+
m: Rl,
|
|
3607
|
+
l: Nl
|
|
3612
3608
|
}, Vt = {
|
|
3613
3609
|
s: ie["typography-label-3-regular"],
|
|
3614
3610
|
m: ie["typography-label-2-regular"],
|
|
3615
3611
|
l: ie["typography-label-2-regular"]
|
|
3616
|
-
},
|
|
3612
|
+
}, Ul = (e) => {
|
|
3613
|
+
var d;
|
|
3617
3614
|
const {
|
|
3618
3615
|
className: r,
|
|
3619
3616
|
defaultValue: a,
|
|
@@ -3621,83 +3618,76 @@ const Wt = Object.assign(ks, {
|
|
|
3621
3618
|
size: i = "m",
|
|
3622
3619
|
segments: s,
|
|
3623
3620
|
stretched: l,
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
}, [
|
|
3632
|
-
|
|
3633
|
-
}, [m, s, i, l, _]);
|
|
3634
|
-
const v = () => {
|
|
3621
|
+
mode: c = "label",
|
|
3622
|
+
onChange: _
|
|
3623
|
+
} = e, f = pt(), [p, h] = _e(a || s[0].value), [m, g] = _e({ width: 0, left: 0 }), y = qe(null);
|
|
3624
|
+
le(() => {
|
|
3625
|
+
o && h(o);
|
|
3626
|
+
}, [o]), le(() => {
|
|
3627
|
+
C();
|
|
3628
|
+
}, [p, s, i, l, c]);
|
|
3629
|
+
const C = () => {
|
|
3635
3630
|
if (!(y != null && y.current)) return;
|
|
3636
|
-
const
|
|
3631
|
+
const v = y.current.querySelector(
|
|
3637
3632
|
'[data-is-active-segment="true"]'
|
|
3638
3633
|
);
|
|
3639
|
-
|
|
3640
|
-
width:
|
|
3641
|
-
left:
|
|
3642
|
-
height: w.offsetHeight
|
|
3634
|
+
v && g({
|
|
3635
|
+
width: v.offsetWidth,
|
|
3636
|
+
left: v.offsetLeft
|
|
3643
3637
|
});
|
|
3644
|
-
},
|
|
3645
|
-
|
|
3638
|
+
}, x = (d = s.find((v) => v.value === p)) == null ? void 0 : d.label, w = (v) => {
|
|
3639
|
+
h(v), _ == null || _(v);
|
|
3646
3640
|
};
|
|
3647
3641
|
return (s == null ? void 0 : s.length) === 0 ? null : /* @__PURE__ */ n.jsxs(
|
|
3648
3642
|
"div",
|
|
3649
3643
|
{
|
|
3650
3644
|
className: $(
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
|
|
3645
|
+
Ae.segmentedControl,
|
|
3646
|
+
Ae[i],
|
|
3647
|
+
Ae[c],
|
|
3654
3648
|
{
|
|
3655
|
-
[
|
|
3656
|
-
[Se.disabled]: c
|
|
3649
|
+
[Ae.stretched]: l
|
|
3657
3650
|
},
|
|
3658
3651
|
r
|
|
3659
3652
|
),
|
|
3660
3653
|
"data-testid": "segmented-control-container",
|
|
3661
3654
|
ref: y,
|
|
3662
|
-
...f,
|
|
3663
3655
|
children: [
|
|
3664
|
-
s == null ? void 0 : s.map(({ label:
|
|
3665
|
-
const
|
|
3656
|
+
s == null ? void 0 : s.map(({ label: v, value: L }, T) => {
|
|
3657
|
+
const j = () => w(L);
|
|
3666
3658
|
return /* @__PURE__ */ n.jsxs(Pe, { children: [
|
|
3667
3659
|
/* @__PURE__ */ n.jsx(
|
|
3668
3660
|
"input",
|
|
3669
3661
|
{
|
|
3670
|
-
id:
|
|
3662
|
+
id: f + JSON.stringify(L),
|
|
3671
3663
|
value: JSON.stringify(L),
|
|
3672
3664
|
type: "radio",
|
|
3673
|
-
checked:
|
|
3674
|
-
|
|
3665
|
+
checked: p === L,
|
|
3666
|
+
onClick: j
|
|
3675
3667
|
}
|
|
3676
3668
|
),
|
|
3677
3669
|
/* @__PURE__ */ n.jsx(
|
|
3678
3670
|
"label",
|
|
3679
3671
|
{
|
|
3680
|
-
"data-is-active-segment":
|
|
3681
|
-
className: $(
|
|
3682
|
-
htmlFor:
|
|
3672
|
+
"data-is-active-segment": p === L,
|
|
3673
|
+
className: $(Ae.segment, Vt[i]),
|
|
3674
|
+
htmlFor: f + JSON.stringify(L),
|
|
3683
3675
|
"data-testid": "segmented-control-segment",
|
|
3684
|
-
|
|
3685
|
-
...N,
|
|
3686
|
-
children: w
|
|
3676
|
+
children: v
|
|
3687
3677
|
}
|
|
3688
3678
|
)
|
|
3689
|
-
] }, Je(JSON.stringify(L)) +
|
|
3679
|
+
] }, Je(JSON.stringify(L)) + T);
|
|
3690
3680
|
}),
|
|
3691
3681
|
/* @__PURE__ */ n.jsx(
|
|
3692
3682
|
"div",
|
|
3693
3683
|
{
|
|
3694
|
-
className: $(
|
|
3695
|
-
"data-testid": "segmented-control-
|
|
3684
|
+
className: $(Ae.activeSegmentIndicator, Vt[i]),
|
|
3685
|
+
"data-testid": "segmented-control-active-segment",
|
|
3696
3686
|
style: {
|
|
3697
|
-
width:
|
|
3698
|
-
left:
|
|
3699
|
-
|
|
3700
|
-
|
|
3687
|
+
width: m.width,
|
|
3688
|
+
left: m.left
|
|
3689
|
+
},
|
|
3690
|
+
children: x
|
|
3701
3691
|
}
|
|
3702
3692
|
)
|
|
3703
3693
|
]
|
|
@@ -3705,25 +3695,25 @@ const Wt = Object.assign(ks, {
|
|
|
3705
3695
|
);
|
|
3706
3696
|
};
|
|
3707
3697
|
export {
|
|
3708
|
-
|
|
3698
|
+
Al as Avatar,
|
|
3709
3699
|
Qa as Badge,
|
|
3710
3700
|
ga as Button,
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3701
|
+
Fl as Checkbox,
|
|
3702
|
+
zl as ConfigProvider,
|
|
3703
|
+
Vl as Helper,
|
|
3704
|
+
Pl as Image,
|
|
3705
|
+
Yl as List,
|
|
3716
3706
|
bo as Loader,
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
|
|
3707
|
+
Xl as Radio,
|
|
3708
|
+
Ul as SegmentedControl,
|
|
3709
|
+
Zl as Tabs,
|
|
3710
|
+
Wl as Tag,
|
|
3711
|
+
Hl as TextArea,
|
|
3712
|
+
ql as TextInput,
|
|
3713
|
+
Gl as Tooltip,
|
|
3714
|
+
Dt as Typography,
|
|
3725
3715
|
mo as enUS,
|
|
3726
|
-
|
|
3716
|
+
Dl as ruRU,
|
|
3727
3717
|
yo as useConfig,
|
|
3728
|
-
|
|
3718
|
+
Bl as useLocale
|
|
3729
3719
|
};
|