@pittorica/dialog-react 0.22.0 → 0.22.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.
Files changed (2) hide show
  1. package/dist/index.js +213 -219
  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 xe, useCallback as pe, useEffect as we, useMemo as mt, Fragment as bt, PureComponent as ht, useId as ur, useLayoutEffect as gt, useContext as Et } 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";
4
4
  import { createPortal as Tt } from "react-dom";
5
5
  function Ot(e, r) {
6
6
  if (e == null) return {};
@@ -20,10 +20,10 @@ function me() {
20
20
  return e;
21
21
  }, me.apply(null, arguments);
22
22
  }
23
- function xt(e) {
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: {} }, N = {};
26
+ var ke = { exports: {} }, Oe = { exports: {} }, M = {};
27
27
  /** @license React v16.13.1
28
28
  * react-is.production.min.js
29
29
  *
@@ -33,10 +33,10 @@ var ke = { exports: {} }, Oe = { exports: {} }, N = {};
33
33
  * LICENSE file in the root directory of this source tree.
34
34
  */
35
35
  var cr;
36
- function wt() {
37
- if (cr) return N;
36
+ function xt() {
37
+ if (cr) return M;
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, C = e ? Symbol.for("react.responder") : 60118, $ = 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, N = e ? Symbol.for("react.responder") : 60118, j = 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 wt() {
70
70
  function F(s) {
71
71
  return O(s) === f;
72
72
  }
73
- return N.AsyncMode = b, N.ConcurrentMode = f, N.ContextConsumer = u, N.ContextProvider = i, N.Element = r, N.ForwardRef = v, N.Fragment = n, N.Lazy = g, N.Memo = h, N.Portal = t, N.Profiler = a, N.StrictMode = o, N.Suspense = d, N.isAsyncMode = function(s) {
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) {
74
74
  return F(s) || O(s) === b;
75
- }, N.isConcurrentMode = F, N.isContextConsumer = function(s) {
75
+ }, M.isConcurrentMode = F, M.isContextConsumer = function(s) {
76
76
  return O(s) === u;
77
- }, N.isContextProvider = function(s) {
77
+ }, M.isContextProvider = function(s) {
78
78
  return O(s) === i;
79
- }, N.isElement = function(s) {
79
+ }, M.isElement = function(s) {
80
80
  return typeof s == "object" && s !== null && s.$$typeof === r;
81
- }, N.isForwardRef = function(s) {
81
+ }, M.isForwardRef = function(s) {
82
82
  return O(s) === v;
83
- }, N.isFragment = function(s) {
83
+ }, M.isFragment = function(s) {
84
84
  return O(s) === n;
85
- }, N.isLazy = function(s) {
85
+ }, M.isLazy = function(s) {
86
86
  return O(s) === g;
87
- }, N.isMemo = function(s) {
87
+ }, M.isMemo = function(s) {
88
88
  return O(s) === h;
89
- }, N.isPortal = function(s) {
89
+ }, M.isPortal = function(s) {
90
90
  return O(s) === t;
91
- }, N.isProfiler = function(s) {
91
+ }, M.isProfiler = function(s) {
92
92
  return O(s) === a;
93
- }, N.isStrictMode = function(s) {
93
+ }, M.isStrictMode = function(s) {
94
94
  return O(s) === o;
95
- }, N.isSuspense = function(s) {
95
+ }, M.isSuspense = function(s) {
96
96
  return O(s) === d;
97
- }, N.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 === $ || s.$$typeof === m);
99
- }, N.typeOf = O, N;
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;
100
100
  }
