@rpcbase/ui 0.216.0 → 0.218.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (562) hide show
  1. package/dist/components/FilesUploadField/index.d.ts.map +1 -1
  2. package/dist/components/HourPickerField/index.d.ts.map +1 -1
  3. package/dist/components/Notifications/NotificationsDrawer.d.ts.map +1 -1
  4. package/dist/index10.js +544 -489
  5. package/dist/index10.js.map +1 -1
  6. package/dist/index100.js +5 -24
  7. package/dist/index100.js.map +1 -1
  8. package/dist/index101.js +4 -6
  9. package/dist/index101.js.map +1 -1
  10. package/dist/index102.js +7 -3
  11. package/dist/index102.js.map +1 -1
  12. package/dist/index103.js +5 -6
  13. package/dist/index103.js.map +1 -1
  14. package/dist/index104.js +4 -5
  15. package/dist/index104.js.map +1 -1
  16. package/dist/index105.js +3 -3
  17. package/dist/index105.js.map +1 -1
  18. package/dist/index106.js +5 -4
  19. package/dist/index106.js.map +1 -1
  20. package/dist/index107.js +145 -4
  21. package/dist/index107.js.map +1 -1
  22. package/dist/index108.js +39 -8
  23. package/dist/index108.js.map +1 -1
  24. package/dist/index109.js +4 -5
  25. package/dist/index109.js.map +1 -1
  26. package/dist/index110.js +7 -4
  27. package/dist/index110.js.map +1 -1
  28. package/dist/index111.js +13 -4
  29. package/dist/index111.js.map +1 -1
  30. package/dist/index112.js +13 -6
  31. package/dist/index112.js.map +1 -1
  32. package/dist/index113.js +7 -145
  33. package/dist/index113.js.map +1 -1
  34. package/dist/index114.js +30 -38
  35. package/dist/index114.js.map +1 -1
  36. package/dist/index115.js +10 -4
  37. package/dist/index115.js.map +1 -1
  38. package/dist/index116.js +10 -7
  39. package/dist/index116.js.map +1 -1
  40. package/dist/index117.js +8 -13
  41. package/dist/index117.js.map +1 -1
  42. package/dist/index118.js +13 -13
  43. package/dist/index118.js.map +1 -1
  44. package/dist/index119.js +100 -6
  45. package/dist/index119.js.map +1 -1
  46. package/dist/index120.js +20 -32
  47. package/dist/index120.js.map +1 -1
  48. package/dist/index121.js +52 -9
  49. package/dist/index121.js.map +1 -1
  50. package/dist/index122.js +71 -9
  51. package/dist/index122.js.map +1 -1
  52. package/dist/index123.js +9 -8
  53. package/dist/index123.js.map +1 -1
  54. package/dist/index124.js +20 -13
  55. package/dist/index124.js.map +1 -1
  56. package/dist/index125.js +16 -101
  57. package/dist/index125.js.map +1 -1
  58. package/dist/index126.js +24 -20
  59. package/dist/index126.js.map +1 -1
  60. package/dist/index127.js +6 -53
  61. package/dist/index127.js.map +1 -1
  62. package/dist/index128.js +5 -72
  63. package/dist/index128.js.map +1 -1
  64. package/dist/index129.js +23 -9
  65. package/dist/index129.js.map +1 -1
  66. package/dist/index130.js +33 -19
  67. package/dist/index130.js.map +1 -1
  68. package/dist/index131.js +16 -17
  69. package/dist/index131.js.map +1 -1
  70. package/dist/index132.js +6 -23
  71. package/dist/index132.js.map +1 -1
  72. package/dist/index133.js +4 -6
  73. package/dist/index133.js.map +1 -1
  74. package/dist/index134.js +4 -5
  75. package/dist/index134.js.map +1 -1
  76. package/dist/index135.js +4 -23
  77. package/dist/index135.js.map +1 -1
  78. package/dist/index136.js +5 -35
  79. package/dist/index136.js.map +1 -1
  80. package/dist/index137.js +4 -16
  81. package/dist/index137.js.map +1 -1
  82. package/dist/index138.js +5 -5
  83. package/dist/index138.js.map +1 -1
  84. package/dist/index139.js +24 -5
  85. package/dist/index139.js.map +1 -1
  86. package/dist/index140.js +7 -4
  87. package/dist/index140.js.map +1 -1
  88. package/dist/index141.js +6 -4
  89. package/dist/index141.js.map +1 -1
  90. package/dist/index142.js +5 -4
  91. package/dist/index142.js.map +1 -1
  92. package/dist/index143.js +3 -3
  93. package/dist/index143.js.map +1 -1
  94. package/dist/index144.js +3 -6
  95. package/dist/index144.js.map +1 -1
  96. package/dist/index145.js +5 -24
  97. package/dist/index145.js.map +1 -1
  98. package/dist/index146.js +3 -7
  99. package/dist/index146.js.map +1 -1
  100. package/dist/index147.js +4 -6
  101. package/dist/index147.js.map +1 -1
  102. package/dist/index148.js +3 -5
  103. package/dist/index148.js.map +1 -1
  104. package/dist/index149.js +3 -3
  105. package/dist/index149.js.map +1 -1
  106. package/dist/index150.js +3 -3
  107. package/dist/index150.js.map +1 -1
  108. package/dist/index151.js +46 -4
  109. package/dist/index151.js.map +1 -1
  110. package/dist/index152.js +229 -3
  111. package/dist/index152.js.map +1 -1
  112. package/dist/index153.js +22 -5
  113. package/dist/index153.js.map +1 -1
  114. package/dist/index154.js +24 -3
  115. package/dist/index154.js.map +1 -1
  116. package/dist/index155.js +400 -3
  117. package/dist/index155.js.map +1 -1
  118. package/dist/index156.js +5 -3
  119. package/dist/index156.js.map +1 -1
  120. package/dist/index157.js +61 -598
  121. package/dist/index157.js.map +1 -1
  122. package/dist/index158.js +2 -6
  123. package/dist/index158.js.map +1 -1
  124. package/dist/index159.js +351 -56
  125. package/dist/index159.js.map +1 -1
  126. package/dist/index16.js +167 -149
  127. package/dist/index16.js.map +1 -1
  128. package/dist/index160.js +262 -2
  129. package/dist/index160.js.map +1 -1
  130. package/dist/index161.js +50 -353
  131. package/dist/index161.js.map +1 -1
  132. package/dist/index162.js +45 -260
  133. package/dist/index162.js.map +1 -1
  134. package/dist/index163.js +150 -41
  135. package/dist/index163.js.map +1 -1
  136. package/dist/index164.js +105 -42
  137. package/dist/index164.js.map +1 -1
  138. package/dist/index165.js +24 -169
  139. package/dist/index165.js.map +1 -1
  140. package/dist/index166.js +8 -110
  141. package/dist/index166.js.map +1 -1
  142. package/dist/index167.js +4 -24
  143. package/dist/index167.js.map +1 -1
  144. package/dist/index168.js +6 -8
  145. package/dist/index168.js.map +1 -1
  146. package/dist/index169.js +4 -4
  147. package/dist/index169.js.map +1 -1
  148. package/dist/index170.js +466 -5
  149. package/dist/index170.js.map +1 -1
  150. package/dist/index171.js +185 -4
  151. package/dist/index171.js.map +1 -1
  152. package/dist/index172.js +65 -424
  153. package/dist/index172.js.map +1 -1
  154. package/dist/index173.js +223 -146
  155. package/dist/index173.js.map +1 -1
  156. package/dist/index174.js +9 -107
  157. package/dist/index174.js.map +1 -1
  158. package/dist/index175.js +37 -257
  159. package/dist/index175.js.map +1 -1
  160. package/dist/index176.js +4 -9
  161. package/dist/index176.js.map +1 -1
  162. package/dist/index177.js +56 -40
  163. package/dist/index177.js.map +1 -1
  164. package/dist/index178.js +8 -4
  165. package/dist/index178.js.map +1 -1
  166. package/dist/index179.js +65 -23
  167. package/dist/index179.js.map +1 -1
  168. package/dist/index180.js +20 -29
  169. package/dist/index180.js.map +1 -1
  170. package/dist/index181.js +17 -5
  171. package/dist/index181.js.map +1 -1
  172. package/dist/index182.js +4 -15
  173. package/dist/index182.js.map +1 -1
  174. package/dist/index183.js +4 -4
  175. package/dist/index183.js.map +1 -1
  176. package/dist/index184.js +6 -5
  177. package/dist/index184.js.map +1 -1
  178. package/dist/index185.js +4 -58
  179. package/dist/index185.js.map +1 -1
  180. package/dist/index186.js +6 -66
  181. package/dist/index186.js.map +1 -1
  182. package/dist/index187.js +16 -6
  183. package/dist/index187.js.map +1 -1
  184. package/dist/index188.js +4 -4
  185. package/dist/index188.js.map +1 -1
  186. package/dist/index189.js +4 -6
  187. package/dist/index189.js.map +1 -1
  188. package/dist/index190.js +12 -16
  189. package/dist/index190.js.map +1 -1
  190. package/dist/index191.js +9 -4
  191. package/dist/index191.js.map +1 -1
  192. package/dist/index192.js +13 -4
  193. package/dist/index192.js.map +1 -1
  194. package/dist/index193.js +13 -12
  195. package/dist/index193.js.map +1 -1
  196. package/dist/index194.js +4 -9
  197. package/dist/index194.js.map +1 -1
  198. package/dist/index195.js +5 -13
  199. package/dist/index195.js.map +1 -1
  200. package/dist/index196.js +6 -13
  201. package/dist/index196.js.map +1 -1
  202. package/dist/index197.js +5 -4
  203. package/dist/index197.js.map +1 -1
  204. package/dist/index198.js +54 -5
  205. package/dist/index198.js.map +1 -1
  206. package/dist/index199.js +8 -6
  207. package/dist/index199.js.map +1 -1
  208. package/dist/index200.js +4 -5
  209. package/dist/index200.js.map +1 -1
  210. package/dist/index201.js +4 -54
  211. package/dist/index201.js.map +1 -1
  212. package/dist/index202.js +8 -8
  213. package/dist/index202.js.map +1 -1
  214. package/dist/index203.js +4 -4
  215. package/dist/index203.js.map +1 -1
  216. package/dist/index204.js +4 -4
  217. package/dist/index204.js.map +1 -1
  218. package/dist/index205.js +3 -8
  219. package/dist/index205.js.map +1 -1
  220. package/dist/index206.js +10 -4
  221. package/dist/index206.js.map +1 -1
  222. package/dist/index207.js +9 -4
  223. package/dist/index207.js.map +1 -1
  224. package/dist/index208.js +9 -3
  225. package/dist/index208.js.map +1 -1
  226. package/dist/index209.js +10 -10
  227. package/dist/index209.js.map +1 -1
  228. package/dist/index210.js +10 -9
  229. package/dist/index210.js.map +1 -1
  230. package/dist/index211.js +9 -9
  231. package/dist/index211.js.map +1 -1
  232. package/dist/index212.js +6 -10
  233. package/dist/index212.js.map +1 -1
  234. package/dist/index213.js +5 -10
  235. package/dist/index213.js.map +1 -1
  236. package/dist/index214.js +4 -9
  237. package/dist/index214.js.map +1 -1
  238. package/dist/index215.js +5 -6
  239. package/dist/index215.js.map +1 -1
  240. package/dist/index216.js +6 -5
  241. package/dist/index216.js.map +1 -1
  242. package/dist/index217.js +5 -4
  243. package/dist/index217.js.map +1 -1
  244. package/dist/index218.js +16 -5
  245. package/dist/index218.js.map +1 -1
  246. package/dist/index219.js +7 -6
  247. package/dist/index219.js.map +1 -1
  248. package/dist/index220.js +10 -5
  249. package/dist/index220.js.map +1 -1
  250. package/dist/index221.js +10 -8
  251. package/dist/index221.js.map +1 -1
  252. package/dist/index222.js +21 -19
  253. package/dist/index222.js.map +1 -1
  254. package/dist/index223.js +10 -16
  255. package/dist/index223.js.map +1 -1
  256. package/dist/index224.js +9 -7
  257. package/dist/index224.js.map +1 -1
  258. package/dist/index225.js +9 -10
  259. package/dist/index225.js.map +1 -1
  260. package/dist/index226.js +4 -10
  261. package/dist/index226.js.map +1 -1
  262. package/dist/index227.js +5 -21
  263. package/dist/index227.js.map +1 -1
  264. package/dist/index228.js +16 -10
  265. package/dist/index228.js.map +1 -1
  266. package/dist/index229.js +8 -8
  267. package/dist/index229.js.map +1 -1
  268. package/dist/index230.js +18 -9
  269. package/dist/index230.js.map +1 -1
  270. package/dist/index231.js +15 -4
  271. package/dist/index231.js.map +1 -1
  272. package/dist/index232.js +12 -5
  273. package/dist/index232.js.map +1 -1
  274. package/dist/index233.js +28 -15
  275. package/dist/index233.js.map +1 -1
  276. package/dist/index234.js +12 -9
  277. package/dist/index234.js.map +1 -1
  278. package/dist/index235.js +25 -18
  279. package/dist/index235.js.map +1 -1
  280. package/dist/index236.js +5 -15
  281. package/dist/index236.js.map +1 -1
  282. package/dist/index237.js +24 -12
  283. package/dist/index237.js.map +1 -1
  284. package/dist/index238.js +29 -30
  285. package/dist/index238.js.map +1 -1
  286. package/dist/index239.js +5 -13
  287. package/dist/index239.js.map +1 -1
  288. package/dist/index240.js +13 -25
  289. package/dist/index240.js.map +1 -1
  290. package/dist/index241.js +154 -5
  291. package/dist/index241.js.map +1 -1
  292. package/dist/index242.js +28 -65
  293. package/dist/index242.js.map +1 -1
  294. package/dist/index243.js +9 -180
  295. package/dist/index243.js.map +1 -1
  296. package/dist/index244.js +43 -41
  297. package/dist/index244.js.map +1 -1
  298. package/dist/index245.js +10 -12
  299. package/dist/index245.js.map +1 -1
  300. package/dist/index246.js +41 -151
  301. package/dist/index246.js.map +1 -1
  302. package/dist/index247.js +92 -27
  303. package/dist/index247.js.map +1 -1
  304. package/dist/index248.js +86 -9
  305. package/dist/index248.js.map +1 -1
  306. package/dist/index249.js +96 -39
  307. package/dist/index249.js.map +1 -1
  308. package/dist/index250.js +51 -10
  309. package/dist/index250.js.map +1 -1
  310. package/dist/index251.js +10 -43
  311. package/dist/index251.js.map +1 -1
  312. package/dist/index252.js +31 -89
  313. package/dist/index252.js.map +1 -1
  314. package/dist/index253.js +8 -86
  315. package/dist/index253.js.map +1 -1
  316. package/dist/index254.js +106 -95
  317. package/dist/index254.js.map +1 -1
  318. package/dist/index255.js +16 -51
  319. package/dist/index255.js.map +1 -1
  320. package/dist/index256.js +14 -10
  321. package/dist/index256.js.map +1 -1
  322. package/dist/index257.js +3 -37
  323. package/dist/index257.js.map +1 -1
  324. package/dist/index258.js +36 -8
  325. package/dist/index258.js.map +1 -1
  326. package/dist/index259.js +19 -115
  327. package/dist/index259.js.map +1 -1
  328. package/dist/index260.js +9 -17
  329. package/dist/index260.js.map +1 -1
  330. package/dist/index261.js +8 -15
  331. package/dist/index261.js.map +1 -1
  332. package/dist/index262.js +19 -3
  333. package/dist/index262.js.map +1 -1
  334. package/dist/index263.js +23 -31
  335. package/dist/index263.js.map +1 -1
  336. package/dist/index264.js +15 -19
  337. package/dist/index264.js.map +1 -1
  338. package/dist/index265.js +4 -9
  339. package/dist/index265.js.map +1 -1
  340. package/dist/index266.js +17 -8
  341. package/dist/index266.js.map +1 -1
  342. package/dist/index267.js +12 -19
  343. package/dist/index267.js.map +1 -1
  344. package/dist/index268.js +5 -29
  345. package/dist/index268.js.map +1 -1
  346. package/dist/index269.js +3 -17
  347. package/dist/index269.js.map +1 -1
  348. package/dist/index270.js +24 -5
  349. package/dist/index270.js.map +1 -1
  350. package/dist/index271.js +113 -3
  351. package/dist/index271.js.map +1 -1
  352. package/dist/index272.js +15 -23
  353. package/dist/index272.js.map +1 -1
  354. package/dist/index273.js +524 -107
  355. package/dist/index273.js.map +1 -1
  356. package/dist/index274.js +124 -14
  357. package/dist/index274.js.map +1 -1
  358. package/dist/index275.js +123 -519
  359. package/dist/index275.js.map +1 -1
  360. package/dist/index276.js +20 -125
  361. package/dist/index276.js.map +1 -1
  362. package/dist/index277.js +4 -133
  363. package/dist/index277.js.map +1 -1
  364. package/dist/index278.js +4 -4
  365. package/dist/index278.js.map +1 -1
  366. package/dist/index279.js +4 -18
  367. package/dist/index279.js.map +1 -1
  368. package/dist/index280.js +15 -12
  369. package/dist/index280.js.map +1 -1
  370. package/dist/index281.js +8 -20
  371. package/dist/index281.js.map +1 -1
  372. package/dist/index282.js +5 -64
  373. package/dist/index282.js.map +1 -1
  374. package/dist/index283.js +5 -69
  375. package/dist/index283.js.map +1 -1
  376. package/dist/index284.js +545 -8
  377. package/dist/index284.js.map +1 -1
  378. package/dist/index285.js +46 -13
  379. package/dist/index285.js.map +1 -1
  380. package/dist/index286.js +18 -66
  381. package/dist/index286.js.map +1 -1
  382. package/dist/index287.js +5 -4
  383. package/dist/index287.js.map +1 -1
  384. package/dist/index288.js +7 -4
  385. package/dist/index288.js.map +1 -1
  386. package/dist/index289.js +7 -4
  387. package/dist/index289.js.map +1 -1
  388. package/dist/index290.js +7 -15
  389. package/dist/index290.js.map +1 -1
  390. package/dist/index291.js +11 -8
  391. package/dist/index291.js.map +1 -1
  392. package/dist/index292.js +8 -5
  393. package/dist/index292.js.map +1 -1
  394. package/dist/index293.js +12 -4
  395. package/dist/index293.js.map +1 -1
  396. package/dist/index294.js +62 -543
  397. package/dist/index294.js.map +1 -1
  398. package/dist/index295.js +65 -43
  399. package/dist/index295.js.map +1 -1
  400. package/dist/index296.js +9 -18
  401. package/dist/index296.js.map +1 -1
  402. package/dist/index297.js +14 -6
  403. package/dist/index297.js.map +1 -1
  404. package/dist/index298.js +66 -8
  405. package/dist/index298.js.map +1 -1
  406. package/dist/index299.js +4 -6
  407. package/dist/index299.js.map +1 -1
  408. package/dist/index300.js +56 -8
  409. package/dist/index300.js.map +1 -1
  410. package/dist/index301.js +68 -12
  411. package/dist/index301.js.map +1 -1
  412. package/dist/index302.js +31 -9
  413. package/dist/index302.js.map +1 -1
  414. package/dist/index303.js +9 -13
  415. package/dist/index303.js.map +1 -1
  416. package/dist/index304.js +153 -4
  417. package/dist/index304.js.map +1 -1
  418. package/dist/index305.js +108 -23
  419. package/dist/index305.js.map +1 -1
  420. package/dist/index306.js +3 -4
  421. package/dist/index306.js.map +1 -1
  422. package/dist/index307.js +23 -56
  423. package/dist/index307.js.map +1 -1
  424. package/dist/index308.js +16 -68
  425. package/dist/index308.js.map +1 -1
  426. package/dist/index309.js +29 -31
  427. package/dist/index309.js.map +1 -1
  428. package/dist/index31.js +5 -5
  429. package/dist/index310.js +13 -9
  430. package/dist/index310.js.map +1 -1
  431. package/dist/index311.js +7 -153
  432. package/dist/index311.js.map +1 -1
  433. package/dist/index312.js +22 -107
  434. package/dist/index312.js.map +1 -1
  435. package/dist/index313.js +11 -21
  436. package/dist/index313.js.map +1 -1
  437. package/dist/index314.js +26 -11
  438. package/dist/index314.js.map +1 -1
  439. package/dist/index315.js +4 -27
  440. package/dist/index315.js.map +1 -1
  441. package/dist/index32.js +24 -24
  442. package/dist/index33.js +3 -3
  443. package/dist/index36.js +1 -1
  444. package/dist/index37.js +2 -2
  445. package/dist/index40.js +2 -2
  446. package/dist/index41.js +242 -270
  447. package/dist/index41.js.map +1 -1
  448. package/dist/index45.js +1 -1
  449. package/dist/index46.js +1 -1
  450. package/dist/index49.js +1 -1
  451. package/dist/index50.js +1 -1
  452. package/dist/index51.js +2 -205
  453. package/dist/index51.js.map +1 -1
  454. package/dist/index52.js +2 -4
  455. package/dist/index52.js.map +1 -1
  456. package/dist/index53.js +2 -7
  457. package/dist/index53.js.map +1 -1
  458. package/dist/index54.js +2 -48
  459. package/dist/index54.js.map +1 -1
  460. package/dist/index55.js +5 -47
  461. package/dist/index55.js.map +1 -1
  462. package/dist/index56.js +33 -50
  463. package/dist/index56.js.map +1 -1
  464. package/dist/index57.js +48 -7
  465. package/dist/index57.js.map +1 -1
  466. package/dist/index58.js +7 -14
  467. package/dist/index58.js.map +1 -1
  468. package/dist/index59.js +11 -133
  469. package/dist/index59.js.map +1 -1
  470. package/dist/index60.js +3 -10
  471. package/dist/index60.js.map +1 -1
  472. package/dist/index61.js +45 -214
  473. package/dist/index61.js.map +1 -1
  474. package/dist/index62.js +51 -13
  475. package/dist/index62.js.map +1 -1
  476. package/dist/index63.js +7 -33
  477. package/dist/index63.js.map +1 -1
  478. package/dist/index64.js +13 -45
  479. package/dist/index64.js.map +1 -1
  480. package/dist/index65.js +133 -7
  481. package/dist/index65.js.map +1 -1
  482. package/dist/index66.js +9 -48
  483. package/dist/index66.js.map +1 -1
  484. package/dist/index67.js +216 -3
  485. package/dist/index67.js.map +1 -1
  486. package/dist/index68.js +13 -6
  487. package/dist/index68.js.map +1 -1
  488. package/dist/index69.js +46 -27
  489. package/dist/index69.js.map +1 -1
  490. package/dist/index70.js +50 -50
  491. package/dist/index70.js.map +1 -1
  492. package/dist/index71.js +4 -9
  493. package/dist/index71.js.map +1 -1
  494. package/dist/index72.js +5 -11
  495. package/dist/index72.js.map +1 -1
  496. package/dist/index73.js +28 -2
  497. package/dist/index73.js.map +1 -1
  498. package/dist/index74.js +50 -2
  499. package/dist/index74.js.map +1 -1
  500. package/dist/index75.js +9 -2
  501. package/dist/index75.js.map +1 -1
  502. package/dist/index76.js +6 -2
  503. package/dist/index76.js.map +1 -1
  504. package/dist/index77.js +7 -5
  505. package/dist/index77.js.map +1 -1
  506. package/dist/index78.js +5 -7
  507. package/dist/index78.js.map +1 -1
  508. package/dist/index79.js +46 -5
  509. package/dist/index79.js.map +1 -1
  510. package/dist/index8.js +535 -543
  511. package/dist/index8.js.map +1 -1
  512. package/dist/index80.js +52 -47
  513. package/dist/index80.js.map +1 -1
  514. package/dist/index81.js +4 -229
  515. package/dist/index81.js.map +1 -1
  516. package/dist/index82.js +5 -22
  517. package/dist/index82.js.map +1 -1
  518. package/dist/index83.js +15 -24
  519. package/dist/index83.js.map +1 -1
  520. package/dist/index84.js +5 -400
  521. package/dist/index84.js.map +1 -1
  522. package/dist/index85.js +7 -46
  523. package/dist/index85.js.map +1 -1
  524. package/dist/index86.js +17 -52
  525. package/dist/index86.js.map +1 -1
  526. package/dist/index87.js +4 -4
  527. package/dist/index87.js.map +1 -1
  528. package/dist/index88.js +3 -3
  529. package/dist/index88.js.map +1 -1
  530. package/dist/index89.js +5 -15
  531. package/dist/index89.js.map +1 -1
  532. package/dist/index90.js +5 -5
  533. package/dist/index90.js.map +1 -1
  534. package/dist/index91.js +3 -6
  535. package/dist/index91.js.map +1 -1
  536. package/dist/index92.js +3 -15
  537. package/dist/index92.js.map +1 -1
  538. package/dist/index93.js +6 -4
  539. package/dist/index93.js.map +1 -1
  540. package/dist/index94.js +24 -4
  541. package/dist/index94.js.map +1 -1
  542. package/dist/index95.js +6 -5
  543. package/dist/index95.js.map +1 -1
  544. package/dist/index96.js +4 -5
  545. package/dist/index96.js.map +1 -1
  546. package/dist/index97.js +5 -3
  547. package/dist/index97.js.map +1 -1
  548. package/dist/index98.js +4 -3
  549. package/dist/index98.js.map +1 -1
  550. package/dist/index99.js +4 -6
  551. package/dist/index99.js.map +1 -1
  552. package/package.json +3 -2
  553. package/dist/index316.js +0 -8
  554. package/dist/index316.js.map +0 -1
  555. package/dist/index317.js +0 -19
  556. package/dist/index317.js.map +0 -1
  557. package/dist/index318.js +0 -32
  558. package/dist/index318.js.map +0 -1
  559. package/dist/index319.js +0 -16
  560. package/dist/index319.js.map +0 -1
  561. package/dist/index320.js +0 -10
  562. package/dist/index320.js.map +0 -1
