@rpcbase/ui 0.280.0 → 0.281.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 (518) hide show
  1. package/dist/components/AddressAutocompleteInput/index.d.ts +1 -1
  2. package/dist/components/AddressAutocompleteInput/index.d.ts.map +1 -1
  3. package/dist/components/ApplePayButton/index.d.ts +1 -1
  4. package/dist/components/ApplePayButton/index.d.ts.map +1 -1
  5. package/dist/components/Checkbox/index.d.ts +1 -1
  6. package/dist/components/Checkbox/index.d.ts.map +1 -1
  7. package/dist/components/DayPickerField/index.d.ts +2 -2
  8. package/dist/components/DayPickerField/index.d.ts.map +1 -1
  9. package/dist/components/Dialog/index.d.ts +9 -9
  10. package/dist/components/Dialog/index.d.ts.map +1 -1
  11. package/dist/components/FilesUploadField/index.d.ts +1 -1
  12. package/dist/components/FilesUploadField/index.d.ts.map +1 -1
  13. package/dist/components/HourPickerField/index.d.ts +2 -2
  14. package/dist/components/HourPickerField/index.d.ts.map +1 -1
  15. package/dist/components/I18nField/index.d.ts +1 -1
  16. package/dist/components/I18nField/index.d.ts.map +1 -1
  17. package/dist/components/Image/index.d.ts +1 -1
  18. package/dist/components/Image/index.d.ts.map +1 -1
  19. package/dist/components/ImagesField/index.d.ts +1 -1
  20. package/dist/components/ImagesField/index.d.ts.map +1 -1
  21. package/dist/components/Input/index.d.ts +1 -1
  22. package/dist/components/Input/index.d.ts.map +1 -1
  23. package/dist/components/Notifications/NotificationsButton.d.ts +1 -1
  24. package/dist/components/Notifications/NotificationsButton.d.ts.map +1 -1
  25. package/dist/components/Notifications/NotificationsDrawer.d.ts +1 -1
  26. package/dist/components/Notifications/NotificationsDrawer.d.ts.map +1 -1
  27. package/dist/components/Notifications/NotificationsSettings.d.ts +1 -1
  28. package/dist/components/Notifications/NotificationsSettings.d.ts.map +1 -1
  29. package/dist/components/PhoneNumberInput/suggestions.d.ts +3 -3
  30. package/dist/components/PhoneNumberInput/suggestions.d.ts.map +1 -1
  31. package/dist/components/Select/index.d.ts +2 -2
  32. package/dist/components/Select/index.d.ts.map +1 -1
  33. package/dist/components/header/MenuPopover/index.d.ts +1 -1
  34. package/dist/components/header/MenuPopover/index.d.ts.map +1 -1
  35. package/dist/index.js +12 -12
  36. package/dist/index10.js +6 -4
  37. package/dist/index10.js.map +1 -1
  38. package/dist/index12.js.map +1 -1
  39. package/dist/index13.js.map +1 -1
  40. package/dist/index14.js.map +1 -1
  41. package/dist/index15.js.map +1 -1
  42. package/dist/index154.js +19 -7
  43. package/dist/index154.js.map +1 -1
  44. package/dist/index16.js +36 -45
  45. package/dist/index16.js.map +1 -1
  46. package/dist/index160.js +3 -3
  47. package/dist/index160.js.map +1 -1
  48. package/dist/index166.js +5 -5
  49. package/dist/index166.js.map +1 -1
  50. package/dist/index172.js +27 -25
  51. package/dist/index172.js.map +1 -1
  52. package/dist/index181.js +1 -1
  53. package/dist/index181.js.map +1 -1
  54. package/dist/index182.js +145 -162
  55. package/dist/index182.js.map +1 -1
  56. package/dist/index184.js +6 -8
  57. package/dist/index184.js.map +1 -1
  58. package/dist/index186.js +2 -8
  59. package/dist/index186.js.map +1 -1
  60. package/dist/index19.js +1 -1
  61. package/dist/index19.js.map +1 -1
  62. package/dist/index195.js +1 -1
  63. package/dist/index195.js.map +1 -1
  64. package/dist/index196.js +2 -2
  65. package/dist/index196.js.map +1 -1
  66. package/dist/index197.js +1 -1
  67. package/dist/index197.js.map +1 -1
  68. package/dist/index198.js +16 -15
  69. package/dist/index198.js.map +1 -1
  70. package/dist/index199.js +13 -17
  71. package/dist/index199.js.map +1 -1
  72. package/dist/index200.js +3 -2
  73. package/dist/index200.js.map +1 -1
  74. package/dist/index207.js +5 -90
  75. package/dist/index207.js.map +1 -1
  76. package/dist/index208.js +15 -3
  77. package/dist/index208.js.map +1 -1
  78. package/dist/index209.js +102 -22
  79. package/dist/index209.js.map +1 -1
  80. package/dist/index210.js +3 -28
  81. package/dist/index210.js.map +1 -1
  82. package/dist/index211.js +23 -19
  83. package/dist/index211.js.map +1 -1
  84. package/dist/index212.js +27 -6
  85. package/dist/index212.js.map +1 -1
  86. package/dist/index213.js +19 -14
  87. package/dist/index213.js.map +1 -1
  88. package/dist/index214.js +5 -6
  89. package/dist/index214.js.map +1 -1
  90. package/dist/index215.js +14 -26
  91. package/dist/index215.js.map +1 -1
  92. package/dist/index216.js +7 -22
  93. package/dist/index216.js.map +1 -1
  94. package/dist/index217.js +27 -6
  95. package/dist/index217.js.map +1 -1
  96. package/dist/index218.js +23 -5
  97. package/dist/index218.js.map +1 -1
  98. package/dist/index219.js +6 -4
  99. package/dist/index219.js.map +1 -1
  100. package/dist/index220.js +5 -4
  101. package/dist/index220.js.map +1 -1
  102. package/dist/index221.js +4 -24
  103. package/dist/index221.js.map +1 -1
  104. package/dist/index222.js +4 -3
  105. package/dist/index222.js.map +1 -1
  106. package/dist/index223.js +21 -21
  107. package/dist/index223.js.map +1 -1
  108. package/dist/index224.js +3 -23
  109. package/dist/index224.js.map +1 -1
  110. package/dist/index225.js +23 -6
  111. package/dist/index225.js.map +1 -1
  112. package/dist/index226.js +22 -9
  113. package/dist/index226.js.map +1 -1
  114. package/dist/index227.js +5 -17
  115. package/dist/index227.js.map +1 -1
  116. package/dist/index228.js +8 -49
  117. package/dist/index228.js.map +1 -1
  118. package/dist/index229.js +18 -5
  119. package/dist/index229.js.map +1 -1
  120. package/dist/index230.js +50 -19
  121. package/dist/index230.js.map +1 -1
  122. package/dist/index231.js +20 -28
  123. package/dist/index231.js.map +1 -1
  124. package/dist/index232.js +27 -104
  125. package/dist/index232.js.map +1 -1
  126. package/dist/index233.js +98 -33
  127. package/dist/index233.js.map +1 -1
  128. package/dist/index234.js +28 -113
  129. package/dist/index234.js.map +1 -1
  130. package/dist/index235.js +117 -11
  131. package/dist/index235.js.map +1 -1
  132. package/dist/index236.js +12 -4
  133. package/dist/index236.js.map +1 -1
  134. package/dist/index237.js +4 -15
  135. package/dist/index237.js.map +1 -1
  136. package/dist/index238.js +13 -62
  137. package/dist/index238.js.map +1 -1
  138. package/dist/index239.js +64 -9
  139. package/dist/index239.js.map +1 -1
  140. package/dist/index240.js +10 -106
  141. package/dist/index240.js.map +1 -1
  142. package/dist/index241.js +107 -13
  143. package/dist/index241.js.map +1 -1
  144. package/dist/index242.js +16 -13
  145. package/dist/index242.js.map +1 -1
  146. package/dist/index243.js +13 -5
  147. package/dist/index243.js.map +1 -1
  148. package/dist/index244.js +4 -316
  149. package/dist/index244.js.map +1 -1
  150. package/dist/index245.js +315 -58
  151. package/dist/index245.js.map +1 -1
  152. package/dist/index246.js +58 -223
  153. package/dist/index246.js.map +1 -1
  154. package/dist/index247.js +215 -318
  155. package/dist/index247.js.map +1 -1
  156. package/dist/index248.js +250 -306
  157. package/dist/index248.js.map +1 -1
  158. package/dist/index249.js +308 -173
  159. package/dist/index249.js.map +1 -1
  160. package/dist/index250.js +178 -7
  161. package/dist/index250.js.map +1 -1
  162. package/dist/index251.js +8 -15
  163. package/dist/index251.js.map +1 -1
  164. package/dist/index252.js +41 -5
  165. package/dist/index252.js.map +1 -1
  166. package/dist/index253.js +46 -38
  167. package/dist/index253.js.map +1 -1
  168. package/dist/index254.js +7 -50
  169. package/dist/index254.js.map +1 -1
  170. package/dist/index255.js +49 -6
  171. package/dist/index255.js.map +1 -1
  172. package/dist/index256.js +48 -46
  173. package/dist/index256.js.map +1 -1
  174. package/dist/index257.js +6 -51
  175. package/dist/index257.js.map +1 -1
  176. package/dist/index258.js +10 -9
  177. package/dist/index258.js.map +1 -1
  178. package/dist/index259.js +60 -8
  179. package/dist/index259.js.map +1 -1
  180. package/dist/index26.js.map +1 -1
  181. package/dist/index260.js +41 -60
  182. package/dist/index260.js.map +1 -1
  183. package/dist/index261.js +88 -34
  184. package/dist/index261.js.map +1 -1
  185. package/dist/index262.js +47 -94
  186. package/dist/index262.js.map +1 -1
  187. package/dist/index263.js +36 -49
  188. package/dist/index263.js.map +1 -1
  189. package/dist/index264.js +45 -32
  190. package/dist/index264.js.map +1 -1
  191. package/dist/index265.js +47 -46
  192. package/dist/index265.js.map +1 -1
  193. package/dist/index266.js +18 -48
  194. package/dist/index266.js.map +1 -1
  195. package/dist/index267.js +174 -15
  196. package/dist/index267.js.map +1 -1
  197. package/dist/index268.js +47 -169
  198. package/dist/index268.js.map +1 -1
  199. package/dist/index269.js +17 -34
  200. package/dist/index269.js.map +1 -1
  201. package/dist/index270.js +59 -10
  202. package/dist/index270.js.map +1 -1
  203. package/dist/index271.js +10 -66
  204. package/dist/index271.js.map +1 -1
  205. package/dist/index272.js +4 -4
  206. package/dist/index273.js +71 -69
  207. package/dist/index273.js.map +1 -1
  208. package/dist/index274.js +158 -152
  209. package/dist/index274.js.map +1 -1
  210. package/dist/index275.js +7 -13
  211. package/dist/index275.js.map +1 -1
  212. package/dist/index276.js +12 -5
  213. package/dist/index276.js.map +1 -1
  214. package/dist/index277.js +12 -6
  215. package/dist/index277.js.map +1 -1
  216. package/dist/index278.js +11 -12
  217. package/dist/index278.js.map +1 -1
  218. package/dist/index279.js +65 -9
  219. package/dist/index279.js.map +1 -1
  220. package/dist/index280.js +6 -74
  221. package/dist/index280.js.map +1 -1
  222. package/dist/index281.js +25 -6
  223. package/dist/index281.js.map +1 -1
  224. package/dist/index282.js +24 -24
  225. package/dist/index282.js.map +1 -1
  226. package/dist/index283.js +125 -24
  227. package/dist/index283.js.map +1 -1
  228. package/dist/index284.js +52 -115
  229. package/dist/index284.js.map +1 -1
  230. package/dist/index285.js +59 -55
  231. package/dist/index285.js.map +1 -1
  232. package/dist/index286.js +48 -61
  233. package/dist/index286.js.map +1 -1
  234. package/dist/index287.js +5 -48
  235. package/dist/index287.js.map +1 -1
  236. package/dist/index288.js +14 -8
  237. package/dist/index288.js.map +1 -1
  238. package/dist/index289.js +18 -14
  239. package/dist/index289.js.map +1 -1
  240. package/dist/index290.js +10 -17
  241. package/dist/index290.js.map +1 -1
  242. package/dist/index291.js +23 -11
  243. package/dist/index291.js.map +1 -1
  244. package/dist/index292.js +52 -25
  245. package/dist/index292.js.map +1 -1
  246. package/dist/index293.js +6 -52
  247. package/dist/index293.js.map +1 -1
  248. package/dist/index294.js +137 -5
  249. package/dist/index294.js.map +1 -1
  250. package/dist/index295.js +59 -149
  251. package/dist/index295.js.map +1 -1
  252. package/dist/index296.js +90 -49
  253. package/dist/index296.js.map +1 -1
  254. package/dist/index297.js +11 -117
  255. package/dist/index297.js.map +1 -1
  256. package/dist/index298.js +863 -11
  257. package/dist/index298.js.map +1 -1
  258. package/dist/index299.js +21 -865
  259. package/dist/index299.js.map +1 -1
  260. package/dist/index3.js.map +1 -1
  261. package/dist/index300.js +417 -27
  262. package/dist/index300.js.map +1 -1
  263. package/dist/index301.js +774 -483
  264. package/dist/index301.js.map +1 -1
  265. package/dist/index302.js +7436 -803
  266. package/dist/index302.js.map +1 -1
  267. package/dist/index303.js +7 -7429
  268. package/dist/index303.js.map +1 -1
  269. package/dist/index304.js +12 -6
  270. package/dist/index304.js.map +1 -1
  271. package/dist/index305.js +5 -12
  272. package/dist/index305.js.map +1 -1
  273. package/dist/index306.js +3 -3
  274. package/dist/index306.js.map +1 -1
  275. package/dist/index307.js +469 -5
  276. package/dist/index307.js.map +1 -1
  277. package/dist/index308.js +32 -464
  278. package/dist/index308.js.map +1 -1
  279. package/dist/index309.js +18 -36
  280. package/dist/index309.js.map +1 -1
  281. package/dist/index310.js +28 -17
  282. package/dist/index310.js.map +1 -1
  283. package/dist/index311.js +4 -30
  284. package/dist/index311.js.map +1 -1
  285. package/dist/index312.js +59 -4
  286. package/dist/index312.js.map +1 -1
  287. package/dist/index313.js +11 -59
  288. package/dist/index313.js.map +1 -1
  289. package/dist/index314.js +5 -9
  290. package/dist/index314.js.map +1 -1
  291. package/dist/index315.js +9 -5
  292. package/dist/index315.js.map +1 -1
  293. package/dist/index316.js +12 -9
  294. package/dist/index316.js.map +1 -1
  295. package/dist/index317.js +3 -13
  296. package/dist/index317.js.map +1 -1
  297. package/dist/index318.js +17 -3
  298. package/dist/index318.js.map +1 -1
  299. package/dist/index319.js +23 -14
  300. package/dist/index319.js.map +1 -1
  301. package/dist/index320.js +39 -23
  302. package/dist/index320.js.map +1 -1
  303. package/dist/index321.js +5 -41
  304. package/dist/index321.js.map +1 -1
  305. package/dist/index322.js +25 -5
  306. package/dist/index322.js.map +1 -1
  307. package/dist/index323.js +18 -24
  308. package/dist/index323.js.map +1 -1
  309. package/dist/index324.js +32 -17
  310. package/dist/index324.js.map +1 -1
  311. package/dist/index325.js +5 -34
  312. package/dist/index325.js.map +1 -1
  313. package/dist/index326.js +9 -5
  314. package/dist/index326.js.map +1 -1
  315. package/dist/index327.js +7 -8
  316. package/dist/index327.js.map +1 -1
  317. package/dist/index328.js +9 -8
  318. package/dist/index328.js.map +1 -1
  319. package/dist/index329.js +10 -9
  320. package/dist/index329.js.map +1 -1
  321. package/dist/index330.js +7 -10
  322. package/dist/index330.js.map +1 -1
  323. package/dist/index331.js +75 -7
  324. package/dist/index331.js.map +1 -1
  325. package/dist/index332.js +153 -66
  326. package/dist/index332.js.map +1 -1
  327. package/dist/index333.js +99 -147
  328. package/dist/index333.js.map +1 -1
  329. package/dist/index334.js +13 -113
  330. package/dist/index334.js.map +1 -1
  331. package/dist/index335.js +78 -12
  332. package/dist/index335.js.map +1 -1
  333. package/dist/index336.js +23 -57
  334. package/dist/index336.js.map +1 -1
  335. package/dist/index337.js +12 -45
  336. package/dist/index337.js.map +1 -1
  337. package/dist/index338.js +16 -13
  338. package/dist/index338.js.map +1 -1
  339. package/dist/index339.js +100 -15
  340. package/dist/index339.js.map +1 -1
  341. package/dist/index340.js +50 -95
  342. package/dist/index340.js.map +1 -1
  343. package/dist/index341.js +57 -5
  344. package/dist/index341.js.map +1 -1
  345. package/dist/index342.js +41 -78
  346. package/dist/index342.js.map +1 -1
  347. package/dist/index343.js +100 -58
  348. package/dist/index343.js.map +1 -1
  349. package/dist/index344.js +46 -104
  350. package/dist/index344.js.map +1 -1
  351. package/dist/index345.js +39 -51
  352. package/dist/index345.js.map +1 -1
  353. package/dist/index346.js +143 -42
  354. package/dist/index346.js.map +1 -1
  355. package/dist/index347.js +122 -123
  356. package/dist/index347.js.map +1 -1
  357. package/dist/index348.js +224 -108
  358. package/dist/index348.js.map +1 -1
  359. package/dist/index349.js +158 -174
  360. package/dist/index349.js.map +1 -1
  361. package/dist/index350.js +213 -144
  362. package/dist/index350.js.map +1 -1
  363. package/dist/index351.js +5 -309
  364. package/dist/index351.js.map +1 -1
  365. package/dist/index352.js +6 -5
  366. package/dist/index352.js.map +1 -1
  367. package/dist/index353.js +7 -6
  368. package/dist/index353.js.map +1 -1
  369. package/dist/index354.js +4 -5
  370. package/dist/index354.js.map +1 -1
  371. package/dist/index355.js +4 -4
  372. package/dist/index355.js.map +1 -1
  373. package/dist/index356.js +21 -6
  374. package/dist/index356.js.map +1 -1
  375. package/dist/index357.js +10 -21
  376. package/dist/index357.js.map +1 -1
  377. package/dist/index358.js +128 -10
  378. package/dist/index358.js.map +1 -1
  379. package/dist/index359.js +36 -122
  380. package/dist/index359.js.map +1 -1
  381. package/dist/index360.js +64 -38
  382. package/dist/index360.js.map +1 -1
  383. package/dist/index361.js +115 -66
  384. package/dist/index361.js.map +1 -1
  385. package/dist/index362.js +485 -112
  386. package/dist/index362.js.map +1 -1
  387. package/dist/index363.js +7 -490
  388. package/dist/index363.js.map +1 -1
  389. package/dist/index364.js +1 -1
  390. package/dist/index364.js.map +1 -1
  391. package/dist/index367.js +2 -9
  392. package/dist/index367.js.map +1 -1
  393. package/dist/index368.js +26 -5
  394. package/dist/index368.js.map +1 -1
  395. package/dist/index369.js +43 -27
  396. package/dist/index369.js.map +1 -1
  397. package/dist/index370.js +35 -46
  398. package/dist/index370.js.map +1 -1
  399. package/dist/index371.js +16 -27
  400. package/dist/index371.js.map +1 -1
  401. package/dist/index372.js +41 -16
  402. package/dist/index372.js.map +1 -1
  403. package/dist/index373.js +11 -42
  404. package/dist/index373.js.map +1 -1
  405. package/dist/index374.js +10 -14
  406. package/dist/index374.js.map +1 -1
  407. package/dist/index375.js +51 -9
  408. package/dist/index375.js.map +1 -1
  409. package/dist/index376.js +40 -53
  410. package/dist/index376.js.map +1 -1
  411. package/dist/index377.js +17 -43
  412. package/dist/index377.js.map +1 -1
  413. package/dist/index378.js +4 -15
  414. package/dist/index378.js.map +1 -1
  415. package/dist/index379.js +4 -4
  416. package/dist/index379.js.map +1 -1
  417. package/dist/index380.js +9 -4
  418. package/dist/index380.js.map +1 -1
  419. package/dist/index381.js +304 -9
  420. package/dist/index381.js.map +1 -1
  421. package/dist/index382.js +4 -339
  422. package/dist/index382.js.map +1 -1
  423. package/dist/index383.js +21 -5
  424. package/dist/index383.js.map +1 -1
  425. package/dist/index384.js +106 -16
  426. package/dist/index384.js.map +1 -1
  427. package/dist/index385.js +19 -109
  428. package/dist/index385.js.map +1 -1
  429. package/dist/index386.js +18 -18
  430. package/dist/index386.js.map +1 -1
  431. package/dist/index387.js +14 -19
  432. package/dist/index387.js.map +1 -1
  433. package/dist/index388.js +12 -4
  434. package/dist/index388.js.map +1 -1
  435. package/dist/index389.js +113 -20
  436. package/dist/index389.js.map +1 -1
  437. package/dist/index390.js +5 -11
  438. package/dist/index390.js.map +1 -1
  439. package/dist/index391.js +28 -85
  440. package/dist/index391.js.map +1 -1
  441. package/dist/index392.js +9 -9
  442. package/dist/index392.js.map +1 -1
  443. package/dist/index393.js +6 -29
  444. package/dist/index393.js.map +1 -1
  445. package/dist/index394.js +254 -10
  446. package/dist/index394.js.map +1 -1
  447. package/dist/index395.js +12 -6
  448. package/dist/index395.js.map +1 -1
  449. package/dist/index396.js +11 -252
  450. package/dist/index396.js.map +1 -1
  451. package/dist/index397.js +6 -11
  452. package/dist/index397.js.map +1 -1
  453. package/dist/index398.js +22 -10
  454. package/dist/index398.js.map +1 -1
  455. package/dist/index399.js +22 -6
  456. package/dist/index399.js.map +1 -1
  457. package/dist/index4.js.map +1 -1
  458. package/dist/index400.js +103 -21
  459. package/dist/index400.js.map +1 -1
  460. package/dist/index401.js +15 -23
  461. package/dist/index401.js.map +1 -1
  462. package/dist/index402.js +11 -108
  463. package/dist/index402.js.map +1 -1
  464. package/dist/index403.js +10 -15
  465. package/dist/index403.js.map +1 -1
  466. package/dist/index404.js +237 -10
  467. package/dist/index404.js.map +1 -1
  468. package/dist/index405.js +27 -9
  469. package/dist/index405.js.map +1 -1
  470. package/dist/index406.js +33 -238
  471. package/dist/index406.js.map +1 -1
  472. package/dist/index407.js +11 -30
  473. package/dist/index407.js.map +1 -1
  474. package/dist/index408.js +118 -48
  475. package/dist/index408.js.map +1 -1
  476. package/dist/index409.js +39 -11
  477. package/dist/index409.js.map +1 -1
  478. package/dist/index410.js +18 -121
  479. package/dist/index410.js.map +1 -1
  480. package/dist/index411.js +11 -39
  481. package/dist/index411.js.map +1 -1
  482. package/dist/index412.js +21 -24
  483. package/dist/index412.js.map +1 -1
  484. package/dist/index413.js +17 -11
  485. package/dist/index413.js.map +1 -1
  486. package/dist/index414.js +10 -20
  487. package/dist/index414.js.map +1 -1
  488. package/dist/index415.js +4 -17
  489. package/dist/index415.js.map +1 -1
  490. package/dist/index416.js +300 -14
  491. package/dist/index416.js.map +1 -1
  492. package/dist/index417.js +61 -323
  493. package/dist/index417.js.map +1 -1
  494. package/dist/index418.js +4 -63
  495. package/dist/index418.js.map +1 -1
  496. package/dist/index419.js +28 -4
  497. package/dist/index419.js.map +1 -1
  498. package/dist/index420.js +468 -25
  499. package/dist/index420.js.map +1 -1
  500. package/dist/index421.js +250 -452
  501. package/dist/index421.js.map +1 -1
  502. package/dist/index6.js.map +1 -1
  503. package/dist/index7.js +91 -133
  504. package/dist/index7.js.map +1 -1
  505. package/dist/index70.js +2 -2
  506. package/dist/index70.js.map +1 -1
  507. package/dist/index71.js +11 -4
  508. package/dist/index71.js.map +1 -1
  509. package/dist/index72.js +1 -3
  510. package/dist/index72.js.map +1 -1
  511. package/dist/index8.js.map +1 -1
  512. package/dist/index9.js +16 -19
  513. package/dist/index9.js.map +1 -1
  514. package/dist/test-only/TestCoverageTestBadge/index.d.ts +1 -1
  515. package/dist/test-only/TestCoverageTestBadge/index.d.ts.map +1 -1
  516. package/package.json +15 -15
  517. package/dist/index422.js +0 -272
  518. package/dist/index422.js.map +0 -1
