@rpcbase/ui 0.158.0 → 0.160.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 (665) hide show
  1. package/dist/components/DayPicker/index.d.ts.map +1 -1
  2. package/dist/components/HoursPicker/index.d.ts +9 -6
  3. package/dist/components/HoursPicker/index.d.ts.map +1 -1
  4. package/dist/components/Select/index.d.ts.map +1 -1
  5. package/dist/index.js +32 -31
  6. package/dist/index100.js +109 -4
  7. package/dist/index100.js.map +1 -1
  8. package/dist/index101.js +24 -6
  9. package/dist/index101.js.map +1 -1
  10. package/dist/index102.js +8 -6
  11. package/dist/index102.js.map +1 -1
  12. package/dist/index103.js +4 -4
  13. package/dist/index103.js.map +1 -1
  14. package/dist/index104.js +5 -5
  15. package/dist/index104.js.map +1 -1
  16. package/dist/index105.js +4 -4
  17. package/dist/index105.js.map +1 -1
  18. package/dist/index106.js +466 -8
  19. package/dist/index106.js.map +1 -1
  20. package/dist/index107.js +185 -5
  21. package/dist/index107.js.map +1 -1
  22. package/dist/index108.js +106 -3
  23. package/dist/index108.js.map +1 -1
  24. package/dist/index109.js +262 -4
  25. package/dist/index109.js.map +1 -1
  26. package/dist/index11.js +105 -104
  27. package/dist/index11.js.map +1 -1
  28. package/dist/index110.js +9 -6
  29. package/dist/index110.js.map +1 -1
  30. package/dist/index111.js +39 -142
  31. package/dist/index111.js.map +1 -1
  32. package/dist/index112.js +4 -39
  33. package/dist/index112.js.map +1 -1
  34. package/dist/index113.js +52 -5
  35. package/dist/index113.js.map +1 -1
  36. package/dist/index114.js +4 -7
  37. package/dist/index114.js.map +1 -1
  38. package/dist/index115.js +3 -12
  39. package/dist/index115.js.map +1 -1
  40. package/dist/index116.js +15 -13
  41. package/dist/index116.js.map +1 -1
  42. package/dist/index117.js +5 -7
  43. package/dist/index117.js.map +1 -1
  44. package/dist/index118.js +7 -31
  45. package/dist/index118.js.map +1 -1
  46. package/dist/index119.js +16 -10
  47. package/dist/index119.js.map +1 -1
  48. package/dist/index120.js +4 -10
  49. package/dist/index120.js.map +1 -1
  50. package/dist/index121.js +4 -8
  51. package/dist/index121.js.map +1 -1
  52. package/dist/index122.js +5 -13
  53. package/dist/index122.js.map +1 -1
  54. package/dist/index123.js +5 -101
  55. package/dist/index123.js.map +1 -1
  56. package/dist/index124.js +5 -20
  57. package/dist/index124.js.map +1 -1
  58. package/dist/index125.js +4 -53
  59. package/dist/index125.js.map +1 -1
  60. package/dist/index126.js +6 -72
  61. package/dist/index126.js.map +1 -1
  62. package/dist/index127.js +24 -9
  63. package/dist/index127.js.map +1 -1
  64. package/dist/index128.js +6 -20
  65. package/dist/index128.js.map +1 -1
  66. package/dist/index129.js +4 -16
  67. package/dist/index129.js.map +1 -1
  68. package/dist/index13.js +1 -1
  69. package/dist/index130.js +6 -23
  70. package/dist/index130.js.map +1 -1
  71. package/dist/index131.js +5 -6
  72. package/dist/index131.js.map +1 -1
  73. package/dist/index132.js +4 -5
  74. package/dist/index132.js.map +1 -1
  75. package/dist/index133.js +5 -23
  76. package/dist/index133.js.map +1 -1
  77. package/dist/index134.js +5 -35
  78. package/dist/index134.js.map +1 -1
  79. package/dist/index135.js +9 -16
  80. package/dist/index135.js.map +1 -1
  81. package/dist/index136.js +5 -6
  82. package/dist/index136.js.map +1 -1
  83. package/dist/index137.js +4 -4
  84. package/dist/index137.js.map +1 -1
  85. package/dist/index138.js +4 -4
  86. package/dist/index138.js.map +1 -1
  87. package/dist/index139.js +6 -4
  88. package/dist/index139.js.map +1 -1
  89. package/dist/index14.js +3 -3
  90. package/dist/index140.js +145 -4
  91. package/dist/index140.js.map +1 -1
  92. package/dist/index141.js +39 -3
  93. package/dist/index141.js.map +1 -1
  94. package/dist/index142.js +4 -6
  95. package/dist/index142.js.map +1 -1
  96. package/dist/index143.js +8 -24
  97. package/dist/index143.js.map +1 -1
  98. package/dist/index144.js +13 -7
  99. package/dist/index144.js.map +1 -1
  100. package/dist/index145.js +13 -6
  101. package/dist/index145.js.map +1 -1
  102. package/dist/index146.js +7 -5
  103. package/dist/index146.js.map +1 -1
  104. package/dist/index147.js +31 -3
  105. package/dist/index147.js.map +1 -1
  106. package/dist/index148.js +10 -3
  107. package/dist/index148.js.map +1 -1
  108. package/dist/index149.js +10 -4
  109. package/dist/index149.js.map +1 -1
  110. package/dist/index150.js +8 -3
  111. package/dist/index150.js.map +1 -1
  112. package/dist/index151.js +13 -4
  113. package/dist/index151.js.map +1 -1
  114. package/dist/index152.js +101 -3
  115. package/dist/index152.js.map +1 -1
  116. package/dist/index153.js +20 -4
  117. package/dist/index153.js.map +1 -1
  118. package/dist/index154.js +53 -3
  119. package/dist/index154.js.map +1 -1
  120. package/dist/index155.js +72 -3
  121. package/dist/index155.js.map +1 -1
  122. package/dist/index156.js +9 -33
  123. package/dist/index156.js.map +1 -1
  124. package/dist/index157.js +19 -248
  125. package/dist/index157.js.map +1 -1
  126. package/dist/index158.js +15 -113
  127. package/dist/index158.js.map +1 -1
  128. package/dist/index159.js +23 -219
  129. package/dist/index159.js.map +1 -1
  130. package/dist/index160.js +6 -66
  131. package/dist/index160.js.map +1 -1
  132. package/dist/index161.js +5 -20
  133. package/dist/index161.js.map +1 -1
  134. package/dist/index162.js +23 -209
  135. package/dist/index162.js.map +1 -1
  136. package/dist/index163.js +32 -317
  137. package/dist/index163.js.map +1 -1
  138. package/dist/index164.js +16 -131
  139. package/dist/index164.js.map +1 -1
  140. package/dist/index165.js +6 -20
  141. package/dist/index165.js.map +1 -1
  142. package/dist/index166.js +4 -75
  143. package/dist/index166.js.map +1 -1
  144. package/dist/index167.js +4 -18
  145. package/dist/index167.js.map +1 -1
  146. package/dist/index168.js +4 -101
  147. package/dist/index168.js.map +1 -1
  148. package/dist/index169.js +5 -5
  149. package/dist/index169.js.map +1 -1
  150. package/dist/index170.js +3 -14
  151. package/dist/index170.js.map +1 -1
  152. package/dist/index171.js +7 -2
  153. package/dist/index171.js.map +1 -1
  154. package/dist/index172.js +24 -8
  155. package/dist/index172.js.map +1 -1
  156. package/dist/index173.js +7 -326
  157. package/dist/index173.js.map +1 -1
  158. package/dist/index174.js +6 -49
  159. package/dist/index174.js.map +1 -1
  160. package/dist/index175.js +5 -605
  161. package/dist/index175.js.map +1 -1
  162. package/dist/index176.js +3 -46
  163. package/dist/index176.js.map +1 -1
  164. package/dist/index177.js +3 -11
  165. package/dist/index177.js.map +1 -1
  166. package/dist/index178.js +4 -205
  167. package/dist/index178.js.map +1 -1
  168. package/dist/index179.js +4 -22
  169. package/dist/index179.js.map +1 -1
  170. package/dist/index18.js +477 -466
  171. package/dist/index18.js.map +1 -1
  172. package/dist/index180.js +4 -24
  173. package/dist/index180.js.map +1 -1
  174. package/dist/index181.js +3 -399
  175. package/dist/index181.js.map +1 -1
  176. package/dist/index182.js +3 -46
  177. package/dist/index182.js.map +1 -1
  178. package/dist/index183.js +3 -5
  179. package/dist/index183.js.map +1 -1
  180. package/dist/index184.js +3 -68
  181. package/dist/index184.js.map +1 -1
  182. package/dist/index185.js +34 -2
  183. package/dist/index185.js.map +1 -1
  184. package/dist/index186.js +243 -357
  185. package/dist/index186.js.map +1 -1
  186. package/dist/index187.js +108 -255
  187. package/dist/index187.js.map +1 -1
  188. package/dist/index188.js +214 -55
  189. package/dist/index188.js.map +1 -1
  190. package/dist/index189.js +62 -42
  191. package/dist/index189.js.map +1 -1
  192. package/dist/index19.js +6 -6
  193. package/dist/index190.js +21 -170
  194. package/dist/index190.js.map +1 -1
  195. package/dist/index191.js +207 -107
  196. package/dist/index191.js.map +1 -1
  197. package/dist/index192.js +319 -24
  198. package/dist/index192.js.map +1 -1
  199. package/dist/index193.js +131 -8
  200. package/dist/index193.js.map +1 -1
  201. package/dist/index194.js +20 -4
  202. package/dist/index194.js.map +1 -1
  203. package/dist/index195.js +75 -5
  204. package/dist/index195.js.map +1 -1
  205. package/dist/index196.js +18 -4
  206. package/dist/index196.js.map +1 -1
  207. package/dist/index197.js +91 -456
  208. package/dist/index197.js.map +1 -1
  209. package/dist/index198.js +5 -186
  210. package/dist/index198.js.map +1 -1
  211. package/dist/index199.js +14 -107
  212. package/dist/index199.js.map +1 -1
  213. package/dist/index20.js +113 -105
  214. package/dist/index20.js.map +1 -1
  215. package/dist/index200.js +2 -263
  216. package/dist/index200.js.map +1 -1
  217. package/dist/index201.js +7 -9
  218. package/dist/index201.js.map +1 -1
  219. package/dist/index202.js +325 -41
  220. package/dist/index202.js.map +1 -1
  221. package/dist/index203.js +49 -4
  222. package/dist/index203.js.map +1 -1
  223. package/dist/index204.js +25 -2
  224. package/dist/index204.js.map +1 -1
  225. package/dist/index205.js +29 -68
  226. package/dist/index205.js.map +1 -1
  227. package/dist/index206.js +5 -85
  228. package/dist/index206.js.map +1 -1
  229. package/dist/index207.js +3 -46
  230. package/dist/index207.js.map +1 -1
  231. package/dist/index208.js +2 -8
  232. package/dist/index208.js.map +1 -1
  233. package/dist/index209.js +67 -4
  234. package/dist/index209.js.map +1 -1
  235. package/dist/index21.js +1 -1
  236. package/dist/index210.js +81 -48
  237. package/dist/index210.js.map +1 -1
  238. package/dist/index211.js +44 -14
  239. package/dist/index211.js.map +1 -1
  240. package/dist/index212.js +7 -5
  241. package/dist/index212.js.map +1 -1
  242. package/dist/index213.js +4 -5
  243. package/dist/index213.js.map +1 -1
  244. package/dist/index214.js +51 -58
  245. package/dist/index214.js.map +1 -1
  246. package/dist/index215.js +64 -63
  247. package/dist/index215.js.map +1 -1
  248. package/dist/index216.js +180 -6
  249. package/dist/index216.js.map +1 -1
  250. package/dist/index217.js +46 -4
  251. package/dist/index217.js.map +1 -1
  252. package/dist/index218.js +13 -7
  253. package/dist/index218.js.map +1 -1
  254. package/dist/index219.js +154 -17
  255. package/dist/index219.js.map +1 -1
  256. package/dist/index220.js +30 -5
  257. package/dist/index220.js.map +1 -1
  258. package/dist/index221.js +9 -5
  259. package/dist/index221.js.map +1 -1
  260. package/dist/index222.js +47 -13
  261. package/dist/index222.js.map +1 -1
  262. package/dist/index223.js +11 -10
  263. package/dist/index223.js.map +1 -1
  264. package/dist/index224.js +44 -14
  265. package/dist/index224.js.map +1 -1
  266. package/dist/index225.js +95 -14
  267. package/dist/index225.js.map +1 -1
  268. package/dist/index226.js +86 -5
  269. package/dist/index226.js.map +1 -1
  270. package/dist/index227.js +105 -6
  271. package/dist/index227.js.map +1 -1
  272. package/dist/index228.js +52 -7
  273. package/dist/index228.js.map +1 -1
  274. package/dist/index229.js +11 -6
  275. package/dist/index229.js.map +1 -1
  276. package/dist/index23.js +1 -1
  277. package/dist/index230.js +37 -9
  278. package/dist/index230.js.map +1 -1
  279. package/dist/index231.js +8 -5
  280. package/dist/index231.js.map +1 -1
  281. package/dist/index232.js +116 -5
  282. package/dist/index232.js.map +1 -1
  283. package/dist/index233.js +17 -9
  284. package/dist/index233.js.map +1 -1
  285. package/dist/index234.js +15 -5
  286. package/dist/index234.js.map +1 -1
  287. package/dist/index235.js +3 -5
  288. package/dist/index235.js.map +1 -1
  289. package/dist/index236.js +36 -4
  290. package/dist/index236.js.map +1 -1
  291. package/dist/index237.js +20 -11
  292. package/dist/index237.js.map +1 -1
  293. package/dist/index238.js +9 -10
  294. package/dist/index238.js.map +1 -1
  295. package/dist/index239.js +8 -10
  296. package/dist/index239.js.map +1 -1
  297. package/dist/index240.js +58 -11
  298. package/dist/index240.js.map +1 -1
  299. package/dist/index241.js +8 -11
  300. package/dist/index241.js.map +1 -1
  301. package/dist/index242.js +66 -10
  302. package/dist/index242.js.map +1 -1
  303. package/dist/index243.js +19 -7
  304. package/dist/index243.js.map +1 -1
  305. package/dist/index244.js +16 -6
  306. package/dist/index244.js.map +1 -1
  307. package/dist/index245.js +5 -5
  308. package/dist/index245.js.map +1 -1
  309. package/dist/index246.js +5 -6
  310. package/dist/index246.js.map +1 -1
  311. package/dist/index247.js +6 -7
  312. package/dist/index247.js.map +1 -1
  313. package/dist/index248.js +4 -6
  314. package/dist/index248.js.map +1 -1
  315. package/dist/index249.js +7 -55
  316. package/dist/index249.js.map +1 -1
  317. package/dist/index250.js +17 -8
  318. package/dist/index250.js.map +1 -1
  319. package/dist/index251.js +5 -19
  320. package/dist/index251.js.map +1 -1
  321. package/dist/index252.js +5 -23
  322. package/dist/index252.js.map +1 -1
  323. package/dist/index253.js +13 -16
  324. package/dist/index253.js.map +1 -1
  325. package/dist/index254.js +10 -7
  326. package/dist/index254.js.map +1 -1
  327. package/dist/index255.js +14 -10
  328. package/dist/index255.js.map +1 -1
  329. package/dist/index256.js +14 -10
  330. package/dist/index256.js.map +1 -1
  331. package/dist/index257.js +5 -21
  332. package/dist/index257.js.map +1 -1
  333. package/dist/index258.js +6 -10
  334. package/dist/index258.js.map +1 -1
  335. package/dist/index259.js +7 -9
  336. package/dist/index259.js.map +1 -1
  337. package/dist/index260.js +6 -9
  338. package/dist/index260.js.map +1 -1
  339. package/dist/index261.js +9 -4
  340. package/dist/index261.js.map +1 -1
  341. package/dist/index262.js +5 -5
  342. package/dist/index262.js.map +1 -1
  343. package/dist/index263.js +5 -16
  344. package/dist/index263.js.map +1 -1
  345. package/dist/index264.js +9 -9
  346. package/dist/index264.js.map +1 -1
  347. package/dist/index265.js +5 -18
  348. package/dist/index265.js.map +1 -1
  349. package/dist/index266.js +5 -15
  350. package/dist/index266.js.map +1 -1
  351. package/dist/index267.js +4 -12
  352. package/dist/index267.js.map +1 -1
  353. package/dist/index268.js +11 -29
  354. package/dist/index268.js.map +1 -1
  355. package/dist/index269.js +10 -12
  356. package/dist/index269.js.map +1 -1
  357. package/dist/index270.js +10 -25
  358. package/dist/index270.js.map +1 -1
  359. package/dist/index271.js +11 -5
  360. package/dist/index271.js.map +1 -1
  361. package/dist/index272.js +11 -64
  362. package/dist/index272.js.map +1 -1
  363. package/dist/index273.js +10 -48
  364. package/dist/index273.js.map +1 -1
  365. package/dist/index274.js +7 -39
  366. package/dist/index274.js.map +1 -1
  367. package/dist/index275.js +6 -100
  368. package/dist/index275.js.map +1 -1
  369. package/dist/index276.js +5 -97
  370. package/dist/index276.js.map +1 -1
  371. package/dist/index277.js +6 -99
  372. package/dist/index277.js.map +1 -1
  373. package/dist/index278.js +7 -3
  374. package/dist/index278.js.map +1 -1
  375. package/dist/index279.js +6 -67
  376. package/dist/index279.js.map +1 -1
  377. package/dist/index28.js +1 -1
  378. package/dist/index280.js +53 -178
  379. package/dist/index280.js.map +1 -1
  380. package/dist/index281.js +18 -45
  381. package/dist/index281.js.map +1 -1
  382. package/dist/index282.js +27 -23
  383. package/dist/index282.js.map +1 -1
  384. package/dist/index283.js +17 -29
  385. package/dist/index283.js.map +1 -1
  386. package/dist/index284.js +24 -5
  387. package/dist/index284.js.map +1 -1
  388. package/dist/index285.js +16 -13
  389. package/dist/index285.js.map +1 -1
  390. package/dist/index286.js +7 -154
  391. package/dist/index286.js.map +1 -1
  392. package/dist/index287.js +9 -29
  393. package/dist/index287.js.map +1 -1
  394. package/dist/index288.js +10 -9
  395. package/dist/index288.js.map +1 -1
  396. package/dist/index289.js +20 -46
  397. package/dist/index289.js.map +1 -1
  398. package/dist/index29.js +124 -47
  399. package/dist/index29.js.map +1 -1
  400. package/dist/index290.js +10 -11
  401. package/dist/index290.js.map +1 -1
  402. package/dist/index291.js +9 -44
  403. package/dist/index291.js.map +1 -1
  404. package/dist/index292.js +9 -95
  405. package/dist/index292.js.map +1 -1
  406. package/dist/index293.js +4 -86
  407. package/dist/index293.js.map +1 -1
  408. package/dist/index294.js +5 -105
  409. package/dist/index294.js.map +1 -1
  410. package/dist/index295.js +14 -50
  411. package/dist/index295.js.map +1 -1
  412. package/dist/index296.js +9 -11
  413. package/dist/index296.js.map +1 -1
  414. package/dist/index297.js +18 -37
  415. package/dist/index297.js.map +1 -1
  416. package/dist/index298.js +15 -8
  417. package/dist/index298.js.map +1 -1
  418. package/dist/index299.js +11 -115
  419. package/dist/index299.js.map +1 -1
  420. package/dist/index30.js +47 -219
  421. package/dist/index30.js.map +1 -1
  422. package/dist/index300.js +29 -17
  423. package/dist/index300.js.map +1 -1
  424. package/dist/index301.js +11 -14
  425. package/dist/index301.js.map +1 -1
  426. package/dist/index302.js +25 -3
  427. package/dist/index302.js.map +1 -1
  428. package/dist/index303.js +5 -36
  429. package/dist/index303.js.map +1 -1
  430. package/dist/index304.js +62 -18
  431. package/dist/index304.js.map +1 -1
  432. package/dist/index305.js +48 -9
  433. package/dist/index305.js.map +1 -1
  434. package/dist/index306.js +39 -8
  435. package/dist/index306.js.map +1 -1
  436. package/dist/index307.js +100 -19
  437. package/dist/index307.js.map +1 -1
  438. package/dist/index308.js +94 -25
  439. package/dist/index308.js.map +1 -1
  440. package/dist/index309.js +97 -14
  441. package/dist/index309.js.map +1 -1
  442. package/dist/index31.js +216 -40
  443. package/dist/index31.js.map +1 -1
  444. package/dist/index312.js +5 -5
  445. package/dist/index312.js.map +1 -1
  446. package/dist/index313.js +3 -19
  447. package/dist/index313.js.map +1 -1
  448. package/dist/index314.js +23 -12
  449. package/dist/index314.js.map +1 -1
  450. package/dist/index315.js +113 -5
  451. package/dist/index315.js.map +1 -1
  452. package/dist/index316.js +16 -3
  453. package/dist/index316.js.map +1 -1
  454. package/dist/index317.js +522 -21
  455. package/dist/index317.js.map +1 -1
  456. package/dist/index318.js +127 -112
  457. package/dist/index318.js.map +1 -1
  458. package/dist/index319.js +133 -15
  459. package/dist/index319.js.map +1 -1
  460. package/dist/index32.js +41 -38
  461. package/dist/index32.js.map +1 -1
  462. package/dist/index320.js +19 -523
  463. package/dist/index320.js.map +1 -1
  464. package/dist/index321.js +4 -127
  465. package/dist/index321.js.map +1 -1
  466. package/dist/index322.js +18 -133
  467. package/dist/index322.js.map +1 -1
  468. package/dist/index323.js +12 -20
  469. package/dist/index323.js.map +1 -1
  470. package/dist/index324.js +64 -5
  471. package/dist/index324.js.map +1 -1
  472. package/dist/index325.js +69 -6
  473. package/dist/index325.js.map +1 -1
  474. package/dist/index326.js +9 -4
  475. package/dist/index326.js.map +1 -1
  476. package/dist/index327.js +14 -16
  477. package/dist/index327.js.map +1 -1
  478. package/dist/index328.js +65 -8
  479. package/dist/index328.js.map +1 -1
  480. package/dist/index329.js +5 -5
  481. package/dist/index329.js.map +1 -1
  482. package/dist/index33.js +36 -24
  483. package/dist/index33.js.map +1 -1
  484. package/dist/index330.js +5 -4
  485. package/dist/index330.js.map +1 -1
  486. package/dist/index331.js +4 -546
  487. package/dist/index331.js.map +1 -1
  488. package/dist/index332.js +16 -47
  489. package/dist/index332.js.map +1 -1
  490. package/dist/index333.js +8 -17
  491. package/dist/index333.js.map +1 -1
  492. package/dist/index334.js +5 -6
  493. package/dist/index334.js.map +1 -1
  494. package/dist/index335.js +4 -8
  495. package/dist/index335.js.map +1 -1
  496. package/dist/index336.js +545 -7
  497. package/dist/index336.js.map +1 -1
  498. package/dist/index337.js +47 -9
  499. package/dist/index337.js.map +1 -1
  500. package/dist/index338.js +17 -12
  501. package/dist/index338.js.map +1 -1
  502. package/dist/index339.js +6 -9
  503. package/dist/index339.js.map +1 -1
  504. package/dist/index34.js +21 -38
  505. package/dist/index34.js.map +1 -1
  506. package/dist/index340.js +8 -13
  507. package/dist/index340.js.map +1 -1
  508. package/dist/index341.js +8 -69
  509. package/dist/index341.js.map +1 -1
  510. package/dist/index342.js +9 -9
  511. package/dist/index342.js.map +1 -1
  512. package/dist/index343.js +13 -14
  513. package/dist/index343.js.map +1 -1
  514. package/dist/index344.js +10 -66
  515. package/dist/index344.js.map +1 -1
  516. package/dist/index345.js +13 -64
  517. package/dist/index345.js.map +1 -1
  518. package/dist/index346.js +3 -4
  519. package/dist/index346.js.map +1 -1
  520. package/dist/index347.js +23 -56
  521. package/dist/index347.js.map +1 -1
  522. package/dist/index348.js +5 -68
  523. package/dist/index348.js.map +1 -1
  524. package/dist/index349.js +55 -30
  525. package/dist/index349.js.map +1 -1
  526. package/dist/index35.js +44 -30
  527. package/dist/index35.js.map +1 -1
  528. package/dist/index350.js +68 -9
  529. package/dist/index350.js.map +1 -1
  530. package/dist/index351.js +26 -148
  531. package/dist/index351.js.map +1 -1
  532. package/dist/index352.js +9 -108
  533. package/dist/index352.js.map +1 -1
  534. package/dist/index353.js +153 -4
  535. package/dist/index353.js.map +1 -1
  536. package/dist/index354.js +108 -23
  537. package/dist/index354.js.map +1 -1
  538. package/dist/index355.js +12 -15
  539. package/dist/index355.js.map +1 -1
  540. package/dist/index356.js +25 -26
  541. package/dist/index356.js.map +1 -1
  542. package/dist/index357.js +5 -13
  543. package/dist/index357.js.map +1 -1
  544. package/dist/index358.js +22 -6
  545. package/dist/index358.js.map +1 -1
  546. package/dist/index359.js +15 -22
  547. package/dist/index359.js.map +1 -1
  548. package/dist/index36.js +30 -26
  549. package/dist/index36.js.map +1 -1
  550. package/dist/index360.js +28 -12
  551. package/dist/index360.js.map +1 -1
  552. package/dist/index361.js +12 -27
  553. package/dist/index361.js.map +1 -1
  554. package/dist/index362.js +7 -5
  555. package/dist/index362.js.map +1 -1
  556. package/dist/index37.js +28 -23
  557. package/dist/index37.js.map +1 -1
  558. package/dist/index38.js +17 -123
  559. package/dist/index38.js.map +1 -1
  560. package/dist/index39.js +127 -230
  561. package/dist/index39.js.map +1 -1
  562. package/dist/index40.js +230 -49
  563. package/dist/index40.js.map +1 -1
  564. package/dist/index41.js +50 -2640
  565. package/dist/index41.js.map +1 -1
  566. package/dist/index42.js +2598 -351
  567. package/dist/index42.js.map +1 -1
  568. package/dist/index43.js +375 -214
  569. package/dist/index43.js.map +1 -1
  570. package/dist/index44.js +230 -19
  571. package/dist/index44.js.map +1 -1
  572. package/dist/index45.js +18 -138
  573. package/dist/index45.js.map +1 -1
  574. package/dist/index46.js +125 -170
  575. package/dist/index46.js.map +1 -1
  576. package/dist/index47.js +174 -64
  577. package/dist/index47.js.map +1 -1
  578. package/dist/index48.js +74 -88
  579. package/dist/index48.js.map +1 -1
  580. package/dist/index49.js +90 -5
  581. package/dist/index49.js.map +1 -1
  582. package/dist/index50.js +5 -843
  583. package/dist/index50.js.map +1 -1
  584. package/dist/index51.js +832 -54
  585. package/dist/index51.js.map +1 -1
  586. package/dist/index52.js +66 -8
  587. package/dist/index52.js.map +1 -1
  588. package/dist/index53.js +8 -2
  589. package/dist/index53.js.map +1 -1
  590. package/dist/index54.js +2 -24
  591. package/dist/index54.js.map +1 -1
  592. package/dist/index55.js +22 -232
  593. package/dist/index55.js.map +1 -1
  594. package/dist/index56.js +229 -200
  595. package/dist/index56.js.map +1 -1
  596. package/dist/index59.js +1 -1
  597. package/dist/index63.js +12 -122
  598. package/dist/index63.js.map +1 -1
  599. package/dist/index64.js +133 -14
  600. package/dist/index64.js.map +1 -1
  601. package/dist/index65.js +10 -133
  602. package/dist/index65.js.map +1 -1
  603. package/dist/index66.js +216 -10
  604. package/dist/index66.js.map +1 -1
  605. package/dist/index67.js +12 -216
  606. package/dist/index67.js.map +1 -1
  607. package/dist/index68.js +34 -13
  608. package/dist/index68.js.map +1 -1
  609. package/dist/index69.js +44 -31
  610. package/dist/index69.js.map +1 -1
  611. package/dist/index70.js +7 -46
  612. package/dist/index70.js.map +1 -1
  613. package/dist/index71.js +49 -7
  614. package/dist/index71.js.map +1 -1
  615. package/dist/index72.js +4 -50
  616. package/dist/index72.js.map +1 -1
  617. package/dist/index73.js +6 -4
  618. package/dist/index73.js.map +1 -1
  619. package/dist/index74.js +28 -6
  620. package/dist/index74.js.map +1 -1
  621. package/dist/index75.js +50 -28
  622. package/dist/index75.js.map +1 -1
  623. package/dist/index76.js +9 -50
  624. package/dist/index76.js.map +1 -1
  625. package/dist/index77.js +205 -9
  626. package/dist/index77.js.map +1 -1
  627. package/dist/index79.js +1 -1
  628. package/dist/index80.js +2 -2
  629. package/dist/index81.js +2 -2
  630. package/dist/index82.js +12 -2
  631. package/dist/index82.js.map +1 -1
  632. package/dist/index83.js +2 -2
  633. package/dist/index84.js +2 -52
  634. package/dist/index84.js.map +1 -1
  635. package/dist/index85.js +46 -4
  636. package/dist/index85.js.map +1 -1
  637. package/dist/index86.js +205 -4
  638. package/dist/index86.js.map +1 -1
  639. package/dist/index87.js +21 -15
  640. package/dist/index87.js.map +1 -1
  641. package/dist/index88.js +24 -5
  642. package/dist/index88.js.map +1 -1
  643. package/dist/index89.js +399 -7
  644. package/dist/index89.js.map +1 -1
  645. package/dist/index90.js +46 -16
  646. package/dist/index90.js.map +1 -1
  647. package/dist/index91.js +605 -4
  648. package/dist/index91.js.map +1 -1
  649. package/dist/index92.js +5 -4
  650. package/dist/index92.js.map +1 -1
  651. package/dist/index93.js +68 -5
  652. package/dist/index93.js.map +1 -1
  653. package/dist/index94.js +2 -6
  654. package/dist/index94.js.map +1 -1
  655. package/dist/index95.js +363 -4
  656. package/dist/index95.js.map +1 -1
  657. package/dist/index96.js +261 -4
  658. package/dist/index96.js.map +1 -1
  659. package/dist/index97.js +60 -6
  660. package/dist/index97.js.map +1 -1
  661. package/dist/index98.js +46 -24
  662. package/dist/index98.js.map +1 -1
  663. package/dist/index99.js +169 -6
  664. package/dist/index99.js.map +1 -1
  665. package/package.json +2 -1
