@a-ui/react 7.13.0-beta.6 → 7.13.0-beta.8

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 (450) hide show
  1. package/cjs/index10.js +1 -1
  2. package/cjs/index100.js +1 -1
  3. package/cjs/index101.js +1 -1
  4. package/cjs/index102.js +1 -1
  5. package/cjs/index103.js +1 -1
  6. package/cjs/index104.js +1 -1
  7. package/cjs/index105.js +1 -1
  8. package/cjs/index106.js +1 -1
  9. package/cjs/index107.js +1 -1
  10. package/cjs/index108.js +1 -1
  11. package/cjs/index109.js +1 -1
  12. package/cjs/index11.js +1 -1
  13. package/cjs/index110.js +1 -1
  14. package/cjs/index111.js +1 -1
  15. package/cjs/index112.js +1 -1
  16. package/cjs/index113.js +1 -1
  17. package/cjs/index114.js +1 -2
  18. package/cjs/index115.js +1 -1
  19. package/cjs/index116.js +1 -1
  20. package/cjs/index117.js +1 -1
  21. package/cjs/index118.js +1 -1
  22. package/cjs/index119.js +1 -10
  23. package/cjs/index12.js +1 -1
  24. package/cjs/index120.js +1 -1
  25. package/cjs/index121.js +1 -1
  26. package/cjs/index122.js +1 -1
  27. package/cjs/index123.js +1 -1
  28. package/cjs/index124.js +1 -1
  29. package/cjs/index125.js +1 -1
  30. package/cjs/index126.js +1 -5
  31. package/cjs/index127.js +1 -9
  32. package/cjs/index128.js +1 -1
  33. package/cjs/index129.js +1 -1
  34. package/cjs/index13.js +1 -1
  35. package/cjs/index130.js +1 -1
  36. package/cjs/index131.js +1 -1
  37. package/cjs/index132.js +1 -1
  38. package/cjs/index133.js +1 -1
  39. package/cjs/index134.js +1 -1
  40. package/cjs/index135.js +1 -1
  41. package/cjs/index136.js +1 -1
  42. package/cjs/index137.js +1 -1
  43. package/cjs/index138.js +1 -8
  44. package/cjs/index139.js +1 -8
  45. package/cjs/index14.js +1 -1
  46. package/cjs/index140.js +1 -5
  47. package/cjs/index141.js +1 -1
  48. package/cjs/index142.js +1 -1
  49. package/cjs/index143.js +1 -1
  50. package/cjs/index145.js +1 -11
  51. package/cjs/index146.js +1 -1
  52. package/cjs/index147.js +1 -1
  53. package/cjs/index148.js +1 -1
  54. package/cjs/index149.js +1 -1
  55. package/cjs/index150.js +1 -1
  56. package/cjs/index151.js +1 -1
  57. package/cjs/index152.js +1 -1
  58. package/cjs/index153.js +1 -1
  59. package/cjs/index154.js +1 -1
  60. package/cjs/index155.js +1 -1
  61. package/cjs/index156.js +1 -1
  62. package/cjs/index157.js +1 -1
  63. package/cjs/index158.js +1 -1
  64. package/cjs/index159.js +1 -1
  65. package/cjs/index16.js +1 -1
  66. package/cjs/index160.js +1 -1
  67. package/cjs/index161.js +1 -1
  68. package/cjs/index162.js +1 -1
  69. package/cjs/index163.js +1 -1
  70. package/cjs/index164.js +1 -1
  71. package/cjs/index165.js +1 -1
  72. package/cjs/index166.js +1 -1
  73. package/cjs/index167.js +1 -1
  74. package/cjs/index168.js +1 -1
  75. package/cjs/index169.js +1 -1
  76. package/cjs/index17.js +1 -1
  77. package/cjs/index170.js +1 -1
  78. package/cjs/index171.js +1 -1
  79. package/cjs/index172.js +1 -1
  80. package/cjs/index173.js +1 -1
  81. package/cjs/index174.js +1 -1
  82. package/cjs/index175.js +1 -1
  83. package/cjs/index176.js +1 -1
  84. package/cjs/index177.js +1 -1
  85. package/cjs/index178.js +1 -1
  86. package/cjs/index179.js +1 -1
  87. package/cjs/index18.js +1 -1
  88. package/cjs/index180.js +1 -1
  89. package/cjs/index181.js +1 -1
  90. package/cjs/index182.js +1 -1
  91. package/cjs/index183.js +1 -1
  92. package/cjs/index184.js +1 -1
  93. package/cjs/index185.js +1 -1
  94. package/cjs/index186.js +1 -1
  95. package/cjs/index187.js +1 -1
  96. package/cjs/index188.js +1 -1
  97. package/cjs/index189.js +1 -1
  98. package/cjs/index190.js +1 -1
  99. package/cjs/index191.js +1 -1
  100. package/cjs/index192.js +1 -1
  101. package/cjs/index193.js +1 -1
  102. package/cjs/index194.js +1 -1
  103. package/cjs/index195.js +1 -1
  104. package/cjs/index196.js +2 -1
  105. package/cjs/index197.js +1 -1
  106. package/cjs/index198.js +1 -1
  107. package/cjs/index199.js +1 -1
  108. package/cjs/index2.js +1 -1
  109. package/cjs/index20.js +1 -1
  110. package/cjs/index200.js +1 -1
  111. package/cjs/index201.js +10 -1
  112. package/cjs/index202.js +1 -1
  113. package/cjs/index203.js +1 -1
  114. package/cjs/index204.js +1 -1
  115. package/cjs/index205.js +1 -1
  116. package/cjs/index206.js +1 -1
  117. package/cjs/index207.js +1 -1
  118. package/cjs/index208.js +5 -1
  119. package/cjs/index209.js +9 -1
  120. package/cjs/index21.js +1 -1
  121. package/cjs/index210.js +1 -1
  122. package/cjs/index211.js +1 -1
  123. package/cjs/index212.js +1 -1
  124. package/cjs/index213.js +1 -1
  125. package/cjs/index214.js +1 -1
  126. package/cjs/index215.js +1 -1
  127. package/cjs/index216.js +1 -1
  128. package/cjs/index217.js +1 -1
  129. package/cjs/index218.js +1 -1
  130. package/cjs/index219.js +1 -1
  131. package/cjs/index22.js +1 -1
  132. package/cjs/index220.js +1 -1
  133. package/cjs/index221.js +1 -1
  134. package/cjs/index222.js +1 -1
  135. package/cjs/index223.js +8 -1
  136. package/cjs/index224.js +8 -1
  137. package/cjs/index225.js +5 -1
  138. package/cjs/index226.js +1 -1
  139. package/cjs/index227.js +1 -1
  140. package/cjs/index228.js +1 -1
  141. package/cjs/index229.js +11 -1
  142. package/cjs/index230.js +1 -1
  143. package/cjs/index231.js +1 -1
  144. package/cjs/index232.js +1 -1
  145. package/cjs/index233.js +1 -1
  146. package/cjs/index234.js +1 -1
  147. package/cjs/index235.js +1 -1
  148. package/cjs/index24.js +1 -1
  149. package/cjs/index25.js +1 -1
  150. package/cjs/index26.js +1 -1
  151. package/cjs/index27.js +1 -1
  152. package/cjs/index28.js +1 -1
  153. package/cjs/index3.js +1 -1
  154. package/cjs/index30.js +1 -1
  155. package/cjs/index31.js +1 -1
  156. package/cjs/index32.js +1 -1
  157. package/cjs/index33.js +1 -1
  158. package/cjs/index34.js +1 -1
  159. package/cjs/index36.js +1 -1
  160. package/cjs/index37.js +1 -1
  161. package/cjs/index38.js +1 -1
  162. package/cjs/index39.js +1 -1
  163. package/cjs/index4.js +1 -1
  164. package/cjs/index40.js +1 -1
  165. package/cjs/index41.js +1 -1
  166. package/cjs/index42.js +1 -1
  167. package/cjs/index43.js +1 -1
  168. package/cjs/index44.js +1 -1
  169. package/cjs/index45.js +1 -1
  170. package/cjs/index46.js +1 -1
  171. package/cjs/index47.js +1 -1
  172. package/cjs/index48.js +1 -1
  173. package/cjs/index49.js +1 -1
  174. package/cjs/index50.js +1 -1
  175. package/cjs/index51.js +7 -1
  176. package/cjs/index52.js +1 -1
  177. package/cjs/index53.js +1 -1
  178. package/cjs/index54.js +1 -1
  179. package/cjs/index55.js +1 -1
  180. package/cjs/index56.js +1 -1
  181. package/cjs/index57.js +1 -1
  182. package/cjs/index58.js +1 -1
  183. package/cjs/index59.js +1 -1
  184. package/cjs/index6.js +1 -1
  185. package/cjs/index60.js +1 -1
  186. package/cjs/index61.js +1 -7
  187. package/cjs/index62.js +1 -1
  188. package/cjs/index63.js +1 -1
  189. package/cjs/index64.js +1 -1
  190. package/cjs/index65.js +1 -1
  191. package/cjs/index66.js +1 -1
  192. package/cjs/index67.js +1 -1
  193. package/cjs/index68.js +1 -1
  194. package/cjs/index69.js +1 -1
  195. package/cjs/index70.js +1 -1
  196. package/cjs/index71.js +1 -1
  197. package/cjs/index72.js +1 -1
  198. package/cjs/index73.js +1 -1
  199. package/cjs/index74.js +1 -1
  200. package/cjs/index75.js +1 -1
  201. package/cjs/index76.js +1 -1
  202. package/cjs/index77.js +1 -1
  203. package/cjs/index78.js +1 -1
  204. package/cjs/index79.js +1 -1
  205. package/cjs/index8.js +1 -1
  206. package/cjs/index80.js +1 -1
  207. package/cjs/index81.js +1 -1
  208. package/cjs/index82.js +1 -1
  209. package/cjs/index83.js +1 -1
  210. package/cjs/index84.js +1 -1
  211. package/cjs/index85.js +1 -1
  212. package/cjs/index86.js +1 -1
  213. package/cjs/index87.js +1 -1
  214. package/cjs/index88.js +1 -1
  215. package/cjs/index89.js +1 -1
  216. package/cjs/index9.js +1 -1
  217. package/cjs/index90.js +1 -1
  218. package/cjs/index91.js +1 -1
  219. package/cjs/index94.js +1 -1
  220. package/cjs/index95.js +1 -1
  221. package/cjs/index96.js +1 -1
  222. package/cjs/index97.js +1 -1
  223. package/cjs/index98.js +1 -1
  224. package/cjs/index99.js +1 -1
  225. package/es/index10.mjs +4 -4
  226. package/es/index100.mjs +6 -4
  227. package/es/index101.mjs +6 -11
  228. package/es/index102.mjs +6 -247
  229. package/es/index103.mjs +4 -88
  230. package/es/index104.mjs +6 -14
  231. package/es/index105.mjs +7 -4
  232. package/es/index106.mjs +5 -2
  233. package/es/index107.mjs +67 -2
  234. package/es/index108.mjs +3 -2
  235. package/es/index109.mjs +4 -390
  236. package/es/index11.mjs +1 -1
  237. package/es/index110.mjs +10 -124
  238. package/es/index111.mjs +4 -133
  239. package/es/index112.mjs +5 -2
  240. package/es/index113.mjs +7 -8
  241. package/es/index114.mjs +12 -326
  242. package/es/index115.mjs +15 -49
  243. package/es/index116.mjs +9 -2
  244. package/es/index117.mjs +5 -64
  245. package/es/index118.mjs +6 -43
  246. package/es/index119.mjs +4 -59
  247. package/es/index12.mjs +14 -14
  248. package/es/index120.mjs +512 -43
  249. package/es/index121.mjs +47 -37
  250. package/es/index122.mjs +18 -2
  251. package/es/index123.mjs +18 -2
  252. package/es/index124.mjs +5 -2
  253. package/es/index125.mjs +7 -30
  254. package/es/index126.mjs +6 -19
  255. package/es/index127.mjs +4 -60
  256. package/es/index128.mjs +5 -62
  257. package/es/index129.mjs +8 -13
  258. package/es/index13.mjs +2 -2
  259. package/es/index130.mjs +4 -6
  260. package/es/index131.mjs +7 -6
  261. package/es/index132.mjs +11 -5
  262. package/es/index133.mjs +8 -5
  263. package/es/index134.mjs +8 -4
  264. package/es/index135.mjs +12 -6
  265. package/es/index136.mjs +3 -4
  266. package/es/index137.mjs +33 -2
  267. package/es/index138.mjs +65 -76
  268. package/es/index139.mjs +7 -92
  269. package/es/index14.mjs +3 -3
  270. package/es/index140.mjs +7 -51
  271. package/es/index141.mjs +6 -7
  272. package/es/index142.mjs +6 -4
  273. package/es/index143.mjs +13 -51
  274. package/es/index145.mjs +230 -53
  275. package/es/index146.mjs +2 -2
  276. package/es/index147.mjs +57 -2
  277. package/es/index148.mjs +21 -4
  278. package/es/index149.mjs +40 -4
  279. package/es/index150.mjs +61 -7
  280. package/es/index151.mjs +31 -12
  281. package/es/index152.mjs +12 -15
  282. package/es/index153.mjs +61 -8
  283. package/es/index154.mjs +61 -5
  284. package/es/index155.mjs +62 -5
  285. package/es/index156.mjs +62 -4
  286. package/es/index157.mjs +37 -510
  287. package/es/index158.mjs +38 -47
  288. package/es/index159.mjs +52 -17
  289. package/es/index16.mjs +1 -1
  290. package/es/index160.mjs +42 -17
  291. package/es/index161.mjs +36 -4
  292. package/es/index162.mjs +65 -7
  293. package/es/index163.mjs +65 -5
  294. package/es/index164.mjs +90 -4
  295. package/es/index165.mjs +40 -5
  296. package/es/index166.mjs +40 -8
  297. package/es/index167.mjs +40 -4
  298. package/es/index168.mjs +24 -7
  299. package/es/index169.mjs +23 -11
  300. package/es/index17.mjs +4 -4
  301. package/es/index170.mjs +23 -8
  302. package/es/index171.mjs +24 -8
  303. package/es/index172.mjs +23 -12
  304. package/es/index173.mjs +23 -3
  305. package/es/index174.mjs +11 -30
  306. package/es/index175.mjs +40 -65
  307. package/es/index176.mjs +39 -7
  308. package/es/index177.mjs +13 -7
  309. package/es/index178.mjs +13 -6
  310. package/es/index179.mjs +11 -7
  311. package/es/index18.mjs +8 -8
  312. package/es/index180.mjs +247 -14
  313. package/es/index181.mjs +89 -2
  314. package/es/index182.mjs +15 -4
  315. package/es/index183.mjs +4 -2
  316. package/es/index184.mjs +2 -57
  317. package/es/index185.mjs +2 -22
  318. package/es/index186.mjs +67 -40
  319. package/es/index187.mjs +31 -61
  320. package/es/index188.mjs +9 -32
  321. package/es/index189.mjs +151 -11
  322. package/es/index190.mjs +107 -61
  323. package/es/index191.mjs +17 -59
  324. package/es/index192.mjs +97 -59
  325. package/es/index193.mjs +47 -63
  326. package/es/index194.mjs +2 -40
  327. package/es/index195.mjs +7 -40
  328. package/es/index196.mjs +324 -50
  329. package/es/index197.mjs +47 -40
  330. package/es/index198.mjs +2 -37
  331. package/es/index199.mjs +62 -63
  332. package/es/index2.mjs +1 -1
  333. package/es/index20.mjs +2 -2
  334. package/es/index200.mjs +40 -63
  335. package/es/index201.mjs +58 -89
  336. package/es/index202.mjs +44 -41
  337. package/es/index203.mjs +37 -38
  338. package/es/index204.mjs +2 -41
  339. package/es/index205.mjs +2 -25
  340. package/es/index206.mjs +2 -24
  341. package/es/index207.mjs +29 -22
  342. package/es/index208.mjs +19 -25
  343. package/es/index209.mjs +57 -20
  344. package/es/index21.mjs +1 -1
  345. package/es/index210.mjs +67 -23
  346. package/es/index211.mjs +31 -14
  347. package/es/index212.mjs +9 -40
  348. package/es/index213.mjs +107 -39
  349. package/es/index214.mjs +106 -13
  350. package/es/index215.mjs +58 -13
  351. package/es/index216.mjs +9 -68
  352. package/es/index217.mjs +20 -31
  353. package/es/index218.mjs +7 -9
  354. package/es/index219.mjs +15 -152
  355. package/es/index22.mjs +1 -1
  356. package/es/index220.mjs +29 -108
  357. package/es/index221.mjs +12 -19
  358. package/es/index222.mjs +2 -101
  359. package/es/index223.mjs +76 -47
  360. package/es/index224.mjs +93 -68
  361. package/es/index225.mjs +52 -31
  362. package/es/index226.mjs +8 -9
  363. package/es/index227.mjs +5 -108
  364. package/es/index228.mjs +51 -106
  365. package/es/index229.mjs +58 -59
  366. package/es/index230.mjs +2 -9
  367. package/es/index231.mjs +2 -20
  368. package/es/index232.mjs +2 -7
  369. package/es/index233.mjs +2 -16
  370. package/es/index234.mjs +2 -29
  371. package/es/index235.mjs +2 -13
  372. package/es/index24.mjs +4 -4
  373. package/es/index25.mjs +2 -2
  374. package/es/index26.mjs +1 -1
  375. package/es/index27.mjs +1 -1
  376. package/es/index28.mjs +1 -1
  377. package/es/index3.mjs +1 -1
  378. package/es/index30.mjs +40 -38
  379. package/es/index31.mjs +2 -2
  380. package/es/index32.mjs +2 -2
  381. package/es/index33.mjs +3 -3
  382. package/es/index34.mjs +1 -1
  383. package/es/index36.mjs +3 -3
  384. package/es/index37.mjs +3 -3
  385. package/es/index38.mjs +3 -3
  386. package/es/index39.mjs +3 -3
  387. package/es/index4.mjs +2 -2
  388. package/es/index40.mjs +2 -2
  389. package/es/index41.mjs +1 -1
  390. package/es/index42.mjs +4 -4
  391. package/es/index43.mjs +1 -1
  392. package/es/index44.mjs +2 -2
  393. package/es/index45.mjs +3 -3
  394. package/es/index46.mjs +3 -3
  395. package/es/index47.mjs +2 -2
  396. package/es/index48.mjs +1 -1
  397. package/es/index49.mjs +2 -2
  398. package/es/index50.mjs +1 -1
  399. package/es/index51.mjs +409 -11
  400. package/es/index52.mjs +11 -8
  401. package/es/index53.mjs +28 -21
  402. package/es/index54.mjs +47 -6
  403. package/es/index55.mjs +8 -28
  404. package/es/index56.mjs +27 -46
  405. package/es/index57.mjs +6 -47
  406. package/es/index58.mjs +11 -30
  407. package/es/index59.mjs +21 -17
  408. package/es/index6.mjs +3 -3
  409. package/es/index60.mjs +30 -29
  410. package/es/index61.mjs +13 -408
  411. package/es/index62.mjs +57 -27
  412. package/es/index63.mjs +47 -36
  413. package/es/index64.mjs +59 -17
  414. package/es/index65.mjs +61 -34
  415. package/es/index66.mjs +60 -2
  416. package/es/index67.mjs +27 -72
  417. package/es/index68.mjs +2 -29
  418. package/es/index69.mjs +73 -35
  419. package/es/index70.mjs +28 -3
  420. package/es/index71.mjs +34 -33
  421. package/es/index72.mjs +3 -4
  422. package/es/index73.mjs +34 -4
  423. package/es/index74.mjs +4 -4
  424. package/es/index75.mjs +4 -4
  425. package/es/index76.mjs +4 -4
  426. package/es/index77.mjs +4 -16
  427. package/es/index78.mjs +4 -84
  428. package/es/index79.mjs +16 -5
  429. package/es/index8.mjs +3 -3
  430. package/es/index80.mjs +82 -22
  431. package/es/index81.mjs +5 -54
  432. package/es/index82.mjs +22 -82
  433. package/es/index83.mjs +54 -4
  434. package/es/index84.mjs +21 -115
  435. package/es/index85.mjs +4 -61
  436. package/es/index86.mjs +117 -58
  437. package/es/index87.mjs +17 -14
  438. package/es/index88.mjs +117 -57
  439. package/es/index89.mjs +5 -5
  440. package/es/index9.mjs +1 -1
  441. package/es/index90.mjs +3 -3
  442. package/es/index91.mjs +1 -1
  443. package/es/index93.mjs +2 -2
  444. package/es/index94.mjs +380 -224
  445. package/es/index95.mjs +125 -2
  446. package/es/index96.mjs +130 -63
  447. package/es/index97.mjs +63 -3
  448. package/es/index98.mjs +13 -4
  449. package/es/index99.mjs +6 -10
  450. package/package.json +1 -1
