@vlrc-fe/components 2.7.0 → 2.8.0

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 (476) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/ConfirmModal.d.ts +2 -3
  3. package/dist/ConfirmModal.d.ts.map +1 -1
  4. package/dist/DataTable/components/DataTableFacetedFilter.d.ts.map +1 -1
  5. package/dist/DataTable/components/DataTablePagination.d.ts.map +1 -1
  6. package/dist/Dropdown/Dropdown.d.ts.map +1 -1
  7. package/dist/Dropdown/types.d.ts +1 -1
  8. package/dist/Dropdown/types.d.ts.map +1 -1
  9. package/dist/Form/FormDatePicker/FormDatePicker.d.ts.map +1 -1
  10. package/dist/Form/FormDatePicker/MonthPickerPanel.d.ts +2 -1
  11. package/dist/Form/FormDatePicker/MonthPickerPanel.d.ts.map +1 -1
  12. package/dist/Form/FormDatePicker/RangeDatePicker.d.ts +7 -1
  13. package/dist/Form/FormDatePicker/RangeDatePicker.d.ts.map +1 -1
  14. package/dist/Form/FormDatePicker/SingleDatePicker.d.ts +5 -1
  15. package/dist/Form/FormDatePicker/SingleDatePicker.d.ts.map +1 -1
  16. package/dist/Form/FormDatePicker/TimeInput.d.ts.map +1 -1
  17. package/dist/Form/FormDatePicker/TimePicker.d.ts.map +1 -1
  18. package/dist/Form/FormDatePicker/types.d.ts +5 -0
  19. package/dist/Form/FormDatePicker/types.d.ts.map +1 -1
  20. package/dist/Form/FormFileUpload/index.d.ts.map +1 -1
  21. package/dist/Form/FormNumberInput/useFormNumberInput.d.ts +2 -2
  22. package/dist/Form/FormNumberInput/useFormNumberInput.d.ts.map +1 -1
  23. package/dist/Form/FormSelect/FormSelect.d.ts.map +1 -1
  24. package/dist/Form/FormSelect/types.d.ts +1 -1
  25. package/dist/Form/FormSelect/types.d.ts.map +1 -1
  26. package/dist/Form/FormSelect/useFormSelect.d.ts +1 -1
  27. package/dist/Form/FormSelect/useFormSelect.d.ts.map +1 -1
  28. package/dist/MultiSelect/MultiSelect.d.ts +3 -31
  29. package/dist/MultiSelect/MultiSelect.d.ts.map +1 -1
  30. package/dist/MultiSelect/renderers.d.ts.map +1 -1
  31. package/dist/MultiSelect/type.d.ts +1 -0
  32. package/dist/MultiSelect/type.d.ts.map +1 -1
  33. package/dist/MultiSelect/useMultiSelect.d.ts.map +1 -1
  34. package/dist/Select/BaseSelect.d.ts.map +1 -1
  35. package/dist/Select/MultiSelectTags.d.ts.map +1 -1
  36. package/dist/Select/type.d.ts +1 -1
  37. package/dist/Select/type.d.ts.map +1 -1
  38. package/dist/Typography/Code.d.ts.map +1 -1
  39. package/dist/Typography/Link.d.ts.map +1 -1
  40. package/dist/Typography/Paragraph.d.ts.map +1 -1
  41. package/dist/Typography/Text.d.ts.map +1 -1
  42. package/dist/Typography/Title.d.ts.map +1 -1
  43. package/dist/Typography/types.d.ts +37 -1
  44. package/dist/Typography/types.d.ts.map +1 -1
  45. package/dist/Typography/utils.d.ts +3 -2
  46. package/dist/Typography/utils.d.ts.map +1 -1
  47. package/dist/assets/stylex.css +36 -24
  48. package/dist/index.cjs +1 -1
  49. package/dist/index.js +108 -108
  50. package/dist/index10.cjs +1 -1
  51. package/dist/index10.js +18 -55
  52. package/dist/index101.cjs +1 -1
  53. package/dist/index101.js +89 -89
  54. package/dist/index102.cjs +1 -1
  55. package/dist/index102.js +29 -29
  56. package/dist/index103.cjs +1 -1
  57. package/dist/index103.js +128 -124
  58. package/dist/index104.cjs +1 -1
  59. package/dist/index104.js +16 -16
  60. package/dist/index106.cjs +1 -1
  61. package/dist/index106.js +2 -2
  62. package/dist/index107.cjs +1 -1
  63. package/dist/index107.js +114 -117
  64. package/dist/index108.cjs +1 -1
  65. package/dist/index108.js +95 -92
  66. package/dist/index109.cjs +1 -1
  67. package/dist/index109.js +41 -41
  68. package/dist/index11.cjs +1 -1
  69. package/dist/index11.js +36 -164
  70. package/dist/index110.cjs +1 -1
  71. package/dist/index110.js +1 -1
  72. package/dist/index111.cjs +1 -1
  73. package/dist/index111.js +1 -1
  74. package/dist/index112.cjs +1 -1
  75. package/dist/index112.js +128 -120
  76. package/dist/index114.cjs +1 -1
  77. package/dist/index114.js +151 -151
  78. package/dist/index116.cjs +1 -1
  79. package/dist/index116.js +96 -91
  80. package/dist/index117.cjs +1 -1
  81. package/dist/index117.js +18 -18
  82. package/dist/index118.cjs +1 -1
  83. package/dist/index118.js +2 -2
  84. package/dist/index119.cjs +1 -1
  85. package/dist/index119.js +15 -15
  86. package/dist/index12.cjs +1 -1
  87. package/dist/index12.js +147 -103
  88. package/dist/index120.cjs +1 -1
  89. package/dist/index120.js +10 -10
  90. package/dist/index121.cjs +1 -1
  91. package/dist/index121.js +31 -31
  92. package/dist/index122.cjs +1 -1
  93. package/dist/index122.js +3 -3
  94. package/dist/index123.cjs +1 -1
  95. package/dist/index123.js +2 -2
  96. package/dist/index124.cjs +1 -1
  97. package/dist/index124.js +53 -49
  98. package/dist/index126.cjs +1 -1
  99. package/dist/index126.js +35 -38
  100. package/dist/index127.cjs +1 -1
  101. package/dist/index127.js +114 -107
  102. package/dist/index128.cjs +1 -1
  103. package/dist/index128.js +8 -8
  104. package/dist/index129.cjs +1 -1
  105. package/dist/index129.js +53 -53
  106. package/dist/index13.cjs +1 -1
  107. package/dist/index13.js +130 -102
  108. package/dist/index130.cjs +1 -1
  109. package/dist/index130.js +134 -130
  110. package/dist/index132.cjs +1 -1
  111. package/dist/index132.js +7 -7
  112. package/dist/index133.cjs +1 -1
  113. package/dist/index133.js +95 -95
  114. package/dist/index134.cjs +1 -1
  115. package/dist/index134.js +2 -2
  116. package/dist/index135.cjs +1 -1
  117. package/dist/index135.js +113 -99
  118. package/dist/index136.cjs +1 -1
  119. package/dist/index136.js +8 -8
  120. package/dist/index137.cjs +1 -1
  121. package/dist/index137.js +16 -16
  122. package/dist/index138.cjs +1 -1
  123. package/dist/index138.js +20 -20
  124. package/dist/index14.cjs +1 -1
  125. package/dist/index14.js +154 -80
  126. package/dist/index140.cjs +1 -1
  127. package/dist/index140.js +2 -2
  128. package/dist/index141.cjs +1 -1
  129. package/dist/index141.js +24 -24
  130. package/dist/index142.cjs +1 -1
  131. package/dist/index142.js +2 -2
  132. package/dist/index143.cjs +1 -1
  133. package/dist/index143.js +15 -15
  134. package/dist/index144.cjs +1 -1
  135. package/dist/index144.js +3 -3
  136. package/dist/index145.cjs +1 -1
  137. package/dist/index145.js +2 -2
  138. package/dist/index146.cjs +1 -1
  139. package/dist/index146.js +1 -1
  140. package/dist/index147.cjs +1 -1
  141. package/dist/index147.js +88 -88
  142. package/dist/index149.cjs +1 -1
  143. package/dist/index149.js +64 -64
  144. package/dist/index15.cjs +1 -1
  145. package/dist/index15.js +116 -63
  146. package/dist/index150.cjs +1 -1
  147. package/dist/index150.js +9 -9
  148. package/dist/index152.cjs +1 -1
  149. package/dist/index152.js +1 -1
  150. package/dist/index153.cjs +1 -1
  151. package/dist/index153.js +41 -41
  152. package/dist/index154.cjs +1 -1
  153. package/dist/index154.js +73 -73
  154. package/dist/index155.cjs +1 -1
  155. package/dist/index155.js +34 -34
  156. package/dist/index156.cjs +1 -1
  157. package/dist/index156.js +8 -8
  158. package/dist/index157.cjs +1 -1
  159. package/dist/index157.js +1 -1
  160. package/dist/index158.cjs +1 -1
  161. package/dist/index158.js +30 -30
  162. package/dist/index159.cjs +1 -1
  163. package/dist/index159.js +21 -21
  164. package/dist/index16.cjs +1 -1
  165. package/dist/index16.js +60 -91
  166. package/dist/index160.cjs +1 -1
  167. package/dist/index160.js +59 -59
  168. package/dist/index161.cjs +1 -1
  169. package/dist/index161.js +2 -2
  170. package/dist/index162.cjs +1 -1
  171. package/dist/index162.js +50 -50
  172. package/dist/index163.cjs +1 -1
  173. package/dist/index163.js +11 -11
  174. package/dist/index164.cjs +1 -1
  175. package/dist/index164.js +1 -1
  176. package/dist/index165.cjs +1 -1
  177. package/dist/index165.js +33 -33
  178. package/dist/index166.cjs +1 -1
  179. package/dist/index166.js +11 -11
  180. package/dist/index167.cjs +1 -1
  181. package/dist/index167.js +2 -2
  182. package/dist/index168.cjs +1 -1
  183. package/dist/index168.js +7 -7
  184. package/dist/index169.cjs +1 -1
  185. package/dist/index169.js +74 -65
  186. package/dist/index17.cjs +1 -1
  187. package/dist/index17.js +122 -15
  188. package/dist/index170.cjs +1 -1
  189. package/dist/index170.js +9 -9
  190. package/dist/index171.cjs +1 -1
  191. package/dist/index171.js +7 -7
  192. package/dist/index172.cjs +1 -1
  193. package/dist/index172.js +12 -12
  194. package/dist/index174.cjs +1 -1
  195. package/dist/index174.js +15 -15
  196. package/dist/index175.cjs +1 -1
  197. package/dist/index175.js +13 -13
  198. package/dist/index176.cjs +1 -1
  199. package/dist/index176.js +2 -2
  200. package/dist/index177.cjs +1 -1
  201. package/dist/index177.js +140 -115
  202. package/dist/index178.cjs +1 -1
  203. package/dist/index178.js +4 -4
  204. package/dist/index179.cjs +1 -1
  205. package/dist/index179.js +47 -47
  206. package/dist/index18.cjs +1 -1
  207. package/dist/index18.js +15 -268
  208. package/dist/index181.cjs +1 -1
  209. package/dist/index181.js +36 -25
  210. package/dist/index183.cjs +1 -1
  211. package/dist/index183.js +4 -4
  212. package/dist/index185.cjs +1 -1
  213. package/dist/index185.js +5 -8
  214. package/dist/index186.cjs +1 -1
  215. package/dist/index186.js +5 -15
  216. package/dist/index187.cjs +1 -1
  217. package/dist/index187.js +5 -20
  218. package/dist/index188.cjs +1 -1
  219. package/dist/index188.js +5 -16
  220. package/dist/index189.cjs +1 -1
  221. package/dist/index189.js +8 -5
  222. package/dist/index19.cjs +1 -1
  223. package/dist/index19.js +11 -281
  224. package/dist/index190.cjs +1 -1
  225. package/dist/index190.js +7 -4
  226. package/dist/index191.cjs +1 -1
  227. package/dist/index191.js +12 -6
  228. package/dist/index192.cjs +1 -1
  229. package/dist/index192.js +6 -5
  230. package/dist/index193.cjs +1 -1
  231. package/dist/index193.js +6 -5
  232. package/dist/index194.cjs +1 -1
  233. package/dist/index194.js +6 -7
  234. package/dist/index195.cjs +1 -1
  235. package/dist/index195.js +10 -68
  236. package/dist/index196.cjs +1 -1
  237. package/dist/index196.js +9 -10
  238. package/dist/index197.cjs +1 -1
  239. package/dist/index197.js +5 -201
  240. package/dist/index198.cjs +1 -1
  241. package/dist/index198.js +7 -123
  242. package/dist/index199.cjs +1 -1
  243. package/dist/index199.js +7 -31
  244. package/dist/index20.cjs +1 -1
  245. package/dist/index20.js +26 -11
  246. package/dist/index200.cjs +1 -1
  247. package/dist/index200.js +66 -17
  248. package/dist/index201.cjs +1 -1
  249. package/dist/index201.js +8 -68
  250. package/dist/index202.cjs +1 -1
  251. package/dist/index202.js +13 -13
  252. package/dist/index203.cjs +1 -1
  253. package/dist/index203.js +6 -6
  254. package/dist/index204.cjs +1 -1
  255. package/dist/index204.js +15 -278
  256. package/dist/index205.cjs +1 -1
  257. package/dist/index205.js +171 -126
  258. package/dist/index206.cjs +1 -1
  259. package/dist/index206.js +21 -19
  260. package/dist/index207.cjs +1 -1
  261. package/dist/index207.js +16 -8
  262. package/dist/index208.cjs +1 -1
  263. package/dist/index208.js +123 -13
  264. package/dist/index209.cjs +1 -1
  265. package/dist/index209.js +19 -7
  266. package/dist/index21.cjs +1 -1
  267. package/dist/index21.js +29 -26
  268. package/dist/index210.cjs +1 -1
  269. package/dist/index210.js +8 -6
  270. package/dist/index211.cjs +1 -1
  271. package/dist/index211.js +9 -9
  272. package/dist/index212.cjs +1 -1
  273. package/dist/index212.js +13 -8
  274. package/dist/index213.cjs +1 -1
  275. package/dist/index213.js +9 -4
  276. package/dist/index214.cjs +1 -1
  277. package/dist/index214.js +9 -6
  278. package/dist/index215.cjs +1 -1
  279. package/dist/index215.js +4 -6
  280. package/dist/index216.cjs +1 -1
  281. package/dist/index216.js +42 -9
  282. package/dist/index217.cjs +1 -1
  283. package/dist/index217.js +386 -8
  284. package/dist/index218.cjs +1 -1
  285. package/dist/index218.js +37 -14
  286. package/dist/index219.cjs +1 -1
  287. package/dist/index219.js +22 -10
  288. package/dist/index22.cjs +1 -1
  289. package/dist/index22.js +367 -59
  290. package/dist/index220.cjs +1 -1
  291. package/dist/index220.js +57 -9
  292. package/dist/index221.cjs +1 -1
  293. package/dist/index221.js +39 -4
  294. package/dist/index222.cjs +1 -1
  295. package/dist/index222.js +116 -35
  296. package/dist/index223.cjs +1 -1
  297. package/dist/index223.js +85 -387
  298. package/dist/index224.cjs +1 -1
  299. package/dist/index224.js +87 -35
  300. package/dist/index225.cjs +1 -1
  301. package/dist/index225.js +116 -18
  302. package/dist/index226.cjs +1 -1
  303. package/dist/index226.js +97 -55
  304. package/dist/index227.cjs +1 -1
  305. package/dist/index227.js +154 -37
  306. package/dist/index228.cjs +1 -1
  307. package/dist/index228.js +76 -121
  308. package/dist/index229.cjs +9 -1
  309. package/dist/index229.js +588 -77
  310. package/dist/index23.cjs +1 -1
  311. package/dist/index23.js +212 -29
  312. package/dist/index230.cjs +1 -1
  313. package/dist/index230.js +64 -68
  314. package/dist/index231.cjs +1 -1
  315. package/dist/index231.js +42 -115
  316. package/dist/index232.cjs +1 -1
  317. package/dist/index232.js +65 -98
  318. package/dist/index233.cjs +1 -1
  319. package/dist/index233.js +48 -149
  320. package/dist/index234.cjs +1 -1
  321. package/dist/index234.js +98 -68
  322. package/dist/index235.cjs +1 -9
  323. package/dist/index235.js +214 -580
  324. package/dist/index236.cjs +1 -1
  325. package/dist/index236.js +29 -66
  326. package/dist/index237.cjs +1 -1
  327. package/dist/index237.js +23 -40
  328. package/dist/index238.cjs +1 -1
  329. package/dist/index238.js +55 -59
  330. package/dist/index239.cjs +1 -1
  331. package/dist/index239.js +419 -46
  332. package/dist/index24.cjs +1 -1
  333. package/dist/index24.js +200 -312
  334. package/dist/index240.cjs +1 -1
  335. package/dist/index240.js +30 -97
  336. package/dist/index241.cjs +1 -1
  337. package/dist/index241.js +205 -196
  338. package/dist/index25.cjs +1 -1
  339. package/dist/index25.js +228 -124
  340. package/dist/index26.cjs +1 -1
  341. package/dist/index26.js +161 -86
  342. package/dist/index27.cjs +1 -1
  343. package/dist/index27.js +89 -143
  344. package/dist/index28.cjs +1 -1
  345. package/dist/index28.js +140 -76
  346. package/dist/index29.cjs +1 -1
  347. package/dist/index29.js +92 -84
  348. package/dist/index30.cjs +1 -1
  349. package/dist/index30.js +84 -26
  350. package/dist/index31.cjs +1 -1
  351. package/dist/index31.js +26 -35
  352. package/dist/index32.cjs +1 -1
  353. package/dist/index32.js +39 -86
  354. package/dist/index33.cjs +1 -1
  355. package/dist/index33.js +84 -231
  356. package/dist/index34.cjs +1 -1
  357. package/dist/index34.js +234 -44
  358. package/dist/index35.cjs +1 -1
  359. package/dist/index35.js +39 -26
  360. package/dist/index36.cjs +1 -1
  361. package/dist/index36.js +30 -14
  362. package/dist/index37.cjs +1 -1
  363. package/dist/index37.js +14 -13
  364. package/dist/index38.cjs +1 -1
  365. package/dist/index38.js +13 -3
  366. package/dist/index39.cjs +1 -1
  367. package/dist/index39.js +4 -87
  368. package/dist/index40.cjs +1 -1
  369. package/dist/index40.js +83 -174
  370. package/dist/index41.cjs +1 -1
  371. package/dist/index41.js +66 -142
  372. package/dist/index42.cjs +1 -1
  373. package/dist/index42.js +217 -62
  374. package/dist/index43.cjs +1 -1
  375. package/dist/index43.js +135 -47
  376. package/dist/index44.cjs +1 -1
  377. package/dist/index44.js +47 -260
  378. package/dist/index45.cjs +1 -1
  379. package/dist/index45.js +273 -8
  380. package/dist/index46.cjs +1 -1
  381. package/dist/index46.js +7 -4
  382. package/dist/index47.cjs +1 -1
  383. package/dist/index47.js +4 -503
  384. package/dist/index48.cjs +1 -1
  385. package/dist/index48.js +472 -177
  386. package/dist/index49.cjs +1 -1
  387. package/dist/index49.js +205 -23
  388. package/dist/index50.cjs +1 -1
  389. package/dist/index50.js +21 -1008
  390. package/dist/index51.cjs +1 -1
  391. package/dist/index51.js +1014 -21
  392. package/dist/index52.cjs +1 -1
  393. package/dist/index52.js +22 -207
  394. package/dist/index53.cjs +1 -1
  395. package/dist/index53.js +181 -130
  396. package/dist/index54.cjs +1 -1
  397. package/dist/index54.js +132 -99
  398. package/dist/index55.cjs +1 -1
  399. package/dist/index55.js +123 -19
  400. package/dist/index56.cjs +1 -1
  401. package/dist/index56.js +17 -79
  402. package/dist/index57.cjs +1 -1
  403. package/dist/index57.js +75 -90
  404. package/dist/index58.cjs +1 -1
  405. package/dist/index58.js +91 -9
  406. package/dist/index59.cjs +1 -1
  407. package/dist/index59.js +12 -91
  408. package/dist/index6.cjs +1 -1
  409. package/dist/index6.js +62 -5
  410. package/dist/index60.cjs +1 -1
  411. package/dist/index60.js +92 -31
  412. package/dist/index61.cjs +1 -1
  413. package/dist/index61.js +29 -208
  414. package/dist/index62.cjs +1 -1
  415. package/dist/index62.js +123 -99
  416. package/dist/index63.cjs +1 -1
  417. package/dist/index63.js +17 -17
  418. package/dist/index64.cjs +1 -1
  419. package/dist/index64.js +28 -28
  420. package/dist/index65.cjs +1 -1
  421. package/dist/index65.js +30 -30
  422. package/dist/index67.cjs +1 -1
  423. package/dist/index67.js +11 -11
  424. package/dist/index7.cjs +1 -1
  425. package/dist/index7.js +22 -28
  426. package/dist/index73.cjs +1 -1
  427. package/dist/index73.js +1 -1
  428. package/dist/index74.cjs +1 -1
  429. package/dist/index74.js +20 -20
  430. package/dist/index75.cjs +1 -1
  431. package/dist/index75.js +7 -7
  432. package/dist/index77.cjs +1 -1
  433. package/dist/index77.js +28 -28
  434. package/dist/index8.cjs +1 -1
  435. package/dist/index8.js +28 -61
  436. package/dist/index9.cjs +1 -1
  437. package/dist/index9.js +60 -15
  438. package/dist/ui/accordion.d.ts.map +1 -1
  439. package/dist/ui/avatar.d.ts.map +1 -1
  440. package/dist/ui/breadcrumb.d.ts.map +1 -1
  441. package/dist/ui/button.d.ts.map +1 -1
  442. package/dist/ui/calendar.d.ts +1 -1
  443. package/dist/ui/calendar.d.ts.map +1 -1
  444. package/dist/ui/command.d.ts +1 -1
  445. package/dist/ui/command.d.ts.map +1 -1
  446. package/dist/ui/context-menu.d.ts.map +1 -1
  447. package/dist/ui/dropdown-menu.d.ts.map +1 -1
  448. package/dist/ui/editable.d.ts.map +1 -1
  449. package/dist/ui/field.d.ts.map +1 -1
  450. package/dist/ui/form.d.ts.map +1 -1
  451. package/dist/ui/input-group.d.ts.map +1 -1
  452. package/dist/ui/input-otp.d.ts +1 -1
  453. package/dist/ui/input-otp.d.ts.map +1 -1
  454. package/dist/ui/item.d.ts.map +1 -1
  455. package/dist/ui/menubar.d.ts.map +1 -1
  456. package/dist/ui/pagination.d.ts +3 -1
  457. package/dist/ui/pagination.d.ts.map +1 -1
  458. package/dist/ui/toggle-group.d.ts +1 -1
  459. package/dist/ui/toggle-group.d.ts.map +1 -1
  460. package/dist/ui/toggle.d.ts +1 -1
  461. package/dist/ui/toggle.d.ts.map +1 -1
  462. package/dist/ui/useBreakpoint.d.ts +0 -4
  463. package/dist/ui/useBreakpoint.d.ts.map +1 -1
  464. package/package.json +1 -1
  465. package/dist/index242.cjs +0 -1
  466. package/dist/index242.js +0 -25
  467. package/dist/index243.cjs +0 -1
  468. package/dist/index243.js +0 -26
  469. package/dist/index244.cjs +0 -1
  470. package/dist/index244.js +0 -63
  471. package/dist/index245.cjs +0 -1
  472. package/dist/index245.js +0 -422
  473. package/dist/index246.cjs +0 -1
  474. package/dist/index246.js +0 -25
  475. package/dist/index247.cjs +0 -1
  476. package/dist/index247.js +0 -209
