@rpcbase/ui 0.230.0 → 0.232.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 (562) hide show
  1. package/dist/components/I18nField/index.d.ts.map +1 -1
  2. package/dist/components/PhoneNumberInput/index.d.ts.map +1 -1
  3. package/dist/index11.js +291 -278
  4. package/dist/index11.js.map +1 -1
  5. package/dist/index127.js +36 -36
  6. package/dist/index139.js +6 -6
  7. package/dist/index142.js +10 -10
  8. package/dist/index144.js +2 -2
  9. package/dist/index145.js +3 -3
  10. package/dist/index146.js +1 -1
  11. package/dist/index148.js +2 -2
  12. package/dist/index150.js +2 -2
  13. package/dist/index171.js +11 -13
  14. package/dist/index171.js.map +1 -1
  15. package/dist/index172.js +62 -148
  16. package/dist/index172.js.map +1 -1
  17. package/dist/index173.js +37 -30
  18. package/dist/index173.js.map +1 -1
  19. package/dist/index174.js +14 -10
  20. package/dist/index174.js.map +1 -1
  21. package/dist/index175.js +23 -48
  22. package/dist/index175.js.map +1 -1
  23. package/dist/index176.js +109 -10
  24. package/dist/index176.js.map +1 -1
  25. package/dist/index177.js +13 -45
  26. package/dist/index177.js.map +1 -1
  27. package/dist/index178.js +4 -95
  28. package/dist/index178.js.map +1 -1
  29. package/dist/index179.js +4 -87
  30. package/dist/index179.js.map +1 -1
  31. package/dist/index18.js +247 -240
  32. package/dist/index18.js.map +1 -1
  33. package/dist/index180.js +5 -106
  34. package/dist/index180.js.map +1 -1
  35. package/dist/index181.js +11 -52
  36. package/dist/index181.js.map +1 -1
  37. package/dist/index182.js +19 -11
  38. package/dist/index182.js.map +1 -1
  39. package/dist/index183.js +13 -38
  40. package/dist/index183.js.map +1 -1
  41. package/dist/index184.js +261 -8
  42. package/dist/index184.js.map +1 -1
  43. package/dist/index185.js +4 -116
  44. package/dist/index185.js.map +1 -1
  45. package/dist/index186.js +28 -18
  46. package/dist/index186.js.map +1 -1
  47. package/dist/index187.js +126 -15
  48. package/dist/index187.js.map +1 -1
  49. package/dist/index188.js +5 -3
  50. package/dist/index188.js.map +1 -1
  51. package/dist/index189.js +76 -34
  52. package/dist/index189.js.map +1 -1
  53. package/dist/index190.js +65 -19
  54. package/dist/index190.js.map +1 -1
  55. package/dist/index191.js +8 -9
  56. package/dist/index191.js.map +1 -1
  57. package/dist/index192.js +15 -8
  58. package/dist/index192.js.map +1 -1
  59. package/dist/index193.js +91 -18
  60. package/dist/index193.js.map +1 -1
  61. package/dist/index194.js +63 -26
  62. package/dist/index194.js.map +1 -1
  63. package/dist/index195.js +44 -15
  64. package/dist/index195.js.map +1 -1
  65. package/dist/index196.js +13 -58
  66. package/dist/index196.js.map +1 -1
  67. package/dist/index197.js +154 -8
  68. package/dist/index197.js.map +1 -1
  69. package/dist/index198.js +28 -64
  70. package/dist/index198.js.map +1 -1
  71. package/dist/index199.js +9 -19
  72. package/dist/index199.js.map +1 -1
  73. package/dist/index200.js +46 -14
  74. package/dist/index200.js.map +1 -1
  75. package/dist/index201.js +11 -5
  76. package/dist/index201.js.map +1 -1
  77. package/dist/index202.js +43 -4
  78. package/dist/index202.js.map +1 -1
  79. package/dist/index203.js +95 -6
  80. package/dist/index203.js.map +1 -1
  81. package/dist/index204.js +86 -4
  82. package/dist/index204.js.map +1 -1
  83. package/dist/index205.js +105 -6
  84. package/dist/index205.js.map +1 -1
  85. package/dist/index206.js +52 -16
  86. package/dist/index206.js.map +1 -1
  87. package/dist/index207.js +11 -4
  88. package/dist/index207.js.map +1 -1
  89. package/dist/index208.js +37 -4
  90. package/dist/index208.js.map +1 -1
  91. package/dist/index209.js +8 -12
  92. package/dist/index209.js.map +1 -1
  93. package/dist/index210.js +116 -9
  94. package/dist/index210.js.map +1 -1
  95. package/dist/index211.js +17 -13
  96. package/dist/index211.js.map +1 -1
  97. package/dist/index212.js +15 -13
  98. package/dist/index212.js.map +1 -1
  99. package/dist/index213.js +3 -4
  100. package/dist/index213.js.map +1 -1
  101. package/dist/index214.js +36 -5
  102. package/dist/index214.js.map +1 -1
  103. package/dist/index215.js +20 -6
  104. package/dist/index215.js.map +1 -1
  105. package/dist/index216.js +9 -5
  106. package/dist/index216.js.map +1 -1
  107. package/dist/index217.js +8 -54
  108. package/dist/index217.js.map +1 -1
  109. package/dist/index218.js +19 -8
  110. package/dist/index218.js.map +1 -1
  111. package/dist/index219.js +28 -4
  112. package/dist/index219.js.map +1 -1
  113. package/dist/index220.js +16 -4
  114. package/dist/index220.js.map +1 -1
  115. package/dist/index221.js +58 -8
  116. package/dist/index221.js.map +1 -1
  117. package/dist/index222.js +8 -4
  118. package/dist/index222.js.map +1 -1
  119. package/dist/index223.js +66 -4
  120. package/dist/index223.js.map +1 -1
  121. package/dist/index224.js +19 -3
  122. package/dist/index224.js.map +1 -1
  123. package/dist/index225.js +16 -10
  124. package/dist/index225.js.map +1 -1
  125. package/dist/index226.js +5 -9
  126. package/dist/index226.js.map +1 -1
  127. package/dist/index227.js +5 -9
  128. package/dist/index227.js.map +1 -1
  129. package/dist/index228.js +6 -10
  130. package/dist/index228.js.map +1 -1
  131. package/dist/index229.js +4 -10
  132. package/dist/index229.js.map +1 -1
  133. package/dist/index230.js +6 -9
  134. package/dist/index230.js.map +1 -1
  135. package/dist/index231.js +16 -6
  136. package/dist/index231.js.map +1 -1
  137. package/dist/index232.js +4 -5
  138. package/dist/index232.js.map +1 -1
  139. package/dist/index233.js +4 -4
  140. package/dist/index233.js.map +1 -1
  141. package/dist/index234.js +12 -5
  142. package/dist/index234.js.map +1 -1
  143. package/dist/index235.js +9 -6
  144. package/dist/index235.js.map +1 -1
  145. package/dist/index236.js +13 -5
  146. package/dist/index236.js.map +1 -1
  147. package/dist/index237.js +13 -16
  148. package/dist/index237.js.map +1 -1
  149. package/dist/index238.js +4 -7
  150. package/dist/index238.js.map +1 -1
  151. package/dist/index239.js +5 -10
  152. package/dist/index239.js.map +1 -1
  153. package/dist/index240.js +6 -10
  154. package/dist/index240.js.map +1 -1
  155. package/dist/index241.js +5 -21
  156. package/dist/index241.js.map +1 -1
  157. package/dist/index242.js +54 -10
  158. package/dist/index242.js.map +1 -1
  159. package/dist/index243.js +8 -9
  160. package/dist/index243.js.map +1 -1
  161. package/dist/index244.js +4 -9
  162. package/dist/index244.js.map +1 -1
  163. package/dist/index245.js +4 -4
  164. package/dist/index245.js.map +1 -1
  165. package/dist/index246.js +8 -5
  166. package/dist/index246.js.map +1 -1
  167. package/dist/index247.js +4 -16
  168. package/dist/index247.js.map +1 -1
  169. package/dist/index248.js +4 -9
  170. package/dist/index248.js.map +1 -1
  171. package/dist/index249.js +3 -18
  172. package/dist/index249.js.map +1 -1
  173. package/dist/index250.js +10 -15
  174. package/dist/index250.js.map +1 -1
  175. package/dist/index251.js +9 -12
  176. package/dist/index251.js.map +1 -1
  177. package/dist/index252.js +9 -29
  178. package/dist/index252.js.map +1 -1
  179. package/dist/index253.js +10 -12
  180. package/dist/index253.js.map +1 -1
  181. package/dist/index254.js +10 -25
  182. package/dist/index254.js.map +1 -1
  183. package/dist/index255.js +9 -5
  184. package/dist/index255.js.map +1 -1
  185. package/dist/index256.js +7 -20
  186. package/dist/index256.js.map +1 -1
  187. package/dist/index257.js +5 -66
  188. package/dist/index257.js.map +1 -1
  189. package/dist/index258.js +4 -6
  190. package/dist/index258.js.map +1 -1
  191. package/dist/index259.js +5 -5
  192. package/dist/index259.js.map +1 -1
  193. package/dist/index260.js +6 -11
  194. package/dist/index260.js.map +1 -1
  195. package/dist/index261.js +5 -50
  196. package/dist/index261.js.map +1 -1
  197. package/dist/index262.js +17 -4
  198. package/dist/index262.js.map +1 -1
  199. package/dist/index263.js +7 -29
  200. package/dist/index263.js.map +1 -1
  201. package/dist/index264.js +10 -16
  202. package/dist/index264.js.map +1 -1
  203. package/dist/index265.js +10 -5
  204. package/dist/index265.js.map +1 -1
  205. package/dist/index266.js +21 -21
  206. package/dist/index266.js.map +1 -1
  207. package/dist/index267.js +10 -51
  208. package/dist/index267.js.map +1 -1
  209. package/dist/index268.js +9 -25
  210. package/dist/index268.js.map +1 -1
  211. package/dist/index269.js +9 -41
  212. package/dist/index269.js.map +1 -1
  213. package/dist/index270.js +4 -39
  214. package/dist/index270.js.map +1 -1
  215. package/dist/index271.js +6 -45
  216. package/dist/index271.js.map +1 -1
  217. package/dist/index272.js +16 -23
  218. package/dist/index272.js.map +1 -1
  219. package/dist/index273.js +9 -19
  220. package/dist/index273.js.map +1 -1
  221. package/dist/index274.js +18 -20
  222. package/dist/index274.js.map +1 -1
  223. package/dist/index275.js +15 -70
  224. package/dist/index275.js.map +1 -1
  225. package/dist/index276.js +12 -17
  226. package/dist/index276.js.map +1 -1
  227. package/dist/index277.js +29 -11
  228. package/dist/index277.js.map +1 -1
  229. package/dist/index278.js +12 -27
  230. package/dist/index278.js.map +1 -1
  231. package/dist/index279.js +25 -13
  232. package/dist/index279.js.map +1 -1
  233. package/dist/index280.js +5 -18
  234. package/dist/index280.js.map +1 -1
  235. package/dist/index281.js +20 -37
  236. package/dist/index281.js.map +1 -1
  237. package/dist/index282.js +64 -63
  238. package/dist/index282.js.map +1 -1
  239. package/dist/index283.js +6 -262
  240. package/dist/index283.js.map +1 -1
  241. package/dist/index284.js +10 -277
  242. package/dist/index284.js.map +1 -1
  243. package/dist/index285.js +49 -67
  244. package/dist/index285.js.map +1 -1
  245. package/dist/index286.js +4 -46
  246. package/dist/index286.js.map +1 -1
  247. package/dist/index287.js +27 -97
  248. package/dist/index287.js.map +1 -1
  249. package/dist/index288.js +15 -82
  250. package/dist/index288.js.map +1 -1
  251. package/dist/index289.js +6 -13
  252. package/dist/index289.js.map +1 -1
  253. package/dist/index290.js +21 -3
  254. package/dist/index290.js.map +1 -1
  255. package/dist/index291.js +50 -28
  256. package/dist/index291.js.map +1 -1
  257. package/dist/index292.js +25 -16
  258. package/dist/index292.js.map +1 -1
  259. package/dist/index293.js +42 -38
  260. package/dist/index293.js.map +1 -1
  261. package/dist/index294.js +39 -34
  262. package/dist/index294.js.map +1 -1
  263. package/dist/index295.js +45 -69
  264. package/dist/index295.js.map +1 -1
  265. package/dist/index296.js +20 -16
  266. package/dist/index296.js.map +1 -1
  267. package/dist/index297.js +70 -3
  268. package/dist/index297.js.map +1 -1
  269. package/dist/index298.js +15 -108
  270. package/dist/index298.js.map +1 -1
  271. package/dist/index299.js +11 -26
  272. package/dist/index299.js.map +1 -1
  273. package/dist/index300.js +26 -27
  274. package/dist/index300.js.map +1 -1
  275. package/dist/index301.js +14 -4
  276. package/dist/index301.js.map +1 -1
  277. package/dist/index302.js +18 -126
  278. package/dist/index302.js.map +1 -1
  279. package/dist/index303.js +36 -4
  280. package/dist/index303.js.map +1 -1
  281. package/dist/index304.js +258 -74
  282. package/dist/index304.js.map +1 -1
  283. package/dist/index305.js +269 -260
  284. package/dist/index305.js.map +1 -1
  285. package/dist/index306.js +68 -11
  286. package/dist/index306.js.map +1 -1
  287. package/dist/index307.js +97 -25
  288. package/dist/index307.js.map +1 -1
  289. package/dist/index308.js +83 -15
  290. package/dist/index308.js.map +1 -1
  291. package/dist/index309.js +3 -10
  292. package/dist/index309.js.map +1 -1
  293. package/dist/index310.js +28 -24
  294. package/dist/index310.js.map +1 -1
  295. package/dist/index311.js +16 -16
  296. package/dist/index311.js.map +1 -1
  297. package/dist/index312.js +34 -125
  298. package/dist/index312.js.map +1 -1
  299. package/dist/index313.js +15 -4
  300. package/dist/index313.js.map +1 -1
  301. package/dist/index314.js +3 -40
  302. package/dist/index314.js.map +1 -1
  303. package/dist/index315.js +24 -63
  304. package/dist/index315.js.map +1 -1
  305. package/dist/index316.js +28 -13
  306. package/dist/index316.js.map +1 -1
  307. package/dist/index317.js +4 -14
  308. package/dist/index317.js.map +1 -1
  309. package/dist/index318.js +78 -7
  310. package/dist/index318.js.map +1 -1
  311. package/dist/index319.js +270 -13
  312. package/dist/index319.js.map +1 -1
  313. package/dist/index320.js +11 -5
  314. package/dist/index320.js.map +1 -1
  315. package/dist/index321.js +10 -3
  316. package/dist/index321.js.map +1 -1
  317. package/dist/index322.js +25 -10
  318. package/dist/index322.js.map +1 -1
  319. package/dist/index323.js +16 -7
  320. package/dist/index323.js.map +1 -1
  321. package/dist/index324.js +109 -117
  322. package/dist/index324.js.map +1 -1
  323. package/dist/index325.js +5 -261
  324. package/dist/index325.js.map +1 -1
  325. package/dist/index326.js +39 -398
  326. package/dist/index326.js.map +1 -1
  327. package/dist/index327.js +65 -52
  328. package/dist/index327.js.map +1 -1
  329. package/dist/index328.js +14 -12
  330. package/dist/index328.js.map +1 -1
  331. package/dist/index329.js +7 -11
  332. package/dist/index329.js.map +1 -1
  333. package/dist/index330.js +5 -4
  334. package/dist/index330.js.map +1 -1
  335. package/dist/index331.js +3 -11
  336. package/dist/index331.js.map +1 -1
  337. package/dist/index332.js +11 -4
  338. package/dist/index332.js.map +1 -1
  339. package/dist/index333.js +8 -5
  340. package/dist/index333.js.map +1 -1
  341. package/dist/index334.js +133 -11
  342. package/dist/index334.js.map +1 -1
  343. package/dist/index335.js +395 -74
  344. package/dist/index335.js.map +1 -1
  345. package/dist/index336.js +51 -65
  346. package/dist/index336.js.map +1 -1
  347. package/dist/index337.js +11 -8
  348. package/dist/index337.js.map +1 -1
  349. package/dist/index338.js +11 -92
  350. package/dist/index338.js.map +1 -1
  351. package/dist/index339.js +7 -19
  352. package/dist/index339.js.map +1 -1
  353. package/dist/index34.js +4 -4
  354. package/dist/index340.js +11 -4
  355. package/dist/index340.js.map +1 -1
  356. package/dist/index341.js +8 -17
  357. package/dist/index341.js.map +1 -1
  358. package/dist/index342.js +13 -12
  359. package/dist/index342.js.map +1 -1
  360. package/dist/index343.js +3 -8
  361. package/dist/index343.js.map +1 -1
  362. package/dist/index344.js +3 -11
  363. package/dist/index344.js.map +1 -1
  364. package/dist/index345.js +16 -7
  365. package/dist/index345.js.map +1 -1
  366. package/dist/index346.js +50 -12
  367. package/dist/index346.js.map +1 -1
  368. package/dist/index347.js +5 -3
  369. package/dist/index347.js.map +1 -1
  370. package/dist/index348.js +122 -3
  371. package/dist/index348.js.map +1 -1
  372. package/dist/index349.js +33 -4
  373. package/dist/index349.js.map +1 -1
  374. package/dist/index35.js +5 -5
  375. package/dist/index350.js +74 -15
  376. package/dist/index350.js.map +1 -1
  377. package/dist/index351.js +141 -7
  378. package/dist/index351.js.map +1 -1
  379. package/dist/index352.js +61 -51
  380. package/dist/index352.js.map +1 -1
  381. package/dist/index353.js +49 -11
  382. package/dist/index353.js.map +1 -1
  383. package/dist/index354.js +15 -17
  384. package/dist/index354.js.map +1 -1
  385. package/dist/index355.js +8 -5
  386. package/dist/index355.js.map +1 -1
  387. package/dist/index356.js +4 -5
  388. package/dist/index356.js.map +1 -1
  389. package/dist/index357.js +11 -20
  390. package/dist/index357.js.map +1 -1
  391. package/dist/index358.js +21 -44
  392. package/dist/index358.js.map +1 -1
  393. package/dist/index359.js +21 -18
  394. package/dist/index359.js.map +1 -1
  395. package/dist/index36.js +10 -10
  396. package/dist/index360.js +5 -5
  397. package/dist/index360.js.map +1 -1
  398. package/dist/index361.js +16 -199
  399. package/dist/index361.js.map +1 -1
  400. package/dist/index362.js +12 -77
  401. package/dist/index362.js.map +1 -1
  402. package/dist/index363.js +4 -123
  403. package/dist/index363.js.map +1 -1
  404. package/dist/index364.js +10 -16
  405. package/dist/index364.js.map +1 -1
  406. package/dist/index365.js +16 -32
  407. package/dist/index365.js.map +1 -1
  408. package/dist/index366.js +5 -73
  409. package/dist/index366.js.map +1 -1
  410. package/dist/index367.js +20 -142
  411. package/dist/index367.js.map +1 -1
  412. package/dist/index368.js +45 -62
  413. package/dist/index368.js.map +1 -1
  414. package/dist/index369.js +17 -49
  415. package/dist/index369.js.map +1 -1
  416. package/dist/index37.js +3 -3
  417. package/dist/index370.js +4 -4
  418. package/dist/index370.js.map +1 -1
  419. package/dist/index371.js +200 -11
  420. package/dist/index371.js.map +1 -1
  421. package/dist/index372.js +76 -20
  422. package/dist/index372.js.map +1 -1
  423. package/dist/index373.js +8 -4
  424. package/dist/index373.js.map +1 -1
  425. package/dist/index374.js +26 -5
  426. package/dist/index374.js.map +1 -1
  427. package/dist/index375.js +27 -4
  428. package/dist/index375.js.map +1 -1
  429. package/dist/index376.js +136 -14
  430. package/dist/index376.js.map +1 -1
  431. package/dist/index377.js +12 -8
  432. package/dist/index377.js.map +1 -1
  433. package/dist/index378.js +226 -5
  434. package/dist/index378.js.map +1 -1
  435. package/dist/index379.js +3 -4
  436. package/dist/index379.js.map +1 -1
  437. package/dist/index38.js +4 -4
  438. package/dist/index380.js +19 -545
  439. package/dist/index380.js.map +1 -1
  440. package/dist/index381.js +77 -46
  441. package/dist/index381.js.map +1 -1
  442. package/dist/index382.js +12 -18
  443. package/dist/index382.js.map +1 -1
  444. package/dist/index383.js +3 -5
  445. package/dist/index383.js.map +1 -1
  446. package/dist/index384.js +71 -7
  447. package/dist/index384.js.map +1 -1
  448. package/dist/index385.js +9 -7
  449. package/dist/index385.js.map +1 -1
  450. package/dist/index386.js +15 -7
  451. package/dist/index386.js.map +1 -1
  452. package/dist/index387.js +4 -11
  453. package/dist/index387.js.map +1 -1
  454. package/dist/index388.js +4 -8
  455. package/dist/index388.js.map +1 -1
  456. package/dist/index389.js +4 -13
  457. package/dist/index389.js.map +1 -1
  458. package/dist/index39.js +5 -5
  459. package/dist/index390.js +16 -3
  460. package/dist/index390.js.map +1 -1
  461. package/dist/index391.js +9 -3
  462. package/dist/index391.js.map +1 -1
  463. package/dist/index392.js +5 -8
  464. package/dist/index392.js.map +1 -1
  465. package/dist/index393.js +5 -26
  466. package/dist/index393.js.map +1 -1
  467. package/dist/index394.js +543 -24
  468. package/dist/index394.js.map +1 -1
  469. package/dist/index395.js +44 -135
  470. package/dist/index395.js.map +1 -1
  471. package/dist/index396.js +16 -11
  472. package/dist/index396.js.map +1 -1
  473. package/dist/index397.js +5 -226
  474. package/dist/index397.js.map +1 -1
  475. package/dist/index398.js +7 -3
  476. package/dist/index398.js.map +1 -1
  477. package/dist/index399.js +6 -19
  478. package/dist/index399.js.map +1 -1
  479. package/dist/index40.js +3 -3
  480. package/dist/index400.js +7 -77
  481. package/dist/index400.js.map +1 -1
  482. package/dist/index401.js +12 -12
  483. package/dist/index401.js.map +1 -1
  484. package/dist/index402.js +8 -3
  485. package/dist/index402.js.map +1 -1
  486. package/dist/index403.js +12 -71
  487. package/dist/index403.js.map +1 -1
  488. package/dist/index404.js +3 -9
  489. package/dist/index404.js.map +1 -1
  490. package/dist/index405.js +3 -16
  491. package/dist/index405.js.map +1 -1
  492. package/dist/index406.js +14 -4
  493. package/dist/index406.js.map +1 -1
  494. package/dist/index407.js +490 -54
  495. package/dist/index407.js.map +1 -1
  496. package/dist/index408.js +5 -68
  497. package/dist/index408.js.map +1 -1
  498. package/dist/index409.js +55 -30
  499. package/dist/index409.js.map +1 -1
  500. package/dist/index41.js +10 -10
  501. package/dist/index410.js +68 -9
  502. package/dist/index410.js.map +1 -1
  503. package/dist/index411.js +26 -148
  504. package/dist/index411.js.map +1 -1
  505. package/dist/index412.js +9 -108
  506. package/dist/index412.js.map +1 -1
  507. package/dist/index413.js +153 -8
  508. package/dist/index413.js.map +1 -1
  509. package/dist/index414.js +108 -2
  510. package/dist/index414.js.map +1 -1
  511. package/dist/index415.js +7 -43
  512. package/dist/index415.js.map +1 -1
  513. package/dist/index416.js +2 -56
  514. package/dist/index416.js.map +1 -1
  515. package/dist/index417.js +43 -7
  516. package/dist/index417.js.map +1 -1
  517. package/dist/index418.js +56 -2
  518. package/dist/index418.js.map +1 -1
  519. package/dist/index419.js +7 -54
  520. package/dist/index419.js.map +1 -1
  521. package/dist/index420.js +2 -56
  522. package/dist/index420.js.map +1 -1
  523. package/dist/index421.js +54 -14
  524. package/dist/index421.js.map +1 -1
  525. package/dist/index422.js +51 -487
  526. package/dist/index422.js.map +1 -1
  527. package/dist/index44.js +1 -1
  528. package/dist/index45.js +2 -2
  529. package/dist/index49.js +34 -34
  530. package/dist/index50.js +29 -29
  531. package/dist/index51.js +2 -2
  532. package/dist/index52.js +12 -12
  533. package/dist/index53.js +4 -4
  534. package/dist/index54.js +1 -1
  535. package/dist/index55.js +22 -22
  536. package/dist/index56.js +5 -5
  537. package/dist/index57.js +5 -5
  538. package/dist/index58.js +8 -8
  539. package/dist/index59.js +5 -5
  540. package/dist/index60.js +17 -17
  541. package/dist/index61.js +5 -5
  542. package/dist/index62.js +3 -3
  543. package/dist/index66.js +1 -1
  544. package/dist/index67.js +1 -1
  545. package/dist/index72.js +6 -2
  546. package/dist/index72.js.map +1 -1
  547. package/dist/index73.js +8 -2
  548. package/dist/index73.js.map +1 -1
  549. package/dist/index74.js +5 -5
  550. package/dist/index74.js.map +1 -1
  551. package/dist/index75.js +2 -8
  552. package/dist/index75.js.map +1 -1
  553. package/dist/index76.js +2 -6
  554. package/dist/index76.js.map +1 -1
  555. package/dist/index80.js +4 -4
  556. package/dist/index85.js +1 -1
  557. package/dist/index86.js +1 -1
  558. package/dist/index93.js +1 -1
  559. package/dist/index94.js +6 -6
  560. package/dist/index96.js +4 -4
  561. package/dist/index98.js +1 -1
  562. package/package.json +1 -1