101
- var j = {};
101
+ var $ = {};
102
102
  /** @license React v16.13.1
103
103
  * react-is.development.js
104
104
  *
@@ -110,10 +110,10 @@ var j = {};
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, C = e ? Symbol.for("react.responder") : 60118, $ = 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, N = e ? Symbol.for("react.responder") : 60118, j = 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 === C || l.$$typeof === $ || 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 === N || l.$$typeof === j || l.$$typeof === m);
117
117
  }
118
118
  function F(l) {
119
119
  if (typeof l == "object" && l !== null) {
@@ -157,10 +157,10 @@ function St() {
157
157
  function y(l) {
158
158
  return F(l) === u;
159
159
  }
160
- function w(l) {
160
+ function x(l) {
161
161
  return F(l) === i;
162
162
  }
163
- function x(l) {
163
+ function w(l) {
164
164
  return typeof l == "object" && l !== null && l.$$typeof === r;
165
165
  }
166
166
  function T(l) {
@@ -178,7 +178,7 @@ function St() {
178
178
  function A(l) {
179
179
  return F(l) === t;
180
180
  }
181
- function M(l) {
181
+ function C(l) {
182
182
  return F(l) === a;
183
183
  }
184
184
  function I(l) {
@@ -187,12 +187,12 @@ function St() {
187
187
  function L(l) {
188
188
  return F(l) === d;
189
189
  }
190
- j.AsyncMode = s, j.ConcurrentMode = k, j.ContextConsumer = B, j.ContextProvider = G, j.Element = z, j.ForwardRef = _, j.Fragment = V, j.Lazy = ne, j.Memo = Z, j.Portal = J, j.Profiler = oe, j.StrictMode = q, j.Suspense = K, j.isAsyncMode = ie, j.isConcurrentMode = c, j.isContextConsumer = y, j.isContextProvider = w, j.isElement = x, j.isForwardRef = T, j.isFragment = R, j.isLazy = S, j.isMemo = P, j.isPortal = A, j.isProfiler = M, j.isStrictMode = I, j.isSuspense = L, j.isValidElementType = O, j.typeOf = F;
191
- }()), j;
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
+ }()), $;
192
192
  }
193
193
  var fr;
194
194
  function _r() {
195
- return fr || (fr = 1, process.env.NODE_ENV === "production" ? Oe.exports = wt() : Oe.exports = St()), Oe.exports;
195
+ return fr || (fr = 1, process.env.NODE_ENV === "production" ? Oe.exports = xt() : Oe.exports = St()), Oe.exports;
196
196
  }
197
197
  /*
198
198
  object-assign
@@ -330,15 +330,15 @@ function Ft() {
330
330
  return y;
331
331
  }
332
332
  var p = "<<anonymous>>", h = {
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: $(),
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(),
342
342
  arrayOf: O,
343
343
  element: F(),
344
344
  elementType: s(),
@@ -359,8 +359,8 @@ function Ft() {
359
359
  m.prototype = Error.prototype;
360
360
  function E(c) {
361
361
  if (process.env.NODE_ENV !== "production")
362
- var y = {}, w = 0;
363
- function x(R, S, P, A, M, I, L) {
362
+ var y = {}, x = 0;
363
+ function w(R, S, P, A, C, I, L) {
364
364
  if (A = A || p, I = I || P, L !== t) {
365
365
  if (b) {
366
366
  var l = new Error(
@@ -370,20 +370,20 @@ function Ft() {
370
370
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
371
371
  var U = A + ":" + P;
372
372
  !y[U] && // Avoid spamming the console because they are often not actionable except for lib authors
373
- w < 3 && (a(
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
- ), y[U] = !0, w++);
375
+ ), y[U] = !0, x++);
376
376
  }
377
377
  }
378
- return S[P] == null ? R ? S[P] === 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, P, A, M, I);
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);
379
379
  }
380
- var T = x.bind(null, !1);
381
- return T.isRequired = x.bind(null, !0), T;
380
+ var T = w.bind(null, !1);
381
+ return T.isRequired = w.bind(null, !0), T;
382
382
  }
383
- function C(c) {
384
- function y(w, x, T, R, S, P) {
385
- var A = w[x], M = q(A);
386
- if (M !== c) {
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
387
  var I = K(A);
388
388
  return new m(
389
389
  "Invalid " + R + " `" + S + "` of type " + ("`" + I + "` supplied to `" + T + "`, expected ") + ("`" + c + "`."),
@@ -394,20 +394,20 @@ function Ft() {
394
394
  }
395
395
  return E(y);
396
396
  }
397
- function $() {
397
+ function j() {
398
398
  return E(i);
399
399
  }
400
400
  function O(c) {
401
- function y(w, x, T, R, S) {
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 = w[x];
404
+ var P = x[w];
405
405
  if (!Array.isArray(P)) {
406
406
  var A = q(P);
407
407
  return new m("Invalid " + R + " `" + S + "` of type " + ("`" + A + "` supplied to `" + T + "`, expected an array."));
408
408
  }
409
- for (var M = 0; M < P.length; M++) {
410
- var I = c(P, M, T, R, S + "[" + M + "]", t);
409
+ for (var C = 0; C < P.length; C++) {
410
+ var I = c(P, C, T, R, S + "[" + C + "]", t);
411
411
  if (I instanceof Error)
412
412
  return I;
413
413
  }
@@ -416,31 +416,31 @@ function Ft() {
416
416
  return E(y);
417
417
  }
418
418
  function F() {
419
- function c(y, w, x, T, R) {
420
- var S = y[w];
419
+ function c(y, x, w, T, R) {
420
+ var S = y[x];
421
421
  if (!u(S)) {
422
422
  var P = q(S);
423
- return new m("Invalid " + T + " `" + R + "` of type " + ("`" + P + "` supplied to `" + x + "`, expected a single ReactElement."));
423
+ return new m("Invalid " + T + " `" + R + "` of type " + ("`" + P + "` supplied to `" + w + "`, expected a single ReactElement."));
424
424
  }
425
425
  return null;
426
426
  }
427
427
  return E(c);
428
428
  }
429
429
  function s() {
430
- function c(y, w, x, T, R) {
431
- var S = y[w];
430
+ function c(y, x, w, T, R) {
431
+ var S = y[x];
432
432
  if (!e.isValidElementType(S)) {
433
433
  var P = q(S);
434
- return new m("Invalid " + T + " `" + R + "` of type " + ("`" + P + "` supplied to `" + x + "`, expected a single ReactElement type."));
434
+ return new m("Invalid " + T + " `" + R + "` of type " + ("`" + P + "` supplied to `" + w + "`, expected a single ReactElement type."));
435
435
  }
436
436
  return null;
437
437
  }
438
438
  return E(c);
439
439
  }
440
440
  function k(c) {
441
- function y(w, x, T, R, S) {
442
- if (!(w[x] instanceof c)) {
443
- var P = c.name || p, A = ie(w[x]);
441
+ function y(x, w, T, R, S) {
442
+ if (!(x[w] instanceof c)) {
443
+ var P = c.name || p, A = ie(x[w]);
444
444
  return new m("Invalid " + R + " `" + S + "` of type " + ("`" + A + "` supplied to `" + T + "`, expected ") + ("instance of `" + P + "`."));
445
445
  }
446
446
  return null;
@@ -452,28 +452,28 @@ function Ft() {
452
452
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
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
- function y(w, x, T, R, S) {
456
- for (var P = w[x], A = 0; A < c.length; A++)
455
+ function y(x, w, T, R, S) {
456
+ for (var P = x[w], A = 0; A < c.length; A++)
457
457
  if (g(P, c[A]))
458
458
  return null;
459
- var M = JSON.stringify(c, function(L, l) {
459
+ var C = JSON.stringify(c, function(L, l) {
460
460
  var U = K(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 " + M + "."));
463
+ return new m("Invalid " + R + " `" + S + "` of value `" + String(P) + "` " + ("supplied to `" + T + "`, expected one of " + C + "."));
464
464
  }
465
465
  return E(y);
466
466
  }
467
467
  function G(c) {
468
- function y(w, x, T, R, S) {
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 = w[x], A = q(P);
471
+ var P = x[w], A = q(P);
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 M in P)
475
- if (n(P, M)) {
476
- var I = c(P, M, T, R, S + "." + M, t);
474
+ for (var C in P)
475
+ if (n(P, C)) {
476
+ var I = c(P, C, T, R, S + "." + C, t);
477
477
  if (I instanceof Error)
478
478
  return I;
479
479
  }
@@ -485,45 +485,45 @@ function Ft() {
485
485
  if (!Array.isArray(c))
486
486
  return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), i;
487
487
  for (var y = 0; y < c.length; y++) {
488
- var w = c[y];
489
- if (typeof w != "function")
488
+ var x = c[y];
489
+ if (typeof x != "function")
490
490
  return a(
491
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ae(w) + " at index " + y + "."
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 x(T, R, S, P, A) {
495
- for (var M = [], I = 0; I < c.length; I++) {
494
+ function w(T, R, S, P, A) {
495
+ for (var C = [], I = 0; I < c.length; I++) {
496
496
  var L = c[I], l = L(T, R, S, P, A, t);
497
497
  if (l == null)
498
498
  return null;
499
- l.data && n(l.data, "expectedType") && M.push(l.data.expectedType);
499
+ l.data && n(l.data, "expectedType") && C.push(l.data.expectedType);
500
500
  }
501
- var U = M.length > 0 ? ", expected one of type [" + M.join(", ") + "]" : "";
501
+ var U = C.length > 0 ? ", expected one of type [" + C.join(", ") + "]" : "";
502
502
  return new m("Invalid " + P + " `" + A + "` supplied to " + ("`" + S + "`" + U + "."));
503
503
  }
504
- return E(x);
504
+ return E(w);
505
505
  }
506
506
  function _() {
507
- function c(y, w, x, T, R) {
508
- return J(y[w]) ? null : new m("Invalid " + T + " `" + R + "` supplied to " + ("`" + x + "`, expected a ReactNode."));
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."));
509
509
  }
510
510
  return E(c);
511
511
  }
512
- function V(c, y, w, x, T) {
512
+ function V(c, y, x, w, T) {
513
513
  return new m(
514
- (c || "React class") + ": " + y + " type `" + w + "." + x + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + T + "`."
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
517
  function ne(c) {
518
- function y(w, x, T, R, S) {
519
- var P = w[x], A = q(P);
518
+ function y(x, w, T, R, S) {
519
+ var P = x[w], A = q(P);
520
520
  if (A !== "object")
521
521
  return new m("Invalid " + R + " `" + S + "` of type `" + A + "` " + ("supplied to `" + T + "`, expected `object`."));
522
- for (var M in c) {
523
- var I = c[M];
522
+ for (var C in c) {
523
+ var I = c[C];
524
524
  if (typeof I != "function")
525
- return V(T, R, S, M, K(I));
526
- var L = I(P, M, T, R, S + "." + M, t);
525
+ return V(T, R, S, C, K(I));
526
+ var L = I(P, C, T, R, S + "." + C, t);
527
527
  if (L)
528
528
  return L;
529
529
  }
@@ -532,18 +532,18 @@ function Ft() {
532
532
  return E(y);
533
533
  }
534
534
  function Z(c) {
535
- function y(w, x, T, R, S) {
536
- var P = w[x], A = q(P);
535
+ function y(x, w, T, R, S) {
536
+ var P = x[w], A = q(P);
537
537
  if (A !== "object")
538
538
  return new m("Invalid " + R + " `" + S + "` of type `" + A + "` " + ("supplied to `" + T + "`, expected `object`."));
539
- var M = r({}, w[x], c);
540
- for (var I in M) {
539
+ var C = r({}, x[w], c);
540
+ for (var I in C) {
541
541
  var L = c[I];
542
542
  if (n(c, I) && typeof L != "function")
543
543
  return V(T, R, S, I, K(L));
544
544
  if (!L)
545
545
  return new m(
546
- "Invalid " + R + " `" + S + "` key `" + I + "` supplied to `" + T + "`.\nBad object: " + JSON.stringify(w[x], null, " ") + `
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
549
  var l = L(P, I, T, R, S + "." + I, t);
@@ -569,14 +569,14 @@ Valid keys: ` + JSON.stringify(Object.keys(c), null, " ")
569
569
  return !0;
570
570
  var y = d(c);
571
571
  if (y) {
572
- var w = y.call(c), x;
572
+ var x = y.call(c), w;
573
573
  if (y !== c.entries) {
574
- for (; !(x = w.next()).done; )
575
- if (!J(x.value))
574
+ for (; !(w = x.next()).done; )
575
+ if (!J(w.value))
576
576
  return !1;
577
577
  } else
578
- for (; !(x = w.next()).done; ) {
579
- var T = x.value;
578
+ for (; !(w = x.next()).done; ) {
579
+ var T = w.value;
580
580
  if (T && !J(T[1]))
581
581
  return !1;
582
582
  }
@@ -680,9 +680,9 @@ if (process.env.NODE_ENV !== "production") {
680
680
  } else
681
681
  ke.exports = Rt()();
682
682
  var D = ke.exports;
683
- const Rr = /* @__PURE__ */ xt(D);
684
- var Le = "data-focus-lock", Ar = "data-focus-lock-disabled", Ct = "data-no-focus-lock", $t = "data-autofocus-inside", Mt = "data-no-autofocus";
685
- function $e(e, r) {
683
+ const Rr = /* @__PURE__ */ wt(D);
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
+ function Me(e, r) {
686
686
  return typeof e == "function" ? e(r) : e && (e.current = r), e;
687
687
  }
688
688
  function Nt(e, r) {
@@ -710,7 +710,7 @@ var jt = typeof window < "u" ? ir.useLayoutEffect : ir.useEffect, br = /* @__PUR
710
710
  function Dt(e, r) {
711
711
  var t = Nt(null, function(n) {
712
712
  return e.forEach(function(o) {
713
- return $e(o, n);
713
+ return Me(o, n);
714
714
  });
715
715
  });
716
716
  return jt(function() {
@@ -718,15 +718,15 @@ function Dt(e, r) {
718
718
  if (n) {
719
719
  var o = new Set(n), a = new Set(e), i = t.current;
720
720
  o.forEach(function(u) {
721
- a.has(u) || $e(u, null);
721
+ a.has(u) || Me(u, null);
722
722
  }), a.forEach(function(u) {
723
- o.has(u) || $e(u, i);
723
+ o.has(u) || Me(u, i);
724
724
  });
725
725
  }
726
726
  br.set(t, e);
727
727
  }, [e]), t;
728
728
  }
729
- var Me = {
729
+ var $e = {
730
730
  width: "1px",
731
731
  height: "0px",
732
732
  padding: 0,
@@ -811,26 +811,26 @@ function kt(e) {
811
811
  var r = Cr(null);
812
812
  return r.options = We({ async: !0, ssr: !1 }, e), r;
813
813
  }
814
- var $r = Ve({}, function(e) {
814
+ var Mr = Ve({}, function(e) {
815
815
  var r = e.target, t = e.currentTarget;
816
816
  return {
817
817
  target: r,
818
818
  currentTarget: t
819
819
  };
820
- }), Mr = Ve(), Lt = Ve(), Wt = kt({
820
+ }), $r = Ve(), Lt = Ve(), Wt = kt({
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 = xe(), b = xe(!1), f = xe(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, $ = 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, _ = 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, w = r.onActivation, x = r.onDeactivation, T = fe({}), R = T[0], S = pe(function(Q) {
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
825
  var ce = Q.captureFocusRestore;
826
826
  if (!f.current) {
827
827
  var se, ee = (se = document) == null ? void 0 : se.activeElement;
828
828
  f.current = ee, ee !== document.body && (f.current = ce(ee));
829
829
  }
830
- u.current && w && w(u.current), b.current = !0, d();
831
- }, [w]), P = pe(function() {
832
- b.current = !1, x && x(u.current), d();
833
- }, [x]), A = pe(function(Q) {
830
+ u.current && x && x(u.current), b.current = !0, d();
831
+ }, [x]), P = pe(function() {
832
+ b.current = !1, w && w(u.current), d();
833
+ }, [w]), A = pe(function(Q) {
834
834
  var ce = f.current;
835
835
  if (ce) {
836
836
  var se = (typeof ce == "function" ? ce() : ce) || document.body, ee = typeof c == "function" ? c(se) : c;
@@ -841,12 +841,12 @@ var $r = Ve({}, function(e) {
841
841
  }) : se.focus(ar);
842
842
  }
843
843
  }
844
- }, [c]), M = pe(function(Q) {
845
- b.current && $r.useMedium(Q);
846
- }, []), I = Mr.useMedium, L = pe(function(Q) {
844
+ }, [c]), C = pe(function(Q) {
845
+ b.current && Mr.useMedium(Q);
846
+ }, []), I = $r.useMedium, L = pe(function(Q) {
847
847
  u.current !== Q && (u.current = Q, i(Q));
848
848
  }, []);
849
- process.env.NODE_ENV !== "production" && (typeof B < "u" && console.warn("React-Focus-Lock: allowTextSelection is deprecated and enabled by default"), we(function() {
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
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() {
@@ -864,20 +864,20 @@ var $r = Ve({}, function(e) {
864
864
  key: "guard-first",
865
865
  "data-focus-guard": !0,
866
866
  tabIndex: g ? -1 : 0,
867
- style: Me
867
+ style: $e
868
868
  }),
869
869
  V ? /* @__PURE__ */ X.createElement("div", {
870
870
  key: "guard-nearest",
871
871
  "data-focus-guard": !0,
872
872
  tabIndex: g ? -1 : 1,
873
- style: Me
873
+ style: $e
874
874
  }) : null
875
875
  ], !g && /* @__PURE__ */ X.createElement(ae, {
876
876
  id: R,
877
877
  sideCar: Wt,
878
878
  observed: a,
879
879
  disabled: g,
880
- persistentFocus: $,
880
+ persistentFocus: j,
881
881
  crossFrame: F,
882
882
  autoFocus: k,
883
883
  whiteList: _,
@@ -892,13 +892,13 @@ var $r = Ve({}, function(e) {
892
892
  }, l, {
893
893
  className: z,
894
894
  onBlur: I,
895
- onFocus: M
895
+ onFocus: C
896
896
  }), /* @__PURE__ */ X.createElement(qt.Provider, {
897
897
  value: vt
898
898
  }, p)), ue && /* @__PURE__ */ X.createElement("div", {
899
899
  "data-focus-guard": !0,
900
900
  tabIndex: g ? -1 : 0,
901
- style: Me
901
+ style: $e
902
902
  }));
903
903
  });
