@a-ui/react 7.13.0-beta.4 → 7.13.0-beta.5

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 (269) hide show
  1. package/cjs/index10.js +1 -1
  2. package/cjs/index100.js +1 -1
  3. package/cjs/index101.js +1 -1
  4. package/cjs/index102.js +1 -1
  5. package/cjs/index103.js +1 -1
  6. package/cjs/index104.js +1 -1
  7. package/cjs/index105.js +1 -1
  8. package/cjs/index106.js +1 -1
  9. package/cjs/index107.js +1 -1
  10. package/cjs/index108.js +1 -1
  11. package/cjs/index109.js +1 -1
  12. package/cjs/index11.js +1 -1
  13. package/cjs/index110.js +1 -1
  14. package/cjs/index111.js +1 -1
  15. package/cjs/index112.js +1 -1
  16. package/cjs/index113.js +1 -1
  17. package/cjs/index114.js +2 -1
  18. package/cjs/index115.js +1 -1
  19. package/cjs/index116.js +1 -1
  20. package/cjs/index117.js +1 -1
  21. package/cjs/index118.js +1 -1
  22. package/cjs/index119.js +10 -1
  23. package/cjs/index12.js +1 -1
  24. package/cjs/index120.js +1 -1
  25. package/cjs/index121.js +1 -1
  26. package/cjs/index122.js +1 -1
  27. package/cjs/index123.js +1 -2
  28. package/cjs/index124.js +1 -1
  29. package/cjs/index125.js +1 -1
  30. package/cjs/index126.js +5 -1
  31. package/cjs/index127.js +9 -1
  32. package/cjs/index128.js +1 -10
  33. package/cjs/index129.js +1 -1
  34. package/cjs/index13.js +1 -1
  35. package/cjs/index130.js +1 -1
  36. package/cjs/index131.js +1 -1
  37. package/cjs/index132.js +1 -1
  38. package/cjs/index133.js +1 -1
  39. package/cjs/index134.js +1 -1
  40. package/cjs/index135.js +1 -5
  41. package/cjs/index136.js +1 -9
  42. package/cjs/index14.js +1 -1
  43. package/cjs/index144.js +1 -11
  44. package/cjs/index145.js +11 -1
  45. package/cjs/index146.js +1 -1
  46. package/cjs/index147.js +1 -1
  47. package/cjs/index16.js +1 -1
  48. package/cjs/index167.js +1 -1
  49. package/cjs/index17.js +1 -1
  50. package/cjs/index170.js +1 -1
  51. package/cjs/index171.js +1 -1
  52. package/cjs/index172.js +1 -1
  53. package/cjs/index176.js +1 -1
  54. package/cjs/index177.js +1 -1
  55. package/cjs/index18.js +1 -1
  56. package/cjs/index187.js +1 -1
  57. package/cjs/index194.js +1 -1
  58. package/cjs/index2.js +1 -1
  59. package/cjs/index20.js +1 -1
  60. package/cjs/index21.js +1 -1
  61. package/cjs/index22.js +1 -1
  62. package/cjs/index224.js +1 -1
  63. package/cjs/index225.js +1 -1
  64. package/cjs/index226.js +1 -1
  65. package/cjs/index227.js +1 -1
  66. package/cjs/index228.js +1 -1
  67. package/cjs/index229.js +1 -1
  68. package/cjs/index230.js +1 -1
  69. package/cjs/index231.js +1 -1
  70. package/cjs/index24.js +1 -1
  71. package/cjs/index25.js +1 -1
  72. package/cjs/index26.js +1 -1
  73. package/cjs/index27.js +1 -1
  74. package/cjs/index28.js +1 -1
  75. package/cjs/index3.js +1 -1
  76. package/cjs/index30.js +1 -1
  77. package/cjs/index31.js +1 -1
  78. package/cjs/index32.js +1 -1
  79. package/cjs/index33.js +1 -1
  80. package/cjs/index34.js +1 -1
  81. package/cjs/index36.js +1 -1
  82. package/cjs/index37.js +1 -1
  83. package/cjs/index38.js +1 -1
  84. package/cjs/index39.js +1 -1
  85. package/cjs/index4.js +1 -1
  86. package/cjs/index40.js +1 -1
  87. package/cjs/index41.js +1 -1
  88. package/cjs/index42.js +1 -1
  89. package/cjs/index43.js +1 -1
  90. package/cjs/index44.js +1 -1
  91. package/cjs/index45.js +1 -1
  92. package/cjs/index46.js +1 -1
  93. package/cjs/index47.js +1 -1
  94. package/cjs/index48.js +1 -1
  95. package/cjs/index49.js +1 -1
  96. package/cjs/index5.js +1 -1
  97. package/cjs/index50.js +1 -1
  98. package/cjs/index51.js +1 -1
  99. package/cjs/index52.js +1 -1
  100. package/cjs/index53.js +1 -1
  101. package/cjs/index54.js +1 -1
  102. package/cjs/index55.js +1 -7
  103. package/cjs/index56.js +1 -1
  104. package/cjs/index57.js +1 -1
  105. package/cjs/index58.js +1 -1
  106. package/cjs/index59.js +1 -1
  107. package/cjs/index6.js +1 -1
  108. package/cjs/index60.js +1 -1
  109. package/cjs/index61.js +7 -1
  110. package/cjs/index62.js +1 -1
  111. package/cjs/index63.js +1 -1
  112. package/cjs/index64.js +1 -1
  113. package/cjs/index65.js +1 -1
  114. package/cjs/index67.js +1 -1
  115. package/cjs/index68.js +1 -1
  116. package/cjs/index69.js +1 -1
  117. package/cjs/index71.js +1 -1
  118. package/cjs/index8.js +1 -1
  119. package/cjs/index82.js +1 -1
  120. package/cjs/index83.js +1 -1
  121. package/cjs/index85.js +1 -1
  122. package/cjs/index86.js +1 -1
  123. package/cjs/index87.js +1 -0
  124. package/cjs/index88.js +1 -0
  125. package/cjs/index89.js +1 -1
  126. package/cjs/index9.js +1 -1
  127. package/cjs/index90.js +1 -1
  128. package/cjs/index91.js +1 -1
  129. package/cjs/index94.js +1 -1
  130. package/cjs/index95.js +1 -1
  131. package/cjs/index96.js +1 -1
  132. package/cjs/index97.js +1 -1
  133. package/cjs/index98.js +1 -1
  134. package/cjs/index99.js +1 -1
  135. package/es/index10.mjs +4 -4
  136. package/es/index100.mjs +4 -66
  137. package/es/index101.mjs +11 -3
  138. package/es/index102.mjs +247 -5
  139. package/es/index103.mjs +88 -10
  140. package/es/index104.mjs +14 -6
  141. package/es/index105.mjs +4 -11
  142. package/es/index106.mjs +2 -247
  143. package/es/index107.mjs +2 -89
  144. package/es/index108.mjs +4 -15
  145. package/es/index109.mjs +391 -4
  146. package/es/index11.mjs +1 -1
  147. package/es/index110.mjs +125 -2
  148. package/es/index111.mjs +134 -2
  149. package/es/index112.mjs +2 -63
  150. package/es/index113.mjs +7 -13
  151. package/es/index114.mjs +326 -6
  152. package/es/index115.mjs +49 -6
  153. package/es/index116.mjs +2 -6
  154. package/es/index117.mjs +64 -5
  155. package/es/index118.mjs +43 -5
  156. package/es/index119.mjs +59 -6
  157. package/es/index12.mjs +2 -2
  158. package/es/index120.mjs +45 -6
  159. package/es/index121.mjs +40 -2
  160. package/es/index122.mjs +2 -8
  161. package/es/index123.mjs +2 -327
  162. package/es/index124.mjs +2 -50
  163. package/es/index125.mjs +31 -2
  164. package/es/index126.mjs +19 -65
  165. package/es/index127.mjs +58 -40
  166. package/es/index128.mjs +62 -59
  167. package/es/index129.mjs +15 -45
  168. package/es/index13.mjs +2 -2
  169. package/es/index130.mjs +6 -39
  170. package/es/index131.mjs +7 -2
  171. package/es/index132.mjs +6 -2
  172. package/es/index133.mjs +6 -2
  173. package/es/index134.mjs +4 -30
  174. package/es/index135.mjs +7 -19
  175. package/es/index136.mjs +4 -60
  176. package/es/index14.mjs +3 -3
  177. package/es/index144.mjs +2 -58
  178. package/es/index145.mjs +58 -2
  179. package/es/index146.mjs +2 -2
  180. package/es/index147.mjs +2 -2
  181. package/es/index16.mjs +1 -1
  182. package/es/index167.mjs +1 -1
  183. package/es/index17.mjs +2 -2
  184. package/es/index170.mjs +1 -1
  185. package/es/index171.mjs +1 -1
  186. package/es/index172.mjs +1 -1
  187. package/es/index176.mjs +1 -1
  188. package/es/index177.mjs +1 -1
  189. package/es/index18.mjs +3 -3
  190. package/es/index187.mjs +1 -1
  191. package/es/index194.mjs +1 -1
  192. package/es/index2.mjs +1 -1
  193. package/es/index20.mjs +2 -2
  194. package/es/index21.mjs +1 -1
  195. package/es/index22.mjs +1 -1
  196. package/es/index224.mjs +67 -58
  197. package/es/index225.mjs +31 -9
  198. package/es/index226.mjs +9 -20
  199. package/es/index227.mjs +104 -64
  200. package/es/index228.mjs +102 -26
  201. package/es/index229.mjs +59 -9
  202. package/es/index230.mjs +9 -108
  203. package/es/index231.mjs +19 -106
  204. package/es/index24.mjs +4 -4
  205. package/es/index25.mjs +2 -2
  206. package/es/index26.mjs +1 -1
  207. package/es/index27.mjs +1 -1
  208. package/es/index28.mjs +1 -1
  209. package/es/index3.mjs +1 -1
  210. package/es/index30.mjs +2 -2
  211. package/es/index31.mjs +2 -2
  212. package/es/index32.mjs +2 -2
  213. package/es/index33.mjs +3 -3
  214. package/es/index34.mjs +1 -1
  215. package/es/index36.mjs +3 -3
  216. package/es/index37.mjs +3 -3
  217. package/es/index38.mjs +3 -3
  218. package/es/index39.mjs +3 -3
  219. package/es/index4.mjs +2 -2
  220. package/es/index40.mjs +2 -2
  221. package/es/index41.mjs +1 -1
  222. package/es/index42.mjs +4 -4
  223. package/es/index43.mjs +1 -1
  224. package/es/index44.mjs +2 -2
  225. package/es/index45.mjs +3 -3
  226. package/es/index46.mjs +3 -3
  227. package/es/index47.mjs +2 -2
  228. package/es/index48.mjs +1 -1
  229. package/es/index49.mjs +2 -2
  230. package/es/index50.mjs +1 -1
  231. package/es/index51.mjs +11 -8
  232. package/es/index52.mjs +8 -11
  233. package/es/index53.mjs +21 -28
  234. package/es/index54.mjs +8 -47
  235. package/es/index55.mjs +28 -409
  236. package/es/index56.mjs +47 -21
  237. package/es/index57.mjs +47 -45
  238. package/es/index58.mjs +30 -8
  239. package/es/index59.mjs +17 -49
  240. package/es/index6.mjs +3 -3
  241. package/es/index60.mjs +28 -61
  242. package/es/index61.mjs +407 -58
  243. package/es/index62.mjs +27 -27
  244. package/es/index63.mjs +35 -20
  245. package/es/index64.mjs +3 -3
  246. package/es/index65.mjs +35 -30
  247. package/es/index67.mjs +9 -9
  248. package/es/index68.mjs +2 -2
  249. package/es/index69.mjs +2 -2
  250. package/es/index71.mjs +6 -6
  251. package/es/index8.mjs +3 -3
  252. package/es/index82.mjs +83 -60
  253. package/es/index83.mjs +1 -1
  254. package/es/index85.mjs +60 -12
  255. package/es/index86.mjs +57 -56
  256. package/es/index87.mjs +16 -0
  257. package/es/index88.mjs +61 -0
  258. package/es/index89.mjs +5 -5
  259. package/es/index9.mjs +1 -1
  260. package/es/index90.mjs +3 -3
  261. package/es/index91.mjs +1 -1
  262. package/es/index93.mjs +2 -2
  263. package/es/index94.mjs +224 -380
  264. package/es/index95.mjs +2 -125
  265. package/es/index96.mjs +63 -130
  266. package/es/index97.mjs +3 -2
  267. package/es/index98.mjs +5 -235
  268. package/es/index99.mjs +11 -2
  269. package/package.json +1 -1
