@rpcbase/ui 0.222.0 → 0.223.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 (539) hide show
  1. package/dist/components/FilesUploadField/index.d.ts.map +1 -1
  2. package/dist/components/Image/index.d.ts +14 -5
  3. package/dist/components/Image/index.d.ts.map +1 -1
  4. package/dist/components/ImagesField/index.d.ts.map +1 -1
  5. package/dist/index.js +59 -55
  6. package/dist/index100.js +1 -1
  7. package/dist/index100.js.map +1 -1
  8. package/dist/index101.js +8 -4
  9. package/dist/index101.js.map +1 -1
  10. package/dist/index102.js +4 -5
  11. package/dist/index102.js.map +1 -1
  12. package/dist/index103.js +4 -145
  13. package/dist/index103.js.map +1 -1
  14. package/dist/index104.js +4 -39
  15. package/dist/index104.js.map +1 -1
  16. package/dist/index105.js +6 -4
  17. package/dist/index105.js.map +1 -1
  18. package/dist/index106.js +145 -7
  19. package/dist/index106.js.map +1 -1
  20. package/dist/index107.js +38 -12
  21. package/dist/index107.js.map +1 -1
  22. package/dist/index108.js +4 -13
  23. package/dist/index108.js.map +1 -1
  24. package/dist/index109.js +6 -6
  25. package/dist/index109.js.map +1 -1
  26. package/dist/index110.js +12 -30
  27. package/dist/index110.js.map +1 -1
  28. package/dist/index111.js +13 -10
  29. package/dist/index111.js.map +1 -1
  30. package/dist/index112.js +7 -10
  31. package/dist/index112.js.map +1 -1
  32. package/dist/index113.js +31 -8
  33. package/dist/index113.js.map +1 -1
  34. package/dist/index114.js +9 -12
  35. package/dist/index114.js.map +1 -1
  36. package/dist/index115.js +10 -101
  37. package/dist/index115.js.map +1 -1
  38. package/dist/index116.js +9 -20
  39. package/dist/index116.js.map +1 -1
  40. package/dist/index117.js +12 -52
  41. package/dist/index117.js.map +1 -1
  42. package/dist/index118.js +97 -68
  43. package/dist/index118.js.map +1 -1
  44. package/dist/index119.js +20 -10
  45. package/dist/index119.js.map +1 -1
  46. package/dist/index12.js +116 -66
  47. package/dist/index12.js.map +1 -1
  48. package/dist/index120.js +51 -18
  49. package/dist/index120.js.map +1 -1
  50. package/dist/index121.js +71 -15
  51. package/dist/index121.js.map +1 -1
  52. package/dist/index122.js +9 -23
  53. package/dist/index122.js.map +1 -1
  54. package/dist/index123.js +20 -6
  55. package/dist/index123.js.map +1 -1
  56. package/dist/index124.js +16 -5
  57. package/dist/index124.js.map +1 -1
  58. package/dist/index125.js +21 -21
  59. package/dist/index125.js.map +1 -1
  60. package/dist/index126.js +7 -35
  61. package/dist/index126.js.map +1 -1
  62. package/dist/index127.js +6 -16
  63. package/dist/index127.js.map +1 -1
  64. package/dist/index128.js +23 -6
  65. package/dist/index128.js.map +1 -1
  66. package/dist/index129.js +35 -5
  67. package/dist/index129.js.map +1 -1
  68. package/dist/index13.js +17 -16
  69. package/dist/index13.js.map +1 -1
  70. package/dist/index130.js +16 -5
  71. package/dist/index130.js.map +1 -1
  72. package/dist/index131.js +6 -4
  73. package/dist/index131.js.map +1 -1
  74. package/dist/index132.js +4 -4
  75. package/dist/index132.js.map +1 -1
  76. package/dist/index133.js +4 -3
  77. package/dist/index133.js.map +1 -1
  78. package/dist/index134.js +4 -6
  79. package/dist/index134.js.map +1 -1
  80. package/dist/index135.js +5 -24
  81. package/dist/index135.js.map +1 -1
  82. package/dist/index136.js +3 -7
  83. package/dist/index136.js.map +1 -1
  84. package/dist/index137.js +6 -6
  85. package/dist/index137.js.map +1 -1
  86. package/dist/index138.js +24 -6
  87. package/dist/index138.js.map +1 -1
  88. package/dist/index139.js +7 -3
  89. package/dist/index139.js.map +1 -1
  90. package/dist/index140.js +6 -3
  91. package/dist/index140.js.map +1 -1
  92. package/dist/index141.js +5 -4
  93. package/dist/index141.js.map +1 -1
  94. package/dist/index142.js +3 -3
  95. package/dist/index142.js.map +1 -1
  96. package/dist/index143.js +3 -4
  97. package/dist/index143.js.map +1 -1
  98. package/dist/index144.js +4 -3
  99. package/dist/index144.js.map +1 -1
  100. package/dist/index145.js +3 -3
  101. package/dist/index145.js.map +1 -1
  102. package/dist/index146.js +4 -3
  103. package/dist/index146.js.map +1 -1
  104. package/dist/index147.js +3 -46
  105. package/dist/index147.js.map +1 -1
  106. package/dist/index148.js +3 -5
  107. package/dist/index148.js.map +1 -1
  108. package/dist/index149.js +3 -7
  109. package/dist/index149.js.map +1 -1
  110. package/dist/index150.js +46 -5
  111. package/dist/index150.js.map +1 -1
  112. package/dist/index151.js +5 -16
  113. package/dist/index151.js.map +1 -1
  114. package/dist/index152.js +67 -4
  115. package/dist/index152.js.map +1 -1
  116. package/dist/index153.js +2 -6
  117. package/dist/index153.js.map +1 -1
  118. package/dist/index154.js +359 -54
  119. package/dist/index154.js.map +1 -1
  120. package/dist/index155.js +254 -59
  121. package/dist/index155.js.map +1 -1
  122. package/dist/index156.js +60 -6
  123. package/dist/index156.js.map +1 -1
  124. package/dist/index157.js +46 -4
  125. package/dist/index157.js.map +1 -1
  126. package/dist/index158.js +169 -6
  127. package/dist/index158.js.map +1 -1
  128. package/dist/index159.js +109 -16
  129. package/dist/index159.js.map +1 -1
  130. package/dist/index160.js +24 -4
  131. package/dist/index160.js.map +1 -1
  132. package/dist/index161.js +8 -5
  133. package/dist/index161.js.map +1 -1
  134. package/dist/index162.js +4 -12
  135. package/dist/index162.js.map +1 -1
  136. package/dist/index163.js +5 -9
  137. package/dist/index163.js.map +1 -1
  138. package/dist/index164.js +4 -13
  139. package/dist/index164.js.map +1 -1
  140. package/dist/index165.js +466 -13
  141. package/dist/index165.js.map +1 -1
  142. package/dist/index166.js +185 -4
  143. package/dist/index166.js.map +1 -1
  144. package/dist/index167.js +107 -5
  145. package/dist/index167.js.map +1 -1
  146. package/dist/index168.js +262 -6
  147. package/dist/index168.js.map +1 -1
  148. package/dist/index169.js +9 -5
  149. package/dist/index169.js.map +1 -1
  150. package/dist/index170.js +41 -53
  151. package/dist/index170.js.map +1 -1
  152. package/dist/index171.js +4 -8
  153. package/dist/index171.js.map +1 -1
  154. package/dist/index172.js +46 -4
  155. package/dist/index172.js.map +1 -1
  156. package/dist/index173.js +229 -4
  157. package/dist/index173.js.map +1 -1
  158. package/dist/index174.js +22 -9
  159. package/dist/index174.js.map +1 -1
  160. package/dist/index175.js +24 -4
  161. package/dist/index175.js.map +1 -1
  162. package/dist/index176.js +400 -4
  163. package/dist/index176.js.map +1 -1
  164. package/dist/index177.js +58 -3
  165. package/dist/index177.js.map +1 -1
  166. package/dist/index178.js +8 -10
  167. package/dist/index178.js.map +1 -1
  168. package/dist/index179.js +66 -9
  169. package/dist/index179.js.map +1 -1
  170. package/dist/index180.js +19 -9
  171. package/dist/index180.js.map +1 -1
  172. package/dist/index181.js +16 -10
  173. package/dist/index181.js.map +1 -1
  174. package/dist/index182.js +5 -10
  175. package/dist/index182.js.map +1 -1
  176. package/dist/index183.js +5 -9
  177. package/dist/index183.js.map +1 -1
  178. package/dist/index184.js +6 -6
  179. package/dist/index184.js.map +1 -1
  180. package/dist/index185.js +4 -5
  181. package/dist/index185.js.map +1 -1
  182. package/dist/index186.js +6 -4
  183. package/dist/index186.js.map +1 -1
  184. package/dist/index187.js +16 -5
  185. package/dist/index187.js.map +1 -1
  186. package/dist/index188.js +4 -6
  187. package/dist/index188.js.map +1 -1
  188. package/dist/index189.js +4 -5
  189. package/dist/index189.js.map +1 -1
  190. package/dist/index190.js +12 -8
  191. package/dist/index190.js.map +1 -1
  192. package/dist/index191.js +9 -19
  193. package/dist/index191.js.map +1 -1
  194. package/dist/index192.js +13 -46
  195. package/dist/index192.js.map +1 -1
  196. package/dist/index193.js +13 -229
  197. package/dist/index193.js.map +1 -1
  198. package/dist/index194.js +5 -22
  199. package/dist/index194.js.map +1 -1
  200. package/dist/index195.js +5 -24
  201. package/dist/index195.js.map +1 -1
  202. package/dist/index196.js +6 -400
  203. package/dist/index196.js.map +1 -1
  204. package/dist/index197.js +5 -29
  205. package/dist/index197.js.map +1 -1
  206. package/dist/index198.js +54 -12
  207. package/dist/index198.js.map +1 -1
  208. package/dist/index199.js +8 -25
  209. package/dist/index199.js.map +1 -1
  210. package/dist/index200.js +4 -5
  211. package/dist/index200.js.map +1 -1
  212. package/dist/index201.js +4 -16
  213. package/dist/index201.js.map +1 -1
  214. package/dist/index202.js +8 -7
  215. package/dist/index202.js.map +1 -1
  216. package/dist/index203.js +4 -10
  217. package/dist/index203.js.map +1 -1
  218. package/dist/index204.js +4 -10
  219. package/dist/index204.js.map +1 -1
  220. package/dist/index205.js +3 -21
  221. package/dist/index205.js.map +1 -1
  222. package/dist/index206.js +10 -10
  223. package/dist/index206.js.map +1 -1
  224. package/dist/index207.js +9 -9
  225. package/dist/index207.js.map +1 -1
  226. package/dist/index208.js +9 -9
  227. package/dist/index208.js.map +1 -1
  228. package/dist/index209.js +10 -4
  229. package/dist/index209.js.map +1 -1
  230. package/dist/index210.js +10 -5
  231. package/dist/index210.js.map +1 -1
  232. package/dist/index211.js +9 -16
  233. package/dist/index211.js.map +1 -1
  234. package/dist/index212.js +6 -9
  235. package/dist/index212.js.map +1 -1
  236. package/dist/index213.js +5 -18
  237. package/dist/index213.js.map +1 -1
  238. package/dist/index214.js +4 -15
  239. package/dist/index214.js.map +1 -1
  240. package/dist/index215.js +5 -12
  241. package/dist/index215.js.map +1 -1
  242. package/dist/index216.js +6 -5
  243. package/dist/index216.js.map +1 -1
  244. package/dist/index217.js +5 -68
  245. package/dist/index217.js.map +1 -1
  246. package/dist/index218.js +17 -2
  247. package/dist/index218.js.map +1 -1
  248. package/dist/index219.js +7 -363
  249. package/dist/index219.js.map +1 -1
  250. package/dist/index220.js +9 -260
  251. package/dist/index220.js.map +1 -1
  252. package/dist/index221.js +9 -59
  253. package/dist/index221.js.map +1 -1
  254. package/dist/index222.js +21 -46
  255. package/dist/index222.js.map +1 -1
  256. package/dist/index223.js +10 -169
  257. package/dist/index223.js.map +1 -1
  258. package/dist/index224.js +9 -109
  259. package/dist/index224.js.map +1 -1
  260. package/dist/index225.js +9 -24
  261. package/dist/index225.js.map +1 -1
  262. package/dist/index226.js +5 -8
  263. package/dist/index226.js.map +1 -1
  264. package/dist/index227.js +5 -4
  265. package/dist/index227.js.map +1 -1
  266. package/dist/index228.js +16 -5
  267. package/dist/index228.js.map +1 -1
  268. package/dist/index229.js +9 -4
  269. package/dist/index229.js.map +1 -1
  270. package/dist/index230.js +17 -465
  271. package/dist/index230.js.map +1 -1
  272. package/dist/index231.js +14 -184
  273. package/dist/index231.js.map +1 -1
  274. package/dist/index232.js +12 -107
  275. package/dist/index232.js.map +1 -1
  276. package/dist/index233.js +27 -260
  277. package/dist/index233.js.map +1 -1
  278. package/dist/index234.js +12 -9
  279. package/dist/index234.js.map +1 -1
  280. package/dist/index235.js +24 -41
  281. package/dist/index235.js.map +1 -1
  282. package/dist/index236.js +5 -4
  283. package/dist/index236.js.map +1 -1
  284. package/dist/index237.js +13 -4
  285. package/dist/index237.js.map +1 -1
  286. package/dist/index238.js +154 -17
  287. package/dist/index238.js.map +1 -1
  288. package/dist/index239.js +28 -22
  289. package/dist/index239.js.map +1 -1
  290. package/dist/index240.js +10 -29
  291. package/dist/index240.js.map +1 -1
  292. package/dist/index241.js +49 -5
  293. package/dist/index241.js.map +1 -1
  294. package/dist/index242.js +11 -12
  295. package/dist/index242.js.map +1 -1
  296. package/dist/index243.js +44 -13
  297. package/dist/index243.js.map +1 -1
  298. package/dist/index244.js +86 -145
  299. package/dist/index244.js.map +1 -1
  300. package/dist/index245.js +83 -27
  301. package/dist/index245.js.map +1 -1
  302. package/dist/index246.js +105 -9
  303. package/dist/index246.js.map +1 -1
  304. package/dist/index247.js +45 -41
  305. package/dist/index247.js.map +1 -1
  306. package/dist/index248.js +11 -11
  307. package/dist/index248.js.map +1 -1
  308. package/dist/index249.js +35 -42
  309. package/dist/index249.js.map +1 -1
  310. package/dist/index250.js +8 -95
  311. package/dist/index250.js.map +1 -1
  312. package/dist/index251.js +110 -80
  313. package/dist/index251.js.map +1 -1
  314. package/dist/index252.js +17 -105
  315. package/dist/index252.js.map +1 -1
  316. package/dist/index253.js +14 -51
  317. package/dist/index253.js.map +1 -1
  318. package/dist/index254.js +3 -11
  319. package/dist/index254.js.map +1 -1
  320. package/dist/index255.js +32 -33
  321. package/dist/index255.js.map +1 -1
  322. package/dist/index256.js +20 -8
  323. package/dist/index256.js.map +1 -1
  324. package/dist/index257.js +9 -116
  325. package/dist/index257.js.map +1 -1
  326. package/dist/index258.js +8 -17
  327. package/dist/index258.js.map +1 -1
  328. package/dist/index259.js +16 -12
  329. package/dist/index259.js.map +1 -1
  330. package/dist/index260.js +28 -3
  331. package/dist/index260.js.map +1 -1
  332. package/dist/index261.js +15 -35
  333. package/dist/index261.js.map +1 -1
  334. package/dist/index262.js +24 -20
  335. package/dist/index262.js.map +1 -1
  336. package/dist/index263.js +29 -10
  337. package/dist/index263.js.map +1 -1
  338. package/dist/index264.js +5 -9
  339. package/dist/index264.js.map +1 -1
  340. package/dist/index265.js +4 -19
  341. package/dist/index265.js.map +1 -1
  342. package/dist/index266.js +17 -28
  343. package/dist/index266.js.map +1 -1
  344. package/dist/index267.js +12 -16
  345. package/dist/index267.js.map +1 -1
  346. package/dist/index268.js +20 -4
  347. package/dist/index268.js.map +1 -1
  348. package/dist/index269.js +5 -5
  349. package/dist/index269.js.map +1 -1
  350. package/dist/index270.js +3 -4
  351. package/dist/index270.js.map +1 -1
  352. package/dist/index271.js +23 -15
  353. package/dist/index271.js.map +1 -1
  354. package/dist/index272.js +110 -6
  355. package/dist/index272.js.map +1 -1
  356. package/dist/index273.js +15 -5
  357. package/dist/index273.js.map +1 -1
  358. package/dist/index274.js +529 -4
  359. package/dist/index274.js.map +1 -1
  360. package/dist/index275.js +122 -542
  361. package/dist/index275.js.map +1 -1
  362. package/dist/index276.js +131 -44
  363. package/dist/index276.js.map +1 -1
  364. package/dist/index277.js +4 -17
  365. package/dist/index277.js.map +1 -1
  366. package/dist/index278.js +4 -5
  367. package/dist/index278.js.map +1 -1
  368. package/dist/index279.js +4 -8
  369. package/dist/index279.js.map +1 -1
  370. package/dist/index280.js +15 -6
  371. package/dist/index280.js.map +1 -1
  372. package/dist/index281.js +8 -7
  373. package/dist/index281.js.map +1 -1
  374. package/dist/index282.js +5 -11
  375. package/dist/index282.js.map +1 -1
  376. package/dist/index283.js +4 -8
  377. package/dist/index283.js.map +1 -1
  378. package/dist/index284.js +545 -12
  379. package/dist/index284.js.map +1 -1
  380. package/dist/index285.js +47 -5
  381. package/dist/index285.js.map +1 -1
  382. package/dist/index286.js +18 -3
  383. package/dist/index286.js.map +1 -1
  384. package/dist/index287.js +5 -23
  385. package/dist/index287.js.map +1 -1
  386. package/dist/index288.js +7 -112
  387. package/dist/index288.js.map +1 -1
  388. package/dist/index289.js +6 -15
  389. package/dist/index289.js.map +1 -1
  390. package/dist/index290.js +7 -529
  391. package/dist/index290.js.map +1 -1
  392. package/dist/index291.js +11 -125
  393. package/dist/index291.js.map +1 -1
  394. package/dist/index292.js +8 -133
  395. package/dist/index292.js.map +1 -1
  396. package/dist/index293.js +12 -20
  397. package/dist/index293.js.map +1 -1
  398. package/dist/index294.js +64 -4
  399. package/dist/index294.js.map +1 -1
  400. package/dist/index295.js +67 -54
  401. package/dist/index295.js.map +1 -1
  402. package/dist/index296.js +8 -67
  403. package/dist/index296.js.map +1 -1
  404. package/dist/index297.js +14 -31
  405. package/dist/index297.js.map +1 -1
  406. package/dist/index298.js +66 -9
  407. package/dist/index298.js.map +1 -1
  408. package/dist/index299.js +5 -153
  409. package/dist/index299.js.map +1 -1
  410. package/dist/index300.js +54 -106
  411. package/dist/index300.js.map +1 -1
  412. package/dist/index301.js +68 -65
  413. package/dist/index301.js.map +1 -1
  414. package/dist/index302.js +30 -68
  415. package/dist/index302.js.map +1 -1
  416. package/dist/index303.js +9 -9
  417. package/dist/index303.js.map +1 -1
  418. package/dist/index304.js +152 -13
  419. package/dist/index304.js.map +1 -1
  420. package/dist/index305.js +107 -65
  421. package/dist/index305.js.map +1 -1
  422. package/dist/index306.js +3 -15
  423. package/dist/index306.js.map +1 -1
  424. package/dist/index307.js +22 -28
  425. package/dist/index307.js.map +1 -1
  426. package/dist/index308.js +14 -11
  427. package/dist/index308.js.map +1 -1
  428. package/dist/index309.js +27 -5
  429. package/dist/index309.js.map +1 -1
  430. package/dist/index31.js +5 -5
  431. package/dist/index310.js +12 -3
  432. package/dist/index310.js.map +1 -1
  433. package/dist/index311.js +6 -22
  434. package/dist/index311.js.map +1 -1
  435. package/dist/index32.js +24 -24
  436. package/dist/index33.js +3 -3
  437. package/dist/index36.js +1 -1
  438. package/dist/index37.js +2 -2
  439. package/dist/index40.js +2 -2
  440. package/dist/index41.js +20 -20
  441. package/dist/index45.js +1 -1
  442. package/dist/index46.js +1 -1
  443. package/dist/index51.js +2 -7
  444. package/dist/index51.js.map +1 -1
  445. package/dist/index52.js +2 -34
  446. package/dist/index52.js.map +1 -1
  447. package/dist/index53.js +5 -47
  448. package/dist/index53.js.map +1 -1
  449. package/dist/index54.js +33 -7
  450. package/dist/index54.js.map +1 -1
  451. package/dist/index55.js +48 -11
  452. package/dist/index55.js.map +1 -1
  453. package/dist/index56.js +8 -2
  454. package/dist/index56.js.map +1 -1
  455. package/dist/index57.js +12 -2
  456. package/dist/index57.js.map +1 -1
  457. package/dist/index60.js +5 -3
  458. package/dist/index60.js.map +1 -1
  459. package/dist/index61.js +7 -47
  460. package/dist/index61.js.map +1 -1
  461. package/dist/index62.js +5 -50
  462. package/dist/index62.js.map +1 -1
  463. package/dist/index63.js +3 -7
  464. package/dist/index63.js.map +1 -1
  465. package/dist/index64.js +47 -14
  466. package/dist/index64.js.map +1 -1
  467. package/dist/index65.js +46 -129
  468. package/dist/index65.js.map +1 -1
  469. package/dist/index66.js +7 -10
  470. package/dist/index66.js.map +1 -1
  471. package/dist/index67.js +13 -215
  472. package/dist/index67.js.map +1 -1
  473. package/dist/index68.js +133 -12
  474. package/dist/index68.js.map +1 -1
  475. package/dist/index69.js +10 -46
  476. package/dist/index69.js.map +1 -1
  477. package/dist/index70.js +213 -46
  478. package/dist/index70.js.map +1 -1
  479. package/dist/index71.js +13 -4
  480. package/dist/index71.js.map +1 -1
  481. package/dist/index72.js +46 -5
  482. package/dist/index72.js.map +1 -1
  483. package/dist/index73.js +50 -28
  484. package/dist/index73.js.map +1 -1
  485. package/dist/index74.js +3 -49
  486. package/dist/index74.js.map +1 -1
  487. package/dist/index75.js +6 -9
  488. package/dist/index75.js.map +1 -1
  489. package/dist/index76.js +28 -52
  490. package/dist/index76.js.map +1 -1
  491. package/dist/index77.js +50 -5
  492. package/dist/index77.js.map +1 -1
  493. package/dist/index78.js +9 -5
  494. package/dist/index78.js.map +1 -1
  495. package/dist/index79.js +52 -16
  496. package/dist/index79.js.map +1 -1
  497. package/dist/index8.js +375 -364
  498. package/dist/index8.js.map +1 -1
  499. package/dist/index80.js +4 -5
  500. package/dist/index80.js.map +1 -1
  501. package/dist/index81.js +4 -7
  502. package/dist/index81.js.map +1 -1
  503. package/dist/index82.js +11 -12
  504. package/dist/index82.js.map +1 -1
  505. package/dist/index83.js +5 -4
  506. package/dist/index83.js.map +1 -1
  507. package/dist/index84.js +7 -4
  508. package/dist/index84.js.map +1 -1
  509. package/dist/index85.js +16 -5
  510. package/dist/index85.js.map +1 -1
  511. package/dist/index86.js +4 -5
  512. package/dist/index86.js.map +1 -1
  513. package/dist/index87.js +4 -4
  514. package/dist/index87.js.map +1 -1
  515. package/dist/index88.js +5 -4
  516. package/dist/index88.js.map +1 -1
  517. package/dist/index89.js +5 -6
  518. package/dist/index89.js.map +1 -1
  519. package/dist/index90.js +4 -24
  520. package/dist/index90.js.map +1 -1
  521. package/dist/index91.js +4 -6
  522. package/dist/index91.js.map +1 -1
  523. package/dist/index92.js +5 -3
  524. package/dist/index92.js.map +1 -1
  525. package/dist/index93.js +24 -6
  526. package/dist/index93.js.map +1 -1
  527. package/dist/index94.js +6 -5
  528. package/dist/index94.js.map +1 -1
  529. package/dist/index95.js +4 -4
  530. package/dist/index95.js.map +1 -1
  531. package/dist/index96.js +6 -5
  532. package/dist/index96.js.map +1 -1
  533. package/dist/index97.js +5 -4
  534. package/dist/index97.js.map +1 -1
  535. package/dist/index98.js +4 -8
  536. package/dist/index98.js.map +1 -1
  537. package/dist/index99.js +2 -2
  538. package/dist/index99.js.map +1 -1
  539. package/package.json +1 -1