package/dist/index373.js CHANGED
@@ -1,46 +1,15 @@
1
- "use client";
2
- import { useRefWithInit as e } from "./index185.js";
3
- import { NOOP as t } from "./index191.js";
4
- import { isElement as n } from "./index200.js";
5
- import { useStableCallback as r } from "./index202.js";
6
- import { useIsoLayoutEffect as i } from "./index204.js";
7
- import { useBaseUiId as a } from "./index212.js";
8
- import { useLabelableContext as o } from "./index372.js";
9
- import * as s from "react";
10
- //#region ../../node_modules/@base-ui/react/internals/labelable-provider/useLabelableId.mjs
11
- function c(c = {}) {
12
- let { id: l, implicit: u = !1, controlRef: d } = c, { controlId: f, registerControlId: p } = o(), m = a(l), h = u ? f : void 0, g = e(() => Symbol("labelable-control")), _ = s.useRef(!1), v = s.useRef(l != null), y = r(() => {
13
- !_.current || p === t || (_.current = !1, p(g.current, void 0));
14
- });
15
- return i(() => {
16
- if (p === t) return;
17
- let e;
18
- if (u) {
19
- let t = d?.current;
20
- e = n(t) && t.closest("label") != null ? l ?? null : h ?? m;
21
- } else if (l != null) v.current = !0, e = l;
22
- else if (v.current) e = m;
23
- else {
24
- y();
25
- return;
26
- }
27
- if (e === void 0) {
28
- y();
29
- return;
30
- }
31
- _.current = !0, p(g.current, e);
32
- }, [
33
- l,
34
- d,
35
- h,
36
- p,
37
- u,
38
- m,
39
- g,
40
- y
41
- ]), s.useEffect(() => y, [y]), f ?? m;
1
+ //#region ../../node_modules/@base-ui/react/internals/itemEquality.mjs
2
+ var e = (e, t) => Object.is(e, t);
3
+ function t(e, t, n) {
4
+ return e == null || t == null ? Object.is(e, t) : n(e, t);
5
+ }
6
+ function n(e, n, r) {
7
+ return !e || e.length === 0 ? -1 : e.findIndex((e) => e !== void 0 && t(e, n, r));
8
+ }
9
+ function r(e, n, r) {
10
+ return e.filter((e) => !t(n, e, r));
42
11
  }
43
12
  //#endregion
44
- export { c as useLabelableId };
13
+ export { t as compareItemEquality, e as defaultItemEquality, n as findItemIndex, r as removeItem };
45
14
 
46
15
  //# sourceMappingURL=index373.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index373.js","names":["React"],"sources":["../../../node_modules/@base-ui/react/internals/labelable-provider/useLabelableId.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { useRefWithInit } from '@base-ui/utils/useRefWithInit';\nimport { isElement } from '@floating-ui/utils/dom';\nimport { NOOP } from \"../noop.mjs\";\nimport { useBaseUiId } from \"../useBaseUiId.mjs\";\nimport { useLabelableContext } from \"./LabelableContext.mjs\";\nexport function useLabelableId(params = {}) {\n const {\n id,\n implicit = false,\n controlRef\n } = params;\n const {\n controlId,\n registerControlId\n } = useLabelableContext();\n const defaultId = useBaseUiId(id);\n const controlIdForEffect = implicit ? controlId : undefined;\n const controlSourceRef = useRefWithInit(() => Symbol('labelable-control'));\n const hasRegisteredRef = React.useRef(false);\n const hadExplicitIdRef = React.useRef(id != null);\n const unregisterControlId = useStableCallback(() => {\n if (!hasRegisteredRef.current || registerControlId === NOOP) {\n return;\n }\n hasRegisteredRef.current = false;\n registerControlId(controlSourceRef.current, undefined);\n });\n useIsoLayoutEffect(() => {\n if (registerControlId === NOOP) {\n return undefined;\n }\n let nextId;\n if (implicit) {\n const elem = controlRef?.current;\n if (isElement(elem) && elem.closest('label') != null) {\n nextId = id ?? null;\n } else {\n nextId = controlIdForEffect ?? defaultId;\n }\n } else if (id != null) {\n hadExplicitIdRef.current = true;\n nextId = id;\n } else if (hadExplicitIdRef.current) {\n nextId = defaultId;\n } else {\n unregisterControlId();\n return undefined;\n }\n if (nextId === undefined) {\n unregisterControlId();\n return undefined;\n }\n hasRegisteredRef.current = true;\n registerControlId(controlSourceRef.current, nextId);\n return undefined;\n }, [id, controlRef, controlIdForEffect, registerControlId, implicit, defaultId, controlSourceRef, unregisterControlId]);\n React.useEffect(() => {\n return unregisterControlId;\n }, [unregisterControlId]);\n return controlId ?? defaultId;\n}"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;AAUA,SAAgB,EAAe,IAAS,CAAC,GAAG;CAC1C,IAAM,EACJ,OACA,cAAW,IACX,kBACE,GACE,EACJ,cACA,yBACE,EAAoB,GAClB,IAAY,EAAY,CAAE,GAC1B,IAAqB,IAAW,IAAY,KAAA,GAC5C,IAAmB,QAAqB,OAAO,mBAAmB,CAAC,GACnE,IAAmBA,EAAM,OAAO,EAAK,GACrC,IAAmBA,EAAM,OAAO,KAAM,IAAI,GAC1C,IAAsB,QAAwB;EAC9C,CAAC,EAAiB,WAAW,MAAsB,MAGvD,EAAiB,UAAU,IAC3B,EAAkB,EAAiB,SAAS,KAAA,CAAS;CACvD,CAAC;CAiCD,OAhCA,QAAyB;EACvB,IAAI,MAAsB,GACxB;EAEF,IAAI;EACJ,IAAI,GAAU;GACZ,IAAM,IAAO,GAAY;GACzB,AAGE,IAHE,EAAU,CAAI,KAAK,EAAK,QAAQ,OAAO,KAAK,OACrC,KAAM,OAEN,KAAsB;EAEnC,OAAO,IAAI,KAAM,MAEf,AADA,EAAiB,UAAU,IAC3B,IAAS;OACJ,IAAI,EAAiB,SAC1B,IAAS;OACJ;GACL,EAAoB;GACpB;EACF;EACA,IAAI,MAAW,KAAA,GAAW;GACxB,EAAoB;GACpB;EACF;EAEA,AADA,EAAiB,UAAU,IAC3B,EAAkB,EAAiB,SAAS,CAAM;CAEpD,GAAG;EAAC;EAAI;EAAY;EAAoB;EAAmB;EAAU;EAAW;EAAkB;CAAmB,CAAC,GACtH,EAAM,gBACG,GACN,CAAC,CAAmB,CAAC,GACjB,KAAa;AACtB"}
1
+ {"version":3,"file":"index373.js","names":[],"sources":["../../../node_modules/@base-ui/react/internals/itemEquality.mjs"],"sourcesContent":["export const defaultItemEquality = (itemValue, selectedValue) => Object.is(itemValue, selectedValue);\nexport function compareItemEquality(itemValue, selectedValue, comparer) {\n if (itemValue == null || selectedValue == null) {\n return Object.is(itemValue, selectedValue);\n }\n return comparer(itemValue, selectedValue);\n}\nexport function selectedValueIncludes(selectedValues, itemValue, comparer) {\n if (!selectedValues || selectedValues.length === 0) {\n return false;\n }\n return selectedValues.some(selectedValue => {\n if (selectedValue === undefined) {\n return false;\n }\n return compareItemEquality(itemValue, selectedValue, comparer);\n });\n}\nexport function findItemIndex(itemValues, selectedValue, comparer) {\n if (!itemValues || itemValues.length === 0) {\n return -1;\n }\n return itemValues.findIndex(itemValue => {\n if (itemValue === undefined) {\n return false;\n }\n return compareItemEquality(itemValue, selectedValue, comparer);\n });\n}\nexport function findSelectionIndex(itemValues, selectedValue, comparer, multiple) {\n // Only unwrap in multiple mode: an array can itself be a valid single-select value.\n const lastValue = multiple && Array.isArray(selectedValue) ? selectedValue[selectedValue.length - 1] : selectedValue;\n const index = findItemIndex(itemValues, lastValue, comparer);\n return index === -1 ? null : index;\n}\nexport function removeItem(selectedValues, itemValue, comparer) {\n return selectedValues.filter(selectedValue => !compareItemEquality(itemValue, selectedValue, comparer));\n}"],"x_google_ignoreList":[0],"mappings":";AAAA,IAAa,KAAuB,GAAW,MAAkB,OAAO,GAAG,GAAW,CAAa;AACnG,SAAgB,EAAoB,GAAW,GAAe,GAAU;CAItE,OAHI,KAAa,QAAQ,KAAiB,OACjC,OAAO,GAAG,GAAW,CAAa,IAEpC,EAAS,GAAW,CAAa;AAC1C;AAYA,SAAgB,EAAc,GAAY,GAAe,GAAU;CAIjE,OAHI,CAAC,KAAc,EAAW,WAAW,IAChC,KAEF,EAAW,WAAU,MACtB,MAAc,KAAA,KAGX,EAAoB,GAAW,GAAe,CAAQ,CAC9D;AACH;AAOA,SAAgB,EAAW,GAAgB,GAAW,GAAU;CAC9D,OAAO,EAAe,QAAO,MAAiB,CAAC,EAAoB,GAAW,GAAe,CAAQ,CAAC;AACxG"}
package/dist/index374.js CHANGED
@@ -1,18 +1,14 @@
1
- //#region ../../node_modules/@base-ui/react/internals/itemEquality.mjs
2
- var e = (e, t) => Object.is(e, t);
3
- function t(e, t, n) {
4
- return e == null || t == null ? Object.is(e, t) : n(e, t);
5
- }
6
- function n(e, n, r) {
7
- return !e || e.length === 0 ? !1 : e.some((e) => e !== void 0 && t(n, e, r));
8
- }
9
- function r(e, n, r) {
10
- return !e || e.length === 0 ? -1 : e.findIndex((e) => e !== void 0 && t(e, n, r));
11
- }
12
- function i(e, n, r) {
13
- return e.filter((e) => !t(n, e, r));
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);
9
+ }
14
10
  }
