skillgrid 0.0.25-dev-40846-input.1178444 → 0.0.25-dev-38682-image.1191040
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/Image/Image.type.d.ts +10 -1
- package/dist/components/InputBase/Input.type.d.ts +2 -2
- package/dist/components/InputBase/InputBase.type.d.ts +1 -1
- package/dist/components/List/List.d.ts +3 -2
- package/dist/components/Loader/Loader.type.d.ts +1 -1
- package/dist/components/Palette/Palette.d.ts +1 -0
- package/dist/components/TextArea/TextArea.type.d.ts +1 -1
- package/dist/components/TextArea/lib/constants.d.ts +17 -17
- package/dist/components/TextArea/lib/getters.d.ts +1 -1
- package/dist/components/TextInput/TextInput.type.d.ts +1 -1
- package/dist/components/TextInput/lib/constants.d.ts +3 -4
- package/dist/components/TextInput/lib/getters.d.ts +6 -10
- package/dist/index.cjs.js +11 -11
- package/dist/index.css +1 -1
- package/dist/index.es.js +1232 -1280
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
import { clsx as
|
|
1
|
+
import * as Et from "react";
|
|
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 P } 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 Pe = { exports: {} }, Ie = {};
|
|
8
8
|
/**
|
|
9
9
|
* @license React
|
|
10
10
|
* react-jsx-runtime.production.min.js
|
|
@@ -16,19 +16,19 @@ var De = { exports: {} }, Te = {};
|
|
|
16
16
|
*/
|
|
17
17
|
var ft;
|
|
18
18
|
function la() {
|
|
19
|
-
if (ft) return
|
|
19
|
+
if (ft) return Ie;
|
|
20
20
|
ft = 1;
|
|
21
|
-
var t =
|
|
22
|
-
function c(
|
|
23
|
-
var
|
|
24
|
-
|
|
25
|
-
for (
|
|
26
|
-
if (
|
|
27
|
-
return { $$typeof: r, type:
|
|
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
|
+
function c(p, d, g) {
|
|
23
|
+
var _, h = {}, b = null, m = null;
|
|
24
|
+
g !== void 0 && (b = "" + g), d.key !== void 0 && (b = "" + d.key), d.ref !== void 0 && (m = 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: m, 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 Ie = {};
|
|
|
41
41
|
var gt;
|
|
42
42
|
function ca() {
|
|
43
43
|
return gt || (gt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
44
|
-
var t =
|
|
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"), g = Symbol.for("react.suspense"), _ = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), x = 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 = x && e[x] || e[E];
|
|
49
49
|
return typeof l == "function" ? l : null;
|
|
50
50
|
}
|
|
51
51
|
var C = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
52
|
-
function
|
|
52
|
+
function f(e) {
|
|
53
53
|
{
|
|
54
|
-
for (var l = arguments.length, u = new Array(l > 1 ? l - 1 : 0),
|
|
55
|
-
u[
|
|
56
|
-
|
|
54
|
+
for (var l = arguments.length, u = new Array(l > 1 ? l - 1 : 0), v = 1; v < l; v++)
|
|
55
|
+
u[v - 1] = arguments[v];
|
|
56
|
+
$("error", e, u);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function $(e, l, u) {
|
|
60
60
|
{
|
|
61
|
-
var
|
|
62
|
-
|
|
63
|
-
var
|
|
64
|
-
return String(
|
|
61
|
+
var v = C.ReactDebugCurrentFrame, I = v.getStackAddendum();
|
|
62
|
+
I !== "" && (l += "%s", u = u.concat([I]));
|
|
63
|
+
var N = u.map(function(L) {
|
|
64
|
+
return String(L);
|
|
65
65
|
});
|
|
66
|
-
|
|
66
|
+
N.unshift("Warning: " + l), Function.prototype.apply.call(console[e], console, N);
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
-
var
|
|
70
|
-
|
|
71
|
-
function
|
|
72
|
-
return !!(typeof e == "string" || typeof e == "function" || e === s || e === n ||
|
|
69
|
+
var O = !1, D = !1, k = !1, T = !1, R = !1, A;
|
|
70
|
+
A = Symbol.for("react.module.reference");
|
|
71
|
+
function q(e) {
|
|
72
|
+
return !!(typeof e == "string" || typeof e == "function" || e === s || e === n || R || e === i || e === g || e === _ || T || e === m || O || 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 === A || e.getModuleId !== void 0));
|
|
77
77
|
}
|
|
78
78
|
function W(e, l, u) {
|
|
79
|
-
var
|
|
80
|
-
if (
|
|
81
|
-
return
|
|
82
|
-
var
|
|
83
|
-
return
|
|
79
|
+
var v = e.displayName;
|
|
80
|
+
if (v)
|
|
81
|
+
return v;
|
|
82
|
+
var I = l.displayName || l.name || "";
|
|
83
|
+
return I !== "" ? u + "(" + I + ")" : u;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function U(e) {
|
|
86
86
|
return e.displayName || "Context";
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function y(e) {
|
|
89
89
|
if (e == null)
|
|
90
90
|
return null;
|
|
91
|
-
if (typeof e.tag == "number" &&
|
|
91
|
+
if (typeof e.tag == "number" && f("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;
|
|
@@ -99,30 +99,30 @@ function ca() {
|
|
|
99
99
|
return "Portal";
|
|
100
100
|
case n:
|
|
101
101
|
return "Profiler";
|
|
102
|
-
case
|
|
102
|
+
case i:
|
|
103
103
|
return "StrictMode";
|
|
104
|
-
case
|
|
104
|
+
case g:
|
|
105
105
|
return "Suspense";
|
|
106
|
-
case
|
|
106
|
+
case _:
|
|
107
107
|
return "SuspenseList";
|
|
108
108
|
}
|
|
109
109
|
if (typeof e == "object")
|
|
110
110
|
switch (e.$$typeof) {
|
|
111
|
-
case
|
|
111
|
+
case p:
|
|
112
112
|
var l = e;
|
|
113
|
-
return
|
|
113
|
+
return U(l) + ".Consumer";
|
|
114
114
|
case c:
|
|
115
115
|
var u = e;
|
|
116
|
-
return
|
|
116
|
+
return U(u._context) + ".Provider";
|
|
117
117
|
case d:
|
|
118
118
|
return W(e, e.render, "ForwardRef");
|
|
119
119
|
case h:
|
|
120
|
-
var
|
|
121
|
-
return
|
|
120
|
+
var v = e.displayName || null;
|
|
121
|
+
return v !== null ? v : y(e.type) || "Memo";
|
|
122
122
|
case b: {
|
|
123
|
-
var
|
|
123
|
+
var I = e, N = I._payload, L = I._init;
|
|
124
124
|
try {
|
|
125
|
-
return
|
|
125
|
+
return y(L(N));
|
|
126
126
|
} catch {
|
|
127
127
|
return null;
|
|
128
128
|
}
|
|
@@ -130,14 +130,14 @@ function ca() {
|
|
|
130
130
|
}
|
|
131
131
|
return null;
|
|
132
132
|
}
|
|
133
|
-
var
|
|
133
|
+
var j = Object.assign, B = 0, G, H, Q, ae, J, re, se;
|
|
134
134
|
function de() {
|
|
135
135
|
}
|
|
136
136
|
de.__reactDisabledLog = !0;
|
|
137
|
-
function
|
|
137
|
+
function ve() {
|
|
138
138
|
{
|
|
139
|
-
if (
|
|
140
|
-
|
|
139
|
+
if (B === 0) {
|
|
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,
|
|
@@ -154,164 +154,164 @@ function ca() {
|
|
|
154
154
|
groupEnd: e
|
|
155
155
|
});
|
|
156
156
|
}
|
|
157
|
-
|
|
157
|
+
B++;
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function ie() {
|
|
161
161
|
{
|
|
162
|
-
if (
|
|
162
|
+
if (B--, B === 0) {
|
|
163
163
|
var e = {
|
|
164
164
|
configurable: !0,
|
|
165
165
|
enumerable: !0,
|
|
166
166
|
writable: !0
|
|
167
167
|
};
|
|
168
168
|
Object.defineProperties(console, {
|
|
169
|
-
log:
|
|
170
|
-
value:
|
|
169
|
+
log: j({}, e, {
|
|
170
|
+
value: G
|
|
171
171
|
}),
|
|
172
|
-
info:
|
|
173
|
-
value:
|
|
172
|
+
info: j({}, e, {
|
|
173
|
+
value: H
|
|
174
174
|
}),
|
|
175
|
-
warn:
|
|
175
|
+
warn: j({}, e, {
|
|
176
176
|
value: Q
|
|
177
177
|
}),
|
|
178
|
-
error:
|
|
179
|
-
value:
|
|
178
|
+
error: j({}, e, {
|
|
179
|
+
value: ae
|
|
180
180
|
}),
|
|
181
|
-
group:
|
|
181
|
+
group: j({}, e, {
|
|
182
182
|
value: J
|
|
183
183
|
}),
|
|
184
|
-
groupCollapsed:
|
|
185
|
-
value:
|
|
184
|
+
groupCollapsed: j({}, e, {
|
|
185
|
+
value: re
|
|
186
186
|
}),
|
|
187
|
-
groupEnd:
|
|
188
|
-
value:
|
|
187
|
+
groupEnd: j({}, e, {
|
|
188
|
+
value: se
|
|
189
189
|
})
|
|
190
190
|
});
|
|
191
191
|
}
|
|
192
|
-
|
|
192
|
+
B < 0 && f("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
|
-
var
|
|
195
|
+
var ye = C.ReactCurrentDispatcher, ue;
|
|
196
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 v = I.stack.trim().match(/\n( *(at )?)/);
|
|
203
|
+
ue = v && v[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
|
-
_e = new
|
|
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
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 v;
|
|
223
|
+
me = !0;
|
|
224
|
+
var I = Error.prepareStackTrace;
|
|
225
225
|
Error.prepareStackTrace = void 0;
|
|
226
|
-
var
|
|
227
|
-
|
|
226
|
+
var N;
|
|
227
|
+
N = ye.current, ye.current = null, ve();
|
|
228
228
|
try {
|
|
229
229
|
if (l) {
|
|
230
|
-
var
|
|
230
|
+
var L = function() {
|
|
231
231
|
throw Error();
|
|
232
232
|
};
|
|
233
|
-
if (Object.defineProperty(
|
|
233
|
+
if (Object.defineProperty(L.prototype, "props", {
|
|
234
234
|
set: function() {
|
|
235
235
|
throw Error();
|
|
236
236
|
}
|
|
237
237
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
238
238
|
try {
|
|
239
|
-
Reflect.construct(
|
|
239
|
+
Reflect.construct(L, []);
|
|
240
240
|
} catch (ee) {
|
|
241
|
-
|
|
241
|
+
v = ee;
|
|
242
242
|
}
|
|
243
|
-
Reflect.construct(e, [],
|
|
243
|
+
Reflect.construct(e, [], L);
|
|
244
244
|
} else {
|
|
245
245
|
try {
|
|
246
|
-
|
|
246
|
+
L.call();
|
|
247
247
|
} catch (ee) {
|
|
248
|
-
|
|
248
|
+
v = ee;
|
|
249
249
|
}
|
|
250
|
-
e.call(
|
|
250
|
+
e.call(L.prototype);
|
|
251
251
|
}
|
|
252
252
|
} else {
|
|
253
253
|
try {
|
|
254
254
|
throw Error();
|
|
255
255
|
} catch (ee) {
|
|
256
|
-
|
|
256
|
+
v = ee;
|
|
257
257
|
}
|
|
258
258
|
e();
|
|
259
259
|
}
|
|
260
260
|
} catch (ee) {
|
|
261
|
-
if (ee &&
|
|
262
|
-
for (var
|
|
263
|
-
`), K =
|
|
264
|
-
`),
|
|
265
|
-
|
|
266
|
-
for (;
|
|
267
|
-
if (
|
|
268
|
-
if (
|
|
261
|
+
if (ee && v && typeof ee.stack == "string") {
|
|
262
|
+
for (var S = ee.stack.split(`
|
|
263
|
+
`), K = v.stack.split(`
|
|
264
|
+
`), F = S.length - 1, V = K.length - 1; F >= 1 && V >= 0 && S[F] !== K[V]; )
|
|
265
|
+
V--;
|
|
266
|
+
for (; F >= 1 && V >= 0; F--, V--)
|
|
267
|
+
if (S[F] !== K[V]) {
|
|
268
|
+
if (F !== 1 || V !== 1)
|
|
269
269
|
do
|
|
270
|
-
if (
|
|
271
|
-
var
|
|
272
|
-
` +
|
|
273
|
-
return e.displayName &&
|
|
270
|
+
if (F--, V--, V < 0 || S[F] !== K[V]) {
|
|
271
|
+
var ne = `
|
|
272
|
+
` + S[F].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 (
|
|
275
|
+
while (F >= 1 && V >= 0);
|
|
276
276
|
break;
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
279
|
} finally {
|
|
280
|
-
|
|
280
|
+
me = !1, ye.current = N, ie(), Error.prepareStackTrace = I;
|
|
281
281
|
}
|
|
282
|
-
var
|
|
282
|
+
var Me = e ? e.displayName || e.name : "", Ce = Me ? le(Me) : "";
|
|
283
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
298
|
return le(e);
|
|
299
299
|
switch (e) {
|
|
300
|
-
case
|
|
300
|
+
case g:
|
|
301
301
|
return le("Suspense");
|
|
302
|
-
case
|
|
302
|
+
case _:
|
|
303
303
|
return le("SuspenseList");
|
|
304
304
|
}
|
|
305
305
|
if (typeof e == "object")
|
|
306
306
|
switch (e.$$typeof) {
|
|
307
307
|
case d:
|
|
308
|
-
return
|
|
308
|
+
return Ve(e.render);
|
|
309
309
|
case h:
|
|
310
|
-
return
|
|
310
|
+
return Z(e.type, l, u);
|
|
311
311
|
case b: {
|
|
312
|
-
var
|
|
312
|
+
var v = e, I = v._payload, N = v._init;
|
|
313
313
|
try {
|
|
314
|
-
return
|
|
314
|
+
return Z(N(I), l, u);
|
|
315
315
|
} catch {
|
|
316
316
|
}
|
|
317
317
|
}
|
|
@@ -319,43 +319,43 @@ function ca() {
|
|
|
319
319
|
return "";
|
|
320
320
|
}
|
|
321
321
|
var Y = Object.prototype.hasOwnProperty, ce = {}, tt = C.ReactDebugCurrentFrame;
|
|
322
|
-
function
|
|
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
|
|
329
|
+
function Nt(e, l, u, v, I) {
|
|
330
330
|
{
|
|
331
|
-
var
|
|
332
|
-
for (var
|
|
333
|
-
if (
|
|
334
|
-
var
|
|
331
|
+
var N = Function.call.bind(Y);
|
|
332
|
+
for (var L in e)
|
|
333
|
+
if (N(e, L)) {
|
|
334
|
+
var S = void 0;
|
|
335
335
|
try {
|
|
336
|
-
if (typeof e[
|
|
337
|
-
var K = Error((
|
|
336
|
+
if (typeof e[L] != "function") {
|
|
337
|
+
var K = Error((v || "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
338
|
throw K.name = "Invariant Violation", K;
|
|
339
339
|
}
|
|
340
|
-
|
|
341
|
-
} catch (
|
|
342
|
-
|
|
340
|
+
S = e[L](l, L, v, u, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
341
|
+
} catch (F) {
|
|
342
|
+
S = F;
|
|
343
343
|
}
|
|
344
|
-
|
|
344
|
+
S && !(S instanceof Error) && (Ue(I), f("%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).", v || "React class", u, L, typeof S), Ue(null)), S instanceof Error && !(S.message in ce) && (ce[S.message] = !0, Ue(I), f("Failed %s type: %s", u, S.message), Ue(null));
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
|
-
var
|
|
348
|
+
var Dt = Array.isArray;
|
|
349
349
|
function qe(e) {
|
|
350
|
-
return
|
|
350
|
+
return Dt(e);
|
|
351
351
|
}
|
|
352
|
-
function
|
|
352
|
+
function Ot(e) {
|
|
353
353
|
{
|
|
354
354
|
var l = typeof Symbol == "function" && Symbol.toStringTag, u = l && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
355
355
|
return u;
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
|
-
function
|
|
358
|
+
function Ut(e) {
|
|
359
359
|
try {
|
|
360
360
|
return at(e), !1;
|
|
361
361
|
} catch {
|
|
@@ -366,16 +366,16 @@ function ca() {
|
|
|
366
366
|
return "" + e;
|
|
367
367
|
}
|
|
368
368
|
function rt(e) {
|
|
369
|
-
if (
|
|
370
|
-
return
|
|
369
|
+
if (Ut(e))
|
|
370
|
+
return f("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 = C.ReactCurrentOwner,
|
|
372
|
+
var st = C.ReactCurrentOwner, Pt = {
|
|
373
373
|
key: !0,
|
|
374
374
|
ref: !0,
|
|
375
375
|
__self: !0,
|
|
376
376
|
__source: !0
|
|
377
377
|
}, nt, ot;
|
|
378
|
-
function
|
|
378
|
+
function Bt(e) {
|
|
379
379
|
if (Y.call(e, "ref")) {
|
|
380
380
|
var l = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
381
381
|
if (l && l.isReactWarning)
|
|
@@ -383,7 +383,7 @@ function ca() {
|
|
|
383
383
|
}
|
|
384
384
|
return e.ref !== void 0;
|
|
385
385
|
}
|
|
386
|
-
function
|
|
386
|
+
function Ft(e) {
|
|
387
387
|
if (Y.call(e, "key")) {
|
|
388
388
|
var l = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
389
389
|
if (l && l.isReactWarning)
|
|
@@ -391,13 +391,13 @@ function ca() {
|
|
|
391
391
|
}
|
|
392
392
|
return e.key !== void 0;
|
|
393
393
|
}
|
|
394
|
-
function
|
|
394
|
+
function zt(e, l) {
|
|
395
395
|
typeof e.ref == "string" && st.current;
|
|
396
396
|
}
|
|
397
|
-
function
|
|
397
|
+
function Wt(e, l) {
|
|
398
398
|
{
|
|
399
399
|
var u = function() {
|
|
400
|
-
nt || (nt = !0,
|
|
400
|
+
nt || (nt = !0, f("%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, f("%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,70 +416,70 @@ function ca() {
|
|
|
416
416
|
});
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
|
-
var
|
|
420
|
-
var
|
|
419
|
+
var Ht = function(e, l, u, v, I, N, 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
|
|
424
424
|
type: e,
|
|
425
425
|
key: l,
|
|
426
426
|
ref: u,
|
|
427
|
-
props:
|
|
427
|
+
props: L,
|
|
428
428
|
// Record the component responsible for creating this element.
|
|
429
|
-
_owner:
|
|
429
|
+
_owner: N
|
|
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: v
|
|
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
|
|
448
|
+
function qt(e, l, u, v, I) {
|
|
449
449
|
{
|
|
450
|
-
var
|
|
451
|
-
u !== void 0 && (rt(u),
|
|
452
|
-
for (
|
|
453
|
-
Y.call(l,
|
|
450
|
+
var N, L = {}, S = null, K = null;
|
|
451
|
+
u !== void 0 && (rt(u), S = "" + u), Ft(l) && (rt(l.key), S = "" + l.key), Bt(l) && (K = l.ref, zt(l, I));
|
|
452
|
+
for (N in l)
|
|
453
|
+
Y.call(l, N) && !Pt.hasOwnProperty(N) && (L[N] = l[N]);
|
|
454
454
|
if (e && e.defaultProps) {
|
|
455
|
-
var
|
|
456
|
-
for (
|
|
457
|
-
|
|
455
|
+
var F = e.defaultProps;
|
|
456
|
+
for (N in F)
|
|
457
|
+
L[N] === void 0 && (L[N] = F[N]);
|
|
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
|
|
463
|
+
return Ht(e, S, K, I, v, st.current, L);
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
|
-
var
|
|
467
|
-
function
|
|
466
|
+
var Ge = C.ReactCurrentOwner, it = C.ReactDebugCurrentFrame;
|
|
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 = y(Ge.current.type);
|
|
483
483
|
if (e)
|
|
484
484
|
return `
|
|
485
485
|
|
|
@@ -492,7 +492,7 @@ Check the render method of \`` + e + "`.";
|
|
|
492
492
|
return "";
|
|
493
493
|
}
|
|
494
494
|
var ct = {};
|
|
495
|
-
function
|
|
495
|
+
function Zt(e) {
|
|
496
496
|
{
|
|
497
497
|
var l = lt();
|
|
498
498
|
if (!l) {
|
|
@@ -509,12 +509,12 @@ Check the top-level render call using <` + u + ">.");
|
|
|
509
509
|
if (!e._store || e._store.validated || e.key != null)
|
|
510
510
|
return;
|
|
511
511
|
e._store.validated = !0;
|
|
512
|
-
var u =
|
|
512
|
+
var u = Zt(l);
|
|
513
513
|
if (ct[u])
|
|
514
514
|
return;
|
|
515
515
|
ct[u] = !0;
|
|
516
|
-
var
|
|
517
|
-
e && e._owner && e._owner !==
|
|
516
|
+
var v = "";
|
|
517
|
+
e && e._owner && e._owner !== Ge.current && (v = " It was passed a child from " + y(e._owner.type) + "."), Le(e), f('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', u, v), Le(null);
|
|
518
518
|
}
|
|
519
519
|
}
|
|
520
520
|
function ut(e, l) {
|
|
@@ -523,20 +523,20 @@ Check the top-level render call using <` + u + ">.");
|
|
|
523
523
|
return;
|
|
524
524
|
if (qe(e))
|
|
525
525
|
for (var u = 0; u < e.length; u++) {
|
|
526
|
-
var
|
|
527
|
-
|
|
526
|
+
var v = e[u];
|
|
527
|
+
Ye(v) && dt(v, 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 N = I.call(e), L; !(L = N.next()).done; )
|
|
535
|
+
Ye(L.value) && dt(L.value, l);
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
538
|
}
|
|
539
|
-
function
|
|
539
|
+
function Yt(e) {
|
|
540
540
|
{
|
|
541
541
|
var l = e.type;
|
|
542
542
|
if (l == null || typeof l == "string")
|
|
@@ -551,296 +551,296 @@ Check the top-level render call using <` + u + ">.");
|
|
|
551
551
|
else
|
|
552
552
|
return;
|
|
553
553
|
if (u) {
|
|
554
|
-
var
|
|
555
|
-
|
|
556
|
-
} else if (l.PropTypes !== void 0 && !
|
|
557
|
-
|
|
558
|
-
var
|
|
559
|
-
|
|
554
|
+
var v = y(l);
|
|
555
|
+
Nt(u, e.props, "prop", v, e);
|
|
556
|
+
} else if (l.PropTypes !== void 0 && !Ze) {
|
|
557
|
+
Ze = !0;
|
|
558
|
+
var I = y(l);
|
|
559
|
+
f("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 && f("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
562
562
|
}
|
|
563
563
|
}
|
|
564
|
-
function
|
|
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
|
-
|
|
567
|
+
var v = l[u];
|
|
568
|
+
if (v !== "children" && v !== "key") {
|
|
569
|
+
Le(e), f("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), Le(null);
|
|
570
570
|
break;
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
|
-
e.ref !== null && (
|
|
573
|
+
e.ref !== null && (Le(e), f("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, v, I, N) {
|
|
578
578
|
{
|
|
579
|
-
var
|
|
580
|
-
if (
|
|
581
|
-
var
|
|
582
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
|
579
|
+
var L = q(e);
|
|
580
|
+
if (!L) {
|
|
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
583
|
var K = Gt();
|
|
584
|
-
K ?
|
|
585
|
-
var
|
|
586
|
-
e === null ?
|
|
584
|
+
K ? S += K : S += lt();
|
|
585
|
+
var F;
|
|
586
|
+
e === null ? F = "null" : qe(e) ? F = "array" : e !== void 0 && e.$$typeof === r ? (F = "<" + (y(e.type) || "Unknown") + " />", S = " Did you accidentally export a JSX literal instead of a component?") : F = typeof e, f("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", F, S);
|
|
587
587
|
}
|
|
588
|
-
var
|
|
589
|
-
if (
|
|
590
|
-
return
|
|
591
|
-
if (
|
|
592
|
-
var
|
|
593
|
-
if (
|
|
594
|
-
if (
|
|
595
|
-
if (qe(
|
|
596
|
-
for (var
|
|
597
|
-
ut(
|
|
598
|
-
Object.freeze && Object.freeze(
|
|
588
|
+
var V = qt(e, l, u, I, N);
|
|
589
|
+
if (V == null)
|
|
590
|
+
return V;
|
|
591
|
+
if (L) {
|
|
592
|
+
var ne = l.children;
|
|
593
|
+
if (ne !== void 0)
|
|
594
|
+
if (v)
|
|
595
|
+
if (qe(ne)) {
|
|
596
|
+
for (var Me = 0; Me < ne.length; Me++)
|
|
597
|
+
ut(ne[Me], e);
|
|
598
|
+
Object.freeze && Object.freeze(ne);
|
|
599
599
|
} else
|
|
600
|
-
|
|
600
|
+
f("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
|
-
ut(
|
|
602
|
+
ut(ne, e);
|
|
603
603
|
}
|
|
604
604
|
if (Y.call(l, "key")) {
|
|
605
|
-
var Ce =
|
|
605
|
+
var Ce = y(e), ee = Object.keys(l).filter(function(aa) {
|
|
606
606
|
return aa !== "key";
|
|
607
|
-
}),
|
|
608
|
-
if (!_t[Ce +
|
|
607
|
+
}), Je = ee.length > 0 ? "{key: someKey, " + ee.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
608
|
+
if (!_t[Ce + Je]) {
|
|
609
609
|
var ta = ee.length > 0 ? "{" + ee.join(": ..., ") + ": ...}" : "{}";
|
|
610
|
-
|
|
610
|
+
f(`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 ?
|
|
618
|
+
return e === s ? Jt(V) : Yt(V), V;
|
|
619
619
|
}
|
|
620
620
|
}
|
|
621
|
-
function
|
|
621
|
+
function Kt(e, l, u) {
|
|
622
622
|
return pt(e, l, u, !0);
|
|
623
623
|
}
|
|
624
|
-
function
|
|
624
|
+
function Xt(e, l, u) {
|
|
625
625
|
return pt(e, l, u, !1);
|
|
626
626
|
}
|
|
627
|
-
var Qt =
|
|
628
|
-
|
|
629
|
-
}()),
|
|
627
|
+
var Qt = Xt, ea = Kt;
|
|
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" ? Pe.exports = la() : Pe.exports = ca()), Pe.exports;
|
|
634
634
|
}
|
|
635
|
-
var
|
|
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",
|
|
635
|
+
var o = da();
|
|
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", Pa = "_withSubcaption_1abee_784", Ba = "_subcaption_1abee_797", Fa = "_loader_1abee_804", za = "_spin_1abee_1", Wa = "_l_1abee_237", Va = "_m_1abee_361", Ha = "_s_1abee_279", qa = "_xs_1abee_869", z = {
|
|
637
637
|
button: pa,
|
|
638
638
|
disabled: fa,
|
|
639
639
|
loading: ga,
|
|
640
640
|
neutral: ha,
|
|
641
641
|
accent: ba,
|
|
642
642
|
positive: ya,
|
|
643
|
-
negative:
|
|
644
|
-
contrast:
|
|
645
|
-
special:
|
|
643
|
+
negative: ma,
|
|
644
|
+
contrast: va,
|
|
645
|
+
special: xa,
|
|
646
646
|
primary: Ca,
|
|
647
647
|
secondary: wa,
|
|
648
648
|
tertiary: Sa,
|
|
649
|
-
label:
|
|
650
|
-
rightGroup:
|
|
651
|
-
iconOnly:
|
|
652
|
-
large:
|
|
653
|
-
medium:
|
|
654
|
-
small:
|
|
655
|
-
spaceBetween:
|
|
656
|
-
stretched:
|
|
657
|
-
icon:
|
|
658
|
-
badge:
|
|
659
|
-
badgeMedium:
|
|
660
|
-
circular:
|
|
661
|
-
badgeSmall:
|
|
662
|
-
badgeExtraSmall:
|
|
663
|
-
withSubcaption:
|
|
664
|
-
subcaption:
|
|
665
|
-
loader:
|
|
666
|
-
spin:
|
|
667
|
-
l:
|
|
649
|
+
label: Ea,
|
|
650
|
+
rightGroup: La,
|
|
651
|
+
iconOnly: Ma,
|
|
652
|
+
large: $a,
|
|
653
|
+
medium: ja,
|
|
654
|
+
small: Ia,
|
|
655
|
+
spaceBetween: Ra,
|
|
656
|
+
stretched: ka,
|
|
657
|
+
icon: Ta,
|
|
658
|
+
badge: Aa,
|
|
659
|
+
badgeMedium: Na,
|
|
660
|
+
circular: Da,
|
|
661
|
+
badgeSmall: Oa,
|
|
662
|
+
badgeExtraSmall: Ua,
|
|
663
|
+
withSubcaption: Pa,
|
|
664
|
+
subcaption: Ba,
|
|
665
|
+
loader: Fa,
|
|
666
|
+
spin: za,
|
|
667
|
+
l: Wa,
|
|
668
668
|
m: Va,
|
|
669
|
-
s:
|
|
670
|
-
xs:
|
|
669
|
+
s: Ha,
|
|
670
|
+
xs: qa
|
|
671
671
|
}, bt = ({
|
|
672
672
|
isLoading: t,
|
|
673
673
|
showBadge: r,
|
|
674
674
|
badgeValue: a,
|
|
675
675
|
badgeSize: s,
|
|
676
|
-
icon:
|
|
676
|
+
icon: i,
|
|
677
677
|
children: n,
|
|
678
678
|
postfix: c,
|
|
679
|
-
showSubcaption:
|
|
679
|
+
showSubcaption: p,
|
|
680
680
|
subcaption: d,
|
|
681
|
-
size:
|
|
681
|
+
size: g
|
|
682
682
|
}) => {
|
|
683
683
|
if (t)
|
|
684
|
-
return /* @__PURE__ */
|
|
685
|
-
const
|
|
686
|
-
return /* @__PURE__ */
|
|
687
|
-
r && (a ||
|
|
684
|
+
return /* @__PURE__ */ o.jsx("span", { className: z.loader, "data-testid": "button-loader", "aria-hidden": "true" });
|
|
685
|
+
const _ = s === "extra-small", h = parseInt(String(a), 10), b = !isNaN(h) && h >= 0 && h <= 9;
|
|
686
|
+
return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
687
|
+
r && (a || _) && /* @__PURE__ */ o.jsx(
|
|
688
688
|
"span",
|
|
689
689
|
{
|
|
690
690
|
"data-testid": "button-badge",
|
|
691
|
-
className:
|
|
691
|
+
className: P(
|
|
692
692
|
z.badge,
|
|
693
|
-
z[`badge${
|
|
694
|
-
{ [z.circular]: b && !
|
|
693
|
+
z[`badge${_ ? "ExtraSmall" : s === "medium" ? "Medium" : "Small"}`],
|
|
694
|
+
{ [z.circular]: b && !_ }
|
|
695
695
|
),
|
|
696
|
-
children: !
|
|
696
|
+
children: !_ && a
|
|
697
697
|
}
|
|
698
698
|
),
|
|
699
|
-
|
|
700
|
-
/* @__PURE__ */
|
|
701
|
-
/* @__PURE__ */
|
|
702
|
-
] }) : n ? /* @__PURE__ */
|
|
703
|
-
/* @__PURE__ */
|
|
704
|
-
/* @__PURE__ */
|
|
705
|
-
|
|
706
|
-
c && /* @__PURE__ */
|
|
699
|
+
p && g !== "s" && g !== "xs" ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
700
|
+
/* @__PURE__ */ o.jsx("span", { "data-testid": "button-label", className: z.label, children: n }),
|
|
701
|
+
/* @__PURE__ */ o.jsx("span", { "data-testid": "button-subcaption", className: z.subcaption, children: d })
|
|
702
|
+
] }) : n ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
703
|
+
/* @__PURE__ */ o.jsx("span", { "data-testid": "button-label", className: z.label, children: n }),
|
|
704
|
+
/* @__PURE__ */ o.jsxs("div", { "data-testid": "button-right-group", className: z.rightGroup, children: [
|
|
705
|
+
i && /* @__PURE__ */ o.jsx("span", { "data-testid": "button-icon", className: z.icon, children: i }),
|
|
706
|
+
c && /* @__PURE__ */ o.jsx("span", { "data-testid": "button-postfix", className: z.postfix, children: c })
|
|
707
707
|
] })
|
|
708
|
-
] }) : /* @__PURE__ */
|
|
708
|
+
] }) : /* @__PURE__ */ o.jsx("span", { "data-testid": "button-icon", className: z.icon, children: i })
|
|
709
709
|
] });
|
|
710
|
-
},
|
|
710
|
+
}, Rn = te((t, r) => {
|
|
711
711
|
const {
|
|
712
712
|
mode: a = "primary",
|
|
713
713
|
size: s = "m",
|
|
714
|
-
buttonStyle:
|
|
714
|
+
buttonStyle: i = "neutral",
|
|
715
715
|
loading: n = !1,
|
|
716
716
|
disabled: c = !1,
|
|
717
|
-
showBadge:
|
|
717
|
+
showBadge: p = !1,
|
|
718
718
|
badgeSize: d = "small",
|
|
719
|
-
badgeValue:
|
|
720
|
-
showSubcaption:
|
|
719
|
+
badgeValue: g,
|
|
720
|
+
showSubcaption: _ = !1,
|
|
721
721
|
subcaption: h,
|
|
722
722
|
stretched: b = !1,
|
|
723
|
-
spaceBetween:
|
|
724
|
-
icon:
|
|
723
|
+
spaceBetween: m = !1,
|
|
724
|
+
icon: x,
|
|
725
725
|
postfix: E,
|
|
726
|
-
className:
|
|
726
|
+
className: w,
|
|
727
727
|
children: C
|
|
728
|
-
} = t,
|
|
728
|
+
} = t, f = c, $ = n, O = !f && !$, D = !!x && !C, k = P(
|
|
729
729
|
z.button,
|
|
730
730
|
z[s],
|
|
731
731
|
z[a],
|
|
732
|
-
z[
|
|
732
|
+
z[i],
|
|
733
733
|
{
|
|
734
|
-
[z.disabled]:
|
|
735
|
-
[z.loading]:
|
|
734
|
+
[z.disabled]: f,
|
|
735
|
+
[z.loading]: $,
|
|
736
736
|
[z.stretched]: b,
|
|
737
|
-
[z.spaceBetween]:
|
|
738
|
-
[z.withSubcaption]:
|
|
739
|
-
[z.iconOnly]:
|
|
737
|
+
[z.spaceBetween]: m && b,
|
|
738
|
+
[z.withSubcaption]: _ && h && s !== "s" && s !== "xs",
|
|
739
|
+
[z.iconOnly]: D
|
|
740
740
|
},
|
|
741
|
-
|
|
742
|
-
),
|
|
743
|
-
isLoading:
|
|
744
|
-
showBadge:
|
|
745
|
-
badgeValue:
|
|
741
|
+
w
|
|
742
|
+
), T = {
|
|
743
|
+
isLoading: $,
|
|
744
|
+
showBadge: p,
|
|
745
|
+
badgeValue: g,
|
|
746
746
|
badgeSize: d,
|
|
747
|
-
icon:
|
|
747
|
+
icon: x,
|
|
748
748
|
children: C,
|
|
749
749
|
postfix: E,
|
|
750
|
-
showSubcaption:
|
|
750
|
+
showSubcaption: _,
|
|
751
751
|
subcaption: h,
|
|
752
752
|
size: s
|
|
753
753
|
};
|
|
754
754
|
if (ua(t)) {
|
|
755
755
|
const {
|
|
756
|
-
href:
|
|
757
|
-
onClick:
|
|
758
|
-
mode:
|
|
756
|
+
href: R,
|
|
757
|
+
onClick: A,
|
|
758
|
+
mode: q,
|
|
759
759
|
size: W,
|
|
760
|
-
buttonStyle:
|
|
761
|
-
loading:
|
|
762
|
-
disabled:
|
|
763
|
-
showBadge:
|
|
764
|
-
badgeSize:
|
|
765
|
-
badgeValue:
|
|
760
|
+
buttonStyle: U,
|
|
761
|
+
loading: y,
|
|
762
|
+
disabled: j,
|
|
763
|
+
showBadge: B,
|
|
764
|
+
badgeSize: G,
|
|
765
|
+
badgeValue: H,
|
|
766
766
|
showSubcaption: Q,
|
|
767
|
-
subcaption:
|
|
767
|
+
subcaption: ae,
|
|
768
768
|
stretched: J,
|
|
769
|
-
spaceBetween:
|
|
770
|
-
icon:
|
|
769
|
+
spaceBetween: re,
|
|
770
|
+
icon: se,
|
|
771
771
|
postfix: de,
|
|
772
|
-
className:
|
|
773
|
-
tabIndex:
|
|
774
|
-
children:
|
|
772
|
+
className: ve,
|
|
773
|
+
tabIndex: ie,
|
|
774
|
+
children: ye,
|
|
775
775
|
"data-testid": ue,
|
|
776
776
|
style: le,
|
|
777
|
-
...
|
|
778
|
-
} = t, _e = (
|
|
779
|
-
|
|
777
|
+
...me
|
|
778
|
+
} = t, _e = (xe) => {
|
|
779
|
+
O && A && A(xe);
|
|
780
780
|
};
|
|
781
|
-
return /* @__PURE__ */
|
|
781
|
+
return /* @__PURE__ */ o.jsx(
|
|
782
782
|
"a",
|
|
783
783
|
{
|
|
784
784
|
ref: r,
|
|
785
|
-
className:
|
|
786
|
-
href:
|
|
785
|
+
className: k,
|
|
786
|
+
href: O ? R : void 0,
|
|
787
787
|
tabIndex: t.tabIndex,
|
|
788
788
|
onClick: _e,
|
|
789
789
|
"data-testid": ue,
|
|
790
|
-
"aria-disabled":
|
|
790
|
+
"aria-disabled": f || $,
|
|
791
791
|
style: le,
|
|
792
|
-
...
|
|
793
|
-
children: /* @__PURE__ */
|
|
792
|
+
...me,
|
|
793
|
+
children: /* @__PURE__ */ o.jsx(bt, { ...T })
|
|
794
794
|
}
|
|
795
795
|
);
|
|
796
796
|
}
|
|
797
797
|
if (_a(t)) {
|
|
798
798
|
const {
|
|
799
|
-
type:
|
|
800
|
-
onClick:
|
|
801
|
-
mode:
|
|
799
|
+
type: R = "button",
|
|
800
|
+
onClick: A,
|
|
801
|
+
mode: q,
|
|
802
802
|
size: W,
|
|
803
|
-
buttonStyle:
|
|
804
|
-
loading:
|
|
805
|
-
disabled:
|
|
806
|
-
showBadge:
|
|
807
|
-
badgeSize:
|
|
808
|
-
badgeValue:
|
|
803
|
+
buttonStyle: U,
|
|
804
|
+
loading: y,
|
|
805
|
+
disabled: j,
|
|
806
|
+
showBadge: B,
|
|
807
|
+
badgeSize: G,
|
|
808
|
+
badgeValue: H,
|
|
809
809
|
showSubcaption: Q,
|
|
810
|
-
subcaption:
|
|
810
|
+
subcaption: ae,
|
|
811
811
|
stretched: J,
|
|
812
|
-
spaceBetween:
|
|
813
|
-
icon:
|
|
812
|
+
spaceBetween: re,
|
|
813
|
+
icon: se,
|
|
814
814
|
postfix: de,
|
|
815
|
-
className:
|
|
816
|
-
tabIndex:
|
|
817
|
-
children:
|
|
815
|
+
className: ve,
|
|
816
|
+
tabIndex: ie,
|
|
817
|
+
children: ye,
|
|
818
818
|
"data-testid": ue,
|
|
819
819
|
style: le,
|
|
820
|
-
...
|
|
821
|
-
} = t, _e = (
|
|
822
|
-
|
|
820
|
+
...me
|
|
821
|
+
} = t, _e = (xe) => {
|
|
822
|
+
O && A && A(xe);
|
|
823
823
|
};
|
|
824
|
-
return /* @__PURE__ */
|
|
824
|
+
return /* @__PURE__ */ o.jsx(
|
|
825
825
|
"button",
|
|
826
826
|
{
|
|
827
827
|
ref: r,
|
|
828
|
-
type:
|
|
829
|
-
className:
|
|
830
|
-
disabled:
|
|
828
|
+
type: R,
|
|
829
|
+
className: k,
|
|
830
|
+
disabled: f,
|
|
831
831
|
tabIndex: t.tabIndex,
|
|
832
832
|
onClick: _e,
|
|
833
833
|
"data-testid": ue,
|
|
834
|
-
"aria-disabled":
|
|
834
|
+
"aria-disabled": f || $,
|
|
835
835
|
style: le,
|
|
836
|
-
...
|
|
837
|
-
children: /* @__PURE__ */
|
|
836
|
+
...me,
|
|
837
|
+
children: /* @__PURE__ */ o.jsx(bt, { ...T })
|
|
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
|
|
@@ -853,8 +853,8 @@ function Ga() {
|
|
|
853
853
|
var r = {}.hasOwnProperty;
|
|
854
854
|
function a() {
|
|
855
855
|
for (var n = "", c = 0; c < arguments.length; c++) {
|
|
856
|
-
var
|
|
857
|
-
|
|
856
|
+
var p = arguments[c];
|
|
857
|
+
p && (n = i(n, s(p)));
|
|
858
858
|
}
|
|
859
859
|
return n;
|
|
860
860
|
}
|
|
@@ -868,23 +868,23 @@ function Ga() {
|
|
|
868
868
|
if (n.toString !== Object.prototype.toString && !n.toString.toString().includes("[native code]"))
|
|
869
869
|
return n.toString();
|
|
870
870
|
var c = "";
|
|
871
|
-
for (var
|
|
872
|
-
r.call(n,
|
|
871
|
+
for (var p in n)
|
|
872
|
+
r.call(n, p) && n[p] && (c = i(c, p));
|
|
873
873
|
return c;
|
|
874
874
|
}
|
|
875
|
-
function
|
|
875
|
+
function i(n, c) {
|
|
876
876
|
return c ? n ? n + " " + c : n + c : n;
|
|
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
|
-
var
|
|
883
|
-
const
|
|
884
|
-
avatar:
|
|
885
|
-
clickable:
|
|
886
|
-
icon:
|
|
887
|
-
disabled:
|
|
882
|
+
var Za = Ga();
|
|
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
|
+
avatar: Ya,
|
|
885
|
+
clickable: Ja,
|
|
886
|
+
icon: Ka,
|
|
887
|
+
disabled: Xa,
|
|
888
888
|
loading: Qa,
|
|
889
889
|
image: er,
|
|
890
890
|
name: tr,
|
|
@@ -925,16 +925,16 @@ const Re = /* @__PURE__ */ ia(Ua), Xa = "_avatar_1kyiq_17", Ya = "_clickable_1ky
|
|
|
925
925
|
"typography-paragraph-2-regular": "_typography-paragraph-2-regular_1lyxn_176",
|
|
926
926
|
"typography-paragraph-3-regular": "_typography-paragraph-3-regular_1lyxn_185",
|
|
927
927
|
"typography-paragraph-4-regular": "_typography-paragraph-4-regular_1lyxn_194"
|
|
928
|
-
},
|
|
928
|
+
}, mt = 99;
|
|
929
929
|
function ar(t) {
|
|
930
|
-
return t <
|
|
930
|
+
return t < mt ? `+${t}` : `${mt}+`;
|
|
931
931
|
}
|
|
932
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++) {
|
|
936
|
-
const
|
|
937
|
-
a = (a << 5) + a +
|
|
936
|
+
const i = r.charCodeAt(s);
|
|
937
|
+
a = (a << 5) + a + i;
|
|
938
938
|
}
|
|
939
939
|
return a >>> 0;
|
|
940
940
|
}
|
|
@@ -952,11 +952,11 @@ function sr(t, r = rr) {
|
|
|
952
952
|
const a = et(t), s = Math.abs(a) % r.length;
|
|
953
953
|
return r[s];
|
|
954
954
|
}
|
|
955
|
-
const
|
|
955
|
+
const vt = 2;
|
|
956
956
|
function nr(t) {
|
|
957
957
|
if (!t) return "";
|
|
958
958
|
const r = t.trim().split(/\s+/);
|
|
959
|
-
return r.length === 1 ? t.slice(0,
|
|
959
|
+
return r.length === 1 ? t.slice(0, vt).toUpperCase() : r.map((a) => a[0]).slice(0, vt).join("").toUpperCase();
|
|
960
960
|
}
|
|
961
961
|
const or = {
|
|
962
962
|
24: 8,
|
|
@@ -969,7 +969,7 @@ const or = {
|
|
|
969
969
|
96: 24,
|
|
970
970
|
208: 8
|
|
971
971
|
};
|
|
972
|
-
function
|
|
972
|
+
function jt(t, r) {
|
|
973
973
|
return r === "circle" ? t / 2 : or[t] || 12;
|
|
974
974
|
}
|
|
975
975
|
const ir = {
|
|
@@ -991,108 +991,108 @@ 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
|
+
}, Fe = te((t, r) => {
|
|
995
995
|
const {
|
|
996
996
|
style: a,
|
|
997
997
|
size: s = 40,
|
|
998
|
-
isLoading:
|
|
998
|
+
isLoading: i = !1,
|
|
999
999
|
isDisabled: n = !1,
|
|
1000
1000
|
shape: c = "circle",
|
|
1001
|
-
variant:
|
|
1001
|
+
variant: p = "filled",
|
|
1002
1002
|
placeholderType: d = "neutral",
|
|
1003
|
-
name:
|
|
1004
|
-
imgSrc:
|
|
1003
|
+
name: g,
|
|
1004
|
+
imgSrc: _,
|
|
1005
1005
|
imgAlt: h,
|
|
1006
1006
|
icon: b,
|
|
1007
|
-
imgProps:
|
|
1008
|
-
colorScheme:
|
|
1007
|
+
imgProps: m,
|
|
1008
|
+
colorScheme: x,
|
|
1009
1009
|
className: E,
|
|
1010
|
-
"data-testid":
|
|
1010
|
+
"data-testid": w,
|
|
1011
1011
|
...C
|
|
1012
|
-
} = t, { onClick:
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
}, [
|
|
1016
|
-
const
|
|
1012
|
+
} = t, { onClick: f, onPointerDown: $ } = C, D = !n && !i && (!!f || !!$), [k, T] = De(!1);
|
|
1013
|
+
Ee(() => {
|
|
1014
|
+
_ && T(!1);
|
|
1015
|
+
}, [_]);
|
|
1016
|
+
const R = _ && !k ? "image" : b ? "icon" : g ? "name" : "placeholder", A = x || R === "name" && sr(g) || "gray", q = lr(s), W = jt(s, c), U = P(
|
|
1017
1017
|
E,
|
|
1018
1018
|
pe.avatar,
|
|
1019
|
-
pe[`variant-${
|
|
1020
|
-
pe[`color-${
|
|
1021
|
-
Ne[
|
|
1019
|
+
pe[`variant-${p}`],
|
|
1020
|
+
pe[`color-${A}`],
|
|
1021
|
+
Ne[q],
|
|
1022
1022
|
{
|
|
1023
1023
|
[pe.disabled]: n,
|
|
1024
|
-
[pe.loading]:
|
|
1025
|
-
[pe.clickable]:
|
|
1024
|
+
[pe.loading]: i,
|
|
1025
|
+
[pe.clickable]: D
|
|
1026
1026
|
}
|
|
1027
|
-
),
|
|
1027
|
+
), y = {
|
|
1028
1028
|
"--avatar-size": `${s}px`,
|
|
1029
1029
|
"--avatar-border-radius": `${W}px`,
|
|
1030
1030
|
...a
|
|
1031
|
-
},
|
|
1032
|
-
icon: () => /* @__PURE__ */
|
|
1033
|
-
name: () => /* @__PURE__ */
|
|
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
|
+
name: () => /* @__PURE__ */ o.jsx(
|
|
1034
1034
|
"span",
|
|
1035
1035
|
{
|
|
1036
1036
|
role: "textbox",
|
|
1037
1037
|
"data-testid": "avatar-name",
|
|
1038
1038
|
className: pe.name,
|
|
1039
1039
|
title: h || void 0,
|
|
1040
|
-
children: nr(
|
|
1040
|
+
children: nr(g || "")
|
|
1041
1041
|
}
|
|
1042
1042
|
),
|
|
1043
|
-
placeholder: () => /* @__PURE__ */
|
|
1043
|
+
placeholder: () => /* @__PURE__ */ o.jsx(
|
|
1044
1044
|
"img",
|
|
1045
1045
|
{
|
|
1046
|
-
...
|
|
1046
|
+
...m,
|
|
1047
1047
|
"data-testid": "avatar-placeholder",
|
|
1048
1048
|
className: pe.image,
|
|
1049
1049
|
src: pr[d],
|
|
1050
1050
|
alt: h || void 0
|
|
1051
1051
|
}
|
|
1052
1052
|
),
|
|
1053
|
-
image: () => /* @__PURE__ */
|
|
1053
|
+
image: () => /* @__PURE__ */ o.jsx(
|
|
1054
1054
|
"img",
|
|
1055
1055
|
{
|
|
1056
1056
|
"data-testid": "avatar-image",
|
|
1057
|
-
...
|
|
1057
|
+
...m,
|
|
1058
1058
|
className: pe.image,
|
|
1059
|
-
src:
|
|
1059
|
+
src: _ || void 0,
|
|
1060
1060
|
alt: h || void 0,
|
|
1061
|
-
onLoad: () =>
|
|
1062
|
-
onError: (
|
|
1063
|
-
var
|
|
1064
|
-
|
|
1061
|
+
onLoad: () => T(!1),
|
|
1062
|
+
onError: (G) => {
|
|
1063
|
+
var H;
|
|
1064
|
+
T(!0), (H = m == null ? void 0 : m.onError) == null || H.call(m, G);
|
|
1065
1065
|
}
|
|
1066
1066
|
}
|
|
1067
1067
|
)
|
|
1068
|
-
},
|
|
1069
|
-
|
|
1068
|
+
}, B = (G) => {
|
|
1069
|
+
D && (f == null || f(G));
|
|
1070
1070
|
};
|
|
1071
|
-
return /* @__PURE__ */
|
|
1071
|
+
return /* @__PURE__ */ o.jsx(
|
|
1072
1072
|
"div",
|
|
1073
1073
|
{
|
|
1074
1074
|
ref: r,
|
|
1075
|
-
onClick:
|
|
1076
|
-
className:
|
|
1077
|
-
style:
|
|
1078
|
-
"data-testid":
|
|
1079
|
-
"aria-disabled": n ||
|
|
1080
|
-
children:
|
|
1075
|
+
onClick: B,
|
|
1076
|
+
className: U,
|
|
1077
|
+
style: y,
|
|
1078
|
+
"data-testid": w,
|
|
1079
|
+
"aria-disabled": n || i,
|
|
1080
|
+
children: j[R](null)
|
|
1081
1081
|
}
|
|
1082
1082
|
);
|
|
1083
1083
|
}), fr = "_avatarGroup_157g4_1", gr = {
|
|
1084
1084
|
avatarGroup: fr
|
|
1085
1085
|
};
|
|
1086
1086
|
let hr = (t = 21) => crypto.getRandomValues(new Uint8Array(t)).reduce((r, a) => (a &= 63, a < 36 ? r += a.toString(36) : a < 62 ? r += (a - 26).toString(36).toUpperCase() : a > 62 ? r += "-" : r += "_", r), "");
|
|
1087
|
-
function br(t, r, a, s,
|
|
1088
|
-
const
|
|
1087
|
+
function br(t, r, a, s, i, n, c) {
|
|
1088
|
+
const p = Math.min(i, n) / 2, d = Math.min(c, p), g = ["M0,0", `H${t}`, `V${r}`, "H0", "V0", "Z"].join(" "), _ = [
|
|
1089
1089
|
`M${a + d},${s}`,
|
|
1090
|
-
`L${a +
|
|
1090
|
+
`L${a + i - d},${s}`,
|
|
1091
1091
|
// Верхний правый угол
|
|
1092
|
-
`A${d},${d} 0 0 1 ${a +
|
|
1093
|
-
`L${a +
|
|
1092
|
+
`A${d},${d} 0 0 1 ${a + i},${s + d}`,
|
|
1093
|
+
`L${a + i},${s + n - d}`,
|
|
1094
1094
|
// Нижний правый угол
|
|
1095
|
-
`A${d},${d} 0 0 1 ${a +
|
|
1095
|
+
`A${d},${d} 0 0 1 ${a + i - d},${s + n}`,
|
|
1096
1096
|
`L${a + d},${s + n}`,
|
|
1097
1097
|
// Нижний левый угол
|
|
1098
1098
|
`A${d},${d} 0 0 1 ${a},${s + n - d}`,
|
|
@@ -1101,33 +1101,33 @@ function br(t, r, a, s, o, n, c) {
|
|
|
1101
1101
|
`A${d},${d} 0 0 1 ${a + d},${s}`,
|
|
1102
1102
|
"Z"
|
|
1103
1103
|
].join(" ");
|
|
1104
|
-
return `${
|
|
1104
|
+
return `${g} ${_}`;
|
|
1105
1105
|
}
|
|
1106
|
-
const yr = 3,
|
|
1106
|
+
const yr = 3, mr = (t) => {
|
|
1107
1107
|
const {
|
|
1108
1108
|
avatars: r = [],
|
|
1109
1109
|
size: a = 40,
|
|
1110
1110
|
overlap: s = 0.3,
|
|
1111
|
-
shape:
|
|
1111
|
+
shape: i = "circle",
|
|
1112
1112
|
overflowCount: n = 0,
|
|
1113
1113
|
overflowProps: c
|
|
1114
|
-
} = t,
|
|
1114
|
+
} = t, p = a * s, d = -p + yr, g = jt(a, i), h = We(hr()).current.toString(), b = Ae(gr.avatarGroup), m = br(
|
|
1115
1115
|
a,
|
|
1116
1116
|
a,
|
|
1117
|
-
a -
|
|
1117
|
+
a - p,
|
|
1118
1118
|
// X-координата начала выреза
|
|
1119
1119
|
0,
|
|
1120
1120
|
// Y-координата начала выреза
|
|
1121
1121
|
a,
|
|
1122
1122
|
a,
|
|
1123
|
-
|
|
1123
|
+
g
|
|
1124
1124
|
);
|
|
1125
|
-
return r.length === 0 ? null : /* @__PURE__ */
|
|
1126
|
-
r.map((
|
|
1127
|
-
const C = E + 1 >=
|
|
1128
|
-
if (
|
|
1129
|
-
const
|
|
1130
|
-
return /* @__PURE__ */
|
|
1125
|
+
return r.length === 0 ? null : /* @__PURE__ */ o.jsxs("div", { className: b, children: [
|
|
1126
|
+
r.map((x, E, w) => {
|
|
1127
|
+
const C = E + 1 >= w.length;
|
|
1128
|
+
if (x.wrapper) {
|
|
1129
|
+
const f = x.wrapper;
|
|
1130
|
+
return /* @__PURE__ */ o.jsx(
|
|
1131
1131
|
"div",
|
|
1132
1132
|
{
|
|
1133
1133
|
style: {
|
|
@@ -1135,12 +1135,12 @@ const yr = 3, xr = (t) => {
|
|
|
1135
1135
|
clipPath: C && !n ? void 0 : `url(#${h})`,
|
|
1136
1136
|
marginRight: d
|
|
1137
1137
|
},
|
|
1138
|
-
children: /* @__PURE__ */
|
|
1138
|
+
children: /* @__PURE__ */ o.jsx(f, { children: /* @__PURE__ */ o.jsx(Fe, { size: a, shape: i, ...x }) })
|
|
1139
1139
|
},
|
|
1140
|
-
et(
|
|
1140
|
+
et(x) + E
|
|
1141
1141
|
);
|
|
1142
1142
|
}
|
|
1143
|
-
return /* @__PURE__ */
|
|
1143
|
+
return /* @__PURE__ */ o.jsx(
|
|
1144
1144
|
"div",
|
|
1145
1145
|
{
|
|
1146
1146
|
style: {
|
|
@@ -1148,33 +1148,33 @@ const yr = 3, xr = (t) => {
|
|
|
1148
1148
|
clipPath: C && !n ? void 0 : `url(#${h})`,
|
|
1149
1149
|
marginRight: d
|
|
1150
1150
|
},
|
|
1151
|
-
children: /* @__PURE__ */
|
|
1151
|
+
children: /* @__PURE__ */ o.jsx(Fe, { size: a, shape: i, ...x })
|
|
1152
1152
|
},
|
|
1153
|
-
et(
|
|
1153
|
+
et(x) + E
|
|
1154
1154
|
);
|
|
1155
1155
|
}),
|
|
1156
|
-
n > 0 && /* @__PURE__ */
|
|
1157
|
-
|
|
1156
|
+
n > 0 && /* @__PURE__ */ o.jsx("div", { style: { marginRight: d }, children: /* @__PURE__ */ o.jsx(
|
|
1157
|
+
Fe,
|
|
1158
1158
|
{
|
|
1159
1159
|
size: a,
|
|
1160
|
-
shape:
|
|
1160
|
+
shape: i,
|
|
1161
1161
|
icon: () => ar(n),
|
|
1162
1162
|
colorScheme: "gray",
|
|
1163
1163
|
variant: "light",
|
|
1164
1164
|
...c
|
|
1165
1165
|
}
|
|
1166
1166
|
) }),
|
|
1167
|
-
/* @__PURE__ */
|
|
1167
|
+
/* @__PURE__ */ o.jsx("svg", { width: "0", height: "0", children: /* @__PURE__ */ o.jsx("clipPath", { id: `${h}`, children: /* @__PURE__ */ o.jsx("path", { clipPathUnits: "objectBoundingBox", d: m, clipRule: "evenodd" }) }) })
|
|
1168
1168
|
] });
|
|
1169
|
-
},
|
|
1170
|
-
Group:
|
|
1171
|
-
}),
|
|
1172
|
-
wrapper:
|
|
1173
|
-
badge__container:
|
|
1169
|
+
}, kn = Object.assign(Fe, {
|
|
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", fe = {
|
|
1172
|
+
wrapper: vr,
|
|
1173
|
+
badge__container: xr,
|
|
1174
1174
|
badge__content: Cr,
|
|
1175
1175
|
interactive: wr,
|
|
1176
1176
|
disabled: Sr,
|
|
1177
|
-
icon:
|
|
1177
|
+
icon: Er,
|
|
1178
1178
|
"variant-filled": "_variant-filled_ecbsu_102",
|
|
1179
1179
|
"color-brand": "_color-brand_ecbsu_107",
|
|
1180
1180
|
"color-red": "_color-red_ecbsu_111",
|
|
@@ -1206,95 +1206,96 @@ const yr = 3, xr = (t) => {
|
|
|
1206
1206
|
"position-bottom-center-inside": "_position-bottom-center-inside_ecbsu_447",
|
|
1207
1207
|
"position-middle-left-inside": "_position-middle-left-inside_ecbsu_453",
|
|
1208
1208
|
"position-middle-right-inside": "_position-middle-right-inside_ecbsu_459"
|
|
1209
|
-
},
|
|
1209
|
+
}, Lr = (t) => t === "rgba(0, 0, 0, 0)" || t === "transparent" || t.startsWith("rgba") && t.endsWith(", 0)"), Mr = (t) => {
|
|
1210
1210
|
if (!t) return null;
|
|
1211
1211
|
let r = t;
|
|
1212
1212
|
for (; r; ) {
|
|
1213
1213
|
const s = window.getComputedStyle(r).backgroundColor;
|
|
1214
|
-
if (
|
|
1214
|
+
if (!Lr(s)) return s;
|
|
1215
1215
|
r = r.parentElement;
|
|
1216
1216
|
}
|
|
1217
1217
|
return null;
|
|
1218
|
-
},
|
|
1219
|
-
const t = We(null), [r, a] =
|
|
1220
|
-
return
|
|
1218
|
+
}, $r = () => {
|
|
1219
|
+
const t = We(null), [r, a] = De(null);
|
|
1220
|
+
return Ee(() => {
|
|
1221
1221
|
if (t.current) {
|
|
1222
|
-
const s =
|
|
1222
|
+
const s = Mr(t.current);
|
|
1223
1223
|
a(s);
|
|
1224
1224
|
}
|
|
1225
1225
|
}, []), { ref: t, bgColor: r };
|
|
1226
|
-
},
|
|
1226
|
+
}, Tn = te((t, r) => {
|
|
1227
1227
|
const {
|
|
1228
1228
|
icon: a,
|
|
1229
1229
|
children: s,
|
|
1230
|
-
variant:
|
|
1230
|
+
variant: i = "filled",
|
|
1231
1231
|
label: n,
|
|
1232
1232
|
isHidden: c = !1,
|
|
1233
|
-
colorScheme:
|
|
1233
|
+
colorScheme: p = "red",
|
|
1234
1234
|
size: d = 20,
|
|
1235
|
-
position:
|
|
1236
|
-
positionOffset:
|
|
1235
|
+
position: g = "top-right",
|
|
1236
|
+
positionOffset: _ = { x: 0, y: 0 },
|
|
1237
1237
|
cutoutBackground: h,
|
|
1238
1238
|
isDisabled: b,
|
|
1239
|
-
className:
|
|
1240
|
-
"data-testid":
|
|
1239
|
+
className: m,
|
|
1240
|
+
"data-testid": x = "badge",
|
|
1241
1241
|
...E
|
|
1242
|
-
} = t, { onClick:
|
|
1243
|
-
|
|
1242
|
+
} = t, { onClick: w, onPointerDown: C } = E, { ref: f, bgColor: $ } = $r(), O = h || $, k = !b && (!!w || !!C), T = Ae(fe.badge__container, fe[`position-${g}`]), R = Ae(
|
|
1243
|
+
m,
|
|
1244
1244
|
fe.badge__content,
|
|
1245
|
-
fe[`color-${
|
|
1246
|
-
fe[`variant-${
|
|
1245
|
+
fe[`color-${p}`],
|
|
1246
|
+
fe[`variant-${i}`],
|
|
1247
1247
|
{
|
|
1248
1248
|
[fe.disabled]: b,
|
|
1249
1249
|
[fe.icon]: !!a,
|
|
1250
|
-
[fe.interactive]:
|
|
1250
|
+
[fe.interactive]: k
|
|
1251
1251
|
}
|
|
1252
|
-
),
|
|
1252
|
+
), A = {
|
|
1253
1253
|
"--badge-height": `${d}px`,
|
|
1254
|
-
"--badge-offset-x": `${
|
|
1255
|
-
"--badge-offset-y": `${
|
|
1256
|
-
...
|
|
1257
|
-
...
|
|
1258
|
-
},
|
|
1259
|
-
|
|
1254
|
+
"--badge-offset-x": `${_.x}px`,
|
|
1255
|
+
"--badge-offset-y": `${_.y}px`,
|
|
1256
|
+
...O && { "--badge-cutout-bg": O },
|
|
1257
|
+
...i === "transparent" && { "--badge-cutout-bg": "transparent" }
|
|
1258
|
+
}, q = (a == null ? void 0 : a({})) || n, W = (U) => {
|
|
1259
|
+
k && (w == null || w(U));
|
|
1260
1260
|
};
|
|
1261
|
-
return /* @__PURE__ */
|
|
1261
|
+
return /* @__PURE__ */ o.jsxs("div", { className: fe.wrapper, ref: f, "data-testid": x + "-wrapper", children: [
|
|
1262
1262
|
s,
|
|
1263
|
-
!c && /* @__PURE__ */
|
|
1263
|
+
!c && /* @__PURE__ */ o.jsx(
|
|
1264
1264
|
"span",
|
|
1265
1265
|
{
|
|
1266
|
-
className:
|
|
1267
|
-
style:
|
|
1268
|
-
"data-testid":
|
|
1269
|
-
children: /* @__PURE__ */
|
|
1266
|
+
className: T,
|
|
1267
|
+
style: A,
|
|
1268
|
+
"data-testid": x + "-container",
|
|
1269
|
+
children: /* @__PURE__ */ o.jsx(
|
|
1270
1270
|
"span",
|
|
1271
1271
|
{
|
|
1272
1272
|
...E,
|
|
1273
1273
|
onClick: W,
|
|
1274
|
-
className:
|
|
1275
|
-
"data-testid":
|
|
1274
|
+
className: R,
|
|
1275
|
+
"data-testid": x + "-content",
|
|
1276
1276
|
ref: r,
|
|
1277
1277
|
"aria-disabled": b,
|
|
1278
|
-
children:
|
|
1278
|
+
children: q
|
|
1279
1279
|
}
|
|
1280
1280
|
)
|
|
1281
1281
|
}
|
|
1282
1282
|
)
|
|
1283
1283
|
] });
|
|
1284
|
-
}),
|
|
1285
|
-
container:
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1284
|
+
}), jr = "_container_yn8yz_7", Ir = "_loading_yn8yz_17", Rr = "_error_yn8yz_18", kr = "_image_yn8yz_22", ke = {
|
|
1285
|
+
container: jr,
|
|
1286
|
+
loading: Ir,
|
|
1287
|
+
error: Rr,
|
|
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", Pr = "_gray_isv17_35", Br = "_special_isv17_39", Fr = "_contrast_isv17_43", zr = "_container_isv17_47", Wr = "_overlay_isv17_57", Te = {
|
|
1290
|
+
loader: Tr,
|
|
1291
|
+
spin: Ar,
|
|
1291
1292
|
accent: Nr,
|
|
1292
|
-
neutral:
|
|
1293
|
-
positive:
|
|
1294
|
-
negative:
|
|
1295
|
-
gray:
|
|
1296
|
-
special:
|
|
1297
|
-
contrast:
|
|
1293
|
+
neutral: Dr,
|
|
1294
|
+
positive: Or,
|
|
1295
|
+
negative: Ur,
|
|
1296
|
+
gray: Pr,
|
|
1297
|
+
special: Br,
|
|
1298
|
+
contrast: Fr,
|
|
1298
1299
|
container: zr,
|
|
1299
1300
|
overlay: Wr,
|
|
1300
1301
|
"size-16": "_size-16_isv17_72",
|
|
@@ -1302,33 +1303,33 @@ const yr = 3, xr = (t) => {
|
|
|
1302
1303
|
"size-48": "_size-48_isv17_80",
|
|
1303
1304
|
"size-64": "_size-64_isv17_84",
|
|
1304
1305
|
"size-96": "_size-96_isv17_88"
|
|
1305
|
-
},
|
|
1306
|
+
}, It = te(
|
|
1306
1307
|
({
|
|
1307
1308
|
size: t = 24,
|
|
1308
1309
|
variant: r = "accent",
|
|
1309
1310
|
className: a,
|
|
1310
1311
|
"data-testid": s = "loader",
|
|
1311
|
-
style:
|
|
1312
|
+
style: i,
|
|
1312
1313
|
...n
|
|
1313
1314
|
}, c) => {
|
|
1314
|
-
const
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1315
|
+
const p = Ae(
|
|
1316
|
+
Te.loader,
|
|
1317
|
+
Te[r],
|
|
1318
|
+
Te[`size-${t}`],
|
|
1318
1319
|
a
|
|
1319
1320
|
);
|
|
1320
|
-
return /* @__PURE__ */
|
|
1321
|
+
return /* @__PURE__ */ o.jsx(
|
|
1321
1322
|
"svg",
|
|
1322
1323
|
{
|
|
1323
1324
|
ref: c,
|
|
1324
|
-
className:
|
|
1325
|
+
className: p,
|
|
1325
1326
|
fill: "none",
|
|
1326
1327
|
viewBox: "0 0 16 16",
|
|
1327
1328
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1328
1329
|
"data-testid": s,
|
|
1329
|
-
style:
|
|
1330
|
+
style: i,
|
|
1330
1331
|
...n,
|
|
1331
|
-
children: /* @__PURE__ */
|
|
1332
|
+
children: /* @__PURE__ */ o.jsx(
|
|
1332
1333
|
"path",
|
|
1333
1334
|
{
|
|
1334
1335
|
d: "M14 8C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629 4.68629 2 8 2",
|
|
@@ -1340,28 +1341,28 @@ const yr = 3, xr = (t) => {
|
|
|
1340
1341
|
}
|
|
1341
1342
|
);
|
|
1342
1343
|
}
|
|
1343
|
-
),
|
|
1344
|
+
), Vr = te((t, r) => {
|
|
1344
1345
|
const {
|
|
1345
1346
|
loading: a = !1,
|
|
1346
1347
|
size: s = 24,
|
|
1347
|
-
variant:
|
|
1348
|
+
variant: i = "accent",
|
|
1348
1349
|
children: n,
|
|
1349
1350
|
className: c,
|
|
1350
|
-
style:
|
|
1351
|
+
style: p,
|
|
1351
1352
|
"data-testid": d,
|
|
1352
|
-
...
|
|
1353
|
-
} = t,
|
|
1354
|
-
return /* @__PURE__ */
|
|
1353
|
+
...g
|
|
1354
|
+
} = t, _ = Ae(Te.container, c);
|
|
1355
|
+
return /* @__PURE__ */ o.jsxs("div", { ref: r, className: _, style: p, "data-testid": d, ...g, children: [
|
|
1355
1356
|
n,
|
|
1356
|
-
a && /* @__PURE__ */
|
|
1357
|
+
a && /* @__PURE__ */ o.jsx("div", { className: Te.overlay, children: /* @__PURE__ */ o.jsx(It, { size: s, variant: i, "data-testid": `${d}-spinner` }) })
|
|
1357
1358
|
] });
|
|
1358
|
-
}),
|
|
1359
|
-
|
|
1359
|
+
}), Hr = te((t, r) => t.children ? /* @__PURE__ */ o.jsx(
|
|
1360
|
+
Vr,
|
|
1360
1361
|
{
|
|
1361
1362
|
ref: r,
|
|
1362
1363
|
...t
|
|
1363
1364
|
}
|
|
1364
|
-
) : /* @__PURE__ */
|
|
1365
|
+
) : /* @__PURE__ */ o.jsx(It, { ref: r, ...t })), qr = ({ width: t = 48, height: r = 48, className: a, "data-testid": s }) => /* @__PURE__ */ o.jsx(
|
|
1365
1366
|
"svg",
|
|
1366
1367
|
{
|
|
1367
1368
|
width: t,
|
|
@@ -1371,7 +1372,7 @@ const yr = 3, xr = (t) => {
|
|
|
1371
1372
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1372
1373
|
className: a,
|
|
1373
1374
|
"data-testid": s,
|
|
1374
|
-
children: /* @__PURE__ */
|
|
1375
|
+
children: /* @__PURE__ */ o.jsx(
|
|
1375
1376
|
"path",
|
|
1376
1377
|
{
|
|
1377
1378
|
d: "M32.4 42H13.8627C12.6511 42 12.0453 42 11.7648 41.7604C11.5214 41.5525 11.3922 41.2407 11.4173 40.9215C11.4462 40.5538 11.8746 40.1254 12.7314 39.2686L29.7373 22.2627C30.5293 21.4707 30.9253 21.0747 31.382 20.9263C31.7837 20.7958 32.2163 20.7958 32.618 20.9263C33.0747 21.0747 33.4707 21.4707 34.2627 22.2627L42 30V32.4M32.4 42C35.7603 42 37.4405 42 38.7239 41.346C39.8529 40.7708 40.7708 39.8529 41.346 38.7239C42 37.4405 42 35.7603 42 32.4M32.4 42H15.6C12.2397 42 10.5595 42 9.27606 41.346C8.14708 40.7708 7.2292 39.8529 6.65396 38.7239C6 37.4405 6 35.7603 6 32.4V15.6C6 12.2397 6 10.5595 6.65396 9.27606C7.2292 8.14708 8.14708 7.2292 9.27606 6.65396C10.5595 6 12.2397 6 15.6 6H32.4C35.7603 6 37.4405 6 38.7239 6.65396C39.8529 7.2292 40.7708 8.14708 41.346 9.27606C42 10.5595 42 12.2397 42 15.6V32.4M21 17C21 19.2091 19.2091 21 17 21C14.7909 21 13 19.2091 13 17C13 14.7909 14.7909 13 17 13C19.2091 13 21 14.7909 21 17Z",
|
|
@@ -1382,140 +1383,156 @@ const yr = 3, xr = (t) => {
|
|
|
1382
1383
|
}
|
|
1383
1384
|
)
|
|
1384
1385
|
}
|
|
1385
|
-
),
|
|
1386
|
+
), An = te((t, r) => {
|
|
1386
1387
|
const {
|
|
1387
1388
|
alt: a = "",
|
|
1388
1389
|
loading: s = "lazy",
|
|
1389
|
-
src:
|
|
1390
|
+
src: i,
|
|
1390
1391
|
isLoading: n = !1,
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1392
|
+
style: c,
|
|
1393
|
+
className: p,
|
|
1394
|
+
containerProps: d,
|
|
1395
|
+
"data-testid": g = "image",
|
|
1396
|
+
onError: _,
|
|
1397
|
+
onLoad: h,
|
|
1398
|
+
...b
|
|
1399
|
+
} = t, { className: m, ...x } = d ?? {}, [E, w] = De("loading"), C = E === "error", f = (n || E === "loading") && !C, $ = E === "loaded" && !n, O = P(
|
|
1400
|
+
ke.container,
|
|
1401
|
+
{ [ke.loading]: f && !$, [ke.error]: C && !$ },
|
|
1402
|
+
m
|
|
1403
|
+
), D = P(
|
|
1404
|
+
ke.image,
|
|
1398
1405
|
{
|
|
1399
|
-
[
|
|
1406
|
+
[ke.loading]: f
|
|
1400
1407
|
},
|
|
1401
|
-
|
|
1402
|
-
),
|
|
1403
|
-
(
|
|
1404
|
-
|
|
1408
|
+
p
|
|
1409
|
+
), k = Se(
|
|
1410
|
+
(A) => {
|
|
1411
|
+
w("loaded"), h == null || h(A);
|
|
1405
1412
|
},
|
|
1406
|
-
[
|
|
1407
|
-
),
|
|
1408
|
-
(
|
|
1409
|
-
|
|
1413
|
+
[h]
|
|
1414
|
+
), T = Se(
|
|
1415
|
+
(A) => {
|
|
1416
|
+
w("error"), _ == null || _(A);
|
|
1410
1417
|
},
|
|
1411
|
-
[
|
|
1412
|
-
),
|
|
1413
|
-
loader: /* @__PURE__ */
|
|
1414
|
-
/* @__PURE__ */
|
|
1415
|
-
/* @__PURE__ */
|
|
1418
|
+
[_]
|
|
1419
|
+
), R = {
|
|
1420
|
+
loader: /* @__PURE__ */ o.jsxs(Mt, { children: [
|
|
1421
|
+
/* @__PURE__ */ o.jsx(Hr, { size: 48, variant: "special", "data-testid": `${g}-loader` }),
|
|
1422
|
+
/* @__PURE__ */ o.jsx(
|
|
1416
1423
|
"img",
|
|
1417
1424
|
{
|
|
1418
1425
|
alt: a,
|
|
1419
|
-
src:
|
|
1420
|
-
onLoad:
|
|
1421
|
-
onError:
|
|
1426
|
+
src: i,
|
|
1427
|
+
onLoad: k,
|
|
1428
|
+
onError: T,
|
|
1422
1429
|
style: { display: "none" }
|
|
1423
1430
|
}
|
|
1424
1431
|
)
|
|
1425
1432
|
] }),
|
|
1426
|
-
error: /* @__PURE__ */
|
|
1427
|
-
image: /* @__PURE__ */
|
|
1433
|
+
error: /* @__PURE__ */ o.jsx(qr, { "data-testid": `${g}-fallback` }),
|
|
1434
|
+
image: /* @__PURE__ */ o.jsx(
|
|
1428
1435
|
"img",
|
|
1429
1436
|
{
|
|
1430
1437
|
ref: r,
|
|
1431
1438
|
alt: a,
|
|
1432
|
-
"data-testid":
|
|
1439
|
+
"data-testid": g,
|
|
1433
1440
|
loading: s,
|
|
1434
|
-
src:
|
|
1435
|
-
className:
|
|
1441
|
+
src: i,
|
|
1442
|
+
className: D,
|
|
1443
|
+
...b
|
|
1436
1444
|
}
|
|
1437
1445
|
)
|
|
1438
1446
|
};
|
|
1439
|
-
return
|
|
1440
|
-
if (!
|
|
1441
|
-
|
|
1447
|
+
return Ee(() => {
|
|
1448
|
+
if (!i) {
|
|
1449
|
+
w("error");
|
|
1442
1450
|
return;
|
|
1443
1451
|
}
|
|
1444
|
-
|
|
1445
|
-
}, [
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1452
|
+
w("loading");
|
|
1453
|
+
}, [i]), /* @__PURE__ */ o.jsxs(
|
|
1454
|
+
"div",
|
|
1455
|
+
{
|
|
1456
|
+
className: O,
|
|
1457
|
+
"data-testid": `${g}-container`,
|
|
1458
|
+
style: c,
|
|
1459
|
+
...x,
|
|
1460
|
+
children: [
|
|
1461
|
+
f && R.loader,
|
|
1462
|
+
C && R.error,
|
|
1463
|
+
$ && R.image
|
|
1464
|
+
]
|
|
1465
|
+
}
|
|
1466
|
+
);
|
|
1467
|
+
}), Gr = {}, Rt = ra({
|
|
1468
|
+
locale: Gr
|
|
1469
|
+
}), Zr = () => {
|
|
1470
|
+
const t = sa(Rt);
|
|
1454
1471
|
if (!t)
|
|
1455
1472
|
throw new Error("useConfig must be used within a ConfigProvider");
|
|
1456
1473
|
return t;
|
|
1457
|
-
},
|
|
1458
|
-
const { locale: t } =
|
|
1474
|
+
}, Nn = () => {
|
|
1475
|
+
const { locale: t } = Zr();
|
|
1459
1476
|
return t;
|
|
1460
|
-
},
|
|
1477
|
+
}, Yr = {}, Jr = {}, Kr = {}, Dn = ({
|
|
1461
1478
|
locale: t = {},
|
|
1462
1479
|
theme: r,
|
|
1463
1480
|
children: a,
|
|
1464
1481
|
className: s
|
|
1465
1482
|
}) => (na(() => {
|
|
1466
1483
|
if (r) {
|
|
1467
|
-
const
|
|
1484
|
+
const i = document.documentElement;
|
|
1468
1485
|
Object.entries(r).forEach(([n, c]) => {
|
|
1469
|
-
|
|
1486
|
+
i.style.setProperty(n, c);
|
|
1470
1487
|
});
|
|
1471
1488
|
}
|
|
1472
|
-
}, [r]), /* @__PURE__ */
|
|
1473
|
-
/* @__PURE__ */
|
|
1489
|
+
}, [r]), /* @__PURE__ */ o.jsxs(Mt, { children: [
|
|
1490
|
+
/* @__PURE__ */ o.jsx(
|
|
1474
1491
|
"div",
|
|
1475
1492
|
{
|
|
1476
1493
|
"data-testid": "ConfigProvider-component",
|
|
1477
|
-
className:
|
|
1494
|
+
className: P(Yr, Jr, Kr, s)
|
|
1478
1495
|
}
|
|
1479
1496
|
),
|
|
1480
|
-
/* @__PURE__ */
|
|
1481
|
-
] })),
|
|
1482
|
-
tag:
|
|
1483
|
-
label:
|
|
1484
|
-
iconWrapper:
|
|
1485
|
-
medium:
|
|
1486
|
-
large:
|
|
1487
|
-
disabled:
|
|
1488
|
-
neutral:
|
|
1489
|
-
positive:
|
|
1490
|
-
negative:
|
|
1491
|
-
warning:
|
|
1492
|
-
vivid:
|
|
1493
|
-
special:
|
|
1494
|
-
accent:
|
|
1495
|
-
blue:
|
|
1496
|
-
lovely:
|
|
1497
|
-
dreamy:
|
|
1498
|
-
},
|
|
1497
|
+
/* @__PURE__ */ o.jsx(Rt.Provider, { value: { locale: t }, children: a })
|
|
1498
|
+
] })), 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 = {
|
|
1499
|
+
tag: Xr,
|
|
1500
|
+
label: Qr,
|
|
1501
|
+
iconWrapper: es,
|
|
1502
|
+
medium: ts,
|
|
1503
|
+
large: as,
|
|
1504
|
+
disabled: rs,
|
|
1505
|
+
neutral: ss,
|
|
1506
|
+
positive: ns,
|
|
1507
|
+
negative: os,
|
|
1508
|
+
warning: is,
|
|
1509
|
+
vivid: ls,
|
|
1510
|
+
special: cs,
|
|
1511
|
+
accent: ds,
|
|
1512
|
+
blue: us,
|
|
1513
|
+
lovely: _s,
|
|
1514
|
+
dreamy: ps
|
|
1515
|
+
}, Un = te((t, r) => {
|
|
1499
1516
|
const {
|
|
1500
1517
|
className: a,
|
|
1501
1518
|
children: s,
|
|
1502
|
-
componentStyle:
|
|
1519
|
+
componentStyle: i = "neutral",
|
|
1503
1520
|
size: n = "medium",
|
|
1504
1521
|
disabled: c = !1,
|
|
1505
|
-
showLabel:
|
|
1522
|
+
showLabel: p = !!s,
|
|
1506
1523
|
slotStart: d,
|
|
1507
|
-
slotEnd:
|
|
1508
|
-
slotStartWrapperProps:
|
|
1524
|
+
slotEnd: g,
|
|
1525
|
+
slotStartWrapperProps: _ = {},
|
|
1509
1526
|
slotEndWrapperProps: h = {},
|
|
1510
1527
|
"data-testid": b
|
|
1511
|
-
} = t, { className:
|
|
1512
|
-
return /* @__PURE__ */
|
|
1528
|
+
} = t, { className: m, ...x } = _, { className: E, ...w } = h;
|
|
1529
|
+
return /* @__PURE__ */ o.jsxs(
|
|
1513
1530
|
"div",
|
|
1514
1531
|
{
|
|
1515
|
-
className:
|
|
1532
|
+
className: P(
|
|
1516
1533
|
we.tag,
|
|
1517
1534
|
we[n],
|
|
1518
|
-
we[
|
|
1535
|
+
we[i],
|
|
1519
1536
|
{
|
|
1520
1537
|
[we.disabled]: c,
|
|
1521
1538
|
[Ne["typography-label-3-regular"]]: n === "medium",
|
|
@@ -1526,29 +1543,29 @@ const yr = 3, xr = (t) => {
|
|
|
1526
1543
|
"data-testid": b || "tag-component",
|
|
1527
1544
|
ref: r,
|
|
1528
1545
|
children: [
|
|
1529
|
-
d && /* @__PURE__ */
|
|
1530
|
-
|
|
1531
|
-
|
|
1546
|
+
d && /* @__PURE__ */ o.jsx("span", { className: P([we.iconWrapper, m]), ...x, children: d }),
|
|
1547
|
+
p && /* @__PURE__ */ o.jsx("span", { className: P([we.label]), children: s }),
|
|
1548
|
+
g && /* @__PURE__ */ o.jsx("span", { className: P([we.iconWrapper, E]), ...w, children: g })
|
|
1532
1549
|
]
|
|
1533
1550
|
}
|
|
1534
1551
|
);
|
|
1535
|
-
}),
|
|
1536
|
-
checkbox:
|
|
1537
|
-
input:
|
|
1538
|
-
icon:
|
|
1539
|
-
container:
|
|
1540
|
-
error:
|
|
1541
|
-
checkboxWrapper:
|
|
1542
|
-
medium:
|
|
1543
|
-
large:
|
|
1544
|
-
label:
|
|
1545
|
-
},
|
|
1552
|
+
}), 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 = {
|
|
1553
|
+
checkbox: fs,
|
|
1554
|
+
input: gs,
|
|
1555
|
+
icon: hs,
|
|
1556
|
+
container: bs,
|
|
1557
|
+
error: ys,
|
|
1558
|
+
checkboxWrapper: ms,
|
|
1559
|
+
medium: vs,
|
|
1560
|
+
large: xs,
|
|
1561
|
+
label: Cs
|
|
1562
|
+
}, ws = ({
|
|
1546
1563
|
width: t = 12,
|
|
1547
1564
|
height: r = 9,
|
|
1548
1565
|
className: a = "",
|
|
1549
1566
|
color: s = "currentColor",
|
|
1550
|
-
...
|
|
1551
|
-
}) => /* @__PURE__ */
|
|
1567
|
+
...i
|
|
1568
|
+
}) => /* @__PURE__ */ o.jsx(
|
|
1552
1569
|
"svg",
|
|
1553
1570
|
{
|
|
1554
1571
|
className: a,
|
|
@@ -1557,8 +1574,8 @@ const yr = 3, xr = (t) => {
|
|
|
1557
1574
|
viewBox: "0 0 14 10",
|
|
1558
1575
|
fill: "none",
|
|
1559
1576
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1560
|
-
...
|
|
1561
|
-
children: /* @__PURE__ */
|
|
1577
|
+
...i,
|
|
1578
|
+
children: /* @__PURE__ */ o.jsx(
|
|
1562
1579
|
"path",
|
|
1563
1580
|
{
|
|
1564
1581
|
fillRule: "evenodd",
|
|
@@ -1568,13 +1585,13 @@ const yr = 3, xr = (t) => {
|
|
|
1568
1585
|
}
|
|
1569
1586
|
)
|
|
1570
1587
|
}
|
|
1571
|
-
),
|
|
1588
|
+
), Ss = ({
|
|
1572
1589
|
width: t = 12,
|
|
1573
1590
|
height: r = 2,
|
|
1574
1591
|
className: a = "",
|
|
1575
1592
|
color: s = "currentColor",
|
|
1576
|
-
...
|
|
1577
|
-
}) => /* @__PURE__ */
|
|
1593
|
+
...i
|
|
1594
|
+
}) => /* @__PURE__ */ o.jsx(
|
|
1578
1595
|
"svg",
|
|
1579
1596
|
{
|
|
1580
1597
|
className: a,
|
|
@@ -1583,8 +1600,8 @@ const yr = 3, xr = (t) => {
|
|
|
1583
1600
|
viewBox: "0 0 12 2",
|
|
1584
1601
|
fill: "none",
|
|
1585
1602
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1586
|
-
...
|
|
1587
|
-
children: /* @__PURE__ */
|
|
1603
|
+
...i,
|
|
1604
|
+
children: /* @__PURE__ */ o.jsx(
|
|
1588
1605
|
"path",
|
|
1589
1606
|
{
|
|
1590
1607
|
fillRule: "evenodd",
|
|
@@ -1594,7 +1611,7 @@ const yr = 3, xr = (t) => {
|
|
|
1594
1611
|
}
|
|
1595
1612
|
)
|
|
1596
1613
|
}
|
|
1597
|
-
),
|
|
1614
|
+
), Es = {
|
|
1598
1615
|
medium: { width: 10.83, height: 7.5 },
|
|
1599
1616
|
large: { width: 13, height: 9 }
|
|
1600
1617
|
}, Ls = ({
|
|
@@ -1602,103 +1619,103 @@ const yr = 3, xr = (t) => {
|
|
|
1602
1619
|
isChecked: r,
|
|
1603
1620
|
isDisabled: a,
|
|
1604
1621
|
indeterminate: s,
|
|
1605
|
-
dataTestId:
|
|
1622
|
+
dataTestId: i
|
|
1606
1623
|
}) => {
|
|
1607
|
-
const { width: n, height: c } =
|
|
1608
|
-
return /* @__PURE__ */
|
|
1624
|
+
const { width: n, height: c } = Es[t];
|
|
1625
|
+
return /* @__PURE__ */ o.jsx(
|
|
1609
1626
|
"div",
|
|
1610
1627
|
{
|
|
1611
1628
|
className: he.icon,
|
|
1612
|
-
"data-testid": `${
|
|
1629
|
+
"data-testid": `${i}-icon`,
|
|
1613
1630
|
"data-checked": r,
|
|
1614
1631
|
"data-disabled": a,
|
|
1615
1632
|
"data-indeterminate": s,
|
|
1616
|
-
children: s ? /* @__PURE__ */
|
|
1633
|
+
children: s ? /* @__PURE__ */ o.jsx(Ss, { width: n, height: c }) : /* @__PURE__ */ o.jsx(ws, { width: n, height: c })
|
|
1617
1634
|
}
|
|
1618
1635
|
);
|
|
1619
|
-
},
|
|
1636
|
+
}, Pn = te((t, r) => {
|
|
1620
1637
|
const {
|
|
1621
1638
|
name: a,
|
|
1622
1639
|
value: s,
|
|
1623
|
-
size:
|
|
1640
|
+
size: i = "medium",
|
|
1624
1641
|
indeterminate: n = !1,
|
|
1625
1642
|
loading: c = !1,
|
|
1626
|
-
error:
|
|
1643
|
+
error: p,
|
|
1627
1644
|
disabled: d = !1,
|
|
1628
|
-
containerClassName:
|
|
1629
|
-
className:
|
|
1645
|
+
containerClassName: g,
|
|
1646
|
+
className: _,
|
|
1630
1647
|
containerStyle: h,
|
|
1631
1648
|
style: b,
|
|
1632
|
-
children:
|
|
1633
|
-
clickableLabel:
|
|
1649
|
+
children: m,
|
|
1650
|
+
clickableLabel: x = !0,
|
|
1634
1651
|
tabIndex: E,
|
|
1635
|
-
onChange:
|
|
1652
|
+
onChange: w,
|
|
1636
1653
|
"data-testid": C = "checkbox"
|
|
1637
|
-
} = t, [
|
|
1654
|
+
} = t, [f, $] = De(!1), O = s ?? f, D = d || c, k = !!p, T = O || n, R = P(he.container, he[i], g), A = P(
|
|
1638
1655
|
he.checkbox,
|
|
1639
|
-
he[
|
|
1656
|
+
he[i],
|
|
1640
1657
|
{
|
|
1641
|
-
[he.error]:
|
|
1658
|
+
[he.error]: k
|
|
1642
1659
|
},
|
|
1643
|
-
|
|
1644
|
-
),
|
|
1645
|
-
|
|
1646
|
-
}, W = (
|
|
1647
|
-
if (
|
|
1648
|
-
|
|
1649
|
-
const
|
|
1650
|
-
|
|
1660
|
+
_
|
|
1661
|
+
), q = (j) => {
|
|
1662
|
+
D || ($(j.target.checked), w == null || w(j.target.checked, j));
|
|
1663
|
+
}, W = (j) => {
|
|
1664
|
+
if (j.key === "Enter" && !D) {
|
|
1665
|
+
j.preventDefault();
|
|
1666
|
+
const B = !T;
|
|
1667
|
+
$(B), w == null || w(B);
|
|
1651
1668
|
}
|
|
1652
|
-
},
|
|
1653
|
-
|
|
1654
|
-
},
|
|
1655
|
-
return /* @__PURE__ */
|
|
1669
|
+
}, U = (j) => {
|
|
1670
|
+
x || j.preventDefault();
|
|
1671
|
+
}, y = (j) => j.stopPropagation();
|
|
1672
|
+
return /* @__PURE__ */ o.jsxs(
|
|
1656
1673
|
"label",
|
|
1657
1674
|
{
|
|
1658
|
-
className:
|
|
1675
|
+
className: R,
|
|
1659
1676
|
htmlFor: a,
|
|
1660
1677
|
style: h,
|
|
1661
1678
|
"data-testid": C,
|
|
1662
|
-
"data-clickable-label":
|
|
1679
|
+
"data-clickable-label": x,
|
|
1663
1680
|
children: [
|
|
1664
|
-
/* @__PURE__ */
|
|
1681
|
+
/* @__PURE__ */ o.jsx("div", { className: he.checkboxWrapper, children: /* @__PURE__ */ o.jsxs(
|
|
1665
1682
|
"div",
|
|
1666
1683
|
{
|
|
1667
1684
|
tabIndex: E || 0,
|
|
1668
|
-
className:
|
|
1685
|
+
className: A,
|
|
1669
1686
|
style: b,
|
|
1670
1687
|
onKeyDown: W,
|
|
1671
|
-
"aria-checked":
|
|
1672
|
-
"aria-disabled":
|
|
1673
|
-
"aria-invalid":
|
|
1674
|
-
"aria-describedby":
|
|
1688
|
+
"aria-checked": T,
|
|
1689
|
+
"aria-disabled": D,
|
|
1690
|
+
"aria-invalid": k,
|
|
1691
|
+
"aria-describedby": p ? `${a}-error` : void 0,
|
|
1675
1692
|
"data-testid": `${C}-label`,
|
|
1676
1693
|
children: [
|
|
1677
|
-
/* @__PURE__ */
|
|
1694
|
+
/* @__PURE__ */ o.jsx(
|
|
1678
1695
|
"input",
|
|
1679
1696
|
{
|
|
1680
1697
|
ref: r,
|
|
1681
1698
|
type: "checkbox",
|
|
1682
1699
|
id: a,
|
|
1683
1700
|
name: a,
|
|
1684
|
-
checked:
|
|
1685
|
-
disabled:
|
|
1701
|
+
checked: T,
|
|
1702
|
+
disabled: D,
|
|
1686
1703
|
className: he.input,
|
|
1687
|
-
onChange:
|
|
1688
|
-
onClick:
|
|
1689
|
-
"aria-checked":
|
|
1690
|
-
"aria-invalid":
|
|
1691
|
-
"aria-describedby":
|
|
1704
|
+
onChange: q,
|
|
1705
|
+
onClick: y,
|
|
1706
|
+
"aria-checked": T,
|
|
1707
|
+
"aria-invalid": k,
|
|
1708
|
+
"aria-describedby": p ? `${a}-error` : void 0,
|
|
1692
1709
|
"data-testid": `${C}-input`
|
|
1693
1710
|
}
|
|
1694
1711
|
),
|
|
1695
|
-
/* @__PURE__ */
|
|
1712
|
+
/* @__PURE__ */ o.jsx(
|
|
1696
1713
|
Ls,
|
|
1697
1714
|
{
|
|
1698
1715
|
name: a,
|
|
1699
|
-
size:
|
|
1700
|
-
isChecked:
|
|
1701
|
-
isDisabled:
|
|
1716
|
+
size: i,
|
|
1717
|
+
isChecked: T,
|
|
1718
|
+
isDisabled: D,
|
|
1702
1719
|
indeterminate: n,
|
|
1703
1720
|
dataTestId: C
|
|
1704
1721
|
}
|
|
@@ -1706,166 +1723,146 @@ const yr = 3, xr = (t) => {
|
|
|
1706
1723
|
]
|
|
1707
1724
|
}
|
|
1708
1725
|
) }),
|
|
1709
|
-
|
|
1726
|
+
m && /* @__PURE__ */ o.jsx(
|
|
1710
1727
|
"span",
|
|
1711
1728
|
{
|
|
1712
1729
|
"data-testid": `${C}-label-text`,
|
|
1713
|
-
"data-clickable-label":
|
|
1730
|
+
"data-clickable-label": x,
|
|
1714
1731
|
className: he.label,
|
|
1715
|
-
onClick:
|
|
1716
|
-
children:
|
|
1732
|
+
onClick: U,
|
|
1733
|
+
children: m
|
|
1717
1734
|
}
|
|
1718
1735
|
)
|
|
1719
1736
|
]
|
|
1720
1737
|
}
|
|
1721
1738
|
);
|
|
1722
|
-
}),
|
|
1723
|
-
typography:
|
|
1724
|
-
disabled:
|
|
1739
|
+
}), Ms = "_typography_zt7xg_1", $s = "_disabled_zt7xg_8", js = "_primary_zt7xg_13", Is = "_secondary_zt7xg_18", Rs = "_tertiary_zt7xg_23", ks = "_accent_zt7xg_28", Ts = "_positive_zt7xg_38", As = "_negative_zt7xg_48", Ns = "_warning_zt7xg_58", Ds = "_special_zt7xg_68", Os = "_contrast_zt7xg_78", je = {
|
|
1740
|
+
typography: Ms,
|
|
1741
|
+
disabled: $s,
|
|
1725
1742
|
primary: js,
|
|
1726
|
-
secondary:
|
|
1743
|
+
secondary: Is,
|
|
1727
1744
|
tertiary: Rs,
|
|
1728
|
-
accent:
|
|
1745
|
+
accent: ks,
|
|
1729
1746
|
"accent-secondary": "_accent-secondary_zt7xg_33",
|
|
1730
|
-
positive:
|
|
1747
|
+
positive: Ts,
|
|
1731
1748
|
"positive-secondary": "_positive-secondary_zt7xg_43",
|
|
1732
|
-
negative:
|
|
1749
|
+
negative: As,
|
|
1733
1750
|
"negative-secondary": "_negative-secondary_zt7xg_53",
|
|
1734
1751
|
warning: Ns,
|
|
1735
1752
|
"warning-secondary": "_warning-secondary_zt7xg_63",
|
|
1736
|
-
special:
|
|
1753
|
+
special: Ds,
|
|
1737
1754
|
"special-secondary": "_special-secondary_zt7xg_73",
|
|
1738
|
-
contrast:
|
|
1755
|
+
contrast: Os,
|
|
1739
1756
|
"contrast-secondary": "_contrast-secondary_zt7xg_83"
|
|
1740
|
-
},
|
|
1757
|
+
}, Us = {
|
|
1741
1758
|
1: "h1",
|
|
1742
1759
|
2: "h2",
|
|
1743
1760
|
3: "h3",
|
|
1744
1761
|
4: "h4",
|
|
1745
1762
|
5: "h5"
|
|
1746
|
-
},
|
|
1747
|
-
const r =
|
|
1763
|
+
}, xt = (t) => {
|
|
1764
|
+
const r = Et.forwardRef(
|
|
1748
1765
|
({
|
|
1749
1766
|
size: a = 3,
|
|
1750
1767
|
children: s,
|
|
1751
|
-
className:
|
|
1768
|
+
className: i,
|
|
1752
1769
|
"data-testid": n,
|
|
1753
1770
|
as: c,
|
|
1754
|
-
fontWeight:
|
|
1771
|
+
fontWeight: p = "semibold",
|
|
1755
1772
|
disabled: d = !1,
|
|
1756
|
-
typographyStyle:
|
|
1757
|
-
...
|
|
1773
|
+
typographyStyle: g = "primary",
|
|
1774
|
+
..._
|
|
1758
1775
|
}, h) => {
|
|
1759
|
-
const b = c ||
|
|
1760
|
-
|
|
1761
|
-
Ne[`typography-${t}-${a}-${
|
|
1762
|
-
|
|
1776
|
+
const b = c || Us[a], m = P(
|
|
1777
|
+
je.typography,
|
|
1778
|
+
Ne[`typography-${t}-${a}-${p}`],
|
|
1779
|
+
je[g],
|
|
1763
1780
|
{
|
|
1764
|
-
[
|
|
1781
|
+
[je.disabled]: d
|
|
1765
1782
|
},
|
|
1766
|
-
|
|
1783
|
+
i
|
|
1767
1784
|
);
|
|
1768
|
-
return s ? /* @__PURE__ */
|
|
1785
|
+
return s ? /* @__PURE__ */ o.jsx(b, { ref: h, className: m, "data-testid": n, ..._, children: s }) : null;
|
|
1769
1786
|
}
|
|
1770
1787
|
);
|
|
1771
1788
|
return r.displayName = `Typography.${t === "title" ? "Title" : "Subtitle"}`, r;
|
|
1772
1789
|
}, Ct = (t) => {
|
|
1773
|
-
const r =
|
|
1790
|
+
const r = Et.forwardRef(
|
|
1774
1791
|
({
|
|
1775
1792
|
size: a = 3,
|
|
1776
1793
|
children: s,
|
|
1777
|
-
className:
|
|
1794
|
+
className: i,
|
|
1778
1795
|
"data-testid": n,
|
|
1779
1796
|
as: c = "p",
|
|
1780
|
-
fontWeight:
|
|
1797
|
+
fontWeight: p = "regular",
|
|
1781
1798
|
disabled: d = !1,
|
|
1782
|
-
typographyStyle:
|
|
1783
|
-
...
|
|
1799
|
+
typographyStyle: g = "primary",
|
|
1800
|
+
..._
|
|
1784
1801
|
}, h) => {
|
|
1785
|
-
const b = c,
|
|
1786
|
-
|
|
1787
|
-
Ne[`typography-${t}-${a}-${
|
|
1788
|
-
|
|
1802
|
+
const b = c, m = P(
|
|
1803
|
+
je.typography,
|
|
1804
|
+
Ne[`typography-${t}-${a}-${p}`],
|
|
1805
|
+
je[g],
|
|
1789
1806
|
{
|
|
1790
|
-
[
|
|
1807
|
+
[je.disabled]: d
|
|
1791
1808
|
},
|
|
1792
|
-
|
|
1809
|
+
i
|
|
1793
1810
|
);
|
|
1794
|
-
return s ? /* @__PURE__ */
|
|
1811
|
+
return s ? /* @__PURE__ */ o.jsx(
|
|
1795
1812
|
b,
|
|
1796
1813
|
{
|
|
1797
1814
|
ref: h,
|
|
1798
|
-
className:
|
|
1815
|
+
className: m,
|
|
1799
1816
|
"data-testid": n,
|
|
1800
|
-
...
|
|
1817
|
+
..._,
|
|
1801
1818
|
children: s
|
|
1802
1819
|
}
|
|
1803
1820
|
) : null;
|
|
1804
1821
|
}
|
|
1805
1822
|
);
|
|
1806
1823
|
return r.displayName = `Typography.${t.charAt(0).toUpperCase() + t.slice(1)}`, r;
|
|
1807
|
-
},
|
|
1808
|
-
Title:
|
|
1809
|
-
Subtitle:
|
|
1824
|
+
}, Bn = {
|
|
1825
|
+
Title: xt("title"),
|
|
1826
|
+
Subtitle: xt("subtitle"),
|
|
1810
1827
|
Label: Ct("label"),
|
|
1811
1828
|
Paragraph: Ct("paragraph")
|
|
1812
|
-
},
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
"
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
XL: gn,
|
|
1845
|
-
leftSection: hn,
|
|
1846
|
-
rightSection: bn,
|
|
1847
|
-
helper: yn,
|
|
1848
|
-
floatingLabel: xn,
|
|
1849
|
-
focused: mn,
|
|
1850
|
-
filled: vn,
|
|
1851
|
-
L: Cn,
|
|
1852
|
-
characterLimit: wn,
|
|
1853
|
-
textarea: Sn,
|
|
1854
|
-
"size-S": "_size-S_19671_603",
|
|
1855
|
-
"size-M": "_size-M_19671_613",
|
|
1856
|
-
"size-L": "_size-L_19671_619",
|
|
1857
|
-
"size-XL": "_size-XL_19671_625",
|
|
1858
|
-
"with-floating-label": "_with-floating-label_19671_632",
|
|
1859
|
-
truncate: Ln,
|
|
1860
|
-
"has-hint": "_has-hint_19671_763",
|
|
1861
|
-
"has-suffix": "_has-suffix_19671_769",
|
|
1862
|
-
"has-limit": "_has-limit_19671_792"
|
|
1863
|
-
}, $n = ({
|
|
1829
|
+
}, Ps = "_inputBase_2vlla_85", Bs = "_wrapper_2vlla_95", Fs = "_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 = {
|
|
1830
|
+
inputBase: Ps,
|
|
1831
|
+
wrapper: Bs,
|
|
1832
|
+
"textarea-wrapper": "_textarea-wrapper_2vlla_109",
|
|
1833
|
+
gripHandle: Fs,
|
|
1834
|
+
error: zs,
|
|
1835
|
+
tabFocused: Ws,
|
|
1836
|
+
disabled: Vs,
|
|
1837
|
+
loading: Hs,
|
|
1838
|
+
label: qs,
|
|
1839
|
+
small: Gs,
|
|
1840
|
+
large: Zs,
|
|
1841
|
+
leftSection: Ys,
|
|
1842
|
+
rightSection: Js,
|
|
1843
|
+
helper: Ks,
|
|
1844
|
+
floatingLabel: Xs,
|
|
1845
|
+
focused: Qs,
|
|
1846
|
+
filled: en,
|
|
1847
|
+
medium: tn,
|
|
1848
|
+
characterLimit: an,
|
|
1849
|
+
input: rn,
|
|
1850
|
+
textarea: sn,
|
|
1851
|
+
"size-small": "_size-small_2vlla_586",
|
|
1852
|
+
"size-medium": "_size-medium_2vlla_592",
|
|
1853
|
+
"size-large": "_size-large_2vlla_598",
|
|
1854
|
+
"with-floating-label": "_with-floating-label_2vlla_605",
|
|
1855
|
+
truncate: nn,
|
|
1856
|
+
hint: on,
|
|
1857
|
+
"has-hint": "_has-hint_2vlla_736",
|
|
1858
|
+
"has-suffix": "_has-suffix_2vlla_742",
|
|
1859
|
+
"has-limit": "_has-limit_2vlla_748"
|
|
1860
|
+
}, ln = ({
|
|
1864
1861
|
width: t = 8,
|
|
1865
1862
|
height: r = 8,
|
|
1866
1863
|
className: a,
|
|
1867
1864
|
color: s = "#AABBCA"
|
|
1868
|
-
}) => /* @__PURE__ */
|
|
1865
|
+
}) => /* @__PURE__ */ o.jsx(
|
|
1869
1866
|
"svg",
|
|
1870
1867
|
{
|
|
1871
1868
|
width: t,
|
|
@@ -1874,7 +1871,7 @@ const yr = 3, xr = (t) => {
|
|
|
1874
1871
|
fill: "none",
|
|
1875
1872
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1876
1873
|
className: a,
|
|
1877
|
-
children: /* @__PURE__ */
|
|
1874
|
+
children: /* @__PURE__ */ o.jsx(
|
|
1878
1875
|
"path",
|
|
1879
1876
|
{
|
|
1880
1877
|
fillRule: "evenodd",
|
|
@@ -1884,15 +1881,15 @@ const yr = 3, xr = (t) => {
|
|
|
1884
1881
|
}
|
|
1885
1882
|
)
|
|
1886
1883
|
}
|
|
1887
|
-
),
|
|
1884
|
+
), kt = ({
|
|
1888
1885
|
className: t = "",
|
|
1889
1886
|
style: r,
|
|
1890
1887
|
size: a = "md",
|
|
1891
1888
|
color: s = "currentColor",
|
|
1892
|
-
onClick:
|
|
1889
|
+
onClick: i,
|
|
1893
1890
|
...n
|
|
1894
1891
|
}) => {
|
|
1895
|
-
const
|
|
1892
|
+
const p = {
|
|
1896
1893
|
display: "inline-block",
|
|
1897
1894
|
color: s,
|
|
1898
1895
|
...{
|
|
@@ -1905,17 +1902,17 @@ const yr = 3, xr = (t) => {
|
|
|
1905
1902
|
}[a],
|
|
1906
1903
|
...r
|
|
1907
1904
|
};
|
|
1908
|
-
return /* @__PURE__ */
|
|
1905
|
+
return /* @__PURE__ */ o.jsx(
|
|
1909
1906
|
"svg",
|
|
1910
1907
|
{
|
|
1911
1908
|
className: t,
|
|
1912
|
-
style:
|
|
1909
|
+
style: p,
|
|
1913
1910
|
viewBox: "0 0 16 16",
|
|
1914
1911
|
fill: "none",
|
|
1915
1912
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1916
|
-
onClick:
|
|
1913
|
+
onClick: i,
|
|
1917
1914
|
...n,
|
|
1918
|
-
children: /* @__PURE__ */
|
|
1915
|
+
children: /* @__PURE__ */ o.jsx(
|
|
1919
1916
|
"path",
|
|
1920
1917
|
{
|
|
1921
1918
|
d: "M12 4L4 12M4 4L12 12",
|
|
@@ -1927,127 +1924,127 @@ const yr = 3, xr = (t) => {
|
|
|
1927
1924
|
)
|
|
1928
1925
|
}
|
|
1929
1926
|
);
|
|
1930
|
-
},
|
|
1927
|
+
}, cn = (t, r) => {
|
|
1931
1928
|
const a = We(null), s = We(null);
|
|
1932
|
-
return
|
|
1933
|
-
const
|
|
1934
|
-
|
|
1929
|
+
return Ee(() => {
|
|
1930
|
+
const i = r === "textarea" ? a.current : s.current;
|
|
1931
|
+
i && i.value !== t && (i.value = t || "");
|
|
1935
1932
|
}, [t, r]), {
|
|
1936
1933
|
textareaRef: a,
|
|
1937
1934
|
inputRef: s,
|
|
1938
1935
|
currentRef: r === "textarea" ? a : s
|
|
1939
1936
|
};
|
|
1940
|
-
},
|
|
1937
|
+
}, dn = (t, r, a) => {
|
|
1941
1938
|
const s = () => {
|
|
1942
1939
|
if (!a.current || r !== "hug") return;
|
|
1943
|
-
const
|
|
1940
|
+
const i = a.current.scrollTop;
|
|
1944
1941
|
if (a.current.style.setProperty("height", "auto", "important"), !t) return;
|
|
1945
1942
|
const n = a.current.scrollHeight + "px";
|
|
1946
|
-
a.current.style.setProperty("height", n, "important"), a.current.scrollTop =
|
|
1947
|
-
const c = a.current.closest(`.${
|
|
1943
|
+
a.current.style.setProperty("height", n, "important"), a.current.scrollTop = i;
|
|
1944
|
+
const c = a.current.closest(`.${M.wrapper}`);
|
|
1948
1945
|
c && (c.setAttribute("data-resize", "hug"), c.setAttribute("data-show-grip", "false"));
|
|
1949
1946
|
};
|
|
1950
|
-
return
|
|
1947
|
+
return Ee(s, [t, r]), Ee(() => {
|
|
1951
1948
|
r === "hug" && a.current && s();
|
|
1952
1949
|
}, []), { resizeTextArea: s };
|
|
1953
|
-
},
|
|
1950
|
+
}, un = (t, r, a, s) => ({ handleGripMouseDown: Se(
|
|
1954
1951
|
(n) => {
|
|
1955
1952
|
if (!t || r || a || !(s === "fixed" || !s)) return;
|
|
1956
1953
|
n.preventDefault(), n.stopPropagation();
|
|
1957
|
-
const c = n.currentTarget.closest(`.${
|
|
1954
|
+
const c = n.currentTarget.closest(`.${M.wrapper}`);
|
|
1958
1955
|
if (!c) return;
|
|
1959
|
-
const
|
|
1960
|
-
const b = h.clientY -
|
|
1961
|
-
c.style.height = `${
|
|
1962
|
-
},
|
|
1963
|
-
document.removeEventListener("mousemove",
|
|
1956
|
+
const p = n.clientY, d = c.clientHeight, g = (h) => {
|
|
1957
|
+
const b = h.clientY - p, m = Math.min(100, d), x = Math.max(m, d + b);
|
|
1958
|
+
c.style.height = `${x}px`;
|
|
1959
|
+
}, _ = () => {
|
|
1960
|
+
document.removeEventListener("mousemove", g), document.removeEventListener("mouseup", _);
|
|
1964
1961
|
};
|
|
1965
|
-
document.addEventListener("mousemove",
|
|
1962
|
+
document.addEventListener("mousemove", g), document.addEventListener("mouseup", _);
|
|
1966
1963
|
},
|
|
1967
1964
|
[t, r, a, s]
|
|
1968
|
-
) }), wt = 30,
|
|
1965
|
+
) }), wt = 30, _n = te(
|
|
1969
1966
|
({
|
|
1970
1967
|
component: t = "input",
|
|
1971
|
-
size: r = "
|
|
1968
|
+
size: r = "medium",
|
|
1972
1969
|
value: a = "",
|
|
1973
1970
|
placeholder: s,
|
|
1974
|
-
disabled:
|
|
1971
|
+
disabled: i = !1,
|
|
1975
1972
|
loading: n = !1,
|
|
1976
1973
|
onFocus: c,
|
|
1977
|
-
onBlur:
|
|
1974
|
+
onBlur: p,
|
|
1978
1975
|
onChange: d,
|
|
1979
|
-
onKeyDown:
|
|
1980
|
-
onKeyUp:
|
|
1976
|
+
onKeyDown: g,
|
|
1977
|
+
onKeyUp: _,
|
|
1981
1978
|
maxLength: h,
|
|
1982
1979
|
className: b,
|
|
1983
|
-
style:
|
|
1984
|
-
truncate:
|
|
1980
|
+
style: m,
|
|
1981
|
+
truncate: x = !1,
|
|
1985
1982
|
shouldShowFloatingLabelClass: E = !1,
|
|
1986
|
-
"aria-invalid":
|
|
1983
|
+
"aria-invalid": w,
|
|
1987
1984
|
"aria-errormessage": C,
|
|
1988
|
-
id:
|
|
1989
|
-
resize:
|
|
1990
|
-
...
|
|
1991
|
-
},
|
|
1992
|
-
const { textareaRef:
|
|
1993
|
-
if (
|
|
1994
|
-
return /* @__PURE__ */
|
|
1985
|
+
id: f,
|
|
1986
|
+
resize: $,
|
|
1987
|
+
...O
|
|
1988
|
+
}, D) => {
|
|
1989
|
+
const { textareaRef: k, inputRef: T, currentRef: R } = cn(a, t);
|
|
1990
|
+
if (dn(a, $, k), oa(D, () => R.current, [R]), t === "textarea")
|
|
1991
|
+
return /* @__PURE__ */ o.jsx(
|
|
1995
1992
|
"textarea",
|
|
1996
1993
|
{
|
|
1997
|
-
ref:
|
|
1998
|
-
id:
|
|
1994
|
+
ref: k,
|
|
1995
|
+
id: f,
|
|
1999
1996
|
value: a,
|
|
2000
1997
|
placeholder: s,
|
|
2001
|
-
disabled:
|
|
1998
|
+
disabled: i || n,
|
|
2002
1999
|
onFocus: c,
|
|
2003
|
-
onBlur:
|
|
2000
|
+
onBlur: p,
|
|
2004
2001
|
onChange: d,
|
|
2005
|
-
onKeyDown:
|
|
2006
|
-
onKeyUp:
|
|
2002
|
+
onKeyDown: g,
|
|
2003
|
+
onKeyUp: _,
|
|
2007
2004
|
maxLength: h,
|
|
2008
|
-
className:
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
E &&
|
|
2005
|
+
className: P(
|
|
2006
|
+
M.textarea,
|
|
2007
|
+
M[`size-${r}`],
|
|
2008
|
+
E && M["with-floating-label"],
|
|
2012
2009
|
b
|
|
2013
2010
|
),
|
|
2014
|
-
style:
|
|
2015
|
-
"aria-invalid":
|
|
2011
|
+
style: m,
|
|
2012
|
+
"aria-invalid": w,
|
|
2016
2013
|
"aria-errormessage": C,
|
|
2017
|
-
"aria-describedby": C ? `${
|
|
2014
|
+
"aria-describedby": C ? `${f}-error` : void 0,
|
|
2018
2015
|
tabIndex: 0,
|
|
2019
|
-
"data-resize":
|
|
2020
|
-
...
|
|
2016
|
+
"data-resize": $,
|
|
2017
|
+
...O
|
|
2021
2018
|
}
|
|
2022
2019
|
);
|
|
2023
2020
|
if (t === "input")
|
|
2024
|
-
return /* @__PURE__ */
|
|
2021
|
+
return /* @__PURE__ */ o.jsx(
|
|
2025
2022
|
"input",
|
|
2026
2023
|
{
|
|
2027
|
-
ref:
|
|
2028
|
-
id:
|
|
2024
|
+
ref: T,
|
|
2025
|
+
id: f,
|
|
2029
2026
|
value: a,
|
|
2030
2027
|
placeholder: s,
|
|
2031
|
-
disabled:
|
|
2028
|
+
disabled: i || n,
|
|
2032
2029
|
onFocus: c,
|
|
2033
|
-
onBlur:
|
|
2030
|
+
onBlur: p,
|
|
2034
2031
|
onChange: d,
|
|
2035
|
-
onKeyDown:
|
|
2036
|
-
onKeyUp:
|
|
2032
|
+
onKeyDown: g,
|
|
2033
|
+
onKeyUp: _,
|
|
2037
2034
|
maxLength: h,
|
|
2038
|
-
className:
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
E &&
|
|
2042
|
-
|
|
2035
|
+
className: P(
|
|
2036
|
+
M.input,
|
|
2037
|
+
M[`size-${r}`],
|
|
2038
|
+
E && M["with-floating-label"],
|
|
2039
|
+
x && M.truncate,
|
|
2043
2040
|
b
|
|
2044
2041
|
),
|
|
2045
|
-
style:
|
|
2046
|
-
"aria-invalid":
|
|
2042
|
+
style: m,
|
|
2043
|
+
"aria-invalid": w,
|
|
2047
2044
|
"aria-errormessage": C,
|
|
2048
|
-
"aria-describedby": C ? `${
|
|
2045
|
+
"aria-describedby": C ? `${f}-error` : void 0,
|
|
2049
2046
|
tabIndex: 0,
|
|
2050
|
-
...
|
|
2047
|
+
...O
|
|
2051
2048
|
}
|
|
2052
2049
|
);
|
|
2053
2050
|
if (t !== "input" && t !== "textarea")
|
|
@@ -2055,346 +2052,321 @@ const yr = 3, xr = (t) => {
|
|
|
2055
2052
|
`[Input] Недопустимое значение prop 'component': "${String(t)}". Допустимые значения: 'input', 'textarea'`
|
|
2056
2053
|
), null;
|
|
2057
2054
|
}
|
|
2058
|
-
),
|
|
2055
|
+
), Tt = te(
|
|
2059
2056
|
({
|
|
2060
2057
|
children: t,
|
|
2061
|
-
size: r = "
|
|
2058
|
+
size: r = "medium",
|
|
2062
2059
|
error: a = !1,
|
|
2063
2060
|
disabled: s = !1,
|
|
2064
|
-
loading:
|
|
2061
|
+
loading: i = !1,
|
|
2065
2062
|
className: n,
|
|
2066
2063
|
wrapperProps: c,
|
|
2067
|
-
wrapperStyles:
|
|
2064
|
+
wrapperStyles: p,
|
|
2068
2065
|
floatingLabelStyles: d,
|
|
2069
|
-
prefixStyles:
|
|
2070
|
-
suffixStyles:
|
|
2066
|
+
prefixStyles: g,
|
|
2067
|
+
suffixStyles: _,
|
|
2071
2068
|
labelProps: h,
|
|
2072
2069
|
helperProps: b,
|
|
2073
|
-
showLimit:
|
|
2074
|
-
maxLength:
|
|
2070
|
+
showLimit: m = !1,
|
|
2071
|
+
maxLength: x,
|
|
2075
2072
|
hint: E,
|
|
2076
|
-
showHint:
|
|
2073
|
+
showHint: w = !1,
|
|
2077
2074
|
showHintOnEmpty: C = !1,
|
|
2078
|
-
prefix:
|
|
2079
|
-
suffix:
|
|
2080
|
-
onSuffixClick:
|
|
2081
|
-
placeholder:
|
|
2082
|
-
showLabel:
|
|
2083
|
-
labelClassName:
|
|
2084
|
-
hasValue:
|
|
2085
|
-
helper:
|
|
2086
|
-
id:
|
|
2075
|
+
prefix: f,
|
|
2076
|
+
suffix: $,
|
|
2077
|
+
onSuffixClick: O,
|
|
2078
|
+
placeholder: D,
|
|
2079
|
+
showLabel: k = !0,
|
|
2080
|
+
labelClassName: T,
|
|
2081
|
+
hasValue: R = !1,
|
|
2082
|
+
helper: A,
|
|
2083
|
+
id: q,
|
|
2087
2084
|
value: W = "",
|
|
2088
|
-
resize:
|
|
2089
|
-
showGrip:
|
|
2090
|
-
...
|
|
2091
|
-
},
|
|
2092
|
-
const
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
y && S["has-limit"],
|
|
2085
|
+
resize: U,
|
|
2086
|
+
showGrip: y = !1,
|
|
2087
|
+
...j
|
|
2088
|
+
}, B) => {
|
|
2089
|
+
const G = $t(), H = q || G, Q = w && E && (R || C), ae = E && E.length > wt ? E.substring(0, wt) + "..." : E, J = P(
|
|
2090
|
+
M.wrapper,
|
|
2091
|
+
a && M.error,
|
|
2092
|
+
s && M.disabled,
|
|
2093
|
+
i && M.loading,
|
|
2094
|
+
Q && M["has-hint"],
|
|
2095
|
+
$ && M["has-suffix"],
|
|
2096
|
+
m && M["has-limit"],
|
|
2101
2097
|
n
|
|
2102
|
-
),
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
), { handleGripMouseDown:
|
|
2108
|
-
return /* @__PURE__ */
|
|
2109
|
-
/* @__PURE__ */
|
|
2098
|
+
), re = P(
|
|
2099
|
+
M.floatingLabel,
|
|
2100
|
+
M[r],
|
|
2101
|
+
R && M.filled,
|
|
2102
|
+
T
|
|
2103
|
+
), { handleGripMouseDown: se } = un(y, s, i, U);
|
|
2104
|
+
return /* @__PURE__ */ o.jsxs("div", { ref: B, className: M.inputBase, "data-testid": "input-base-wrapper", ...j, children: [
|
|
2105
|
+
/* @__PURE__ */ o.jsxs(
|
|
2110
2106
|
"div",
|
|
2111
2107
|
{
|
|
2112
2108
|
className: J,
|
|
2113
|
-
style:
|
|
2114
|
-
"data-resize":
|
|
2115
|
-
"data-show-grip":
|
|
2109
|
+
style: p,
|
|
2110
|
+
"data-resize": U,
|
|
2111
|
+
"data-show-grip": y ? "true" : "false",
|
|
2116
2112
|
...c,
|
|
2117
2113
|
children: [
|
|
2118
|
-
|
|
2119
|
-
|
|
2114
|
+
f && /* @__PURE__ */ o.jsx("label", { htmlFor: H, className: M.leftSection, style: g, children: f }),
|
|
2115
|
+
$ && /* @__PURE__ */ o.jsx(
|
|
2120
2116
|
"label",
|
|
2121
2117
|
{
|
|
2122
|
-
htmlFor:
|
|
2123
|
-
className:
|
|
2124
|
-
style:
|
|
2125
|
-
onClick:
|
|
2126
|
-
children:
|
|
2118
|
+
htmlFor: H,
|
|
2119
|
+
className: M.rightSection,
|
|
2120
|
+
style: _,
|
|
2121
|
+
onClick: O,
|
|
2122
|
+
children: $
|
|
2127
2123
|
}
|
|
2128
2124
|
),
|
|
2129
|
-
|
|
2125
|
+
D && k && /* @__PURE__ */ o.jsx(
|
|
2130
2126
|
"label",
|
|
2131
2127
|
{
|
|
2132
|
-
htmlFor:
|
|
2133
|
-
className:
|
|
2128
|
+
htmlFor: H,
|
|
2129
|
+
className: re,
|
|
2134
2130
|
style: d,
|
|
2135
2131
|
...h,
|
|
2136
|
-
children:
|
|
2132
|
+
children: D
|
|
2137
2133
|
}
|
|
2138
2134
|
),
|
|
2139
2135
|
t,
|
|
2140
|
-
|
|
2136
|
+
y && !m && (U === "fixed" || !U) && /* @__PURE__ */ o.jsx(
|
|
2141
2137
|
"div",
|
|
2142
2138
|
{
|
|
2143
|
-
className:
|
|
2144
|
-
onMouseDown:
|
|
2139
|
+
className: M.gripHandle,
|
|
2140
|
+
onMouseDown: se,
|
|
2145
2141
|
role: "button",
|
|
2146
2142
|
tabIndex: -1,
|
|
2147
2143
|
"aria-label": "Изменить размер",
|
|
2148
|
-
children: /* @__PURE__ */
|
|
2144
|
+
children: /* @__PURE__ */ o.jsx(ln, {})
|
|
2149
2145
|
}
|
|
2150
2146
|
),
|
|
2151
|
-
Q && /* @__PURE__ */
|
|
2147
|
+
Q && /* @__PURE__ */ o.jsx(
|
|
2152
2148
|
"div",
|
|
2153
2149
|
{
|
|
2154
|
-
className:
|
|
2155
|
-
"data-disabled": s ||
|
|
2156
|
-
children:
|
|
2150
|
+
className: P(M.hint, R && M.truncate),
|
|
2151
|
+
"data-disabled": s || i,
|
|
2152
|
+
children: ae
|
|
2157
2153
|
}
|
|
2158
2154
|
),
|
|
2159
|
-
|
|
2155
|
+
m && x && /* @__PURE__ */ o.jsxs("div", { className: M.characterLimit, children: [
|
|
2160
2156
|
(W || "").length,
|
|
2161
2157
|
" из ",
|
|
2162
|
-
|
|
2158
|
+
x
|
|
2163
2159
|
] })
|
|
2164
2160
|
]
|
|
2165
2161
|
}
|
|
2166
2162
|
),
|
|
2167
|
-
|
|
2163
|
+
A && /* @__PURE__ */ o.jsx(
|
|
2168
2164
|
"div",
|
|
2169
2165
|
{
|
|
2170
|
-
className:
|
|
2171
|
-
|
|
2172
|
-
a &&
|
|
2173
|
-
(s ||
|
|
2166
|
+
className: P(
|
|
2167
|
+
M.helper,
|
|
2168
|
+
a && M.error,
|
|
2169
|
+
(s || i) && M.disabled
|
|
2174
2170
|
),
|
|
2175
2171
|
...b,
|
|
2176
|
-
id: a ? `${
|
|
2177
|
-
children:
|
|
2172
|
+
id: a ? `${H}-error` : void 0,
|
|
2173
|
+
children: A
|
|
2178
2174
|
}
|
|
2179
2175
|
)
|
|
2180
2176
|
] });
|
|
2181
2177
|
}
|
|
2182
2178
|
);
|
|
2183
|
-
|
|
2184
|
-
const St = Object.assign(
|
|
2185
|
-
Wrapper:
|
|
2186
|
-
}),
|
|
2179
|
+
Tt.displayName = "InputWrapperComponent";
|
|
2180
|
+
const St = Object.assign(_n, {
|
|
2181
|
+
Wrapper: Tt
|
|
2182
|
+
}), At = te(
|
|
2187
2183
|
({
|
|
2188
2184
|
component: t = "input",
|
|
2189
|
-
size: r = "
|
|
2185
|
+
size: r = "medium",
|
|
2190
2186
|
className: a,
|
|
2191
2187
|
error: s = !1,
|
|
2192
|
-
disabled:
|
|
2188
|
+
disabled: i = !1,
|
|
2193
2189
|
loading: n = !1,
|
|
2194
2190
|
placeholder: c,
|
|
2195
|
-
showLabel:
|
|
2191
|
+
showLabel: p = !0,
|
|
2196
2192
|
labelClassName: d,
|
|
2197
|
-
helper:
|
|
2198
|
-
prefix:
|
|
2193
|
+
helper: g,
|
|
2194
|
+
prefix: _,
|
|
2199
2195
|
suffix: h,
|
|
2200
2196
|
id: b,
|
|
2201
|
-
onFocus:
|
|
2202
|
-
onBlur:
|
|
2197
|
+
onFocus: m,
|
|
2198
|
+
onBlur: x,
|
|
2203
2199
|
onKeyDown: E,
|
|
2204
|
-
onSuffixClick:
|
|
2200
|
+
onSuffixClick: w,
|
|
2205
2201
|
onChange: C,
|
|
2206
|
-
value:
|
|
2207
|
-
wrapperProps:
|
|
2208
|
-
wrapperStyles:
|
|
2209
|
-
floatingLabelStyles:
|
|
2210
|
-
prefixStyles:
|
|
2211
|
-
suffixStyles:
|
|
2212
|
-
textareaStyles:
|
|
2213
|
-
labelProps:
|
|
2214
|
-
helperProps:
|
|
2202
|
+
value: f = "",
|
|
2203
|
+
wrapperProps: $,
|
|
2204
|
+
wrapperStyles: O,
|
|
2205
|
+
floatingLabelStyles: D,
|
|
2206
|
+
prefixStyles: k,
|
|
2207
|
+
suffixStyles: T,
|
|
2208
|
+
textareaStyles: R,
|
|
2209
|
+
labelProps: A,
|
|
2210
|
+
helperProps: q,
|
|
2215
2211
|
showLimit: W = !1,
|
|
2216
|
-
maxLength:
|
|
2217
|
-
inputProps:
|
|
2218
|
-
hint:
|
|
2219
|
-
showHint:
|
|
2220
|
-
showHintOnEmpty:
|
|
2221
|
-
truncate:
|
|
2212
|
+
maxLength: U,
|
|
2213
|
+
inputProps: y,
|
|
2214
|
+
hint: j,
|
|
2215
|
+
showHint: B = !1,
|
|
2216
|
+
showHintOnEmpty: G = !1,
|
|
2217
|
+
truncate: H = !1,
|
|
2222
2218
|
resize: Q,
|
|
2223
|
-
showGrip:
|
|
2219
|
+
showGrip: ae = !1,
|
|
2224
2220
|
...J
|
|
2225
|
-
},
|
|
2226
|
-
const
|
|
2227
|
-
(
|
|
2221
|
+
}, re) => {
|
|
2222
|
+
const se = $t(), de = b || se, [ve, ie] = De(f), ye = f !== void 0 ? f : ve, ue = (ye || "").length > 0, le = ye || "", _e = p && (r === "large" || t === "textarea") && !_, xe = Se(
|
|
2223
|
+
(Z) => {
|
|
2228
2224
|
var Y;
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2225
|
+
i || n || (m == null || m(), (Y = y == null ? void 0 : y.onFocus) == null || Y.call(
|
|
2226
|
+
y,
|
|
2227
|
+
Z
|
|
2232
2228
|
));
|
|
2233
2229
|
},
|
|
2234
|
-
[
|
|
2235
|
-
),
|
|
2236
|
-
(
|
|
2230
|
+
[m, y, i, n]
|
|
2231
|
+
), Oe = Se(
|
|
2232
|
+
(Z) => {
|
|
2237
2233
|
var Y;
|
|
2238
|
-
if (
|
|
2239
|
-
const ce =
|
|
2240
|
-
ce && ce.classList.add(
|
|
2234
|
+
if (Z.key === "Tab") {
|
|
2235
|
+
const ce = Z.target.closest(`.${M.wrapper}`);
|
|
2236
|
+
ce && ce.classList.add(M.tabFocused);
|
|
2241
2237
|
}
|
|
2242
|
-
(Y =
|
|
2243
|
-
|
|
2244
|
-
|
|
2238
|
+
(Y = y == null ? void 0 : y.onKeyUp) == null || Y.call(
|
|
2239
|
+
y,
|
|
2240
|
+
Z
|
|
2245
2241
|
);
|
|
2246
2242
|
},
|
|
2247
|
-
[
|
|
2248
|
-
),
|
|
2249
|
-
(
|
|
2243
|
+
[y]
|
|
2244
|
+
), Ve = Se(
|
|
2245
|
+
(Z) => {
|
|
2250
2246
|
var ce;
|
|
2251
|
-
const Y =
|
|
2252
|
-
Y && Y.classList.remove(
|
|
2253
|
-
|
|
2254
|
-
|
|
2247
|
+
const Y = Z.target.closest(`.${M.wrapper}`);
|
|
2248
|
+
Y && Y.classList.remove(M.tabFocused), x == null || x(), (ce = y == null ? void 0 : y.onBlur) == null || ce.call(
|
|
2249
|
+
y,
|
|
2250
|
+
Z
|
|
2255
2251
|
);
|
|
2256
2252
|
},
|
|
2257
|
-
[
|
|
2258
|
-
),
|
|
2259
|
-
(
|
|
2253
|
+
[x, y]
|
|
2254
|
+
), He = Se(
|
|
2255
|
+
(Z) => {
|
|
2260
2256
|
var ce;
|
|
2261
|
-
if (
|
|
2262
|
-
const Y =
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2257
|
+
if (i || n) return;
|
|
2258
|
+
const Y = Z.target.value;
|
|
2259
|
+
ie(Y), C == null || C(Y, Z), (ce = y == null ? void 0 : y.onChange) == null || ce.call(
|
|
2260
|
+
y,
|
|
2261
|
+
Z
|
|
2266
2262
|
);
|
|
2267
2263
|
},
|
|
2268
|
-
[C,
|
|
2264
|
+
[C, y, i, n]
|
|
2269
2265
|
);
|
|
2270
|
-
return
|
|
2271
|
-
|
|
2272
|
-
}, [
|
|
2266
|
+
return Ee(() => {
|
|
2267
|
+
ie(f || "");
|
|
2268
|
+
}, [f]), /* @__PURE__ */ o.jsx(
|
|
2273
2269
|
St.Wrapper,
|
|
2274
2270
|
{
|
|
2275
|
-
ref:
|
|
2271
|
+
ref: re,
|
|
2276
2272
|
size: r,
|
|
2277
2273
|
error: s,
|
|
2278
|
-
disabled:
|
|
2274
|
+
disabled: i || n,
|
|
2279
2275
|
loading: n,
|
|
2280
|
-
className:
|
|
2281
|
-
wrapperProps:
|
|
2282
|
-
wrapperStyles:
|
|
2283
|
-
floatingLabelStyles:
|
|
2284
|
-
prefixStyles:
|
|
2285
|
-
suffixStyles:
|
|
2286
|
-
labelProps:
|
|
2287
|
-
helperProps:
|
|
2276
|
+
className: P(a, t === "textarea" && M["textarea-wrapper"]),
|
|
2277
|
+
wrapperProps: $,
|
|
2278
|
+
wrapperStyles: O,
|
|
2279
|
+
floatingLabelStyles: D,
|
|
2280
|
+
prefixStyles: k,
|
|
2281
|
+
suffixStyles: T,
|
|
2282
|
+
labelProps: A,
|
|
2283
|
+
helperProps: q,
|
|
2288
2284
|
showLimit: W,
|
|
2289
|
-
maxLength:
|
|
2290
|
-
hint:
|
|
2291
|
-
showHint:
|
|
2292
|
-
showHintOnEmpty:
|
|
2293
|
-
prefix:
|
|
2285
|
+
maxLength: U,
|
|
2286
|
+
hint: j,
|
|
2287
|
+
showHint: B,
|
|
2288
|
+
showHintOnEmpty: G,
|
|
2289
|
+
prefix: _,
|
|
2294
2290
|
suffix: h,
|
|
2295
|
-
onSuffixClick:
|
|
2291
|
+
onSuffixClick: w,
|
|
2296
2292
|
placeholder: c,
|
|
2297
|
-
showLabel:
|
|
2293
|
+
showLabel: p,
|
|
2298
2294
|
labelClassName: d,
|
|
2299
2295
|
hasValue: ue,
|
|
2300
|
-
helper:
|
|
2296
|
+
helper: g,
|
|
2301
2297
|
id: de,
|
|
2302
2298
|
value: le,
|
|
2303
|
-
showGrip:
|
|
2299
|
+
showGrip: ae,
|
|
2304
2300
|
resize: Q,
|
|
2305
2301
|
...J,
|
|
2306
|
-
children: /* @__PURE__ */
|
|
2302
|
+
children: /* @__PURE__ */ o.jsx(
|
|
2307
2303
|
St,
|
|
2308
2304
|
{
|
|
2309
2305
|
component: t,
|
|
2310
2306
|
size: r,
|
|
2311
2307
|
value: le,
|
|
2312
2308
|
placeholder: c,
|
|
2313
|
-
disabled:
|
|
2309
|
+
disabled: i,
|
|
2314
2310
|
loading: n,
|
|
2315
|
-
onFocus:
|
|
2316
|
-
onBlur:
|
|
2317
|
-
onChange:
|
|
2311
|
+
onFocus: xe,
|
|
2312
|
+
onBlur: Ve,
|
|
2313
|
+
onChange: He,
|
|
2318
2314
|
onKeyDown: E,
|
|
2319
|
-
onKeyUp:
|
|
2320
|
-
maxLength:
|
|
2321
|
-
truncate:
|
|
2315
|
+
onKeyUp: Oe,
|
|
2316
|
+
maxLength: U,
|
|
2317
|
+
truncate: H,
|
|
2322
2318
|
"data-empty": !ue,
|
|
2323
2319
|
shouldShowFloatingLabelClass: _e,
|
|
2324
|
-
style: t === "textarea" ?
|
|
2320
|
+
style: t === "textarea" ? R : void 0,
|
|
2325
2321
|
"aria-invalid": !!s,
|
|
2326
2322
|
"aria-errormessage": s ? `${de}-error` : void 0,
|
|
2327
2323
|
id: de,
|
|
2328
2324
|
resize: Q,
|
|
2329
|
-
...
|
|
2325
|
+
...y
|
|
2330
2326
|
}
|
|
2331
2327
|
)
|
|
2332
2328
|
}
|
|
2333
2329
|
);
|
|
2334
2330
|
}
|
|
2335
|
-
),
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
}, Tn = (t, r, a, s) => {
|
|
2331
|
+
), X = {
|
|
2332
|
+
SMALL: "small",
|
|
2333
|
+
MEDIUM: "medium",
|
|
2334
|
+
LARGE: "large"
|
|
2335
|
+
}, pn = (t, r, a, s) => {
|
|
2341
2336
|
switch (t) {
|
|
2342
|
-
case
|
|
2337
|
+
case X.LARGE:
|
|
2343
2338
|
return r && a ? "8px 16px 8px 16px" : "16px 16px 16px 16px";
|
|
2344
|
-
case
|
|
2345
|
-
return s ? "12px 12px 12px 12px" : "12px
|
|
2346
|
-
case
|
|
2339
|
+
case X.MEDIUM:
|
|
2340
|
+
return s ? "12px 12px 12px 12px" : "12px 12px 12px 16px";
|
|
2341
|
+
case X.SMALL:
|
|
2347
2342
|
return "10px 12px 10px 12px";
|
|
2348
|
-
case q.S:
|
|
2349
|
-
return "6px 10px 6px 10px";
|
|
2350
2343
|
default:
|
|
2351
2344
|
return "12px 16px 12px 16px";
|
|
2352
2345
|
}
|
|
2353
|
-
},
|
|
2346
|
+
}, fn = (t) => {
|
|
2354
2347
|
switch (t) {
|
|
2355
|
-
case
|
|
2348
|
+
case X.LARGE:
|
|
2356
2349
|
return "56px";
|
|
2357
|
-
case
|
|
2350
|
+
case X.MEDIUM:
|
|
2358
2351
|
return "48px";
|
|
2359
|
-
case
|
|
2352
|
+
case X.SMALL:
|
|
2360
2353
|
return "40px";
|
|
2361
|
-
case q.S:
|
|
2362
|
-
return "32px";
|
|
2363
2354
|
default:
|
|
2364
2355
|
return "48px";
|
|
2365
2356
|
}
|
|
2366
|
-
},
|
|
2357
|
+
}, gn = (t) => {
|
|
2367
2358
|
switch (t) {
|
|
2368
|
-
case
|
|
2369
|
-
case q.M:
|
|
2370
|
-
case q.L:
|
|
2371
|
-
return 4;
|
|
2372
|
-
case q.XL:
|
|
2359
|
+
case X.SMALL:
|
|
2373
2360
|
return 8;
|
|
2361
|
+
// 8px для small
|
|
2362
|
+
case X.MEDIUM:
|
|
2363
|
+
case X.LARGE:
|
|
2364
|
+
return 12;
|
|
2365
|
+
// 12px для medium и large
|
|
2374
2366
|
default:
|
|
2375
|
-
return
|
|
2376
|
-
}
|
|
2377
|
-
}, Nn = (t, r, a) => ({
|
|
2378
|
-
wrapperStyles: {
|
|
2379
|
-
minHeight: t,
|
|
2380
|
-
maxHeight: t,
|
|
2381
|
-
boxSizing: "border-box",
|
|
2382
|
-
padding: r
|
|
2383
|
-
},
|
|
2384
|
-
floatingLabelStyles: {
|
|
2385
|
-
left: "10px"
|
|
2386
|
-
},
|
|
2387
|
-
prefixStyles: {
|
|
2388
|
-
paddingRight: `${a}px`
|
|
2389
|
-
},
|
|
2390
|
-
suffixStyles: {
|
|
2391
|
-
right: `${a}px`,
|
|
2392
|
-
maxWidth: "32px",
|
|
2393
|
-
maxHeight: "32px",
|
|
2394
|
-
padding: "6px",
|
|
2395
|
-
cursor: "pointer"
|
|
2367
|
+
return 12;
|
|
2396
2368
|
}
|
|
2397
|
-
}
|
|
2369
|
+
}, hn = (t, r, a) => ({
|
|
2398
2370
|
wrapperStyles: {
|
|
2399
2371
|
height: t,
|
|
2400
2372
|
minHeight: t,
|
|
@@ -2410,13 +2382,9 @@ const St = Object.assign(Rn, {
|
|
|
2410
2382
|
paddingRight: `${a}px`
|
|
2411
2383
|
},
|
|
2412
2384
|
suffixStyles: {
|
|
2413
|
-
right: `${a}px
|
|
2414
|
-
maxWidth: "40px",
|
|
2415
|
-
maxHeight: "40px",
|
|
2416
|
-
padding: "8px",
|
|
2417
|
-
cursor: "pointer"
|
|
2385
|
+
right: `${a}px`
|
|
2418
2386
|
}
|
|
2419
|
-
}),
|
|
2387
|
+
}), bn = (t, r, a) => ({
|
|
2420
2388
|
wrapperStyles: {
|
|
2421
2389
|
minHeight: t,
|
|
2422
2390
|
maxHeight: t,
|
|
@@ -2430,16 +2398,9 @@ const St = Object.assign(Rn, {
|
|
|
2430
2398
|
paddingRight: `${a}px`
|
|
2431
2399
|
},
|
|
2432
2400
|
suffixStyles: {
|
|
2433
|
-
right: `${a}px
|
|
2434
|
-
maxWidth: "40px",
|
|
2435
|
-
maxHeight: "40px",
|
|
2436
|
-
padding: "8px",
|
|
2437
|
-
cursor: "pointer",
|
|
2438
|
-
display: "flex",
|
|
2439
|
-
alignItems: "center",
|
|
2440
|
-
justifyContent: "center"
|
|
2401
|
+
right: `${a}px`
|
|
2441
2402
|
}
|
|
2442
|
-
}),
|
|
2403
|
+
}), yn = (t, r, a) => ({
|
|
2443
2404
|
wrapperStyles: {
|
|
2444
2405
|
minHeight: t,
|
|
2445
2406
|
maxHeight: t,
|
|
@@ -2453,23 +2414,17 @@ const St = Object.assign(Rn, {
|
|
|
2453
2414
|
paddingRight: `${a}px`
|
|
2454
2415
|
},
|
|
2455
2416
|
suffixStyles: {
|
|
2456
|
-
right: `${a}px
|
|
2457
|
-
maxWidth: "32px",
|
|
2458
|
-
maxHeight: "32px",
|
|
2459
|
-
padding: "6px",
|
|
2460
|
-
cursor: "pointer"
|
|
2417
|
+
right: `${a}px`
|
|
2461
2418
|
}
|
|
2462
|
-
}),
|
|
2463
|
-
const
|
|
2419
|
+
}), mn = (t, r, a, s) => {
|
|
2420
|
+
const i = fn(t), n = pn(t, r, a, s), c = gn(t);
|
|
2464
2421
|
switch (t) {
|
|
2465
|
-
case
|
|
2466
|
-
return
|
|
2467
|
-
case
|
|
2468
|
-
return
|
|
2469
|
-
case
|
|
2470
|
-
return
|
|
2471
|
-
case q.S:
|
|
2472
|
-
return Nn(o, n, c);
|
|
2422
|
+
case X.LARGE:
|
|
2423
|
+
return hn(i, n, c);
|
|
2424
|
+
case X.MEDIUM:
|
|
2425
|
+
return bn(i, n, c);
|
|
2426
|
+
case X.SMALL:
|
|
2427
|
+
return yn(i, n, c);
|
|
2473
2428
|
default:
|
|
2474
2429
|
return {
|
|
2475
2430
|
wrapperStyles: {},
|
|
@@ -2478,354 +2433,351 @@ const St = Object.assign(Rn, {
|
|
|
2478
2433
|
suffixStyles: {}
|
|
2479
2434
|
};
|
|
2480
2435
|
}
|
|
2481
|
-
},
|
|
2436
|
+
}, Fn = te(
|
|
2482
2437
|
({
|
|
2483
2438
|
value: t = "",
|
|
2484
2439
|
onChange: r,
|
|
2485
2440
|
type: a = "text",
|
|
2486
2441
|
placeholder: s,
|
|
2487
|
-
maxLength:
|
|
2442
|
+
maxLength: i,
|
|
2488
2443
|
minLength: n,
|
|
2489
2444
|
autoComplete: c,
|
|
2490
|
-
autoFocus:
|
|
2491
|
-
size: d =
|
|
2492
|
-
inputProps:
|
|
2493
|
-
error:
|
|
2445
|
+
autoFocus: p,
|
|
2446
|
+
size: d = X.MEDIUM,
|
|
2447
|
+
inputProps: g,
|
|
2448
|
+
error: _,
|
|
2494
2449
|
disabled: h,
|
|
2495
2450
|
loading: b,
|
|
2496
|
-
helper:
|
|
2497
|
-
prefix:
|
|
2451
|
+
helper: m,
|
|
2452
|
+
prefix: x,
|
|
2498
2453
|
suffix: E,
|
|
2499
|
-
clearable:
|
|
2454
|
+
clearable: w = !1,
|
|
2500
2455
|
id: C,
|
|
2501
|
-
showLabel:
|
|
2502
|
-
onFocus:
|
|
2503
|
-
onBlur:
|
|
2504
|
-
onSuffixClick:
|
|
2505
|
-
onClear:
|
|
2506
|
-
className:
|
|
2507
|
-
truncate:
|
|
2508
|
-
hint:
|
|
2509
|
-
showHint:
|
|
2456
|
+
showLabel: f = !0,
|
|
2457
|
+
onFocus: $,
|
|
2458
|
+
onBlur: O,
|
|
2459
|
+
onSuffixClick: D,
|
|
2460
|
+
onClear: k,
|
|
2461
|
+
className: T,
|
|
2462
|
+
truncate: R = !0,
|
|
2463
|
+
hint: A,
|
|
2464
|
+
showHint: q = !1,
|
|
2510
2465
|
showHintOnEmpty: W = !1,
|
|
2511
|
-
wrapperProps:
|
|
2512
|
-
labelProps:
|
|
2513
|
-
helperProps:
|
|
2514
|
-
...
|
|
2515
|
-
},
|
|
2516
|
-
const
|
|
2517
|
-
r == null || r(""),
|
|
2518
|
-
}, de =
|
|
2519
|
-
|
|
2520
|
-
}, me = ae ? /* @__PURE__ */ i.jsx(
|
|
2521
|
-
It,
|
|
2466
|
+
wrapperProps: U,
|
|
2467
|
+
labelProps: y,
|
|
2468
|
+
helperProps: j,
|
|
2469
|
+
...B
|
|
2470
|
+
}, G) => {
|
|
2471
|
+
const H = (t || "").length > 0, Q = d === X.LARGE, ae = !!x, J = Q && f && !x, re = w && H && !(h || b), se = () => {
|
|
2472
|
+
r == null || r(""), k == null || k();
|
|
2473
|
+
}, de = re ? /* @__PURE__ */ o.jsx(
|
|
2474
|
+
kt,
|
|
2522
2475
|
{
|
|
2523
|
-
size: d ===
|
|
2476
|
+
size: d === X.SMALL ? "xs" : "sm",
|
|
2524
2477
|
color: "var(--icon-secondary)",
|
|
2478
|
+
onClick: se,
|
|
2525
2479
|
style: { cursor: "pointer" },
|
|
2526
2480
|
"data-testid": "x-icon"
|
|
2527
2481
|
}
|
|
2528
|
-
) : E,
|
|
2482
|
+
) : E, ve = {
|
|
2529
2483
|
type: a,
|
|
2530
2484
|
minLength: n,
|
|
2531
2485
|
autoComplete: c,
|
|
2532
|
-
autoFocus:
|
|
2533
|
-
...
|
|
2534
|
-
},
|
|
2535
|
-
return /* @__PURE__ */
|
|
2536
|
-
|
|
2486
|
+
autoFocus: p,
|
|
2487
|
+
...g
|
|
2488
|
+
}, ie = mn(d, J, H, ae);
|
|
2489
|
+
return /* @__PURE__ */ o.jsx(
|
|
2490
|
+
At,
|
|
2537
2491
|
{
|
|
2538
2492
|
size: d,
|
|
2539
|
-
error:
|
|
2493
|
+
error: _,
|
|
2540
2494
|
disabled: h || b,
|
|
2541
2495
|
loading: b,
|
|
2542
|
-
helper:
|
|
2543
|
-
prefix:
|
|
2544
|
-
suffix:
|
|
2496
|
+
helper: m,
|
|
2497
|
+
prefix: x,
|
|
2498
|
+
suffix: de,
|
|
2545
2499
|
id: C,
|
|
2546
2500
|
showLabel: J,
|
|
2547
|
-
onFocus:
|
|
2548
|
-
onBlur:
|
|
2549
|
-
onSuffixClick:
|
|
2501
|
+
onFocus: $,
|
|
2502
|
+
onBlur: O,
|
|
2503
|
+
onSuffixClick: D,
|
|
2550
2504
|
onChange: r,
|
|
2551
2505
|
value: t,
|
|
2552
2506
|
placeholder: s,
|
|
2553
|
-
className:
|
|
2554
|
-
wrapperStyles:
|
|
2555
|
-
floatingLabelStyles:
|
|
2556
|
-
prefixStyles:
|
|
2557
|
-
suffixStyles:
|
|
2558
|
-
wrapperProps:
|
|
2559
|
-
labelProps:
|
|
2560
|
-
helperProps:
|
|
2507
|
+
className: T,
|
|
2508
|
+
wrapperStyles: ie.wrapperStyles,
|
|
2509
|
+
floatingLabelStyles: ie.floatingLabelStyles,
|
|
2510
|
+
prefixStyles: ie.prefixStyles,
|
|
2511
|
+
suffixStyles: ie.suffixStyles,
|
|
2512
|
+
wrapperProps: U,
|
|
2513
|
+
labelProps: y,
|
|
2514
|
+
helperProps: j,
|
|
2561
2515
|
showLimit: !1,
|
|
2562
|
-
maxLength:
|
|
2563
|
-
inputProps:
|
|
2564
|
-
hint:
|
|
2565
|
-
showHint:
|
|
2516
|
+
maxLength: i,
|
|
2517
|
+
inputProps: ve,
|
|
2518
|
+
hint: A,
|
|
2519
|
+
showHint: q,
|
|
2566
2520
|
showHintOnEmpty: W,
|
|
2567
|
-
truncate:
|
|
2568
|
-
...
|
|
2521
|
+
truncate: R,
|
|
2522
|
+
...B
|
|
2569
2523
|
}
|
|
2570
2524
|
);
|
|
2571
2525
|
}
|
|
2572
|
-
),
|
|
2573
|
-
|
|
2574
|
-
|
|
2526
|
+
), oe = {
|
|
2527
|
+
SMALL: "small",
|
|
2528
|
+
MEDIUM: "medium"
|
|
2575
2529
|
}, ze = {
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
},
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
},
|
|
2530
|
+
SMALL: "12px",
|
|
2531
|
+
MEDIUM: "16px"
|
|
2532
|
+
}, vn = {
|
|
2533
|
+
SMALL: "xs",
|
|
2534
|
+
MEDIUM: "sm"
|
|
2535
|
+
}, Be = {
|
|
2582
2536
|
FILL: "fill",
|
|
2583
2537
|
FIXED: "fixed"
|
|
2584
|
-
},
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
},
|
|
2588
|
-
|
|
2589
|
-
|
|
2538
|
+
}, Xe = {
|
|
2539
|
+
SMALL: "112px",
|
|
2540
|
+
MEDIUM: "56px"
|
|
2541
|
+
}, $e = {
|
|
2542
|
+
SMALL: "48px",
|
|
2543
|
+
MEDIUM: "22px"
|
|
2590
2544
|
}, ge = {
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2545
|
+
SMALL: "12px 12px 12px 12px",
|
|
2546
|
+
MEDIUM: "16px 16px 16px 16px",
|
|
2547
|
+
MEDIUM_WITH_PREFIX: "12px 16px 12px 16px",
|
|
2548
|
+
MEDIUM_FLOATING_LABEL: "8px 16px 8px 16px"
|
|
2595
2549
|
}, be = {
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
},
|
|
2600
|
-
if (t ===
|
|
2601
|
-
return
|
|
2550
|
+
SMALL: 48,
|
|
2551
|
+
MEDIUM: 56,
|
|
2552
|
+
LARGE: 112
|
|
2553
|
+
}, xn = (t, r) => {
|
|
2554
|
+
if (t === oe.SMALL)
|
|
2555
|
+
return Xe.SMALL;
|
|
2602
2556
|
if (r)
|
|
2603
2557
|
return `${r}px`;
|
|
2604
2558
|
switch (t) {
|
|
2605
|
-
case
|
|
2606
|
-
return
|
|
2559
|
+
case oe.MEDIUM:
|
|
2560
|
+
return Xe.MEDIUM;
|
|
2607
2561
|
default:
|
|
2608
|
-
return
|
|
2562
|
+
return Xe.MEDIUM;
|
|
2609
2563
|
}
|
|
2610
|
-
},
|
|
2611
|
-
if (t ===
|
|
2612
|
-
return
|
|
2564
|
+
}, Cn = (t, r) => {
|
|
2565
|
+
if (t === oe.SMALL)
|
|
2566
|
+
return $e.SMALL;
|
|
2613
2567
|
if (r)
|
|
2614
2568
|
switch (r) {
|
|
2615
|
-
case be.
|
|
2616
|
-
case be.
|
|
2617
|
-
return
|
|
2618
|
-
case be.
|
|
2619
|
-
return
|
|
2569
|
+
case be.SMALL:
|
|
2570
|
+
case be.MEDIUM:
|
|
2571
|
+
return $e.MEDIUM;
|
|
2572
|
+
case be.LARGE:
|
|
2573
|
+
return $e.SMALL;
|
|
2620
2574
|
default:
|
|
2621
|
-
return
|
|
2575
|
+
return $e.MEDIUM;
|
|
2622
2576
|
}
|
|
2623
2577
|
switch (t) {
|
|
2624
|
-
case
|
|
2625
|
-
return
|
|
2578
|
+
case oe.MEDIUM:
|
|
2579
|
+
return $e.MEDIUM;
|
|
2626
2580
|
default:
|
|
2627
|
-
return
|
|
2581
|
+
return $e.MEDIUM;
|
|
2628
2582
|
}
|
|
2629
|
-
},
|
|
2630
|
-
if (t ===
|
|
2631
|
-
return ge.
|
|
2583
|
+
}, wn = (t, r, a) => {
|
|
2584
|
+
if (t === oe.SMALL)
|
|
2585
|
+
return ge.SMALL;
|
|
2632
2586
|
if (r)
|
|
2633
2587
|
switch (r) {
|
|
2634
|
-
case be.
|
|
2635
|
-
return ge.
|
|
2636
|
-
case be.
|
|
2637
|
-
return a ? ge.
|
|
2638
|
-
case be.
|
|
2639
|
-
return ge.
|
|
2588
|
+
case be.SMALL:
|
|
2589
|
+
return ge.MEDIUM_WITH_PREFIX;
|
|
2590
|
+
case be.MEDIUM:
|
|
2591
|
+
return a ? ge.MEDIUM_FLOATING_LABEL : ge.MEDIUM;
|
|
2592
|
+
case be.LARGE:
|
|
2593
|
+
return ge.MEDIUM;
|
|
2640
2594
|
default:
|
|
2641
|
-
return ge.
|
|
2595
|
+
return ge.MEDIUM;
|
|
2642
2596
|
}
|
|
2643
2597
|
switch (t) {
|
|
2644
|
-
case
|
|
2645
|
-
return a ? ge.
|
|
2598
|
+
case oe.MEDIUM:
|
|
2599
|
+
return a ? ge.MEDIUM_FLOATING_LABEL : ge.MEDIUM;
|
|
2646
2600
|
default:
|
|
2647
|
-
return ge.
|
|
2601
|
+
return ge.MEDIUM;
|
|
2648
2602
|
}
|
|
2649
|
-
},
|
|
2650
|
-
if (t ===
|
|
2651
|
-
return "
|
|
2603
|
+
}, Sn = (t, r) => {
|
|
2604
|
+
if (t === oe.SMALL)
|
|
2605
|
+
return "small";
|
|
2652
2606
|
if (r)
|
|
2653
2607
|
switch (r) {
|
|
2654
|
-
case be.
|
|
2655
|
-
return "
|
|
2656
|
-
case be.
|
|
2657
|
-
return "
|
|
2658
|
-
case be.
|
|
2659
|
-
return "
|
|
2608
|
+
case be.SMALL:
|
|
2609
|
+
return "small";
|
|
2610
|
+
case be.MEDIUM:
|
|
2611
|
+
return "medium";
|
|
2612
|
+
case be.LARGE:
|
|
2613
|
+
return "medium";
|
|
2660
2614
|
default:
|
|
2661
|
-
return "
|
|
2615
|
+
return "medium";
|
|
2662
2616
|
}
|
|
2663
2617
|
return t;
|
|
2664
|
-
},
|
|
2665
|
-
const
|
|
2618
|
+
}, En = (t) => vn[t.toUpperCase()], Ln = (t) => ze[t.toUpperCase()], Mn = (t, r, a, s) => {
|
|
2619
|
+
const i = xn(t, r), n = Cn(t, r), c = wn(t, r, a);
|
|
2666
2620
|
return {
|
|
2667
2621
|
wrapperStyles: {
|
|
2668
|
-
minHeight:
|
|
2622
|
+
minHeight: i,
|
|
2669
2623
|
// Для fill resize устанавливаем height: 100%
|
|
2670
|
-
...s ===
|
|
2624
|
+
...s === Be.FILL && { height: "100%" },
|
|
2671
2625
|
// Для fixed resize устанавливаем фиксированную высоту
|
|
2672
|
-
...s ===
|
|
2626
|
+
...s === Be.FIXED && r && { height: i },
|
|
2673
2627
|
boxSizing: "border-box",
|
|
2674
2628
|
padding: c
|
|
2675
2629
|
},
|
|
2676
2630
|
floatingLabelStyles: {
|
|
2677
|
-
left: t ===
|
|
2631
|
+
left: t === oe.SMALL ? ze.SMALL : ze.MEDIUM,
|
|
2678
2632
|
transformOrigin: "left top",
|
|
2679
|
-
top: r === 112 && a && t ===
|
|
2633
|
+
top: r === 112 && a && t === oe.MEDIUM ? ze.MEDIUM : void 0
|
|
2680
2634
|
},
|
|
2681
2635
|
suffixStyles: {
|
|
2682
|
-
right:
|
|
2683
|
-
top: r === 48 && t === se.L ? "11px" : void 0,
|
|
2684
|
-
boxSizing: "border-box"
|
|
2636
|
+
right: Ln(t)
|
|
2685
2637
|
},
|
|
2686
2638
|
textareaStyles: {
|
|
2687
2639
|
minHeight: n,
|
|
2688
2640
|
// Для fill resize flex: 1
|
|
2689
|
-
...s ===
|
|
2641
|
+
...s === Be.FILL && { flex: 1, minHeight: 0 },
|
|
2690
2642
|
// Для fixed resize фиксированная высота
|
|
2691
|
-
...s ===
|
|
2643
|
+
...s === Be.FIXED && r && { height: n }
|
|
2692
2644
|
}
|
|
2693
2645
|
};
|
|
2694
|
-
},
|
|
2646
|
+
}, zn = te(
|
|
2695
2647
|
({
|
|
2696
2648
|
value: t = "",
|
|
2697
2649
|
onChange: r,
|
|
2698
2650
|
placeholder: a,
|
|
2699
2651
|
maxLength: s,
|
|
2700
|
-
minLength:
|
|
2652
|
+
minLength: i,
|
|
2701
2653
|
autoFocus: n,
|
|
2702
|
-
size: c =
|
|
2703
|
-
textareaProps:
|
|
2654
|
+
size: c = oe.MEDIUM,
|
|
2655
|
+
textareaProps: p,
|
|
2704
2656
|
error: d,
|
|
2705
|
-
disabled:
|
|
2706
|
-
loading:
|
|
2657
|
+
disabled: g,
|
|
2658
|
+
loading: _,
|
|
2707
2659
|
helper: h,
|
|
2708
2660
|
suffix: b,
|
|
2709
|
-
clearable:
|
|
2710
|
-
id:
|
|
2661
|
+
clearable: m = !1,
|
|
2662
|
+
id: x,
|
|
2711
2663
|
showLabel: E = !0,
|
|
2712
|
-
onFocus:
|
|
2664
|
+
onFocus: w,
|
|
2713
2665
|
onBlur: C,
|
|
2714
|
-
onClear:
|
|
2715
|
-
onKeyDown:
|
|
2716
|
-
className:
|
|
2717
|
-
rows:
|
|
2718
|
-
showLimit:
|
|
2719
|
-
wrapperProps:
|
|
2720
|
-
labelProps:
|
|
2721
|
-
helperProps:
|
|
2722
|
-
showGrip:
|
|
2666
|
+
onClear: f,
|
|
2667
|
+
onKeyDown: $,
|
|
2668
|
+
className: O,
|
|
2669
|
+
rows: D = 1,
|
|
2670
|
+
showLimit: k = !1,
|
|
2671
|
+
wrapperProps: T,
|
|
2672
|
+
labelProps: R,
|
|
2673
|
+
helperProps: A,
|
|
2674
|
+
showGrip: q,
|
|
2723
2675
|
minHeight: W,
|
|
2724
|
-
resize:
|
|
2725
|
-
...
|
|
2726
|
-
},
|
|
2727
|
-
const
|
|
2728
|
-
r == null || r(""),
|
|
2729
|
-
},
|
|
2730
|
-
|
|
2676
|
+
resize: U,
|
|
2677
|
+
...y
|
|
2678
|
+
}, j) => {
|
|
2679
|
+
const B = (t || "").length > 0, G = E && !!a && (c === oe.SMALL || W !== 48), H = m && B && !(g || _), Q = () => {
|
|
2680
|
+
r == null || r(""), f == null || f();
|
|
2681
|
+
}, ae = H ? /* @__PURE__ */ o.jsx(
|
|
2682
|
+
kt,
|
|
2731
2683
|
{
|
|
2732
|
-
size:
|
|
2684
|
+
size: En(c),
|
|
2733
2685
|
color: "var(--icon-secondary)",
|
|
2734
2686
|
onClick: Q,
|
|
2735
2687
|
style: { cursor: "pointer" },
|
|
2736
2688
|
"data-testid": "x-icon"
|
|
2737
2689
|
}
|
|
2738
|
-
) : b, J =
|
|
2739
|
-
rows:
|
|
2740
|
-
minLength:
|
|
2690
|
+
) : b, J = Mn(c, W, G && B, U), re = Sn(c, W), se = {
|
|
2691
|
+
rows: D,
|
|
2692
|
+
minLength: i,
|
|
2741
2693
|
autoFocus: n,
|
|
2742
|
-
resize:
|
|
2743
|
-
...
|
|
2694
|
+
resize: U,
|
|
2695
|
+
...p
|
|
2744
2696
|
};
|
|
2745
|
-
return /* @__PURE__ */
|
|
2746
|
-
|
|
2697
|
+
return /* @__PURE__ */ o.jsx(
|
|
2698
|
+
At,
|
|
2747
2699
|
{
|
|
2748
|
-
ref:
|
|
2700
|
+
ref: j,
|
|
2749
2701
|
component: "textarea",
|
|
2750
|
-
size:
|
|
2702
|
+
size: re,
|
|
2751
2703
|
error: d,
|
|
2752
|
-
disabled:
|
|
2753
|
-
loading:
|
|
2704
|
+
disabled: g || _,
|
|
2705
|
+
loading: _,
|
|
2754
2706
|
helper: h,
|
|
2755
|
-
suffix:
|
|
2756
|
-
id:
|
|
2757
|
-
showLabel:
|
|
2758
|
-
onFocus:
|
|
2707
|
+
suffix: ae,
|
|
2708
|
+
id: x,
|
|
2709
|
+
showLabel: G,
|
|
2710
|
+
onFocus: w,
|
|
2759
2711
|
onBlur: C,
|
|
2760
|
-
onKeyDown:
|
|
2712
|
+
onKeyDown: $,
|
|
2761
2713
|
onChange: r,
|
|
2762
2714
|
value: t || "",
|
|
2763
2715
|
placeholder: a,
|
|
2764
|
-
className:
|
|
2765
|
-
"data-floating-label":
|
|
2716
|
+
className: O,
|
|
2717
|
+
"data-floating-label": G,
|
|
2766
2718
|
wrapperStyles: J.wrapperStyles,
|
|
2767
2719
|
floatingLabelStyles: J.floatingLabelStyles,
|
|
2768
2720
|
suffixStyles: J.suffixStyles,
|
|
2769
2721
|
textareaStyles: J.textareaStyles,
|
|
2770
|
-
wrapperProps:
|
|
2771
|
-
labelProps:
|
|
2772
|
-
helperProps:
|
|
2773
|
-
showLimit:
|
|
2722
|
+
wrapperProps: T,
|
|
2723
|
+
labelProps: R,
|
|
2724
|
+
helperProps: A,
|
|
2725
|
+
showLimit: k && (W === 112 || c === oe.SMALL),
|
|
2774
2726
|
maxLength: s,
|
|
2775
|
-
inputProps:
|
|
2776
|
-
resize:
|
|
2777
|
-
showGrip:
|
|
2778
|
-
...
|
|
2727
|
+
inputProps: se,
|
|
2728
|
+
resize: U,
|
|
2729
|
+
showGrip: q,
|
|
2730
|
+
...y
|
|
2779
2731
|
}
|
|
2780
2732
|
);
|
|
2781
2733
|
}
|
|
2782
|
-
),
|
|
2783
|
-
helper:
|
|
2734
|
+
), $n = "_helper_1vhgl_16", Qe = {
|
|
2735
|
+
helper: $n,
|
|
2784
2736
|
"helper--error": "_helper--error_1vhgl_27",
|
|
2785
2737
|
"helper--disabled": "_helper--disabled_1vhgl_32"
|
|
2786
|
-
},
|
|
2738
|
+
}, Wn = ({
|
|
2787
2739
|
title: t,
|
|
2788
2740
|
error: r,
|
|
2789
2741
|
className: a = "",
|
|
2790
2742
|
style: s,
|
|
2791
|
-
disabled:
|
|
2743
|
+
disabled: i = !1,
|
|
2792
2744
|
"data-testid": n,
|
|
2793
2745
|
"aria-label": c,
|
|
2794
|
-
"aria-describedby":
|
|
2746
|
+
"aria-describedby": p
|
|
2795
2747
|
}) => {
|
|
2796
|
-
const d = !!r,
|
|
2748
|
+
const d = !!r, g = P(
|
|
2797
2749
|
Qe.helper,
|
|
2798
2750
|
d && Qe["helper--error"],
|
|
2799
|
-
|
|
2751
|
+
i && Qe["helper--disabled"],
|
|
2800
2752
|
a
|
|
2801
|
-
),
|
|
2802
|
-
return /* @__PURE__ */
|
|
2753
|
+
), _ = i ? t : r || t;
|
|
2754
|
+
return /* @__PURE__ */ o.jsx(
|
|
2803
2755
|
"div",
|
|
2804
2756
|
{
|
|
2805
|
-
className:
|
|
2757
|
+
className: g,
|
|
2806
2758
|
style: s,
|
|
2807
2759
|
"data-testid": n,
|
|
2808
2760
|
"aria-label": c,
|
|
2809
|
-
"aria-describedby":
|
|
2810
|
-
children: /* @__PURE__ */
|
|
2761
|
+
"aria-describedby": p,
|
|
2762
|
+
children: /* @__PURE__ */ o.jsx("p", { children: _ })
|
|
2811
2763
|
}
|
|
2812
2764
|
);
|
|
2813
2765
|
};
|
|
2814
2766
|
export {
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2767
|
+
kn as Avatar,
|
|
2768
|
+
Tn as Badge,
|
|
2769
|
+
Rn as Button,
|
|
2770
|
+
Pn as Checkbox,
|
|
2771
|
+
Dn as ConfigProvider,
|
|
2772
|
+
Wn as Helper,
|
|
2773
|
+
An as Image,
|
|
2774
|
+
Hr as Loader,
|
|
2775
|
+
Un as Tag,
|
|
2776
|
+
zn as TextArea,
|
|
2777
|
+
Fn as TextInput,
|
|
2778
|
+
Bn as Typography,
|
|
2779
|
+
Gr as enUS,
|
|
2780
|
+
On as ruRU,
|
|
2781
|
+
Zr as useConfig,
|
|
2782
|
+
Nn as useLocale
|
|
2831
2783
|
};
|