@pittorica/dialog-react 0.23.0 → 0.23.2

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.
Files changed (2) hide show
  1. package/dist/index.js +232 -226
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx as Y, jsxs as pt, Fragment as yt } from "react/jsx-runtime";
2
2
  import * as ir from "react";
3
- import X, { useState as fe, createContext as Sr, forwardRef as Pr, useRef as we, useCallback as pe, useEffect as xe, useMemo as mt, Fragment as bt, PureComponent as ht, useId as ur, useLayoutEffect as gt, useContext as Et } from "react";
3
+ import Z, { useState as fe, createContext as Sr, forwardRef as Pr, useRef as we, useCallback as pe, useEffect as xe, useMemo as mt, Fragment as bt, PureComponent as ht, useId as ur, useLayoutEffect as gt, useContext as Et } from "react";
4
4
  import { createPortal as Tt } from "react-dom";
5
5
  function Ot(e, r) {
6
6
  if (e == null) return {};
@@ -23,7 +23,7 @@ function me() {
23
23
  function wt(e) {
24
24
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
25
25
  }
26
- var ke = { exports: {} }, Oe = { exports: {} }, M = {};
26
+ var ke = { exports: {} }, Oe = { exports: {} }, $ = {};
27
27
  /** @license React v16.13.1
28
28
  * react-is.production.min.js
29
29
  *
@@ -34,9 +34,9 @@ var ke = { exports: {} }, Oe = { exports: {} }, M = {};
34
34
  */
35
35
  var cr;
36
36
  function xt() {
37
- if (cr) return M;
37
+ if (cr) return $;
38
38
  cr = 1;
39
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, b = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, v = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, E = e ? Symbol.for("react.fundamental") : 60117, N = e ? Symbol.for("react.responder") : 60118, j = e ? Symbol.for("react.scope") : 60119;
39
+ var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, b = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, v = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, E = e ? Symbol.for("react.fundamental") : 60117, C = e ? Symbol.for("react.responder") : 60118, D = e ? Symbol.for("react.scope") : 60119;
40
40
  function O(s) {
41
41
  if (typeof s == "object" && s !== null) {
42
42
  var k = s.$$typeof;
@@ -70,35 +70,35 @@ function xt() {
70
70
  function F(s) {
71
71
  return O(s) === f;
72
72
  }
73
- return M.AsyncMode = b, M.ConcurrentMode = f, M.ContextConsumer = u, M.ContextProvider = i, M.Element = r, M.ForwardRef = v, M.Fragment = n, M.Lazy = g, M.Memo = h, M.Portal = t, M.Profiler = a, M.StrictMode = o, M.Suspense = d, M.isAsyncMode = function(s) {
73
+ return $.AsyncMode = b, $.ConcurrentMode = f, $.ContextConsumer = u, $.ContextProvider = i, $.Element = r, $.ForwardRef = v, $.Fragment = n, $.Lazy = g, $.Memo = h, $.Portal = t, $.Profiler = a, $.StrictMode = o, $.Suspense = d, $.isAsyncMode = function(s) {
74
74
  return F(s) || O(s) === b;
75
- }, M.isConcurrentMode = F, M.isContextConsumer = function(s) {
75
+ }, $.isConcurrentMode = F, $.isContextConsumer = function(s) {
76
76
  return O(s) === u;
77
- }, M.isContextProvider = function(s) {
77
+ }, $.isContextProvider = function(s) {
78
78
  return O(s) === i;
79
- }, M.isElement = function(s) {
79
+ }, $.isElement = function(s) {
80
80
  return typeof s == "object" && s !== null && s.$$typeof === r;
81
- }, M.isForwardRef = function(s) {
81
+ }, $.isForwardRef = function(s) {
82
82
  return O(s) === v;
83
- }, M.isFragment = function(s) {
83
+ }, $.isFragment = function(s) {
84
84
  return O(s) === n;
85
- }, M.isLazy = function(s) {
85
+ }, $.isLazy = function(s) {
86
86
  return O(s) === g;
87
- }, M.isMemo = function(s) {
87
+ }, $.isMemo = function(s) {
88
88
  return O(s) === h;
89
- }, M.isPortal = function(s) {
89
+ }, $.isPortal = function(s) {
90
90
  return O(s) === t;
91
- }, M.isProfiler = function(s) {
91
+ }, $.isProfiler = function(s) {
92
92
  return O(s) === a;
93
- }, M.isStrictMode = function(s) {
93
+ }, $.isStrictMode = function(s) {
94
94
  return O(s) === o;
95
- }, M.isSuspense = function(s) {
95
+ }, $.isSuspense = function(s) {
96
96
  return O(s) === d;
97
- }, M.isValidElementType = function(s) {
98
- return typeof s == "string" || typeof s == "function" || s === n || s === f || s === a || s === o || s === d || s === p || typeof s == "object" && s !== null && (s.$$typeof === g || s.$$typeof === h || s.$$typeof === i || s.$$typeof === u || s.$$typeof === v || s.$$typeof === E || s.$$typeof === N || s.$$typeof === j || s.$$typeof === m);
99
- }, M.typeOf = O, M;
97
+ }, $.isValidElementType = function(s) {
98
+ return typeof s == "string" || typeof s == "function" || s === n || s === f || s === a || s === o || s === d || s === p || typeof s == "object" && s !== null && (s.$$typeof === g || s.$$typeof === h || s.$$typeof === i || s.$$typeof === u || s.$$typeof === v || s.$$typeof === E || s.$$typeof === C || s.$$typeof === D || s.$$typeof === m);
99
+ }, $.typeOf = O, $;
100
100
  }
101
- var $ = {};
101
+ var N = {};
102
102
  /** @license React v16.13.1
103
103
  * react-is.development.js
104
104
  *
@@ -110,10 +110,10 @@ var $ = {};
110
110
  var sr;
111
111
  function St() {
112
112
  return sr || (sr = 1, process.env.NODE_ENV !== "production" && function() {
113
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, b = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, v = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, E = e ? Symbol.for("react.fundamental") : 60117, N = e ? Symbol.for("react.responder") : 60118, j = e ? Symbol.for("react.scope") : 60119;
113
+ var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, b = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, v = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, E = e ? Symbol.for("react.fundamental") : 60117, C = e ? Symbol.for("react.responder") : 60118, D = e ? Symbol.for("react.scope") : 60119;
114
114
  function O(l) {
115
115
  return typeof l == "string" || typeof l == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
116
- l === n || l === f || l === a || l === o || l === d || l === p || typeof l == "object" && l !== null && (l.$$typeof === g || l.$$typeof === h || l.$$typeof === i || l.$$typeof === u || l.$$typeof === v || l.$$typeof === E || l.$$typeof === N || l.$$typeof === j || l.$$typeof === m);
116
+ l === n || l === f || l === a || l === o || l === d || l === p || typeof l == "object" && l !== null && (l.$$typeof === g || l.$$typeof === h || l.$$typeof === i || l.$$typeof === u || l.$$typeof === v || l.$$typeof === E || l.$$typeof === C || l.$$typeof === D || l.$$typeof === m);
117
117
  }
118
118
  function F(l) {
119
119
  if (typeof l == "object" && l !== null) {
@@ -147,7 +147,7 @@ function St() {
147
147
  }
148
148
  }
149
149
  }
150
- var s = b, k = f, B = u, G = i, z = r, _ = v, V = n, ne = g, Z = h, J = t, oe = a, q = o, K = d, ae = !1;
150
+ var s = b, k = f, B = u, G = i, z = r, J = v, P = n, V = g, ee = h, K = t, oe = a, q = o, Q = d, ae = !1;
151
151
  function ie(l) {
152
152
  return ae || (ae = !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.")), c(l) || F(l) === b;
153
153
  }
@@ -172,13 +172,13 @@ function St() {
172
172
  function S(l) {
173
173
  return F(l) === g;
174
174
  }
175
- function P(l) {
175
+ function _(l) {
176
176
  return F(l) === h;
177
177
  }
178
178
  function A(l) {
179
179
  return F(l) === t;
180
180
  }
181
- function C(l) {
181
+ function M(l) {
182
182
  return F(l) === a;
183
183
  }
184
184
  function I(l) {
@@ -187,8 +187,8 @@ function St() {
187
187
  function L(l) {
188
188
  return F(l) === d;
189
189
  }
190
- $.AsyncMode = s, $.ConcurrentMode = k, $.ContextConsumer = B, $.ContextProvider = G, $.Element = z, $.ForwardRef = _, $.Fragment = V, $.Lazy = ne, $.Memo = Z, $.Portal = J, $.Profiler = oe, $.StrictMode = q, $.Suspense = K, $.isAsyncMode = ie, $.isConcurrentMode = c, $.isContextConsumer = y, $.isContextProvider = x, $.isElement = w, $.isForwardRef = T, $.isFragment = R, $.isLazy = S, $.isMemo = P, $.isPortal = A, $.isProfiler = C, $.isStrictMode = I, $.isSuspense = L, $.isValidElementType = O, $.typeOf = F;
191
- }()), $;
190
+ N.AsyncMode = s, N.ConcurrentMode = k, N.ContextConsumer = B, N.ContextProvider = G, N.Element = z, N.ForwardRef = J, N.Fragment = P, N.Lazy = V, N.Memo = ee, N.Portal = K, N.Profiler = oe, N.StrictMode = q, N.Suspense = Q, N.isAsyncMode = ie, N.isConcurrentMode = c, N.isContextConsumer = y, N.isContextProvider = x, N.isElement = w, N.isForwardRef = T, N.isFragment = R, N.isLazy = S, N.isMemo = _, N.isPortal = A, N.isProfiler = M, N.isStrictMode = I, N.isSuspense = L, N.isValidElementType = O, N.typeOf = F;
191
+ }()), N;
192
192
  }
193
193
  var fr;
194
194
  function _r() {
@@ -330,25 +330,25 @@ function Ft() {
330
330
  return y;
331
331
  }
332
332
  var p = "<<anonymous>>", h = {
333
- array: N("array"),
334
- bigint: N("bigint"),
335
- bool: N("boolean"),
336
- func: N("function"),
337
- number: N("number"),
338
- object: N("object"),
339
- string: N("string"),
340
- symbol: N("symbol"),
341
- any: j(),
333
+ array: C("array"),
334
+ bigint: C("bigint"),
335
+ bool: C("boolean"),
336
+ func: C("function"),
337
+ number: C("number"),
338
+ object: C("object"),
339
+ string: C("string"),
340
+ symbol: C("symbol"),
341
+ any: D(),
342
342
  arrayOf: O,
343
343
  element: F(),
344
344
  elementType: s(),
345
345
  instanceOf: k,
346
- node: _(),
346
+ node: J(),
347
347
  objectOf: G,
348
348
  oneOf: B,
349
349
  oneOfType: z,
350
- shape: ne,
351
- exact: Z
350
+ shape: V,
351
+ exact: ee
352
352
  };
353
353
  function g(c, y) {
354
354
  return c === y ? c !== 0 || 1 / c === 1 / y : c !== c && y !== y;
@@ -360,31 +360,31 @@ function Ft() {
360
360
  function E(c) {
361
361
  if (process.env.NODE_ENV !== "production")
362
362
  var y = {}, x = 0;
363
- function w(R, S, P, A, C, I, L) {
364
- if (A = A || p, I = I || P, L !== t) {
363
+ function w(R, S, _, A, M, I, L) {
364
+ if (A = A || p, I = I || _, L !== t) {
365
365
  if (b) {
366
366
  var l = new Error(
367
367
  "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"
368
368
  );
369
369
  throw l.name = "Invariant Violation", l;
370
370
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
371
- var U = A + ":" + P;
371
+ var U = A + ":" + _;
372
372
  !y[U] && // Avoid spamming the console because they are often not actionable except for lib authors
373
373
  x < 3 && (a(
374
374
  "You are manually calling a React.PropTypes validation function for the `" + I + "` prop on `" + A + "`. 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."
375
375
  ), y[U] = !0, x++);
376
376
  }
377
377
  }
378
- return S[P] == null ? R ? S[P] === null ? new m("The " + C + " `" + I + "` is marked as required " + ("in `" + A + "`, but its value is `null`.")) : new m("The " + C + " `" + I + "` is marked as required in " + ("`" + A + "`, but its value is `undefined`.")) : null : c(S, P, A, C, I);
378
+ return S[_] == null ? R ? S[_] === null ? new m("The " + M + " `" + I + "` is marked as required " + ("in `" + A + "`, but its value is `null`.")) : new m("The " + M + " `" + I + "` is marked as required in " + ("`" + A + "`, but its value is `undefined`.")) : null : c(S, _, A, M, I);
379
379
  }
380
380
  var T = w.bind(null, !1);
381
381
  return T.isRequired = w.bind(null, !0), T;
382
382
  }
383
- function N(c) {
384
- function y(x, w, T, R, S, P) {
385
- var A = x[w], C = q(A);
386
- if (C !== c) {
387
- var I = K(A);
383
+ function C(c) {
384
+ function y(x, w, T, R, S, _) {
385
+ var A = x[w], M = q(A);
386
+ if (M !== c) {
387
+ var I = Q(A);
388
388
  return new m(
389
389
  "Invalid " + R + " `" + S + "` of type " + ("`" + I + "` supplied to `" + T + "`, expected ") + ("`" + c + "`."),
390
390
  { expectedType: c }
@@ -394,20 +394,20 @@ function Ft() {
394
394
  }
395
395
  return E(y);
396
396
  }
397
- function j() {
397
+ function D() {
398
398
  return E(i);
399
399
  }
400
400
  function O(c) {
401
401
  function y(x, w, T, R, S) {
402
402
  if (typeof c != "function")
403
403
  return new m("Property `" + S + "` of component `" + T + "` has invalid PropType notation inside arrayOf.");
404
- var P = x[w];
405
- if (!Array.isArray(P)) {
406
- var A = q(P);
404
+ var _ = x[w];
405
+ if (!Array.isArray(_)) {
406
+ var A = q(_);
407
407
  return new m("Invalid " + R + " `" + S + "` of type " + ("`" + A + "` supplied to `" + T + "`, expected an array."));
408
408
  }
409
- for (var C = 0; C < P.length; C++) {
410
- var I = c(P, C, T, R, S + "[" + C + "]", t);
409
+ for (var M = 0; M < _.length; M++) {
410
+ var I = c(_, M, T, R, S + "[" + M + "]", t);
411
411
  if (I instanceof Error)
412
412
  return I;
413
413
  }
@@ -419,8 +419,8 @@ function Ft() {
419
419
  function c(y, x, w, T, R) {
420
420
  var S = y[x];
421
421
  if (!u(S)) {
422
- var P = q(S);
423
- return new m("Invalid " + T + " `" + R + "` of type " + ("`" + P + "` supplied to `" + w + "`, expected a single ReactElement."));
422
+ var _ = q(S);
423
+ return new m("Invalid " + T + " `" + R + "` of type " + ("`" + _ + "` supplied to `" + w + "`, expected a single ReactElement."));
424
424
  }
425
425
  return null;
426
426
  }
@@ -430,8 +430,8 @@ function Ft() {
430
430
  function c(y, x, w, T, R) {
431
431
  var S = y[x];
432
432
  if (!e.isValidElementType(S)) {
433
- var P = q(S);
434
- return new m("Invalid " + T + " `" + R + "` of type " + ("`" + P + "` supplied to `" + w + "`, expected a single ReactElement type."));
433
+ var _ = q(S);
434
+ return new m("Invalid " + T + " `" + R + "` of type " + ("`" + _ + "` supplied to `" + w + "`, expected a single ReactElement type."));
435
435
  }
436
436
  return null;
437
437
  }
@@ -440,8 +440,8 @@ function Ft() {
440
440
  function k(c) {
441
441
  function y(x, w, T, R, S) {
442
442
  if (!(x[w] instanceof c)) {
443
- var P = c.name || p, A = ie(x[w]);
444
- return new m("Invalid " + R + " `" + S + "` of type " + ("`" + A + "` supplied to `" + T + "`, expected ") + ("instance of `" + P + "`."));
443
+ var _ = c.name || p, A = ie(x[w]);
444
+ return new m("Invalid " + R + " `" + S + "` of type " + ("`" + A + "` supplied to `" + T + "`, expected ") + ("instance of `" + _ + "`."));
445
445
  }
446
446
  return null;
447
447
  }
@@ -453,14 +453,14 @@ function Ft() {
453
453
  "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])."
454
454
  ) : a("Invalid argument supplied to oneOf, expected an array.")), i;
455
455
  function y(x, w, T, R, S) {
456
- for (var P = x[w], A = 0; A < c.length; A++)
457
- if (g(P, c[A]))
456
+ for (var _ = x[w], A = 0; A < c.length; A++)
457
+ if (g(_, c[A]))
458
458
  return null;
459
- var C = JSON.stringify(c, function(L, l) {
460
- var U = K(l);
459
+ var M = JSON.stringify(c, function(L, l) {
460
+ var U = Q(l);
461
461
  return U === "symbol" ? String(l) : l;
462
462
  });
463
- return new m("Invalid " + R + " `" + S + "` of value `" + String(P) + "` " + ("supplied to `" + T + "`, expected one of " + C + "."));
463
+ return new m("Invalid " + R + " `" + S + "` of value `" + String(_) + "` " + ("supplied to `" + T + "`, expected one of " + M + "."));
464
464
  }
465
465
  return E(y);
466
466
  }
@@ -468,12 +468,12 @@ function Ft() {
468
468
  function y(x, w, T, R, S) {
469
469
  if (typeof c != "function")
470
470
  return new m("Property `" + S + "` of component `" + T + "` has invalid PropType notation inside objectOf.");
471
- var P = x[w], A = q(P);
471
+ var _ = x[w], A = q(_);
472
472
  if (A !== "object")
473
473
  return new m("Invalid " + R + " `" + S + "` of type " + ("`" + A + "` supplied to `" + T + "`, expected an object."));
474
- for (var C in P)
475
- if (n(P, C)) {
476
- var I = c(P, C, T, R, S + "." + C, t);
474
+ for (var M in _)
475
+ if (n(_, M)) {
476
+ var I = c(_, M, T, R, S + "." + M, t);
477
477
  if (I instanceof Error)
478
478
  return I;
479
479
  }
@@ -491,39 +491,39 @@ function Ft() {
491
491
  "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ae(x) + " at index " + y + "."
492
492
  ), i;
493
493
  }
494
- function w(T, R, S, P, A) {
495
- for (var C = [], I = 0; I < c.length; I++) {
496
- var L = c[I], l = L(T, R, S, P, A, t);
494
+ function w(T, R, S, _, A) {
495
+ for (var M = [], I = 0; I < c.length; I++) {
496
+ var L = c[I], l = L(T, R, S, _, A, t);
497
497
  if (l == null)
498
498
  return null;
499
- l.data && n(l.data, "expectedType") && C.push(l.data.expectedType);
499
+ l.data && n(l.data, "expectedType") && M.push(l.data.expectedType);
500
500
  }
501
- var U = C.length > 0 ? ", expected one of type [" + C.join(", ") + "]" : "";
502
- return new m("Invalid " + P + " `" + A + "` supplied to " + ("`" + S + "`" + U + "."));
501
+ var U = M.length > 0 ? ", expected one of type [" + M.join(", ") + "]" : "";
502
+ return new m("Invalid " + _ + " `" + A + "` supplied to " + ("`" + S + "`" + U + "."));
503
503
  }
504
504
  return E(w);
505
505
  }
506
- function _() {
506
+ function J() {
507
507
  function c(y, x, w, T, R) {
508
- return J(y[x]) ? null : new m("Invalid " + T + " `" + R + "` supplied to " + ("`" + w + "`, expected a ReactNode."));
508
+ return K(y[x]) ? null : new m("Invalid " + T + " `" + R + "` supplied to " + ("`" + w + "`, expected a ReactNode."));
509
509
  }
510
510
  return E(c);
511
511
  }
512
- function V(c, y, x, w, T) {
512
+ function P(c, y, x, w, T) {
513
513
  return new m(
514
514
  (c || "React class") + ": " + y + " type `" + x + "." + w + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + T + "`."
515
515
  );
516
516
  }
517
- function ne(c) {
517
+ function V(c) {
518
518
  function y(x, w, T, R, S) {
519
- var P = x[w], A = q(P);
519
+ var _ = x[w], A = q(_);
520
520
  if (A !== "object")
521
521
  return new m("Invalid " + R + " `" + S + "` of type `" + A + "` " + ("supplied to `" + T + "`, expected `object`."));
522
- for (var C in c) {
523
- var I = c[C];
522
+ for (var M in c) {
523
+ var I = c[M];
524
524
  if (typeof I != "function")
525
- return V(T, R, S, C, K(I));
526
- var L = I(P, C, T, R, S + "." + C, t);
525
+ return P(T, R, S, M, Q(I));
526
+ var L = I(_, M, T, R, S + "." + M, t);
527
527
  if (L)
528
528
  return L;
529
529
  }
@@ -531,22 +531,22 @@ function Ft() {
531
531
  }
532
532
  return E(y);
533
533
  }
534
- function Z(c) {
534
+ function ee(c) {
535
535
  function y(x, w, T, R, S) {
536
- var P = x[w], A = q(P);
536
+ var _ = x[w], A = q(_);
537
537
  if (A !== "object")
538
538
  return new m("Invalid " + R + " `" + S + "` of type `" + A + "` " + ("supplied to `" + T + "`, expected `object`."));
539
- var C = r({}, x[w], c);
540
- for (var I in C) {
539
+ var M = r({}, x[w], c);
540
+ for (var I in M) {
541
541
  var L = c[I];
542
542
  if (n(c, I) && typeof L != "function")
543
- return V(T, R, S, I, K(L));
543
+ return P(T, R, S, I, Q(L));
544
544
  if (!L)
545
545
  return new m(
546
546
  "Invalid " + R + " `" + S + "` key `" + I + "` supplied to `" + T + "`.\nBad object: " + JSON.stringify(x[w], null, " ") + `
547
547
  Valid keys: ` + JSON.stringify(Object.keys(c), null, " ")
548
548
  );
549
- var l = L(P, I, T, R, S + "." + I, t);
549
+ var l = L(_, I, T, R, S + "." + I, t);
550
550
  if (l)
551
551
  return l;
552
552
  }
@@ -554,7 +554,7 @@ Valid keys: ` + JSON.stringify(Object.keys(c), null, " ")
554
554
  }
555
555
  return E(y);
556
556
  }
557
- function J(c) {
557
+ function K(c) {
558
558
  switch (typeof c) {
559
559
  case "number":
560
560
  case "string":
@@ -564,7 +564,7 @@ Valid keys: ` + JSON.stringify(Object.keys(c), null, " ")
564
564
  return !c;
565
565
  case "object":
566
566
  if (Array.isArray(c))
567
- return c.every(J);
567
+ return c.every(K);
568
568
  if (c === null || u(c))
569
569
  return !0;
570
570
  var y = d(c);
@@ -572,12 +572,12 @@ Valid keys: ` + JSON.stringify(Object.keys(c), null, " ")
572
572
  var x = y.call(c), w;
573
573
  if (y !== c.entries) {
574
574
  for (; !(w = x.next()).done; )
575
- if (!J(w.value))
575
+ if (!K(w.value))
576
576
  return !1;
577
577
  } else
578
578
  for (; !(w = x.next()).done; ) {
579
579
  var T = w.value;
580
- if (T && !J(T[1]))
580
+ if (T && !K(T[1]))
581
581
  return !1;
582
582
  }
583
583
  } else
@@ -594,7 +594,7 @@ Valid keys: ` + JSON.stringify(Object.keys(c), null, " ")
594
594
  var y = typeof c;
595
595
  return Array.isArray(c) ? "array" : c instanceof RegExp ? "object" : oe(y, c) ? "symbol" : y;
596
596
  }
597
- function K(c) {
597
+ function Q(c) {
598
598
  if (typeof c > "u" || c === null)
599
599
  return "" + c;
600
600
  var y = q(c);
@@ -607,7 +607,7 @@ Valid keys: ` + JSON.stringify(Object.keys(c), null, " ")
607
607
  return y;
608
608
  }
609
609
  function ae(c) {
610
- var y = K(c);
610
+ var y = Q(c);
611
611
  switch (y) {
612
612
  case "array":
613
613
  case "object":
@@ -679,8 +679,8 @@ if (process.env.NODE_ENV !== "production") {
679
679
  ke.exports = Ft()(At.isElement, It);
680
680
  } else
681
681
  ke.exports = Rt()();
682
- var D = ke.exports;
683
- const Rr = /* @__PURE__ */ wt(D);
682
+ var j = ke.exports;
683
+ const Rr = /* @__PURE__ */ wt(j);
684
684
  var Le = "data-focus-lock", Ar = "data-focus-lock-disabled", Ct = "data-no-focus-lock", Mt = "data-autofocus-inside", $t = "data-no-autofocus";
685
685
  function Me(e, r) {
686
686
  return typeof e == "function" ? e(r) : e && (e.current = r), e;
@@ -706,14 +706,14 @@ function Nt(e, r) {
706
706
  })[0];
707
707
  return t.callback = r, t.facade;
708
708
  }
709
- var jt = typeof window < "u" ? ir.useLayoutEffect : ir.useEffect, br = /* @__PURE__ */ new WeakMap();
710
- function Dt(e, r) {
709
+ var Dt = typeof window < "u" ? ir.useLayoutEffect : ir.useEffect, br = /* @__PURE__ */ new WeakMap();
710
+ function jt(e, r) {
711
711
  var t = Nt(null, function(n) {
712
712
  return e.forEach(function(o) {
713
713
  return Me(o, n);
714
714
  });
715
715
  });
716
- return jt(function() {
716
+ return Dt(function() {
717
717
  var n = br.get(t);
718
718
  if (n) {
719
719
  var o = new Set(n), a = new Set(e), i = t.current;
@@ -821,106 +821,106 @@ var Mr = Ve({}, function(e) {
821
821
  async: !0,
822
822
  ssr: typeof document < "u"
823
823
  }), qt = /* @__PURE__ */ Sr(void 0), Ut = [], He = /* @__PURE__ */ Pr(function(r, t) {
824
- var n, o = fe(), a = o[0], i = o[1], u = we(), b = we(!1), f = we(null), v = fe({}), d = v[1], p = r.children, h = r.disabled, g = h === void 0 ? !1 : h, m = r.noFocusGuards, E = m === void 0 ? !1 : m, N = r.persistentFocus, j = N === void 0 ? !1 : N, O = r.crossFrame, F = O === void 0 ? !0 : O, s = r.autoFocus, k = s === void 0 ? !0 : s, B = r.allowTextSelection, G = r.group, z = r.className, _ = r.whiteList, V = r.hasPositiveIndices, ne = r.shards, Z = ne === void 0 ? Ut : ne, J = r.as, oe = J === void 0 ? "div" : J, q = r.lockProps, K = q === void 0 ? {} : q, ae = r.sideCar, ie = r.returnFocus, c = ie === void 0 ? !1 : ie, y = r.focusOptions, x = r.onActivation, w = r.onDeactivation, T = fe({}), R = T[0], S = pe(function(Q) {
825
- var ce = Q.captureFocusRestore;
824
+ var n, o = fe(), a = o[0], i = o[1], u = we(), b = we(!1), f = we(null), v = fe({}), d = v[1], p = r.children, h = r.disabled, g = h === void 0 ? !1 : h, m = r.noFocusGuards, E = m === void 0 ? !1 : m, C = r.persistentFocus, D = C === void 0 ? !1 : C, O = r.crossFrame, F = O === void 0 ? !0 : O, s = r.autoFocus, k = s === void 0 ? !0 : s, B = r.allowTextSelection, G = r.group, z = r.className, J = r.whiteList, P = r.hasPositiveIndices, V = r.shards, ee = V === void 0 ? Ut : V, K = r.as, oe = K === void 0 ? "div" : K, q = r.lockProps, Q = q === void 0 ? {} : q, ae = r.sideCar, ie = r.returnFocus, c = ie === void 0 ? !1 : ie, y = r.focusOptions, x = r.onActivation, w = r.onDeactivation, T = fe({}), R = T[0], S = pe(function(X) {
825
+ var ce = X.captureFocusRestore;
826
826
  if (!f.current) {
827
- var se, ee = (se = document) == null ? void 0 : se.activeElement;
828
- f.current = ee, ee !== document.body && (f.current = ce(ee));
827
+ var se, re = (se = document) == null ? void 0 : se.activeElement;
828
+ f.current = re, re !== document.body && (f.current = ce(re));
829
829
  }
830
830
  u.current && x && x(u.current), b.current = !0, d();
831
- }, [x]), P = pe(function() {
831
+ }, [x]), _ = pe(function() {
832
832
  b.current = !1, w && w(u.current), d();
833
- }, [w]), A = pe(function(Q) {
833
+ }, [w]), A = pe(function(X) {
834
834
  var ce = f.current;
835
835
  if (ce) {
836
- var se = (typeof ce == "function" ? ce() : ce) || document.body, ee = typeof c == "function" ? c(se) : c;
837
- if (ee) {
838
- var ar = typeof ee == "object" ? ee : void 0;
839
- f.current = null, Q ? Promise.resolve().then(function() {
836
+ var se = (typeof ce == "function" ? ce() : ce) || document.body, re = typeof c == "function" ? c(se) : c;
837
+ if (re) {
838
+ var ar = typeof re == "object" ? re : void 0;
839
+ f.current = null, X ? Promise.resolve().then(function() {
840
840
  return se.focus(ar);
841
841
  }) : se.focus(ar);
842
842
  }
843
843
  }
844
- }, [c]), C = pe(function(Q) {
845
- b.current && Mr.useMedium(Q);
846
- }, []), I = $r.useMedium, L = pe(function(Q) {
847
- u.current !== Q && (u.current = Q, i(Q));
844
+ }, [c]), M = pe(function(X) {
845
+ b.current && Mr.useMedium(X);
846
+ }, []), I = $r.useMedium, L = pe(function(X) {
847
+ u.current !== X && (u.current = X, i(X));
848
848
  }, []);
849
849
  process.env.NODE_ENV !== "production" && (typeof B < "u" && console.warn("React-Focus-Lock: allowTextSelection is deprecated and enabled by default"), xe(function() {
850
850
  !u.current && typeof oe != "string" && console.error("FocusLock: could not obtain ref to internal node");
851
851
  }, []));
852
- var l = me((n = {}, n[Ar] = g && "disabled", n[Le] = G, n), K), U = E !== !0, ue = U && E !== "tail", Te = Dt([t, L]), vt = mt(function() {
852
+ var l = me((n = {}, n[Ar] = g && "disabled", n[Le] = G, n), Q), U = E !== !0, ue = U && E !== "tail", Te = jt([t, L]), vt = mt(function() {
853
853
  return {
854
854
  observed: u,
855
- shards: Z,
855
+ shards: ee,
856
856
  enabled: !g,
857
857
  get active() {
858
858
  return b.current;
859
859
  }
860
860
  };
861
- }, [g, b, Z, u]);
862
- return /* @__PURE__ */ X.createElement(bt, null, U && [
863
- /* @__PURE__ */ X.createElement("div", {
861
+ }, [g, b, ee, u]);
862
+ return /* @__PURE__ */ Z.createElement(bt, null, U && [
863
+ /* @__PURE__ */ Z.createElement("div", {
864
864
  key: "guard-first",
865
865
  "data-focus-guard": !0,
866
866
  tabIndex: g ? -1 : 0,
867
867
  style: $e
868
868
  }),
869
- V ? /* @__PURE__ */ X.createElement("div", {
869
+ P ? /* @__PURE__ */ Z.createElement("div", {
870
870
  key: "guard-nearest",
871
871
  "data-focus-guard": !0,
872
872
  tabIndex: g ? -1 : 1,
873
873
  style: $e
874
874
  }) : null
875
- ], !g && /* @__PURE__ */ X.createElement(ae, {
875
+ ], !g && /* @__PURE__ */ Z.createElement(ae, {
876
876
  id: R,
877
877
  sideCar: Wt,
878
878
  observed: a,
879
879
  disabled: g,
880
- persistentFocus: j,
880
+ persistentFocus: D,
881
881
  crossFrame: F,
882
882
  autoFocus: k,
883
- whiteList: _,
884
- shards: Z,
883
+ whiteList: J,
884
+ shards: ee,
885
885
  onActivation: S,
886
- onDeactivation: P,
886
+ onDeactivation: _,
887
887
  returnFocus: A,
888
888
  focusOptions: y,
889
889
  noFocusGuards: E
890
- }), /* @__PURE__ */ X.createElement(oe, me({
890
+ }), /* @__PURE__ */ Z.createElement(oe, me({
891
891
  ref: Te
892
892
  }, l, {
893
893
  className: z,
894
894
  onBlur: I,
895
- onFocus: C
896
- }), /* @__PURE__ */ X.createElement(qt.Provider, {
895
+ onFocus: M
896
+ }), /* @__PURE__ */ Z.createElement(qt.Provider, {
897
897
  value: vt
898
- }, p)), ue && /* @__PURE__ */ X.createElement("div", {
898
+ }, p)), ue && /* @__PURE__ */ Z.createElement("div", {
899
899
  "data-focus-guard": !0,
900
900
  tabIndex: g ? -1 : 0,
901
901
  style: $e
902
902
  }));
903
903
  });
904
904
  He.propTypes = process.env.NODE_ENV !== "production" ? {
905
- children: D.node,
906
- disabled: D.bool,
907
- returnFocus: D.oneOfType([D.bool, D.object, D.func]),
908
- focusOptions: D.object,
909
- noFocusGuards: D.bool,
910
- hasPositiveIndices: D.bool,
911
- allowTextSelection: D.bool,
912
- autoFocus: D.bool,
913
- persistentFocus: D.bool,
914
- crossFrame: D.bool,
915
- group: D.string,
916
- className: D.string,
917
- whiteList: D.func,
918
- shards: D.arrayOf(D.any),
919
- as: D.oneOfType([D.string, D.func, D.object]),
920
- lockProps: D.object,
921
- onActivation: D.func,
922
- onDeactivation: D.func,
923
- sideCar: D.any.isRequired
905
+ children: j.node,
906
+ disabled: j.bool,
907
+ returnFocus: j.oneOfType([j.bool, j.object, j.func]),
908
+ focusOptions: j.object,
909
+ noFocusGuards: j.bool,
910
+ hasPositiveIndices: j.bool,
911
+ allowTextSelection: j.bool,
912
+ autoFocus: j.bool,
913
+ persistentFocus: j.bool,
914
+ crossFrame: j.bool,
915
+ group: j.string,
916
+ className: j.string,
917
+ whiteList: j.func,
918
+ shards: j.arrayOf(j.any),
919
+ as: j.oneOfType([j.string, j.func, j.object]),
920
+ lockProps: j.object,
921
+ onActivation: j.func,
922
+ onDeactivation: j.func,
923
+ sideCar: j.any.isRequired
924
924
  } : {};
925
925
  function qe(e, r) {
926
926
  return qe = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, n) {
@@ -996,7 +996,7 @@ function Ht(e, r) {
996
996
  var h = a.indexOf(this);
997
997
  a.splice(h, 1), u();
998
998
  }, d.render = function() {
999
- return /* @__PURE__ */ X.createElement(o, this.props);
999
+ return /* @__PURE__ */ Z.createElement(o, this.props);
1000
1000
  }, v;
1001
1001
  }(ht);
1002
1002
  return Vt(b, "displayName", "SideEffect(" + t(o) + ")"), b;
@@ -1006,7 +1006,7 @@ var H = function(e) {
1006
1006
  for (var r = Array(e.length), t = 0; t < e.length; ++t)
1007
1007
  r[t] = e[t];
1008
1008
  return r;
1009
- }, te = function(e) {
1009
+ }, ne = function(e) {
1010
1010
  return Array.isArray(e) ? e : [e];
1011
1011
  }, Nr = function(e) {
1012
1012
  return Array.isArray(e) ? e[0] : e;
@@ -1015,17 +1015,17 @@ var H = function(e) {
1015
1015
  return !1;
1016
1016
  var r = window.getComputedStyle(e, null);
1017
1017
  return !r || !r.getPropertyValue ? !1 : r.getPropertyValue("display") === "none" || r.getPropertyValue("visibility") === "hidden";
1018
- }, jr = function(e) {
1018
+ }, Dr = function(e) {
1019
1019
  return e.parentNode && e.parentNode.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? (
1020
1020
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1021
1021
  e.parentNode.host
1022
1022
  ) : e.parentNode;
1023
- }, Dr = function(e) {
1023
+ }, jr = function(e) {
1024
1024
  return e === document || e && e.nodeType === Node.DOCUMENT_NODE;
1025
1025
  }, Jt = function(e) {
1026
1026
  return e.hasAttribute("inert");
1027
1027
  }, Kt = function(e, r) {
1028
- return !e || Dr(e) || !zt(e) && !Jt(e) && r(jr(e));
1028
+ return !e || jr(e) || !zt(e) && !Jt(e) && r(Dr(e));
1029
1029
  }, kr = function(e, r) {
1030
1030
  var t = e.get(r);
1031
1031
  if (t !== void 0)
@@ -1033,7 +1033,7 @@ var H = function(e) {
1033
1033
  var n = Kt(r, kr.bind(void 0, e));
1034
1034
  return e.set(r, n), n;
1035
1035
  }, Qt = function(e, r) {
1036
- return e && !Dr(e) ? en(e) ? r(jr(e)) : !1 : !0;
1036
+ return e && !jr(e) ? en(e) ? r(Dr(e)) : !1 : !0;
1037
1037
  }, Lr = function(e, r) {
1038
1038
  var t = e.get(r);
1039
1039
  if (t !== void 0)
@@ -1144,14 +1144,14 @@ var H = function(e) {
1144
1144
  return Je(Qe(ve(e), r), !1);
1145
1145
  }, sn = function(e, r) {
1146
1146
  return Qe(cn(e), r);
1147
- }, re = function(e, r) {
1148
- return e.shadowRoot ? re(e.shadowRoot, r) : Object.getPrototypeOf(e).contains !== void 0 && Object.getPrototypeOf(e).contains.call(e, r) ? !0 : H(e.children).some(function(t) {
1147
+ }, te = function(e, r) {
1148
+ return e.shadowRoot ? te(e.shadowRoot, r) : Object.getPrototypeOf(e).contains !== void 0 && Object.getPrototypeOf(e).contains.call(e, r) ? !0 : H(e.children).some(function(t) {
1149
1149
  var n;
1150
1150
  if (t instanceof HTMLIFrameElement) {
1151
1151
  var o = (n = t.contentDocument) === null || n === void 0 ? void 0 : n.body;
1152
- return o ? re(o, r) : !1;
1152
+ return o ? te(o, r) : !1;
1153
1153
  }
1154
- return re(t, r);
1154
+ return te(t, r);
1155
1155
  });
1156
1156
  }, fn = function(e) {
1157
1157
  for (var r = /* @__PURE__ */ new Set(), t = e.length, n = 0; n < t; n += 1)
@@ -1165,7 +1165,7 @@ var H = function(e) {
1165
1165
  }, Yr = function(e) {
1166
1166
  return e.parentNode ? Yr(e.parentNode) : e;
1167
1167
  }, Ze = function(e) {
1168
- var r = te(e);
1168
+ var r = ne(e);
1169
1169
  return r.filter(Boolean).reduce(function(t, n) {
1170
1170
  var o = n.getAttribute(Le);
1171
1171
  return t.push.apply(t, o ? fn(H(Yr(n).querySelectorAll("[".concat(Le, '="').concat(o, '"]:not([').concat(Ar, '="disabled"])')))) : [n]), t;
@@ -1191,13 +1191,13 @@ var H = function(e) {
1191
1191
  });
1192
1192
  }, Gr = function(e, r) {
1193
1193
  return r === void 0 && (r = ge(Nr(e).ownerDocument)), !r || r.dataset && r.dataset.focusGuard ? !1 : Ze(e).some(function(t) {
1194
- return re(t, r) || vn(t, r);
1194
+ return te(t, r) || vn(t, r);
1195
1195
  });
1196
1196
  }, pn = function(e) {
1197
1197
  e === void 0 && (e = document);
1198
1198
  var r = ge(e);
1199
1199
  return r ? H(e.querySelectorAll("[".concat(Ct, "]"))).some(function(t) {
1200
- return re(t, r);
1200
+ return te(t, r);
1201
1201
  }) : !1;
1202
1202
  }, yn = function(e, r) {
1203
1203
  return r.filter(Ur).filter(function(t) {
@@ -1226,14 +1226,14 @@ var H = function(e) {
1226
1226
  return d !== -1 ? d : Be;
1227
1227
  if (d === -1)
1228
1228
  return Be;
1229
- var p = f - v, h = t.indexOf(i), g = t.indexOf(u), m = mn(t), E = n !== void 0 ? m.indexOf(n) : -1, N = o ? m.indexOf(o) : E, j = m.filter(function(G) {
1229
+ var p = f - v, h = t.indexOf(i), g = t.indexOf(u), m = mn(t), E = n !== void 0 ? m.indexOf(n) : -1, C = o ? m.indexOf(o) : E, D = m.filter(function(G) {
1230
1230
  return G.tabIndex >= 0;
1231
- }), O = n !== void 0 ? j.indexOf(n) : -1, F = o ? j.indexOf(o) : O, s = O >= 0 && F >= 0 ? (
1231
+ }), O = n !== void 0 ? D.indexOf(n) : -1, F = o ? D.indexOf(o) : O, s = O >= 0 && F >= 0 ? (
1232
1232
  // old/new are tabbables, measure distance in tabbable space
1233
1233
  F - O
1234
1234
  ) : (
1235
1235
  // or else measure in focusable space
1236
- N - E
1236
+ C - E
1237
1237
  );
1238
1238
  if (!p && d >= 0 || r.length === 0)
1239
1239
  return d;
@@ -1277,11 +1277,11 @@ var H = function(e) {
1277
1277
  }
1278
1278
  return !1;
1279
1279
  }, Vr = function(e, r, t) {
1280
- var n = te(e), o = te(r), a = n[0], i = !1;
1280
+ var n = ne(e), o = ne(r), a = n[0], i = !1;
1281
1281
  return o.filter(Boolean).forEach(function(u) {
1282
1282
  i = Ne(i || u, u) || i, t.filter(Boolean).forEach(function(b) {
1283
1283
  var f = Ne(a, b);
1284
- f && (!i || re(f, i) ? i = f : i = Ne(f, i));
1284
+ f && (!i || te(f, i) ? i = f : i = Ne(f, i));
1285
1285
  });
1286
1286
  }), i;
1287
1287
  }, Or = function(e, r) {
@@ -1296,7 +1296,7 @@ var H = function(e) {
1296
1296
  return t.get(n);
1297
1297
  }).filter(rn);
1298
1298
  }, En = function(e, r) {
1299
- var t = ge(te(e).length > 0 ? document : Nr(e).ownerDocument), n = Ze(e).filter(Ue), o = Vr(t || e, e, n), a = /* @__PURE__ */ new Map(), i = he(n, a), u = i.filter(function(g) {
1299
+ var t = ge(ne(e).length > 0 ? document : Nr(e).ownerDocument), n = Ze(e).filter(Ue), o = Vr(t || e, e, n), a = /* @__PURE__ */ new Map(), i = he(n, a), u = i.filter(function(g) {
1300
1300
  var m = g.node;
1301
1301
  return Ue(m);
1302
1302
  });
@@ -1339,17 +1339,17 @@ var H = function(e) {
1339
1339
  });
1340
1340
  }, rr = function(e, r) {
1341
1341
  e && ("focus" in e && e.focus(r), "contentWindow" in e && e.contentWindow && e.contentWindow.focus());
1342
- }, je = 0, De = !1, Hr = function(e, r, t) {
1342
+ }, De = 0, je = !1, Hr = function(e, r, t) {
1343
1343
  t === void 0 && (t = {});
1344
1344
  var n = En(e, r);
1345
- if (!De && n) {
1346
- if (je > 2) {
1347
- console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"), De = !0, setTimeout(function() {
1348
- De = !1;
1345
+ if (!je && n) {
1346
+ if (De > 2) {
1347
+ console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"), je = !0, setTimeout(function() {
1348
+ je = !1;
1349
1349
  }, 1);
1350
1350
  return;
1351
1351
  }
1352
- je++, rr(n.node, t.focusOptions), je--;
1352
+ De++, rr(n.node, t.focusOptions), De--;
1353
1353
  }
1354
1354
  };
1355
1355
  function ye(e) {
@@ -1385,7 +1385,7 @@ var On = function(e) {
1385
1385
  for (var i = e.stack, u = e.ownerDocument, b = /* @__PURE__ */ new Map(), f = 0, v = i; f < v.length; f++) {
1386
1386
  var d = v[f], p = (r = d.parent) === null || r === void 0 ? void 0 : r.call(d);
1387
1387
  if (p && u.contains(p)) {
1388
- for (var h = (t = d.left) === null || t === void 0 ? void 0 : t.call(d), g = d.current(), m = p.contains(g) ? g : void 0, E = (n = d.right) === null || n === void 0 ? void 0 : n.call(d), N = Xe([p], b), j = (
1388
+ for (var h = (t = d.left) === null || t === void 0 ? void 0 : t.call(d), g = d.current(), m = p.contains(g) ? g : void 0, E = (n = d.right) === null || n === void 0 ? void 0 : n.call(d), C = Xe([p], b), D = (
1389
1389
  // that is element itself
1390
1390
  (a = (o = m ?? // or something in it's place
1391
1391
  (h == null ? void 0 : h.nextElementSibling)) !== null && o !== void 0 ? o : (
@@ -1395,16 +1395,16 @@ var On = function(e) {
1395
1395
  // or somebody to the left, something?
1396
1396
  h
1397
1397
  )
1398
- ); j; ) {
1399
- for (var O = 0, F = N; O < F.length; O++) {
1398
+ ); D; ) {
1399
+ for (var O = 0, F = C; O < F.length; O++) {
1400
1400
  var s = F[O];
1401
- if (j != null && j.contains(s.node))
1401
+ if (D != null && D.contains(s.node))
1402
1402
  return s.node;
1403
1403
  }
1404
- j = j.nextElementSibling;
1404
+ D = D.nextElementSibling;
1405
1405
  }
1406
- if (N.length)
1407
- return N[0].node;
1406
+ if (C.length)
1407
+ return C[0].node;
1408
1408
  }
1409
1409
  }
1410
1410
  }, zr = function(e) {
@@ -1415,9 +1415,9 @@ var On = function(e) {
1415
1415
  }, xn = function(e, r, t) {
1416
1416
  if (!e || !r)
1417
1417
  return console.error("no element or scope given"), {};
1418
- var n = te(r);
1418
+ var n = ne(r);
1419
1419
  if (n.every(function(i) {
1420
- return !re(i, e);
1420
+ return !te(i, e);
1421
1421
  }))
1422
1422
  return console.error("Active element is not contained in the scope"), {};
1423
1423
  var o = t ? Xe(n, /* @__PURE__ */ new Map()) : he(n, /* @__PURE__ */ new Map()), a = o.findIndex(function(i) {
@@ -1432,7 +1432,7 @@ var On = function(e) {
1432
1432
  last: o[o.length - 1]
1433
1433
  };
1434
1434
  }, Sn = function(e, r) {
1435
- var t = r ? Xe(te(e), /* @__PURE__ */ new Map()) : he(te(e), /* @__PURE__ */ new Map());
1435
+ var t = r ? Xe(ne(e), /* @__PURE__ */ new Map()) : he(ne(e), /* @__PURE__ */ new Map());
1436
1436
  return {
1437
1437
  first: t[0],
1438
1438
  last: t[t.length - 1]
@@ -1488,7 +1488,7 @@ var In = function(r) {
1488
1488
  observerNode: r,
1489
1489
  portaledElement: t
1490
1490
  };
1491
- }, jn = function(r) {
1491
+ }, Dn = function(r) {
1492
1492
  return le && le.portaledElement === r;
1493
1493
  };
1494
1494
  function xr(e, r, t, n) {
@@ -1506,7 +1506,7 @@ function xr(e, r, t, n) {
1506
1506
  } while ((a += t) !== r);
1507
1507
  o && (o.node.tabIndex = 0);
1508
1508
  }
1509
- var Dn = function(r) {
1509
+ var jn = function(r) {
1510
1510
  return r ? !!Ee : Ee === "meanwhile";
1511
1511
  }, kn = function e(r, t, n) {
1512
1512
  return t && (t.host === r && (!t.activeElement || n.contains(t.activeElement)) || t.parentNode && e(r, t.parentNode, n));
@@ -1531,7 +1531,7 @@ var Dn = function(r) {
1531
1531
  var p = document && document.activeElement;
1532
1532
  if (v) {
1533
1533
  var h = [v].concat(i.map(In).filter(Boolean)), g = function() {
1534
- if (!Dn(u) || !f || !W || nr)
1534
+ if (!jn(u) || !f || !W || nr)
1535
1535
  return !1;
1536
1536
  var O = Xr(h), F = O.findIndex(function(s) {
1537
1537
  var k = s.node;
@@ -1539,20 +1539,20 @@ var Dn = function(r) {
1539
1539
  });
1540
1540
  return F === 0 || F === O.length - 1;
1541
1541
  };
1542
- if ((!p || $n(p)) && (o || g() || !Cn() || !W && a) && (v && !(Gr(h) || p && Ln(p, h) || jn(p)) && (document && !W && p && !a ? (p.blur && p.blur(), document.body.focus()) : (r = Hr(h, W, {
1542
+ if ((!p || $n(p)) && (o || g() || !Cn() || !W && a) && (v && !(Gr(h) || p && Ln(p, h) || Dn(p)) && (document && !W && p && !a ? (p.blur && p.blur(), document.body.focus()) : (r = Hr(h, W, {
1543
1543
  focusOptions: b
1544
1544
  }), le = {})), W = document && document.activeElement, W !== document.body && (wr = zr(W)), Ee = !1), document && p !== document.activeElement && document.querySelector("[data-focus-auto-guard]")) {
1545
- var m = document && document.activeElement, E = Tn(h), N = E.map(function(j) {
1546
- var O = j.node;
1545
+ var m = document && document.activeElement, E = Tn(h), C = E.map(function(D) {
1546
+ var O = D.node;
1547
1547
  return O;
1548
1548
  }).indexOf(m);
1549
- N > -1 && (E.filter(function(j) {
1550
- var O = j.guard, F = j.node;
1549
+ C > -1 && (E.filter(function(D) {
1550
+ var O = D.guard, F = D.node;
1551
1551
  return O && F.dataset.focusAutoGuard;
1552
- }).forEach(function(j) {
1553
- var O = j.node;
1552
+ }).forEach(function(D) {
1553
+ var O = D.node;
1554
1554
  return O.removeAttribute("tabIndex");
1555
- }), xr(N, E.length, 1, E), xr(N, -1, -1, E));
1555
+ }), xr(C, E.length, 1, E), xr(C, -1, -1, E));
1556
1556
  }
1557
1557
  }
1558
1558
  }
@@ -1610,7 +1610,7 @@ Lt.assignMedium(function(e) {
1610
1610
  });
1611
1611
  const Hn = Ht(Gn, Vn)(Un);
1612
1612
  var nt = /* @__PURE__ */ Pr(function(r, t) {
1613
- return /* @__PURE__ */ X.createElement(He, me({
1613
+ return /* @__PURE__ */ Z.createElement(He, me({
1614
1614
  sideCar: Hn,
1615
1615
  ref: t
1616
1616
  }, r));
@@ -1662,35 +1662,37 @@ const Pe = ({
1662
1662
  width: g,
1663
1663
  height: m,
1664
1664
  position: E,
1665
- style: N,
1666
- className: j,
1665
+ style: C,
1666
+ className: D,
1667
1667
  href: O,
1668
1668
  target: F,
1669
1669
  rel: s,
1670
1670
  htmlFor: k,
1671
1671
  type: B,
1672
- disabled: G,
1673
- ...z
1672
+ name: G,
1673
+ disabled: z,
1674
+ ...J
1674
1675
  }) => {
1675
- const _ = {};
1676
- n && (_.display = n), g && (_.width = g), m && (_.height = m), E && (_.position = E), o && (_.margin = `var(--pittorica-space-${o})`), a && (_.marginTop = `var(--pittorica-space-${a})`), i && (_.marginRight = `var(--pittorica-space-${i})`), u && (_.marginBottom = `var(--pittorica-space-${u})`), b && (_.marginLeft = `var(--pittorica-space-${b})`), f && (_.padding = `var(--pittorica-space-${f})`), v && (_.paddingTop = `var(--pittorica-space-${v})`), d && (_.paddingRight = `var(--pittorica-space-${d})`), p && (_.paddingBottom = `var(--pittorica-space-${p})`), h && (_.paddingLeft = `var(--pittorica-space-${h})`);
1676
+ const P = {};
1677
+ n && (P.display = n), g && (P.width = g), m && (P.height = m), E && (P.position = E), o && (P.margin = `var(--pittorica-space-${o})`), a && (P.marginTop = `var(--pittorica-space-${a})`), i && (P.marginRight = `var(--pittorica-space-${i})`), u && (P.marginBottom = `var(--pittorica-space-${u})`), b && (P.marginLeft = `var(--pittorica-space-${b})`), f && (P.padding = `var(--pittorica-space-${f})`), v && (P.paddingTop = `var(--pittorica-space-${v})`), d && (P.paddingRight = `var(--pittorica-space-${d})`), p && (P.paddingBottom = `var(--pittorica-space-${p})`), h && (P.paddingLeft = `var(--pittorica-space-${h})`);
1677
1678
  const V = {
1678
- ...N,
1679
- ..._
1679
+ ...C,
1680
+ ...P
1680
1681
  };
1681
1682
  return /* @__PURE__ */ Y(
1682
1683
  r,
1683
1684
  {
1684
1685
  ref: e,
1685
- className: Kn("pittorica-box", j),
1686
+ className: Kn("pittorica-box", D),
1686
1687
  style: V,
1687
1688
  href: O,
1688
1689
  target: F,
1689
1690
  rel: s,
1690
1691
  htmlFor: k,
1691
1692
  type: B,
1692
- disabled: G,
1693
- ...z,
1693
+ name: G,
1694
+ disabled: z,
1695
+ ...J,
1694
1696
  children: t
1695
1697
  }
1696
1698
  );
@@ -1753,35 +1755,37 @@ const ft = ({
1753
1755
  width: g,
1754
1756
  height: m,
1755
1757
  position: E,
1756
- style: N,
1757
- className: j,
1758
+ style: C,
1759
+ className: D,
1758
1760
  href: O,
1759
1761
  target: F,
1760
1762
  rel: s,
1761
1763
  htmlFor: k,
1762
1764
  type: B,
1763
- disabled: G,
1764
- ...z
1765
+ name: G,
1766
+ disabled: z,
1767
+ ...J
1765
1768
  }) => {
1766
- const _ = {};
1767
- n && (_.display = n), g && (_.width = g), m && (_.height = m), E && (_.position = E), o && (_.margin = `var(--pittorica-space-${o})`), a && (_.marginTop = `var(--pittorica-space-${a})`), i && (_.marginRight = `var(--pittorica-space-${i})`), u && (_.marginBottom = `var(--pittorica-space-${u})`), b && (_.marginLeft = `var(--pittorica-space-${b})`), f && (_.padding = `var(--pittorica-space-${f})`), v && (_.paddingTop = `var(--pittorica-space-${v})`), d && (_.paddingRight = `var(--pittorica-space-${d})`), p && (_.paddingBottom = `var(--pittorica-space-${p})`), h && (_.paddingLeft = `var(--pittorica-space-${h})`);
1769
+ const P = {};
1770
+ n && (P.display = n), g && (P.width = g), m && (P.height = m), E && (P.position = E), o && (P.margin = `var(--pittorica-space-${o})`), a && (P.marginTop = `var(--pittorica-space-${a})`), i && (P.marginRight = `var(--pittorica-space-${i})`), u && (P.marginBottom = `var(--pittorica-space-${u})`), b && (P.marginLeft = `var(--pittorica-space-${b})`), f && (P.padding = `var(--pittorica-space-${f})`), v && (P.paddingTop = `var(--pittorica-space-${v})`), d && (P.paddingRight = `var(--pittorica-space-${d})`), p && (P.paddingBottom = `var(--pittorica-space-${p})`), h && (P.paddingLeft = `var(--pittorica-space-${h})`);
1768
1771
  const V = {
1769
- ...N,
1770
- ..._
1772
+ ...C,
1773
+ ...P
1771
1774
  };
1772
1775
  return /* @__PURE__ */ Y(
1773
1776
  r,
1774
1777
  {
1775
1778
  ref: e,
1776
- className: Zn("pittorica-box", j),
1779
+ className: Zn("pittorica-box", D),
1777
1780
  style: V,
1778
1781
  href: O,
1779
1782
  target: F,
1780
1783
  rel: s,
1781
1784
  htmlFor: k,
1782
1785
  type: B,
1783
- disabled: G,
1784
- ...z,
1786
+ name: G,
1787
+ disabled: z,
1788
+ ...J,
1785
1789
  children: t
1786
1790
  }
1787
1791
  );
@@ -1800,9 +1804,10 @@ const eo = ({
1800
1804
  target: f,
1801
1805
  rel: v,
1802
1806
  htmlFor: d,
1803
- ...p
1807
+ name: p,
1808
+ ...h
1804
1809
  }) => {
1805
- const h = (a == null ? void 0 : a.startsWith("#")) || (a == null ? void 0 : a.startsWith("rgb")) || (a == null ? void 0 : a.startsWith("hsl")), g = /* @__PURE__ */ new Set([
1810
+ const g = (a == null ? void 0 : a.startsWith("#")) || (a == null ? void 0 : a.startsWith("rgb")) || (a == null ? void 0 : a.startsWith("hsl")), m = /* @__PURE__ */ new Set([
1806
1811
  "danger",
1807
1812
  "success",
1808
1813
  "error",
@@ -1814,13 +1819,13 @@ const eo = ({
1814
1819
  "slate",
1815
1820
  "blue",
1816
1821
  "red"
1817
- ]), m = (() => {
1822
+ ]), E = (() => {
1818
1823
  if (a)
1819
- return a === "inherit" ? "inherit" : h ? a : g.has(a) ? `var(--pittorica-${a}-9)` : a;
1820
- })(), E = {
1824
+ return a === "inherit" ? "inherit" : g ? a : m.has(a) ? `var(--pittorica-${a}-9)` : a;
1825
+ })(), C = {
1821
1826
  ...u,
1822
1827
  textAlign: n,
1823
- color: m
1828
+ color: E
1824
1829
  };
1825
1830
  return /* @__PURE__ */ Y(
1826
1831
  ft,
@@ -1832,12 +1837,13 @@ const eo = ({
1832
1837
  i
1833
1838
  ),
1834
1839
  "data-weight": t,
1835
- style: E,
1840
+ style: C,
1836
1841
  href: b,
1837
1842
  target: f,
1838
1843
  rel: v,
1839
1844
  htmlFor: d,
1840
- ...p,
1845
+ name: p,
1846
+ ...h,
1841
1847
  children: e
1842
1848
  }
1843
1849
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pittorica/dialog-react",
3
- "version": "0.23.0",
3
+ "version": "0.23.2",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -11,8 +11,8 @@
11
11
  "dependencies": {
12
12
  "clsx": "^2.1.1",
13
13
  "react-focus-lock": "^2.13.7",
14
- "@pittorica/box-react": "0.23.0",
15
- "@pittorica/heading-react": "0.23.0"
14
+ "@pittorica/box-react": "0.23.2",
15
+ "@pittorica/heading-react": "0.23.2"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@testing-library/jest-dom": "^6.9.1",
@@ -24,9 +24,9 @@
24
24
  "typescript": "^5.0.0",
25
25
  "vite": "^5.0.0",
26
26
  "vitest": "^2.1.9",
27
- "@pittorica/button-react": "0.23.0",
28
- "pittorica": "0.23.0",
29
- "@pittorica/theme-react": "0.23.0"
27
+ "@pittorica/theme-react": "0.23.2",
28
+ "@pittorica/button-react": "0.23.2",
29
+ "pittorica": "0.23.2"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "react": ">=19",