15
11
  //#endregion
16
- export { t as compareItemEquality, e as defaultItemEquality, r as findItemIndex, i as removeItem, n as selectedValueIncludes };
12
+ export { e as serializeValue };
17
13
 
18
14
  //# sourceMappingURL=index374.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index374.js","names":[],"sources":["../../../node_modules/@base-ui/react/internals/itemEquality.mjs"],"sourcesContent":["export const defaultItemEquality = (itemValue, selectedValue) => Object.is(itemValue, selectedValue);\nexport function compareItemEquality(itemValue, selectedValue, comparer) {\n if (itemValue == null || selectedValue == null) {\n return Object.is(itemValue, selectedValue);\n }\n return comparer(itemValue, selectedValue);\n}\nexport function selectedValueIncludes(selectedValues, itemValue, comparer) {\n if (!selectedValues || selectedValues.length === 0) {\n return false;\n }\n return selectedValues.some(selectedValue => {\n if (selectedValue === undefined) {\n return false;\n }\n return compareItemEquality(itemValue, selectedValue, comparer);\n });\n}\nexport function findItemIndex(itemValues, selectedValue, comparer) {\n if (!itemValues || itemValues.length === 0) {\n return -1;\n }\n return itemValues.findIndex(itemValue => {\n if (itemValue === undefined) {\n return false;\n }\n return compareItemEquality(itemValue, selectedValue, comparer);\n });\n}\nexport function removeItem(selectedValues, itemValue, comparer) {\n return selectedValues.filter(selectedValue => !compareItemEquality(itemValue, selectedValue, comparer));\n}"],"x_google_ignoreList":[0],"mappings":";AAAA,IAAa,KAAuB,GAAW,MAAkB,OAAO,GAAG,GAAW,CAAa;AACnG,SAAgB,EAAoB,GAAW,GAAe,GAAU;CAItE,OAHI,KAAa,QAAQ,KAAiB,OACjC,OAAO,GAAG,GAAW,CAAa,IAEpC,EAAS,GAAW,CAAa;AAC1C;AACA,SAAgB,EAAsB,GAAgB,GAAW,GAAU;CAIzE,OAHI,CAAC,KAAkB,EAAe,WAAW,IACxC,KAEF,EAAe,MAAK,MACrB,MAAkB,KAAA,KAGf,EAAoB,GAAW,GAAe,CAAQ,CAC9D;AACH;AACA,SAAgB,EAAc,GAAY,GAAe,GAAU;CAIjE,OAHI,CAAC,KAAc,EAAW,WAAW,IAChC,KAEF,EAAW,WAAU,MACtB,MAAc,KAAA,KAGX,EAAoB,GAAW,GAAe,CAAQ,CAC9D;AACH;AACA,SAAgB,EAAW,GAAgB,GAAW,GAAU;CAC9D,OAAO,EAAe,QAAO,MAAiB,CAAC,EAAoB,GAAW,GAAe,CAAQ,CAAC;AACxG"}