package/dist/index57.js CHANGED
@@ -1,11 +1,52 @@
1
- import * as t from "react";
2
- import "./index30.js";
3
- var r = t.createContext(void 0);
4
- function n(o) {
5
- const e = t.useContext(r);
6
- return o || e || "ltr";
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;
7
47
  }
8
48
  export {
9
- n as useDirection
49
+ a as composeRefs,
50
+ p as useComposedRefs
10
51
  };
11
52
  //# sourceMappingURL=index57.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index57.js","sources":["../../../node_modules/@radix-ui/react-direction/dist/index.mjs"],"sourcesContent":["// packages/react/direction/src/direction.tsx\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nvar DirectionContext = React.createContext(void 0);\nvar DirectionProvider = (props) => {\n const { dir, children } = props;\n return /* @__PURE__ */ jsx(DirectionContext.Provider, { value: dir, children });\n};\nfunction useDirection(localDir) {\n const globalDir = React.useContext(DirectionContext);\n return localDir || globalDir || \"ltr\";\n}\nvar Provider = DirectionProvider;\nexport {\n DirectionProvider,\n Provider,\n useDirection\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["DirectionContext","React","useDirection","localDir","globalDir"],"mappings":";;AAGA,IAAIA,IAAmBC,EAAM,cAAc,MAAM;AAKjD,SAASC,EAAaC,GAAU;AAC9B,QAAMC,IAAYH,EAAM,WAAWD,CAAgB;AACnD,SAAOG,KAAYC,KAAa;AAClC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index57.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;"}