package/es/index120.mjs CHANGED
@@ -1,46 +1,515 @@
1
- import { __exports as r } from "./index123.mjs";
2
- Object.defineProperty(r, "__esModule", {
3
- value: !0
4
- });
5
- r.log = c;
6
- r.resetState = l;
7
- function i(s, e) {
8
- if (!(s instanceof e))
9
- throw new TypeError("Cannot call a class as a function");
1
+ import { getDayOfYear as m } from "./index125.mjs";
2
+ import { getISOWeek as g } from "./index129.mjs";
3
+ import { getISOWeekYear as w } from "./index132.mjs";
4
+ import { getWeek as b } from "./index133.mjs";
5
+ import { getWeekYear as x } from "./index135.mjs";
6
+ import { addLeadingZeros as i } from "./index124.mjs";
7
+ import { lightFormatters as u } from "./index147.mjs";
8
+ const s = {
9
+ midnight: "midnight",
10
+ noon: "noon",
11
+ morning: "morning",
12
+ afternoon: "afternoon",
13
+ evening: "evening",
14
+ night: "night"
15
+ }, L = {
16
+ // Era
17
+ G: function(n, r, e) {
18
+ const t = n.getFullYear() > 0 ? 1 : 0;
19
+ switch (r) {
20
+ case "G":
21
+ case "GG":
22
+ case "GGG":
23
+ return e.era(t, { width: "abbreviated" });
24
+ case "GGGGG":
25
+ return e.era(t, { width: "narrow" });
26
+ case "GGGG":
27
+ default:
28
+ return e.era(t, { width: "wide" });
29
+ }
30
+ },
31
+ // Year
32
+ y: function(n, r, e) {
33
+ if (r === "yo") {
34
+ const t = n.getFullYear(), a = t > 0 ? t : 1 - t;
35
+ return e.ordinalNumber(a, { unit: "year" });
36
+ }
37
+ return u.y(n, r);
38
+ },
39
+ // Local week-numbering year
40
+ Y: function(n, r, e, t) {
41
+ const a = x(n, t), o = a > 0 ? a : 1 - a;
42
+ if (r === "YY") {
43
+ const h = o % 100;
44
+ return i(h, 2);
45
+ }
46
+ return r === "Yo" ? e.ordinalNumber(o, { unit: "year" }) : i(o, r.length);
47
+ },
48
+ // ISO week-numbering year
49
+ R: function(n, r) {
50
+ const e = w(n);
51
+ return i(e, r.length);
52
+ },
53
+ // Extended year. This is a single number designating the year of this calendar system.
54
+ // The main difference between `y` and `u` localizers are B.C. years:
55
+ // | Year | `y` | `u` |
56
+ // |------|-----|-----|
57
+ // | AC 1 | 1 | 1 |
58
+ // | BC 1 | 1 | 0 |
59
+ // | BC 2 | 2 | -1 |
60
+ // Also `yy` always returns the last two digits of a year,
61
+ // while `uu` pads single digit years to 2 characters and returns other years unchanged.
62
+ u: function(n, r) {
63
+ const e = n.getFullYear();
64
+ return i(e, r.length);
65
+ },
66
+ // Quarter
67
+ Q: function(n, r, e) {
68
+ const t = Math.ceil((n.getMonth() + 1) / 3);
69
+ switch (r) {
70
+ case "Q":
71
+ return String(t);
72
+ case "QQ":
73
+ return i(t, 2);
74
+ case "Qo":
75
+ return e.ordinalNumber(t, { unit: "quarter" });
76
+ case "QQQ":
77
+ return e.quarter(t, {
78
+ width: "abbreviated",
79
+ context: "formatting"
80
+ });
81
+ case "QQQQQ":
82
+ return e.quarter(t, {
83
+ width: "narrow",
84
+ context: "formatting"
85
+ });
86
+ case "QQQQ":
87
+ default:
88
+ return e.quarter(t, {
89
+ width: "wide",
90
+ context: "formatting"
91
+ });
92
+ }
93
+ },
94
+ // Stand-alone quarter
95
+ q: function(n, r, e) {
96
+ const t = Math.ceil((n.getMonth() + 1) / 3);
97
+ switch (r) {
98
+ case "q":
99
+ return String(t);
100
+ case "qq":
101
+ return i(t, 2);
102
+ case "qo":
103
+ return e.ordinalNumber(t, { unit: "quarter" });
104
+ case "qqq":
105
+ return e.quarter(t, {
106
+ width: "abbreviated",
107
+ context: "standalone"
108
+ });
109
+ case "qqqqq":
110
+ return e.quarter(t, {
111
+ width: "narrow",
112
+ context: "standalone"
113
+ });
114
+ case "qqqq":
115
+ default:
116
+ return e.quarter(t, {
117
+ width: "wide",
118
+ context: "standalone"
119
+ });
120
+ }
121
+ },
122
+ // Month
123
+ M: function(n, r, e) {
124
+ const t = n.getMonth();
125
+ switch (r) {
126
+ case "M":
127
+ case "MM":
128
+ return u.M(n, r);
129
+ case "Mo":
130
+ return e.ordinalNumber(t + 1, { unit: "month" });
131
+ case "MMM":
132
+ return e.month(t, {
133
+ width: "abbreviated",
134
+ context: "formatting"
135
+ });
136
+ case "MMMMM":
137
+ return e.month(t, {
138
+ width: "narrow",
139
+ context: "formatting"
140
+ });
141
+ case "MMMM":
142
+ default:
143
+ return e.month(t, { width: "wide", context: "formatting" });
144
+ }
145
+ },
146
+ // Stand-alone month
147
+ L: function(n, r, e) {
148
+ const t = n.getMonth();
149
+ switch (r) {
150
+ case "L":
151
+ return String(t + 1);
152
+ case "LL":
153
+ return i(t + 1, 2);
154
+ case "Lo":
155
+ return e.ordinalNumber(t + 1, { unit: "month" });
156
+ case "LLL":
157
+ return e.month(t, {
158
+ width: "abbreviated",
159
+ context: "standalone"
160
+ });
161
+ case "LLLLL":
162
+ return e.month(t, {
163
+ width: "narrow",
164
+ context: "standalone"
165
+ });
166
+ case "LLLL":
167
+ default:
168
+ return e.month(t, { width: "wide", context: "standalone" });
169
+ }
170
+ },
171
+ // Local week of year
172
+ w: function(n, r, e, t) {
173
+ const a = b(n, t);
174
+ return r === "wo" ? e.ordinalNumber(a, { unit: "week" }) : i(a, r.length);
175
+ },
176
+ // ISO week of year
177
+ I: function(n, r, e) {
178
+ const t = g(n);
179
+ return r === "Io" ? e.ordinalNumber(t, { unit: "week" }) : i(t, r.length);
180
+ },
181
+ // Day of the month
182
+ d: function(n, r, e) {
183
+ return r === "do" ? e.ordinalNumber(n.getDate(), { unit: "date" }) : u.d(n, r);
184
+ },
185
+ // Day of year
186
+ D: function(n, r, e) {
187
+ const t = m(n);
188
+ return r === "Do" ? e.ordinalNumber(t, { unit: "dayOfYear" }) : i(t, r.length);
189
+ },
190
+ // Day of week
191
+ E: function(n, r, e) {
192
+ const t = n.getDay();
193
+ switch (r) {
194
+ case "E":
195
+ case "EE":
196
+ case "EEE":
197
+ return e.day(t, {
198
+ width: "abbreviated",
199
+ context: "formatting"
200
+ });
201
+ case "EEEEE":
202
+ return e.day(t, {
203
+ width: "narrow",
204
+ context: "formatting"
205
+ });
206
+ case "EEEEEE":
207
+ return e.day(t, {
208
+ width: "short",
209
+ context: "formatting"
210
+ });
211
+ case "EEEE":
212
+ default:
213
+ return e.day(t, {
214
+ width: "wide",
215
+ context: "formatting"
216
+ });
217
+ }
218
+ },
219
+ // Local day of week
220
+ e: function(n, r, e, t) {
221
+ const a = n.getDay(), o = (a - t.weekStartsOn + 8) % 7 || 7;
222
+ switch (r) {
223
+ case "e":
224
+ return String(o);
225
+ case "ee":
226
+ return i(o, 2);
227
+ case "eo":
228
+ return e.ordinalNumber(o, { unit: "day" });
229
+ case "eee":
230
+ return e.day(a, {
231
+ width: "abbreviated",
232
+ context: "formatting"
233
+ });
234
+ case "eeeee":
235
+ return e.day(a, {
236
+ width: "narrow",
237
+ context: "formatting"
238
+ });
239
+ case "eeeeee":
240
+ return e.day(a, {
241
+ width: "short",
242
+ context: "formatting"
243
+ });
244
+ case "eeee":
245
+ default:
246
+ return e.day(a, {
247
+ width: "wide",
248
+ context: "formatting"
249
+ });
250
+ }
251
+ },
252
+ // Stand-alone local day of week
253
+ c: function(n, r, e, t) {
254
+ const a = n.getDay(), o = (a - t.weekStartsOn + 8) % 7 || 7;
255
+ switch (r) {
256
+ case "c":
257
+ return String(o);
258
+ case "cc":
259
+ return i(o, r.length);
260
+ case "co":
261
+ return e.ordinalNumber(o, { unit: "day" });
262
+ case "ccc":
263
+ return e.day(a, {
264
+ width: "abbreviated",
265
+ context: "standalone"
266
+ });
267
+ case "ccccc":
268
+ return e.day(a, {
269
+ width: "narrow",
270
+ context: "standalone"
271
+ });
272
+ case "cccccc":
273
+ return e.day(a, {
274
+ width: "short",
275
+ context: "standalone"
276
+ });
277
+ case "cccc":
278
+ default:
279
+ return e.day(a, {
280
+ width: "wide",
281
+ context: "standalone"
282
+ });
283
+ }
284
+ },
285
+ // ISO day of week
286
+ i: function(n, r, e) {
287
+ const t = n.getDay(), a = t === 0 ? 7 : t;
288
+ switch (r) {
289
+ case "i":
290
+ return String(a);
291
+ case "ii":
292
+ return i(a, r.length);
293
+ case "io":
294
+ return e.ordinalNumber(a, { unit: "day" });
295
+ case "iii":
296
+ return e.day(t, {
297
+ width: "abbreviated",
298
+ context: "formatting"
299
+ });
300
+ case "iiiii":
301
+ return e.day(t, {
302
+ width: "narrow",
303
+ context: "formatting"
304
+ });
305
+ case "iiiiii":
306
+ return e.day(t, {
307
+ width: "short",
308
+ context: "formatting"
309
+ });
310
+ case "iiii":
311
+ default:
312
+ return e.day(t, {
313
+ width: "wide",
314
+ context: "formatting"
315
+ });
316
+ }
317
+ },
318
+ // AM or PM
319
+ a: function(n, r, e) {
320
+ const a = n.getHours() / 12 >= 1 ? "pm" : "am";
321
+ switch (r) {
322
+ case "a":
323
+ case "aa":
324
+ return e.dayPeriod(a, {
325
+ width: "abbreviated",
326
+ context: "formatting"
327
+ });
328
+ case "aaa":
329
+ return e.dayPeriod(a, {
330
+ width: "abbreviated",
331
+ context: "formatting"
332
+ }).toLowerCase();
333
+ case "aaaaa":
334
+ return e.dayPeriod(a, {
335
+ width: "narrow",
336
+ context: "formatting"
337
+ });
338
+ case "aaaa":
339
+ default:
340
+ return e.dayPeriod(a, {
341
+ width: "wide",
342
+ context: "formatting"
343
+ });
344
+ }
345
+ },
346
+ // AM, PM, midnight, noon
347
+ b: function(n, r, e) {
348
+ const t = n.getHours();
349
+ let a;
350
+ switch (t === 12 ? a = s.noon : t === 0 ? a = s.midnight : a = t / 12 >= 1 ? "pm" : "am", r) {
351
+ case "b":
352
+ case "bb":
353
+ return e.dayPeriod(a, {
354
+ width: "abbreviated",
355
+ context: "formatting"
356
+ });
357
+ case "bbb":
358
+ return e.dayPeriod(a, {
359
+ width: "abbreviated",
360
+ context: "formatting"
361
+ }).toLowerCase();
362
+ case "bbbbb":
363
+ return e.dayPeriod(a, {
364
+ width: "narrow",
365
+ context: "formatting"
366
+ });
367
+ case "bbbb":
368
+ default:
369
+ return e.dayPeriod(a, {
370
+ width: "wide",
371
+ context: "formatting"
372
+ });
373
+ }
374
+ },
375
+ // in the morning, in the afternoon, in the evening, at night
376
+ B: function(n, r, e) {
377
+ const t = n.getHours();
378
+ let a;
379
+ switch (t >= 17 ? a = s.evening : t >= 12 ? a = s.afternoon : t >= 4 ? a = s.morning : a = s.night, r) {
380
+ case "B":
381
+ case "BB":
382
+ case "BBB":
383
+ return e.dayPeriod(a, {
384
+ width: "abbreviated",
385
+ context: "formatting"
386
+ });
387
+ case "BBBBB":
388
+ return e.dayPeriod(a, {
389
+ width: "narrow",
390
+ context: "formatting"
391
+ });
392
+ case "BBBB":
393
+ default:
394
+ return e.dayPeriod(a, {
395
+ width: "wide",
396
+ context: "formatting"
397
+ });
398
+ }
399
+ },
400
+ // Hour [1-12]
401
+ h: function(n, r, e) {
402
+ if (r === "ho") {
403
+ let t = n.getHours() % 12;
404
+ return t === 0 && (t = 12), e.ordinalNumber(t, { unit: "hour" });
405
+ }
406
+ return u.h(n, r);
407
+ },
408
+ // Hour [0-23]
409
+ H: function(n, r, e) {
410
+ return r === "Ho" ? e.ordinalNumber(n.getHours(), { unit: "hour" }) : u.H(n, r);
411
+ },
412
+ // Hour [0-11]
413
+ K: function(n, r, e) {
414
+ const t = n.getHours() % 12;
415
+ return r === "Ko" ? e.ordinalNumber(t, { unit: "hour" }) : i(t, r.length);
416
+ },
417
+ // Hour [1-24]
418
+ k: function(n, r, e) {
419
+ let t = n.getHours();
420
+ return t === 0 && (t = 24), r === "ko" ? e.ordinalNumber(t, { unit: "hour" }) : i(t, r.length);
421
+ },
422
+ // Minute
423
+ m: function(n, r, e) {
424
+ return r === "mo" ? e.ordinalNumber(n.getMinutes(), { unit: "minute" }) : u.m(n, r);
425
+ },
426
+ // Second
427
+ s: function(n, r, e) {
428
+ return r === "so" ? e.ordinalNumber(n.getSeconds(), { unit: "second" }) : u.s(n, r);
429
+ },
430
+ // Fraction of second
431
+ S: function(n, r) {
432
+ return u.S(n, r);
433
+ },
434
+ // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
435
+ X: function(n, r, e) {
436
+ const t = n.getTimezoneOffset();
437
+ if (t === 0)
438
+ return "Z";
439
+ switch (r) {
440
+ case "X":
441
+ return f(t);
442
+ case "XXXX":
443
+ case "XX":
444
+ return c(t);
445
+ case "XXXXX":
446
+ case "XXX":
447
+ default:
448
+ return c(t, ":");
449
+ }
450
+ },
451
+ // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
452
+ x: function(n, r, e) {
453
+ const t = n.getTimezoneOffset();
454
+ switch (r) {
455
+ case "x":
456
+ return f(t);
457
+ case "xxxx":
458
+ case "xx":
459
+ return c(t);
460
+ case "xxxxx":
461
+ case "xxx":
462
+ default:
463
+ return c(t, ":");
464
+ }
465
+ },
466
+ // Timezone (GMT)
467
+ O: function(n, r, e) {
468
+ const t = n.getTimezoneOffset();
469
+ switch (r) {
470
+ case "O":
471
+ case "OO":
472
+ case "OOO":
473
+ return "GMT" + d(t, ":");
474
+ case "OOOO":
475
+ default:
476
+ return "GMT" + c(t, ":");
477
+ }
478
+ },
479
+ // Timezone (specific non-location)
480
+ z: function(n, r, e) {
481
+ const t = n.getTimezoneOffset();
482
+ switch (r) {
483
+ case "z":
484
+ case "zz":
485
+ case "zzz":
486
+ return "GMT" + d(t, ":");
487
+ case "zzzz":
488
+ default:
489
+ return "GMT" + c(t, ":");
490
+ }
491
+ },
492
+ // Seconds timestamp
493
+ t: function(n, r, e) {
494
+ const t = Math.trunc(+n / 1e3);
495
+ return i(t, r.length);
496
+ },
497
+ // Milliseconds timestamp
498
+ T: function(n, r, e) {
499
+ return i(+n, r.length);
500
+ }
501
+ };
502
+ function d(n, r = "") {
503
+ const e = n > 0 ? "-" : "+", t = Math.abs(n), a = Math.trunc(t / 60), o = t % 60;
504
+ return o === 0 ? e + String(a) : e + String(a) + r + i(o, 2);
10
505
  }
11
- var a = function s() {
12
- var e = this;
13
- i(this, s), this.register = function(n) {
14
- if (e.openInstances.indexOf(n) !== -1) {
15
- process.env.NODE_ENV !== "production" && console.warn("React-Modal: Cannot register modal instance that's already open");
16
- return;
17
- }
18
- e.openInstances.push(n), e.emit("register");
19
- }, this.deregister = function(n) {
20
- var t = e.openInstances.indexOf(n);
21
- if (t === -1) {
22
- process.env.NODE_ENV !== "production" && console.warn("React-Modal: Unable to deregister " + n + " as it was never registered");
23
- return;
24
- }
25
- e.openInstances.splice(t, 1), e.emit("deregister");
26
- }, this.subscribe = function(n) {
27
- e.subscribers.push(n);
28
- }, this.emit = function(n) {
29
- e.subscribers.forEach(function(t) {
30
- return t(
31
- n,
32
- // shallow copy to avoid accidental mutation
33
- e.openInstances.slice()
34
- );
35
- });
36
- }, this.openInstances = [], this.subscribers = [];
37
- }, o = new a();
38
- function c() {
39
- console.log("portalOpenInstances ----------"), console.log(o.openInstances.length), o.openInstances.forEach(function(s) {
40
- return console.log(s);
41
- }), console.log("end portalOpenInstances ----------");
506
+ function f(n, r) {
507
+ return n % 60 === 0 ? (n > 0 ? "-" : "+") + i(Math.abs(n) / 60, 2) : c(n, r);
42
508
  }
43
- function l() {
44
- o = new a();
509
+ function c(n, r = "") {
510
+ const e = n > 0 ? "-" : "+", t = Math.abs(n), a = i(Math.trunc(t / 60), 2), o = i(t % 60, 2);
511
+ return e + a + r + o;
45
512
  }
46
- r.default = o;
513
+ export {
514
+ L as formatters
515
+ };
package/es/index121.mjs CHANGED
@@ -1,42 +1,52 @@
1
- import { __exports as d } from "./index147.mjs";
2
- import "./index120.mjs";
3
- import { __exports as i } from "./index123.mjs";
4
- Object.defineProperty(d, "__esModule", {
5
- value: !0
6
- });
7
- d.resetState = f;
8
- d.log = v;
9
- var p = i, c = u(p);
10
- function u(t) {
11
- return t && t.__esModule ? t : { default: t };
12
- }
13
- var e = void 0, o = void 0, r = [];
14
- function f() {
15
- for (var t = [e, o], n = 0; n < t.length; n++) {
16
- var a = t[n];
17
- a && a.parentNode && a.parentNode.removeChild(a);
1
+ const s = (t, e) => {
2
+ switch (t) {
3
+ case "P":
4
+ return e.date({ width: "short" });
5
+ case "PP":
6
+ return e.date({ width: "medium" });
7
+ case "PPP":
8
+ return e.date({ width: "long" });
9
+ case "PPPP":
10
+ default:
11
+ return e.date({ width: "full" });
18
12
  }
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);
13
+ }, c = (t, e) => {
14
+ switch (t) {
15
+ case "p":
16
+ return e.time({ width: "short" });
17
+ case "pp":
18
+ return e.time({ width: "medium" });
19
+ case "ppp":
20
+ return e.time({ width: "long" });
21
+ case "pppp":
22
+ default:
23
+ return e.time({ width: "full" });
26
24
  }
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;
25
+ }, P = (t, e) => {
26
+ const d = t.match(/(P+)(p+)?/) || [], a = d[1], r = d[2];
27
+ if (!r)
28
+ return s(t, e);
29
+ let i;
30
+ switch (a) {
31
+ case "P":
32
+ i = e.dateTime({ width: "short" });
33
+ break;
34
+ case "PP":
35
+ i = e.dateTime({ width: "medium" });
36
+ break;
37
+ case "PPP":
38
+ i = e.dateTime({ width: "long" });
39
+ break;
40
+ case "PPPP":
41
+ default:
42
+ i = e.dateTime({ width: "full" });
43
+ break;
33
44
  }
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);
45
+ return i.replace("{{date}}", s(a, e)).replace("{{time}}", c(r, e));
46
+ }, h = {
47
+ p: c,
48
+ P
49
+ };
40
50
  export {
41
- d as default
51
+ h as longFormatters
42
52
  };
package/es/index122.mjs CHANGED
@@ -1,4 +1,20 @@
1
- var s = {};
1
+ const r = /^D+$/, s = /^Y+$/, a = ["D", "DD", "YY", "YYYY"];
2
+ function i(e) {
3
+ return r.test(e);
4
+ }
5
+ function f(e) {
6
+ return s.test(e);
7
+ }
8
+ function d(e, o, n) {
9
+ const t = c(e, o, n);
10
+ if (console.warn(t), a.includes(e)) throw new RangeError(t);
11
+ }
12
+ function c(e, o, n) {
13
+ const t = e[0] === "Y" ? "years" : "days of the month";
14
+ return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${o}\`) for formatting ${t} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
15
+ }
2
16
  export {
3
- s as __exports
17
+ i as isProtectedDayOfYearToken,
18
+ f as isProtectedWeekYearToken,
19
+ d as warnOrThrowProtectedError
4
20
  };
package/es/index123.mjs CHANGED
@@ -1,4 +1,20 @@
1
- var a = {};
1
+ import { formatDistance as o } from "./index186.mjs";
2
+ import { formatLong as t } from "./index187.mjs";
3
+ import { formatRelative as r } from "./index188.mjs";
4
+ import { localize as m } from "./index189.mjs";
5
+ import { match as a } from "./index190.mjs";
6
+ const p = {
7
+ code: "en-US",
8
+ formatDistance: o,
9
+ formatLong: t,
10
+ formatRelative: r,
11
+ localize: m,
12
+ match: a,
13
+ options: {
14
+ weekStartsOn: 0,
15
+ firstWeekContainsDate: 1
16
+ }
17
+ };
2
18
  export {
3
- a as __exports
19
+ p as enUS
4
20
  };
package/es/index124.mjs CHANGED
@@ -1,4 +1,7 @@
1
- var a = {};
1
+ function r(t, n) {
2
+ const o = t < 0 ? "-" : "", a = Math.abs(t).toString().padStart(n, "0");
3
+ return o + a;
4
+ }
2
5
  export {
3
- a as __exports
6
+ r as addLeadingZeros
4
7
  };