1
+ {"version":3,"file":"index374.js","names":[],"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}"],"x_google_ignoreList":[0],"mappings":";AAAA,SAAgB,EAAe,GAAO;CACpC,IAAI,KAAS,MACX,OAAO;CAET,IAAI,OAAO,KAAU,UACnB,OAAO;CAET,IAAI;EACF,OAAO,KAAK,UAAU,CAAK;CAC7B,QAAQ;EACN,OAAO,OAAO,CAAK;CACrB;AACF"}
package/dist/index375.js CHANGED
@@ -1,14 +1,56 @@
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);
1
+ "use client";
2
+ import { serializeValue as e } from "./index374.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 e != null && e.length > 0 && typeof e[0] == "object" && e[0] != null && "items" in e[0];
8
+ }
9
+ function i(e) {
10
+ if (!Array.isArray(e)) return e != null && "null" in e;
11
+ let t = e;
12
+ if (r(t)) {
13
+ for (let e of t) for (let t of e.items) if (t && t.value == null && t.label != null) return !0;
14
+ return !1;
15
+ }
16
+ for (let e of t) if (e && e.value == null && e.label != null) return !0;
17
+ return !1;
18
+ }
19
+ function a(t, n) {
20
+ if (n && t != null) return n(t) ?? "";
21
+ if (t && typeof t == "object") {
22
+ if ("label" in t && t.label != null) return String(t.label);
23
+ if ("value" in t) return String(t.value);
24
+ }
25
+ return e(t);
26
+ }
27
+ function o(t, n) {
28
+ return n && t != null ? n(t) ?? "" : t && typeof t == "object" && "value" in t && "label" in t ? e(t.value) : e(t);
29
+ }
30
+ function s(e, t, n) {
31
+ function i() {
32
+ return a(e, n);
9
33
  }
34
+ if (n && e != null) return n(e);
35
+ if (e && typeof e == "object" && "label" in e && e.label != null) return e.label;
36
+ if (t && !Array.isArray(t)) return t[e] ?? i();
37
+ if (Array.isArray(t)) {
38
+ let n = t, a = r(n) ? n.flatMap((e) => e.items) : n;
39
+ if (typeof e != "object" || !e) {
40
+ let t = a.find((t) => t.value === e);
41
+ return t && t.label != null ? t.label : i();
42
+ }
43
+ if ("value" in e) {
44
+ let t = a.find((t) => t && t.value === e.value);
45
+ if (t && t.label != null) return t.label;
46
+ }
47
+ }
48
+ return i();
49
+ }
50
+ function c(e, r, i) {
51
+ return e.reduce((e, a, o) => (o > 0 && e.push(", "), e.push(/*#__PURE__*/ n(t.Fragment, { children: s(a, r, i) }, o)), e), []);
10
52
  }