package/dist/index210.js CHANGED
@@ -1,7 +1,9 @@
1
- import e from "./index193.js";
2
- // ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfDay.js
3
- function t(t, n) {
4
- let r = e(t, n?.in);
5
- return r.setHours(0, 0, 0, 0), r;
1
+ import e from "./index187.js";
2
+ import t from "./index195.js";
3
+ import n from "./index199.js";
4
+ // ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getDayOfYear.js
5
+ function r(r, i) {
6
+ let a = e(r, i?.in);
7
+ return t(a, n(a)) + 1;
6
8
  }
7
- export { t as default, t as startOfDay };
9
+ export { r as default, r as getDayOfYear };
package/dist/index211.cjs CHANGED
@@ -1 +1 @@
1
- const e=require("./index189.cjs"),t=require("./index191.cjs"),n=require("./index209.cjs"),r=require("./index210.cjs");function i(i,a,o){let[s,c]=t.normalizeDates(o?.in,i,a),l=r.default(s),u=r.default(c),d=+l-n.getTimezoneOffsetInMilliseconds(l),f=+u-n.getTimezoneOffsetInMilliseconds(u);return Math.round((d-f)/e.millisecondsInDay)}exports.default=i,exports.differenceInCalendarDays=i;
1
+ const e=require("./index185.cjs"),t=require("./index187.cjs"),n=require("./index190.cjs"),r=require("./index196.cjs");function i(i,a){let o=t.default(i,a?.in),s=+n.default(o)-r.default(o);return Math.round(s/e.millisecondsInWeek)+1}exports.default=i,exports.getISOWeek=i;
package/dist/index211.js CHANGED
@@ -1,10 +1,10 @@
1
- import { millisecondsInDay as e } from "./index189.js";
2
- import { normalizeDates as t } from "./index191.js";
3
- import { getTimezoneOffsetInMilliseconds as n } from "./index209.js";
4
- import r from "./index210.js";
5
- // ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/differenceInCalendarDays.js
6
- function i(i, a, o) {
7
- let [s, c] = t(o?.in, i, a), l = r(s), u = r(c), d = +l - n(l), f = +u - n(u);
8
- return Math.round((d - f) / e);
1
+ import { millisecondsInWeek as e } from "./index185.js";
2
+ import t from "./index187.js";
3
+ import n from "./index190.js";
4
+ import r from "./index196.js";
5
+ // ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeek.js
6
+ function i(i, a) {
7
+ let o = t(i, a?.in), s = +n(o) - r(o);
8
+ return Math.round(s / e) + 1;
9
9
  }
10
- export { i as default, i as differenceInCalendarDays };
10
+ export { i as default, i as getISOWeek };
package/dist/index212.cjs CHANGED
@@ -1 +1 @@
1
- const e=require("./index190.cjs"),t=require("./index207.cjs"),n=require("./index208.cjs");function r(r,i){let a=n.default(r,i),o=e.constructFrom(i?.in||r,0);return o.setFullYear(a,0,4),o.setHours(0,0,0,0),t.default(o)}exports.default=r,exports.startOfISOWeekYear=r;
1
+ const e=require("./index186.cjs"),t=require("./index187.cjs"),n=require("./index188.cjs"),r=require("./index189.cjs");function i(i,a){let o=t.default(i,a?.in),s=o.getFullYear(),c=n.getDefaultOptions(),l=a?.firstWeekContainsDate??a?.locale?.options?.firstWeekContainsDate??c.firstWeekContainsDate??c.locale?.options?.firstWeekContainsDate??1,u=e.constructFrom(a?.in||i,0);u.setFullYear(s+1,0,l),u.setHours(0,0,0,0);let d=r.default(u,a),f=e.constructFrom(a?.in||i,0);f.setFullYear(s,0,l),f.setHours(0,0,0,0);let p=r.default(f,a);return+o>=+d?s+1:+o>=+p?s:s-1}exports.default=i,exports.getWeekYear=i;
package/dist/index212.js CHANGED
@@ -1,9 +1,14 @@
1
- import { constructFrom as e } from "./index190.js";
2
- import t from "./index207.js";
3
- import n from "./index208.js";
4
- // ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeekYear.js
5
- function r(r, i) {
6
- let a = n(r, i), o = e(i?.in || r, 0);
7
- return o.setFullYear(a, 0, 4), o.setHours(0, 0, 0, 0), t(o);
1
+ import { constructFrom as e } from "./index186.js";
2
+ import t from "./index187.js";
3
+ import { getDefaultOptions as n } from "./index188.js";
4
+ import r from "./index189.js";
5
+ // ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeekYear.js
6
+ function i(i, a) {
7
+ let o = t(i, a?.in), s = o.getFullYear(), c = n(), l = a?.firstWeekContainsDate ?? a?.locale?.options?.firstWeekContainsDate ?? c.firstWeekContainsDate ?? c.locale?.options?.firstWeekContainsDate ?? 1, u = e(a?.in || i, 0);
8
+ u.setFullYear(s + 1, 0, l), u.setHours(0, 0, 0, 0);
9
+ let d = r(u, a), f = e(a?.in || i, 0);
10
+ f.setFullYear(s, 0, l), f.setHours(0, 0, 0, 0);
11
+ let p = r(f, a);
12
+ return +o >= +d ? s + 1 : +o >= +p ? s : s - 1;
8
13
  }
9
- export { r as default, r as startOfISOWeekYear };
14
+ export { i as default, i as getWeekYear };
package/dist/index213.cjs CHANGED
@@ -1 +1 @@
1
- function e(e){return e instanceof Date||typeof e==`object`&&Object.prototype.toString.call(e)===`[object Date]`}exports.default=e,exports.isDate=e;
1
+ const e=require("./index186.cjs"),t=require("./index188.cjs"),n=require("./index189.cjs"),r=require("./index212.cjs");function i(i,a){let o=t.getDefaultOptions(),s=a?.firstWeekContainsDate??a?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,c=r.default(i,a),l=e.constructFrom(a?.in||i,0);return l.setFullYear(c,0,s),l.setHours(0,0,0,0),n.default(l,a)}exports.default=i,exports.startOfWeekYear=i;
package/dist/index213.js CHANGED
@@ -1,5 +1,10 @@
1
- // ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isDate.js
2
- function e(e) {
3
- return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
1
+ import { constructFrom as e } from "./index186.js";
2
+ import { getDefaultOptions as t } from "./index188.js";
3
+ import n from "./index189.js";
4
+ import r from "./index212.js";
5
+ // ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeekYear.js
6
+ function i(i, a) {
7
+ let o = t(), s = a?.firstWeekContainsDate ?? a?.locale?.options?.firstWeekContainsDate ?? o.firstWeekContainsDate ?? o.locale?.options?.firstWeekContainsDate ?? 1, c = r(i, a), l = e(a?.in || i, 0);
8
+ return l.setFullYear(c, 0, s), l.setHours(0, 0, 0, 0), n(l, a);
4
9
  }
5
- export { e as default, e as isDate };
10
+ export { i as default, i as startOfWeekYear };
package/dist/index214.cjs CHANGED
@@ -1 +1 @@
1
- const e=require("./index193.cjs"),t=require("./index213.cjs");function n(n){return!(!t.default(n)&&typeof n!=`number`||isNaN(+e.default(n)))}exports.default=n,exports.isValid=n;
1
+ const e=require("./index185.cjs"),t=require("./index187.cjs"),n=require("./index189.cjs"),r=require("./index213.cjs");function i(i,a){let o=t.default(i,a?.in),s=+n.default(o,a)-r.default(o,a);return Math.round(s/e.millisecondsInWeek)+1}exports.default=i,exports.getWeek=i;
package/dist/index214.js CHANGED
@@ -1,7 +1,10 @@
1
- import e from "./index193.js";
2
- import t from "./index213.js";
3
- // ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isValid.js
4
- function n(n) {
5
- return !(!t(n) && typeof n != "number" || isNaN(+e(n)));
1
+ import { millisecondsInWeek as e } from "./index185.js";
2
+ import t from "./index187.js";
3
+ import n from "./index189.js";
4
+ import r from "./index213.js";
5
+ // ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeek.js
6
+ function i(i, a) {
7
+ let o = t(i, a?.in), s = +n(o, a) - r(o, a);
8
+ return Math.round(s / e) + 1;
6
9
  }
7
- export { n as default, n as isValid };
10
+ export { i as default, i as getWeek };
package/dist/index215.cjs CHANGED
@@ -1 +1 @@
1
- const e=require("./index193.cjs");function t(t,n){let r=e.default(t,n?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}exports.default=t,exports.startOfYear=t;
1
+ function e(e,t){return(e<0?`-`:``)+Math.abs(e).toString().padStart(t,`0`)}exports.addLeadingZeros=e;
package/dist/index215.js CHANGED
@@ -1,7 +1,5 @@
1
- import e from "./index193.js";
2
- // ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfYear.js
3
- function t(t, n) {
4
- let r = e(t, n?.in);
5
- return r.setFullYear(r.getFullYear(), 0, 1), r.setHours(0, 0, 0, 0), r;
1
+ // ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/addLeadingZeros.js
2
+ function e(e, t) {
3
+ return (e < 0 ? "-" : "") + Math.abs(e).toString().padStart(t, "0");
6
4
  }
7
- export { t as default, t as startOfYear };
5
+ export { e as addLeadingZeros };
package/dist/index216.cjs CHANGED
@@ -1 +1 @@
1
- const e=require("./index193.cjs"),t=require("./index211.cjs"),n=require("./index215.cjs");function r(r,i){let a=e.default(r,i?.in);return t.default(a,n.default(a))+1}exports.default=r,exports.getDayOfYear=r;
1
+ const e=require("./index215.cjs");var t={y(t,n){let r=t.getFullYear(),i=r>0?r:1-r;return e.addLeadingZeros(n===`yy`?i%100:i,n.length)},M(t,n){let r=t.getMonth();return n===`M`?String(r+1):e.addLeadingZeros(r+1,2)},d(t,n){return e.addLeadingZeros(t.getDate(),n.length)},a(e,t){let n=e.getHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.toUpperCase();case`aaa`:return n;case`aaaaa`:return n[0];default:return n===`am`?`a.m.`:`p.m.`}},h(t,n){return e.addLeadingZeros(t.getHours()%12||12,n.length)},H(t,n){return e.addLeadingZeros(t.getHours(),n.length)},m(t,n){return e.addLeadingZeros(t.getMinutes(),n.length)},s(t,n){return e.addLeadingZeros(t.getSeconds(),n.length)},S(t,n){let r=n.length,i=t.getMilliseconds(),a=Math.trunc(i*10**(r-3));return e.addLeadingZeros(a,n.length)}};exports.lightFormatters=t;
package/dist/index216.js CHANGED
@@ -1,9 +1,42 @@
1
- import e from "./index193.js";
2
- import t from "./index211.js";
3
- import n from "./index215.js";
4
- // ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getDayOfYear.js
5
- function r(r, i) {
6
- let a = e(r, i?.in);
7
- return t(a, n(a)) + 1;
8
- }
9
- export { r as default, r as getDayOfYear };
1
+ import { addLeadingZeros as e } from "./index215.js";
2
+ // ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/lightFormatters.js
3
+ var t = {
4
+ y(t, n) {
5
+ let r = t.getFullYear(), i = r > 0 ? r : 1 - r;
6
+ return e(n === "yy" ? i % 100 : i, n.length);
7
+ },
8
+ M(t, n) {
9
+ let r = t.getMonth();
10
+ return n === "M" ? String(r + 1) : e(r + 1, 2);
11
+ },
12
+ d(t, n) {
13
+ return e(t.getDate(), n.length);
14
+ },
15
+ a(e, t) {
16
+ let n = e.getHours() / 12 >= 1 ? "pm" : "am";
17
+ switch (t) {
18
+ case "a":
19
+ case "aa": return n.toUpperCase();
20
+ case "aaa": return n;
21
+ case "aaaaa": return n[0];
22
+ default: return n === "am" ? "a.m." : "p.m.";
23
+ }
24
+ },
25
+ h(t, n) {
26
+ return e(t.getHours() % 12 || 12, n.length);
27
+ },
28
+ H(t, n) {
29
+ return e(t.getHours(), n.length);
30
+ },
31
+ m(t, n) {
32
+ return e(t.getMinutes(), n.length);
33
+ },
34
+ s(t, n) {
35
+ return e(t.getSeconds(), n.length);
36
+ },
37
+ S(t, n) {
38
+ let r = n.length, i = t.getMilliseconds(), a = Math.trunc(i * 10 ** (r - 3));
39
+ return e(a, n.length);
40
+ }
41
+ };
42
+ export { t as lightFormatters };
package/dist/index217.cjs CHANGED
@@ -1 +1 @@
1
- const e=require("./index189.cjs"),t=require("./index193.cjs"),n=require("./index207.cjs"),r=require("./index212.cjs");function i(i,a){let o=t.default(i,a?.in),s=+n.default(o)-r.default(o);return Math.round(s/e.millisecondsInWeek)+1}exports.default=i,exports.getISOWeek=i;
1
+ const e=require("./index191.cjs"),t=require("./index210.cjs"),n=require("./index211.cjs"),r=require("./index212.cjs"),i=require("./index214.cjs"),a=require("./index215.cjs"),o=require("./index216.cjs");var s={am:`am`,pm:`pm`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},c={G:function(e,t,n){let r=+(e.getFullYear()>0);switch(t){case`G`:case`GG`:case`GGG`:return n.era(r,{width:`abbreviated`});case`GGGGG`:return n.era(r,{width:`narrow`});default:return n.era(r,{width:`wide`})}},y:function(e,t,n){if(t===`yo`){let t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:`year`})}return o.lightFormatters.y(e,t)},Y:function(e,t,n,i){let o=r.default(e,i),s=o>0?o:1-o;if(t===`YY`){let e=s%100;return a.addLeadingZeros(e,2)}return t===`Yo`?n.ordinalNumber(s,{unit:`year`}):a.addLeadingZeros(s,t.length)},R:function(t,n){let r=e.default(t);return a.addLeadingZeros(r,n.length)},u:function(e,t){let n=e.getFullYear();return a.addLeadingZeros(n,t.length)},Q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case`Q`:return String(r);case`QQ`:return a.addLeadingZeros(r,2);case`Qo`:return n.ordinalNumber(r,{unit:`quarter`});case`QQQ`:return n.quarter(r,{width:`abbreviated`,context:`formatting`});case`QQQQQ`:return n.quarter(r,{width:`narrow`,context:`formatting`});default:return n.quarter(r,{width:`wide`,context:`formatting`})}},q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case`q`:return String(r);case`qq`:return a.addLeadingZeros(r,2);case`qo`:return n.ordinalNumber(r,{unit:`quarter`});case`qqq`:return n.quarter(r,{width:`abbreviated`,context:`standalone`});case`qqqqq`:return n.quarter(r,{width:`narrow`,context:`standalone`});default:return n.quarter(r,{width:`wide`,context:`standalone`})}},M:function(e,t,n){let r=e.getMonth();switch(t){case`M`:case`MM`:return o.lightFormatters.M(e,t);case`Mo`:return n.ordinalNumber(r+1,{unit:`month`});case`MMM`:return n.month(r,{width:`abbreviated`,context:`formatting`});case`MMMMM`:return n.month(r,{width:`narrow`,context:`formatting`});default:return n.month(r,{width:`wide`,context:`formatting`})}},L:function(e,t,n){let r=e.getMonth();switch(t){case`L`:return String(r+1);case`LL`:return a.addLeadingZeros(r+1,2);case`Lo`:return n.ordinalNumber(r+1,{unit:`month`});case`LLL`:return n.month(r,{width:`abbreviated`,context:`standalone`});case`LLLLL`:return n.month(r,{width:`narrow`,context:`standalone`});default:return n.month(r,{width:`wide`,context:`standalone`})}},w:function(e,t,n,r){let o=i.default(e,r);return t===`wo`?n.ordinalNumber(o,{unit:`week`}):a.addLeadingZeros(o,t.length)},I:function(e,t,r){let i=n.default(e);return t===`Io`?r.ordinalNumber(i,{unit:`week`}):a.addLeadingZeros(i,t.length)},d:function(e,t,n){return t===`do`?n.ordinalNumber(e.getDate(),{unit:`date`}):o.lightFormatters.d(e,t)},D:function(e,n,r){let i=t.default(e);return n===`Do`?r.ordinalNumber(i,{unit:`dayOfYear`}):a.addLeadingZeros(i,n.length)},E:function(e,t,n){let r=e.getDay();switch(t){case`E`:case`EE`:case`EEE`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`EEEEE`:return n.day(r,{width:`narrow`,context:`formatting`});case`EEEEEE`:return n.day(r,{width:`short`,context:`formatting`});default:return n.day(r,{width:`wide`,context:`formatting`})}},e:function(e,t,n,r){let i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case`e`:return String(o);case`ee`:return a.addLeadingZeros(o,2);case`eo`:return n.ordinalNumber(o,{unit:`day`});case`eee`:return n.day(i,{width:`abbreviated`,context:`formatting`});case`eeeee`:return n.day(i,{width:`narrow`,context:`formatting`});case`eeeeee`:return n.day(i,{width:`short`,context:`formatting`});default:return n.day(i,{width:`wide`,context:`formatting`})}},c:function(e,t,n,r){let i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case`c`:return String(o);case`cc`:return a.addLeadingZeros(o,t.length);case`co`:return n.ordinalNumber(o,{unit:`day`});case`ccc`:return n.day(i,{width:`abbreviated`,context:`standalone`});case`ccccc`:return n.day(i,{width:`narrow`,context:`standalone`});case`cccccc`:return n.day(i,{width:`short`,context:`standalone`});default:return n.day(i,{width:`wide`,context:`standalone`})}},i:function(e,t,n){let r=e.getDay(),i=r===0?7:r;switch(t){case`i`:return String(i);case`ii`:return a.addLeadingZeros(i,t.length);case`io`:return n.ordinalNumber(i,{unit:`day`});case`iii`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`iiiii`:return n.day(r,{width:`narrow`,context:`formatting`});case`iiiiii`:return n.day(r,{width:`short`,context:`formatting`});default:return n.day(r,{width:`wide`,context:`formatting`})}},a:function(e,t,n){let r=e.getHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`});case`aaa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`aaaaa`:return n.dayPeriod(r,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(r,{width:`wide`,context:`formatting`})}},b:function(e,t,n){let r=e.getHours(),i;switch(i=r===12?s.noon:r===0?s.midnight:r/12>=1?`pm`:`am`,t){case`b`:case`bb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`bbb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`bbbbb`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},B:function(e,t,n){let r=e.getHours(),i;switch(i=r>=17?s.evening:r>=12?s.afternoon:r>=4?s.morning:s.night,t){case`B`:case`BB`:case`BBB`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`BBBBB`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},h:function(e,t,n){if(t===`ho`){let t=e.getHours()%12;return t===0&&(t=12),n.ordinalNumber(t,{unit:`hour`})}return o.lightFormatters.h(e,t)},H:function(e,t,n){return t===`Ho`?n.ordinalNumber(e.getHours(),{unit:`hour`}):o.lightFormatters.H(e,t)},K:function(e,t,n){let r=e.getHours()%12;return t===`Ko`?n.ordinalNumber(r,{unit:`hour`}):a.addLeadingZeros(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t===`ko`?n.ordinalNumber(r,{unit:`hour`}):a.addLeadingZeros(r,t.length)},m:function(e,t,n){return t===`mo`?n.ordinalNumber(e.getMinutes(),{unit:`minute`}):o.lightFormatters.m(e,t)},s:function(e,t,n){return t===`so`?n.ordinalNumber(e.getSeconds(),{unit:`second`}):o.lightFormatters.s(e,t)},S:function(e,t){return o.lightFormatters.S(e,t)},X:function(e,t,n){let r=e.getTimezoneOffset();if(r===0)return`Z`;switch(t){case`X`:return u(r);case`XXXX`:case`XX`:return d(r);default:return d(r,`:`)}},x:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`x`:return u(r);case`xxxx`:case`xx`:return d(r);default:return d(r,`:`)}},O:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`O`:case`OO`:case`OOO`:return`GMT`+l(r,`:`);default:return`GMT`+d(r,`:`)}},z:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`z`:case`zz`:case`zzz`:return`GMT`+l(r,`:`);default:return`GMT`+d(r,`:`)}},t:function(e,t,n){let r=Math.trunc(e/1e3);return a.addLeadingZeros(r,t.length)},T:function(e,t,n){return a.addLeadingZeros(+e,t.length)}};function l(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return o===0?n+String(i):n+String(i)+t+a.addLeadingZeros(o,2)}function u(e,t){return e%60==0?(e>0?`-`:`+`)+a.addLeadingZeros(Math.abs(e)/60,2):d(e,t)}function d(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=a.addLeadingZeros(Math.trunc(r/60),2),o=a.addLeadingZeros(r%60,2);return n+i+t+o}exports.formatters=c;
package/dist/index217.js CHANGED
@@ -1,10 +1,388 @@
1
- import { millisecondsInWeek as e } from "./index189.js";
2
- import t from "./index193.js";
3
- import n from "./index207.js";
1
+ import e from "./index191.js";
2
+ import t from "./index210.js";
3
+ import n from "./index211.js";
4
4
  import r from "./index212.js";