package/es/index12.mjs CHANGED
@@ -1,9 +1,9 @@
1
1
  import { jsxs as g, jsx as f } from "react/jsx-runtime";
2
2
  import { CalendarView as t } from "./index66.mjs";
3
- import { classNames as ee } from "./index51.mjs";
3
+ import { classNames as ee } from "./index52.mjs";
4
4
  import { DaysView as te } from "./index67.mjs";
5
5
  import { forwardRef as ne, useState as y, useEffect as x, useMemo as re } from "react";
6
- import { DEFAULT_LOCALE as ae } from "./index52.mjs";
6
+ import { DEFAULT_LOCALE as ae } from "./index51.mjs";
7
7
  import { MonthsView as oe } from "./index68.mjs";
8
8
  import { YearsView as ie } from "./index69.mjs";
9
9
  import { titleize as se } from "./index70.mjs";
package/es/index120.mjs CHANGED
@@ -1,7 +1,46 @@
1
- import { toDate as o } from "./index149.mjs";
2
- function n(t, e) {
3
- return o(t, e?.in).getDate();
1
+ import { __exports as r } from "./index123.mjs";
2
+ Object.defineProperty(r, "__esModule", {
3
+ value: !0
4
+ });
5
+ r.log = c;
6
+ r.resetState = l;
7
+ function i(s, e) {
8
+ if (!(s instanceof e))
9
+ throw new TypeError("Cannot call a class as a function");
4
10
  }
5
- export {
6
- n as getDate
7
- };
11
+ var a = function s() {
12
+ var e = this;
13
+ i(this, s), this.register = function(n) {
14
+ if (e.openInstances.indexOf(n) !== -1) {
15
+ process.env.NODE_ENV !== "production" && console.warn("React-Modal: Cannot register modal instance that's already open");
16
+ return;
17
+ }
18
+ e.openInstances.push(n), e.emit("register");
19
+ }, this.deregister = function(n) {
20
+ var t = e.openInstances.indexOf(n);
21
+ if (t === -1) {
22
+ process.env.NODE_ENV !== "production" && console.warn("React-Modal: Unable to deregister " + n + " as it was never registered");
23
+ return;
24
+ }
25
+ e.openInstances.splice(t, 1), e.emit("deregister");
26
+ }, this.subscribe = function(n) {
27
+ e.subscribers.push(n);
28
+ }, this.emit = function(n) {
29
+ e.subscribers.forEach(function(t) {
30
+ return t(
31
+ n,
32
+ // shallow copy to avoid accidental mutation
33
+ e.openInstances.slice()
34
+ );
35
+ });
36
+ }, this.openInstances = [], this.subscribers = [];
37
+ }, o = new a();
38
+ function c() {
39
+ console.log("portalOpenInstances ----------"), console.log(o.openInstances.length), o.openInstances.forEach(function(s) {
40
+ return console.log(s);
41
+ }), console.log("end portalOpenInstances ----------");
42
+ }
43
+ function l() {
44
+ o = new a();
45
+ }
46
+ r.default = o;
package/es/index121.mjs CHANGED
@@ -1,4 +1,42 @@
1
- var p = { exports: {} };
1
+ import { __exports as d } from "./index147.mjs";
2
+ import "./index120.mjs";
3
+ import { __exports as i } from "./index123.mjs";
4
+ Object.defineProperty(d, "__esModule", {
5
+ value: !0
6
+ });
7
+ d.resetState = f;
8
+ d.log = v;
9
+ var p = i, c = u(p);
10
+ function u(t) {
11
+ return t && t.__esModule ? t : { default: t };
12
+ }
13
+ var e = void 0, o = void 0, r = [];
14
+ function f() {
15
+ for (var t = [e, o], n = 0; n < t.length; n++) {
16
+ var a = t[n];
17
+ a && a.parentNode && a.parentNode.removeChild(a);
18
+ }
19
+ e = o = null, r = [];
20
+ }
21
+ function v() {
22
+ console.log("bodyTrap ----------"), console.log(r.length);
23
+ for (var t = [e, o], n = 0; n < t.length; n++) {
24
+ var a = t[n], l = a || {};
25
+ console.log(l.nodeName, l.className, l.id);
26
+ }
27
+ console.log("edn bodyTrap ----------");
28
+ }
29
+ function s() {
30
+ if (r.length === 0) {
31
+ process.env.NODE_ENV !== "production" && console.warn("React-Modal: Open instances > 0 expected");
32
+ return;
33
+ }
34
+ r[r.length - 1].focusContent();
35
+ }
36
+ function m(t, n) {
37
+ !e && !o && (e = document.createElement("div"), e.setAttribute("data-react-modal-body-trap", ""), e.style.position = "absolute", e.style.opacity = "0", e.setAttribute("tabindex", "0"), e.addEventListener("focus", s), o = e.cloneNode(), o.addEventListener("focus", s)), r = n, r.length > 0 ? (document.body.firstChild !== e && document.body.insertBefore(e, document.body.firstChild), document.body.lastChild !== o && document.body.appendChild(o)) : (e.parentElement && e.parentElement.removeChild(e), o.parentElement && o.parentElement.removeChild(o));
38
+ }
39
+ c.default.subscribe(m);
2
40
  export {
3
- p as __module
41
+ d as default
4
42
  };
package/es/index122.mjs CHANGED
@@ -1,10 +1,4 @@
1
- import { __module as e } from "./index137.mjs";
2
- import { __require as o } from "./index138.mjs";
3
- import { __require as t } from "./index139.mjs";
4
- var r;
5
- function p() {
6
- return r ? e.exports : (r = 1, process.env.NODE_ENV === "production" ? e.exports = o() : e.exports = t(), e.exports);
7
- }
1
+ var s = {};
8
2
  export {
9
- p as __require
3
+ s as __exports
10
4
  };
package/es/index123.mjs CHANGED
@@ -1,329 +1,4 @@
1
- import { __require as F } from "./index122.mjs";
2
- import { __require as N } from "./index140.mjs";
3
- import { __require as ee } from "./index141.mjs";
4
- import { __require as re } from "./index142.mjs";
5
- import { __require as ne } from "./index143.mjs";
6
- var A, C;
7
- function oe() {
8
- if (C) return A;
9
- C = 1;
10
- var k = F(), W = N(), h = ee(), j = re(), R = ne(), T = function() {
11
- };
12
- process.env.NODE_ENV !== "production" && (T = function(x) {
13
- var S = "Warning: " + x;
14
- typeof console < "u" && console.error(S);
15
- try {
16
- throw new Error(S);
17
- } catch {
18
- }
19
- });
20
- function E() {
21
- return null;
22
- }
23
- return A = function(x, S) {
24
- var _ = typeof Symbol == "function" && Symbol.iterator, D = "@@iterator";
25
- function m(e) {
26
- var r = e && (_ && e[_] || e[D]);
27
- if (typeof r == "function")
28
- return r;
29
- }
30
- var P = "<<anonymous>>", w = {
31
- array: p("array"),
32
- bigint: p("bigint"),
33
- bool: p("boolean"),
34
- func: p("function"),
35
- number: p("number"),
36
- object: p("object"),
37
- string: p("string"),
38
- symbol: p("symbol"),
39
- any: M(),
40
- arrayOf: U,
41
- element: B(),
42
- elementType: J(),
43
- instanceOf: z,
44
- node: G(),
45
- objectOf: H,
46
- oneOf: L,
47
- oneOfType: X,
48
- shape: K,
49
- exact: Q
50
- };
51
- function Y(e, r) {
52
- return e === r ? e !== 0 || 1 / e === 1 / r : e !== e && r !== r;
53
- }
54
- function d(e, r) {
55
- this.message = e, this.data = r && typeof r == "object" ? r : {}, this.stack = "";
56
- }
57
- d.prototype = Error.prototype;
58
- function v(e) {
59
- if (process.env.NODE_ENV !== "production")
60
- var r = {}, u = 0;
61
- function i(f, t, a, o, c, s, y) {
62
- if (o = o || P, s = s || a, y !== h) {
63
- if (S) {
64
- var l = new Error(
65
- "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"
66
- );
67
- throw l.name = "Invariant Violation", l;
68
- } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
69
- var b = o + ":" + a;
70
- !r[b] && // Avoid spamming the console because they are often not actionable except for lib authors
71
- u < 3 && (T(
72
- "You are manually calling a React.PropTypes validation function for the `" + s + "` prop on `" + o + "`. 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."
73
- ), r[b] = !0, u++);
74
- }
75
- }
76
- return t[a] == null ? f ? t[a] === null ? new d("The " + c + " `" + s + "` is marked as required " + ("in `" + o + "`, but its value is `null`.")) : new d("The " + c + " `" + s + "` is marked as required in " + ("`" + o + "`, but its value is `undefined`.")) : null : e(t, a, o, c, s);
77
- }
78
- var n = i.bind(null, !1);
79
- return n.isRequired = i.bind(null, !0), n;
80
- }
81
- function p(e) {
82
- function r(u, i, n, f, t, a) {
83
- var o = u[i], c = g(o);
84
- if (c !== e) {
85
- var s = O(o);
86
- return new d(
87
- "Invalid " + f + " `" + t + "` of type " + ("`" + s + "` supplied to `" + n + "`, expected ") + ("`" + e + "`."),
88
- { expectedType: e }
89
- );
90
- }
91
- return null;
92
- }
93
- return v(r);
94
- }
95
- function M() {
96
- return v(E);
97
- }
98
- function U(e) {
99
- function r(u, i, n, f, t) {
100
- if (typeof e != "function")
101
- return new d("Property `" + t + "` of component `" + n + "` has invalid PropType notation inside arrayOf.");
102
- var a = u[i];
103
- if (!Array.isArray(a)) {
104
- var o = g(a);
105
- return new d("Invalid " + f + " `" + t + "` of type " + ("`" + o + "` supplied to `" + n + "`, expected an array."));
106
- }
107
- for (var c = 0; c < a.length; c++) {
108
- var s = e(a, c, n, f, t + "[" + c + "]", h);
109
- if (s instanceof Error)
110
- return s;
111
- }
112
- return null;
113
- }
114
- return v(r);
115
- }
116
- function B() {
117
- function e(r, u, i, n, f) {
118
- var t = r[u];
119
- if (!x(t)) {
120
- var a = g(t);
121
- return new d("Invalid " + n + " `" + f + "` of type " + ("`" + a + "` supplied to `" + i + "`, expected a single ReactElement."));
122
- }
123
- return null;
124
- }
125
- return v(e);
126
- }
127
- function J() {
128
- function e(r, u, i, n, f) {
129
- var t = r[u];
130
- if (!k.isValidElementType(t)) {
131
- var a = g(t);
132
- return new d("Invalid " + n + " `" + f + "` of type " + ("`" + a + "` supplied to `" + i + "`, expected a single ReactElement type."));
133
- }
134
- return null;
135
- }
136
- return v(e);
137
- }
138
- function z(e) {
139
- function r(u, i, n, f, t) {
140
- if (!(u[i] instanceof e)) {
141
- var a = e.name || P, o = V(u[i]);
142
- return new d("Invalid " + f + " `" + t + "` of type " + ("`" + o + "` supplied to `" + n + "`, expected ") + ("instance of `" + a + "`."));
143
- }
144
- return null;
145
- }
146
- return v(r);
147
- }
148
- function L(e) {
149
- if (!Array.isArray(e))
150
- return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? T(
151
- "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])."
152
- ) : T("Invalid argument supplied to oneOf, expected an array.")), E;
153
- function r(u, i, n, f, t) {
154
- for (var a = u[i], o = 0; o < e.length; o++)
155
- if (Y(a, e[o]))
156
- return null;
157
- var c = JSON.stringify(e, function(y, l) {
158
- var b = O(l);
159
- return b === "symbol" ? String(l) : l;
160
- });
161
- return new d("Invalid " + f + " `" + t + "` of value `" + String(a) + "` " + ("supplied to `" + n + "`, expected one of " + c + "."));
162
- }
163
- return v(r);
164
- }
165
- function H(e) {
166
- function r(u, i, n, f, t) {
167
- if (typeof e != "function")
168
- return new d("Property `" + t + "` of component `" + n + "` has invalid PropType notation inside objectOf.");
169
- var a = u[i], o = g(a);
170
- if (o !== "object")
171
- return new d("Invalid " + f + " `" + t + "` of type " + ("`" + o + "` supplied to `" + n + "`, expected an object."));
172
- for (var c in a)
173
- if (j(a, c)) {
174
- var s = e(a, c, n, f, t + "." + c, h);
175
- if (s instanceof Error)
176
- return s;
177
- }
178
- return null;
179
- }
180
- return v(r);
181
- }
182
- function X(e) {
183
- if (!Array.isArray(e))
184
- return process.env.NODE_ENV !== "production" && T("Invalid argument supplied to oneOfType, expected an instance of array."), E;
185
- for (var r = 0; r < e.length; r++) {
186
- var u = e[r];
187
- if (typeof u != "function")
188
- return T(
189
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + $(u) + " at index " + r + "."
190
- ), E;
191
- }
192
- function i(n, f, t, a, o) {
193
- for (var c = [], s = 0; s < e.length; s++) {
194
- var y = e[s], l = y(n, f, t, a, o, h);
195
- if (l == null)
196
- return null;
197
- l.data && j(l.data, "expectedType") && c.push(l.data.expectedType);
198
- }
199
- var b = c.length > 0 ? ", expected one of type [" + c.join(", ") + "]" : "";
200
- return new d("Invalid " + a + " `" + o + "` supplied to " + ("`" + t + "`" + b + "."));
201
- }
202
- return v(i);
203
- }
204
- function G() {
205
- function e(r, u, i, n, f) {
206
- return I(r[u]) ? null : new d("Invalid " + n + " `" + f + "` supplied to " + ("`" + i + "`, expected a ReactNode."));
207
- }
208
- return v(e);
209
- }
210
- function q(e, r, u, i, n) {
211
- return new d(
212
- (e || "React class") + ": " + r + " type `" + u + "." + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + n + "`."
213
- );
214
- }
215
- function K(e) {
216
- function r(u, i, n, f, t) {
217
- var a = u[i], o = g(a);
218
- if (o !== "object")
219
- return new d("Invalid " + f + " `" + t + "` of type `" + o + "` " + ("supplied to `" + n + "`, expected `object`."));
220
- for (var c in e) {
221
- var s = e[c];
222
- if (typeof s != "function")
223
- return q(n, f, t, c, O(s));
224
- var y = s(a, c, n, f, t + "." + c, h);
225
- if (y)
226
- return y;
227
- }
228
- return null;
229
- }
230
- return v(r);
231
- }
232
- function Q(e) {
233
- function r(u, i, n, f, t) {
234
- var a = u[i], o = g(a);
235
- if (o !== "object")
236
- return new d("Invalid " + f + " `" + t + "` of type `" + o + "` " + ("supplied to `" + n + "`, expected `object`."));
237
- var c = W({}, u[i], e);
238
- for (var s in c) {
239
- var y = e[s];
240
- if (j(e, s) && typeof y != "function")
241
- return q(n, f, t, s, O(y));
242
- if (!y)
243
- return new d(
244
- "Invalid " + f + " `" + t + "` key `" + s + "` supplied to `" + n + "`.\nBad object: " + JSON.stringify(u[i], null, " ") + `
245
- Valid keys: ` + JSON.stringify(Object.keys(e), null, " ")
246
- );
247
- var l = y(a, s, n, f, t + "." + s, h);
248
- if (l)
249
- return l;
250
- }
251
- return null;
252
- }
253
- return v(r);
254
- }
255
- function I(e) {
256
- switch (typeof e) {
257
- case "number":
258
- case "string":
259
- case "undefined":
260
- return !0;
261
- case "boolean":
262
- return !e;
263
- case "object":
264
- if (Array.isArray(e))
265
- return e.every(I);
266
- if (e === null || x(e))
267
- return !0;
268
- var r = m(e);
269
- if (r) {
270
- var u = r.call(e), i;
271
- if (r !== e.entries) {
272
- for (; !(i = u.next()).done; )
273
- if (!I(i.value))
274
- return !1;
275
- } else
276
- for (; !(i = u.next()).done; ) {
277
- var n = i.value;
278
- if (n && !I(n[1]))
279
- return !1;
280
- }
281
- } else
282
- return !1;
283
- return !0;
284
- default:
285
- return !1;
286
- }
287
- }
288
- function Z(e, r) {
289
- return e === "symbol" ? !0 : r ? r["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && r instanceof Symbol : !1;
290
- }
291
- function g(e) {
292
- var r = typeof e;
293
- return Array.isArray(e) ? "array" : e instanceof RegExp ? "object" : Z(r, e) ? "symbol" : r;
294
- }
295
- function O(e) {
296
- if (typeof e > "u" || e === null)
297
- return "" + e;
298
- var r = g(e);
299
- if (r === "object") {
300
- if (e instanceof Date)
301
- return "date";
302
- if (e instanceof RegExp)
303
- return "regexp";
304
- }
305
- return r;
306
- }
307
- function $(e) {
308
- var r = O(e);
309
- switch (r) {
310
- case "array":
311
- case "object":
312
- return "an " + r;
313
- case "boolean":
314
- case "date":
315
- case "regexp":
316
- return "a " + r;
317
- default:
318
- return r;
319
- }
320
- }
321
- function V(e) {
322
- return !e.constructor || !e.constructor.name ? P : e.constructor.name;
323
- }
324
- return w.checkPropTypes = R, w.resetWarningCache = R.resetWarningCache, w.PropTypes = w, w;
325
- }, A;
326
- }
1
+ var a = {};
327
2
  export {
328
- oe as __require
3
+ a as __exports
329
4
  };
