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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (465) hide show
  1. package/package.json +3 -3
  2. package/index.js +0 -1
  3. package/index.mjs +0 -100
  4. package/index10.js +0 -1
  5. package/index10.mjs +0 -60
  6. package/index100.js +0 -1
  7. package/index100.mjs +0 -4
  8. package/index101.js +0 -1
  9. package/index101.mjs +0 -400
  10. package/index102.js +0 -5
  11. package/index102.mjs +0 -42
  12. package/index103.js +0 -1
  13. package/index103.mjs +0 -4
  14. package/index104.js +0 -1
  15. package/index104.mjs +0 -10
  16. package/index105.js +0 -2
  17. package/index105.mjs +0 -329
  18. package/index106.js +0 -1
  19. package/index106.mjs +0 -52
  20. package/index107.js +0 -1
  21. package/index107.mjs +0 -4
  22. package/index108.js +0 -1
  23. package/index108.mjs +0 -67
  24. package/index109.js +0 -1
  25. package/index109.mjs +0 -45
  26. package/index11.js +0 -1
  27. package/index11.mjs +0 -12
  28. package/index110.js +0 -10
  29. package/index110.mjs +0 -62
  30. package/index111.js +0 -1
  31. package/index111.mjs +0 -46
  32. package/index112.js +0 -1
  33. package/index112.mjs +0 -42
  34. package/index113.js +0 -1
  35. package/index113.mjs +0 -4
  36. package/index114.js +0 -1
  37. package/index114.mjs +0 -4
  38. package/index115.js +0 -1
  39. package/index115.mjs +0 -4
  40. package/index116.js +0 -1
  41. package/index116.mjs +0 -33
  42. package/index117.js +0 -5
  43. package/index117.mjs +0 -21
  44. package/index118.js +0 -9
  45. package/index118.mjs +0 -63
  46. package/index119.js +0 -1
  47. package/index119.mjs +0 -65
  48. package/index12.js +0 -1
  49. package/index12.mjs +0 -215
  50. package/index120.js +0 -1
  51. package/index120.mjs +0 -16
  52. package/index121.js +0 -1
  53. package/index121.mjs +0 -9
  54. package/index122.js +0 -1
  55. package/index122.mjs +0 -9
  56. package/index123.js +0 -1
  57. package/index123.mjs +0 -8
  58. package/index124.js +0 -1
  59. package/index124.mjs +0 -8
  60. package/index125.js +0 -1
  61. package/index125.mjs +0 -7
  62. package/index126.js +0 -1
  63. package/index126.mjs +0 -7
  64. package/index127.js +0 -1
  65. package/index127.mjs +0 -9
  66. package/index128.js +0 -1
  67. package/index128.mjs +0 -7
  68. package/index129.js +0 -1
  69. package/index129.mjs +0 -69
  70. package/index13.js +0 -1
  71. package/index13.mjs +0 -29
  72. package/index130.js +0 -1
  73. package/index130.mjs +0 -5
  74. package/index131.js +0 -1
  75. package/index131.mjs +0 -7
  76. package/index132.js +0 -1
  77. package/index132.mjs +0 -13
  78. package/index133.js +0 -1
  79. package/index133.mjs +0 -4
  80. package/index134.js +0 -1
  81. package/index134.mjs +0 -393
  82. package/index135.js +0 -1
  83. package/index135.mjs +0 -127
  84. package/index136.js +0 -1
  85. package/index136.mjs +0 -136
  86. package/index137.js +0 -1
  87. package/index137.mjs +0 -4
  88. package/index138.js +0 -1
  89. package/index138.mjs +0 -4
  90. package/index139.js +0 -8
  91. package/index139.mjs +0 -78
  92. package/index14.js +0 -1
  93. package/index14.mjs +0 -44
  94. package/index140.js +0 -8
  95. package/index140.mjs +0 -95
  96. package/index141.js +0 -5
  97. package/index141.mjs +0 -54
  98. package/index142.js +0 -1
  99. package/index142.mjs +0 -10
  100. package/index143.js +0 -1
  101. package/index143.mjs +0 -7
  102. package/index144.js +0 -1
  103. package/index144.mjs +0 -54
  104. package/index145.js +0 -11
  105. package/index145.mjs +0 -60
  106. package/index146.js +0 -1
  107. package/index146.mjs +0 -4
  108. package/index147.js +0 -1
  109. package/index147.mjs +0 -4
  110. package/index148.js +0 -1
  111. package/index148.mjs +0 -7
  112. package/index149.js +0 -1
  113. package/index149.mjs +0 -7
  114. package/index15.js +0 -1
  115. package/index15.mjs +0 -8
  116. package/index150.js +0 -1
  117. package/index150.mjs +0 -9
  118. package/index151.js +0 -1
  119. package/index151.mjs +0 -15
  120. package/index152.js +0 -1
  121. package/index152.mjs +0 -18
  122. package/index153.js +0 -1
  123. package/index153.mjs +0 -11
  124. package/index154.js +0 -1
  125. package/index154.mjs +0 -8
  126. package/index155.js +0 -1
  127. package/index155.mjs +0 -8
  128. package/index156.js +0 -1
  129. package/index156.mjs +0 -7
  130. package/index157.js +0 -1
  131. package/index157.mjs +0 -515
  132. package/index158.js +0 -1
  133. package/index158.mjs +0 -52
  134. package/index159.js +0 -1
  135. package/index159.mjs +0 -20
  136. package/index16.js +0 -1
  137. package/index16.mjs +0 -15
  138. package/index160.js +0 -1
  139. package/index160.mjs +0 -20
  140. package/index161.js +0 -1
  141. package/index161.mjs +0 -7
  142. package/index162.js +0 -1
  143. package/index162.mjs +0 -10
  144. package/index163.js +0 -1
  145. package/index163.mjs +0 -8
  146. package/index164.js +0 -1
  147. package/index164.mjs +0 -7
  148. package/index165.js +0 -1
  149. package/index165.mjs +0 -8
  150. package/index166.js +0 -1
  151. package/index166.mjs +0 -11
  152. package/index167.js +0 -1
  153. package/index167.mjs +0 -7
  154. package/index168.js +0 -1
  155. package/index168.mjs +0 -10
  156. package/index169.js +0 -1
  157. package/index169.mjs +0 -14
  158. package/index17.js +0 -1
  159. package/index17.mjs +0 -108
  160. package/index170.js +0 -1
  161. package/index170.mjs +0 -11
  162. package/index171.js +0 -1
  163. package/index171.mjs +0 -11
  164. package/index172.js +0 -1
  165. package/index172.mjs +0 -15
  166. package/index173.js +0 -1
  167. package/index173.mjs +0 -6
  168. package/index174.js +0 -1
  169. package/index174.mjs +0 -35
  170. package/index175.js +0 -1
  171. package/index175.mjs +0 -67
  172. package/index176.js +0 -1
  173. package/index176.mjs +0 -10
  174. package/index177.js +0 -1
  175. package/index177.mjs +0 -10
  176. package/index178.js +0 -1
  177. package/index178.mjs +0 -9
  178. package/index179.js +0 -1
  179. package/index179.mjs +0 -9
  180. package/index18.js +0 -1
  181. package/index18.mjs +0 -136
  182. package/index180.js +0 -1
  183. package/index180.mjs +0 -16
  184. package/index181.js +0 -1
  185. package/index181.mjs +0 -4
  186. package/index182.js +0 -1
  187. package/index182.mjs +0 -4
  188. package/index183.js +0 -1
  189. package/index183.mjs +0 -4
  190. package/index184.js +0 -1
  191. package/index184.mjs +0 -59
  192. package/index185.js +0 -1
  193. package/index185.mjs +0 -24
  194. package/index186.js +0 -1
  195. package/index186.mjs +0 -43
  196. package/index187.js +0 -1
  197. package/index187.mjs +0 -63
  198. package/index188.js +0 -1
  199. package/index188.mjs +0 -34
  200. package/index189.js +0 -1
  201. package/index189.mjs +0 -15
  202. package/index19.js +0 -1
  203. package/index19.mjs +0 -11
  204. package/index190.js +0 -1
  205. package/index190.mjs +0 -64
  206. package/index191.js +0 -1
  207. package/index191.mjs +0 -64
  208. package/index192.js +0 -1
  209. package/index192.mjs +0 -65
  210. package/index193.js +0 -1
  211. package/index193.mjs +0 -65
  212. package/index194.js +0 -1
  213. package/index194.mjs +0 -42
  214. package/index195.js +0 -1
  215. package/index195.mjs +0 -43
  216. package/index196.js +0 -1
  217. package/index196.mjs +0 -55
  218. package/index197.js +0 -1
  219. package/index197.mjs +0 -45
  220. package/index198.js +0 -1
  221. package/index198.mjs +0 -39
  222. package/index199.js +0 -1
  223. package/index199.mjs +0 -68
  224. package/index2.js +0 -1
  225. package/index2.mjs +0 -12
  226. package/index20.js +0 -1
  227. package/index20.mjs +0 -54
  228. package/index200.js +0 -1
  229. package/index200.mjs +0 -68
  230. package/index201.js +0 -1
  231. package/index201.mjs +0 -93
  232. package/index202.js +0 -1
  233. package/index202.mjs +0 -43
  234. package/index203.js +0 -1
  235. package/index203.mjs +0 -43
  236. package/index204.js +0 -1
  237. package/index204.mjs +0 -43
  238. package/index205.js +0 -1
  239. package/index205.mjs +0 -27
  240. package/index206.js +0 -1
  241. package/index206.mjs +0 -26
  242. package/index207.js +0 -1
  243. package/index207.mjs +0 -26
  244. package/index208.js +0 -1
  245. package/index208.mjs +0 -27
  246. package/index209.js +0 -1
  247. package/index209.mjs +0 -26
  248. package/index21.js +0 -1
  249. package/index21.mjs +0 -33
  250. package/index210.js +0 -1
  251. package/index210.mjs +0 -26
  252. package/index211.js +0 -1
  253. package/index211.mjs +0 -16
  254. package/index212.js +0 -1
  255. package/index212.mjs +0 -42
  256. package/index213.js +0 -1
  257. package/index213.mjs +0 -42
  258. package/index214.js +0 -1
  259. package/index214.mjs +0 -16
  260. package/index215.js +0 -1
  261. package/index215.mjs +0 -16
  262. package/index216.js +0 -1
  263. package/index216.mjs +0 -70
  264. package/index217.js +0 -1
  265. package/index217.mjs +0 -33
  266. package/index218.js +0 -1
  267. package/index218.mjs +0 -11
  268. package/index219.js +0 -1
  269. package/index219.mjs +0 -155
  270. package/index22.js +0 -1
  271. package/index22.mjs +0 -22
  272. package/index220.js +0 -1
  273. package/index220.mjs +0 -110
  274. package/index221.js +0 -1
  275. package/index221.mjs +0 -22
  276. package/index222.js +0 -1
  277. package/index222.mjs +0 -103
  278. package/index223.js +0 -1
  279. package/index223.mjs +0 -49
  280. package/index224.js +0 -1
  281. package/index224.mjs +0 -70
  282. package/index225.js +0 -1
  283. package/index225.mjs +0 -33
  284. package/index226.js +0 -1
  285. package/index226.mjs +0 -11
  286. package/index227.js +0 -1
  287. package/index227.mjs +0 -110
  288. package/index228.js +0 -1
  289. package/index228.mjs +0 -109
  290. package/index229.js +0 -1
  291. package/index229.mjs +0 -9
  292. package/index23.js +0 -1
  293. package/index23.mjs +0 -32
  294. package/index230.js +0 -1
  295. package/index230.mjs +0 -18
  296. package/index231.js +0 -1
  297. package/index231.mjs +0 -31
  298. package/index232.js +0 -1
  299. package/index232.mjs +0 -15
  300. package/index233.js +0 -1
  301. package/index233.mjs +0 -61
  302. package/index234.js +0 -1
  303. package/index234.mjs +0 -11
  304. package/index235.js +0 -1
  305. package/index235.mjs +0 -22
  306. package/index24.js +0 -2
  307. package/index24.mjs +0 -62
  308. package/index25.js +0 -1
  309. package/index25.mjs +0 -15
  310. package/index26.js +0 -1
  311. package/index26.mjs +0 -12
  312. package/index27.js +0 -1
  313. package/index27.mjs +0 -43
  314. package/index28.js +0 -1
  315. package/index28.mjs +0 -34
  316. package/index29.js +0 -1
  317. package/index29.mjs +0 -10
  318. package/index3.js +0 -1
  319. package/index3.mjs +0 -15
  320. package/index30.js +0 -1
  321. package/index30.mjs +0 -72
  322. package/index31.js +0 -1
  323. package/index31.mjs +0 -40
  324. package/index32.js +0 -1
  325. package/index32.mjs +0 -48
  326. package/index33.js +0 -1
  327. package/index33.mjs +0 -90
  328. package/index34.js +0 -1
  329. package/index34.mjs +0 -36
  330. package/index35.js +0 -1
  331. package/index35.mjs +0 -25
  332. package/index36.js +0 -1
  333. package/index36.mjs +0 -27
  334. package/index37.js +0 -1
  335. package/index37.mjs +0 -110
  336. package/index38.js +0 -1
  337. package/index38.mjs +0 -57
  338. package/index39.js +0 -1
  339. package/index39.mjs +0 -21
  340. package/index4.js +0 -1
  341. package/index4.mjs +0 -58
  342. package/index40.js +0 -1
  343. package/index40.mjs +0 -40
  344. package/index41.js +0 -1
  345. package/index41.mjs +0 -54
  346. package/index42.js +0 -1
  347. package/index42.mjs +0 -73
  348. package/index43.js +0 -1
  349. package/index43.mjs +0 -49
  350. package/index44.js +0 -1
  351. package/index44.mjs +0 -13
  352. package/index45.js +0 -1
  353. package/index45.mjs +0 -73
  354. package/index46.js +0 -1
  355. package/index46.mjs +0 -99
  356. package/index47.js +0 -1
  357. package/index47.mjs +0 -45
  358. package/index48.js +0 -1
  359. package/index48.mjs +0 -26
  360. package/index49.js +0 -1
  361. package/index49.mjs +0 -83
  362. package/index5.js +0 -1
  363. package/index5.mjs +0 -136
  364. package/index50.js +0 -1
  365. package/index50.mjs +0 -35
  366. package/index51.js +0 -1
  367. package/index51.mjs +0 -10
  368. package/index52.js +0 -1
  369. package/index52.mjs +0 -13
  370. package/index53.js +0 -1
  371. package/index53.mjs +0 -30
  372. package/index54.js +0 -1
  373. package/index54.mjs +0 -51
  374. package/index55.js +0 -1
  375. package/index55.mjs +0 -10
  376. package/index56.js +0 -1
  377. package/index56.mjs +0 -49
  378. package/index58.js +0 -1
  379. package/index58.mjs +0 -64
  380. package/index59.js +0 -1
  381. package/index59.mjs +0 -62
  382. package/index6.js +0 -1
  383. package/index6.mjs +0 -29
  384. package/index60.js +0 -1
  385. package/index60.mjs +0 -31
  386. package/index61.js +0 -1
  387. package/index61.mjs +0 -23
  388. package/index62.js +0 -1
  389. package/index62.mjs +0 -32
  390. package/index63.js +0 -1
  391. package/index63.mjs +0 -16
  392. package/index64.js +0 -1
  393. package/index64.mjs +0 -61
  394. package/index65.js +0 -1
  395. package/index65.mjs +0 -19
  396. package/index66.js +0 -7
  397. package/index66.mjs +0 -411
  398. package/index7.js +0 -1
  399. package/index7.mjs +0 -8
  400. package/index70.js +0 -1
  401. package/index70.mjs +0 -4
  402. package/index71.js +0 -1
  403. package/index71.mjs +0 -76
  404. package/index72.js +0 -1
  405. package/index72.mjs +0 -31
  406. package/index73.js +0 -1
  407. package/index73.mjs +0 -38
  408. package/index74.js +0 -1
  409. package/index74.mjs +0 -6
  410. package/index75.js +0 -1
  411. package/index75.mjs +0 -37
  412. package/index76.js +0 -1
  413. package/index76.mjs +0 -7
  414. package/index77.js +0 -1
  415. package/index77.mjs +0 -7
  416. package/index78.js +0 -1
  417. package/index78.mjs +0 -7
  418. package/index79.js +0 -1
  419. package/index79.mjs +0 -7
  420. package/index8.js +0 -1
  421. package/index8.mjs +0 -18
  422. package/index80.js +0 -1
  423. package/index80.mjs +0 -7
  424. package/index81.js +0 -1
  425. package/index81.mjs +0 -19
  426. package/index82.js +0 -1
  427. package/index82.mjs +0 -87
  428. package/index83.js +0 -1
  429. package/index83.mjs +0 -8
  430. package/index84.js +0 -1
  431. package/index84.mjs +0 -27
  432. package/index85.js +0 -1
  433. package/index85.mjs +0 -57
  434. package/index87.js +0 -1
  435. package/index87.mjs +0 -7
  436. package/index88.js +0 -1
  437. package/index88.mjs +0 -121
  438. package/index89.js +0 -1
  439. package/index89.mjs +0 -20
  440. package/index9.js +0 -1
  441. package/index9.mjs +0 -18
  442. package/index90.js +0 -1
  443. package/index90.mjs +0 -26
  444. package/index91.js +0 -1
  445. package/index91.mjs +0 -4
  446. package/index92.js +0 -1
  447. package/index92.mjs +0 -237
  448. package/index93.js +0 -1
  449. package/index93.mjs +0 -4
  450. package/index94.js +0 -1
  451. package/index94.mjs +0 -13
  452. package/index95.js +0 -1
  453. package/index95.mjs +0 -249
  454. package/index96.js +0 -1
  455. package/index96.mjs +0 -91
  456. package/index97.js +0 -1
  457. package/index97.mjs +0 -15
  458. package/index98.js +0 -1
  459. package/index98.mjs +0 -6
  460. package/index99.js +0 -1
  461. package/index99.mjs +0 -4
  462. package/packages/antwerp-ui/react-components/src/lib/atoms/input/text-field/TextField.css +0 -1
  463. package/packages/antwerp-ui/react-components/src/lib/atoms/tooltip/Tooltip.css +0 -1
  464. package/packages/antwerp-ui/react-components/src/lib/molecules/autocomplete/Autocomplete.css +0 -1
  465. package/packages/antwerp-ui/react-components/src/lib/molecules/datepicker/DateRangePicker.css +0 -1
