@pnkx-lib/ui 1.2.3 → 1.2.4

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.
@@ -1,635 +0,0 @@
1
- import Pe from "react";
2
- import { Button as lr } from "antd";
3
- var M = { exports: {} }, D = {};
4
- /**
5
- * @license React
6
- * react-jsx-runtime.production.min.js
7
- *
8
- * Copyright (c) Facebook, Inc. and its affiliates.
9
- *
10
- * This source code is licensed under the MIT license found in the
11
- * LICENSE file in the root directory of this source tree.
12
- */
13
- var Te;
14
- function cr() {
15
- if (Te) return D;
16
- Te = 1;
17
- var C = Pe, w = Symbol.for("react.element"), U = Symbol.for("react.fragment"), m = Object.prototype.hasOwnProperty, A = C.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, I = { key: !0, ref: !0, __self: !0, __source: !0 };
18
- function j(R, l, T) {
19
- var p, E = {}, _ = null, $ = null;
20
- T !== void 0 && (_ = "" + T), l.key !== void 0 && (_ = "" + l.key), l.ref !== void 0 && ($ = l.ref);
21
- for (p in l) m.call(l, p) && !I.hasOwnProperty(p) && (E[p] = l[p]);
22
- if (R && R.defaultProps) for (p in l = R.defaultProps, l) E[p] === void 0 && (E[p] = l[p]);
23
- return { $$typeof: w, type: R, key: _, ref: $, props: E, _owner: A.current };
24
- }
25
- return D.Fragment = U, D.jsx = j, D.jsxs = j, D;
26
- }
27
- var F = {};
28
- /**
29
- * @license React
30
- * react-jsx-runtime.development.js
31
- *
32
- * Copyright (c) Facebook, Inc. and its affiliates.
33
- *
34
- * This source code is licensed under the MIT license found in the
35
- * LICENSE file in the root directory of this source tree.
36
- */
37
- var Oe;
38
- function vr() {
39
- return Oe || (Oe = 1, process.env.NODE_ENV !== "production" && function() {
40
- var C = Pe, w = Symbol.for("react.element"), U = Symbol.for("react.portal"), m = Symbol.for("react.fragment"), A = Symbol.for("react.strict_mode"), I = Symbol.for("react.profiler"), j = Symbol.for("react.provider"), R = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), $ = Symbol.for("react.offscreen"), H = Symbol.iterator, Ce = "@@iterator";
41
- function we(e) {
42
- if (e === null || typeof e != "object")
43
- return null;
44
- var r = H && e[H] || e[Ce];
45
- return typeof r == "function" ? r : null;
46
- }
47
- var O = C.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
48
- function c(e) {
49
- {
50
- for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
51
- t[n - 1] = arguments[n];
52
- je("error", e, t);
53
- }
54
- }
55
- function je(e, r, t) {
56
- {
57
- var n = O.ReactDebugCurrentFrame, o = n.getStackAddendum();
58
- o !== "" && (r += "%s", t = t.concat([o]));
59
- var u = t.map(function(i) {
60
- return String(i);
61
- });
62
- u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
63
- }
64
- }
65
- var xe = !1, ke = !1, De = !1, Fe = !1, Ae = !1, Z;
66
- Z = Symbol.for("react.module.reference");
67
- function Ie(e) {
68
- return !!(typeof e == "string" || typeof e == "function" || e === m || e === I || Ae || e === A || e === T || e === p || Fe || e === $ || xe || ke || De || typeof e == "object" && e !== null && (e.$$typeof === _ || e.$$typeof === E || e.$$typeof === j || e.$$typeof === R || e.$$typeof === l || // This needs to include all possible module reference object
69
- // types supported by any Flight configuration anywhere since
70
- // we don't know which Flight build this will end up being used
71
- // with.
72
- e.$$typeof === Z || e.getModuleId !== void 0));
73
- }
74
- function $e(e, r, t) {
75
- var n = e.displayName;
76
- if (n)
77
- return n;
78
- var o = r.displayName || r.name || "";
79
- return o !== "" ? t + "(" + o + ")" : t;
80
- }
81
- function Q(e) {
82
- return e.displayName || "Context";
83
- }
84
- function y(e) {
85
- if (e == null)
86
- return null;
87
- if (typeof e.tag == "number" && c("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
88
- return e.displayName || e.name || null;
89
- if (typeof e == "string")
90
- return e;
91
- switch (e) {
92
- case m:
93
- return "Fragment";
94
- case U:
95
- return "Portal";
96
- case I:
97
- return "Profiler";
98
- case A:
99
- return "StrictMode";
100
- case T:
101
- return "Suspense";
102
- case p:
103
- return "SuspenseList";
104
- }
105
- if (typeof e == "object")
106
- switch (e.$$typeof) {
107
- case R:
108
- var r = e;
109
- return Q(r) + ".Consumer";
110
- case j:
111
- var t = e;
112
- return Q(t._context) + ".Provider";
113
- case l:
114
- return $e(e, e.render, "ForwardRef");
115
- case E:
116
- var n = e.displayName || null;
117
- return n !== null ? n : y(e.type) || "Memo";
118
- case _: {
119
- var o = e, u = o._payload, i = o._init;
120
- try {
121
- return y(i(u));
122
- } catch {
123
- return null;
124
- }
125
- }
126
- }
127
- return null;
128
- }
129
- var b = Object.assign, x = 0, ee, re, te, ne, ae, ie, oe;
130
- function ue() {
131
- }
132
- ue.__reactDisabledLog = !0;
133
- function We() {
134
- {
135
- if (x === 0) {
136
- ee = console.log, re = console.info, te = console.warn, ne = console.error, ae = console.group, ie = console.groupCollapsed, oe = console.groupEnd;
137
- var e = {
138
- configurable: !0,
139
- enumerable: !0,
140
- value: ue,
141
- writable: !0
142
- };
143
- Object.defineProperties(console, {
144
- info: e,
145
- log: e,
146
- warn: e,
147
- error: e,
148
- group: e,
149
- groupCollapsed: e,
150
- groupEnd: e
151
- });
152
- }
153
- x++;
154
- }
155
- }
156
- function Ye() {
157
- {
158
- if (x--, x === 0) {
159
- var e = {
160
- configurable: !0,
161
- enumerable: !0,
162
- writable: !0
163
- };
164
- Object.defineProperties(console, {
165
- log: b({}, e, {
166
- value: ee
167
- }),
168
- info: b({}, e, {
169
- value: re
170
- }),
171
- warn: b({}, e, {
172
- value: te
173
- }),
174
- error: b({}, e, {
175
- value: ne
176
- }),
177
- group: b({}, e, {
178
- value: ae
179
- }),
180
- groupCollapsed: b({}, e, {
181
- value: ie
182
- }),
183
- groupEnd: b({}, e, {
184
- value: oe
185
- })
186
- });
187
- }
188
- x < 0 && c("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
189
- }
190
- }
191
- var B = O.ReactCurrentDispatcher, N;
192
- function W(e, r, t) {
193
- {
194
- if (N === void 0)
195
- try {
196
- throw Error();
197
- } catch (o) {
198
- var n = o.stack.trim().match(/\n( *(at )?)/);
199
- N = n && n[1] || "";
200
- }
201
- return `
202
- ` + N + e;
203
- }
204
- }
205
- var J = !1, Y;
206
- {
207
- var Le = typeof WeakMap == "function" ? WeakMap : Map;
208
- Y = new Le();
209
- }
210
- function se(e, r) {
211
- if (!e || J)
212
- return "";
213
- {
214
- var t = Y.get(e);
215
- if (t !== void 0)
216
- return t;
217
- }
218
- var n;
219
- J = !0;
220
- var o = Error.prepareStackTrace;
221
- Error.prepareStackTrace = void 0;
222
- var u;
223
- u = B.current, B.current = null, We();
224
- try {
225
- if (r) {
226
- var i = function() {
227
- throw Error();
228
- };
229
- if (Object.defineProperty(i.prototype, "props", {
230
- set: function() {
231
- throw Error();
232
- }
233
- }), typeof Reflect == "object" && Reflect.construct) {
234
- try {
235
- Reflect.construct(i, []);
236
- } catch (d) {
237
- n = d;
238
- }
239
- Reflect.construct(e, [], i);
240
- } else {
241
- try {
242
- i.call();
243
- } catch (d) {
244
- n = d;
245
- }
246
- e.call(i.prototype);
247
- }
248
- } else {
249
- try {
250
- throw Error();
251
- } catch (d) {
252
- n = d;
253
- }
254
- e();
255
- }
256
- } catch (d) {
257
- if (d && n && typeof d.stack == "string") {
258
- for (var a = d.stack.split(`
259
- `), v = n.stack.split(`
260
- `), s = a.length - 1, f = v.length - 1; s >= 1 && f >= 0 && a[s] !== v[f]; )
261
- f--;
262
- for (; s >= 1 && f >= 0; s--, f--)
263
- if (a[s] !== v[f]) {
264
- if (s !== 1 || f !== 1)
265
- do
266
- if (s--, f--, f < 0 || a[s] !== v[f]) {
267
- var g = `
268
- ` + a[s].replace(" at new ", " at ");
269
- return e.displayName && g.includes("<anonymous>") && (g = g.replace("<anonymous>", e.displayName)), typeof e == "function" && Y.set(e, g), g;
270
- }
271
- while (s >= 1 && f >= 0);
272
- break;
273
- }
274
- }
275
- } finally {
276
- J = !1, B.current = u, Ye(), Error.prepareStackTrace = o;
277
- }
278
- var P = e ? e.displayName || e.name : "", h = P ? W(P) : "";
279
- return typeof e == "function" && Y.set(e, h), h;
280
- }
281
- function Ve(e, r, t) {
282
- return se(e, !1);
283
- }
284
- function Me(e) {
285
- var r = e.prototype;
286
- return !!(r && r.isReactComponent);
287
- }
288
- function L(e, r, t) {
289
- if (e == null)
290
- return "";
291
- if (typeof e == "function")
292
- return se(e, Me(e));
293
- if (typeof e == "string")
294
- return W(e);
295
- switch (e) {
296
- case T:
297
- return W("Suspense");
298
- case p:
299
- return W("SuspenseList");
300
- }
301
- if (typeof e == "object")
302
- switch (e.$$typeof) {
303
- case l:
304
- return Ve(e.render);
305
- case E:
306
- return L(e.type, r, t);
307
- case _: {
308
- var n = e, o = n._payload, u = n._init;
309
- try {
310
- return L(u(o), r, t);
311
- } catch {
312
- }
313
- }
314
- }
315
- return "";
316
- }
317
- var k = Object.prototype.hasOwnProperty, fe = {}, le = O.ReactDebugCurrentFrame;
318
- function V(e) {
319
- if (e) {
320
- var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
321
- le.setExtraStackFrame(t);
322
- } else
323
- le.setExtraStackFrame(null);
324
- }
325
- function Ue(e, r, t, n, o) {
326
- {
327
- var u = Function.call.bind(k);
328
- for (var i in e)
329
- if (u(e, i)) {
330
- var a = void 0;
331
- try {
332
- if (typeof e[i] != "function") {
333
- var v = Error((n || "React class") + ": " + t + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
334
- throw v.name = "Invariant Violation", v;
335
- }
336
- a = e[i](r, i, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
337
- } catch (s) {
338
- a = s;
339
- }
340
- a && !(a instanceof Error) && (V(o), c("%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).", n || "React class", t, i, typeof a), V(null)), a instanceof Error && !(a.message in fe) && (fe[a.message] = !0, V(o), c("Failed %s type: %s", t, a.message), V(null));
341
- }
342
- }
343
- }
344
- var Be = Array.isArray;
345
- function q(e) {
346
- return Be(e);
347
- }
348
- function Ne(e) {
349
- {
350
- var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
351
- return t;
352
- }
353
- }
354
- function Je(e) {
355
- try {
356
- return ce(e), !1;
357
- } catch {
358
- return !0;
359
- }
360
- }
361
- function ce(e) {
362
- return "" + e;
363
- }
364
- function ve(e) {
365
- if (Je(e))
366
- return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ne(e)), ce(e);
367
- }
368
- var de = O.ReactCurrentOwner, qe = {
369
- key: !0,
370
- ref: !0,
371
- __self: !0,
372
- __source: !0
373
- }, pe, ge;
374
- function Ke(e) {
375
- if (k.call(e, "ref")) {
376
- var r = Object.getOwnPropertyDescriptor(e, "ref").get;
377
- if (r && r.isReactWarning)
378
- return !1;
379
- }
380
- return e.ref !== void 0;
381
- }
382
- function Ge(e) {
383
- if (k.call(e, "key")) {
384
- var r = Object.getOwnPropertyDescriptor(e, "key").get;
385
- if (r && r.isReactWarning)
386
- return !1;
387
- }
388
- return e.key !== void 0;
389
- }
390
- function ze(e, r) {
391
- typeof e.ref == "string" && de.current;
392
- }
393
- function Xe(e, r) {
394
- {
395
- var t = function() {
396
- pe || (pe = !0, c("%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));
397
- };
398
- t.isReactWarning = !0, Object.defineProperty(e, "key", {
399
- get: t,
400
- configurable: !0
401
- });
402
- }
403
- }
404
- function He(e, r) {
405
- {
406
- var t = function() {
407
- ge || (ge = !0, c("%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));
408
- };
409
- t.isReactWarning = !0, Object.defineProperty(e, "ref", {
410
- get: t,
411
- configurable: !0
412
- });
413
- }
414
- }
415
- var Ze = function(e, r, t, n, o, u, i) {
416
- var a = {
417
- // This tag allows us to uniquely identify this as a React Element
418
- $$typeof: w,
419
- // Built-in properties that belong on the element
420
- type: e,
421
- key: r,
422
- ref: t,
423
- props: i,
424
- // Record the component responsible for creating this element.
425
- _owner: u
426
- };
427
- return a._store = {}, Object.defineProperty(a._store, "validated", {
428
- configurable: !1,
429
- enumerable: !1,
430
- writable: !0,
431
- value: !1
432
- }), Object.defineProperty(a, "_self", {
433
- configurable: !1,
434
- enumerable: !1,
435
- writable: !1,
436
- value: n
437
- }), Object.defineProperty(a, "_source", {
438
- configurable: !1,
439
- enumerable: !1,
440
- writable: !1,
441
- value: o
442
- }), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
443
- };
444
- function Qe(e, r, t, n, o) {
445
- {
446
- var u, i = {}, a = null, v = null;
447
- t !== void 0 && (ve(t), a = "" + t), Ge(r) && (ve(r.key), a = "" + r.key), Ke(r) && (v = r.ref, ze(r, o));
448
- for (u in r)
449
- k.call(r, u) && !qe.hasOwnProperty(u) && (i[u] = r[u]);
450
- if (e && e.defaultProps) {
451
- var s = e.defaultProps;
452
- for (u in s)
453
- i[u] === void 0 && (i[u] = s[u]);
454
- }
455
- if (a || v) {
456
- var f = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
457
- a && Xe(i, f), v && He(i, f);
458
- }
459
- return Ze(e, a, v, o, n, de.current, i);
460
- }
461
- }
462
- var K = O.ReactCurrentOwner, Ee = O.ReactDebugCurrentFrame;
463
- function S(e) {
464
- if (e) {
465
- var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
466
- Ee.setExtraStackFrame(t);
467
- } else
468
- Ee.setExtraStackFrame(null);
469
- }
470
- var G;
471
- G = !1;
472
- function z(e) {
473
- return typeof e == "object" && e !== null && e.$$typeof === w;
474
- }
475
- function ye() {
476
- {
477
- if (K.current) {
478
- var e = y(K.current.type);
479
- if (e)
480
- return `
481
-
482
- Check the render method of \`` + e + "`.";
483
- }
484
- return "";
485
- }
486
- }
487
- function er(e) {
488
- return "";
489
- }
490
- var Re = {};
491
- function rr(e) {
492
- {
493
- var r = ye();
494
- if (!r) {
495
- var t = typeof e == "string" ? e : e.displayName || e.name;
496
- t && (r = `
497
-
498
- Check the top-level render call using <` + t + ">.");
499
- }
500
- return r;
501
- }
502
- }
503
- function _e(e, r) {
504
- {
505
- if (!e._store || e._store.validated || e.key != null)
506
- return;
507
- e._store.validated = !0;
508
- var t = rr(r);
509
- if (Re[t])
510
- return;
511
- Re[t] = !0;
512
- var n = "";
513
- e && e._owner && e._owner !== K.current && (n = " It was passed a child from " + y(e._owner.type) + "."), S(e), c('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), S(null);
514
- }
515
- }
516
- function be(e, r) {
517
- {
518
- if (typeof e != "object")
519
- return;
520
- if (q(e))
521
- for (var t = 0; t < e.length; t++) {
522
- var n = e[t];
523
- z(n) && _e(n, r);
524
- }
525
- else if (z(e))
526
- e._store && (e._store.validated = !0);
527
- else if (e) {
528
- var o = we(e);
529
- if (typeof o == "function" && o !== e.entries)
530
- for (var u = o.call(e), i; !(i = u.next()).done; )
531
- z(i.value) && _e(i.value, r);
532
- }
533
- }
534
- }
535
- function tr(e) {
536
- {
537
- var r = e.type;
538
- if (r == null || typeof r == "string")
539
- return;
540
- var t;
541
- if (typeof r == "function")
542
- t = r.propTypes;
543
- else if (typeof r == "object" && (r.$$typeof === l || // Note: Memo only checks outer props here.
544
- // Inner props are checked in the reconciler.
545
- r.$$typeof === E))
546
- t = r.propTypes;
547
- else
548
- return;
549
- if (t) {
550
- var n = y(r);
551
- Ue(t, e.props, "prop", n, e);
552
- } else if (r.PropTypes !== void 0 && !G) {
553
- G = !0;
554
- var o = y(r);
555
- c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", o || "Unknown");
556
- }
557
- typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && c("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
558
- }
559
- }
560
- function nr(e) {
561
- {
562
- for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
563
- var n = r[t];
564
- if (n !== "children" && n !== "key") {
565
- S(e), c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), S(null);
566
- break;
567
- }
568
- }
569
- e.ref !== null && (S(e), c("Invalid attribute `ref` supplied to `React.Fragment`."), S(null));
570
- }
571
- }
572
- var he = {};
573
- function me(e, r, t, n, o, u) {
574
- {
575
- var i = Ie(e);
576
- if (!i) {
577
- var a = "";
578
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
579
- var v = er();
580
- v ? a += v : a += ye();
581
- var s;
582
- e === null ? s = "null" : q(e) ? s = "array" : e !== void 0 && e.$$typeof === w ? (s = "<" + (y(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : s = typeof e, c("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", s, a);
583
- }
584
- var f = Qe(e, r, t, o, u);
585
- if (f == null)
586
- return f;
587
- if (i) {
588
- var g = r.children;
589
- if (g !== void 0)
590
- if (n)
591
- if (q(g)) {
592
- for (var P = 0; P < g.length; P++)
593
- be(g[P], e);
594
- Object.freeze && Object.freeze(g);
595
- } else
596
- c("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
597
- else
598
- be(g, e);
599
- }
600
- if (k.call(r, "key")) {
601
- var h = y(e), d = Object.keys(r).filter(function(fr) {
602
- return fr !== "key";
603
- }), X = d.length > 0 ? "{key: someKey, " + d.join(": ..., ") + ": ...}" : "{key: someKey}";
604
- if (!he[h + X]) {
605
- var sr = d.length > 0 ? "{" + d.join(": ..., ") + ": ...}" : "{}";
606
- c(`A props object containing a "key" prop is being spread into JSX:
607
- let props = %s;
608
- <%s {...props} />
609
- React keys must be passed directly to JSX without using spread:
610
- let props = %s;
611
- <%s key={someKey} {...props} />`, X, h, sr, h), he[h + X] = !0;
612
- }
613
- }
614
- return e === m ? nr(f) : tr(f), f;
615
- }
616
- }
617
- function ar(e, r, t) {
618
- return me(e, r, t, !0);
619
- }
620
- function ir(e, r, t) {
621
- return me(e, r, t, !1);
622
- }
623
- var or = ir, ur = ar;
624
- F.Fragment = m, F.jsx = or, F.jsxs = ur;
625
- }()), F;
626
- }
627
- var Se;
628
- function dr() {
629
- return Se || (Se = 1, process.env.NODE_ENV === "production" ? M.exports = cr() : M.exports = vr()), M.exports;
630
- }
631
- var pr = dr();
632
- const yr = (C) => /* @__PURE__ */ pr.jsx(lr, { ...C });
633
- export {
634
- yr as B
635
- };