package/dist/index275.js CHANGED
@@ -1,74 +1,19 @@
1
- import * as c from "react";
2
- import { serializeValue as a } from "./index353.js";
3
- import { j as i } from "./index30.js";
4
- function s(r) {
5
- return r != null && r.length > 0 && typeof r[0] == "object" && r[0] != null && "items" in r[0];
6
- }
7
- function A(r) {
8
- if (!Array.isArray(r))
9
- return r != null && "null" in r;
10
- const n = r;
11
- if (s(n)) {
12
- for (const l of n)
13
- for (const u of l.items)
14
- if (u && u.value == null && u.label != null)
15
- return !0;
16
- return !1;
17
- }
18
- for (const l of n)
19
- if (l && l.value == null && l.label != null)
20
- return !0;
21
- return !1;
22
- }
23
- function b(r, n) {
24
- if (n && r != null)
25
- return n(r) ?? "";
26
- if (r && typeof r == "object") {
27
- if ("label" in r && r.label != null)
28
- return String(r.label);
29
- if ("value" in r)
30
- return String(r.value);
31
- }
32
- return a(r);
33
- }
34
- function h(r, n) {
35
- return n && r != null ? n(r) ?? "" : r && typeof r == "object" && "value" in r && "label" in r ? a(r.value) : a(r);
36
- }
37
- function p(r, n, l) {
38
- function u() {
39
- return b(r, l);
40
- }
41
- if (l && r != null)
42
- return l(r);
43
- if (r && typeof r == "object" && "label" in r && r.label != null)
44
- return r.label;
45
- if (n && !Array.isArray(n))
46
- return n[r] ?? u();
47
- if (Array.isArray(n)) {
48
- const e = n, t = s(e) ? e.flatMap((f) => f.items) : e;
49
- if (r == null || typeof r != "object") {
50
- const f = t.find((o) => o.value === r);
51
- return f && f.label != null ? f.label : u();
52
- }
53
- if ("value" in r) {
54
- const f = t.find((o) => o && o.value === r.value);
55
- if (f && f.label != null)
56
- return f.label;
57
- }
58
- }
59
- return u();
60
- }
61
- function d(r, n, l) {
62
- return r.reduce((u, e, t) => (t > 0 && u.push(", "), u.push(/* @__PURE__ */ i.jsx(c.Fragment, {
63
- children: p(e, n, l)
64
- }, t)), u), []);
1
+ import { useControlledValue as x } from "./index271.js";
2
+ import { rangeIncludesDate as R } from "./index147.js";
3
+ import { addToRange as y } from "./index277.js";
4
+ import { rangeContainsModifiers as C } from "./index279.js";
5
+ function b(s, l) {
6
+ const { disabled: c, excludeDisabled: i, selected: d, required: f, onSelect: o } = s, [r, m] = x(d, o ? d : void 0), t = o ? d : r;
7
+ return {
8
+ selected: t,
9
+ select: (n, u, a) => {
10
+ const { min: S, max: p } = s, e = n ? y(n, t, S, p, f, l) : void 0;
11
+ return i && c && e?.from && e.to && C({ from: e.from, to: e.to }, c, l) && (e.from = n, e.to = void 0), o || m(e), o?.(e, n, u, a), e;
12
+ },
13
+ isSelected: (n) => t && R(t, n, !1, l)
14
+ };
65
15
  }
66
16
  export {
67
- A as hasNullItemLabel,
68
- s as isGroupedItems,
69
- d as resolveMultipleLabels,
70
- p as resolveSelectedLabel,
71
- b as stringifyAsLabel,
72
- h as stringifyAsValue
17
+ b as useRange
73
18
  };
74
19
  //# sourceMappingURL=index275.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index275.js","sources":["../../../node_modules/@base-ui/react/esm/internals/resolveValueLabel.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { serializeValue } from \"./serializeValue.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport function isGroupedItems(items) {\n return items != null && items.length > 0 && typeof items[0] === 'object' && items[0] != null && 'items' in items[0];\n}\n\n/**\n * Checks if the items array contains an item with a null value that has a non-null label.\n */\nexport function hasNullItemLabel(items) {\n if (!Array.isArray(items)) {\n return items != null && 'null' in items;\n }\n const arrayItems = items;\n if (isGroupedItems(arrayItems)) {\n for (const group of arrayItems) {\n for (const item of group.items) {\n if (item && item.value == null && item.label != null) {\n return true;\n }\n }\n }\n return false;\n }\n for (const item of arrayItems) {\n if (item && item.value == null && item.label != null) {\n return true;\n }\n }\n return false;\n}\nexport function stringifyAsLabel(item, itemToStringLabel) {\n if (itemToStringLabel && item != null) {\n return itemToStringLabel(item) ?? '';\n }\n if (item && typeof item === 'object') {\n if ('label' in item && item.label != null) {\n return String(item.label);\n }\n if ('value' in item) {\n return String(item.value);\n }\n }\n return serializeValue(item);\n}\nexport function stringifyAsValue(item, itemToStringValue) {\n if (itemToStringValue && item != null) {\n return itemToStringValue(item) ?? '';\n }\n if (item && typeof item === 'object' && 'value' in item && 'label' in item) {\n return serializeValue(item.value);\n }\n return serializeValue(item);\n}\nexport function resolveSelectedLabel(value, items, itemToStringLabel) {\n function fallback() {\n return stringifyAsLabel(value, itemToStringLabel);\n }\n if (itemToStringLabel && value != null) {\n return itemToStringLabel(value);\n }\n\n // Custom object with explicit label takes precedence\n if (value && typeof value === 'object' && 'label' in value && value.label != null) {\n return value.label;\n }\n\n // Items provided as plain record map\n if (items && !Array.isArray(items)) {\n return items[value] ?? fallback();\n }\n\n // Items provided as array (flat or grouped)\n if (Array.isArray(items)) {\n const arrayItems = items;\n const flatItems = isGroupedItems(arrayItems) ? arrayItems.flatMap(group => group.items) : arrayItems;\n if (value == null || typeof value !== 'object') {\n const match = flatItems.find(item => item.value === value);\n if (match && match.label != null) {\n return match.label;\n }\n return fallback();\n }\n\n // Object without explicit label: try matching by its `value` property\n if ('value' in value) {\n const match = flatItems.find(item => item && item.value === value.value);\n if (match && match.label != null) {\n return match.label;\n }\n }\n }\n return fallback();\n}\nexport function resolveMultipleLabels(values, items, itemToStringLabel) {\n return values.reduce((acc, value, index) => {\n if (index > 0) {\n acc.push(', ');\n }\n acc.push(/*#__PURE__*/_jsx(React.Fragment, {\n children: resolveSelectedLabel(value, items, itemToStringLabel)\n }, index));\n return acc;\n }, []);\n}"],"names":["isGroupedItems","items","hasNullItemLabel","arrayItems","group","item","stringifyAsLabel","itemToStringLabel","serializeValue","stringifyAsValue","itemToStringValue","resolveSelectedLabel","value","fallback","flatItems","match","resolveMultipleLabels","values","acc","index","_jsx","React"],"mappings":";;;AAKO,SAASA,EAAeC,GAAO;AACpC,SAAOA,KAAS,QAAQA,EAAM,SAAS,KAAK,OAAOA,EAAM,CAAC,KAAM,YAAYA,EAAM,CAAC,KAAK,QAAQ,WAAWA,EAAM,CAAC;AACpH;AAKO,SAASC,EAAiBD,GAAO;AACtC,MAAI,CAAC,MAAM,QAAQA,CAAK;AACtB,WAAOA,KAAS,QAAQ,UAAUA;AAEpC,QAAME,IAAaF;AACnB,MAAID,EAAeG,CAAU,GAAG;AAC9B,eAAWC,KAASD;AAClB,iBAAWE,KAAQD,EAAM;AACvB,YAAIC,KAAQA,EAAK,SAAS,QAAQA,EAAK,SAAS;AAC9C,iBAAO;AAIb,WAAO;AAAA,EACT;AACA,aAAWA,KAAQF;AACjB,QAAIE,KAAQA,EAAK,SAAS,QAAQA,EAAK,SAAS;AAC9C,aAAO;AAGX,SAAO;AACT;AACO,SAASC,EAAiBD,GAAME,GAAmB;AACxD,MAAIA,KAAqBF,KAAQ;AAC/B,WAAOE,EAAkBF,CAAI,KAAK;AAEpC,MAAIA,KAAQ,OAAOA,KAAS,UAAU;AACpC,QAAI,WAAWA,KAAQA,EAAK,SAAS;AACnC,aAAO,OAAOA,EAAK,KAAK;AAE1B,QAAI,WAAWA;AACb,aAAO,OAAOA,EAAK,KAAK;AAAA,EAE5B;AACA,SAAOG,EAAeH,CAAI;AAC5B;AACO,SAASI,EAAiBJ,GAAMK,GAAmB;AACxD,SAAIA,KAAqBL,KAAQ,OACxBK,EAAkBL,CAAI,KAAK,KAEhCA,KAAQ,OAAOA,KAAS,YAAY,WAAWA,KAAQ,WAAWA,IAC7DG,EAAeH,EAAK,KAAK,IAE3BG,EAAeH,CAAI;AAC5B;AACO,SAASM,EAAqBC,GAAOX,GAAOM,GAAmB;AACpE,WAASM,IAAW;AAClB,WAAOP,EAAiBM,GAAOL,CAAiB;AAAA,EAClD;AACA,MAAIA,KAAqBK,KAAS;AAChC,WAAOL,EAAkBK,CAAK;AAIhC,MAAIA,KAAS,OAAOA,KAAU,YAAY,WAAWA,KAASA,EAAM,SAAS;AAC3E,WAAOA,EAAM;AAIf,MAAIX,KAAS,CAAC,MAAM,QAAQA,CAAK;AAC/B,WAAOA,EAAMW,CAAK,KAAKC,EAAQ;AAIjC,MAAI,MAAM,QAAQZ,CAAK,GAAG;AACxB,UAAME,IAAaF,GACba,IAAYd,EAAeG,CAAU,IAAIA,EAAW,QAAQ,CAAAC,MAASA,EAAM,KAAK,IAAID;AAC1F,QAAIS,KAAS,QAAQ,OAAOA,KAAU,UAAU;AAC9C,YAAMG,IAAQD,EAAU,KAAK,CAAAT,MAAQA,EAAK,UAAUO,CAAK;AACzD,aAAIG,KAASA,EAAM,SAAS,OACnBA,EAAM,QAERF,EAAQ;AAAA,IACjB;AAGA,QAAI,WAAWD,GAAO;AACpB,YAAMG,IAAQD,EAAU,KAAK,CAAAT,MAAQA,KAAQA,EAAK,UAAUO,EAAM,KAAK;AACvE,UAAIG,KAASA,EAAM,SAAS;AAC1B,eAAOA,EAAM;AAAA,IAEjB;AAAA,EACF;AACA,SAAOF,EAAQ;AACjB;AACO,SAASG,EAAsBC,GAAQhB,GAAOM,GAAmB;AACtE,SAAOU,EAAO,OAAO,CAACC,GAAKN,GAAOO,OAC5BA,IAAQ,KACVD,EAAI,KAAK,IAAI,GAEfA,EAAI,KAAkBE,gBAAAA,MAAKC,EAAM,UAAU;AAAA,IACzC,UAAUV,EAAqBC,GAAOX,GAAOM,CAAiB;AAAA,EACpE,GAAOY,CAAK,CAAC,GACFD,IACN,CAAA,CAAE;AACP;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index275.js","sources":["../../../node_modules/react-day-picker/dist/esm/selection/useRange.js"],"sourcesContent":["import { useControlledValue } from \"../helpers/useControlledValue.js\";\nimport { addToRange, rangeContainsModifiers } from \"../utils/index.js\";\nimport { rangeIncludesDate } from \"../utils/rangeIncludesDate.js\";\n/**\n * Hook to manage range selection in the DayPicker component.\n *\n * @template T - The type of DayPicker props.\n * @param props - The DayPicker props.\n * @param dateLib - The date utility library instance.\n * @returns An object containing the selected range, a function to select a\n * range, and a function to check if a date is within the range.\n */\nexport function useRange(props, dateLib) {\n const { disabled, excludeDisabled, selected: initiallySelected, required, onSelect, } = props;\n const [internallySelected, setSelected] = useControlledValue(initiallySelected, onSelect ? initiallySelected : undefined);\n const selected = !onSelect ? internallySelected : initiallySelected;\n const isSelected = (date) => selected && rangeIncludesDate(selected, date, false, dateLib);\n const select = (triggerDate, modifiers, e) => {\n const { min, max } = props;\n const newRange = triggerDate\n ? addToRange(triggerDate, selected, min, max, required, dateLib)\n : undefined;\n if (excludeDisabled && disabled && newRange?.from && newRange.to) {\n if (rangeContainsModifiers({ from: newRange.from, to: newRange.to }, disabled, dateLib)) {\n // if a disabled days is found, the range is reset\n newRange.from = triggerDate;\n newRange.to = undefined;\n }\n }\n if (!onSelect) {\n setSelected(newRange);\n }\n onSelect?.(newRange, triggerDate, modifiers, e);\n return newRange;\n };\n return {\n selected,\n select,\n isSelected,\n };\n}\n"],"names":["useRange","props","dateLib","disabled","excludeDisabled","initiallySelected","required","onSelect","internallySelected","setSelected","useControlledValue","selected","triggerDate","modifiers","e","min","max","newRange","addToRange","rangeContainsModifiers","date","rangeIncludesDate"],"mappings":";;;;AAYO,SAASA,EAASC,GAAOC,GAAS;AACrC,QAAM,EAAE,UAAAC,GAAU,iBAAAC,GAAiB,UAAUC,GAAmB,UAAAC,GAAU,UAAAC,EAAQ,IAAMN,GAClF,CAACO,GAAoBC,CAAW,IAAIC,EAAmBL,GAAmBE,IAAWF,IAAoB,MAAS,GAClHM,IAAYJ,IAAgCF,IAArBG;AAoB7B,SAAO;AAAA,IACH,UAAAG;AAAA,IACA,QApBW,CAACC,GAAaC,GAAWC,MAAM;AAC1C,YAAM,EAAE,KAAAC,GAAK,KAAAC,EAAG,IAAKf,GACfgB,IAAWL,IACXM,EAAWN,GAAaD,GAAUI,GAAKC,GAAKV,GAAUJ,CAAO,IAC7D;AACN,aAAIE,KAAmBD,KAAYc,GAAU,QAAQA,EAAS,MACtDE,EAAuB,EAAE,MAAMF,EAAS,MAAM,IAAIA,EAAS,GAAE,GAAId,GAAUD,CAAO,MAElFe,EAAS,OAAOL,GAChBK,EAAS,KAAK,SAGjBV,KACDE,EAAYQ,CAAQ,GAExBV,IAAWU,GAAUL,GAAaC,GAAWC,CAAC,GACvCG;AAAA,IACX;AAAA,IAII,YAtBe,CAACG,MAAST,KAAYU,EAAkBV,GAAUS,GAAM,IAAOlB,CAAO;AAAA,EAuB7F;AACA;","x_google_ignoreList":[0]}
package/dist/index276.js CHANGED
@@ -1,21 +1,16 @@
1
- const i = (n, r) => Object.is(n, r);
2
- function u(n, r, t) {
3
- return n == null || r == null ? Object.is(n, r) : t(n, r);
4
- }
5
- function e(n, r, t) {
6
- return !n || n.length === 0 ? !1 : n.some((f) => f === void 0 ? !1 : u(r, f, t));
7
- }
8
- function o(n, r, t) {
9
- return !n || n.length === 0 ? -1 : n.findIndex((f) => f === void 0 ? !1 : u(f, r, t));
10
- }
11
- function I(n, r, t) {
12
- return n.filter((f) => !u(r, f, t));
1
+ import { useControlledValue as a } from "./index271.js";
2
+ function q(u, S) {
3
+ const { selected: c, required: s, onSelect: t } = u, [f, r] = a(c, t ? c : void 0), e = t ? c : f, { isSameDay: d } = S;
4
+ return {
5
+ selected: e,
6
+ select: (n, o, i) => {
7
+ let l = n;
8
+ return !s && e && e && d(n, e) && (l = void 0), t || r(l), t?.(l, n, o, i), l;
9
+ },
10
+ isSelected: (n) => e ? d(e, n) : !1
11
+ };
13
12
  }
14
13
  export {
15
- u as compareItemEquality,
16
- i as defaultItemEquality,
17
- o as findItemIndex,
18
- I as removeItem,
19
- e as selectedValueIncludes
14
+ q as useSingle
20
15
  };
21
16
  //# sourceMappingURL=index276.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index276.js","sources":["../../../node_modules/@base-ui/react/esm/internals/itemEquality.js"],"sourcesContent":["export const defaultItemEquality = (itemValue, selectedValue) => Object.is(itemValue, selectedValue);\nexport function compareItemEquality(itemValue, selectedValue, comparer) {\n if (itemValue == null || selectedValue == null) {\n return Object.is(itemValue, selectedValue);\n }\n return comparer(itemValue, selectedValue);\n}\nexport function selectedValueIncludes(selectedValues, itemValue, comparer) {\n if (!selectedValues || selectedValues.length === 0) {\n return false;\n }\n return selectedValues.some(selectedValue => {\n if (selectedValue === undefined) {\n return false;\n }\n return compareItemEquality(itemValue, selectedValue, comparer);\n });\n}\nexport function findItemIndex(itemValues, selectedValue, comparer) {\n if (!itemValues || itemValues.length === 0) {\n return -1;\n }\n return itemValues.findIndex(itemValue => {\n if (itemValue === undefined) {\n return false;\n }\n return compareItemEquality(itemValue, selectedValue, comparer);\n });\n}\nexport function removeItem(selectedValues, itemValue, comparer) {\n return selectedValues.filter(selectedValue => !compareItemEquality(itemValue, selectedValue, comparer));\n}"],"names":["defaultItemEquality","itemValue","selectedValue","compareItemEquality","comparer","selectedValueIncludes","selectedValues","findItemIndex","itemValues","removeItem"],"mappings":"AAAY,MAACA,IAAsB,CAACC,GAAWC,MAAkB,OAAO,GAAGD,GAAWC,CAAa;AAC5F,SAASC,EAAoBF,GAAWC,GAAeE,GAAU;AACtE,SAAIH,KAAa,QAAQC,KAAiB,OACjC,OAAO,GAAGD,GAAWC,CAAa,IAEpCE,EAASH,GAAWC,CAAa;AAC1C;AACO,SAASG,EAAsBC,GAAgBL,GAAWG,GAAU;AACzE,SAAI,CAACE,KAAkBA,EAAe,WAAW,IACxC,KAEFA,EAAe,KAAK,CAAAJ,MACrBA,MAAkB,SACb,KAEFC,EAAoBF,GAAWC,GAAeE,CAAQ,CAC9D;AACH;AACO,SAASG,EAAcC,GAAYN,GAAeE,GAAU;AACjE,SAAI,CAACI,KAAcA,EAAW,WAAW,IAChC,KAEFA,EAAW,UAAU,CAAAP,MACtBA,MAAc,SACT,KAEFE,EAAoBF,GAAWC,GAAeE,CAAQ,CAC9D;AACH;AACO,SAASK,EAAWH,GAAgBL,GAAWG,GAAU;AAC9D,SAAOE,EAAe,OAAO,CAAAJ,MAAiB,CAACC,EAAoBF,GAAWC,GAAeE,CAAQ,CAAC;AACxG;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index276.js","sources":["../../../node_modules/react-day-picker/dist/esm/selection/useSingle.js"],"sourcesContent":["import { useControlledValue } from \"../helpers/useControlledValue.js\";\n/**\n * Hook to manage single-date selection in the DayPicker component.\n *\n * @template T - The type of DayPicker props.\n * @param props - The DayPicker props.\n * @param dateLib - The date utility library instance.\n * @returns An object containing the selected date, a function to select a date,\n * and a function to check if a date is selected.\n */\nexport function useSingle(props, dateLib) {\n const { selected: initiallySelected, required, onSelect, } = props;\n const [internallySelected, setSelected] = useControlledValue(initiallySelected, onSelect ? initiallySelected : undefined);\n const selected = !onSelect ? internallySelected : initiallySelected;\n const { isSameDay } = dateLib;\n const isSelected = (compareDate) => {\n return selected ? isSameDay(selected, compareDate) : false;\n };\n const select = (triggerDate, modifiers, e) => {\n let newDate = triggerDate;\n if (!required && selected && selected && isSameDay(triggerDate, selected)) {\n // If the date is the same, clear the selection.\n newDate = undefined;\n }\n if (!onSelect) {\n setSelected(newDate);\n }\n if (required) {\n onSelect?.(newDate, triggerDate, modifiers, e);\n }\n else {\n onSelect?.(newDate, triggerDate, modifiers, e);\n }\n return newDate;\n };\n return {\n selected,\n select,\n isSelected,\n };\n}\n"],"names":["useSingle","props","dateLib","initiallySelected","required","onSelect","internallySelected","setSelected","useControlledValue","selected","isSameDay","triggerDate","modifiers","e","newDate","compareDate"],"mappings":";AAUO,SAASA,EAAUC,GAAOC,GAAS;AACtC,QAAM,EAAE,UAAUC,GAAmB,UAAAC,GAAU,UAAAC,EAAQ,IAAMJ,GACvD,CAACK,GAAoBC,CAAW,IAAIC,EAAmBL,GAAmBE,IAAWF,IAAoB,MAAS,GAClHM,IAAYJ,IAAgCF,IAArBG,GACvB,EAAE,WAAAI,EAAS,IAAKR;AAqBtB,SAAO;AAAA,IACH,UAAAO;AAAA,IACA,QAnBW,CAACE,GAAaC,GAAWC,MAAM;AAC1C,UAAIC,IAAUH;AACd,aAAI,CAACP,KAAYK,KAAYA,KAAYC,EAAUC,GAAaF,CAAQ,MAEpEK,IAAU,SAETT,KACDE,EAAYO,CAAO,GAGnBT,IAAWS,GAASH,GAAaC,GAAWC,CAAC,GAK1CC;AAAA,IACX;AAAA,IAII,YAvBe,CAACC,MACTN,IAAWC,EAAUD,GAAUM,CAAW,IAAI;AAAA,EAuB7D;AACA;","x_google_ignoreList":[0]}
package/dist/index277.js CHANGED
@@ -1,15 +1,33 @@
1
- import * as c from "react";
2
- import { useIsoLayoutEffect as o } from "./index262.js";
3
- import { useStableCallback as f } from "./index263.js";
4
- function u(r, n) {
5
- const t = c.useRef(r), e = f(n);
6
- o(() => {
7
- t.current !== r && e(t.current);
8
- }, [r, e]), o(() => {
9
- t.current = r;
10
- }, [r]);
1
+ import { defaultDateLib as D } from "./index127.js";
2
+ function w(f, g, n = 0, s = 0, l = !1, u = D) {
3
+ const { from: o, to: i } = g || {}, { isSameDay: r, isAfter: m, isBefore: c } = u;
4
+ let e;
5
+ if (!o && !i)
6
+ e = { from: f, to: n > 0 ? void 0 : f };
7
+ else if (o && !i)
8
+ r(o, f) ? n === 0 ? e = { from: o, to: f } : l ? e = { from: o, to: void 0 } : e = void 0 : c(f, o) ? e = { from: f, to: o } : e = { from: o, to: f };
9
+ else if (o && i)
10
+ if (r(o, f) && r(i, f))
11
+ l ? e = { from: o, to: i } : e = void 0;
12
+ else if (r(o, f))
13
+ e = { from: o, to: n > 0 ? void 0 : f };
14
+ else if (r(i, f))
15
+ e = { from: f, to: n > 0 ? void 0 : f };
16
+ else if (c(f, o))
17
+ e = { from: f, to: i };
18
+ else if (m(f, o))
19
+ e = { from: o, to: f };
20
+ else if (m(f, i))
21
+ e = { from: o, to: f };
22
+ else
23
+ throw new Error("Invalid range");
24
+ if (e?.from && e?.to) {
25
+ const t = u.differenceInCalendarDays(e.to, e.from);
26
+ s > 0 && t > s ? e = { from: f, to: void 0 } : n > 1 && t < n && (e = { from: f, to: void 0 });
27
+ }
28
+ return e;
11
29
  }
12
30
  export {
13
- u as useValueChanged
31
+ w as addToRange
14
32
  };
15
33
  //# sourceMappingURL=index277.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index277.js","sources":["../../../node_modules/@base-ui/react/esm/internals/useValueChanged.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nexport function useValueChanged(value, onChange) {\n const valueRef = React.useRef(value);\n const onChangeCallback = useStableCallback(onChange);\n useIsoLayoutEffect(() => {\n if (valueRef.current === value) {\n return;\n }\n onChangeCallback(valueRef.current);\n }, [value, onChangeCallback]);\n useIsoLayoutEffect(() => {\n valueRef.current = value;\n }, [value]);\n}"],"names":["useValueChanged","value","onChange","valueRef","React","onChangeCallback","useStableCallback","useIsoLayoutEffect"],"mappings":";;;AAKO,SAASA,EAAgBC,GAAOC,GAAU;AAC/C,QAAMC,IAAWC,EAAM,OAAOH,CAAK,GAC7BI,IAAmBC,EAAkBJ,CAAQ;AACnD,EAAAK,EAAmB,MAAM;AACvB,IAAIJ,EAAS,YAAYF,KAGzBI,EAAiBF,EAAS,OAAO;AAAA,EACnC,GAAG,CAACF,GAAOI,CAAgB,CAAC,GAC5BE,EAAmB,MAAM;AACvB,IAAAJ,EAAS,UAAUF;AAAA,EACrB,GAAG,CAACA,CAAK,CAAC;AACZ;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index277.js","sources":["../../../node_modules/react-day-picker/dist/esm/utils/addToRange.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/DateLib.js\";\n/**\n * Adds a date to an existing range, considering constraints like minimum and\n * maximum range size.\n *\n * @param date - The date to add to the range.\n * @param initialRange - The initial range to which the date will be added.\n * @param min - The minimum number of days in the range.\n * @param max - The maximum number of days in the range.\n * @param required - Whether the range must always include at least one date.\n * @param dateLib - The date utility library instance.\n * @returns The updated date range, or `undefined` if the range is cleared.\n * @group Utilities\n */\nexport function addToRange(date, initialRange, min = 0, max = 0, required = false, dateLib = defaultDateLib) {\n const { from, to } = initialRange || {};\n const { isSameDay, isAfter, isBefore } = dateLib;\n let range;\n if (!from && !to) {\n // the range is empty, add the date\n range = { from: date, to: min > 0 ? undefined : date };\n }\n else if (from && !to) {\n // adding date to an incomplete range\n if (isSameDay(from, date)) {\n // adding a date equal to the start of the range\n if (min === 0) {\n range = { from, to: date };\n }\n else if (required) {\n range = { from, to: undefined };\n }\n else {\n range = undefined;\n }\n }\n else if (isBefore(date, from)) {\n // adding a date before the start of the range\n range = { from: date, to: from };\n }\n else {\n // adding a date after the start of the range\n range = { from, to: date };\n }\n }\n else if (from && to) {\n // adding date to a complete range\n if (isSameDay(from, date) && isSameDay(to, date)) {\n // adding a date that is equal to both start and end of the range\n if (required) {\n range = { from, to };\n }\n else {\n range = undefined;\n }\n }\n else if (isSameDay(from, date)) {\n // adding a date equal to the the start of the range\n range = { from, to: min > 0 ? undefined : date };\n }\n else if (isSameDay(to, date)) {\n // adding a dare equal to the end of the range\n range = { from: date, to: min > 0 ? undefined : date };\n }\n else if (isBefore(date, from)) {\n // adding a date before the start of the range\n range = { from: date, to: to };\n }\n else if (isAfter(date, from)) {\n // adding a date after the start of the range\n range = { from, to: date };\n }\n else if (isAfter(date, to)) {\n // adding a date after the end of the range\n range = { from, to: date };\n }\n else {\n throw new Error(\"Invalid range\");\n }\n }\n // check for min / max\n if (range?.from && range?.to) {\n const diff = dateLib.differenceInCalendarDays(range.to, range.from);\n if (max > 0 && diff > max) {\n range = { from: date, to: undefined };\n }\n else if (min > 1 && diff < min) {\n range = { from: date, to: undefined };\n }\n }\n return range;\n}\n"],"names":["addToRange","date","initialRange","min","max","required","dateLib","defaultDateLib","from","to","isSameDay","isAfter","isBefore","range","diff"],"mappings":";AAcO,SAASA,EAAWC,GAAMC,GAAcC,IAAM,GAAGC,IAAM,GAAGC,IAAW,IAAOC,IAAUC,GAAgB;AACzG,QAAM,EAAE,MAAAC,GAAM,IAAAC,EAAE,IAAKP,KAAgB,CAAA,GAC/B,EAAE,WAAAQ,GAAW,SAAAC,GAAS,UAAAC,EAAQ,IAAKN;AACzC,MAAIO;AACJ,MAAI,CAACL,KAAQ,CAACC;AAEV,IAAAI,IAAQ,EAAE,MAAMZ,GAAM,IAAIE,IAAM,IAAI,SAAYF,EAAI;AAAA,WAE/CO,KAAQ,CAACC;AAEd,IAAIC,EAAUF,GAAMP,CAAI,IAEhBE,MAAQ,IACRU,IAAQ,EAAE,MAAAL,GAAM,IAAIP,EAAI,IAEnBI,IACLQ,IAAQ,EAAE,MAAAL,GAAM,IAAI,OAAS,IAG7BK,IAAQ,SAGPD,EAASX,GAAMO,CAAI,IAExBK,IAAQ,EAAE,MAAMZ,GAAM,IAAIO,EAAI,IAI9BK,IAAQ,EAAE,MAAAL,GAAM,IAAIP,EAAI;AAAA,WAGvBO,KAAQC;AAEb,QAAIC,EAAUF,GAAMP,CAAI,KAAKS,EAAUD,GAAIR,CAAI;AAE3C,MAAII,IACAQ,IAAQ,EAAE,MAAAL,GAAM,IAAAC,EAAE,IAGlBI,IAAQ;AAAA,aAGPH,EAAUF,GAAMP,CAAI;AAEzB,MAAAY,IAAQ,EAAE,MAAAL,GAAM,IAAIL,IAAM,IAAI,SAAYF,EAAI;AAAA,aAEzCS,EAAUD,GAAIR,CAAI;AAEvB,MAAAY,IAAQ,EAAE,MAAMZ,GAAM,IAAIE,IAAM,IAAI,SAAYF,EAAI;AAAA,aAE/CW,EAASX,GAAMO,CAAI;AAExB,MAAAK,IAAQ,EAAE,MAAMZ,GAAM,IAAIQ,EAAE;AAAA,aAEvBE,EAAQV,GAAMO,CAAI;AAEvB,MAAAK,IAAQ,EAAE,MAAAL,GAAM,IAAIP,EAAI;AAAA,aAEnBU,EAAQV,GAAMQ,CAAE;AAErB,MAAAI,IAAQ,EAAE,MAAAL,GAAM,IAAIP,EAAI;AAAA;AAGxB,YAAM,IAAI,MAAM,eAAe;AAIvC,MAAIY,GAAO,QAAQA,GAAO,IAAI;AAC1B,UAAMC,IAAOR,EAAQ,yBAAyBO,EAAM,IAAIA,EAAM,IAAI;AAClE,IAAIT,IAAM,KAAKU,IAAOV,IAClBS,IAAQ,EAAE,MAAMZ,GAAM,IAAI,OAAS,IAE9BE,IAAM,KAAKW,IAAOX,MACvBU,IAAQ,EAAE,MAAMZ,GAAM,IAAI,OAAS;AAAA,EAE3C;AACA,SAAOY;AACX;","x_google_ignoreList":[0]}
package/dist/index278.js CHANGED
@@ -1,31 +1,16 @@
1
- import * as l from "react";
2
- import { useStableCallback as c } from "./index263.js";
3
- import { useEnhancedClickHandler as u } from "./index354.js";
4
- import { isIOS as m } from "./index314.js";
5
- import { useValueChanged as p } from "./index277.js";
6
- function C(e) {
7
- const [o, t] = l.useState(null), s = c((i, a) => {
8
- e || t(a || // On iOS Safari, the hitslop around touch targets means tapping outside an element's
9
- // bounds does not fire `pointerdown` but does fire `mousedown`. The `interactionType`
10
- // will be "" in that case.
11
- (m ? "touch" : ""));
12
- });
13
- p(e, (i) => {
14
- i && !e && t(null);
15
- });
16
- const {
17
- onClick: r,
18
- onPointerDown: n
19
- } = u(s);
20
- return l.useMemo(() => ({
21
- openMethod: o,
22
- triggerProps: {
23
- onClick: r,
24
- onPointerDown: n
25
- }
26
- }), [o, r, n]);
1
+ import { defaultDateLib as f } from "./index127.js";
2
+ function y(t, r, e = f) {
3
+ const n = Array.isArray(r) ? r : [r];
4
+ let a = t.from;
5
+ const i = e.differenceInCalendarDays(t.to, t.from), s = Math.min(i, 6);
6
+ for (let o = 0; o <= s; o++) {
7
+ if (n.includes(a.getDay()))
8
+ return !0;
9
+ a = e.addDays(a, 1);
10
+ }
11
+ return !1;
27
12
  }
28
13
  export {
29
- C as useOpenInteractionType
14
+ y as rangeContainsDayOfWeek
30
15
  };
31
16
  //# sourceMappingURL=index278.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index278.js","sources":["../../../node_modules/@base-ui/react/esm/utils/useOpenInteractionType.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { useEnhancedClickHandler } from '@base-ui/utils/useEnhancedClickHandler';\nimport { isIOS } from '@base-ui/utils/detectBrowser';\nimport { useValueChanged } from \"../internals/useValueChanged.js\";\n\n/**\n * Determines the interaction type (keyboard, mouse, touch, etc.) that opened the component.\n *\n * @param open The open state of the component.\n */\nexport function useOpenInteractionType(open) {\n const [openMethod, setOpenMethod] = React.useState(null);\n const handleTriggerClick = useStableCallback((_, interactionType) => {\n if (!open) {\n setOpenMethod(interactionType || (\n // On iOS Safari, the hitslop around touch targets means tapping outside an element's\n // bounds does not fire `pointerdown` but does fire `mousedown`. The `interactionType`\n // will be \"\" in that case.\n isIOS ? 'touch' : ''));\n }\n });\n useValueChanged(open, previousOpen => {\n if (previousOpen && !open) {\n setOpenMethod(null);\n }\n });\n const {\n onClick,\n onPointerDown\n } = useEnhancedClickHandler(handleTriggerClick);\n return React.useMemo(() => ({\n openMethod,\n triggerProps: {\n onClick,\n onPointerDown\n }\n }), [openMethod, onClick, onPointerDown]);\n}"],"names":["useOpenInteractionType","open","openMethod","setOpenMethod","React","handleTriggerClick","useStableCallback","_","interactionType","isIOS","useValueChanged","previousOpen","onClick","onPointerDown","useEnhancedClickHandler"],"mappings":";;;;;AAaO,SAASA,EAAuBC,GAAM;AAC3C,QAAM,CAACC,GAAYC,CAAa,IAAIC,EAAM,SAAS,IAAI,GACjDC,IAAqBC,EAAkB,CAACC,GAAGC,MAAoB;AACnE,IAAKP,KACHE,EAAcK;AAAA;AAAA;AAAA,KAIdC,IAAQ,UAAU,GAAG;AAAA,EAEzB,CAAC;AACD,EAAAC,EAAgBT,GAAM,CAAAU,MAAgB;AACpC,IAAIA,KAAgB,CAACV,KACnBE,EAAc,IAAI;AAAA,EAEtB,CAAC;AACD,QAAM;AAAA,IACJ,SAAAS;AAAA,IACA,eAAAC;AAAA,EACJ,IAAMC,EAAwBT,CAAkB;AAC9C,SAAOD,EAAM,QAAQ,OAAO;AAAA,IAC1B,YAAAF;AAAA,IACA,cAAc;AAAA,MACZ,SAAAU;AAAA,MACA,eAAAC;AAAA,IACN;AAAA,EACA,IAAM,CAACX,GAAYU,GAASC,CAAa,CAAC;AAC1C;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index278.js","sources":["../../../node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/DateLib.js\";\n/**\n * Checks if a date range contains one or more specified days of the week.\n *\n * @since 9.2.2\n * @param range - The date range to check.\n * @param dayOfWeek - The day(s) of the week to check for (`0-6`, where `0` is\n * Sunday).\n * @param dateLib - The date utility library instance.\n * @returns `true` if the range contains the specified day(s) of the week,\n * otherwise `false`.\n * @group Utilities\n */\nexport function rangeContainsDayOfWeek(range, dayOfWeek, dateLib = defaultDateLib) {\n const dayOfWeekArr = !Array.isArray(dayOfWeek) ? [dayOfWeek] : dayOfWeek;\n let date = range.from;\n const totalDays = dateLib.differenceInCalendarDays(range.to, range.from);\n // iterate at maximum one week or the total days if the range is shorter than one week\n const totalDaysLimit = Math.min(totalDays, 6);\n for (let i = 0; i <= totalDaysLimit; i++) {\n if (dayOfWeekArr.includes(date.getDay())) {\n return true;\n }\n date = dateLib.addDays(date, 1);\n }\n return false;\n}\n"],"names":["rangeContainsDayOfWeek","range","dayOfWeek","dateLib","defaultDateLib","dayOfWeekArr","date","totalDays","totalDaysLimit","i"],"mappings":";AAaO,SAASA,EAAuBC,GAAOC,GAAWC,IAAUC,GAAgB;AAC/E,QAAMC,IAAgB,MAAM,QAAQH,CAAS,IAAkBA,IAAd,CAACA,CAAS;AAC3D,MAAII,IAAOL,EAAM;AACjB,QAAMM,IAAYJ,EAAQ,yBAAyBF,EAAM,IAAIA,EAAM,IAAI,GAEjEO,IAAiB,KAAK,IAAID,GAAW,CAAC;AAC5C,WAASE,IAAI,GAAGA,KAAKD,GAAgBC,KAAK;AACtC,QAAIJ,EAAa,SAASC,EAAK,OAAM,CAAE;AACnC,aAAO;AAEX,IAAAA,IAAOH,EAAQ,QAAQG,GAAM,CAAC;AAAA,EAClC;AACA,SAAO;AACX;","x_google_ignoreList":[0]}
package/dist/index279.js CHANGED
@@ -1,17 +1,29 @@
1
- import { clamp as s } from "./index321.js";
2
- const f = 1;
3
- function a(n, t) {
4
- return Math.max(0, n - t);
5
- }
6
- function u(n, t) {
7
- if (t <= 0)
8
- return 0;
9
- const r = s(n, 0, t), e = r, c = t - r, o = e <= f, i = c <= f;
10
- return o && i ? e <= c ? 0 : t : o ? 0 : i ? t : r;
1
+ import { defaultDateLib as p } from "./index127.js";
2
+ import { dateMatchModifiers as s } from "./index32.js";
3
+ import { rangeContainsDayOfWeek as M } from "./index278.js";
4
+ import { rangeIncludesDate as l } from "./index147.js";
5
+ import { rangeOverlaps as y } from "./index280.js";
6
+ import { isDatesArray as a, isDateRange as A, isDayOfWeekType as C, isDateInterval as I, isDateAfterType as v, isDateBeforeType as F } from "./index149.js";
7
+ function d(n, t, f = p) {
8
+ const e = Array.isArray(t) ? t : [t];
9
+ if (e.filter((o) => typeof o != "function").some((o) => typeof o == "boolean" ? o : f.isDate(o) ? l(n, o, !1, f) : a(o, f) ? o.some((r) => l(n, r, !1, f)) : A(o) ? o.from && o.to ? y(n, { from: o.from, to: o.to }, f) : !1 : C(o) ? M(n, o.dayOfWeek, f) : I(o) ? f.isAfter(o.before, o.after) ? y(n, {
10
+ from: f.addDays(o.after, 1),
11
+ to: f.addDays(o.before, -1)
12
+ }, f) : s(n.from, o, f) || s(n.to, o, f) : v(o) || F(o) ? s(n.from, o, f) || s(n.to, o, f) : !1))
13
+ return !0;
14
+ const i = e.filter((o) => typeof o == "function");
15
+ if (i.length) {
16
+ let o = n.from;
17
+ const r = f.differenceInCalendarDays(n.to, n.from);
18
+ for (let u = 0; u <= r; u++) {
19
+ if (i.some((D) => D(o)))
20
+ return !0;
21
+ o = f.addDays(o, 1);
22
+ }
23
+ }
24
+ return !1;
11
25
  }
12
26
  export {
13
- f as SCROLL_EDGE_TOLERANCE_PX,
14
- a as getMaxScrollOffset,
15
- u as normalizeScrollOffset
27
+ d as rangeContainsModifiers
16
28
  };
17
29
  //# sourceMappingURL=index279.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index279.js","sources":["../../../node_modules/@base-ui/react/esm/utils/scrollEdges.js"],"sourcesContent":["import { clamp } from \"../internals/clamp.js\";\nexport const SCROLL_EDGE_TOLERANCE_PX = 1;\nexport function getMaxScrollOffset(scrollSize, clientSize) {\n return Math.max(0, scrollSize - clientSize);\n}\nexport function normalizeScrollOffset(value, max) {\n if (max <= 0) {\n return 0;\n }\n const clamped = clamp(value, 0, max);\n const startDistance = clamped;\n const endDistance = max - clamped;\n const withinStartTolerance = startDistance <= SCROLL_EDGE_TOLERANCE_PX;\n const withinEndTolerance = endDistance <= SCROLL_EDGE_TOLERANCE_PX;\n if (withinStartTolerance && withinEndTolerance) {\n return startDistance <= endDistance ? 0 : max;\n }\n if (withinStartTolerance) {\n return 0;\n }\n if (withinEndTolerance) {\n return max;\n }\n return clamped;\n}"],"names":["SCROLL_EDGE_TOLERANCE_PX","getMaxScrollOffset","scrollSize","clientSize","normalizeScrollOffset","value","max","clamped","clamp","startDistance","endDistance","withinStartTolerance","withinEndTolerance"],"mappings":";AACY,MAACA,IAA2B;AACjC,SAASC,EAAmBC,GAAYC,GAAY;AACzD,SAAO,KAAK,IAAI,GAAGD,IAAaC,CAAU;AAC5C;AACO,SAASC,EAAsBC,GAAOC,GAAK;AAChD,MAAIA,KAAO;AACT,WAAO;AAET,QAAMC,IAAUC,EAAMH,GAAO,GAAGC,CAAG,GAC7BG,IAAgBF,GAChBG,IAAcJ,IAAMC,GACpBI,IAAuBF,KAAiBT,GACxCY,IAAqBF,KAAeV;AAC1C,SAAIW,KAAwBC,IACnBH,KAAiBC,IAAc,IAAIJ,IAExCK,IACK,IAELC,IACKN,IAEFC;AACT;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index279.js","sources":["../../../node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/DateLib.js\";\nimport { dateMatchModifiers } from \"./dateMatchModifiers.js\";\nimport { rangeContainsDayOfWeek } from \"./rangeContainsDayOfWeek.js\";\nimport { rangeIncludesDate } from \"./rangeIncludesDate.js\";\nimport { rangeOverlaps } from \"./rangeOverlaps.js\";\nimport { isDateAfterType, isDateBeforeType, isDateInterval, isDateRange, isDatesArray, isDayOfWeekType, } from \"./typeguards.js\";\n/**\n * Checks if a date range contains dates that match the given modifiers.\n *\n * @since 9.2.2\n * @param range - The date range to check.\n * @param modifiers - The modifiers to match against.\n * @param dateLib - The date utility library instance.\n * @returns `true` if the range contains matching dates, otherwise `false`.\n * @group Utilities\n */\nexport function rangeContainsModifiers(range, modifiers, dateLib = defaultDateLib) {\n const matchers = Array.isArray(modifiers) ? modifiers : [modifiers];\n // Defer function matchers evaluation as they are the least performant.\n const nonFunctionMatchers = matchers.filter((matcher) => typeof matcher !== \"function\");\n const nonFunctionMatchersResult = nonFunctionMatchers.some((matcher) => {\n if (typeof matcher === \"boolean\")\n return matcher;\n if (dateLib.isDate(matcher)) {\n return rangeIncludesDate(range, matcher, false, dateLib);\n }\n if (isDatesArray(matcher, dateLib)) {\n return matcher.some((date) => rangeIncludesDate(range, date, false, dateLib));\n }\n if (isDateRange(matcher)) {\n if (matcher.from && matcher.to) {\n return rangeOverlaps(range, { from: matcher.from, to: matcher.to }, dateLib);\n }\n return false;\n }\n if (isDayOfWeekType(matcher)) {\n return rangeContainsDayOfWeek(range, matcher.dayOfWeek, dateLib);\n }\n if (isDateInterval(matcher)) {\n const isClosedInterval = dateLib.isAfter(matcher.before, matcher.after);\n if (isClosedInterval) {\n return rangeOverlaps(range, {\n from: dateLib.addDays(matcher.after, 1),\n to: dateLib.addDays(matcher.before, -1),\n }, dateLib);\n }\n return (dateMatchModifiers(range.from, matcher, dateLib) ||\n dateMatchModifiers(range.to, matcher, dateLib));\n }\n if (isDateAfterType(matcher) || isDateBeforeType(matcher)) {\n return (dateMatchModifiers(range.from, matcher, dateLib) ||\n dateMatchModifiers(range.to, matcher, dateLib));\n }\n return false;\n });\n if (nonFunctionMatchersResult) {\n return true;\n }\n const functionMatchers = matchers.filter((matcher) => typeof matcher === \"function\");\n if (functionMatchers.length) {\n let date = range.from;\n const totalDays = dateLib.differenceInCalendarDays(range.to, range.from);\n for (let i = 0; i <= totalDays; i++) {\n if (functionMatchers.some((matcher) => matcher(date))) {\n return true;\n }\n date = dateLib.addDays(date, 1);\n }\n }\n return false;\n}\n"],"names":["rangeContainsModifiers","range","modifiers","dateLib","defaultDateLib","matchers","matcher","rangeIncludesDate","isDatesArray","date","isDateRange","rangeOverlaps","isDayOfWeekType","rangeContainsDayOfWeek","isDateInterval","dateMatchModifiers","isDateAfterType","isDateBeforeType","functionMatchers","totalDays","i"],"mappings":";;;;;;AAgBO,SAASA,EAAuBC,GAAOC,GAAWC,IAAUC,GAAgB;AAC/E,QAAMC,IAAW,MAAM,QAAQH,CAAS,IAAIA,IAAY,CAACA,CAAS;AAsClE,MApC4BG,EAAS,OAAO,CAACC,MAAY,OAAOA,KAAY,UAAU,EAChC,KAAK,CAACA,MACpD,OAAOA,KAAY,YACZA,IACPH,EAAQ,OAAOG,CAAO,IACfC,EAAkBN,GAAOK,GAAS,IAAOH,CAAO,IAEvDK,EAAaF,GAASH,CAAO,IACtBG,EAAQ,KAAK,CAACG,MAASF,EAAkBN,GAAOQ,GAAM,IAAON,CAAO,CAAC,IAE5EO,EAAYJ,CAAO,IACfA,EAAQ,QAAQA,EAAQ,KACjBK,EAAcV,GAAO,EAAE,MAAMK,EAAQ,MAAM,IAAIA,EAAQ,GAAE,GAAIH,CAAO,IAExE,KAEPS,EAAgBN,CAAO,IAChBO,EAAuBZ,GAAOK,EAAQ,WAAWH,CAAO,IAE/DW,EAAeR,CAAO,IACGH,EAAQ,QAAQG,EAAQ,QAAQA,EAAQ,KAAK,IAE3DK,EAAcV,GAAO;AAAA,IACxB,MAAME,EAAQ,QAAQG,EAAQ,OAAO,CAAC;AAAA,IACtC,IAAIH,EAAQ,QAAQG,EAAQ,QAAQ,EAAE;AAAA,EAC1D,GAAmBH,CAAO,IAENY,EAAmBd,EAAM,MAAMK,GAASH,CAAO,KACnDY,EAAmBd,EAAM,IAAIK,GAASH,CAAO,IAEjDa,EAAgBV,CAAO,KAAKW,EAAiBX,CAAO,IAC5CS,EAAmBd,EAAM,MAAMK,GAASH,CAAO,KACnDY,EAAmBd,EAAM,IAAIK,GAASH,CAAO,IAE9C,EACV;AAEG,WAAO;AAEX,QAAMe,IAAmBb,EAAS,OAAO,CAACC,MAAY,OAAOA,KAAY,UAAU;AACnF,MAAIY,EAAiB,QAAQ;AACzB,QAAIT,IAAOR,EAAM;AACjB,UAAMkB,IAAYhB,EAAQ,yBAAyBF,EAAM,IAAIA,EAAM,IAAI;AACvE,aAASmB,IAAI,GAAGA,KAAKD,GAAWC,KAAK;AACjC,UAAIF,EAAiB,KAAK,CAACZ,MAAYA,EAAQG,CAAI,CAAC;AAChD,eAAO;AAEX,MAAAA,IAAON,EAAQ,QAAQM,GAAM,CAAC;AAAA,IAClC;AAAA,EACJ;AACA,SAAO;AACX;","x_google_ignoreList":[0]}
package/dist/index280.js CHANGED
@@ -1,22 +1,9 @@
1
- import * as c from "react";
2
- import { s as u } from "./index390.js";
3
- import { w as i } from "./index391.js";
4
- import { isReactVersionAtLeast as S } from "./index356.js";
5
- const a = S(19), m = a ? f : l;
6
- function g(t, e, r, n, o) {
7
- return m(t, e, r, n, o);
8
- }
9
- function p(t, e, r, n, o) {
10
- const s = c.useCallback(() => e(t.getSnapshot(), r, n, o), [t, e, r, n, o]);
11
- return u.useSyncExternalStore(t.subscribe, s, s);
12
- }
13
- function f(t, e, r, n, o) {
14
- return p(t, e, r, n, o);
15
- }
16
- function l(t, e, r, n, o) {
17
- return i.useSyncExternalStoreWithSelector(t.subscribe, t.getSnapshot, t.getSnapshot, (s) => e(s, r, n, o));
1
+ import { rangeIncludesDate as m } from "./index147.js";
2
+ import { defaultDateLib as r } from "./index127.js";
3
+ function u(o, f, l = r) {
4
+ return m(o, f.from, !1, l) || m(o, f.to, !1, l) || m(f, o.from, !1, l) || m(f, o.to, !1, l);
18
5
  }
19
6
  export {
20
- g as useStore
7
+ u as rangeOverlaps
21
8
  };
22
9
  //# sourceMappingURL=index280.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index280.js","sources":["../../../node_modules/@base-ui/utils/esm/store/useStore.js"],"sourcesContent":["import * as React from 'react';\n/* We need to import the shim because React 17 does not support the `useSyncExternalStore` API.\n * More info: https://github.com/mui/mui-x/issues/18303#issuecomment-2958392341 */\nimport { useSyncExternalStore } from 'use-sync-external-store/shim';\nimport { useSyncExternalStoreWithSelector } from 'use-sync-external-store/shim/with-selector';\nimport { isReactVersionAtLeast } from \"../reactVersion.js\";\nimport { register, getInstance } from \"../fastHooks.js\";\n/* Some tests fail in R18 with the raw useSyncExternalStore. It may be possible to make it work\n * but for now we only enable it for R19+. */\nconst canUseRawUseSyncExternalStore = isReactVersionAtLeast(19);\nconst useStoreImplementation = canUseRawUseSyncExternalStore ? useStoreFast : useStoreLegacy;\nexport function useStore(store, selector, a1, a2, a3) {\n return useStoreImplementation(store, selector, a1, a2, a3);\n}\nfunction useStoreR19(store, selector, a1, a2, a3) {\n const getSelection = React.useCallback(() => selector(store.getSnapshot(), a1, a2, a3), [store, selector, a1, a2, a3]);\n return useSyncExternalStore(store.subscribe, getSelection, getSelection);\n}\nregister({\n before(instance) {\n instance.syncIndex = 0;\n if (!instance.didInitialize) {\n instance.syncTick = 1;\n instance.syncHooks = [];\n instance.didChangeStore = true;\n instance.getSnapshot = () => {\n let didChange = false;\n for (let i = 0; i < instance.syncHooks.length; i += 1) {\n const hook = instance.syncHooks[i];\n const value = hook.selector(hook.store.state, hook.a1, hook.a2, hook.a3);\n if (hook.didChange || !Object.is(hook.value, value)) {\n didChange = true;\n hook.value = value;\n hook.didChange = false;\n }\n }\n if (didChange) {\n instance.syncTick += 1;\n }\n return instance.syncTick;\n };\n }\n },\n after(instance) {\n if (instance.syncHooks.length > 0) {\n if (instance.didChangeStore) {\n instance.didChangeStore = false;\n instance.subscribe = onStoreChange => {\n const stores = new Set();\n for (const hook of instance.syncHooks) {\n stores.add(hook.store);\n }\n const unsubscribes = [];\n for (const store of stores) {\n unsubscribes.push(store.subscribe(onStoreChange));\n }\n return () => {\n for (const unsubscribe of unsubscribes) {\n unsubscribe();\n }\n };\n };\n }\n // eslint-disable-next-line react-hooks/rules-of-hooks\n useSyncExternalStore(instance.subscribe, instance.getSnapshot, instance.getSnapshot);\n }\n }\n});\nfunction useStoreFast(store, selector, a1, a2, a3) {\n const instance = getInstance();\n if (!instance) {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n return useStoreR19(store, selector, a1, a2, a3);\n }\n const index = instance.syncIndex;\n instance.syncIndex += 1;\n let hook;\n if (!instance.didInitialize) {\n hook = {\n store,\n selector,\n a1,\n a2,\n a3,\n value: selector(store.getSnapshot(), a1, a2, a3),\n didChange: false\n };\n instance.syncHooks.push(hook);\n } else {\n hook = instance.syncHooks[index];\n if (hook.store !== store || hook.selector !== selector || !Object.is(hook.a1, a1) || !Object.is(hook.a2, a2) || !Object.is(hook.a3, a3)) {\n if (hook.store !== store) {\n instance.didChangeStore = true;\n }\n hook.store = store;\n hook.selector = selector;\n hook.a1 = a1;\n hook.a2 = a2;\n hook.a3 = a3;\n hook.didChange = true;\n }\n }\n return hook.value;\n}\nfunction useStoreLegacy(store, selector, a1, a2, a3) {\n return useSyncExternalStoreWithSelector(store.subscribe, store.getSnapshot, store.getSnapshot, state => selector(state, a1, a2, a3));\n}"],"names":["canUseRawUseSyncExternalStore","isReactVersionAtLeast","useStoreImplementation","useStoreFast","useStoreLegacy","useStore","store","selector","a1","a2","a3","useStoreR19","getSelection","React","useSyncExternalStore","useSyncExternalStoreWithSelector","state"],"mappings":";;;;AASA,MAAMA,IAAgCC,EAAsB,EAAE,GACxDC,IAAyBF,IAAgCG,IAAeC;AACvE,SAASC,EAASC,GAAOC,GAAUC,GAAIC,GAAIC,GAAI;AACpD,SAAOR,EAAuBI,GAAOC,GAAUC,GAAIC,GAAIC,CAAE;AAC3D;AACA,SAASC,EAAYL,GAAOC,GAAUC,GAAIC,GAAIC,GAAI;AAChD,QAAME,IAAeC,EAAM,YAAY,MAAMN,EAASD,EAAM,eAAeE,GAAIC,GAAIC,CAAE,GAAG,CAACJ,GAAOC,GAAUC,GAAIC,GAAIC,CAAE,CAAC;AACrH,SAAOI,EAAAA,qBAAqBR,EAAM,WAAWM,GAAcA,CAAY;AACzE;AAmDA,SAAST,EAAaG,GAAOC,GAAUC,GAAIC,GAAIC,GAAI;AAI/C,SAAOC,EAAYL,GAAOC,GAAUC,GAAIC,GAAIC,CAAE;AA+BlD;AACA,SAASN,EAAeE,GAAOC,GAAUC,GAAIC,GAAIC,GAAI;AACnD,SAAOK,EAAAA,iCAAiCT,EAAM,WAAWA,EAAM,aAAaA,EAAM,aAAa,CAAAU,MAAST,EAASS,GAAOR,GAAIC,GAAIC,CAAE,CAAC;AACrI;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index280.js","sources":["../../../node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/index.js\";\nimport { rangeIncludesDate } from \"./rangeIncludesDate.js\";\n/**\n * Determines if two date ranges overlap.\n *\n * @since 9.2.2\n * @param rangeLeft - The first date range.\n * @param rangeRight - The second date range.\n * @param dateLib - The date utility library instance.\n * @returns `true` if the ranges overlap, otherwise `false`.\n * @group Utilities\n */\nexport function rangeOverlaps(rangeLeft, rangeRight, dateLib = defaultDateLib) {\n return (rangeIncludesDate(rangeLeft, rangeRight.from, false, dateLib) ||\n rangeIncludesDate(rangeLeft, rangeRight.to, false, dateLib) ||\n rangeIncludesDate(rangeRight, rangeLeft.from, false, dateLib) ||\n rangeIncludesDate(rangeRight, rangeLeft.to, false, dateLib));\n}\n"],"names":["rangeOverlaps","rangeLeft","rangeRight","dateLib","defaultDateLib","rangeIncludesDate"],"mappings":";;AAYO,SAASA,EAAcC,GAAWC,GAAYC,IAAUC,GAAgB;AAC3E,SAAQC,EAAkBJ,GAAWC,EAAW,MAAM,IAAOC,CAAO,KAChEE,EAAkBJ,GAAWC,EAAW,IAAI,IAAOC,CAAO,KAC1DE,EAAkBH,GAAYD,EAAU,MAAM,IAAOE,CAAO,KAC5DE,EAAkBH,GAAYD,EAAU,IAAI,IAAOE,CAAO;AAClE;","x_google_ignoreList":[0]}
package/dist/index281.js CHANGED
@@ -1,40 +1,23 @@
1
- import { isElement as l } from "./index324.js";
2
- import { useId as c } from "./index364.js";
3
- import { useRefWithInit as a } from "./index258.js";
4
- import { useIsoLayoutEffect as m } from "./index262.js";
5
- import { useFloatingParentNodeId as u } from "./index401.js";
6
- import { FloatingRootStore as p } from "./index403.js";
7
- import { PopupTriggerMap as d } from "./index368.js";
8
- function y(s) {
9
- const {
10
- open: o = !1,
11
- onOpenChange: f,
12
- elements: e = {}
13
- } = s, r = c(), i = u() != null;
14
- if (process.env.NODE_ENV !== "production") {
15
- const n = e.reference;
16
- n && !l(n) && console.error("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `context.setPositionReference()`", "instead.");
17
- }
18
- const t = a(() => new p({
19
- open: o,
20
- transitionStatus: void 0,
21
- onOpenChange: f,
22
- referenceElement: e.reference ?? null,
23
- floatingElement: e.floating ?? null,
24
- triggerElements: new d(),
25
- floatingId: r,
26
- syncOnly: !1,
27
- nested: i
28
- })).current;
29
- return m(() => {
30
- const n = {
31
- open: o,
32
- floatingId: r
33
- };
34
- e.reference !== void 0 && (n.referenceElement = e.reference, n.domReferenceElement = l(e.reference) ? e.reference : null), e.floating !== void 0 && (n.floatingElement = e.floating), t.update(n);
35
- }, [o, r, e.reference, e.floating, t]), t.context.onOpenChange = f, t.context.nested = i, t;
36
- }
1
+ const i = {
2
+ clipPath: "inset(50%)",
3
+ overflow: "hidden",
4
+ whiteSpace: "nowrap",
5
+ border: 0,
6
+ padding: 0,
7
+ width: 1,
8
+ height: 1,
9
+ margin: -1
10
+ }, e = {
11
+ ...i,
12
+ position: "fixed",
13
+ top: 0,
14
+ left: 0
15
+ }, t = {
16
+ ...i,
17
+ position: "absolute"
18
+ };
37
19
  export {
38
- y as useFloatingRootContext
20
+ e as visuallyHidden,
21
+ t as visuallyHiddenInput
39
22
  };
40
23
  //# sourceMappingURL=index281.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index281.js","sources":["../../../node_modules/@base-ui/react/esm/floating-ui-react/hooks/useFloatingRootContext.js"],"sourcesContent":["'use client';\n\nimport { isElement } from '@floating-ui/utils/dom';\nimport { useId } from '@base-ui/utils/useId';\nimport { useRefWithInit } from '@base-ui/utils/useRefWithInit';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useFloatingParentNodeId } from \"../components/FloatingTree.js\";\nimport { FloatingRootStore } from \"../components/FloatingRootStore.js\";\nimport { PopupTriggerMap } from \"../../utils/popups/index.js\";\nexport function useFloatingRootContext(options) {\n const {\n open = false,\n onOpenChange,\n elements = {}\n } = options;\n const floatingId = useId();\n const nested = useFloatingParentNodeId() != null;\n if (process.env.NODE_ENV !== 'production') {\n const optionDomReference = elements.reference;\n if (optionDomReference && !isElement(optionDomReference)) {\n console.error('Cannot pass a virtual element to the `elements.reference` option,', 'as it must be a real DOM element. Use `context.setPositionReference()`', 'instead.');\n }\n }\n const store = useRefWithInit(() => new FloatingRootStore({\n open,\n transitionStatus: undefined,\n onOpenChange,\n referenceElement: elements.reference ?? null,\n floatingElement: elements.floating ?? null,\n triggerElements: new PopupTriggerMap(),\n floatingId,\n syncOnly: false,\n nested\n })).current;\n useIsoLayoutEffect(() => {\n const valuesToSync = {\n open,\n floatingId\n };\n\n // Only sync elements that are defined to avoid overwriting existing ones\n if (elements.reference !== undefined) {\n valuesToSync.referenceElement = elements.reference;\n valuesToSync.domReferenceElement = isElement(elements.reference) ? elements.reference : null;\n }\n if (elements.floating !== undefined) {\n valuesToSync.floatingElement = elements.floating;\n }\n store.update(valuesToSync);\n }, [open, floatingId, elements.reference, elements.floating, store]);\n store.context.onOpenChange = onOpenChange;\n store.context.nested = nested;\n return store;\n}"],"names":["useFloatingRootContext","options","open","onOpenChange","elements","floatingId","useId","nested","useFloatingParentNodeId","optionDomReference","isElement","store","useRefWithInit","FloatingRootStore","PopupTriggerMap","useIsoLayoutEffect","valuesToSync"],"mappings":";;;;;;;AASO,SAASA,EAAuBC,GAAS;AAC9C,QAAM;AAAA,IACJ,MAAAC,IAAO;AAAA,IACP,cAAAC;AAAA,IACA,UAAAC,IAAW,CAAA;AAAA,EACf,IAAMH,GACEI,IAAaC,EAAK,GAClBC,IAASC,EAAuB,KAAM;AAC5C,MAAI,QAAQ,IAAI,aAAa,cAAc;AACzC,UAAMC,IAAqBL,EAAS;AACpC,IAAIK,KAAsB,CAACC,EAAUD,CAAkB,KACrD,QAAQ,MAAM,qEAAqE,0EAA0E,UAAU;AAAA,EAE3K;AACA,QAAME,IAAQC,EAAe,MAAM,IAAIC,EAAkB;AAAA,IACvD,MAAAX;AAAA,IACA,kBAAkB;AAAA,IAClB,cAAAC;AAAA,IACA,kBAAkBC,EAAS,aAAa;AAAA,IACxC,iBAAiBA,EAAS,YAAY;AAAA,IACtC,iBAAiB,IAAIU,EAAe;AAAA,IACpC,YAAAT;AAAA,IACA,UAAU;AAAA,IACV,QAAAE;AAAA,EACJ,CAAG,CAAC,EAAE;AACJ,SAAAQ,EAAmB,MAAM;AACvB,UAAMC,IAAe;AAAA,MACnB,MAAAd;AAAA,MACA,YAAAG;AAAA,IACN;AAGI,IAAID,EAAS,cAAc,WACzBY,EAAa,mBAAmBZ,EAAS,WACzCY,EAAa,sBAAsBN,EAAUN,EAAS,SAAS,IAAIA,EAAS,YAAY,OAEtFA,EAAS,aAAa,WACxBY,EAAa,kBAAkBZ,EAAS,WAE1CO,EAAM,OAAOK,CAAY;AAAA,EAC3B,GAAG,CAACd,GAAMG,GAAYD,EAAS,WAAWA,EAAS,UAAUO,CAAK,CAAC,GACnEA,EAAM,QAAQ,eAAeR,GAC7BQ,EAAM,QAAQ,SAASJ,GAChBI;AACT;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index281.js","sources":["../../../node_modules/@base-ui/utils/esm/visuallyHidden.js"],"sourcesContent":["const visuallyHiddenBase = {\n clipPath: 'inset(50%)',\n overflow: 'hidden',\n whiteSpace: 'nowrap',\n border: 0,\n padding: 0,\n width: 1,\n height: 1,\n margin: -1\n};\nexport const visuallyHidden = {\n ...visuallyHiddenBase,\n position: 'fixed',\n top: 0,\n left: 0\n};\nexport const visuallyHiddenInput = {\n ...visuallyHiddenBase,\n position: 'absolute'\n};"],"names":["visuallyHiddenBase","visuallyHidden","visuallyHiddenInput"],"mappings":"AAAA,MAAMA,IAAqB;AAAA,EACzB,UAAU;AAAA,EACV,UAAU;AAAA,EACV,YAAY;AAAA,EACZ,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,QAAQ;AACV,GACaC,IAAiB;AAAA,EAC5B,GAAGD;AAAA,EACH,UAAU;AAAA,EACV,KAAK;AAAA,EACL,MAAM;AACR,GACaE,IAAsB;AAAA,EACjC,GAAGF;AAAA,EACH,UAAU;AACZ;","x_google_ignoreList":[0]}