package/dist/index58.js CHANGED
@@ -1,18 +1,11 @@
1
- import * as r from "react";
2
- var t = 0;
3
- function a() {
4
- r.useEffect(() => {
5
- const e = document.querySelectorAll("[data-radix-focus-guard]");
6
- return document.body.insertAdjacentElement("afterbegin", e[0] ?? n()), document.body.insertAdjacentElement("beforeend", e[1] ?? n()), t++, () => {
7
- t === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((o) => o.remove()), t--;
8
- };
9
- }, []);
10
- }
11
- function n() {
12
- const e = document.createElement("span");
13
- return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
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), []);
14
7
  }
15
8
  export {
16
- a as useFocusGuards
9
+ c as useCallbackRef
17
10
  };
18
11
  //# sourceMappingURL=index58.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index58.js","sources":["../../../node_modules/@radix-ui/react-focus-guards/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/focus-guards.tsx\nimport * as React from \"react\";\nvar count = 0;\nfunction FocusGuards(props) {\n useFocusGuards();\n return props.children;\n}\nfunction useFocusGuards() {\n React.useEffect(() => {\n const edgeGuards = document.querySelectorAll(\"[data-radix-focus-guard]\");\n document.body.insertAdjacentElement(\"afterbegin\", edgeGuards[0] ?? createFocusGuard());\n document.body.insertAdjacentElement(\"beforeend\", edgeGuards[1] ?? createFocusGuard());\n count++;\n return () => {\n if (count === 1) {\n document.querySelectorAll(\"[data-radix-focus-guard]\").forEach((node) => node.remove());\n }\n count--;\n };\n }, []);\n}\nfunction createFocusGuard() {\n const element = document.createElement(\"span\");\n element.setAttribute(\"data-radix-focus-guard\", \"\");\n element.tabIndex = 0;\n element.style.outline = \"none\";\n element.style.opacity = \"0\";\n element.style.position = \"fixed\";\n element.style.pointerEvents = \"none\";\n return element;\n}\nexport {\n FocusGuards,\n FocusGuards as Root,\n useFocusGuards\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["count","useFocusGuards","React","edgeGuards","createFocusGuard","node","element"],"mappings":";AAIA,IAAIA,IAAQ;AAKZ,SAASC,IAAiB;AACxB,EAAAC,EAAM,UAAU,MAAM;AACpB,UAAMC,IAAa,SAAS,iBAAiB,0BAA0B;AACvE,oBAAS,KAAK,sBAAsB,cAAcA,EAAW,CAAC,KAAKC,GAAkB,GACrF,SAAS,KAAK,sBAAsB,aAAaD,EAAW,CAAC,KAAKC,GAAkB,GACpFJ,KACO,MAAM;AACX,MAAIA,MAAU,KACZ,SAAS,iBAAiB,0BAA0B,EAAE,QAAQ,CAACK,MAASA,EAAK,QAAQ,GAEvFL;AAAA,IACF;AAAA,EACF,GAAG,CAAA,CAAE;AACP;AACA,SAASI,IAAmB;AAC1B,QAAME,IAAU,SAAS,cAAc,MAAM;AAC7C,SAAAA,EAAQ,aAAa,0BAA0B,EAAE,GACjDA,EAAQ,WAAW,GACnBA,EAAQ,MAAM,UAAU,QACxBA,EAAQ,MAAM,UAAU,KACxBA,EAAQ,MAAM,WAAW,SACzBA,EAAQ,MAAM,gBAAgB,QACvBA;AACT;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index58.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]}
