@rpcbase/ui 0.287.0 → 0.289.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 (738) hide show
  1. package/dist/assets/sha256.worker-DNtOSCbM.js.map +1 -0
  2. package/dist/components/FilesUploadField/index.d.ts.map +1 -1
  3. package/dist/index.js +12 -12
  4. package/dist/index10.js.map +1 -1
  5. package/dist/index100.js.map +1 -1
  6. package/dist/index101.js.map +1 -1
  7. package/dist/index102.js.map +1 -1
  8. package/dist/index103.js.map +1 -1
  9. package/dist/index104.js.map +1 -1
  10. package/dist/index105.js.map +1 -1
  11. package/dist/index106.js.map +1 -1
  12. package/dist/index107.js.map +1 -1
  13. package/dist/index108.js.map +1 -1
  14. package/dist/index109.js.map +1 -1
  15. package/dist/index11.js +96 -17
  16. package/dist/index11.js.map +1 -1
  17. package/dist/index110.js.map +1 -1
  18. package/dist/index111.js.map +1 -1
  19. package/dist/index112.js.map +1 -1
  20. package/dist/index113.js.map +1 -1
  21. package/dist/index114.js.map +1 -1
  22. package/dist/index115.js.map +1 -1
  23. package/dist/index116.js.map +1 -1
  24. package/dist/index117.js.map +1 -1
  25. package/dist/index118.js.map +1 -1
  26. package/dist/index119.js.map +1 -1
  27. package/dist/index12.js.map +1 -1
  28. package/dist/index120.js.map +1 -1
  29. package/dist/index121.js.map +1 -1
  30. package/dist/index122.js.map +1 -1
  31. package/dist/index123.js +1 -1
  32. package/dist/index123.js.map +1 -1
  33. package/dist/index124.js.map +1 -1
  34. package/dist/index125.js.map +1 -1
  35. package/dist/index126.js.map +1 -1
  36. package/dist/index127.js.map +1 -1
  37. package/dist/index128.js.map +1 -1
  38. package/dist/index129.js.map +1 -1
  39. package/dist/index13.js.map +1 -1
  40. package/dist/index130.js.map +1 -1
  41. package/dist/index131.js.map +1 -1
  42. package/dist/index132.js.map +1 -1
  43. package/dist/index133.js.map +1 -1
  44. package/dist/index134.js.map +1 -1
  45. package/dist/index135.js.map +1 -1
  46. package/dist/index136.js.map +1 -1
  47. package/dist/index137.js.map +1 -1
  48. package/dist/index138.js.map +1 -1
  49. package/dist/index139.js.map +1 -1
  50. package/dist/index14.js.map +1 -1
  51. package/dist/index140.js.map +1 -1
  52. package/dist/index141.js.map +1 -1
  53. package/dist/index142.js.map +1 -1
  54. package/dist/index143.js.map +1 -1
  55. package/dist/index144.js.map +1 -1
  56. package/dist/index145.js.map +1 -1
  57. package/dist/index146.js.map +1 -1
  58. package/dist/index147.js.map +1 -1
  59. package/dist/index148.js.map +1 -1
  60. package/dist/index149.js.map +1 -1
  61. package/dist/index15.js.map +1 -1
  62. package/dist/index150.js.map +1 -1
  63. package/dist/index151.js.map +1 -1
  64. package/dist/index152.js.map +1 -1
  65. package/dist/index153.js.map +1 -1
  66. package/dist/index154.js +4 -4
  67. package/dist/index154.js.map +1 -1
  68. package/dist/index155.js.map +1 -1
  69. package/dist/index156.js.map +1 -1
  70. package/dist/index157.js.map +1 -1
  71. package/dist/index158.js.map +1 -1
  72. package/dist/index159.js.map +1 -1
  73. package/dist/index16.js.map +1 -1
  74. package/dist/index160.js.map +1 -1
  75. package/dist/index161.js.map +1 -1
  76. package/dist/index162.js.map +1 -1
  77. package/dist/index163.js.map +1 -1
  78. package/dist/index164.js.map +1 -1
  79. package/dist/index165.js.map +1 -1
  80. package/dist/index166.js.map +1 -1
  81. package/dist/index167.js.map +1 -1
  82. package/dist/index168.js.map +1 -1
  83. package/dist/index169.js.map +1 -1
  84. package/dist/index17.js.map +1 -1
  85. package/dist/index170.js +18 -12
  86. package/dist/index170.js.map +1 -1
  87. package/dist/index171.js.map +1 -1
  88. package/dist/index172.js.map +1 -1
  89. package/dist/index173.js.map +1 -1
  90. package/dist/index174.js.map +1 -1
  91. package/dist/index175.js.map +1 -1
  92. package/dist/index176.js.map +1 -1
  93. package/dist/index177.js.map +1 -1
  94. package/dist/index178.js.map +1 -1
  95. package/dist/index179.js.map +1 -1
  96. package/dist/index18.js.map +1 -1
  97. package/dist/index180.js.map +1 -1
  98. package/dist/index181.js +1 -1
  99. package/dist/index181.js.map +1 -1
  100. package/dist/index182.js +3 -3
  101. package/dist/index182.js.map +1 -1
  102. package/dist/index183.js.map +1 -1
  103. package/dist/index184.js.map +1 -1
  104. package/dist/index185.js.map +1 -1
  105. package/dist/index186.js.map +1 -1
  106. package/dist/index187.js.map +1 -1
  107. package/dist/index188.js.map +1 -1
  108. package/dist/index189.js.map +1 -1
  109. package/dist/index19.js.map +1 -1
  110. package/dist/index190.js +9 -7
  111. package/dist/index190.js.map +1 -1
  112. package/dist/index191.js +4 -4
  113. package/dist/index191.js.map +1 -1
  114. package/dist/index192.js +4 -15
  115. package/dist/index192.js.map +1 -1
  116. package/dist/index193.js +13 -3
  117. package/dist/index193.js.map +1 -1
  118. package/dist/index194.js +2 -2
  119. package/dist/index194.js.map +1 -1
  120. package/dist/index195.js +4 -85
  121. package/dist/index195.js.map +1 -1
  122. package/dist/index196.js +79 -54
  123. package/dist/index196.js.map +1 -1
  124. package/dist/index197.js +68 -7
  125. package/dist/index197.js.map +1 -1
  126. package/dist/index198.js +3 -23
  127. package/dist/index198.js.map +1 -1
  128. package/dist/index199.js +6 -28
  129. package/dist/index199.js.map +1 -1
  130. package/dist/index20.js.map +1 -1
  131. package/dist/index200.js +4 -97
  132. package/dist/index200.js.map +1 -1
  133. package/dist/index201.js +3 -4
  134. package/dist/index201.js.map +1 -1
  135. package/dist/index202.js +23 -24
  136. package/dist/index202.js.map +1 -1
  137. package/dist/index203.js +28 -10
  138. package/dist/index203.js.map +1 -1
  139. package/dist/index204.js +97 -4
  140. package/dist/index204.js.map +1 -1
  141. package/dist/index205.js +4 -12
  142. package/dist/index205.js.map +1 -1
  143. package/dist/index206.js +22 -19
  144. package/dist/index206.js.map +1 -1
  145. package/dist/index207.js +4 -6
  146. package/dist/index207.js.map +1 -1
  147. package/dist/index208.js +4 -15
  148. package/dist/index208.js.map +1 -1
  149. package/dist/index209.js +10 -102
  150. package/dist/index209.js.map +1 -1
  151. package/dist/index210.js +21 -3
  152. package/dist/index210.js.map +1 -1
  153. package/dist/index211.js +5 -23
  154. package/dist/index211.js.map +1 -1
  155. package/dist/index212.js +15 -28
  156. package/dist/index212.js.map +1 -1
  157. package/dist/index213.js +101 -17
  158. package/dist/index213.js.map +1 -1
  159. package/dist/index214.js +3 -7
  160. package/dist/index214.js.map +1 -1
  161. package/dist/index215.js +24 -15
  162. package/dist/index215.js.map +1 -1
  163. package/dist/index216.js +27 -7
  164. package/dist/index216.js.map +1 -1
  165. package/dist/index217.js +17 -24
  166. package/dist/index217.js.map +1 -1
  167. package/dist/index218.js +6 -22
  168. package/dist/index218.js.map +1 -1
  169. package/dist/index219.js +15 -6
  170. package/dist/index219.js.map +1 -1
  171. package/dist/index220.js +8 -5
  172. package/dist/index220.js.map +1 -1
  173. package/dist/index221.js +27 -4
  174. package/dist/index221.js.map +1 -1
  175. package/dist/index222.js +23 -4
  176. package/dist/index222.js.map +1 -1
  177. package/dist/index223.js +6 -24
  178. package/dist/index223.js.map +1 -1
  179. package/dist/index224.js +5 -3
  180. package/dist/index224.js.map +1 -1
  181. package/dist/index225.js +4 -24
  182. package/dist/index225.js.map +1 -1
  183. package/dist/index226.js +4 -23
  184. package/dist/index226.js.map +1 -1
  185. package/dist/index227.js +23 -6
  186. package/dist/index227.js.map +1 -1
  187. package/dist/index228.js +22 -8
  188. package/dist/index228.js.map +1 -1
  189. package/dist/index229.js +3 -19
  190. package/dist/index229.js.map +1 -1
  191. package/dist/index23.js.map +1 -1
  192. package/dist/index230.js +22 -50
  193. package/dist/index230.js.map +1 -1
  194. package/dist/index231.js +7 -20
  195. package/dist/index231.js.map +1 -1
  196. package/dist/index232.js +9 -27
  197. package/dist/index232.js.map +1 -1
  198. package/dist/index233.js +17 -97
  199. package/dist/index233.js.map +1 -1
  200. package/dist/index234.js +50 -33
  201. package/dist/index234.js.map +1 -1
  202. package/dist/index235.js +20 -119
  203. package/dist/index235.js.map +1 -1
  204. package/dist/index236.js +28 -13
  205. package/dist/index236.js.map +1 -1
  206. package/dist/index237.js +98 -4
  207. package/dist/index237.js.map +1 -1
  208. package/dist/index238.js +33 -15
  209. package/dist/index238.js.map +1 -1
  210. package/dist/index239.js +116 -62
  211. package/dist/index239.js.map +1 -1
  212. package/dist/index24.js.map +1 -1
  213. package/dist/index240.js +13 -10
  214. package/dist/index240.js.map +1 -1
  215. package/dist/index241.js +4 -109
  216. package/dist/index241.js.map +1 -1
  217. package/dist/index242.js +14 -14
  218. package/dist/index242.js.map +1 -1
  219. package/dist/index243.js +64 -12
  220. package/dist/index243.js.map +1 -1
  221. package/dist/index244.js +10 -5
  222. package/dist/index244.js.map +1 -1
  223. package/dist/index245.js +104 -318
  224. package/dist/index245.js.map +1 -1
  225. package/dist/index246.js +14 -66
  226. package/dist/index246.js.map +1 -1
  227. package/dist/index247.js +12 -232
  228. package/dist/index247.js.map +1 -1
  229. package/dist/index248.js +4 -270
  230. package/dist/index248.js.map +1 -1
  231. package/dist/index249.js +313 -309
  232. package/dist/index249.js.map +1 -1
  233. package/dist/index25.js.map +1 -1
  234. package/dist/index250.js +60 -171
  235. package/dist/index250.js.map +1 -1
  236. package/dist/index251.js +252 -8
  237. package/dist/index251.js.map +1 -1
  238. package/dist/index252.js +268 -41
  239. package/dist/index252.js.map +1 -1
  240. package/dist/index253.js +316 -47
  241. package/dist/index253.js.map +1 -1
  242. package/dist/index254.js +179 -9
  243. package/dist/index254.js.map +1 -1
  244. package/dist/index255.js +6 -50
  245. package/dist/index255.js.map +1 -1
  246. package/dist/index256.js +41 -51
  247. package/dist/index256.js.map +1 -1
  248. package/dist/index257.js +50 -7
  249. package/dist/index257.js.map +1 -1
  250. package/dist/index258.js +9 -10
  251. package/dist/index258.js.map +1 -1
  252. package/dist/index259.js +51 -61
  253. package/dist/index259.js.map +1 -1
  254. package/dist/index26.js.map +1 -1
  255. package/dist/index260.js +53 -42
  256. package/dist/index260.js.map +1 -1
  257. package/dist/index261.js +9 -97
  258. package/dist/index261.js.map +1 -1
  259. package/dist/index262.js +31 -47
  260. package/dist/index262.js.map +1 -1
  261. package/dist/index263.js +61 -36
  262. package/dist/index263.js.map +1 -1
  263. package/dist/index264.js +43 -47
  264. package/dist/index264.js.map +1 -1
  265. package/dist/index265.js +92 -46
  266. package/dist/index265.js.map +1 -1
  267. package/dist/index266.js +48 -20
  268. package/dist/index266.js.map +1 -1
  269. package/dist/index267.js +33 -176
  270. package/dist/index267.js.map +1 -1
  271. package/dist/index268.js +49 -48
  272. package/dist/index268.js.map +1 -1
  273. package/dist/index269.js +68 -15
  274. package/dist/index269.js.map +1 -1
  275. package/dist/index27.js.map +1 -1
  276. package/dist/index270.js +20 -65
  277. package/dist/index270.js.map +1 -1
  278. package/dist/index271.js +202 -9
  279. package/dist/index271.js.map +1 -1
  280. package/dist/index272.js +48 -40
  281. package/dist/index272.js.map +1 -1
  282. package/dist/index273.js +60 -91
  283. package/dist/index273.js.map +1 -1
  284. package/dist/index274.js +9 -278
  285. package/dist/index274.js.map +1 -1
  286. package/dist/index275.js +38 -55
  287. package/dist/index275.js.map +1 -1
  288. package/dist/index276.js +91 -10
  289. package/dist/index276.js.map +1 -1
  290. package/dist/index277.js +278 -12
  291. package/dist/index277.js.map +1 -1
  292. package/dist/index278.js +58 -11
  293. package/dist/index278.js.map +1 -1
  294. package/dist/index279.js +11 -64
  295. package/dist/index279.js.map +1 -1
  296. package/dist/index28.js +5 -5
  297. package/dist/index28.js.map +1 -1
  298. package/dist/index280.js +12 -6
  299. package/dist/index280.js.map +1 -1
  300. package/dist/index281.js +3 -25
  301. package/dist/index281.js.map +1 -1
  302. package/dist/index282.js +3 -25
  303. package/dist/index282.js.map +1 -1
  304. package/dist/index283.js +12 -126
  305. package/dist/index283.js.map +1 -1
  306. package/dist/index284.js +63 -51
  307. package/dist/index284.js.map +1 -1
  308. package/dist/index285.js +5 -60
  309. package/dist/index285.js.map +1 -1
  310. package/dist/index286.js +24 -48
  311. package/dist/index286.js.map +1 -1
  312. package/dist/index287.js +24 -6
  313. package/dist/index287.js.map +1 -1
  314. package/dist/index288.js +125 -14
  315. package/dist/index288.js.map +1 -1
  316. package/dist/index289.js +51 -16
  317. package/dist/index289.js.map +1 -1
  318. package/dist/index29.js +5 -7
  319. package/dist/index29.js.map +1 -1
  320. package/dist/index290.js +56 -11
  321. package/dist/index290.js.map +1 -1
  322. package/dist/index291.js +47 -24
  323. package/dist/index291.js.map +1 -1
  324. package/dist/index292.js +7 -51
  325. package/dist/index292.js.map +1 -1
  326. package/dist/index293.js +15 -6
  327. package/dist/index293.js.map +1 -1
  328. package/dist/index294.js +18 -148
  329. package/dist/index294.js.map +1 -1
  330. package/dist/index295.js +12 -59
  331. package/dist/index295.js.map +1 -1
  332. package/dist/index296.js +25 -120
  333. package/dist/index296.js.map +1 -1
  334. package/dist/index297.js +54 -15
  335. package/dist/index297.js.map +1 -1
  336. package/dist/index298.js +5 -866
  337. package/dist/index298.js.map +1 -1
  338. package/dist/index299.js +148 -28
  339. package/dist/index299.js.map +1 -1
  340. package/dist/index3.js.map +1 -1
  341. package/dist/index30.js +6 -8
  342. package/dist/index30.js.map +1 -1
  343. package/dist/index300.js +55 -512
  344. package/dist/index300.js.map +1 -1
  345. package/dist/index301.js +111 -794
  346. package/dist/index301.js.map +1 -1
  347. package/dist/index302.js +14 -7436
  348. package/dist/index302.js.map +1 -1
  349. package/dist/index303.js +862 -6
  350. package/dist/index303.js.map +1 -1
  351. package/dist/index304.js +28 -12
  352. package/dist/index304.js.map +1 -1
  353. package/dist/index305.js +515 -5
  354. package/dist/index305.js.map +1 -1
  355. package/dist/index306.js +803 -5
  356. package/dist/index306.js.map +1 -1
  357. package/dist/index307.js +7426 -468
  358. package/dist/index307.js.map +1 -1
  359. package/dist/index308.js +6 -37
  360. package/dist/index308.js.map +1 -1
  361. package/dist/index309.js +12 -19
  362. package/dist/index309.js.map +1 -1
  363. package/dist/index31.js +5 -11
  364. package/dist/index31.js.map +1 -1
  365. package/dist/index310.js +5 -30
  366. package/dist/index310.js.map +1 -1
  367. package/dist/index311.js +5 -4
  368. package/dist/index311.js.map +1 -1
  369. package/dist/index312.js +461 -51
  370. package/dist/index312.js.map +1 -1
  371. package/dist/index313.js +36 -10
  372. package/dist/index313.js.map +1 -1
  373. package/dist/index314.js +19 -5
  374. package/dist/index314.js.map +1 -1
  375. package/dist/index315.js +29 -8
  376. package/dist/index315.js.map +1 -1
  377. package/dist/index316.js +4 -12
  378. package/dist/index316.js.map +1 -1
  379. package/dist/index317.js +60 -3
  380. package/dist/index317.js.map +1 -1
  381. package/dist/index318.js +10 -15
  382. package/dist/index318.js.map +1 -1
  383. package/dist/index319.js +5 -25
  384. package/dist/index319.js.map +1 -1
  385. package/dist/index32.js +5 -5
  386. package/dist/index32.js.map +1 -1
  387. package/dist/index320.js +9 -41
  388. package/dist/index320.js.map +1 -1
  389. package/dist/index321.js +11 -4
  390. package/dist/index321.js.map +1 -1
  391. package/dist/index322.js +3 -26
  392. package/dist/index322.js.map +1 -1
  393. package/dist/index323.js +15 -18
  394. package/dist/index323.js.map +1 -1
  395. package/dist/index324.js +22 -31
  396. package/dist/index324.js.map +1 -1
  397. package/dist/index325.js +41 -5
  398. package/dist/index325.js.map +1 -1
  399. package/dist/index326.js +4 -8
  400. package/dist/index326.js.map +1 -1
  401. package/dist/index327.js +25 -8
  402. package/dist/index327.js.map +1 -1
  403. package/dist/index328.js +19 -9
  404. package/dist/index328.js.map +1 -1
  405. package/dist/index329.js +34 -10
  406. package/dist/index329.js.map +1 -1
  407. package/dist/index33.js +9 -6
  408. package/dist/index33.js.map +1 -1
  409. package/dist/index330.js +5 -7
  410. package/dist/index330.js.map +1 -1
  411. package/dist/index331.js +9 -75
  412. package/dist/index331.js.map +1 -1
  413. package/dist/index332.js +8 -162
  414. package/dist/index332.js.map +1 -1
  415. package/dist/index333.js +9 -114
  416. package/dist/index333.js.map +1 -1
  417. package/dist/index334.js +10 -14
  418. package/dist/index334.js.map +1 -1
  419. package/dist/index335.js +7 -80
  420. package/dist/index335.js.map +1 -1
  421. package/dist/index336.js +68 -39
  422. package/dist/index336.js.map +1 -1
  423. package/dist/index337.js +160 -11
  424. package/dist/index337.js.map +1 -1
  425. package/dist/index338.js +113 -15
  426. package/dist/index338.js.map +1 -1
  427. package/dist/index339.js +13 -100
  428. package/dist/index339.js.map +1 -1
  429. package/dist/index34.js +6 -6
  430. package/dist/index34.js.map +1 -1
  431. package/dist/index340.js +73 -49
  432. package/dist/index340.js.map +1 -1
  433. package/dist/index341.js +34 -96
  434. package/dist/index341.js.map +1 -1
  435. package/dist/index342.js +12 -70
  436. package/dist/index342.js.map +1 -1
  437. package/dist/index343.js +14 -111
  438. package/dist/index343.js.map +1 -1
  439. package/dist/index344.js +94 -48
  440. package/dist/index344.js.map +1 -1
  441. package/dist/index345.js +50 -37
  442. package/dist/index345.js.map +1 -1
  443. package/dist/index346.js +89 -125
  444. package/dist/index346.js.map +1 -1
  445. package/dist/index347.js +52 -123
  446. package/dist/index347.js.map +1 -1
  447. package/dist/index348.js +54 -197
  448. package/dist/index348.js.map +1 -1
  449. package/dist/index349.js +44 -229
  450. package/dist/index349.js.map +1 -1
  451. package/dist/index35.js +9 -9
  452. package/dist/index35.js.map +1 -1
  453. package/dist/index350.js +42 -308
  454. package/dist/index350.js.map +1 -1
  455. package/dist/index351.js +144 -5
  456. package/dist/index351.js.map +1 -1
  457. package/dist/index352.js +142 -6
  458. package/dist/index352.js.map +1 -1
  459. package/dist/index353.js +257 -7
  460. package/dist/index353.js.map +1 -1
  461. package/dist/index354.js +241 -6
  462. package/dist/index354.js.map +1 -1
  463. package/dist/index355.js +309 -6
  464. package/dist/index355.js.map +1 -1
  465. package/dist/index356.js +5 -21
  466. package/dist/index356.js.map +1 -1
  467. package/dist/index357.js +6 -10
  468. package/dist/index357.js.map +1 -1
  469. package/dist/index358.js +7 -128
  470. package/dist/index358.js.map +1 -1
  471. package/dist/index359.js +6 -42
  472. package/dist/index359.js.map +1 -1
  473. package/dist/index36.js +12 -7
  474. package/dist/index36.js.map +1 -1
  475. package/dist/index360.js +6 -68
  476. package/dist/index360.js.map +1 -1
  477. package/dist/index361.js +20 -116
  478. package/dist/index361.js.map +1 -1
  479. package/dist/index362.js +10 -490
  480. package/dist/index362.js.map +1 -1
  481. package/dist/index363.js +128 -7
  482. package/dist/index363.js.map +1 -1
  483. package/dist/index364.js +42 -13
  484. package/dist/index364.js.map +1 -1
  485. package/dist/index365.js +67 -3
  486. package/dist/index365.js.map +1 -1
  487. package/dist/index366.js +115 -45
  488. package/dist/index366.js.map +1 -1
  489. package/dist/index367.js +490 -11
  490. package/dist/index367.js.map +1 -1
  491. package/dist/index368.js +8 -26
  492. package/dist/index368.js.map +1 -1
  493. package/dist/index369.js +12 -41
  494. package/dist/index369.js.map +1 -1
  495. package/dist/index37.js +13 -5
  496. package/dist/index37.js.map +1 -1
  497. package/dist/index370.js +4 -36
  498. package/dist/index370.js.map +1 -1
  499. package/dist/index371.js +45 -15
  500. package/dist/index371.js.map +1 -1
  501. package/dist/index372.js +24 -41
  502. package/dist/index372.js.map +1 -1
  503. package/dist/index373.js +3 -12
  504. package/dist/index373.js.map +1 -1
  505. package/dist/index374.js +27 -11
  506. package/dist/index374.js.map +1 -1
  507. package/dist/index375.js +40 -50
  508. package/dist/index375.js.map +1 -1
  509. package/dist/index376.js +37 -40
  510. package/dist/index376.js.map +1 -1
  511. package/dist/index377.js +12 -10
  512. package/dist/index377.js.map +1 -1
  513. package/dist/index378.js +40 -4
  514. package/dist/index378.js.map +1 -1
  515. package/dist/index379.js +7 -4
  516. package/dist/index379.js.map +1 -1
  517. package/dist/index38.js +5 -5
  518. package/dist/index38.js.map +1 -1
  519. package/dist/index380.js +29 -8
  520. package/dist/index380.js.map +1 -1
  521. package/dist/index381.js +9 -303
  522. package/dist/index381.js.map +1 -1
  523. package/dist/index382.js +57 -4
  524. package/dist/index382.js.map +1 -1
  525. package/dist/index383.js +40 -22
  526. package/dist/index383.js.map +1 -1
  527. package/dist/index384.js +15 -105
  528. package/dist/index384.js.map +1 -1
  529. package/dist/index385.js +5 -22
  530. package/dist/index385.js.map +1 -1
  531. package/dist/index386.js +10 -22
  532. package/dist/index386.js.map +1 -1
  533. package/dist/index387.js +289 -16
  534. package/dist/index387.js.map +1 -1
  535. package/dist/index388.js +4 -12
  536. package/dist/index388.js.map +1 -1
  537. package/dist/index389.js +20 -112
  538. package/dist/index389.js.map +1 -1
  539. package/dist/index39.js +6 -10
  540. package/dist/index39.js.map +1 -1
  541. package/dist/index390.js +3 -9
  542. package/dist/index390.js.map +1 -1
  543. package/dist/index391.js +104 -27
  544. package/dist/index391.js.map +1 -1
  545. package/dist/index392.js +20 -9
  546. package/dist/index392.js.map +1 -1
  547. package/dist/index393.js +20 -6
  548. package/dist/index393.js.map +1 -1
  549. package/dist/index394.js +14 -253
  550. package/dist/index394.js.map +1 -1
  551. package/dist/index395.js +12 -10
  552. package/dist/index395.js.map +1 -1
  553. package/dist/index396.js +117 -11
  554. package/dist/index396.js.map +1 -1
  555. package/dist/index397.js +8 -6
  556. package/dist/index397.js.map +1 -1
  557. package/dist/index398.js +32 -22
  558. package/dist/index398.js.map +1 -1
  559. package/dist/index399.js +9 -23
  560. package/dist/index399.js.map +1 -1
  561. package/dist/index4.js.map +1 -1
  562. package/dist/index40.js +8 -11
  563. package/dist/index40.js.map +1 -1
  564. package/dist/index400.js +6 -105
  565. package/dist/index400.js.map +1 -1
  566. package/dist/index401.js +3 -15
  567. package/dist/index401.js.map +1 -1
  568. package/dist/index402.js +251 -10
  569. package/dist/index402.js.map +1 -1
  570. package/dist/index403.js +9 -7
  571. package/dist/index403.js.map +1 -1
  572. package/dist/index404.js +11 -239
  573. package/dist/index404.js.map +1 -1
  574. package/dist/index405.js +7 -28
  575. package/dist/index405.js.map +1 -1
  576. package/dist/index406.js +21 -37
  577. package/dist/index406.js.map +1 -1
  578. package/dist/index407.js +21 -10
  579. package/dist/index407.js.map +1 -1
  580. package/dist/index408.js +97 -117
  581. package/dist/index408.js.map +1 -1
  582. package/dist/index409.js +15 -40
  583. package/dist/index409.js.map +1 -1
  584. package/dist/index41.js +6 -7
  585. package/dist/index41.js.map +1 -1
  586. package/dist/index410.js +11 -25
  587. package/dist/index410.js.map +1 -1
  588. package/dist/index411.js +7 -9
  589. package/dist/index411.js.map +1 -1
  590. package/dist/index412.js +3 -24
  591. package/dist/index412.js.map +1 -1
  592. package/dist/index413.js +226 -15
  593. package/dist/index413.js.map +1 -1
  594. package/dist/index414.js +24 -11
  595. package/dist/index414.js.map +1 -1
  596. package/dist/index415.js +38 -4
  597. package/dist/index415.js.map +1 -1
  598. package/dist/index416.js +11 -324
  599. package/dist/index416.js.map +1 -1
  600. package/dist/index417.js +119 -62
  601. package/dist/index417.js.map +1 -1
  602. package/dist/index418.js +42 -4
  603. package/dist/index418.js.map +1 -1
  604. package/dist/index419.js +25 -28
  605. package/dist/index419.js.map +1 -1
  606. package/dist/index42.js +6 -4
  607. package/dist/index42.js.map +1 -1
  608. package/dist/index420.js +11 -470
  609. package/dist/index420.js.map +1 -1
  610. package/dist/index421.js +23 -268
  611. package/dist/index421.js.map +1 -1
  612. package/dist/index422.js +24 -0
  613. package/dist/index422.js.map +1 -0
  614. package/dist/index423.js +17 -0
  615. package/dist/index423.js.map +1 -0
  616. package/dist/index424.js +8 -0
  617. package/dist/index424.js.map +1 -0
  618. package/dist/index425.js +328 -0
  619. package/dist/index425.js.map +1 -0
  620. package/dist/index426.js +66 -0
  621. package/dist/index426.js.map +1 -0
  622. package/dist/index427.js +7 -0
  623. package/dist/index427.js.map +1 -0
  624. package/dist/index428.js +31 -0
  625. package/dist/index428.js.map +1 -0
  626. package/dist/index429.js +474 -0
  627. package/dist/index429.js.map +1 -0
  628. package/dist/index43.js +68 -7
  629. package/dist/index43.js.map +1 -1
  630. package/dist/index430.js +272 -0
  631. package/dist/index430.js.map +1 -0
  632. package/dist/index44.js +7 -6
  633. package/dist/index44.js.map +1 -1
  634. package/dist/index45.js +31 -7
  635. package/dist/index45.js.map +1 -1
  636. package/dist/index46.js +10 -10
  637. package/dist/index46.js.map +1 -1
  638. package/dist/index47.js +15 -13
  639. package/dist/index47.js.map +1 -1
  640. package/dist/index48.js +201 -7
  641. package/dist/index48.js.map +1 -1
  642. package/dist/index49.js +20 -6
  643. package/dist/index49.js.map +1 -1
  644. package/dist/index5.js.map +1 -1
  645. package/dist/index50.js +16 -6
  646. package/dist/index50.js.map +1 -1
  647. package/dist/index51.js +123 -14
  648. package/dist/index51.js.map +1 -1
  649. package/dist/index52.js +19 -8
  650. package/dist/index52.js.map +1 -1
  651. package/dist/index53.js +5 -7
  652. package/dist/index53.js.map +1 -1
  653. package/dist/index54.js +9 -68
  654. package/dist/index54.js.map +1 -1
  655. package/dist/index55.js +7 -7
  656. package/dist/index55.js.map +1 -1
  657. package/dist/index56.js +9 -31
  658. package/dist/index56.js.map +1 -1
  659. package/dist/index57.js +13 -10
  660. package/dist/index57.js.map +1 -1
  661. package/dist/index58.js +8 -15
  662. package/dist/index58.js.map +1 -1
  663. package/dist/index59.js +10 -201
  664. package/dist/index59.js.map +1 -1
  665. package/dist/index6.js.map +1 -1
  666. package/dist/index60.js +13 -20
  667. package/dist/index60.js.map +1 -1
  668. package/dist/index61.js +9 -16
  669. package/dist/index61.js.map +1 -1
  670. package/dist/index62.js +10 -123
  671. package/dist/index62.js.map +1 -1
  672. package/dist/index63.js +5 -19
  673. package/dist/index63.js.map +1 -1
  674. package/dist/index64.js +42 -9
  675. package/dist/index64.js.map +1 -1
  676. package/dist/index65.js +387 -9
  677. package/dist/index65.js.map +1 -1
  678. package/dist/index66.js +37 -14
  679. package/dist/index66.js.map +1 -1
  680. package/dist/index67.js +21 -9
  681. package/dist/index67.js.map +1 -1
  682. package/dist/index68.js +4 -9
  683. package/dist/index68.js.map +1 -1
  684. package/dist/index69.js +6 -4
  685. package/dist/index69.js.map +1 -1
  686. package/dist/index7.js +3 -3
  687. package/dist/index7.js.map +1 -1
  688. package/dist/index70.js +57 -41
  689. package/dist/index70.js.map +1 -1
  690. package/dist/index71.js +5 -387
  691. package/dist/index71.js.map +1 -1
  692. package/dist/index72.js +6 -37
  693. package/dist/index72.js.map +1 -1
  694. package/dist/index73.js +5 -21
  695. package/dist/index73.js.map +1 -1
  696. package/dist/index74.js +4 -56
  697. package/dist/index74.js.map +1 -1
  698. package/dist/index75.js +7 -7
  699. package/dist/index75.js.map +1 -1
  700. package/dist/index76.js +6 -5
  701. package/dist/index76.js.map +1 -1
  702. package/dist/index77.js +6 -5
  703. package/dist/index77.js.map +1 -1
  704. package/dist/index78.js +11 -5
  705. package/dist/index78.js.map +1 -1
  706. package/dist/index79.js +11 -5
  707. package/dist/index79.js.map +1 -1
  708. package/dist/index8.js.map +1 -1
  709. package/dist/index80.js +7 -6
  710. package/dist/index80.js.map +1 -1
  711. package/dist/index81.js +10 -6
  712. package/dist/index81.js.map +1 -1
  713. package/dist/index82.js +5 -8
  714. package/dist/index82.js.map +1 -1
  715. package/dist/index83.js +6 -7
  716. package/dist/index83.js.map +1 -1
  717. package/dist/index84.js.map +1 -1
  718. package/dist/index85.js.map +1 -1
  719. package/dist/index86.js.map +1 -1
  720. package/dist/index87.js +2 -2
  721. package/dist/index87.js.map +1 -1
  722. package/dist/index88.js +31 -31
  723. package/dist/index88.js.map +1 -1
  724. package/dist/index89.js +1 -1
  725. package/dist/index89.js.map +1 -1
  726. package/dist/index9.js.map +1 -1
  727. package/dist/index90.js.map +1 -1
  728. package/dist/index91.js.map +1 -1
  729. package/dist/index92.js.map +1 -1
  730. package/dist/index93.js.map +1 -1
  731. package/dist/index94.js.map +1 -1
  732. package/dist/index95.js.map +1 -1
  733. package/dist/index96.js.map +1 -1
  734. package/dist/index97.js.map +1 -1
  735. package/dist/index98.js.map +1 -1
  736. package/dist/index99.js.map +1 -1
  737. package/package.json +13 -13
  738. package/dist/assets/sha256.worker-BEf4_Y9w.js.map +0 -1
