@a-ui/react 7.13.0-beta.0 → 7.13.0-beta.1

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 (475) hide show
  1. package/constants/settings.d.ts +1 -1
  2. package/constants/stories.settings.d.ts +11 -0
  3. package/index.js +1 -62
  4. package/index.mjs +98 -9098
  5. package/index10.js +1 -0
  6. package/index10.mjs +60 -0
  7. package/index100.js +1 -0
  8. package/index100.mjs +4 -0
  9. package/index101.js +1 -0
  10. package/index101.mjs +400 -0
  11. package/index102.js +5 -0
  12. package/index102.mjs +42 -0
  13. package/index103.js +1 -0
  14. package/index103.mjs +4 -0
  15. package/index104.js +1 -0
  16. package/index104.mjs +10 -0
  17. package/index105.js +2 -0
  18. package/index105.mjs +329 -0
  19. package/index106.js +1 -0
  20. package/index106.mjs +52 -0
  21. package/index107.js +1 -0
  22. package/index107.mjs +4 -0
  23. package/index108.js +1 -0
  24. package/index108.mjs +67 -0
  25. package/index109.js +1 -0
  26. package/index109.mjs +45 -0
  27. package/index11.js +1 -0
  28. package/index11.mjs +12 -0
  29. package/index110.js +10 -0
  30. package/index110.mjs +62 -0
  31. package/index111.js +1 -0
  32. package/index111.mjs +46 -0
  33. package/index112.js +1 -0
  34. package/index112.mjs +42 -0
  35. package/index113.js +1 -0
  36. package/index113.mjs +4 -0
  37. package/index114.js +1 -0
  38. package/index114.mjs +4 -0
  39. package/index115.js +1 -0
  40. package/index115.mjs +4 -0
  41. package/index116.js +1 -0
  42. package/index116.mjs +33 -0
  43. package/index117.js +5 -0
  44. package/index117.mjs +21 -0
  45. package/index118.js +9 -0
  46. package/index118.mjs +63 -0
  47. package/index119.js +1 -0
  48. package/index119.mjs +65 -0
  49. package/index12.js +1 -0
  50. package/index12.mjs +215 -0
  51. package/index120.js +1 -0
  52. package/index120.mjs +16 -0
  53. package/index121.js +1 -0
  54. package/index121.mjs +9 -0
  55. package/index122.js +1 -0
  56. package/index122.mjs +9 -0
  57. package/index123.js +1 -0
  58. package/index123.mjs +8 -0
  59. package/index124.js +1 -0
  60. package/index124.mjs +8 -0
  61. package/index125.js +1 -0
  62. package/index125.mjs +7 -0
  63. package/index126.js +1 -0
  64. package/index126.mjs +7 -0
  65. package/index127.js +1 -0
  66. package/index127.mjs +9 -0
  67. package/index128.js +1 -0
  68. package/index128.mjs +7 -0
  69. package/index129.js +1 -0
  70. package/index129.mjs +69 -0
  71. package/index13.js +1 -0
  72. package/index13.mjs +29 -0
  73. package/index130.js +1 -0
  74. package/index130.mjs +5 -0
  75. package/index131.js +1 -0
  76. package/index131.mjs +7 -0
  77. package/index132.js +1 -0
  78. package/index132.mjs +13 -0
  79. package/index133.js +1 -0
  80. package/index133.mjs +4 -0
  81. package/index134.js +1 -0
  82. package/index134.mjs +393 -0
  83. package/index135.js +1 -0
  84. package/index135.mjs +127 -0
  85. package/index136.js +1 -0
  86. package/index136.mjs +136 -0
  87. package/index137.js +1 -0
  88. package/index137.mjs +4 -0
  89. package/index138.js +1 -0
  90. package/index138.mjs +4 -0
  91. package/index139.js +8 -0
  92. package/index139.mjs +78 -0
  93. package/index14.js +1 -0
  94. package/index14.mjs +44 -0
  95. package/index140.js +8 -0
  96. package/index140.mjs +95 -0
  97. package/index141.js +5 -0
  98. package/index141.mjs +54 -0
  99. package/index142.js +1 -0
  100. package/index142.mjs +10 -0
  101. package/index143.js +1 -0
  102. package/index143.mjs +7 -0
  103. package/index144.js +1 -0
  104. package/index144.mjs +54 -0
  105. package/index145.js +11 -0
  106. package/index145.mjs +60 -0
  107. package/index146.js +1 -0
  108. package/index146.mjs +4 -0
  109. package/index147.js +1 -0
  110. package/index147.mjs +4 -0
  111. package/index148.js +1 -0
  112. package/index148.mjs +7 -0
  113. package/index149.js +1 -0
  114. package/index149.mjs +7 -0
  115. package/index15.js +1 -0
  116. package/index15.mjs +8 -0
  117. package/index150.js +1 -0
  118. package/index150.mjs +9 -0
  119. package/index151.js +1 -0
  120. package/index151.mjs +15 -0
  121. package/index152.js +1 -0
  122. package/index152.mjs +18 -0
  123. package/index153.js +1 -0
  124. package/index153.mjs +11 -0
  125. package/index154.js +1 -0
  126. package/index154.mjs +8 -0
  127. package/index155.js +1 -0
  128. package/index155.mjs +8 -0
  129. package/index156.js +1 -0
  130. package/index156.mjs +7 -0
  131. package/index157.js +1 -0
  132. package/index157.mjs +515 -0
  133. package/index158.js +1 -0
  134. package/index158.mjs +52 -0
  135. package/index159.js +1 -0
  136. package/index159.mjs +20 -0
  137. package/index16.js +1 -0
  138. package/index16.mjs +15 -0
  139. package/index160.js +1 -0
  140. package/index160.mjs +20 -0
  141. package/index161.js +1 -0
  142. package/index161.mjs +7 -0
  143. package/index162.js +1 -0
  144. package/index162.mjs +10 -0
  145. package/index163.js +1 -0
  146. package/index163.mjs +8 -0
  147. package/index164.js +1 -0
  148. package/index164.mjs +7 -0
  149. package/index165.js +1 -0
  150. package/index165.mjs +8 -0
  151. package/index166.js +1 -0
  152. package/index166.mjs +11 -0
  153. package/index167.js +1 -0
  154. package/index167.mjs +7 -0
  155. package/index168.js +1 -0
  156. package/index168.mjs +10 -0
  157. package/index169.js +1 -0
  158. package/index169.mjs +14 -0
  159. package/index17.js +1 -0
  160. package/index17.mjs +108 -0
  161. package/index170.js +1 -0
  162. package/index170.mjs +11 -0
  163. package/index171.js +1 -0
  164. package/index171.mjs +11 -0
  165. package/index172.js +1 -0
  166. package/index172.mjs +15 -0
  167. package/index173.js +1 -0
  168. package/index173.mjs +6 -0
  169. package/index174.js +1 -0
  170. package/index174.mjs +35 -0
  171. package/index175.js +1 -0
  172. package/index175.mjs +67 -0
  173. package/index176.js +1 -0
  174. package/index176.mjs +10 -0
  175. package/index177.js +1 -0
  176. package/index177.mjs +10 -0
  177. package/index178.js +1 -0
  178. package/index178.mjs +9 -0
  179. package/index179.js +1 -0
  180. package/index179.mjs +9 -0
  181. package/index18.js +1 -0
  182. package/index18.mjs +136 -0
  183. package/index180.js +1 -0
  184. package/index180.mjs +16 -0
  185. package/index181.js +1 -0
  186. package/index181.mjs +4 -0
  187. package/index182.js +1 -0
  188. package/index182.mjs +4 -0
  189. package/index183.js +1 -0
  190. package/index183.mjs +4 -0
  191. package/index184.js +1 -0
  192. package/index184.mjs +59 -0
  193. package/index185.js +1 -0
  194. package/index185.mjs +24 -0
  195. package/index186.js +1 -0
  196. package/index186.mjs +43 -0
  197. package/index187.js +1 -0
  198. package/index187.mjs +63 -0
  199. package/index188.js +1 -0
  200. package/index188.mjs +34 -0
  201. package/index189.js +1 -0
  202. package/index189.mjs +15 -0
  203. package/index19.js +1 -0
  204. package/index19.mjs +11 -0
  205. package/index190.js +1 -0
  206. package/index190.mjs +64 -0
  207. package/index191.js +1 -0
  208. package/index191.mjs +64 -0
  209. package/index192.js +1 -0
  210. package/index192.mjs +65 -0
  211. package/index193.js +1 -0
  212. package/index193.mjs +65 -0
  213. package/index194.js +1 -0
  214. package/index194.mjs +42 -0
  215. package/index195.js +1 -0
  216. package/index195.mjs +43 -0
  217. package/index196.js +1 -0
  218. package/index196.mjs +55 -0
  219. package/index197.js +1 -0
  220. package/index197.mjs +45 -0
  221. package/index198.js +1 -0
  222. package/index198.mjs +39 -0
  223. package/index199.js +1 -0
  224. package/index199.mjs +68 -0
  225. package/index2.js +1 -0
  226. package/index2.mjs +12 -0
  227. package/index20.js +1 -0
  228. package/index20.mjs +54 -0
  229. package/index200.js +1 -0
  230. package/index200.mjs +68 -0
  231. package/index201.js +1 -0
  232. package/index201.mjs +93 -0
  233. package/index202.js +1 -0
  234. package/index202.mjs +43 -0
  235. package/index203.js +1 -0
  236. package/index203.mjs +43 -0
  237. package/index204.js +1 -0
  238. package/index204.mjs +43 -0
  239. package/index205.js +1 -0
  240. package/index205.mjs +27 -0
  241. package/index206.js +1 -0
  242. package/index206.mjs +26 -0
  243. package/index207.js +1 -0
  244. package/index207.mjs +26 -0
  245. package/index208.js +1 -0
  246. package/index208.mjs +27 -0
  247. package/index209.js +1 -0
  248. package/index209.mjs +26 -0
  249. package/index21.js +1 -0
  250. package/index21.mjs +33 -0
  251. package/index210.js +1 -0
  252. package/index210.mjs +26 -0
  253. package/index211.js +1 -0
  254. package/index211.mjs +16 -0
  255. package/index212.js +1 -0
  256. package/index212.mjs +42 -0
  257. package/index213.js +1 -0
  258. package/index213.mjs +42 -0
  259. package/index214.js +1 -0
  260. package/index214.mjs +16 -0
  261. package/index215.js +1 -0
  262. package/index215.mjs +16 -0
  263. package/index216.js +1 -0
  264. package/index216.mjs +70 -0
  265. package/index217.js +1 -0
  266. package/index217.mjs +33 -0
  267. package/index218.js +1 -0
  268. package/index218.mjs +11 -0
  269. package/index219.js +1 -0
  270. package/index219.mjs +155 -0
  271. package/index22.js +1 -0
  272. package/index22.mjs +22 -0
  273. package/index220.js +1 -0
  274. package/index220.mjs +110 -0
  275. package/index221.js +1 -0
  276. package/index221.mjs +22 -0
  277. package/index222.js +1 -0
  278. package/index222.mjs +103 -0
  279. package/index223.js +1 -0
  280. package/index223.mjs +49 -0
  281. package/index224.js +1 -0
  282. package/index224.mjs +70 -0
  283. package/index225.js +1 -0
  284. package/index225.mjs +33 -0
  285. package/index226.js +1 -0
  286. package/index226.mjs +11 -0
  287. package/index227.js +1 -0
  288. package/index227.mjs +110 -0
  289. package/index228.js +1 -0
  290. package/index228.mjs +109 -0
  291. package/index229.js +1 -0
  292. package/index229.mjs +9 -0
  293. package/index23.js +1 -0
  294. package/index23.mjs +32 -0
  295. package/index230.js +1 -0
  296. package/index230.mjs +18 -0
  297. package/index231.js +1 -0
  298. package/index231.mjs +31 -0
  299. package/index232.js +1 -0
  300. package/index232.mjs +15 -0
  301. package/index233.js +1 -0
  302. package/index233.mjs +61 -0
  303. package/index234.js +1 -0
  304. package/index234.mjs +11 -0
  305. package/index235.js +1 -0
  306. package/index235.mjs +22 -0
  307. package/index24.js +2 -0
  308. package/index24.mjs +62 -0
  309. package/index25.js +1 -0
  310. package/index25.mjs +15 -0
  311. package/index26.js +1 -0
  312. package/index26.mjs +12 -0
  313. package/index27.js +1 -0
  314. package/index27.mjs +43 -0
  315. package/index28.js +1 -0
  316. package/index28.mjs +34 -0
  317. package/index29.js +1 -0
  318. package/index29.mjs +10 -0
  319. package/index3.js +1 -0
  320. package/index3.mjs +15 -0
  321. package/index30.js +1 -0
  322. package/index30.mjs +72 -0
  323. package/index31.js +1 -0
  324. package/index31.mjs +40 -0
  325. package/index32.js +1 -0
  326. package/index32.mjs +48 -0
  327. package/index33.js +1 -0
  328. package/index33.mjs +90 -0
  329. package/index34.js +1 -0
  330. package/index34.mjs +36 -0
  331. package/index35.js +1 -0
  332. package/index35.mjs +25 -0
  333. package/index36.js +1 -0
  334. package/index36.mjs +27 -0
  335. package/index37.js +1 -0
  336. package/index37.mjs +110 -0
  337. package/index38.js +1 -0
  338. package/index38.mjs +57 -0
  339. package/index39.js +1 -0
  340. package/index39.mjs +21 -0
  341. package/index4.js +1 -0
  342. package/index4.mjs +58 -0
  343. package/index40.js +1 -0
  344. package/index40.mjs +40 -0
  345. package/index41.js +1 -0
  346. package/index41.mjs +54 -0
  347. package/index42.js +1 -0
  348. package/index42.mjs +73 -0
  349. package/index43.js +1 -0
  350. package/index43.mjs +49 -0
  351. package/index44.js +1 -0
  352. package/index44.mjs +13 -0
  353. package/index45.js +1 -0
  354. package/index45.mjs +73 -0
  355. package/index46.js +1 -0
  356. package/index46.mjs +99 -0
  357. package/index47.js +1 -0
  358. package/index47.mjs +45 -0
  359. package/index48.js +1 -0
  360. package/index48.mjs +26 -0
  361. package/index49.js +1 -0
  362. package/index49.mjs +83 -0
  363. package/index5.js +1 -0
  364. package/index5.mjs +136 -0
  365. package/index50.js +1 -0
  366. package/index50.mjs +35 -0
  367. package/index51.js +1 -0
  368. package/index51.mjs +10 -0
  369. package/index52.js +1 -0
  370. package/index52.mjs +13 -0
  371. package/index53.js +1 -0
  372. package/index53.mjs +30 -0
  373. package/index54.js +1 -0
  374. package/index54.mjs +51 -0
  375. package/index55.js +1 -0
  376. package/index55.mjs +10 -0
  377. package/index56.js +1 -0
  378. package/index56.mjs +49 -0
  379. package/index58.js +1 -0
  380. package/index58.mjs +64 -0
  381. package/index59.js +1 -0
  382. package/index59.mjs +62 -0
  383. package/index6.js +1 -0
  384. package/index6.mjs +29 -0
  385. package/index60.js +1 -0
  386. package/index60.mjs +31 -0
  387. package/index61.js +1 -0
  388. package/index61.mjs +23 -0
  389. package/index62.js +1 -0
  390. package/index62.mjs +32 -0
  391. package/index63.js +1 -0
  392. package/index63.mjs +16 -0
  393. package/index64.js +1 -0
  394. package/index64.mjs +61 -0
  395. package/index65.js +1 -0
  396. package/index65.mjs +19 -0
  397. package/index66.js +7 -0
  398. package/index66.mjs +411 -0
  399. package/index7.js +1 -0
  400. package/index7.mjs +8 -0
  401. package/index70.js +1 -0
  402. package/index70.mjs +4 -0
  403. package/index71.js +1 -0
  404. package/index71.mjs +76 -0
  405. package/index72.js +1 -0
  406. package/index72.mjs +31 -0
  407. package/index73.js +1 -0
  408. package/index73.mjs +38 -0
  409. package/index74.js +1 -0
  410. package/index74.mjs +6 -0
  411. package/index75.js +1 -0
  412. package/index75.mjs +37 -0
  413. package/index76.js +1 -0
  414. package/index76.mjs +7 -0
  415. package/index77.js +1 -0
  416. package/index77.mjs +7 -0
  417. package/index78.js +1 -0
  418. package/index78.mjs +7 -0
  419. package/index79.js +1 -0
  420. package/index79.mjs +7 -0
  421. package/index8.js +1 -0
  422. package/index8.mjs +18 -0
  423. package/index80.js +1 -0
  424. package/index80.mjs +7 -0
  425. package/index81.js +1 -0
  426. package/index81.mjs +19 -0
  427. package/index82.js +1 -0
  428. package/index82.mjs +87 -0
  429. package/index83.js +1 -0
  430. package/index83.mjs +8 -0
  431. package/index84.js +1 -0
  432. package/index84.mjs +27 -0
  433. package/index85.js +1 -0
  434. package/index85.mjs +57 -0
  435. package/index87.js +1 -0
  436. package/index87.mjs +7 -0
  437. package/index88.js +1 -0
  438. package/index88.mjs +121 -0
  439. package/index89.js +1 -0
  440. package/index89.mjs +20 -0
  441. package/index9.js +1 -0
  442. package/index9.mjs +18 -0
  443. package/index90.js +1 -0
  444. package/index90.mjs +26 -0
  445. package/index91.js +1 -0
  446. package/index91.mjs +4 -0
  447. package/index92.js +1 -0
  448. package/index92.mjs +237 -0
  449. package/index93.js +1 -0
  450. package/index93.mjs +4 -0
  451. package/index94.js +1 -0
  452. package/index94.mjs +13 -0
  453. package/index95.js +1 -0
  454. package/index95.mjs +249 -0
  455. package/index96.js +1 -0
  456. package/index96.mjs +91 -0
  457. package/index97.js +1 -0
  458. package/index97.mjs +15 -0
  459. package/index98.js +1 -0
  460. package/index98.mjs +6 -0
  461. package/index99.js +1 -0
  462. package/index99.mjs +4 -0
  463. package/lib/atoms/input/text-field/TextField.d.ts +1 -1
  464. package/lib/atoms/select/Select.types.d.ts +1 -1
  465. package/lib/base/icon/Icon.d.ts +1 -1
  466. package/lib/molecules/datepicker/Calendar.d.ts +1 -1
  467. package/lib/molecules/flyout/Flyout.d.ts +1 -1
  468. package/lib/molecules/tag/Tag.d.ts +1 -1
  469. package/package.json +4 -1
  470. package/packages/antwerp-ui/react-components/src/lib/atoms/input/text-field/TextField.css +1 -0
  471. package/packages/antwerp-ui/react-components/src/lib/atoms/tooltip/Tooltip.css +1 -0
  472. package/packages/antwerp-ui/react-components/src/lib/molecules/autocomplete/Autocomplete.css +1 -0
  473. package/packages/antwerp-ui/react-components/src/lib/molecules/datepicker/DateRangePicker.css +1 -0
  474. package/utils/math.utils.d.ts +1 -1
  475. package/index.css +0 -1
