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