904
904
  He.propTypes = process.env.NODE_ENV !== "production" ? {
@@ -1051,7 +1051,7 @@ var H = function(e) {
1051
1051
  }, Zt = function(e) {
1052
1052
  return !((qr(e) || Xt(e)) && (e.type === "hidden" || e.disabled));
1053
1053
  }, en = function(e) {
1054
- var r = e.getAttribute(Mt);
1054
+ var r = e.getAttribute($t);
1055
1055
  return ![!0, "true", ""].includes(r);
1056
1056
  }, ze = function(e) {
1057
1057
  var r;
@@ -1122,7 +1122,7 @@ var H = function(e) {
1122
1122
  );
1123
1123
  }, []);
1124
1124
  }, cn = function(e) {
1125
- var r = e.querySelectorAll("[".concat($t, "]"));
1125
+ var r = e.querySelectorAll("[".concat(Mt, "]"));
1126
1126
  return H(r).map(function(t) {
1127
1127
  return ve([t]);
1128
1128
  }).reduce(function(t, n) {
@@ -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, C = o ? m.indexOf(o) : E, $ = 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, N = o ? m.indexOf(o) : E, j = m.filter(function(G) {
1230
1230
  return G.tabIndex >= 0;
1231
- }), O = n !== void 0 ? $.indexOf(n) : -1, F = o ? $.indexOf(o) : O, s = O >= 0 && F >= 0 ? (
1231
+ }), O = n !== void 0 ? j.indexOf(n) : -1, F = o ? j.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
- C - E
1236
+ N - E
1237
1237
  );
1238
1238
  if (!p && d >= 0 || r.length === 0)
1239
1239
  return d;
@@ -1379,13 +1379,13 @@ var On = function(e) {
1379
1379
  stack: r,
1380
1380
  ownerDocument: e.ownerDocument
1381
1381
  };
1382
- }, xn = function(e) {
1382
+ }, wn = function(e) {
1383
1383
  var r, t, n, o, a;
1384
1384
  if (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), C = Xe([p], b), $ = (
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 = (
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,24 +1395,24 @@ var On = function(e) {
1395
1395
  // or somebody to the left, something?
1396
1396
  h
1397
1397
  )
1398
- ); $; ) {
1399
- for (var O = 0, F = C; O < F.length; O++) {
1398
+ ); j; ) {
1399
+ for (var O = 0, F = N; O < F.length; O++) {
1400
1400
  var s = F[O];
1401
- if ($ != null && $.contains(s.node))
1401
+ if (j != null && j.contains(s.node))
1402
1402
  return s.node;
1403
1403
  }
1404
- $ = $.nextElementSibling;
1404
+ j = j.nextElementSibling;
1405
1405
  }
1406
- if (C.length)
1407
- return C[0].node;
1406
+ if (N.length)
1407
+ return N[0].node;
1408
1408
  }