package/index71.mjs DELETED
@@ -1,76 +0,0 @@
1
- import { jsx as r, jsxs as M } from "react/jsx-runtime";
2
- import { DayButton as b } from "./index119.mjs";
3
- import { titleize as l } from "./index74.mjs";
4
- import { useState as B } from "react";
5
- import { isBetween as N } from "./index75.mjs";
6
- import { eachDayOfInterval as $ } from "./index120.mjs";
7
- import { endOfWeek as u } from "./index121.mjs";
8
- import { startOfWeek as d } from "./index122.mjs";
9
- import { format as k } from "./index85.mjs";
10
- import { startOfMonth as j } from "./index123.mjs";
11
- import { endOfMonth as V } from "./index124.mjs";
12
- import { isValid as s } from "./index83.mjs";
13
- import { isAfter as E } from "./index125.mjs";
14
- import { addWeeks as z } from "./index126.mjs";
15
- import { addDays as A } from "./index127.mjs";
16
- function Z({
17
- value: w,
18
- onChange: y,
19
- activeMonth: m,
20
- activeYear: a,
21
- ariaLabelCurrentDay: D,
22
- locale: n,
23
- unavailableFrom: O,
24
- unavailableTo: S,
25
- highlight: _,
26
- unavailable: g,
27
- hoverStart: f
28
- }) {
29
- const [c, p] = B(null), W = (t) => {
30
- const o = [];
31
- let e = d(t, { locale: n });
32
- const i = u(t, { locale: n });
33
- for (; s(e) && !E(e, i); ) {
34
- let h = !1;
35
- const I = new Date(a, m);
36
- f && c && (h = N(e, f, c.toISOString())), o.push(
37
- /* @__PURE__ */ r(
38
- b,
39
- {
40
- ariaLabelCurrentDay: D,
41
- unavailableFrom: O,
42
- unavailableTo: S,
43
- unavailable: g,
44
- date: e,
45
- hoverStyle: h,
46
- highlight: _,
47
- value: w,
48
- monthYear: I,
49
- onChange: y,
50
- onMouseEnter: p,
51
- onMouseLeave: () => p(null)
52
- },
53
- `day_${s(e) ? e.toISOString() : "invalid"}`
54
- )
55
- ), e = A(e, 1);
56
- }
57
- return /* @__PURE__ */ r("tr", { children: o }, `aui-calendar-week-${e.toISOString()}`);
58
- }, v = () => {
59
- const t = [], o = new Date(a, m);
60
- let e = d(j(o), { locale: n });
61
- const i = V(o);
62
- for (; s(e) && !E(e, i); )
63
- t.push(W(e)), e = z(e, 1);
64
- return t;
65
- }, x = $({
66
- start: d(/* @__PURE__ */ new Date(), { locale: n }),
67
- end: u(/* @__PURE__ */ new Date(), { locale: n })
68
- });
69
- return /* @__PURE__ */ r("div", { className: "m-datepicker__grid", children: /* @__PURE__ */ M("table", { children: [
70
- /* @__PURE__ */ r("thead", { children: /* @__PURE__ */ r("tr", { className: "m-datepicker__grid-head", children: x.map((t) => /* @__PURE__ */ r("th", { scope: "col", children: /* @__PURE__ */ r("span", { title: l(k(t, "EEEE", { locale: n })), children: l(k(t, "EEEEEE", { locale: n })) }) }, `aui-calendar-weekday-${t}`)) }) }),
71
- /* @__PURE__ */ r("tbody", { className: "m-datepicker__grid-body", children: v() })
72
- ] }) });
73
- }
74
- export {
75
- Z as DaysView
76
- };
package/index72.js DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),m=require("./index51.js"),M=require("./index74.js"),g=require("./index52.js"),c=require("./index77.js"),l=require("./index76.js"),j=require("./index85.js");function x({onChange:a,value:n,activeYear:r,locale:d=g.DEFAULT_LOCALE}){const i=e=>{const s=!!(n&&e===c.getMonth(n)&&r===l.getYear(n)),h=m.classNames({"is-current":e===c.getMonth(new Date)&&r===l.getYear(new Date),"is-selected":s}),o=new Date(r,e);return t.jsx("td",{children:t.jsx("button",{type:"button",className:h,onClick:()=>a(o),children:M.titleize(j.format(o,"MMMM",{locale:d}))})})},u=()=>{let e=0;const s=[];for(;e<12;)s.push(t.jsxs("tr",{children:[i(e),i(e+1)]},`aui-calendar-month-pair-${e}`)),e+=2;return s};return t.jsx("div",{className:"m-datepicker__list",children:t.jsx("table",{children:t.jsx("tbody",{className:"m-datepicker__list-body",children:u()})})})}exports.MonthsView=x;
package/index72.mjs DELETED
@@ -1,31 +0,0 @@
1
- import { jsx as t, jsxs as p } from "react/jsx-runtime";
2
- import { classNames as h } from "./index51.mjs";
3
- import { titleize as f } from "./index74.mjs";
4
- import { DEFAULT_LOCALE as u } from "./index52.mjs";
5
- import { getMonth as c } from "./index77.mjs";
6
- import { getYear as m } from "./index76.mjs";
7
- import { format as M } from "./index85.mjs";
8
- function L({ onChange: d, value: o, activeYear: n, locale: l = u }) {
9
- const s = (e) => {
10
- const r = !!(o && e === c(o) && n === m(o)), a = h({
11
- "is-current": e === c(/* @__PURE__ */ new Date()) && n === m(/* @__PURE__ */ new Date()),
12
- "is-selected": r
13
- }), i = new Date(n, e);
14
- return /* @__PURE__ */ t("td", { children: /* @__PURE__ */ t("button", { type: "button", className: a, onClick: () => d(i), children: f(M(i, "MMMM", { locale: l })) }) });
15
- };
16
- return /* @__PURE__ */ t("div", { className: "m-datepicker__list", children: /* @__PURE__ */ t("table", { children: /* @__PURE__ */ t("tbody", { className: "m-datepicker__list-body", children: (() => {
17
- let e = 0;
18
- const r = [];
19
- for (; e < 12; )
20
- r.push(
21
- /* @__PURE__ */ p("tr", { children: [
22
- s(e),
23
- s(e + 1)
24
- ] }, `aui-calendar-month-pair-${e}`)
25
- ), e += 2;
26
- return r;
27
- })() }) }) });
28
- }
29
- export {
30
- L as MonthsView
31
- };
package/index73.js DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),l=require("./index51.js"),a=require("./index76.js"),u=require("./index85.js"),m=require("./index128.js");function j({yearsRowsStart:n,value:r,activeMonth:c,onChange:d}){const i=e=>{const s=l.classNames({"is-current":e===a.getYear(new Date),"is-selected":!!(r&&e===a.getYear(new Date(r)))});return t.jsx("td",{children:t.jsx("button",{type:"button",className:s,onClick:()=>d(new Date(e,c,r?m.getDate(r):1)),children:u.format(new Date(e,c),"yyyy")})})},o=()=>{let e=0;const s=[];for(;e<16;)s.push(t.jsxs("tr",{children:[i(n+e),i(n+e+1),i(n+e+2)]},`aui-calendar-years-${e}`)),e+=3;return s};return t.jsx("div",{className:"m-datepicker__list",children:t.jsx("table",{children:t.jsx("tbody",{className:"m-datepicker__list-body",children:o()})})})}exports.YearsView=j;
package/index73.mjs DELETED
@@ -1,38 +0,0 @@
1
- import { jsx as r, jsxs as m } from "react/jsx-runtime";
2
- import { classNames as l } from "./index51.mjs";
3
- import { getYear as c } from "./index76.mjs";
4
- import { format as a } from "./index85.mjs";
5
- import { getDate as p } from "./index128.mjs";
6
- function D({ yearsRowsStart: s, value: t, activeMonth: o, onChange: d }) {
7
- const i = (e) => {
8
- const n = l({
9
- "is-current": e === c(/* @__PURE__ */ new Date()),
10
- "is-selected": !!(t && e === c(new Date(t)))
11
- });
12
- return /* @__PURE__ */ r("td", { children: /* @__PURE__ */ r(
13
- "button",
14
- {
15
- type: "button",
16
- className: n,
17
- onClick: () => d(new Date(e, o, t ? p(t) : 1)),
18
- children: a(new Date(e, o), "yyyy")
19
- }
20
- ) });
21
- };
22
- return /* @__PURE__ */ r("div", { className: "m-datepicker__list", children: /* @__PURE__ */ r("table", { children: /* @__PURE__ */ r("tbody", { className: "m-datepicker__list-body", children: (() => {
23
- let e = 0;
24
- const n = [];
25
- for (; e < 16; )
26
- n.push(
27
- /* @__PURE__ */ m("tr", { children: [
28
- i(s + e),
29
- i(s + e + 1),
30
- i(s + e + 2)
31
- ] }, `aui-calendar-years-${e}`)
32
- ), e += 3;
33
- return n;
34
- })() }) }) });
35
- }
36
- export {
37
- D as YearsView
38
- };
package/index74.js DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function t(e){return e.charAt(0).toUpperCase()+e.slice(1)}exports.titleize=t;
package/index74.mjs DELETED
@@ -1,6 +0,0 @@
1
- function t(e) {
2
- return e.charAt(0).toUpperCase() + e.slice(1);
3
- }
4
- export {
5
- t as titleize
6
- };
package/index75.js DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./index129.js");const c=require("./index130.js"),f=require("./index52.js"),a=require("./index85.js"),u=require("./index131.js"),i=require("./index132.js"),o=require("./index125.js");function D(e,t,r,n){return r&&(u.isBefore(e,new Date(r))||i.isSameDay(e,new Date(r)))||t&&(o.isAfter(e,new Date(t))||i.isSameDay(e,new Date(t)))||!!n?.find(s=>i.isSameDay(e,new Date(s)))}function l(e,t,r){return o.isAfter(e,new Date(t))&&u.isBefore(e,new Date(r))}function w(e,t){try{return a.format(new Date(e),t)}catch{return e}}function m(e,t,r,n=""){try{return a.format(e,t,{locale:r})}catch{return n}}function I(e,t,r){return c.tz(f.TIMEZONE)(new Date(Date.UTC(e,t,r,0,0,0))).toISOString()}exports.formatIfValid=w;exports.formatWithFallback=m;exports.isBetween=l;exports.isInRange=D;exports.toUtcMidnightInBrussels=I;
package/index75.mjs DELETED
@@ -1,37 +0,0 @@
1
- import "./index129.mjs";
2
- import { tz as f } from "./index130.mjs";
3
- import { TIMEZONE as m } from "./index52.mjs";
4
- import { format as s } from "./index85.mjs";
5
- import { isBefore as a } from "./index131.mjs";
6
- import { isSameDay as o } from "./index132.mjs";
7
- import { isAfter as u } from "./index125.mjs";
8
- function S(t, e, r, n) {
9
- return r && (a(t, new Date(r)) || o(t, new Date(r))) || e && (u(t, new Date(e)) || o(t, new Date(e))) || !!n?.find((i) => o(t, new Date(i)));
10
- }
11
- function h(t, e, r) {
12
- return u(t, new Date(e)) && a(t, new Date(r));
13
- }
14
- function O(t, e) {
15
- try {
16
- return s(new Date(t), e);
17
- } catch {
18
- return t;
19
- }
20
- }
21
- function g(t, e, r, n = "") {
22
- try {
23
- return s(t, e, { locale: r });
24
- } catch {
25
- return n;
26
- }
27
- }
28
- function y(t, e, r) {
29
- return f(m)(new Date(Date.UTC(t, e, r, 0, 0, 0))).toISOString();
30
- }
31
- export {
32
- O as formatIfValid,
33
- g as formatWithFallback,
34
- h as isBetween,
35
- S as isInRange,
36
- y as toUtcMidnightInBrussels
37
- };
package/index76.js DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index149.js");function o(e,t){return r.toDate(e,t?.in).getFullYear()}exports.getYear=o;
package/index76.mjs DELETED
@@ -1,7 +0,0 @@
1
- import { toDate as r } from "./index149.mjs";
2
- function n(t, e) {
3
- return r(t, e?.in).getFullYear();
4
- }
5
- export {
6
- n as getYear
7
- };
package/index77.js DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index149.js");function n(t,e){return o.toDate(t,e?.in).getMonth()}exports.getMonth=n;
package/index77.mjs DELETED
@@ -1,7 +0,0 @@
1
- import { toDate as n } from "./index149.mjs";
2
- function r(t, o) {
3
- return n(t, o?.in).getMonth();
4
- }
5
- export {
6
- r as getMonth
7
- };
package/index78.js DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index79.js");function a(e,s,r){return t.addYears(e,-1,r)}exports.subYears=a;
package/index78.mjs DELETED
@@ -1,7 +0,0 @@
1
- import { addYears as t } from "./index79.mjs";
2
- function n(r, a, o) {
3
- return t(r, -1, o);
4
- }
5
- export {
6
- n as subYears
7
- };
package/index79.js DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index81.js");function a(e,t,d){return r.addMonths(e,t*12,d)}exports.addYears=a;
package/index79.mjs DELETED
@@ -1,7 +0,0 @@
1
- import { addMonths as d } from "./index81.mjs";
2
- function a(r, o, t) {
3
- return d(r, o * 12, t);
4
- }
5
- export {
6
- a as addYears
7
- };
package/index8.js DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime"),c=require("./index51.js"),l=require("react"),e=require("./index53.js"),g=require("./index55.js");function d({ariaLabel:r,theme:t,emphasis:s,children:n,qa:i}){const a=parseInt(n),o=c.classNames({"a-badge":!0,[`a-badge--${t}`]:!!t,[`a-badge--${e.EMPHASIS_MAP[s||e.DEFAULT_EMPHASIS]}`]:!!e.EMPHASIS_MAP[s||e.DEFAULT_EMPHASIS]});return l.useEffect(()=>{isNaN(a)&&g.logWarning("Using the Badge Component with a non-numerical value")},[n]),u.jsx("span",{className:o,"aria-label":r,"data-qa":i,children:isNaN(a)?"":`${a}`})}exports.Badge=d;
package/index8.mjs DELETED
@@ -1,18 +0,0 @@
1
- import { jsx as f } from "react/jsx-runtime";
2
- import { classNames as c } from "./index51.mjs";
3
- import { useEffect as g } from "react";
4
- import { EMPHASIS_MAP as n, DEFAULT_EMPHASIS as t } from "./index53.mjs";
5
- import { logWarning as l } from "./index55.mjs";
6
- function A({ ariaLabel: s, theme: r, emphasis: o, children: e, qa: i }) {
7
- const a = parseInt(e), m = c({
8
- "a-badge": !0,
9
- [`a-badge--${r}`]: !!r,
10
- [`a-badge--${n[o || t]}`]: !!n[o || t]
11
- });
12
- return g(() => {
13
- isNaN(a) && l("Using the Badge Component with a non-numerical value");
14
- }, [e]), /* @__PURE__ */ f("span", { className: m, "aria-label": s, "data-qa": i, children: isNaN(a) ? "" : `${a}` });
15
- }
16
- export {
17
- A as Badge
18
- };
package/index80.js DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index81.js");function e(t,s,n){return o.addMonths(t,-1,n)}exports.subMonths=e;
package/index80.mjs DELETED
@@ -1,7 +0,0 @@
1
- import { addMonths as n } from "./index81.mjs";
2
- function m(o, r, t) {
3
- return n(o, -1, t);
4
- }
5
- export {
6
- m as subMonths
7
- };
package/index81.js DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index148.js"),u=require("./index149.js");function a(n,o,c){const t=u.toDate(n,c?.in);if(isNaN(o))return s.constructFrom(n,NaN);if(!o)return t;const r=t.getDate(),e=s.constructFrom(n,t.getTime());e.setMonth(t.getMonth()+o+1,0);const i=e.getDate();return r>=i?e:(t.setFullYear(e.getFullYear(),e.getMonth(),r),t)}exports.addMonths=a;
package/index81.mjs DELETED
@@ -1,19 +0,0 @@
1
- import { constructFrom as s } from "./index148.mjs";
2
- import { toDate as a } from "./index149.mjs";
3
- function M(n, o, i) {
4
- const t = a(n, i?.in);
5
- if (isNaN(o)) return s(n, NaN);
6
- if (!o)
7
- return t;
8
- const r = t.getDate(), e = s(n, t.getTime());
9
- e.setMonth(t.getMonth() + o + 1, 0);
10
- const f = e.getDate();
11
- return r >= f ? e : (t.setFullYear(
12
- e.getFullYear(),
13
- e.getMonth(),
14
- r
15
- ), t);
16
- }
17
- export {
18
- M as addMonths
19
- };
package/index82.js DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("./index158.js"),l=require("./index159.js"),b=require("./index148.js"),D=require("./index164.js"),O=require("./index149.js"),x=require("./index174.js"),E=require("./index175.js"),C=require("./index160.js"),$=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,A=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,W=/^'([^]*?)'?$/,N=/''/g,j=/\S/,v=/[a-zA-Z]/;function L(n,a,c,u){const o=()=>b.constructFrom(c,NaN),i=D.getDefaultOptions(),p=i.locale??C.enUS,F=i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,q=i.weekStartsOn??i.locale?.options?.weekStartsOn??0;if(!a)return n?o():O.toDate(c,u?.in);const f={firstWeekContainsDate:F,weekStartsOn:q,locale:p},g=[new x.DateTimezoneSetter(u?.in,c)],P=a.match(A).map(e=>{const t=e[0];if(t in k.longFormatters){const r=k.longFormatters[t];return r(e,p.formatLong)}return e}).join("").match($),m=[];for(let e of P){l.isProtectedWeekYearToken(e)&&l.warnOrThrowProtectedError(e,a,n),l.isProtectedDayOfYearToken(e)&&l.warnOrThrowProtectedError(e,a,n);const t=e[0],r=E.parsers[t];if(r){const{incompatibleTokens:T}=r;if(Array.isArray(T)){const d=m.find(y=>T.includes(y.token)||y.token===t);if(d)throw new RangeError(`The format string mustn't contain \`${d.fullToken}\` and \`${e}\` at the same time`)}else if(r.incompatibleTokens==="*"&&m.length>0)throw new RangeError(`The format string mustn't contain \`${e}\` and any other token at the same time`);m.push({token:t,fullToken:e});const h=r.run(n,e,p.match,f);if(!h)return o();g.push(h.setter),n=h.rest}else{if(t.match(v))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");if(e==="''"?e="'":t==="'"&&(e=Y(e)),n.indexOf(e)===0)n=n.slice(e.length);else return o()}}if(n.length>0&&j.test(n))return o();const R=g.map(e=>e.priority).sort((e,t)=>t-e).filter((e,t,r)=>r.indexOf(e)===t).map(e=>g.filter(t=>t.priority===e).sort((t,r)=>r.subPriority-t.subPriority)).map(e=>e[0]);let s=O.toDate(c,u?.in);if(isNaN(+s))return o();const w={};for(const e of R){if(!e.validate(s,f))return o();const t=e.set(s,w,f);Array.isArray(t)?(s=t[0],Object.assign(w,t[1])):s=t}return s}function Y(n){return n.match(W)[1].replace(N,"'")}exports.longFormatters=k.longFormatters;exports.parsers=E.parsers;exports.parse=L;
package/index82.mjs DELETED
@@ -1,87 +0,0 @@
1
- import { longFormatters as y } from "./index158.mjs";
2
- import { isProtectedWeekYearToken as b, warnOrThrowProtectedError as E, isProtectedDayOfYearToken as C } from "./index159.mjs";
3
- import { constructFrom as D } from "./index148.mjs";
4
- import { getDefaultOptions as F } from "./index164.mjs";
5
- import { toDate as O } from "./index149.mjs";
6
- import { DateTimezoneSetter as $ } from "./index174.mjs";
7
- import { parsers as A } from "./index175.mjs";
8
- import { enUS as W } from "./index160.mjs";
9
- const N = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, L = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Y = /^'([^]*?)'?$/, j = /''/g, q = /\S/, v = /[a-zA-Z]/;
10
- function G(n, a, c, f) {
11
- const r = () => D(c, NaN), i = F(), l = i.locale ?? W, d = i.firstWeekContainsDate ?? i.locale?.options?.firstWeekContainsDate ?? 1, R = i.weekStartsOn ?? i.locale?.options?.weekStartsOn ?? 0;
12
- if (!a)
13
- return n ? r() : O(c, f?.in);
14
- const m = {
15
- firstWeekContainsDate: d,
16
- weekStartsOn: R,
17
- locale: l
18
- }, p = [new $(f?.in, c)], x = a.match(L).map((t) => {
19
- const e = t[0];
20
- if (e in y) {
21
- const o = y[e];
22
- return o(t, l.formatLong);
23
- }
24
- return t;
25
- }).join("").match(N), u = [];
26
- for (let t of x) {
27
- b(t) && E(t, a, n), C(t) && E(t, a, n);
28
- const e = t[0], o = A[e];
29
- if (o) {
30
- const { incompatibleTokens: k } = o;
31
- if (Array.isArray(k)) {
32
- const w = u.find(
33
- (T) => k.includes(T.token) || T.token === e
34
- );
35
- if (w)
36
- throw new RangeError(
37
- `The format string mustn't contain \`${w.fullToken}\` and \`${t}\` at the same time`
38
- );
39
- } else if (o.incompatibleTokens === "*" && u.length > 0)
40
- throw new RangeError(
41
- `The format string mustn't contain \`${t}\` and any other token at the same time`
42
- );
43
- u.push({ token: e, fullToken: t });
44
- const g = o.run(
45
- n,
46
- t,
47
- l.match,
48
- m
49
- );
50
- if (!g)
51
- return r();
52
- p.push(g.setter), n = g.rest;
53
- } else {
54
- if (e.match(v))
55
- throw new RangeError(
56
- "Format string contains an unescaped latin alphabet character `" + e + "`"
57
- );
58
- if (t === "''" ? t = "'" : e === "'" && (t = z(t)), n.indexOf(t) === 0)
59
- n = n.slice(t.length);
60
- else
61
- return r();
62
- }
63
- }
64
- if (n.length > 0 && q.test(n))
65
- return r();
66
- const P = p.map((t) => t.priority).sort((t, e) => e - t).filter((t, e, o) => o.indexOf(t) === e).map(
67
- (t) => p.filter((e) => e.priority === t).sort((e, o) => o.subPriority - e.subPriority)
68
- ).map((t) => t[0]);
69
- let s = O(c, f?.in);
70
- if (isNaN(+s)) return r();
71
- const h = {};
72
- for (const t of P) {
73
- if (!t.validate(s, m))
74
- return r();
75
- const e = t.set(s, h, m);
76
- Array.isArray(e) ? (s = e[0], Object.assign(h, e[1])) : s = e;
77
- }
78
- return s;
79
- }
80
- function z(n) {
81
- return n.match(Y)[1].replace(j, "'");
82
- }
83
- export {
84
- y as longFormatters,
85
- G as parse,
86
- A as parsers
87
- };
package/index83.js DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index173.js"),i=require("./index149.js");function r(e){return!(!t.isDate(e)&&typeof e!="number"||isNaN(+i.toDate(e)))}exports.isValid=r;
package/index83.mjs DELETED
@@ -1,8 +0,0 @@
1
- import { isDate as r } from "./index173.mjs";
2
- import { toDate as i } from "./index149.mjs";
3
- function e(o) {
4
- return !(!r(o) && typeof o != "number" || isNaN(+i(o)));
5
- }
6
- export {
7
- e as isValid
8
- };
package/index84.js DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index161.js"),L=require("./index149.js");function O(c,g){const e=L.toDate(c,g?.in);if(isNaN(+e))throw new RangeError("Invalid time value");let o="",s="";const r="-",f=":";{const n=t.addLeadingZeros(e.getDate(),2),a=t.addLeadingZeros(e.getMonth()+1,2);o=`${t.addLeadingZeros(e.getFullYear(),4)}${r}${a}${r}${n}`}{const n=e.getTimezoneOffset();if(n!==0){const i=Math.abs(n),$=t.addLeadingZeros(Math.trunc(i/60),2),Z=t.addLeadingZeros(i%60,2);s=`${n<0?"+":"-"}${$}:${Z}`}else s="Z";const a=t.addLeadingZeros(e.getHours(),2),d=t.addLeadingZeros(e.getMinutes(),2),u=t.addLeadingZeros(e.getSeconds(),2),l=o===""?"":"T",m=[a,d,u].join(f);o=`${o}${l}${m}${s}`}return o}exports.formatISO=O;
package/index84.mjs DELETED
@@ -1,27 +0,0 @@
1
- import { addLeadingZeros as e } from "./index161.mjs";
2
- import { toDate as O } from "./index149.mjs";
3
- function y(f, m) {
4
- const t = O(f, m?.in);
5
- if (isNaN(+t))
6
- throw new RangeError("Invalid time value");
7
- let o = "", s = "";
8
- const i = "-", u = ":";
9
- {
10
- const n = e(t.getDate(), 2), r = e(t.getMonth() + 1, 2);
11
- o = `${e(t.getFullYear(), 4)}${i}${r}${i}${n}`;
12
- }
13
- {
14
- const n = t.getTimezoneOffset();
15
- if (n !== 0) {
16
- const c = Math.abs(n), d = e(Math.trunc(c / 60), 2), h = e(c % 60, 2);
17
- s = `${n < 0 ? "+" : "-"}${d}:${h}`;
18
- } else
19
- s = "Z";
20
- const r = e(t.getHours(), 2), a = e(t.getMinutes(), 2), $ = e(t.getSeconds(), 2), g = o === "" ? "" : "T", l = [r, a, $].join(u);
21
- o = `${o}${g}${l}${s}`;
22
- }
23
- return o;
24
- }
25
- export {
26
- y as formatISO
27
- };
package/index85.js DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("./index156.js"),u=require("./index157.js"),m=require("./index158.js"),f=require("./index159.js"),T=require("./index83.js"),w=require("./index149.js"),D=require("./index160.js"),O=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,S=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,v=/^'([^]*?)'?$/,E=/''/g,q=/[a-zA-Z]/;function k(o,a,r){const n=h.getDefaultOptions(),s=r?.locale??n.locale??D.enUS,p=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,d=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=w.toDate(o,r?.in);if(!T.isValid(i))throw new RangeError("Invalid time value");let c=a.match(S).map(t=>{const e=t[0];if(e==="p"||e==="P"){const l=m.longFormatters[e];return l(t,s.formatLong)}return t}).join("").match(O).map(t=>{if(t==="''")return{isToken:!1,value:"'"};const e=t[0];if(e==="'")return{isToken:!1,value:C(t)};if(u.formatters[e])return{isToken:!0,value:t};if(e.match(q))throw new RangeError("Format string contains an unescaped latin alphabet character `"+e+"`");return{isToken:!1,value:t}});s.localize.preprocessor&&(c=s.localize.preprocessor(i,c));const g={firstWeekContainsDate:p,weekStartsOn:d,locale:s};return c.map(t=>{if(!t.isToken)return t.value;const e=t.value;(!r?.useAdditionalWeekYearTokens&&f.isProtectedWeekYearToken(e)||!r?.useAdditionalDayOfYearTokens&&f.isProtectedDayOfYearToken(e))&&f.warnOrThrowProtectedError(e,a,String(o));const l=u.formatters[e[0]];return l(i,e,s.localize,g)}).join("")}function C(o){const a=o.match(v);return a?a[1].replace(E,"'"):o}exports.formatters=u.formatters;exports.longFormatters=m.longFormatters;exports.format=k;exports.formatDate=k;
package/index85.mjs DELETED
@@ -1,57 +0,0 @@
1
- import { getDefaultOptions as u } from "./index156.mjs";
2
- import { formatters as f } from "./index157.mjs";
3
- import { longFormatters as d } from "./index158.mjs";
4
- import { isProtectedWeekYearToken as g, isProtectedDayOfYearToken as h, warnOrThrowProtectedError as w } from "./index159.mjs";
5
- import { isValid as D } from "./index83.mjs";
6
- import { toDate as T } from "./index149.mjs";
7
- import { enUS as O } from "./index160.mjs";
8
- const E = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, v = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, C = /^'([^]*?)'?$/, S = /''/g, R = /[a-zA-Z]/;
9
- function L(o, a, r) {
10
- const n = u(), i = r?.locale ?? n.locale ?? O, m = r?.firstWeekContainsDate ?? r?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, p = r?.weekStartsOn ?? r?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, s = T(o, r?.in);
11
- if (!D(s))
12
- throw new RangeError("Invalid time value");
13
- let c = a.match(v).map((t) => {
14
- const e = t[0];
15
- if (e === "p" || e === "P") {
16
- const l = d[e];
17
- return l(t, i.formatLong);
18
- }
19
- return t;
20
- }).join("").match(E).map((t) => {
21
- if (t === "''")
22
- return { isToken: !1, value: "'" };
23
- const e = t[0];
24
- if (e === "'")
25
- return { isToken: !1, value: W(t) };
26
- if (f[e])
27
- return { isToken: !0, value: t };
28
- if (e.match(R))
29
- throw new RangeError(
30
- "Format string contains an unescaped latin alphabet character `" + e + "`"
31
- );
32
- return { isToken: !1, value: t };
33
- });
34
- i.localize.preprocessor && (c = i.localize.preprocessor(s, c));
35
- const k = {
36
- firstWeekContainsDate: m,
37
- weekStartsOn: p,
38
- locale: i
39
- };
40
- return c.map((t) => {
41
- if (!t.isToken) return t.value;
42
- const e = t.value;
43
- (!r?.useAdditionalWeekYearTokens && g(e) || !r?.useAdditionalDayOfYearTokens && h(e)) && w(e, a, String(o));
44
- const l = f[e[0]];
45
- return l(s, e, i.localize, k);
46
- }).join("");
47
- }
48
- function W(o) {
49
- const a = o.match(C);
50
- return a ? a[1].replace(S, "'") : o;
51
- }
52
- export {
53
- L as format,
54
- L as formatDate,
55
- f as formatters,
56
- d as longFormatters
57
- };
package/index87.js DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index127.js");function s(e,u,t){return a.addDays(e,-1,t)}exports.subDays=s;
package/index87.mjs DELETED
@@ -1,7 +0,0 @@
1
- import { addDays as t } from "./index127.mjs";
2
- function u(o, a, r) {
3
- return t(o, -1, r);
4
- }
5
- export {
6
- u as subDays
7
- };
package/index88.js DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index150.js"),N=require("./index148.js"),p=require("./index149.js");function T(t,e){const n=()=>N.constructFrom(e?.in,NaN),i=C(t);let a;if(i.date){const s=y(i.date,2);a=Y(s.restDateString,s.year)}if(!a||isNaN(+a))return n();const u=+a;let o=0,c;if(i.time&&(o=w(i.time),isNaN(o)))return n();if(i.timezone){if(c=x(i.timezone),isNaN(c))return n()}else{const s=new Date(u+o),m=p.toDate(0,e?.in);return m.setFullYear(s.getUTCFullYear(),s.getUTCMonth(),s.getUTCDate()),m.setHours(s.getUTCHours(),s.getUTCMinutes(),s.getUTCSeconds(),s.getUTCMilliseconds()),m}return p.toDate(u+o+c,e?.in)}const f={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},I=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,U=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,h=/^([+-])(\d{2})(?::?(\d{2}))?$/;function C(t){const e={},n=t.split(f.dateTimeDelimiter);let r;if(n.length>2)return e;if(/:/.test(n[0])?r=n[0]:(e.date=n[0],r=n[1],f.timeZoneDelimiter.test(e.date)&&(e.date=t.split(f.timeZoneDelimiter)[0],r=t.substr(e.date.length,t.length))),r){const i=f.timezone.exec(r);i?(e.time=r.replace(i[1],""),e.timezone=i[1]):e.time=r}return e}function y(t,e){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=t.match(n);if(!r)return{year:NaN,restDateString:""};const i=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:a===null?i:a*100,restDateString:t.slice((r[1]||r[2]).length)}}function Y(t,e){if(e===null)return new Date(NaN);const n=t.match(I);if(!n)return new Date(NaN);const r=!!n[4],i=l(n[1]),a=l(n[2])-1,u=l(n[3]),o=l(n[4]),c=l(n[5])-1;if(r)return F(e,o,c)?M(e,o,c):new Date(NaN);{const s=new Date(0);return!S(e,a,u)||!z(e,i)?new Date(NaN):(s.setUTCFullYear(e,a,Math.max(i,u)),s)}}function l(t){return t?parseInt(t):1}function w(t){const e=t.match(U);if(!e)return NaN;const n=D(e[1]),r=D(e[2]),i=D(e[3]);return Z(n,r,i)?n*d.millisecondsInHour+r*d.millisecondsInMinute+i*1e3:NaN}function D(t){return t&&parseFloat(t.replace(",","."))||0}function x(t){if(t==="Z")return 0;const e=t.match(h);if(!e)return 0;const n=e[1]==="+"?-1:1,r=parseInt(e[2]),i=e[3]&&parseInt(e[3])||0;return k(r,i)?n*(r*d.millisecondsInHour+i*d.millisecondsInMinute):NaN}function M(t,e,n){const r=new Date(0);r.setUTCFullYear(t,0,4);const i=r.getUTCDay()||7,a=(e-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+a),r}const O=[31,null,31,30,31,30,31,31,30,31,30,31];function g(t){return t%400===0||t%4===0&&t%100!==0}function S(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(O[e]||(g(t)?29:28))}function z(t,e){return e>=1&&e<=(g(t)?366:365)}function F(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}function Z(t,e,n){return t===24?e===0&&n===0:n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}function k(t,e){return e>=0&&e<=59}exports.parseISO=T;