package/dist/index381.js CHANGED
@@ -1,308 +1,14 @@
1
- "use client";
2
- import { useRefWithInit as e } from "./index185.js";
3
- import { useMergedRefs as t } from "./index186.js";
4
- import { EMPTY_ARRAY as n, EMPTY_OBJECT as r } from "./index191.js";
5
- import { mergeProps as i } from "./index195.js";
6
- import { useStableCallback as a } from "./index202.js";
7
- import { useIsoLayoutEffect as o } from "./index204.js";
8
- import { none as ee } from "./index210.js";
9
- import { createChangeEventDetails as s } from "./index211.js";
10
- import { useValueAsRef as te } from "./index229.js";
11
- import { visuallyHidden as ne, visuallyHiddenInput as re } from "./index231.js";
12
- import { useClick as ie } from "./index246.js";
13
- import { useDismiss as ae } from "./index247.js";
14
- import { useStore as c } from "./index259.js";
15
- import { ReactStore as oe } from "./index261.js";
16
- import { useTransitionStatus as se } from "./index264.js";
17
- import { useOpenChangeComplete as ce } from "./index266.js";
18
- import { FOCUSABLE_POPUP_PROPS as le } from "./index267.js";
19
- import { useFloatingRootContext as ue } from "./index272.js";
20
- import { useListNavigation as de } from "./index274.js";
21
- import { useTypeahead as fe } from "./index275.js";
22
- import { useValueChanged as pe } from "./index290.js";
23
- import { useOpenInteractionType as me } from "./index291.js";
24
- import { useOnFirstRender as he } from "./index363.js";
25
- import { usePreviousValue as ge } from "./index364.js";
26
- import { isElementDisabled as _e } from "./index365.js";
27
- import { useControlled as l } from "./index366.js";
28
- import { SelectRootContext as ve } from "./index367.js";
29
- import { useFieldRootContext as ye } from "./index369.js";
30
- import { useRegisterFieldControl as be } from "./index370.js";
31
- import { useLabelableId as xe } from "./index372.js";
32
- import { compareItemEquality as Se, defaultItemEquality as Ce, findItemIndex as we } from "./index373.js";
33
- import { stringifyAsLabel as Te, stringifyAsValue as u } from "./index375.js";
34
- import { selectors as d } from "./index376.js";
35
- import { useFormContext as Ee } from "./index377.js";
36
- import { areArraysEqual as De } from "./index378.js";
37
- import { getMaxScrollOffset as Oe, normalizeScrollOffset as ke } from "./index380.js";
38
- import * as f from "react";
39
- import { jsx as Ae, jsxs as je } from "react/jsx-runtime";
40
- //#region ../../node_modules/@base-ui/react/select/root/SelectRoot.mjs
41
- function p(p) {
42
- let { id: Me, value: Ne, defaultValue: Pe = null, onValueChange: Fe, open: Ie, defaultOpen: Le = !1, onOpenChange: Re, name: m, form: h, autoComplete: ze, disabled: Be = !1, readOnly: g = !1, required: _ = !1, modal: Ve = !0, actionsRef: He, inputRef: Ue, onOpenChangeComplete: v, items: y, multiple: b = !1, itemToStringLabel: x, itemToStringValue: S, isItemEqualToValue: C = Ce, highlightItemOnHover: w = !0, children: We } = p, { clearErrors: Ge } = Ee(), { setDirty: Ke, setTouched: qe, setFocused: Je, validityData: Ye, setFilled: T, name: Xe, disabled: Ze, validation: E, validationMode: Qe } = ye(), D = xe({ id: Me }), O = Ze || Be, k = Xe ?? m, [A, $e] = l({
43
- controlled: Ne,
44
- default: b ? Pe ?? n : Pe,
45
- name: "Select",
46
- state: "value"
47
- }), [j, et] = l({
48
- controlled: Ie,
49
- default: Le,
50
- name: "Select",
51
- state: "open"
52
- }), M = f.useRef([]), N = f.useRef([]), P = f.useRef(null), tt = f.useRef(null), nt = f.useRef(0), rt = f.useRef(null), F = f.useRef([]), I = f.useRef(!1), it = f.useRef(null), L = f.useRef(null), at = f.useRef({
53
- allowSelectedMouseUp: !1,
54
- allowUnselectedMouseUp: !1,
55
- dragY: 0
56
- }), ot = f.useRef(!1), { mounted: R, setMounted: st, transitionStatus: z } = se(j), { openMethod: B, triggerProps: V } = me(j), H = e(() => new oe({
57
- id: D,
58
- labelId: void 0,
59
- modal: Ve,
60
- multiple: b,
61
- itemToStringLabel: x,
62
- itemToStringValue: S,
63
- isItemEqualToValue: C,
64
- value: A,
65
- open: j,
66
- mounted: R,
67
- transitionStatus: z,
68
- items: y,
69
- forceMount: !1,
70
- openMethod: null,
71
- activeIndex: null,
72
- selectedIndex: null,
73
- popupProps: {},
74
- triggerProps: {},
75
- triggerElement: null,
76
- positionerElement: null,
77
- listElement: null,
78
- popupSide: null,
79
- scrollUpArrowVisible: !1,
80
- scrollDownArrowVisible: !1,
81
- hasScrollArrows: !1
82
- })).current, U = c(H, d.activeIndex), W = c(H, d.selectedIndex), ct = c(H, d.triggerElement), lt = c(H, d.positionerElement), ut = ge(B), dt = B ?? ut, ft = f.useMemo(() => b ? "" : u(A, S), [
83
- b,
84
- A,
85
- S
86
- ]), pt = f.useMemo(() => b && Array.isArray(A) ? A.map((e) => u(e, S)) : u(A, S), [
87
- b,
88
- A,
89
- S
90
- ]), mt = te(ct), ht = a(() => pt);
91
- be(mt, D, A, ht, !O, m);
92
- let gt = f.useRef(A), G = b ? Array.isArray(A) && A.length > 0 : A != null && ft !== "";
93
- o(() => {
94
- T(G);
95
- }, [G, T]), o(function() {
96
- let e = A, t = !1;
97
- if (b) {
98
- let n = Array.isArray(A) ? A : [];
99
- t = n.length === 0, e = n[n.length - 1];
100
- }
101
- let n = t ? -1 : we(F.current, e, C), r = n === -1 ? null : n;
102
- r === null && (L.current = null), !j && H.set("selectedIndex", r);
103
- }, [
104
- b,
105
- j,
106
- A,
107
- C,
108
- H
109
- ]);
110
- function _t(e) {
111
- let t = Ye.initialValue;
112
- return Array.isArray(e) && Array.isArray(t) ? !De(e, t, (e, t) => Se(e, t, C)) : e !== t;
1
+ //#region ../../node_modules/@base-ui/react/internals/serializeValue.mjs
2
+ function e(e) {
3
+ if (e == null) return "";
4
+ if (typeof e == "string") return e;
5
+ try {
6
+ return JSON.stringify(e);
7
+ } catch {
8
+ return String(e);
113
9
  }
114
- pe(A, () => {
115
- Ge(k), Ke(_t(A)), E.change(A);
116
- });
117
- let K = a((e, t) => {
118
- Re?.(e, t), !t.isCanceled && (et(e), !e && (t.reason === "focus-out" || t.reason === "outside-press") && (qe(!0), Je(!1), Qe === "onBlur" && E.commit(A)));
119
- }), q = a(() => {
120
- st(!1), H.update({
121
- activeIndex: null,
122
- openMethod: null,
123
- scrollUpArrowVisible: !1,
124
- scrollDownArrowVisible: !1
125
- }), v?.(!1);
126
- });
127
- ce({
128
- enabled: !He,
129
- open: j,
130
- ref: P,
131
- onComplete() {
132
- j || q();
133
- }
134
- }), f.useImperativeHandle(He, () => ({ unmount: q }), [q]);
135
- let J = a((e, t) => {
136
- Fe?.(e, t), !t.isCanceled && $e(e);
137
- }), vt = a((e) => {
138
- let t = Oe(e.scrollHeight, e.clientHeight), n = ke(e.scrollTop, t), r = n > 0, i = n < t;
139
- H.set("scrollUpArrowVisible", r), H.set("scrollDownArrowVisible", i);
140
- }), Y = ue({
141
- open: j,
142
- onOpenChange: K,
143
- elements: {
144
- reference: ct,
145
- floating: lt
146
- }
147
- }), yt = ie(Y, {
148
- enabled: !g && !O,
149
- event: "mousedown"
150
- }), X = ae(Y), Z = de(Y, {
151
- enabled: !g && !O,
152
- listRef: M,
153
- activeIndex: U,
154
- selectedIndex: W,
155
- disabledIndices: n,
156
- onNavigate(e) {
157
- e === null && !j || H.set("activeIndex", e);
158
- },
159
- focusItemOnHover: w
160
- }), Q = fe(Y, {
161
- enabled: !g && !O && (j || !b),
162
- listRef: N,
163
- activeIndex: U,
164
- selectedIndex: W,
165
- disabledIndices: (e) => _e(M.current[e]),
166
- onMatch(e) {
167
- j ? H.set("activeIndex", e) : J(F.current[e], s(ee));
168
- },
169
- onTyping(e) {
170
- I.current = e;
171
- }
172
- }), bt = f.useMemo(() => i(Q.reference, Z.reference, X.reference, yt.reference, V), [
173
- yt.reference,
174
- Q.reference,
175
- Z.reference,
176
- X.reference,
177
- V
178
- ]), xt = f.useMemo(() => i(le, Q.floating, Z.floating, X.floating), [
179
- Q.floating,
180
- Z.floating,
181
- X.floating
182
- ]), St = Z.item ?? r;
183
- he(() => {
184
- H.update({
185
- popupProps: xt,
186
- triggerProps: bt
187
- });
188
- }), H.useSyncedValues({
189
- id: D,
190
- modal: Ve,
191
- multiple: b,
192
- value: A,
193
- open: j,
194
- mounted: R,
195
- transitionStatus: z,
196
- popupProps: xt,
197
- triggerProps: bt,
198
- items: y,
199
- itemToStringLabel: x,
200
- itemToStringValue: S,
201
- isItemEqualToValue: C,
202
- openMethod: dt
203
- });
204
- let Ct = f.useMemo(() => ({
205
- store: H,
206
- floatingContext: Y,
207
- required: _,
208
- disabled: O,
209
- readOnly: g,
210
- multiple: b,
211
- highlightItemOnHover: w,
212
- setValue: J,
213
- setOpen: K,
214
- listRef: M,
215
- popupRef: P,
216
- scrollHandlerRef: tt,
217
- handleScrollArrowVisibility: vt,
218
- scrollArrowsMountedCountRef: nt,
219
- itemProps: St,
220
- valueRef: rt,
221
- valuesRef: F,
222
- labelsRef: N,
223
- typingRef: I,
224
- selectionRef: at,
225
- firstItemTextRef: it,
226
- selectedItemTextRef: L,
227
- validation: E,
228
- onOpenChangeComplete: v,
229
- alignItemWithTriggerActiveRef: ot,
230
- initialValueRef: gt
231
- }), [
232
- H,
233
- Y,
234
- _,
235
- O,
236
- g,
237
- b,
238
- w,
239
- J,
240
- K,
241
- St,
242
- E,
243
- v,
244
- vt
245
- ]), wt = t(Ue, E.inputRef), $ = b ? void 0 : k, Tt = f.useMemo(() => !b || !Array.isArray(A) || !k ? null : A.map((e) => {
246
- let t = u(e, S);
247
- return /*#__PURE__*/ Ae("input", {
248
- type: "hidden",
249
- form: h,
250
- name: k,
251
- value: t,
252
- disabled: O
253
- }, t);
254
- }), [
255
- b,
256
- A,
257
- h,
258
- k,
259
- S,
260
- O
261
- ]);
262
- return /*#__PURE__*/ je(ve.Provider, {
263
- value: Ct,
264
- children: [
265
- We,
266
- /*#__PURE__*/ Ae("input", {
267
- ...E.getValidationProps(O, {
268
- onFocus() {
269
- H.state.triggerElement?.focus({ focusVisible: !0 });
270
- },
271
- onChange(e) {
272
- if (e.nativeEvent.defaultPrevented || O || g) return;
273
- let t = e.currentTarget.value, n = s(ee, e.nativeEvent);
274
- function r() {
275
- if (b) return;
276
- let e = t.toLowerCase(), r = F.current.findIndex((t) => u(t, S).toLowerCase() === e || Te(t, x).toLowerCase() === e);
277
- r === -1 && (r = F.current.findIndex((t, n) => {
278
- let r = N.current[n];
279
- return r != null && r.toLowerCase() === e;
280
- }));
281
- let i = F.current[r];
282
- i != null && J(i, n);
283
- }
284
- H.set("forceMount", !0), queueMicrotask(r);
285
- }
286
- }),
287
- id: D && $ == null ? `${D}-hidden-input` : void 0,
288
- form: h,
289
- name: $,
290
- autoComplete: ze,
291
- value: ft,
292
- disabled: O,
293
- required: _ && !(b && G),
294
- readOnly: g,
295
- ref: wt,
296
- style: k ? re : ne,
297
- tabIndex: -1,
298
- "aria-hidden": !0,
299
- suppressHydrationWarning: !0
300
- }),
301
- Tt
302
- ]
303
- });
304
10
  }
305
11
  //#endregion
306
- export { p as SelectRoot };
12
+ export { e as serializeValue };
307
13
 
308
14
  //# sourceMappingURL=index381.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index381.js","names":["React","REASONS.none"],"sources":["../../../node_modules/@base-ui/react/select/root/SelectRoot.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { visuallyHidden, visuallyHiddenInput } from '@base-ui/utils/visuallyHidden';\nimport { useMergedRefs } from '@base-ui/utils/useMergedRefs';\nimport { useRefWithInit } from '@base-ui/utils/useRefWithInit';\nimport { useOnFirstRender } from '@base-ui/utils/useOnFirstRender';\nimport { usePreviousValue } from '@base-ui/utils/usePreviousValue';\nimport { isElementDisabled } from '@base-ui/utils/isElementDisabled';\nimport { useControlled } from '@base-ui/utils/useControlled';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { useValueAsRef } from '@base-ui/utils/useValueAsRef';\nimport { useStore, ReactStore } from '@base-ui/utils/store';\nimport { EMPTY_ARRAY, EMPTY_OBJECT } from '@base-ui/utils/empty';\nimport { useClick, useDismiss, useFloatingRootContext, useListNavigation, useTypeahead } from \"../../floating-ui-react/index.mjs\";\nimport { SelectRootContext } from \"./SelectRootContext.mjs\";\nimport { useFieldRootContext } from \"../../internals/field-root-context/FieldRootContext.mjs\";\nimport { useRegisterFieldControl } from \"../../internals/field-register-control/useRegisterFieldControl.mjs\";\nimport { useLabelableId } from \"../../internals/labelable-provider/useLabelableId.mjs\";\nimport { useTransitionStatus } from \"../../internals/useTransitionStatus.mjs\";\nimport { selectors } from \"../store.mjs\";\nimport { createChangeEventDetails } from \"../../internals/createBaseUIEventDetails.mjs\";\nimport { REASONS } from \"../../internals/reasons.mjs\";\nimport { useOpenChangeComplete } from \"../../internals/useOpenChangeComplete.mjs\";\nimport { useFormContext } from \"../../internals/form-context/FormContext.mjs\";\nimport { stringifyAsLabel, stringifyAsValue } from \"../../internals/resolveValueLabel.mjs\";\nimport { compareItemEquality, defaultItemEquality, findItemIndex } from \"../../internals/itemEquality.mjs\";\nimport { areArraysEqual } from \"../../internals/areArraysEqual.mjs\";\nimport { useValueChanged } from \"../../internals/useValueChanged.mjs\";\nimport { useOpenInteractionType } from \"../../utils/useOpenInteractionType.mjs\";\nimport { getMaxScrollOffset, normalizeScrollOffset } from \"../../utils/scrollEdges.mjs\";\nimport { FOCUSABLE_POPUP_PROPS } from \"../../utils/popups/index.mjs\";\nimport { mergeProps } from \"../../merge-props/index.mjs\";\n\n/**\n * Groups all parts of the select.\n * Doesn't render its own HTML element.\n *\n * Documentation: [Base UI Select](https://base-ui.com/react/components/select)\n */\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport function SelectRoot(props) {\n const {\n id,\n value: valueProp,\n defaultValue = null,\n onValueChange,\n open: openProp,\n defaultOpen = false,\n onOpenChange,\n name: nameProp,\n form,\n autoComplete,\n disabled: disabledProp = false,\n readOnly = false,\n required = false,\n modal = true,\n actionsRef,\n inputRef,\n onOpenChangeComplete,\n items,\n multiple = false,\n itemToStringLabel,\n itemToStringValue,\n isItemEqualToValue = defaultItemEquality,\n highlightItemOnHover = true,\n children\n } = props;\n const {\n clearErrors\n } = useFormContext();\n const {\n setDirty,\n setTouched,\n setFocused,\n validityData,\n setFilled,\n name: fieldName,\n disabled: fieldDisabled,\n validation,\n validationMode\n } = useFieldRootContext();\n const generatedId = useLabelableId({\n id\n });\n const disabled = fieldDisabled || disabledProp;\n const name = fieldName ?? nameProp;\n const [value, setValueUnwrapped] = useControlled({\n controlled: valueProp,\n default: multiple ? defaultValue ?? EMPTY_ARRAY : defaultValue,\n name: 'Select',\n state: 'value'\n });\n const [open, setOpenUnwrapped] = useControlled({\n controlled: openProp,\n default: defaultOpen,\n name: 'Select',\n state: 'open'\n });\n const listRef = React.useRef([]);\n const labelsRef = React.useRef([]);\n const popupRef = React.useRef(null);\n const scrollHandlerRef = React.useRef(null);\n const scrollArrowsMountedCountRef = React.useRef(0);\n const valueRef = React.useRef(null);\n const valuesRef = React.useRef([]);\n const typingRef = React.useRef(false);\n const firstItemTextRef = React.useRef(null);\n const selectedItemTextRef = React.useRef(null);\n const selectionRef = React.useRef({\n allowSelectedMouseUp: false,\n allowUnselectedMouseUp: false,\n dragY: 0\n });\n const alignItemWithTriggerActiveRef = React.useRef(false);\n const {\n mounted,\n setMounted,\n transitionStatus\n } = useTransitionStatus(open);\n const {\n openMethod,\n triggerProps: interactionTypeProps\n } = useOpenInteractionType(open);\n const store = useRefWithInit(() => new ReactStore({\n id: generatedId,\n labelId: undefined,\n modal,\n multiple,\n itemToStringLabel,\n itemToStringValue,\n isItemEqualToValue,\n value,\n open,\n mounted,\n transitionStatus,\n items,\n forceMount: false,\n openMethod: null,\n activeIndex: null,\n selectedIndex: null,\n popupProps: {},\n triggerProps: {},\n triggerElement: null,\n positionerElement: null,\n listElement: null,\n popupSide: null,\n scrollUpArrowVisible: false,\n scrollDownArrowVisible: false,\n hasScrollArrows: false\n })).current;\n const activeIndex = useStore(store, selectors.activeIndex);\n const selectedIndex = useStore(store, selectors.selectedIndex);\n const triggerElement = useStore(store, selectors.triggerElement);\n const positionerElement = useStore(store, selectors.positionerElement);\n const previousOpenMethod = usePreviousValue(openMethod);\n const renderedOpenMethod = openMethod ?? previousOpenMethod;\n const serializedValue = React.useMemo(() => {\n // In multiple mode the shared input is nameless; per-value entries are submitted via\n // `hiddenInputs`. Its value is therefore irrelevant, and passing the whole array to\n // `stringifyAsValue` would invoke a user `itemToStringValue` with an array it doesn't expect.\n if (multiple) {\n return '';\n }\n return stringifyAsValue(value, itemToStringValue);\n }, [multiple, value, itemToStringValue]);\n const fieldStringValue = React.useMemo(() => {\n if (multiple && Array.isArray(value)) {\n return value.map(currentValue => stringifyAsValue(currentValue, itemToStringValue));\n }\n return stringifyAsValue(value, itemToStringValue);\n }, [multiple, value, itemToStringValue]);\n const controlRef = useValueAsRef(triggerElement);\n const getStringifiedValueForForm = useStableCallback(() => fieldStringValue);\n useRegisterFieldControl(controlRef, generatedId, value, getStringifiedValueForForm, !disabled, nameProp);\n const initialValueRef = React.useRef(value);\n // Mirror the `hasSelectedValue` store selector so the Field's filled state agrees with the\n // trigger/value placeholder semantics (a value serializing to `''` counts as empty).\n const hasSelectedValue = multiple ? Array.isArray(value) && value.length > 0 : value != null && serializedValue !== '';\n useIsoLayoutEffect(() => {\n setFilled(hasSelectedValue);\n }, [hasSelectedValue, setFilled]);\n useIsoLayoutEffect(function syncSelectedIndex() {\n let target = value;\n let empty = false;\n if (multiple) {\n const currentValue = Array.isArray(value) ? value : [];\n empty = currentValue.length === 0;\n target = currentValue[currentValue.length - 1];\n }\n const index = empty ? -1 : findItemIndex(valuesRef.current, target, isItemEqualToValue);\n const nextIndex = index === -1 ? null : index;\n if (nextIndex === null) {\n selectedItemTextRef.current = null;\n }\n if (open) {\n return;\n }\n store.set('selectedIndex', nextIndex);\n }, [multiple, open, value, isItemEqualToValue, store]);\n function isSelectedValueDirty(currentValue) {\n const initialValue = validityData.initialValue;\n if (Array.isArray(currentValue) && Array.isArray(initialValue)) {\n return !areArraysEqual(currentValue, initialValue, (itemValue, initialItemValue) => compareItemEquality(itemValue, initialItemValue, isItemEqualToValue));\n }\n return currentValue !== initialValue;\n }\n useValueChanged(value, () => {\n clearErrors(name);\n setDirty(isSelectedValueDirty(value));\n validation.change(value);\n });\n const setOpen = useStableCallback((nextOpen, eventDetails) => {\n onOpenChange?.(nextOpen, eventDetails);\n if (eventDetails.isCanceled) {\n return;\n }\n setOpenUnwrapped(nextOpen);\n if (!nextOpen && (eventDetails.reason === REASONS.focusOut || eventDetails.reason === REASONS.outsidePress)) {\n setTouched(true);\n setFocused(false);\n if (validationMode === 'onBlur') {\n validation.commit(value);\n }\n }\n });\n const handleUnmount = useStableCallback(() => {\n setMounted(false);\n store.update({\n activeIndex: null,\n openMethod: null,\n scrollUpArrowVisible: false,\n scrollDownArrowVisible: false\n });\n onOpenChangeComplete?.(false);\n });\n useOpenChangeComplete({\n enabled: !actionsRef,\n open,\n ref: popupRef,\n onComplete() {\n if (!open) {\n handleUnmount();\n }\n }\n });\n React.useImperativeHandle(actionsRef, () => ({\n unmount: handleUnmount\n }), [handleUnmount]);\n const setValue = useStableCallback((nextValue, eventDetails) => {\n onValueChange?.(nextValue, eventDetails);\n if (eventDetails.isCanceled) {\n return;\n }\n setValueUnwrapped(nextValue);\n });\n const handleScrollArrowVisibility = useStableCallback(scroller => {\n const maxScrollTop = getMaxScrollOffset(scroller.scrollHeight, scroller.clientHeight);\n const scrollTop = normalizeScrollOffset(scroller.scrollTop, maxScrollTop);\n const shouldShowUp = scrollTop > 0;\n const shouldShowDown = scrollTop < maxScrollTop;\n store.set('scrollUpArrowVisible', shouldShowUp);\n store.set('scrollDownArrowVisible', shouldShowDown);\n });\n const floatingContext = useFloatingRootContext({\n open,\n onOpenChange: setOpen,\n elements: {\n reference: triggerElement,\n floating: positionerElement\n }\n });\n const click = useClick(floatingContext, {\n enabled: !readOnly && !disabled,\n event: 'mousedown'\n });\n const dismiss = useDismiss(floatingContext);\n const listNavigation = useListNavigation(floatingContext, {\n enabled: !readOnly && !disabled,\n listRef,\n activeIndex,\n selectedIndex,\n disabledIndices: EMPTY_ARRAY,\n onNavigate(nextActiveIndex) {\n // Retain the highlight while transitioning out.\n if (nextActiveIndex === null && !open) {\n return;\n }\n store.set('activeIndex', nextActiveIndex);\n },\n focusItemOnHover: highlightItemOnHover\n });\n const typeahead = useTypeahead(floatingContext, {\n enabled: !readOnly && !disabled && (open || !multiple),\n listRef: labelsRef,\n activeIndex,\n selectedIndex,\n // Skip disabled items while matching so typeahead advances to the next selectable item\n // (a click can never select a disabled item and native `<select>` skips them too). Resolve\n // the disabled state from the element via the attribute-only `isElementDisabled` so the\n // hidden, force-mounted items used for closed-trigger typeahead aren't dropped by the\n // `elementsRef`/visibility filter that `disabledIndices` deliberately sidesteps.\n disabledIndices: index => isElementDisabled(listRef.current[index]),\n onMatch(index) {\n if (open) {\n store.set('activeIndex', index);\n } else {\n setValue(valuesRef.current[index], createChangeEventDetails(REASONS.none));\n }\n },\n onTyping(typing) {\n typingRef.current = typing;\n }\n });\n\n // `Select.Trigger` applies the id itself from the store, so it's deliberately not merged here.\n const mergedTriggerProps = React.useMemo(() => mergeProps(typeahead.reference, listNavigation.reference, dismiss.reference, click.reference, interactionTypeProps), [click.reference, typeahead.reference, listNavigation.reference, dismiss.reference, interactionTypeProps]);\n const popupProps = React.useMemo(() => mergeProps(FOCUSABLE_POPUP_PROPS, typeahead.floating, listNavigation.floating, dismiss.floating), [typeahead.floating, listNavigation.floating, dismiss.floating]);\n const itemProps = listNavigation.item ?? EMPTY_OBJECT;\n useOnFirstRender(() => {\n store.update({\n popupProps,\n triggerProps: mergedTriggerProps\n });\n });\n store.useSyncedValues({\n id: generatedId,\n modal,\n multiple,\n value,\n open,\n mounted,\n transitionStatus,\n popupProps,\n triggerProps: mergedTriggerProps,\n items,\n itemToStringLabel,\n itemToStringValue,\n isItemEqualToValue,\n openMethod: renderedOpenMethod\n });\n const contextValue = React.useMemo(() => ({\n store,\n floatingContext,\n required,\n disabled,\n readOnly,\n multiple,\n highlightItemOnHover,\n setValue,\n setOpen,\n listRef,\n popupRef,\n scrollHandlerRef,\n handleScrollArrowVisibility,\n scrollArrowsMountedCountRef,\n itemProps,\n valueRef,\n valuesRef,\n labelsRef,\n typingRef,\n selectionRef,\n firstItemTextRef,\n selectedItemTextRef,\n validation,\n onOpenChangeComplete,\n alignItemWithTriggerActiveRef,\n initialValueRef\n }), [store, floatingContext, required, disabled, readOnly, multiple, highlightItemOnHover, setValue, setOpen, itemProps, validation, onOpenChangeComplete, handleScrollArrowVisibility]);\n const ref = useMergedRefs(inputRef, validation.inputRef);\n const hiddenInputName = multiple ? undefined : name;\n const hiddenInputs = React.useMemo(() => {\n if (!multiple || !Array.isArray(value) || !name) {\n return null;\n }\n return value.map(v => {\n const currentSerializedValue = stringifyAsValue(v, itemToStringValue);\n return /*#__PURE__*/_jsx(\"input\", {\n type: \"hidden\",\n form: form,\n name: name,\n value: currentSerializedValue,\n disabled: disabled\n }, currentSerializedValue);\n });\n }, [multiple, value, form, name, itemToStringValue, disabled]);\n return /*#__PURE__*/_jsxs(SelectRootContext.Provider, {\n value: contextValue,\n children: [children, /*#__PURE__*/_jsx(\"input\", {\n ...validation.getValidationProps(disabled, {\n onFocus() {\n // Move focus to the trigger element when the hidden input is focused.\n store.state.triggerElement?.focus({\n // Supported in Chrome from 144 (January 2026)\n focusVisible: true\n });\n },\n // Handle browser autofill.\n onChange(event) {\n // Workaround for https://github.com/react/react/issues/9023\n if (event.nativeEvent.defaultPrevented || disabled || readOnly) {\n return;\n }\n const nextValue = event.currentTarget.value;\n const details = createChangeEventDetails(REASONS.none, event.nativeEvent);\n function handleChange() {\n if (multiple) {\n // Browser autofill only writes a single scalar value.\n return;\n }\n\n // Preserve the original serialized matching, then fall back to rendered text,\n // which browsers can autofill for primitive values like `value=\"US\">United States`.\n const nextValueLower = nextValue.toLowerCase();\n let matchingIndex = valuesRef.current.findIndex(candidate => stringifyAsValue(candidate, itemToStringValue).toLowerCase() === nextValueLower || stringifyAsLabel(candidate, itemToStringLabel).toLowerCase() === nextValueLower);\n if (matchingIndex === -1) {\n matchingIndex = valuesRef.current.findIndex((_, index) => {\n const renderedLabel = labelsRef.current[index];\n return renderedLabel != null && renderedLabel.toLowerCase() === nextValueLower;\n });\n }\n const matchingValue = valuesRef.current[matchingIndex];\n if (matchingValue != null) {\n // `setValue` may be canceled by `onValueChange`; rely on `useValueChanged` to\n // mark the field dirty and run validation only when the value actually changes.\n setValue(matchingValue, details);\n }\n }\n store.set('forceMount', true);\n queueMicrotask(handleChange);\n }\n }),\n id: generatedId && hiddenInputName == null ? `${generatedId}-hidden-input` : undefined,\n form: form,\n name: hiddenInputName,\n autoComplete: autoComplete,\n value: serializedValue,\n disabled: disabled,\n required: required && !(multiple && hasSelectedValue),\n readOnly: readOnly,\n ref: ref,\n style: name ? visuallyHiddenInput : visuallyHidden,\n tabIndex: -1,\n \"aria-hidden\": true,\n suppressHydrationWarning: true\n }), hiddenInputs]\n });\n}"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0CA,SAAgB,EAAW,GAAO;CAChC,IAAM,EACJ,QACA,OAAO,IACP,mBAAe,MACf,mBACA,MAAM,IACN,kBAAc,IACd,kBACA,MAAM,GACN,SACA,kBACA,UAAU,KAAe,IACzB,cAAW,IACX,cAAW,IACX,YAAQ,IACR,gBACA,cACA,yBACA,UACA,cAAW,IACX,sBACA,sBACA,wBAAqB,IACrB,0BAAuB,IACvB,iBACE,GACE,EACJ,oBACE,GAAe,GACb,EACJ,cACA,gBACA,gBACA,kBACA,cACA,MAAM,IACN,UAAU,IACV,eACA,uBACE,GAAoB,GAClB,IAAc,GAAe,EACjC,OACF,CAAC,GACK,IAAW,MAAiB,IAC5B,IAAO,MAAa,GACpB,CAAC,GAAO,MAAqB,EAAc;EAC/C,YAAY;EACZ,SAAS,IAAW,MAAgB,IAAc;EAClD,MAAM;EACN,OAAO;CACT,CAAC,GACK,CAAC,GAAM,MAAoB,EAAc;EAC7C,YAAY;EACZ,SAAS;EACT,MAAM;EACN,OAAO;CACT,CAAC,GACK,IAAUA,EAAM,OAAO,CAAC,CAAC,GACzB,IAAYA,EAAM,OAAO,CAAC,CAAC,GAC3B,IAAWA,EAAM,OAAO,IAAI,GAC5B,K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CAAsB;CAC3B,CAAC,GACA;EAAC;EAAU;EAAO;EAAM;EAAM;EAAmB;CAAQ,CAAC;CAC7D,OAAoB,iBAAM,GAAkB,UAAU;EACpD,OAAO;EACP,UAAU;GAAC;GAAuB,iBAAK,SAAS;IAC9C,GAAG,EAAW,mBAAmB,GAAU;KACzC,UAAU;MAER,EAAM,MAAM,gBAAgB,MAAM,EAEhC,cAAc,GAChB,CAAC;KACH;KAEA,SAAS,GAAO;MAEd,IAAI,EAAM,YAAY,oBAAoB,KAAY,GACpD;MAEF,IAAM,IAAY,EAAM,cAAc,OAChC,IAAU,EAAyBC,IAAc,EAAM,WAAW;MACxE,SAAS,IAAe;OACtB,IAAI,GAEF;OAKF,IAAM,IAAiB,EAAU,YAAY,GACzC,IAAgB,EAAU,QAAQ,WAAU,MAAa,EAAiB,GAAW,CAAiB,CAAC,CAAC,YAAY,MAAM,KAAkB,GAAiB,GAAW,CAAiB,CAAC,CAAC,YAAY,MAAM,CAAc;OAC/N,AAAI,MAAkB,OACpB,IAAgB,EAAU,QAAQ,WAAW,GAAG,MAAU;QACxD,IAAM,IAAgB,EAAU,QAAQ;QACxC,OAAO,KAAiB,QAAQ,EAAc,YAAY,MAAM;OAClE,CAAC;OAEH,IAAM,IAAgB,EAAU,QAAQ;OACxC,AAAI,KAAiB,QAGnB,EAAS,GAAe,CAAO;MAEnC;MAEA,AADA,EAAM,IAAI,cAAc,EAAI,GAC5B,eAAe,CAAY;KAC7B;IACF,CAAC;IACD,IAAI,KAAe,KAAmB,OAAO,GAAG,EAAY,iBAAiB,KAAA;IACvE;IACN,MAAM;IACQ;IACd,OAAO;IACG;IACV,UAAU,KAAY,EAAE,KAAY;IAC1B;IACL;IACL,OAAO,IAAO,KAAsB;IACpC,UAAU;IACV,eAAe;IACf,0BAA0B;GAC5B,CAAC;GAAG;EAAY;CAClB,CAAC;AACH"}
1
+ {"version":3,"file":"index381.js","names":["serializeValue","value"],"sources":["../../../node_modules/@base-ui/react/internals/serializeValue.mjs"],"sourcesContent":["export function serializeValue(value) {\n if (value == null) {\n return '';\n }\n if (typeof value === 'string') {\n return value;\n }\n try {\n return JSON.stringify(value);\n } catch {\n return String(value);\n }\n}"],"ignoreList":[0],"mappings":";AAAA,SAAgBA,EAAe,GAAO;CACpC,IAAIC,KAAS,MACX,OAAO;CAET,IAAI,OAAOA,KAAU,UACnB,OAAOA;CAET,IAAI;EACF,OAAO,KAAK,UAAUA,CAAK;CAC7B,QAAQ;EACN,OAAO,OAAOA,CAAK;CACrB;AACF"}
package/dist/index382.js CHANGED
@@ -1,9 +1,62 @@
1
1
  "use client";
2
- //#region ../../node_modules/@base-ui/react/utils/resolveAriaLabelledBy.mjs
3
- function e(e, t) {
4
- return e ?? t;
2
+ import { serializeValue as e } from "./index381.js";
3
+ import * as t from "react";
4
+ import { jsx as n } from "react/jsx-runtime";
5
+ //#region ../../node_modules/@base-ui/react/internals/resolveValueLabel.mjs
6
+ function r(e) {
7
+ return typeof e == "object" && !!e && Array.isArray(e.items);
8
+ }
9
+ function i(e) {
10
+ return r(e?.[0]);
11
+ }
12
+ function a(e) {
13
+ return i(e) ? e.flatMap((e) => e.items) : e;
14
+ }
15
+ function o(e) {
16
+ if (!Array.isArray(e)) return e != null && "null" in e;
17
+ let t = e;
18
+ if (i(t)) {
19
+ for (let e of t) for (let t of e.items) if (t && t.value == null && t.label != null) return !0;
20
+ return !1;
21
+ }
22
+ for (let e of t) if (e && e.value == null && e.label != null) return !0;
23
+ return !1;
24
+ }
25
+ function s(t, n) {
26
+ if (n && t != null) return n(t) ?? "";
27
+ if (t && typeof t == "object") {
28
+ if ("label" in t && t.label != null) return String(t.label);
29
+ if ("value" in t) return String(t.value);
30
+ }
31
+ return e(t);
32
+ }
33
+ function c(t, n) {
34
+ return n && t != null ? n(t) ?? "" : t && typeof t == "object" && "value" in t && "label" in t ? e(t.value) : e(t);
35
+ }
36
+ function l(e, t, n) {
37
+ function r() {
38
+ return s(e, n);
39
+ }
40
+ if (n && e != null) return n(e);
41
+ if (e && typeof e == "object" && "label" in e && e.label != null) return e.label;
42
+ if (t && !Array.isArray(t)) return (Object.hasOwn(t, e) ? t[e] : void 0) ?? r();
43
+ if (Array.isArray(t)) {
44
+ let n = a(t);
45
+ if (typeof e != "object" || !e) {
46
+ let t = n.find((t) => t.value === e);
47
+ return t && t.label != null ? t.label : r();
48
+ }
49
+ if ("value" in e) {
50
+ let t = n.find((t) => t && t.value === e.value);
51
+ if (t && t.label != null) return t.label;
52
+ }
53
+ }
54
+ return r();
55
+ }
56
+ function u(e, r, i) {
57
+ return e.reduce((e, a, o) => (o > 0 && e.push(", "), e.push(/*#__PURE__*/ n(t.Fragment, { children: l(a, r, i) }, o)), e), []);
5
58
  }
6
59
  //#endregion
7
- export { e as resolveAriaLabelledBy };
60
+ export { a as flattenLeafItems, o as hasNullItemLabel, i as isGroupedItems, u as resolveMultipleLabels, l as resolveSelectedLabel, s as stringifyAsLabel, c as stringifyAsValue };
8
61
 
9
62
  //# sourceMappingURL=index382.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index382.js","names":[],"sources":["../../../node_modules/@base-ui/react/utils/resolveAriaLabelledBy.mjs"],"sourcesContent":["'use client';\n\nexport function getDefaultLabelId(id) {\n return id == null ? undefined : `${id}-label`;\n}\nexport function resolveAriaLabelledBy(fieldLabelId, localLabelId) {\n return fieldLabelId ?? localLabelId;\n}"],"x_google_ignoreList":[0],"mappings":";;AAKA,SAAgB,EAAsB,GAAc,GAAc;CAChE,OAAO,KAAgB;AACzB"}
1
+ {"version":3,"file":"index382.js","names":["arrayItems","React","React$1","isGroup","item","isGroupedItems","items","flattenLeafItems","group","hasNullItemLabel","arrayItems","stringifyAsLabel","itemToStringLabel","serializeValue","stringifyAsValue","itemToStringValue","resolveSelectedLabel","fallback","value","flatItems","match","resolveMultipleLabels","values","index","acc"],"sources":["../../../node_modules/@base-ui/react/internals/resolveValueLabel.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { serializeValue } from \"./serializeValue.mjs\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction isGroup(item) {\n return typeof item === 'object' && item != null && Array.isArray(item.items);\n}\nexport function isGroupedItems(items) {\n // A group must carry an actual `items` array: key presence alone would misclassify an item\n // with an unrelated or optional `items` field.\n return isGroup(items?.[0]);\n}\nexport function flattenLeafItems(items) {\n return isGroupedItems(items) ? items.flatMap(group => group.items) : items;\n}\n\n/**\n * Checks if the items array contains an item with a null value that has a non-null label.\n */\nexport function hasNullItemLabel(items) {\n if (!Array.isArray(items)) {\n return items != null && 'null' in items;\n }\n const arrayItems = items;\n if (isGroupedItems(arrayItems)) {\n for (const group of arrayItems) {\n for (const item of group.items) {\n if (item && item.value == null && item.label != null) {\n return true;\n }\n }\n }\n return false;\n }\n for (const item of arrayItems) {\n if (item && item.value == null && item.label != null) {\n return true;\n }\n }\n return false;\n}\nexport function stringifyAsLabel(item, itemToStringLabel) {\n if (itemToStringLabel && item != null) {\n return itemToStringLabel(item) ?? '';\n }\n if (item && typeof item === 'object') {\n if ('label' in item && item.label != null) {\n return String(item.label);\n }\n if ('value' in item) {\n return String(item.value);\n }\n }\n return serializeValue(item);\n}\nexport function stringifyAsValue(item, itemToStringValue) {\n if (itemToStringValue && item != null) {\n return itemToStringValue(item) ?? '';\n }\n if (item && typeof item === 'object' && 'value' in item && 'label' in item) {\n return serializeValue(item.value);\n }\n return serializeValue(item);\n}\nexport function resolveSelectedLabel(value, items, itemToStringLabel) {\n function fallback() {\n return stringifyAsLabel(value, itemToStringLabel);\n }\n if (itemToStringLabel && value != null) {\n return itemToStringLabel(value);\n }\n\n // Custom object with explicit label takes precedence\n if (value && typeof value === 'object' && 'label' in value && value.label != null) {\n return value.label;\n }\n\n // Items provided as plain record map\n if (items && !Array.isArray(items)) {\n const label = Object.hasOwn(items, value) ? items[value] : undefined;\n return label ?? fallback();\n }\n\n // Items provided as array (flat or grouped)\n if (Array.isArray(items)) {\n const arrayItems = items;\n const flatItems = flattenLeafItems(arrayItems);\n if (value == null || typeof value !== 'object') {\n const match = flatItems.find(item => item.value === value);\n if (match && match.label != null) {\n return match.label;\n }\n return fallback();\n }\n\n // Object without explicit label: try matching by its `value` property\n if ('value' in value) {\n const match = flatItems.find(item => item && item.value === value.value);\n if (match && match.label != null) {\n return match.label;\n }\n }\n }\n return fallback();\n}\nexport function resolveMultipleLabels(values, items, itemToStringLabel) {\n return values.reduce((acc, value, index) => {\n if (index > 0) {\n acc.push(', ');\n }\n acc.push(/*#__PURE__*/_jsx(React.Fragment, {\n children: resolveSelectedLabel(value, items, itemToStringLabel)\n }, index));\n return acc;\n }, []);\n}"],"ignoreList":[0],"mappings":";;;;;AAKA,SAASG,EAAQ,GAAM;CACrB,OAAO,OAAOC,KAAS,cAAYA,KAAgB,MAAM,QAAQA,EAAK,KAAK;AAC7E;AACA,SAAgBC,EAAe,GAAO;CAGpC,OAAOF,EAAQG,IAAQ,EAAE;AAC3B;AACA,SAAgBC,EAAiB,GAAO;CACtC,OAAOF,EAAeC,CAAK,IAAIA,EAAM,SAAQ,MAASE,EAAM,KAAK,IAAIF;AACvE;AAKA,SAAgBG,EAAiB,GAAO;CACtC,IAAI,CAAC,MAAM,QAAQH,CAAK,GACtB,OAAOA,KAAS,QAAQ,UAAUA;CAEpC,IAAMI,IAAaJ;CACnB,IAAID,EAAeK,CAAU,GAAG;EAC9B,KAAK,IAAMF,KAASE,GAClB,KAAK,IAAMN,KAAQI,EAAM,OACvB,IAAIJ,KAAQA,EAAK,SAAS,QAAQA,EAAK,SAAS,MAC9C,OAAO;EAIb,OAAO;CACT;CACA,KAAK,IAAMA,KAAQM,GACjB,IAAIN,KAAQA,EAAK,SAAS,QAAQA,EAAK,SAAS,MAC9C,OAAO;CAGX,OAAO;AACT;AACA,SAAgBO,EAAiB,GAAM,GAAmB;CACxD,IAAIC,KAAqBR,KAAQ,MAC/B,OAAOQ,EAAkBR,CAAI,KAAK;CAEpC,IAAIA,KAAQ,OAAOA,KAAS,UAAU;EACpC,I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IAAQ,KACVC,EAAI,KAAK,IAAI,GAEfA,EAAI,KAAkB,gBAAKvB,EAAM,UAAU,EACzC,UAAUe,EAAqBE,GAAOZ,GAAOM,CAAiB,EAChE,GAAGW,CAAK,CAAC,GACFC,IACN,CAAC,CAAC;AACP"}
package/dist/index383.js CHANGED
@@ -1,25 +1,43 @@
1
- import { getWindow as e } from "./index200.js";
2
- import { jsdom as t } from "./index222.js";
3
- //#region ../../node_modules/@base-ui/react/utils/getPseudoElementBounds.mjs
4
- var n = 5;
5
- function r(e, t) {
6
- let r = i(t);
7
- return e.clientX >= r.left - n && e.clientX <= r.right + n && e.clientY >= r.top - n && e.clientY <= r.bottom + n;
8
- }
9
- function i(n) {
10
- let r = n.getBoundingClientRect(), i = e(n);
11
- if (t) return r;
12
- let a = i.getComputedStyle(n, "::before"), o = i.getComputedStyle(n, "::after");
13
- if (a.content === "none" && o.content === "none") return r;
14
- let s = parseFloat(a.width) || 0, c = parseFloat(a.height) || 0, l = parseFloat(o.width) || 0, u = parseFloat(o.height) || 0, d = Math.max(r.width, s, l), f = Math.max(r.height, c, u), p = d - r.width, m = f - r.height;
15
- return {
16
- left: r.left - p / 2,
17
- right: r.right + p / 2,
18
- top: r.top - m / 2,
19
- bottom: r.bottom + m / 2
20
- };
21
- }
1
+ import { compareItemEquality as e } from "./index380.js";
2
+ import { hasNullItemLabel as t, stringifyAsValue as n } from "./index382.js";
3
+ //#region ../../node_modules/@base-ui/react/select/store.mjs
4
+ var r = {
5
+ id: (e) => e.id,
6
+ labelId: (e) => e.labelId,
7
+ modal: (e) => e.modal,
8
+ items: (e) => e.items,
9
+ itemToStringLabel: (e) => e.itemToStringLabel,
10
+ isItemEqualToValue: (e) => e.isItemEqualToValue,
11
+ value: (e) => e.value,
12
+ hasSelectedValue: (e) => {
13
+ let { value: t, multiple: r, itemToStringValue: i } = e;
14
+ return t == null ? !1 : r && Array.isArray(t) ? t.length > 0 : n(t, i) !== "";
15
+ },
16
+ hasNullItemLabel: (e, n) => n ? t(e.items) : !1,
17
+ open: (e) => e.open,
18
+ mounted: (e) => e.mounted,
19
+ forceMount: (e) => e.forceMount,
20
+ transitionStatus: (e) => e.transitionStatus,
21
+ openMethod: (e) => e.openMethod,
22
+ activeIndex: (e) => e.activeIndex,
23
+ selectedIndex: (e) => e.selectedIndex,
24
+ isActive: (e, t) => e.activeIndex === t,
25
+ isSelected: (t, n) => {
26
+ let r = t.isItemEqualToValue, i = t.value;
27
+ return t.multiple ? Array.isArray(i) && i.some((t) => e(n, t, r)) : e(n, i, r);
28
+ },
29
+ isSelectedByFocus: (e, t) => e.selectedIndex === t,
30
+ popupProps: (e) => e.popupProps,
31
+ triggerProps: (e) => e.triggerProps,
32
+ triggerElement: (e) => e.triggerElement,
33
+ positionerElement: (e) => e.positionerElement,
34
+ listElement: (e) => e.listElement,
35
+ popupSide: (e) => e.popupSide,
36
+ scrollUpArrowVisible: (e) => e.scrollUpArrowVisible,
37
+ scrollDownArrowVisible: (e) => e.scrollDownArrowVisible,
38
+ hasScrollArrows: (e) => e.hasScrollArrows
39
+ };
22
40
  //#endregion
23
- export { i as getPseudoElementBounds, r as isMouseWithinBounds };
41
+ export { r as selectors };
24
42
 
25
43
  //# sourceMappingURL=index383.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index383.js","names":["ownerWindow","platform.env.jsdom"],"sources":["../../../node_modules/@base-ui/react/utils/getPseudoElementBounds.mjs"],"sourcesContent":["import { ownerWindow } from '@base-ui/utils/owner';\nimport { platform } from '@base-ui/utils/platform';\n// Tolerance around the element bounds so a fast click whose pointer drifts slightly\n// during press-release isn't mistaken for a drag-off-and-release cancellation.\n// Matches typical OS/browser drag-initiation thresholds.\nconst BOUNDARY_OFFSET = 5;\n\n/**\n * Determines if a mouse event occurred within the bounds of an element\n * (including its pseudo-elements), with a small tolerance for pointer drift.\n */\nexport function isMouseWithinBounds(event, element) {\n const bounds = getPseudoElementBounds(element);\n return event.clientX >= bounds.left - BOUNDARY_OFFSET && event.clientX <= bounds.right + BOUNDARY_OFFSET && event.clientY >= bounds.top - BOUNDARY_OFFSET && event.clientY <= bounds.bottom + BOUNDARY_OFFSET;\n}\nexport function getPseudoElementBounds(element) {\n const elementRect = element.getBoundingClientRect();\n const win = ownerWindow(element);\n\n // Avoid \"Not implemented: window.getComputedStyle(elt, pseudoElt)\" in jsdom.\n if (platform.env.jsdom) {\n return elementRect;\n }\n const beforeStyles = win.getComputedStyle(element, '::before');\n const afterStyles = win.getComputedStyle(element, '::after');\n const hasPseudoElements = beforeStyles.content !== 'none' || afterStyles.content !== 'none';\n if (!hasPseudoElements) {\n return elementRect;\n }\n\n // Get dimensions of pseudo-elements\n const beforeWidth = parseFloat(beforeStyles.width) || 0;\n const beforeHeight = parseFloat(beforeStyles.height) || 0;\n const afterWidth = parseFloat(afterStyles.width) || 0;\n const afterHeight = parseFloat(afterStyles.height) || 0;\n\n // Calculate max dimensions including pseudo-elements\n const totalWidth = Math.max(elementRect.width, beforeWidth, afterWidth);\n const totalHeight = Math.max(elementRect.height, beforeHeight, afterHeight);\n\n // Calculate the differences to extend the bounds\n const widthDiff = totalWidth - elementRect.width;\n const heightDiff = totalHeight - elementRect.height;\n return {\n left: elementRect.left - widthDiff / 2,\n right: elementRect.right + widthDiff / 2,\n top: elementRect.top - heightDiff / 2,\n bottom: elementRect.bottom + heightDiff / 2\n };\n}"],"x_google_ignoreList":[0],"mappings":";;;AAKA,IAAM,IAAkB;AAMxB,SAAgB,EAAoB,GAAO,GAAS;CAClD,IAAM,IAAS,EAAuB,CAAO;CAC7C,OAAO,EAAM,WAAW,EAAO,OAAO,KAAmB,EAAM,WAAW,EAAO,QAAQ,KAAmB,EAAM,WAAW,EAAO,MAAM,KAAmB,EAAM,WAAW,EAAO,SAAS;AAChM;AACA,SAAgB,EAAuB,GAAS;CAC9C,IAAM,IAAc,EAAQ,sBAAsB,GAC5C,IAAMA,EAAY,CAAO;CAG/B,IAAIC,GACF,OAAO;CAET,IAAM,IAAe,EAAI,iBAAiB,GAAS,UAAU,GACvD,IAAc,EAAI,iBAAiB,GAAS,SAAS;CAE3D,IAD0B,EAAa,YAAY,UAAU,EAAY,YAAY,QAEnF,OAAO;CAIT,IAAM,IAAc,WAAW,EAAa,KAAK,KAAK,GAChD,IAAe,WAAW,EAAa,MAAM,KAAK,GAClD,IAAa,WAAW,EAAY,KAAK,KAAK,GAC9C,IAAc,WAAW,EAAY,MAAM,KAAK,GAGhD,IAAa,KAAK,IAAI,EAAY,OAAO,GAAa,CAAU,GAChE,IAAc,KAAK,IAAI,EAAY,QAAQ,GAAc,CAAW,GAGpE,IAAY,IAAa,EAAY,OACrC,IAAa,IAAc,EAAY;CAC7C,OAAO;EACL,MAAM,EAAY,OAAO,IAAY;EACrC,OAAO,EAAY,QAAQ,IAAY;EACvC,KAAK,EAAY,MAAM,IAAa;EACpC,QAAQ,EAAY,SAAS,IAAa;CAC5C;AACF"}
1
+ {"version":3,"file":"index383.js","names":["selectors","state","value","multiple","stringifyAsValue","itemToStringValue","enabled","hasNullItemLabel","index","comparer","storeValue","compareItemEquality","itemValue","selectedItem"],"sources":["../../../node_modules/@base-ui/react/select/store.mjs"],"sourcesContent":["import { compareItemEquality } from \"../internals/itemEquality.mjs\";\nimport { hasNullItemLabel, stringifyAsValue } from \"../internals/resolveValueLabel.mjs\";\n\n/**\n * Non-reactive values shared with the select parts. Nothing here is observable through\n * `selectors`, so writing to a ref never notifies subscribers.\n */\n\nexport const selectors = {\n id: state => state.id,\n labelId: state => state.labelId,\n modal: state => state.modal,\n items: state => state.items,\n itemToStringLabel: state => state.itemToStringLabel,\n isItemEqualToValue: state => state.isItemEqualToValue,\n value: state => state.value,\n hasSelectedValue: state => {\n const {\n value,\n multiple,\n itemToStringValue\n } = state;\n if (value == null) {\n return false;\n }\n if (multiple && Array.isArray(value)) {\n return value.length > 0;\n }\n return stringifyAsValue(value, itemToStringValue) !== '';\n },\n hasNullItemLabel: (state, enabled) => {\n return enabled ? hasNullItemLabel(state.items) : false;\n },\n open: state => state.open,\n mounted: state => state.mounted,\n forceMount: state => state.forceMount,\n transitionStatus: state => state.transitionStatus,\n openMethod: state => state.openMethod,\n activeIndex: state => state.activeIndex,\n selectedIndex: state => state.selectedIndex,\n isActive: (state, index) => state.activeIndex === index,\n isSelected: (state, itemValue) => {\n const comparer = state.isItemEqualToValue;\n const storeValue = state.value;\n if (state.multiple) {\n return Array.isArray(storeValue) && storeValue.some(selectedItem => compareItemEquality(itemValue, selectedItem, comparer));\n }\n\n // The value is the source of truth: a stale `selectedIndex` (e.g. the controlled\n // value changes while the popup is open, where the index sync is deferred) must not\n // keep a previously selected item marked as selected.\n return compareItemEquality(itemValue, storeValue, comparer);\n },\n isSelectedByFocus: (state, index) => {\n return state.selectedIndex === index;\n },\n popupProps: state => state.popupProps,\n triggerProps: state => state.triggerProps,\n triggerElement: state => state.triggerElement,\n positionerElement: state => state.positionerElement,\n listElement: state => state.listElement,\n popupSide: state => state.popupSide,\n scrollUpArrowVisible: state => state.scrollUpArrowVisible,\n scrollDownArrowVisible: state => state.scrollDownArrowVisible,\n hasScrollArrows: state => state.hasScrollArrows\n};"],"ignoreList":[0],"mappings":";;;AAQA,IAAaA,IAAY;CACvB,KAAI,MAASC,EAAM;CACnB,UAAS,MAASA,EAAM;CACxB,QAAO,MAASA,EAAM;CACtB,QAAO,MAASA,EAAM;CACtB,oBAAmB,MAASA,EAAM;CAClC,qBAAoB,MAASA,EAAM;CACnC,QAAO,MAASA,EAAM;CACtB,mBAAkB,MAAS;EACzB,IAAM,EACJ,UACA,aACA,yBACEA;EAOJ,OANIC,KAAS,OACJ,KAELC,KAAY,MAAM,QAAQD,CAAK,IAC1BA,EAAM,SAAS,IAEjBE,EAAiBF,GAAOG,CAAiB,MAAM;CACxD;CACA,mBAAmB,GAAO,MACjBC,IAAUC,EAAiBN,EAAM,KAAK,IAAI;CAEnD,OAAM,MAASA,EAAM;CACrB,UAAS,MAASA,EAAM;CACxB,aAAY,MAASA,EAAM;CAC3B,mBAAkB,MAASA,EAAM;CACjC,aAAY,MAASA,EAAM;CAC3B,cAAa,MAASA,EAAM;CAC5B,gBAAe,MAASA,EAAM;CAC9B,WAAW,GAAO,MAAUA,EAAM,gBAAgBO;CAClD,aAAa,GAAO,MAAc;EAChC,IAAMC,IAAWR,EAAM,oBACjBS,IAAaT,EAAM;EAQzB,OAPIA,EAAM,WACD,MAAM,QAAQS,CAAU,KAAKA,EAAW,MAAK,MAAgBC,EAAoBC,GAAWC,GAAcJ,CAAQ,CAAC,IAMrHE,EAAoBC,GAAWF,GAAYD,CAAQ;CAC5D;CACA,oBAAoB,GAAO,MAClBR,EAAM,kBAAkBO;CAEjC,aAAY,MAASP,EAAM;CAC3B,eAAc,MAASA,EAAM;CAC7B,iBAAgB,MAASA,EAAM;CAC/B,oBAAmB,MAASA,EAAM;CAClC,cAAa,MAASA,EAAM;CAC5B,YAAW,MAASA,EAAM;CAC1B,uBAAsB,MAASA,EAAM;CACrC,yBAAwB,MAASA,EAAM;CACvC,kBAAiB,MAASA,EAAM;AAClC"}