@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/index112.mjs ADDED
@@ -0,0 +1,42 @@
1
+ import { __exports as d } from "./index147.mjs";
2
+ import "./index111.mjs";
3
+ import { __exports as i } from "./index114.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);
40
+ export {
41
+ d as default
42
+ };
package/index113.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
package/index113.mjs ADDED
@@ -0,0 +1,4 @@
1
+ var s = {};
2
+ export {
3
+ s as __exports
4
+ };
package/index114.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
package/index114.mjs ADDED
@@ -0,0 +1,4 @@
1
+ var a = {};
2
+ export {
3
+ a as __exports
4
+ };
package/index115.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
package/index115.mjs ADDED
@@ -0,0 +1,4 @@
1
+ var a = {};
2
+ export {
3
+ a as __exports
4
+ };
package/index116.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var g=process.env.NODE_ENV!=="production",i=function(){};if(g){var c=function(a,r){var e=arguments.length;r=new Array(e>1?e-1:0);for(var n=1;n<e;n++)r[n-1]=arguments[n];var u=0,o="Warning: "+a.replace(/%s/g,function(){return r[u++]});typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}};i=function(t,a,r){var e=arguments.length;r=new Array(e>2?e-2:0);for(var n=2;n<e;n++)r[n-2]=arguments[n];if(a===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");t||c.apply(null,[a].concat(r))}}var f=i;exports.warning_1=f;
package/index116.mjs ADDED
@@ -0,0 +1,33 @@
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;
31
+ export {
32
+ s as w
33
+ };
package/index117.js ADDED
@@ -0,0 +1,5 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index137.js");/*!
2
+ Copyright (c) 2015 Jed Watson.
3
+ Based on code that is Copyright 2013-2015, Facebook, Inc.
4
+ All rights reserved.
5
+ */(function(n){(function(){var e=!!(typeof window<"u"&&window.document&&window.document.createElement),t={canUseDOM:e,canUseWorkers:typeof Worker<"u",canUseEventListeners:e&&!!(window.addEventListener||window.attachEvent),canUseViewport:e&&!!window.screen};n.exports?n.exports=t:window.ExecutionEnvironment=t})()})(o.__module);var r=o.__module.exports;exports.exenvExports=r;
package/index117.mjs ADDED
@@ -0,0 +1,21 @@
1
+ import { __module as t } from "./index137.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;
19
+ export {
20
+ i as e
21
+ };
package/index118.js ADDED
@@ -0,0 +1,9 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function l(){var t=this.constructor.getDerivedStateFromProps(this.props,this.state);t!=null&&this.setState(t)}function r(t){function e(o){var n=this.constructor.getDerivedStateFromProps(t,o);return n??null}this.setState(e.bind(this))}function p(t,e){try{var o=this.props,n=this.state;this.props=t,this.state=e,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(o,n)}finally{this.props=o,this.state=n}}l.__suppressDeprecationWarning=!0;r.__suppressDeprecationWarning=!0;p.__suppressDeprecationWarning=!0;function m(t){var e=t.prototype;if(!e||!e.isReactComponent)throw new Error("Can only polyfill class components");if(typeof t.getDerivedStateFromProps!="function"&&typeof e.getSnapshotBeforeUpdate!="function")return t;var o=null,n=null,i=null;if(typeof e.componentWillMount=="function"?o="componentWillMount":typeof e.UNSAFE_componentWillMount=="function"&&(o="UNSAFE_componentWillMount"),typeof e.componentWillReceiveProps=="function"?n="componentWillReceiveProps":typeof e.UNSAFE_componentWillReceiveProps=="function"&&(n="UNSAFE_componentWillReceiveProps"),typeof e.componentWillUpdate=="function"?i="componentWillUpdate":typeof e.UNSAFE_componentWillUpdate=="function"&&(i="UNSAFE_componentWillUpdate"),o!==null||n!==null||i!==null){var a=t.displayName||t.name,s=typeof t.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
2
+
3
+ `+a+" uses "+s+" but also contains the following legacy lifecycles:"+(o!==null?`
4
+ `+o:"")+(n!==null?`
5
+ `+n:"")+(i!==null?`
6
+ `+i:"")+`
7
+
8
+ The above lifecycles should be removed. Learn more about this warning here:
9
+ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof t.getDerivedStateFromProps=="function"&&(e.componentWillMount=l,e.componentWillReceiveProps=r),typeof e.getSnapshotBeforeUpdate=="function"){if(typeof e.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");e.componentWillUpdate=p;var c=e.componentDidUpdate;e.componentDidUpdate=function(f,u,d){var h=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:d;c.call(this,f,u,h)}}return t}exports.polyfill=m;
package/index118.mjs ADDED
@@ -0,0 +1,63 @@
1
+ function l() {
2
+ var t = this.constructor.getDerivedStateFromProps(this.props, this.state);
3
+ t != null && this.setState(t);
4
+ }
5
+ function p(t) {
6
+ function e(o) {
7
+ var n = this.constructor.getDerivedStateFromProps(t, o);
8
+ return n ?? null;
9
+ }
10
+ this.setState(e.bind(this));
11
+ }
12
+ function r(t, e) {
13
+ try {
14
+ var o = this.props, n = this.state;
15
+ this.props = t, this.state = e, this.__reactInternalSnapshotFlag = !0, this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(
16
+ o,
17
+ n
18
+ );
19
+ } finally {
20
+ this.props = o, this.state = n;
21
+ }
22
+ }
23
+ l.__suppressDeprecationWarning = !0;
24
+ p.__suppressDeprecationWarning = !0;
25
+ r.__suppressDeprecationWarning = !0;
26
+ function y(t) {
27
+ var e = t.prototype;
28
+ if (!e || !e.isReactComponent)
29
+ throw new Error("Can only polyfill class components");
30
+ if (typeof t.getDerivedStateFromProps != "function" && typeof e.getSnapshotBeforeUpdate != "function")
31
+ return t;
32
+ var o = null, n = null, i = null;
33
+ if (typeof e.componentWillMount == "function" ? o = "componentWillMount" : typeof e.UNSAFE_componentWillMount == "function" && (o = "UNSAFE_componentWillMount"), typeof e.componentWillReceiveProps == "function" ? n = "componentWillReceiveProps" : typeof e.UNSAFE_componentWillReceiveProps == "function" && (n = "UNSAFE_componentWillReceiveProps"), typeof e.componentWillUpdate == "function" ? i = "componentWillUpdate" : typeof e.UNSAFE_componentWillUpdate == "function" && (i = "UNSAFE_componentWillUpdate"), o !== null || n !== null || i !== null) {
34
+ var a = t.displayName || t.name, s = typeof t.getDerivedStateFromProps == "function" ? "getDerivedStateFromProps()" : "getSnapshotBeforeUpdate()";
35
+ throw Error(
36
+ `Unsafe legacy lifecycles will not be called for components using new component APIs.
37
+
38
+ ` + a + " uses " + s + " but also contains the following legacy lifecycles:" + (o !== null ? `
39
+ ` + o : "") + (n !== null ? `
40
+ ` + n : "") + (i !== null ? `
41
+ ` + i : "") + `
42
+
43
+ The above lifecycles should be removed. Learn more about this warning here:
44
+ https://fb.me/react-async-component-lifecycle-hooks`
45
+ );
46
+ }
47
+ if (typeof t.getDerivedStateFromProps == "function" && (e.componentWillMount = l, e.componentWillReceiveProps = p), typeof e.getSnapshotBeforeUpdate == "function") {
48
+ if (typeof e.componentDidUpdate != "function")
49
+ throw new Error(
50
+ "Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype"
51
+ );
52
+ e.componentWillUpdate = r;
53
+ var c = e.componentDidUpdate;
54
+ e.componentDidUpdate = function(f, u, d) {
55
+ var h = this.__reactInternalSnapshotFlag ? this.__reactInternalSnapshot : d;
56
+ c.call(this, f, u, h);
57
+ };
58
+ }
59
+ return t;
60
+ }
61
+ export {
62
+ y as polyfill
63
+ };
package/index119.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),O=require("./index51.js"),c=require("react"),D=require("./index75.js"),r=require("./index132.js"),p=require("./index131.js"),w=require("./index123.js"),E=require("./index125.js"),R=require("./index124.js"),S=require("./index85.js");function $({date:e,monthYear:u,unavailable:i,unavailableFrom:a,unavailableTo:m,value:n,onChange:d,highlight:s,ariaLabelCurrentDay:b,onMouseEnter:f,onMouseLeave:y,hoverStyle:j}){const o=c.useMemo(()=>D.isInRange(e,a,m,i),[i,a,m,e]),M=c.useMemo(()=>!!n&&r.isSameDay(n,e)&&!(s&&(s[0]||s[1])),[n,e,s]),x=c.useMemo(()=>!!s&&(s[0]&&r.isSameDay(new Date(s[0]),e)||s[1]&&r.isSameDay(new Date(s[1]),e)||s[0]&&s[1]&&D.isBetween(e,s[0],s[1])),[s,e]),q=r.isSameDay(e,new Date),B=O.classNames({"is-current":q,"is-faded":p.isBefore(e,w.startOfMonth(u))||E.isAfter(e,R.endOfMonth(u)),"is-unavailable":o,"is-selected":M||!!x,"is-hovered":!!j});return t.jsx("td",{children:t.jsx("button",{className:B,tabIndex:o?-1:void 0,disabled:o,type:"button","aria-pressed":M,"aria-label":`${S.format(e,"EEEE d MMMM yyyy")}${q?`, ${b}`:""}`,onClick:()=>{d(e)},onMouseEnter:()=>{f&&f(e)},onMouseLeave:()=>{y&&y(e)},children:t.jsx("span",{children:S.format(e,"d")})})})}exports.DayButton=$;
package/index119.mjs ADDED
@@ -0,0 +1,65 @@
1
+ import { jsx as m } from "react/jsx-runtime";
2
+ import { classNames as $ } from "./index51.mjs";
3
+ import { useMemo as f } from "react";
4
+ import { isInRange as a, isBetween as C } from "./index75.mjs";
5
+ import { isSameDay as s } from "./index132.mjs";
6
+ import { isBefore as I } from "./index131.mjs";
7
+ import { startOfMonth as N } from "./index123.mjs";
8
+ import { isAfter as O } from "./index125.mjs";
9
+ import { endOfMonth as S } from "./index124.mjs";
10
+ import { format as u } from "./index85.mjs";
11
+ function K({
12
+ date: r,
13
+ monthYear: c,
14
+ unavailable: p,
15
+ unavailableFrom: t,
16
+ unavailableTo: i,
17
+ value: n,
18
+ onChange: w,
19
+ highlight: o,
20
+ ariaLabelCurrentDay: E,
21
+ onMouseEnter: y,
22
+ onMouseLeave: M,
23
+ hoverStyle: d
24
+ }) {
25
+ const e = f(
26
+ () => a(r, t, i, p),
27
+ [p, t, i, r]
28
+ ), D = f(
29
+ () => !!n && s(n, r) && !(o && (o[0] || o[1])),
30
+ [n, r, o]
31
+ ), x = f(
32
+ () => !!o && (o[0] && s(new Date(o[0]), r) || o[1] && s(new Date(o[1]), r) || o[0] && o[1] && C(r, o[0], o[1])),
33
+ [o, r]
34
+ ), b = s(r, /* @__PURE__ */ new Date()), B = $({
35
+ "is-current": b,
36
+ "is-faded": I(r, N(c)) || O(r, S(c)),
37
+ "is-unavailable": e,
38
+ "is-selected": D || !!x,
39
+ "is-hovered": !!d
40
+ });
41
+ return /* @__PURE__ */ m("td", { children: /* @__PURE__ */ m(
42
+ "button",
43
+ {
44
+ className: B,
45
+ tabIndex: e ? -1 : void 0,
46
+ disabled: e,
47
+ type: "button",
48
+ "aria-pressed": D,
49
+ "aria-label": `${u(r, "EEEE d MMMM yyyy")}${b ? `, ${E}` : ""}`,
50
+ onClick: () => {
51
+ w(r);
52
+ },
53
+ onMouseEnter: () => {
54
+ y && y(r);
55
+ },
56
+ onMouseLeave: () => {
57
+ M && M(r);
58
+ },
59
+ children: /* @__PURE__ */ m("span", { children: u(r, "d") })
60
+ }
61
+ ) });
62
+ }
63
+ export {
64
+ K as DayButton
65
+ };
package/index12.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("react/jsx-runtime"),t=require("./index70.js"),ee=require("./index51.js"),te=require("./index71.js"),d=require("react"),ae=require("./index52.js"),ne=require("./index72.js"),re=require("./index73.js"),ie=require("./index74.js"),l=require("./index75.js"),M=require("./index76.js"),v=require("./index77.js"),se=require("./index78.js"),oe=require("./index79.js"),ce=require("./index80.js"),de=require("./index81.js"),ue=require("./index24.js"),O=require("./index10.js"),$=d.forwardRef(({ariaLabel:F="Kalender",ariaLabelCurrentDay:H="Huidige dag",ariaLabelNextMonth:b="Ga naar de volgende maand",ariaLabelNextYear:k="Ga naar het volgend jaar",ariaLabelNextYears:q="Ga naar de volgende jaren",ariaLabelPreviousMonth:T="Ga naar de vorige maand",ariaLabelPreviousYear:j="Ga naar het vorig jaar",ariaLabelPreviousYears:E="Ga naar de voorgaande jaren",className:x,highlightDates:G,isOpen:_=!0,locale:o=ae.DEFAULT_LOCALE,onBlur:W,onChange:R,qa:B,unavailable:I=[],unavailableFrom:K,unavailableTo:P,value:u,hoverStart:L,isModal:S=!1},w)=>{const[D,V]=d.useState(u?new Date(u):void 0),[n,m]=d.useState(M.getYear(new Date(u||new Date))),[r,f]=d.useState(v.getMonth(new Date(u||new Date))),[a,p]=d.useState(t.CalendarView.DAYS),[h,Y]=d.useState(n-7);d.useEffect(()=>{const e=u?new Date(u):void 0;if(isNaN(e?.getTime())){f(v.getMonth(new Date)),m(M.getYear(new Date)),Y(M.getYear(new Date)-7),V(void 0);return}return V(e)},[u]),d.useEffect(()=>{if(S&&w&&"current"in w&&w.current){const e=w.current,i=Array.from(e.querySelectorAll("button")).filter(c=>!c.disabled),y=i[0],C=i[i.length-1];e.contains(document.activeElement)||y.focus();const N=c=>{c.key==="Tab"&&c.shiftKey&&document.activeElement===y?(C.focus(),c.preventDefault()):c.key==="Tab"&&!c.shiftKey&&document.activeElement===C&&(y.focus(),c.preventDefault())};return e.addEventListener("keydown",N),function(){e?.removeEventListener("keydown",N)}}},[w,S,a,r,n]);const g=d.useMemo(()=>{const e=new Date(n,r);return{[t.CalendarView.DAYS]:{main:ie.titleize(l.formatWithFallback(e,"MMMM yyyy",o)),next:`${b}, ${l.formatWithFallback(de.addMonths(e,1),"MMMM yyyy",o)}`,prev:`${T}, ${l.formatWithFallback(ce.subMonths(e),"MMMM yyyy",o)}`},[t.CalendarView.MONTHS]:{main:l.formatWithFallback(e,"yyyy",o),next:`${k}, ${l.formatWithFallback(oe.addYears(e,1),"yyyy",o)}`,prev:`${j}, ${l.formatWithFallback(se.subYears(e),"yyyy",o)}`},[t.CalendarView.YEARS]:{main:`${h} - ${h+17}`,next:q,prev:E}}[a]},[a,n,r,h,b,k,q,T,j,E,o]),U=()=>{if(a===t.CalendarView.DAYS)return m(r===0?n-1:n),f(r===0?11:r-1);if(a===t.CalendarView.MONTHS)return m(n-1);if(a===t.CalendarView.YEARS)return Y(h-18)},z=()=>{if(a===t.CalendarView.DAYS)return m(r===11?n+1:n),f((r+1)%12);if(a===t.CalendarView.MONTHS)return m(n+1);if(a===t.CalendarView.YEARS)return Y(h+18)},J=()=>{const e=[t.CalendarView.DAYS,t.CalendarView.MONTHS,t.CalendarView.YEARS];p(e[(e.findIndex(i=>i===a)+1)%e.length])},A=e=>{if(a===t.CalendarView.DAYS){V(e);const i=e.getFullYear(),y=e.getMonth(),C=e.getDate();return R&&R(l.toUtcMidnightInBrussels(i,y,C))}else{if(a===t.CalendarView.MONTHS)return f(v.getMonth(e)),p(t.CalendarView.DAYS);if(a===t.CalendarView.YEARS)return m(M.getYear(e)),p(t.CalendarView.MONTHS)}},Q=()=>{switch(a){case t.CalendarView.DAYS:return s.jsx(te.DaysView,{highlight:G,locale:o,ariaLabelCurrentDay:H,activeMonth:r,activeYear:n,value:D,onChange:A,unavailableFrom:K,unavailableTo:P,unavailable:I,hoverStart:L});case t.CalendarView.MONTHS:return s.jsx(ne.MonthsView,{locale:o,value:D,onChange:A,activeYear:n});case t.CalendarView.YEARS:return s.jsx(re.YearsView,{value:D,onChange:A,yearsRowsStart:h,activeMonth:r})}},X=ee.classNames({"m-datepicker":!0,"is-open":!!_,[`${x}`]:!!x}),Z=S?{role:"dialog","aria-modal":!0}:{};return s.jsxs("div",{ref:w,"aria-label":F,className:X,"aria-hidden":!_,"data-qa":B,onBlur:W,onMouseDownCapture:e=>{const i=e.currentTarget;i.setAttribute("data-mousedown-inside","true"),setTimeout(()=>i.removeAttribute("data-mousedown-inside"),0)},onClick:e=>e.stopPropagation(),...Z,children:[s.jsxs("div",{className:"m-datepicker__nav",children:[s.jsxs("button",{type:"button",className:"m-datepicker__nav-title","aria-label":g.main,onClick:J,children:[g.main,s.jsx(ue.Icon,{name:a===t.CalendarView.DAYS?"arrow-down-1":"arrow-up-1"})]}),s.jsxs("div",{className:"m-datepicker__nav-pagination",children:[s.jsx(O.Button,{ariaLabel:g.prev,emphasis:"low",addOn:{type:"icon",iconProps:{name:"arrow-left-1"}},onClick:U}),s.jsx(O.Button,{ariaLabel:g.next,emphasis:"low",addOn:{type:"icon",iconProps:{name:"arrow-right-1"}},onClick:z})]})]}),Q()]})});exports.Calendar=$;exports.default=$;
package/index12.mjs ADDED
@@ -0,0 +1,215 @@
1
+ import { jsxs as g, jsx as f } from "react/jsx-runtime";
2
+ import { CalendarView as t } from "./index70.mjs";
3
+ import { classNames as ee } from "./index51.mjs";
4
+ import { DaysView as te } from "./index71.mjs";
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";
7
+ import { MonthsView as oe } from "./index72.mjs";
8
+ import { YearsView as ie } from "./index73.mjs";
9
+ import { titleize as se } from "./index74.mjs";
10
+ import { formatWithFallback as p, toUtcMidnightInBrussels as ce } from "./index75.mjs";
11
+ import { getYear as S } from "./index76.mjs";
12
+ import { getMonth as C } from "./index77.mjs";
13
+ import { subYears as me } from "./index78.mjs";
14
+ import { addYears as de } from "./index79.mjs";
15
+ import { subMonths as ue } from "./index80.mjs";
16
+ import { addMonths as fe } from "./index81.mjs";
17
+ import { Icon as pe } from "./index24.mjs";
18
+ import { Button as G } from "./index10.mjs";
19
+ const Re = ne(
20
+ ({
21
+ ariaLabel: F = "Kalender",
22
+ ariaLabelCurrentDay: I = "Huidige dag",
23
+ ariaLabelNextMonth: b = "Ga naar de volgende maand",
24
+ ariaLabelNextYear: E = "Ga naar het volgend jaar",
25
+ ariaLabelNextYears: N = "Ga naar de volgende jaren",
26
+ ariaLabelPreviousMonth: $ = "Ga naar de vorige maand",
27
+ ariaLabelPreviousYear: O = "Ga naar het vorig jaar",
28
+ ariaLabelPreviousYears: R = "Ga naar de voorgaande jaren",
29
+ className: H,
30
+ highlightDates: K,
31
+ isOpen: V = !0,
32
+ locale: i = ae,
33
+ onBlur: P,
34
+ onChange: _,
35
+ qa: q,
36
+ unavailable: B = [],
37
+ unavailableFrom: L,
38
+ unavailableTo: U,
39
+ value: c,
40
+ hoverStart: z,
41
+ isModal: A = !1
42
+ }, m) => {
43
+ const [M, v] = y(c ? new Date(c) : void 0), [r, d] = y(S(new Date(c || /* @__PURE__ */ new Date()))), [a, h] = y(C(new Date(c || /* @__PURE__ */ new Date()))), [n, Y] = y(t.DAYS), [u, k] = y(r - 7);
44
+ x(() => {
45
+ const e = c ? new Date(c) : void 0;
46
+ if (isNaN(e?.getTime())) {
47
+ h(C(/* @__PURE__ */ new Date())), d(S(/* @__PURE__ */ new Date())), k(S(/* @__PURE__ */ new Date()) - 7), v(void 0);
48
+ return;
49
+ }
50
+ return v(e);
51
+ }, [c]), x(() => {
52
+ if (A && m && "current" in m && m.current) {
53
+ const e = m.current, o = Array.from(e.querySelectorAll("button")).filter((s) => !s.disabled), l = o[0], D = o[o.length - 1];
54
+ e.contains(document.activeElement) || l.focus();
55
+ const j = (s) => {
56
+ s.key === "Tab" && s.shiftKey && document.activeElement === l ? (D.focus(), s.preventDefault()) : s.key === "Tab" && !s.shiftKey && document.activeElement === D && (l.focus(), s.preventDefault());
57
+ };
58
+ return e.addEventListener("keydown", j), function() {
59
+ e?.removeEventListener("keydown", j);
60
+ };
61
+ }
62
+ }, [m, A, n, a, r]);
63
+ const w = re(() => {
64
+ const e = new Date(r, a);
65
+ return {
66
+ [t.DAYS]: {
67
+ main: se(p(e, "MMMM yyyy", i)),
68
+ next: `${b}, ${p(fe(e, 1), "MMMM yyyy", i)}`,
69
+ prev: `${$}, ${p(ue(e), "MMMM yyyy", i)}`
70
+ },
71
+ [t.MONTHS]: {
72
+ main: p(e, "yyyy", i),
73
+ next: `${E}, ${p(de(e, 1), "yyyy", i)}`,
74
+ prev: `${O}, ${p(me(e), "yyyy", i)}`
75
+ },
76
+ [t.YEARS]: {
77
+ main: `${u} - ${u + 17}`,
78
+ next: N,
79
+ prev: R
80
+ }
81
+ }[n];
82
+ }, [
83
+ n,
84
+ r,
85
+ a,
86
+ u,
87
+ b,
88
+ E,
89
+ N,
90
+ $,
91
+ O,
92
+ R,
93
+ i
94
+ ]), W = () => {
95
+ if (n === t.DAYS)
96
+ return d(a === 0 ? r - 1 : r), h(a === 0 ? 11 : a - 1);
97
+ if (n === t.MONTHS)
98
+ return d(r - 1);
99
+ if (n === t.YEARS)
100
+ return k(u - 18);
101
+ }, J = () => {
102
+ if (n === t.DAYS)
103
+ return d(a === 11 ? r + 1 : r), h((a + 1) % 12);
104
+ if (n === t.MONTHS)
105
+ return d(r + 1);
106
+ if (n === t.YEARS)
107
+ return k(u + 18);
108
+ }, Q = () => {
109
+ const e = [t.DAYS, t.MONTHS, t.YEARS];
110
+ Y(e[(e.findIndex((o) => o === n) + 1) % e.length]);
111
+ }, T = (e) => {
112
+ if (n === t.DAYS) {
113
+ v(e);
114
+ const o = e.getFullYear(), l = e.getMonth(), D = e.getDate();
115
+ return _ && _(ce(o, l, D));
116
+ } else {
117
+ if (n === t.MONTHS)
118
+ return h(C(e)), Y(t.DAYS);
119
+ if (n === t.YEARS)
120
+ return d(S(e)), Y(t.MONTHS);
121
+ }
122
+ }, X = () => {
123
+ switch (n) {
124
+ case t.DAYS:
125
+ return /* @__PURE__ */ f(
126
+ te,
127
+ {
128
+ highlight: K,
129
+ locale: i,
130
+ ariaLabelCurrentDay: I,
131
+ activeMonth: a,
132
+ activeYear: r,
133
+ value: M,
134
+ onChange: T,
135
+ unavailableFrom: L,
136
+ unavailableTo: U,
137
+ unavailable: B,
138
+ hoverStart: z
139
+ }
140
+ );
141
+ case t.MONTHS:
142
+ return /* @__PURE__ */ f(oe, { locale: i, value: M, onChange: T, activeYear: r });
143
+ case t.YEARS:
144
+ return /* @__PURE__ */ f(
145
+ ie,
146
+ {
147
+ value: M,
148
+ onChange: T,
149
+ yearsRowsStart: u,
150
+ activeMonth: a
151
+ }
152
+ );
153
+ }
154
+ }, Z = ee({ "m-datepicker": !0, "is-open": !!V, [`${H}`]: !!H });
155
+ return /* @__PURE__ */ g(
156
+ "div",
157
+ {
158
+ ref: m,
159
+ "aria-label": F,
160
+ className: Z,
161
+ "aria-hidden": !V,
162
+ "data-qa": q,
163
+ onBlur: P,
164
+ onMouseDownCapture: (e) => {
165
+ const o = e.currentTarget;
166
+ o.setAttribute("data-mousedown-inside", "true"), setTimeout(() => o.removeAttribute("data-mousedown-inside"), 0);
167
+ },
168
+ onClick: (e) => e.stopPropagation(),
169
+ ...A ? { role: "dialog", "aria-modal": !0 } : {},
170
+ children: [
171
+ /* @__PURE__ */ g("div", { className: "m-datepicker__nav", children: [
172
+ /* @__PURE__ */ g(
173
+ "button",
174
+ {
175
+ type: "button",
176
+ className: "m-datepicker__nav-title",
177
+ "aria-label": w.main,
178
+ onClick: Q,
179
+ children: [
180
+ w.main,
181
+ /* @__PURE__ */ f(pe, { name: n === t.DAYS ? "arrow-down-1" : "arrow-up-1" })
182
+ ]
183
+ }
184
+ ),
185
+ /* @__PURE__ */ g("div", { className: "m-datepicker__nav-pagination", children: [
186
+ /* @__PURE__ */ f(
187
+ G,
188
+ {
189
+ ariaLabel: w.prev,
190
+ emphasis: "low",
191
+ addOn: { type: "icon", iconProps: { name: "arrow-left-1" } },
192
+ onClick: W
193
+ }
194
+ ),
195
+ /* @__PURE__ */ f(
196
+ G,
197
+ {
198
+ ariaLabel: w.next,
199
+ emphasis: "low",
200
+ addOn: { type: "icon", iconProps: { name: "arrow-right-1" } },
201
+ onClick: J
202
+ }
203
+ )
204
+ ] })
205
+ ] }),
206
+ X()
207
+ ]
208
+ }
209
+ );
210
+ }
211
+ );
212
+ export {
213
+ Re as Calendar,
214
+ Re as default
215
+ };
package/index120.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index155.js"),i=require("./index148.js");function d(o,a){const{start:t,end:r}=u.normalizeInterval(a?.in,o);let n=+t>+r;const c=n?+t:+r,e=n?r:t;e.setHours(0,0,0,0);let l=1;const s=[];for(;+e<=c;)s.push(i.constructFrom(t,e)),e.setDate(e.getDate()+l),e.setHours(0,0,0,0);return n?s.reverse():s}exports.eachDayOfInterval=d;
package/index120.mjs ADDED
@@ -0,0 +1,16 @@
1
+ import { normalizeInterval as m } from "./index155.mjs";
2
+ import { constructFrom as l } from "./index148.mjs";
3
+ function p(n, a) {
4
+ const { start: t, end: r } = m(a?.in, n);
5
+ let s = +t > +r;
6
+ const c = s ? +t : +r, e = s ? r : t;
7
+ e.setHours(0, 0, 0, 0);
8
+ let i = 1;
9
+ const o = [];
10
+ for (; +e <= c; )
11
+ o.push(l(t, e)), e.setDate(e.getDate() + i), e.setHours(0, 0, 0, 0);
12
+ return s ? o.reverse() : o;
13
+ }
14
+ export {
15
+ p as eachDayOfInterval
16
+ };
package/index121.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index156.js"),i=require("./index149.js");function u(a,t){const n=c.getDefaultOptions(),o=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,e=i.toDate(a,t?.in),s=e.getDay(),r=(s<o?-7:0)+6-(s-o);return e.setDate(e.getDate()+r),e.setHours(23,59,59,999),e}exports.endOfWeek=u;
package/index121.mjs ADDED
@@ -0,0 +1,9 @@
1
+ import { getDefaultOptions as c } from "./index156.mjs";
2
+ import { toDate as f } from "./index149.mjs";
3
+ function k(s, e) {
4
+ const n = c(), o = e?.weekStartsOn ?? e?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, t = f(s, e?.in), a = t.getDay(), r = (a < o ? -7 : 0) + 6 - (a - o);
5
+ return t.setDate(t.getDate() + r), t.setHours(23, 59, 59, 999), t;
6
+ }
7
+ export {
8
+ k as endOfWeek
9
+ };
package/index122.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index156.js"),i=require("./index149.js");function u(o,e){const s=c.getDefaultOptions(),a=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??s.weekStartsOn??s.locale?.options?.weekStartsOn??0,t=i.toDate(o,e?.in),n=t.getDay(),r=(n<a?7:0)+n-a;return t.setDate(t.getDate()-r),t.setHours(0,0,0,0),t}exports.startOfWeek=u;
package/index122.mjs ADDED
@@ -0,0 +1,9 @@
1
+ import { getDefaultOptions as c } from "./index156.mjs";
2
+ import { toDate as f } from "./index149.mjs";
3
+ function k(s, e) {
4
+ const o = c(), a = e?.weekStartsOn ?? e?.locale?.options?.weekStartsOn ?? o.weekStartsOn ?? o.locale?.options?.weekStartsOn ?? 0, t = f(s, e?.in), n = t.getDay(), r = (n < a ? 7 : 0) + n - a;
5
+ return t.setDate(t.getDate() - r), t.setHours(0, 0, 0, 0), t;
6
+ }
7
+ export {
8
+ k as startOfWeek
9
+ };
package/index123.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index149.js");function n(e,o){const t=r.toDate(e,o?.in);return t.setDate(1),t.setHours(0,0,0,0),t}exports.startOfMonth=n;
package/index123.mjs ADDED
@@ -0,0 +1,8 @@
1
+ import { toDate as r } from "./index149.mjs";
2
+ function s(o, e) {
3
+ const t = r(o, e?.in);
4
+ return t.setDate(1), t.setHours(0, 0, 0, 0), t;
5
+ }
6
+ export {
7
+ s as startOfMonth
8
+ };
package/index124.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index149.js");function u(e,n){const t=r.toDate(e,n?.in),o=t.getMonth();return t.setFullYear(t.getFullYear(),o+1,0),t.setHours(23,59,59,999),t}exports.endOfMonth=u;
package/index124.mjs ADDED
@@ -0,0 +1,8 @@
1
+ import { toDate as r } from "./index149.mjs";
2
+ function u(e, o) {
3
+ const t = r(e, o?.in), n = t.getMonth();
4
+ return t.setFullYear(t.getFullYear(), n + 1, 0), t.setHours(23, 59, 59, 999), t;
5
+ }
6
+ export {
7
+ u as endOfMonth
8
+ };
package/index125.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index149.js");function o(e,r){return+t.toDate(e)>+t.toDate(r)}exports.isAfter=o;
package/index125.mjs ADDED
@@ -0,0 +1,7 @@
1
+ import { toDate as t } from "./index149.mjs";
2
+ function f(r, o) {
3
+ return +t(r) > +t(o);
4
+ }
5
+ export {
6
+ f as isAfter
7
+ };
package/index126.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index127.js");function r(e,d,t){return a.addDays(e,d*7,t)}exports.addWeeks=r;
package/index126.mjs ADDED
@@ -0,0 +1,7 @@
1
+ import { addDays as o } from "./index127.mjs";
2
+ function a(r, d, e) {
3
+ return o(r, d * 7, e);
4
+ }
5
+ export {
6
+ a as addWeeks
7
+ };
package/index127.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index148.js"),c=require("./index149.js");function i(r,e,n){const t=c.toDate(r,n?.in);return isNaN(e)?a.constructFrom(n?.in||r,NaN):(e&&t.setDate(t.getDate()+e),t)}exports.addDays=i;
package/index127.mjs ADDED
@@ -0,0 +1,9 @@
1
+ import { constructFrom as n } from "./index148.mjs";
2
+ import { toDate as o } from "./index149.mjs";
3
+ function c(e, t, i) {
4
+ const r = o(e, i?.in);
5
+ return isNaN(t) ? n(i?.in || e, NaN) : (t && r.setDate(r.getDate() + t), r);
6
+ }
7
+ export {
8
+ c as addDays
9
+ };
package/index128.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index149.js");function r(t,e){return o.toDate(t,e?.in).getDate()}exports.getDate=r;
package/index128.mjs ADDED
@@ -0,0 +1,7 @@
1
+ import { toDate as o } from "./index149.mjs";
2
+ function n(t, e) {
3
+ return o(t, e?.in).getDate();
4
+ }
5
+ export {
6
+ n as getDate
7
+ };
package/index129.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index235.js");class n extends Date{constructor(...e){super(),e.length>1&&typeof e[e.length-1]=="string"&&(this.timeZone=e.pop()),this.internal=new Date,isNaN(s.tzOffset(this.timeZone,this))?this.setTime(NaN):e.length?typeof e[0]=="number"&&(e.length===1||e.length===2&&typeof e[1]!="number")?this.setTime(e[0]):typeof e[0]=="string"?this.setTime(+new Date(e[0])):e[0]instanceof Date?this.setTime(+e[0]):(this.setTime(+new Date(...e)),U(this),a(this)):this.setTime(Date.now())}static tz(e,...o){return o.length?new n(...o,e):new n(Date.now(),e)}withTimeZone(e){return new n(+this,e)}getTimezoneOffset(){const e=-s.tzOffset(this.timeZone,this);return e>0?Math.floor(e):Math.ceil(e)}setTime(e){return Date.prototype.setTime.apply(this,arguments),a(this),+this}[Symbol.for("constructDateFrom")](e){return new n(+new Date(e),this.timeZone)}}const C=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(t=>{if(!C.test(t))return;const e=t.replace(C,"$1UTC");n.prototype[e]&&(t.startsWith("get")?n.prototype[t]=function(){return this.internal[e]()}:(n.prototype[t]=function(){return Date.prototype[e].apply(this.internal,arguments),z(this),+this},n.prototype[e]=function(){return Date.prototype[e].apply(this,arguments),a(this),+this}))});function a(t){t.internal.setTime(+t),t.internal.setUTCSeconds(t.internal.getUTCSeconds()-Math.round(-s.tzOffset(t.timeZone,t)*60))}function z(t){Date.prototype.setFullYear.call(t,t.internal.getUTCFullYear(),t.internal.getUTCMonth(),t.internal.getUTCDate()),Date.prototype.setHours.call(t,t.internal.getUTCHours(),t.internal.getUTCMinutes(),t.internal.getUTCSeconds(),t.internal.getUTCMilliseconds()),U(t)}function U(t){const e=s.tzOffset(t.timeZone,t),o=e>0?Math.floor(e):Math.ceil(e),i=new Date(+t);i.setUTCHours(i.getUTCHours()-1);const f=-new Date(+t).getTimezoneOffset(),g=-new Date(+i).getTimezoneOffset(),y=f-g,O=Date.prototype.getHours.apply(t)!==t.internal.getUTCHours();y&&O&&t.internal.setUTCMinutes(t.internal.getUTCMinutes()+y);const r=f-o;r&&Date.prototype.setUTCMinutes.call(t,Date.prototype.getUTCMinutes.call(t)+r);const l=new Date(+t);l.setUTCSeconds(0);const m=f>0?l.getSeconds():(l.getSeconds()-60)%60,c=Math.round(-(s.tzOffset(t.timeZone,t)*60))%60;(c||m)&&(t.internal.setUTCSeconds(t.internal.getUTCSeconds()+c),Date.prototype.setUTCSeconds.call(t,Date.prototype.getUTCSeconds.call(t)+c+m));const p=s.tzOffset(t.timeZone,t),u=p>0?Math.floor(p):Math.ceil(p),M=-new Date(+t).getTimezoneOffset()-u,S=u!==o,D=M-r;if(S&&D){Date.prototype.setUTCMinutes.call(t,Date.prototype.getUTCMinutes.call(t)+D);const h=s.tzOffset(t.timeZone,t),w=h>0?Math.floor(h):Math.ceil(h),T=u-w;T&&(t.internal.setUTCMinutes(t.internal.getUTCMinutes()+T),Date.prototype.setUTCMinutes.call(t,Date.prototype.getUTCMinutes.call(t)+T))}}exports.TZDateMini=n;