package/es/index124.mjs CHANGED
@@ -1,52 +1,4 @@
1
- import { __require as u } from "./index141.mjs";
2
- var o, p;
3
- function g() {
4
- if (p) return o;
5
- p = 1;
6
- var c = u();
7
- function n() {
8
- }
9
- function i() {
10
- }
11
- return i.resetWarningCache = n, o = function() {
12
- function e(h, y, m, f, l, s) {
13
- if (s !== c) {
14
- var a = new Error(
15
- "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"
16
- );
17
- throw a.name = "Invariant Violation", a;
18
- }
19
- }
20
- e.isRequired = e;
21
- function r() {
22
- return e;
23
- }
24
- var t = {
25
- array: e,
26
- bigint: e,
27
- bool: e,
28
- func: e,
29
- number: e,
30
- object: e,
31
- string: e,
32
- symbol: e,
33
- any: e,
34
- arrayOf: r,
35
- element: e,
36
- elementType: e,
37
- instanceOf: r,
38
- node: e,
39
- objectOf: r,
40
- oneOf: r,
41
- oneOfType: r,
42
- shape: r,
43
- exact: r,
44
- checkPropTypes: i,
45
- resetWarningCache: n
46
- };
47
- return t.PropTypes = t, t;
48
- }, o;
49
- }
1
+ var a = {};
50
2
  export {
51
- g as __require
3
+ a as __exports
52
4
  };
