@atme-lab/ui-kit 0.1.4 → 0.1.7
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/README.md +12 -23
- package/dist/index.cjs.js +35 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.esm.js +1650 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/ui-kit.css +1 -0
- package/package.json +24 -24
|
@@ -0,0 +1,1650 @@
|
|
|
1
|
+
import U, { forwardRef as F, useCallback as $, useState as ut, useMemo as H, createContext as $e, useEffect as Fe, useContext as Be } from "react";
|
|
2
|
+
function Le(e) {
|
|
3
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
4
|
+
}
|
|
5
|
+
var ct = { exports: {} }, tt = {};
|
|
6
|
+
/**
|
|
7
|
+
* @license React
|
|
8
|
+
* react-jsx-runtime.production.min.js
|
|
9
|
+
*
|
|
10
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
11
|
+
*
|
|
12
|
+
* This source code is licensed under the MIT license found in the
|
|
13
|
+
* LICENSE file in the root directory of this source tree.
|
|
14
|
+
*/
|
|
15
|
+
var Kt;
|
|
16
|
+
function Me() {
|
|
17
|
+
if (Kt) return tt;
|
|
18
|
+
Kt = 1;
|
|
19
|
+
var e = U, o = Symbol.for("react.element"), s = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, c = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, n = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
20
|
+
function u(_, d, h) {
|
|
21
|
+
var f, b = {}, k = null, w = null;
|
|
22
|
+
h !== void 0 && (k = "" + h), d.key !== void 0 && (k = "" + d.key), d.ref !== void 0 && (w = d.ref);
|
|
23
|
+
for (f in d) i.call(d, f) && !n.hasOwnProperty(f) && (b[f] = d[f]);
|
|
24
|
+
if (_ && _.defaultProps) for (f in d = _.defaultProps, d) b[f] === void 0 && (b[f] = d[f]);
|
|
25
|
+
return { $$typeof: o, type: _, key: k, ref: w, props: b, _owner: c.current };
|
|
26
|
+
}
|
|
27
|
+
return tt.Fragment = s, tt.jsx = u, tt.jsxs = u, tt;
|
|
28
|
+
}
|
|
29
|
+
var et = {};
|
|
30
|
+
/**
|
|
31
|
+
* @license React
|
|
32
|
+
* react-jsx-runtime.development.js
|
|
33
|
+
*
|
|
34
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
35
|
+
*
|
|
36
|
+
* This source code is licensed under the MIT license found in the
|
|
37
|
+
* LICENSE file in the root directory of this source tree.
|
|
38
|
+
*/
|
|
39
|
+
var qt;
|
|
40
|
+
function ze() {
|
|
41
|
+
return qt || (qt = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
42
|
+
var e = U, o = Symbol.for("react.element"), s = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), n = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), _ = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), k = Symbol.for("react.lazy"), w = Symbol.for("react.offscreen"), C = Symbol.iterator, N = "@@iterator";
|
|
43
|
+
function M(t) {
|
|
44
|
+
if (t === null || typeof t != "object")
|
|
45
|
+
return null;
|
|
46
|
+
var r = C && t[C] || t[N];
|
|
47
|
+
return typeof r == "function" ? r : null;
|
|
48
|
+
}
|
|
49
|
+
var R = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
50
|
+
function m(t) {
|
|
51
|
+
{
|
|
52
|
+
for (var r = arguments.length, a = new Array(r > 1 ? r - 1 : 0), p = 1; p < r; p++)
|
|
53
|
+
a[p - 1] = arguments[p];
|
|
54
|
+
P("error", t, a);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
function P(t, r, a) {
|
|
58
|
+
{
|
|
59
|
+
var p = R.ReactDebugCurrentFrame, v = p.getStackAddendum();
|
|
60
|
+
v !== "" && (r += "%s", a = a.concat([v]));
|
|
61
|
+
var x = a.map(function(g) {
|
|
62
|
+
return String(g);
|
|
63
|
+
});
|
|
64
|
+
x.unshift("Warning: " + r), Function.prototype.apply.call(console[t], console, x);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
var X = !1, K = !1, q = !1, se = !1, ie = !1, Et;
|
|
68
|
+
Et = Symbol.for("react.module.reference");
|
|
69
|
+
function ce(t) {
|
|
70
|
+
return !!(typeof t == "string" || typeof t == "function" || t === i || t === n || ie || t === c || t === h || t === f || se || t === w || X || K || q || typeof t == "object" && t !== null && (t.$$typeof === k || t.$$typeof === b || t.$$typeof === u || t.$$typeof === _ || t.$$typeof === d || // This needs to include all possible module reference object
|
|
71
|
+
// types supported by any Flight configuration anywhere since
|
|
72
|
+
// we don't know which Flight build this will end up being used
|
|
73
|
+
// with.
|
|
74
|
+
t.$$typeof === Et || t.getModuleId !== void 0));
|
|
75
|
+
}
|
|
76
|
+
function le(t, r, a) {
|
|
77
|
+
var p = t.displayName;
|
|
78
|
+
if (p)
|
|
79
|
+
return p;
|
|
80
|
+
var v = r.displayName || r.name || "";
|
|
81
|
+
return v !== "" ? a + "(" + v + ")" : a;
|
|
82
|
+
}
|
|
83
|
+
function Rt(t) {
|
|
84
|
+
return t.displayName || "Context";
|
|
85
|
+
}
|
|
86
|
+
function B(t) {
|
|
87
|
+
if (t == null)
|
|
88
|
+
return null;
|
|
89
|
+
if (typeof t.tag == "number" && m("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof t == "function")
|
|
90
|
+
return t.displayName || t.name || null;
|
|
91
|
+
if (typeof t == "string")
|
|
92
|
+
return t;
|
|
93
|
+
switch (t) {
|
|
94
|
+
case i:
|
|
95
|
+
return "Fragment";
|
|
96
|
+
case s:
|
|
97
|
+
return "Portal";
|
|
98
|
+
case n:
|
|
99
|
+
return "Profiler";
|
|
100
|
+
case c:
|
|
101
|
+
return "StrictMode";
|
|
102
|
+
case h:
|
|
103
|
+
return "Suspense";
|
|
104
|
+
case f:
|
|
105
|
+
return "SuspenseList";
|
|
106
|
+
}
|
|
107
|
+
if (typeof t == "object")
|
|
108
|
+
switch (t.$$typeof) {
|
|
109
|
+
case _:
|
|
110
|
+
var r = t;
|
|
111
|
+
return Rt(r) + ".Consumer";
|
|
112
|
+
case u:
|
|
113
|
+
var a = t;
|
|
114
|
+
return Rt(a._context) + ".Provider";
|
|
115
|
+
case d:
|
|
116
|
+
return le(t, t.render, "ForwardRef");
|
|
117
|
+
case b:
|
|
118
|
+
var p = t.displayName || null;
|
|
119
|
+
return p !== null ? p : B(t.type) || "Memo";
|
|
120
|
+
case k: {
|
|
121
|
+
var v = t, x = v._payload, g = v._init;
|
|
122
|
+
try {
|
|
123
|
+
return B(g(x));
|
|
124
|
+
} catch {
|
|
125
|
+
return null;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
return null;
|
|
130
|
+
}
|
|
131
|
+
var z = Object.assign, Z = 0, Ct, St, Tt, Ot, Pt, Nt, It;
|
|
132
|
+
function At() {
|
|
133
|
+
}
|
|
134
|
+
At.__reactDisabledLog = !0;
|
|
135
|
+
function ue() {
|
|
136
|
+
{
|
|
137
|
+
if (Z === 0) {
|
|
138
|
+
Ct = console.log, St = console.info, Tt = console.warn, Ot = console.error, Pt = console.group, Nt = console.groupCollapsed, It = console.groupEnd;
|
|
139
|
+
var t = {
|
|
140
|
+
configurable: !0,
|
|
141
|
+
enumerable: !0,
|
|
142
|
+
value: At,
|
|
143
|
+
writable: !0
|
|
144
|
+
};
|
|
145
|
+
Object.defineProperties(console, {
|
|
146
|
+
info: t,
|
|
147
|
+
log: t,
|
|
148
|
+
warn: t,
|
|
149
|
+
error: t,
|
|
150
|
+
group: t,
|
|
151
|
+
groupCollapsed: t,
|
|
152
|
+
groupEnd: t
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
Z++;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
function pe() {
|
|
159
|
+
{
|
|
160
|
+
if (Z--, Z === 0) {
|
|
161
|
+
var t = {
|
|
162
|
+
configurable: !0,
|
|
163
|
+
enumerable: !0,
|
|
164
|
+
writable: !0
|
|
165
|
+
};
|
|
166
|
+
Object.defineProperties(console, {
|
|
167
|
+
log: z({}, t, {
|
|
168
|
+
value: Ct
|
|
169
|
+
}),
|
|
170
|
+
info: z({}, t, {
|
|
171
|
+
value: St
|
|
172
|
+
}),
|
|
173
|
+
warn: z({}, t, {
|
|
174
|
+
value: Tt
|
|
175
|
+
}),
|
|
176
|
+
error: z({}, t, {
|
|
177
|
+
value: Ot
|
|
178
|
+
}),
|
|
179
|
+
group: z({}, t, {
|
|
180
|
+
value: Pt
|
|
181
|
+
}),
|
|
182
|
+
groupCollapsed: z({}, t, {
|
|
183
|
+
value: Nt
|
|
184
|
+
}),
|
|
185
|
+
groupEnd: z({}, t, {
|
|
186
|
+
value: It
|
|
187
|
+
})
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
Z < 0 && m("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
var pt = R.ReactCurrentDispatcher, _t;
|
|
194
|
+
function at(t, r, a) {
|
|
195
|
+
{
|
|
196
|
+
if (_t === void 0)
|
|
197
|
+
try {
|
|
198
|
+
throw Error();
|
|
199
|
+
} catch (v) {
|
|
200
|
+
var p = v.stack.trim().match(/\n( *(at )?)/);
|
|
201
|
+
_t = p && p[1] || "";
|
|
202
|
+
}
|
|
203
|
+
return `
|
|
204
|
+
` + _t + t;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
var ft = !1, ot;
|
|
208
|
+
{
|
|
209
|
+
var _e = typeof WeakMap == "function" ? WeakMap : Map;
|
|
210
|
+
ot = new _e();
|
|
211
|
+
}
|
|
212
|
+
function Dt(t, r) {
|
|
213
|
+
if (!t || ft)
|
|
214
|
+
return "";
|
|
215
|
+
{
|
|
216
|
+
var a = ot.get(t);
|
|
217
|
+
if (a !== void 0)
|
|
218
|
+
return a;
|
|
219
|
+
}
|
|
220
|
+
var p;
|
|
221
|
+
ft = !0;
|
|
222
|
+
var v = Error.prepareStackTrace;
|
|
223
|
+
Error.prepareStackTrace = void 0;
|
|
224
|
+
var x;
|
|
225
|
+
x = pt.current, pt.current = null, ue();
|
|
226
|
+
try {
|
|
227
|
+
if (r) {
|
|
228
|
+
var g = function() {
|
|
229
|
+
throw Error();
|
|
230
|
+
};
|
|
231
|
+
if (Object.defineProperty(g.prototype, "props", {
|
|
232
|
+
set: function() {
|
|
233
|
+
throw Error();
|
|
234
|
+
}
|
|
235
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
|
236
|
+
try {
|
|
237
|
+
Reflect.construct(g, []);
|
|
238
|
+
} catch (T) {
|
|
239
|
+
p = T;
|
|
240
|
+
}
|
|
241
|
+
Reflect.construct(t, [], g);
|
|
242
|
+
} else {
|
|
243
|
+
try {
|
|
244
|
+
g.call();
|
|
245
|
+
} catch (T) {
|
|
246
|
+
p = T;
|
|
247
|
+
}
|
|
248
|
+
t.call(g.prototype);
|
|
249
|
+
}
|
|
250
|
+
} else {
|
|
251
|
+
try {
|
|
252
|
+
throw Error();
|
|
253
|
+
} catch (T) {
|
|
254
|
+
p = T;
|
|
255
|
+
}
|
|
256
|
+
t();
|
|
257
|
+
}
|
|
258
|
+
} catch (T) {
|
|
259
|
+
if (T && p && typeof T.stack == "string") {
|
|
260
|
+
for (var y = T.stack.split(`
|
|
261
|
+
`), S = p.stack.split(`
|
|
262
|
+
`), j = y.length - 1, E = S.length - 1; j >= 1 && E >= 0 && y[j] !== S[E]; )
|
|
263
|
+
E--;
|
|
264
|
+
for (; j >= 1 && E >= 0; j--, E--)
|
|
265
|
+
if (y[j] !== S[E]) {
|
|
266
|
+
if (j !== 1 || E !== 1)
|
|
267
|
+
do
|
|
268
|
+
if (j--, E--, E < 0 || y[j] !== S[E]) {
|
|
269
|
+
var I = `
|
|
270
|
+
` + y[j].replace(" at new ", " at ");
|
|
271
|
+
return t.displayName && I.includes("<anonymous>") && (I = I.replace("<anonymous>", t.displayName)), typeof t == "function" && ot.set(t, I), I;
|
|
272
|
+
}
|
|
273
|
+
while (j >= 1 && E >= 0);
|
|
274
|
+
break;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
} finally {
|
|
278
|
+
ft = !1, pt.current = x, pe(), Error.prepareStackTrace = v;
|
|
279
|
+
}
|
|
280
|
+
var G = t ? t.displayName || t.name : "", V = G ? at(G) : "";
|
|
281
|
+
return typeof t == "function" && ot.set(t, V), V;
|
|
282
|
+
}
|
|
283
|
+
function fe(t, r, a) {
|
|
284
|
+
return Dt(t, !1);
|
|
285
|
+
}
|
|
286
|
+
function de(t) {
|
|
287
|
+
var r = t.prototype;
|
|
288
|
+
return !!(r && r.isReactComponent);
|
|
289
|
+
}
|
|
290
|
+
function st(t, r, a) {
|
|
291
|
+
if (t == null)
|
|
292
|
+
return "";
|
|
293
|
+
if (typeof t == "function")
|
|
294
|
+
return Dt(t, de(t));
|
|
295
|
+
if (typeof t == "string")
|
|
296
|
+
return at(t);
|
|
297
|
+
switch (t) {
|
|
298
|
+
case h:
|
|
299
|
+
return at("Suspense");
|
|
300
|
+
case f:
|
|
301
|
+
return at("SuspenseList");
|
|
302
|
+
}
|
|
303
|
+
if (typeof t == "object")
|
|
304
|
+
switch (t.$$typeof) {
|
|
305
|
+
case d:
|
|
306
|
+
return fe(t.render);
|
|
307
|
+
case b:
|
|
308
|
+
return st(t.type, r, a);
|
|
309
|
+
case k: {
|
|
310
|
+
var p = t, v = p._payload, x = p._init;
|
|
311
|
+
try {
|
|
312
|
+
return st(x(v), r, a);
|
|
313
|
+
} catch {
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
return "";
|
|
318
|
+
}
|
|
319
|
+
var Q = Object.prototype.hasOwnProperty, Wt = {}, $t = R.ReactDebugCurrentFrame;
|
|
320
|
+
function it(t) {
|
|
321
|
+
if (t) {
|
|
322
|
+
var r = t._owner, a = st(t.type, t._source, r ? r.type : null);
|
|
323
|
+
$t.setExtraStackFrame(a);
|
|
324
|
+
} else
|
|
325
|
+
$t.setExtraStackFrame(null);
|
|
326
|
+
}
|
|
327
|
+
function ye(t, r, a, p, v) {
|
|
328
|
+
{
|
|
329
|
+
var x = Function.call.bind(Q);
|
|
330
|
+
for (var g in t)
|
|
331
|
+
if (x(t, g)) {
|
|
332
|
+
var y = void 0;
|
|
333
|
+
try {
|
|
334
|
+
if (typeof t[g] != "function") {
|
|
335
|
+
var S = Error((p || "React class") + ": " + a + " type `" + g + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[g] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
336
|
+
throw S.name = "Invariant Violation", S;
|
|
337
|
+
}
|
|
338
|
+
y = t[g](r, g, p, a, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
339
|
+
} catch (j) {
|
|
340
|
+
y = j;
|
|
341
|
+
}
|
|
342
|
+
y && !(y instanceof Error) && (it(v), m("%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).", p || "React class", a, g, typeof y), it(null)), y instanceof Error && !(y.message in Wt) && (Wt[y.message] = !0, it(v), m("Failed %s type: %s", a, y.message), it(null));
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
var ge = Array.isArray;
|
|
347
|
+
function dt(t) {
|
|
348
|
+
return ge(t);
|
|
349
|
+
}
|
|
350
|
+
function he(t) {
|
|
351
|
+
{
|
|
352
|
+
var r = typeof Symbol == "function" && Symbol.toStringTag, a = r && t[Symbol.toStringTag] || t.constructor.name || "Object";
|
|
353
|
+
return a;
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
function ve(t) {
|
|
357
|
+
try {
|
|
358
|
+
return Ft(t), !1;
|
|
359
|
+
} catch {
|
|
360
|
+
return !0;
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
function Ft(t) {
|
|
364
|
+
return "" + t;
|
|
365
|
+
}
|
|
366
|
+
function Bt(t) {
|
|
367
|
+
if (ve(t))
|
|
368
|
+
return m("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", he(t)), Ft(t);
|
|
369
|
+
}
|
|
370
|
+
var Lt = R.ReactCurrentOwner, be = {
|
|
371
|
+
key: !0,
|
|
372
|
+
ref: !0,
|
|
373
|
+
__self: !0,
|
|
374
|
+
__source: !0
|
|
375
|
+
}, Mt, zt;
|
|
376
|
+
function me(t) {
|
|
377
|
+
if (Q.call(t, "ref")) {
|
|
378
|
+
var r = Object.getOwnPropertyDescriptor(t, "ref").get;
|
|
379
|
+
if (r && r.isReactWarning)
|
|
380
|
+
return !1;
|
|
381
|
+
}
|
|
382
|
+
return t.ref !== void 0;
|
|
383
|
+
}
|
|
384
|
+
function xe(t) {
|
|
385
|
+
if (Q.call(t, "key")) {
|
|
386
|
+
var r = Object.getOwnPropertyDescriptor(t, "key").get;
|
|
387
|
+
if (r && r.isReactWarning)
|
|
388
|
+
return !1;
|
|
389
|
+
}
|
|
390
|
+
return t.key !== void 0;
|
|
391
|
+
}
|
|
392
|
+
function ke(t, r) {
|
|
393
|
+
typeof t.ref == "string" && Lt.current;
|
|
394
|
+
}
|
|
395
|
+
function we(t, r) {
|
|
396
|
+
{
|
|
397
|
+
var a = function() {
|
|
398
|
+
Mt || (Mt = !0, m("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
399
|
+
};
|
|
400
|
+
a.isReactWarning = !0, Object.defineProperty(t, "key", {
|
|
401
|
+
get: a,
|
|
402
|
+
configurable: !0
|
|
403
|
+
});
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
function je(t, r) {
|
|
407
|
+
{
|
|
408
|
+
var a = function() {
|
|
409
|
+
zt || (zt = !0, m("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
410
|
+
};
|
|
411
|
+
a.isReactWarning = !0, Object.defineProperty(t, "ref", {
|
|
412
|
+
get: a,
|
|
413
|
+
configurable: !0
|
|
414
|
+
});
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
var Ee = function(t, r, a, p, v, x, g) {
|
|
418
|
+
var y = {
|
|
419
|
+
// This tag allows us to uniquely identify this as a React Element
|
|
420
|
+
$$typeof: o,
|
|
421
|
+
// Built-in properties that belong on the element
|
|
422
|
+
type: t,
|
|
423
|
+
key: r,
|
|
424
|
+
ref: a,
|
|
425
|
+
props: g,
|
|
426
|
+
// Record the component responsible for creating this element.
|
|
427
|
+
_owner: x
|
|
428
|
+
};
|
|
429
|
+
return y._store = {}, Object.defineProperty(y._store, "validated", {
|
|
430
|
+
configurable: !1,
|
|
431
|
+
enumerable: !1,
|
|
432
|
+
writable: !0,
|
|
433
|
+
value: !1
|
|
434
|
+
}), Object.defineProperty(y, "_self", {
|
|
435
|
+
configurable: !1,
|
|
436
|
+
enumerable: !1,
|
|
437
|
+
writable: !1,
|
|
438
|
+
value: p
|
|
439
|
+
}), Object.defineProperty(y, "_source", {
|
|
440
|
+
configurable: !1,
|
|
441
|
+
enumerable: !1,
|
|
442
|
+
writable: !1,
|
|
443
|
+
value: v
|
|
444
|
+
}), Object.freeze && (Object.freeze(y.props), Object.freeze(y)), y;
|
|
445
|
+
};
|
|
446
|
+
function Re(t, r, a, p, v) {
|
|
447
|
+
{
|
|
448
|
+
var x, g = {}, y = null, S = null;
|
|
449
|
+
a !== void 0 && (Bt(a), y = "" + a), xe(r) && (Bt(r.key), y = "" + r.key), me(r) && (S = r.ref, ke(r, v));
|
|
450
|
+
for (x in r)
|
|
451
|
+
Q.call(r, x) && !be.hasOwnProperty(x) && (g[x] = r[x]);
|
|
452
|
+
if (t && t.defaultProps) {
|
|
453
|
+
var j = t.defaultProps;
|
|
454
|
+
for (x in j)
|
|
455
|
+
g[x] === void 0 && (g[x] = j[x]);
|
|
456
|
+
}
|
|
457
|
+
if (y || S) {
|
|
458
|
+
var E = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
|
|
459
|
+
y && we(g, E), S && je(g, E);
|
|
460
|
+
}
|
|
461
|
+
return Ee(t, y, S, v, p, Lt.current, g);
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
var yt = R.ReactCurrentOwner, Vt = R.ReactDebugCurrentFrame;
|
|
465
|
+
function Y(t) {
|
|
466
|
+
if (t) {
|
|
467
|
+
var r = t._owner, a = st(t.type, t._source, r ? r.type : null);
|
|
468
|
+
Vt.setExtraStackFrame(a);
|
|
469
|
+
} else
|
|
470
|
+
Vt.setExtraStackFrame(null);
|
|
471
|
+
}
|
|
472
|
+
var gt;
|
|
473
|
+
gt = !1;
|
|
474
|
+
function ht(t) {
|
|
475
|
+
return typeof t == "object" && t !== null && t.$$typeof === o;
|
|
476
|
+
}
|
|
477
|
+
function Jt() {
|
|
478
|
+
{
|
|
479
|
+
if (yt.current) {
|
|
480
|
+
var t = B(yt.current.type);
|
|
481
|
+
if (t)
|
|
482
|
+
return `
|
|
483
|
+
|
|
484
|
+
Check the render method of \`` + t + "`.";
|
|
485
|
+
}
|
|
486
|
+
return "";
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
function Ce(t) {
|
|
490
|
+
return "";
|
|
491
|
+
}
|
|
492
|
+
var Yt = {};
|
|
493
|
+
function Se(t) {
|
|
494
|
+
{
|
|
495
|
+
var r = Jt();
|
|
496
|
+
if (!r) {
|
|
497
|
+
var a = typeof t == "string" ? t : t.displayName || t.name;
|
|
498
|
+
a && (r = `
|
|
499
|
+
|
|
500
|
+
Check the top-level render call using <` + a + ">.");
|
|
501
|
+
}
|
|
502
|
+
return r;
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
function Gt(t, r) {
|
|
506
|
+
{
|
|
507
|
+
if (!t._store || t._store.validated || t.key != null)
|
|
508
|
+
return;
|
|
509
|
+
t._store.validated = !0;
|
|
510
|
+
var a = Se(r);
|
|
511
|
+
if (Yt[a])
|
|
512
|
+
return;
|
|
513
|
+
Yt[a] = !0;
|
|
514
|
+
var p = "";
|
|
515
|
+
t && t._owner && t._owner !== yt.current && (p = " It was passed a child from " + B(t._owner.type) + "."), Y(t), m('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', a, p), Y(null);
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
function Ht(t, r) {
|
|
519
|
+
{
|
|
520
|
+
if (typeof t != "object")
|
|
521
|
+
return;
|
|
522
|
+
if (dt(t))
|
|
523
|
+
for (var a = 0; a < t.length; a++) {
|
|
524
|
+
var p = t[a];
|
|
525
|
+
ht(p) && Gt(p, r);
|
|
526
|
+
}
|
|
527
|
+
else if (ht(t))
|
|
528
|
+
t._store && (t._store.validated = !0);
|
|
529
|
+
else if (t) {
|
|
530
|
+
var v = M(t);
|
|
531
|
+
if (typeof v == "function" && v !== t.entries)
|
|
532
|
+
for (var x = v.call(t), g; !(g = x.next()).done; )
|
|
533
|
+
ht(g.value) && Gt(g.value, r);
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
function Te(t) {
|
|
538
|
+
{
|
|
539
|
+
var r = t.type;
|
|
540
|
+
if (r == null || typeof r == "string")
|
|
541
|
+
return;
|
|
542
|
+
var a;
|
|
543
|
+
if (typeof r == "function")
|
|
544
|
+
a = r.propTypes;
|
|
545
|
+
else if (typeof r == "object" && (r.$$typeof === d || // Note: Memo only checks outer props here.
|
|
546
|
+
// Inner props are checked in the reconciler.
|
|
547
|
+
r.$$typeof === b))
|
|
548
|
+
a = r.propTypes;
|
|
549
|
+
else
|
|
550
|
+
return;
|
|
551
|
+
if (a) {
|
|
552
|
+
var p = B(r);
|
|
553
|
+
ye(a, t.props, "prop", p, t);
|
|
554
|
+
} else if (r.PropTypes !== void 0 && !gt) {
|
|
555
|
+
gt = !0;
|
|
556
|
+
var v = B(r);
|
|
557
|
+
m("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", v || "Unknown");
|
|
558
|
+
}
|
|
559
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && m("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
function Oe(t) {
|
|
563
|
+
{
|
|
564
|
+
for (var r = Object.keys(t.props), a = 0; a < r.length; a++) {
|
|
565
|
+
var p = r[a];
|
|
566
|
+
if (p !== "children" && p !== "key") {
|
|
567
|
+
Y(t), m("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", p), Y(null);
|
|
568
|
+
break;
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
t.ref !== null && (Y(t), m("Invalid attribute `ref` supplied to `React.Fragment`."), Y(null));
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
var Ut = {};
|
|
575
|
+
function Xt(t, r, a, p, v, x) {
|
|
576
|
+
{
|
|
577
|
+
var g = ce(t);
|
|
578
|
+
if (!g) {
|
|
579
|
+
var y = "";
|
|
580
|
+
(t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (y += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
581
|
+
var S = Ce();
|
|
582
|
+
S ? y += S : y += Jt();
|
|
583
|
+
var j;
|
|
584
|
+
t === null ? j = "null" : dt(t) ? j = "array" : t !== void 0 && t.$$typeof === o ? (j = "<" + (B(t.type) || "Unknown") + " />", y = " Did you accidentally export a JSX literal instead of a component?") : j = typeof t, m("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", j, y);
|
|
585
|
+
}
|
|
586
|
+
var E = Re(t, r, a, v, x);
|
|
587
|
+
if (E == null)
|
|
588
|
+
return E;
|
|
589
|
+
if (g) {
|
|
590
|
+
var I = r.children;
|
|
591
|
+
if (I !== void 0)
|
|
592
|
+
if (p)
|
|
593
|
+
if (dt(I)) {
|
|
594
|
+
for (var G = 0; G < I.length; G++)
|
|
595
|
+
Ht(I[G], t);
|
|
596
|
+
Object.freeze && Object.freeze(I);
|
|
597
|
+
} else
|
|
598
|
+
m("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
599
|
+
else
|
|
600
|
+
Ht(I, t);
|
|
601
|
+
}
|
|
602
|
+
if (Q.call(r, "key")) {
|
|
603
|
+
var V = B(t), T = Object.keys(r).filter(function(We) {
|
|
604
|
+
return We !== "key";
|
|
605
|
+
}), vt = T.length > 0 ? "{key: someKey, " + T.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
606
|
+
if (!Ut[V + vt]) {
|
|
607
|
+
var De = T.length > 0 ? "{" + T.join(": ..., ") + ": ...}" : "{}";
|
|
608
|
+
m(`A props object containing a "key" prop is being spread into JSX:
|
|
609
|
+
let props = %s;
|
|
610
|
+
<%s {...props} />
|
|
611
|
+
React keys must be passed directly to JSX without using spread:
|
|
612
|
+
let props = %s;
|
|
613
|
+
<%s key={someKey} {...props} />`, vt, V, De, V), Ut[V + vt] = !0;
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
return t === i ? Oe(E) : Te(E), E;
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
function Pe(t, r, a) {
|
|
620
|
+
return Xt(t, r, a, !0);
|
|
621
|
+
}
|
|
622
|
+
function Ne(t, r, a) {
|
|
623
|
+
return Xt(t, r, a, !1);
|
|
624
|
+
}
|
|
625
|
+
var Ie = Ne, Ae = Pe;
|
|
626
|
+
et.Fragment = i, et.jsx = Ie, et.jsxs = Ae;
|
|
627
|
+
})()), et;
|
|
628
|
+
}
|
|
629
|
+
var Zt;
|
|
630
|
+
function Ve() {
|
|
631
|
+
return Zt || (Zt = 1, process.env.NODE_ENV === "production" ? ct.exports = Me() : ct.exports = ze()), ct.exports;
|
|
632
|
+
}
|
|
633
|
+
var l = Ve(), bt = { exports: {} };
|
|
634
|
+
/*!
|
|
635
|
+
Copyright (c) 2018 Jed Watson.
|
|
636
|
+
Licensed under the MIT License (MIT), see
|
|
637
|
+
http://jedwatson.github.io/classnames
|
|
638
|
+
*/
|
|
639
|
+
var Qt;
|
|
640
|
+
function Je() {
|
|
641
|
+
return Qt || (Qt = 1, (function(e) {
|
|
642
|
+
(function() {
|
|
643
|
+
var o = {}.hasOwnProperty;
|
|
644
|
+
function s() {
|
|
645
|
+
for (var n = "", u = 0; u < arguments.length; u++) {
|
|
646
|
+
var _ = arguments[u];
|
|
647
|
+
_ && (n = c(n, i(_)));
|
|
648
|
+
}
|
|
649
|
+
return n;
|
|
650
|
+
}
|
|
651
|
+
function i(n) {
|
|
652
|
+
if (typeof n == "string" || typeof n == "number")
|
|
653
|
+
return n;
|
|
654
|
+
if (typeof n != "object")
|
|
655
|
+
return "";
|
|
656
|
+
if (Array.isArray(n))
|
|
657
|
+
return s.apply(null, n);
|
|
658
|
+
if (n.toString !== Object.prototype.toString && !n.toString.toString().includes("[native code]"))
|
|
659
|
+
return n.toString();
|
|
660
|
+
var u = "";
|
|
661
|
+
for (var _ in n)
|
|
662
|
+
o.call(n, _) && n[_] && (u = c(u, _));
|
|
663
|
+
return u;
|
|
664
|
+
}
|
|
665
|
+
function c(n, u) {
|
|
666
|
+
return u ? n ? n + " " + u : n + u : n;
|
|
667
|
+
}
|
|
668
|
+
e.exports ? (s.default = s, e.exports = s) : window.classNames = s;
|
|
669
|
+
})();
|
|
670
|
+
})(bt)), bt.exports;
|
|
671
|
+
}
|
|
672
|
+
var Ye = Je();
|
|
673
|
+
const O = /* @__PURE__ */ Le(Ye), Ge = "_typography_11hr8_1", He = "_typography--h1_11hr8_8", Ue = "_typography--h2_11hr8_15", Xe = "_typography--h3_11hr8_22", Ke = "_typography--h4_11hr8_29", qe = "_typography--h5_11hr8_36", Ze = "_typography--h6_11hr8_43", Qe = "_typography--body_11hr8_50", tr = "_typography--caption_11hr8_57", er = "_typography--overline_11hr8_64", rr = "_typography--xs_11hr8_74", nr = "_typography--sm_11hr8_78", ar = "_typography--base_11hr8_82", or = "_typography--lg_11hr8_86", sr = "_typography--xl_11hr8_90", ir = "_typography--2xl_11hr8_94", cr = "_typography--3xl_11hr8_98", lr = "_typography--4xl_11hr8_102", ur = "_typography--color-primary_11hr8_107", pr = "_typography--color-secondary_11hr8_111", _r = "_typography--color-disabled_11hr8_115", lt = {
|
|
674
|
+
typography: Ge,
|
|
675
|
+
"typography--h1": "_typography--h1_11hr8_8",
|
|
676
|
+
typographyH1: He,
|
|
677
|
+
"typography--h2": "_typography--h2_11hr8_15",
|
|
678
|
+
typographyH2: Ue,
|
|
679
|
+
"typography--h3": "_typography--h3_11hr8_22",
|
|
680
|
+
typographyH3: Xe,
|
|
681
|
+
"typography--h4": "_typography--h4_11hr8_29",
|
|
682
|
+
typographyH4: Ke,
|
|
683
|
+
"typography--h5": "_typography--h5_11hr8_36",
|
|
684
|
+
typographyH5: qe,
|
|
685
|
+
"typography--h6": "_typography--h6_11hr8_43",
|
|
686
|
+
typographyH6: Ze,
|
|
687
|
+
"typography--body": "_typography--body_11hr8_50",
|
|
688
|
+
typographyBody: Qe,
|
|
689
|
+
"typography--caption": "_typography--caption_11hr8_57",
|
|
690
|
+
typographyCaption: tr,
|
|
691
|
+
"typography--overline": "_typography--overline_11hr8_64",
|
|
692
|
+
typographyOverline: er,
|
|
693
|
+
"typography--xs": "_typography--xs_11hr8_74",
|
|
694
|
+
typographyXs: rr,
|
|
695
|
+
"typography--sm": "_typography--sm_11hr8_78",
|
|
696
|
+
typographySm: nr,
|
|
697
|
+
"typography--base": "_typography--base_11hr8_82",
|
|
698
|
+
typographyBase: ar,
|
|
699
|
+
"typography--lg": "_typography--lg_11hr8_86",
|
|
700
|
+
typographyLg: or,
|
|
701
|
+
"typography--xl": "_typography--xl_11hr8_90",
|
|
702
|
+
typographyXl: sr,
|
|
703
|
+
"typography--2xl": "_typography--2xl_11hr8_94",
|
|
704
|
+
typography2Xl: ir,
|
|
705
|
+
"typography--3xl": "_typography--3xl_11hr8_98",
|
|
706
|
+
typography3Xl: cr,
|
|
707
|
+
"typography--4xl": "_typography--4xl_11hr8_102",
|
|
708
|
+
typography4Xl: lr,
|
|
709
|
+
"typography--color-primary": "_typography--color-primary_11hr8_107",
|
|
710
|
+
typographyColorPrimary: ur,
|
|
711
|
+
"typography--color-secondary": "_typography--color-secondary_11hr8_111",
|
|
712
|
+
typographyColorSecondary: pr,
|
|
713
|
+
"typography--color-disabled": "_typography--color-disabled_11hr8_115",
|
|
714
|
+
typographyColorDisabled: _r
|
|
715
|
+
}, nt = F(
|
|
716
|
+
({ variant: e = "body", size: o, color: s, as: i, children: c, className: n, ...u }, _) => {
|
|
717
|
+
const h = U.useMemo(() => i || (e.startsWith("h") ? e : e === "body" ? "p" : "span"), [i, e]);
|
|
718
|
+
return /* @__PURE__ */ l.jsx(
|
|
719
|
+
h,
|
|
720
|
+
{
|
|
721
|
+
ref: _,
|
|
722
|
+
className: O(
|
|
723
|
+
lt.typography,
|
|
724
|
+
lt[`typography--${e}`],
|
|
725
|
+
o && lt[`typography--${o}`],
|
|
726
|
+
s && lt[`typography--color-${s}`],
|
|
727
|
+
n
|
|
728
|
+
),
|
|
729
|
+
...u,
|
|
730
|
+
children: c
|
|
731
|
+
}
|
|
732
|
+
);
|
|
733
|
+
}
|
|
734
|
+
);
|
|
735
|
+
nt.displayName = "Typography";
|
|
736
|
+
const fr = "_tag_10ar5_1", dr = "_tag--link_10ar5_13", yr = "_tagContent_10ar5_23", gr = "_tagIcon_10ar5_28", hr = "_tagClose_10ar5_34", vr = "_tag--sm_10ar5_60", br = "_tag--md_10ar5_65", mr = "_tag--lg_10ar5_70", xr = "_tag--primary_10ar5_76", kr = "_tag--secondary_10ar5_81", wr = "_tag--success_10ar5_86", jr = "_tag--warning_10ar5_91", Er = "_tag--error_10ar5_96", Rr = "_tag--neutral_10ar5_101", L = {
|
|
737
|
+
tag: fr,
|
|
738
|
+
"tag--link": "_tag--link_10ar5_13",
|
|
739
|
+
tagLink: dr,
|
|
740
|
+
tagContent: yr,
|
|
741
|
+
tagIcon: gr,
|
|
742
|
+
tagClose: hr,
|
|
743
|
+
"tag--sm": "_tag--sm_10ar5_60",
|
|
744
|
+
tagSm: vr,
|
|
745
|
+
"tag--md": "_tag--md_10ar5_65",
|
|
746
|
+
tagMd: br,
|
|
747
|
+
"tag--lg": "_tag--lg_10ar5_70",
|
|
748
|
+
tagLg: mr,
|
|
749
|
+
"tag--primary": "_tag--primary_10ar5_76",
|
|
750
|
+
tagPrimary: xr,
|
|
751
|
+
"tag--secondary": "_tag--secondary_10ar5_81",
|
|
752
|
+
tagSecondary: kr,
|
|
753
|
+
"tag--success": "_tag--success_10ar5_86",
|
|
754
|
+
tagSuccess: wr,
|
|
755
|
+
"tag--warning": "_tag--warning_10ar5_91",
|
|
756
|
+
tagWarning: jr,
|
|
757
|
+
"tag--error": "_tag--error_10ar5_96",
|
|
758
|
+
tagError: Er,
|
|
759
|
+
"tag--neutral": "_tag--neutral_10ar5_101",
|
|
760
|
+
tagNeutral: Rr
|
|
761
|
+
}, Cr = F(function({ as: o, ...s }, i) {
|
|
762
|
+
return U.createElement(o, { ...s, ref: i });
|
|
763
|
+
}), J = F(
|
|
764
|
+
({
|
|
765
|
+
variant: e = "primary",
|
|
766
|
+
size: o = "md",
|
|
767
|
+
icon: s,
|
|
768
|
+
iconPosition: i = "left",
|
|
769
|
+
closeable: c = !1,
|
|
770
|
+
onClose: n,
|
|
771
|
+
children: u,
|
|
772
|
+
className: _,
|
|
773
|
+
href: d,
|
|
774
|
+
...h
|
|
775
|
+
}, f) => {
|
|
776
|
+
const b = (C) => {
|
|
777
|
+
C.stopPropagation(), n == null || n(C);
|
|
778
|
+
}, k = d ? { ...h, href: d, as: "a" } : { ...h, as: "span" }, w = O(
|
|
779
|
+
L.tag,
|
|
780
|
+
L[`tag--${e}`],
|
|
781
|
+
L[`tag--${o}`],
|
|
782
|
+
d && L["tag--link"],
|
|
783
|
+
_
|
|
784
|
+
);
|
|
785
|
+
return /* @__PURE__ */ l.jsxs(Cr, { ref: f, className: w, ...k, children: [
|
|
786
|
+
s && i === "left" && /* @__PURE__ */ l.jsx("span", { className: L.tagIcon, children: s }),
|
|
787
|
+
/* @__PURE__ */ l.jsx("span", { className: L.tagContent, children: u }),
|
|
788
|
+
s && i === "right" && /* @__PURE__ */ l.jsx("span", { className: L.tagIcon, children: s }),
|
|
789
|
+
c && /* @__PURE__ */ l.jsx(
|
|
790
|
+
"button",
|
|
791
|
+
{
|
|
792
|
+
type: "button",
|
|
793
|
+
className: L.tagClose,
|
|
794
|
+
onClick: b,
|
|
795
|
+
"aria-label": "Close tag",
|
|
796
|
+
children: "×"
|
|
797
|
+
}
|
|
798
|
+
)
|
|
799
|
+
] });
|
|
800
|
+
}
|
|
801
|
+
);
|
|
802
|
+
J.displayName = "Tag";
|
|
803
|
+
const Sr = "_tagGroup_1b8va_1", Tr = {
|
|
804
|
+
tagGroup: Sr
|
|
805
|
+
}, Or = (e) => e.stopPropagation();
|
|
806
|
+
function Pr({ tag: e, baseTagProps: o }) {
|
|
807
|
+
const s = $(
|
|
808
|
+
(c) => {
|
|
809
|
+
var n;
|
|
810
|
+
Or(c), (n = e.onClick) == null || n.call(e, c);
|
|
811
|
+
},
|
|
812
|
+
[e.onClick]
|
|
813
|
+
), i = $(
|
|
814
|
+
(c) => {
|
|
815
|
+
var n;
|
|
816
|
+
(c.key === "Enter" || c.key === " ") && (c.preventDefault(), (n = e.onClick) == null || n.call(e, c));
|
|
817
|
+
},
|
|
818
|
+
[e.onClick]
|
|
819
|
+
);
|
|
820
|
+
return /* @__PURE__ */ l.jsx(
|
|
821
|
+
J,
|
|
822
|
+
{
|
|
823
|
+
...o,
|
|
824
|
+
role: "button",
|
|
825
|
+
tabIndex: 0,
|
|
826
|
+
onClick: s,
|
|
827
|
+
onKeyDown: i,
|
|
828
|
+
style: { cursor: "pointer" },
|
|
829
|
+
children: e.label
|
|
830
|
+
}
|
|
831
|
+
);
|
|
832
|
+
}
|
|
833
|
+
function Nr(e) {
|
|
834
|
+
return typeof e == "object" && e !== null && "label" in e;
|
|
835
|
+
}
|
|
836
|
+
function Ir({ tag: e, baseTagProps: o }) {
|
|
837
|
+
return Nr(e) ? e.href ? /* @__PURE__ */ l.jsx(J, { ...o, href: e.href, children: e.label }) : e.onClick ? /* @__PURE__ */ l.jsx(Pr, { tag: e, baseTagProps: o }) : /* @__PURE__ */ l.jsx(J, { ...o, children: e.label }) : typeof e == "object" && U.isValidElement(e) ? /* @__PURE__ */ l.jsx(l.Fragment, { children: e }) : /* @__PURE__ */ l.jsx(J, { ...o, children: e });
|
|
838
|
+
}
|
|
839
|
+
const Ar = U.forwardRef(
|
|
840
|
+
({
|
|
841
|
+
tags: e,
|
|
842
|
+
maxVisible: o = 5,
|
|
843
|
+
overflowTagProps: s,
|
|
844
|
+
collapseTagProps: i,
|
|
845
|
+
collapseText: c = "Свернуть",
|
|
846
|
+
size: n,
|
|
847
|
+
variant: u,
|
|
848
|
+
className: _,
|
|
849
|
+
...d
|
|
850
|
+
}, h) => {
|
|
851
|
+
const [f, b] = ut(!1), { visibleTags: k, hiddenCount: w } = H(() => e.length <= o || f ? {
|
|
852
|
+
visibleTags: e,
|
|
853
|
+
hiddenCount: 0
|
|
854
|
+
} : {
|
|
855
|
+
visibleTags: e.slice(0, o),
|
|
856
|
+
hiddenCount: e.length - o
|
|
857
|
+
}, [e, o, f]), C = $(() => b(!0), []), N = $(() => b(!1), []), M = $(
|
|
858
|
+
(P) => {
|
|
859
|
+
(P.key === "Enter" || P.key === " ") && (P.preventDefault(), C());
|
|
860
|
+
},
|
|
861
|
+
[C]
|
|
862
|
+
), R = $(
|
|
863
|
+
(P) => {
|
|
864
|
+
(P.key === "Enter" || P.key === " ") && (P.preventDefault(), N());
|
|
865
|
+
},
|
|
866
|
+
[N]
|
|
867
|
+
), m = H(
|
|
868
|
+
() => ({
|
|
869
|
+
...n && { size: n },
|
|
870
|
+
...u && { variant: u }
|
|
871
|
+
}),
|
|
872
|
+
[n, u]
|
|
873
|
+
);
|
|
874
|
+
return /* @__PURE__ */ l.jsxs("div", { ref: h, className: O(Tr.tagGroup, _), ...d, children: [
|
|
875
|
+
k.map((P, X) => /* @__PURE__ */ l.jsx(Ir, { tag: P, baseTagProps: m }, X)),
|
|
876
|
+
!f && w > 0 && /* @__PURE__ */ l.jsxs(
|
|
877
|
+
J,
|
|
878
|
+
{
|
|
879
|
+
...m,
|
|
880
|
+
...s,
|
|
881
|
+
onClick: C,
|
|
882
|
+
onKeyDown: M,
|
|
883
|
+
role: "button",
|
|
884
|
+
tabIndex: 0,
|
|
885
|
+
"aria-label": `Показать еще ${w} тегов`,
|
|
886
|
+
style: { cursor: "pointer", ...s == null ? void 0 : s.style },
|
|
887
|
+
children: [
|
|
888
|
+
"+",
|
|
889
|
+
w
|
|
890
|
+
]
|
|
891
|
+
}
|
|
892
|
+
),
|
|
893
|
+
f && /* @__PURE__ */ l.jsx(
|
|
894
|
+
J,
|
|
895
|
+
{
|
|
896
|
+
...m,
|
|
897
|
+
...i,
|
|
898
|
+
onClick: N,
|
|
899
|
+
onKeyDown: R,
|
|
900
|
+
role: "button",
|
|
901
|
+
tabIndex: 0,
|
|
902
|
+
"aria-label": c,
|
|
903
|
+
style: { cursor: "pointer", ...i == null ? void 0 : i.style },
|
|
904
|
+
children: c
|
|
905
|
+
}
|
|
906
|
+
)
|
|
907
|
+
] });
|
|
908
|
+
}
|
|
909
|
+
);
|
|
910
|
+
Ar.displayName = "TagGroup";
|
|
911
|
+
const Dr = "_button_t5esz_1", Wr = "_buttonContent_t5esz_32", $r = "_buttonIcon_t5esz_37", Fr = "_buttonSpinner_t5esz_43", Br = "_spin_t5esz_1", Lr = "_button--sm_t5esz_60", Mr = "_button--md_t5esz_66", zr = "_button--lg_t5esz_72", Vr = "_button--fullWidth_t5esz_78", Jr = "_button--primary_t5esz_83", Yr = "_button--secondary_t5esz_106", Gr = "_button--outline_t5esz_129", Hr = "_button--ghost_t5esz_152", Ur = "_button--loading_t5esz_181", D = {
|
|
912
|
+
button: Dr,
|
|
913
|
+
buttonContent: Wr,
|
|
914
|
+
buttonIcon: $r,
|
|
915
|
+
buttonSpinner: Fr,
|
|
916
|
+
spin: Br,
|
|
917
|
+
"button--sm": "_button--sm_t5esz_60",
|
|
918
|
+
buttonSm: Lr,
|
|
919
|
+
"button--md": "_button--md_t5esz_66",
|
|
920
|
+
buttonMd: Mr,
|
|
921
|
+
"button--lg": "_button--lg_t5esz_72",
|
|
922
|
+
buttonLg: zr,
|
|
923
|
+
"button--fullWidth": "_button--fullWidth_t5esz_78",
|
|
924
|
+
buttonFullWidth: Vr,
|
|
925
|
+
"button--primary": "_button--primary_t5esz_83",
|
|
926
|
+
buttonPrimary: Jr,
|
|
927
|
+
"button--secondary": "_button--secondary_t5esz_106",
|
|
928
|
+
buttonSecondary: Yr,
|
|
929
|
+
"button--outline": "_button--outline_t5esz_129",
|
|
930
|
+
buttonOutline: Gr,
|
|
931
|
+
"button--ghost": "_button--ghost_t5esz_152",
|
|
932
|
+
buttonGhost: Hr,
|
|
933
|
+
"button--loading": "_button--loading_t5esz_181",
|
|
934
|
+
buttonLoading: Ur
|
|
935
|
+
}, Xr = F(
|
|
936
|
+
({
|
|
937
|
+
variant: e = "primary",
|
|
938
|
+
size: o = "md",
|
|
939
|
+
startIcon: s,
|
|
940
|
+
endIcon: i,
|
|
941
|
+
fullWidth: c = !1,
|
|
942
|
+
loading: n = !1,
|
|
943
|
+
disabled: u,
|
|
944
|
+
children: _,
|
|
945
|
+
className: d,
|
|
946
|
+
...h
|
|
947
|
+
}, f) => {
|
|
948
|
+
const b = u || n;
|
|
949
|
+
return /* @__PURE__ */ l.jsxs(
|
|
950
|
+
"button",
|
|
951
|
+
{
|
|
952
|
+
ref: f,
|
|
953
|
+
type: "button",
|
|
954
|
+
className: O(
|
|
955
|
+
D.button,
|
|
956
|
+
D[`button--${e}`],
|
|
957
|
+
D[`button--${o}`],
|
|
958
|
+
c && D["button--fullWidth"],
|
|
959
|
+
n && D["button--loading"],
|
|
960
|
+
d
|
|
961
|
+
),
|
|
962
|
+
disabled: b,
|
|
963
|
+
"aria-busy": n,
|
|
964
|
+
"aria-disabled": b,
|
|
965
|
+
...h,
|
|
966
|
+
children: [
|
|
967
|
+
n && /* @__PURE__ */ l.jsx("span", { className: D.buttonSpinner, "aria-hidden": "true" }),
|
|
968
|
+
s && !n && /* @__PURE__ */ l.jsx("span", { className: D.buttonIcon, children: s }),
|
|
969
|
+
/* @__PURE__ */ l.jsx("span", { className: D.buttonContent, children: _ }),
|
|
970
|
+
i && !n && /* @__PURE__ */ l.jsx("span", { className: D.buttonIcon, children: i })
|
|
971
|
+
]
|
|
972
|
+
}
|
|
973
|
+
);
|
|
974
|
+
}
|
|
975
|
+
);
|
|
976
|
+
Xr.displayName = "Button";
|
|
977
|
+
const Kr = "_icon_1se7w_1", mt = {
|
|
978
|
+
icon: Kr,
|
|
979
|
+
"icon--custom": "_icon--custom_1se7w_9"
|
|
980
|
+
}, ee = F(
|
|
981
|
+
({
|
|
982
|
+
color: e = "currentColor",
|
|
983
|
+
children: o,
|
|
984
|
+
svg: s,
|
|
985
|
+
name: i,
|
|
986
|
+
decorative: c = !1,
|
|
987
|
+
className: n,
|
|
988
|
+
viewBox: u = "0 0 24 24",
|
|
989
|
+
fill: _ = "none",
|
|
990
|
+
xmlns: d = "http://www.w3.org/2000/svg",
|
|
991
|
+
...h
|
|
992
|
+
}, f) => {
|
|
993
|
+
if (s) {
|
|
994
|
+
const b = s.replace(/<svg[^>]*>/, "").replace(/<\/svg>/, "");
|
|
995
|
+
return /* @__PURE__ */ l.jsx(
|
|
996
|
+
"svg",
|
|
997
|
+
{
|
|
998
|
+
ref: f,
|
|
999
|
+
className: O(mt.icon, mt["icon--custom"], n),
|
|
1000
|
+
viewBox: u,
|
|
1001
|
+
xmlns: d,
|
|
1002
|
+
"aria-hidden": c,
|
|
1003
|
+
"aria-label": !c && i ? i : void 0,
|
|
1004
|
+
role: c ? void 0 : "img",
|
|
1005
|
+
dangerouslySetInnerHTML: { __html: b },
|
|
1006
|
+
...h
|
|
1007
|
+
}
|
|
1008
|
+
);
|
|
1009
|
+
}
|
|
1010
|
+
return /* @__PURE__ */ l.jsx(
|
|
1011
|
+
"svg",
|
|
1012
|
+
{
|
|
1013
|
+
ref: f,
|
|
1014
|
+
className: O(mt.icon, n),
|
|
1015
|
+
viewBox: u,
|
|
1016
|
+
fill: _,
|
|
1017
|
+
xmlns: d,
|
|
1018
|
+
color: e,
|
|
1019
|
+
"aria-hidden": c,
|
|
1020
|
+
"aria-label": !c && i ? i : void 0,
|
|
1021
|
+
role: c ? void 0 : "img",
|
|
1022
|
+
...h,
|
|
1023
|
+
children: o
|
|
1024
|
+
}
|
|
1025
|
+
);
|
|
1026
|
+
}
|
|
1027
|
+
);
|
|
1028
|
+
ee.displayName = "Icon";
|
|
1029
|
+
const qr = "_labelMenuItem_fjxw4_1", Zr = "_icon_fjxw4_32", Qr = "_label_fjxw4_1", xt = {
|
|
1030
|
+
labelMenuItem: qr,
|
|
1031
|
+
icon: Zr,
|
|
1032
|
+
label: Qr
|
|
1033
|
+
}, tn = ({
|
|
1034
|
+
label: e,
|
|
1035
|
+
icon: o,
|
|
1036
|
+
onClick: s,
|
|
1037
|
+
disabled: i = !1,
|
|
1038
|
+
className: c,
|
|
1039
|
+
iconSize: n = "50px"
|
|
1040
|
+
}) => /* @__PURE__ */ l.jsxs(
|
|
1041
|
+
"button",
|
|
1042
|
+
{
|
|
1043
|
+
className: O(xt.labelMenuItem, c),
|
|
1044
|
+
onClick: s,
|
|
1045
|
+
disabled: i,
|
|
1046
|
+
children: [
|
|
1047
|
+
/* @__PURE__ */ l.jsx("div", { className: xt.icon, children: /* @__PURE__ */ l.jsx(o, { decorative: !0, width: n, height: n }) }),
|
|
1048
|
+
/* @__PURE__ */ l.jsx(
|
|
1049
|
+
nt,
|
|
1050
|
+
{
|
|
1051
|
+
as: "span",
|
|
1052
|
+
variant: "body",
|
|
1053
|
+
color: "secondary",
|
|
1054
|
+
className: xt.label,
|
|
1055
|
+
children: e
|
|
1056
|
+
}
|
|
1057
|
+
)
|
|
1058
|
+
]
|
|
1059
|
+
}
|
|
1060
|
+
);
|
|
1061
|
+
tn.displayName = "LabelMenuItem";
|
|
1062
|
+
const en = "_heartIconOutline_137aq_1", rn = {
|
|
1063
|
+
heartIconOutline: en
|
|
1064
|
+
}, nn = ({ filled: e = !1, className: o, ...s }) => /* @__PURE__ */ l.jsx(
|
|
1065
|
+
ee,
|
|
1066
|
+
{
|
|
1067
|
+
viewBox: "0 0 24 24",
|
|
1068
|
+
fill: e ? "currentColor" : "none",
|
|
1069
|
+
stroke: "currentColor",
|
|
1070
|
+
strokeWidth: 2,
|
|
1071
|
+
strokeLinecap: "round",
|
|
1072
|
+
strokeLinejoin: "round",
|
|
1073
|
+
className: O(!e && rn.heartIconOutline, o),
|
|
1074
|
+
...s,
|
|
1075
|
+
children: /* @__PURE__ */ l.jsx("path", { d: "M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z" })
|
|
1076
|
+
}
|
|
1077
|
+
), an = "_likeButton_1nv5d_1", on = "_heartWrap_1nv5d_49", sn = "_heart_1nv5d_49", cn = "_countWrap_1nv5d_112", ln = "_count_1nv5d_112", W = {
|
|
1078
|
+
likeButton: an,
|
|
1079
|
+
"likeButton--disabled": "_likeButton--disabled_1nv5d_19",
|
|
1080
|
+
"likeButton--liked": "_likeButton--liked_1nv5d_25",
|
|
1081
|
+
"likeButton--pop": "_likeButton--pop_1nv5d_49",
|
|
1082
|
+
heartWrap: on,
|
|
1083
|
+
heart: sn,
|
|
1084
|
+
countWrap: cn,
|
|
1085
|
+
"countWrap--bump": "_countWrap--bump_1nv5d_119",
|
|
1086
|
+
count: ln
|
|
1087
|
+
}, un = F(
|
|
1088
|
+
({
|
|
1089
|
+
liked: e,
|
|
1090
|
+
defaultLiked: o = !1,
|
|
1091
|
+
count: s,
|
|
1092
|
+
onLike: i,
|
|
1093
|
+
onClick: c,
|
|
1094
|
+
className: n,
|
|
1095
|
+
testId: u,
|
|
1096
|
+
disabled: _,
|
|
1097
|
+
...d
|
|
1098
|
+
}, h) => {
|
|
1099
|
+
const f = e !== void 0, [b, k] = ut(o), [w, C] = ut(!1), [N, M] = ut(!1), R = f ? e : b, m = $(
|
|
1100
|
+
(K) => {
|
|
1101
|
+
if (_) return;
|
|
1102
|
+
const q = !R;
|
|
1103
|
+
f || k(q), i == null || i(q), c == null || c(K), q && (C(!0), s !== void 0 && M(!0));
|
|
1104
|
+
},
|
|
1105
|
+
[_, R, f, i, c, s]
|
|
1106
|
+
), P = $(() => {
|
|
1107
|
+
C(!1);
|
|
1108
|
+
}, []), X = $((K) => {
|
|
1109
|
+
K.stopPropagation(), M(!1);
|
|
1110
|
+
}, []);
|
|
1111
|
+
return /* @__PURE__ */ l.jsxs(
|
|
1112
|
+
"button",
|
|
1113
|
+
{
|
|
1114
|
+
ref: h,
|
|
1115
|
+
type: "button",
|
|
1116
|
+
className: O(
|
|
1117
|
+
W.likeButton,
|
|
1118
|
+
R && W["likeButton--liked"],
|
|
1119
|
+
w && W["likeButton--pop"],
|
|
1120
|
+
_ && W["likeButton--disabled"],
|
|
1121
|
+
n
|
|
1122
|
+
),
|
|
1123
|
+
"aria-pressed": R,
|
|
1124
|
+
"aria-label": R ? "Убрать лайк" : "Поставить лайк",
|
|
1125
|
+
disabled: _,
|
|
1126
|
+
"data-testid": u,
|
|
1127
|
+
onClick: m,
|
|
1128
|
+
onAnimationEnd: P,
|
|
1129
|
+
...d,
|
|
1130
|
+
children: [
|
|
1131
|
+
/* @__PURE__ */ l.jsx("span", { className: W.heartWrap, children: /* @__PURE__ */ l.jsx(nn, { filled: R, className: W.heart, decorative: !0 }) }),
|
|
1132
|
+
s !== void 0 && /* @__PURE__ */ l.jsx(
|
|
1133
|
+
"span",
|
|
1134
|
+
{
|
|
1135
|
+
className: O(W.countWrap, N && W["countWrap--bump"]),
|
|
1136
|
+
onAnimationEnd: X,
|
|
1137
|
+
children: /* @__PURE__ */ l.jsx(nt, { variant: "caption", className: W.count, as: "span", children: s })
|
|
1138
|
+
}
|
|
1139
|
+
)
|
|
1140
|
+
]
|
|
1141
|
+
}
|
|
1142
|
+
);
|
|
1143
|
+
}
|
|
1144
|
+
);
|
|
1145
|
+
un.displayName = "LikeButton";
|
|
1146
|
+
function re(e, o) {
|
|
1147
|
+
if (o == null)
|
|
1148
|
+
return e;
|
|
1149
|
+
if (typeof o != "object" || Array.isArray(o) || typeof e != "object" || Array.isArray(e))
|
|
1150
|
+
return o;
|
|
1151
|
+
const s = { ...e };
|
|
1152
|
+
return Object.keys(o).forEach((i) => {
|
|
1153
|
+
const c = o[i], n = e[i];
|
|
1154
|
+
c != null && typeof c == "object" && !Array.isArray(c) && typeof n == "object" && !Array.isArray(n) && n !== null ? s[i] = re(n, c) : s[i] = c;
|
|
1155
|
+
}), s;
|
|
1156
|
+
}
|
|
1157
|
+
function pn(e, o) {
|
|
1158
|
+
return re(e, o);
|
|
1159
|
+
}
|
|
1160
|
+
function ne(e) {
|
|
1161
|
+
if (e !== void 0)
|
|
1162
|
+
return typeof e == "number" ? `${e * 4}px` : e;
|
|
1163
|
+
}
|
|
1164
|
+
const _n = "_stack_45gcn_1", fn = "_stack--direction-row_45gcn_6", dn = "_stack--direction-column_45gcn_10", yn = "_stack--direction-row-reverse_45gcn_14", gn = "_stack--direction-column-reverse_45gcn_18", hn = "_stack--align-start_45gcn_23", vn = "_stack--align-end_45gcn_27", bn = "_stack--align-center_45gcn_31", mn = "_stack--align-stretch_45gcn_35", xn = "_stack--align-baseline_45gcn_39", kn = "_stack--justify-start_45gcn_44", wn = "_stack--justify-end_45gcn_48", jn = "_stack--justify-center_45gcn_52", En = "_stack--justify-between_45gcn_56", Rn = "_stack--justify-around_45gcn_60", Cn = "_stack--justify-evenly_45gcn_64", Sn = "_stack--wrap-nowrap_45gcn_69", Tn = "_stack--wrap-wrap_45gcn_73", On = "_stack--wrap-wrap-reverse_45gcn_77", rt = {
|
|
1165
|
+
stack: _n,
|
|
1166
|
+
"stack--direction-row": "_stack--direction-row_45gcn_6",
|
|
1167
|
+
stackDirectionRow: fn,
|
|
1168
|
+
"stack--direction-column": "_stack--direction-column_45gcn_10",
|
|
1169
|
+
stackDirectionColumn: dn,
|
|
1170
|
+
"stack--direction-row-reverse": "_stack--direction-row-reverse_45gcn_14",
|
|
1171
|
+
stackDirectionRowReverse: yn,
|
|
1172
|
+
"stack--direction-column-reverse": "_stack--direction-column-reverse_45gcn_18",
|
|
1173
|
+
stackDirectionColumnReverse: gn,
|
|
1174
|
+
"stack--align-start": "_stack--align-start_45gcn_23",
|
|
1175
|
+
stackAlignStart: hn,
|
|
1176
|
+
"stack--align-end": "_stack--align-end_45gcn_27",
|
|
1177
|
+
stackAlignEnd: vn,
|
|
1178
|
+
"stack--align-center": "_stack--align-center_45gcn_31",
|
|
1179
|
+
stackAlignCenter: bn,
|
|
1180
|
+
"stack--align-stretch": "_stack--align-stretch_45gcn_35",
|
|
1181
|
+
stackAlignStretch: mn,
|
|
1182
|
+
"stack--align-baseline": "_stack--align-baseline_45gcn_39",
|
|
1183
|
+
stackAlignBaseline: xn,
|
|
1184
|
+
"stack--justify-start": "_stack--justify-start_45gcn_44",
|
|
1185
|
+
stackJustifyStart: kn,
|
|
1186
|
+
"stack--justify-end": "_stack--justify-end_45gcn_48",
|
|
1187
|
+
stackJustifyEnd: wn,
|
|
1188
|
+
"stack--justify-center": "_stack--justify-center_45gcn_52",
|
|
1189
|
+
stackJustifyCenter: jn,
|
|
1190
|
+
"stack--justify-between": "_stack--justify-between_45gcn_56",
|
|
1191
|
+
stackJustifyBetween: En,
|
|
1192
|
+
"stack--justify-around": "_stack--justify-around_45gcn_60",
|
|
1193
|
+
stackJustifyAround: Rn,
|
|
1194
|
+
"stack--justify-evenly": "_stack--justify-evenly_45gcn_64",
|
|
1195
|
+
stackJustifyEvenly: Cn,
|
|
1196
|
+
"stack--wrap-nowrap": "_stack--wrap-nowrap_45gcn_69",
|
|
1197
|
+
stackWrapNowrap: Sn,
|
|
1198
|
+
"stack--wrap-wrap": "_stack--wrap-wrap_45gcn_73",
|
|
1199
|
+
stackWrapWrap: Tn,
|
|
1200
|
+
"stack--wrap-wrap-reverse": "_stack--wrap-wrap-reverse_45gcn_77",
|
|
1201
|
+
stackWrapWrapReverse: On
|
|
1202
|
+
}, Pn = F(
|
|
1203
|
+
({
|
|
1204
|
+
direction: e = "row",
|
|
1205
|
+
align: o = "stretch",
|
|
1206
|
+
justify: s = "start",
|
|
1207
|
+
wrap: i = "nowrap",
|
|
1208
|
+
gap: c = 0,
|
|
1209
|
+
as: n = "div",
|
|
1210
|
+
children: u,
|
|
1211
|
+
className: _,
|
|
1212
|
+
testId: d,
|
|
1213
|
+
...h
|
|
1214
|
+
}, f) => {
|
|
1215
|
+
const b = ne(c);
|
|
1216
|
+
return /* @__PURE__ */ l.jsx(
|
|
1217
|
+
n,
|
|
1218
|
+
{
|
|
1219
|
+
ref: f,
|
|
1220
|
+
className: O(
|
|
1221
|
+
rt.stack,
|
|
1222
|
+
rt[`stack--direction-${e}`],
|
|
1223
|
+
rt[`stack--align-${o}`],
|
|
1224
|
+
rt[`stack--justify-${s}`],
|
|
1225
|
+
rt[`stack--wrap-${i}`],
|
|
1226
|
+
_
|
|
1227
|
+
),
|
|
1228
|
+
style: { gap: b, ...h.style },
|
|
1229
|
+
...d && { "data-testid": d },
|
|
1230
|
+
...h,
|
|
1231
|
+
children: u
|
|
1232
|
+
}
|
|
1233
|
+
);
|
|
1234
|
+
}
|
|
1235
|
+
);
|
|
1236
|
+
Pn.displayName = "Stack";
|
|
1237
|
+
const Nn = "_grid_16nbv_1", In = {
|
|
1238
|
+
grid: Nn
|
|
1239
|
+
}, An = F(
|
|
1240
|
+
({
|
|
1241
|
+
columns: e = 12,
|
|
1242
|
+
gap: o = 4,
|
|
1243
|
+
minColumnWidth: s,
|
|
1244
|
+
as: i = "div",
|
|
1245
|
+
children: c,
|
|
1246
|
+
className: n,
|
|
1247
|
+
testId: u,
|
|
1248
|
+
..._
|
|
1249
|
+
}, d) => {
|
|
1250
|
+
const h = ne(o), b = (() => {
|
|
1251
|
+
const k = {
|
|
1252
|
+
gap: h
|
|
1253
|
+
};
|
|
1254
|
+
if (s)
|
|
1255
|
+
return k.gridTemplateColumns = `repeat(auto-fit, minmax(${s}, 1fr))`, k;
|
|
1256
|
+
if (typeof e == "number")
|
|
1257
|
+
return k.gridTemplateColumns = `repeat(${e}, 1fr)`, k;
|
|
1258
|
+
if (typeof e == "object") {
|
|
1259
|
+
const w = {};
|
|
1260
|
+
e.xs !== void 0 && (w["--grid-cols-xs"] = String(e.xs)), e.sm !== void 0 && (w["--grid-cols-sm"] = String(e.sm)), e.md !== void 0 && (w["--grid-cols-md"] = String(e.md)), e.lg !== void 0 && (w["--grid-cols-lg"] = String(e.lg)), e.xl !== void 0 && (w["--grid-cols-xl"] = String(e.xl)), e["2xl"] !== void 0 && (w["--grid-cols-2xl"] = String(e["2xl"]));
|
|
1261
|
+
const C = e.xs || e.sm || e.md || e.lg || e.xl || e["2xl"] || 1;
|
|
1262
|
+
return k.gridTemplateColumns = `repeat(${C}, 1fr)`, { ...k, ...w };
|
|
1263
|
+
}
|
|
1264
|
+
return k;
|
|
1265
|
+
})();
|
|
1266
|
+
return /* @__PURE__ */ l.jsx(
|
|
1267
|
+
i,
|
|
1268
|
+
{
|
|
1269
|
+
ref: d,
|
|
1270
|
+
className: O(In.grid, n),
|
|
1271
|
+
style: {
|
|
1272
|
+
...b,
|
|
1273
|
+
..._.style
|
|
1274
|
+
},
|
|
1275
|
+
...u && { "data-testid": u },
|
|
1276
|
+
..._,
|
|
1277
|
+
children: c
|
|
1278
|
+
}
|
|
1279
|
+
);
|
|
1280
|
+
}
|
|
1281
|
+
);
|
|
1282
|
+
An.displayName = "Grid";
|
|
1283
|
+
const Dn = "_content_8ltuo_1", Wn = "_content--tile_8ltuo_8", $n = "_previewWrap_8ltuo_8", Fn = "_body_8ltuo_14", Bn = "_content--row_8ltuo_22", Ln = "_tagsSlotTile_8ltuo_48", Mn = "_tagsSlotRow_8ltuo_60", zn = "_previewImage_8ltuo_68", Vn = "_previewPlaceholder_8ltuo_76", Jn = "_title_8ltuo_90", Yn = "_date_8ltuo_101", A = {
|
|
1284
|
+
content: Dn,
|
|
1285
|
+
"content--tile": "_content--tile_8ltuo_8",
|
|
1286
|
+
contentTile: Wn,
|
|
1287
|
+
previewWrap: $n,
|
|
1288
|
+
body: Fn,
|
|
1289
|
+
"content--row": "_content--row_8ltuo_22",
|
|
1290
|
+
contentRow: Bn,
|
|
1291
|
+
tagsSlotTile: Ln,
|
|
1292
|
+
tagsSlotRow: Mn,
|
|
1293
|
+
previewImage: zn,
|
|
1294
|
+
previewPlaceholder: Vn,
|
|
1295
|
+
title: Jn,
|
|
1296
|
+
date: Yn
|
|
1297
|
+
};
|
|
1298
|
+
function wt({
|
|
1299
|
+
title: e,
|
|
1300
|
+
imageUrl: o,
|
|
1301
|
+
imageAlt: s,
|
|
1302
|
+
formattedDate: i,
|
|
1303
|
+
view: c,
|
|
1304
|
+
tags: n
|
|
1305
|
+
}) {
|
|
1306
|
+
return /* @__PURE__ */ l.jsxs("div", { className: O(A.content, A[`content--${c}`]), children: [
|
|
1307
|
+
/* @__PURE__ */ l.jsxs("div", { className: A.previewWrap, children: [
|
|
1308
|
+
n && c === "tile" && /* @__PURE__ */ l.jsx("div", { className: A.tagsSlotTile, onClick: (u) => u.stopPropagation(), children: n }),
|
|
1309
|
+
o ? /* @__PURE__ */ l.jsx(
|
|
1310
|
+
"img",
|
|
1311
|
+
{
|
|
1312
|
+
src: o,
|
|
1313
|
+
alt: s || e,
|
|
1314
|
+
className: A.previewImage,
|
|
1315
|
+
decoding: "async",
|
|
1316
|
+
loading: "lazy"
|
|
1317
|
+
}
|
|
1318
|
+
) : /* @__PURE__ */ l.jsx("div", { className: A.previewPlaceholder, "aria-hidden": "true" })
|
|
1319
|
+
] }),
|
|
1320
|
+
/* @__PURE__ */ l.jsxs("div", { className: A.body, children: [
|
|
1321
|
+
n && c === "row" && /* @__PURE__ */ l.jsx("div", { className: A.tagsSlotRow, onClick: (u) => u.stopPropagation(), children: n }),
|
|
1322
|
+
/* @__PURE__ */ l.jsx(nt, { variant: "h5", as: "h2", className: A.title, title: e, children: e }),
|
|
1323
|
+
/* @__PURE__ */ l.jsx(nt, { variant: "caption", className: A.date, children: i })
|
|
1324
|
+
] })
|
|
1325
|
+
] });
|
|
1326
|
+
}
|
|
1327
|
+
wt.displayName = "ArticlePreviewContent";
|
|
1328
|
+
const Gn = "_root_19jmt_1", Hn = "_root--interactive_19jmt_17", Un = "_root--tile_19jmt_33", Xn = "_root--row_19jmt_37", kt = {
|
|
1329
|
+
root: Gn,
|
|
1330
|
+
"root--interactive": "_root--interactive_19jmt_17",
|
|
1331
|
+
rootInteractive: Hn,
|
|
1332
|
+
"root--tile": "_root--tile_19jmt_33",
|
|
1333
|
+
rootTile: Un,
|
|
1334
|
+
"root--row": "_root--row_19jmt_37",
|
|
1335
|
+
rootRow: Xn
|
|
1336
|
+
};
|
|
1337
|
+
function Kn(e) {
|
|
1338
|
+
return (typeof e == "string" ? new Date(e) : e).toLocaleDateString("ru-RU", {
|
|
1339
|
+
day: "numeric",
|
|
1340
|
+
month: "long",
|
|
1341
|
+
year: "numeric"
|
|
1342
|
+
});
|
|
1343
|
+
}
|
|
1344
|
+
const qn = F(
|
|
1345
|
+
({
|
|
1346
|
+
title: e,
|
|
1347
|
+
publishedAt: o,
|
|
1348
|
+
imageUrl: s,
|
|
1349
|
+
view: i = "tile",
|
|
1350
|
+
imageAlt: c = "",
|
|
1351
|
+
href: n,
|
|
1352
|
+
tags: u,
|
|
1353
|
+
className: _,
|
|
1354
|
+
testId: d,
|
|
1355
|
+
onClick: h,
|
|
1356
|
+
onKeyDown: f,
|
|
1357
|
+
...b
|
|
1358
|
+
}, k) => {
|
|
1359
|
+
const w = H(() => Kn(o), [o]), C = (m) => {
|
|
1360
|
+
!n && h && (m.key === "Enter" || m.key === " ") && (m.preventDefault(), h(m)), f == null || f(m);
|
|
1361
|
+
}, N = !!(n || h), R = {
|
|
1362
|
+
className: O(
|
|
1363
|
+
kt.root,
|
|
1364
|
+
kt[`root--${i}`],
|
|
1365
|
+
N && kt["root--interactive"],
|
|
1366
|
+
_
|
|
1367
|
+
),
|
|
1368
|
+
onClick: h,
|
|
1369
|
+
onKeyDown: N ? C : f,
|
|
1370
|
+
"data-testid": d,
|
|
1371
|
+
...b
|
|
1372
|
+
};
|
|
1373
|
+
return n ? /* @__PURE__ */ l.jsx("a", { ref: k, href: n, ...R, children: /* @__PURE__ */ l.jsx(
|
|
1374
|
+
wt,
|
|
1375
|
+
{
|
|
1376
|
+
title: e,
|
|
1377
|
+
imageUrl: s,
|
|
1378
|
+
imageAlt: c,
|
|
1379
|
+
formattedDate: w,
|
|
1380
|
+
view: i,
|
|
1381
|
+
tags: u
|
|
1382
|
+
}
|
|
1383
|
+
) }) : /* @__PURE__ */ l.jsx(
|
|
1384
|
+
"div",
|
|
1385
|
+
{
|
|
1386
|
+
ref: k,
|
|
1387
|
+
role: N ? "button" : void 0,
|
|
1388
|
+
tabIndex: N ? 0 : void 0,
|
|
1389
|
+
...R,
|
|
1390
|
+
children: /* @__PURE__ */ l.jsx(
|
|
1391
|
+
wt,
|
|
1392
|
+
{
|
|
1393
|
+
title: e,
|
|
1394
|
+
imageUrl: s,
|
|
1395
|
+
imageAlt: c,
|
|
1396
|
+
formattedDate: w,
|
|
1397
|
+
view: i,
|
|
1398
|
+
tags: u
|
|
1399
|
+
}
|
|
1400
|
+
)
|
|
1401
|
+
}
|
|
1402
|
+
);
|
|
1403
|
+
}
|
|
1404
|
+
);
|
|
1405
|
+
qn.displayName = "ArticlePreview";
|
|
1406
|
+
const ae = {
|
|
1407
|
+
spacing: {
|
|
1408
|
+
unit: 4
|
|
1409
|
+
},
|
|
1410
|
+
typography: {
|
|
1411
|
+
fontFamily: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',
|
|
1412
|
+
fontSize: {
|
|
1413
|
+
xs: "0.75rem",
|
|
1414
|
+
sm: "0.875rem",
|
|
1415
|
+
base: "1rem",
|
|
1416
|
+
lg: "1.125rem",
|
|
1417
|
+
xl: "1.25rem",
|
|
1418
|
+
"2xl": "1.5rem",
|
|
1419
|
+
"3xl": "1.875rem",
|
|
1420
|
+
"4xl": "2.25rem"
|
|
1421
|
+
},
|
|
1422
|
+
fontWeight: {
|
|
1423
|
+
normal: 400,
|
|
1424
|
+
medium: 500,
|
|
1425
|
+
semibold: 600,
|
|
1426
|
+
bold: 700
|
|
1427
|
+
},
|
|
1428
|
+
lineHeight: {
|
|
1429
|
+
tight: 1.25,
|
|
1430
|
+
normal: 1.5,
|
|
1431
|
+
relaxed: 1.75
|
|
1432
|
+
}
|
|
1433
|
+
},
|
|
1434
|
+
shadows: {
|
|
1435
|
+
sm: "0 1px 2px 0 rgba(0, 0, 0, 0.05)",
|
|
1436
|
+
base: "0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",
|
|
1437
|
+
md: "0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",
|
|
1438
|
+
lg: "0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",
|
|
1439
|
+
xl: "0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)",
|
|
1440
|
+
"2xl": "0 25px 50px -12px rgba(0, 0, 0, 0.25)",
|
|
1441
|
+
none: "none"
|
|
1442
|
+
},
|
|
1443
|
+
border: {
|
|
1444
|
+
base: "2px"
|
|
1445
|
+
},
|
|
1446
|
+
borderRadius: {
|
|
1447
|
+
none: "0",
|
|
1448
|
+
round: "50%",
|
|
1449
|
+
sm: "0.125rem",
|
|
1450
|
+
base: "0.25rem",
|
|
1451
|
+
md: "0.375rem",
|
|
1452
|
+
lg: "0.5rem",
|
|
1453
|
+
xl: "0.75rem",
|
|
1454
|
+
"2xl": "1rem",
|
|
1455
|
+
full: "9999px"
|
|
1456
|
+
},
|
|
1457
|
+
transitions: {
|
|
1458
|
+
duration: {
|
|
1459
|
+
fast: "150ms",
|
|
1460
|
+
base: "200ms",
|
|
1461
|
+
slow: "300ms"
|
|
1462
|
+
},
|
|
1463
|
+
easing: {
|
|
1464
|
+
easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
1465
|
+
easeIn: "cubic-bezier(0.4, 0, 1, 1)",
|
|
1466
|
+
easeOut: "cubic-bezier(0, 0, 0.2, 1)"
|
|
1467
|
+
}
|
|
1468
|
+
},
|
|
1469
|
+
zIndex: {
|
|
1470
|
+
dropdown: 1e3,
|
|
1471
|
+
sticky: 1020,
|
|
1472
|
+
fixed: 1030,
|
|
1473
|
+
modalBackdrop: 1040,
|
|
1474
|
+
modal: 1050,
|
|
1475
|
+
popover: 1060,
|
|
1476
|
+
tooltip: 1070
|
|
1477
|
+
}
|
|
1478
|
+
}, te = {
|
|
1479
|
+
...ae,
|
|
1480
|
+
palette: {
|
|
1481
|
+
primary: {
|
|
1482
|
+
main: "#3971b8",
|
|
1483
|
+
hover: "#4a82c9",
|
|
1484
|
+
active: "#2d5a96",
|
|
1485
|
+
contrastText: "#ffffff"
|
|
1486
|
+
},
|
|
1487
|
+
secondary: {
|
|
1488
|
+
main: "#c8d69b",
|
|
1489
|
+
hover: "#d4e0b0",
|
|
1490
|
+
active: "#b8c882",
|
|
1491
|
+
contrastText: "#343b1b"
|
|
1492
|
+
},
|
|
1493
|
+
error: {
|
|
1494
|
+
main: "#ef4444",
|
|
1495
|
+
hover: "#f87171",
|
|
1496
|
+
active: "#dc2626"
|
|
1497
|
+
},
|
|
1498
|
+
warning: {
|
|
1499
|
+
main: "#f59e0b",
|
|
1500
|
+
hover: "#fbbf24",
|
|
1501
|
+
active: "#d97706"
|
|
1502
|
+
},
|
|
1503
|
+
success: {
|
|
1504
|
+
main: "#22c55e",
|
|
1505
|
+
hover: "#4ade80",
|
|
1506
|
+
active: "#16a34a"
|
|
1507
|
+
},
|
|
1508
|
+
text: {
|
|
1509
|
+
primary: "#fbfcee",
|
|
1510
|
+
secondary: "#5a6342",
|
|
1511
|
+
disabled: "#a3a3a3"
|
|
1512
|
+
},
|
|
1513
|
+
background: {
|
|
1514
|
+
default: "#fbfcee",
|
|
1515
|
+
accent: "#f6e6a5",
|
|
1516
|
+
paper: "#ffffff"
|
|
1517
|
+
},
|
|
1518
|
+
border: {
|
|
1519
|
+
default: "#c8d69b",
|
|
1520
|
+
subtle: "#e5e5e5",
|
|
1521
|
+
strong: "#5a6342"
|
|
1522
|
+
}
|
|
1523
|
+
}
|
|
1524
|
+
}, na = {
|
|
1525
|
+
...ae,
|
|
1526
|
+
palette: {
|
|
1527
|
+
primary: {
|
|
1528
|
+
main: "#0ea5e9",
|
|
1529
|
+
hover: "#38bdf8",
|
|
1530
|
+
active: "#0284c7",
|
|
1531
|
+
contrastText: "#ffffff"
|
|
1532
|
+
},
|
|
1533
|
+
secondary: {
|
|
1534
|
+
main: "#a855f7",
|
|
1535
|
+
hover: "#c084fc",
|
|
1536
|
+
active: "#9333ea",
|
|
1537
|
+
contrastText: "#ffffff"
|
|
1538
|
+
},
|
|
1539
|
+
error: {
|
|
1540
|
+
main: "#ef4444",
|
|
1541
|
+
hover: "#f87171",
|
|
1542
|
+
active: "#dc2626"
|
|
1543
|
+
},
|
|
1544
|
+
warning: {
|
|
1545
|
+
main: "#f59e0b",
|
|
1546
|
+
hover: "#fbbf24",
|
|
1547
|
+
active: "#d97706"
|
|
1548
|
+
},
|
|
1549
|
+
success: {
|
|
1550
|
+
main: "#22c55e",
|
|
1551
|
+
hover: "#4ade80",
|
|
1552
|
+
active: "#16a34a"
|
|
1553
|
+
},
|
|
1554
|
+
text: {
|
|
1555
|
+
primary: "#fafafa",
|
|
1556
|
+
secondary: "#a3a3a3",
|
|
1557
|
+
disabled: "#525252"
|
|
1558
|
+
},
|
|
1559
|
+
background: {
|
|
1560
|
+
default: "#171717",
|
|
1561
|
+
accent: "#212121",
|
|
1562
|
+
paper: "#262626"
|
|
1563
|
+
},
|
|
1564
|
+
border: {
|
|
1565
|
+
default: "#404040",
|
|
1566
|
+
subtle: "#262626",
|
|
1567
|
+
strong: "#525252"
|
|
1568
|
+
}
|
|
1569
|
+
}
|
|
1570
|
+
};
|
|
1571
|
+
function Zn(e) {
|
|
1572
|
+
return e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase();
|
|
1573
|
+
}
|
|
1574
|
+
function Qn(e) {
|
|
1575
|
+
return `--${e.join("-")}`;
|
|
1576
|
+
}
|
|
1577
|
+
function jt(e, o, s) {
|
|
1578
|
+
if (e != null) {
|
|
1579
|
+
if (typeof e == "string" || typeof e == "number" || typeof e == "boolean") {
|
|
1580
|
+
const i = Qn(o);
|
|
1581
|
+
s[i] = String(e);
|
|
1582
|
+
return;
|
|
1583
|
+
}
|
|
1584
|
+
if (Array.isArray(e)) {
|
|
1585
|
+
e.forEach((i, c) => {
|
|
1586
|
+
jt(i, [...o, String(c)], s);
|
|
1587
|
+
});
|
|
1588
|
+
return;
|
|
1589
|
+
}
|
|
1590
|
+
typeof e == "object" && Object.entries(e).forEach(([i, c]) => {
|
|
1591
|
+
const n = Zn(i);
|
|
1592
|
+
jt(c, [...o, n], s);
|
|
1593
|
+
});
|
|
1594
|
+
}
|
|
1595
|
+
}
|
|
1596
|
+
function ta(e) {
|
|
1597
|
+
const o = {};
|
|
1598
|
+
return jt(e, [], o), o;
|
|
1599
|
+
}
|
|
1600
|
+
const oe = $e(void 0), aa = ({ theme: e = te, children: o }) => {
|
|
1601
|
+
const s = H(() => "palette" in e && e.palette && "primary" in e.palette ? e : pn(te, e), [e]), i = H(() => ta(s), [s]);
|
|
1602
|
+
Fe(() => {
|
|
1603
|
+
const n = document.documentElement;
|
|
1604
|
+
return Object.entries(i).forEach(([u, _]) => {
|
|
1605
|
+
n.style.setProperty(u, _);
|
|
1606
|
+
}), () => {
|
|
1607
|
+
Object.keys(i).forEach((u) => {
|
|
1608
|
+
n.style.removeProperty(u);
|
|
1609
|
+
});
|
|
1610
|
+
};
|
|
1611
|
+
}, [i]);
|
|
1612
|
+
const c = H(
|
|
1613
|
+
() => ({
|
|
1614
|
+
theme: s
|
|
1615
|
+
}),
|
|
1616
|
+
[s]
|
|
1617
|
+
);
|
|
1618
|
+
return /* @__PURE__ */ l.jsx(oe.Provider, { value: c, children: o });
|
|
1619
|
+
};
|
|
1620
|
+
function ea() {
|
|
1621
|
+
const e = Be(oe);
|
|
1622
|
+
if (e === void 0)
|
|
1623
|
+
throw new Error("useThemeContext must be used within a ThemeProvider");
|
|
1624
|
+
return e;
|
|
1625
|
+
}
|
|
1626
|
+
function oa() {
|
|
1627
|
+
const { theme: e } = ea();
|
|
1628
|
+
return e;
|
|
1629
|
+
}
|
|
1630
|
+
export {
|
|
1631
|
+
qn as ArticlePreview,
|
|
1632
|
+
Xr as Button,
|
|
1633
|
+
An as Grid,
|
|
1634
|
+
ee as Icon,
|
|
1635
|
+
tn as LabelMenuItem,
|
|
1636
|
+
un as LikeButton,
|
|
1637
|
+
Pn as Stack,
|
|
1638
|
+
J as Tag,
|
|
1639
|
+
Ar as TagGroup,
|
|
1640
|
+
aa as ThemeProvider,
|
|
1641
|
+
nt as Typography,
|
|
1642
|
+
ae as baseTheme,
|
|
1643
|
+
na as darkTheme,
|
|
1644
|
+
te as lightTheme,
|
|
1645
|
+
pn as mergeTheme,
|
|
1646
|
+
ta as themeToCssVars,
|
|
1647
|
+
oa as useTheme,
|
|
1648
|
+
ea as useThemeContext
|
|
1649
|
+
};
|
|
1650
|
+
//# sourceMappingURL=index.esm.js.map
|