@rpcbase/ui 0.230.0 → 0.232.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (562) hide show
  1. package/dist/components/I18nField/index.d.ts.map +1 -1
  2. package/dist/components/PhoneNumberInput/index.d.ts.map +1 -1
  3. package/dist/index11.js +291 -278
  4. package/dist/index11.js.map +1 -1
  5. package/dist/index127.js +36 -36
  6. package/dist/index139.js +6 -6
  7. package/dist/index142.js +10 -10
  8. package/dist/index144.js +2 -2
  9. package/dist/index145.js +3 -3
  10. package/dist/index146.js +1 -1
  11. package/dist/index148.js +2 -2
  12. package/dist/index150.js +2 -2
  13. package/dist/index171.js +11 -13
  14. package/dist/index171.js.map +1 -1
  15. package/dist/index172.js +62 -148
  16. package/dist/index172.js.map +1 -1
  17. package/dist/index173.js +37 -30
  18. package/dist/index173.js.map +1 -1
  19. package/dist/index174.js +14 -10
  20. package/dist/index174.js.map +1 -1
  21. package/dist/index175.js +23 -48
  22. package/dist/index175.js.map +1 -1
  23. package/dist/index176.js +109 -10
  24. package/dist/index176.js.map +1 -1
  25. package/dist/index177.js +13 -45
  26. package/dist/index177.js.map +1 -1
  27. package/dist/index178.js +4 -95
  28. package/dist/index178.js.map +1 -1
  29. package/dist/index179.js +4 -87
  30. package/dist/index179.js.map +1 -1
  31. package/dist/index18.js +247 -240
  32. package/dist/index18.js.map +1 -1
  33. package/dist/index180.js +5 -106
  34. package/dist/index180.js.map +1 -1
  35. package/dist/index181.js +11 -52
  36. package/dist/index181.js.map +1 -1
  37. package/dist/index182.js +19 -11
  38. package/dist/index182.js.map +1 -1
  39. package/dist/index183.js +13 -38
  40. package/dist/index183.js.map +1 -1
  41. package/dist/index184.js +261 -8
  42. package/dist/index184.js.map +1 -1
  43. package/dist/index185.js +4 -116
  44. package/dist/index185.js.map +1 -1
  45. package/dist/index186.js +28 -18
  46. package/dist/index186.js.map +1 -1
  47. package/dist/index187.js +126 -15
  48. package/dist/index187.js.map +1 -1
  49. package/dist/index188.js +5 -3
  50. package/dist/index188.js.map +1 -1
  51. package/dist/index189.js +76 -34
  52. package/dist/index189.js.map +1 -1
  53. package/dist/index190.js +65 -19
  54. package/dist/index190.js.map +1 -1
  55. package/dist/index191.js +8 -9
  56. package/dist/index191.js.map +1 -1
  57. package/dist/index192.js +15 -8
  58. package/dist/index192.js.map +1 -1
  59. package/dist/index193.js +91 -18
  60. package/dist/index193.js.map +1 -1
  61. package/dist/index194.js +63 -26
  62. package/dist/index194.js.map +1 -1
  63. package/dist/index195.js +44 -15
  64. package/dist/index195.js.map +1 -1
  65. package/dist/index196.js +13 -58
  66. package/dist/index196.js.map +1 -1
  67. package/dist/index197.js +154 -8
  68. package/dist/index197.js.map +1 -1
  69. package/dist/index198.js +28 -64
  70. package/dist/index198.js.map +1 -1
  71. package/dist/index199.js +9 -19
  72. package/dist/index199.js.map +1 -1
  73. package/dist/index200.js +46 -14
  74. package/dist/index200.js.map +1 -1
  75. package/dist/index201.js +11 -5
  76. package/dist/index201.js.map +1 -1
  77. package/dist/index202.js +43 -4
  78. package/dist/index202.js.map +1 -1
  79. package/dist/index203.js +95 -6
  80. package/dist/index203.js.map +1 -1
  81. package/dist/index204.js +86 -4
  82. package/dist/index204.js.map +1 -1
  83. package/dist/index205.js +105 -6
  84. package/dist/index205.js.map +1 -1
  85. package/dist/index206.js +52 -16
  86. package/dist/index206.js.map +1 -1
  87. package/dist/index207.js +11 -4
  88. package/dist/index207.js.map +1 -1
  89. package/dist/index208.js +37 -4
  90. package/dist/index208.js.map +1 -1
  91. package/dist/index209.js +8 -12
  92. package/dist/index209.js.map +1 -1
  93. package/dist/index210.js +116 -9
  94. package/dist/index210.js.map +1 -1
  95. package/dist/index211.js +17 -13
  96. package/dist/index211.js.map +1 -1
  97. package/dist/index212.js +15 -13
  98. package/dist/index212.js.map +1 -1
  99. package/dist/index213.js +3 -4
  100. package/dist/index213.js.map +1 -1
  101. package/dist/index214.js +36 -5
  102. package/dist/index214.js.map +1 -1
  103. package/dist/index215.js +20 -6
  104. package/dist/index215.js.map +1 -1
  105. package/dist/index216.js +9 -5
  106. package/dist/index216.js.map +1 -1
  107. package/dist/index217.js +8 -54
  108. package/dist/index217.js.map +1 -1
  109. package/dist/index218.js +19 -8
  110. package/dist/index218.js.map +1 -1
  111. package/dist/index219.js +28 -4
  112. package/dist/index219.js.map +1 -1
  113. package/dist/index220.js +16 -4
  114. package/dist/index220.js.map +1 -1
  115. package/dist/index221.js +58 -8
  116. package/dist/index221.js.map +1 -1
  117. package/dist/index222.js +8 -4
  118. package/dist/index222.js.map +1 -1
  119. package/dist/index223.js +66 -4
  120. package/dist/index223.js.map +1 -1
  121. package/dist/index224.js +19 -3
  122. package/dist/index224.js.map +1 -1
  123. package/dist/index225.js +16 -10
  124. package/dist/index225.js.map +1 -1
  125. package/dist/index226.js +5 -9
  126. package/dist/index226.js.map +1 -1
  127. package/dist/index227.js +5 -9
  128. package/dist/index227.js.map +1 -1
  129. package/dist/index228.js +6 -10
  130. package/dist/index228.js.map +1 -1
  131. package/dist/index229.js +4 -10
  132. package/dist/index229.js.map +1 -1
  133. package/dist/index230.js +6 -9
  134. package/dist/index230.js.map +1 -1
  135. package/dist/index231.js +16 -6
  136. package/dist/index231.js.map +1 -1
  137. package/dist/index232.js +4 -5
  138. package/dist/index232.js.map +1 -1
  139. package/dist/index233.js +4 -4
  140. package/dist/index233.js.map +1 -1
  141. package/dist/index234.js +12 -5
  142. package/dist/index234.js.map +1 -1
  143. package/dist/index235.js +9 -6
  144. package/dist/index235.js.map +1 -1
  145. package/dist/index236.js +13 -5
  146. package/dist/index236.js.map +1 -1
  147. package/dist/index237.js +13 -16
  148. package/dist/index237.js.map +1 -1
  149. package/dist/index238.js +4 -7
  150. package/dist/index238.js.map +1 -1
  151. package/dist/index239.js +5 -10
  152. package/dist/index239.js.map +1 -1
  153. package/dist/index240.js +6 -10
  154. package/dist/index240.js.map +1 -1
  155. package/dist/index241.js +5 -21
  156. package/dist/index241.js.map +1 -1
  157. package/dist/index242.js +54 -10
  158. package/dist/index242.js.map +1 -1
  159. package/dist/index243.js +8 -9
  160. package/dist/index243.js.map +1 -1
  161. package/dist/index244.js +4 -9
  162. package/dist/index244.js.map +1 -1
  163. package/dist/index245.js +4 -4
  164. package/dist/index245.js.map +1 -1
  165. package/dist/index246.js +8 -5
  166. package/dist/index246.js.map +1 -1
  167. package/dist/index247.js +4 -16
  168. package/dist/index247.js.map +1 -1
  169. package/dist/index248.js +4 -9
  170. package/dist/index248.js.map +1 -1
  171. package/dist/index249.js +3 -18
  172. package/dist/index249.js.map +1 -1
  173. package/dist/index250.js +10 -15
  174. package/dist/index250.js.map +1 -1
  175. package/dist/index251.js +9 -12
  176. package/dist/index251.js.map +1 -1
  177. package/dist/index252.js +9 -29
  178. package/dist/index252.js.map +1 -1
  179. package/dist/index253.js +10 -12
  180. package/dist/index253.js.map +1 -1
  181. package/dist/index254.js +10 -25
  182. package/dist/index254.js.map +1 -1
  183. package/dist/index255.js +9 -5
  184. package/dist/index255.js.map +1 -1
  185. package/dist/index256.js +7 -20
  186. package/dist/index256.js.map +1 -1
  187. package/dist/index257.js +5 -66
  188. package/dist/index257.js.map +1 -1
  189. package/dist/index258.js +4 -6
  190. package/dist/index258.js.map +1 -1
  191. package/dist/index259.js +5 -5
  192. package/dist/index259.js.map +1 -1
  193. package/dist/index260.js +6 -11
  194. package/dist/index260.js.map +1 -1
  195. package/dist/index261.js +5 -50
  196. package/dist/index261.js.map +1 -1
  197. package/dist/index262.js +17 -4
  198. package/dist/index262.js.map +1 -1
  199. package/dist/index263.js +7 -29
  200. package/dist/index263.js.map +1 -1
  201. package/dist/index264.js +10 -16
  202. package/dist/index264.js.map +1 -1
  203. package/dist/index265.js +10 -5
  204. package/dist/index265.js.map +1 -1
  205. package/dist/index266.js +21 -21
  206. package/dist/index266.js.map +1 -1
  207. package/dist/index267.js +10 -51
  208. package/dist/index267.js.map +1 -1
  209. package/dist/index268.js +9 -25
  210. package/dist/index268.js.map +1 -1
  211. package/dist/index269.js +9 -41
  212. package/dist/index269.js.map +1 -1
  213. package/dist/index270.js +4 -39
  214. package/dist/index270.js.map +1 -1
  215. package/dist/index271.js +6 -45
  216. package/dist/index271.js.map +1 -1
  217. package/dist/index272.js +16 -23
  218. package/dist/index272.js.map +1 -1
  219. package/dist/index273.js +9 -19
  220. package/dist/index273.js.map +1 -1
  221. package/dist/index274.js +18 -20
  222. package/dist/index274.js.map +1 -1
  223. package/dist/index275.js +15 -70
  224. package/dist/index275.js.map +1 -1
  225. package/dist/index276.js +12 -17
  226. package/dist/index276.js.map +1 -1
  227. package/dist/index277.js +29 -11
  228. package/dist/index277.js.map +1 -1
  229. package/dist/index278.js +12 -27
  230. package/dist/index278.js.map +1 -1
  231. package/dist/index279.js +25 -13
  232. package/dist/index279.js.map +1 -1
  233. package/dist/index280.js +5 -18
  234. package/dist/index280.js.map +1 -1
  235. package/dist/index281.js +20 -37
  236. package/dist/index281.js.map +1 -1
  237. package/dist/index282.js +64 -63
  238. package/dist/index282.js.map +1 -1
  239. package/dist/index283.js +6 -262
  240. package/dist/index283.js.map +1 -1
  241. package/dist/index284.js +10 -277
  242. package/dist/index284.js.map +1 -1
  243. package/dist/index285.js +49 -67
  244. package/dist/index285.js.map +1 -1
  245. package/dist/index286.js +4 -46
  246. package/dist/index286.js.map +1 -1
  247. package/dist/index287.js +27 -97
  248. package/dist/index287.js.map +1 -1
  249. package/dist/index288.js +15 -82
  250. package/dist/index288.js.map +1 -1
  251. package/dist/index289.js +6 -13
  252. package/dist/index289.js.map +1 -1
  253. package/dist/index290.js +21 -3
  254. package/dist/index290.js.map +1 -1
  255. package/dist/index291.js +50 -28
  256. package/dist/index291.js.map +1 -1
  257. package/dist/index292.js +25 -16
  258. package/dist/index292.js.map +1 -1
  259. package/dist/index293.js +42 -38
  260. package/dist/index293.js.map +1 -1
  261. package/dist/index294.js +39 -34
  262. package/dist/index294.js.map +1 -1
  263. package/dist/index295.js +45 -69
  264. package/dist/index295.js.map +1 -1
  265. package/dist/index296.js +20 -16
  266. package/dist/index296.js.map +1 -1
  267. package/dist/index297.js +70 -3
  268. package/dist/index297.js.map +1 -1
  269. package/dist/index298.js +15 -108
  270. package/dist/index298.js.map +1 -1
  271. package/dist/index299.js +11 -26
  272. package/dist/index299.js.map +1 -1
  273. package/dist/index300.js +26 -27
  274. package/dist/index300.js.map +1 -1
  275. package/dist/index301.js +14 -4
  276. package/dist/index301.js.map +1 -1
  277. package/dist/index302.js +18 -126
  278. package/dist/index302.js.map +1 -1
  279. package/dist/index303.js +36 -4
  280. package/dist/index303.js.map +1 -1
  281. package/dist/index304.js +258 -74
  282. package/dist/index304.js.map +1 -1
  283. package/dist/index305.js +269 -260
  284. package/dist/index305.js.map +1 -1
  285. package/dist/index306.js +68 -11
  286. package/dist/index306.js.map +1 -1
  287. package/dist/index307.js +97 -25
  288. package/dist/index307.js.map +1 -1
  289. package/dist/index308.js +83 -15
  290. package/dist/index308.js.map +1 -1
  291. package/dist/index309.js +3 -10
  292. package/dist/index309.js.map +1 -1
  293. package/dist/index310.js +28 -24
  294. package/dist/index310.js.map +1 -1
  295. package/dist/index311.js +16 -16
  296. package/dist/index311.js.map +1 -1
  297. package/dist/index312.js +34 -125
  298. package/dist/index312.js.map +1 -1
  299. package/dist/index313.js +15 -4
  300. package/dist/index313.js.map +1 -1
  301. package/dist/index314.js +3 -40
  302. package/dist/index314.js.map +1 -1
  303. package/dist/index315.js +24 -63
  304. package/dist/index315.js.map +1 -1
  305. package/dist/index316.js +28 -13
  306. package/dist/index316.js.map +1 -1
  307. package/dist/index317.js +4 -14
  308. package/dist/index317.js.map +1 -1
  309. package/dist/index318.js +78 -7
  310. package/dist/index318.js.map +1 -1
  311. package/dist/index319.js +270 -13
  312. package/dist/index319.js.map +1 -1
  313. package/dist/index320.js +11 -5
  314. package/dist/index320.js.map +1 -1
  315. package/dist/index321.js +10 -3
  316. package/dist/index321.js.map +1 -1
  317. package/dist/index322.js +25 -10
  318. package/dist/index322.js.map +1 -1
  319. package/dist/index323.js +16 -7
  320. package/dist/index323.js.map +1 -1
  321. package/dist/index324.js +109 -117
  322. package/dist/index324.js.map +1 -1
  323. package/dist/index325.js +5 -261
  324. package/dist/index325.js.map +1 -1
  325. package/dist/index326.js +39 -398
  326. package/dist/index326.js.map +1 -1
  327. package/dist/index327.js +65 -52
  328. package/dist/index327.js.map +1 -1
  329. package/dist/index328.js +14 -12
  330. package/dist/index328.js.map +1 -1
  331. package/dist/index329.js +7 -11
  332. package/dist/index329.js.map +1 -1
  333. package/dist/index330.js +5 -4
  334. package/dist/index330.js.map +1 -1
  335. package/dist/index331.js +3 -11
  336. package/dist/index331.js.map +1 -1
  337. package/dist/index332.js +11 -4
  338. package/dist/index332.js.map +1 -1
  339. package/dist/index333.js +8 -5
  340. package/dist/index333.js.map +1 -1
  341. package/dist/index334.js +133 -11
  342. package/dist/index334.js.map +1 -1
  343. package/dist/index335.js +395 -74
  344. package/dist/index335.js.map +1 -1
  345. package/dist/index336.js +51 -65
  346. package/dist/index336.js.map +1 -1
  347. package/dist/index337.js +11 -8
  348. package/dist/index337.js.map +1 -1
  349. package/dist/index338.js +11 -92
  350. package/dist/index338.js.map +1 -1
  351. package/dist/index339.js +7 -19
  352. package/dist/index339.js.map +1 -1
  353. package/dist/index34.js +4 -4
  354. package/dist/index340.js +11 -4
  355. package/dist/index340.js.map +1 -1
  356. package/dist/index341.js +8 -17
  357. package/dist/index341.js.map +1 -1
  358. package/dist/index342.js +13 -12
  359. package/dist/index342.js.map +1 -1
  360. package/dist/index343.js +3 -8
  361. package/dist/index343.js.map +1 -1
  362. package/dist/index344.js +3 -11
  363. package/dist/index344.js.map +1 -1
  364. package/dist/index345.js +16 -7
  365. package/dist/index345.js.map +1 -1
  366. package/dist/index346.js +50 -12
  367. package/dist/index346.js.map +1 -1
  368. package/dist/index347.js +5 -3
  369. package/dist/index347.js.map +1 -1
  370. package/dist/index348.js +122 -3
  371. package/dist/index348.js.map +1 -1
  372. package/dist/index349.js +33 -4
  373. package/dist/index349.js.map +1 -1
  374. package/dist/index35.js +5 -5
  375. package/dist/index350.js +74 -15
  376. package/dist/index350.js.map +1 -1
  377. package/dist/index351.js +141 -7
  378. package/dist/index351.js.map +1 -1
  379. package/dist/index352.js +61 -51
  380. package/dist/index352.js.map +1 -1
  381. package/dist/index353.js +49 -11
  382. package/dist/index353.js.map +1 -1
  383. package/dist/index354.js +15 -17
  384. package/dist/index354.js.map +1 -1
  385. package/dist/index355.js +8 -5
  386. package/dist/index355.js.map +1 -1
  387. package/dist/index356.js +4 -5
  388. package/dist/index356.js.map +1 -1
  389. package/dist/index357.js +11 -20
  390. package/dist/index357.js.map +1 -1
  391. package/dist/index358.js +21 -44
  392. package/dist/index358.js.map +1 -1
  393. package/dist/index359.js +21 -18
  394. package/dist/index359.js.map +1 -1
  395. package/dist/index36.js +10 -10
  396. package/dist/index360.js +5 -5
  397. package/dist/index360.js.map +1 -1
  398. package/dist/index361.js +16 -199
  399. package/dist/index361.js.map +1 -1
  400. package/dist/index362.js +12 -77
  401. package/dist/index362.js.map +1 -1
  402. package/dist/index363.js +4 -123
  403. package/dist/index363.js.map +1 -1
  404. package/dist/index364.js +10 -16
  405. package/dist/index364.js.map +1 -1
  406. package/dist/index365.js +16 -32
  407. package/dist/index365.js.map +1 -1
  408. package/dist/index366.js +5 -73
  409. package/dist/index366.js.map +1 -1
  410. package/dist/index367.js +20 -142
  411. package/dist/index367.js.map +1 -1
  412. package/dist/index368.js +45 -62
  413. package/dist/index368.js.map +1 -1
  414. package/dist/index369.js +17 -49
  415. package/dist/index369.js.map +1 -1
  416. package/dist/index37.js +3 -3
  417. package/dist/index370.js +4 -4
  418. package/dist/index370.js.map +1 -1
  419. package/dist/index371.js +200 -11
  420. package/dist/index371.js.map +1 -1
  421. package/dist/index372.js +76 -20
  422. package/dist/index372.js.map +1 -1
  423. package/dist/index373.js +8 -4
  424. package/dist/index373.js.map +1 -1
  425. package/dist/index374.js +26 -5
  426. package/dist/index374.js.map +1 -1
  427. package/dist/index375.js +27 -4
  428. package/dist/index375.js.map +1 -1
  429. package/dist/index376.js +136 -14
  430. package/dist/index376.js.map +1 -1
  431. package/dist/index377.js +12 -8
  432. package/dist/index377.js.map +1 -1
  433. package/dist/index378.js +226 -5
  434. package/dist/index378.js.map +1 -1
  435. package/dist/index379.js +3 -4
  436. package/dist/index379.js.map +1 -1
  437. package/dist/index38.js +4 -4
  438. package/dist/index380.js +19 -545
  439. package/dist/index380.js.map +1 -1
  440. package/dist/index381.js +77 -46
  441. package/dist/index381.js.map +1 -1
  442. package/dist/index382.js +12 -18
  443. package/dist/index382.js.map +1 -1
  444. package/dist/index383.js +3 -5
  445. package/dist/index383.js.map +1 -1
  446. package/dist/index384.js +71 -7
  447. package/dist/index384.js.map +1 -1
  448. package/dist/index385.js +9 -7
  449. package/dist/index385.js.map +1 -1
  450. package/dist/index386.js +15 -7
  451. package/dist/index386.js.map +1 -1
  452. package/dist/index387.js +4 -11
  453. package/dist/index387.js.map +1 -1
  454. package/dist/index388.js +4 -8
  455. package/dist/index388.js.map +1 -1
  456. package/dist/index389.js +4 -13
  457. package/dist/index389.js.map +1 -1
  458. package/dist/index39.js +5 -5
  459. package/dist/index390.js +16 -3
  460. package/dist/index390.js.map +1 -1
  461. package/dist/index391.js +9 -3
  462. package/dist/index391.js.map +1 -1
  463. package/dist/index392.js +5 -8
  464. package/dist/index392.js.map +1 -1
  465. package/dist/index393.js +5 -26
  466. package/dist/index393.js.map +1 -1
  467. package/dist/index394.js +543 -24
  468. package/dist/index394.js.map +1 -1
  469. package/dist/index395.js +44 -135
  470. package/dist/index395.js.map +1 -1
  471. package/dist/index396.js +16 -11
  472. package/dist/index396.js.map +1 -1
  473. package/dist/index397.js +5 -226
  474. package/dist/index397.js.map +1 -1
  475. package/dist/index398.js +7 -3
  476. package/dist/index398.js.map +1 -1
  477. package/dist/index399.js +6 -19
  478. package/dist/index399.js.map +1 -1
  479. package/dist/index40.js +3 -3
  480. package/dist/index400.js +7 -77
  481. package/dist/index400.js.map +1 -1
  482. package/dist/index401.js +12 -12
  483. package/dist/index401.js.map +1 -1
  484. package/dist/index402.js +8 -3
  485. package/dist/index402.js.map +1 -1
  486. package/dist/index403.js +12 -71
  487. package/dist/index403.js.map +1 -1
  488. package/dist/index404.js +3 -9
  489. package/dist/index404.js.map +1 -1
  490. package/dist/index405.js +3 -16
  491. package/dist/index405.js.map +1 -1
  492. package/dist/index406.js +14 -4
  493. package/dist/index406.js.map +1 -1
  494. package/dist/index407.js +490 -54
  495. package/dist/index407.js.map +1 -1
  496. package/dist/index408.js +5 -68
  497. package/dist/index408.js.map +1 -1
  498. package/dist/index409.js +55 -30
  499. package/dist/index409.js.map +1 -1
  500. package/dist/index41.js +10 -10
  501. package/dist/index410.js +68 -9
  502. package/dist/index410.js.map +1 -1
  503. package/dist/index411.js +26 -148
  504. package/dist/index411.js.map +1 -1
  505. package/dist/index412.js +9 -108
  506. package/dist/index412.js.map +1 -1
  507. package/dist/index413.js +153 -8
  508. package/dist/index413.js.map +1 -1
  509. package/dist/index414.js +108 -2
  510. package/dist/index414.js.map +1 -1
  511. package/dist/index415.js +7 -43
  512. package/dist/index415.js.map +1 -1
  513. package/dist/index416.js +2 -56
  514. package/dist/index416.js.map +1 -1
  515. package/dist/index417.js +43 -7
  516. package/dist/index417.js.map +1 -1
  517. package/dist/index418.js +56 -2
  518. package/dist/index418.js.map +1 -1
  519. package/dist/index419.js +7 -54
  520. package/dist/index419.js.map +1 -1
  521. package/dist/index420.js +2 -56
  522. package/dist/index420.js.map +1 -1
  523. package/dist/index421.js +54 -14
  524. package/dist/index421.js.map +1 -1
  525. package/dist/index422.js +51 -487
  526. package/dist/index422.js.map +1 -1
  527. package/dist/index44.js +1 -1
  528. package/dist/index45.js +2 -2
  529. package/dist/index49.js +34 -34
  530. package/dist/index50.js +29 -29
  531. package/dist/index51.js +2 -2
  532. package/dist/index52.js +12 -12
  533. package/dist/index53.js +4 -4
  534. package/dist/index54.js +1 -1
  535. package/dist/index55.js +22 -22
  536. package/dist/index56.js +5 -5
  537. package/dist/index57.js +5 -5
  538. package/dist/index58.js +8 -8
  539. package/dist/index59.js +5 -5
  540. package/dist/index60.js +17 -17
  541. package/dist/index61.js +5 -5
  542. package/dist/index62.js +3 -3
  543. package/dist/index66.js +1 -1
  544. package/dist/index67.js +1 -1
  545. package/dist/index72.js +6 -2
  546. package/dist/index72.js.map +1 -1
  547. package/dist/index73.js +8 -2
  548. package/dist/index73.js.map +1 -1
  549. package/dist/index74.js +5 -5
  550. package/dist/index74.js.map +1 -1
  551. package/dist/index75.js +2 -8
  552. package/dist/index75.js.map +1 -1
  553. package/dist/index76.js +2 -6
  554. package/dist/index76.js.map +1 -1
  555. package/dist/index80.js +4 -4
  556. package/dist/index85.js +1 -1
  557. package/dist/index86.js +1 -1
  558. package/dist/index93.js +1 -1
  559. package/dist/index94.js +6 -6
  560. package/dist/index96.js +4 -4
  561. package/dist/index98.js +1 -1
  562. package/package.json +1 -1