11
53
  //#endregion
12
- export { e as serializeValue };
54
+ export { i as hasNullItemLabel, r as isGroupedItems, c as resolveMultipleLabels, s as resolveSelectedLabel, a as stringifyAsLabel, o as stringifyAsValue };
13
55
 
14
56
  //# sourceMappingURL=index375.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index375.js","names":[],"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}"],"x_google_ignoreList":[0],"mappings":";AAAA,SAAgB,EAAe,GAAO;CACpC,IAAI,KAAS,MACX,OAAO;CAET,IAAI,OAAO,KAAU,UACnB,OAAO;CAET,IAAI;EACF,OAAO,KAAK,UAAU,CAAK;CAC7B,QAAQ;EACN,OAAO,OAAO,CAAK;CACrB;AACF"}
1
+ {"version":3,"file":"index375.js","names":["React"],"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\";\nexport function isGroupedItems(items) {\n return items != null && items.length > 0 && typeof items[0] === 'object' && items[0] != null && 'items' in items[0];\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 return items[value] ?? fallback();\n }\n\n // Items provided as array (flat or grouped)\n if (Array.isArray(items)) {\n const arrayItems = items;\n const flatItems = isGroupedItems(arrayItems) ? arrayItems.flatMap(group => group.items) : 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}"],"x_google_ignoreList":[0],"mappings":";;;;;AAKA,SAAgB,EAAe,GAAO;CACpC,OAAO,KAAS,QAAQ,EAAM,SAAS,KAAK,OAAO,EAAM,MAAO,YAAY,EAAM,MAAM,QAAQ,WAAW,EAAM;AACnH;AAKA,SAAgB,EAAiB,GAAO;CACtC,IAAI,CAAC,MAAM,QAAQ,CAAK,GACtB,OAAO,KAAS,QAAQ,UAAU;CAEpC,IAAM,IAAa;CACnB,IAAI,EAAe,CAAU,GAAG;EAC9B,KAAK,IAAM,KAAS,GAClB,KAAK,IAAM,KAAQ,EAAM,OACvB,IAAI,KAAQ,EAAK,SAAS,QAAQ,EAAK,SAAS,MAC9C,OAAO;EAIb,OAAO;CACT;CACA,KAAK,IAAM,KAAQ,GACjB,IAAI,KAAQ,EAAK,SAAS,QAAQ,EAAK,SAAS,MAC9C,OAAO;CAGX,OAAO;AACT;AACA,SAAgB,EAAiB,GAAM,GAAmB;CACxD,IAAI,KAAqB,KAAQ,MAC/B,OAAO,EAAkB,CAAI,KAAK;CAEpC,IAAI,KAAQ,OAAO,KAAS,UAAU;EACpC,IAAI,WAAW,KAAQ,EAAK,SAAS,MACnC,OAAO,OAAO,EAAK,KAAK;EAE1B,IAAI,WAAW,GACb,OAAO,OAAO,EAAK,KAAK;CAE5B;CACA,OAAO,EAAe,CAAI;AAC5B;AACA,SAAgB,EAAiB,GAAM,GAAmB;CAOxD,OANI,KAAqB,KAAQ,OACxB,EAAkB,CAAI,KAAK,KAEhC,KAAQ,OAAO,KAAS,YAAY,WAAW,KAAQ,WAAW,IAC7D,EAAe,EAAK,KAAK,IAE3B,EAAe,CAAI;AAC5B;AACA,SAAgB,EAAqB,GAAO,GAAO,GAAmB;CACpE,SAAS,IAAW;EAClB,OAAO,EAAiB,GAAO,CAAiB;CAClD;CACA,IAAI,KAAqB,KAAS,MAChC,OAAO,EAAkB,CAAK;CAIhC,IAAI,KAAS,OAAO,KAAU,YAAY,WAAW,KAAS,EAAM,SAAS,MAC3E,OAAO,EAAM;CAIf,IAAI,KAAS,CAAC,MAAM,QAAQ,CAAK,GAC/B,OAAO,EAAM,MAAU,EAAS;CAIlC,IAAI,MAAM,QAAQ,CAAK,GAAG;EACxB,IAAM,IAAa,GACb,IAAY,EAAe,CAAU,IAAI,EAAW,SAAQ,MAAS,EAAM,KAAK,IAAI;EAC1F,IAAqB,OAAO,KAAU,aAAlC,GAA4C;GAC9C,IAAM,IAAQ,EAAU,MAAK,MAAQ,EAAK,UAAU,CAAK;GAIzD,OAHI,KAAS,EAAM,SAAS,OACnB,EAAM,QAER,EAAS;EAClB;EAGA,IAAI,WAAW,GAAO;GACpB,IAAM,IAAQ,EAAU,MAAK,MAAQ,KAAQ,EAAK,UAAU,EAAM,KAAK;GACvE,IAAI,KAAS,EAAM,SAAS,MAC1B,OAAO,EAAM;EAEjB;CACF;CACA,OAAO,EAAS;AAClB;AACA,SAAgB,EAAsB,GAAQ,GAAO,GAAmB;CACtE,OAAO,EAAO,QAAQ,GAAK,GAAO,OAC5B,IAAQ,KACV,EAAI,KAAK,IAAI,GAEf,EAAI,KAAkB,gBAAKA,EAAM,UAAU,EACzC,UAAU,EAAqB,GAAO,GAAO,CAAiB,EAChE,GAAG,CAAK,CAAC,GACF,IACN,CAAC,CAAC;AACP"}
package/dist/index376.js CHANGED
@@ -1,56 +1,43 @@
1
- "use client";
2
- import { serializeValue as e } from "./index375.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 e != null && e.length > 0 && typeof e[0] == "object" && e[0] != null && "items" in e[0];
8
- }
9
- function i(e) {
10
- if (!Array.isArray(e)) return e != null && "null" in e;
11
- let t = e;
12
- if (r(t)) {
13
- for (let e of t) for (let t of e.items) if (t && t.value == null && t.label != null) return !0;
14
- return !1;
15
- }
16
- for (let e of t) if (e && e.value == null && e.label != null) return !0;
17
- return !1;
18
- }
19
- function a(t, n) {
20
- if (n && t != null) return n(t) ?? "";
21
- if (t && typeof t == "object") {
22
- if ("label" in t && t.label != null) return String(t.label);
23
- if ("value" in t) return String(t.value);
24
- }
25
- return e(t);
26
- }
27
- function o(t, n) {
28
- return n && t != null ? n(t) ?? "" : t && typeof t == "object" && "value" in t && "label" in t ? e(t.value) : e(t);
29
- }
30
- function s(e, t, n) {
31
- function i() {
32
- return a(e, n);
33
- }
34
- if (n && e != null) return n(e);
35
- if (e && typeof e == "object" && "label" in e && e.label != null) return e.label;
36
- if (t && !Array.isArray(t)) return t[e] ?? i();
37
- if (Array.isArray(t)) {
38
- let n = t, a = r(n) ? n.flatMap((e) => e.items) : n;
39
- if (typeof e != "object" || !e) {
40
- let t = a.find((t) => t.value === e);
41
- return t && t.label != null ? t.label : i();
42
- }
43
- if ("value" in e) {
44
- let t = a.find((t) => t && t.value === e.value);
45
- if (t && t.label != null) return t.label;
46
- }
47
- }
48
- return i();
49
- }
50
- function c(e, r, i) {
51
- return e.reduce((e, a, o) => (o > 0 && e.push(", "), e.push(/*#__PURE__*/ n(t.Fragment, { children: s(a, r, i) }, o)), e), []);
52
- }
1
+ import { compareItemEquality as e } from "./index373.js";
2
+ import { hasNullItemLabel as t, stringifyAsValue as n } from "./index375.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
+ };
53
40
  //#endregion