package/dist/index59.js CHANGED
@@ -1,137 +1,15 @@
1
- import * as d from "react";
2
- import { useComposedRefs as P } from "./index55.js";
3
- import { Primitive as M } from "./index63.js";
4
- import { useCallbackRef as y } from "./index65.js";
5
- import { j as _ } from "./index30.js";
6
- var F = "focusScope.autoFocusOnMount", T = "focusScope.autoFocusOnUnmount", N = { bubbles: !1, cancelable: !0 }, K = "FocusScope", k = d.forwardRef((e, t) => {
7
- const {
8
- loop: n = !1,
9
- trapped: u = !1,
10
- onMountAutoFocus: p,
11
- onUnmountAutoFocus: L,
12
- ...g
13
- } = e, [o, R] = d.useState(null), E = y(p), v = y(L), b = d.useRef(null), U = P(t, (s) => R(s)), a = d.useRef({
14
- paused: !1,
15
- pause() {
16
- this.paused = !0;
17
- },
18
- resume() {
19
- this.paused = !1;
20
- }
21
- }).current;
22
- d.useEffect(() => {
23
- if (u) {
24
- let s = function(i) {
25
- if (a.paused || !o) return;
26
- const c = i.target;
27
- o.contains(c) ? b.current = c : f(b.current, { select: !0 });
28
- }, l = function(i) {
29
- if (a.paused || !o) return;
30
- const c = i.relatedTarget;
31
- c !== null && (o.contains(c) || f(b.current, { select: !0 }));
32
- }, r = function(i) {
33
- if (document.activeElement === document.body)
34
- for (const h of i)
35
- h.removedNodes.length > 0 && f(o);
36
- };
37
- document.addEventListener("focusin", s), document.addEventListener("focusout", l);
38
- const m = new MutationObserver(r);
39
- return o && m.observe(o, { childList: !0, subtree: !0 }), () => {
40
- document.removeEventListener("focusin", s), document.removeEventListener("focusout", l), m.disconnect();
41
- };
42
- }
43
- }, [u, o, a.paused]), d.useEffect(() => {
44
- if (o) {
45
- O.add(a);
46
- const s = document.activeElement;
47
- if (!o.contains(s)) {
48
- const r = new CustomEvent(F, N);
49
- o.addEventListener(F, E), o.dispatchEvent(r), r.defaultPrevented || (w(V(I(o)), { select: !0 }), document.activeElement === s && f(o));
50
- }
51
- return () => {
52
- o.removeEventListener(F, E), setTimeout(() => {
53
- const r = new CustomEvent(T, N);
54
- o.addEventListener(T, v), o.dispatchEvent(r), r.defaultPrevented || f(s ?? document.body, { select: !0 }), o.removeEventListener(T, v), O.remove(a);
55
- }, 0);
56
- };
57
- }
58
- }, [o, E, v, a]);
59
- const A = d.useCallback(
60
- (s) => {
61
- if (!n && !u || a.paused) return;
62
- const l = s.key === "Tab" && !s.altKey && !s.ctrlKey && !s.metaKey, r = document.activeElement;
63
- if (l && r) {
64
- const m = s.currentTarget, [i, c] = x(m);
65
- i && c ? !s.shiftKey && r === c ? (s.preventDefault(), n && f(i, { select: !0 })) : s.shiftKey && r === i && (s.preventDefault(), n && f(c, { select: !0 })) : r === m && s.preventDefault();
66
- }
67
- },
68
- [n, u, a.paused]
69
- );
70
- return /* @__PURE__ */ _.jsx(M.div, { tabIndex: -1, ...g, ref: U, onKeyDown: A });
71
- });
72
- k.displayName = K;
73
- function w(e, { select: t = !1 } = {}) {
74
- const n = document.activeElement;
75
- for (const u of e)
76
- if (f(u, { select: t }), document.activeElement !== n) return;
77
- }
78
- function x(e) {
79
- const t = I(e), n = S(t, e), u = S(t.reverse(), e);
80
- return [n, u];
81
- }
82
- function I(e) {
83
- const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
84
- acceptNode: (u) => {
85
- const p = u.tagName === "INPUT" && u.type === "hidden";
86
- return u.disabled || u.hidden || p ? NodeFilter.FILTER_SKIP : u.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
87
- }
88
- });
89
- for (; n.nextNode(); ) t.push(n.currentNode);
90
- return t;
91
- }
92
- function S(e, t) {
93
- for (const n of e)
94
- if (!D(n, { upTo: t })) return n;
95
- }
96
- function D(e, { upTo: t }) {
97
- if (getComputedStyle(e).visibility === "hidden") return !0;
98
- for (; e; ) {
99
- if (t !== void 0 && e === t) return !1;
100
- if (getComputedStyle(e).display === "none") return !0;
101
- e = e.parentElement;
102
- }
103
- return !1;
104
- }
105
- function H(e) {
106
- return e instanceof HTMLInputElement && "select" in e;
107
- }
108
- function f(e, { select: t = !1 } = {}) {
109
- if (e && e.focus) {
110
- const n = document.activeElement;
111
- e.focus({ preventScroll: !0 }), e !== n && H(e) && t && e.select();
112
- }
113
- }
114
- var O = j();
115
- function j() {
116
- let e = [];
117
- return {
118
- add(t) {
119
- const n = e[0];
120
- t !== n && n?.pause(), e = C(e, t), e.unshift(t);
121
- },
122
- remove(t) {
123
- e = C(e, t), e[0]?.resume();
124
- }
125
- };
126
- }
127
- function C(e, t) {
128
- const n = [...e], u = n.indexOf(t);
129
- return u !== -1 && n.splice(u, 1), n;
130
- }
131
- function V(e) {
132
- return e.filter((t) => t.tagName !== "A");
1
+ import * as r from "react";
2
+ import { useCallbackRef as s } from "./index58.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]);
133
11
  }
