@arthurzakharov/ui-kit 1.8.2 → 1.8.3

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.
@@ -3,9 +3,9 @@ import Ne, { useRef as fe, useState as oe, useCallback as re, useEffect as de }
3
3
  import { useResizeObserver as ze } from "usehooks-ts";
4
4
  import { RefreshCw as Fe, RotateCcw as qe, Check as Be } from "lucide-react";
5
5
  import he from "clsx";
6
- import { Button as we } from "../../controls/buttons/button/button.component.js";
6
+ import { Button as Ee } from "../../controls/buttons/button/button.component.js";
7
7
  import "../../controls/primitives/box/box.component.js";
8
- import { baseProps as Ee } from "../../utils/functions/functions.util.js";
8
+ import { baseProps as we } from "../../utils/functions/functions.util.js";
9
9
  import { ButtonText as ie } from "../../controls/buttons/button-text/button-text.component.js";
10
10
  import { Loader as Ue } from "../loader/loader.component.js";
11
11
  import '../../assets/signature-CYVRZH6h.css';function He(e) {
@@ -43,8 +43,8 @@ function Ve() {
43
43
  var e = typeof Symbol == "function" && Symbol.for, n = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, t = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, a = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, l = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, c = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, d = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, s = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, u = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, v = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, y = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, b = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, x = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, g = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, T = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, _ = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, N = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
44
44
  function R(f) {
45
45
  if (typeof f == "object" && f !== null) {
46
- var G = f.$$typeof;
47
- switch (G) {
46
+ var J = f.$$typeof;
47
+ switch (J) {
48
48
  case n:
49
49
  switch (f = f.type, f) {
50
50
  case d:
@@ -63,11 +63,11 @@ function Ve() {
63
63
  case l:
64
64
  return f;
65
65
  default:
66
- return G;
66
+ return J;
67
67
  }
68
68
  }
69
69
  case r:
70
- return G;
70
+ return J;
71
71
  }
72
72
  }
73
73
  }
@@ -143,8 +143,8 @@ function Xe() {
143
143
  }
144
144
  }
145
145
  }
146
- var f = d, G = s, Q = c, K = l, A = n, P = u, q = t, F = x, m = b, H = r, ee = o, $ = a, Y = v, B = !1;
147
- function J(p) {
146
+ var f = d, J = s, Q = c, K = l, A = n, P = u, q = t, F = x, m = b, H = r, ee = o, $ = a, Y = v, B = !1;
147
+ function G(p) {
148
148
  return B || (B = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), i(p) || j(p) === d;
149
149
  }
150
150
  function i(p) {
@@ -153,13 +153,13 @@ function Xe() {
153
153
  function h(p) {
154
154
  return j(p) === c;
155
155
  }
156
- function w(p) {
156
+ function E(p) {
157
157
  return j(p) === l;
158
158
  }
159
- function O(p) {
159
+ function C(p) {
160
160
  return typeof p == "object" && p !== null && p.$$typeof === n;
161
161
  }
162
- function E(p) {
162
+ function w(p) {
163
163
  return j(p) === u;
164
164
  }
165
165
  function M(p) {
@@ -168,7 +168,7 @@ function Xe() {
168
168
  function S(p) {
169
169
  return j(p) === x;
170
170
  }
171
- function C(p) {
171
+ function O(p) {
172
172
  return j(p) === b;
173
173
  }
174
174
  function D(p) {
@@ -183,17 +183,17 @@ function Xe() {
183
183
  function X(p) {
184
184
  return j(p) === v;
185
185
  }
186
- L.AsyncMode = f, L.ConcurrentMode = G, L.ContextConsumer = Q, L.ContextProvider = K, L.Element = A, L.ForwardRef = P, L.Fragment = q, L.Lazy = F, L.Memo = m, L.Portal = H, L.Profiler = ee, L.StrictMode = $, L.Suspense = Y, L.isAsyncMode = J, L.isConcurrentMode = i, L.isContextConsumer = h, L.isContextProvider = w, L.isElement = O, L.isForwardRef = E, L.isFragment = M, L.isLazy = S, L.isMemo = C, L.isPortal = D, L.isProfiler = W, L.isStrictMode = k, L.isSuspense = X, L.isValidElementType = R, L.typeOf = j;
186
+ L.AsyncMode = f, L.ConcurrentMode = J, L.ContextConsumer = Q, L.ContextProvider = K, L.Element = A, L.ForwardRef = P, L.Fragment = q, L.Lazy = F, L.Memo = m, L.Portal = H, L.Profiler = ee, L.StrictMode = $, L.Suspense = Y, L.isAsyncMode = G, L.isConcurrentMode = i, L.isContextConsumer = h, L.isContextProvider = E, L.isElement = C, L.isForwardRef = w, L.isFragment = M, L.isLazy = S, L.isMemo = O, L.isPortal = D, L.isProfiler = W, L.isStrictMode = k, L.isSuspense = X, L.isValidElementType = R, L.typeOf = j;
187
187
  })()), L;
188
188
  }
189
- var Oe;
189
+ var Ce;
190
190
  function $e() {
191
- return Oe || (Oe = 1, process.env.NODE_ENV === "production" ? ue.exports = Ve() : ue.exports = Xe()), ue.exports;
191
+ return Ce || (Ce = 1, process.env.NODE_ENV === "production" ? ue.exports = Ve() : ue.exports = Xe()), ue.exports;
192
192
  }
193
- var pe, Ce;
194
- function Je() {
195
- if (Ce) return pe;
196
- Ce = 1;
193
+ var pe, Oe;
194
+ function Ge() {
195
+ if (Oe) return pe;
196
+ Oe = 1;
197
197
  var e = Object.getOwnPropertySymbols, n = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
198
198
  function t(o) {
199
199
  if (o == null)
@@ -248,7 +248,7 @@ function We() {
248
248
  return Ae || (Ae = 1, ye = Function.call.bind(Object.prototype.hasOwnProperty)), ye;
249
249
  }
250
250
  var me, Me;
251
- function Ge() {
251
+ function Je() {
252
252
  if (Me) return me;
253
253
  Me = 1;
254
254
  var e = function() {
@@ -300,7 +300,7 @@ var _e, De;
300
300
  function Ze() {
301
301
  if (De) return _e;
302
302
  De = 1;
303
- var e = $e(), n = Je(), r = /* @__PURE__ */ be(), t = /* @__PURE__ */ We(), a = /* @__PURE__ */ Ge(), o = function() {
303
+ var e = $e(), n = Ge(), r = /* @__PURE__ */ be(), t = /* @__PURE__ */ We(), a = /* @__PURE__ */ Je(), o = function() {
304
304
  };
305
305
  process.env.NODE_ENV !== "production" && (o = function(c) {
306
306
  var d = "Warning: " + c;
@@ -333,7 +333,7 @@ function Ze() {
333
333
  arrayOf: R,
334
334
  element: j(),
335
335
  elementType: f(),
336
- instanceOf: G,
336
+ instanceOf: J,
337
337
  node: P(),
338
338
  objectOf: K,
339
339
  oneOf: Q,
@@ -350,34 +350,34 @@ function Ze() {
350
350
  g.prototype = Error.prototype;
351
351
  function T(i) {
352
352
  if (process.env.NODE_ENV !== "production")
353
- var h = {}, w = 0;
354
- function O(M, S, C, D, W, k, X) {
355
- if (D = D || y, k = k || C, X !== r) {
353
+ var h = {}, E = 0;
354
+ function C(M, S, O, D, W, k, X) {
355
+ if (D = D || y, k = k || O, X !== r) {
356
356
  if (d) {
357
357
  var p = new Error(
358
358
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
359
359
  );
360
360
  throw p.name = "Invariant Violation", p;
361
361
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
362
- var Z = D + ":" + C;
362
+ var Z = D + ":" + O;
363
363
  !h[Z] && // Avoid spamming the console because they are often not actionable except for lib authors
364
- w < 3 && (o(
364
+ E < 3 && (o(
365
365
  "You are manually calling a React.PropTypes validation function for the `" + k + "` prop on `" + D + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
366
- ), h[Z] = !0, w++);
366
+ ), h[Z] = !0, E++);
367
367
  }
368
368
  }
369
- return S[C] == null ? M ? S[C] === null ? new g("The " + W + " `" + k + "` is marked as required " + ("in `" + D + "`, but its value is `null`.")) : new g("The " + W + " `" + k + "` is marked as required in " + ("`" + D + "`, but its value is `undefined`.")) : null : i(S, C, D, W, k);
369
+ return S[O] == null ? M ? S[O] === null ? new g("The " + W + " `" + k + "` is marked as required " + ("in `" + D + "`, but its value is `null`.")) : new g("The " + W + " `" + k + "` is marked as required in " + ("`" + D + "`, but its value is `undefined`.")) : null : i(S, O, D, W, k);
370
370
  }
371
- var E = O.bind(null, !1);
372
- return E.isRequired = O.bind(null, !0), E;
371
+ var w = C.bind(null, !1);
372
+ return w.isRequired = C.bind(null, !0), w;
373
373
  }
374
374
  function _(i) {
375
- function h(w, O, E, M, S, C) {
376
- var D = w[O], W = $(D);
375
+ function h(E, C, w, M, S, O) {
376
+ var D = E[C], W = $(D);
377
377
  if (W !== i) {
378
378
  var k = Y(D);
379
379
  return new g(
380
- "Invalid " + M + " `" + S + "` of type " + ("`" + k + "` supplied to `" + E + "`, expected ") + ("`" + i + "`."),
380
+ "Invalid " + M + " `" + S + "` of type " + ("`" + k + "` supplied to `" + w + "`, expected ") + ("`" + i + "`."),
381
381
  { expectedType: i }
382
382
  );
383
383
  }
@@ -389,16 +389,16 @@ function Ze() {
389
389
  return T(l);
390
390
  }
391
391
  function R(i) {
392
- function h(w, O, E, M, S) {
392
+ function h(E, C, w, M, S) {
393
393
  if (typeof i != "function")
394
- return new g("Property `" + S + "` of component `" + E + "` has invalid PropType notation inside arrayOf.");
395
- var C = w[O];
396
- if (!Array.isArray(C)) {
397
- var D = $(C);
398
- return new g("Invalid " + M + " `" + S + "` of type " + ("`" + D + "` supplied to `" + E + "`, expected an array."));
394
+ return new g("Property `" + S + "` of component `" + w + "` has invalid PropType notation inside arrayOf.");
395
+ var O = E[C];
396
+ if (!Array.isArray(O)) {
397
+ var D = $(O);
398
+ return new g("Invalid " + M + " `" + S + "` of type " + ("`" + D + "` supplied to `" + w + "`, expected an array."));
399
399
  }
400
- for (var W = 0; W < C.length; W++) {
401
- var k = i(C, W, E, M, S + "[" + W + "]", r);
400
+ for (var W = 0; W < O.length; W++) {
401
+ var k = i(O, W, w, M, S + "[" + W + "]", r);
402
402
  if (k instanceof Error)
403
403
  return k;
404
404
  }
@@ -407,32 +407,32 @@ function Ze() {
407
407
  return T(h);
408
408
  }
409
409
  function j() {
410
- function i(h, w, O, E, M) {
411
- var S = h[w];
410
+ function i(h, E, C, w, M) {
411
+ var S = h[E];
412
412
  if (!c(S)) {
413
- var C = $(S);
414
- return new g("Invalid " + E + " `" + M + "` of type " + ("`" + C + "` supplied to `" + O + "`, expected a single ReactElement."));
413
+ var O = $(S);
414
+ return new g("Invalid " + w + " `" + M + "` of type " + ("`" + O + "` supplied to `" + C + "`, expected a single ReactElement."));
415
415
  }
416
416
  return null;
417
417
  }
418
418
  return T(i);
419
419
  }
420
420
  function f() {
421
- function i(h, w, O, E, M) {
422
- var S = h[w];
421
+ function i(h, E, C, w, M) {
422
+ var S = h[E];
423
423
  if (!e.isValidElementType(S)) {
424
- var C = $(S);
425
- return new g("Invalid " + E + " `" + M + "` of type " + ("`" + C + "` supplied to `" + O + "`, expected a single ReactElement type."));
424
+ var O = $(S);
425
+ return new g("Invalid " + w + " `" + M + "` of type " + ("`" + O + "` supplied to `" + C + "`, expected a single ReactElement type."));
426
426
  }
427
427
  return null;
428
428
  }
429
429
  return T(i);
430
430
  }
431
- function G(i) {
432
- function h(w, O, E, M, S) {
433
- if (!(w[O] instanceof i)) {
434
- var C = i.name || y, D = J(w[O]);
435
- return new g("Invalid " + M + " `" + S + "` of type " + ("`" + D + "` supplied to `" + E + "`, expected ") + ("instance of `" + C + "`."));
431
+ function J(i) {
432
+ function h(E, C, w, M, S) {
433
+ if (!(E[C] instanceof i)) {
434
+ var O = i.name || y, D = G(E[C]);
435
+ return new g("Invalid " + M + " `" + S + "` of type " + ("`" + D + "` supplied to `" + w + "`, expected ") + ("instance of `" + O + "`."));
436
436
  }
437
437
  return null;
438
438
  }
@@ -443,28 +443,28 @@ function Ze() {
443
443
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
444
444
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
445
445
  ) : o("Invalid argument supplied to oneOf, expected an array.")), l;
446
- function h(w, O, E, M, S) {
447
- for (var C = w[O], D = 0; D < i.length; D++)
448
- if (x(C, i[D]))
446
+ function h(E, C, w, M, S) {
447
+ for (var O = E[C], D = 0; D < i.length; D++)
448
+ if (x(O, i[D]))
449
449
  return null;
450
450
  var W = JSON.stringify(i, function(X, p) {
451
451
  var Z = Y(p);
452
452
  return Z === "symbol" ? String(p) : p;
453
453
  });
454
- return new g("Invalid " + M + " `" + S + "` of value `" + String(C) + "` " + ("supplied to `" + E + "`, expected one of " + W + "."));
454
+ return new g("Invalid " + M + " `" + S + "` of value `" + String(O) + "` " + ("supplied to `" + w + "`, expected one of " + W + "."));
455
455
  }
456
456
  return T(h);
457
457
  }
458
458
  function K(i) {
459
- function h(w, O, E, M, S) {
459
+ function h(E, C, w, M, S) {
460
460
  if (typeof i != "function")
461
- return new g("Property `" + S + "` of component `" + E + "` has invalid PropType notation inside objectOf.");
462
- var C = w[O], D = $(C);
461
+ return new g("Property `" + S + "` of component `" + w + "` has invalid PropType notation inside objectOf.");
462
+ var O = E[C], D = $(O);
463
463
  if (D !== "object")
464
- return new g("Invalid " + M + " `" + S + "` of type " + ("`" + D + "` supplied to `" + E + "`, expected an object."));
465
- for (var W in C)
466
- if (t(C, W)) {
467
- var k = i(C, W, E, M, S + "." + W, r);
464
+ return new g("Invalid " + M + " `" + S + "` of type " + ("`" + D + "` supplied to `" + w + "`, expected an object."));
465
+ for (var W in O)
466
+ if (t(O, W)) {
467
+ var k = i(O, W, w, M, S + "." + W, r);
468
468
  if (k instanceof Error)
469
469
  return k;
470
470
  }
@@ -476,45 +476,45 @@ function Ze() {
476
476
  if (!Array.isArray(i))
477
477
  return process.env.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), l;
478
478
  for (var h = 0; h < i.length; h++) {
479
- var w = i[h];
480
- if (typeof w != "function")
479
+ var E = i[h];
480
+ if (typeof E != "function")
481
481
  return o(
482
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + B(w) + " at index " + h + "."
482
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + B(E) + " at index " + h + "."
483
483
  ), l;
484
484
  }
485
- function O(E, M, S, C, D) {
485
+ function C(w, M, S, O, D) {
486
486
  for (var W = [], k = 0; k < i.length; k++) {
487
- var X = i[k], p = X(E, M, S, C, D, r);
487
+ var X = i[k], p = X(w, M, S, O, D, r);
488
488
  if (p == null)
489
489
  return null;
490
490
  p.data && t(p.data, "expectedType") && W.push(p.data.expectedType);
491
491
  }
492
492
  var Z = W.length > 0 ? ", expected one of type [" + W.join(", ") + "]" : "";
493
- return new g("Invalid " + C + " `" + D + "` supplied to " + ("`" + S + "`" + Z + "."));
493
+ return new g("Invalid " + O + " `" + D + "` supplied to " + ("`" + S + "`" + Z + "."));
494
494
  }
495
- return T(O);
495
+ return T(C);
496
496
  }
497
497
  function P() {
498
- function i(h, w, O, E, M) {
499
- return H(h[w]) ? null : new g("Invalid " + E + " `" + M + "` supplied to " + ("`" + O + "`, expected a ReactNode."));
498
+ function i(h, E, C, w, M) {
499
+ return H(h[E]) ? null : new g("Invalid " + w + " `" + M + "` supplied to " + ("`" + C + "`, expected a ReactNode."));
500
500
  }
501
501
  return T(i);
502
502
  }
503
- function q(i, h, w, O, E) {
503
+ function q(i, h, E, C, w) {
504
504
  return new g(
505
- (i || "React class") + ": " + h + " type `" + w + "." + O + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + E + "`."
505
+ (i || "React class") + ": " + h + " type `" + E + "." + C + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + w + "`."
506
506
  );
507
507
  }
508
508
  function F(i) {
509
- function h(w, O, E, M, S) {
510
- var C = w[O], D = $(C);
509
+ function h(E, C, w, M, S) {
510
+ var O = E[C], D = $(O);
511
511
  if (D !== "object")
512
- return new g("Invalid " + M + " `" + S + "` of type `" + D + "` " + ("supplied to `" + E + "`, expected `object`."));
512
+ return new g("Invalid " + M + " `" + S + "` of type `" + D + "` " + ("supplied to `" + w + "`, expected `object`."));
513
513
  for (var W in i) {
514
514
  var k = i[W];
515
515
  if (typeof k != "function")
516
- return q(E, M, S, W, Y(k));
517
- var X = k(C, W, E, M, S + "." + W, r);
516
+ return q(w, M, S, W, Y(k));
517
+ var X = k(O, W, w, M, S + "." + W, r);
518
518
  if (X)
519
519
  return X;
520
520
  }
@@ -523,21 +523,21 @@ function Ze() {
523
523
  return T(h);
524
524
  }
525
525
  function m(i) {
526
- function h(w, O, E, M, S) {
527
- var C = w[O], D = $(C);
526
+ function h(E, C, w, M, S) {
527
+ var O = E[C], D = $(O);
528
528
  if (D !== "object")
529
- return new g("Invalid " + M + " `" + S + "` of type `" + D + "` " + ("supplied to `" + E + "`, expected `object`."));
530
- var W = n({}, w[O], i);
529
+ return new g("Invalid " + M + " `" + S + "` of type `" + D + "` " + ("supplied to `" + w + "`, expected `object`."));
530
+ var W = n({}, E[C], i);
531
531
  for (var k in W) {
532
532
  var X = i[k];
533
533
  if (t(i, k) && typeof X != "function")
534
- return q(E, M, S, k, Y(X));
534
+ return q(w, M, S, k, Y(X));
535
535
  if (!X)
536
536
  return new g(
537
- "Invalid " + M + " `" + S + "` key `" + k + "` supplied to `" + E + "`.\nBad object: " + JSON.stringify(w[O], null, " ") + `
537
+ "Invalid " + M + " `" + S + "` key `" + k + "` supplied to `" + w + "`.\nBad object: " + JSON.stringify(E[C], null, " ") + `
538
538
  Valid keys: ` + JSON.stringify(Object.keys(i), null, " ")
539
539
  );
540
- var p = X(C, k, E, M, S + "." + k, r);
540
+ var p = X(O, k, w, M, S + "." + k, r);
541
541
  if (p)
542
542
  return p;
543
543
  }
@@ -560,15 +560,15 @@ Valid keys: ` + JSON.stringify(Object.keys(i), null, " ")
560
560
  return !0;
561
561
  var h = v(i);
562
562
  if (h) {
563
- var w = h.call(i), O;
563
+ var E = h.call(i), C;
564
564
  if (h !== i.entries) {
565
- for (; !(O = w.next()).done; )
566
- if (!H(O.value))
565
+ for (; !(C = E.next()).done; )
566
+ if (!H(C.value))
567
567
  return !1;
568
568
  } else
569
- for (; !(O = w.next()).done; ) {
570
- var E = O.value;
571
- if (E && !H(E[1]))
569
+ for (; !(C = E.next()).done; ) {
570
+ var w = C.value;
571
+ if (w && !H(w[1]))
572
572
  return !1;
573
573
  }
574
574
  } else
@@ -611,7 +611,7 @@ Valid keys: ` + JSON.stringify(Object.keys(i), null, " ")
611
611
  return h;
612
612
  }
613
613
  }
614
- function J(i) {
614
+ function G(i) {
615
615
  return !i.constructor || !i.constructor.name ? y : i.constructor.name;
616
616
  }
617
617
  return b.checkPropTypes = a, b.resetWarningCache = a.resetWarningCache, b.PropTypes = b, b;
@@ -1005,14 +1005,14 @@ function it() {
1005
1005
  return function(P, q, F) {
1006
1006
  return q && A(P.prototype, q), F && A(P, F), P;
1007
1007
  };
1008
- })(), T = d(1), _ = s(T), N = d(2), R = s(N), j = d(3), f = s(j), G = d(4), Q = s(G), K = (function(A) {
1008
+ })(), T = d(1), _ = s(T), N = d(2), R = s(N), j = d(3), f = s(j), J = d(4), Q = s(J), K = (function(A) {
1009
1009
  function P() {
1010
1010
  var q, F, m, H;
1011
1011
  v(this, P);
1012
1012
  for (var ee = arguments.length, $ = Array(ee), Y = 0; Y < ee; Y++) $[Y] = arguments[Y];
1013
1013
  return F = m = y(this, (q = P.__proto__ || Object.getPrototypeOf(P)).call.apply(q, [this].concat($))), m._sigPad = null, m._excludeOurProps = function() {
1014
- var B = m.props, J = (B.canvasProps, B.clearOnResize, u(B, ["canvasProps", "clearOnResize"]));
1015
- return J;
1014
+ var B = m.props, G = (B.canvasProps, B.clearOnResize, u(B, ["canvasProps", "clearOnResize"]));
1015
+ return G;
1016
1016
  }, m.getCanvas = function() {
1017
1017
  return m._canvas;
1018
1018
  }, m.getTrimmedCanvas = function() {
@@ -1023,10 +1023,10 @@ function it() {
1023
1023
  }, m._checkClearOnResize = function() {
1024
1024
  m.props.clearOnResize && m._resizeCanvas();
1025
1025
  }, m._resizeCanvas = function() {
1026
- var B = m.props.canvasProps || {}, J = B.width, i = B.height;
1027
- if (!J || !i) {
1028
- var h = m._canvas, w = Math.max(window.devicePixelRatio || 1, 1);
1029
- J || (h.width = h.offsetWidth * w), i || (h.height = h.offsetHeight * w), h.getContext("2d").scale(w, w), m.clear();
1026
+ var B = m.props.canvasProps || {}, G = B.width, i = B.height;
1027
+ if (!G || !i) {
1028
+ var h = m._canvas, E = Math.max(window.devicePixelRatio || 1, 1);
1029
+ G || (h.width = h.offsetWidth * E), i || (h.height = h.offsetHeight * E), h.getContext("2d").scale(E, E), m.clear();
1030
1030
  }
1031
1031
  }, m.on = function() {
1032
1032
  return window.addEventListener("resize", m._checkClearOnResize), m._sigPad.on();
@@ -1036,10 +1036,10 @@ function it() {
1036
1036
  return m._sigPad.clear();
1037
1037
  }, m.isEmpty = function() {
1038
1038
  return m._sigPad.isEmpty();
1039
- }, m.fromDataURL = function(B, J) {
1040
- return m._sigPad.fromDataURL(B, J);
1041
- }, m.toDataURL = function(B, J) {
1042
- return m._sigPad.toDataURL(B, J);
1039
+ }, m.fromDataURL = function(B, G) {
1040
+ return m._sigPad.fromDataURL(B, G);
1041
+ }, m.toDataURL = function(B, G) {
1042
+ return m._sigPad.toDataURL(B, G);
1043
1043
  }, m.fromData = function(B) {
1044
1044
  return m._sigPad.fromData(B);
1045
1045
  }, m.toData = function() {
@@ -1073,7 +1073,7 @@ function it() {
1073
1073
  })(ce)), ce.exports;
1074
1074
  }
1075
1075
  var st = it();
1076
- const ut = /* @__PURE__ */ He(st), ct = "_Signature_1sp4s_1", lt = "_Main_1sp4s_7", ft = "_MainAuto_1sp4s_17", dt = "_MainManual_1sp4s_21", ht = "_Footer_1sp4s_27", pt = "_Header_1sp4s_37", vt = "_HeaderTitle_1sp4s_47", yt = "_HeaderManualDraw_1sp4s_52", mt = "_HeaderNotManualDraw_1sp4s_56", _t = "_HeaderReset_1sp4s_60", gt = "_ManualPanel_1sp4s_71", bt = "_ManualPanelButton_1sp4s_82", xt = "_AutoPanel_1sp4s_97", Pt = "_AutoPanelImage_1sp4s_104", wt = "_AutoPanelLoader_1sp4s_110", Et = "_AutoPanelButton_1sp4s_117", Tt = "_AutoPanelLabel_1sp4s_121", St = "_AutoPanelLabelIcon_1sp4s_129", Ot = "_AutoPanelLabelText_1sp4s_135", Ct = "_AutoPanelError_1sp4s_142", Rt = "_AutoPanelErrorTitle_1sp4s_151", U = {
1076
+ const ut = /* @__PURE__ */ He(st), ct = "_Signature_1sp4s_1", lt = "_Main_1sp4s_7", ft = "_MainAuto_1sp4s_17", dt = "_MainManual_1sp4s_21", ht = "_Footer_1sp4s_27", pt = "_Header_1sp4s_37", vt = "_HeaderTitle_1sp4s_47", yt = "_HeaderManualDraw_1sp4s_52", mt = "_HeaderNotManualDraw_1sp4s_56", _t = "_HeaderReset_1sp4s_60", gt = "_ManualPanel_1sp4s_71", bt = "_ManualPanelButton_1sp4s_82", xt = "_AutoPanel_1sp4s_97", Pt = "_AutoPanelImage_1sp4s_104", Et = "_AutoPanelLoader_1sp4s_110", wt = "_AutoPanelButton_1sp4s_117", Tt = "_AutoPanelLabel_1sp4s_121", St = "_AutoPanelLabelIcon_1sp4s_129", Ct = "_AutoPanelLabelText_1sp4s_135", Ot = "_AutoPanelError_1sp4s_142", Rt = "_AutoPanelErrorTitle_1sp4s_151", U = {
1077
1077
  Signature: ct,
1078
1078
  Main: lt,
1079
1079
  MainAuto: ft,
@@ -1088,12 +1088,12 @@ const ut = /* @__PURE__ */ He(st), ct = "_Signature_1sp4s_1", lt = "_Main_1sp4s_
1088
1088
  ManualPanelButton: bt,
1089
1089
  AutoPanel: xt,
1090
1090
  AutoPanelImage: Pt,
1091
- AutoPanelLoader: wt,
1092
- AutoPanelButton: Et,
1091
+ AutoPanelLoader: Et,
1092
+ AutoPanelButton: wt,
1093
1093
  AutoPanelLabel: Tt,
1094
1094
  AutoPanelLabelIcon: St,
1095
- AutoPanelLabelText: Ot,
1096
- AutoPanelError: Ct,
1095
+ AutoPanelLabelText: Ct,
1096
+ AutoPanelError: Ot,
1097
1097
  AutoPanelErrorTitle: Rt
1098
1098
  }, zt = ({
1099
1099
  // Signature props
@@ -1106,7 +1106,7 @@ const ut = /* @__PURE__ */ He(st), ct = "_Signature_1sp4s_1", lt = "_Main_1sp4s_
1106
1106
  // Base props
1107
1107
  ...l
1108
1108
  }) => {
1109
- const c = fe(null), d = fe(e), s = fe(!1), [u, v] = oe(null), [y, b] = oe(r ? "manual" : "auto"), [x, g] = oe(""), [T, _] = oe(!1), { width: N = 0, height: R = 0 } = ze({ ref: c, box: "border-box" }), j = y === "auto" ? n ? "auto-generated" : "auto-loading" : x ? "manual-drawn" : r ? "manual-stored" : "manual-blank", f = n !== "" || T, G = r || x, Q = re(
1109
+ const c = fe(null), d = fe(e), s = fe(!1), [u, v] = oe(null), [y, b] = oe(r ? "manual" : "auto"), [x, g] = oe(""), [T, _] = oe(!1), { width: N = 0, height: R = 0 } = ze({ ref: c, box: "border-box" }), j = y === "auto" ? n ? "auto-generated" : "auto-loading" : x ? "manual-drawn" : r ? "manual-stored" : "manual-blank", f = n !== "" || T, J = r || x, Q = re(
1110
1110
  ($) => {
1111
1111
  !u || !N || !R || !$ || u.fromDataURL($, {
1112
1112
  width: +N.toFixed(),
@@ -1132,7 +1132,7 @@ const ut = /* @__PURE__ */ He(st), ct = "_Signature_1sp4s_1", lt = "_Main_1sp4s_
1132
1132
  de(() => {
1133
1133
  y === "manual" && x && N && R && Q(x);
1134
1134
  }, [y, x, N, R, Q]), de(() => {
1135
- console.log("NAME CHANGED", d.current === e), d.current !== e && (console.log(d.current, e), d.current = e, t().then(($) => {
1135
+ console.log("NAME CHANGED prev", d.current), console.log("NAME CHANGED current", e), d.current !== e && (console.log(d.current, e), d.current = e, t().then(($) => {
1136
1136
  const Y = `data:image/png;base64,${$.signature}`;
1137
1137
  _(!1), o(Y);
1138
1138
  }).catch(() => {
@@ -1161,8 +1161,8 @@ const ut = /* @__PURE__ */ He(st), ct = "_Signature_1sp4s_1", lt = "_Main_1sp4s_
1161
1161
  return /* @__PURE__ */ te(
1162
1162
  "div",
1163
1163
  {
1164
- "data-testid": Ee(l, "data-testid", "signature"),
1165
- className: he(U.Signature, Ee(l, "className")),
1164
+ "data-testid": we(l, "data-testid", "signature"),
1165
+ className: he(U.Signature, we(l, "className")),
1166
1166
  children: [
1167
1167
  /* @__PURE__ */ te(
1168
1168
  "div",
@@ -1219,7 +1219,7 @@ const ut = /* @__PURE__ */ He(st), ct = "_Signature_1sp4s_1", lt = "_Main_1sp4s_
1219
1219
  }
1220
1220
  )
1221
1221
  ] }) : /* @__PURE__ */ te("div", { className: U.ManualPanel, children: [
1222
- H(["manual-stored"]) ? /* @__PURE__ */ V("img", { width: N, height: R, alt: "signature", src: G }) : /* @__PURE__ */ V(
1222
+ H(["manual-stored"]) ? /* @__PURE__ */ V("img", { width: N, height: R, alt: "signature", src: J }) : /* @__PURE__ */ V(
1223
1223
  ut,
1224
1224
  {
1225
1225
  penColor: "#262626",
@@ -1248,9 +1248,9 @@ const ut = /* @__PURE__ */ He(st), ct = "_Signature_1sp4s_1", lt = "_Main_1sp4s_
1248
1248
  }
1249
1249
  ),
1250
1250
  H(["manual-blank", "manual-drawn"]) && /* @__PURE__ */ te("div", { className: U.Footer, children: [
1251
- /* @__PURE__ */ V(we, { fullWidth: !0, blurAfterClick: !0, text: "Abbrechen", color: "tertiary", onClick: P }),
1251
+ /* @__PURE__ */ V(Ee, { fullWidth: !0, blurAfterClick: !0, text: "Abbrechen", color: "tertiary", onClick: P }),
1252
1252
  /* @__PURE__ */ V(
1253
- we,
1253
+ Ee,
1254
1254
  {
1255
1255
  fullWidth: !0,
1256
1256
  blurAfterClick: !0,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arthurzakharov/ui-kit",
3
3
  "private": false,
4
- "version": "1.8.2",
4
+ "version": "1.8.3",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
7
7
  "types": "dist/main.d.ts",