54
- export { i as hasNullItemLabel, r as isGroupedItems, c as resolveMultipleLabels, s as resolveSelectedLabel, a as stringifyAsLabel, o as stringifyAsValue };
41
+ export { r as selectors };
55
42
 
56
43
  //# sourceMappingURL=index376.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index376.js","names":["React"],"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\";\nexport function isGroupedItems(items) {\n return items != null && items.length > 0 && typeof items[0] === 'object' && items[0] != null && 'items' in items[0];\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 return items[value] ?? fallback();\n }\n\n // Items provided as array (flat or grouped)\n if (Array.isArray(items)) {\n const arrayItems = items;\n const flatItems = isGroupedItems(arrayItems) ? arrayItems.flatMap(group => group.items) : 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}"],"x_google_ignoreList":[0],"mappings":";;;;;AAKA,SAAgB,EAAe,GAAO;CACpC,OAAO,KAAS,QAAQ,EAAM,SAAS,KAAK,OAAO,EAAM,MAAO,YAAY,EAAM,MAAM,QAAQ,WAAW,EAAM;AACnH;AAKA,SAAgB,EAAiB,GAAO;CACtC,IAAI,CAAC,MAAM,QAAQ,CAAK,GACtB,OAAO,KAAS,QAAQ,UAAU;CAEpC,IAAM,IAAa;CACnB,IAAI,EAAe,CAAU,GAAG;EAC9B,KAAK,IAAM,KAAS,GAClB,KAAK,IAAM,KAAQ,EAAM,OACvB,IAAI,KAAQ,EAAK,SAAS,QAAQ,EAAK,SAAS,MAC9C,OAAO;EAIb,OAAO;CACT;CACA,KAAK,IAAM,KAAQ,GACjB,IAAI,KAAQ,EAAK,SAAS,QAAQ,EAAK,SAAS,MAC9C,OAAO;CAGX,OAAO;AACT;AACA,SAAgB,EAAiB,GAAM,GAAmB;CACxD,IAAI,KAAqB,KAAQ,MAC/B,OAAO,EAAkB,CAAI,KAAK;CAEpC,IAAI,KAAQ,OAAO,KAAS,UAAU;EACpC,IAAI,WAAW,KAAQ,EAAK,SAAS,MACnC,OAAO,OAAO,EAAK,KAAK;EAE1B,IAAI,WAAW,GACb,OAAO,OAAO,EAAK,KAAK;CAE5B;CACA,OAAO,EAAe,CAAI;AAC5B;AACA,SAAgB,EAAiB,GAAM,GAAmB;CAOxD,OANI,KAAqB,KAAQ,OACxB,EAAkB,CAAI,KAAK,KAEhC,KAAQ,OAAO,KAAS,YAAY,WAAW,KAAQ,WAAW,IAC7D,EAAe,EAAK,KAAK,IAE3B,EAAe,CAAI;AAC5B;AACA,SAAgB,EAAqB,GAAO,GAAO,GAAmB;CACpE,SAAS,IAAW;EAClB,OAAO,EAAiB,GAAO,CAAiB;CAClD;CACA,IAAI,KAAqB,KAAS,MAChC,OAAO,EAAkB,CAAK;CAIhC,IAAI,KAAS,OAAO,KAAU,YAAY,WAAW,KAAS,EAAM,SAAS,MAC3E,OAAO,EAAM;CAIf,IAAI,KAAS,CAAC,MAAM,QAAQ,CAAK,GAC/B,OAAO,EAAM,MAAU,EAAS;CAIlC,IAAI,MAAM,QAAQ,CAAK,GAAG;EACxB,IAAM,IAAa,GACb,IAAY,EAAe,CAAU,IAAI,EAAW,SAAQ,MAAS,EAAM,KAAK,IAAI;EAC1F,IAAqB,OAAO,KAAU,aAAlC,GAA4C;GAC9C,IAAM,IAAQ,EAAU,MAAK,MAAQ,EAAK,UAAU,CAAK;GAIzD,OAHI,KAAS,EAAM,SAAS,OACnB,EAAM,QAER,EAAS;EAClB;EAGA,IAAI,WAAW,GAAO;GACpB,IAAM,IAAQ,EAAU,MAAK,MAAQ,KAAQ,EAAK,UAAU,EAAM,KAAK;GACvE,IAAI,KAAS,EAAM,SAAS,MAC1B,OAAO,EAAM;EAEjB;CACF;CACA,OAAO,EAAS;AAClB;AACA,SAAgB,EAAsB,GAAQ,GAAO,GAAmB;CACtE,OAAO,EAAO,QAAQ,GAAK,GAAO,OAC5B,IAAQ,KACV,EAAI,KAAK,IAAI,GAEf,EAAI,KAAkB,gBAAKA,EAAM,UAAU,EACzC,UAAU,EAAqB,GAAO,GAAO,CAAiB,EAChE,GAAG,CAAK,CAAC,GACF,IACN,CAAC,CAAC;AACP"}
