@rpcbase/ui 0.173.0 → 0.174.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 (511) hide show
  1. package/dist/components/DayPickerField/index.d.ts.map +1 -1
  2. package/dist/index10.js +1 -1
  3. package/dist/index100.js +5 -4
  4. package/dist/index100.js.map +1 -1
  5. package/dist/index101.js +4 -6
  6. package/dist/index101.js.map +1 -1
  7. package/dist/index102.js +4 -145
  8. package/dist/index102.js.map +1 -1
  9. package/dist/index103.js +6 -39
  10. package/dist/index103.js.map +1 -1
  11. package/dist/index104.js +145 -4
  12. package/dist/index104.js.map +1 -1
  13. package/dist/index105.js +38 -6
  14. package/dist/index105.js.map +1 -1
  15. package/dist/index106.js +4 -13
  16. package/dist/index106.js.map +1 -1
  17. package/dist/index107.js +7 -13
  18. package/dist/index107.js.map +1 -1
  19. package/dist/index108.js +12 -6
  20. package/dist/index108.js.map +1 -1
  21. package/dist/index109.js +13 -31
  22. package/dist/index109.js.map +1 -1
  23. package/dist/index11.js +299 -281
  24. package/dist/index11.js.map +1 -1
  25. package/dist/index110.js +7 -10
  26. package/dist/index110.js.map +1 -1
  27. package/dist/index111.js +31 -10
  28. package/dist/index111.js.map +1 -1
  29. package/dist/index112.js +10 -8
  30. package/dist/index112.js.map +1 -1
  31. package/dist/index113.js +9 -12
  32. package/dist/index113.js.map +1 -1
  33. package/dist/index114.js +8 -101
  34. package/dist/index114.js.map +1 -1
  35. package/dist/index115.js +14 -20
  36. package/dist/index115.js.map +1 -1
  37. package/dist/index116.js +99 -51
  38. package/dist/index116.js.map +1 -1
  39. package/dist/index117.js +20 -73
  40. package/dist/index117.js.map +1 -1
  41. package/dist/index118.js +53 -9
  42. package/dist/index118.js.map +1 -1
  43. package/dist/index119.js +69 -17
  44. package/dist/index119.js.map +1 -1
  45. package/dist/index12.js +1 -1
  46. package/dist/index120.js +9 -16
  47. package/dist/index120.js.map +1 -1
  48. package/dist/index121.js +20 -23
  49. package/dist/index121.js.map +1 -1
  50. package/dist/index122.js +16 -6
  51. package/dist/index122.js.map +1 -1
  52. package/dist/index123.js +23 -5
  53. package/dist/index123.js.map +1 -1
  54. package/dist/index124.js +6 -23
  55. package/dist/index124.js.map +1 -1
  56. package/dist/index125.js +6 -35
  57. package/dist/index125.js.map +1 -1
  58. package/dist/index126.js +24 -16
  59. package/dist/index126.js.map +1 -1
  60. package/dist/index127.js +35 -7
  61. package/dist/index127.js.map +1 -1
  62. package/dist/index128.js +16 -5
  63. package/dist/index128.js.map +1 -1
  64. package/dist/index129.js +6 -4
  65. package/dist/index129.js.map +1 -1
  66. package/dist/index13.js +2 -2
  67. package/dist/index130.js +4 -4
  68. package/dist/index130.js.map +1 -1
  69. package/dist/index131.js +4 -4
  70. package/dist/index131.js.map +1 -1
  71. package/dist/index132.js +4 -3
  72. package/dist/index132.js.map +1 -1
  73. package/dist/index133.js +4 -6
  74. package/dist/index133.js.map +1 -1
  75. package/dist/index134.js +4 -24
  76. package/dist/index134.js.map +1 -1
  77. package/dist/index135.js +6 -7
  78. package/dist/index135.js.map +1 -1
  79. package/dist/index136.js +24 -7
  80. package/dist/index136.js.map +1 -1
  81. package/dist/index137.js +7 -5
  82. package/dist/index137.js.map +1 -1
  83. package/dist/index138.js +6 -3
  84. package/dist/index138.js.map +1 -1
  85. package/dist/index139.js +5 -3
  86. package/dist/index139.js.map +1 -1
  87. package/dist/index14.js +4 -4
  88. package/dist/index140.js +3 -4
  89. package/dist/index140.js.map +1 -1
  90. package/dist/index141.js +3 -3
  91. package/dist/index141.js.map +1 -1
  92. package/dist/index142.js +4 -4
  93. package/dist/index142.js.map +1 -1
  94. package/dist/index143.js +3 -3
  95. package/dist/index143.js.map +1 -1
  96. package/dist/index144.js +4 -3
  97. package/dist/index144.js.map +1 -1
  98. package/dist/index145.js +3 -3
  99. package/dist/index145.js.map +1 -1
  100. package/dist/index146.js +3 -46
  101. package/dist/index146.js.map +1 -1
  102. package/dist/index147.js +3 -5
  103. package/dist/index147.js.map +1 -1
  104. package/dist/index148.js +40 -62
  105. package/dist/index148.js.map +1 -1
  106. package/dist/index149.js +47 -2
  107. package/dist/index149.js.map +1 -1
  108. package/dist/index15.js +1 -1
  109. package/dist/index150.js +199 -357
  110. package/dist/index150.js.map +1 -1
  111. package/dist/index151.js +22 -262
  112. package/dist/index151.js.map +1 -1
  113. package/dist/index152.js +24 -60
  114. package/dist/index152.js.map +1 -1
  115. package/dist/index153.js +396 -43
  116. package/dist/index153.js.map +1 -1
  117. package/dist/index154.js +5 -169
  118. package/dist/index154.js.map +1 -1
  119. package/dist/index155.js +61 -102
  120. package/dist/index155.js.map +1 -1
  121. package/dist/index156.js +2 -25
  122. package/dist/index156.js.map +1 -1
  123. package/dist/index157.js +364 -8
  124. package/dist/index157.js.map +1 -1
  125. package/dist/index158.js +261 -4
  126. package/dist/index158.js.map +1 -1
  127. package/dist/index159.js +60 -5
  128. package/dist/index159.js.map +1 -1
  129. package/dist/index16.js +1 -1
  130. package/dist/index160.js +46 -4
  131. package/dist/index160.js.map +1 -1
  132. package/dist/index161.js +153 -450
  133. package/dist/index161.js.map +1 -1
  134. package/dist/index162.js +102 -178
  135. package/dist/index162.js.map +1 -1
  136. package/dist/index163.js +24 -107
  137. package/dist/index163.js.map +1 -1
  138. package/dist/index164.js +8 -263
  139. package/dist/index164.js.map +1 -1
  140. package/dist/index165.js +4 -9
  141. package/dist/index165.js.map +1 -1
  142. package/dist/index166.js +5 -42
  143. package/dist/index166.js.map +1 -1
  144. package/dist/index167.js +3 -3
  145. package/dist/index167.js.map +1 -1
  146. package/dist/index168.js +464 -44
  147. package/dist/index168.js.map +1 -1
  148. package/dist/index169.js +176 -196
  149. package/dist/index169.js.map +1 -1
  150. package/dist/index17.js +1 -1
  151. package/dist/index170.js +108 -22
  152. package/dist/index170.js.map +1 -1
  153. package/dist/index171.js +260 -22
  154. package/dist/index171.js.map +1 -1
  155. package/dist/index172.js +9 -399
  156. package/dist/index172.js.map +1 -1
  157. package/dist/index173.js +36 -599
  158. package/dist/index173.js.map +1 -1
  159. package/dist/index174.js +4 -16
  160. package/dist/index174.js.map +1 -1
  161. package/dist/index175.js +67 -5
  162. package/dist/index175.js.map +1 -1
  163. package/dist/index176.js +179 -4
  164. package/dist/index176.js.map +1 -1
  165. package/dist/index177.js +46 -58
  166. package/dist/index177.js.map +1 -1
  167. package/dist/index178.js +47 -55
  168. package/dist/index178.js.map +1 -1
  169. package/dist/index179.js +8 -6
  170. package/dist/index179.js.map +1 -1
  171. package/dist/index18.js +2 -2
  172. package/dist/index180.js +66 -4
  173. package/dist/index180.js.map +1 -1
  174. package/dist/index181.js +19 -7
  175. package/dist/index181.js.map +1 -1
  176. package/dist/index182.js +16 -17
  177. package/dist/index182.js.map +1 -1
  178. package/dist/index183.js +5 -5
  179. package/dist/index183.js.map +1 -1
  180. package/dist/index184.js +5 -5
  181. package/dist/index184.js.map +1 -1
  182. package/dist/index185.js +6 -13
  183. package/dist/index185.js.map +1 -1
  184. package/dist/index186.js +4 -10
  185. package/dist/index186.js.map +1 -1
  186. package/dist/index187.js +7 -14
  187. package/dist/index187.js.map +1 -1
  188. package/dist/index188.js +17 -14
  189. package/dist/index188.js.map +1 -1
  190. package/dist/index189.js +5 -5
  191. package/dist/index189.js.map +1 -1
  192. package/dist/index19.js +7 -7
  193. package/dist/index190.js +5 -6
  194. package/dist/index190.js.map +1 -1
  195. package/dist/index191.js +13 -7
  196. package/dist/index191.js.map +1 -1
  197. package/dist/index192.js +9 -5
  198. package/dist/index192.js.map +1 -1
  199. package/dist/index193.js +14 -9
  200. package/dist/index193.js.map +1 -1
  201. package/dist/index194.js +14 -5
  202. package/dist/index194.js.map +1 -1
  203. package/dist/index195.js +5 -5
  204. package/dist/index195.js.map +1 -1
  205. package/dist/index196.js +6 -9
  206. package/dist/index196.js.map +1 -1
  207. package/dist/index197.js +7 -5
  208. package/dist/index197.js.map +1 -1
  209. package/dist/index198.js +6 -5
  210. package/dist/index198.js.map +1 -1
  211. package/dist/index199.js +9 -4
  212. package/dist/index199.js.map +1 -1
  213. package/dist/index20.js +2 -2
  214. package/dist/index200.js +5 -11
  215. package/dist/index200.js.map +1 -1
  216. package/dist/index201.js +5 -10
  217. package/dist/index201.js.map +1 -1
  218. package/dist/index202.js +9 -10
  219. package/dist/index202.js.map +1 -1
  220. package/dist/index203.js +5 -11
  221. package/dist/index203.js.map +1 -1
  222. package/dist/index204.js +5 -11
  223. package/dist/index204.js.map +1 -1
  224. package/dist/index205.js +4 -10
  225. package/dist/index205.js.map +1 -1
  226. package/dist/index206.js +11 -7
  227. package/dist/index206.js.map +1 -1
  228. package/dist/index207.js +10 -6
  229. package/dist/index207.js.map +1 -1
  230. package/dist/index208.js +10 -5
  231. package/dist/index208.js.map +1 -1
  232. package/dist/index209.js +11 -6
  233. package/dist/index209.js.map +1 -1
  234. package/dist/index21.js +1 -1
  235. package/dist/index210.js +10 -6
  236. package/dist/index210.js.map +1 -1
  237. package/dist/index211.js +10 -6
  238. package/dist/index211.js.map +1 -1
  239. package/dist/index212.js +7 -55
  240. package/dist/index212.js.map +1 -1
  241. package/dist/index213.js +6 -8
  242. package/dist/index213.js.map +1 -1
  243. package/dist/index214.js +5 -19
  244. package/dist/index214.js.map +1 -1
  245. package/dist/index215.js +6 -23
  246. package/dist/index215.js.map +1 -1
  247. package/dist/index216.js +7 -16
  248. package/dist/index216.js.map +1 -1
  249. package/dist/index217.js +6 -7
  250. package/dist/index217.js.map +1 -1
  251. package/dist/index218.js +55 -10
  252. package/dist/index218.js.map +1 -1
  253. package/dist/index219.js +15 -9
  254. package/dist/index219.js.map +1 -1
  255. package/dist/index22.js +1 -1
  256. package/dist/index220.js +7 -21
  257. package/dist/index220.js.map +1 -1
  258. package/dist/index221.js +10 -10
  259. package/dist/index221.js.map +1 -1
  260. package/dist/index222.js +10 -9
  261. package/dist/index222.js.map +1 -1
  262. package/dist/index223.js +21 -9
  263. package/dist/index223.js.map +1 -1
  264. package/dist/index224.js +10 -4
  265. package/dist/index224.js.map +1 -1
  266. package/dist/index225.js +9 -5
  267. package/dist/index225.js.map +1 -1
  268. package/dist/index226.js +9 -16
  269. package/dist/index226.js.map +1 -1
  270. package/dist/index227.js +4 -9
  271. package/dist/index227.js.map +1 -1
  272. package/dist/index228.js +5 -18
  273. package/dist/index228.js.map +1 -1
  274. package/dist/index229.js +16 -15
  275. package/dist/index229.js.map +1 -1
  276. package/dist/index23.js +2 -2
  277. package/dist/index230.js +9 -12
  278. package/dist/index230.js.map +1 -1
  279. package/dist/index231.js +18 -29
  280. package/dist/index231.js.map +1 -1
  281. package/dist/index232.js +15 -12
  282. package/dist/index232.js.map +1 -1
  283. package/dist/index233.js +12 -25
  284. package/dist/index233.js.map +1 -1
  285. package/dist/index234.js +29 -5
  286. package/dist/index234.js.map +1 -1
  287. package/dist/index235.js +12 -13
  288. package/dist/index235.js.map +1 -1
  289. package/dist/index236.js +23 -152
  290. package/dist/index236.js.map +1 -1
  291. package/dist/index237.js +5 -30
  292. package/dist/index237.js.map +1 -1
  293. package/dist/index238.js +24 -9
  294. package/dist/index238.js.map +1 -1
  295. package/dist/index239.js +29 -48
  296. package/dist/index239.js.map +1 -1
  297. package/dist/index24.js +1 -1
  298. package/dist/index240.js +5 -12
  299. package/dist/index240.js.map +1 -1
  300. package/dist/index241.js +13 -44
  301. package/dist/index241.js.map +1 -1
  302. package/dist/index242.js +145 -86
  303. package/dist/index242.js.map +1 -1
  304. package/dist/index243.js +27 -83
  305. package/dist/index243.js.map +1 -1
  306. package/dist/index244.js +9 -105
  307. package/dist/index244.js.map +1 -1
  308. package/dist/index245.js +40 -45
  309. package/dist/index245.js.map +1 -1
  310. package/dist/index246.js +11 -11
  311. package/dist/index246.js.map +1 -1
  312. package/dist/index247.js +42 -35
  313. package/dist/index247.js.map +1 -1
  314. package/dist/index248.js +95 -8
  315. package/dist/index248.js.map +1 -1
  316. package/dist/index249.js +80 -110
  317. package/dist/index249.js.map +1 -1
  318. package/dist/index250.js +105 -17
  319. package/dist/index250.js.map +1 -1
  320. package/dist/index251.js +51 -14
  321. package/dist/index251.js.map +1 -1
  322. package/dist/index252.js +11 -3
  323. package/dist/index252.js.map +1 -1
  324. package/dist/index253.js +33 -32
  325. package/dist/index253.js.map +1 -1
  326. package/dist/index254.js +8 -20
  327. package/dist/index254.js.map +1 -1
  328. package/dist/index255.js +116 -9
  329. package/dist/index255.js.map +1 -1
  330. package/dist/index256.js +17 -8
  331. package/dist/index256.js.map +1 -1
  332. package/dist/index257.js +12 -16
  333. package/dist/index257.js.map +1 -1
  334. package/dist/index258.js +3 -28
  335. package/dist/index258.js.map +1 -1
  336. package/dist/index259.js +35 -15
  337. package/dist/index259.js.map +1 -1
  338. package/dist/index260.js +20 -24
  339. package/dist/index260.js.map +1 -1
  340. package/dist/index261.js +10 -29
  341. package/dist/index261.js.map +1 -1
  342. package/dist/index262.js +9 -5
  343. package/dist/index262.js.map +1 -1
  344. package/dist/index263.js +17 -65
  345. package/dist/index263.js.map +1 -1
  346. package/dist/index264.js +26 -178
  347. package/dist/index264.js.map +1 -1
  348. package/dist/index265.js +14 -44
  349. package/dist/index265.js.map +1 -1
  350. package/dist/index269.js +5 -21
  351. package/dist/index269.js.map +1 -1
  352. package/dist/index27.js +37 -3
  353. package/dist/index27.js.map +1 -1
  354. package/dist/index270.js +3 -5
  355. package/dist/index270.js.map +1 -1
  356. package/dist/index271.js +24 -3
  357. package/dist/index271.js.map +1 -1
  358. package/dist/index272.js +111 -22
  359. package/dist/index272.js.map +1 -1
  360. package/dist/index273.js +14 -111
  361. package/dist/index273.js.map +1 -1
  362. package/dist/index274.js +523 -14
  363. package/dist/index274.js.map +1 -1
  364. package/dist/index275.js +114 -511
  365. package/dist/index275.js.map +1 -1
  366. package/dist/index276.js +117 -111
  367. package/dist/index276.js.map +1 -1
  368. package/dist/index277.js +20 -133
  369. package/dist/index277.js.map +1 -1
  370. package/dist/index28.js +3 -125
  371. package/dist/index28.js.map +1 -1
  372. package/dist/index285.js +2 -2
  373. package/dist/index288.js +1 -1
  374. package/dist/index289.js +2 -2
  375. package/dist/index29.js +120 -227
  376. package/dist/index29.js.map +1 -1
  377. package/dist/index291.js +1 -1
  378. package/dist/index292.js +1 -1
  379. package/dist/index293.js +1 -1
  380. package/dist/index294.js +1 -1
  381. package/dist/index295.js +65 -69
  382. package/dist/index295.js.map +1 -1
  383. package/dist/index296.js +68 -8
  384. package/dist/index296.js.map +1 -1
  385. package/dist/index297.js +9 -14
  386. package/dist/index297.js.map +1 -1
  387. package/dist/index298.js +14 -66
  388. package/dist/index298.js.map +1 -1
  389. package/dist/index299.js +65 -64
  390. package/dist/index299.js.map +1 -1
  391. package/dist/index30.js +230 -49
  392. package/dist/index30.js.map +1 -1
  393. package/dist/index31.js +20 -2637
  394. package/dist/index31.js.map +1 -1
  395. package/dist/index32.js +47 -390
  396. package/dist/index32.js.map +1 -1
  397. package/dist/index33.js +2604 -196
  398. package/dist/index33.js.map +1 -1
  399. package/dist/index34.js +390 -18
  400. package/dist/index34.js.map +1 -1
  401. package/dist/index35.js +222 -131
  402. package/dist/index35.js.map +1 -1
  403. package/dist/index36.js +18 -183
  404. package/dist/index36.js.map +1 -1
  405. package/dist/index37.js +130 -65
  406. package/dist/index37.js.map +1 -1
  407. package/dist/index38.js +185 -89
  408. package/dist/index38.js.map +1 -1
  409. package/dist/index39.js +76 -5
  410. package/dist/index39.js.map +1 -1
  411. package/dist/index40.js +84 -837
  412. package/dist/index40.js.map +1 -1
  413. package/dist/index41.js +6 -66
  414. package/dist/index41.js.map +1 -1
  415. package/dist/index42.js +840 -33
  416. package/dist/index42.js.map +1 -1
  417. package/dist/index43.js +66 -8
  418. package/dist/index43.js.map +1 -1
  419. package/dist/index44.js +8 -2
  420. package/dist/index44.js.map +1 -1
  421. package/dist/index45.js +2 -24
  422. package/dist/index45.js.map +1 -1
  423. package/dist/index46.js +22 -232
  424. package/dist/index46.js.map +1 -1
  425. package/dist/index47.js +233 -6
  426. package/dist/index47.js.map +1 -1
  427. package/dist/index48.js +203 -32
  428. package/dist/index48.js.map +1 -1
  429. package/dist/index49.js +5 -25
  430. package/dist/index49.js.map +1 -1
  431. package/dist/index5.js +1 -1
  432. package/dist/index50.js +33 -7
  433. package/dist/index50.js.map +1 -1
  434. package/dist/index51.js +26 -11
  435. package/dist/index51.js.map +1 -1
  436. package/dist/index52.js +7 -53
  437. package/dist/index52.js.map +1 -1
  438. package/dist/index53.js +12 -205
  439. package/dist/index53.js.map +1 -1
  440. package/dist/index55.js +3 -3
  441. package/dist/index56.js +1 -1
  442. package/dist/index57.js +1 -1
  443. package/dist/index59.js +4 -4
  444. package/dist/index61.js +8 -8
  445. package/dist/index62.js +2 -2
  446. package/dist/index63.js +2 -2
  447. package/dist/index67.js +2 -2
  448. package/dist/index69.js +3 -3
  449. package/dist/index70.js +53 -5
  450. package/dist/index70.js.map +1 -1
  451. package/dist/index71.js +2 -8
  452. package/dist/index71.js.map +1 -1
  453. package/dist/index72.js +2 -6
  454. package/dist/index72.js.map +1 -1
  455. package/dist/index73.js +6 -2
  456. package/dist/index73.js.map +1 -1
  457. package/dist/index74.js +8 -2
  458. package/dist/index74.js.map +1 -1
  459. package/dist/index75.js +6 -52
  460. package/dist/index75.js.map +1 -1
  461. package/dist/index76.js +605 -4
  462. package/dist/index76.js.map +1 -1
  463. package/dist/index77.js +52 -5
  464. package/dist/index77.js.map +1 -1
  465. package/dist/index78.js +3 -14
  466. package/dist/index78.js.map +1 -1
  467. package/dist/index79.js +4 -5
  468. package/dist/index79.js.map +1 -1
  469. package/dist/index8.js +1 -1
  470. package/dist/index80.js +14 -6
  471. package/dist/index80.js.map +1 -1
  472. package/dist/index81.js +5 -16
  473. package/dist/index81.js.map +1 -1
  474. package/dist/index82.js +7 -4
  475. package/dist/index82.js.map +1 -1
  476. package/dist/index83.js +16 -4
  477. package/dist/index83.js.map +1 -1
  478. package/dist/index84.js +4 -5
  479. package/dist/index84.js.map +1 -1
  480. package/dist/index85.js +4 -5
  481. package/dist/index85.js.map +1 -1
  482. package/dist/index86.js +5 -4
  483. package/dist/index86.js.map +1 -1
  484. package/dist/index87.js +5 -4
  485. package/dist/index87.js.map +1 -1
  486. package/dist/index88.js +3 -5
  487. package/dist/index88.js.map +1 -1
  488. package/dist/index89.js +4 -24
  489. package/dist/index89.js.map +1 -1
  490. package/dist/index9.js +1 -1
  491. package/dist/index90.js +6 -6
  492. package/dist/index90.js.map +1 -1
  493. package/dist/index91.js +24 -4
  494. package/dist/index91.js.map +1 -1
  495. package/dist/index92.js +6 -6
  496. package/dist/index92.js.map +1 -1
  497. package/dist/index93.js +3 -4
  498. package/dist/index93.js.map +1 -1
  499. package/dist/index94.js +6 -4
  500. package/dist/index94.js.map +1 -1
  501. package/dist/index95.js +4 -4
  502. package/dist/index95.js.map +1 -1
  503. package/dist/index96.js +3 -3
  504. package/dist/index96.js.map +1 -1
  505. package/dist/index97.js +5 -8
  506. package/dist/index97.js.map +1 -1
  507. package/dist/index98.js +4 -5
  508. package/dist/index98.js.map +1 -1
  509. package/dist/index99.js +8 -4
  510. package/dist/index99.js.map +1 -1
  511. package/package.json +1 -1