5
- // ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeek.js
6
- function i(i, a) {
7
- let o = t(i, a?.in), s = +n(o) - r(o);
8
- return Math.round(s / e) + 1;
5
+ import i from "./index214.js";
6
+ import { addLeadingZeros as a } from "./index215.js";
7
+ import { lightFormatters as o } from "./index216.js";
8
+ // ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/formatters.js
9
+ var s = {
10
+ am: "am",
11
+ pm: "pm",
12
+ midnight: "midnight",
13
+ noon: "noon",
14
+ morning: "morning",
15
+ afternoon: "afternoon",
16
+ evening: "evening",
17
+ night: "night"
18
+ }, c = {
19
+ G: function(e, t, n) {
20
+ let r = +(e.getFullYear() > 0);
21
+ switch (t) {
22
+ case "G":
23
+ case "GG":
24
+ case "GGG": return n.era(r, { width: "abbreviated" });
25
+ case "GGGGG": return n.era(r, { width: "narrow" });
26
+ default: return n.era(r, { width: "wide" });
27
+ }
28
+ },
29
+ y: function(e, t, n) {
30
+ if (t === "yo") {
31
+ let t = e.getFullYear(), r = t > 0 ? t : 1 - t;
32
+ return n.ordinalNumber(r, { unit: "year" });
33
+ }
34
+ return o.y(e, t);
35
+ },
36
+ Y: function(e, t, n, i) {
37
+ let o = r(e, i), s = o > 0 ? o : 1 - o;
38
+ if (t === "YY") {
39
+ let e = s % 100;
40
+ return a(e, 2);
41
+ }
42
+ return t === "Yo" ? n.ordinalNumber(s, { unit: "year" }) : a(s, t.length);
43
+ },
44
+ R: function(t, n) {
45
+ let r = e(t);
46
+ return a(r, n.length);
47
+ },
48
+ u: function(e, t) {
49
+ let n = e.getFullYear();
50
+ return a(n, t.length);
51
+ },
52
+ Q: function(e, t, n) {
53
+ let r = Math.ceil((e.getMonth() + 1) / 3);
54
+ switch (t) {
55
+ case "Q": return String(r);
56
+ case "QQ": return a(r, 2);
57
+ case "Qo": return n.ordinalNumber(r, { unit: "quarter" });
58
+ case "QQQ": return n.quarter(r, {
59
+ width: "abbreviated",
60
+ context: "formatting"
61
+ });
62
+ case "QQQQQ": return n.quarter(r, {
63
+ width: "narrow",
64
+ context: "formatting"
65
+ });
66
+ default: return n.quarter(r, {
67
+ width: "wide",
68
+ context: "formatting"
69
+ });
70
+ }
71
+ },
72
+ q: function(e, t, n) {
73
+ let r = Math.ceil((e.getMonth() + 1) / 3);
74
+ switch (t) {
75
+ case "q": return String(r);
76
+ case "qq": return a(r, 2);
77
+ case "qo": return n.ordinalNumber(r, { unit: "quarter" });
78
+ case "qqq": return n.quarter(r, {
79
+ width: "abbreviated",
80
+ context: "standalone"
81
+ });
82
+ case "qqqqq": return n.quarter(r, {
83
+ width: "narrow",
84
+ context: "standalone"
85
+ });
86
+ default: return n.quarter(r, {
87
+ width: "wide",
88
+ context: "standalone"
89
+ });
90
+ }
91
+ },
92
+ M: function(e, t, n) {
93
+ let r = e.getMonth();
94
+ switch (t) {
95
+ case "M":
96
+ case "MM": return o.M(e, t);
97
+ case "Mo": return n.ordinalNumber(r + 1, { unit: "month" });
98
+ case "MMM": return n.month(r, {
99
+ width: "abbreviated",
100
+ context: "formatting"
101
+ });
102
+ case "MMMMM": return n.month(r, {
103
+ width: "narrow",
104
+ context: "formatting"
105
+ });
106
+ default: return n.month(r, {
107
+ width: "wide",
108
+ context: "formatting"
109
+ });
110
+ }
111
+ },
112
+ L: function(e, t, n) {
113
+ let r = e.getMonth();
114
+ switch (t) {
115
+ case "L": return String(r + 1);
116
+ case "LL": return a(r + 1, 2);
117
+ case "Lo": return n.ordinalNumber(r + 1, { unit: "month" });
118
+ case "LLL": return n.month(r, {
119
+ width: "abbreviated",
120
+ context: "standalone"
121
+ });
122
+ case "LLLLL": return n.month(r, {
123
+ width: "narrow",
124
+ context: "standalone"
125
+ });
126
+ default: return n.month(r, {
127
+ width: "wide",
128
+ context: "standalone"
129
+ });
130
+ }
131
+ },
132
+ w: function(e, t, n, r) {
133
+ let o = i(e, r);
134
+ return t === "wo" ? n.ordinalNumber(o, { unit: "week" }) : a(o, t.length);
135
+ },
136
+ I: function(e, t, r) {
137
+ let i = n(e);
138
+ return t === "Io" ? r.ordinalNumber(i, { unit: "week" }) : a(i, t.length);
139
+ },
140
+ d: function(e, t, n) {
141
+ return t === "do" ? n.ordinalNumber(e.getDate(), { unit: "date" }) : o.d(e, t);
142
+ },
143
+ D: function(e, n, r) {
144
+ let i = t(e);
145
+ return n === "Do" ? r.ordinalNumber(i, { unit: "dayOfYear" }) : a(i, n.length);
146
+ },
147
+ E: function(e, t, n) {
148
+ let r = e.getDay();
149
+ switch (t) {
150
+ case "E":
151
+ case "EE":
152
+ case "EEE": return n.day(r, {
153
+ width: "abbreviated",
154
+ context: "formatting"
155
+ });
156
+ case "EEEEE": return n.day(r, {
157
+ width: "narrow",
158
+ context: "formatting"
159
+ });
160
+ case "EEEEEE": return n.day(r, {
161
+ width: "short",
162
+ context: "formatting"
163
+ });
164
+ default: return n.day(r, {
165
+ width: "wide",
166
+ context: "formatting"
167
+ });
168
+ }
169
+ },
170
+ e: function(e, t, n, r) {
171
+ let i = e.getDay(), o = (i - r.weekStartsOn + 8) % 7 || 7;
172
+ switch (t) {
173
+ case "e": return String(o);
174
+ case "ee": return a(o, 2);
175
+ case "eo": return n.ordinalNumber(o, { unit: "day" });
176
+ case "eee": return n.day(i, {
177
+ width: "abbreviated",
178
+ context: "formatting"
179
+ });
180
+ case "eeeee": return n.day(i, {
181
+ width: "narrow",
182
+ context: "formatting"
183
+ });
184
+ case "eeeeee": return n.day(i, {
185
+ width: "short",
186
+ context: "formatting"
187
+ });
188
+ default: return n.day(i, {
189
+ width: "wide",
190
+ context: "formatting"
191
+ });
192
+ }
193
+ },
194
+ c: function(e, t, n, r) {
195
+ let i = e.getDay(), o = (i - r.weekStartsOn + 8) % 7 || 7;
196
+ switch (t) {
197
+ case "c": return String(o);
198
+ case "cc": return a(o, t.length);
199
+ case "co": return n.ordinalNumber(o, { unit: "day" });
200
+ case "ccc": return n.day(i, {
201
+ width: "abbreviated",
202
+ context: "standalone"
203
+ });
204
+ case "ccccc": return n.day(i, {
205
+ width: "narrow",
206
+ context: "standalone"
207
+ });
208
+ case "cccccc": return n.day(i, {
209
+ width: "short",
210
+ context: "standalone"
211
+ });
212
+ default: return n.day(i, {
213
+ width: "wide",
214
+ context: "standalone"
215
+ });
216
+ }
217
+ },
218
+ i: function(e, t, n) {
219
+ let r = e.getDay(), i = r === 0 ? 7 : r;
220
+ switch (t) {
221
+ case "i": return String(i);
222
+ case "ii": return a(i, t.length);
223
+ case "io": return n.ordinalNumber(i, { unit: "day" });
224
+ case "iii": return n.day(r, {
225
+ width: "abbreviated",
226
+ context: "formatting"
227
+ });
228
+ case "iiiii": return n.day(r, {
229
+ width: "narrow",
230
+ context: "formatting"
231
+ });
232
+ case "iiiiii": return n.day(r, {
233
+ width: "short",
234
+ context: "formatting"
235
+ });
236
+ default: return n.day(r, {
237
+ width: "wide",
238
+ context: "formatting"
239
+ });
240
+ }
241
+ },
242
+ a: function(e, t, n) {
243
+ let r = e.getHours() / 12 >= 1 ? "pm" : "am";
244
+ switch (t) {
245
+ case "a":
246
+ case "aa": return n.dayPeriod(r, {
247
+ width: "abbreviated",
248
+ context: "formatting"
249
+ });
250
+ case "aaa": return n.dayPeriod(r, {
251
+ width: "abbreviated",
252
+ context: "formatting"
253
+ }).toLowerCase();
254
+ case "aaaaa": return n.dayPeriod(r, {
255
+ width: "narrow",
256
+ context: "formatting"
257
+ });
258
+ default: return n.dayPeriod(r, {
259
+ width: "wide",
260
+ context: "formatting"
261
+ });
262
+ }
263
+ },
264
+ b: function(e, t, n) {
265
+ let r = e.getHours(), i;
266
+ switch (i = r === 12 ? s.noon : r === 0 ? s.midnight : r / 12 >= 1 ? "pm" : "am", t) {
267
+ case "b":
268
+ case "bb": return n.dayPeriod(i, {
269
+ width: "abbreviated",
270
+ context: "formatting"
271
+ });
272
+ case "bbb": return n.dayPeriod(i, {
273
+ width: "abbreviated",
274
+ context: "formatting"
275
+ }).toLowerCase();
276
+ case "bbbbb": return n.dayPeriod(i, {
277
+ width: "narrow",
278
+ context: "formatting"
279
+ });
280
+ default: return n.dayPeriod(i, {
281
+ width: "wide",
282
+ context: "formatting"
283
+ });
284
+ }
285
+ },
286
+ B: function(e, t, n) {
287
+ let r = e.getHours(), i;
288
+ switch (i = r >= 17 ? s.evening : r >= 12 ? s.afternoon : r >= 4 ? s.morning : s.night, t) {
289
+ case "B":
290
+ case "BB":
291
+ case "BBB": return n.dayPeriod(i, {
292
+ width: "abbreviated",
293
+ context: "formatting"
294
+ });
295
+ case "BBBBB": return n.dayPeriod(i, {
296
+ width: "narrow",
297
+ context: "formatting"
298
+ });
299
+ default: return n.dayPeriod(i, {
300
+ width: "wide",
301
+ context: "formatting"
302
+ });
303
+ }
304
+ },
305
+ h: function(e, t, n) {
306
+ if (t === "ho") {
307
+ let t = e.getHours() % 12;
308
+ return t === 0 && (t = 12), n.ordinalNumber(t, { unit: "hour" });
309
+ }
310
+ return o.h(e, t);
311
+ },
312
+ H: function(e, t, n) {
313
+ return t === "Ho" ? n.ordinalNumber(e.getHours(), { unit: "hour" }) : o.H(e, t);
314
+ },
315
+ K: function(e, t, n) {
316
+ let r = e.getHours() % 12;
317
+ return t === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) : a(r, t.length);
318
+ },
319
+ k: function(e, t, n) {
320
+ let r = e.getHours();
321
+ return r === 0 && (r = 24), t === "ko" ? n.ordinalNumber(r, { unit: "hour" }) : a(r, t.length);
322
+ },
323
+ m: function(e, t, n) {
324
+ return t === "mo" ? n.ordinalNumber(e.getMinutes(), { unit: "minute" }) : o.m(e, t);
325
+ },
326
+ s: function(e, t, n) {
327
+ return t === "so" ? n.ordinalNumber(e.getSeconds(), { unit: "second" }) : o.s(e, t);
328
+ },
329
+ S: function(e, t) {
330
+ return o.S(e, t);
331
+ },
332
+ X: function(e, t, n) {
333
+ let r = e.getTimezoneOffset();
334
+ if (r === 0) return "Z";
335
+ switch (t) {
336
+ case "X": return u(r);
337
+ case "XXXX":
338
+ case "XX": return d(r);
339
+ default: return d(r, ":");
340
+ }
341
+ },
342
+ x: function(e, t, n) {
343
+ let r = e.getTimezoneOffset();
344
+ switch (t) {
345
+ case "x": return u(r);
346
+ case "xxxx":
347
+ case "xx": return d(r);
348
+ default: return d(r, ":");
349
+ }
350
+ },
351
+ O: function(e, t, n) {
352
+ let r = e.getTimezoneOffset();
353
+ switch (t) {
354
+ case "O":
355
+ case "OO":
356
+ case "OOO": return "GMT" + l(r, ":");
357
+ default: return "GMT" + d(r, ":");
358
+ }
359
+ },
360
+ z: function(e, t, n) {
361
+ let r = e.getTimezoneOffset();
362
+ switch (t) {
363
+ case "z":
364
+ case "zz":
365
+ case "zzz": return "GMT" + l(r, ":");
366
+ default: return "GMT" + d(r, ":");
367
+ }
368
+ },
369
+ t: function(e, t, n) {
370
+ let r = Math.trunc(e / 1e3);
371
+ return a(r, t.length);
372
+ },
373
+ T: function(e, t, n) {
374
+ return a(+e, t.length);
375
+ }
376
+ };
377
+ function l(e, t = "") {
378
+ let n = e > 0 ? "-" : "+", r = Math.abs(e), i = Math.trunc(r / 60), o = r % 60;
379
+ return o === 0 ? n + String(i) : n + String(i) + t + a(o, 2);
9
380
  }