134
12
  export {
135
- k as FocusScope
13
+ p as useEscapeKeydown
136
14
  };
137
15
  //# sourceMappingURL=index59.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index59.js","sources":["../../../node_modules/@radix-ui/react-focus-scope/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/focus-scope.tsx\nimport * as React from \"react\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { jsx } from \"react/jsx-runtime\";\nvar AUTOFOCUS_ON_MOUNT = \"focusScope.autoFocusOnMount\";\nvar AUTOFOCUS_ON_UNMOUNT = \"focusScope.autoFocusOnUnmount\";\nvar EVENT_OPTIONS = { bubbles: false, cancelable: true };\nvar FOCUS_SCOPE_NAME = \"FocusScope\";\nvar FocusScope = React.forwardRef((props, forwardedRef) => {\n const {\n loop = false,\n trapped = false,\n onMountAutoFocus: onMountAutoFocusProp,\n onUnmountAutoFocus: onUnmountAutoFocusProp,\n ...scopeProps\n } = props;\n const [container, setContainer] = React.useState(null);\n const onMountAutoFocus = useCallbackRef(onMountAutoFocusProp);\n const onUnmountAutoFocus = useCallbackRef(onUnmountAutoFocusProp);\n const lastFocusedElementRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, (node) => setContainer(node));\n const focusScope = React.useRef({\n paused: false,\n pause() {\n this.paused = true;\n },\n resume() {\n this.paused = false;\n }\n }).current;\n React.useEffect(() => {\n if (trapped) {\n let handleFocusIn2 = function(event) {\n if (focusScope.paused || !container) return;\n const target = event.target;\n if (container.contains(target)) {\n lastFocusedElementRef.current = target;\n } else {\n focus(lastFocusedElementRef.current, { select: true });\n }\n }, handleFocusOut2 = function(event) {\n if (focusScope.paused || !container) return;\n const relatedTarget = event.relatedTarget;\n if (relatedTarget === null) return;\n if (!container.contains(relatedTarget)) {\n focus(lastFocusedElementRef.current, { select: true });\n }\n }, handleMutations2 = function(mutations) {\n const focusedElement = document.activeElement;\n if (focusedElement !== document.body) return;\n for (const mutation of mutations) {\n if (mutation.removedNodes.length > 0) focus(container);\n }\n };\n var handleFocusIn = handleFocusIn2, handleFocusOut = handleFocusOut2, handleMutations = handleMutations2;\n document.addEventListener(\"focusin\", handleFocusIn2);\n document.addEventListener(\"focusout\", handleFocusOut2);\n const mutationObserver = new MutationObserver(handleMutations2);\n if (container) mutationObserver.observe(container, { childList: true, subtree: true });\n return () => {\n document.removeEventListener(\"focusin\", handleFocusIn2);\n document.removeEventListener(\"focusout\", handleFocusOut2);\n mutationObserver.disconnect();\n };\n }\n }, [trapped, container, focusScope.paused]);\n React.useEffect(() => {\n if (container) {\n focusScopesStack.add(focusScope);\n const previouslyFocusedElement = document.activeElement;\n const hasFocusedCandidate = container.contains(previouslyFocusedElement);\n if (!hasFocusedCandidate) {\n const mountEvent = new CustomEvent(AUTOFOCUS_ON_MOUNT, EVENT_OPTIONS);\n container.addEventListener(AUTOFOCUS_ON_MOUNT, onMountAutoFocus);\n container.dispatchEvent(mountEvent);\n if (!mountEvent.defaultPrevented) {\n focusFirst(removeLinks(getTabbableCandidates(container)), { select: true });\n if (document.activeElement === previouslyFocusedElement) {\n focus(container);\n }\n }\n }\n return () => {\n container.removeEventListener(AUTOFOCUS_ON_MOUNT, onMountAutoFocus);\n setTimeout(() => {\n const unmountEvent = new CustomEvent(AUTOFOCUS_ON_UNMOUNT, EVENT_OPTIONS);\n container.addEventListener(AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);\n container.dispatchEvent(unmountEvent);\n if (!unmountEvent.defaultPrevented) {\n focus(previouslyFocusedElement ?? document.body, { select: true });\n }\n container.removeEventListener(AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);\n focusScopesStack.remove(focusScope);\n }, 0);\n };\n }\n }, [container, onMountAutoFocus, onUnmountAutoFocus, focusScope]);\n const handleKeyDown = React.useCallback(\n (event) => {\n if (!loop && !trapped) return;\n if (focusScope.paused) return;\n const isTabKey = event.key === \"Tab\" && !event.altKey && !event.ctrlKey && !event.metaKey;\n const focusedElement = document.activeElement;\n if (isTabKey && focusedElement) {\n const container2 = event.currentTarget;\n const [first, last] = getTabbableEdges(container2);\n const hasTabbableElementsInside = first && last;\n if (!hasTabbableElementsInside) {\n if (focusedElement === container2) event.preventDefault();\n } else {\n if (!event.shiftKey && focusedElement === last) {\n event.preventDefault();\n if (loop) focus(first, { select: true });\n } else if (event.shiftKey && focusedElement === first) {\n event.preventDefault();\n if (loop) focus(last, { select: true });\n }\n }\n }\n },\n [loop, trapped, focusScope.paused]\n );\n return /* @__PURE__ */ jsx(Primitive.div, { tabIndex: -1, ...scopeProps, ref: composedRefs, onKeyDown: handleKeyDown });\n});\nFocusScope.displayName = FOCUS_SCOPE_NAME;\nfunction focusFirst(candidates, { select = false } = {}) {\n const previouslyFocusedElement = document.activeElement;\n for (const candidate of candidates) {\n focus(candidate, { select });\n if (document.activeElement !== previouslyFocusedElement) return;\n }\n}\nfunction getTabbableEdges(container) {\n const candidates = getTabbableCandidates(container);\n const first = findVisible(candidates, container);\n const last = findVisible(candidates.reverse(), container);\n return [first, last];\n}\nfunction getTabbableCandidates(container) {\n const nodes = [];\n const walker = document.createTreeWalker(container, NodeFilter.SHOW_ELEMENT, {\n acceptNode: (node) => {\n const isHiddenInput = node.tagName === \"INPUT\" && node.type === \"hidden\";\n if (node.disabled || node.hidden || isHiddenInput) return NodeFilter.FILTER_SKIP;\n return node.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;\n }\n });\n while (walker.nextNode()) nodes.push(walker.currentNode);\n return nodes;\n}\nfunction findVisible(elements, container) {\n for (const element of elements) {\n if (!isHidden(element, { upTo: container })) return element;\n }\n}\nfunction isHidden(node, { upTo }) {\n if (getComputedStyle(node).visibility === \"hidden\") return true;\n while (node) {\n if (upTo !== void 0 && node === upTo) return false;\n if (getComputedStyle(node).display === \"none\") return true;\n node = node.parentElement;\n }\n return false;\n}\nfunction isSelectableInput(element) {\n return element instanceof HTMLInputElement && \"select\" in element;\n}\nfunction focus(element, { select = false } = {}) {\n if (element && element.focus) {\n const previouslyFocusedElement = document.activeElement;\n element.focus({ preventScroll: true });\n if (element !== previouslyFocusedElement && isSelectableInput(element) && select)\n element.select();\n }\n}\nvar focusScopesStack = createFocusScopesStack();\nfunction createFocusScopesStack() {\n let stack = [];\n return {\n add(focusScope) {\n const activeFocusScope = stack[0];\n if (focusScope !== activeFocusScope) {\n activeFocusScope?.pause();\n }\n stack = arrayRemove(stack, focusScope);\n stack.unshift(focusScope);\n },\n remove(focusScope) {\n stack = arrayRemove(stack, focusScope);\n stack[0]?.resume();\n }\n };\n}\nfunction arrayRemove(array, item) {\n const updatedArray = [...array];\n const index = updatedArray.indexOf(item);\n if (index !== -1) {\n updatedArray.splice(index, 1);\n }\n return updatedArray;\n}\nfunction removeLinks(items) {\n return items.filter((item) => item.tagName !== \"A\");\n}\nvar Root = FocusScope;\nexport {\n FocusScope,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["AUTOFOCUS_ON_MOUNT","AUTOFOCUS_ON_UNMOUNT","EVENT_OPTIONS","FOCUS_SCOPE_NAME","FocusScope","React","props","forwardedRef","loop","trapped","onMountAutoFocusProp","onUnmountAutoFocusProp","scopeProps","container","setContainer","onMountAutoFocus","useCallbackRef","onUnmountAutoFocus","lastFocusedElementRef","composedRefs","useComposedRefs","node","focusScope","handleFocusIn2","event","target","focus","handleFocusOut2","relatedTarget","handleMutations2","mutations","mutation","mutationObserver","focusScopesStack","previouslyFocusedElement","mountEvent","focusFirst","removeLinks","getTabbableCandidates","unmountEvent","handleKeyDown","isTabKey","focusedElement","container2","first","last","getTabbableEdges","jsx","Primitive","candidates","select","candidate","findVisible","nodes","walker","isHiddenInput","elements","element","isHidden","upTo","isSelectableInput","createFocusScopesStack","stack","activeFocusScope","arrayRemove","array","item","updatedArray","index","items"],"mappings":"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","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index59.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]}