1
+ {"version":3,"file":"index376.js","names":[],"sources":["../../../node_modules/@base-ui/react/select/store.mjs"],"sourcesContent":["import { compareItemEquality } from \"../internals/itemEquality.mjs\";\nimport { hasNullItemLabel, stringifyAsValue } from \"../internals/resolveValueLabel.mjs\";\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};"],"x_google_ignoreList":[0],"mappings":";;;AAEA,IAAa,IAAY;CACvB,KAAI,MAAS,EAAM;CACnB,UAAS,MAAS,EAAM;CACxB,QAAO,MAAS,EAAM;CACtB,QAAO,MAAS,EAAM;CACtB,oBAAmB,MAAS,EAAM;CAClC,qBAAoB,MAAS,EAAM;CACnC,QAAO,MAAS,EAAM;CACtB,mBAAkB,MAAS;EACzB,IAAM,EACJ,UACA,aACA,yBACE;EAOJ,OANI,KAAS,OACJ,KAEL,KAAY,MAAM,QAAQ,CAAK,IAC1B,EAAM,SAAS,IAEjB,EAAiB,GAAO,CAAiB,MAAM;CACxD;CACA,mBAAmB,GAAO,MACjB,IAAU,EAAiB,EAAM,KAAK,IAAI;CAEnD,OAAM,MAAS,EAAM;CACrB,UAAS,MAAS,EAAM;CACxB,aAAY,MAAS,EAAM;CAC3B,mBAAkB,MAAS,EAAM;CACjC,aAAY,MAAS,EAAM;CAC3B,cAAa,MAAS,EAAM;CAC5B,gBAAe,MAAS,EAAM;CAC9B,WAAW,GAAO,MAAU,EAAM,gBAAgB;CAClD,aAAa,GAAO,MAAc;EAChC,IAAM,IAAW,EAAM,oBACjB,IAAa,EAAM;EAQzB,OAPI,EAAM,WACD,MAAM,QAAQ,CAAU,KAAK,EAAW,MAAK,MAAgB,EAAoB,GAAW,GAAc,CAAQ,CAAC,IAMrH,EAAoB,GAAW,GAAY,CAAQ;CAC5D;CACA,oBAAoB,GAAO,MAClB,EAAM,kBAAkB;CAEjC,aAAY,MAAS,EAAM;CAC3B,eAAc,MAAS,EAAM;CAC7B,iBAAgB,MAAS,EAAM;CAC/B,oBAAmB,MAAS,EAAM;CAClC,cAAa,MAAS,EAAM;CAC5B,YAAW,MAAS,EAAM;CAC1B,uBAAsB,MAAS,EAAM;CACrC,yBAAwB,MAAS,EAAM;CACvC,kBAAiB,MAAS,EAAM;AAClC"}
package/dist/index377.js CHANGED
@@ -1,46 +1,20 @@
1
- import { createSelector as e } from "./index251.js";
2
- import { compareItemEquality as t } from "./index374.js";
3
- import { hasNullItemLabel as n, stringifyAsValue as r } from "./index376.js";
4
- //#region ../../node_modules/@base-ui/react/select/store.mjs
5
- var i = {
6
- id: e((e) => e.id),
7
- labelId: e((e) => e.labelId),
8
- modal: e((e) => e.modal),
9
- multiple: e((e) => e.multiple),
10
- items: e((e) => e.items),
11
- itemToStringLabel: e((e) => e.itemToStringLabel),
12
- itemToStringValue: e((e) => e.itemToStringValue),
13
- isItemEqualToValue: e((e) => e.isItemEqualToValue),
14
- value: e((e) => e.value),
15
- hasSelectedValue: e((e) => {
16
- let { value: t, multiple: n, itemToStringValue: i } = e;
17
- return t == null ? !1 : n && Array.isArray(t) ? t.length > 0 : r(t, i) !== "";
18
- }),
19
- hasNullItemLabel: e((e, t) => t ? n(e.items) : !1),
20
- open: e((e) => e.open),
21
- mounted: e((e) => e.mounted),
22
- forceMount: e((e) => e.forceMount),
23
- transitionStatus: e((e) => e.transitionStatus),
24
- openMethod: e((e) => e.openMethod),
25
- activeIndex: e((e) => e.activeIndex),
26
- selectedIndex: e((e) => e.selectedIndex),
27
- isActive: e((e, t) => e.activeIndex === t),
28
- isSelected: e((e, n) => {
29
- let r = e.isItemEqualToValue, i = e.value;
30
- return e.multiple ? Array.isArray(i) && i.some((e) => t(n, e, r)) : t(n, i, r);
31
- }),
32
- isSelectedByFocus: e((e, t) => e.selectedIndex === t),
33
- popupProps: e((e) => e.popupProps),
34
- triggerProps: e((e) => e.triggerProps),
35
- triggerElement: e((e) => e.triggerElement),
36
- positionerElement: e((e) => e.positionerElement),
37
- listElement: e((e) => e.listElement),
38
- popupSide: e((e) => e.popupSide),
39
- scrollUpArrowVisible: e((e) => e.scrollUpArrowVisible),
40
- scrollDownArrowVisible: e((e) => e.scrollDownArrowVisible),
41
- hasScrollArrows: e((e) => e.hasScrollArrows)
42
- };
1
+ "use client";
2
+ import { NOOP as e } from "./index191.js";
3
+ import * as t from "react";
4
+ //#region ../../node_modules/@base-ui/react/internals/form-context/FormContext.mjs
5
+ var n = /*#__PURE__*/ t.createContext({
6
+ elementRef: { current: null },
7
+ formRef: { current: { fields: /* @__PURE__ */ new Map() } },
8
+ errors: {},
9
+ clearErrors: e,
10
+ validationMode: "onSubmit",
11
+ submitAttemptedRef: { current: !1 }
12
+ });
13
+ process.env.NODE_ENV !== "production" && (n.displayName = "FormContext");
14
+ function r() {
15
+ return t.useContext(n);
16
+ }
43
17
  //#endregion
44
- export { i as selectors };
18
+ export { n as FormContext, r as useFormContext };
45
19
 
46
20
  //# sourceMappingURL=index377.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index377.js","names":[],"sources":["../../../node_modules/@base-ui/react/select/store.mjs"],"sourcesContent":["import { createSelector } from '@base-ui/utils/store';\nimport { compareItemEquality } from \"../internals/itemEquality.mjs\";\nimport { hasNullItemLabel, stringifyAsValue } from \"../internals/resolveValueLabel.mjs\";\nexport const selectors = {\n id: createSelector(state => state.id),\n labelId: createSelector(state => state.labelId),\n modal: createSelector(state => state.modal),\n multiple: createSelector(state => state.multiple),\n items: createSelector(state => state.items),\n itemToStringLabel: createSelector(state => state.itemToStringLabel),\n itemToStringValue: createSelector(state => state.itemToStringValue),\n isItemEqualToValue: createSelector(state => state.isItemEqualToValue),\n value: createSelector(state => state.value),\n hasSelectedValue: createSelector(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: createSelector((state, enabled) => {\n return enabled ? hasNullItemLabel(state.items) : false;\n }),\n open: createSelector(state => state.open),\n mounted: createSelector(state => state.mounted),\n forceMount: createSelector(state => state.forceMount),\n transitionStatus: createSelector(state => state.transitionStatus),\n openMethod: createSelector(state => state.openMethod),\n activeIndex: createSelector(state => state.activeIndex),\n selectedIndex: createSelector(state => state.selectedIndex),\n isActive: createSelector((state, index) => state.activeIndex === index),\n isSelected: createSelector((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: createSelector((state, index) => {\n return state.selectedIndex === index;\n }),\n popupProps: createSelector(state => state.popupProps),\n triggerProps: createSelector(state => state.triggerProps),\n triggerElement: createSelector(state => state.triggerElement),\n positionerElement: createSelector(state => state.positionerElement),\n listElement: createSelector(state => state.listElement),\n popupSide: createSelector(state => state.popupSide),\n scrollUpArrowVisible: createSelector(state => state.scrollUpArrowVisible),\n scrollDownArrowVisible: createSelector(state => state.scrollDownArrowVisible),\n hasScrollArrows: createSelector(state => state.hasScrollArrows)\n};"],"x_google_ignoreList":[0],"mappings":";;;;AAGA,IAAa,IAAY;CACvB,IAAI,GAAe,MAAS,EAAM,EAAE;CACpC,SAAS,GAAe,MAAS,EAAM,OAAO;CAC9C,OAAO,GAAe,MAAS,EAAM,KAAK;CAC1C,UAAU,GAAe,MAAS,EAAM,QAAQ;CAChD,OAAO,GAAe,MAAS,EAAM,KAAK;CAC1C,mBAAmB,GAAe,MAAS,EAAM,iBAAiB;CAClE,mBAAmB,GAAe,MAAS,EAAM,iBAAiB;CAClE,oBAAoB,GAAe,MAAS,EAAM,kBAAkB;CACpE,OAAO,GAAe,MAAS,EAAM,KAAK;CAC1C,kBAAkB,GAAe,MAAS;EACxC,IAAM,EACJ,UACA,aACA,yBACE;EAOJ,OANI,KAAS,OACJ,KAEL,KAAY,MAAM,QAAQ,CAAK,IAC1B,EAAM,SAAS,IAEjB,EAAiB,GAAO,CAAiB,MAAM;CACxD,CAAC;CACD,kBAAkB,GAAgB,GAAO,MAChC,IAAU,EAAiB,EAAM,KAAK,IAAI,EAClD;CACD,MAAM,GAAe,MAAS,EAAM,IAAI;CACxC,SAAS,GAAe,MAAS,EAAM,OAAO;CAC9C,YAAY,GAAe,MAAS,EAAM,UAAU;CACpD,kBAAkB,GAAe,MAAS,EAAM,gBAAgB;CAChE,YAAY,GAAe,MAAS,EAAM,UAAU;CACpD,aAAa,GAAe,MAAS,EAAM,WAAW;CACtD,eAAe,GAAe,MAAS,EAAM,aAAa;CAC1D,UAAU,GAAgB,GAAO,MAAU,EAAM,gBAAgB,CAAK;CACtE,YAAY,GAAgB,GAAO,MAAc;EAC/C,IAAM,IAAW,EAAM,oBACjB,IAAa,EAAM;EAQzB,OAPI,EAAM,WACD,MAAM,QAAQ,CAAU,KAAK,EAAW,MAAK,MAAgB,EAAoB,GAAW,GAAc,CAAQ,CAAC,IAMrH,EAAoB,GAAW,GAAY,CAAQ;CAC5D,CAAC;CACD,mBAAmB,GAAgB,GAAO,MACjC,EAAM,kBAAkB,CAChC;CACD,YAAY,GAAe,MAAS,EAAM,UAAU;CACpD,cAAc,GAAe,MAAS,EAAM,YAAY;CACxD,gBAAgB,GAAe,MAAS,EAAM,cAAc;CAC5D,mBAAmB,GAAe,MAAS,EAAM,iBAAiB;CAClE,aAAa,GAAe,MAAS,EAAM,WAAW;CACtD,WAAW,GAAe,MAAS,EAAM,SAAS;CAClD,sBAAsB,GAAe,MAAS,EAAM,oBAAoB;CACxE,wBAAwB,GAAe,MAAS,EAAM,sBAAsB;CAC5E,iBAAiB,GAAe,MAAS,EAAM,eAAe;AAChE"}