package/es/index125.mjs CHANGED
@@ -1,4 +1,33 @@
1
- var o = { exports: {} };
1
+ var c = process.env.NODE_ENV !== "production", i = function() {
2
+ };
3
+ if (c) {
4
+ var g = function(e, r) {
5
+ var a = arguments.length;
6
+ r = new Array(a > 1 ? a - 1 : 0);
7
+ for (var n = 1; n < a; n++)
8
+ r[n - 1] = arguments[n];
9
+ var u = 0, t = "Warning: " + e.replace(/%s/g, function() {
10
+ return r[u++];
11
+ });
12
+ typeof console < "u" && console.error(t);
13
+ try {
14
+ throw new Error(t);
15
+ } catch {
16
+ }
17
+ };
18
+ i = function(o, e, r) {
19
+ var a = arguments.length;
20
+ r = new Array(a > 2 ? a - 2 : 0);
21
+ for (var n = 2; n < a; n++)
22
+ r[n - 2] = arguments[n];
23
+ if (e === void 0)
24
+ throw new Error(
25
+ "`warning(condition, format, ...args)` requires a warning message argument"
26
+ );
27
+ o || g.apply(null, [e].concat(r));
28
+ };
29
+ }
30
+ var s = i;
2
31
  export {
3
- o as __module
32
+ s as w
4
33
  };