10
- export { i as default, i as getISOWeek };
381
+ function u(e, t) {
382
+ return e % 60 == 0 ? (e > 0 ? "-" : "+") + a(Math.abs(e) / 60, 2) : d(e, t);
383
+ }
384
+ function d(e, t = "") {
385
+ let n = e > 0 ? "-" : "+", r = Math.abs(e), i = a(Math.trunc(r / 60), 2), o = a(r % 60, 2);
386
+ return n + i + t + o;
387
+ }
388
+ export { c as formatters };
package/dist/index218.cjs CHANGED
@@ -1 +1 @@
1
- const e=require("./index190.cjs"),t=require("./index192.cjs"),n=require("./index193.cjs"),r=require("./index194.cjs");function i(i,a){let o=n.default(i,a?.in),s=o.getFullYear(),c=t.getDefaultOptions(),l=a?.firstWeekContainsDate??a?.locale?.options?.firstWeekContainsDate??c.firstWeekContainsDate??c.locale?.options?.firstWeekContainsDate??1,u=e.constructFrom(a?.in||i,0);u.setFullYear(s+1,0,l),u.setHours(0,0,0,0);let d=r.default(u,a),f=e.constructFrom(a?.in||i,0);f.setFullYear(s,0,l),f.setHours(0,0,0,0);let p=r.default(f,a);return+o>=+d?s+1:+o>=+p?s:s-1}exports.default=i,exports.getWeekYear=i;
1
+ var e=(e,t)=>{switch(e){case`P`:return t.date({width:`short`});case`PP`:return t.date({width:`medium`});case`PPP`:return t.date({width:`long`});default:return t.date({width:`full`})}},t=(e,t)=>{switch(e){case`p`:return t.time({width:`short`});case`pp`:return t.time({width:`medium`});case`ppp`:return t.time({width:`long`});default:return t.time({width:`full`})}},n={p:t,P:(n,r)=>{let i=n.match(/(P+)(p+)?/)||[],a=i[1],o=i[2];if(!o)return e(n,r);let s;switch(a){case`P`:s=r.dateTime({width:`short`});break;case`PP`:s=r.dateTime({width:`medium`});break;case`PPP`:s=r.dateTime({width:`long`});break;default:s=r.dateTime({width:`full`})}return s.replace(`{{date}}`,e(a,r)).replace(`{{time}}`,t(o,r))}};exports.longFormatters=n;