package/dist/index105.js CHANGED
@@ -1,11 +1,43 @@
1
- import * as t from "./index75.js";
2
- function n(o) {
3
- return {
4
- ...t,
5
- ...o
1
+ import { DayFlag as e } from "./index117.js";
2
+ import { dateMatchModifiers as u } from "./index31.js";
3
+ function V(b, S, h, M, a) {
4
+ const { disabled: m, hidden: p, modifiers: r, showOutsideDays: y, broadcastCalendar: B, today: g = a.today() } = S, { isSameDay: v, isSameMonth: A, startOfMonth: E, isBefore: F, endOfMonth: j, isAfter: k } = a, O = h && E(h), D = M && j(M), i = {
5
+ [e.focused]: [],
6
+ [e.outside]: [],
7
+ [e.disabled]: [],
8
+ [e.hidden]: [],
9
+ [e.today]: []
10
+ }, d = {};
11
+ for (const s of b) {
12
+ const { date: o, displayMonth: n } = s, t = !!(n && !A(o, n)), f = !!(O && F(o, O)), l = !!(D && k(o, D)), w = !!(m && u(o, m, a)), x = !!(p && u(o, p, a)) || f || l || // Broadcast calendar will show outside days as default
13
+ !B && !y && t || B && y === !1 && t, C = v(o, g);
14
+ t && i.outside.push(s), w && i.disabled.push(s), x && i.hidden.push(s), C && i.today.push(s), r && Object.keys(r).forEach((c) => {
15
+ const N = r?.[c];
16
+ N && u(o, N, a) && (d[c] ? d[c].push(s) : d[c] = [s]);
17
+ });
18
+ }
19
+ return (s) => {
20
+ const o = {
21
+ [e.focused]: !1,
22
+ [e.disabled]: !1,
23
+ [e.hidden]: !1,
24
+ [e.outside]: !1,
25
+ [e.today]: !1
26
+ }, n = {};
27
+ for (const t in i) {
28
+ const f = i[t];
29
+ o[t] = f.some((l) => l === s);
30
+ }
31
+ for (const t in d)
32
+ n[t] = d[t].some((f) => f === s);
33
+ return {
34
+ ...o,
35
+ // custom modifiers should override all the previous ones
36
+ ...n
37
+ };
6
38
  };
7
39
  }
8
40
  export {
9
- n as getComponents
41
+ V as createGetModifiers
10
42
  };
11
43
  //# sourceMappingURL=index105.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index105.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getComponents.js"],"sourcesContent":["import * as components from \"../components/custom-components.js\";\n/**\n * Merges custom components from the props with the default components.\n *\n * This function ensures that any custom components provided in the props\n * override the default components.\n *\n * @param customComponents The custom components provided in the DayPicker\n * props.\n * @returns An object containing the merged components.\n */\nexport function getComponents(customComponents) {\n return {\n ...components,\n ...customComponents,\n };\n}\n"],"names":["getComponents","customComponents","components"],"mappings":";AAWO,SAASA,EAAcC,GAAkB;AAC5C,SAAO;AAAA,IACH,GAAGC;AAAAA,IACH,GAAGD;AAAAA,EACX;AACA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index105.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js"],"sourcesContent":["import { DayFlag } from \"../UI.js\";\nimport { dateMatchModifiers } from \"../utils/dateMatchModifiers.js\";\n/**\n * Creates a function to retrieve the modifiers for a given day.\n *\n * This function calculates both internal and custom modifiers for each day\n * based on the provided calendar days and DayPicker props.\n *\n * @private\n * @param days The array of `CalendarDay` objects to process.\n * @param props The DayPicker props, including modifiers and configuration\n * options.\n * @param dateLib The date library to use for date manipulation.\n * @returns A function that retrieves the modifiers for a given `CalendarDay`.\n */\nexport function createGetModifiers(days, props, navStart, navEnd, dateLib) {\n const { disabled, hidden, modifiers, showOutsideDays, broadcastCalendar, today = dateLib.today(), } = props;\n const { isSameDay, isSameMonth, startOfMonth, isBefore, endOfMonth, isAfter, } = dateLib;\n const computedNavStart = navStart && startOfMonth(navStart);\n const computedNavEnd = navEnd && endOfMonth(navEnd);\n const internalModifiersMap = {\n [DayFlag.focused]: [],\n [DayFlag.outside]: [],\n [DayFlag.disabled]: [],\n [DayFlag.hidden]: [],\n [DayFlag.today]: [],\n };\n const customModifiersMap = {};\n for (const day of days) {\n const { date, displayMonth } = day;\n const isOutside = Boolean(displayMonth && !isSameMonth(date, displayMonth));\n const isBeforeNavStart = Boolean(computedNavStart && isBefore(date, computedNavStart));\n const isAfterNavEnd = Boolean(computedNavEnd && isAfter(date, computedNavEnd));\n const isDisabled = Boolean(disabled && dateMatchModifiers(date, disabled, dateLib));\n const isHidden = Boolean(hidden && dateMatchModifiers(date, hidden, dateLib)) ||\n isBeforeNavStart ||\n isAfterNavEnd ||\n // Broadcast calendar will show outside days as default\n (!broadcastCalendar && !showOutsideDays && isOutside) ||\n (broadcastCalendar && showOutsideDays === false && isOutside);\n const isToday = isSameDay(date, today);\n if (isOutside)\n internalModifiersMap.outside.push(day);\n if (isDisabled)\n internalModifiersMap.disabled.push(day);\n if (isHidden)\n internalModifiersMap.hidden.push(day);\n if (isToday)\n internalModifiersMap.today.push(day);\n // Add custom modifiers\n if (modifiers) {\n Object.keys(modifiers).forEach((name) => {\n const modifierValue = modifiers?.[name];\n const isMatch = modifierValue\n ? dateMatchModifiers(date, modifierValue, dateLib)\n : false;\n if (!isMatch)\n return;\n if (customModifiersMap[name]) {\n customModifiersMap[name].push(day);\n }\n else {\n customModifiersMap[name] = [day];\n }\n });\n }\n }\n return (day) => {\n // Initialize all the modifiers to false\n const dayFlags = {\n [DayFlag.focused]: false,\n [DayFlag.disabled]: false,\n [DayFlag.hidden]: false,\n [DayFlag.outside]: false,\n [DayFlag.today]: false,\n };\n const customModifiers = {};\n // Find the modifiers for the given day\n for (const name in internalModifiersMap) {\n const days = internalModifiersMap[name];\n dayFlags[name] = days.some((d) => d === day);\n }\n for (const name in customModifiersMap) {\n customModifiers[name] = customModifiersMap[name].some((d) => d === day);\n }\n return {\n ...dayFlags,\n // custom modifiers should override all the previous ones\n ...customModifiers,\n };\n };\n}\n"],"names":["createGetModifiers","days","props","navStart","navEnd","dateLib","disabled","hidden","modifiers","showOutsideDays","broadcastCalendar","today","isSameDay","isSameMonth","startOfMonth","isBefore","endOfMonth","isAfter","computedNavStart","computedNavEnd","internalModifiersMap","DayFlag","customModifiersMap","day","date","displayMonth","isOutside","isBeforeNavStart","isAfterNavEnd","isDisabled","dateMatchModifiers","isHidden","isToday","name","modifierValue","dayFlags","customModifiers","d"],"mappings":";;AAeO,SAASA,EAAmBC,GAAMC,GAAOC,GAAUC,GAAQC,GAAS;AACvE,QAAM,EAAE,UAAAC,GAAU,QAAAC,GAAQ,WAAAC,GAAW,iBAAAC,GAAiB,mBAAAC,GAAmB,OAAAC,IAAQN,EAAQ,MAAK,EAAE,IAAMH,GAChG,EAAE,WAAAU,GAAW,aAAAC,GAAa,cAAAC,GAAc,UAAAC,GAAU,YAAAC,GAAY,SAAAC,EAAO,IAAMZ,GAC3Ea,IAAmBf,KAAYW,EAAaX,CAAQ,GACpDgB,IAAiBf,KAAUY,EAAWZ,CAAM,GAC5CgB,IAAuB;AAAA,IACzB,CAACC,EAAQ,OAAO,GAAG,CAAA;AAAA,IACnB,CAACA,EAAQ,OAAO,GAAG,CAAA;AAAA,IACnB,CAACA,EAAQ,QAAQ,GAAG,CAAA;AAAA,IACpB,CAACA,EAAQ,MAAM,GAAG,CAAA;AAAA,IAClB,CAACA,EAAQ,KAAK,GAAG,CAAA;AAAA,EACzB,GACUC,IAAqB,CAAA;AAC3B,aAAWC,KAAOtB,GAAM;AACpB,UAAM,EAAE,MAAAuB,GAAM,cAAAC,EAAY,IAAKF,GACzBG,IAAY,GAAQD,KAAgB,CAACZ,EAAYW,GAAMC,CAAY,IACnEE,IAAmB,GAAQT,KAAoBH,EAASS,GAAMN,CAAgB,IAC9EU,IAAgB,GAAQT,KAAkBF,EAAQO,GAAML,CAAc,IACtEU,IAAa,GAAQvB,KAAYwB,EAAmBN,GAAMlB,GAAUD,CAAO,IAC3E0B,IAAW,GAAQxB,KAAUuB,EAAmBN,GAAMjB,GAAQF,CAAO,MACvEsB,KACAC;AAAA,IAEC,CAAClB,KAAqB,CAACD,KAAmBiB,KAC1ChB,KAAqBD,MAAoB,MAASiB,GACjDM,IAAUpB,EAAUY,GAAMb,CAAK;AACrC,IAAIe,KACAN,EAAqB,QAAQ,KAAKG,CAAG,GACrCM,KACAT,EAAqB,SAAS,KAAKG,CAAG,GACtCQ,KACAX,EAAqB,OAAO,KAAKG,CAAG,GACpCS,KACAZ,EAAqB,MAAM,KAAKG,CAAG,GAEnCf,KACA,OAAO,KAAKA,CAAS,EAAE,QAAQ,CAACyB,MAAS;AACrC,YAAMC,IAAgB1B,IAAYyB,CAAI;AAItC,MAHgBC,KACVJ,EAAmBN,GAAMU,GAAe7B,CAAO,MAIjDiB,EAAmBW,CAAI,IACvBX,EAAmBW,CAAI,EAAE,KAAKV,CAAG,IAGjCD,EAAmBW,CAAI,IAAI,CAACV,CAAG;AAAA,IAEvC,CAAC;AAAA,EAET;AACA,SAAO,CAACA,MAAQ;AAEZ,UAAMY,IAAW;AAAA,MACb,CAACd,EAAQ,OAAO,GAAG;AAAA,MACnB,CAACA,EAAQ,QAAQ,GAAG;AAAA,MACpB,CAACA,EAAQ,MAAM,GAAG;AAAA,MAClB,CAACA,EAAQ,OAAO,GAAG;AAAA,MACnB,CAACA,EAAQ,KAAK,GAAG;AAAA,IAC7B,GACce,IAAkB,CAAA;AAExB,eAAWH,KAAQb,GAAsB;AACrC,YAAMnB,IAAOmB,EAAqBa,CAAI;AACtC,MAAAE,EAASF,CAAI,IAAIhC,EAAK,KAAK,CAACoC,MAAMA,MAAMd,CAAG;AAAA,IAC/C;AACA,eAAWU,KAAQX;AACf,MAAAc,EAAgBH,CAAI,IAAIX,EAAmBW,CAAI,EAAE,KAAK,CAACI,MAAMA,MAAMd,CAAG;AAE1E,WAAO;AAAA,MACH,GAAGY;AAAA;AAAA,MAEH,GAAGC;AAAA,IACf;AAAA,EACI;AACJ;","x_google_ignoreList":[0]}
package/dist/index106.js CHANGED
@@ -1,17 +1,8 @@
1
- function n(e) {
2
- const t = {
3
- "data-mode": e.mode ?? void 0,
4
- "data-required": "required" in e ? e.required : void 0,
5
- "data-multiple-months": e.numberOfMonths && e.numberOfMonths > 1 || void 0,
6
- "data-week-numbers": e.showWeekNumber || void 0,
7
- "data-broadcast-calendar": e.broadcastCalendar || void 0,
8
- "data-nav-layout": e.navLayout || void 0
9
- };
10
- return Object.entries(e).forEach(([a, d]) => {
11
- a.startsWith("data-") && (t[a] = d);
12
- }), t;
1
+ import { DayFlag as e, SelectionState as n, UI as d } from "./index117.js";
2
+ function p(o, i, f = {}) {
3
+ return Object.entries(o).filter(([, t]) => t === !0).reduce((t, [r]) => (f[r] ? t.push(f[r]) : i[e[r]] ? t.push(i[e[r]]) : i[n[r]] && t.push(i[n[r]]), t), [i[d.Day]]);
13
4
  }
14
5
  export {
15
- n as getDataAttributes
6
+ p as getClassNamesForModifiers
16
7
  };
17
8
  //# sourceMappingURL=index106.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index106.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js"],"sourcesContent":["/**\n * Extracts `data-` attributes from the DayPicker props.\n *\n * This function collects all `data-` attributes from the props and adds\n * additional attributes based on the DayPicker configuration.\n *\n * @param props The DayPicker props.\n * @returns An object containing the `data-` attributes.\n */\nexport function getDataAttributes(props) {\n const dataAttributes = {\n \"data-mode\": props.mode ?? undefined,\n \"data-required\": \"required\" in props ? props.required : undefined,\n \"data-multiple-months\": (props.numberOfMonths && props.numberOfMonths > 1) || undefined,\n \"data-week-numbers\": props.showWeekNumber || undefined,\n \"data-broadcast-calendar\": props.broadcastCalendar || undefined,\n \"data-nav-layout\": props.navLayout || undefined,\n };\n Object.entries(props).forEach(([key, val]) => {\n if (key.startsWith(\"data-\")) {\n dataAttributes[key] = val;\n }\n });\n return dataAttributes;\n}\n"],"names":["getDataAttributes","props","dataAttributes","key","val"],"mappings":"AASO,SAASA,EAAkBC,GAAO;AACrC,QAAMC,IAAiB;AAAA,IACnB,aAAaD,EAAM,QAAQ;AAAA,IAC3B,iBAAiB,cAAcA,IAAQA,EAAM,WAAW;AAAA,IACxD,wBAAyBA,EAAM,kBAAkBA,EAAM,iBAAiB,KAAM;AAAA,IAC9E,qBAAqBA,EAAM,kBAAkB;AAAA,IAC7C,2BAA2BA,EAAM,qBAAqB;AAAA,IACtD,mBAAmBA,EAAM,aAAa;AAAA,EAC9C;AACI,gBAAO,QAAQA,CAAK,EAAE,QAAQ,CAAC,CAACE,GAAKC,CAAG,MAAM;AAC1C,IAAID,EAAI,WAAW,OAAO,MACtBD,EAAeC,CAAG,IAAIC;AAAA,EAE9B,CAAC,GACMF;AACX;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index106.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js"],"sourcesContent":["import { DayFlag, SelectionState, UI } from \"../UI.js\";\n/**\n * Returns the class names for a day based on its modifiers.\n *\n * This function combines the base class name for the day with any class names\n * associated with active modifiers.\n *\n * @param modifiers The modifiers applied to the day.\n * @param classNames The base class names for the calendar elements.\n * @param modifiersClassNames The class names associated with specific\n * modifiers.\n * @returns An array of class names for the day.\n */\nexport function getClassNamesForModifiers(modifiers, classNames, modifiersClassNames = {}) {\n const modifierClassNames = Object.entries(modifiers)\n .filter(([, active]) => active === true)\n .reduce((previousValue, [key]) => {\n if (modifiersClassNames[key]) {\n previousValue.push(modifiersClassNames[key]);\n }\n else if (classNames[DayFlag[key]]) {\n previousValue.push(classNames[DayFlag[key]]);\n }\n else if (classNames[SelectionState[key]]) {\n previousValue.push(classNames[SelectionState[key]]);\n }\n return previousValue;\n }, [classNames[UI.Day]]);\n return modifierClassNames;\n}\n"],"names":["getClassNamesForModifiers","modifiers","classNames","modifiersClassNames","active","previousValue","key","DayFlag","SelectionState","UI"],"mappings":";AAaO,SAASA,EAA0BC,GAAWC,GAAYC,IAAsB,CAAA,GAAI;AAevF,SAd2B,OAAO,QAAQF,CAAS,EAC9C,OAAO,CAAC,CAAA,EAAGG,CAAM,MAAMA,MAAW,EAAI,EACtC,OAAO,CAACC,GAAe,CAACC,CAAG,OACxBH,EAAoBG,CAAG,IACvBD,EAAc,KAAKF,EAAoBG,CAAG,CAAC,IAEtCJ,EAAWK,EAAQD,CAAG,CAAC,IAC5BD,EAAc,KAAKH,EAAWK,EAAQD,CAAG,CAAC,CAAC,IAEtCJ,EAAWM,EAAeF,CAAG,CAAC,KACnCD,EAAc,KAAKH,EAAWM,EAAeF,CAAG,CAAC,CAAC,GAE/CD,IACR,CAACH,EAAWO,EAAG,GAAG,CAAC,CAAC;AAE3B;","x_google_ignoreList":[0]}
package/dist/index107.js CHANGED
@@ -1,17 +1,11 @@
1
- import { UI as t, DayFlag as e, SelectionState as r, Animation as s } from "./index115.js";
2
- function i() {
3
- const o = {};
4
- for (const n in t)
5
- o[t[n]] = `rdp-${t[n]}`;
6
- for (const n in e)
7
- o[e[n]] = `rdp-${e[n]}`;
8
- for (const n in r)
9
- o[r[n]] = `rdp-${r[n]}`;
10
- for (const n in s)
11
- o[s[n]] = `rdp-${s[n]}`;
12
- return o;
1
+ import * as t from "./index77.js";
2
+ function n(o) {
3
+ return {
4
+ ...t,
5
+ ...o
6
+ };
13
7
  }
14
8
  export {
15
- i as getDefaultClassNames
9
+ n as getComponents
16
10
  };
17
11
  //# sourceMappingURL=index107.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index107.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js"],"sourcesContent":["import { Animation, DayFlag, SelectionState, UI } from \"../UI.js\";\n/**\n * Returns the default class names for the UI elements.\n *\n * This function generates a mapping of default class names for various UI\n * elements, day flags, selection states, and animations.\n *\n * @returns An object containing the default class names.\n * @group Utilities\n */\nexport function getDefaultClassNames() {\n const classNames = {};\n for (const key in UI) {\n classNames[UI[key]] =\n `rdp-${UI[key]}`;\n }\n for (const key in DayFlag) {\n classNames[DayFlag[key]] =\n `rdp-${DayFlag[key]}`;\n }\n for (const key in SelectionState) {\n classNames[SelectionState[key]] =\n `rdp-${SelectionState[key]}`;\n }\n for (const key in Animation) {\n classNames[Animation[key]] =\n `rdp-${Animation[key]}`;\n }\n return classNames;\n}\n"],"names":["getDefaultClassNames","classNames","key","UI","DayFlag","SelectionState","Animation"],"mappings":";AAUO,SAASA,IAAuB;AACnC,QAAMC,IAAa,CAAA;AACnB,aAAWC,KAAOC;AACd,IAAAF,EAAWE,EAAGD,CAAG,CAAC,IACd,OAAOC,EAAGD,CAAG,CAAC;AAEtB,aAAWA,KAAOE;AACd,IAAAH,EAAWG,EAAQF,CAAG,CAAC,IACnB,OAAOE,EAAQF,CAAG,CAAC;AAE3B,aAAWA,KAAOG;AACd,IAAAJ,EAAWI,EAAeH,CAAG,CAAC,IAC1B,OAAOG,EAAeH,CAAG,CAAC;AAElC,aAAWA,KAAOI;AACd,IAAAL,EAAWK,EAAUJ,CAAG,CAAC,IACrB,OAAOI,EAAUJ,CAAG,CAAC;AAE7B,SAAOD;AACX;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index107.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getComponents.js"],"sourcesContent":["import * as components from \"../components/custom-components.js\";\n/**\n * Merges custom components from the props with the default components.\n *\n * This function ensures that any custom components provided in the props\n * override the default components.\n *\n * @param customComponents The custom components provided in the DayPicker\n * props.\n * @returns An object containing the merged components.\n */\nexport function getComponents(customComponents) {\n return {\n ...components,\n ...customComponents,\n };\n}\n"],"names":["getComponents","customComponents","components"],"mappings":";AAWO,SAASA,EAAcC,GAAkB;AAC5C,SAAO;AAAA,IACH,GAAGC;AAAAA,IACH,GAAGD;AAAAA,EACX;AACA;","x_google_ignoreList":[0]}
package/dist/index108.js CHANGED
@@ -1,11 +1,17 @@
1
- import * as a from "./index126.js";
2
- function f(n) {
3
- return n?.formatMonthCaption && !n.formatCaption && (n.formatCaption = n.formatMonthCaption), n?.formatYearCaption && !n.formatYearDropdown && (n.formatYearDropdown = n.formatYearCaption), {
4
- ...a,
5
- ...n
1
+ function n(e) {
2
+ const t = {
3
+ "data-mode": e.mode ?? void 0,
4
+ "data-required": "required" in e ? e.required : void 0,
5
+ "data-multiple-months": e.numberOfMonths && e.numberOfMonths > 1 || void 0,
6
+ "data-week-numbers": e.showWeekNumber || void 0,
7
+ "data-broadcast-calendar": e.broadcastCalendar || void 0,
8
+ "data-nav-layout": e.navLayout || void 0
6
9
  };
10
+ return Object.entries(e).forEach(([a, d]) => {
11
+ a.startsWith("data-") && (t[a] = d);
12
+ }), t;
7
13
  }
8
14
  export {
9
- f as getFormatters
15
+ n as getDataAttributes
10
16
  };
11
17
  //# sourceMappingURL=index108.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index108.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getFormatters.js"],"sourcesContent":["import * as defaultFormatters from \"../formatters/index.js\";\n/**\n * Merges custom formatters from the props with the default formatters.\n *\n * @param customFormatters The custom formatters provided in the DayPicker\n * props.\n * @returns The merged formatters object.\n */\nexport function getFormatters(customFormatters) {\n if (customFormatters?.formatMonthCaption && !customFormatters.formatCaption) {\n customFormatters.formatCaption = customFormatters.formatMonthCaption;\n }\n if (customFormatters?.formatYearCaption &&\n !customFormatters.formatYearDropdown) {\n customFormatters.formatYearDropdown = customFormatters.formatYearCaption;\n }\n return {\n ...defaultFormatters,\n ...customFormatters,\n };\n}\n"],"names":["getFormatters","customFormatters","defaultFormatters"],"mappings":";AAQO,SAASA,EAAcC,GAAkB;AAC5C,SAAIA,GAAkB,sBAAsB,CAACA,EAAiB,kBAC1DA,EAAiB,gBAAgBA,EAAiB,qBAElDA,GAAkB,qBAClB,CAACA,EAAiB,uBAClBA,EAAiB,qBAAqBA,EAAiB,oBAEpD;AAAA,IACH,GAAGC;AAAAA,IACH,GAAGD;AAAA,EACX;AACA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index108.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js"],"sourcesContent":["/**\n * Extracts `data-` attributes from the DayPicker props.\n *\n * This function collects all `data-` attributes from the props and adds\n * additional attributes based on the DayPicker configuration.\n *\n * @param props The DayPicker props.\n * @returns An object containing the `data-` attributes.\n */\nexport function getDataAttributes(props) {\n const dataAttributes = {\n \"data-mode\": props.mode ?? undefined,\n \"data-required\": \"required\" in props ? props.required : undefined,\n \"data-multiple-months\": (props.numberOfMonths && props.numberOfMonths > 1) || undefined,\n \"data-week-numbers\": props.showWeekNumber || undefined,\n \"data-broadcast-calendar\": props.broadcastCalendar || undefined,\n \"data-nav-layout\": props.navLayout || undefined,\n };\n Object.entries(props).forEach(([key, val]) => {\n if (key.startsWith(\"data-\")) {\n dataAttributes[key] = val;\n }\n });\n return dataAttributes;\n}\n"],"names":["getDataAttributes","props","dataAttributes","key","val"],"mappings":"AASO,SAASA,EAAkBC,GAAO;AACrC,QAAMC,IAAiB;AAAA,IACnB,aAAaD,EAAM,QAAQ;AAAA,IAC3B,iBAAiB,cAAcA,IAAQA,EAAM,WAAW;AAAA,IACxD,wBAAyBA,EAAM,kBAAkBA,EAAM,iBAAiB,KAAM;AAAA,IAC9E,qBAAqBA,EAAM,kBAAkB;AAAA,IAC7C,2BAA2BA,EAAM,qBAAqB;AAAA,IACtD,mBAAmBA,EAAM,aAAa;AAAA,EAC9C;AACI,gBAAO,QAAQA,CAAK,EAAE,QAAQ,CAAC,CAACE,GAAKC,CAAG,MAAM;AAC1C,IAAID,EAAI,WAAW,OAAO,MACtBD,EAAeC,CAAG,IAAIC;AAAA,EAE9B,CAAC,GACMF;AACX;","x_google_ignoreList":[0]}
package/dist/index109.js CHANGED
@@ -1,35 +1,17 @@
1
- import * as o from "./index134.js";
2
- import { labelWeekday as b } from "./index142.js";
3
- import { labelWeekNumberHeader as i } from "./index144.js";
4
- import { labelNav as n } from "./index139.js";
5
- import { labelGridcell as t } from "./index137.js";
6
- import { labelGrid as d } from "./index136.js";
7
- import { labelYearDropdown as p } from "./index145.js";
8
- import { labelWeekNumber as m } from "./index143.js";
9
- import { labelPrevious as f } from "./index141.js";
10
- import { labelNext as N } from "./index140.js";
11
- import { labelMonthDropdown as k } from "./index138.js";
12
- import { labelDayButton as D } from "./index135.js";
13
- const r = (l, a, e) => a || (e ? typeof e == "function" ? e : (...W) => e : l);
14
- function Y(l, a) {
15
- const e = a.locale?.labels ?? {};
16
- return {
17
- ...o,
18
- ...l ?? {},
19
- labelDayButton: r(D, l?.labelDayButton, e.labelDayButton),
20
- labelMonthDropdown: r(k, l?.labelMonthDropdown, e.labelMonthDropdown),
21
- labelNext: r(N, l?.labelNext, e.labelNext),
22
- labelPrevious: r(f, l?.labelPrevious, e.labelPrevious),
23
- labelWeekNumber: r(m, l?.labelWeekNumber, e.labelWeekNumber),
24
- labelYearDropdown: r(p, l?.labelYearDropdown, e.labelYearDropdown),
25
- labelGrid: r(d, l?.labelGrid, e.labelGrid),
26
- labelGridcell: r(t, l?.labelGridcell, e.labelGridcell),
27
- labelNav: r(n, l?.labelNav, e.labelNav),
28
- labelWeekNumberHeader: r(i, l?.labelWeekNumberHeader, e.labelWeekNumberHeader),
29
- labelWeekday: r(b, l?.labelWeekday, e.labelWeekday)
30
- };
1
+ import { UI as t, DayFlag as e, SelectionState as r, Animation as s } from "./index117.js";
2
+ function i() {
3
+ const o = {};
4
+ for (const n in t)
5
+ o[t[n]] = `rdp-${t[n]}`;
6
+ for (const n in e)
7
+ o[e[n]] = `rdp-${e[n]}`;
8
+ for (const n in r)
9
+ o[r[n]] = `rdp-${r[n]}`;
10
+ for (const n in s)
11
+ o[s[n]] = `rdp-${s[n]}`;
12
+ return o;
31
13
  }
32
14
  export {
33
- Y as getLabels
15
+ i as getDefaultClassNames
34
16
  };
35
17
  //# sourceMappingURL=index109.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index109.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getLabels.js"],"sourcesContent":["import * as defaultLabels from \"../labels/index.js\";\nconst resolveLabel = (defaultLabel, customLabel, localeLabel) => {\n if (customLabel)\n return customLabel;\n if (localeLabel) {\n return (typeof localeLabel === \"function\"\n ? localeLabel\n : (..._args) => localeLabel);\n }\n return defaultLabel;\n};\n/**\n * Merges custom labels from the props with the default labels.\n *\n * When available, uses the locale-provided translation for `labelNext`.\n *\n * @param customLabels The custom labels provided in the DayPicker props.\n * @param options Options from the date library, used to resolve locale\n * translations.\n * @returns The merged labels object with locale-aware defaults.\n */\nexport function getLabels(customLabels, options) {\n const localeLabels = options.locale?.labels ?? {};\n return {\n ...defaultLabels,\n ...(customLabels ?? {}),\n labelDayButton: resolveLabel(defaultLabels.labelDayButton, customLabels?.labelDayButton, localeLabels.labelDayButton),\n labelMonthDropdown: resolveLabel(defaultLabels.labelMonthDropdown, customLabels?.labelMonthDropdown, localeLabels.labelMonthDropdown),\n labelNext: resolveLabel(defaultLabels.labelNext, customLabels?.labelNext, localeLabels.labelNext),\n labelPrevious: resolveLabel(defaultLabels.labelPrevious, customLabels?.labelPrevious, localeLabels.labelPrevious),\n labelWeekNumber: resolveLabel(defaultLabels.labelWeekNumber, customLabels?.labelWeekNumber, localeLabels.labelWeekNumber),\n labelYearDropdown: resolveLabel(defaultLabels.labelYearDropdown, customLabels?.labelYearDropdown, localeLabels.labelYearDropdown),\n labelGrid: resolveLabel(defaultLabels.labelGrid, customLabels?.labelGrid, localeLabels.labelGrid),\n labelGridcell: resolveLabel(defaultLabels.labelGridcell, customLabels?.labelGridcell, localeLabels.labelGridcell),\n labelNav: resolveLabel(defaultLabels.labelNav, customLabels?.labelNav, localeLabels.labelNav),\n labelWeekNumberHeader: resolveLabel(defaultLabels.labelWeekNumberHeader, customLabels?.labelWeekNumberHeader, localeLabels.labelWeekNumberHeader),\n labelWeekday: resolveLabel(defaultLabels.labelWeekday, customLabels?.labelWeekday, localeLabels.labelWeekday),\n };\n}\n"],"names":["resolveLabel","defaultLabel","customLabel","localeLabel","_args","getLabels","customLabels","options","localeLabels","defaultLabels","defaultLabels.labelDayButton","defaultLabels.labelMonthDropdown","defaultLabels.labelNext","defaultLabels.labelPrevious","defaultLabels.labelWeekNumber","defaultLabels.labelYearDropdown","defaultLabels.labelGrid","defaultLabels.labelGridcell","defaultLabels.labelNav","defaultLabels.labelWeekNumberHeader","defaultLabels.labelWeekday"],"mappings":";;;;;;;;;;;;AACA,MAAMA,IAAe,CAACC,GAAcC,GAAaC,MACzCD,MAEAC,IACQ,OAAOA,KAAgB,aACzBA,IACA,IAAIC,MAAUD,IAEjBF;AAYJ,SAASI,EAAUC,GAAcC,GAAS;AAC7C,QAAMC,IAAeD,EAAQ,QAAQ,UAAU,CAAA;AAC/C,SAAO;AAAA,IACH,GAAGE;AAAAA,IACH,GAAIH,KAAgB,CAAA;AAAA,IACpB,gBAAgBN,EAAaU,GAA8BJ,GAAc,gBAAgBE,EAAa,cAAc;AAAA,IACpH,oBAAoBR,EAAaW,GAAkCL,GAAc,oBAAoBE,EAAa,kBAAkB;AAAA,IACpI,WAAWR,EAAaY,GAAyBN,GAAc,WAAWE,EAAa,SAAS;AAAA,IAChG,eAAeR,EAAaa,GAA6BP,GAAc,eAAeE,EAAa,aAAa;AAAA,IAChH,iBAAiBR,EAAac,GAA+BR,GAAc,iBAAiBE,EAAa,eAAe;AAAA,IACxH,mBAAmBR,EAAae,GAAiCT,GAAc,mBAAmBE,EAAa,iBAAiB;AAAA,IAChI,WAAWR,EAAagB,GAAyBV,GAAc,WAAWE,EAAa,SAAS;AAAA,IAChG,eAAeR,EAAaiB,GAA6BX,GAAc,eAAeE,EAAa,aAAa;AAAA,IAChH,UAAUR,EAAakB,GAAwBZ,GAAc,UAAUE,EAAa,QAAQ;AAAA,IAC5F,uBAAuBR,EAAamB,GAAqCb,GAAc,uBAAuBE,EAAa,qBAAqB;AAAA,IAChJ,cAAcR,EAAaoB,GAA4Bd,GAAc,cAAcE,EAAa,YAAY;AAAA,EACpH;AACA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index109.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js"],"sourcesContent":["import { Animation, DayFlag, SelectionState, UI } from \"../UI.js\";\n/**\n * Returns the default class names for the UI elements.\n *\n * This function generates a mapping of default class names for various UI\n * elements, day flags, selection states, and animations.\n *\n * @returns An object containing the default class names.\n * @group Utilities\n */\nexport function getDefaultClassNames() {\n const classNames = {};\n for (const key in UI) {\n classNames[UI[key]] =\n `rdp-${UI[key]}`;\n }\n for (const key in DayFlag) {\n classNames[DayFlag[key]] =\n `rdp-${DayFlag[key]}`;\n }\n for (const key in SelectionState) {\n classNames[SelectionState[key]] =\n `rdp-${SelectionState[key]}`;\n }\n for (const key in Animation) {\n classNames[Animation[key]] =\n `rdp-${Animation[key]}`;\n }\n return classNames;\n}\n"],"names":["getDefaultClassNames","classNames","key","UI","DayFlag","SelectionState","Animation"],"mappings":";AAUO,SAASA,IAAuB;AACnC,QAAMC,IAAa,CAAA;AACnB,aAAWC,KAAOC;AACd,IAAAF,EAAWE,EAAGD,CAAG,CAAC,IACd,OAAOC,EAAGD,CAAG,CAAC;AAEtB,aAAWA,KAAOE;AACd,IAAAH,EAAWG,EAAQF,CAAG,CAAC,IACnB,OAAOE,EAAQF,CAAG,CAAC;AAE3B,aAAWA,KAAOG;AACd,IAAAJ,EAAWI,EAAeH,CAAG,CAAC,IAC1B,OAAOG,EAAeH,CAAG,CAAC;AAElC,aAAWA,KAAOI;AACd,IAAAL,EAAWK,EAAUJ,CAAG,CAAC,IACrB,OAAOI,EAAUJ,CAAG,CAAC;AAE7B,SAAOD;AACX;","x_google_ignoreList":[0]}