package/es/index126.mjs CHANGED
@@ -1,67 +1,21 @@
1
- import { __exports as t } from "./index133.mjs";
2
- import { t as s } from "./index144.mjs";
3
- Object.defineProperty(t, "__esModule", {
4
- value: !0
5
- });
6
- t.resetState = f;
7
- t.log = v;
8
- t.handleBlur = r;
9
- t.handleFocus = a;
10
- t.markForFocusLater = m;
11
- t.returnFocus = p;
12
- t.popWithoutFocus = h;
13
- t.setupScopedFocus = E;
14
- t.teardownScopedFocus = F;
15
- var l = s, i = d(l);
16
- function d(e) {
17
- return e && e.__esModule ? e : { default: e };
18
- }
19
- var n = [], u = null, c = !1;
20
- function f() {
21
- n = [];
22
- }
23
- function v() {
24
- process.env.NODE_ENV !== "production" && (console.log("focusManager ----------"), n.forEach(function(e) {
25
- var o = e || {};
26
- console.log(o.nodeName, o.className, o.id);
27
- }), console.log("end focusManager ----------"));
28
- }
29
- function r() {
30
- c = !0;
31
- }
32
- function a() {
33
- if (c) {
34
- if (c = !1, !u)
35
- return;
36
- setTimeout(function() {
37
- if (!u.contains(document.activeElement)) {
38
- var e = (0, i.default)(u)[0] || u;
39
- e.focus();
40
- }
41
- }, 0);
42
- }
43
- }
44
- function m() {
45
- n.push(document.activeElement);
46
- }
47
- function p() {
48
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, o = null;
49
- try {
50
- n.length !== 0 && (o = n.pop(), o.focus({ preventScroll: e }));
51
- return;
52
- } catch {
53
- console.warn(["You tried to return focus to", o, "but it is not in the DOM anymore"].join(" "));
54
- }
55
- }
56
- function h() {
57
- n.length > 0 && n.pop();
58
- }
59
- function E(e) {
60
- u = e, window.addEventListener ? (window.addEventListener("blur", r, !1), document.addEventListener("focus", a, !0)) : (window.attachEvent("onBlur", r), document.attachEvent("onFocus", a));
61
- }
62
- function F() {
63
- u = null, window.addEventListener ? (window.removeEventListener("blur", r), document.removeEventListener("focus", a)) : (window.detachEvent("onBlur", r), document.detachEvent("onFocus", a));
64
- }
1
+ import { __module as t } from "./index144.mjs";
2
+ /*!
3
+ Copyright (c) 2015 Jed Watson.
4
+ Based on code that is Copyright 2013-2015, Facebook, Inc.
5
+ All rights reserved.
6
+ */
7
+ (function(n) {
8
+ (function() {
9
+ var e = !!(typeof window < "u" && window.document && window.document.createElement), o = {
10
+ canUseDOM: e,
11
+ canUseWorkers: typeof Worker < "u",
12
+ canUseEventListeners: e && !!(window.addEventListener || window.attachEvent),
13
+ canUseViewport: e && !!window.screen
14
+ };
15
+ n.exports ? n.exports = o : window.ExecutionEnvironment = o;
16
+ })();
17
+ })(t);
18
+ var i = t.exports;
65
19
  export {
66
- t as default
20
+ i as e
67
21
  };