1409
1409
  }
1410
1410
  }, zr = function(e) {
1411
1411
  var r = On(e);
1412
1412
  return function() {
1413
- return xn(r);
1413
+ return wn(r);
1414
1414
  };
1415
- }, wn = function(e, r, t) {
1415
+ }, xn = function(e, r, t) {
1416
1416
  if (!e || !r)
1417
1417
  return console.error("no element or scope given"), {};
1418
1418
  var n = te(r);
@@ -1445,7 +1445,7 @@ var On = function(e) {
1445
1445
  }, e);
1446
1446
  }, Jr = function(e, r, t) {
1447
1447
  r === void 0 && (r = {});
1448
- var n = Pn(r), o = wn(e, n.scope, n.onlyTabbable);
1448
+ var n = Pn(r), o = xn(e, n.scope, n.onlyTabbable);
1449
1449
  if (o) {
1450
1450
  var a = t(o, n.cycle);
1451
1451
  a && rr(a.node, n.focusOptions);
@@ -1477,12 +1477,12 @@ var In = function(r) {
1477
1477
  return document && document.activeElement === document.body;
1478
1478
  }, Cn = function() {
1479
1479
  return Qr() || pn();
1480
- }, de = null, W = null, xr = function() {
1480
+ }, de = null, W = null, wr = function() {
1481
1481
  return null;
1482
- }, le = null, Ee = !1, nr = !1, $n = function() {
1482
+ }, le = null, Ee = !1, nr = !1, Mn = function() {
1483
1483
  return !0;
1484
- }, Mn = function(r) {
1485
- return (de.whiteList || $n)(r);
1484
+ }, $n = function(r) {
1485
+ return (de.whiteList || Mn)(r);
1486
1486
  }, Nn = function(r, t) {
1487
1487
  le = {
1488
1488
  observerNode: r,
@@ -1491,7 +1491,7 @@ var In = function(r) {
1491
1491
  }, jn = function(r) {
1492
1492
  return le && le.portaledElement === r;
1493
1493
  };
1494
- function wr(e, r, t, n) {
1494
+ function xr(e, r, t, n) {
1495
1495
  var o = null, a = e;
1496
1496
  do {
1497
1497
  var i = n[a];
@@ -1525,7 +1525,7 @@ var Dn = function(r) {
1525
1525
  if (de) {
1526
1526
  var t = de, n = t.observed, o = t.persistentFocus, a = t.autoFocus, i = t.shards, u = t.crossFrame, b = t.focusOptions, f = t.noFocusGuards, v = n || le && le.portaledElement;
1527
1527
  if (Qr() && W && W !== document.body && (!document.body.contains(W) || Wn(W))) {
1528
- var d = xr();
1528
+ var d = wr();
1529
1529
  d && d.focus();
1530
1530
  }
1531
1531
  var p = document && document.activeElement;
@@ -1539,20 +1539,20 @@ var Dn = function(r) {
1539
1539
  });
1540
1540
  return F === 0 || F === O.length - 1;
1541
1541
  };
1542
- if ((!p || Mn(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) || jn(p)) && (document && !W && p && !a ? (p.blur && p.blur(), document.body.focus()) : (r = Hr(h, W, {
1543
1543
  focusOptions: b
1544
- }), le = {})), W = document && document.activeElement, W !== document.body && (xr = zr(W)), Ee = !1), document && p !== document.activeElement && document.querySelector("[data-focus-auto-guard]")) {
1545
- var m = document && document.activeElement, E = Tn(h), C = E.map(function($) {
1546
- var O = $.node;
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;
1547
1547
  return O;
1548
1548
  }).indexOf(m);
1549
- C > -1 && (E.filter(function($) {
1550
- var O = $.guard, F = $.node;
1549
+ N > -1 && (E.filter(function(j) {
1550
+ var O = j.guard, F = j.node;
1551
1551
  return O && F.dataset.focusAutoGuard;
1552
- }).forEach(function($) {
1553
- var O = $.node;
1552
+ }).forEach(function(j) {
1553
+ var O = j.node;
1554
1554
  return O.removeAttribute("tabIndex");
1555
- }), wr(C, E.length, 1, E), wr(C, -1, -1, E));
1555
+ }), xr(N, E.length, 1, E), xr(N, -1, -1, E));
1556
1556
  }
1557
1557
  }
1558
1558
  }
@@ -1603,8 +1603,8 @@ function Vn(e) {
1603
1603
  return a === t.id;
1604
1604
  }).length || t.returnFocus(!r)), r ? (W = null, (!n || t.observed !== r.observed) && r.onActivation(tt), Se(), tr(Se)) : (Yn(), W = null);
1605
1605
  }
1606
- $r.assignSyncMedium(qn);
1607
- Mr.assignMedium(or);
1606
+ Mr.assignSyncMedium(qn);
1607
+ $r.assignMedium(or);
1608
1608
  Lt.assignMedium(function(e) {
1609
1609
  return e(tt);
1610
1610
  });
@@ -1662,8 +1662,8 @@ const Pe = ({
1662
1662
  width: g,
1663
1663
  height: m,
1664
1664
  position: E,
1665
- style: C,
1666
- className: $,
1665
+ style: N,
1666
+ className: j,
1667
1667
  href: O,
1668
1668
  target: F,
1669
1669
  rel: s,
@@ -1675,14 +1675,14 @@ const Pe = ({
1675
1675
  const _ = {};
1676
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})`);
1677
1677
  const V = {
1678
- ...C,
1678
+ ...N,
1679
1679
  ..._
1680
1680
  };
1681
1681
  return /* @__PURE__ */ Y(
1682
1682
  r,
1683
1683
  {
1684
1684
  ref: e,
1685
- className: Kn("pittorica-box", $),
1685
+ className: Kn("pittorica-box", j),
1686
1686
  style: V,
1687
1687
  href: O,
1688
1688
  target: F,
@@ -1753,8 +1753,8 @@ const ft = ({
1753
1753
  width: g,
1754
1754
  height: m,
1755
1755
  position: E,
1756
- style: C,
1757
- className: $,
1756
+ style: N,
1757
+ className: j,
1758
1758
  href: O,
1759
1759
  target: F,
1760
1760
  rel: s,
@@ -1766,14 +1766,14 @@ const ft = ({
1766
1766
  const _ = {};
1767
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})`);
1768
1768
  const V = {
1769
- ...C,
1769
+ ...N,
1770
1770
  ..._
1771
1771
  };
1772
1772
  return /* @__PURE__ */ Y(
1773
1773
  r,
1774
1774
  {
1775
1775
  ref: e,
1776
- className: Zn("pittorica-box", $),
1776
+ className: Zn("pittorica-box", j),
1777
1777
  style: V,
1778
1778
  href: O,
1779
1779
  target: F,
@@ -1787,25 +1787,22 @@ const ft = ({
1787
1787
  );
1788
1788
  };
1789
1789
  ft.displayName = "Box";
1790
- const eo = (e, r) => r ? typeof r == "string" ? [`pittorica-text--${e}-${r}`] : Object.entries(r).filter(([t, n]) => n !== void 0).map(
1791
- ([t, n]) => t === "initial" ? `pittorica-text--${e}-${n}` : `pittorica-text--${t}-${e}-${n}`
1792
- ) : [], ro = ({
1790
+ const eo = ({
1793
1791
  children: e,
1794
1792
  as: r = "span",
1795
- size: t = "3",
1796
- weight: n = "regular",
1797
- align: o,
1798
- truncate: a = !1,
1799
- color: i,
1800
- className: u,
1801
- style: b,
1802
- href: f,
1803
- target: v,
1804
- rel: d,
1805
- htmlFor: p,
1806
- ...h
1793
+ weight: t = "regular",
1794
+ align: n,
1795
+ truncate: o = !1,
1796
+ color: a,
1797
+ className: i,
1798
+ style: u,
1799
+ href: b,
1800
+ target: f,
1801
+ rel: v,
1802
+ htmlFor: d,
1803
+ ...p
1807
1804
  }) => {
1808
- const g = (i == null ? void 0 : i.startsWith("#")) || (i == null ? void 0 : i.startsWith("rgb")), m = [
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([
1809
1806
  "danger",
1810
1807
  "success",
1811
1808
  "error",
@@ -1817,50 +1814,47 @@ const eo = (e, r) => r ? typeof r == "string" ? [`pittorica-text--${e}-${r}`] :
1817
1814
  "slate",
1818
1815
  "blue",
1819
1816
  "red"
1820
- ].includes(i), E = (() => {
1821
- if (i) {
1822
- if (i === "inherit") return "inherit";
1823
- if (g) return i;
1824
- if (m) return `var(--pittorica-${i}-9)`;
1825
- }
1826
- })(), C = {
1827
- ...b,
1828
- textAlign: o,
1829
- color: E
1830
- }, $ = eo("size", t);
1817
+ ]), m = (() => {
1818
+ if (a)
1819
+ return a === "inherit" ? "inherit" : h ? a : g.has(a) ? `var(--pittorica-${a}-9)` : a;
1820
+ })(), E = {
1821
+ ...u,
1822
+ textAlign: n,
1823
+ color: m
1824
+ };
1831
1825
  return /* @__PURE__ */ Y(
1832
1826
  ft,
1833
1827
  {
1834
1828
  as: r,
1835
1829
  className: Xn(
1836
1830
  "pittorica-text",
1837
- { "pittorica-text--truncate": a },
1838
- $,
1839
- u
1831
+ { "pittorica-text--truncate": o },
1832
+ i
1840
1833
  ),
1841
- "data-weight": n,
1842
- style: C,
1843
- href: f,
1844
- target: v,
1845
- rel: d,
1846
- htmlFor: p,
1847
- ...h,
1834
+ "data-weight": t,
1835
+ style: E,
1836
+ href: b,
1837
+ target: f,
1838
+ rel: v,
1839
+ htmlFor: d,
1840
+ ...p,
1848
1841
  children: e
1849
1842
  }
1850
1843
  );
1851
- }, to = (e, r) => r ? typeof r == "string" ? [`pittorica-heading--${e}-${r}`] : Object.entries(r).filter(([t, n]) => n !== void 0).map(
1844
+ }, ro = (e, r) => r ? typeof r == "string" ? [`pittorica-heading--${e}-${r}`] : Object.entries(r).filter(([t, n]) => n !== void 0).map(
1852
1845
  ([t, n]) => t === "initial" ? `pittorica-heading--${e}-${n}` : `pittorica-heading--${t}-${e}-${n}`
1853
- ) : [], no = ({
1846
+ ) : [], to = ({
1854
1847
  children: e,
1855
1848
  as: r = "h1",
1856
1849
  size: t = "6",
1857
1850
  weight: n = "bold",
1858
1851
  className: o,
1859
1852
  ...a
1853
+ // Captures 'color' and other TextProps
1860
1854
  }) => {
1861
- const i = to("size", t);
1855
+ const i = ro("size", t);
1862
1856
  return /* @__PURE__ */ Y(
1863
- ro,
1857
+ eo,
1864
1858
  {
1865
1859
  as: r,
1866
1860
  weight: n,
@@ -1874,7 +1868,7 @@ const eo = (e, r) => r ? typeof r == "string" ? [`pittorica-text--${e}-${r}`] :
1874
1868
  if (!e)
1875
1869
  throw new Error("Dialog compound components must be used within a Dialog");
1876
1870
  return e;
1877
- }, uo = ({
1871
+ }, io = ({
1878
1872
  open: e,
1879
1873
  onClose: r,
1880
1874
  children: t,
@@ -1883,16 +1877,16 @@ const eo = (e, r) => r ? typeof r == "string" ? [`pittorica-text--${e}-${r}`] :
1883
1877
  closeOnOverlayClick: a = !0,
1884
1878
  closeOnEsc: i = !0
1885
1879
  }) => {
1886
- const u = ur(), b = ur(), [f, v] = fe(), d = xe(null), [p, h] = fe(!1);
1887
- return we(() => {
1880
+ const u = ur(), b = ur(), [f, v] = fe(), d = we(null), [p, h] = fe(!1);
1881
+ return xe(() => {
1888
1882
  h(!0);
1889
- }, []), we(() => {
1883
+ }, []), xe(() => {
1890
1884
  if (!e) return;
1891
1885
  const m = (E) => {
1892
1886
  E.key === "Escape" && i && r();
1893
1887
  };
1894
1888
  return globalThis.addEventListener("keydown", m), () => globalThis.removeEventListener("keydown", m);
1895
- }, [e, r, i]), we(() => {
1889
+ }, [e, r, i]), xe(() => {
1896
1890
  if (!e) return;
1897
1891
  const m = globalThis.getComputedStyle(document.body).overflow;
1898
1892
  return document.body.style.overflow = "hidden", () => {
@@ -1935,14 +1929,14 @@ const eo = (e, r) => r ? typeof r == "string" ? [`pittorica-text--${e}-${r}`] :
1935
1929
  document.body
1936
1930
  )
1937
1931
  ] });
1938
- }, co = ({
1932
+ }, uo = ({
1939
1933
  children: e,
1940
1934
  id: r,
1941
1935
  ...t
1942
1936
  }) => {
1943
1937
  const { titleId: n } = lt();
1944
- return /* @__PURE__ */ Y(no, { as: "h2", id: n, size: "6", mb: "3", ...t, children: e });
1945
- }, so = ({
1938
+ return /* @__PURE__ */ Y(to, { as: "h2", id: n, size: "6", mb: "3", ...t, children: e });
1939
+ }, co = ({
1946
1940
  children: e,
1947
1941
  id: r,
1948
1942
  ...t
@@ -1961,7 +1955,7 @@ const eo = (e, r) => r ? typeof r == "string" ? [`pittorica-text--${e}-${r}`] :
1961
1955
  children: e
1962
1956
  }
1963
1957
  );
1964
- }, fo = ({ children: e }) => /* @__PURE__ */ Y(
1958
+ }, so = ({ children: e }) => /* @__PURE__ */ Y(
1965
1959
  Pe,
1966
1960
  {
1967
1961
  style: {
@@ -1974,8 +1968,8 @@ const eo = (e, r) => r ? typeof r == "string" ? [`pittorica-text--${e}-${r}`] :
1974
1968
  }
1975
1969
  );
1976
1970
  export {
1977
- uo as Dialog,
1978
- fo as DialogActions,
1979
- so as DialogDescription,
1980
- co as DialogTitle
1971
+ io as Dialog,
1972
+ so as DialogActions,
1973
+ co as DialogDescription,
1974
+ uo as DialogTitle
1981
1975
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pittorica/dialog-react",
3
- "version": "0.22.0",
3
+ "version": "0.22.4",
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.22.0",
15
- "@pittorica/heading-react": "0.22.0"
14
+ "@pittorica/box-react": "0.22.4",
15
+ "@pittorica/heading-react": "0.22.4"
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/theme-react": "0.22.0",
28
- "@pittorica/button-react": "0.22.0",
29
- "pittorica": "0.22.0"
27
+ "@pittorica/button-react": "0.22.4",
28
+ "pittorica": "0.22.4",
29
+ "@pittorica/theme-react": "0.22.4"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "react": ">=19",