skillgrid 0.0.24-dev-38682-image.1170743 → 0.0.25-dev-38682-image.1172030
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/InputBase/Input.type.d.ts +4 -0
- package/dist/components/InputBase/InputBase.type.d.ts +7 -3
- package/dist/components/TextArea/TextArea.type.d.ts +6 -2
- package/dist/components/TextInput/TextInput.type.d.ts +6 -2
- package/dist/index.cjs.js +11 -11
- package/dist/index.css +1 -1
- package/dist/index.es.js +855 -828
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as Et from "react";
|
|
2
|
-
import Lt, { forwardRef as
|
|
3
|
-
import { clsx as
|
|
2
|
+
import Lt, { forwardRef as te, useState as De, useEffect as Ee, useRef as We, useCallback as Se, Fragment as Mt, createContext as ra, useContext as sa, useLayoutEffect as na, useImperativeHandle as oa, useId as $t } from "react";
|
|
3
|
+
import { clsx as B } from "clsx";
|
|
4
4
|
import './index.css';function ia(t) {
|
|
5
5
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
6
6
|
}
|
|
7
|
-
var
|
|
7
|
+
var Be = { exports: {} }, Ie = {};
|
|
8
8
|
/**
|
|
9
9
|
* @license React
|
|
10
10
|
* react-jsx-runtime.production.min.js
|
|
@@ -16,19 +16,19 @@ var Fe = { exports: {} }, Re = {};
|
|
|
16
16
|
*/
|
|
17
17
|
var ft;
|
|
18
18
|
function la() {
|
|
19
|
-
if (ft) return
|
|
19
|
+
if (ft) return Ie;
|
|
20
20
|
ft = 1;
|
|
21
21
|
var t = Lt, r = Symbol.for("react.element"), a = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, i = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, n = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
22
22
|
function c(p, d, f) {
|
|
23
|
-
var _,
|
|
24
|
-
f !== void 0 && (
|
|
25
|
-
for (_ in d) s.call(d, _) && !n.hasOwnProperty(_) && (
|
|
26
|
-
if (p && p.defaultProps) for (_ in d = p.defaultProps, d)
|
|
27
|
-
return { $$typeof: r, type: p, key:
|
|
23
|
+
var _, h = {}, b = null, y = null;
|
|
24
|
+
f !== void 0 && (b = "" + f), d.key !== void 0 && (b = "" + d.key), d.ref !== void 0 && (y = d.ref);
|
|
25
|
+
for (_ in d) s.call(d, _) && !n.hasOwnProperty(_) && (h[_] = d[_]);
|
|
26
|
+
if (p && p.defaultProps) for (_ in d = p.defaultProps, d) h[_] === void 0 && (h[_] = d[_]);
|
|
27
|
+
return { $$typeof: r, type: p, key: b, ref: y, props: h, _owner: i.current };
|
|
28
28
|
}
|
|
29
|
-
return
|
|
29
|
+
return Ie.Fragment = a, Ie.jsx = c, Ie.jsxs = c, Ie;
|
|
30
30
|
}
|
|
31
|
-
var
|
|
31
|
+
var Re = {};
|
|
32
32
|
/**
|
|
33
33
|
* @license React
|
|
34
34
|
* react-jsx-runtime.development.js
|
|
@@ -41,54 +41,54 @@ var ke = {};
|
|
|
41
41
|
var gt;
|
|
42
42
|
function ca() {
|
|
43
43
|
return gt || (gt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
44
|
-
var t = Lt, r = Symbol.for("react.element"), a = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), n = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), p = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), _ = Symbol.for("react.suspense_list"),
|
|
45
|
-
function
|
|
44
|
+
var t = Lt, r = Symbol.for("react.element"), a = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), n = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), p = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), _ = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), y = Symbol.for("react.offscreen"), v = Symbol.iterator, E = "@@iterator";
|
|
45
|
+
function w(e) {
|
|
46
46
|
if (e === null || typeof e != "object")
|
|
47
47
|
return null;
|
|
48
|
-
var l =
|
|
48
|
+
var l = v && e[v] || e[E];
|
|
49
49
|
return typeof l == "function" ? l : null;
|
|
50
50
|
}
|
|
51
|
-
var
|
|
52
|
-
function
|
|
51
|
+
var C = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
52
|
+
function g(e) {
|
|
53
53
|
{
|
|
54
|
-
for (var l = arguments.length, u = new Array(l > 1 ? l - 1 : 0),
|
|
55
|
-
u[
|
|
54
|
+
for (var l = arguments.length, u = new Array(l > 1 ? l - 1 : 0), x = 1; x < l; x++)
|
|
55
|
+
u[x - 1] = arguments[x];
|
|
56
56
|
R("error", e, u);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
function R(e, l, u) {
|
|
60
60
|
{
|
|
61
|
-
var
|
|
62
|
-
|
|
63
|
-
var
|
|
61
|
+
var x = C.ReactDebugCurrentFrame, I = x.getStackAddendum();
|
|
62
|
+
I !== "" && (l += "%s", u = u.concat([I]));
|
|
63
|
+
var T = u.map(function(L) {
|
|
64
64
|
return String(L);
|
|
65
65
|
});
|
|
66
|
-
|
|
66
|
+
T.unshift("Warning: " + l), Function.prototype.apply.call(console[e], console, T);
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
-
var D = !1, k = !1,
|
|
70
|
-
|
|
71
|
-
function
|
|
72
|
-
return !!(typeof e == "string" || typeof e == "function" || e === s || e === n ||
|
|
69
|
+
var D = !1, k = !1, $ = !1, A = !1, N = !1, U;
|
|
70
|
+
U = Symbol.for("react.module.reference");
|
|
71
|
+
function q(e) {
|
|
72
|
+
return !!(typeof e == "string" || typeof e == "function" || e === s || e === n || N || e === i || e === f || e === _ || A || e === y || D || k || $ || typeof e == "object" && e !== null && (e.$$typeof === b || e.$$typeof === h || e.$$typeof === c || e.$$typeof === p || e.$$typeof === d || // This needs to include all possible module reference object
|
|
73
73
|
// types supported by any Flight configuration anywhere since
|
|
74
74
|
// we don't know which Flight build this will end up being used
|
|
75
75
|
// with.
|
|
76
|
-
e.$$typeof ===
|
|
76
|
+
e.$$typeof === U || e.getModuleId !== void 0));
|
|
77
77
|
}
|
|
78
|
-
function
|
|
79
|
-
var
|
|
80
|
-
if (
|
|
81
|
-
return
|
|
82
|
-
var
|
|
83
|
-
return
|
|
78
|
+
function W(e, l, u) {
|
|
79
|
+
var x = e.displayName;
|
|
80
|
+
if (x)
|
|
81
|
+
return x;
|
|
82
|
+
var I = l.displayName || l.name || "";
|
|
83
|
+
return I !== "" ? u + "(" + I + ")" : u;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function O(e) {
|
|
86
86
|
return e.displayName || "Context";
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function m(e) {
|
|
89
89
|
if (e == null)
|
|
90
90
|
return null;
|
|
91
|
-
if (typeof e.tag == "number" &&
|
|
91
|
+
if (typeof e.tag == "number" && g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
92
92
|
return e.displayName || e.name || null;
|
|
93
93
|
if (typeof e == "string")
|
|
94
94
|
return e;
|
|
@@ -110,19 +110,19 @@ function ca() {
|
|
|
110
110
|
switch (e.$$typeof) {
|
|
111
111
|
case p:
|
|
112
112
|
var l = e;
|
|
113
|
-
return
|
|
113
|
+
return O(l) + ".Consumer";
|
|
114
114
|
case c:
|
|
115
115
|
var u = e;
|
|
116
|
-
return
|
|
116
|
+
return O(u._context) + ".Provider";
|
|
117
117
|
case d:
|
|
118
|
-
return
|
|
119
|
-
case
|
|
120
|
-
var
|
|
121
|
-
return
|
|
122
|
-
case
|
|
123
|
-
var
|
|
118
|
+
return W(e, e.render, "ForwardRef");
|
|
119
|
+
case h:
|
|
120
|
+
var x = e.displayName || null;
|
|
121
|
+
return x !== null ? x : m(e.type) || "Memo";
|
|
122
|
+
case b: {
|
|
123
|
+
var I = e, T = I._payload, L = I._init;
|
|
124
124
|
try {
|
|
125
|
-
return
|
|
125
|
+
return m(L(T));
|
|
126
126
|
} catch {
|
|
127
127
|
return null;
|
|
128
128
|
}
|
|
@@ -130,18 +130,18 @@ function ca() {
|
|
|
130
130
|
}
|
|
131
131
|
return null;
|
|
132
132
|
}
|
|
133
|
-
var
|
|
134
|
-
function
|
|
133
|
+
var j = Object.assign, F = 0, G, H, Q, ae, J, re, se;
|
|
134
|
+
function de() {
|
|
135
135
|
}
|
|
136
|
-
|
|
137
|
-
function
|
|
136
|
+
de.__reactDisabledLog = !0;
|
|
137
|
+
function ve() {
|
|
138
138
|
{
|
|
139
139
|
if (F === 0) {
|
|
140
|
-
|
|
140
|
+
G = console.log, H = console.info, Q = console.warn, ae = console.error, J = console.group, re = console.groupCollapsed, se = console.groupEnd;
|
|
141
141
|
var e = {
|
|
142
142
|
configurable: !0,
|
|
143
143
|
enumerable: !0,
|
|
144
|
-
value:
|
|
144
|
+
value: de,
|
|
145
145
|
writable: !0
|
|
146
146
|
};
|
|
147
147
|
Object.defineProperties(console, {
|
|
@@ -157,7 +157,7 @@ function ca() {
|
|
|
157
157
|
F++;
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function ie() {
|
|
161
161
|
{
|
|
162
162
|
if (F--, F === 0) {
|
|
163
163
|
var e = {
|
|
@@ -166,65 +166,65 @@ function ca() {
|
|
|
166
166
|
writable: !0
|
|
167
167
|
};
|
|
168
168
|
Object.defineProperties(console, {
|
|
169
|
-
log:
|
|
170
|
-
value: H
|
|
171
|
-
}),
|
|
172
|
-
info: $({}, e, {
|
|
169
|
+
log: j({}, e, {
|
|
173
170
|
value: G
|
|
174
171
|
}),
|
|
175
|
-
|
|
176
|
-
value:
|
|
172
|
+
info: j({}, e, {
|
|
173
|
+
value: H
|
|
177
174
|
}),
|
|
178
|
-
|
|
179
|
-
value:
|
|
175
|
+
warn: j({}, e, {
|
|
176
|
+
value: Q
|
|
180
177
|
}),
|
|
181
|
-
|
|
178
|
+
error: j({}, e, {
|
|
182
179
|
value: ae
|
|
183
180
|
}),
|
|
184
|
-
|
|
181
|
+
group: j({}, e, {
|
|
182
|
+
value: J
|
|
183
|
+
}),
|
|
184
|
+
groupCollapsed: j({}, e, {
|
|
185
185
|
value: re
|
|
186
186
|
}),
|
|
187
|
-
groupEnd:
|
|
188
|
-
value:
|
|
187
|
+
groupEnd: j({}, e, {
|
|
188
|
+
value: se
|
|
189
189
|
})
|
|
190
190
|
});
|
|
191
191
|
}
|
|
192
|
-
F < 0 &&
|
|
192
|
+
F < 0 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
|
-
var
|
|
196
|
-
function
|
|
195
|
+
var ye = C.ReactCurrentDispatcher, ue;
|
|
196
|
+
function le(e, l, u) {
|
|
197
197
|
{
|
|
198
198
|
if (ue === void 0)
|
|
199
199
|
try {
|
|
200
200
|
throw Error();
|
|
201
|
-
} catch (
|
|
202
|
-
var
|
|
203
|
-
ue =
|
|
201
|
+
} catch (I) {
|
|
202
|
+
var x = I.stack.trim().match(/\n( *(at )?)/);
|
|
203
|
+
ue = x && x[1] || "";
|
|
204
204
|
}
|
|
205
205
|
return `
|
|
206
206
|
` + ue + e;
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
|
-
var
|
|
209
|
+
var me = !1, _e;
|
|
210
210
|
{
|
|
211
|
-
var
|
|
212
|
-
|
|
211
|
+
var xe = typeof WeakMap == "function" ? WeakMap : Map;
|
|
212
|
+
_e = new xe();
|
|
213
213
|
}
|
|
214
|
-
function
|
|
215
|
-
if (!e ||
|
|
214
|
+
function Oe(e, l) {
|
|
215
|
+
if (!e || me)
|
|
216
216
|
return "";
|
|
217
217
|
{
|
|
218
|
-
var u =
|
|
218
|
+
var u = _e.get(e);
|
|
219
219
|
if (u !== void 0)
|
|
220
220
|
return u;
|
|
221
221
|
}
|
|
222
|
-
var
|
|
223
|
-
|
|
224
|
-
var
|
|
222
|
+
var x;
|
|
223
|
+
me = !0;
|
|
224
|
+
var I = Error.prepareStackTrace;
|
|
225
225
|
Error.prepareStackTrace = void 0;
|
|
226
|
-
var
|
|
227
|
-
|
|
226
|
+
var T;
|
|
227
|
+
T = ye.current, ye.current = null, ve();
|
|
228
228
|
try {
|
|
229
229
|
if (l) {
|
|
230
230
|
var L = function() {
|
|
@@ -237,116 +237,116 @@ function ca() {
|
|
|
237
237
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
238
238
|
try {
|
|
239
239
|
Reflect.construct(L, []);
|
|
240
|
-
} catch (
|
|
241
|
-
|
|
240
|
+
} catch (ee) {
|
|
241
|
+
x = ee;
|
|
242
242
|
}
|
|
243
243
|
Reflect.construct(e, [], L);
|
|
244
244
|
} else {
|
|
245
245
|
try {
|
|
246
246
|
L.call();
|
|
247
|
-
} catch (
|
|
248
|
-
|
|
247
|
+
} catch (ee) {
|
|
248
|
+
x = ee;
|
|
249
249
|
}
|
|
250
250
|
e.call(L.prototype);
|
|
251
251
|
}
|
|
252
252
|
} else {
|
|
253
253
|
try {
|
|
254
254
|
throw Error();
|
|
255
|
-
} catch (
|
|
256
|
-
|
|
255
|
+
} catch (ee) {
|
|
256
|
+
x = ee;
|
|
257
257
|
}
|
|
258
258
|
e();
|
|
259
259
|
}
|
|
260
|
-
} catch (
|
|
261
|
-
if (
|
|
262
|
-
for (var
|
|
263
|
-
`),
|
|
264
|
-
`), P =
|
|
265
|
-
|
|
266
|
-
for (; P >= 1 &&
|
|
267
|
-
if (
|
|
268
|
-
if (P !== 1 ||
|
|
260
|
+
} catch (ee) {
|
|
261
|
+
if (ee && x && typeof ee.stack == "string") {
|
|
262
|
+
for (var S = ee.stack.split(`
|
|
263
|
+
`), K = x.stack.split(`
|
|
264
|
+
`), P = S.length - 1, V = K.length - 1; P >= 1 && V >= 0 && S[P] !== K[V]; )
|
|
265
|
+
V--;
|
|
266
|
+
for (; P >= 1 && V >= 0; P--, V--)
|
|
267
|
+
if (S[P] !== K[V]) {
|
|
268
|
+
if (P !== 1 || V !== 1)
|
|
269
269
|
do
|
|
270
|
-
if (P--,
|
|
270
|
+
if (P--, V--, V < 0 || S[P] !== K[V]) {
|
|
271
271
|
var ne = `
|
|
272
|
-
` +
|
|
273
|
-
return e.displayName && ne.includes("<anonymous>") && (ne = ne.replace("<anonymous>", e.displayName)), typeof e == "function" &&
|
|
272
|
+
` + S[P].replace(" at new ", " at ");
|
|
273
|
+
return e.displayName && ne.includes("<anonymous>") && (ne = ne.replace("<anonymous>", e.displayName)), typeof e == "function" && _e.set(e, ne), ne;
|
|
274
274
|
}
|
|
275
|
-
while (P >= 1 &&
|
|
275
|
+
while (P >= 1 && V >= 0);
|
|
276
276
|
break;
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
279
|
} finally {
|
|
280
|
-
|
|
280
|
+
me = !1, ye.current = T, ie(), Error.prepareStackTrace = I;
|
|
281
281
|
}
|
|
282
|
-
var Me = e ? e.displayName || e.name : "",
|
|
283
|
-
return typeof e == "function" &&
|
|
282
|
+
var Me = e ? e.displayName || e.name : "", Ce = Me ? le(Me) : "";
|
|
283
|
+
return typeof e == "function" && _e.set(e, Ce), Ce;
|
|
284
284
|
}
|
|
285
|
-
function
|
|
286
|
-
return
|
|
285
|
+
function Ve(e, l, u) {
|
|
286
|
+
return Oe(e, !1);
|
|
287
287
|
}
|
|
288
|
-
function
|
|
288
|
+
function He(e) {
|
|
289
289
|
var l = e.prototype;
|
|
290
290
|
return !!(l && l.isReactComponent);
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function Z(e, l, u) {
|
|
293
293
|
if (e == null)
|
|
294
294
|
return "";
|
|
295
295
|
if (typeof e == "function")
|
|
296
|
-
return
|
|
296
|
+
return Oe(e, He(e));
|
|
297
297
|
if (typeof e == "string")
|
|
298
|
-
return
|
|
298
|
+
return le(e);
|
|
299
299
|
switch (e) {
|
|
300
300
|
case f:
|
|
301
|
-
return
|
|
301
|
+
return le("Suspense");
|
|
302
302
|
case _:
|
|
303
|
-
return
|
|
303
|
+
return le("SuspenseList");
|
|
304
304
|
}
|
|
305
305
|
if (typeof e == "object")
|
|
306
306
|
switch (e.$$typeof) {
|
|
307
307
|
case d:
|
|
308
|
-
return
|
|
309
|
-
case
|
|
310
|
-
return
|
|
311
|
-
case
|
|
312
|
-
var
|
|
308
|
+
return Ve(e.render);
|
|
309
|
+
case h:
|
|
310
|
+
return Z(e.type, l, u);
|
|
311
|
+
case b: {
|
|
312
|
+
var x = e, I = x._payload, T = x._init;
|
|
313
313
|
try {
|
|
314
|
-
return
|
|
314
|
+
return Z(T(I), l, u);
|
|
315
315
|
} catch {
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
return "";
|
|
320
320
|
}
|
|
321
|
-
var
|
|
322
|
-
function
|
|
321
|
+
var Y = Object.prototype.hasOwnProperty, ce = {}, tt = C.ReactDebugCurrentFrame;
|
|
322
|
+
function Ue(e) {
|
|
323
323
|
if (e) {
|
|
324
|
-
var l = e._owner, u =
|
|
324
|
+
var l = e._owner, u = Z(e.type, e._source, l ? l.type : null);
|
|
325
325
|
tt.setExtraStackFrame(u);
|
|
326
326
|
} else
|
|
327
327
|
tt.setExtraStackFrame(null);
|
|
328
328
|
}
|
|
329
|
-
function Nt(e, l, u,
|
|
329
|
+
function Nt(e, l, u, x, I) {
|
|
330
330
|
{
|
|
331
|
-
var
|
|
331
|
+
var T = Function.call.bind(Y);
|
|
332
332
|
for (var L in e)
|
|
333
|
-
if (
|
|
334
|
-
var
|
|
333
|
+
if (T(e, L)) {
|
|
334
|
+
var S = void 0;
|
|
335
335
|
try {
|
|
336
336
|
if (typeof e[L] != "function") {
|
|
337
|
-
var
|
|
338
|
-
throw
|
|
337
|
+
var K = Error((x || "React class") + ": " + u + " type `" + L + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[L] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
338
|
+
throw K.name = "Invariant Violation", K;
|
|
339
339
|
}
|
|
340
|
-
|
|
340
|
+
S = e[L](l, L, x, u, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
341
341
|
} catch (P) {
|
|
342
|
-
|
|
342
|
+
S = P;
|
|
343
343
|
}
|
|
344
|
-
|
|
344
|
+
S && !(S instanceof Error) && (Ue(I), g("%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).", x || "React class", u, L, typeof S), Ue(null)), S instanceof Error && !(S.message in ce) && (ce[S.message] = !0, Ue(I), g("Failed %s type: %s", u, S.message), Ue(null));
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
348
|
var Dt = Array.isArray;
|
|
349
|
-
function
|
|
349
|
+
function qe(e) {
|
|
350
350
|
return Dt(e);
|
|
351
351
|
}
|
|
352
352
|
function Ot(e) {
|
|
@@ -367,16 +367,16 @@ function ca() {
|
|
|
367
367
|
}
|
|
368
368
|
function rt(e) {
|
|
369
369
|
if (Ut(e))
|
|
370
|
-
return
|
|
370
|
+
return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ot(e)), at(e);
|
|
371
371
|
}
|
|
372
|
-
var st =
|
|
372
|
+
var st = C.ReactCurrentOwner, Bt = {
|
|
373
373
|
key: !0,
|
|
374
374
|
ref: !0,
|
|
375
375
|
__self: !0,
|
|
376
376
|
__source: !0
|
|
377
377
|
}, nt, ot;
|
|
378
378
|
function Ft(e) {
|
|
379
|
-
if (
|
|
379
|
+
if (Y.call(e, "ref")) {
|
|
380
380
|
var l = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
381
381
|
if (l && l.isReactWarning)
|
|
382
382
|
return !1;
|
|
@@ -384,7 +384,7 @@ function ca() {
|
|
|
384
384
|
return e.ref !== void 0;
|
|
385
385
|
}
|
|
386
386
|
function Pt(e) {
|
|
387
|
-
if (
|
|
387
|
+
if (Y.call(e, "key")) {
|
|
388
388
|
var l = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
389
389
|
if (l && l.isReactWarning)
|
|
390
390
|
return !1;
|
|
@@ -397,7 +397,7 @@ function ca() {
|
|
|
397
397
|
function Wt(e, l) {
|
|
398
398
|
{
|
|
399
399
|
var u = function() {
|
|
400
|
-
nt || (nt = !0,
|
|
400
|
+
nt || (nt = !0, g("%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)", l));
|
|
401
401
|
};
|
|
402
402
|
u.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
403
403
|
get: u,
|
|
@@ -408,7 +408,7 @@ function ca() {
|
|
|
408
408
|
function Vt(e, l) {
|
|
409
409
|
{
|
|
410
410
|
var u = function() {
|
|
411
|
-
ot || (ot = !0,
|
|
411
|
+
ot || (ot = !0, g("%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)", l));
|
|
412
412
|
};
|
|
413
413
|
u.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
414
414
|
get: u,
|
|
@@ -416,8 +416,8 @@ function ca() {
|
|
|
416
416
|
});
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
|
-
var Ht = function(e, l, u,
|
|
420
|
-
var
|
|
419
|
+
var Ht = function(e, l, u, x, I, T, L) {
|
|
420
|
+
var S = {
|
|
421
421
|
// This tag allows us to uniquely identify this as a React Element
|
|
422
422
|
$$typeof: r,
|
|
423
423
|
// Built-in properties that belong on the element
|
|
@@ -426,60 +426,60 @@ function ca() {
|
|
|
426
426
|
ref: u,
|
|
427
427
|
props: L,
|
|
428
428
|
// Record the component responsible for creating this element.
|
|
429
|
-
_owner:
|
|
429
|
+
_owner: T
|
|
430
430
|
};
|
|
431
|
-
return
|
|
431
|
+
return S._store = {}, Object.defineProperty(S._store, "validated", {
|
|
432
432
|
configurable: !1,
|
|
433
433
|
enumerable: !1,
|
|
434
434
|
writable: !0,
|
|
435
435
|
value: !1
|
|
436
|
-
}), Object.defineProperty(
|
|
436
|
+
}), Object.defineProperty(S, "_self", {
|
|
437
437
|
configurable: !1,
|
|
438
438
|
enumerable: !1,
|
|
439
439
|
writable: !1,
|
|
440
|
-
value:
|
|
441
|
-
}), Object.defineProperty(
|
|
440
|
+
value: x
|
|
441
|
+
}), Object.defineProperty(S, "_source", {
|
|
442
442
|
configurable: !1,
|
|
443
443
|
enumerable: !1,
|
|
444
444
|
writable: !1,
|
|
445
|
-
value:
|
|
446
|
-
}), Object.freeze && (Object.freeze(
|
|
445
|
+
value: I
|
|
446
|
+
}), Object.freeze && (Object.freeze(S.props), Object.freeze(S)), S;
|
|
447
447
|
};
|
|
448
|
-
function qt(e, l, u,
|
|
448
|
+
function qt(e, l, u, x, I) {
|
|
449
449
|
{
|
|
450
|
-
var
|
|
451
|
-
u !== void 0 && (rt(u),
|
|
452
|
-
for (
|
|
453
|
-
|
|
450
|
+
var T, L = {}, S = null, K = null;
|
|
451
|
+
u !== void 0 && (rt(u), S = "" + u), Pt(l) && (rt(l.key), S = "" + l.key), Ft(l) && (K = l.ref, zt(l, I));
|
|
452
|
+
for (T in l)
|
|
453
|
+
Y.call(l, T) && !Bt.hasOwnProperty(T) && (L[T] = l[T]);
|
|
454
454
|
if (e && e.defaultProps) {
|
|
455
455
|
var P = e.defaultProps;
|
|
456
|
-
for (
|
|
457
|
-
L[
|
|
456
|
+
for (T in P)
|
|
457
|
+
L[T] === void 0 && (L[T] = P[T]);
|
|
458
458
|
}
|
|
459
|
-
if (
|
|
460
|
-
var
|
|
461
|
-
|
|
459
|
+
if (S || K) {
|
|
460
|
+
var V = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
461
|
+
S && Wt(L, V), K && Vt(L, V);
|
|
462
462
|
}
|
|
463
|
-
return Ht(e,
|
|
463
|
+
return Ht(e, S, K, I, x, st.current, L);
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
|
-
var
|
|
466
|
+
var Ge = C.ReactCurrentOwner, it = C.ReactDebugCurrentFrame;
|
|
467
467
|
function Le(e) {
|
|
468
468
|
if (e) {
|
|
469
|
-
var l = e._owner, u =
|
|
469
|
+
var l = e._owner, u = Z(e.type, e._source, l ? l.type : null);
|
|
470
470
|
it.setExtraStackFrame(u);
|
|
471
471
|
} else
|
|
472
472
|
it.setExtraStackFrame(null);
|
|
473
473
|
}
|
|
474
|
-
var
|
|
475
|
-
|
|
476
|
-
function
|
|
474
|
+
var Ze;
|
|
475
|
+
Ze = !1;
|
|
476
|
+
function Ye(e) {
|
|
477
477
|
return typeof e == "object" && e !== null && e.$$typeof === r;
|
|
478
478
|
}
|
|
479
479
|
function lt() {
|
|
480
480
|
{
|
|
481
|
-
if (
|
|
482
|
-
var e =
|
|
481
|
+
if (Ge.current) {
|
|
482
|
+
var e = m(Ge.current.type);
|
|
483
483
|
if (e)
|
|
484
484
|
return `
|
|
485
485
|
|
|
@@ -513,26 +513,26 @@ Check the top-level render call using <` + u + ">.");
|
|
|
513
513
|
if (ct[u])
|
|
514
514
|
return;
|
|
515
515
|
ct[u] = !0;
|
|
516
|
-
var
|
|
517
|
-
e && e._owner && e._owner !==
|
|
516
|
+
var x = "";
|
|
517
|
+
e && e._owner && e._owner !== Ge.current && (x = " It was passed a child from " + m(e._owner.type) + "."), Le(e), g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', u, x), Le(null);
|
|
518
518
|
}
|
|
519
519
|
}
|
|
520
520
|
function ut(e, l) {
|
|
521
521
|
{
|
|
522
522
|
if (typeof e != "object")
|
|
523
523
|
return;
|
|
524
|
-
if (
|
|
524
|
+
if (qe(e))
|
|
525
525
|
for (var u = 0; u < e.length; u++) {
|
|
526
|
-
var
|
|
527
|
-
|
|
526
|
+
var x = e[u];
|
|
527
|
+
Ye(x) && dt(x, l);
|
|
528
528
|
}
|
|
529
|
-
else if (
|
|
529
|
+
else if (Ye(e))
|
|
530
530
|
e._store && (e._store.validated = !0);
|
|
531
531
|
else if (e) {
|
|
532
|
-
var
|
|
533
|
-
if (typeof
|
|
534
|
-
for (var
|
|
535
|
-
|
|
532
|
+
var I = w(e);
|
|
533
|
+
if (typeof I == "function" && I !== e.entries)
|
|
534
|
+
for (var T = I.call(e), L; !(L = T.next()).done; )
|
|
535
|
+
Ye(L.value) && dt(L.value, l);
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
538
|
}
|
|
@@ -546,76 +546,76 @@ Check the top-level render call using <` + u + ">.");
|
|
|
546
546
|
u = l.propTypes;
|
|
547
547
|
else if (typeof l == "object" && (l.$$typeof === d || // Note: Memo only checks outer props here.
|
|
548
548
|
// Inner props are checked in the reconciler.
|
|
549
|
-
l.$$typeof ===
|
|
549
|
+
l.$$typeof === h))
|
|
550
550
|
u = l.propTypes;
|
|
551
551
|
else
|
|
552
552
|
return;
|
|
553
553
|
if (u) {
|
|
554
|
-
var
|
|
555
|
-
Nt(u, e.props, "prop",
|
|
556
|
-
} else if (l.PropTypes !== void 0 && !
|
|
557
|
-
|
|
558
|
-
var
|
|
559
|
-
|
|
554
|
+
var x = m(l);
|
|
555
|
+
Nt(u, e.props, "prop", x, e);
|
|
556
|
+
} else if (l.PropTypes !== void 0 && !Ze) {
|
|
557
|
+
Ze = !0;
|
|
558
|
+
var I = m(l);
|
|
559
|
+
g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", I || "Unknown");
|
|
560
560
|
}
|
|
561
|
-
typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved &&
|
|
561
|
+
typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved && g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
562
562
|
}
|
|
563
563
|
}
|
|
564
564
|
function Jt(e) {
|
|
565
565
|
{
|
|
566
566
|
for (var l = Object.keys(e.props), u = 0; u < l.length; u++) {
|
|
567
|
-
var
|
|
568
|
-
if (
|
|
569
|
-
Le(e),
|
|
567
|
+
var x = l[u];
|
|
568
|
+
if (x !== "children" && x !== "key") {
|
|
569
|
+
Le(e), g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", x), Le(null);
|
|
570
570
|
break;
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
|
-
e.ref !== null && (Le(e),
|
|
573
|
+
e.ref !== null && (Le(e), g("Invalid attribute `ref` supplied to `React.Fragment`."), Le(null));
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
576
|
var _t = {};
|
|
577
|
-
function pt(e, l, u,
|
|
577
|
+
function pt(e, l, u, x, I, T) {
|
|
578
578
|
{
|
|
579
|
-
var L =
|
|
579
|
+
var L = q(e);
|
|
580
580
|
if (!L) {
|
|
581
|
-
var
|
|
582
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
|
583
|
-
var
|
|
584
|
-
|
|
581
|
+
var S = "";
|
|
582
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (S += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
583
|
+
var K = Gt();
|
|
584
|
+
K ? S += K : S += lt();
|
|
585
585
|
var P;
|
|
586
|
-
e === null ? P = "null" :
|
|
586
|
+
e === null ? P = "null" : qe(e) ? P = "array" : e !== void 0 && e.$$typeof === r ? (P = "<" + (m(e.type) || "Unknown") + " />", S = " Did you accidentally export a JSX literal instead of a component?") : P = typeof e, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", P, S);
|
|
587
587
|
}
|
|
588
|
-
var
|
|
589
|
-
if (
|
|
590
|
-
return
|
|
588
|
+
var V = qt(e, l, u, I, T);
|
|
589
|
+
if (V == null)
|
|
590
|
+
return V;
|
|
591
591
|
if (L) {
|
|
592
592
|
var ne = l.children;
|
|
593
593
|
if (ne !== void 0)
|
|
594
|
-
if (
|
|
595
|
-
if (
|
|
594
|
+
if (x)
|
|
595
|
+
if (qe(ne)) {
|
|
596
596
|
for (var Me = 0; Me < ne.length; Me++)
|
|
597
597
|
ut(ne[Me], e);
|
|
598
598
|
Object.freeze && Object.freeze(ne);
|
|
599
599
|
} else
|
|
600
|
-
|
|
600
|
+
g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
601
601
|
else
|
|
602
602
|
ut(ne, e);
|
|
603
603
|
}
|
|
604
|
-
if (
|
|
605
|
-
var
|
|
604
|
+
if (Y.call(l, "key")) {
|
|
605
|
+
var Ce = m(e), ee = Object.keys(l).filter(function(aa) {
|
|
606
606
|
return aa !== "key";
|
|
607
|
-
}),
|
|
608
|
-
if (!_t[
|
|
609
|
-
var ta =
|
|
610
|
-
|
|
607
|
+
}), Je = ee.length > 0 ? "{key: someKey, " + ee.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
608
|
+
if (!_t[Ce + Je]) {
|
|
609
|
+
var ta = ee.length > 0 ? "{" + ee.join(": ..., ") + ": ...}" : "{}";
|
|
610
|
+
g(`A props object containing a "key" prop is being spread into JSX:
|
|
611
611
|
let props = %s;
|
|
612
612
|
<%s {...props} />
|
|
613
613
|
React keys must be passed directly to JSX without using spread:
|
|
614
614
|
let props = %s;
|
|
615
|
-
<%s key={someKey} {...props} />`,
|
|
615
|
+
<%s key={someKey} {...props} />`, Je, Ce, ta, Ce), _t[Ce + Je] = !0;
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
|
-
return e === s ? Jt(
|
|
618
|
+
return e === s ? Jt(V) : Yt(V), V;
|
|
619
619
|
}
|
|
620
620
|
}
|
|
621
621
|
function Kt(e, l, u) {
|
|
@@ -625,12 +625,12 @@ React keys must be passed directly to JSX without using spread:
|
|
|
625
625
|
return pt(e, l, u, !1);
|
|
626
626
|
}
|
|
627
627
|
var Qt = Xt, ea = Kt;
|
|
628
|
-
|
|
629
|
-
}()),
|
|
628
|
+
Re.Fragment = s, Re.jsx = Qt, Re.jsxs = ea;
|
|
629
|
+
}()), Re;
|
|
630
630
|
}
|
|
631
631
|
var ht;
|
|
632
632
|
function da() {
|
|
633
|
-
return ht || (ht = 1, process.env.NODE_ENV === "production" ?
|
|
633
|
+
return ht || (ht = 1, process.env.NODE_ENV === "production" ? Be.exports = la() : Be.exports = ca()), Be.exports;
|
|
634
634
|
}
|
|
635
635
|
var o = da();
|
|
636
636
|
const ua = (t) => t.as === "a", _a = (t) => t.as === void 0 || t.as === "button", pa = "_button_1abee_213", fa = "_disabled_1abee_237", ga = "_loading_1abee_237", ha = "_neutral_1abee_259", ba = "_accent_1abee_263", ya = "_positive_1abee_267", ma = "_negative_1abee_271", va = "_contrast_1abee_275", xa = "_special_1abee_279", Ca = "_primary_1abee_284", wa = "_secondary_1abee_285", Sa = "_tertiary_1abee_286", Ea = "_label_1abee_321", La = "_rightGroup_1abee_333", Ma = "_iconOnly_1abee_349", $a = "_large_1abee_357", ja = "_medium_1abee_361", Ia = "_small_1abee_365", Ra = "_spaceBetween_1abee_370", ka = "_stretched_1abee_384", Ta = "_icon_1abee_349", Aa = "_badge_1abee_705", Na = "_badgeMedium_1abee_721", Da = "_circular_1abee_738", Oa = "_badgeSmall_1abee_743", Ua = "_badgeExtraSmall_1abee_765", Ba = "_withSubcaption_1abee_784", Fa = "_subcaption_1abee_797", Pa = "_loader_1abee_804", za = "_spin_1abee_1", Wa = "_l_1abee_237", Va = "_m_1abee_361", Ha = "_s_1abee_279", qa = "_xs_1abee_869", z = {
|
|
@@ -682,16 +682,16 @@ const ua = (t) => t.as === "a", _a = (t) => t.as === void 0 || t.as === "button"
|
|
|
682
682
|
}) => {
|
|
683
683
|
if (t)
|
|
684
684
|
return /* @__PURE__ */ o.jsx("span", { className: z.loader, "data-testid": "button-loader", "aria-hidden": "true" });
|
|
685
|
-
const _ = s === "extra-small",
|
|
685
|
+
const _ = s === "extra-small", h = parseInt(String(a), 10), b = !isNaN(h) && h >= 0 && h <= 9;
|
|
686
686
|
return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
687
687
|
r && (a || _) && /* @__PURE__ */ o.jsx(
|
|
688
688
|
"span",
|
|
689
689
|
{
|
|
690
690
|
"data-testid": "button-badge",
|
|
691
|
-
className:
|
|
691
|
+
className: B(
|
|
692
692
|
z.badge,
|
|
693
693
|
z[`badge${_ ? "ExtraSmall" : s === "medium" ? "Medium" : "Small"}`],
|
|
694
|
-
{ [z.circular]:
|
|
694
|
+
{ [z.circular]: b && !_ }
|
|
695
695
|
),
|
|
696
696
|
children: !_ && a
|
|
697
697
|
}
|
|
@@ -707,7 +707,7 @@ const ua = (t) => t.as === "a", _a = (t) => t.as === void 0 || t.as === "button"
|
|
|
707
707
|
] })
|
|
708
708
|
] }) : /* @__PURE__ */ o.jsx("span", { "data-testid": "button-icon", className: z.icon, children: i })
|
|
709
709
|
] });
|
|
710
|
-
}, Rn =
|
|
710
|
+
}, Rn = te((t, r) => {
|
|
711
711
|
const {
|
|
712
712
|
mode: a = "primary",
|
|
713
713
|
size: s = "m",
|
|
@@ -718,129 +718,129 @@ const ua = (t) => t.as === "a", _a = (t) => t.as === void 0 || t.as === "button"
|
|
|
718
718
|
badgeSize: d = "small",
|
|
719
719
|
badgeValue: f,
|
|
720
720
|
showSubcaption: _ = !1,
|
|
721
|
-
subcaption:
|
|
722
|
-
stretched:
|
|
723
|
-
spaceBetween:
|
|
724
|
-
icon:
|
|
725
|
-
postfix:
|
|
726
|
-
className:
|
|
727
|
-
children:
|
|
728
|
-
} = t,
|
|
721
|
+
subcaption: h,
|
|
722
|
+
stretched: b = !1,
|
|
723
|
+
spaceBetween: y = !1,
|
|
724
|
+
icon: v,
|
|
725
|
+
postfix: E,
|
|
726
|
+
className: w,
|
|
727
|
+
children: C
|
|
728
|
+
} = t, g = c, R = n, D = !g && !R, k = !!v && !C, $ = B(
|
|
729
729
|
z.button,
|
|
730
730
|
z[s],
|
|
731
731
|
z[a],
|
|
732
732
|
z[i],
|
|
733
733
|
{
|
|
734
|
-
[z.disabled]:
|
|
734
|
+
[z.disabled]: g,
|
|
735
735
|
[z.loading]: R,
|
|
736
|
-
[z.stretched]:
|
|
737
|
-
[z.spaceBetween]:
|
|
738
|
-
[z.withSubcaption]: _ &&
|
|
736
|
+
[z.stretched]: b,
|
|
737
|
+
[z.spaceBetween]: y && b,
|
|
738
|
+
[z.withSubcaption]: _ && h && s !== "s" && s !== "xs",
|
|
739
739
|
[z.iconOnly]: k
|
|
740
740
|
},
|
|
741
|
-
|
|
742
|
-
),
|
|
741
|
+
w
|
|
742
|
+
), A = {
|
|
743
743
|
isLoading: R,
|
|
744
744
|
showBadge: p,
|
|
745
745
|
badgeValue: f,
|
|
746
746
|
badgeSize: d,
|
|
747
|
-
icon:
|
|
748
|
-
children:
|
|
749
|
-
postfix:
|
|
747
|
+
icon: v,
|
|
748
|
+
children: C,
|
|
749
|
+
postfix: E,
|
|
750
750
|
showSubcaption: _,
|
|
751
|
-
subcaption:
|
|
751
|
+
subcaption: h,
|
|
752
752
|
size: s
|
|
753
753
|
};
|
|
754
754
|
if (ua(t)) {
|
|
755
755
|
const {
|
|
756
|
-
href:
|
|
757
|
-
onClick:
|
|
758
|
-
mode:
|
|
759
|
-
size:
|
|
760
|
-
buttonStyle:
|
|
761
|
-
loading:
|
|
762
|
-
disabled:
|
|
756
|
+
href: N,
|
|
757
|
+
onClick: U,
|
|
758
|
+
mode: q,
|
|
759
|
+
size: W,
|
|
760
|
+
buttonStyle: O,
|
|
761
|
+
loading: m,
|
|
762
|
+
disabled: j,
|
|
763
763
|
showBadge: F,
|
|
764
|
-
badgeSize:
|
|
765
|
-
badgeValue:
|
|
766
|
-
showSubcaption:
|
|
767
|
-
subcaption:
|
|
768
|
-
stretched:
|
|
764
|
+
badgeSize: G,
|
|
765
|
+
badgeValue: H,
|
|
766
|
+
showSubcaption: Q,
|
|
767
|
+
subcaption: ae,
|
|
768
|
+
stretched: J,
|
|
769
769
|
spaceBetween: re,
|
|
770
|
-
icon:
|
|
771
|
-
postfix:
|
|
772
|
-
className:
|
|
773
|
-
tabIndex:
|
|
774
|
-
children:
|
|
770
|
+
icon: se,
|
|
771
|
+
postfix: de,
|
|
772
|
+
className: ve,
|
|
773
|
+
tabIndex: ie,
|
|
774
|
+
children: ye,
|
|
775
775
|
"data-testid": ue,
|
|
776
|
-
style:
|
|
777
|
-
...
|
|
778
|
-
} = t,
|
|
779
|
-
D &&
|
|
776
|
+
style: le,
|
|
777
|
+
...me
|
|
778
|
+
} = t, _e = (xe) => {
|
|
779
|
+
D && U && U(xe);
|
|
780
780
|
};
|
|
781
781
|
return /* @__PURE__ */ o.jsx(
|
|
782
782
|
"a",
|
|
783
783
|
{
|
|
784
784
|
ref: r,
|
|
785
|
-
className:
|
|
786
|
-
href: D ?
|
|
785
|
+
className: $,
|
|
786
|
+
href: D ? N : void 0,
|
|
787
787
|
tabIndex: t.tabIndex,
|
|
788
|
-
onClick:
|
|
788
|
+
onClick: _e,
|
|
789
789
|
"data-testid": ue,
|
|
790
|
-
"aria-disabled":
|
|
791
|
-
style:
|
|
792
|
-
...
|
|
793
|
-
children: /* @__PURE__ */ o.jsx(bt, { ...
|
|
790
|
+
"aria-disabled": g || R,
|
|
791
|
+
style: le,
|
|
792
|
+
...me,
|
|
793
|
+
children: /* @__PURE__ */ o.jsx(bt, { ...A })
|
|
794
794
|
}
|
|
795
795
|
);
|
|
796
796
|
}
|
|
797
797
|
if (_a(t)) {
|
|
798
798
|
const {
|
|
799
|
-
type:
|
|
800
|
-
onClick:
|
|
801
|
-
mode:
|
|
802
|
-
size:
|
|
803
|
-
buttonStyle:
|
|
804
|
-
loading:
|
|
805
|
-
disabled:
|
|
799
|
+
type: N = "button",
|
|
800
|
+
onClick: U,
|
|
801
|
+
mode: q,
|
|
802
|
+
size: W,
|
|
803
|
+
buttonStyle: O,
|
|
804
|
+
loading: m,
|
|
805
|
+
disabled: j,
|
|
806
806
|
showBadge: F,
|
|
807
|
-
badgeSize:
|
|
808
|
-
badgeValue:
|
|
809
|
-
showSubcaption:
|
|
810
|
-
subcaption:
|
|
811
|
-
stretched:
|
|
807
|
+
badgeSize: G,
|
|
808
|
+
badgeValue: H,
|
|
809
|
+
showSubcaption: Q,
|
|
810
|
+
subcaption: ae,
|
|
811
|
+
stretched: J,
|
|
812
812
|
spaceBetween: re,
|
|
813
|
-
icon:
|
|
814
|
-
postfix:
|
|
815
|
-
className:
|
|
816
|
-
tabIndex:
|
|
817
|
-
children:
|
|
813
|
+
icon: se,
|
|
814
|
+
postfix: de,
|
|
815
|
+
className: ve,
|
|
816
|
+
tabIndex: ie,
|
|
817
|
+
children: ye,
|
|
818
818
|
"data-testid": ue,
|
|
819
|
-
style:
|
|
820
|
-
...
|
|
821
|
-
} = t,
|
|
822
|
-
D &&
|
|
819
|
+
style: le,
|
|
820
|
+
...me
|
|
821
|
+
} = t, _e = (xe) => {
|
|
822
|
+
D && U && U(xe);
|
|
823
823
|
};
|
|
824
824
|
return /* @__PURE__ */ o.jsx(
|
|
825
825
|
"button",
|
|
826
826
|
{
|
|
827
827
|
ref: r,
|
|
828
|
-
type:
|
|
829
|
-
className:
|
|
830
|
-
disabled:
|
|
828
|
+
type: N,
|
|
829
|
+
className: $,
|
|
830
|
+
disabled: g,
|
|
831
831
|
tabIndex: t.tabIndex,
|
|
832
|
-
onClick:
|
|
832
|
+
onClick: _e,
|
|
833
833
|
"data-testid": ue,
|
|
834
|
-
"aria-disabled":
|
|
835
|
-
style:
|
|
836
|
-
...
|
|
837
|
-
children: /* @__PURE__ */ o.jsx(bt, { ...
|
|
834
|
+
"aria-disabled": g || R,
|
|
835
|
+
style: le,
|
|
836
|
+
...me,
|
|
837
|
+
children: /* @__PURE__ */ o.jsx(bt, { ...A })
|
|
838
838
|
}
|
|
839
839
|
);
|
|
840
840
|
}
|
|
841
841
|
return null;
|
|
842
842
|
});
|
|
843
|
-
var
|
|
843
|
+
var Ke = { exports: {} };
|
|
844
844
|
/*!
|
|
845
845
|
Copyright (c) 2018 Jed Watson.
|
|
846
846
|
Licensed under the MIT License (MIT), see
|
|
@@ -877,10 +877,10 @@ function Ga() {
|
|
|
877
877
|
}
|
|
878
878
|
t.exports ? (a.default = a, t.exports = a) : window.classNames = a;
|
|
879
879
|
})();
|
|
880
|
-
}(
|
|
880
|
+
}(Ke)), Ke.exports;
|
|
881
881
|
}
|
|
882
882
|
var Za = Ga();
|
|
883
|
-
const
|
|
883
|
+
const Ae = /* @__PURE__ */ ia(Za), Ya = "_avatar_1kyiq_17", Ja = "_clickable_1kyiq_41", Ka = "_icon_1kyiq_58", Xa = "_disabled_1kyiq_63", Qa = "_loading_1kyiq_68", er = "_image_1kyiq_74", tr = "_name_1kyiq_74", pe = {
|
|
884
884
|
avatar: Ya,
|
|
885
885
|
clickable: Ja,
|
|
886
886
|
icon: Ka,
|
|
@@ -901,7 +901,7 @@ const Ne = /* @__PURE__ */ ia(Za), Ya = "_avatar_1kyiq_17", Ja = "_clickable_1ky
|
|
|
901
901
|
"color-contrast": "_color-contrast_1kyiq_167",
|
|
902
902
|
"variant-light": "_variant-light_1kyiq_173",
|
|
903
903
|
"variant-outline": "_variant-outline_1kyiq_245"
|
|
904
|
-
},
|
|
904
|
+
}, Ne = {
|
|
905
905
|
"typography-title-1-semibold": "_typography-title-1-semibold_1lyxn_1",
|
|
906
906
|
"typography-title-2-semibold": "_typography-title-2-semibold_1lyxn_10",
|
|
907
907
|
"typography-title-3-semibold": "_typography-title-3-semibold_1lyxn_19",
|
|
@@ -929,7 +929,7 @@ const Ne = /* @__PURE__ */ ia(Za), Ya = "_avatar_1kyiq_17", Ja = "_clickable_1ky
|
|
|
929
929
|
function ar(t) {
|
|
930
930
|
return t < mt ? `+${t}` : `${mt}+`;
|
|
931
931
|
}
|
|
932
|
-
function
|
|
932
|
+
function et(t) {
|
|
933
933
|
const r = typeof t == "string" ? t : JSON.stringify(t);
|
|
934
934
|
let a = 5381;
|
|
935
935
|
for (let s = 0; s < r.length; s++) {
|
|
@@ -949,7 +949,7 @@ const rr = [
|
|
|
949
949
|
];
|
|
950
950
|
function sr(t, r = rr) {
|
|
951
951
|
if (!t) return "gray";
|
|
952
|
-
const a =
|
|
952
|
+
const a = et(t), s = Math.abs(a) % r.length;
|
|
953
953
|
return r[s];
|
|
954
954
|
}
|
|
955
955
|
const vt = 2;
|
|
@@ -991,7 +991,7 @@ const cr = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
991
991
|
female: dr,
|
|
992
992
|
org: _r,
|
|
993
993
|
neutral: ur
|
|
994
|
-
},
|
|
994
|
+
}, Pe = te((t, r) => {
|
|
995
995
|
const {
|
|
996
996
|
style: a,
|
|
997
997
|
size: s = 40,
|
|
@@ -1002,82 +1002,82 @@ const cr = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
|
|
|
1002
1002
|
placeholderType: d = "neutral",
|
|
1003
1003
|
name: f,
|
|
1004
1004
|
imgSrc: _,
|
|
1005
|
-
imgAlt:
|
|
1006
|
-
icon:
|
|
1007
|
-
imgProps:
|
|
1008
|
-
colorScheme:
|
|
1009
|
-
className:
|
|
1010
|
-
"data-testid":
|
|
1011
|
-
...
|
|
1012
|
-
} = t, { onClick:
|
|
1013
|
-
|
|
1014
|
-
_ &&
|
|
1005
|
+
imgAlt: h,
|
|
1006
|
+
icon: b,
|
|
1007
|
+
imgProps: y,
|
|
1008
|
+
colorScheme: v,
|
|
1009
|
+
className: E,
|
|
1010
|
+
"data-testid": w,
|
|
1011
|
+
...C
|
|
1012
|
+
} = t, { onClick: g, onPointerDown: R } = C, k = !n && !i && (!!g || !!R), [$, A] = De(!1);
|
|
1013
|
+
Ee(() => {
|
|
1014
|
+
_ && A(!1);
|
|
1015
1015
|
}, [_]);
|
|
1016
|
-
const
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1016
|
+
const N = _ && !$ ? "image" : b ? "icon" : f ? "name" : "placeholder", U = v || N === "name" && sr(f) || "gray", q = lr(s), W = jt(s, c), O = B(
|
|
1017
|
+
E,
|
|
1018
|
+
pe.avatar,
|
|
1019
|
+
pe[`variant-${p}`],
|
|
1020
|
+
pe[`color-${U}`],
|
|
1021
|
+
Ne[q],
|
|
1022
1022
|
{
|
|
1023
|
-
[
|
|
1024
|
-
[
|
|
1025
|
-
[
|
|
1023
|
+
[pe.disabled]: n,
|
|
1024
|
+
[pe.loading]: i,
|
|
1025
|
+
[pe.clickable]: k
|
|
1026
1026
|
}
|
|
1027
|
-
),
|
|
1027
|
+
), m = {
|
|
1028
1028
|
"--avatar-size": `${s}px`,
|
|
1029
|
-
"--avatar-border-radius": `${
|
|
1029
|
+
"--avatar-border-radius": `${W}px`,
|
|
1030
1030
|
...a
|
|
1031
|
-
},
|
|
1032
|
-
icon: () => /* @__PURE__ */ o.jsx("span", { "data-testid": "avatar-icon", title:
|
|
1031
|
+
}, j = {
|
|
1032
|
+
icon: () => /* @__PURE__ */ o.jsx("span", { "data-testid": "avatar-icon", title: h || void 0, role: "img", className: pe.icon, children: b == null ? void 0 : b({}) }),
|
|
1033
1033
|
name: () => /* @__PURE__ */ o.jsx(
|
|
1034
1034
|
"span",
|
|
1035
1035
|
{
|
|
1036
1036
|
role: "textbox",
|
|
1037
1037
|
"data-testid": "avatar-name",
|
|
1038
|
-
className:
|
|
1039
|
-
title:
|
|
1038
|
+
className: pe.name,
|
|
1039
|
+
title: h || void 0,
|
|
1040
1040
|
children: nr(f || "")
|
|
1041
1041
|
}
|
|
1042
1042
|
),
|
|
1043
1043
|
placeholder: () => /* @__PURE__ */ o.jsx(
|
|
1044
1044
|
"img",
|
|
1045
1045
|
{
|
|
1046
|
-
...
|
|
1046
|
+
...y,
|
|
1047
1047
|
"data-testid": "avatar-placeholder",
|
|
1048
|
-
className:
|
|
1048
|
+
className: pe.image,
|
|
1049
1049
|
src: pr[d],
|
|
1050
|
-
alt:
|
|
1050
|
+
alt: h || void 0
|
|
1051
1051
|
}
|
|
1052
1052
|
),
|
|
1053
1053
|
image: () => /* @__PURE__ */ o.jsx(
|
|
1054
1054
|
"img",
|
|
1055
1055
|
{
|
|
1056
1056
|
"data-testid": "avatar-image",
|
|
1057
|
-
...
|
|
1058
|
-
className:
|
|
1057
|
+
...y,
|
|
1058
|
+
className: pe.image,
|
|
1059
1059
|
src: _ || void 0,
|
|
1060
|
-
alt:
|
|
1061
|
-
onLoad: () =>
|
|
1062
|
-
onError: (
|
|
1063
|
-
var
|
|
1064
|
-
|
|
1060
|
+
alt: h || void 0,
|
|
1061
|
+
onLoad: () => A(!1),
|
|
1062
|
+
onError: (G) => {
|
|
1063
|
+
var H;
|
|
1064
|
+
A(!0), (H = y == null ? void 0 : y.onError) == null || H.call(y, G);
|
|
1065
1065
|
}
|
|
1066
1066
|
}
|
|
1067
1067
|
)
|
|
1068
|
-
}, F = (
|
|
1069
|
-
k && (
|
|
1068
|
+
}, F = (G) => {
|
|
1069
|
+
k && (g == null || g(G));
|
|
1070
1070
|
};
|
|
1071
1071
|
return /* @__PURE__ */ o.jsx(
|
|
1072
1072
|
"div",
|
|
1073
1073
|
{
|
|
1074
1074
|
ref: r,
|
|
1075
1075
|
onClick: F,
|
|
1076
|
-
className:
|
|
1077
|
-
style:
|
|
1078
|
-
"data-testid":
|
|
1076
|
+
className: O,
|
|
1077
|
+
style: m,
|
|
1078
|
+
"data-testid": w,
|
|
1079
1079
|
"aria-disabled": n || i,
|
|
1080
|
-
children:
|
|
1080
|
+
children: j[N](null)
|
|
1081
1081
|
}
|
|
1082
1082
|
);
|
|
1083
1083
|
}), fr = "_avatarGroup_157g4_1", gr = {
|
|
@@ -1111,7 +1111,7 @@ const yr = 3, mr = (t) => {
|
|
|
1111
1111
|
shape: i = "circle",
|
|
1112
1112
|
overflowCount: n = 0,
|
|
1113
1113
|
overflowProps: c
|
|
1114
|
-
} = t, p = a * s, d = -p + yr, f = jt(a, i),
|
|
1114
|
+
} = t, p = a * s, d = -p + yr, f = jt(a, i), h = We(hr()).current.toString(), b = Ae(gr.avatarGroup), y = br(
|
|
1115
1115
|
a,
|
|
1116
1116
|
a,
|
|
1117
1117
|
a - p,
|
|
@@ -1122,22 +1122,22 @@ const yr = 3, mr = (t) => {
|
|
|
1122
1122
|
a,
|
|
1123
1123
|
f
|
|
1124
1124
|
);
|
|
1125
|
-
return r.length === 0 ? null : /* @__PURE__ */ o.jsxs("div", { className:
|
|
1126
|
-
r.map((
|
|
1127
|
-
const
|
|
1128
|
-
if (
|
|
1129
|
-
const
|
|
1125
|
+
return r.length === 0 ? null : /* @__PURE__ */ o.jsxs("div", { className: b, children: [
|
|
1126
|
+
r.map((v, E, w) => {
|
|
1127
|
+
const C = E + 1 >= w.length;
|
|
1128
|
+
if (v.wrapper) {
|
|
1129
|
+
const g = v.wrapper;
|
|
1130
1130
|
return /* @__PURE__ */ o.jsx(
|
|
1131
1131
|
"div",
|
|
1132
1132
|
{
|
|
1133
1133
|
style: {
|
|
1134
1134
|
// Для последнего видимого аватара без overflowCount не применяем обрезку
|
|
1135
|
-
clipPath:
|
|
1135
|
+
clipPath: C && !n ? void 0 : `url(#${h})`,
|
|
1136
1136
|
marginRight: d
|
|
1137
1137
|
},
|
|
1138
|
-
children: /* @__PURE__ */ o.jsx(
|
|
1138
|
+
children: /* @__PURE__ */ o.jsx(g, { children: /* @__PURE__ */ o.jsx(Pe, { size: a, shape: i, ...v }) })
|
|
1139
1139
|
},
|
|
1140
|
-
|
|
1140
|
+
et(v) + E
|
|
1141
1141
|
);
|
|
1142
1142
|
}
|
|
1143
1143
|
return /* @__PURE__ */ o.jsx(
|
|
@@ -1145,16 +1145,16 @@ const yr = 3, mr = (t) => {
|
|
|
1145
1145
|
{
|
|
1146
1146
|
style: {
|
|
1147
1147
|
// Для последнего видимого аватара без overflowCount не применяем обрезку
|
|
1148
|
-
clipPath:
|
|
1148
|
+
clipPath: C && !n ? void 0 : `url(#${h})`,
|
|
1149
1149
|
marginRight: d
|
|
1150
1150
|
},
|
|
1151
|
-
children: /* @__PURE__ */ o.jsx(
|
|
1151
|
+
children: /* @__PURE__ */ o.jsx(Pe, { size: a, shape: i, ...v })
|
|
1152
1152
|
},
|
|
1153
|
-
|
|
1153
|
+
et(v) + E
|
|
1154
1154
|
);
|
|
1155
1155
|
}),
|
|
1156
1156
|
n > 0 && /* @__PURE__ */ o.jsx("div", { style: { marginRight: d }, children: /* @__PURE__ */ o.jsx(
|
|
1157
|
-
|
|
1157
|
+
Pe,
|
|
1158
1158
|
{
|
|
1159
1159
|
size: a,
|
|
1160
1160
|
shape: i,
|
|
@@ -1164,11 +1164,11 @@ const yr = 3, mr = (t) => {
|
|
|
1164
1164
|
...c
|
|
1165
1165
|
}
|
|
1166
1166
|
) }),
|
|
1167
|
-
/* @__PURE__ */ o.jsx("svg", { width: "0", height: "0", children: /* @__PURE__ */ o.jsx("clipPath", { id: `${
|
|
1167
|
+
/* @__PURE__ */ o.jsx("svg", { width: "0", height: "0", children: /* @__PURE__ */ o.jsx("clipPath", { id: `${h}`, children: /* @__PURE__ */ o.jsx("path", { clipPathUnits: "objectBoundingBox", d: y, clipRule: "evenodd" }) }) })
|
|
1168
1168
|
] });
|
|
1169
|
-
}, kn = Object.assign(
|
|
1169
|
+
}, kn = Object.assign(Pe, {
|
|
1170
1170
|
Group: mr
|
|
1171
|
-
}), vr = "_wrapper_ecbsu_5", xr = "_badge__container_ecbsu_6", Cr = "_badge__content_ecbsu_7", wr = "_interactive_ecbsu_20", Sr = "_disabled_ecbsu_21", Er = "_icon_ecbsu_22",
|
|
1171
|
+
}), vr = "_wrapper_ecbsu_5", xr = "_badge__container_ecbsu_6", Cr = "_badge__content_ecbsu_7", wr = "_interactive_ecbsu_20", Sr = "_disabled_ecbsu_21", Er = "_icon_ecbsu_22", fe = {
|
|
1172
1172
|
wrapper: vr,
|
|
1173
1173
|
badge__container: xr,
|
|
1174
1174
|
badge__content: Cr,
|
|
@@ -1216,14 +1216,14 @@ const yr = 3, mr = (t) => {
|
|
|
1216
1216
|
}
|
|
1217
1217
|
return null;
|
|
1218
1218
|
}, $r = () => {
|
|
1219
|
-
const t =
|
|
1220
|
-
return
|
|
1219
|
+
const t = We(null), [r, a] = De(null);
|
|
1220
|
+
return Ee(() => {
|
|
1221
1221
|
if (t.current) {
|
|
1222
1222
|
const s = Mr(t.current);
|
|
1223
1223
|
a(s);
|
|
1224
1224
|
}
|
|
1225
1225
|
}, []), { ref: t, bgColor: r };
|
|
1226
|
-
}, Tn =
|
|
1226
|
+
}, Tn = te((t, r) => {
|
|
1227
1227
|
const {
|
|
1228
1228
|
icon: a,
|
|
1229
1229
|
children: s,
|
|
@@ -1234,59 +1234,59 @@ const yr = 3, mr = (t) => {
|
|
|
1234
1234
|
size: d = 20,
|
|
1235
1235
|
position: f = "top-right",
|
|
1236
1236
|
positionOffset: _ = { x: 0, y: 0 },
|
|
1237
|
-
cutoutBackground:
|
|
1238
|
-
isDisabled:
|
|
1239
|
-
className:
|
|
1240
|
-
"data-testid":
|
|
1241
|
-
...
|
|
1242
|
-
} = t, { onClick:
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1237
|
+
cutoutBackground: h,
|
|
1238
|
+
isDisabled: b,
|
|
1239
|
+
className: y,
|
|
1240
|
+
"data-testid": v = "badge",
|
|
1241
|
+
...E
|
|
1242
|
+
} = t, { onClick: w, onPointerDown: C } = E, { ref: g, bgColor: R } = $r(), D = h || R, $ = !b && (!!w || !!C), A = Ae(fe.badge__container, fe[`position-${f}`]), N = Ae(
|
|
1243
|
+
y,
|
|
1244
|
+
fe.badge__content,
|
|
1245
|
+
fe[`color-${p}`],
|
|
1246
|
+
fe[`variant-${i}`],
|
|
1247
1247
|
{
|
|
1248
|
-
[
|
|
1249
|
-
[
|
|
1250
|
-
[
|
|
1248
|
+
[fe.disabled]: b,
|
|
1249
|
+
[fe.icon]: !!a,
|
|
1250
|
+
[fe.interactive]: $
|
|
1251
1251
|
}
|
|
1252
|
-
),
|
|
1252
|
+
), U = {
|
|
1253
1253
|
"--badge-height": `${d}px`,
|
|
1254
1254
|
"--badge-offset-x": `${_.x}px`,
|
|
1255
1255
|
"--badge-offset-y": `${_.y}px`,
|
|
1256
1256
|
...D && { "--badge-cutout-bg": D },
|
|
1257
1257
|
...i === "transparent" && { "--badge-cutout-bg": "transparent" }
|
|
1258
|
-
},
|
|
1259
|
-
|
|
1258
|
+
}, q = (a == null ? void 0 : a({})) || n, W = (O) => {
|
|
1259
|
+
$ && (w == null || w(O));
|
|
1260
1260
|
};
|
|
1261
|
-
return /* @__PURE__ */ o.jsxs("div", { className:
|
|
1261
|
+
return /* @__PURE__ */ o.jsxs("div", { className: fe.wrapper, ref: g, "data-testid": v + "-wrapper", children: [
|
|
1262
1262
|
s,
|
|
1263
1263
|
!c && /* @__PURE__ */ o.jsx(
|
|
1264
1264
|
"span",
|
|
1265
1265
|
{
|
|
1266
|
-
className:
|
|
1267
|
-
style:
|
|
1268
|
-
"data-testid":
|
|
1266
|
+
className: A,
|
|
1267
|
+
style: U,
|
|
1268
|
+
"data-testid": v + "-container",
|
|
1269
1269
|
children: /* @__PURE__ */ o.jsx(
|
|
1270
1270
|
"span",
|
|
1271
1271
|
{
|
|
1272
|
-
...
|
|
1273
|
-
onClick:
|
|
1274
|
-
className:
|
|
1275
|
-
"data-testid":
|
|
1272
|
+
...E,
|
|
1273
|
+
onClick: W,
|
|
1274
|
+
className: N,
|
|
1275
|
+
"data-testid": v + "-content",
|
|
1276
1276
|
ref: r,
|
|
1277
|
-
"aria-disabled":
|
|
1278
|
-
children:
|
|
1277
|
+
"aria-disabled": b,
|
|
1278
|
+
children: q
|
|
1279
1279
|
}
|
|
1280
1280
|
)
|
|
1281
1281
|
}
|
|
1282
1282
|
)
|
|
1283
1283
|
] });
|
|
1284
|
-
}), jr = "_container_1gkrm_7", Ir = "_loading_1gkrm_17", Rr = "_error_1gkrm_18", kr = "_image_1gkrm_22",
|
|
1284
|
+
}), jr = "_container_1gkrm_7", Ir = "_loading_1gkrm_17", Rr = "_error_1gkrm_18", kr = "_image_1gkrm_22", ke = {
|
|
1285
1285
|
container: jr,
|
|
1286
1286
|
loading: Ir,
|
|
1287
1287
|
error: Rr,
|
|
1288
1288
|
image: kr
|
|
1289
|
-
}, Tr = "_loader_isv17_1", Ar = "_spin_isv17_1", Nr = "_accent_isv17_19", Dr = "_neutral_isv17_23", Or = "_positive_isv17_27", Ur = "_negative_isv17_31", Br = "_gray_isv17_35", Fr = "_special_isv17_39", Pr = "_contrast_isv17_43", zr = "_container_isv17_47", Wr = "_overlay_isv17_57",
|
|
1289
|
+
}, Tr = "_loader_isv17_1", Ar = "_spin_isv17_1", Nr = "_accent_isv17_19", Dr = "_neutral_isv17_23", Or = "_positive_isv17_27", Ur = "_negative_isv17_31", Br = "_gray_isv17_35", Fr = "_special_isv17_39", Pr = "_contrast_isv17_43", zr = "_container_isv17_47", Wr = "_overlay_isv17_57", Te = {
|
|
1290
1290
|
loader: Tr,
|
|
1291
1291
|
spin: Ar,
|
|
1292
1292
|
accent: Nr,
|
|
@@ -1303,7 +1303,7 @@ const yr = 3, mr = (t) => {
|
|
|
1303
1303
|
"size-48": "_size-48_isv17_80",
|
|
1304
1304
|
"size-64": "_size-64_isv17_84",
|
|
1305
1305
|
"size-96": "_size-96_isv17_88"
|
|
1306
|
-
}, It =
|
|
1306
|
+
}, It = te(
|
|
1307
1307
|
({
|
|
1308
1308
|
size: t = 24,
|
|
1309
1309
|
variant: r = "accent",
|
|
@@ -1312,10 +1312,10 @@ const yr = 3, mr = (t) => {
|
|
|
1312
1312
|
style: i,
|
|
1313
1313
|
...n
|
|
1314
1314
|
}, c) => {
|
|
1315
|
-
const p =
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1315
|
+
const p = Ae(
|
|
1316
|
+
Te.loader,
|
|
1317
|
+
Te[r],
|
|
1318
|
+
Te[`size-${t}`],
|
|
1319
1319
|
a
|
|
1320
1320
|
);
|
|
1321
1321
|
return /* @__PURE__ */ o.jsx(
|
|
@@ -1341,7 +1341,7 @@ const yr = 3, mr = (t) => {
|
|
|
1341
1341
|
}
|
|
1342
1342
|
);
|
|
1343
1343
|
}
|
|
1344
|
-
), Vr =
|
|
1344
|
+
), Vr = te((t, r) => {
|
|
1345
1345
|
const {
|
|
1346
1346
|
loading: a = !1,
|
|
1347
1347
|
size: s = 24,
|
|
@@ -1351,12 +1351,12 @@ const yr = 3, mr = (t) => {
|
|
|
1351
1351
|
style: p,
|
|
1352
1352
|
"data-testid": d,
|
|
1353
1353
|
...f
|
|
1354
|
-
} = t, _ =
|
|
1354
|
+
} = t, _ = Ae(Te.container, c);
|
|
1355
1355
|
return /* @__PURE__ */ o.jsxs("div", { ref: r, className: _, style: p, "data-testid": d, ...f, children: [
|
|
1356
1356
|
n,
|
|
1357
|
-
a && /* @__PURE__ */ o.jsx("div", { className:
|
|
1357
|
+
a && /* @__PURE__ */ o.jsx("div", { className: Te.overlay, children: /* @__PURE__ */ o.jsx(It, { size: s, variant: i, "data-testid": `${d}-spinner` }) })
|
|
1358
1358
|
] });
|
|
1359
|
-
}), Hr =
|
|
1359
|
+
}), Hr = te((t, r) => t.children ? /* @__PURE__ */ o.jsx(
|
|
1360
1360
|
Vr,
|
|
1361
1361
|
{
|
|
1362
1362
|
ref: r,
|
|
@@ -1383,7 +1383,7 @@ const yr = 3, mr = (t) => {
|
|
|
1383
1383
|
}
|
|
1384
1384
|
)
|
|
1385
1385
|
}
|
|
1386
|
-
), An =
|
|
1386
|
+
), An = te((t, r) => {
|
|
1387
1387
|
const {
|
|
1388
1388
|
alt: a = "",
|
|
1389
1389
|
loading: s = "lazy",
|
|
@@ -1394,28 +1394,28 @@ const yr = 3, mr = (t) => {
|
|
|
1394
1394
|
"data-testid": d = "image",
|
|
1395
1395
|
onError: f,
|
|
1396
1396
|
onLoad: _,
|
|
1397
|
-
...
|
|
1398
|
-
} = t, [
|
|
1399
|
-
|
|
1397
|
+
...h
|
|
1398
|
+
} = t, [b, y] = De("loading"), v = b === "error", E = (n || b === "loading") && !v, w = b === "loaded" && !n, C = B(
|
|
1399
|
+
ke.container,
|
|
1400
1400
|
{
|
|
1401
|
-
[
|
|
1402
|
-
[
|
|
1401
|
+
[ke.loading]: E && !w,
|
|
1402
|
+
[ke.error]: v && !w
|
|
1403
1403
|
},
|
|
1404
1404
|
p
|
|
1405
|
-
),
|
|
1406
|
-
|
|
1405
|
+
), g = B(
|
|
1406
|
+
ke.image,
|
|
1407
1407
|
{
|
|
1408
|
-
[
|
|
1408
|
+
[ke.loading]: E
|
|
1409
1409
|
},
|
|
1410
1410
|
c
|
|
1411
|
-
), R =
|
|
1412
|
-
(
|
|
1413
|
-
|
|
1411
|
+
), R = Se(
|
|
1412
|
+
($) => {
|
|
1413
|
+
y("loaded"), _ == null || _($);
|
|
1414
1414
|
},
|
|
1415
1415
|
[_]
|
|
1416
|
-
), D =
|
|
1417
|
-
(
|
|
1418
|
-
|
|
1416
|
+
), D = Se(
|
|
1417
|
+
($) => {
|
|
1418
|
+
y("error"), f == null || f($);
|
|
1419
1419
|
},
|
|
1420
1420
|
[f]
|
|
1421
1421
|
), k = {
|
|
@@ -1441,20 +1441,20 @@ const yr = 3, mr = (t) => {
|
|
|
1441
1441
|
"data-testid": d,
|
|
1442
1442
|
loading: s,
|
|
1443
1443
|
src: i,
|
|
1444
|
-
className:
|
|
1444
|
+
className: g
|
|
1445
1445
|
}
|
|
1446
1446
|
)
|
|
1447
1447
|
};
|
|
1448
|
-
return
|
|
1448
|
+
return Ee(() => {
|
|
1449
1449
|
if (!i) {
|
|
1450
|
-
|
|
1450
|
+
y("error");
|
|
1451
1451
|
return;
|
|
1452
1452
|
}
|
|
1453
|
-
|
|
1454
|
-
}, [i]), /* @__PURE__ */ o.jsxs("div", { className:
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1453
|
+
y("loading");
|
|
1454
|
+
}, [i]), /* @__PURE__ */ o.jsxs("div", { className: C, "data-testid": `${d}-container`, ...h, children: [
|
|
1455
|
+
E && k.loader,
|
|
1456
|
+
v && k.error,
|
|
1457
|
+
w && k.image
|
|
1458
1458
|
] });
|
|
1459
1459
|
}), Gr = {}, Rt = ra({
|
|
1460
1460
|
locale: Gr
|
|
@@ -1483,11 +1483,11 @@ const yr = 3, mr = (t) => {
|
|
|
1483
1483
|
"div",
|
|
1484
1484
|
{
|
|
1485
1485
|
"data-testid": "ConfigProvider-component",
|
|
1486
|
-
className:
|
|
1486
|
+
className: B(Yr, Jr, Kr, s)
|
|
1487
1487
|
}
|
|
1488
1488
|
),
|
|
1489
1489
|
/* @__PURE__ */ o.jsx(Rt.Provider, { value: { locale: t }, children: a })
|
|
1490
|
-
] })), On = {}, Xr = "_tag_1llsi_1", Qr = "_label_1llsi_16", es = "_iconWrapper_1llsi_20", ts = "_medium_1llsi_27", as = "_large_1llsi_33", rs = "_disabled_1llsi_43", ss = "_neutral_1llsi_47", ns = "_positive_1llsi_53", os = "_negative_1llsi_59", is = "_warning_1llsi_65", ls = "_vivid_1llsi_71", cs = "_special_1llsi_77", ds = "_accent_1llsi_84", us = "_blue_1llsi_90", _s = "_lovely_1llsi_96", ps = "_dreamy_1llsi_102",
|
|
1490
|
+
] })), On = {}, Xr = "_tag_1llsi_1", Qr = "_label_1llsi_16", es = "_iconWrapper_1llsi_20", ts = "_medium_1llsi_27", as = "_large_1llsi_33", rs = "_disabled_1llsi_43", ss = "_neutral_1llsi_47", ns = "_positive_1llsi_53", os = "_negative_1llsi_59", is = "_warning_1llsi_65", ls = "_vivid_1llsi_71", cs = "_special_1llsi_77", ds = "_accent_1llsi_84", us = "_blue_1llsi_90", _s = "_lovely_1llsi_96", ps = "_dreamy_1llsi_102", we = {
|
|
1491
1491
|
tag: Xr,
|
|
1492
1492
|
label: Qr,
|
|
1493
1493
|
iconWrapper: es,
|
|
@@ -1504,7 +1504,7 @@ const yr = 3, mr = (t) => {
|
|
|
1504
1504
|
blue: us,
|
|
1505
1505
|
lovely: _s,
|
|
1506
1506
|
dreamy: ps
|
|
1507
|
-
}, Un =
|
|
1507
|
+
}, Un = te((t, r) => {
|
|
1508
1508
|
const {
|
|
1509
1509
|
className: a,
|
|
1510
1510
|
children: s,
|
|
@@ -1515,33 +1515,33 @@ const yr = 3, mr = (t) => {
|
|
|
1515
1515
|
slotStart: d,
|
|
1516
1516
|
slotEnd: f,
|
|
1517
1517
|
slotStartWrapperProps: _ = {},
|
|
1518
|
-
slotEndWrapperProps:
|
|
1519
|
-
"data-testid":
|
|
1520
|
-
} = t, { className:
|
|
1518
|
+
slotEndWrapperProps: h = {},
|
|
1519
|
+
"data-testid": b
|
|
1520
|
+
} = t, { className: y, ...v } = _, { className: E, ...w } = h;
|
|
1521
1521
|
return /* @__PURE__ */ o.jsxs(
|
|
1522
1522
|
"div",
|
|
1523
1523
|
{
|
|
1524
|
-
className:
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1524
|
+
className: B(
|
|
1525
|
+
we.tag,
|
|
1526
|
+
we[n],
|
|
1527
|
+
we[i],
|
|
1528
1528
|
{
|
|
1529
|
-
[
|
|
1530
|
-
[
|
|
1531
|
-
[
|
|
1529
|
+
[we.disabled]: c,
|
|
1530
|
+
[Ne["typography-label-3-regular"]]: n === "medium",
|
|
1531
|
+
[Ne["typography-subtitle-1-semibold"]]: n === "large"
|
|
1532
1532
|
},
|
|
1533
1533
|
a
|
|
1534
1534
|
),
|
|
1535
|
-
"data-testid":
|
|
1535
|
+
"data-testid": b || "tag-component",
|
|
1536
1536
|
ref: r,
|
|
1537
1537
|
children: [
|
|
1538
|
-
d && /* @__PURE__ */ o.jsx("span", { className:
|
|
1539
|
-
p && /* @__PURE__ */ o.jsx("span", { className:
|
|
1540
|
-
f && /* @__PURE__ */ o.jsx("span", { className:
|
|
1538
|
+
d && /* @__PURE__ */ o.jsx("span", { className: B([we.iconWrapper, y]), ...v, children: d }),
|
|
1539
|
+
p && /* @__PURE__ */ o.jsx("span", { className: B([we.label]), children: s }),
|
|
1540
|
+
f && /* @__PURE__ */ o.jsx("span", { className: B([we.iconWrapper, E]), ...w, children: f })
|
|
1541
1541
|
]
|
|
1542
1542
|
}
|
|
1543
1543
|
);
|
|
1544
|
-
}), fs = "_checkbox_qo5f5_43", gs = "_input_qo5f5_59", hs = "_icon_qo5f5_67", bs = "_container_qo5f5_84", ys = "_error_qo5f5_135", ms = "_checkboxWrapper_qo5f5_147", vs = "_medium_qo5f5_201", xs = "_large_qo5f5_206", Cs = "_label_qo5f5_247",
|
|
1544
|
+
}), fs = "_checkbox_qo5f5_43", gs = "_input_qo5f5_59", hs = "_icon_qo5f5_67", bs = "_container_qo5f5_84", ys = "_error_qo5f5_135", ms = "_checkboxWrapper_qo5f5_147", vs = "_medium_qo5f5_201", xs = "_large_qo5f5_206", Cs = "_label_qo5f5_247", he = {
|
|
1545
1545
|
checkbox: fs,
|
|
1546
1546
|
input: gs,
|
|
1547
1547
|
icon: hs,
|
|
@@ -1617,7 +1617,7 @@ const yr = 3, mr = (t) => {
|
|
|
1617
1617
|
return /* @__PURE__ */ o.jsx(
|
|
1618
1618
|
"div",
|
|
1619
1619
|
{
|
|
1620
|
-
className:
|
|
1620
|
+
className: he.icon,
|
|
1621
1621
|
"data-testid": `${i}-icon`,
|
|
1622
1622
|
"data-checked": r,
|
|
1623
1623
|
"data-disabled": a,
|
|
@@ -1625,7 +1625,7 @@ const yr = 3, mr = (t) => {
|
|
|
1625
1625
|
children: s ? /* @__PURE__ */ o.jsx(Ss, { width: n, height: c }) : /* @__PURE__ */ o.jsx(ws, { width: n, height: c })
|
|
1626
1626
|
}
|
|
1627
1627
|
);
|
|
1628
|
-
}, Bn =
|
|
1628
|
+
}, Bn = te((t, r) => {
|
|
1629
1629
|
const {
|
|
1630
1630
|
name: a,
|
|
1631
1631
|
value: s,
|
|
@@ -1636,52 +1636,52 @@ const yr = 3, mr = (t) => {
|
|
|
1636
1636
|
disabled: d = !1,
|
|
1637
1637
|
containerClassName: f,
|
|
1638
1638
|
className: _,
|
|
1639
|
-
containerStyle:
|
|
1640
|
-
style:
|
|
1641
|
-
children:
|
|
1642
|
-
clickableLabel:
|
|
1643
|
-
tabIndex:
|
|
1644
|
-
onChange:
|
|
1645
|
-
"data-testid":
|
|
1646
|
-
} = t, [
|
|
1647
|
-
|
|
1648
|
-
|
|
1639
|
+
containerStyle: h,
|
|
1640
|
+
style: b,
|
|
1641
|
+
children: y,
|
|
1642
|
+
clickableLabel: v = !0,
|
|
1643
|
+
tabIndex: E,
|
|
1644
|
+
onChange: w,
|
|
1645
|
+
"data-testid": C = "checkbox"
|
|
1646
|
+
} = t, [g, R] = De(!1), D = s ?? g, k = d || c, $ = !!p, A = D || n, N = B(he.container, he[i], f), U = B(
|
|
1647
|
+
he.checkbox,
|
|
1648
|
+
he[i],
|
|
1649
1649
|
{
|
|
1650
|
-
[
|
|
1650
|
+
[he.error]: $
|
|
1651
1651
|
},
|
|
1652
1652
|
_
|
|
1653
|
-
),
|
|
1654
|
-
k || (R(
|
|
1655
|
-
},
|
|
1656
|
-
if (
|
|
1657
|
-
|
|
1658
|
-
const F = !
|
|
1659
|
-
R(F),
|
|
1653
|
+
), q = (j) => {
|
|
1654
|
+
k || (R(j.target.checked), w == null || w(j.target.checked, j));
|
|
1655
|
+
}, W = (j) => {
|
|
1656
|
+
if (j.key === "Enter" && !k) {
|
|
1657
|
+
j.preventDefault();
|
|
1658
|
+
const F = !A;
|
|
1659
|
+
R(F), w == null || w(F);
|
|
1660
1660
|
}
|
|
1661
|
-
},
|
|
1662
|
-
|
|
1663
|
-
},
|
|
1661
|
+
}, O = (j) => {
|
|
1662
|
+
v || j.preventDefault();
|
|
1663
|
+
}, m = (j) => j.stopPropagation();
|
|
1664
1664
|
return /* @__PURE__ */ o.jsxs(
|
|
1665
1665
|
"label",
|
|
1666
1666
|
{
|
|
1667
|
-
className:
|
|
1667
|
+
className: N,
|
|
1668
1668
|
htmlFor: a,
|
|
1669
|
-
style:
|
|
1670
|
-
"data-testid":
|
|
1671
|
-
"data-clickable-label":
|
|
1669
|
+
style: h,
|
|
1670
|
+
"data-testid": C,
|
|
1671
|
+
"data-clickable-label": v,
|
|
1672
1672
|
children: [
|
|
1673
|
-
/* @__PURE__ */ o.jsx("div", { className:
|
|
1673
|
+
/* @__PURE__ */ o.jsx("div", { className: he.checkboxWrapper, children: /* @__PURE__ */ o.jsxs(
|
|
1674
1674
|
"div",
|
|
1675
1675
|
{
|
|
1676
|
-
tabIndex:
|
|
1677
|
-
className:
|
|
1678
|
-
style:
|
|
1679
|
-
onKeyDown:
|
|
1680
|
-
"aria-checked":
|
|
1676
|
+
tabIndex: E || 0,
|
|
1677
|
+
className: U,
|
|
1678
|
+
style: b,
|
|
1679
|
+
onKeyDown: W,
|
|
1680
|
+
"aria-checked": A,
|
|
1681
1681
|
"aria-disabled": k,
|
|
1682
|
-
"aria-invalid":
|
|
1682
|
+
"aria-invalid": $,
|
|
1683
1683
|
"aria-describedby": p ? `${a}-error` : void 0,
|
|
1684
|
-
"data-testid": `${
|
|
1684
|
+
"data-testid": `${C}-label`,
|
|
1685
1685
|
children: [
|
|
1686
1686
|
/* @__PURE__ */ o.jsx(
|
|
1687
1687
|
"input",
|
|
@@ -1690,15 +1690,15 @@ const yr = 3, mr = (t) => {
|
|
|
1690
1690
|
type: "checkbox",
|
|
1691
1691
|
id: a,
|
|
1692
1692
|
name: a,
|
|
1693
|
-
checked:
|
|
1693
|
+
checked: A,
|
|
1694
1694
|
disabled: k,
|
|
1695
|
-
className:
|
|
1696
|
-
onChange:
|
|
1697
|
-
onClick:
|
|
1698
|
-
"aria-checked":
|
|
1699
|
-
"aria-invalid":
|
|
1695
|
+
className: he.input,
|
|
1696
|
+
onChange: q,
|
|
1697
|
+
onClick: m,
|
|
1698
|
+
"aria-checked": A,
|
|
1699
|
+
"aria-invalid": $,
|
|
1700
1700
|
"aria-describedby": p ? `${a}-error` : void 0,
|
|
1701
|
-
"data-testid": `${
|
|
1701
|
+
"data-testid": `${C}-input`
|
|
1702
1702
|
}
|
|
1703
1703
|
),
|
|
1704
1704
|
/* @__PURE__ */ o.jsx(
|
|
@@ -1706,23 +1706,23 @@ const yr = 3, mr = (t) => {
|
|
|
1706
1706
|
{
|
|
1707
1707
|
name: a,
|
|
1708
1708
|
size: i,
|
|
1709
|
-
isChecked:
|
|
1709
|
+
isChecked: A,
|
|
1710
1710
|
isDisabled: k,
|
|
1711
1711
|
indeterminate: n,
|
|
1712
|
-
dataTestId:
|
|
1712
|
+
dataTestId: C
|
|
1713
1713
|
}
|
|
1714
1714
|
)
|
|
1715
1715
|
]
|
|
1716
1716
|
}
|
|
1717
1717
|
) }),
|
|
1718
|
-
|
|
1718
|
+
y && /* @__PURE__ */ o.jsx(
|
|
1719
1719
|
"span",
|
|
1720
1720
|
{
|
|
1721
|
-
"data-testid": `${
|
|
1722
|
-
"data-clickable-label":
|
|
1723
|
-
className:
|
|
1724
|
-
onClick:
|
|
1725
|
-
children:
|
|
1721
|
+
"data-testid": `${C}-label-text`,
|
|
1722
|
+
"data-clickable-label": v,
|
|
1723
|
+
className: he.label,
|
|
1724
|
+
onClick: O,
|
|
1725
|
+
children: y
|
|
1726
1726
|
}
|
|
1727
1727
|
)
|
|
1728
1728
|
]
|
|
@@ -1764,17 +1764,17 @@ const yr = 3, mr = (t) => {
|
|
|
1764
1764
|
disabled: d = !1,
|
|
1765
1765
|
typographyStyle: f = "primary",
|
|
1766
1766
|
..._
|
|
1767
|
-
},
|
|
1768
|
-
const
|
|
1767
|
+
}, h) => {
|
|
1768
|
+
const b = c || Us[a], y = B(
|
|
1769
1769
|
je.typography,
|
|
1770
|
-
|
|
1770
|
+
Ne[`typography-${t}-${a}-${p}`],
|
|
1771
1771
|
je[f],
|
|
1772
1772
|
{
|
|
1773
1773
|
[je.disabled]: d
|
|
1774
1774
|
},
|
|
1775
1775
|
i
|
|
1776
1776
|
);
|
|
1777
|
-
return s ? /* @__PURE__ */ o.jsx(
|
|
1777
|
+
return s ? /* @__PURE__ */ o.jsx(b, { ref: h, className: y, "data-testid": n, ..._, children: s }) : null;
|
|
1778
1778
|
}
|
|
1779
1779
|
);
|
|
1780
1780
|
return r.displayName = `Typography.${t === "title" ? "Title" : "Subtitle"}`, r;
|
|
@@ -1790,10 +1790,10 @@ const yr = 3, mr = (t) => {
|
|
|
1790
1790
|
disabled: d = !1,
|
|
1791
1791
|
typographyStyle: f = "primary",
|
|
1792
1792
|
..._
|
|
1793
|
-
},
|
|
1794
|
-
const
|
|
1793
|
+
}, h) => {
|
|
1794
|
+
const b = c, y = B(
|
|
1795
1795
|
je.typography,
|
|
1796
|
-
|
|
1796
|
+
Ne[`typography-${t}-${a}-${p}`],
|
|
1797
1797
|
je[f],
|
|
1798
1798
|
{
|
|
1799
1799
|
[je.disabled]: d
|
|
@@ -1801,10 +1801,10 @@ const yr = 3, mr = (t) => {
|
|
|
1801
1801
|
i
|
|
1802
1802
|
);
|
|
1803
1803
|
return s ? /* @__PURE__ */ o.jsx(
|
|
1804
|
-
|
|
1804
|
+
b,
|
|
1805
1805
|
{
|
|
1806
|
-
ref:
|
|
1807
|
-
className:
|
|
1806
|
+
ref: h,
|
|
1807
|
+
className: y,
|
|
1808
1808
|
"data-testid": n,
|
|
1809
1809
|
..._,
|
|
1810
1810
|
children: s
|
|
@@ -1818,10 +1818,10 @@ const yr = 3, mr = (t) => {
|
|
|
1818
1818
|
Subtitle: xt("subtitle"),
|
|
1819
1819
|
Label: Ct("label"),
|
|
1820
1820
|
Paragraph: Ct("paragraph")
|
|
1821
|
-
}, Bs = "
|
|
1821
|
+
}, Bs = "_inputBase_2vlla_85", Fs = "_wrapper_2vlla_95", Ps = "_gripHandle_2vlla_169", zs = "_error_2vlla_230", Ws = "_tabFocused_2vlla_237", Vs = "_disabled_2vlla_262", Hs = "_loading_2vlla_269", qs = "_label_2vlla_279", Gs = "_small_2vlla_292", Zs = "_large_2vlla_299", Ys = "_leftSection_2vlla_306", Js = "_rightSection_2vlla_315", Ks = "_helper_2vlla_351", Xs = "_floatingLabel_2vlla_376", Qs = "_focused_2vlla_434", en = "_filled_2vlla_435", tn = "_medium_2vlla_469", an = "_characterLimit_2vlla_510", rn = "_input_2vlla_85", sn = "_textarea_2vlla_109", nn = "_truncate_2vlla_637", on = "_hint_2vlla_719", M = {
|
|
1822
1822
|
inputBase: Bs,
|
|
1823
1823
|
wrapper: Fs,
|
|
1824
|
-
"textarea-wrapper": "_textarea-
|
|
1824
|
+
"textarea-wrapper": "_textarea-wrapper_2vlla_109",
|
|
1825
1825
|
gripHandle: Ps,
|
|
1826
1826
|
error: zs,
|
|
1827
1827
|
tabFocused: Ws,
|
|
@@ -1840,13 +1840,15 @@ const yr = 3, mr = (t) => {
|
|
|
1840
1840
|
characterLimit: an,
|
|
1841
1841
|
input: rn,
|
|
1842
1842
|
textarea: sn,
|
|
1843
|
-
"size-small": "_size-
|
|
1844
|
-
"size-medium": "_size-
|
|
1845
|
-
"size-large": "_size-
|
|
1846
|
-
"with-floating-label": "_with-floating-
|
|
1843
|
+
"size-small": "_size-small_2vlla_586",
|
|
1844
|
+
"size-medium": "_size-medium_2vlla_592",
|
|
1845
|
+
"size-large": "_size-large_2vlla_598",
|
|
1846
|
+
"with-floating-label": "_with-floating-label_2vlla_605",
|
|
1847
1847
|
truncate: nn,
|
|
1848
1848
|
hint: on,
|
|
1849
|
-
"has-hint": "_has-
|
|
1849
|
+
"has-hint": "_has-hint_2vlla_736",
|
|
1850
|
+
"has-suffix": "_has-suffix_2vlla_742",
|
|
1851
|
+
"has-limit": "_has-limit_2vlla_748"
|
|
1850
1852
|
}, ln = ({
|
|
1851
1853
|
width: t = 8,
|
|
1852
1854
|
height: r = 8,
|
|
@@ -1915,8 +1917,8 @@ const yr = 3, mr = (t) => {
|
|
|
1915
1917
|
}
|
|
1916
1918
|
);
|
|
1917
1919
|
}, cn = (t, r) => {
|
|
1918
|
-
const a =
|
|
1919
|
-
return
|
|
1920
|
+
const a = We(null), s = We(null);
|
|
1921
|
+
return Ee(() => {
|
|
1920
1922
|
const i = r === "textarea" ? a.current : s.current;
|
|
1921
1923
|
i && i.value !== t && (i.value = t || "");
|
|
1922
1924
|
}, [t, r]), {
|
|
@@ -1934,25 +1936,25 @@ const yr = 3, mr = (t) => {
|
|
|
1934
1936
|
const c = a.current.closest(`.${M.wrapper}`);
|
|
1935
1937
|
c && (c.setAttribute("data-resize", "hug"), c.setAttribute("data-show-grip", "false"));
|
|
1936
1938
|
};
|
|
1937
|
-
return
|
|
1939
|
+
return Ee(s, [t, r]), Ee(() => {
|
|
1938
1940
|
r === "hug" && a.current && s();
|
|
1939
1941
|
}, []), { resizeTextArea: s };
|
|
1940
|
-
}, un = (t, r, a, s) => ({ handleGripMouseDown:
|
|
1942
|
+
}, un = (t, r, a, s) => ({ handleGripMouseDown: Se(
|
|
1941
1943
|
(n) => {
|
|
1942
1944
|
if (!t || r || a || !(s === "fixed" || !s)) return;
|
|
1943
1945
|
n.preventDefault(), n.stopPropagation();
|
|
1944
1946
|
const c = n.currentTarget.closest(`.${M.wrapper}`);
|
|
1945
1947
|
if (!c) return;
|
|
1946
|
-
const p = n.clientY, d = c.clientHeight, f = (
|
|
1947
|
-
const
|
|
1948
|
-
c.style.height = `${
|
|
1948
|
+
const p = n.clientY, d = c.clientHeight, f = (h) => {
|
|
1949
|
+
const b = h.clientY - p, y = Math.min(100, d), v = Math.max(y, d + b);
|
|
1950
|
+
c.style.height = `${v}px`;
|
|
1949
1951
|
}, _ = () => {
|
|
1950
1952
|
document.removeEventListener("mousemove", f), document.removeEventListener("mouseup", _);
|
|
1951
1953
|
};
|
|
1952
1954
|
document.addEventListener("mousemove", f), document.addEventListener("mouseup", _);
|
|
1953
1955
|
},
|
|
1954
1956
|
[t, r, a, s]
|
|
1955
|
-
) }), wt = 30, _n =
|
|
1957
|
+
) }), wt = 30, _n = te(
|
|
1956
1958
|
({
|
|
1957
1959
|
component: t = "input",
|
|
1958
1960
|
size: r = "medium",
|
|
@@ -1963,75 +1965,78 @@ const yr = 3, mr = (t) => {
|
|
|
1963
1965
|
onFocus: c,
|
|
1964
1966
|
onBlur: p,
|
|
1965
1967
|
onChange: d,
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1968
|
+
onKeyDown: f,
|
|
1969
|
+
onKeyUp: _,
|
|
1970
|
+
maxLength: h,
|
|
1971
|
+
className: b,
|
|
1972
|
+
style: y,
|
|
1973
|
+
truncate: v = !1,
|
|
1974
|
+
shouldShowFloatingLabelClass: E = !1,
|
|
1972
1975
|
"aria-invalid": w,
|
|
1973
1976
|
"aria-errormessage": C,
|
|
1974
|
-
id:
|
|
1975
|
-
resize:
|
|
1976
|
-
...
|
|
1977
|
-
},
|
|
1978
|
-
const { textareaRef:
|
|
1979
|
-
if (dn(a,
|
|
1977
|
+
id: g,
|
|
1978
|
+
resize: R,
|
|
1979
|
+
...D
|
|
1980
|
+
}, k) => {
|
|
1981
|
+
const { textareaRef: $, inputRef: A, currentRef: N } = cn(a, t);
|
|
1982
|
+
if (dn(a, R, $), oa(k, () => N.current, [N]), t === "textarea")
|
|
1980
1983
|
return /* @__PURE__ */ o.jsx(
|
|
1981
1984
|
"textarea",
|
|
1982
1985
|
{
|
|
1983
|
-
ref:
|
|
1984
|
-
id:
|
|
1986
|
+
ref: $,
|
|
1987
|
+
id: g,
|
|
1985
1988
|
value: a,
|
|
1986
1989
|
placeholder: s,
|
|
1987
1990
|
disabled: i || n,
|
|
1988
1991
|
onFocus: c,
|
|
1989
1992
|
onBlur: p,
|
|
1990
1993
|
onChange: d,
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
+
onKeyDown: f,
|
|
1995
|
+
onKeyUp: _,
|
|
1996
|
+
maxLength: h,
|
|
1997
|
+
className: B(
|
|
1994
1998
|
M.textarea,
|
|
1995
1999
|
M[`size-${r}`],
|
|
1996
|
-
|
|
1997
|
-
|
|
2000
|
+
E && M["with-floating-label"],
|
|
2001
|
+
b
|
|
1998
2002
|
),
|
|
1999
|
-
style:
|
|
2003
|
+
style: y,
|
|
2000
2004
|
"aria-invalid": w,
|
|
2001
2005
|
"aria-errormessage": C,
|
|
2002
|
-
"aria-describedby": C ? `${
|
|
2006
|
+
"aria-describedby": C ? `${g}-error` : void 0,
|
|
2003
2007
|
tabIndex: 0,
|
|
2004
|
-
"data-resize":
|
|
2005
|
-
...
|
|
2008
|
+
"data-resize": R,
|
|
2009
|
+
...D
|
|
2006
2010
|
}
|
|
2007
2011
|
);
|
|
2008
2012
|
if (t === "input")
|
|
2009
2013
|
return /* @__PURE__ */ o.jsx(
|
|
2010
2014
|
"input",
|
|
2011
2015
|
{
|
|
2012
|
-
ref:
|
|
2013
|
-
id:
|
|
2016
|
+
ref: A,
|
|
2017
|
+
id: g,
|
|
2014
2018
|
value: a,
|
|
2015
2019
|
placeholder: s,
|
|
2016
2020
|
disabled: i || n,
|
|
2017
2021
|
onFocus: c,
|
|
2018
2022
|
onBlur: p,
|
|
2019
2023
|
onChange: d,
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2024
|
+
onKeyDown: f,
|
|
2025
|
+
onKeyUp: _,
|
|
2026
|
+
maxLength: h,
|
|
2027
|
+
className: B(
|
|
2023
2028
|
M.input,
|
|
2024
2029
|
M[`size-${r}`],
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2030
|
+
E && M["with-floating-label"],
|
|
2031
|
+
v && M.truncate,
|
|
2032
|
+
b
|
|
2028
2033
|
),
|
|
2029
|
-
style:
|
|
2034
|
+
style: y,
|
|
2030
2035
|
"aria-invalid": w,
|
|
2031
2036
|
"aria-errormessage": C,
|
|
2032
|
-
"aria-describedby": C ? `${
|
|
2037
|
+
"aria-describedby": C ? `${g}-error` : void 0,
|
|
2033
2038
|
tabIndex: 0,
|
|
2034
|
-
...
|
|
2039
|
+
...D
|
|
2035
2040
|
}
|
|
2036
2041
|
);
|
|
2037
2042
|
if (t !== "input" && t !== "textarea")
|
|
@@ -2039,7 +2044,7 @@ const yr = 3, mr = (t) => {
|
|
|
2039
2044
|
`[Input] Недопустимое значение prop 'component': "${String(t)}". Допустимые значения: 'input', 'textarea'`
|
|
2040
2045
|
), null;
|
|
2041
2046
|
}
|
|
2042
|
-
), Tt =
|
|
2047
|
+
), Tt = te(
|
|
2043
2048
|
({
|
|
2044
2049
|
children: t,
|
|
2045
2050
|
size: r = "medium",
|
|
@@ -2052,100 +2057,112 @@ const yr = 3, mr = (t) => {
|
|
|
2052
2057
|
floatingLabelStyles: d,
|
|
2053
2058
|
prefixStyles: f,
|
|
2054
2059
|
suffixStyles: _,
|
|
2055
|
-
labelProps:
|
|
2056
|
-
helperProps:
|
|
2057
|
-
showLimit:
|
|
2058
|
-
maxLength:
|
|
2059
|
-
hint:
|
|
2060
|
-
showHint:
|
|
2061
|
-
showHintOnEmpty:
|
|
2062
|
-
prefix:
|
|
2060
|
+
labelProps: h,
|
|
2061
|
+
helperProps: b,
|
|
2062
|
+
showLimit: y = !1,
|
|
2063
|
+
maxLength: v,
|
|
2064
|
+
hint: E,
|
|
2065
|
+
showHint: w = !1,
|
|
2066
|
+
showHintOnEmpty: C = !1,
|
|
2067
|
+
prefix: g,
|
|
2063
2068
|
suffix: R,
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2069
|
+
onSuffixClick: D,
|
|
2070
|
+
placeholder: k,
|
|
2071
|
+
showLabel: $ = !0,
|
|
2072
|
+
labelClassName: A,
|
|
2073
|
+
hasValue: N = !1,
|
|
2074
|
+
helper: U,
|
|
2075
|
+
id: q,
|
|
2070
2076
|
value: W = "",
|
|
2071
|
-
resize:
|
|
2072
|
-
showGrip:
|
|
2073
|
-
...
|
|
2074
|
-
},
|
|
2075
|
-
const
|
|
2077
|
+
resize: O,
|
|
2078
|
+
showGrip: m = !1,
|
|
2079
|
+
...j
|
|
2080
|
+
}, F) => {
|
|
2081
|
+
const G = $t(), H = q || G, Q = w && E && (N || C), ae = E && E.length > wt ? E.substring(0, wt) + "..." : E, J = B(
|
|
2076
2082
|
M.wrapper,
|
|
2077
2083
|
a && M.error,
|
|
2078
2084
|
s && M.disabled,
|
|
2079
2085
|
i && M.loading,
|
|
2080
|
-
|
|
2086
|
+
Q && M["has-hint"],
|
|
2087
|
+
R && M["has-suffix"],
|
|
2088
|
+
y && M["has-limit"],
|
|
2081
2089
|
n
|
|
2082
|
-
),
|
|
2090
|
+
), re = B(
|
|
2083
2091
|
M.floatingLabel,
|
|
2084
2092
|
M[r],
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
), { handleGripMouseDown:
|
|
2088
|
-
return /* @__PURE__ */ o.jsxs("div", { ref:
|
|
2093
|
+
N && M.filled,
|
|
2094
|
+
A
|
|
2095
|
+
), { handleGripMouseDown: se } = un(m, s, i, O);
|
|
2096
|
+
return /* @__PURE__ */ o.jsxs("div", { ref: F, className: M.inputBase, "data-testid": "input-base-wrapper", ...j, children: [
|
|
2089
2097
|
/* @__PURE__ */ o.jsxs(
|
|
2090
2098
|
"div",
|
|
2091
2099
|
{
|
|
2092
|
-
className:
|
|
2100
|
+
className: J,
|
|
2093
2101
|
style: p,
|
|
2094
|
-
"data-resize":
|
|
2095
|
-
"data-show-grip":
|
|
2102
|
+
"data-resize": O,
|
|
2103
|
+
"data-show-grip": m ? "true" : "false",
|
|
2096
2104
|
...c,
|
|
2097
2105
|
children: [
|
|
2098
|
-
|
|
2099
|
-
R && /* @__PURE__ */ o.jsx(
|
|
2100
|
-
D && k && /* @__PURE__ */ o.jsx(
|
|
2106
|
+
g && /* @__PURE__ */ o.jsx("label", { htmlFor: H, className: M.leftSection, style: f, children: g }),
|
|
2107
|
+
R && /* @__PURE__ */ o.jsx(
|
|
2101
2108
|
"label",
|
|
2102
2109
|
{
|
|
2103
2110
|
htmlFor: H,
|
|
2104
|
-
className:
|
|
2111
|
+
className: M.rightSection,
|
|
2112
|
+
style: _,
|
|
2113
|
+
onClick: D,
|
|
2114
|
+
children: R
|
|
2115
|
+
}
|
|
2116
|
+
),
|
|
2117
|
+
k && $ && /* @__PURE__ */ o.jsx(
|
|
2118
|
+
"label",
|
|
2119
|
+
{
|
|
2120
|
+
htmlFor: H,
|
|
2121
|
+
className: re,
|
|
2105
2122
|
style: d,
|
|
2106
|
-
...
|
|
2107
|
-
children:
|
|
2123
|
+
...h,
|
|
2124
|
+
children: k
|
|
2108
2125
|
}
|
|
2109
2126
|
),
|
|
2110
2127
|
t,
|
|
2111
|
-
|
|
2128
|
+
m && !y && (O === "fixed" || !O) && /* @__PURE__ */ o.jsx(
|
|
2112
2129
|
"div",
|
|
2113
2130
|
{
|
|
2114
2131
|
className: M.gripHandle,
|
|
2115
|
-
onMouseDown:
|
|
2132
|
+
onMouseDown: se,
|
|
2116
2133
|
role: "button",
|
|
2117
2134
|
tabIndex: -1,
|
|
2118
2135
|
"aria-label": "Изменить размер",
|
|
2119
2136
|
children: /* @__PURE__ */ o.jsx(ln, {})
|
|
2120
2137
|
}
|
|
2121
2138
|
),
|
|
2122
|
-
|
|
2139
|
+
Q && /* @__PURE__ */ o.jsx(
|
|
2123
2140
|
"div",
|
|
2124
2141
|
{
|
|
2125
|
-
className:
|
|
2142
|
+
className: B(M.hint, N && M.truncate),
|
|
2126
2143
|
"data-disabled": s || i,
|
|
2127
|
-
children:
|
|
2144
|
+
children: ae
|
|
2128
2145
|
}
|
|
2129
2146
|
),
|
|
2130
|
-
|
|
2147
|
+
y && v && /* @__PURE__ */ o.jsxs("div", { className: M.characterLimit, children: [
|
|
2131
2148
|
(W || "").length,
|
|
2132
2149
|
" из ",
|
|
2133
|
-
|
|
2150
|
+
v
|
|
2134
2151
|
] })
|
|
2135
2152
|
]
|
|
2136
2153
|
}
|
|
2137
2154
|
),
|
|
2138
|
-
|
|
2155
|
+
U && /* @__PURE__ */ o.jsx(
|
|
2139
2156
|
"div",
|
|
2140
2157
|
{
|
|
2141
|
-
className:
|
|
2158
|
+
className: B(
|
|
2142
2159
|
M.helper,
|
|
2143
2160
|
a && M.error,
|
|
2144
2161
|
(s || i) && M.disabled
|
|
2145
2162
|
),
|
|
2146
|
-
...
|
|
2163
|
+
...b,
|
|
2147
2164
|
id: a ? `${H}-error` : void 0,
|
|
2148
|
-
children:
|
|
2165
|
+
children: U
|
|
2149
2166
|
}
|
|
2150
2167
|
)
|
|
2151
2168
|
] });
|
|
@@ -2154,7 +2171,7 @@ const yr = 3, mr = (t) => {
|
|
|
2154
2171
|
Tt.displayName = "InputWrapperComponent";
|
|
2155
2172
|
const St = Object.assign(_n, {
|
|
2156
2173
|
Wrapper: Tt
|
|
2157
|
-
}), At =
|
|
2174
|
+
}), At = te(
|
|
2158
2175
|
({
|
|
2159
2176
|
component: t = "input",
|
|
2160
2177
|
size: r = "medium",
|
|
@@ -2167,171 +2184,175 @@ const St = Object.assign(_n, {
|
|
|
2167
2184
|
labelClassName: d,
|
|
2168
2185
|
helper: f,
|
|
2169
2186
|
prefix: _,
|
|
2170
|
-
suffix:
|
|
2171
|
-
id:
|
|
2172
|
-
onFocus:
|
|
2173
|
-
onBlur:
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2187
|
+
suffix: h,
|
|
2188
|
+
id: b,
|
|
2189
|
+
onFocus: y,
|
|
2190
|
+
onBlur: v,
|
|
2191
|
+
onKeyDown: E,
|
|
2192
|
+
onSuffixClick: w,
|
|
2193
|
+
onChange: C,
|
|
2194
|
+
value: g = "",
|
|
2195
|
+
wrapperProps: R,
|
|
2196
|
+
wrapperStyles: D,
|
|
2197
|
+
floatingLabelStyles: k,
|
|
2198
|
+
prefixStyles: $,
|
|
2199
|
+
suffixStyles: A,
|
|
2200
|
+
textareaStyles: N,
|
|
2201
|
+
labelProps: U,
|
|
2202
|
+
helperProps: q,
|
|
2203
|
+
showLimit: W = !1,
|
|
2204
|
+
maxLength: O,
|
|
2205
|
+
inputProps: m,
|
|
2206
|
+
hint: j,
|
|
2207
|
+
showHint: F = !1,
|
|
2208
|
+
showHintOnEmpty: G = !1,
|
|
2209
|
+
truncate: H = !1,
|
|
2210
|
+
resize: Q,
|
|
2211
|
+
showGrip: ae = !1,
|
|
2212
|
+
...J
|
|
2213
|
+
}, re) => {
|
|
2214
|
+
const se = $t(), de = b || se, [ve, ie] = De(g), ye = g !== void 0 ? g : ve, ue = (ye || "").length > 0, le = ye || "", _e = p && (r === "large" || t === "textarea") && !_, xe = Se(
|
|
2215
|
+
(Z) => {
|
|
2216
|
+
var Y;
|
|
2217
|
+
i || n || (y == null || y(), (Y = m == null ? void 0 : m.onFocus) == null || Y.call(
|
|
2218
|
+
m,
|
|
2219
|
+
Z
|
|
2201
2220
|
));
|
|
2202
2221
|
},
|
|
2203
|
-
[
|
|
2204
|
-
),
|
|
2205
|
-
(
|
|
2206
|
-
var
|
|
2207
|
-
if (
|
|
2208
|
-
const ce =
|
|
2222
|
+
[y, m, i, n]
|
|
2223
|
+
), Oe = Se(
|
|
2224
|
+
(Z) => {
|
|
2225
|
+
var Y;
|
|
2226
|
+
if (Z.key === "Tab") {
|
|
2227
|
+
const ce = Z.target.closest(`.${M.wrapper}`);
|
|
2209
2228
|
ce && ce.classList.add(M.tabFocused);
|
|
2210
2229
|
}
|
|
2211
|
-
(
|
|
2212
|
-
|
|
2213
|
-
|
|
2230
|
+
(Y = m == null ? void 0 : m.onKeyUp) == null || Y.call(
|
|
2231
|
+
m,
|
|
2232
|
+
Z
|
|
2214
2233
|
);
|
|
2215
2234
|
},
|
|
2216
|
-
[
|
|
2217
|
-
),
|
|
2218
|
-
(
|
|
2235
|
+
[m]
|
|
2236
|
+
), Ve = Se(
|
|
2237
|
+
(Z) => {
|
|
2219
2238
|
var ce;
|
|
2220
|
-
const
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2239
|
+
const Y = Z.target.closest(`.${M.wrapper}`);
|
|
2240
|
+
Y && Y.classList.remove(M.tabFocused), v == null || v(), (ce = m == null ? void 0 : m.onBlur) == null || ce.call(
|
|
2241
|
+
m,
|
|
2242
|
+
Z
|
|
2224
2243
|
);
|
|
2225
2244
|
},
|
|
2226
|
-
[
|
|
2227
|
-
),
|
|
2228
|
-
(
|
|
2245
|
+
[v, m]
|
|
2246
|
+
), He = Se(
|
|
2247
|
+
(Z) => {
|
|
2229
2248
|
var ce;
|
|
2230
2249
|
if (i || n) return;
|
|
2231
|
-
const
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2250
|
+
const Y = Z.target.value;
|
|
2251
|
+
ie(Y), C == null || C(Y, Z), (ce = m == null ? void 0 : m.onChange) == null || ce.call(
|
|
2252
|
+
m,
|
|
2253
|
+
Z
|
|
2235
2254
|
);
|
|
2236
2255
|
},
|
|
2237
|
-
[
|
|
2256
|
+
[C, m, i, n]
|
|
2238
2257
|
);
|
|
2239
|
-
return
|
|
2240
|
-
|
|
2241
|
-
}, [
|
|
2258
|
+
return Ee(() => {
|
|
2259
|
+
ie(g || "");
|
|
2260
|
+
}, [g]), /* @__PURE__ */ o.jsx(
|
|
2242
2261
|
St.Wrapper,
|
|
2243
2262
|
{
|
|
2244
|
-
ref:
|
|
2263
|
+
ref: re,
|
|
2245
2264
|
size: r,
|
|
2246
2265
|
error: s,
|
|
2247
2266
|
disabled: i || n,
|
|
2248
2267
|
loading: n,
|
|
2249
|
-
className:
|
|
2250
|
-
wrapperProps:
|
|
2251
|
-
wrapperStyles:
|
|
2252
|
-
floatingLabelStyles:
|
|
2253
|
-
prefixStyles:
|
|
2254
|
-
suffixStyles:
|
|
2255
|
-
labelProps:
|
|
2256
|
-
helperProps:
|
|
2257
|
-
showLimit:
|
|
2258
|
-
maxLength:
|
|
2259
|
-
hint:
|
|
2260
|
-
showHint:
|
|
2261
|
-
showHintOnEmpty:
|
|
2268
|
+
className: B(a, t === "textarea" && M["textarea-wrapper"]),
|
|
2269
|
+
wrapperProps: R,
|
|
2270
|
+
wrapperStyles: D,
|
|
2271
|
+
floatingLabelStyles: k,
|
|
2272
|
+
prefixStyles: $,
|
|
2273
|
+
suffixStyles: A,
|
|
2274
|
+
labelProps: U,
|
|
2275
|
+
helperProps: q,
|
|
2276
|
+
showLimit: W,
|
|
2277
|
+
maxLength: O,
|
|
2278
|
+
hint: j,
|
|
2279
|
+
showHint: F,
|
|
2280
|
+
showHintOnEmpty: G,
|
|
2262
2281
|
prefix: _,
|
|
2263
|
-
suffix:
|
|
2282
|
+
suffix: h,
|
|
2283
|
+
onSuffixClick: w,
|
|
2264
2284
|
placeholder: c,
|
|
2265
2285
|
showLabel: p,
|
|
2266
2286
|
labelClassName: d,
|
|
2267
|
-
hasValue:
|
|
2287
|
+
hasValue: ue,
|
|
2268
2288
|
helper: f,
|
|
2269
|
-
id:
|
|
2270
|
-
value:
|
|
2271
|
-
showGrip:
|
|
2272
|
-
resize:
|
|
2273
|
-
...
|
|
2289
|
+
id: de,
|
|
2290
|
+
value: le,
|
|
2291
|
+
showGrip: ae,
|
|
2292
|
+
resize: Q,
|
|
2293
|
+
...J,
|
|
2274
2294
|
children: /* @__PURE__ */ o.jsx(
|
|
2275
2295
|
St,
|
|
2276
2296
|
{
|
|
2277
2297
|
component: t,
|
|
2278
2298
|
size: r,
|
|
2279
|
-
value:
|
|
2299
|
+
value: le,
|
|
2280
2300
|
placeholder: c,
|
|
2281
2301
|
disabled: i,
|
|
2282
2302
|
loading: n,
|
|
2283
|
-
onFocus:
|
|
2284
|
-
onBlur:
|
|
2285
|
-
onChange:
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2303
|
+
onFocus: xe,
|
|
2304
|
+
onBlur: Ve,
|
|
2305
|
+
onChange: He,
|
|
2306
|
+
onKeyDown: E,
|
|
2307
|
+
onKeyUp: Oe,
|
|
2308
|
+
maxLength: O,
|
|
2309
|
+
truncate: H,
|
|
2310
|
+
"data-empty": !ue,
|
|
2311
|
+
shouldShowFloatingLabelClass: _e,
|
|
2312
|
+
style: t === "textarea" ? N : void 0,
|
|
2292
2313
|
"aria-invalid": !!s,
|
|
2293
|
-
"aria-errormessage": s ? `${
|
|
2294
|
-
id:
|
|
2295
|
-
resize:
|
|
2296
|
-
...
|
|
2314
|
+
"aria-errormessage": s ? `${de}-error` : void 0,
|
|
2315
|
+
id: de,
|
|
2316
|
+
resize: Q,
|
|
2317
|
+
...m
|
|
2297
2318
|
}
|
|
2298
2319
|
)
|
|
2299
2320
|
}
|
|
2300
2321
|
);
|
|
2301
2322
|
}
|
|
2302
|
-
),
|
|
2323
|
+
), X = {
|
|
2303
2324
|
SMALL: "small",
|
|
2304
2325
|
MEDIUM: "medium",
|
|
2305
2326
|
LARGE: "large"
|
|
2306
2327
|
}, pn = (t, r, a, s) => {
|
|
2307
2328
|
switch (t) {
|
|
2308
|
-
case
|
|
2329
|
+
case X.LARGE:
|
|
2309
2330
|
return r && a ? "8px 16px 8px 16px" : "16px 16px 16px 16px";
|
|
2310
|
-
case
|
|
2331
|
+
case X.MEDIUM:
|
|
2311
2332
|
return s ? "12px 12px 12px 12px" : "12px 12px 12px 16px";
|
|
2312
|
-
case
|
|
2333
|
+
case X.SMALL:
|
|
2313
2334
|
return "10px 12px 10px 12px";
|
|
2314
2335
|
default:
|
|
2315
2336
|
return "12px 16px 12px 16px";
|
|
2316
2337
|
}
|
|
2317
2338
|
}, fn = (t) => {
|
|
2318
2339
|
switch (t) {
|
|
2319
|
-
case
|
|
2340
|
+
case X.LARGE:
|
|
2320
2341
|
return "56px";
|
|
2321
|
-
case
|
|
2342
|
+
case X.MEDIUM:
|
|
2322
2343
|
return "48px";
|
|
2323
|
-
case
|
|
2344
|
+
case X.SMALL:
|
|
2324
2345
|
return "40px";
|
|
2325
2346
|
default:
|
|
2326
2347
|
return "48px";
|
|
2327
2348
|
}
|
|
2328
2349
|
}, gn = (t) => {
|
|
2329
2350
|
switch (t) {
|
|
2330
|
-
case
|
|
2351
|
+
case X.SMALL:
|
|
2331
2352
|
return 8;
|
|
2332
2353
|
// 8px для small
|
|
2333
|
-
case
|
|
2334
|
-
case
|
|
2354
|
+
case X.MEDIUM:
|
|
2355
|
+
case X.LARGE:
|
|
2335
2356
|
return 12;
|
|
2336
2357
|
// 12px для medium и large
|
|
2337
2358
|
default:
|
|
@@ -2390,11 +2411,11 @@ const St = Object.assign(_n, {
|
|
|
2390
2411
|
}), mn = (t, r, a, s) => {
|
|
2391
2412
|
const i = fn(t), n = pn(t, r, a, s), c = gn(t);
|
|
2392
2413
|
switch (t) {
|
|
2393
|
-
case
|
|
2414
|
+
case X.LARGE:
|
|
2394
2415
|
return hn(i, n, c);
|
|
2395
|
-
case
|
|
2416
|
+
case X.MEDIUM:
|
|
2396
2417
|
return bn(i, n, c);
|
|
2397
|
-
case
|
|
2418
|
+
case X.SMALL:
|
|
2398
2419
|
return yn(i, n, c);
|
|
2399
2420
|
default:
|
|
2400
2421
|
return {
|
|
@@ -2404,7 +2425,7 @@ const St = Object.assign(_n, {
|
|
|
2404
2425
|
suffixStyles: {}
|
|
2405
2426
|
};
|
|
2406
2427
|
}
|
|
2407
|
-
}, Pn =
|
|
2428
|
+
}, Pn = te(
|
|
2408
2429
|
({
|
|
2409
2430
|
value: t = "",
|
|
2410
2431
|
onChange: r,
|
|
@@ -2414,130 +2435,133 @@ const St = Object.assign(_n, {
|
|
|
2414
2435
|
minLength: n,
|
|
2415
2436
|
autoComplete: c,
|
|
2416
2437
|
autoFocus: p,
|
|
2417
|
-
size: d =
|
|
2438
|
+
size: d = X.MEDIUM,
|
|
2418
2439
|
inputProps: f,
|
|
2419
2440
|
error: _,
|
|
2420
|
-
disabled:
|
|
2421
|
-
loading:
|
|
2422
|
-
helper:
|
|
2423
|
-
prefix:
|
|
2424
|
-
suffix:
|
|
2425
|
-
clearable:
|
|
2426
|
-
id:
|
|
2427
|
-
showLabel:
|
|
2441
|
+
disabled: h,
|
|
2442
|
+
loading: b,
|
|
2443
|
+
helper: y,
|
|
2444
|
+
prefix: v,
|
|
2445
|
+
suffix: E,
|
|
2446
|
+
clearable: w = !1,
|
|
2447
|
+
id: C,
|
|
2448
|
+
showLabel: g = !0,
|
|
2428
2449
|
onFocus: R,
|
|
2429
2450
|
onBlur: D,
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2451
|
+
onSuffixClick: k,
|
|
2452
|
+
onClear: $,
|
|
2453
|
+
className: A,
|
|
2454
|
+
truncate: N = !0,
|
|
2455
|
+
hint: U,
|
|
2456
|
+
showHint: q = !1,
|
|
2457
|
+
showHintOnEmpty: W = !1,
|
|
2458
|
+
wrapperProps: O,
|
|
2459
|
+
labelProps: m,
|
|
2460
|
+
helperProps: j,
|
|
2461
|
+
...F
|
|
2462
|
+
}, G) => {
|
|
2463
|
+
const H = (t || "").length > 0, Q = d === X.LARGE, ae = !!v, J = Q && g && !v, re = w && H && !(h || b), se = () => {
|
|
2464
|
+
r == null || r(""), $ == null || $();
|
|
2465
|
+
}, de = re ? /* @__PURE__ */ o.jsx(
|
|
2443
2466
|
kt,
|
|
2444
2467
|
{
|
|
2445
|
-
size: d ===
|
|
2468
|
+
size: d === X.SMALL ? "xs" : "sm",
|
|
2446
2469
|
color: "var(--icon-secondary)",
|
|
2447
|
-
onClick:
|
|
2470
|
+
onClick: se,
|
|
2448
2471
|
style: { cursor: "pointer" },
|
|
2449
2472
|
"data-testid": "x-icon"
|
|
2450
2473
|
}
|
|
2451
|
-
) :
|
|
2474
|
+
) : E, ve = {
|
|
2452
2475
|
type: a,
|
|
2453
2476
|
minLength: n,
|
|
2454
2477
|
autoComplete: c,
|
|
2455
2478
|
autoFocus: p,
|
|
2456
2479
|
...f
|
|
2457
|
-
},
|
|
2480
|
+
}, ie = mn(d, J, H, ae);
|
|
2458
2481
|
return /* @__PURE__ */ o.jsx(
|
|
2459
2482
|
At,
|
|
2460
2483
|
{
|
|
2461
2484
|
size: d,
|
|
2462
2485
|
error: _,
|
|
2463
|
-
disabled:
|
|
2464
|
-
loading:
|
|
2465
|
-
helper:
|
|
2466
|
-
prefix:
|
|
2467
|
-
suffix:
|
|
2468
|
-
id:
|
|
2469
|
-
showLabel:
|
|
2486
|
+
disabled: h || b,
|
|
2487
|
+
loading: b,
|
|
2488
|
+
helper: y,
|
|
2489
|
+
prefix: v,
|
|
2490
|
+
suffix: de,
|
|
2491
|
+
id: C,
|
|
2492
|
+
showLabel: J,
|
|
2470
2493
|
onFocus: R,
|
|
2471
2494
|
onBlur: D,
|
|
2495
|
+
onSuffixClick: k,
|
|
2472
2496
|
onChange: r,
|
|
2473
|
-
value: t
|
|
2497
|
+
value: t,
|
|
2474
2498
|
placeholder: s,
|
|
2475
|
-
className:
|
|
2476
|
-
wrapperStyles:
|
|
2477
|
-
floatingLabelStyles:
|
|
2478
|
-
prefixStyles:
|
|
2479
|
-
suffixStyles:
|
|
2480
|
-
wrapperProps:
|
|
2481
|
-
labelProps:
|
|
2482
|
-
helperProps:
|
|
2499
|
+
className: A,
|
|
2500
|
+
wrapperStyles: ie.wrapperStyles,
|
|
2501
|
+
floatingLabelStyles: ie.floatingLabelStyles,
|
|
2502
|
+
prefixStyles: ie.prefixStyles,
|
|
2503
|
+
suffixStyles: ie.suffixStyles,
|
|
2504
|
+
wrapperProps: O,
|
|
2505
|
+
labelProps: m,
|
|
2506
|
+
helperProps: j,
|
|
2483
2507
|
showLimit: !1,
|
|
2484
2508
|
maxLength: i,
|
|
2485
|
-
inputProps:
|
|
2486
|
-
hint:
|
|
2487
|
-
showHint:
|
|
2488
|
-
showHintOnEmpty:
|
|
2489
|
-
truncate:
|
|
2490
|
-
...
|
|
2509
|
+
inputProps: ve,
|
|
2510
|
+
hint: U,
|
|
2511
|
+
showHint: q,
|
|
2512
|
+
showHintOnEmpty: W,
|
|
2513
|
+
truncate: N,
|
|
2514
|
+
...F
|
|
2491
2515
|
}
|
|
2492
2516
|
);
|
|
2493
2517
|
}
|
|
2494
2518
|
), oe = {
|
|
2495
2519
|
SMALL: "small",
|
|
2496
2520
|
MEDIUM: "medium"
|
|
2497
|
-
},
|
|
2521
|
+
}, ze = {
|
|
2498
2522
|
SMALL: "12px",
|
|
2499
2523
|
MEDIUM: "16px"
|
|
2500
2524
|
}, vn = {
|
|
2501
2525
|
SMALL: "xs",
|
|
2502
2526
|
MEDIUM: "sm"
|
|
2503
|
-
},
|
|
2527
|
+
}, Fe = {
|
|
2504
2528
|
FILL: "fill",
|
|
2505
2529
|
FIXED: "fixed"
|
|
2506
|
-
},
|
|
2530
|
+
}, Xe = {
|
|
2507
2531
|
SMALL: "112px",
|
|
2508
2532
|
MEDIUM: "56px"
|
|
2509
2533
|
}, $e = {
|
|
2510
2534
|
SMALL: "48px",
|
|
2511
2535
|
MEDIUM: "22px"
|
|
2512
|
-
},
|
|
2536
|
+
}, ge = {
|
|
2513
2537
|
SMALL: "12px 12px 12px 12px",
|
|
2514
2538
|
MEDIUM: "16px 16px 16px 16px",
|
|
2515
2539
|
MEDIUM_WITH_PREFIX: "12px 16px 12px 16px",
|
|
2516
2540
|
MEDIUM_FLOATING_LABEL: "8px 16px 8px 16px"
|
|
2517
|
-
},
|
|
2541
|
+
}, be = {
|
|
2518
2542
|
SMALL: 48,
|
|
2519
2543
|
MEDIUM: 56,
|
|
2520
2544
|
LARGE: 112
|
|
2521
2545
|
}, xn = (t, r) => {
|
|
2522
2546
|
if (t === oe.SMALL)
|
|
2523
|
-
return
|
|
2547
|
+
return Xe.SMALL;
|
|
2524
2548
|
if (r)
|
|
2525
2549
|
return `${r}px`;
|
|
2526
2550
|
switch (t) {
|
|
2527
2551
|
case oe.MEDIUM:
|
|
2528
|
-
return
|
|
2552
|
+
return Xe.MEDIUM;
|
|
2529
2553
|
default:
|
|
2530
|
-
return
|
|
2554
|
+
return Xe.MEDIUM;
|
|
2531
2555
|
}
|
|
2532
2556
|
}, Cn = (t, r) => {
|
|
2533
2557
|
if (t === oe.SMALL)
|
|
2534
2558
|
return $e.SMALL;
|
|
2535
2559
|
if (r)
|
|
2536
2560
|
switch (r) {
|
|
2537
|
-
case
|
|
2538
|
-
case
|
|
2561
|
+
case be.SMALL:
|
|
2562
|
+
case be.MEDIUM:
|
|
2539
2563
|
return $e.MEDIUM;
|
|
2540
|
-
case
|
|
2564
|
+
case be.LARGE:
|
|
2541
2565
|
return $e.SMALL;
|
|
2542
2566
|
default:
|
|
2543
2567
|
return $e.MEDIUM;
|
|
@@ -2550,55 +2574,55 @@ const St = Object.assign(_n, {
|
|
|
2550
2574
|
}
|
|
2551
2575
|
}, wn = (t, r, a) => {
|
|
2552
2576
|
if (t === oe.SMALL)
|
|
2553
|
-
return
|
|
2577
|
+
return ge.SMALL;
|
|
2554
2578
|
if (r)
|
|
2555
2579
|
switch (r) {
|
|
2556
|
-
case
|
|
2557
|
-
return
|
|
2558
|
-
case
|
|
2559
|
-
return a ?
|
|
2560
|
-
case
|
|
2561
|
-
return
|
|
2580
|
+
case be.SMALL:
|
|
2581
|
+
return ge.MEDIUM_WITH_PREFIX;
|
|
2582
|
+
case be.MEDIUM:
|
|
2583
|
+
return a ? ge.MEDIUM_FLOATING_LABEL : ge.MEDIUM;
|
|
2584
|
+
case be.LARGE:
|
|
2585
|
+
return ge.MEDIUM;
|
|
2562
2586
|
default:
|
|
2563
|
-
return
|
|
2587
|
+
return ge.MEDIUM;
|
|
2564
2588
|
}
|
|
2565
2589
|
switch (t) {
|
|
2566
2590
|
case oe.MEDIUM:
|
|
2567
|
-
return a ?
|
|
2591
|
+
return a ? ge.MEDIUM_FLOATING_LABEL : ge.MEDIUM;
|
|
2568
2592
|
default:
|
|
2569
|
-
return
|
|
2593
|
+
return ge.MEDIUM;
|
|
2570
2594
|
}
|
|
2571
2595
|
}, Sn = (t, r) => {
|
|
2572
2596
|
if (t === oe.SMALL)
|
|
2573
2597
|
return "small";
|
|
2574
2598
|
if (r)
|
|
2575
2599
|
switch (r) {
|
|
2576
|
-
case
|
|
2600
|
+
case be.SMALL:
|
|
2577
2601
|
return "small";
|
|
2578
|
-
case
|
|
2602
|
+
case be.MEDIUM:
|
|
2579
2603
|
return "medium";
|
|
2580
|
-
case
|
|
2604
|
+
case be.LARGE:
|
|
2581
2605
|
return "medium";
|
|
2582
2606
|
default:
|
|
2583
2607
|
return "medium";
|
|
2584
2608
|
}
|
|
2585
2609
|
return t;
|
|
2586
|
-
}, En = (t) => vn[t.toUpperCase()], Ln = (t) =>
|
|
2610
|
+
}, En = (t) => vn[t.toUpperCase()], Ln = (t) => ze[t.toUpperCase()], Mn = (t, r, a, s) => {
|
|
2587
2611
|
const i = xn(t, r), n = Cn(t, r), c = wn(t, r, a);
|
|
2588
2612
|
return {
|
|
2589
2613
|
wrapperStyles: {
|
|
2590
2614
|
minHeight: i,
|
|
2591
2615
|
// Для fill resize устанавливаем height: 100%
|
|
2592
|
-
...s ===
|
|
2616
|
+
...s === Fe.FILL && { height: "100%" },
|
|
2593
2617
|
// Для fixed resize устанавливаем фиксированную высоту
|
|
2594
|
-
...s ===
|
|
2618
|
+
...s === Fe.FIXED && r && { height: i },
|
|
2595
2619
|
boxSizing: "border-box",
|
|
2596
2620
|
padding: c
|
|
2597
2621
|
},
|
|
2598
2622
|
floatingLabelStyles: {
|
|
2599
|
-
left: t === oe.SMALL ?
|
|
2623
|
+
left: t === oe.SMALL ? ze.SMALL : ze.MEDIUM,
|
|
2600
2624
|
transformOrigin: "left top",
|
|
2601
|
-
top: r === 112 && a && t === oe.MEDIUM ?
|
|
2625
|
+
top: r === 112 && a && t === oe.MEDIUM ? ze.MEDIUM : void 0
|
|
2602
2626
|
},
|
|
2603
2627
|
suffixStyles: {
|
|
2604
2628
|
right: Ln(t)
|
|
@@ -2606,12 +2630,12 @@ const St = Object.assign(_n, {
|
|
|
2606
2630
|
textareaStyles: {
|
|
2607
2631
|
minHeight: n,
|
|
2608
2632
|
// Для fill resize flex: 1
|
|
2609
|
-
...s ===
|
|
2633
|
+
...s === Fe.FILL && { flex: 1, minHeight: 0 },
|
|
2610
2634
|
// Для fixed resize фиксированная высота
|
|
2611
|
-
...s ===
|
|
2635
|
+
...s === Fe.FIXED && r && { height: n }
|
|
2612
2636
|
}
|
|
2613
2637
|
};
|
|
2614
|
-
}, zn =
|
|
2638
|
+
}, zn = te(
|
|
2615
2639
|
({
|
|
2616
2640
|
value: t = "",
|
|
2617
2641
|
onChange: r,
|
|
@@ -2624,79 +2648,82 @@ const St = Object.assign(_n, {
|
|
|
2624
2648
|
error: d,
|
|
2625
2649
|
disabled: f,
|
|
2626
2650
|
loading: _,
|
|
2627
|
-
helper:
|
|
2628
|
-
suffix:
|
|
2629
|
-
clearable:
|
|
2630
|
-
id:
|
|
2631
|
-
showLabel:
|
|
2632
|
-
onFocus:
|
|
2633
|
-
onBlur:
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2651
|
+
helper: h,
|
|
2652
|
+
suffix: b,
|
|
2653
|
+
clearable: y = !1,
|
|
2654
|
+
id: v,
|
|
2655
|
+
showLabel: E = !0,
|
|
2656
|
+
onFocus: w,
|
|
2657
|
+
onBlur: C,
|
|
2658
|
+
onClear: g,
|
|
2659
|
+
onKeyDown: R,
|
|
2660
|
+
className: D,
|
|
2661
|
+
rows: k = 1,
|
|
2662
|
+
showLimit: $ = !1,
|
|
2663
|
+
wrapperProps: A,
|
|
2664
|
+
labelProps: N,
|
|
2665
|
+
helperProps: U,
|
|
2666
|
+
showGrip: q,
|
|
2667
|
+
minHeight: W,
|
|
2668
|
+
resize: O,
|
|
2669
|
+
...m
|
|
2670
|
+
}, j) => {
|
|
2671
|
+
const F = (t || "").length > 0, G = E && !!a && (c === oe.SMALL || W !== 48), H = y && F && !(f || _), Q = () => {
|
|
2672
|
+
r == null || r(""), g == null || g();
|
|
2673
|
+
}, ae = H ? /* @__PURE__ */ o.jsx(
|
|
2648
2674
|
kt,
|
|
2649
2675
|
{
|
|
2650
2676
|
size: En(c),
|
|
2651
2677
|
color: "var(--icon-secondary)",
|
|
2652
|
-
onClick:
|
|
2678
|
+
onClick: Q,
|
|
2653
2679
|
style: { cursor: "pointer" },
|
|
2654
2680
|
"data-testid": "x-icon"
|
|
2655
2681
|
}
|
|
2656
|
-
) :
|
|
2657
|
-
rows:
|
|
2682
|
+
) : b, J = Mn(c, W, G && F, O), re = Sn(c, W), se = {
|
|
2683
|
+
rows: k,
|
|
2658
2684
|
minLength: i,
|
|
2659
2685
|
autoFocus: n,
|
|
2660
|
-
resize:
|
|
2686
|
+
resize: O,
|
|
2661
2687
|
...p
|
|
2662
2688
|
};
|
|
2663
2689
|
return /* @__PURE__ */ o.jsx(
|
|
2664
2690
|
At,
|
|
2665
2691
|
{
|
|
2666
|
-
ref:
|
|
2692
|
+
ref: j,
|
|
2667
2693
|
component: "textarea",
|
|
2668
|
-
size:
|
|
2694
|
+
size: re,
|
|
2669
2695
|
error: d,
|
|
2670
2696
|
disabled: f || _,
|
|
2671
2697
|
loading: _,
|
|
2672
|
-
helper:
|
|
2673
|
-
suffix:
|
|
2674
|
-
id:
|
|
2675
|
-
showLabel:
|
|
2676
|
-
onFocus:
|
|
2677
|
-
onBlur:
|
|
2698
|
+
helper: h,
|
|
2699
|
+
suffix: ae,
|
|
2700
|
+
id: v,
|
|
2701
|
+
showLabel: G,
|
|
2702
|
+
onFocus: w,
|
|
2703
|
+
onBlur: C,
|
|
2704
|
+
onKeyDown: R,
|
|
2678
2705
|
onChange: r,
|
|
2679
2706
|
value: t || "",
|
|
2680
2707
|
placeholder: a,
|
|
2681
|
-
className:
|
|
2682
|
-
"data-floating-label":
|
|
2683
|
-
wrapperStyles:
|
|
2684
|
-
floatingLabelStyles:
|
|
2685
|
-
suffixStyles:
|
|
2686
|
-
textareaStyles:
|
|
2687
|
-
wrapperProps:
|
|
2688
|
-
labelProps:
|
|
2689
|
-
helperProps:
|
|
2690
|
-
showLimit:
|
|
2708
|
+
className: D,
|
|
2709
|
+
"data-floating-label": G,
|
|
2710
|
+
wrapperStyles: J.wrapperStyles,
|
|
2711
|
+
floatingLabelStyles: J.floatingLabelStyles,
|
|
2712
|
+
suffixStyles: J.suffixStyles,
|
|
2713
|
+
textareaStyles: J.textareaStyles,
|
|
2714
|
+
wrapperProps: A,
|
|
2715
|
+
labelProps: N,
|
|
2716
|
+
helperProps: U,
|
|
2717
|
+
showLimit: $ && (W === 112 || c === oe.SMALL),
|
|
2691
2718
|
maxLength: s,
|
|
2692
|
-
inputProps:
|
|
2693
|
-
resize:
|
|
2694
|
-
showGrip:
|
|
2695
|
-
...
|
|
2719
|
+
inputProps: se,
|
|
2720
|
+
resize: O,
|
|
2721
|
+
showGrip: q,
|
|
2722
|
+
...m
|
|
2696
2723
|
}
|
|
2697
2724
|
);
|
|
2698
2725
|
}
|
|
2699
|
-
), $n = "_helper_1vhgl_16",
|
|
2726
|
+
), $n = "_helper_1vhgl_16", Qe = {
|
|
2700
2727
|
helper: $n,
|
|
2701
2728
|
"helper--error": "_helper--error_1vhgl_27",
|
|
2702
2729
|
"helper--disabled": "_helper--disabled_1vhgl_32"
|
|
@@ -2710,10 +2737,10 @@ const St = Object.assign(_n, {
|
|
|
2710
2737
|
"aria-label": c,
|
|
2711
2738
|
"aria-describedby": p
|
|
2712
2739
|
}) => {
|
|
2713
|
-
const d = !!r, f =
|
|
2714
|
-
|
|
2715
|
-
d &&
|
|
2716
|
-
i &&
|
|
2740
|
+
const d = !!r, f = B(
|
|
2741
|
+
Qe.helper,
|
|
2742
|
+
d && Qe["helper--error"],
|
|
2743
|
+
i && Qe["helper--disabled"],
|
|
2717
2744
|
a
|
|
2718
2745
|
), _ = i ? t : r || t;
|
|
2719
2746
|
return /* @__PURE__ */ o.jsx(
|