package/dist/index60.js CHANGED
@@ -1,14 +1,7 @@
1
- import * as o from "react";
2
- import { useLayoutEffect as a } from "./index67.js";
3
- var s = o[" useId ".trim().toString()] || (() => {
4
- }), f = 0;
5
- function i(t) {
6
- const [e, r] = o.useState(s());
7
- return a(() => {
8
- r((u) => u ?? String(f++));
9
- }, [t]), t || (e ? `radix-${e}` : "");
1
+ function m(t, [a, n]) {
2
+ return Math.min(n, Math.max(a, t));
10
3
  }
11
4
  export {
12
- i as useId
5
+ m as clamp
13
6
  };
14
7
  //# sourceMappingURL=index60.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index60.js","sources":["../../../node_modules/@radix-ui/react-id/dist/index.mjs"],"sourcesContent":["// packages/react/id/src/id.tsx\nimport * as React from \"react\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nvar useReactId = React[\" useId \".trim().toString()] || (() => void 0);\nvar count = 0;\nfunction useId(deterministicId) {\n const [id, setId] = React.useState(useReactId());\n useLayoutEffect(() => {\n if (!deterministicId) setId((reactId) => reactId ?? String(count++));\n }, [deterministicId]);\n return deterministicId || (id ? `radix-${id}` : \"\");\n}\nexport {\n useId\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useReactId","React","count","useId","deterministicId","id","setId","useLayoutEffect","reactId"],"mappings":";;AAGA,IAAIA,IAAaC,EAAM,UAAU,KAAI,EAAG,SAAQ,CAAE,MAAM,MAAA;AAAA,IACpDC,IAAQ;AACZ,SAASC,EAAMC,GAAiB;AAC9B,QAAM,CAACC,GAAIC,CAAK,IAAIL,EAAM,SAASD,GAAY;AAC/CO,SAAAA,EAAgB,MAAM;AACE,IAAAD,EAAM,CAACE,MAAYA,KAAW,OAAON,GAAO,CAAC;AAAA,EACrE,GAAG,CAACE,CAAe,CAAC,GACbA,MAAoBC,IAAK,SAASA,CAAE,KAAK;AAClD;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index60.js","sources":["../../../node_modules/@radix-ui/number/dist/index.mjs"],"sourcesContent":["// packages/core/number/src/number.ts\nfunction clamp(value, [min, max]) {\n return Math.min(max, Math.max(min, value));\n}\nexport {\n clamp\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["clamp","value","min","max"],"mappings":"AACA,SAASA,EAAMC,GAAO,CAACC,GAAKC,CAAG,GAAG;AAChC,SAAO,KAAK,IAAIA,GAAK,KAAK,IAAID,GAAKD,CAAK,CAAC;AAC3C;","x_google_ignoreList":[0]}
package/dist/index61.js CHANGED
@@ -1,220 +1,51 @@
1
- import * as p from "react";
2
- import { useFloating as fe, offset as me, shift as he, flip as ue, size as ge, arrow as we, hide as xe, limitShift as Pe } from "./index81.js";
3
- import { Root as ye } from "./index82.js";
4
- import { useComposedRefs as z } from "./index55.js";
5
- import { createContextScope as Ae } from "./index56.js";
6
- import { Primitive as I } from "./index63.js";
7
- import { useCallbackRef as ve } from "./index65.js";
8
- import { useLayoutEffect as W } from "./index67.js";
9
- import { useSize as Ce } from "./index83.js";
10
- import { j as f } from "./index30.js";
11
- import { autoUpdate as Se } from "./index84.js";
12
- var R = "Popper", [Y, Fe] = Ae(R), [Re, M] = Y(R), X = (e) => {
13
- const { __scopePopper: i, children: n } = e, [s, a] = p.useState(null);
14
- return /* @__PURE__ */ f.jsx(Re, { scope: i, anchor: s, onAnchorChange: a, children: n });
15
- };
16
- X.displayName = R;
17
- var D = "PopperAnchor", F = p.forwardRef(
18
- (e, i) => {
19
- const { __scopePopper: n, virtualRef: s, ...a } = e, t = M(D, n), r = p.useRef(null), u = z(i, r), o = p.useRef(null);
20
- return p.useEffect(() => {
21
- const c = o.current;
22
- o.current = s?.current || r.current, c !== o.current && t.onAnchorChange(o.current);
23
- }), s ? null : /* @__PURE__ */ f.jsx(I.div, { ...a, ref: u });
24
- }
25
- );
26
- F.displayName = D;
27
- var b = "PopperContent", [be, Oe] = Y(b), k = p.forwardRef(
28
- (e, i) => {
29
- const {
30
- __scopePopper: n,
31
- side: s = "bottom",
32
- sideOffset: a = 0,
33
- align: t = "center",
34
- alignOffset: r = 0,
35
- arrowPadding: u = 0,
36
- avoidCollisions: o = !0,
37
- collisionBoundary: c = [],
38
- collisionPadding: g = 0,
39
- sticky: m = "partial",
40
- hideWhenDetached: x = !1,
41
- updatePositionStrategy: P = "optimized",
42
- onPlaced: d,
43
- ...l
44
- } = e, Z = M(b, n), [C, U] = p.useState(null), q = z(i, (w) => U(w)), [S, G] = p.useState(null), O = Ce(S), J = O?.width ?? 0, E = O?.height ?? 0, K = s + (t !== "center" ? "-" + t : ""), Q = typeof g == "number" ? g : { top: 0, right: 0, bottom: 0, left: 0, ...g }, N = Array.isArray(c) ? c : [c], V = N.length > 0, y = {
45
- padding: Q,
46
- boundary: N.filter(Ne),
47
- // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
48
- altBoundary: V
49
- }, { refs: ee, floatingStyles: _, placement: te, isPositioned: A, middlewareData: h } = fe({
50
- // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
51
- strategy: "fixed",
52
- placement: K,
53
- whileElementsMounted: (...w) => Se(...w, {
54
- animationFrame: P === "always"
55
- }),
56
- elements: {
57
- reference: Z.anchor
58
- },
59
- middleware: [
60
- me({ mainAxis: a + E, alignmentAxis: r }),
61
- o && he({
62
- mainAxis: !0,
63
- crossAxis: !1,
64
- limiter: m === "partial" ? Pe() : void 0,
65
- ...y
66
- }),
67
- o && ue({ ...y }),
68
- ge({
69
- ...y,
70
- apply: ({ elements: w, rects: H, availableWidth: ce, availableHeight: pe }) => {
71
- const { width: le, height: de } = H.reference, v = w.floating.style;
72
- v.setProperty("--radix-popper-available-width", `${ce}px`), v.setProperty("--radix-popper-available-height", `${pe}px`), v.setProperty("--radix-popper-anchor-width", `${le}px`), v.setProperty("--radix-popper-anchor-height", `${de}px`);
73
- }
74
- }),
75
- S && we({ element: S, padding: u }),
76
- _e({ arrowWidth: J, arrowHeight: E }),
77
- x && xe({ strategy: "referenceHidden", ...y })
78
- ]
79
- }), [$, re] = L(te), j = ve(d);
80
- W(() => {
81
- A && j?.();
82
- }, [A, j]);
83
- const oe = h.arrow?.x, ne = h.arrow?.y, ae = h.arrow?.centerOffset !== 0, [ie, se] = p.useState();
84
- return W(() => {
85
- C && se(window.getComputedStyle(C).zIndex);
86
- }, [C]), /* @__PURE__ */ f.jsx(
87
- "div",
88
- {
89
- ref: ee.setFloating,
90
- "data-radix-popper-content-wrapper": "",
91
- style: {
92
- ..._,
93
- transform: A ? _.transform : "translate(0, -200%)",
94
- // keep off the page when measuring
95
- minWidth: "max-content",
96
- zIndex: ie,
97
- "--radix-popper-transform-origin": [
98
- h.transformOrigin?.x,
99
- h.transformOrigin?.y
100
- ].join(" "),
101
- // hide the content if using the hide middleware and should be hidden
102
- // set visibility to hidden and disable pointer events so the UI behaves
103
- // as if the PopperContent isn't there at all
104
- ...h.hide?.referenceHidden && {
105
- visibility: "hidden",
106
- pointerEvents: "none"
107
- }
108
- },
109
- dir: e.dir,
110
- children: /* @__PURE__ */ f.jsx(
111
- be,
112
- {
113
- scope: n,
114
- placedSide: $,
115
- onArrowChange: G,
116
- arrowX: oe,
117
- arrowY: ne,
118
- shouldHideArrow: ae,
119
- children: /* @__PURE__ */ f.jsx(
120
- I.div,
121
- {
122
- "data-side": $,
123
- "data-align": re,
124
- ...l,
125
- ref: q,
126
- style: {
127
- ...l.style,
128
- // if the PopperContent hasn't been placed yet (not all measurements done)
129
- // we prevent animations so that users's animation don't kick in too early referring wrong sides
130
- animation: A ? void 0 : "none"
131
- }
132
- }
133
- )
134
- }
135
- )
136
- }
137
- );
138
- }
139
- );
140
- k.displayName = b;
141
- var B = "PopperArrow", Ee = {
142
- top: "bottom",
143
- right: "left",
144
- bottom: "top",
145
- left: "right"
146
- }, T = p.forwardRef(function(i, n) {
147
- const { __scopePopper: s, ...a } = i, t = Oe(B, s), r = Ee[t.placedSide];
148
- return (
149
- // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
150
- // doesn't report size as we'd expect on SVG elements.
151
- // it reports their bounding box which is effectively the largest path inside the SVG.
152
- /* @__PURE__ */ f.jsx(
153
- "span",
154
- {
155
- ref: t.onArrowChange,
156
- style: {
157
- position: "absolute",
158
- left: t.arrowX,
159
- top: t.arrowY,
160
- [r]: 0,
161
- transformOrigin: {
162
- top: "",
163
- right: "0 0",
164
- bottom: "center 0",
165
- left: "100% 0"
166
- }[t.placedSide],
167
- transform: {
168
- top: "translateY(100%)",
169
- right: "translateY(50%) rotate(90deg) translateX(-50%)",
170
- bottom: "rotate(180deg)",
171
- left: "translateY(50%) rotate(-90deg) translateX(50%)"
172
- }[t.placedSide],
173
- visibility: t.shouldHideArrow ? "hidden" : void 0
174
- },
175
- children: /* @__PURE__ */ f.jsx(
176
- ye,
177
- {
178
- ...a,
179
- ref: n,
180
- style: {
181
- ...a.style,
182
- // ensures the element can be measured correctly (mostly for if SVG)
183
- display: "block"
184
- }
185
- }
186
- )
187
- }
188
- )
1
+ import r from "react";
2
+ import { createContextScope as y } from "./index62.js";
3
+ import { useComposedRefs as S } from "./index57.js";
4
+ import { createSlot as M } from "./index151.js";
5
+ import { j as d } from "./index30.js";
6
+ function D(s) {
7
+ const m = s + "CollectionProvider", [A, E] = y(m), [N, f] = A(
8
+ m,
9
+ { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
10
+ ), p = (c) => {
11
+ const { scope: e, children: l } = c, o = r.useRef(null), t = r.useRef(/* @__PURE__ */ new Map()).current;
12
+ return /* @__PURE__ */ d.jsx(N, { scope: e, itemMap: t, collectionRef: o, children: l });
13
+ };
14
+ p.displayName = m;
15
+ const a = s + "CollectionSlot", _ = M(a), C = r.forwardRef(
16
+ (c, e) => {
17
+ const { scope: l, children: o } = c, t = f(a, l), n = S(e, t.collectionRef);
18
+ return /* @__PURE__ */ d.jsx(_, { ref: n, children: o });
19
+ }
189
20
  );
190
- });
191
- T.displayName = B;
192
- function Ne(e) {
193
- return e !== null;
194
- }
195
- var _e = (e) => ({
196
- name: "transformOrigin",
197
- options: e,
198
- fn(i) {
199
- const { placement: n, rects: s, middlewareData: a } = i, r = a.arrow?.centerOffset !== 0, u = r ? 0 : e.arrowWidth, o = r ? 0 : e.arrowHeight, [c, g] = L(n), m = { start: "0%", center: "50%", end: "100%" }[g], x = (a.arrow?.x ?? 0) + u / 2, P = (a.arrow?.y ?? 0) + o / 2;
200
- let d = "", l = "";
201
- return c === "bottom" ? (d = r ? m : `${x}px`, l = `${-o}px`) : c === "top" ? (d = r ? m : `${x}px`, l = `${s.floating.height + o}px`) : c === "right" ? (d = `${-o}px`, l = r ? m : `${P}px`) : c === "left" && (d = `${s.floating.width + o}px`, l = r ? m : `${P}px`), { data: { x: d, y: l } };
21
+ C.displayName = a;
22
+ const u = s + "CollectionItemSlot", R = "data-radix-collection-item", T = M(u), x = r.forwardRef(
23
+ (c, e) => {
24
+ const { scope: l, children: o, ...t } = c, n = r.useRef(null), I = S(e, n), i = f(u, l);
25
+ return r.useEffect(() => (i.itemMap.set(n, { ref: n, ...t }), () => {
26
+ i.itemMap.delete(n);
27
+ })), /* @__PURE__ */ d.jsx(T, { [R]: "", ref: I, children: o });
28
+ }
29
+ );
30
+ x.displayName = u;
31
+ function O(c) {
32
+ const e = f(s + "CollectionConsumer", c);
33
+ return r.useCallback(() => {
34
+ const o = e.collectionRef.current;
35
+ if (!o) return [];
36
+ const t = Array.from(o.querySelectorAll(`[${R}]`));
37
+ return Array.from(e.itemMap.values()).sort(
38
+ (i, v) => t.indexOf(i.ref.current) - t.indexOf(v.ref.current)
39
+ );
40
+ }, [e.collectionRef, e.itemMap]);
202
41
  }
203
- });
204
- function L(e) {
205
- const [i, n = "center"] = e.split("-");
206
- return [i, n];
42
+ return [
43
+ { Provider: p, Slot: C, ItemSlot: x },
44
+ O,
45
+ E
46
+ ];
207
47
  }
208
- var ke = X, Be = F, Te = k, Le = T;
209
48
  export {
210
- Be as Anchor,
211
- Le as Arrow,
212
- Te as Content,
213
- X as Popper,
214
- F as PopperAnchor,
215
- T as PopperArrow,
216
- k as PopperContent,
217
- ke as Root,
218
- Fe as createPopperScope
49
+ D as createCollection
219
50
  };
220
51
  //# sourceMappingURL=index61.js.map