@rpcbase/ui 0.167.0 → 0.168.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 (630) hide show
  1. package/dist/index100.js +52 -320
  2. package/dist/index100.js.map +1 -1
  3. package/dist/index101.js +4 -130
  4. package/dist/index101.js.map +1 -1
  5. package/dist/index102.js +4 -20
  6. package/dist/index102.js.map +1 -1
  7. package/dist/index103.js +15 -75
  8. package/dist/index103.js.map +1 -1
  9. package/dist/index104.js +5 -18
  10. package/dist/index104.js.map +1 -1
  11. package/dist/index105.js +7 -101
  12. package/dist/index105.js.map +1 -1
  13. package/dist/index106.js +17 -5
  14. package/dist/index106.js.map +1 -1
  15. package/dist/index107.js +4 -14
  16. package/dist/index107.js.map +1 -1
  17. package/dist/index108.js +5 -2
  18. package/dist/index108.js.map +1 -1
  19. package/dist/index109.js +5 -7
  20. package/dist/index109.js.map +1 -1
  21. package/dist/index11.js +3 -2
  22. package/dist/index11.js.map +1 -1
  23. package/dist/index110.js +5 -326
  24. package/dist/index110.js.map +1 -1
  25. package/dist/index111.js +4 -49
  26. package/dist/index111.js.map +1 -1
  27. package/dist/index112.js +5 -52
  28. package/dist/index112.js.map +1 -1
  29. package/dist/index113.js +5 -3
  30. package/dist/index113.js.map +1 -1
  31. package/dist/index114.js +24 -4
  32. package/dist/index114.js.map +1 -1
  33. package/dist/index115.js +6 -15
  34. package/dist/index115.js.map +1 -1
  35. package/dist/index116.js +3 -4
  36. package/dist/index116.js.map +1 -1
  37. package/dist/index117.js +5 -6
  38. package/dist/index117.js.map +1 -1
  39. package/dist/index118.js +5 -16
  40. package/dist/index118.js.map +1 -1
  41. package/dist/index119.js +3 -3
  42. package/dist/index119.js.map +1 -1
  43. package/dist/index120.js +5 -4
  44. package/dist/index120.js.map +1 -1
  45. package/dist/index121.js +3 -4
  46. package/dist/index121.js.map +1 -1
  47. package/dist/index122.js +8 -5
  48. package/dist/index122.js.map +1 -1
  49. package/dist/index123.js +5 -4
  50. package/dist/index123.js.map +1 -1
  51. package/dist/index124.js +4 -4
  52. package/dist/index124.js.map +1 -1
  53. package/dist/index125.js +4 -6
  54. package/dist/index125.js.map +1 -1
  55. package/dist/index126.js +6 -24
  56. package/dist/index126.js.map +1 -1
  57. package/dist/index127.js +145 -6
  58. package/dist/index127.js.map +1 -1
  59. package/dist/index128.js +39 -4
  60. package/dist/index128.js.map +1 -1
  61. package/dist/index129.js +4 -6
  62. package/dist/index129.js.map +1 -1
  63. package/dist/index130.js +7 -5
  64. package/dist/index130.js.map +1 -1
  65. package/dist/index131.js +13 -4
  66. package/dist/index131.js.map +1 -1
  67. package/dist/index132.js +13 -5
  68. package/dist/index132.js.map +1 -1
  69. package/dist/index133.js +7 -4
  70. package/dist/index133.js.map +1 -1
  71. package/dist/index134.js +31 -8
  72. package/dist/index134.js.map +1 -1
  73. package/dist/index135.js +10 -5
  74. package/dist/index135.js.map +1 -1
  75. package/dist/index136.js +10 -4
  76. package/dist/index136.js.map +1 -1
  77. package/dist/index137.js +8 -4
  78. package/dist/index137.js.map +1 -1
  79. package/dist/index138.js +13 -6
  80. package/dist/index138.js.map +1 -1
  81. package/dist/index139.js +101 -145
  82. package/dist/index139.js.map +1 -1
  83. package/dist/index140.js +20 -40
  84. package/dist/index140.js.map +1 -1
  85. package/dist/index141.js +53 -4
  86. package/dist/index141.js.map +1 -1
  87. package/dist/index142.js +70 -5
  88. package/dist/index142.js.map +1 -1
  89. package/dist/index143.js +9 -13
  90. package/dist/index143.js.map +1 -1
  91. package/dist/index144.js +20 -13
  92. package/dist/index144.js.map +1 -1
  93. package/dist/index145.js +16 -7
  94. package/dist/index145.js.map +1 -1
  95. package/dist/index146.js +22 -30
  96. package/dist/index146.js.map +1 -1
  97. package/dist/index147.js +6 -10
  98. package/dist/index147.js.map +1 -1
  99. package/dist/index148.js +5 -10
  100. package/dist/index148.js.map +1 -1
  101. package/dist/index149.js +23 -8
  102. package/dist/index149.js.map +1 -1
  103. package/dist/index150.js +35 -14
  104. package/dist/index150.js.map +1 -1
  105. package/dist/index151.js +16 -102
  106. package/dist/index151.js.map +1 -1
  107. package/dist/index152.js +7 -20
  108. package/dist/index152.js.map +1 -1
  109. package/dist/index153.js +4 -53
  110. package/dist/index153.js.map +1 -1
  111. package/dist/index154.js +4 -72
  112. package/dist/index154.js.map +1 -1
  113. package/dist/index155.js +4 -9
  114. package/dist/index155.js.map +1 -1
  115. package/dist/index156.js +4 -20
  116. package/dist/index156.js.map +1 -1
  117. package/dist/index157.js +3 -16
  118. package/dist/index157.js.map +1 -1
  119. package/dist/index158.js +6 -23
  120. package/dist/index158.js.map +1 -1
  121. package/dist/index159.js +24 -7
  122. package/dist/index159.js.map +1 -1
  123. package/dist/index160.js +7 -5
  124. package/dist/index160.js.map +1 -1
  125. package/dist/index161.js +6 -23
  126. package/dist/index161.js.map +1 -1
  127. package/dist/index162.js +6 -35
  128. package/dist/index162.js.map +1 -1
  129. package/dist/index163.js +4 -16
  130. package/dist/index163.js.map +1 -1
  131. package/dist/index164.js +3 -6
  132. package/dist/index164.js.map +1 -1
  133. package/dist/index165.js +4 -4
  134. package/dist/index165.js.map +1 -1
  135. package/dist/index166.js +3 -4
  136. package/dist/index166.js.map +1 -1
  137. package/dist/index167.js +4 -4
  138. package/dist/index167.js.map +1 -1
  139. package/dist/index168.js +3 -4
  140. package/dist/index168.js.map +1 -1
  141. package/dist/index169.js +3 -3
  142. package/dist/index169.js.map +1 -1
  143. package/dist/index170.js +3 -6
  144. package/dist/index170.js.map +1 -1
  145. package/dist/index171.js +47 -24
  146. package/dist/index171.js.map +1 -1
  147. package/dist/index172.js +46 -7
  148. package/dist/index172.js.map +1 -1
  149. package/dist/index173.js +205 -6
  150. package/dist/index173.js.map +1 -1
  151. package/dist/index174.js +22 -6
  152. package/dist/index174.js.map +1 -1
  153. package/dist/index175.js +24 -3
  154. package/dist/index175.js.map +1 -1
  155. package/dist/index176.js +399 -3
  156. package/dist/index176.js.map +1 -1
  157. package/dist/index177.js +5 -4
  158. package/dist/index177.js.map +1 -1
  159. package/dist/index178.js +68 -3
  160. package/dist/index178.js.map +1 -1
  161. package/dist/index179.js +2 -5
  162. package/dist/index179.js.map +1 -1
  163. package/dist/index18.js +1 -0
  164. package/dist/index18.js.map +1 -1
  165. package/dist/index180.js +363 -3
  166. package/dist/index180.js.map +1 -1
  167. package/dist/index181.js +261 -3
  168. package/dist/index181.js.map +1 -1
  169. package/dist/index182.js +60 -3
  170. package/dist/index182.js.map +1 -1
  171. package/dist/index183.js +46 -3
  172. package/dist/index183.js.map +1 -1
  173. package/dist/index184.js +170 -2
  174. package/dist/index184.js.map +1 -1
  175. package/dist/index185.js +107 -65
  176. package/dist/index185.js.map +1 -1
  177. package/dist/index186.js +24 -84
  178. package/dist/index186.js.map +1 -1
  179. package/dist/index187.js +8 -47
  180. package/dist/index187.js.map +1 -1
  181. package/dist/index188.js +4 -7
  182. package/dist/index188.js.map +1 -1
  183. package/dist/index189.js +5 -4
  184. package/dist/index189.js.map +1 -1
  185. package/dist/index190.js +4 -51
  186. package/dist/index190.js.map +1 -1
  187. package/dist/index191.js +465 -23
  188. package/dist/index191.js.map +1 -1
  189. package/dist/index192.js +185 -28
  190. package/dist/index192.js.map +1 -1
  191. package/dist/index193.js +108 -5
  192. package/dist/index193.js.map +1 -1
  193. package/dist/index194.js +262 -5
  194. package/dist/index194.js.map +1 -1
  195. package/dist/index195.js +8 -67
  196. package/dist/index195.js.map +1 -1
  197. package/dist/index196.js +43 -2
  198. package/dist/index196.js.map +1 -1
  199. package/dist/index197.js +4 -363
  200. package/dist/index197.js.map +1 -1
  201. package/dist/index198.js +64 -258
  202. package/dist/index198.js.map +1 -1
  203. package/dist/index199.js +176 -56
  204. package/dist/index199.js.map +1 -1
  205. package/dist/index200.js +42 -42
  206. package/dist/index200.js.map +1 -1
  207. package/dist/index201.js +57 -162
  208. package/dist/index201.js.map +1 -1
  209. package/dist/index202.js +45 -106
  210. package/dist/index202.js.map +1 -1
  211. package/dist/index203.js +39 -24
  212. package/dist/index203.js.map +1 -1
  213. package/dist/index204.js +101 -8
  214. package/dist/index204.js.map +1 -1
  215. package/dist/index205.js +97 -4
  216. package/dist/index205.js.map +1 -1
  217. package/dist/index206.js +99 -5
  218. package/dist/index206.js.map +1 -1
  219. package/dist/index207.js +58 -4
  220. package/dist/index207.js.map +1 -1
  221. package/dist/index208.js +8 -466
  222. package/dist/index208.js.map +1 -1
  223. package/dist/index209.js +59 -178
  224. package/dist/index209.js.map +1 -1
  225. package/dist/index210.js +17 -105
  226. package/dist/index210.js.map +1 -1
  227. package/dist/index211.js +14 -260
  228. package/dist/index211.js.map +1 -1
  229. package/dist/index212.js +5 -9
  230. package/dist/index212.js.map +1 -1
  231. package/dist/index213.js +4 -41
  232. package/dist/index213.js.map +1 -1
  233. package/dist/index214.js +6 -4
  234. package/dist/index214.js.map +1 -1
  235. package/dist/index215.js +4 -64
  236. package/dist/index215.js.map +1 -1
  237. package/dist/index216.js +7 -48
  238. package/dist/index216.js.map +1 -1
  239. package/dist/index217.js +17 -67
  240. package/dist/index217.js.map +1 -1
  241. package/dist/index218.js +5 -180
  242. package/dist/index218.js.map +1 -1
  243. package/dist/index219.js +5 -46
  244. package/dist/index219.js.map +1 -1
  245. package/dist/index220.js +13 -39
  246. package/dist/index220.js.map +1 -1
  247. package/dist/index221.js +10 -100
  248. package/dist/index221.js.map +1 -1
  249. package/dist/index222.js +14 -97
  250. package/dist/index222.js.map +1 -1
  251. package/dist/index223.js +14 -99
  252. package/dist/index223.js.map +1 -1
  253. package/dist/index224.js +5 -58
  254. package/dist/index224.js.map +1 -1
  255. package/dist/index225.js +6 -8
  256. package/dist/index225.js.map +1 -1
  257. package/dist/index226.js +7 -66
  258. package/dist/index226.js.map +1 -1
  259. package/dist/index227.js +6 -19
  260. package/dist/index227.js.map +1 -1
  261. package/dist/index228.js +9 -16
  262. package/dist/index228.js.map +1 -1
  263. package/dist/index229.js +5 -5
  264. package/dist/index229.js.map +1 -1
  265. package/dist/index230.js +5 -5
  266. package/dist/index230.js.map +1 -1
  267. package/dist/index231.js +9 -6
  268. package/dist/index231.js.map +1 -1
  269. package/dist/index232.js +5 -4
  270. package/dist/index232.js.map +1 -1
  271. package/dist/index233.js +5 -7
  272. package/dist/index233.js.map +1 -1
  273. package/dist/index234.js +4 -17
  274. package/dist/index234.js.map +1 -1
  275. package/dist/index235.js +11 -5
  276. package/dist/index235.js.map +1 -1
  277. package/dist/index236.js +10 -5
  278. package/dist/index236.js.map +1 -1
  279. package/dist/index237.js +10 -13
  280. package/dist/index237.js.map +1 -1
  281. package/dist/index238.js +11 -10
  282. package/dist/index238.js.map +1 -1
  283. package/dist/index239.js +10 -13
  284. package/dist/index239.js.map +1 -1
  285. package/dist/index240.js +10 -14
  286. package/dist/index240.js.map +1 -1
  287. package/dist/index241.js +7 -5
  288. package/dist/index241.js.map +1 -1
  289. package/dist/index242.js +6 -6
  290. package/dist/index242.js.map +1 -1
  291. package/dist/index243.js +5 -7
  292. package/dist/index243.js.map +1 -1
  293. package/dist/index244.js +6 -6
  294. package/dist/index244.js.map +1 -1
  295. package/dist/index245.js +7 -9
  296. package/dist/index245.js.map +1 -1
  297. package/dist/index246.js +6 -5
  298. package/dist/index246.js.map +1 -1
  299. package/dist/index247.js +55 -5
  300. package/dist/index247.js.map +1 -1
  301. package/dist/index248.js +23 -9
  302. package/dist/index248.js.map +1 -1
  303. package/dist/index249.js +16 -5
  304. package/dist/index249.js.map +1 -1
  305. package/dist/index250.js +7 -5
  306. package/dist/index250.js.map +1 -1
  307. package/dist/index251.js +10 -4
  308. package/dist/index251.js.map +1 -1
  309. package/dist/index252.js +10 -11
  310. package/dist/index252.js.map +1 -1
  311. package/dist/index253.js +21 -10
  312. package/dist/index253.js.map +1 -1
  313. package/dist/index254.js +10 -10
  314. package/dist/index254.js.map +1 -1
  315. package/dist/index255.js +9 -11
  316. package/dist/index255.js.map +1 -1
  317. package/dist/index256.js +9 -11
  318. package/dist/index256.js.map +1 -1
  319. package/dist/index257.js +4 -10
  320. package/dist/index257.js.map +1 -1
  321. package/dist/index258.js +5 -7
  322. package/dist/index258.js.map +1 -1
  323. package/dist/index259.js +16 -6
  324. package/dist/index259.js.map +1 -1
  325. package/dist/index260.js +9 -5
  326. package/dist/index260.js.map +1 -1
  327. package/dist/index261.js +18 -6
  328. package/dist/index261.js.map +1 -1
  329. package/dist/index262.js +15 -7
  330. package/dist/index262.js.map +1 -1
  331. package/dist/index263.js +12 -6
  332. package/dist/index263.js.map +1 -1
  333. package/dist/index264.js +29 -55
  334. package/dist/index264.js.map +1 -1
  335. package/dist/index265.js +12 -23
  336. package/dist/index265.js.map +1 -1
  337. package/dist/index266.js +23 -14
  338. package/dist/index266.js.map +1 -1
  339. package/dist/index267.js +5 -7
  340. package/dist/index267.js.map +1 -1
  341. package/dist/index268.js +23 -9
  342. package/dist/index268.js.map +1 -1
  343. package/dist/index269.js +29 -11
  344. package/dist/index269.js.map +1 -1
  345. package/dist/index270.js +5 -22
  346. package/dist/index270.js.map +1 -1
  347. package/dist/index271.js +13 -10
  348. package/dist/index271.js.map +1 -1
  349. package/dist/index272.js +154 -9
  350. package/dist/index272.js.map +1 -1
  351. package/dist/index273.js +30 -9
  352. package/dist/index273.js.map +1 -1
  353. package/dist/index274.js +9 -4
  354. package/dist/index274.js.map +1 -1
  355. package/dist/index275.js +47 -5
  356. package/dist/index275.js.map +1 -1
  357. package/dist/index276.js +10 -15
  358. package/dist/index276.js.map +1 -1
  359. package/dist/index277.js +44 -9
  360. package/dist/index277.js.map +1 -1
  361. package/dist/index278.js +95 -18
  362. package/dist/index278.js.map +1 -1
  363. package/dist/index279.js +86 -15
  364. package/dist/index279.js.map +1 -1
  365. package/dist/index280.js +103 -10
  366. package/dist/index280.js.map +1 -1
  367. package/dist/index281.js +51 -28
  368. package/dist/index281.js.map +1 -1
  369. package/dist/index282.js +10 -11
  370. package/dist/index282.js.map +1 -1
  371. package/dist/index283.js +36 -24
  372. package/dist/index283.js.map +1 -1
  373. package/dist/index284.js +8 -5
  374. package/dist/index284.js.map +1 -1
  375. package/dist/index285.js +117 -2
  376. package/dist/index285.js.map +1 -1
  377. package/dist/index286.js +18 -2
  378. package/dist/index286.js.map +1 -1
  379. package/dist/index287.js +16 -5
  380. package/dist/index287.js.map +1 -1
  381. package/dist/index288.js +4 -3
  382. package/dist/index288.js.map +1 -1
  383. package/dist/index289.js +36 -23
  384. package/dist/index289.js.map +1 -1
  385. package/dist/index29.js +3 -3
  386. package/dist/index290.js +20 -112
  387. package/dist/index290.js.map +1 -1
  388. package/dist/index291.js +9 -15
  389. package/dist/index291.js.map +1 -1
  390. package/dist/index292.js +7 -523
  391. package/dist/index292.js.map +1 -1
  392. package/dist/index293.js +16 -124
  393. package/dist/index293.js.map +1 -1
  394. package/dist/index294.js +25 -130
  395. package/dist/index294.js.map +1 -1
  396. package/dist/index295.js +16 -13
  397. package/dist/index295.js.map +1 -1
  398. package/dist/index296.js +4 -154
  399. package/dist/index296.js.map +1 -1
  400. package/dist/index297.js +18 -30
  401. package/dist/index297.js.map +1 -1
  402. package/dist/index298.js +12 -9
  403. package/dist/index298.js.map +1 -1
  404. package/dist/index299.js +5 -48
  405. package/dist/index299.js.map +1 -1
  406. package/dist/index30.js +14 -14
  407. package/dist/index300.js +3 -12
  408. package/dist/index300.js.map +1 -1
  409. package/dist/index301.js +22 -43
  410. package/dist/index301.js.map +1 -1
  411. package/dist/index302.js +109 -92
  412. package/dist/index302.js.map +1 -1
  413. package/dist/index303.js +15 -86
  414. package/dist/index303.js.map +1 -1
  415. package/dist/index304.js +513 -94
  416. package/dist/index304.js.map +1 -1
  417. package/dist/index305.js +125 -50
  418. package/dist/index305.js.map +1 -1
  419. package/dist/index306.js +132 -10
  420. package/dist/index306.js.map +1 -1
  421. package/dist/index307.js +19 -36
  422. package/dist/index307.js.map +1 -1
  423. package/dist/index308.js +5 -8
  424. package/dist/index308.js.map +1 -1
  425. package/dist/index309.js +5 -3
  426. package/dist/index309.js.map +1 -1
  427. package/dist/index31.js +3 -3
  428. package/dist/index310.js +4 -10
  429. package/dist/index310.js.map +1 -1
  430. package/dist/index311.js +15 -116
  431. package/dist/index311.js.map +1 -1
  432. package/dist/index312.js +8 -17
  433. package/dist/index312.js.map +1 -1
  434. package/dist/index313.js +5 -15
  435. package/dist/index313.js.map +1 -1
  436. package/dist/index314.js +4 -36
  437. package/dist/index314.js.map +1 -1
  438. package/dist/index315.js +544 -19
  439. package/dist/index315.js.map +1 -1
  440. package/dist/index316.js +46 -8
  441. package/dist/index316.js.map +1 -1
  442. package/dist/index317.js +17 -19
  443. package/dist/index317.js.map +1 -1
  444. package/dist/index318.js +6 -28
  445. package/dist/index318.js.map +1 -1
  446. package/dist/index319.js +8 -16
  447. package/dist/index319.js.map +1 -1
  448. package/dist/index32.js +2 -2
  449. package/dist/index320.js +7 -4
  450. package/dist/index320.js.map +1 -1
  451. package/dist/index321.js +9 -19
  452. package/dist/index321.js.map +1 -1
  453. package/dist/index322.js +12 -12
  454. package/dist/index322.js.map +1 -1
  455. package/dist/index323.js +10 -69
  456. package/dist/index323.js.map +1 -1
  457. package/dist/index324.js +14 -9
  458. package/dist/index324.js.map +1 -1
  459. package/dist/index325.js +64 -13
  460. package/dist/index325.js.map +1 -1
  461. package/dist/index326.js +68 -65
  462. package/dist/index326.js.map +1 -1
  463. package/dist/index327.js +8 -64
  464. package/dist/index327.js.map +1 -1
  465. package/dist/index328.js +14 -21
  466. package/dist/index328.js.map +1 -1
  467. package/dist/index329.js +66 -6
  468. package/dist/index329.js.map +1 -1
  469. package/dist/index33.js +1 -1
  470. package/dist/index330.js +4 -5
  471. package/dist/index330.js.map +1 -1
  472. package/dist/index331.js +56 -4
  473. package/dist/index331.js.map +1 -1
  474. package/dist/index332.js +68 -16
  475. package/dist/index332.js.map +1 -1
  476. package/dist/index333.js +31 -9
  477. package/dist/index333.js.map +1 -1
  478. package/dist/index334.js +9 -6
  479. package/dist/index334.js.map +1 -1
  480. package/dist/index335.js +153 -5
  481. package/dist/index335.js.map +1 -1
  482. package/dist/index336.js +106 -544
  483. package/dist/index336.js.map +1 -1
  484. package/dist/index337.js +4 -47
  485. package/dist/index337.js.map +1 -1
  486. package/dist/index338.js +22 -17
  487. package/dist/index338.js.map +1 -1
  488. package/dist/index339.js +15 -6
  489. package/dist/index339.js.map +1 -1
  490. package/dist/index34.js +1 -1
  491. package/dist/index340.js +28 -8
  492. package/dist/index340.js.map +1 -1
  493. package/dist/index341.js +12 -7
  494. package/dist/index341.js.map +1 -1
  495. package/dist/index342.js +6 -8
  496. package/dist/index342.js.map +1 -1
  497. package/dist/index343.js +13 -13
  498. package/dist/index343.js.map +1 -1
  499. package/dist/index344.js +27 -9
  500. package/dist/index344.js.map +1 -1
  501. package/dist/index345.js +5 -14
  502. package/dist/index345.js.map +1 -1
  503. package/dist/index346.js +23 -4
  504. package/dist/index346.js.map +1 -1
  505. package/dist/index35.js +1 -1
  506. package/dist/index36.js +1 -1
  507. package/dist/index38.js +10 -9
  508. package/dist/index38.js.map +1 -1
  509. package/dist/index39.js +2 -2
  510. package/dist/index40.js +24 -24
  511. package/dist/index42.js +1 -1
  512. package/dist/index46.js +1 -1
  513. package/dist/index47.js +2 -2
  514. package/dist/index50.js +2 -2
  515. package/dist/index51.js +18 -18
  516. package/dist/index55.js +1 -1
  517. package/dist/index56.js +1 -1
  518. package/dist/index57.js +5 -5
  519. package/dist/index58.js +53 -3
  520. package/dist/index58.js.map +1 -1
  521. package/dist/index60.js +33 -47
  522. package/dist/index60.js.map +1 -1
  523. package/dist/index62.js +7 -50
  524. package/dist/index62.js.map +1 -1
  525. package/dist/index63.js +11 -7
  526. package/dist/index63.js.map +1 -1
  527. package/dist/index64.js +3 -14
  528. package/dist/index64.js.map +1 -1
  529. package/dist/index65.js +43 -129
  530. package/dist/index65.js.map +1 -1
  531. package/dist/index66.js +50 -10
  532. package/dist/index66.js.map +1 -1
  533. package/dist/index67.js +7 -216
  534. package/dist/index67.js.map +1 -1
  535. package/dist/index68.js +15 -13
  536. package/dist/index68.js.map +1 -1
  537. package/dist/index69.js +132 -32
  538. package/dist/index69.js.map +1 -1
  539. package/dist/index70.js +10 -46
  540. package/dist/index70.js.map +1 -1
  541. package/dist/index71.js +216 -7
  542. package/dist/index71.js.map +1 -1
  543. package/dist/index72.js +12 -49
  544. package/dist/index72.js.map +1 -1
  545. package/dist/index73.js +47 -4
  546. package/dist/index73.js.map +1 -1
  547. package/dist/index74.js +49 -5
  548. package/dist/index74.js.map +1 -1
  549. package/dist/index75.js +4 -28
  550. package/dist/index75.js.map +1 -1
  551. package/dist/index76.js +6 -50
  552. package/dist/index76.js.map +1 -1
  553. package/dist/index77.js +28 -9
  554. package/dist/index77.js.map +1 -1
  555. package/dist/index78.js +50 -12
  556. package/dist/index78.js.map +1 -1
  557. package/dist/index79.js +9 -2
  558. package/dist/index79.js.map +1 -1
  559. package/dist/index80.js +2 -2
  560. package/dist/index81.js +2 -54
  561. package/dist/index81.js.map +1 -1
  562. package/dist/index82.js +5 -46
  563. package/dist/index82.js.map +1 -1
  564. package/dist/index83.js +7 -205
  565. package/dist/index83.js.map +1 -1
  566. package/dist/index84.js +6 -22
  567. package/dist/index84.js.map +1 -1
  568. package/dist/index85.js +605 -24
  569. package/dist/index85.js.map +1 -1
  570. package/dist/index86.js +3 -399
  571. package/dist/index86.js.map +1 -1
  572. package/dist/index87.js +32 -45
  573. package/dist/index87.js.map +1 -1
  574. package/dist/index88.js +249 -5
  575. package/dist/index88.js.map +1 -1
  576. package/dist/index89.js +114 -7
  577. package/dist/index89.js.map +1 -1
  578. package/dist/index90.js +219 -5
  579. package/dist/index90.js.map +1 -1
  580. package/dist/index91.js +60 -599
  581. package/dist/index91.js.map +1 -1
  582. package/dist/index92.js +20 -3
  583. package/dist/index92.js.map +1 -1
  584. package/dist/index93.js +208 -32
  585. package/dist/index93.js.map +1 -1
  586. package/dist/index94.js +279 -209
  587. package/dist/index94.js.map +1 -1
  588. package/dist/index95.js +115 -99
  589. package/dist/index95.js.map +1 -1
  590. package/dist/index96.js +20 -219
  591. package/dist/index96.js.map +1 -1
  592. package/dist/index97.js +60 -51
  593. package/dist/index97.js.map +1 -1
  594. package/dist/index98.js +11 -13
  595. package/dist/index98.js.map +1 -1
  596. package/dist/index99.js +89 -197
  597. package/dist/index99.js.map +1 -1
  598. package/package.json +1 -1
  599. package/dist/index347.js +0 -26
  600. package/dist/index347.js.map +0 -1
  601. package/dist/index348.js +0 -8
  602. package/dist/index348.js.map +0 -1
  603. package/dist/index349.js +0 -59
  604. package/dist/index349.js.map +0 -1
  605. package/dist/index350.js +0 -71
  606. package/dist/index350.js.map +0 -1
  607. package/dist/index351.js +0 -34
  608. package/dist/index351.js.map +0 -1
  609. package/dist/index352.js +0 -12
  610. package/dist/index352.js.map +0 -1
  611. package/dist/index353.js +0 -156
  612. package/dist/index353.js.map +0 -1
  613. package/dist/index354.js +0 -111
  614. package/dist/index354.js.map +0 -1
  615. package/dist/index355.js +0 -26
  616. package/dist/index355.js.map +0 -1
  617. package/dist/index356.js +0 -16
  618. package/dist/index356.js.map +0 -1
  619. package/dist/index357.js +0 -31
  620. package/dist/index357.js.map +0 -1
  621. package/dist/index358.js +0 -8
  622. package/dist/index358.js.map +0 -1
  623. package/dist/index359.js +0 -19
  624. package/dist/index359.js.map +0 -1
  625. package/dist/index360.js +0 -32
  626. package/dist/index360.js.map +0 -1
  627. package/dist/index361.js +0 -16
  628. package/dist/index361.js.map +0 -1
  629. package/dist/index362.js +0 -10
  630. package/dist/index362.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index288.js","sources":["../../../node_modules/react-remove-scroll/dist/es2015/medium.js"],"sourcesContent":["import { createSidecarMedium } from 'use-sidecar';\nexport var effectCar = createSidecarMedium();\n"],"names":["effectCar","createSidecarMedium"],"mappings":";AACU,IAACA,IAAYC,EAAmB;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index288.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/matchesEntirely.js"],"sourcesContent":["/**\r\n * Checks whether the entire input sequence can be matched\r\n * against the regular expression.\r\n * @return {boolean}\r\n */\nexport default function matchesEntirely(text, regularExpressionText) {\n // If the assigning of the `''` default value is moved to the arguments above,\n // the code coverage would decrease for some weird reason.\n text = text || '';\n return new RegExp('^(?:' + regularExpressionText + ')$').test(text);\n}\n//# sourceMappingURL=matchesEntirely.js.map"],"names":["matchesEntirely","text","regularExpressionText"],"mappings":"AAKe,SAASA,EAAgBC,GAAMC,GAAuB;AAGnE,SAAAD,IAAOA,KAAQ,IACR,IAAI,OAAO,SAASC,IAAwB,IAAI,EAAE,KAAKD,CAAI;AACpE;","x_google_ignoreList":[0]}
package/dist/index289.js CHANGED
@@ -1,27 +1,40 @@
1
- import * as f from "react";
2
- import { assignRef as o } from "./index346.js";
3
- import { useCallbackRef as l } from "./index347.js";
4
- var s = typeof window < "u" ? f.useLayoutEffect : f.useEffect, c = /* @__PURE__ */ new WeakMap();
5
- function v(e, m) {
6
- var t = l(null, function(n) {
7
- return e.forEach(function(u) {
8
- return o(u, n);
9
- });
10
- });
11
- return s(function() {
12
- var n = c.get(t);
13
- if (n) {
14
- var u = new Set(n), r = new Set(e), i = t.current;
15
- u.forEach(function(a) {
16
- r.has(a) || o(a, null);
17
- }), r.forEach(function(a) {
18
- u.has(a) || o(a, i);
19
- });
20
- }
21
- c.set(t, e);
22
- }, [e]), t;
1
+ import l from "./index294.js";
2
+ import o from "./index288.js";
3
+ import u from "./index271.js";
4
+ import N from "./index195.js";
5
+ function g(e, n, r) {
6
+ var i = l(e, r), a = i.carrierCode, t = i.nationalNumber;
7
+ if (t !== e) {
8
+ if (!m(e, t, r))
9
+ return {
10
+ nationalNumber: e
11
+ };
12
+ if (r.numberingPlan.possibleLengths() && (n || (n = N(r.numberingPlan.callingCode(), {
13
+ nationalNumber: t,
14
+ metadata: r
15
+ })), !f(t, n, r)))
16
+ return {
17
+ nationalNumber: e
18
+ };
19
+ }
20
+ return {
21
+ nationalNumber: t,
22
+ carrierCode: a
23
+ };
24
+ }
25
+ function m(e, n, r) {
26
+ return !(o(e, r.nationalNumberPattern()) && !o(n, r.nationalNumberPattern()));
27
+ }
28
+ function f(e, n, r) {
29
+ switch (u(e, n, r)) {
30
+ case "TOO_SHORT":
31
+ case "INVALID_LENGTH":
32
+ return !1;
33
+ default:
34
+ return !0;
35
+ }
23
36
  }
24
37
  export {
25
- v as useMergeRefs
38
+ g as default
26
39
  };
27
40
  //# sourceMappingURL=index289.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index289.js","sources":["../../../node_modules/use-callback-ref/dist/es2015/useMergeRef.js"],"sourcesContent":["import * as React from 'react';\nimport { assignRef } from './assignRef';\nimport { useCallbackRef } from './useRef';\nvar useIsomorphicLayoutEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;\nvar currentValues = new WeakMap();\n/**\n * Merges two or more refs together providing a single interface to set their value\n * @param {RefObject|Ref} refs\n * @returns {MutableRefObject} - a new ref, which translates all changes to {refs}\n *\n * @see {@link mergeRefs} a version without buit-in memoization\n * @see https://github.com/theKashey/use-callback-ref#usemergerefs\n * @example\n * const Component = React.forwardRef((props, ref) => {\n * const ownRef = useRef();\n * const domRef = useMergeRefs([ref, ownRef]); // 👈 merge together\n * return <div ref={domRef}>...</div>\n * }\n */\nexport function useMergeRefs(refs, defaultValue) {\n var callbackRef = useCallbackRef(defaultValue || null, function (newValue) {\n return refs.forEach(function (ref) { return assignRef(ref, newValue); });\n });\n // handle refs changes - added or removed\n useIsomorphicLayoutEffect(function () {\n var oldValue = currentValues.get(callbackRef);\n if (oldValue) {\n var prevRefs_1 = new Set(oldValue);\n var nextRefs_1 = new Set(refs);\n var current_1 = callbackRef.current;\n prevRefs_1.forEach(function (ref) {\n if (!nextRefs_1.has(ref)) {\n assignRef(ref, null);\n }\n });\n nextRefs_1.forEach(function (ref) {\n if (!prevRefs_1.has(ref)) {\n assignRef(ref, current_1);\n }\n });\n }\n currentValues.set(callbackRef, refs);\n }, [refs]);\n return callbackRef;\n}\n"],"names":["useIsomorphicLayoutEffect","React","currentValues","useMergeRefs","refs","defaultValue","callbackRef","useCallbackRef","newValue","ref","assignRef","oldValue","prevRefs_1","nextRefs_1","current_1"],"mappings":";;;AAGA,IAAIA,IAA4B,OAAO,SAAW,MAAcC,EAAM,kBAAkBA,EAAM,WAC1FC,IAAgB,oBAAI,QAAO;AAexB,SAASC,EAAaC,GAAMC,GAAc;AAC7C,MAAIC,IAAcC,EAA+B,MAAM,SAAUC,GAAU;AACvE,WAAOJ,EAAK,QAAQ,SAAUK,GAAK;AAAE,aAAOC,EAAUD,GAAKD,CAAQ;AAAA,IAAG,CAAC;AAAA,EAC3E,CAAC;AAED,SAAAR,EAA0B,WAAY;AAClC,QAAIW,IAAWT,EAAc,IAAII,CAAW;AAC5C,QAAIK,GAAU;AACV,UAAIC,IAAa,IAAI,IAAID,CAAQ,GAC7BE,IAAa,IAAI,IAAIT,CAAI,GACzBU,IAAYR,EAAY;AAC5B,MAAAM,EAAW,QAAQ,SAAUH,GAAK;AAC9B,QAAKI,EAAW,IAAIJ,CAAG,KACnBC,EAAUD,GAAK,IAAI;AAAA,MAE3B,CAAC,GACDI,EAAW,QAAQ,SAAUJ,GAAK;AAC9B,QAAKG,EAAW,IAAIH,CAAG,KACnBC,EAAUD,GAAKK,CAAS;AAAA,MAEhC,CAAC;AAAA,IACL;AACA,IAAAZ,EAAc,IAAII,GAAaF,CAAI;AAAA,EACvC,GAAG,CAACA,CAAI,CAAC,GACFE;AACX;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index289.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/extractNationalNumber.js"],"sourcesContent":["import extractNationalNumberFromPossiblyIncompleteNumber from './extractNationalNumberFromPossiblyIncompleteNumber.js';\nimport matchesEntirely from './matchesEntirely.js';\nimport checkNumberLength from './checkNumberLength.js';\nimport getCountryByCallingCode from './getCountryByCallingCode.js';\n\n/**\r\n * Strips national prefix and carrier code from a complete phone number.\r\n * The difference from the non-\"FromCompleteNumber\" function is that\r\n * it won't extract national prefix if the resultant number is too short\r\n * to be a complete number for the selected phone numbering plan.\r\n * @param {string} number — Complete phone number digits.\r\n * @param {string?} country — Country, if known.\r\n * @param {Metadata} metadata — Metadata with a phone numbering plan selected.\r\n * @return {object} `{ nationalNumber: string, carrierCode: string? }`.\r\n */\nexport default function extractNationalNumber(number, country, metadata) {\n // Parsing national prefixes and carrier codes\n // is only required for local phone numbers\n // but some people don't understand that\n // and sometimes write international phone numbers\n // with national prefixes (or maybe even carrier codes).\n // http://ucken.blogspot.ru/2016/03/trunk-prefixes-in-skype4b.html\n // Google's original library forgives such mistakes\n // and so does this library, because it has been requested:\n // https://github.com/catamphetamine/libphonenumber-js/issues/127\n var _extractNationalNumbe = extractNationalNumberFromPossiblyIncompleteNumber(number, metadata),\n carrierCode = _extractNationalNumbe.carrierCode,\n nationalNumber = _extractNationalNumbe.nationalNumber;\n if (nationalNumber !== number) {\n if (!shouldHaveExtractedNationalPrefix(number, nationalNumber, metadata)) {\n // Don't strip the national prefix.\n return {\n nationalNumber: number\n };\n }\n // Check the national (significant) number length after extracting national prefix and carrier code.\n // Legacy generated metadata (before `1.0.18`) didn't support the \"possible lengths\" feature.\n if (metadata.numberingPlan.possibleLengths()) {\n // If an exact `country` is not specified, attempt to detect it from the assumed national number.\n if (!country) {\n country = getCountryByCallingCode(metadata.numberingPlan.callingCode(), {\n nationalNumber: nationalNumber,\n metadata: metadata\n });\n }\n\n // The number remaining after stripping the national prefix and carrier code\n // should be long enough to have a possible length for the country.\n // Otherwise, don't strip the national prefix and carrier code,\n // since the original number could be a valid number.\n // This check has been copy-pasted \"as is\" from Google's original library:\n // https://github.com/google/libphonenumber/blob/876268eb1ad6cdc1b7b5bef17fc5e43052702d57/java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java#L3236-L3250\n // It doesn't check for the \"possibility\" of the original `number`.\n // I guess it's fine not checking that one. It works as is anyway.\n if (!isPossibleIncompleteNationalNumber(nationalNumber, country, metadata)) {\n // Don't strip the national prefix.\n return {\n nationalNumber: number\n };\n }\n }\n }\n return {\n nationalNumber: nationalNumber,\n carrierCode: carrierCode\n };\n}\n\n// In some countries, the same digit could be a national prefix\n// or a leading digit of a valid phone number.\n// For example, in Russia, national prefix is `8`,\n// and also `800 555 35 35` is a valid number\n// in which `8` is not a national prefix, but the first digit\n// of a national (significant) number.\n// Same's with Belarus:\n// `82004910060` is a valid national (significant) number,\n// but `2004910060` is not.\n// To support such cases (to prevent the code from always stripping\n// national prefix), a condition is imposed: a national prefix\n// is not extracted when the original number is \"viable\" and the\n// resultant number is not, a \"viable\" national number being the one\n// that matches `national_number_pattern`.\nfunction shouldHaveExtractedNationalPrefix(nationalNumberBefore, nationalNumberAfter, metadata) {\n // The equivalent in Google's code is:\n // https://github.com/google/libphonenumber/blob/e326fa1fc4283bb05eb35cb3c15c18f98a31af33/java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java#L2969-L3004\n if (matchesEntirely(nationalNumberBefore, metadata.nationalNumberPattern()) && !matchesEntirely(nationalNumberAfter, metadata.nationalNumberPattern())) {\n return false;\n }\n // This \"is possible\" national number (length) check has been commented out\n // because it's superceded by the (effectively) same check done in the\n // `extractNationalNumber()` function after it calls `shouldHaveExtractedNationalPrefix()`.\n // In other words, why run the same check twice if it could only be run once.\n // // Check the national (significant) number length after extracting national prefix and carrier code.\n // // Fixes a minor \"weird behavior\" bug: https://gitlab.com/catamphetamine/libphonenumber-js/-/issues/57\n // // (Legacy generated metadata (before `1.0.18`) didn't support the \"possible lengths\" feature).\n // if (metadata.possibleLengths()) {\n // \tif (isPossibleIncompleteNationalNumber(nationalNumberBefore, metadata) &&\n // \t\t!isPossibleIncompleteNationalNumber(nationalNumberAfter, metadata)) {\n // \t\treturn false\n // \t}\n // }\n return true;\n}\nfunction isPossibleIncompleteNationalNumber(nationalNumber, country, metadata) {\n switch (checkNumberLength(nationalNumber, country, metadata)) {\n case 'TOO_SHORT':\n case 'INVALID_LENGTH':\n // This library ignores \"local-only\" phone numbers (for simplicity).\n // See the readme for more info on what are \"local-only\" phone numbers.\n // case 'IS_POSSIBLE_LOCAL_ONLY':\n return false;\n default:\n return true;\n }\n}\n//# sourceMappingURL=extractNationalNumber.js.map"],"names":["extractNationalNumber","number","country","metadata","_extractNationalNumbe","extractNationalNumberFromPossiblyIncompleteNumber","carrierCode","nationalNumber","shouldHaveExtractedNationalPrefix","getCountryByCallingCode","isPossibleIncompleteNationalNumber","nationalNumberBefore","nationalNumberAfter","matchesEntirely","checkNumberLength"],"mappings":";;;;AAee,SAASA,EAAsBC,GAAQC,GAASC,GAAU;AAUvE,MAAIC,IAAwBC,EAAkDJ,GAAQE,CAAQ,GAC5FG,IAAcF,EAAsB,aACpCG,IAAiBH,EAAsB;AACzC,MAAIG,MAAmBN,GAAQ;AAC7B,QAAI,CAACO,EAAkCP,GAAQM,GAAgBJ,CAAQ;AAErE,aAAO;AAAA,QACL,gBAAgBF;AAAA,MACxB;AAII,QAAIE,EAAS,cAAc,sBAEpBD,MACHA,IAAUO,EAAwBN,EAAS,cAAc,YAAW,GAAI;AAAA,MACtE,gBAAgBI;AAAA,MAChB,UAAUJ;AAAA,IACpB,CAAS,IAWC,CAACO,EAAmCH,GAAgBL,GAASC,CAAQ;AAEvE,aAAO;AAAA,QACL,gBAAgBF;AAAA,MAC1B;AAAA,EAGE;AACA,SAAO;AAAA,IACL,gBAAgBM;AAAA,IAChB,aAAaD;AAAA,EACjB;AACA;AAgBA,SAASE,EAAkCG,GAAsBC,GAAqBT,GAAU;AAG9F,SAAI,EAAAU,EAAgBF,GAAsBR,EAAS,sBAAqB,CAAE,KAAK,CAACU,EAAgBD,GAAqBT,EAAS,sBAAqB,CAAE;AAiBvJ;AACA,SAASO,EAAmCH,GAAgBL,GAASC,GAAU;AAC7E,UAAQW,EAAkBP,GAAgBL,GAASC,CAAQ,GAAC;AAAA,IAC1D,KAAK;AAAA,IACL,KAAK;AAIH,aAAO;AAAA,IACT;AACE,aAAO;AAAA,EACb;AACA;","x_google_ignoreList":[0]}
package/dist/index29.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import * as s from "react";
2
2
  import { composeEventHandlers as h } from "./index59.js";
3
- import { Primitive as w, dispatchDiscreteCustomEvent as k } from "./index69.js";
3
+ import { Primitive as w, dispatchDiscreteCustomEvent as k } from "./index60.js";
4
4
  import { useComposedRefs as R } from "./index61.js";
5
- import { useCallbackRef as g } from "./index71.js";
6
- import { useEscapeKeydown as U } from "./index78.js";
5
+ import { useCallbackRef as g } from "./index62.js";
6
+ import { useEscapeKeydown as U } from "./index63.js";
7
7
  import { j as x } from "./index28.js";
8
8
  var j = "DismissableLayer", p = "dismissableLayer.update", z = "dismissableLayer.pointerDownOutside", H = "dismissableLayer.focusOutside", C, T = s.createContext({
9
9
  layers: /* @__PURE__ */ new Set(),
package/dist/index290.js CHANGED
@@ -1,116 +1,24 @@
1
- import { __spreadArray as N } from "./index191.js";
2
- import * as n from "react";
3
- import { RemoveScrollBar as W } from "./index323.js";
4
- import { styleSingleton as F } from "./index324.js";
5
- import { nonPassive as s } from "./index325.js";
6
- import { locationCouldBeScrolled as B, handleScroll as K } from "./index326.js";
7
- var k = function(e) {
8
- return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
9
- }, M = function(e) {
10
- return [e.deltaX, e.deltaY];
11
- }, X = function(e) {
12
- return e && "current" in e ? e.current : e;
13
- }, O = function(e, c) {
14
- return e[0] === c[0] && e[1] === c[1];
15
- }, Q = function(e) {
16
- return `
17
- .block-interactivity-`.concat(e, ` {pointer-events: none;}
18
- .allow-interactivity-`).concat(e, ` {pointer-events: all;}
19
- `);
20
- }, Z = 0, f = [];
21
- function J(e) {
22
- var c = n.useRef([]), R = n.useRef([0, 0]), m = n.useRef(), h = n.useState(Z++)[0], g = n.useState(F)[0], S = n.useRef(e);
23
- n.useEffect(function() {
24
- S.current = e;
25
- }, [e]), n.useEffect(function() {
26
- if (e.inert) {
27
- document.body.classList.add("block-interactivity-".concat(h));
28
- var t = N([e.lockRef.current], (e.shards || []).map(X), !0).filter(Boolean);
29
- return t.forEach(function(r) {
30
- return r.classList.add("allow-interactivity-".concat(h));
31
- }), function() {
32
- document.body.classList.remove("block-interactivity-".concat(h)), t.forEach(function(r) {
33
- return r.classList.remove("allow-interactivity-".concat(h));
34
- });
35
- };
36
- }
37
- }, [e.inert, e.lockRef.current, e.shards]);
38
- var C = n.useCallback(function(t, r) {
39
- if ("touches" in t && t.touches.length === 2 || t.type === "wheel" && t.ctrlKey)
40
- return !S.current.allowPinchZoom;
41
- var l = k(t), u = R.current, o = "deltaX" in t ? t.deltaX : u[0] - l[0], i = "deltaY" in t ? t.deltaY : u[1] - l[1], a, v = t.target, d = Math.abs(o) > Math.abs(i) ? "h" : "v";
42
- if ("touches" in t && d === "h" && v.type === "range")
43
- return !1;
44
- var P = window.getSelection(), E = P && P.anchorNode, I = E ? E === v || E.contains(v) : !1;
45
- if (I)
46
- return !1;
47
- var b = B(d, v);
48
- if (!b)
49
- return !0;
50
- if (b ? a = d : (a = d === "v" ? "h" : "v", b = B(d, v)), !b)
51
- return !1;
52
- if (!m.current && "changedTouches" in t && (o || i) && (m.current = a), !a)
53
- return !0;
54
- var Y = m.current || a;
55
- return K(Y, r, t, Y === "h" ? o : i);
56
- }, []), y = n.useCallback(function(t) {
57
- var r = t;
58
- if (!(!f.length || f[f.length - 1] !== g)) {
59
- var l = "deltaY" in r ? M(r) : k(r), u = c.current.filter(function(a) {
60
- return a.name === r.type && (a.target === r.target || r.target === a.shadowParent) && O(a.delta, l);
61
- })[0];
62
- if (u && u.should) {
63
- r.cancelable && r.preventDefault();
64
- return;
65
- }
66
- if (!u) {
67
- var o = (S.current.shards || []).map(X).filter(Boolean).filter(function(a) {
68
- return a.contains(r.target);
69
- }), i = o.length > 0 ? C(r, o[0]) : !S.current.noIsolation;
70
- i && r.cancelable && r.preventDefault();
71
- }
72
- }
73
- }, []), w = n.useCallback(function(t, r, l, u) {
74
- var o = { name: t, delta: r, target: l, should: u, shadowParent: _(l) };
75
- c.current.push(o), setTimeout(function() {
76
- c.current = c.current.filter(function(i) {
77
- return i !== o;
78
- });
79
- }, 1);
80
- }, []), L = n.useCallback(function(t) {
81
- R.current = k(t), m.current = void 0;
82
- }, []), T = n.useCallback(function(t) {
83
- w(t.type, M(t), t.target, C(t, e.lockRef.current));
84
- }, []), D = n.useCallback(function(t) {
85
- w(t.type, k(t), t.target, C(t, e.lockRef.current));
86
- }, []);
87
- n.useEffect(function() {
88
- return f.push(g), e.setCallbacks({
89
- onScrollCapture: T,
90
- onWheelCapture: T,
91
- onTouchMoveCapture: D
92
- }), document.addEventListener("wheel", y, s), document.addEventListener("touchmove", y, s), document.addEventListener("touchstart", L, s), function() {
93
- f = f.filter(function(t) {
94
- return t !== g;
95
- }), document.removeEventListener("wheel", y, s), document.removeEventListener("touchmove", y, s), document.removeEventListener("touchstart", L, s);
96
- };
97
- }, []);
98
- var x = e.removeScrollBar, A = e.inert;
99
- return n.createElement(
100
- n.Fragment,
101
- null,
102
- A ? n.createElement(g, { styles: Q(h) }) : null,
103
- x ? n.createElement(W, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
104
- );
105
- }
106
- function _(e) {
107
- for (var c = null; e !== null; )
108
- e instanceof ShadowRoot && (c = e.host, e = e.host), e = e.parentNode;
109
- return c;
1
+ import s, { isPhoneContextValid as x, PLUS_SIGN as F, RFC3966_PREFIX_ as a, RFC3966_PHONE_CONTEXT_ as d, RFC3966_ISDN_SUBADDRESS_ as m } from "./index307.js";
2
+ import v from "./index279.js";
3
+ function S(r, _) {
4
+ var f = _.extractFormattedPhoneNumber, e = s(r);
5
+ if (!x(e))
6
+ throw new v("NOT_A_NUMBER");
7
+ var t;
8
+ if (e === null)
9
+ t = f(r) || "";
10
+ else {
11
+ t = "", e.charAt(0) === F && (t += e);
12
+ var n = r.indexOf(a), o;
13
+ n >= 0 ? o = n + a.length : o = 0;
14
+ var h = r.indexOf(d);
15
+ t += r.substring(o, h);
16
+ }
17
+ var i = t.indexOf(m);
18
+ if (i > 0 && (t = t.substring(0, i)), t !== "")
19
+ return t;
110
20
  }
111
21
  export {
112
- J as RemoveScrollSideCar,
113
- M as getDeltaXY,
114
- k as getTouchXY
22
+ S as default
115
23
  };
116
24
  //# sourceMappingURL=index290.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index290.js","sources":["../../../node_modules/react-remove-scroll/dist/es2015/SideEffect.js"],"sourcesContent":["import { __spreadArray } from \"tslib\";\nimport * as React from 'react';\nimport { RemoveScrollBar } from 'react-remove-scroll-bar';\nimport { styleSingleton } from 'react-style-singleton';\nimport { nonPassive } from './aggresiveCapture';\nimport { handleScroll, locationCouldBeScrolled } from './handleScroll';\nexport var getTouchXY = function (event) {\n return 'changedTouches' in event ? [event.changedTouches[0].clientX, event.changedTouches[0].clientY] : [0, 0];\n};\nexport var getDeltaXY = function (event) { return [event.deltaX, event.deltaY]; };\nvar extractRef = function (ref) {\n return ref && 'current' in ref ? ref.current : ref;\n};\nvar deltaCompare = function (x, y) { return x[0] === y[0] && x[1] === y[1]; };\nvar generateStyle = function (id) { return \"\\n .block-interactivity-\".concat(id, \" {pointer-events: none;}\\n .allow-interactivity-\").concat(id, \" {pointer-events: all;}\\n\"); };\nvar idCounter = 0;\nvar lockStack = [];\nexport function RemoveScrollSideCar(props) {\n var shouldPreventQueue = React.useRef([]);\n var touchStartRef = React.useRef([0, 0]);\n var activeAxis = React.useRef();\n var id = React.useState(idCounter++)[0];\n var Style = React.useState(styleSingleton)[0];\n var lastProps = React.useRef(props);\n React.useEffect(function () {\n lastProps.current = props;\n }, [props]);\n React.useEffect(function () {\n if (props.inert) {\n document.body.classList.add(\"block-interactivity-\".concat(id));\n var allow_1 = __spreadArray([props.lockRef.current], (props.shards || []).map(extractRef), true).filter(Boolean);\n allow_1.forEach(function (el) { return el.classList.add(\"allow-interactivity-\".concat(id)); });\n return function () {\n document.body.classList.remove(\"block-interactivity-\".concat(id));\n allow_1.forEach(function (el) { return el.classList.remove(\"allow-interactivity-\".concat(id)); });\n };\n }\n return;\n }, [props.inert, props.lockRef.current, props.shards]);\n var shouldCancelEvent = React.useCallback(function (event, parent) {\n if (('touches' in event && event.touches.length === 2) || (event.type === 'wheel' && event.ctrlKey)) {\n return !lastProps.current.allowPinchZoom;\n }\n var touch = getTouchXY(event);\n var touchStart = touchStartRef.current;\n var deltaX = 'deltaX' in event ? event.deltaX : touchStart[0] - touch[0];\n var deltaY = 'deltaY' in event ? event.deltaY : touchStart[1] - touch[1];\n var currentAxis;\n var target = event.target;\n var moveDirection = Math.abs(deltaX) > Math.abs(deltaY) ? 'h' : 'v';\n // allow horizontal touch move on Range inputs. They will not cause any scroll\n if ('touches' in event && moveDirection === 'h' && target.type === 'range') {\n return false;\n }\n // allow drag selection (iOS); check if selection's anchorNode is the same as target or contains target\n var selection = window.getSelection();\n var anchorNode = selection && selection.anchorNode;\n var isTouchingSelection = anchorNode ? anchorNode === target || anchorNode.contains(target) : false;\n if (isTouchingSelection) {\n return false;\n }\n var canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);\n if (!canBeScrolledInMainDirection) {\n return true;\n }\n if (canBeScrolledInMainDirection) {\n currentAxis = moveDirection;\n }\n else {\n currentAxis = moveDirection === 'v' ? 'h' : 'v';\n canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);\n // other axis might be not scrollable\n }\n if (!canBeScrolledInMainDirection) {\n return false;\n }\n if (!activeAxis.current && 'changedTouches' in event && (deltaX || deltaY)) {\n activeAxis.current = currentAxis;\n }\n if (!currentAxis) {\n return true;\n }\n var cancelingAxis = activeAxis.current || currentAxis;\n return handleScroll(cancelingAxis, parent, event, cancelingAxis === 'h' ? deltaX : deltaY, true);\n }, []);\n var shouldPrevent = React.useCallback(function (_event) {\n var event = _event;\n if (!lockStack.length || lockStack[lockStack.length - 1] !== Style) {\n // not the last active\n return;\n }\n var delta = 'deltaY' in event ? getDeltaXY(event) : getTouchXY(event);\n var sourceEvent = shouldPreventQueue.current.filter(function (e) { return e.name === event.type && (e.target === event.target || event.target === e.shadowParent) && deltaCompare(e.delta, delta); })[0];\n // self event, and should be canceled\n if (sourceEvent && sourceEvent.should) {\n if (event.cancelable) {\n event.preventDefault();\n }\n return;\n }\n // outside or shard event\n if (!sourceEvent) {\n var shardNodes = (lastProps.current.shards || [])\n .map(extractRef)\n .filter(Boolean)\n .filter(function (node) { return node.contains(event.target); });\n var shouldStop = shardNodes.length > 0 ? shouldCancelEvent(event, shardNodes[0]) : !lastProps.current.noIsolation;\n if (shouldStop) {\n if (event.cancelable) {\n event.preventDefault();\n }\n }\n }\n }, []);\n var shouldCancel = React.useCallback(function (name, delta, target, should) {\n var event = { name: name, delta: delta, target: target, should: should, shadowParent: getOutermostShadowParent(target) };\n shouldPreventQueue.current.push(event);\n setTimeout(function () {\n shouldPreventQueue.current = shouldPreventQueue.current.filter(function (e) { return e !== event; });\n }, 1);\n }, []);\n var scrollTouchStart = React.useCallback(function (event) {\n touchStartRef.current = getTouchXY(event);\n activeAxis.current = undefined;\n }, []);\n var scrollWheel = React.useCallback(function (event) {\n shouldCancel(event.type, getDeltaXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));\n }, []);\n var scrollTouchMove = React.useCallback(function (event) {\n shouldCancel(event.type, getTouchXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));\n }, []);\n React.useEffect(function () {\n lockStack.push(Style);\n props.setCallbacks({\n onScrollCapture: scrollWheel,\n onWheelCapture: scrollWheel,\n onTouchMoveCapture: scrollTouchMove,\n });\n document.addEventListener('wheel', shouldPrevent, nonPassive);\n document.addEventListener('touchmove', shouldPrevent, nonPassive);\n document.addEventListener('touchstart', scrollTouchStart, nonPassive);\n return function () {\n lockStack = lockStack.filter(function (inst) { return inst !== Style; });\n document.removeEventListener('wheel', shouldPrevent, nonPassive);\n document.removeEventListener('touchmove', shouldPrevent, nonPassive);\n document.removeEventListener('touchstart', scrollTouchStart, nonPassive);\n };\n }, []);\n var removeScrollBar = props.removeScrollBar, inert = props.inert;\n return (React.createElement(React.Fragment, null,\n inert ? React.createElement(Style, { styles: generateStyle(id) }) : null,\n removeScrollBar ? React.createElement(RemoveScrollBar, { noRelative: props.noRelative, gapMode: props.gapMode }) : null));\n}\nfunction getOutermostShadowParent(node) {\n var shadowParent = null;\n while (node !== null) {\n if (node instanceof ShadowRoot) {\n shadowParent = node.host;\n node = node.host;\n }\n node = node.parentNode;\n }\n return shadowParent;\n}\n"],"names":["getTouchXY","event","getDeltaXY","extractRef","ref","deltaCompare","x","y","generateStyle","id","idCounter","lockStack","RemoveScrollSideCar","props","shouldPreventQueue","React","touchStartRef","activeAxis","Style","styleSingleton","lastProps","allow_1","__spreadArray","el","shouldCancelEvent","parent","touch","touchStart","deltaX","deltaY","currentAxis","target","moveDirection","selection","anchorNode","isTouchingSelection","canBeScrolledInMainDirection","locationCouldBeScrolled","cancelingAxis","handleScroll","shouldPrevent","_event","delta","sourceEvent","e","shardNodes","node","shouldStop","shouldCancel","name","should","getOutermostShadowParent","scrollTouchStart","scrollWheel","scrollTouchMove","nonPassive","inst","removeScrollBar","inert","RemoveScrollBar","shadowParent"],"mappings":";;;;;;AAMU,IAACA,IAAa,SAAUC,GAAO;AACrC,SAAO,oBAAoBA,IAAQ,CAACA,EAAM,eAAe,CAAC,EAAE,SAASA,EAAM,eAAe,CAAC,EAAE,OAAO,IAAI,CAAC,GAAG,CAAC;AACjH,GACWC,IAAa,SAAUD,GAAO;AAAE,SAAO,CAACA,EAAM,QAAQA,EAAM,MAAM;AAAG,GAC5EE,IAAa,SAAUC,GAAK;AAC5B,SAAOA,KAAO,aAAaA,IAAMA,EAAI,UAAUA;AACnD,GACIC,IAAe,SAAUC,GAAGC,GAAG;AAAE,SAAOD,EAAE,CAAC,MAAMC,EAAE,CAAC,KAAKD,EAAE,CAAC,MAAMC,EAAE,CAAC;AAAG,GACxEC,IAAgB,SAAUC,GAAI;A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BL,GAAM;AAEpC,WADIc,IAAe,MACZd,MAAS;AACZ,IAAIA,aAAgB,eAChBc,IAAed,EAAK,MACpBA,IAAOA,EAAK,OAEhBA,IAAOA,EAAK;AAEhB,SAAOc;AACX;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index290.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js"],"sourcesContent":["import extractPhoneContext, { isPhoneContextValid, PLUS_SIGN, RFC3966_PREFIX_, RFC3966_PHONE_CONTEXT_, RFC3966_ISDN_SUBADDRESS_ } from './extractPhoneContext.js';\nimport ParseError from '../ParseError.js';\n\n/**\r\n * @param {string} numberToParse\r\n * @param {string} nationalNumber\r\n * @return {}\r\n */\nexport default function extractFormattedPhoneNumberFromPossibleRfc3966NumberUri(numberToParse, _ref) {\n var extractFormattedPhoneNumber = _ref.extractFormattedPhoneNumber;\n var phoneContext = extractPhoneContext(numberToParse);\n if (!isPhoneContextValid(phoneContext)) {\n throw new ParseError('NOT_A_NUMBER');\n }\n var phoneNumberString;\n if (phoneContext === null) {\n // Extract a possible number from the string passed in.\n // (this strips leading characters that could not be the start of a phone number)\n phoneNumberString = extractFormattedPhoneNumber(numberToParse) || '';\n } else {\n phoneNumberString = '';\n\n // If the phone context contains a phone number prefix, we need to capture\n // it, whereas domains will be ignored.\n if (phoneContext.charAt(0) === PLUS_SIGN) {\n phoneNumberString += phoneContext;\n }\n\n // Now append everything between the \"tel:\" prefix and the phone-context.\n // This should include the national number, an optional extension or\n // isdn-subaddress component. Note we also handle the case when \"tel:\" is\n // missing, as we have seen in some of the phone number inputs.\n // In that case, we append everything from the beginning.\n var indexOfRfc3966Prefix = numberToParse.indexOf(RFC3966_PREFIX_);\n var indexOfNationalNumber;\n // RFC 3966 \"tel:\" prefix is preset at this stage because\n // `isPhoneContextValid()` requires it to be present.\n /* istanbul ignore else */\n if (indexOfRfc3966Prefix >= 0) {\n indexOfNationalNumber = indexOfRfc3966Prefix + RFC3966_PREFIX_.length;\n } else {\n indexOfNationalNumber = 0;\n }\n var indexOfPhoneContext = numberToParse.indexOf(RFC3966_PHONE_CONTEXT_);\n phoneNumberString += numberToParse.substring(indexOfNationalNumber, indexOfPhoneContext);\n }\n\n // Delete the isdn-subaddress and everything after it if it is present.\n // Note extension won't appear at the same time with isdn-subaddress\n // according to paragraph 5.3 of the RFC3966 spec.\n var indexOfIsdn = phoneNumberString.indexOf(RFC3966_ISDN_SUBADDRESS_);\n if (indexOfIsdn > 0) {\n phoneNumberString = phoneNumberString.substring(0, indexOfIsdn);\n }\n // If both phone context and isdn-subaddress are absent but other\n // parameters are present, the parameters are left in nationalNumber.\n // This is because we are concerned about deleting content from a potential\n // number string when there is no strong evidence that the number is\n // actually written in RFC3966.\n\n if (phoneNumberString !== '') {\n return phoneNumberString;\n }\n}\n//# sourceMappingURL=extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js.map"],"names":["extractFormattedPhoneNumberFromPossibleRfc3966NumberUri","numberToParse","_ref","extractFormattedPhoneNumber","phoneContext","extractPhoneContext","isPhoneContextValid","ParseError","phoneNumberString","PLUS_SIGN","indexOfRfc3966Prefix","RFC3966_PREFIX_","indexOfNationalNumber","indexOfPhoneContext","RFC3966_PHONE_CONTEXT_","indexOfIsdn","RFC3966_ISDN_SUBADDRESS_"],"mappings":";;AAQe,SAASA,EAAwDC,GAAeC,GAAM;AACnG,MAAIC,IAA8BD,EAAK,6BACnCE,IAAeC,EAAoBJ,CAAa;AACpD,MAAI,CAACK,EAAoBF,CAAY;AACnC,UAAM,IAAIG,EAAW,cAAc;AAErC,MAAIC;AACJ,MAAIJ,MAAiB;AAGnB,IAAAI,IAAoBL,EAA4BF,CAAa,KAAK;AAAA,OAC7D;AACL,IAAAO,IAAoB,IAIhBJ,EAAa,OAAO,CAAC,MAAMK,MAC7BD,KAAqBJ;AAQvB,QAAIM,IAAuBT,EAAc,QAAQU,CAAe,GAC5DC;AAIJ,IAAIF,KAAwB,IAC1BE,IAAwBF,IAAuBC,EAAgB,SAE/DC,IAAwB;AAE1B,QAAIC,IAAsBZ,EAAc,QAAQa,CAAsB;AACtE,IAAAN,KAAqBP,EAAc,UAAUW,GAAuBC,CAAmB;AAAA,EACzF;AAKA,MAAIE,IAAcP,EAAkB,QAAQQ,CAAwB;AAUpE,MATID,IAAc,MAChBP,IAAoBA,EAAkB,UAAU,GAAGO,CAAW,IAQ5DP,MAAsB;AACxB,WAAOA;AAEX;","x_google_ignoreList":[0]}
package/dist/index291.js CHANGED
@@ -1,19 +1,13 @@
1
- import { __rest as o, __assign as d } from "./index191.js";
2
- import * as n from "react";
3
- var i = function(r) {
4
- var e = r.sideCar, a = o(r, ["sideCar"]);
5
- if (!e)
6
- throw new Error("Sidecar: please provide `sideCar` property to import the right car");
7
- var t = e.read();
8
- if (!t)
9
- throw new Error("Sidecar medium not found");
10
- return n.createElement(t, d({}, a));
11
- };
12
- i.isSideCarExport = !0;
13
- function p(r, e) {
14
- return r.useMedium(e), i;
1
+ import f from "./index191.js";
2
+ var u = /^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;
3
+ function D(t, r, a) {
4
+ var e = new f(a);
5
+ if (e.selectNumberingPlan(t, r), e.defaultIDDPrefix())
6
+ return e.defaultIDDPrefix();
7
+ if (u.test(e.IDDPrefix()))
8
+ return e.IDDPrefix();
15
9
  }
16
10
  export {
17
- p as exportSidecar
11
+ D as default
18
12
  };
19
13
  //# sourceMappingURL=index291.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index291.js","sources":["../../../node_modules/use-sidecar/dist/es2015/exports.js"],"sourcesContent":["import { __assign, __rest } from \"tslib\";\nimport * as React from 'react';\nvar SideCar = function (_a) {\n var sideCar = _a.sideCar, rest = __rest(_a, [\"sideCar\"]);\n if (!sideCar) {\n throw new Error('Sidecar: please provide `sideCar` property to import the right car');\n }\n var Target = sideCar.read();\n if (!Target) {\n throw new Error('Sidecar medium not found');\n }\n return React.createElement(Target, __assign({}, rest));\n};\nSideCar.isSideCarExport = true;\nexport function exportSidecar(medium, exported) {\n medium.useMedium(exported);\n return SideCar;\n}\n"],"names":["SideCar","_a","sideCar","rest","__rest","Target","React","__assign","exportSidecar","medium","exported"],"mappings":";;AAEA,IAAIA,IAAU,SAAUC,GAAI;AACxB,MAAIC,IAAUD,EAAG,SAASE,IAAOC,EAAOH,GAAI,CAAC,SAAS,CAAC;AACvD,MAAI,CAACC;AACD,UAAM,IAAI,MAAM,oEAAoE;AAExF,MAAIG,IAASH,EAAQ,KAAI;AACzB,MAAI,CAACG;AACD,UAAM,IAAI,MAAM,0BAA0B;AAE9C,SAAOC,EAAM,cAAcD,GAAQE,EAAS,CAAA,GAAIJ,CAAI,CAAC;AACzD;AACAH,EAAQ,kBAAkB;AACnB,SAASQ,EAAcC,GAAQC,GAAU;AAC5C,SAAAD,EAAO,UAAUC,CAAQ,GAClBV;AACX;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index291.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/getIddPrefix.js"],"sourcesContent":["import Metadata from '../metadata.js';\n\n/**\r\n * Pattern that makes it easy to distinguish whether a region has a single\r\n * international dialing prefix or not. If a region has a single international\r\n * prefix (e.g. 011 in USA), it will be represented as a string that contains\r\n * a sequence of ASCII digits, and possibly a tilde, which signals waiting for\r\n * the tone. If there are multiple available international prefixes in a\r\n * region, they will be represented as a regex string that always contains one\r\n * or more characters that are not ASCII digits or a tilde.\r\n */\nvar SINGLE_IDD_PREFIX_REG_EXP = /^[\\d]+(?:[~\\u2053\\u223C\\uFF5E][\\d]+)?$/;\n\n// For regions that have multiple IDD prefixes\n// a preferred IDD prefix is returned.\nexport default function getIddPrefix(country, callingCode, metadata) {\n var countryMetadata = new Metadata(metadata);\n countryMetadata.selectNumberingPlan(country, callingCode);\n if (countryMetadata.defaultIDDPrefix()) {\n return countryMetadata.defaultIDDPrefix();\n }\n if (SINGLE_IDD_PREFIX_REG_EXP.test(countryMetadata.IDDPrefix())) {\n return countryMetadata.IDDPrefix();\n }\n}\n//# sourceMappingURL=getIddPrefix.js.map"],"names":["SINGLE_IDD_PREFIX_REG_EXP","getIddPrefix","country","callingCode","metadata","countryMetadata","Metadata"],"mappings":";AAWA,IAAIA,IAA4B;AAIjB,SAASC,EAAaC,GAASC,GAAaC,GAAU;AACnE,MAAIC,IAAkB,IAAIC,EAASF,CAAQ;AAE3C,MADAC,EAAgB,oBAAoBH,GAASC,CAAW,GACpDE,EAAgB;AAClB,WAAOA,EAAgB,iBAAgB;AAEzC,MAAIL,EAA0B,KAAKK,EAAgB,UAAS,CAAE;AAC5D,WAAOA,EAAgB,UAAS;AAEpC;","x_google_ignoreList":[0]}