package/dist/index297.js CHANGED
@@ -1,41 +1,22 @@
1
- import { parseDigit as i } from "./index191.js";
2
- function u(e, t) {
3
- var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
4
- if (r) return (r = r.call(e)).next.bind(r);
5
- if (Array.isArray(e) || (r = l(e)) || t) {
6
- r && (e = r);
7
- var n = 0;
8
- return function() {
9
- return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
10
- };
11
- }
12
- throw new TypeError(`Invalid attempt to iterate non-iterable instance.
13
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
14
- }
15
- function l(e, t) {
16
- if (e) {
17
- if (typeof e == "string") return o(e, t);
18
- var r = {}.toString.call(e).slice(8, -1);
19
- return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? o(e, t) : void 0;
20
- }
21
- }
22
- function o(e, t) {
23
- (t == null || t > e.length) && (t = e.length);
24
- for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
25
- return n;
26
- }
27
- function c(e) {
28
- for (var t = "", r = u(e.split("")), n; !(n = r()).done; ) {
29
- var a = n.value;
30
- t += f(a, t) || "";
31
- }
32
- return t;
33
- }
34
- function f(e, t, r) {
35
- return e === "+" ? t ? void 0 : "+" : i(e);
1
+ import { useControlledValue as x } from "./index294.js";
2
+ function C(i, d) {
3
+ const { selected: s, required: f, onSelect: l } = i, [r, m] = x(s, l ? s : void 0), e = l ? s : r, { isSameDay: o } = d, u = (t) => e?.some((c) => o(c, t)) ?? !1, { min: S, max: a } = i;
4
+ return {
5
+ selected: e,
6
+ select: (t, c, h) => {
7
+ let n = [...e ?? []];
8
+ if (u(t)) {
9
+ if (e?.length === S || f && e?.length === 1)
10
+ return;
11
+ n = e?.filter((y) => !o(y, t));
12
+ } else
13
+ e?.length === a ? n = [t] : n = [...n, t];
14
+ return l || m(n), l?.(n, t, c, h), n;
15
+ },
16
+ isSelected: u
17
+ };
36
18
  }
37
19
  export {
38
- c as default,
39
- f as parsePhoneNumberCharacter
20
+ C as useMulti
40
21
  };
41
22
  //# sourceMappingURL=index297.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index297.js","sources":["../../../node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js"],"sourcesContent":["function _createForOfIteratorHelperLoose(r, e) { var t = \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && \"number\" == typeof r.length) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: !0 } : { done: !1, value: r[o++] }; }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nimport { parseDigit } from './helpers/parseDigits.js';\n\n/**\r\n * Parses phone number characters from a string.\r\n * Drops all punctuation leaving only digits and the leading `+` sign (if any).\r\n * Also converts wide-ascii and arabic-indic numerals to conventional numerals.\r\n * E.g. in Iraq they don't write `+442323234` but rather `+٤٤٢٣٢٣٢٣٤`.\r\n * @param {string} string\r\n * @return {string}\r\n * @example\r\n * ```js\r\n * // Outputs '8800555'.\r\n * parseIncompletePhoneNumber('8 (800) 555')\r\n * // Outputs '+7800555'.\r\n * parseIncompletePhoneNumber('+7 800 555')\r\n * ```\r\n */\nexport default function parseIncompletePhoneNumber(string) {\n var result = '';\n // Using `.split('')` here instead of normal `for ... of`\n // because the importing application doesn't neccessarily include an ES6 polyfill.\n // The `.split('')` approach discards \"exotic\" UTF-8 characters\n // (the ones consisting of four bytes) but digits\n // (including non-European ones) don't fall into that range\n // so such \"exotic\" characters would be discarded anyway.\n for (var _iterator = _createForOfIteratorHelperLoose(string.split('')), _step; !(_step = _iterator()).done;) {\n var character = _step.value;\n result += parsePhoneNumberCharacter(character, result) || '';\n }\n return result;\n}\n\n/**\r\n * Parses next character while parsing phone number digits (including a `+`)\r\n * from text: discards everything except `+` and digits, and `+` is only allowed\r\n * at the start of a phone number.\r\n * For example, is used in `react-phone-number-input` where it uses\r\n * [`input-format`](https://gitlab.com/catamphetamine/input-format).\r\n * @param {string} character - Yet another character from raw input string.\r\n * @param {string?} prevParsedCharacters - Previous parsed characters.\r\n * @param {function?} eventListener - An optional \"on event\" function.\r\n * @return {string?} The parsed character.\r\n */\nexport function parsePhoneNumberCharacter(character, prevParsedCharacters, eventListener) {\n // Only allow a leading `+`.\n if (character === '+') {\n // If this `+` is not the first parsed character\n // then discard it.\n if (prevParsedCharacters) {\n // `eventListener` argument was added to this `export`ed function on Dec 26th, 2023.\n // Any 3rd-party code that used to `import` and call this function before that\n // won't be passing any `eventListener` argument.\n //\n // The addition of the `eventListener` argument was to fix the slightly-weird behavior\n // of parsing an input string when the user inputs something like `\"2+7\"\n // https://github.com/catamphetamine/react-phone-number-input/issues/437\n //\n // If the parser encounters an unexpected `+` in a string being parsed\n // then it simply discards that out-of-place `+` and any following characters.\n //\n if (typeof eventListener === 'function') {\n eventListener('end');\n }\n return;\n }\n return '+';\n }\n // Allow digits.\n return parseDigit(character);\n}\n//# sourceMappingURL=parseIncompletePhoneNumber.js.map"],"names":["_createForOfIteratorHelperLoose","r","e","t","_unsupportedIterableToArray","o","a","_arrayLikeToArray","parseIncompletePhoneNumber","string","result","_iterator","_step","character","parsePhoneNumberCharacter","prevParsedCharacters","eventListener","parseDigit"],"mappings":";AAAA,SAASA,EAAgCC,GAAGC,GAAG;AAAE,MAAIC,IAAmB,OAAO,SAAtB,OAAgCF,EAAE,OAAO,QAAQ,KAAKA,EAAE,YAAY;AAAG,MAAIE,EAAG,SAAQA,IAAIA,EAAE,KAAKF,CAAC,GAAG,KAAK,KAAKE,CAAC;AAAG,MAAI,MAAM,QAAQF,CAAC,MAAME,IAAIC,EAA4BH,CAAC,MAAMC,GAAuC;AAAE,IAAAC,MAAMF,IAAIE;AAAI,QAAIE,IAAI;AAAG,WAAO,WAAY;AAAE,aAAOA,KAAKJ,EAAE,SAAS,EAAE,MAAM,GAAE,IAAK,EAAE,MAAM,IAAI,OAAOA,EAAEI,GAAG,EAAC;AAAA,IAAI;AAAA,EAAG;AAAE,QAAM,IAAI,UAAU;AAAA,mFAAuI;AAAG;AACziB,SAASD,EAA4BH,GAAGK,GAAG;AAAE,MAAIL,GAAG;AAAE,QAAgB,OAAOA,KAAnB,SAAsB,QAAOM,EAAkBN,GAAGK,CAAC;AAAG,QAAIH,IAAI,CAAA,EAAG,SAAS,KAAKF,CAAC,EAAE,MAAM,GAAG,EAAE;AAAG,WAAoBE,MAAb,YAAkBF,EAAE,gBAAgBE,IAAIF,EAAE,YAAY,OAAiBE,MAAV,SAAyBA,MAAV,QAAc,MAAM,KAAKF,CAAC,IAAoBE,MAAhB,eAAqB,2CAA2C,KAAKA,CAAC,IAAII,EAAkBN,GAAGK,CAAC,IAAI;AAAA,EAAQ;AAAE;AACzX,SAASC,EAAkBN,GAAGK,GAAG;AAAE,GAASA,KAAR,QAAaA,IAAIL,EAAE,YAAYK,IAAIL,EAAE;AAAS,WAASC,IAAI,GAAG,IAAI,MAAMI,CAAC,GAAGJ,IAAII,GAAGJ,IAAK,GAAEA,CAAC,IAAID,EAAEC,CAAC;AAAG,SAAO;AAAG;AAkBpI,SAASM,EAA2BC,GAAQ;AAQzD,WAPIC,IAAS,IAOJC,IAAYX,EAAgCS,EAAO,MAAM,EAAE,CAAC,GAAGG,GAAO,EAAEA,IAAQD,EAAS,GAAI,QAAO;AAC3G,QAAIE,IAAYD,EAAM;AACtB,IAAAF,KAAUI,EAA0BD,GAAWH,CAAM,KAAK;AAAA,EAC5D;AACA,SAAOA;AACT;AAaO,SAASI,EAA0BD,GAAWE,GAAsBC,GAAe;AAExF,SAAIH,MAAc,MAGZE,IAeF,SAEK,MAGFE,EAAWJ,CAAS;AAC7B;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index297.js","sources":["../../../node_modules/react-day-picker/dist/esm/selection/useMulti.js"],"sourcesContent":["import { useControlledValue } from \"../helpers/useControlledValue.js\";\n/**\n * Hook to manage multiple-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 dates, a function to select dates,\n * and a function to check if a date is selected.\n */\nexport function useMulti(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 = (date) => {\n return selected?.some((d) => isSameDay(d, date)) ?? false;\n };\n const { min, max } = props;\n const select = (triggerDate, modifiers, e) => {\n let newDates = [...(selected ?? [])];\n if (isSelected(triggerDate)) {\n if (selected?.length === min) {\n // Min value reached, do nothing\n return;\n }\n if (required && selected?.length === 1) {\n // Required value already selected do nothing\n return;\n }\n newDates = selected?.filter((d) => !isSameDay(d, triggerDate));\n }\n else {\n if (selected?.length === max) {\n // Max value reached, reset the selection to date\n newDates = [triggerDate];\n }\n else {\n // Add the date to the selection\n newDates = [...newDates, triggerDate];\n }\n }\n if (!onSelect) {\n setSelected(newDates);\n }\n onSelect?.(newDates, triggerDate, modifiers, e);\n return newDates;\n };\n return {\n selected,\n select,\n isSelected,\n };\n}\n"],"names":["useMulti","props","dateLib","initiallySelected","required","onSelect","internallySelected","setSelected","useControlledValue","selected","isSameDay","isSelected","date","d","min","max","triggerDate","modifiers","e","newDates"],"mappings":";AAUO,SAASA,EAASC,GAAOC,GAAS;AACrC,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,GAChBS,IAAa,CAACC,MACTH,GAAU,KAAK,CAACI,MAAMH,EAAUG,GAAGD,CAAI,CAAC,KAAK,IAElD,EAAE,KAAAE,GAAK,KAAAC,EAAG,IAAKd;AA8BrB,SAAO;AAAA,IACH,UAAAQ;AAAA,IACA,QA/BW,CAACO,GAAaC,GAAWC,MAAM;AAC1C,UAAIC,IAAW,CAAC,GAAIV,KAAY,CAAA,CAAG;AACnC,UAAIE,EAAWK,CAAW,GAAG;AAKzB,YAJIP,GAAU,WAAWK,KAIrBV,KAAYK,GAAU,WAAW;AAEjC;AAEJ,QAAAU,IAAWV,GAAU,OAAO,CAACI,MAAM,CAACH,EAAUG,GAAGG,CAAW,CAAC;AAAA,MACjE;AAEI,QAAIP,GAAU,WAAWM,IAErBI,IAAW,CAACH,CAAW,IAIvBG,IAAW,CAAC,GAAGA,GAAUH,CAAW;AAG5C,aAAKX,KACDE,EAAYY,CAAQ,GAExBd,IAAWc,GAAUH,GAAaC,GAAWC,CAAC,GACvCC;AAAA,IACX;AAAA,IAII,YAAAR;AAAA,EACR;AACA;","x_google_ignoreList":[0]}
package/dist/index298.js CHANGED
@@ -1,12 +1,19 @@
1
- function n(r) {
2
- var t = r.number, e = r.ext;
3
- if (!t)
4
- return "";
5
- if (t[0] !== "+")
6
- throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');
7
- return "tel:".concat(t).concat(e ? ";ext=" + e : "");
1
+ import { useControlledValue as x } from "./index294.js";
2
+ import { rangeIncludesDate as R } from "./index160.js";
3
+ import { addToRange as y } from "./index300.js";
4
+ import { rangeContainsModifiers as C } from "./index302.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
+ };
8
15
  }
9
16
  export {
10
- n as formatRFC3966
17
+ b as useRange
11
18
  };
12
19
  //# sourceMappingURL=index298.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index298.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/RFC3966.js"],"sourcesContent":["function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction _createForOfIteratorHelperLoose(r, e) { var t = \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && \"number\" == typeof r.length) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: !0 } : { done: !1, value: r[o++] }; }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nimport isViablePhoneNumber from './isViablePhoneNumber.js';\n\n// https://www.ietf.org/rfc/rfc3966.txt\n\n/**\r\n * @param {string} text - Phone URI (RFC 3966).\r\n * @return {object} `{ ?number, ?ext }`.\r\n */\nexport function parseRFC3966(text) {\n var number;\n var ext;\n\n // Replace \"tel:\" with \"tel=\" for parsing convenience.\n text = text.replace(/^tel:/, 'tel=');\n for (var _iterator = _createForOfIteratorHelperLoose(text.split(';')), _step; !(_step = _iterator()).done;) {\n var part = _step.value;\n var _part$split = part.split('='),\n _part$split2 = _slicedToArray(_part$split, 2),\n name = _part$split2[0],\n value = _part$split2[1];\n switch (name) {\n case 'tel':\n number = value;\n break;\n case 'ext':\n ext = value;\n break;\n case 'phone-context':\n // Only \"country contexts\" are supported.\n // \"Domain contexts\" are ignored.\n if (value[0] === '+') {\n number = value + number;\n }\n break;\n }\n }\n\n // If the phone number is not viable, then abort.\n if (!isViablePhoneNumber(number)) {\n return {};\n }\n var result = {\n number: number\n };\n if (ext) {\n result.ext = ext;\n }\n return result;\n}\n\n/**\r\n * @param {object} - `{ ?number, ?extension }`.\r\n * @return {string} Phone URI (RFC 3966).\r\n */\nexport function formatRFC3966(_ref) {\n var number = _ref.number,\n ext = _ref.ext;\n if (!number) {\n return '';\n }\n if (number[0] !== '+') {\n throw new Error(\"\\\"formatRFC3966()\\\" expects \\\"number\\\" to be in E.164 format.\");\n }\n return \"tel:\".concat(number).concat(ext ? ';ext=' + ext : '');\n}\n//# sourceMappingURL=RFC3966.js.map"],"names":["formatRFC3966","_ref","number","ext"],"mappings":"AA6DO,SAASA,EAAcC,GAAM;AAClC,MAAIC,IAASD,EAAK,QAChBE,IAAMF,EAAK;AACb,MAAI,CAACC;AACH,WAAO;AAET,MAAIA,EAAO,CAAC,MAAM;AAChB,UAAM,IAAI,MAAM,2DAA+D;AAEjF,SAAO,OAAO,OAAOA,CAAM,EAAE,OAAOC,IAAM,UAAUA,IAAM,EAAE;AAC9D;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index298.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/index299.js CHANGED
@@ -1,120 +1,16 @@
1
- import { MIN_LENGTH_FOR_NSN as g, MAX_LENGTH_FOR_NSN as h, PLUS_CHARS as P, VALID_DIGITS as d } from "./index193.js";
2
- import m from "./index293.js";
3
- import T, { getCountryCallingCode as O } from "./index197.js";
4
- import s, { isViablePhoneNumberStart as v } from "./index300.js";
5
- import w from "./index301.js";
6
- import y from "./index297.js";
7
- import { isPossibleNumber as S } from "./index287.js";
8
- import x from "./index198.js";
9
- import R from "./index302.js";
10
- import E from "./index291.js";
11
- import I from "./index303.js";
12
- import A from "./index201.js";
13
- import p from "./index304.js";
14
- var H = 250, L = new RegExp("[" + P + d + "]"), U = new RegExp("[^" + d + "#]+$");
15
- function Z(t, r, n) {
16
- if (r = r || {}, n = new T(n), r.defaultCountry && !n.hasCountry(r.defaultCountry))
17
- throw r.v2 ? new m("INVALID_COUNTRY") : new Error("Unknown country: ".concat(r.defaultCountry));
18
- var e = G(t, r.v2, r.extract), l = e.number, c = e.ext, i = e.error;
19
- if (!l) {
20
- if (r.v2)
21
- throw i === "TOO_SHORT" ? new m("TOO_SHORT") : new m("NOT_A_NUMBER");
22
- return {};
23
- }
24
- var a = D(l, r.defaultCountry, r.defaultCallingCode, n), o = a.country, u = a.nationalNumber, N = a.countryCallingCode, _ = a.countryCallingCodeSource, f = a.carrierCode;
25
- if (!n.hasSelectedNumberingPlan()) {
26
- if (r.v2)
27
- throw new m("INVALID_COUNTRY");
28
- return {};
29
- }
30
- if (!u || u.length < g) {
31
- if (r.v2)
32
- throw new m("TOO_SHORT");
33
- return {};
34
- }
35
- if (u.length > h) {
36
- if (r.v2)
37
- throw new m("TOO_LONG");
38
- return {};
39
- }
40
- if (r.v2) {
41
- var C = new x(N, u, n.metadata);
42
- return o && (C.country = o), f && (C.carrierCode = f), c && (C.ext = c), C.__countryCallingCodeSource = _, C;
43
- }
44
- var b = (r.extended ? n.hasSelectedNumberingPlan() : o) ? R(u, n.nationalNumberPattern()) : !1;
45
- return r.extended ? {
46
- country: o,
47
- countryCallingCode: N,
48
- carrierCode: f,
49
- valid: b,
50
- possible: b ? !0 : !!(r.extended === !0 && n.possibleLengths() && S(u, o, n)),
51
- phone: u,
52
- ext: c
53
- } : b ? M(o, u, c) : {};
54
- }
55
- function F(t, r, n) {
56
- if (t) {
57
- if (t.length > H) {
58
- if (n)
59
- throw new m("TOO_LONG");
60
- return;
61
- }
62
- if (r === !1)
63
- return t;
64
- var e = t.search(L);
65
- if (!(e < 0))
66
- return t.slice(e).replace(U, "");
67
- }
68
- }
69
- function G(t, r, n) {
70
- var e = p(t, {
71
- extractFormattedPhoneNumber: function(i) {
72
- return F(i, n, r);
73
- }
74
- });
75
- if (!e)
76
- return {};
77
- if (!s(e))
78
- return v(e) ? {
79
- error: "TOO_SHORT"
80
- } : {};
81
- var l = w(e);
82
- return l.ext ? l : {
83
- number: e
84
- };
85
- }
86
- function M(t, r, n) {
87
- var e = {
88
- country: t,
89
- phone: r
90
- };
91
- return n && (e.ext = n), e;
92
- }
93
- function D(t, r, n, e) {
94
- var l = E(y(t), void 0, r, n, e.metadata), c = l.countryCallingCodeSource, i = l.countryCallingCode, a = l.number, o;
95
- if (i)
96
- e.selectNumberingPlan(i);
97
- else if (a && (r || n))
98
- e.selectNumberingPlan(r, n), r && (o = r), i = n || O(r, e.metadata);
99
- else return {};
100
- if (!a)
101
- return {
102
- countryCallingCodeSource: c,
103
- countryCallingCode: i
104
- };
105
- var u = I(y(a), o, e), N = u.nationalNumber, _ = u.carrierCode, f = A(i, {
106
- nationalNumber: N,
107
- metadata: e
108
- });
109
- return f && (o = f, f === "001" || e.selectNumberingPlan(o)), {
110
- country: o,
111
- countryCallingCode: i,
112
- countryCallingCodeSource: c,
113
- nationalNumber: N,
114
- carrierCode: _
1
+ import { useControlledValue as a } from "./index294.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
115
11
  };
116
12
  }
117
13
  export {
118
- Z as default
14
+ q as useSingle
119
15
  };
120
16
  //# sourceMappingURL=index299.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index299.js","sources":["../../../node_modules/libphonenumber-js/es6/parse.js"],"sourcesContent":["// This is a port of Google Android `libphonenumber`'s\n// `phonenumberutil.js` of December 31th, 2018.\n//\n// https://github.com/googlei18n/libphonenumber/commits/master/javascript/i18n/phonenumbers/phonenumberutil.js\n\nimport { VALID_DIGITS, PLUS_CHARS, MIN_LENGTH_FOR_NSN, MAX_LENGTH_FOR_NSN } from './constants.js';\nimport ParseError from './ParseError.js';\nimport Metadata from './metadata.js';\nimport isViablePhoneNumber, { isViablePhoneNumberStart } from './helpers/isViablePhoneNumber.js';\nimport extractExtension from './helpers/extension/extractExtension.js';\nimport parseIncompletePhoneNumber from './parseIncompletePhoneNumber.js';\nimport getCountryCallingCode from './getCountryCallingCode.js';\nimport { isPossibleNumber } from './isPossible.js';\n// import { parseRFC3966 } from './helpers/RFC3966.js'\nimport PhoneNumber from './PhoneNumber.js';\nimport matchesEntirely from './helpers/matchesEntirely.js';\nimport extractCountryCallingCode from './helpers/extractCountryCallingCode.js';\nimport extractNationalNumber from './helpers/extractNationalNumber.js';\n// import stripIddPrefix from './helpers/stripIddPrefix.js'\nimport getCountryByCallingCode from './helpers/getCountryByCallingCode.js';\nimport extractFormattedPhoneNumberFromPossibleRfc3966NumberUri from './helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js';\n\n// We don't allow input strings for parsing to be longer than 250 chars.\n// This prevents malicious input from consuming CPU.\nvar MAX_INPUT_STRING_LENGTH = 250;\n\n// This consists of the plus symbol, digits, and arabic-indic digits.\nvar PHONE_NUMBER_START_PATTERN = new RegExp('[' + PLUS_CHARS + VALID_DIGITS + ']');\n\n// Regular expression of trailing characters that we want to remove.\n// A trailing `#` is sometimes used when writing phone numbers with extensions in US.\n// Example: \"+1 (645) 123 1234-910#\" number has extension \"910\".\nvar AFTER_PHONE_NUMBER_END_PATTERN = new RegExp('[^' + VALID_DIGITS + '#' + ']+$');\nvar USE_NON_GEOGRAPHIC_COUNTRY_CODE = false;\n\n// Examples:\n//\n// ```js\n// parse('8 (800) 555-35-35', 'RU')\n// parse('8 (800) 555-35-35', 'RU', metadata)\n// parse('8 (800) 555-35-35', { country: { default: 'RU' } })\n// parse('8 (800) 555-35-35', { country: { default: 'RU' } }, metadata)\n// parse('+7 800 555 35 35')\n// parse('+7 800 555 35 35', metadata)\n// ```\n//\n\n/**\r\n * Parses a phone number.\r\n *\r\n * parse('123456789', { defaultCountry: 'RU', v2: true }, metadata)\r\n * parse('123456789', { defaultCountry: 'RU' }, metadata)\r\n * parse('123456789', undefined, metadata)\r\n *\r\n * @param {string} input\r\n * @param {object} [options]\r\n * @param {object} metadata\r\n * @return {object|PhoneNumber?} If `options.v2: true` flag is passed, it returns a `PhoneNumber?` instance. Otherwise, returns an object of shape `{ phone: '...', country: '...' }` (or just `{}` if no phone number was parsed).\r\n */\nexport default function parse(text, options, metadata) {\n // If assigning the `{}` default value is moved to the arguments above,\n // code coverage would decrease for some weird reason.\n options = options || {};\n metadata = new Metadata(metadata);\n\n // Validate `defaultCountry`.\n if (options.defaultCountry && !metadata.hasCountry(options.defaultCountry)) {\n if (options.v2) {\n throw new ParseError('INVALID_COUNTRY');\n }\n throw new Error(\"Unknown country: \".concat(options.defaultCountry));\n }\n\n // Parse the phone number.\n var _parseInput = parseInput(text, options.v2, options.extract),\n formattedPhoneNumber = _parseInput.number,\n ext = _parseInput.ext,\n error = _parseInput.error;\n\n // If the phone number is not viable then return nothing.\n if (!formattedPhoneNumber) {\n if (options.v2) {\n if (error === 'TOO_SHORT') {\n throw new ParseError('TOO_SHORT');\n }\n throw new ParseError('NOT_A_NUMBER');\n }\n return {};\n }\n var _parsePhoneNumber = parsePhoneNumber(formattedPhoneNumber, options.defaultCountry, options.defaultCallingCode, metadata),\n country = _parsePhoneNumber.country,\n nationalNumber = _parsePhoneNumber.nationalNumber,\n countryCallingCode = _parsePhoneNumber.countryCallingCode,\n countryCallingCodeSource = _parsePhoneNumber.countryCallingCodeSource,\n carrierCode = _parsePhoneNumber.carrierCode;\n if (!metadata.hasSelectedNumberingPlan()) {\n if (options.v2) {\n throw new ParseError('INVALID_COUNTRY');\n }\n return {};\n }\n\n // Validate national (significant) number length.\n if (!nationalNumber || nationalNumber.length < MIN_LENGTH_FOR_NSN) {\n // Won't throw here because the regexp already demands length > 1.\n /* istanbul ignore if */\n if (options.v2) {\n throw new ParseError('TOO_SHORT');\n }\n // Google's demo just throws an error in this case.\n return {};\n }\n\n // Validate national (significant) number length.\n //\n // A sidenote:\n //\n // They say that sometimes national (significant) numbers\n // can be longer than `MAX_LENGTH_FOR_NSN` (e.g. in Germany).\n // https://github.com/googlei18n/libphonenumber/blob/7e1748645552da39c4e1ba731e47969d97bdb539/resources/phonenumber.proto#L36\n // Such numbers will just be discarded.\n //\n if (nationalNumber.length > MAX_LENGTH_FOR_NSN) {\n if (options.v2) {\n throw new ParseError('TOO_LONG');\n }\n // Google's demo just throws an error in this case.\n return {};\n }\n if (options.v2) {\n var phoneNumber = new PhoneNumber(countryCallingCode, nationalNumber, metadata.metadata);\n if (country) {\n phoneNumber.country = country;\n }\n if (carrierCode) {\n phoneNumber.carrierCode = carrierCode;\n }\n if (ext) {\n phoneNumber.ext = ext;\n }\n phoneNumber.__countryCallingCodeSource = countryCallingCodeSource;\n return phoneNumber;\n }\n\n // Check if national phone number pattern matches the number.\n // National number pattern is different for each country,\n // even for those ones which are part of the \"NANPA\" group.\n var valid = (options.extended ? metadata.hasSelectedNumberingPlan() : country) ? matchesEntirely(nationalNumber, metadata.nationalNumberPattern()) : false;\n if (!options.extended) {\n return valid ? result(country, nationalNumber, ext) : {};\n }\n\n // isInternational: countryCallingCode !== undefined\n\n return {\n country: country,\n countryCallingCode: countryCallingCode,\n carrierCode: carrierCode,\n valid: valid,\n possible: valid ? true : options.extended === true && metadata.possibleLengths() && isPossibleNumber(nationalNumber, country, metadata) ? true : false,\n phone: nationalNumber,\n ext: ext\n };\n}\n\n/**\r\n * Extracts a formatted phone number from text.\r\n * Doesn't guarantee that the extracted phone number\r\n * is a valid phone number (for example, doesn't validate its length).\r\n * @param {string} text\r\n * @param {boolean} [extract] — If `false`, then will parse the entire `text` as a phone number.\r\n * @param {boolean} [throwOnError] — By default, it won't throw if the text is too long.\r\n * @return {string}\r\n * @example\r\n * // Returns \"(213) 373-4253\".\r\n * extractFormattedPhoneNumber(\"Call (213) 373-4253 for assistance.\")\r\n */\nfunction _extractFormattedPhoneNumber(text, extract, throwOnError) {\n if (!text) {\n return;\n }\n if (text.length > MAX_INPUT_STRING_LENGTH) {\n if (throwOnError) {\n throw new ParseError('TOO_LONG');\n }\n return;\n }\n if (extract === false) {\n return text;\n }\n // Attempt to extract a possible number from the string passed in\n var startsAt = text.search(PHONE_NUMBER_START_PATTERN);\n if (startsAt < 0) {\n return;\n }\n return text\n // Trim everything to the left of the phone number\n .slice(startsAt)\n // Remove trailing non-numerical characters\n .replace(AFTER_PHONE_NUMBER_END_PATTERN, '');\n}\n\n/**\r\n * @param {string} text - Input.\r\n * @param {boolean} v2 - Legacy API functions don't pass `v2: true` flag.\r\n * @param {boolean} [extract] - Whether to extract a phone number from `text`, or attempt to parse the entire text as a phone number.\r\n * @return {object} `{ ?number, ?ext }`.\r\n */\nfunction parseInput(text, v2, extract) {\n // // Parse RFC 3966 phone number URI.\n // if (text && text.indexOf('tel:') === 0) {\n // \treturn parseRFC3966(text)\n // }\n // let number = extractFormattedPhoneNumber(text, extract, v2)\n var number = extractFormattedPhoneNumberFromPossibleRfc3966NumberUri(text, {\n extractFormattedPhoneNumber: function extractFormattedPhoneNumber(text) {\n return _extractFormattedPhoneNumber(text, extract, v2);\n }\n });\n // If the phone number is not viable, then abort.\n if (!number) {\n return {};\n }\n if (!isViablePhoneNumber(number)) {\n if (isViablePhoneNumberStart(number)) {\n return {\n error: 'TOO_SHORT'\n };\n }\n return {};\n }\n // Attempt to parse extension first, since it doesn't require region-specific\n // data and we want to have the non-normalised number here.\n var withExtensionStripped = extractExtension(number);\n if (withExtensionStripped.ext) {\n return withExtensionStripped;\n }\n return {\n number: number\n };\n}\n\n/**\r\n * Creates `parse()` result object.\r\n */\nfunction result(country, nationalNumber, ext) {\n var result = {\n country: country,\n phone: nationalNumber\n };\n if (ext) {\n result.ext = ext;\n }\n return result;\n}\n\n/**\r\n * Parses a viable phone number.\r\n * @param {string} formattedPhoneNumber — Example: \"(213) 373-4253\".\r\n * @param {string} [defaultCountry]\r\n * @param {string} [defaultCallingCode]\r\n * @param {Metadata} metadata\r\n * @return {object} Returns `{ country: string?, countryCallingCode: string?, nationalNumber: string? }`.\r\n */\nfunction parsePhoneNumber(formattedPhoneNumber, defaultCountry, defaultCallingCode, metadata) {\n // Extract calling code from phone number.\n var _extractCountryCallin = extractCountryCallingCode(parseIncompletePhoneNumber(formattedPhoneNumber), undefined, defaultCountry, defaultCallingCode, metadata.metadata),\n countryCallingCodeSource = _extractCountryCallin.countryCallingCodeSource,\n countryCallingCode = _extractCountryCallin.countryCallingCode,\n number = _extractCountryCallin.number;\n\n // The exact country of the phone number\n var country;\n\n // If `formattedPhoneNumber` is passed in \"international\" format,\n // choose a country by `countryCallingCode`.\n if (countryCallingCode) {\n metadata.selectNumberingPlan(countryCallingCode);\n }\n // Else, if `formattedPhoneNumber` is passed in \"national\" format,\n // then `number` is defined and `countryCallingCode` is `undefined`.\n else if (number && (defaultCountry || defaultCallingCode)) {\n metadata.selectNumberingPlan(defaultCountry, defaultCallingCode);\n if (defaultCountry) {\n country = defaultCountry;\n } else {\n /* istanbul ignore if */\n if (USE_NON_GEOGRAPHIC_COUNTRY_CODE) {\n if (metadata.isNonGeographicCallingCode(defaultCallingCode)) {\n country = '001';\n }\n }\n }\n countryCallingCode = defaultCallingCode || getCountryCallingCode(defaultCountry, metadata.metadata);\n } else return {};\n if (!number) {\n return {\n countryCallingCodeSource: countryCallingCodeSource,\n countryCallingCode: countryCallingCode\n };\n }\n var _extractNationalNumbe = extractNationalNumber(parseIncompletePhoneNumber(number), country, metadata),\n nationalNumber = _extractNationalNumbe.nationalNumber,\n carrierCode = _extractNationalNumbe.carrierCode;\n\n // Sometimes there are several countries\n // corresponding to the same country phone code\n // (e.g. NANPA countries all having `1` country phone code).\n // Therefore, to reliably determine the exact country,\n // national (significant) number should have been parsed first.\n //\n // When `metadata.json` is generated, all \"ambiguous\" country phone codes\n // get their countries populated with the full set of\n // \"phone number type\" regular expressions.\n //\n var exactCountry = getCountryByCallingCode(countryCallingCode, {\n nationalNumber: nationalNumber,\n metadata: metadata\n });\n if (exactCountry) {\n country = exactCountry;\n /* istanbul ignore if */\n if (exactCountry === '001') {\n // Can't happen with `USE_NON_GEOGRAPHIC_COUNTRY_CODE` being `false`.\n // If `USE_NON_GEOGRAPHIC_COUNTRY_CODE` is set to `true` for some reason,\n // then remove the \"istanbul ignore if\".\n } else {\n metadata.selectNumberingPlan(country);\n }\n }\n return {\n country: country,\n countryCallingCode: countryCallingCode,\n countryCallingCodeSource: countryCallingCodeSource,\n nationalNumber: nationalNumber,\n carrierCode: carrierCode\n };\n}\n//# sourceMappingURL=parse.js.map"],"names":["MAX_INPUT_STRING_LENGTH","PHONE_NUMBER_START_PATTERN","PLUS_CHARS","VALID_DIGITS","AFTER_PHONE_NUMBER_END_PATTERN","parse","text","options","metadata","Metadata","ParseError","_parseInput","parseInput","formattedPhoneNumber","ext","error","_parsePhoneNumber","parsePhoneNumber","country","nationalNumber","countryCallingCode","countryCallingCodeSource","carrierCode","MIN_LENGTH_FOR_NSN","MAX_LENGTH_FOR_NSN","phoneNumber","PhoneNumber","valid","matchesEntirely","isPossibleNumber","result","_extractFormattedPhoneNumber","extract","throwOnError","startsAt","v2","number","extractFormattedPhoneNumberFromPossibleRfc3966NumberUri","isViablePhoneNumber","isViablePhoneNumberStart","withExtensionStripped","extractExtension","defaultCountry","defaultCallingCode","_extractCountryCallin","extractCountryCallingCode","parseIncompletePhoneNumber","getCountryCallingCode","_extractNationalNumbe","extractNationalNumber","exactCountry","getCountryByCallingCode"],"mappings":"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","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index299.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/index30.js CHANGED
@@ -1,223 +1,51 @@
1
- import { DIRECTION as r } from "./index272.js";
2
- import h from "./index273.js";
3
- import u, { maskedClass as l } from "./index31.js";
4
- import d from "./index32.js";
5
- import p from "./index33.js";
6
- import _ from "./index35.js";
7
- import o from "./index155.js";
8
- import m from "./index36.js";
9
- import "./index34.js";
10
- class c {
11
- /**
12
- View element
13
- */
14
- /** Internal {@link Masked} model */
15
- constructor(t, s) {
16
- this.el = t instanceof d ? t : t.isContentEditable && t.tagName !== "INPUT" && t.tagName !== "TEXTAREA" ? new _(t) : new p(t), this.masked = u(s), this._listeners = {}, this._value = "", this._unmaskedValue = "", this._rawInputValue = "", this.history = new m(), this._saveSelection = this._saveSelection.bind(this), this._onInput = this._onInput.bind(this), this._onChange = this._onChange.bind(this), this._onDrop = this._onDrop.bind(this), this._onFocus = this._onFocus.bind(this), this._onClick = this._onClick.bind(this), this._onUndo = this._onUndo.bind(this), this._onRedo = this._onRedo.bind(this), this.alignCursor = this.alignCursor.bind(this), this.alignCursorFriendly = this.alignCursorFriendly.bind(this), this._bindEvents(), this.updateValue(), this._onChange();
17
- }
18
- maskEquals(t) {
19
- var s;
20
- return t == null || ((s = this.masked) == null ? void 0 : s.maskEquals(t));
21
- }
22
- /** Masked */
23
- get mask() {
24
- return this.masked.mask;
25
- }
26
- set mask(t) {
27
- if (this.maskEquals(t)) return;
28
- if (!(t instanceof o.Masked) && this.masked.constructor === l(t)) {
29
- this.masked.updateOptions({
30
- mask: t
31
- });
32
- return;
33
- }
34
- const s = t instanceof o.Masked ? t : u({
35
- mask: t
36
- });
37
- s.unmaskedValue = this.masked.unmaskedValue, this.masked = s;
38
- }
39
- /** Raw value */
40
- get value() {
41
- return this._value;
42
- }
43
- set value(t) {
44
- this.value !== t && (this.masked.value = t, this.updateControl("auto"));
45
- }
46
- /** Unmasked value */
47
- get unmaskedValue() {
48
- return this._unmaskedValue;
49
- }
50
- set unmaskedValue(t) {
51
- this.unmaskedValue !== t && (this.masked.unmaskedValue = t, this.updateControl("auto"));
52
- }
53
- /** Raw input value */
54
- get rawInputValue() {
55
- return this._rawInputValue;
56
- }
57
- set rawInputValue(t) {
58
- this.rawInputValue !== t && (this.masked.rawInputValue = t, this.updateControl(), this.alignCursor());
59
- }
60
- /** Typed unmasked value */
61
- get typedValue() {
62
- return this.masked.typedValue;
63
- }
64
- set typedValue(t) {
65
- this.masked.typedValueEquals(t) || (this.masked.typedValue = t, this.updateControl("auto"));
66
- }
67
- /** Display value */
68
- get displayValue() {
69
- return this.masked.displayValue;
70
- }
71
- /** Starts listening to element events */
72
- _bindEvents() {
73
- this.el.bindEvents({
74
- selectionChange: this._saveSelection,
75
- input: this._onInput,
76
- drop: this._onDrop,
77
- click: this._onClick,
78
- focus: this._onFocus,
79
- commit: this._onChange,
80
- undo: this._onUndo,
81
- redo: this._onRedo
82
- });
83
- }
84
- /** Stops listening to element events */
85
- _unbindEvents() {
86
- this.el && this.el.unbindEvents();
87
- }
88
- /** Fires custom event */
89
- _fireEvent(t, s) {
90
- const e = this._listeners[t];
91
- e && e.forEach((i) => i(s));
92
- }
93
- /** Current selection start */
94
- get selectionStart() {
95
- return this._cursorChanging ? this._changingCursorPos : this.el.selectionStart;
96
- }
97
- /** Current cursor position */
98
- get cursorPos() {
99
- return this._cursorChanging ? this._changingCursorPos : this.el.selectionEnd;
100
- }
101
- set cursorPos(t) {
102
- !this.el || !this.el.isActive || (this.el.select(t, t), this._saveSelection());
103
- }
104
- /** Stores current selection */
105
- _saveSelection() {
106
- this.displayValue !== this.el.value && console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly."), this._selection = {
107
- start: this.selectionStart,
108
- end: this.cursorPos
109
- };
110
- }
111
- /** Syncronizes model value from view */
112
- updateValue() {
113
- this.masked.value = this.el.value, this._value = this.masked.value, this._unmaskedValue = this.masked.unmaskedValue, this._rawInputValue = this.masked.rawInputValue;
114
- }
115
- /** Syncronizes view from model value, fires change events */
116
- updateControl(t) {
117
- const s = this.masked.unmaskedValue, e = this.masked.value, i = this.masked.rawInputValue, n = this.displayValue, a = this.unmaskedValue !== s || this.value !== e || this._rawInputValue !== i;
118
- this._unmaskedValue = s, this._value = e, this._rawInputValue = i, this.el.value !== n && (this.el.value = n), t === "auto" ? this.alignCursor() : t != null && (this.cursorPos = t), a && this._fireChangeEvents(), !this._historyChanging && (a || this.history.isEmpty) && this.history.push({
119
- unmaskedValue: s,
120
- selection: {
121
- start: this.selectionStart,
122
- end: this.cursorPos
123
- }
124
- });
125
- }
126
- /** Updates options with deep equal check, recreates {@link Masked} model if mask type changes */
127
- updateOptions(t) {
128
- const {
129
- mask: s,
130
- ...e
131
- } = t, i = !this.maskEquals(s), n = this.masked.optionsIsChanged(e);
132
- i && (this.mask = s), n && this.masked.updateOptions(e), (i || n) && this.updateControl();
133
- }
134
- /** Updates cursor */
135
- updateCursor(t) {
136
- t != null && (this.cursorPos = t, this._delayUpdateCursor(t));
137
- }
138
- /** Delays cursor update to support mobile browsers */
139
- _delayUpdateCursor(t) {
140
- this._abortUpdateCursor(), this._changingCursorPos = t, this._cursorChanging = setTimeout(() => {
141
- this.el && (this.cursorPos = this._changingCursorPos, this._abortUpdateCursor());
142
- }, 10);
143
- }
144
- /** Fires custom events */
145
- _fireChangeEvents() {
146
- this._fireEvent("accept", this._inputEvent), this.masked.isComplete && this._fireEvent("complete", this._inputEvent);
147
- }
148
- /** Aborts delayed cursor update */
149
- _abortUpdateCursor() {
150
- this._cursorChanging && (clearTimeout(this._cursorChanging), delete this._cursorChanging);
151
- }
152
- /** Aligns cursor to nearest available position */
153
- alignCursor() {
154
- this.cursorPos = this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos, r.LEFT));
155
- }
156
- /** Aligns cursor only if selection is empty */
157
- alignCursorFriendly() {
158
- this.selectionStart === this.cursorPos && this.alignCursor();
159
- }
160
- /** Adds listener on custom event */
161
- on(t, s) {
162
- return this._listeners[t] || (this._listeners[t] = []), this._listeners[t].push(s), this;
163
- }
164
- /** Removes custom event listener */
165
- off(t, s) {
166
- if (!this._listeners[t]) return this;
167
- if (!s)
168
- return delete this._listeners[t], this;
169
- const e = this._listeners[t].indexOf(s);
170
- return e >= 0 && this._listeners[t].splice(e, 1), this;
171
- }
172
- /** Handles view input event */
173
- _onInput(t) {
174
- this._inputEvent = t, this._abortUpdateCursor();
175
- const s = new h({
176
- // new state
177
- value: this.el.value,
178
- cursorPos: this.cursorPos,
179
- // old state
180
- oldValue: this.displayValue,
181
- oldSelection: this._selection
182
- }), e = this.masked.rawInputValue, i = this.masked.splice(s.startChangePos, s.removed.length, s.inserted, s.removeDirection, {
183
- input: !0,
184
- raw: !0
185
- }).offset, n = e === this.masked.rawInputValue ? s.removeDirection : r.NONE;
186
- let a = this.masked.nearestInputPos(s.startChangePos + i, n);
187
- n !== r.NONE && (a = this.masked.nearestInputPos(a, r.NONE)), this.updateControl(a), delete this._inputEvent;
188
- }
189
- /** Handles view change event and commits model value */
190
- _onChange() {
191
- this.displayValue !== this.el.value && this.updateValue(), this.masked.doCommit(), this.updateControl(), this._saveSelection();
192
- }
193
- /** Handles view drop event, prevents by default */
194
- _onDrop(t) {
195
- t.preventDefault(), t.stopPropagation();
196
- }
197
- /** Restore last selection on focus */
198
- _onFocus(t) {
199
- this.alignCursorFriendly();
200
- }
201
- /** Restore last selection on focus */
202
- _onClick(t) {
203
- this.alignCursorFriendly();
204
- }
205
- _onUndo() {
206
- this._applyHistoryState(this.history.undo());
207
- }
208
- _onRedo() {
209
- this._applyHistoryState(this.history.redo());
210
- }
211
- _applyHistoryState(t) {
212
- t && (this._historyChanging = !0, this.unmaskedValue = t.unmaskedValue, this.el.select(t.selection.start, t.selection.end), this._saveSelection(), this._historyChanging = !1);
213
- }
214
- /** Unbind view events and removes element reference */
215
- destroy() {
216
- this._unbindEvents(), this._listeners.length = 0, delete this.el;
217
- }
1
+ import { default as f } from "./index31.js";
2
+ import e from "./index184.js";
3
+ import { default as p } from "./index36.js";
4
+ import { default as d } from "./index34.js";
5
+ import { default as u } from "./index35.js";
6
+ import { default as n } from "./index33.js";
7
+ import { default as k } from "./index185.js";
8
+ import { default as E } from "./index186.js";
9
+ import { default as I } from "./index187.js";
10
+ import { default as T } from "./index188.js";
11
+ import { default as D } from "./index189.js";
12
+ import { default as h, normalizeOpts as H } from "./index32.js";
13
+ import { default as R } from "./index190.js";
14
+ import { default as C } from "./index191.js";
15
+ import { default as B } from "./index192.js";
16
+ import { default as N } from "./index193.js";
17
+ import { PIPE_TYPE as Y, createPipe as _, pipe as j } from "./index194.js";
18
+ import { default as v } from "./index195.js";
19
+ import { default as A } from "./index196.js";
20
+ import { default as J } from "./index197.js";
21
+ import "./index37.js";
22
+ try {
23
+ globalThis.IMask = e;
24
+ } catch {
218
25
  }
219
- o.InputMask = c;
220
26
  export {
221
- c as default
27
+ k as ChangeDetails,
28
+ p as HTMLContenteditableMaskElement,
29
+ d as HTMLInputMaskElement,
30
+ u as HTMLMaskElement,
31
+ f as InputMask,
32
+ n as MaskElement,
33
+ E as Masked,
34
+ I as MaskedDate,
35
+ T as MaskedDynamic,
36
+ D as MaskedEnum,
37
+ R as MaskedFunction,
38
+ C as MaskedNumber,
39
+ B as MaskedPattern,
40
+ v as MaskedRange,
41
+ A as MaskedRegExp,
42
+ Y as PIPE_TYPE,
43
+ N as PatternInputDefinition,
44
+ J as RepeatBlock,
45
+ h as createMask,
46
+ _ as createPipe,
47
+ e as default,
48
+ H as normalizeOpts,
49
+ j as pipe
222
50
  };
223
51
  //# sourceMappingURL=index30.js.map