package/dist/index323.js CHANGED
@@ -1,11 +1,20 @@
1
- import * as t from "react";
2
- const e = /* @__PURE__ */ t.createContext(void 0);
3
- process.env.NODE_ENV !== "production" && (e.displayName = "DirectionContext");
4
- function o() {
5
- return t.useContext(e)?.direction ?? "ltr";
1
+ import * as e from "react";
2
+ import { ownerDocument as m } from "./index309.js";
3
+ import { useScrollLock as p } from "./index348.js";
4
+ import { useIsoLayoutEffect as h } from "./index286.js";
5
+ const S = 20;
6
+ function L(t, c, o, l) {
7
+ const [s, r] = e.useState(!1);
8
+ h(() => {
9
+ if (!t || !c || o == null) {
10
+ r(!1);
11
+ return;
12
+ }
13
+ const u = m(o).documentElement.clientWidth, f = o.offsetWidth;
14
+ r(u > 0 && f > 0 && f >= u - S);
15
+ }, [t, c, o]), p(t && (!c || s), l);
6
16
  }
7
17
  export {
8
- e as DirectionContext,
9
- o as useDirection
18
+ L as useAnchoredPopupScrollLock
10
19
  };
11
20
  //# sourceMappingURL=index323.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index323.js","sources":["../../../node_modules/@base-ui/react/esm/internals/direction-context/DirectionContext.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\n/**\n * @internal\n */\nexport const DirectionContext = /*#__PURE__*/React.createContext(undefined);\nif (process.env.NODE_ENV !== \"production\") DirectionContext.displayName = \"DirectionContext\";\nexport function useDirection() {\n const context = React.useContext(DirectionContext);\n return context?.direction ?? 'ltr';\n}"],"names":["DirectionContext","React","useDirection"],"mappings":";AAMY,MAACA,IAAgC,gBAAAC,EAAM,cAAc,MAAS;AACtE,QAAQ,IAAI,aAAa,iBAAcD,EAAiB,cAAc;AACnE,SAASE,IAAe;AAE7B,SADgBD,EAAM,WAAWD,CAAgB,GACjC,aAAa;AAC/B;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index323.js","sources":["../../../node_modules/@base-ui/react/esm/utils/useAnchoredPopupScrollLock.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { ownerDocument } from '@base-ui/utils/owner';\nimport { useScrollLock } from '@base-ui/utils/useScrollLock';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\n\n// Touch-opened popups normally avoid scroll locking so users can still swipe outside to dismiss.\n// This hook re-enables scroll lock only when the popup is effectively full-width.\n// Treat popups with up to 20px of total horizontal gutter as full-width so common ~10px side\n// padding still locks scroll, since that leaves too little outside space for a reliable swipe.\nconst VIEWPORT_WIDTH_TOLERANCE_PX = 20;\n\n/**\n * Manages scroll lock for anchored popups. For non-touch opens, scroll lock is applied when\n * enabled. For touch opens, scroll lock is applied only when the positioner width is effectively\n * viewport-sized.\n */\nexport function useAnchoredPopupScrollLock(enabled, touchOpen, positionerElement, referenceElement) {\n const [touchOpenShouldLockScroll, setTouchOpenShouldLockScroll] = React.useState(false);\n useIsoLayoutEffect(() => {\n if (!enabled || !touchOpen || positionerElement == null) {\n setTouchOpenShouldLockScroll(false);\n return;\n }\n const viewportWidth = ownerDocument(positionerElement).documentElement.clientWidth;\n const popupWidth = positionerElement.offsetWidth;\n setTouchOpenShouldLockScroll(viewportWidth > 0 && popupWidth > 0 && popupWidth >= viewportWidth - VIEWPORT_WIDTH_TOLERANCE_PX);\n }, [enabled, touchOpen, positionerElement]);\n useScrollLock(enabled && (!touchOpen || touchOpenShouldLockScroll), referenceElement);\n}"],"names":["VIEWPORT_WIDTH_TOLERANCE_PX","useAnchoredPopupScrollLock","enabled","touchOpen","positionerElement","referenceElement","touchOpenShouldLockScroll","setTouchOpenShouldLockScroll","React","useIsoLayoutEffect","viewportWidth","ownerDocument","popupWidth","useScrollLock"],"mappings":";;;;AAWA,MAAMA,IAA8B;AAO7B,SAASC,EAA2BC,GAASC,GAAWC,GAAmBC,GAAkB;AAClG,QAAM,CAACC,GAA2BC,CAA4B,IAAIC,EAAM,SAAS,EAAK;AACtF,EAAAC,EAAmB,MAAM;AACvB,QAAI,CAACP,KAAW,CAACC,KAAaC,KAAqB,MAAM;AACvD,MAAAG,EAA6B,EAAK;AAClC;AAAA,IACF;AACA,UAAMG,IAAgBC,EAAcP,CAAiB,EAAE,gBAAgB,aACjEQ,IAAaR,EAAkB;AACrC,IAAAG,EAA6BG,IAAgB,KAAKE,IAAa,KAAKA,KAAcF,IAAgBV,CAA2B;AAAA,EAC/H,GAAG,CAACE,GAASC,GAAWC,CAAiB,CAAC,GAC1CS,EAAcX,MAAY,CAACC,KAAaG,IAA4BD,CAAgB;AACtF;","x_google_ignoreList":[0]}
package/dist/index324.js CHANGED
@@ -1,137 +1,129 @@
1
- function u() {
2
- return typeof window < "u";
3
- }
4
- function a(t) {
5
- return m(t) ? (t.nodeName || "").toLowerCase() : "#document";
1
+ const S = ["top", "right", "bottom", "left"], m = Math.min, h = Math.max, w = Math.round, C = Math.floor, j = (t) => ({
2
+ x: t,
3
+ y: t
4
+ }), p = {
5
+ left: "right",
6
+ right: "left",
7
+ bottom: "top",
8
+ top: "bottom"
9
+ };
10
+ function L(t, n, e) {
11
+ return h(t, m(n, e));
6
12
  }
7
- function i(t) {
8
- var n;
9
- return (t == null || (n = t.ownerDocument) == null ? void 0 : n.defaultView) || window;
13
+ function E(t, n) {
14
+ return typeof t == "function" ? t(n) : t;
10
15
  }
11
- function L(t) {
12
- var n;
13
- return (n = (m(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : n.documentElement;
16
+ function g(t) {
17
+ return t.split("-")[0];
14
18
  }
15
- function m(t) {
16
- return u() ? t instanceof Node || t instanceof i(t).Node : !1;
19
+ function a(t) {
20
+ return t.split("-")[1];
17
21
  }
18
- function h(t) {
19
- return u() ? t instanceof Element || t instanceof i(t).Element : !1;
22
+ function x(t) {
23
+ return t === "x" ? "y" : "x";
20
24
  }
21
- function g(t) {
22
- return u() ? t instanceof HTMLElement || t instanceof i(t).HTMLElement : !1;
25
+ function b(t) {
26
+ return t === "y" ? "height" : "width";
23
27
  }
24
- function p(t) {
25
- return !u() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof i(t).ShadowRoot;
28
+ function d(t) {
29
+ const n = t[0];
30
+ return n === "t" || n === "b" ? "y" : "x";
26
31
  }
27
- function y(t) {
28
- const {
29
- overflow: n,
30
- overflowX: r,
31
- overflowY: c,
32
- display: e
33
- } = b(t);
34
- return /auto|scroll|overlay|hidden|clip/.test(n + c + r) && e !== "inline" && e !== "contents";
32
+ function A(t) {
33
+ return x(d(t));
35
34
  }
36
- function _(t) {
37
- return /^(table|td|th)$/.test(a(t));
35
+ function R(t, n, e) {
36
+ e === void 0 && (e = !1);
37
+ const r = a(t), i = A(t), o = b(i);
38
+ let c = i === "x" ? r === (e ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
39
+ return n.reference[o] > n.floating[o] && (c = f(c)), [c, f(c)];
38
40
  }
39
41
  function T(t) {
40
- try {
41
- if (t.matches(":popover-open"))
42
- return !0;
43
- } catch {
44
- }
45
- try {
46
- return t.matches(":modal");
47
- } catch {
48
- return !1;
49
- }
50
- }
51
- const v = /transform|translate|scale|rotate|perspective|filter/, C = /paint|layout|strict|content/, o = (t) => !!t && t !== "none";
52
- let s;
53
- function D(t) {
54
- const n = h(t) ? b(t) : t;
55
- return o(n.transform) || o(n.translate) || o(n.scale) || o(n.rotate) || o(n.perspective) || !R() && (o(n.backdropFilter) || o(n.filter)) || v.test(n.willChange || "") || C.test(n.contain || "");
56
- }
57
- function W(t) {
58
- let n = f(t);
59
- for (; g(n) && !N(n); ) {
60
- if (D(n))
61
- return n;
62
- if (T(n))
63
- return null;
64
- n = f(n);
42
+ const n = f(t);
43
+ return [s(t), n, s(n)];
44
+ }
45
+ function s(t) {
46
+ return t.includes("start") ? t.replace("start", "end") : t.replace("end", "start");
47
+ }
48
+ const u = ["left", "right"], l = ["right", "left"], P = ["top", "bottom"], y = ["bottom", "top"];
49
+ function O(t, n, e) {
50
+ switch (t) {
51
+ case "top":
52
+ case "bottom":
53
+ return e ? n ? l : u : n ? u : l;
54
+ case "left":
55
+ case "right":
56
+ return n ? P : y;
57
+ default:
58
+ return [];
65
59
  }
66
- return null;
67
- }
68
- function R() {
69
- return s == null && (s = typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none")), s;
70
- }
71
- function N(t) {
72
- return /^(html|body|#document)$/.test(a(t));
73
60
  }
74
- function b(t) {
75
- return i(t).getComputedStyle(t);
76
- }
77
- function $(t) {
78
- return h(t) ? {
79
- scrollLeft: t.scrollLeft,
80
- scrollTop: t.scrollTop
81
- } : {
82
- scrollLeft: t.scrollX,
83
- scrollTop: t.scrollY
84
- };
61
+ function k(t, n, e, r) {
62
+ const i = a(t);
63
+ let o = O(g(t), e === "start", r);
64
+ return i && (o = o.map((c) => c + "-" + i), n && (o = o.concat(o.map(s)))), o;
85
65
  }
86
66
  function f(t) {
87
- if (a(t) === "html")
88
- return t;
89
- const n = (
90
- // Step into the shadow DOM of the parent of a slotted node.
91
- t.assignedSlot || // DOM Element detected.
92
- t.parentNode || // ShadowRoot detected.
93
- p(t) && t.host || // Fallback.
94
- L(t)
95
- );
96
- return p(n) ? n.host : n;
97
- }
98
- function S(t) {
99
- const n = f(t);
100
- return N(n) ? t.ownerDocument ? t.ownerDocument.body : t.body : g(n) && y(n) ? n : S(n);
67
+ const n = g(t);
68
+ return p[n] + t.slice(n.length);
69
+ }
70
+ function M(t) {
71
+ return {
72
+ top: 0,
73
+ right: 0,
74
+ bottom: 0,
75
+ left: 0,
76
+ ...t
77
+ };
101
78
  }
102
- function w(t, n, r) {
103
- var c;
104
- n === void 0 && (n = []), r === void 0 && (r = !0);
105
- const e = S(t), E = e === ((c = t.ownerDocument) == null ? void 0 : c.body), l = i(e);
106
- if (E) {
107
- const d = k(l);
108
- return n.concat(l, l.visualViewport || [], y(e) ? e : [], d && r ? w(d) : []);
109
- } else
110
- return n.concat(e, w(e, [], r));
79
+ function q(t) {
80
+ return typeof t != "number" ? M(t) : {
81
+ top: t,
82
+ right: t,
83
+ bottom: t,
84
+ left: t
85
+ };
111
86
  }
112
- function k(t) {
113
- return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
87
+ function z(t) {
88
+ const {
89
+ x: n,
90
+ y: e,
91
+ width: r,
92
+ height: i
93
+ } = t;
94
+ return {
95
+ width: r,
96
+ height: i,
97
+ top: e,
98
+ left: n,
99
+ right: n + r,
100
+ bottom: e + i,
101
+ x: n,
102
+ y: e
103
+ };
114
104
  }
115
105
  export {
116
- b as getComputedStyle,
117
- W as getContainingBlock,
118
- L as getDocumentElement,
119
- k as getFrameElement,
120
- S as getNearestOverflowAncestor,
121
- a as getNodeName,
122
- $ as getNodeScroll,
123
- w as getOverflowAncestors,
124
- f as getParentNode,
125
- i as getWindow,
126
- D as isContainingBlock,
127
- h as isElement,
128
- g as isHTMLElement,
129
- N as isLastTraversableNode,
130
- m as isNode,
131
- y as isOverflowElement,
132
- p as isShadowRoot,
133
- _ as isTableElement,
134
- T as isTopLayer,
135
- R as isWebKit
106
+ L as clamp,
107
+ j as createCoords,
108
+ E as evaluate,
109
+ M as expandPaddingObject,
110
+ C as floor,
111
+ a as getAlignment,
112
+ A as getAlignmentAxis,
113
+ R as getAlignmentSides,
114
+ b as getAxisLength,
115
+ T as getExpandedPlacements,
116
+ s as getOppositeAlignmentPlacement,
117
+ x as getOppositeAxis,
118
+ k as getOppositeAxisPlacements,
119
+ f as getOppositePlacement,
120
+ q as getPaddingObject,
121
+ g as getSide,
122
+ d as getSideAxis,
123
+ h as max,
124
+ m as min,
125
+ z as rectToClientRect,
126
+ w as round,
127
+ S as sides
136
128
  };
137
129
  //# sourceMappingURL=index324.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index324.js","sources":["../../../node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs"],"sourcesContent":["function hasWindow() {\n return typeof window !== 'undefined';\n}\nfunction getNodeName(node) {\n if (isNode(node)) {\n return (node.nodeName || '').toLowerCase();\n }\n // Mocked nodes in testing environments may not be instances of Node. By\n // returning `#document` an infinite loop won't occur.\n // https://github.com/floating-ui/floating-ui/issues/2317\n return '#document';\n}\nfunction getWindow(node) {\n var _node$ownerDocument;\n return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;\n}\nfunction getDocumentElement(node) {\n var _ref;\n return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;\n}\nfunction isNode(value) {\n if (!hasWindow()) {\n return false;\n }\n return value instanceof Node || value instanceof getWindow(value).Node;\n}\nfunction isElement(value) {\n if (!hasWindow()) {\n return false;\n }\n return value instanceof Element || value instanceof getWindow(value).Element;\n}\nfunction isHTMLElement(value) {\n if (!hasWindow()) {\n return false;\n }\n return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;\n}\nfunction isShadowRoot(value) {\n if (!hasWindow() || typeof ShadowRoot === 'undefined') {\n return false;\n }\n return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;\n}\nfunction isOverflowElement(element) {\n const {\n overflow,\n overflowX,\n overflowY,\n display\n } = getComputedStyle(element);\n return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && display !== 'inline' && display !== 'contents';\n}\nfunction isTableElement(element) {\n return /^(table|td|th)$/.test(getNodeName(element));\n}\nfunction isTopLayer(element) {\n try {\n if (element.matches(':popover-open')) {\n return true;\n }\n } catch (_e) {\n // no-op\n }\n try {\n return element.matches(':modal');\n } catch (_e) {\n return false;\n }\n}\nconst willChangeRe = /transform|translate|scale|rotate|perspective|filter/;\nconst containRe = /paint|layout|strict|content/;\nconst isNotNone = value => !!value && value !== 'none';\nlet isWebKitValue;\nfunction isContainingBlock(elementOrCss) {\n const css = isElement(elementOrCss) ? getComputedStyle(elementOrCss) : elementOrCss;\n\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n // https://drafts.csswg.org/css-transforms-2/#individual-transforms\n return isNotNone(css.transform) || isNotNone(css.translate) || isNotNone(css.scale) || isNotNone(css.rotate) || isNotNone(css.perspective) || !isWebKit() && (isNotNone(css.backdropFilter) || isNotNone(css.filter)) || willChangeRe.test(css.willChange || '') || containRe.test(css.contain || '');\n}\nfunction getContainingBlock(element) {\n let currentNode = getParentNode(element);\n while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {\n if (isContainingBlock(currentNode)) {\n return currentNode;\n } else if (isTopLayer(currentNode)) {\n return null;\n }\n currentNode = getParentNode(currentNode);\n }\n return null;\n}\nfunction isWebKit() {\n if (isWebKitValue == null) {\n isWebKitValue = typeof CSS !== 'undefined' && CSS.supports && CSS.supports('-webkit-backdrop-filter', 'none');\n }\n return isWebKitValue;\n}\nfunction isLastTraversableNode(node) {\n return /^(html|body|#document)$/.test(getNodeName(node));\n}\nfunction getComputedStyle(element) {\n return getWindow(element).getComputedStyle(element);\n}\nfunction getNodeScroll(element) {\n if (isElement(element)) {\n return {\n scrollLeft: element.scrollLeft,\n scrollTop: element.scrollTop\n };\n }\n return {\n scrollLeft: element.scrollX,\n scrollTop: element.scrollY\n };\n}\nfunction getParentNode(node) {\n if (getNodeName(node) === 'html') {\n return node;\n }\n const result =\n // Step into the shadow DOM of the parent of a slotted node.\n node.assignedSlot ||\n // DOM Element detected.\n node.parentNode ||\n // ShadowRoot detected.\n isShadowRoot(node) && node.host ||\n // Fallback.\n getDocumentElement(node);\n return isShadowRoot(result) ? result.host : result;\n}\nfunction getNearestOverflowAncestor(node) {\n const parentNode = getParentNode(node);\n if (isLastTraversableNode(parentNode)) {\n return node.ownerDocument ? node.ownerDocument.body : node.body;\n }\n if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {\n return parentNode;\n }\n return getNearestOverflowAncestor(parentNode);\n}\nfunction getOverflowAncestors(node, list, traverseIframes) {\n var _node$ownerDocument2;\n if (list === void 0) {\n list = [];\n }\n if (traverseIframes === void 0) {\n traverseIframes = true;\n }\n const scrollableAncestor = getNearestOverflowAncestor(node);\n const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);\n const win = getWindow(scrollableAncestor);\n if (isBody) {\n const frameElement = getFrameElement(win);\n return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);\n } else {\n return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));\n }\n}\nfunction getFrameElement(win) {\n return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;\n}\n\nexport { getComputedStyle, getContainingBlock, getDocumentElement, getFrameElement, getNearestOverflowAncestor, getNodeName, getNodeScroll, getOverflowAncestors, getParentNode, getWindow, isContainingBlock, isElement, isHTMLElement, isLastTraversableNode, isNode, isOverflowElement, isShadowRoot, isTableElement, isTopLayer, isWebKit };\n"],"names":["hasWindow","getNodeName","node","isNode","getWindow","_node$ownerDocument","getDocumentElement","_ref","value","isElement","isHTMLElement","isShadowRoot","isOverflowElement","element","overflow","overflowX","overflowY","display","getComputedStyle","isTableElement","isTopLayer","willChangeRe","containRe","isNotNone","isWebKitValue","isContainingBlock","elementOrCss","css","isWebKit","getContainingBlock","currentNode","getParentNode","isLastTraversableNode","getNodeScroll","result","getNearestOverflowAncestor","parentNode","getOverflowAncestors","list","traverseIframes","_node$ownerDocument2","scrollableAncestor","isBody","win","frameElement","getFrameElement"],"mappings":"AAAA,SAASA,IAAY;AACnB,SAAO,OAAO,SAAW;AAC3B;AACA,SAASC,EAAYC,GAAM;AACzB,SAAIC,EAAOD,CAAI,KACLA,EAAK,YAAY,IAAI,YAAW,IAKnC;AACT;AACA,SAASE,EAAUF,GAAM;AACvB,MAAIG;AACJ,UAAQH,KAAQ,SAASG,IAAsBH,EAAK,kBAAkB,OAAO,SAASG,EAAoB,gBAAgB;AAC5H;AACA,SAASC,EAAmBJ,GAAM;AAChC,MAAIK;AACJ,UAAQA,KAAQJ,EAAOD,CAAI,IAAIA,EAAK,gBAAgBA,EAAK,aAAa,OAAO,aAAa,OAAO,SAASK,EAAK;AACjH;AACA,SAASJ,EAAOK,GAAO;AACrB,SAAKR,EAAS,IAGPQ,aAAiB,QAAQA,aAAiBJ,EAAUI,CAAK,EAAE,OAFzD;AAGX;AACA,SAASC,EAAUD,GAAO;AACxB,SAAKR,EAAS,IAGPQ,aAAiB,WAAWA,aAAiBJ,EAAUI,CAAK,EAAE,UAF5D;AAGX;AACA,SAASE,EAAcF,GAAO;AAC5B,SAAKR,EAAS,IAGPQ,aAAiB,eAAeA,aAAiBJ,EAAUI,CAAK,EAAE,cAFhE;AAGX;AACA,SAASG,EAAaH,GAAO;AAC3B,SAAI,CAACR,EAAS,KAAM,OAAO,aAAe,MACjC,KAEFQ,aAAiB,cAAcA,aAAiBJ,EAAUI,CAAK,EAAE;AAC1E;AACA,SAASI,EAAkBC,GAAS;AAClC,QAAM;AAAA,IACJ,UAAAC;AAAA,IACA,WAAAC;AAAA,IACA,WAAAC;AAAA,IACA,SAAAC;AAAA,EACJ,IAAMC,EAAi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,EAAkB6B,CAAkB,IAAIA,IAAqB,CAAA,GAAIG,KAAgBL,IAAkBF,EAAqBO,CAAY,IAAI,EAAE;AAAA,EAC9L;AACE,WAAON,EAAK,OAAOG,GAAoBJ,EAAqBI,GAAoB,CAAA,GAAIF,CAAe,CAAC;AAExG;AACA,SAASM,EAAgBF,GAAK;AAC5B,SAAOA,EAAI,UAAU,OAAO,eAAeA,EAAI,MAAM,IAAIA,EAAI,eAAe;AAC9E;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index324.js","sources":["../../../node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs"],"sourcesContent":["/**\n * Custom positioning reference element.\n * @see https://floating-ui.com/docs/virtual-elements\n */\n\nconst sides = ['top', 'right', 'bottom', 'left'];\nconst alignments = ['start', 'end'];\nconst placements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + \"-\" + alignments[0], side + \"-\" + alignments[1]), []);\nconst min = Math.min;\nconst max = Math.max;\nconst round = Math.round;\nconst floor = Math.floor;\nconst createCoords = v => ({\n x: v,\n y: v\n});\nconst oppositeSideMap = {\n left: 'right',\n right: 'left',\n bottom: 'top',\n top: 'bottom'\n};\nfunction clamp(start, value, end) {\n return max(start, min(value, end));\n}\nfunction evaluate(value, param) {\n return typeof value === 'function' ? value(param) : value;\n}\nfunction getSide(placement) {\n return placement.split('-')[0];\n}\nfunction getAlignment(placement) {\n return placement.split('-')[1];\n}\nfunction getOppositeAxis(axis) {\n return axis === 'x' ? 'y' : 'x';\n}\nfunction getAxisLength(axis) {\n return axis === 'y' ? 'height' : 'width';\n}\nfunction getSideAxis(placement) {\n const firstChar = placement[0];\n return firstChar === 't' || firstChar === 'b' ? 'y' : 'x';\n}\nfunction getAlignmentAxis(placement) {\n return getOppositeAxis(getSideAxis(placement));\n}\nfunction getAlignmentSides(placement, rects, rtl) {\n if (rtl === void 0) {\n rtl = false;\n }\n const alignment = getAlignment(placement);\n const alignmentAxis = getAlignmentAxis(placement);\n const length = getAxisLength(alignmentAxis);\n let mainAlignmentSide = alignmentAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';\n if (rects.reference[length] > rects.floating[length]) {\n mainAlignmentSide = getOppositePlacement(mainAlignmentSide);\n }\n return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];\n}\nfunction getExpandedPlacements(placement) {\n const oppositePlacement = getOppositePlacement(placement);\n return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];\n}\nfunction getOppositeAlignmentPlacement(placement) {\n return placement.includes('start') ? placement.replace('start', 'end') : placement.replace('end', 'start');\n}\nconst lrPlacement = ['left', 'right'];\nconst rlPlacement = ['right', 'left'];\nconst tbPlacement = ['top', 'bottom'];\nconst btPlacement = ['bottom', 'top'];\nfunction getSideList(side, isStart, rtl) {\n switch (side) {\n case 'top':\n case 'bottom':\n if (rtl) return isStart ? rlPlacement : lrPlacement;\n return isStart ? lrPlacement : rlPlacement;\n case 'left':\n case 'right':\n return isStart ? tbPlacement : btPlacement;\n default:\n return [];\n }\n}\nfunction getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {\n const alignment = getAlignment(placement);\n let list = getSideList(getSide(placement), direction === 'start', rtl);\n if (alignment) {\n list = list.map(side => side + \"-\" + alignment);\n if (flipAlignment) {\n list = list.concat(list.map(getOppositeAlignmentPlacement));\n }\n }\n return list;\n}\nfunction getOppositePlacement(placement) {\n const side = getSide(placement);\n return oppositeSideMap[side] + placement.slice(side.length);\n}\nfunction expandPaddingObject(padding) {\n return {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n ...padding\n };\n}\nfunction getPaddingObject(padding) {\n return typeof padding !== 'number' ? expandPaddingObject(padding) : {\n top: padding,\n right: padding,\n bottom: padding,\n left: padding\n };\n}\nfunction rectToClientRect(rect) {\n const {\n x,\n y,\n width,\n height\n } = rect;\n return {\n width,\n height,\n top: y,\n left: x,\n right: x + width,\n bottom: y + height,\n x,\n y\n };\n}\n\nexport { alignments, clamp, createCoords, evaluate, expandPaddingObject, floor, getAlignment, getAlignmentAxis, getAlignmentSides, getAxisLength, getExpandedPlacements, getOppositeAlignmentPlacement, getOppositeAxis, getOppositeAxisPlacements, getOppositePlacement, getPaddingObject, getSide, getSideAxis, max, min, placements, rectToClientRect, round, sides };\n"],"names":["sides","min","max","round","floor","createCoords","v","oppositeSideMap","clamp","start","value","end","evaluate","param","getSide","placement","getAlignment","getOppositeAxis","axis","getAxisLength","getSideAxis","firstChar","getAlignmentAxis","getAlignmentSides","rects","rtl","alignment","alignmentAxis","length","mainAlignmentSide","getOppositePlacement","getExpandedPlacements","oppositePlacement","getOppositeAlignmentPlacement","lrPlacement","rlPlacement","tbPlacement","btPlacement","getSideList","side","isStart","getOppositeAxisPlacements","flipAlignment","direction","list","expandPaddingObject","padding","getPaddingObject","rectToClientRect","rect","x","y","width","height"],"mappings":"AAKK,MAACA,IAAQ,CAAC,OAAO,SAAS,UAAU,MAAM,GAGzCC,IAAM,KAAK,KACXC,IAAM,KAAK,KACXC,IAAQ,KAAK,OACbC,IAAQ,KAAK,OACbC,IAAe,CAAAC,OAAM;AAAA,EACzB,GAAGA;AAAA,EACH,GAAGA;AACL,IACMC,IAAkB;AAAA,EACtB,MAAM;AAAA,EACN,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,KAAK;AACP;AACA,SAASC,EAAMC,GAAOC,GAAOC,GAAK;AAChC,SAAOT,EAAIO,GAAOR,EAAIS,GAAOC,CAAG,CAAC;AACnC;AACA,SAASC,EAASF,GAAOG,GAAO;AAC9B,SAAO,OAAOH,KAAU,aAAaA,EAAMG,CAAK,IAAIH;AACtD;AACA,SAASI,EAAQC,GAAW;AAC1B,SAAOA,EAAU,MAAM,GAAG,EAAE,CAAC;AAC/B;AACA,SAASC,EAAaD,GAAW;AAC/B,SAAOA,EAAU,MAAM,GAAG,EAAE,CAAC;AAC/B;AACA,SAASE,EAAgBC,GAAM;AAC7B,S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- import * as p from "react";
2
- import { isHTMLElement as G, getNodeName as We, getWindow as _e } from "./index324.js";
3
- import { addEventListener as I } from "./index313.js";
4
- import { mergeCleanups as Te } from "./index392.js";
5
- import { useMergedRefs as Fe } from "./index257.js";
6
- import { useValueAsRef as te } from "./index264.js";
7
- import { useStableCallback as ne } from "./index263.js";
8
- import { useIsoLayoutEffect as _ } from "./index262.js";
9
- import { useTimeout as ye } from "./index291.js";
10
- import { isWebKit as Ue } from "./index314.js";
11
- import { useAnimationFrame as $e } from "./index315.js";
12
- import { ownerDocument as O } from "./index290.js";
13
- import { FocusGuard as xe } from "./index393.js";
14
- import { isTypeableCombobox as Ie, getFloatingFocusElement as he, isTypeableElement as Be } from "./index299.js";
15
- import { isVirtualClick as ze, isVirtualPointerEvent as Je, stopEvent as Qe } from "./index394.js";
16
- import { isOutsideEvent as ve, getNextTabbable as Xe, getPreviousTabbable as Ye, tabbable as Se, isTabbable as ue, focusable as Ze } from "./index395.js";
17
- import { getNodeAncestors as Ce, getNodeChildren as ke } from "./index396.js";
18
- import { isElementVisible as et } from "./index397.js";
19
- import { createChangeEventDetails as tt } from "./index272.js";
20
- import { createAttribute as Ae } from "./index398.js";
21
- import { enqueueFocus as re } from "./index399.js";
22
- import { markOthers as Oe } from "./index400.js";
23
- import { usePortalContext as nt } from "./index302.js";
24
- import { useFloatingTree as rt } from "./index401.js";
25
- import { CLICK_TRIGGER_IDENTIFIER as ot } from "./index308.js";
26
- import { resolveRef as w } from "./index402.js";
27
- import { j as oe } from "./index30.js";
28
- import { activeElement as V, contains as a, getTarget as B } from "./index300.js";
29
- import { triggerHover as st, outsidePress as ut, focusOut as it } from "./index289.js";
30
- function ct(t, h) {
31
- const D = _e(B(t));
32
- return t instanceof D.KeyboardEvent ? "keyboard" : t instanceof D.FocusEvent ? h || "keyboard" : "pointerType" in t ? t.pointerType || "keyboard" : "touches" in t ? "touch" : t instanceof D.MouseEvent ? h || (t.detail === 0 ? "keyboard" : "mouse") : "";
33
- }
34
- const we = 20;
35
- let N = [];
36
- function ie() {
37
- N = N.filter((t) => t.deref()?.isConnected);
38
- }
39
- function ft(t) {
40
- ie(), t && We(t) !== "body" && (N.push(new WeakRef(t)), N.length > we && (N = N.slice(-we)));
41
- }
42
- function se() {
43
- return ie(), N[N.length - 1]?.deref();
44
- }
45
- function at(t) {
46
- return t ? ue(t) ? t : Se(t)[0] || t : null;
47
- }
48
- function Ne(t, h) {
49
- if (t.hasAttribute("tabindex") && !t.hasAttribute("data-tabindex") || !h.current.includes("floating") && !t.getAttribute("role")?.includes("dialog"))
50
- return;
51
- const c = Ze(t).filter((L) => {
52
- const j = L.getAttribute("data-tabindex") || "";
53
- return ue(L) || L.hasAttribute("data-tabindex") && !j.startsWith("-");
54
- }), q = t.getAttribute("tabindex");
55
- h.current.includes("floating") || c.length === 0 ? q !== "0" && t.setAttribute("tabindex", "0") : (q !== "-1" || t.hasAttribute("data-tabindex") && t.getAttribute("data-tabindex") !== "-1") && (t.setAttribute("tabindex", "-1"), t.setAttribute("data-tabindex", "-1"));
56
- }
57
- function Lt(t) {
58
- const {
59
- context: h,
60
- children: D,
61
- disabled: c = !1,
62
- initialFocus: q = !0,
63
- returnFocus: L = !0,
64
- restoreFocus: j = !1,
65
- modal: E = !0,
66
- closeOnFocusOut: K = !0,
67
- openInteractionType: De = "",
68
- nextFocusableElement: H,
69
- previousFocusableElement: W,
70
- beforeContentFocusGuardRef: Pe,
71
- externalTree: Me,
72
- getInsideElements: Ge
73
- } = t, v = "rootStore" in h ? h.rootStore : h, T = v.useState("open"), f = v.useState("domReferenceElement"), i = v.useState("floatingElement"), {
74
- events: z,
75
- dataRef: S
76
- } = v.context, P = ne(() => S.current.floatingContext?.nodeId), ce = q === !1, C = Ie(f) && ce, M = p.useRef(["content"]), fe = te(q), J = te(L), ae = te(De), F = rt(Me), u = nt(), y = p.useRef(!1), U = p.useRef(!1), Q = p.useRef(!1), le = p.useRef(null), de = p.useRef(""), X = p.useRef(""), Y = p.useRef(null), Z = p.useRef(null), Ve = Fe(Y, Pe, u?.beforeInsideRef), qe = Fe(Z, u?.afterInsideRef), me = ye(), be = ye(), pe = $e(), Le = u != null, o = he(i), k = ne((n = o) => n ? Se(n) : []), A = ne(() => Ge?.().filter((n) => n != null) ?? []);
77
- p.useEffect(() => {
78
- if (c || !E)
79
- return;
80
- function n(m) {
81
- m.key === "Tab" && a(o, V(O(o))) && k().length === 0 && !C && Qe(m);
82
- }
83
- const d = O(o);
84
- return I(d, "keydown", n);
85
- }, [c, f, o, E, M, C, k]), p.useEffect(() => {
86
- if (c || !T)
87
- return;
88
- const n = O(o);
89
- function d() {
90
- Q.current = !1;
91
- }
92
- function m(s) {
93
- const r = B(s), l = A(), e = a(i, r) || a(f, r) || a(u?.portalNode, r) || l.some((g) => g === r || a(g, r));
94
- Q.current = !e, X.current = s.pointerType || "keyboard", r?.closest(`[${ot}]`) && (U.current = !0);
95
- }
96
- function R() {
97
- X.current = "keyboard";
98
- }
99
- return Te(I(n, "pointerdown", m, !0), I(n, "pointerup", d, !0), I(n, "pointercancel", d, !0), I(n, "keydown", R, !0));
100
- }, [c, i, f, o, T, u, A]), p.useEffect(() => {
101
- if (c || !K)
102
- return;
103
- const n = O(o);
104
- function d() {
105
- U.current = !0, be.start(0, () => {
106
- U.current = !1;
107
- });
108
- }
109
- function m(l) {
110
- const e = B(l);
111
- ue(e) && (le.current = e);
112
- }
113
- function R(l) {
114
- const e = l.relatedTarget, g = l.currentTarget, x = B(l);
115
- queueMicrotask(() => {
116
- const $ = P(), ge = v.context.triggerElements, je = A(), Ke = e?.hasAttribute(Ae("focus-guard")) && [Y.current, Z.current, u?.beforeInsideRef.current, u?.afterInsideRef.current, u?.beforeOutsideRef.current, u?.afterOutsideRef.current, w(W), w(H)].includes(e), He = !(a(f, e) || a(i, e) || a(e, i) || a(u?.portalNode, e) || je.some((b) => b === e || a(b, e)) || e != null && ge.hasElement(e) || ge.hasMatchingElement((b) => a(b, e)) || Ke || F && (ke(F.nodesRef.current, $).find((b) => a(b.context?.elements.floating, e) || a(b.context?.elements.domReference, e)) || Ce(F.nodesRef.current, $).find((b) => [b.context?.elements.floating, he(b.context?.elements.floating)].includes(e) || b.context?.elements.domReference === e)));
117
- if (g === f && o && Ne(o, M), j && g !== f && !et(x) && V(n) === n.body) {
118
- if (G(o) && (o.focus(), j === "popup")) {
119
- pe.request(() => {
120
- o.focus();
121
- });
122
- return;
123
- }
124
- const b = k(), ee = le.current, Ee = (ee && b.includes(ee) ? ee : null) || b[b.length - 1] || o;
125
- G(Ee) && Ee.focus();
126
- }
127
- if (S.current.insideReactTree) {
128
- S.current.insideReactTree = !1;
129
- return;
130
- }
131
- (C || !E) && e && He && !U.current && // Fix React 18 Strict Mode returnFocus due to double rendering.
132
- // For an "untrapped" typeable combobox (input role=combobox with
133
- // initialFocus=false), re-opening the popup and tabbing out should still close it even
134
- // when the previously focused element (e.g. the next tabbable outside the popup) is
135
- // focused again. Otherwise, the popup remains open on the second Tab sequence:
136
- // click input -> Tab (closes) -> click input -> Tab.
137
- // Allow closing when `isUntrappedTypeableCombobox` regardless of the previously focused element.
138
- (C || e !== se()) && (y.current = !0, v.setOpen(!1, tt(it, l)));
139
- });
140
- }
141
- function s() {
142
- Q.current || (S.current.insideReactTree = !0, me.start(0, () => {
143
- S.current.insideReactTree = !1;
144
- }));
145
- }
146
- const r = G(f) ? f : null;
147
- if (!(!i && !r))
148
- return Te(r && I(r, "focusout", R), r && I(r, "pointerdown", d), i && I(i, "focusin", m), i && I(i, "focusout", R), i && u && I(i, "focusout", s, !0));
149
- }, [c, f, i, o, E, F, u, v, K, j, k, C, P, M, S, me, be, pe, H, W, A]), p.useEffect(() => {
150
- if (c || !i || !T)
151
- return;
152
- const n = Array.from(u?.portalNode?.querySelectorAll(`[${Ae("portal")}]`) || []), m = (F ? Ce(F.nodesRef.current, P()) : []).find((g) => Ie(g.context?.elements.domReference || null))?.context?.elements.domReference, s = [...[i, ...n, Y.current, Z.current, u?.beforeOutsideRef.current, u?.afterOutsideRef.current, ...A()], m, w(W), w(H), C ? f : null].filter((g) => g != null), r = Oe(s, {
153
- ariaHidden: E || C,
154
- mark: !1
155
- }), l = [i, ...n].filter((g) => g != null), e = Oe(l);
156
- return () => {
157
- e(), r();
158
- };
159
- }, [T, c, f, i, E, M, u, C, F, P, H, W, A]), _(() => {
160
- if (!T || c || !G(o))
161
- return;
162
- const n = O(o), d = V(n);
163
- queueMicrotask(() => {
164
- const m = fe.current, R = typeof m == "function" ? m(ae.current || "") : m;
165
- if (R === void 0 || R === !1 || a(o, d))
166
- return;
167
- let r = null;
168
- const l = () => (r == null && (r = k(o)), r[0] || o);
169
- let e;
170
- R === !0 || R === null ? e = l() : e = w(R), e = e || l(), re(e, {
171
- preventScroll: e === o
172
- });
173
- });
174
- }, [c, T, o, ce, k, fe, ae]), _(() => {
175
- if (c || !o)
176
- return;
177
- const n = O(o), d = V(n);
178
- ft(d);
179
- function m(s) {
180
- if (s.open || (de.current = ct(s.nativeEvent, X.current)), s.reason === st && s.nativeEvent.type === "mouseleave" && (y.current = !0), s.reason === ut)
181
- if (s.nested)
182
- y.current = !1;
183
- else if (ze(s.nativeEvent) || Je(s.nativeEvent))
184
- y.current = !1;
185
- else {
186
- let r = !1;
187
- O(o).createElement("div").focus({
188
- get preventScroll() {
189
- return r = !0, !1;
190
- }
191
- }), r ? y.current = !1 : y.current = !0;
192
- }
193
- }
194
- z.on("openchange", m);
195
- function R() {
196
- const s = J.current;
197
- let r = typeof s == "function" ? s(de.current) : s;
198
- if (r === void 0 || r === !1)
199
- return null;
200
- if (r === null && (r = !0), typeof r == "boolean") {
201
- const e = f || se();
202
- return e && e.isConnected ? e : null;
203
- }
204
- const l = f || se();
205
- return w(r) || l || null;
206
- }
207
- return () => {
208
- z.off("openchange", m);
209
- const s = V(n), r = A(), l = a(i, s) || r.some((x) => x === s || a(x, s)) || F && ke(F.nodesRef.current, P(), !1).some((x) => a(x.context?.elements.floating, s)), e = J.current, g = R();
210
- queueMicrotask(() => {
211
- const x = at(g), $ = typeof e != "boolean";
212
- e && !y.current && G(x) && // If the focus moved somewhere else after mount, avoid returning focus
213
- // since it likely entered a different element which should be
214
- // respected: https://github.com/floating-ui/floating-ui/issues/2607
215
- (!(!$ && x !== s && s !== n.body) || l) && x.focus({
216
- preventScroll: !0
217
- }), y.current = !1;
218
- });
219
- };
220
- }, [c, i, o, J, S, z, F, f, P, A]), _(() => {
221
- if (!Ue || T || !i)
222
- return;
223
- const n = V(O(i));
224
- !G(n) || !Be(n) || a(i, n) && n.blur();
225
- }, [T, i]), _(() => {
226
- if (!(c || !u))
227
- return u.setFocusManagerState({
228
- modal: E,
229
- closeOnFocusOut: K,
230
- open: T,
231
- onOpenChange: v.setOpen,
232
- domReference: f
233
- }), () => {
234
- u.setFocusManagerState(null);
235
- };
236
- }, [c, u, E, T, v, K, f]), _(() => {
237
- if (!(c || !o))
238
- return Ne(o, M), () => {
239
- queueMicrotask(ie);
240
- };
241
- }, [c, o, M]);
242
- const Re = !c && (E ? !C : !0) && (Le || E);
243
- return /* @__PURE__ */ oe.jsxs(p.Fragment, {
244
- children: [Re && /* @__PURE__ */ oe.jsx(xe, {
245
- "data-type": "inside",
246
- ref: Ve,
247
- onFocus: (n) => {
248
- if (E) {
249
- const d = k();
250
- re(d[d.length - 1]);
251
- } else u?.portalNode && (y.current = !1, ve(n, u.portalNode) ? Xe(f)?.focus() : w(W ?? u.beforeOutsideRef)?.focus());
252
- }
253
- }), D, Re && /* @__PURE__ */ oe.jsx(xe, {
254
- "data-type": "inside",
255
- ref: qe,
256
- onFocus: (n) => {
257
- E ? re(k()[0]) : u?.portalNode && (K && (y.current = !0), ve(n, u.portalNode) ? Ye(f)?.focus() : w(H ?? u.afterOutsideRef)?.focus());
258
- }
259
- })]
260
- });
1
+ function t(e, n, r, d) {
2
+ return e.addEventListener(n, r, d), () => {
3
+ e.removeEventListener(n, r, d);
4
+ };
261
5
  }
262
6
  export {
263
- Lt as FloatingFocusManager
7
+ t as addEventListener
264
8
  };
265
9
  //# sourceMappingURL=index325.js.map