package/index105.mjs ADDED
@@ -0,0 +1,329 @@
1
+ import { __require as F } from "./index104.mjs";
2
+ import { __require as N } from "./index141.mjs";
3
+ import { __require as ee } from "./index142.mjs";
4
+ import { __require as re } from "./index143.mjs";
5
+ import { __require as ne } from "./index144.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
+ }
327
+ export {
328
+ oe as __require
329
+ };
package/index106.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index142.js");var n,p;function y(){if(p)return n;p=1;var c=u.__require();function o(){}function i(){}return i.resetWarningCache=o,n=function(){function e(h,m,f,l,T,s){if(s!==c){var a=new Error("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");throw a.name="Invariant Violation",a}}e.isRequired=e;function r(){return e}var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,elementType:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:i,resetWarningCache:o};return t.PropTypes=t,t},n}exports.__require=y;
package/index106.mjs ADDED
@@ -0,0 +1,52 @@
1
+ import { __require as u } from "./index142.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
+ }
50
+ export {
51
+ g as __require
52
+ };
package/index107.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
package/index107.mjs ADDED
@@ -0,0 +1,4 @@
1
+ var o = { exports: {} };
2
+ export {
3
+ o as __module
4
+ };
package/index108.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";const t=require("./index115.js"),a=require("./index145.js");Object.defineProperty(t.__exports,"__esModule",{value:!0});t.__exports.resetState=f;t.__exports.log=p;t.__exports.handleBlur=u;t.__exports.handleFocus=s;t.__exports.markForFocusLater=_;t.__exports.returnFocus=v;t.__exports.popWithoutFocus=m;t.__exports.setupScopedFocus=h;t.__exports.teardownScopedFocus=E;var l=a.tabbableExports,i=d(l);function d(e){return e&&e.__esModule?e:{default:e}}var n=[],r=null,c=!1;function f(){n=[]}function p(){process.env.NODE_ENV!=="production"&&(console.log("focusManager ----------"),n.forEach(function(e){var o=e||{};console.log(o.nodeName,o.className,o.id)}),console.log("end focusManager ----------"))}function u(){c=!0}function s(){if(c){if(c=!1,!r)return;setTimeout(function(){if(!r.contains(document.activeElement)){var e=(0,i.default)(r)[0]||r;e.focus()}},0)}}function _(){n.push(document.activeElement)}function v(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=null;try{n.length!==0&&(o=n.pop(),o.focus({preventScroll:e}));return}catch{console.warn(["You tried to return focus to",o,"but it is not in the DOM anymore"].join(" "))}}function m(){n.length>0&&n.pop()}function h(e){r=e,window.addEventListener?(window.addEventListener("blur",u,!1),document.addEventListener("focus",s,!0)):(window.attachEvent("onBlur",u),document.attachEvent("onFocus",s))}function E(){r=null,window.addEventListener?(window.removeEventListener("blur",u),document.removeEventListener("focus",s)):(window.detachEvent("onBlur",u),document.detachEvent("onFocus",s))}module.exports=t.__exports;
package/index108.mjs ADDED
@@ -0,0 +1,67 @@
1
+ import { __exports as t } from "./index115.mjs";
2
+ import { t as s } from "./index145.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
+ }
65
+ export {
66
+ t as default
67
+ };
package/index109.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index146.js"),h=require("./index145.js");(function(d,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=m;var v=h.tabbableExports,p=g(v);function g(e){return e&&e.__esModule?e:{default:e}}function b(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;return e.activeElement.shadowRoot?b(e.activeElement.shadowRoot):e.activeElement}function m(e,r){var a=(0,p.default)(e);if(!a.length){r.preventDefault();return}var t=void 0,u=r.shiftKey,l=a[0],n=a[a.length-1],i=b();if(e===i){if(!u)return;t=n}if(n===i&&!u&&(t=l),l===i&&u&&(t=n),t){r.preventDefault(),t.focus();return}var c=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent),_=c!=null&&c[1]!="Chrome"&&/\biPod\b|\biPad\b/g.exec(navigator.userAgent)==null;if(_){var f=a.indexOf(i);if(f>-1&&(f+=u?-1:1),t=a[f],typeof t>"u"){r.preventDefault(),t=u?n:l,t.focus();return}r.preventDefault(),t.focus()}}d.exports=o.default})(s.__module,s.__module.exports);var x=s.__module.exports;exports.scopeTabExports=x;
package/index109.mjs ADDED
@@ -0,0 +1,45 @@
1
+ import { __module as s } from "./index146.mjs";
2
+ import { t as _ } from "./index145.mjs";
3
+ (function(c, f) {
4
+ Object.defineProperty(f, "__esModule", {
5
+ value: !0
6
+ }), f.default = g;
7
+ var d = _, p = m(d);
8
+ function m(e) {
9
+ return e && e.__esModule ? e : { default: e };
10
+ }
11
+ function v() {
12
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : document;
13
+ return e.activeElement.shadowRoot ? v(e.activeElement.shadowRoot) : e.activeElement;
14
+ }
15
+ function g(e, r) {
16
+ var a = (0, p.default)(e);
17
+ if (!a.length) {
18
+ r.preventDefault();
19
+ return;
20
+ }
21
+ var t = void 0, n = r.shiftKey, o = a[0], u = a[a.length - 1], i = v();
22
+ if (e === i) {
23
+ if (!n) return;
24
+ t = u;
25
+ }
26
+ if (u === i && !n && (t = o), o === i && n && (t = u), t) {
27
+ r.preventDefault(), t.focus();
28
+ return;
29
+ }
30
+ var b = /(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent), h = b != null && b[1] != "Chrome" && /\biPod\b|\biPad\b/g.exec(navigator.userAgent) == null;
31
+ if (h) {
32
+ var l = a.indexOf(i);
33
+ if (l > -1 && (l += n ? -1 : 1), t = a[l], typeof t > "u") {
34
+ r.preventDefault(), t = n ? u : o, t.focus();
35
+ return;
36
+ }
37
+ r.preventDefault(), t.focus();
38
+ }
39
+ }
40
+ c.exports = f.default;
41
+ })(s, s.exports);
42
+ var D = s.exports;
43
+ export {
44
+ D as s
45
+ };
package/index11.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),s=require("./index51.js");function n({children:t,vertical:e,qa:u}){const o=s.classNames({"m-button-group":!0,"m-button-group--vertical":!!e});return r.jsx("div",{className:o,"data-qa":u,children:t})}exports.ButtonGroup=n;
package/index11.mjs ADDED
@@ -0,0 +1,12 @@
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import { classNames as u } from "./index51.mjs";
3
+ function n({ children: t, vertical: o, qa: r }) {
4
+ const s = u({
5
+ "m-button-group": !0,
6
+ "m-button-group--vertical": !!o
7
+ });
8
+ return /* @__PURE__ */ a("div", { className: s, "data-qa": r, children: t });
9
+ }
10
+ export {
11
+ n as ButtonGroup
12
+ };
package/index110.js ADDED
@@ -0,0 +1,10 @@
1
+ "use strict";const a=require("./index113.js");Object.defineProperty(a.__exports,"__esModule",{value:!0});a.__exports.resetState=d;a.__exports.log=u;var o={},c={};function i(n,e){n.classList.remove(e)}function d(){var n=document.getElementsByTagName("html")[0];for(var e in o)i(n,o[e]);var t=document.body;for(var r in c)i(t,c[r]);o={},c={}}function u(){if(process.env.NODE_ENV!=="production"){var n=document.getElementsByTagName("html")[0].className,e=`Show tracked classes:
2
+
3
+ `;e+="<html /> ("+n+`):
4
+ `;for(var t in o)e+=" "+t+" "+o[t]+`
5
+ `;n=document.body.className,e+=`
6
+
7
+ doc.body (`+n+`):
8
+ `;for(var r in c)e+=" "+r+" "+c[r]+`
9
+ `;e+=`
10
+ `,console.log(e)}}var v=function(e,t){return e[t]||(e[t]=0),e[t]+=1,t},m=function(e,t){return e[t]&&(e[t]-=1),t},f=function(e,t,r){r.forEach(function(s){v(t,s),e.add(s)})},_=function(e,t,r){r.forEach(function(s){m(t,s),t[s]===0&&e.remove(s)})};a.__exports.add=function(e,t){return f(e.classList,e.nodeName.toLowerCase()=="html"?o:c,t.split(" "))};a.__exports.remove=function(e,t){return _(e.classList,e.nodeName.toLowerCase()=="html"?o:c,t.split(" "))};module.exports=a.__exports;
package/index110.mjs ADDED
@@ -0,0 +1,62 @@
1
+ import { __exports as i } from "./index113.mjs";
2
+ Object.defineProperty(i, "__esModule", {
3
+ value: !0
4
+ });
5
+ i.resetState = d;
6
+ i.log = m;
7
+ var o = {}, a = {};
8
+ function s(t, e) {
9
+ t.classList.remove(e);
10
+ }
11
+ function d() {
12
+ var t = document.getElementsByTagName("html")[0];
13
+ for (var e in o)
14
+ s(t, o[e]);
15
+ var n = document.body;
16
+ for (var r in a)
17
+ s(n, a[r]);
18
+ o = {}, a = {};
19
+ }
20
+ function m() {
21
+ if (process.env.NODE_ENV !== "production") {
22
+ var t = document.getElementsByTagName("html")[0].className, e = `Show tracked classes:
23
+
24
+ `;
25
+ e += "<html /> (" + t + `):
26
+ `;
27
+ for (var n in o)
28
+ e += " " + n + " " + o[n] + `
29
+ `;
30
+ t = document.body.className, e += `
31
+
32
+ doc.body (` + t + `):
33
+ `;
34
+ for (var r in a)
35
+ e += " " + r + " " + a[r] + `
36
+ `;
37
+ e += `
38
+ `, console.log(e);
39
+ }
40
+ }
41
+ var u = function(e, n) {
42
+ return e[n] || (e[n] = 0), e[n] += 1, n;
43
+ }, v = function(e, n) {
44
+ return e[n] && (e[n] -= 1), n;
45
+ }, f = function(e, n, r) {
46
+ r.forEach(function(c) {
47
+ u(n, c), e.add(c);
48
+ });
49
+ }, l = function(e, n, r) {
50
+ r.forEach(function(c) {
51
+ v(n, c), n[c] === 0 && e.remove(c);
52
+ });
53
+ };
54
+ i.add = function(e, n) {
55
+ return f(e.classList, e.nodeName.toLowerCase() == "html" ? o : a, n.split(" "));
56
+ };
57
+ i.remove = function(e, n) {
58
+ return l(e.classList, e.nodeName.toLowerCase() == "html" ? o : a, n.split(" "));
59
+ };
60
+ export {
61
+ i as default
62
+ };
package/index111.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";const r=require("./index114.js");Object.defineProperty(r.__exports,"__esModule",{value:!0});r.__exports.log=i;r.__exports.resetState=l;function c(s,e){if(!(s instanceof e))throw new TypeError("Cannot call a class as a function")}var a=function s(){var e=this;c(this,s),this.register=function(n){if(e.openInstances.indexOf(n)!==-1){process.env.NODE_ENV!=="production"&&console.warn("React-Modal: Cannot register modal instance that's already open");return}e.openInstances.push(n),e.emit("register")},this.deregister=function(n){var t=e.openInstances.indexOf(n);if(t===-1){process.env.NODE_ENV!=="production"&&console.warn("React-Modal: Unable to deregister "+n+" as it was never registered");return}e.openInstances.splice(t,1),e.emit("deregister")},this.subscribe=function(n){e.subscribers.push(n)},this.emit=function(n){e.subscribers.forEach(function(t){return t(n,e.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},o=new a;function i(){console.log("portalOpenInstances ----------"),console.log(o.openInstances.length),o.openInstances.forEach(function(s){return console.log(s)}),console.log("end portalOpenInstances ----------")}function l(){o=new a}r.__exports.default=o;
package/index111.mjs ADDED
@@ -0,0 +1,46 @@
1
+ import { __exports as r } from "./index114.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");
10
+ }
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/index112.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";const s=require("./index147.js");require("./index111.js");const i=require("./index114.js");Object.defineProperty(s.__exports,"__esModule",{value:!0});s.__exports.resetState=f;s.__exports.log=v;var c=i.__exports,u=p(c);function p(t){return t&&t.__esModule?t:{default:t}}var e=void 0,n=void 0,r=[];function f(){for(var t=[e,n],o=0;o<t.length;o++){var a=t[o];a&&a.parentNode&&a.parentNode.removeChild(a)}e=n=null,r=[]}function v(){console.log("bodyTrap ----------"),console.log(r.length);for(var t=[e,n],o=0;o<t.length;o++){var a=t[o],l=a||{};console.log(l.nodeName,l.className,l.id)}console.log("edn bodyTrap ----------")}function d(){if(r.length===0){process.env.NODE_ENV!=="production"&&console.warn("React-Modal: Open instances > 0 expected");return}r[r.length-1].focusContent()}function _(t,o){!e&&!n&&(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",d),n=e.cloneNode(),n.addEventListener("focus",d)),r=o,r.length>0?(document.body.firstChild!==e&&document.body.insertBefore(e,document.body.firstChild),document.body.lastChild!==n&&document.body.appendChild(n)):(e.parentElement&&e.parentElement.removeChild(e),n.parentElement&&n.parentElement.removeChild(n))}u.default.subscribe(_);module.exports=s.__exports;