1
+ {"version":3,"file":"index377.js","names":["React"],"sources":["../../../node_modules/@base-ui/react/internals/form-context/FormContext.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { NOOP } from \"../noop.mjs\";\nexport const FormContext = /*#__PURE__*/React.createContext({\n elementRef: {\n current: null\n },\n formRef: {\n current: {\n fields: new Map()\n }\n },\n errors: {},\n clearErrors: NOOP,\n validationMode: 'onSubmit',\n submitAttemptedRef: {\n current: false\n }\n});\nif (process.env.NODE_ENV !== \"production\") FormContext.displayName = \"FormContext\";\nexport function useFormContext() {\n return React.useContext(FormContext);\n}"],"x_google_ignoreList":[0],"mappings":";;;;AAIA,IAAa,IAA2B,gBAAM,cAAc;CAC1D,YAAY,EACV,SAAS,KACX;CACA,SAAS,EACP,SAAS,EACP,wBAAQ,IAAI,IAAI,EAClB,EACF;CACA,QAAQ,CAAC;CACT,aAAa;CACb,gBAAgB;CAChB,oBAAoB,EAClB,SAAS,GACX;AACF,CAAC;AACD,QAAA,IAAA,aAA6B,iBAAc,EAAY,cAAc;AACrE,SAAgB,IAAiB;CAC/B,OAAOA,EAAM,WAAW,CAAW;AACrC"}
package/dist/index378.js CHANGED
@@ -1,19 +1,8 @@
1
- "use client";
2
- import { NOOP as e } from "./index191.js";
3
- import * as t from "react";
4
- //#region ../../node_modules/@base-ui/react/internals/form-context/FormContext.mjs
5
- var n = /*#__PURE__*/ t.createContext({
6
- formRef: { current: { fields: /* @__PURE__ */ new Map() } },
7
- errors: {},
8
- clearErrors: e,
9
- validationMode: "onSubmit",
10
- submitAttemptedRef: { current: !1 }
11
- });
12
- process.env.NODE_ENV !== "production" && (n.displayName = "FormContext");
13
- function r() {
14
- return t.useContext(n);
1
+ //#region ../../node_modules/@base-ui/react/internals/areArraysEqual.mjs
2
+ function e(e, t, n = (e, t) => e === t) {
3
+ return e.length === t.length && e.every((e, r) => n(e, t[r]));
15
4
  }
16
5
  //#endregion
17
- export { n as FormContext, r as useFormContext };
6
+ export { e as areArraysEqual };
18
7
 
19
8
  //# sourceMappingURL=index378.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index378.js","names":["React"],"sources":["../../../node_modules/@base-ui/react/internals/form-context/FormContext.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { NOOP } from \"../noop.mjs\";\nexport const FormContext = /*#__PURE__*/React.createContext({\n formRef: {\n current: {\n fields: new Map()\n }\n },\n errors: {},\n clearErrors: NOOP,\n validationMode: 'onSubmit',\n submitAttemptedRef: {\n current: false\n }\n});\nif (process.env.NODE_ENV !== \"production\") FormContext.displayName = \"FormContext\";\nexport function useFormContext() {\n return React.useContext(FormContext);\n}"],"x_google_ignoreList":[0],"mappings":";;;;AAIA,IAAa,IAA2B,gBAAM,cAAc;CAC1D,SAAS,EACP,SAAS,EACP,wBAAQ,IAAI,IAAI,EAClB,EACF;CACA,QAAQ,CAAC;CACT,aAAa;CACb,gBAAgB;CAChB,oBAAoB,EAClB,SAAS,GACX;AACF,CAAC;AACD,QAAA,IAAA,aAA6B,iBAAc,EAAY,cAAc;AACrE,SAAgB,IAAiB;CAC/B,OAAOA,EAAM,WAAW,CAAW;AACrC"}
1
+ {"version":3,"file":"index378.js","names":[],"sources":["../../../node_modules/@base-ui/react/internals/areArraysEqual.mjs"],"sourcesContent":["export function areArraysEqual(array1, array2, itemComparer = (a, b) => a === b) {\n return array1.length === array2.length && array1.every((value, index) => itemComparer(value, array2[index]));\n}"],"x_google_ignoreList":[0],"mappings":";AAAA,SAAgB,EAAe,GAAQ,GAAQ,KAAgB,GAAG,MAAM,MAAM,GAAG;CAC/E,OAAO,EAAO,WAAW,EAAO,UAAU,EAAO,OAAO,GAAO,MAAU,EAAa,GAAO,EAAO,EAAM,CAAC;AAC7G"}
package/dist/index379.js CHANGED
@@ -1,8 +1,8 @@
1
- //#region ../../node_modules/@base-ui/react/internals/areArraysEqual.mjs
2
- function e(e, t, n = (e, t) => e === t) {
3
- return e.length === t.length && e.every((e, r) => n(e, t[r]));
1
+ //#region ../../node_modules/@base-ui/react/internals/clamp.mjs
2
+ function e(e, t = -(2 ** 53 - 1), n = 2 ** 53 - 1) {
3
+ return Math.max(t, Math.min(e, n));
4
4
  }
5
5
  //#endregion
6
- export { e as areArraysEqual };
6
+ export { e as clamp };
7
7
 
8
8
  //# sourceMappingURL=index379.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index379.js","names":[],"sources":["../../../node_modules/@base-ui/react/internals/areArraysEqual.mjs"],"sourcesContent":["export function areArraysEqual(array1, array2, itemComparer = (a, b) => a === b) {\n return array1.length === array2.length && array1.every((value, index) => itemComparer(value, array2[index]));\n}"],"x_google_ignoreList":[0],"mappings":";AAAA,SAAgB,EAAe,GAAQ,GAAQ,KAAgB,GAAG,MAAM,MAAM,GAAG;CAC/E,OAAO,EAAO,WAAW,EAAO,UAAU,EAAO,OAAO,GAAO,MAAU,EAAa,GAAO,EAAO,EAAM,CAAC;AAC7G"}
1
+ {"version":3,"file":"index379.js","names":[],"sources":["../../../node_modules/@base-ui/react/internals/clamp.mjs"],"sourcesContent":["export function clamp(val, min = Number.MIN_SAFE_INTEGER, max = Number.MAX_SAFE_INTEGER) {\n return Math.max(min, Math.min(val, max));\n}"],"x_google_ignoreList":[0],"mappings":";AAAA,SAAgB,EAAM,GAAK,IAAM,gBAAyB,iBAA+B;CACvF,OAAO,KAAK,IAAI,GAAK,KAAK,IAAI,GAAK,CAAG,CAAC;AACzC"}
package/dist/index380.js CHANGED
@@ -1,8 +1,13 @@
1
- //#region ../../node_modules/@base-ui/react/internals/clamp.mjs
2
- function e(e, t = -(2 ** 53 - 1), n = 2 ** 53 - 1) {
3
- return Math.max(t, Math.min(e, n));
1
+ import { clamp as e } from "./index379.js";
2
+ function t(e, t) {
3
+ return Math.max(0, e - t);
4
+ }
5
+ function n(t, n) {
6
+ if (n <= 0) return 0;
7
+ let r = e(t, 0, n), i = r, a = n - r, o = i <= 1, s = a <= 1;
8
+ return o && s ? i <= a ? 0 : n : o ? 0 : s ? n : r;
4
9
  }
5
10
  //#endregion
6
- export { e as clamp };
11
+ export { t as getMaxScrollOffset, n as normalizeScrollOffset };
7
12
 
8
13
  //# sourceMappingURL=index380.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index380.js","names":[],"sources":["../../../node_modules/@base-ui/react/internals/clamp.mjs"],"sourcesContent":["export function clamp(val, min = Number.MIN_SAFE_INTEGER, max = Number.MAX_SAFE_INTEGER) {\n return Math.max(min, Math.min(val, max));\n}"],"x_google_ignoreList":[0],"mappings":";AAAA,SAAgB,EAAM,GAAK,IAAM,gBAAyB,iBAA+B;CACvF,OAAO,KAAK,IAAI,GAAK,KAAK,IAAI,GAAK,CAAG,CAAC;AACzC"}
1
+ {"version":3,"file":"index380.js","names":[],"sources":["../../../node_modules/@base-ui/react/utils/scrollEdges.mjs"],"sourcesContent":["import { clamp } from \"../internals/clamp.mjs\";\nexport const SCROLL_EDGE_TOLERANCE_PX = 1;\nexport function getMaxScrollOffset(scrollSize, clientSize) {\n return Math.max(0, scrollSize - clientSize);\n}\nexport function normalizeScrollOffset(value, max) {\n if (max <= 0) {\n return 0;\n }\n const clamped = clamp(value, 0, max);\n const startDistance = clamped;\n const endDistance = max - clamped;\n const withinStartTolerance = startDistance <= SCROLL_EDGE_TOLERANCE_PX;\n const withinEndTolerance = endDistance <= SCROLL_EDGE_TOLERANCE_PX;\n if (withinStartTolerance && withinEndTolerance) {\n return startDistance <= endDistance ? 0 : max;\n }\n if (withinStartTolerance) {\n return 0;\n }\n if (withinEndTolerance) {\n return max;\n }\n return clamped;\n}"],"x_google_ignoreList":[0],"mappings":";AAEA,SAAgB,EAAmB,GAAY,GAAY;CACzD,OAAO,KAAK,IAAI,GAAG,IAAa,CAAU;AAC5C;AACA,SAAgB,EAAsB,GAAO,GAAK;CAChD,IAAI,KAAO,GACT,OAAO;CAET,IAAM,IAAU,EAAM,GAAO,GAAG,CAAG,GAC7B,IAAgB,GAChB,IAAc,IAAM,GACpB,IAAuB,KAAA,GACvB,IAAqB,KAAA;CAU3B,OATI,KAAwB,IACnB,KAAiB,IAAc,IAAI,IAExC,IACK,IAEL,IACK,IAEF;AACT"}