package/dist/index309.js CHANGED
@@ -1,10 +1,32 @@
1
- function r(t) {
2
- return (d = {}) => {
3
- const n = d.width ? String(d.width) : t.defaultWidth;
4
- return t.formats[n] || t.formats[t.defaultWidth];
1
+ function P(t) {
2
+ return (n, e = {}) => {
3
+ const l = e.width, h = l && t.matchPatterns[l] || t.matchPatterns[t.defaultMatchWidth], i = n.match(h);
4
+ if (!i)
5
+ return null;
6
+ const r = i[0], c = l && t.parsePatterns[l] || t.parsePatterns[t.defaultParseWidth], d = Array.isArray(c) ? o(c, (u) => u.test(r)) : (
7
+ // [TODO] -- I challenge you to fix the type
8
+ s(c, (u) => u.test(r))
9
+ );
10
+ let a;
11
+ a = t.valueCallback ? t.valueCallback(d) : d, a = e.valueCallback ? (
12
+ // [TODO] -- I challenge you to fix the type
13
+ e.valueCallback(a)
14
+ ) : a;
15
+ const f = n.slice(r.length);
16
+ return { value: a, rest: f };
5
17
  };
6
18
  }
19
+ function s(t, n) {
20
+ for (const e in t)
21
+ if (Object.prototype.hasOwnProperty.call(t, e) && n(t[e]))
22
+ return e;
23
+ }
24
+ function o(t, n) {
25
+ for (let e = 0; e < t.length; e++)
26
+ if (n(t[e]))
27
+ return e;
28
+ }
7
29
  export {
8
- r as buildFormatLongFn
30
+ P as buildMatchFn
9
31
  };
10
32
  //# sourceMappingURL=index309.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index309.js","sources":["../../../node_modules/date-fns/locale/_lib/buildFormatLongFn.js"],"sourcesContent":["export function buildFormatLongFn(args) {\n return (options = {}) => {\n // TODO: Remove String()\n const width = options.width ? String(options.width) : args.defaultWidth;\n const format = args.formats[width] || args.formats[args.defaultWidth];\n return format;\n };\n}\n"],"names":["buildFormatLongFn","args","options","width"],"mappings":"AAAO,SAASA,EAAkBC,GAAM;AACtC,SAAO,CAACC,IAAU,OAAO;AAEvB,UAAMC,IAAQD,EAAQ,QAAQ,OAAOA,EAAQ,KAAK,IAAID,EAAK;AAE3D,WADeA,EAAK,QAAQE,CAAK,KAAKF,EAAK,QAAQA,EAAK,YAAY;AAAA,EAEtE;AACF;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index309.js","sources":["../../../node_modules/date-fns/locale/_lib/buildMatchFn.js"],"sourcesContent":["export function buildMatchFn(args) {\n return (string, options = {}) => {\n const width = options.width;\n\n const matchPattern =\n (width && args.matchPatterns[width]) ||\n args.matchPatterns[args.defaultMatchWidth];\n const matchResult = string.match(matchPattern);\n\n if (!matchResult) {\n return null;\n }\n const matchedString = matchResult[0];\n\n const parsePatterns =\n (width && args.parsePatterns[width]) ||\n args.parsePatterns[args.defaultParseWidth];\n\n const key = Array.isArray(parsePatterns)\n ? findIndex(parsePatterns, (pattern) => pattern.test(matchedString))\n : // [TODO] -- I challenge you to fix the type\n findKey(parsePatterns, (pattern) => pattern.test(matchedString));\n\n let value;\n\n value = args.valueCallback ? args.valueCallback(key) : key;\n value = options.valueCallback\n ? // [TODO] -- I challenge you to fix the type\n options.valueCallback(value)\n : value;\n\n const rest = string.slice(matchedString.length);\n\n return { value, rest };\n };\n}\n\nfunction findKey(object, predicate) {\n for (const key in object) {\n if (\n Object.prototype.hasOwnProperty.call(object, key) &&\n predicate(object[key])\n ) {\n return key;\n }\n }\n return undefined;\n}\n\nfunction findIndex(array, predicate) {\n for (let key = 0; key < array.length; key++) {\n if (predicate(array[key])) {\n return key;\n }\n }\n return undefined;\n}\n"],"names":["buildMatchFn","args","string","options","width","matchPattern","matchResult","matchedString","parsePatterns","key","findIndex","pattern","findKey","value","rest","object","predicate","array"],"mappings":"AAAO,SAASA,EAAaC,GAAM;AACjC,SAAO,CAACC,GAAQC,IAAU,OAAO;AAC/B,UAAMC,IAAQD,EAAQ,OAEhBE,IACHD,KAASH,EAAK,cAAcG,CAAK,KAClCH,EAAK,cAAcA,EAAK,iBAAiB,GACrCK,IAAcJ,EAAO,MAAMG,CAAY;AAE7C,QAAI,CAACC;AACH,aAAO;AAET,UAAMC,IAAgBD,EAAY,CAAC,GAE7BE,IACHJ,KAASH,EAAK,cAAcG,CAAK,KAClCH,EAAK,cAAcA,EAAK,iBAAiB,GAErCQ,IAAM,MAAM,QAAQD,CAAa,IACnCE,EAAUF,GAAe,CAACG,MAAYA,EAAQ,KAAKJ,CAAa,CAAC;AAAA;AAAA,MAEjEK,EAAQJ,GAAe,CAACG,MAAYA,EAAQ,KAAKJ,CAAa,CAAC;AAAA;AAEnE,QAAIM;AAEJ,IAAAA,IAAQZ,EAAK,gBAAgBA,EAAK,cAAcQ,CAAG,IAAIA,GACvDI,IAAQV,EAAQ;AAAA;AAAA,MAEZA,EAAQ,cAAcU,CAAK;AAAA,QAC3BA;AAEJ,UAAMC,IAAOZ,EAAO,MAAMK,EAAc,MAAM;AAE9C,WAAO,EAAE,OAAAM,GAAO,MAAAC,EAAI;AAAA,EACtB;AACF;AAEA,SAASF,EAAQG,GAAQC,GAAW;AAClC,aAAWP,KAAOM;AAChB,QACE,OAAO,UAAU,eAAe,KAAKA,GAAQN,CAAG,KAChDO,EAAUD,EAAON,CAAG,CAAC;AAErB,aAAOA;AAIb;AAEA,SAASC,EAAUO,GAAOD,GAAW;AACnC,WAASP,IAAM,GAAGA,IAAMQ,EAAM,QAAQR;AACpC,QAAIO,EAAUC,EAAMR,CAAG,CAAC;AACtB,aAAOA;AAIb;","x_google_ignoreList":[0]}
package/dist/index31.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import * as s from "react";
2
- import { composeEventHandlers as h } from "./index51.js";
3
- import { Primitive as w, dispatchDiscreteCustomEvent as k } from "./index52.js";
4
- import { useComposedRefs as R } from "./index53.js";
5
- import { useCallbackRef as g } from "./index54.js";
6
- import { useEscapeKeydown as U } from "./index55.js";
2
+ import { composeEventHandlers as h } from "./index53.js";
3
+ import { Primitive as w, dispatchDiscreteCustomEvent as k } from "./index54.js";
4
+ import { useComposedRefs as R } from "./index55.js";
5
+ import { useCallbackRef as g } from "./index56.js";
6
+ import { useEscapeKeydown as U } from "./index57.js";
7
7
  import { j as x } from "./index30.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/index310.js CHANGED
@@ -1,7 +1,16 @@
1
- function i(n, t) {
2
- return typeof n == "function" ? n(t) : n && (n.current = t), n;
1
+ function h(t) {
2
+ return (e, c = {}) => {
3
+ const n = e.match(t.matchPattern);
4
+ if (!n) return null;
5
+ const u = n[0], a = e.match(t.parsePattern);
6
+ if (!a) return null;
7
+ let l = t.valueCallback ? t.valueCallback(a[0]) : a[0];
8
+ l = c.valueCallback ? c.valueCallback(l) : l;
9
+ const r = e.slice(u.length);
10
+ return { value: l, rest: r };
11
+ };
3
12
  }
4
13
  export {
5
- i as assignRef
14
+ h as buildMatchPatternFn
6
15
  };
7
16
  //# sourceMappingURL=index310.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index310.js","sources":["../../../node_modules/use-callback-ref/dist/es2015/assignRef.js"],"sourcesContent":["/**\n * Assigns a value for a given ref, no matter of the ref format\n * @param {RefObject} ref - a callback function or ref object\n * @param value - a new value\n *\n * @see https://github.com/theKashey/use-callback-ref#assignref\n * @example\n * const refObject = useRef();\n * const refFn = (ref) => {....}\n *\n * assignRef(refObject, \"refValue\");\n * assignRef(refFn, \"refValue\");\n */\nexport function assignRef(ref, value) {\n if (typeof ref === 'function') {\n ref(value);\n }\n else if (ref) {\n ref.current = value;\n }\n return ref;\n}\n"],"names":["assignRef","ref","value"],"mappings":"AAaO,SAASA,EAAUC,GAAKC,GAAO;AAClC,SAAI,OAAOD,KAAQ,aACfA,EAAIC,CAAK,IAEJD,MACLA,EAAI,UAAUC,IAEXD;AACX;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index310.js","sources":["../../../node_modules/date-fns/locale/_lib/buildMatchPatternFn.js"],"sourcesContent":["export function buildMatchPatternFn(args) {\n return (string, options = {}) => {\n const matchResult = string.match(args.matchPattern);\n if (!matchResult) return null;\n const matchedString = matchResult[0];\n\n const parseResult = string.match(args.parsePattern);\n if (!parseResult) return null;\n let value = args.valueCallback\n ? args.valueCallback(parseResult[0])\n : parseResult[0];\n\n // [TODO] I challenge you to fix the type\n value = options.valueCallback ? options.valueCallback(value) : value;\n\n const rest = string.slice(matchedString.length);\n\n return { value, rest };\n };\n}\n"],"names":["buildMatchPatternFn","args","string","options","matchResult","matchedString","parseResult","value","rest"],"mappings":"AAAO,SAASA,EAAoBC,GAAM;AACxC,SAAO,CAACC,GAAQC,IAAU,OAAO;AAC/B,UAAMC,IAAcF,EAAO,MAAMD,EAAK,YAAY;AAClD,QAAI,CAACG,EAAa,QAAO;AACzB,UAAMC,IAAgBD,EAAY,CAAC,GAE7BE,IAAcJ,EAAO,MAAMD,EAAK,YAAY;AAClD,QAAI,CAACK,EAAa,QAAO;AACzB,QAAIC,IAAQN,EAAK,gBACbA,EAAK,cAAcK,EAAY,CAAC,CAAC,IACjCA,EAAY,CAAC;AAGjB,IAAAC,IAAQJ,EAAQ,gBAAgBA,EAAQ,cAAcI,CAAK,IAAIA;AAE/D,UAAMC,IAAON,EAAO,MAAMG,EAAc,MAAM;AAE9C,WAAO,EAAE,OAAAE,GAAO,MAAAC,EAAI;AAAA,EACtB;AACF;","x_google_ignoreList":[0]}
package/dist/index311.js CHANGED
@@ -1,26 +1,10 @@
1
- import { useState as u } from "react";
2
- function n(c, r) {
3
- var e = u(function() {
4
- return {
5
- // value
6
- value: c,
7
- // last callback
8
- callback: r,
9
- // "memoized" public interface
10
- facade: {
11
- get current() {
12
- return e.value;
13
- },
14
- set current(a) {
15
- var t = e.value;
16
- t !== a && (e.value = a, e.callback(a, t));
17
- }
18
- }
19
- };
20
- })[0];
21
- return e.callback = r, e.facade;
1
+ function r(t) {
2
+ return (d = {}) => {
3
+ const n = d.width ? String(d.width) : t.defaultWidth;
4
+ return t.formats[n] || t.formats[t.defaultWidth];
5
+ };
22
6
  }
23
7
  export {
24
- n as useCallbackRef
8
+ r as buildFormatLongFn
25
9
  };
26
10
  //# sourceMappingURL=index311.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index311.js","sources":["../../../node_modules/use-callback-ref/dist/es2015/useRef.js"],"sourcesContent":["import { useState } from 'react';\n/**\n * creates a MutableRef with ref change callback\n * @param initialValue - initial ref value\n * @param {Function} callback - a callback to run when value changes\n *\n * @example\n * const ref = useCallbackRef(0, (newValue, oldValue) => console.log(oldValue, '->', newValue);\n * ref.current = 1;\n * // prints 0 -> 1\n *\n * @see https://reactjs.org/docs/hooks-reference.html#useref\n * @see https://github.com/theKashey/use-callback-ref#usecallbackref---to-replace-reactuseref\n * @returns {MutableRefObject}\n */\nexport function useCallbackRef(initialValue, callback) {\n var ref = useState(function () { return ({\n // value\n value: initialValue,\n // last callback\n callback: callback,\n // \"memoized\" public interface\n facade: {\n get current() {\n return ref.value;\n },\n set current(value) {\n var last = ref.value;\n if (last !== value) {\n ref.value = value;\n ref.callback(value, last);\n }\n },\n },\n }); })[0];\n // update callback\n ref.callback = callback;\n return ref.facade;\n}\n"],"names":["useCallbackRef","initialValue","callback","ref","useState","value","last"],"mappings":";AAeO,SAASA,EAAeC,GAAcC,GAAU;AACnD,MAAIC,IAAMC,EAAS,WAAY;AAAE,WAAQ;AAAA;AAAA,MAErC,OAAOH;AAAA;AAAA,MAEP,UAAUC;AAAA;AAAA,MAEV,QAAQ;AAAA,QACJ,IAAI,UAAU;AACV,iBAAOC,EAAI;AAAA,QACf;AAAA,QACA,IAAI,QAAQE,GAAO;AACf,cAAIC,IAAOH,EAAI;AACf,UAAIG,MAASD,MACTF,EAAI,QAAQE,GACZF,EAAI,SAASE,GAAOC,CAAI;AAAA,QAEhC;AAAA,MACZ;AAAA,IACA;AAAA,EAAQ,CAAC,EAAE,CAAC;AAER,SAAAH,EAAI,WAAWD,GACRC,EAAI;AACf;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index311.js","sources":["../../../node_modules/date-fns/locale/_lib/buildFormatLongFn.js"],"sourcesContent":["export function buildFormatLongFn(args) {\n return (options = {}) => {\n // TODO: Remove String()\n const width = options.width ? String(options.width) : args.defaultWidth;\n const format = args.formats[width] || args.formats[args.defaultWidth];\n return format;\n };\n}\n"],"names":["buildFormatLongFn","args","options","width"],"mappings":"AAAO,SAASA,EAAkBC,GAAM;AACtC,SAAO,CAACC,IAAU,OAAO;AAEvB,UAAMC,IAAQD,EAAQ,QAAQ,OAAOA,EAAQ,KAAK,IAAID,EAAK;AAE3D,WADeA,EAAK,QAAQE,CAAK,KAAKF,EAAK,QAAQA,EAAK,YAAY;AAAA,EAEtE;AACF;","x_google_ignoreList":[0]}
package/dist/index32.js CHANGED
@@ -1,28 +1,28 @@
1
1
  import l, { useMemo as T, useCallback as h, useRef as Re } from "react";
2
- import { DateLib as Ze } from "./index103.js";
3
- import { createGetModifiers as Ie } from "./index104.js";
4
- import { getClassNamesForModifiers as Ge } from "./index105.js";
5
- import { getComponents as He } from "./index106.js";
6
- import { getDataAttributes as _e } from "./index107.js";
7
- import { getDefaultClassNames as Ue } from "./index108.js";
8
- import { getFormatters as je } from "./index109.js";
9
- import { getLabels as Ve } from "./index110.js";
10
- import { getMonthOptions as $e } from "./index111.js";
11
- import { getStyleForModifiers as qe } from "./index112.js";
12
- import { getWeekdays as ze } from "./index113.js";
13
- import { getYearOptions as Je } from "./index114.js";
14
- import { createNoonOverrides as Qe } from "./index115.js";
15
- import { UI as n, DayFlag as Xe, SelectionState as w } from "./index116.js";
16
- import { useAnimation as et } from "./index117.js";
17
- import { useCalendar as tt } from "./index118.js";
18
- import { dayPickerContext as at } from "./index119.js";
19
- import { useFocus as ot } from "./index120.js";
20
- import { useSelection as nt } from "./index121.js";
21
- import { convertMatchersToTimeZone as K } from "./index122.js";
22
- import { rangeIncludesDate as st } from "./index123.js";
23
- import { toTimeZone as k } from "./index124.js";
24
- import { isDateRange as rt } from "./index125.js";
25
- import { enUS as it } from "./index126.js";
2
+ import { DateLib as Ze } from "./index106.js";
3
+ import { createGetModifiers as Ie } from "./index107.js";
4
+ import { getClassNamesForModifiers as Ge } from "./index108.js";
5
+ import { getComponents as He } from "./index109.js";
6
+ import { getDataAttributes as _e } from "./index110.js";
7
+ import { getDefaultClassNames as Ue } from "./index111.js";
8
+ import { getFormatters as je } from "./index112.js";
9
+ import { getLabels as Ve } from "./index113.js";
10
+ import { getMonthOptions as $e } from "./index114.js";
11
+ import { getStyleForModifiers as qe } from "./index115.js";
12
+ import { getWeekdays as ze } from "./index116.js";
13
+ import { getYearOptions as Je } from "./index117.js";
14
+ import { createNoonOverrides as Qe } from "./index118.js";
15
+ import { UI as n, DayFlag as Xe, SelectionState as w } from "./index119.js";
16
+ import { useAnimation as et } from "./index120.js";
17
+ import { useCalendar as tt } from "./index121.js";
18
+ import { dayPickerContext as at } from "./index122.js";
19
+ import { useFocus as ot } from "./index123.js";
20
+ import { useSelection as nt } from "./index124.js";
21
+ import { convertMatchersToTimeZone as K } from "./index125.js";
22
+ import { rangeIncludesDate as st } from "./index126.js";
23
+ import { toTimeZone as k } from "./index127.js";
24
+ import { isDateRange as rt } from "./index128.js";
25
+ import { enUS as it } from "./index129.js";
26
26
  function Yt(R) {
27
27
  let e = R;
28
28
  const u = e.timeZone;
package/dist/index33.js CHANGED
@@ -1,6 +1,6 @@
1
- import { defaultDateLib as A } from "./index103.js";
2
- import { rangeIncludesDate as p } from "./index123.js";
3
- import { isDatesArray as a, isDateRange as I, isDayOfWeekType as g, isDateInterval as k, isDateAfterType as O, isDateBeforeType as W } from "./index125.js";
1
+ import { defaultDateLib as A } from "./index106.js";
2
+ import { rangeIncludesDate as p } from "./index126.js";
3
+ import { isDatesArray as a, isDateRange as I, isDayOfWeekType as g, isDateInterval as k, isDateAfterType as O, isDateBeforeType as W } from "./index128.js";
4
4
  function b(f, n, r = A) {
5
5
  const t = Array.isArray(n) ? n : [n], { isSameDay: o, differenceInCalendarDays: i, isAfter: D } = r;
6
6
  return t.some((e) => {
package/dist/index36.js CHANGED
@@ -1,4 +1,4 @@
1
- import { getCountryList as E } from "./index148.js";
1
+ import { getCountryList as E } from "./index60.js";
2
2
  import { getCountryCallingCode as s } from "./index40.js";
3
3
  const c = "US", u = E(), f = /* @__PURE__ */ new Map(), m = "__default_locale__", _ = Array.from(new Set(u.map((e) => s(e)))).sort((e, t) => t.length - e.length), O = _.reduce((e, t) => Math.max(e, t.length), 0), y = ["0011", "001", "011", "00", "810"];
4
4
  function R(e) {
package/dist/index37.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { MAX_DIAL_CODE_LENGTH as W, COMMON_IDD_PREFIXES as $, DEFAULT_COUNTRY as x, COUNTRY_DIAL_CODES as C } from "./index36.js";
2
2
  import { getCountryCallingCode as p } from "./index40.js";
3
- import { AsYouType as I } from "./index149.js";
4
- import { validatePhoneNumberLength as D } from "./index150.js";
3
+ import { AsYouType as I } from "./index61.js";
4
+ import { validatePhoneNumberLength as D } from "./index62.js";
5
5
  function g(t) {
6
6
  return t.replace(/\D/g, "");
7
7
  }
package/dist/index40.js CHANGED
@@ -1,5 +1,5 @@
1
- import t from "./index216.js";
2
- import { getCountryCallingCode as o } from "./index230.js";
1
+ import t from "./index151.js";
2
+ import { getCountryCallingCode as o } from "./index165.js";
3
3
  function n() {
4
4
  return t(o, arguments);
5
5
  }
package/dist/index41.js CHANGED
@@ -1,26 +1,26 @@
1
1
  import * as t from "react";
2
2
  import * as Re from "react-dom";
3
- import { clamp as Te } from "./index60.js";
4
- import { composeEventHandlers as R } from "./index51.js";
5
- import { createCollection as et } from "./index61.js";
6
- import { useComposedRefs as D } from "./index53.js";
7
- import { createContextScope as tt } from "./index62.js";
8
- import { useDirection as ot } from "./index63.js";
3
+ import { clamp as Te } from "./index63.js";
4
+ import { composeEventHandlers as R } from "./index53.js";
5
+ import { createCollection as et } from "./index64.js";
6
+ import { useComposedRefs as D } from "./index55.js";
7
+ import { createContextScope as tt } from "./index65.js";
8
+ import { useDirection as ot } from "./index66.js";
9
9
  import { DismissableLayer as nt } from "./index31.js";
10
- import { useFocusGuards as rt } from "./index64.js";
11
- import { FocusScope as st } from "./index65.js";
12
- import { useId as ye } from "./index66.js";
13
- import { Root as ct, createPopperScope as Ee, Anchor as lt, Content as it, Arrow as at } from "./index67.js";
14
- import { Portal as dt } from "./index68.js";
15
- import { Primitive as N } from "./index52.js";
16
- import { createSlot as ut } from "./index69.js";
17
- import { useCallbackRef as pt } from "./index54.js";
18
- import { useControllableState as Pe } from "./index70.js";
19
- import { useLayoutEffect as V } from "./index71.js";
20
- import { usePrevious as ft } from "./index72.js";
21
- import { VISUALLY_HIDDEN_STYLES as mt } from "./index73.js";
22
- import { hideOthers as ht } from "./index74.js";
23
- import vt from "./index75.js";
10
+ import { useFocusGuards as rt } from "./index67.js";
11
+ import { FocusScope as st } from "./index68.js";
12
+ import { useId as ye } from "./index69.js";
13
+ import { Root as ct, createPopperScope as Ee, Anchor as lt, Content as it, Arrow as at } from "./index70.js";
14
+ import { Portal as dt } from "./index71.js";
15
+ import { Primitive as N } from "./index54.js";
16
+ import { createSlot as ut } from "./index72.js";
17
+ import { useCallbackRef as pt } from "./index56.js";
18
+ import { useControllableState as Pe } from "./index73.js";
19
+ import { useLayoutEffect as V } from "./index74.js";
20
+ import { usePrevious as ft } from "./index75.js";
21
+ import { VISUALLY_HIDDEN_STYLES as mt } from "./index76.js";
22
+ import { hideOthers as ht } from "./index77.js";
23
+ import vt from "./index78.js";
24
24
  import { j as d } from "./index30.js";
25
25
  var gt = [" ", "Enter", "ArrowUp", "ArrowDown"], St = [" ", "Enter"], G = "Select", [ie, ae, xt] = et(G), [ee] = tt(G, [
26
26
  xt,
package/dist/index45.js CHANGED
@@ -1,4 +1,4 @@
1
- import { __exports as e } from "./index56.js";
1
+ import { __exports as e } from "./index51.js";
2
2
  import o from "react";
3
3
  var r;
4
4
  function n() {
package/dist/index46.js CHANGED
@@ -1,4 +1,4 @@
1
- import { __exports as e } from "./index57.js";
1
+ import { __exports as e } from "./index52.js";
2
2
  import a from "react";
3
3
  var n;
4
4
  function l() {
package/dist/index51.js CHANGED
@@ -1,10 +1,5 @@
1
- function f(n, r, { checkForDefaultPrevented: t = !0 } = {}) {
2
- return function(e) {
3
- if (n?.(e), t === !1 || !e.defaultPrevented)
4
- return r?.(e);
5
- };
6
- }
1
+ var r = {};
7
2
  export {
8
- f as composeEventHandlers
3
+ r as __exports
9
4
  };
10
5
  //# sourceMappingURL=index51.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index51.js","sources":["../../../node_modules/@radix-ui/primitive/dist/index.mjs"],"sourcesContent":["// src/primitive.tsx\nvar canUseDOM = !!(typeof window !== \"undefined\" && window.document && window.document.createElement);\nfunction composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {\n return function handleEvent(event) {\n originalEventHandler?.(event);\n if (checkForDefaultPrevented === false || !event.defaultPrevented) {\n return ourEventHandler?.(event);\n }\n };\n}\nfunction getOwnerWindow(element) {\n if (!canUseDOM) {\n throw new Error(\"Cannot access window outside of the DOM\");\n }\n return element?.ownerDocument?.defaultView ?? window;\n}\nfunction getOwnerDocument(element) {\n if (!canUseDOM) {\n throw new Error(\"Cannot access document outside of the DOM\");\n }\n return element?.ownerDocument ?? document;\n}\nfunction getActiveElement(node, activeDescendant = false) {\n const { activeElement } = getOwnerDocument(node);\n if (!activeElement?.nodeName) {\n return null;\n }\n if (isFrame(activeElement) && activeElement.contentDocument) {\n return getActiveElement(activeElement.contentDocument.body, activeDescendant);\n }\n if (activeDescendant) {\n const id = activeElement.getAttribute(\"aria-activedescendant\");\n if (id) {\n const element = getOwnerDocument(activeElement).getElementById(id);\n if (element) {\n return element;\n }\n }\n }\n return activeElement;\n}\nfunction isFrame(element) {\n return element.tagName === \"IFRAME\";\n}\nexport {\n canUseDOM,\n composeEventHandlers,\n getActiveElement,\n getOwnerDocument,\n getOwnerWindow,\n isFrame\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["composeEventHandlers","originalEventHandler","ourEventHandler","checkForDefaultPrevented","event"],"mappings":"AAEA,SAASA,EAAqBC,GAAsBC,GAAiB,EAAE,0BAAAC,IAA2B,GAAI,IAAK,IAAI;AAC7G,SAAO,SAAqBC,GAAO;AAEjC,QADAH,IAAuBG,CAAK,GACxBD,MAA6B,MAAS,CAACC,EAAM;AAC/C,aAAOF,IAAkBE,CAAK;AAAA,EAElC;AACF;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index51.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
package/dist/index52.js CHANGED
@@ -1,37 +1,5 @@
1
- import * as p from "react";
2
- import * as f from "react-dom";
3
- import { createSlot as c } from "./index147.js";
4
- import { j as u } from "./index30.js";
5
- var l = [
6
- "a",
7
- "button",
8
- "div",
9
- "form",
10
- "h2",
11
- "h3",
12
- "img",
13
- "input",
14
- "label",
15
- "li",
16
- "nav",
17
- "ol",
18
- "p",
19
- "select",
20
- "span",
21
- "svg",
22
- "ul"
23
- ], h = l.reduce((t, i) => {
24
- const o = c(`Primitive.${i}`), r = p.forwardRef((e, s) => {
25
- const { asChild: m, ...a } = e, n = m ? o : i;
26
- return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ u.jsx(n, { ...a, ref: s });
27
- });
28
- return r.displayName = `Primitive.${i}`, { ...t, [i]: r };
29
- }, {});
30
- function w(t, i) {
31
- t && f.flushSync(() => t.dispatchEvent(i));
32
- }
1
+ var e = {};
33
2
  export {
34
- h as Primitive,
35
- w as dispatchDiscreteCustomEvent
3
+ e as __exports
36
4
  };
37
5
  //# sourceMappingURL=index52.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index52.js","sources":["../../../node_modules/@radix-ui/react-primitive/dist/index.mjs"],"sourcesContent":["// src/primitive.tsx\nimport * as React from \"react\";\nimport * as ReactDOM from \"react-dom\";\nimport { createSlot } from \"@radix-ui/react-slot\";\nimport { jsx } from \"react/jsx-runtime\";\nvar NODES = [\n \"a\",\n \"button\",\n \"div\",\n \"form\",\n \"h2\",\n \"h3\",\n \"img\",\n \"input\",\n \"label\",\n \"li\",\n \"nav\",\n \"ol\",\n \"p\",\n \"select\",\n \"span\",\n \"svg\",\n \"ul\"\n];\nvar Primitive = NODES.reduce((primitive, node) => {\n const Slot = createSlot(`Primitive.${node}`);\n const Node = React.forwardRef((props, forwardedRef) => {\n const { asChild, ...primitiveProps } = props;\n const Comp = asChild ? Slot : node;\n if (typeof window !== \"undefined\") {\n window[Symbol.for(\"radix-ui\")] = true;\n }\n return /* @__PURE__ */ jsx(Comp, { ...primitiveProps, ref: forwardedRef });\n });\n Node.displayName = `Primitive.${node}`;\n return { ...primitive, [node]: Node };\n}, {});\nfunction dispatchDiscreteCustomEvent(target, event) {\n if (target) ReactDOM.flushSync(() => target.dispatchEvent(event));\n}\nvar Root = Primitive;\nexport {\n Primitive,\n Root,\n dispatchDiscreteCustomEvent\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["NODES","Primitive","primitive","node","Slot","createSlot","Node","React","props","forwardedRef","asChild","primitiveProps","Comp","jsx","dispatchDiscreteCustomEvent","target","event","ReactDOM"],"mappings":";;;;AAKA,IAAIA,IAAQ;AAAA,EACV;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GACIC,IAAYD,EAAM,OAAO,CAACE,GAAWC,MAAS;AAChD,QAAMC,IAAOC,EAAW,aAAaF,CAAI,EAAE,GACrCG,IAAOC,EAAM,WAAW,CAACC,GAAOC,MAAiB;AACrD,UAAM,EAAE,SAAAC,GAAS,GAAGC,EAAc,IAAKH,GACjCI,IAAOF,IAAUN,IAAOD;AAC9B,WAAI,OAAO,SAAW,QACpB,OAAO,uBAAO,IAAI,UAAU,CAAC,IAAI,KAEZU,gBAAAA,EAAAA,IAAID,GAAM,EAAE,GAAGD,GAAgB,KAAKF,GAAc;AAAA,EAC3E,CAAC;AACD,SAAAH,EAAK,cAAc,aAAaH,CAAI,IAC7B,EAAE,GAAGD,GAAW,CAACC,CAAI,GAAGG,EAAI;AACrC,GAAG,CAAA,CAAE;AACL,SAASQ,EAA4BC,GAAQC,GAAO;AAClD,EAAID,KAAQE,EAAS,UAAU,MAAMF,EAAO,cAAcC,CAAK,CAAC;AAClE;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index52.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
package/dist/index53.js CHANGED
@@ -1,52 +1,10 @@
1
- import * as f from "react";
2
- let s = 0;
3
- const r = /* @__PURE__ */ new WeakMap(), i = typeof queueMicrotask == "function" ? queueMicrotask : (e) => Promise.resolve().then(e);
4
- function o(e, t) {
5
- if (typeof e == "function") {
6
- if (t === null) {
7
- const n = ++s;
8
- r.set(e, n), i(() => {
9
- r.get(e) === n && (e(null), r.get(e) === n && r.delete(e));
10
- });
11
- return;
12
- }
13
- return r.delete(e), e(t);
14
- }
15
- e != null && (e.current = t);
16
- }
17
- function a(...e) {
18
- return (t) => {
19
- let n = !1;
20
- const c = e.map((l) => {
21
- const u = o(l, t);
22
- return !n && typeof u == "function" && (n = !0), u;
23
- });
24
- if (n)
25
- return () => {
26
- for (let l = 0; l < c.length; l += 1) {
27
- const u = c[l];
28
- typeof u == "function" ? u() : o(e[l], null);
29
- }
30
- };
1
+ function f(n, r, { checkForDefaultPrevented: t = !0 } = {}) {
2
+ return function(e) {
3
+ if (n?.(e), t === !1 || !e.defaultPrevented)
4
+ return r?.(e);
31
5
  };
32
6
  }
33
- function d(e, t) {
34
- if (e.length !== t.length)
35
- return !1;
36
- for (let n = 0; n < e.length; n += 1)
37
- if (e[n] !== t[n])
38
- return !1;
39
- return !0;
40
- }
41
- function p(...e) {
42
- const t = f.useRef(null);
43
- return (t.current == null || !d(t.current.refs, e)) && (t.current = {
44
- callback: a(...e),
45
- refs: e
46
- }), t.current.callback;
47
- }
48
7
  export {
49
- a as composeRefs,
50
- p as useComposedRefs
8
+ f as composeEventHandlers
51
9
  };
52
10
  //# sourceMappingURL=index53.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index53.js","sources":["../src/lib/react-compose-refs.ts"],"sourcesContent":["import * as React from \"react\"\n\n\ntype PossibleCleanup = void | (() => void)\n\nlet nextDeferredNullId = 0\nconst deferredNullCalls = new WeakMap<React.RefCallback<unknown>, number>()\n\nconst scheduleMicrotask =\n typeof queueMicrotask === \"function\"\n ? queueMicrotask\n : (callback: () => void) => Promise.resolve().then(callback)\n\nfunction setRef<T>(ref: React.Ref<T> | undefined, value: T | null): PossibleCleanup {\n if (typeof ref === \"function\") {\n if (value === null) {\n const deferredNullId = ++nextDeferredNullId\n deferredNullCalls.set(ref, deferredNullId)\n\n scheduleMicrotask(() => {\n if (deferredNullCalls.get(ref) !== deferredNullId) {\n return\n }\n\n ref(null)\n if (deferredNullCalls.get(ref) === deferredNullId) {\n deferredNullCalls.delete(ref)\n }\n })\n\n return\n }\n\n deferredNullCalls.delete(ref)\n return ref(value)\n }\n\n if (ref != null) {\n ref.current = value\n }\n}\n\nfunction composeRefs<T>(...refs: Array<React.Ref<T> | undefined>) {\n return (node: T | null) => {\n let hasCleanup = false\n const cleanups = refs.map((ref) => {\n const cleanup = setRef(ref, node)\n if (!hasCleanup && typeof cleanup === \"function\") {\n hasCleanup = true\n }\n return cleanup\n })\n\n if (hasCleanup) {\n return () => {\n for (let index = 0; index < cleanups.length; index += 1) {\n const cleanup = cleanups[index]\n\n if (typeof cleanup === \"function\") {\n cleanup()\n } else {\n setRef(refs[index], null)\n }\n }\n }\n }\n }\n}\n\nfunction haveSameRefs<T>(\n previousRefs: Array<React.Ref<T> | undefined>,\n nextRefs: Array<React.Ref<T> | undefined>,\n) {\n if (previousRefs.length !== nextRefs.length) {\n return false\n }\n\n for (let index = 0; index < previousRefs.length; index += 1) {\n if (previousRefs[index] !== nextRefs[index]) {\n return false\n }\n }\n\n return true\n}\n\nfunction useComposedRefs<T>(...refs: Array<React.Ref<T> | undefined>) {\n const composedRefsRef = React.useRef<{\n callback: ReturnType<typeof composeRefs<T>>\n refs: Array<React.Ref<T> | undefined>\n } | null>(null)\n\n if (\n composedRefsRef.current == null ||\n !haveSameRefs(composedRefsRef.current.refs, refs)\n ) {\n composedRefsRef.current = {\n callback: composeRefs(...refs),\n refs,\n }\n }\n\n return composedRefsRef.current.callback\n}\n\nexport {\n composeRefs,\n useComposedRefs,\n}\n"],"names":["nextDeferredNullId","deferredNullCalls","WeakMap","scheduleMicrotask","queueMicrotask","callback","Promise","resolve","then","setRef","ref","value","deferredNullId","set","get","delete","current","composeRefs","refs","node","hasCleanup","cleanups","map","cleanup","index","length","haveSameRefs","previousRefs","nextRefs","useComposedRefs","composedRefsRef","React","useRef"],"mappings":";AAKA,IAAIA,IAAqB;AACzB,MAAMC,wBAAwBC,QAAAA,GAExBC,IACJ,OAAOC,kBAAmB,aACtBA,iBACA,CAACC,MAAyBC,QAAQC,QAAAA,EAAUC,KAAKH,CAAQ;AAE/D,SAASI,EAAUC,GAA+BC,GAAkC;AAClF,MAAI,OAAOD,KAAQ,YAAY;AAC7B,QAAIC,MAAU,MAAM;AAClB,YAAMC,IAAiB,EAAEZ;AACzBC,MAAAA,EAAkBY,IAAIH,GAAKE,CAAc,GAEzCT,EAAkB,MAAM;AACtB,QAAIF,EAAkBa,IAAIJ,CAAG,MAAME,MAInCF,EAAI,IAAI,GACJT,EAAkBa,IAAIJ,CAAG,MAAME,KACjCX,EAAkBc,OAAOL,CAAG;AAAA,MAEhC,CAAC;AAED;AAAA,IACF;AAEAT,WAAAA,EAAkBc,OAAOL,CAAG,GACrBA,EAAIC,CAAK;AAAA,EAClB;AAEA,EAAID,KAAO,SACTA,EAAIM,UAAUL;AAElB;AAEA,SAASM,KAAkBC,GAAuC;AAChE,SAAO,CAACC,MAAmB;AACzB,QAAIC,IAAa;AACjB,UAAMC,IAAWH,EAAKI,IAAKZ,CAAAA,MAAQ;AACjC,YAAMa,IAAUd,EAAOC,GAAKS,CAAI;AAChC,aAAI,CAACC,KAAc,OAAOG,KAAY,eACpCH,IAAa,KAERG;AAAAA,IACT,CAAC;AAED,QAAIH;AACF,aAAO,MAAM;AACX,iBAASI,IAAQ,GAAGA,IAAQH,EAASI,QAAQD,KAAS,GAAG;AACvD,gBAAMD,IAAUF,EAASG,CAAK;AAE9B,UAAI,OAAOD,KAAY,aACrBA,EAAAA,IAEAd,EAAOS,EAAKM,CAAK,GAAG,IAAI;AAAA,QAE5B;AAAA,MACF;AAAA,EAEJ;AACF;AAEA,SAASE,EACPC,GACAC,GACA;AACA,MAAID,EAAaF,WAAWG,EAASH;AACnC,WAAO;AAGT,WAASD,IAAQ,GAAGA,IAAQG,EAAaF,QAAQD,KAAS;AACxD,QAAIG,EAAaH,CAAK,MAAMI,EAASJ,CAAK;AACxC,aAAO;AAIX,SAAO;AACT;AAEA,SAASK,KAAsBX,GAAuC;AACpE,QAAMY,IAAkBC,EAAMC,OAGpB,IAAI;AAEd,UACEF,EAAgBd,WAAW,QAC3B,CAACU,EAAaI,EAAgBd,QAAQE,MAAMA,CAAI,OAEhDY,EAAgBd,UAAU;AAAA,IACxBX,UAAUY,EAAY,GAAGC,CAAI;AAAA,IAC7BA,MAAAA;AAAAA,EAAAA,IAIGY,EAAgBd,QAAQX;AACjC;"}
1
+ {"version":3,"file":"index53.js","sources":["../../../node_modules/@radix-ui/primitive/dist/index.mjs"],"sourcesContent":["// src/primitive.tsx\nvar canUseDOM = !!(typeof window !== \"undefined\" && window.document && window.document.createElement);\nfunction composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {\n return function handleEvent(event) {\n originalEventHandler?.(event);\n if (checkForDefaultPrevented === false || !event.defaultPrevented) {\n return ourEventHandler?.(event);\n }\n };\n}\nfunction getOwnerWindow(element) {\n if (!canUseDOM) {\n throw new Error(\"Cannot access window outside of the DOM\");\n }\n return element?.ownerDocument?.defaultView ?? window;\n}\nfunction getOwnerDocument(element) {\n if (!canUseDOM) {\n throw new Error(\"Cannot access document outside of the DOM\");\n }\n return element?.ownerDocument ?? document;\n}\nfunction getActiveElement(node, activeDescendant = false) {\n const { activeElement } = getOwnerDocument(node);\n if (!activeElement?.nodeName) {\n return null;\n }\n if (isFrame(activeElement) && activeElement.contentDocument) {\n return getActiveElement(activeElement.contentDocument.body, activeDescendant);\n }\n if (activeDescendant) {\n const id = activeElement.getAttribute(\"aria-activedescendant\");\n if (id) {\n const element = getOwnerDocument(activeElement).getElementById(id);\n if (element) {\n return element;\n }\n }\n }\n return activeElement;\n}\nfunction isFrame(element) {\n return element.tagName === \"IFRAME\";\n}\nexport {\n canUseDOM,\n composeEventHandlers,\n getActiveElement,\n getOwnerDocument,\n getOwnerWindow,\n isFrame\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["composeEventHandlers","originalEventHandler","ourEventHandler","checkForDefaultPrevented","event"],"mappings":"AAEA,SAASA,EAAqBC,GAAsBC,GAAiB,EAAE,0BAAAC,IAA2B,GAAI,IAAK,IAAI;AAC7G,SAAO,SAAqBC,GAAO;AAEjC,QADAH,IAAuBG,CAAK,GACxBD,MAA6B,MAAS,CAACC,EAAM;AAC/C,aAAOF,IAAkBE,CAAK;AAAA,EAElC;AACF;","x_google_ignoreList":[0]}
package/dist/index54.js CHANGED
@@ -1,11 +1,37 @@
1
- import * as e from "react";
2
- function c(r) {
3
- const t = e.useRef(r);
4
- return e.useEffect(() => {
5
- t.current = r;
6
- }), e.useMemo(() => (...u) => t.current?.(...u), []);
1
+ import * as p from "react";
2
+ import * as f from "react-dom";
3
+ import { createSlot as c } from "./index150.js";
4
+ import { j as u } from "./index30.js";
5
+ var l = [
6
+ "a",
7
+ "button",
8
+ "div",
9
+ "form",
10
+ "h2",
11
+ "h3",
12
+ "img",
13
+ "input",
14
+ "label",
15
+ "li",
16
+ "nav",
17
+ "ol",
18
+ "p",
19
+ "select",
20
+ "span",
21
+ "svg",
22
+ "ul"
23
+ ], h = l.reduce((t, i) => {
24
+ const o = c(`Primitive.${i}`), r = p.forwardRef((e, s) => {
25
+ const { asChild: m, ...a } = e, n = m ? o : i;
26
+ return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ u.jsx(n, { ...a, ref: s });
27
+ });
28
+ return r.displayName = `Primitive.${i}`, { ...t, [i]: r };
29
+ }, {});
30
+ function w(t, i) {
31
+ t && f.flushSync(() => t.dispatchEvent(i));
7
32
  }
8
33
  export {
9
- c as useCallbackRef
34
+ h as Primitive,
35
+ w as dispatchDiscreteCustomEvent
10
36
  };
11
37
  //# sourceMappingURL=index54.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index54.js","sources":["../../../node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs"],"sourcesContent":["// packages/react/use-callback-ref/src/use-callback-ref.tsx\nimport * as React from \"react\";\nfunction useCallbackRef(callback) {\n const callbackRef = React.useRef(callback);\n React.useEffect(() => {\n callbackRef.current = callback;\n });\n return React.useMemo(() => (...args) => callbackRef.current?.(...args), []);\n}\nexport {\n useCallbackRef\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useCallbackRef","callback","callbackRef","React","args"],"mappings":";AAEA,SAASA,EAAeC,GAAU;AAChC,QAAMC,IAAcC,EAAM,OAAOF,CAAQ;AACzC,SAAAE,EAAM,UAAU,MAAM;AACpB,IAAAD,EAAY,UAAUD;AAAA,EACxB,CAAC,GACME,EAAM,QAAQ,MAAM,IAAIC,MAASF,EAAY,UAAU,GAAGE,CAAI,GAAG,EAAE;AAC5E;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index54.js","sources":["../../../node_modules/@radix-ui/react-primitive/dist/index.mjs"],"sourcesContent":["// src/primitive.tsx\nimport * as React from \"react\";\nimport * as ReactDOM from \"react-dom\";\nimport { createSlot } from \"@radix-ui/react-slot\";\nimport { jsx } from \"react/jsx-runtime\";\nvar NODES = [\n \"a\",\n \"button\",\n \"div\",\n \"form\",\n \"h2\",\n \"h3\",\n \"img\",\n \"input\",\n \"label\",\n \"li\",\n \"nav\",\n \"ol\",\n \"p\",\n \"select\",\n \"span\",\n \"svg\",\n \"ul\"\n];\nvar Primitive = NODES.reduce((primitive, node) => {\n const Slot = createSlot(`Primitive.${node}`);\n const Node = React.forwardRef((props, forwardedRef) => {\n const { asChild, ...primitiveProps } = props;\n const Comp = asChild ? Slot : node;\n if (typeof window !== \"undefined\") {\n window[Symbol.for(\"radix-ui\")] = true;\n }\n return /* @__PURE__ */ jsx(Comp, { ...primitiveProps, ref: forwardedRef });\n });\n Node.displayName = `Primitive.${node}`;\n return { ...primitive, [node]: Node };\n}, {});\nfunction dispatchDiscreteCustomEvent(target, event) {\n if (target) ReactDOM.flushSync(() => target.dispatchEvent(event));\n}\nvar Root = Primitive;\nexport {\n Primitive,\n Root,\n dispatchDiscreteCustomEvent\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["NODES","Primitive","primitive","node","Slot","createSlot","Node","React","props","forwardedRef","asChild","primitiveProps","Comp","jsx","dispatchDiscreteCustomEvent","target","event","ReactDOM"],"mappings":";;;;AAKA,IAAIA,IAAQ;AAAA,EACV;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GACIC,IAAYD,EAAM,OAAO,CAACE,GAAWC,MAAS;AAChD,QAAMC,IAAOC,EAAW,aAAaF,CAAI,EAAE,GACrCG,IAAOC,EAAM,WAAW,CAACC,GAAOC,MAAiB;AACrD,UAAM,EAAE,SAAAC,GAAS,GAAGC,EAAc,IAAKH,GACjCI,IAAOF,IAAUN,IAAOD;AAC9B,WAAI,OAAO,SAAW,QACpB,OAAO,uBAAO,IAAI,UAAU,CAAC,IAAI,KAEZU,gBAAAA,EAAAA,IAAID,GAAM,EAAE,GAAGD,GAAgB,KAAKF,GAAc;AAAA,EAC3E,CAAC;AACD,SAAAH,EAAK,cAAc,aAAaH,CAAI,IAC7B,EAAE,GAAGD,GAAW,CAACC,CAAI,GAAGG,EAAI;AACrC,GAAG,CAAA,CAAE;AACL,SAASQ,EAA4BC,GAAQC,GAAO;AAClD,EAAID,KAAQE,EAAS,UAAU,MAAMF,EAAO,cAAcC,CAAK,CAAC;AAClE;","x_google_ignoreList":[0]}
package/dist/index55.js CHANGED
@@ -1,15 +1,52 @@
1
- import * as r from "react";
2
- import { useCallbackRef as s } from "./index54.js";
3
- function p(n, e = globalThis?.document) {
4
- const t = s(n);
5
- r.useEffect(() => {
6
- const o = (a) => {
7
- a.key === "Escape" && t(a);
8
- };
9
- return e.addEventListener("keydown", o, { capture: !0 }), () => e.removeEventListener("keydown", o, { capture: !0 });
10
- }, [t, e]);
1
+ import * as f from "react";
2
+ let s = 0;
3
+ const r = /* @__PURE__ */ new WeakMap(), i = typeof queueMicrotask == "function" ? queueMicrotask : (e) => Promise.resolve().then(e);
4
+ function o(e, t) {
5
+ if (typeof e == "function") {
6
+ if (t === null) {
7
+ const n = ++s;
8
+ r.set(e, n), i(() => {
9
+ r.get(e) === n && (e(null), r.get(e) === n && r.delete(e));
10
+ });
11
+ return;
12
+ }
13
+ return r.delete(e), e(t);
14
+ }
15
+ e != null && (e.current = t);
16
+ }
17
+ function a(...e) {
18
+ return (t) => {
19
+ let n = !1;
20
+ const c = e.map((l) => {
21
+ const u = o(l, t);
22
+ return !n && typeof u == "function" && (n = !0), u;
23
+ });
24
+ if (n)
25
+ return () => {
26
+ for (let l = 0; l < c.length; l += 1) {
27
+ const u = c[l];
28
+ typeof u == "function" ? u() : o(e[l], null);
29
+ }
30
+ };
31
+ };
32
+ }
33
+ function d(e, t) {
34
+ if (e.length !== t.length)
35
+ return !1;
36
+ for (let n = 0; n < e.length; n += 1)
37
+ if (e[n] !== t[n])
38
+ return !1;
39
+ return !0;
40
+ }
41
+ function p(...e) {
42
+ const t = f.useRef(null);
43
+ return (t.current == null || !d(t.current.refs, e)) && (t.current = {
44
+ callback: a(...e),
45
+ refs: e
46
+ }), t.current.callback;
11
47
  }
12
48
  export {
13
- p as useEscapeKeydown
49
+ a as composeRefs,
50
+ p as useComposedRefs
14
51
  };
15
52
  //# sourceMappingURL=index55.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index55.js","sources":["../../../node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs"],"sourcesContent":["// packages/react/use-escape-keydown/src/use-escape-keydown.tsx\nimport * as React from \"react\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nfunction useEscapeKeydown(onEscapeKeyDownProp, ownerDocument = globalThis?.document) {\n const onEscapeKeyDown = useCallbackRef(onEscapeKeyDownProp);\n React.useEffect(() => {\n const handleKeyDown = (event) => {\n if (event.key === \"Escape\") {\n onEscapeKeyDown(event);\n }\n };\n ownerDocument.addEventListener(\"keydown\", handleKeyDown, { capture: true });\n return () => ownerDocument.removeEventListener(\"keydown\", handleKeyDown, { capture: true });\n }, [onEscapeKeyDown, ownerDocument]);\n}\nexport {\n useEscapeKeydown\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useEscapeKeydown","onEscapeKeyDownProp","ownerDocument","onEscapeKeyDown","useCallbackRef","React","handleKeyDown","event"],"mappings":";;AAGA,SAASA,EAAiBC,GAAqBC,IAAgB,YAAY,UAAU;AACnF,QAAMC,IAAkBC,EAAeH,CAAmB;AAC1D,EAAAI,EAAM,UAAU,MAAM;AACpB,UAAMC,IAAgB,CAACC,MAAU;AAC/B,MAAIA,EAAM,QAAQ,YAChBJ,EAAgBI,CAAK;AAAA,IAEzB;AACA,WAAAL,EAAc,iBAAiB,WAAWI,GAAe,EAAE,SAAS,IAAM,GACnE,MAAMJ,EAAc,oBAAoB,WAAWI,GAAe,EAAE,SAAS,IAAM;AAAA,EAC5F,GAAG,CAACH,GAAiBD,CAAa,CAAC;AACrC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index55.js","sources":["../src/lib/react-compose-refs.ts"],"sourcesContent":["import * as React from \"react\"\n\n\ntype PossibleCleanup = void | (() => void)\n\nlet nextDeferredNullId = 0\nconst deferredNullCalls = new WeakMap<React.RefCallback<unknown>, number>()\n\nconst scheduleMicrotask =\n typeof queueMicrotask === \"function\"\n ? queueMicrotask\n : (callback: () => void) => Promise.resolve().then(callback)\n\nfunction setRef<T>(ref: React.Ref<T> | undefined, value: T | null): PossibleCleanup {\n if (typeof ref === \"function\") {\n if (value === null) {\n const deferredNullId = ++nextDeferredNullId\n deferredNullCalls.set(ref, deferredNullId)\n\n scheduleMicrotask(() => {\n if (deferredNullCalls.get(ref) !== deferredNullId) {\n return\n }\n\n ref(null)\n if (deferredNullCalls.get(ref) === deferredNullId) {\n deferredNullCalls.delete(ref)\n }\n })\n\n return\n }\n\n deferredNullCalls.delete(ref)\n return ref(value)\n }\n\n if (ref != null) {\n ref.current = value\n }\n}\n\nfunction composeRefs<T>(...refs: Array<React.Ref<T> | undefined>) {\n return (node: T | null) => {\n let hasCleanup = false\n const cleanups = refs.map((ref) => {\n const cleanup = setRef(ref, node)\n if (!hasCleanup && typeof cleanup === \"function\") {\n hasCleanup = true\n }\n return cleanup\n })\n\n if (hasCleanup) {\n return () => {\n for (let index = 0; index < cleanups.length; index += 1) {\n const cleanup = cleanups[index]\n\n if (typeof cleanup === \"function\") {\n cleanup()\n } else {\n setRef(refs[index], null)\n }\n }\n }\n }\n }\n}\n\nfunction haveSameRefs<T>(\n previousRefs: Array<React.Ref<T> | undefined>,\n nextRefs: Array<React.Ref<T> | undefined>,\n) {\n if (previousRefs.length !== nextRefs.length) {\n return false\n }\n\n for (let index = 0; index < previousRefs.length; index += 1) {\n if (previousRefs[index] !== nextRefs[index]) {\n return false\n }\n }\n\n return true\n}\n\nfunction useComposedRefs<T>(...refs: Array<React.Ref<T> | undefined>) {\n const composedRefsRef = React.useRef<{\n callback: ReturnType<typeof composeRefs<T>>\n refs: Array<React.Ref<T> | undefined>\n } | null>(null)\n\n if (\n composedRefsRef.current == null ||\n !haveSameRefs(composedRefsRef.current.refs, refs)\n ) {\n composedRefsRef.current = {\n callback: composeRefs(...refs),\n refs,\n }\n }\n\n return composedRefsRef.current.callback\n}\n\nexport {\n composeRefs,\n useComposedRefs,\n}\n"],"names":["nextDeferredNullId","deferredNullCalls","WeakMap","scheduleMicrotask","queueMicrotask","callback","Promise","resolve","then","setRef","ref","value","deferredNullId","set","get","delete","current","composeRefs","refs","node","hasCleanup","cleanups","map","cleanup","index","length","haveSameRefs","previousRefs","nextRefs","useComposedRefs","composedRefsRef","React","useRef"],"mappings":";AAKA,IAAIA,IAAqB;AACzB,MAAMC,wBAAwBC,QAAAA,GAExBC,IACJ,OAAOC,kBAAmB,aACtBA,iBACA,CAACC,MAAyBC,QAAQC,QAAAA,EAAUC,KAAKH,CAAQ;AAE/D,SAASI,EAAUC,GAA+BC,GAAkC;AAClF,MAAI,OAAOD,KAAQ,YAAY;AAC7B,QAAIC,MAAU,MAAM;AAClB,YAAMC,IAAiB,EAAEZ;AACzBC,MAAAA,EAAkBY,IAAIH,GAAKE,CAAc,GAEzCT,EAAkB,MAAM;AACtB,QAAIF,EAAkBa,IAAIJ,CAAG,MAAME,MAInCF,EAAI,IAAI,GACJT,EAAkBa,IAAIJ,CAAG,MAAME,KACjCX,EAAkBc,OAAOL,CAAG;AAAA,MAEhC,CAAC;AAED;AAAA,IACF;AAEAT,WAAAA,EAAkBc,OAAOL,CAAG,GACrBA,EAAIC,CAAK;AAAA,EAClB;AAEA,EAAID,KAAO,SACTA,EAAIM,UAAUL;AAElB;AAEA,SAASM,KAAkBC,GAAuC;AAChE,SAAO,CAACC,MAAmB;AACzB,QAAIC,IAAa;AACjB,UAAMC,IAAWH,EAAKI,IAAKZ,CAAAA,MAAQ;AACjC,YAAMa,IAAUd,EAAOC,GAAKS,CAAI;AAChC,aAAI,CAACC,KAAc,OAAOG,KAAY,eACpCH,IAAa,KAERG;AAAAA,IACT,CAAC;AAED,QAAIH;AACF,aAAO,MAAM;AACX,iBAASI,IAAQ,GAAGA,IAAQH,EAASI,QAAQD,KAAS,GAAG;AACvD,gBAAMD,IAAUF,EAASG,CAAK;AAE9B,UAAI,OAAOD,KAAY,aACrBA,EAAAA,IAEAd,EAAOS,EAAKM,CAAK,GAAG,IAAI;AAAA,QAE5B;AAAA,MACF;AAAA,EAEJ;AACF;AAEA,SAASE,EACPC,GACAC,GACA;AACA,MAAID,EAAaF,WAAWG,EAASH;AACnC,WAAO;AAGT,WAASD,IAAQ,GAAGA,IAAQG,EAAaF,QAAQD,KAAS;AACxD,QAAIG,EAAaH,CAAK,MAAMI,EAASJ,CAAK;AACxC,aAAO;AAIX,SAAO;AACT;AAEA,SAASK,KAAsBX,GAAuC;AACpE,QAAMY,IAAkBC,EAAMC,OAGpB,IAAI;AAEd,UACEF,EAAgBd,WAAW,QAC3B,CAACU,EAAaI,EAAgBd,QAAQE,MAAMA,CAAI,OAEhDY,EAAgBd,UAAU;AAAA,IACxBX,UAAUY,EAAY,GAAGC,CAAI;AAAA,IAC7BA,MAAAA;AAAAA,EAAAA,IAIGY,EAAgBd,QAAQX;AACjC;"}