@vlrc-fe/components 1.0.6 → 1.0.8

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 (452) hide show
  1. package/dist/Form/FormFileUpload/index.d.ts +1 -1
  2. package/dist/Form/FormFileUpload/index.d.ts.map +1 -1
  3. package/dist/Form/index.d.ts +1 -1
  4. package/dist/Form/index.d.ts.map +1 -1
  5. package/dist/MultiSelect/type.d.ts +2 -2
  6. package/dist/index.cjs +1 -1
  7. package/dist/index.js +64 -40
  8. package/dist/index10.cjs +1 -1
  9. package/dist/index10.js +46 -80
  10. package/dist/index100.cjs +1 -1
  11. package/dist/index100.js +22 -60
  12. package/dist/index101.cjs +1 -1
  13. package/dist/index101.js +1147 -43
  14. package/dist/index102.cjs +1 -1
  15. package/dist/index102.js +30 -64
  16. package/dist/index103.cjs +1 -1
  17. package/dist/index103.js +31 -147
  18. package/dist/index104.cjs +1 -1
  19. package/dist/index104.js +93 -19
  20. package/dist/index105.cjs +1 -1
  21. package/dist/index105.js +80 -25
  22. package/dist/index106.cjs +1 -1
  23. package/dist/index106.js +9 -50
  24. package/dist/index107.cjs +1 -1
  25. package/dist/index107.js +30 -156
  26. package/dist/index108.cjs +1 -1
  27. package/dist/index108.js +350 -14
  28. package/dist/index109.cjs +1 -1
  29. package/dist/index109.js +11 -0
  30. package/dist/index11.cjs +1 -1
  31. package/dist/index11.js +55 -60
  32. package/dist/index110.cjs +1 -0
  33. package/dist/index110.js +430 -0
  34. package/dist/index111.cjs +1 -0
  35. package/dist/index111.js +36 -0
  36. package/dist/index112.cjs +1 -0
  37. package/dist/index112.js +28 -0
  38. package/dist/index113.cjs +1 -0
  39. package/dist/index113.js +14 -0
  40. package/dist/index114.cjs +1 -0
  41. package/dist/index114.js +156 -0
  42. package/dist/index115.cjs +1 -0
  43. package/dist/index115.js +19 -0
  44. package/dist/index116.cjs +1 -0
  45. package/dist/index116.js +67 -0
  46. package/dist/index117.cjs +1 -0
  47. package/dist/index117.js +118 -0
  48. package/dist/index118.cjs +1 -0
  49. package/dist/index118.js +36 -0
  50. package/dist/index119.cjs +1 -0
  51. package/dist/index119.js +13 -0
  52. package/dist/index12.cjs +1 -1
  53. package/dist/index12.js +44 -121
  54. package/dist/index120.cjs +1 -0
  55. package/dist/index120.js +31 -0
  56. package/dist/index121.cjs +1 -0
  57. package/dist/index121.js +37 -0
  58. package/dist/index122.cjs +1 -0
  59. package/dist/index122.js +123 -0
  60. package/dist/index123.cjs +1 -0
  61. package/dist/index123.js +44 -0
  62. package/dist/index124.cjs +1 -0
  63. package/dist/index124.js +43 -0
  64. package/dist/index125.cjs +1 -0
  65. package/dist/index125.js +14 -0
  66. package/dist/index126.cjs +1 -0
  67. package/dist/index126.js +64 -0
  68. package/dist/index127.cjs +1 -0
  69. package/dist/index127.js +23 -0
  70. package/dist/index128.cjs +1 -0
  71. package/dist/index128.js +34 -0
  72. package/dist/index129.cjs +1 -0
  73. package/dist/index129.js +27 -0
  74. package/dist/index13.cjs +1 -1
  75. package/dist/index13.js +30 -12
  76. package/dist/index130.cjs +1 -0
  77. package/dist/index130.js +26 -0
  78. package/dist/index131.cjs +1 -0
  79. package/dist/index131.js +157 -0
  80. package/dist/index132.cjs +1 -0
  81. package/dist/index132.js +34 -0
  82. package/dist/index133.cjs +1 -0
  83. package/dist/index133.js +46 -0
  84. package/dist/index134.cjs +1 -0
  85. package/dist/index134.js +142 -0
  86. package/dist/index135.cjs +1 -0
  87. package/dist/index135.js +125 -0
  88. package/dist/index136.cjs +1 -0
  89. package/dist/index136.js +26 -0
  90. package/dist/index137.cjs +1 -0
  91. package/dist/index137.js +88 -0
  92. package/dist/index138.cjs +1 -0
  93. package/dist/index138.js +221 -0
  94. package/dist/index139.cjs +1 -0
  95. package/dist/index139.js +166 -0
  96. package/dist/index14.cjs +1 -1
  97. package/dist/index14.js +8 -12
  98. package/dist/index140.cjs +1 -0
  99. package/dist/index140.js +126 -0
  100. package/dist/index141.cjs +1 -0
  101. package/dist/index141.js +15 -0
  102. package/dist/index142.cjs +1 -0
  103. package/dist/index142.js +9 -0
  104. package/dist/index143.cjs +1 -0
  105. package/dist/index143.js +17 -0
  106. package/dist/index144.cjs +1 -0
  107. package/dist/index144.js +22 -0
  108. package/dist/index145.cjs +1 -0
  109. package/dist/index145.js +18 -0
  110. package/dist/index146.cjs +1 -0
  111. package/dist/index146.js +6 -0
  112. package/dist/index147.cjs +1 -0
  113. package/dist/index147.js +7 -0
  114. package/dist/index148.cjs +1 -0
  115. package/dist/index148.js +8 -0
  116. package/dist/index149.cjs +1 -0
  117. package/dist/index149.js +7 -0
  118. package/dist/index15.cjs +1 -1
  119. package/dist/index15.js +12 -112
  120. package/dist/index150.cjs +1 -0
  121. package/dist/index150.js +7 -0
  122. package/dist/index151.cjs +1 -0
  123. package/dist/index151.js +9 -0
  124. package/dist/index152.cjs +1 -0
  125. package/dist/index152.js +69 -0
  126. package/dist/index153.cjs +1 -0
  127. package/dist/index153.js +11 -0
  128. package/dist/index154.cjs +1 -0
  129. package/dist/index154.js +202 -0
  130. package/dist/index155.cjs +1 -0
  131. package/dist/index155.js +124 -0
  132. package/dist/index156.cjs +1 -0
  133. package/dist/index156.js +32 -0
  134. package/dist/index157.cjs +1 -0
  135. package/dist/index157.js +20 -0
  136. package/dist/index158.cjs +1 -0
  137. package/dist/index158.js +69 -0
  138. package/dist/index159.cjs +1 -0
  139. package/dist/index159.js +32 -0
  140. package/dist/index16.cjs +1 -1
  141. package/dist/index16.js +4 -726
  142. package/dist/index160.cjs +1 -0
  143. package/dist/index160.js +11 -0
  144. package/dist/index161.cjs +1 -0
  145. package/dist/index161.js +280 -0
  146. package/dist/index162.cjs +1 -0
  147. package/dist/index162.js +157 -0
  148. package/dist/index163.cjs +1 -0
  149. package/dist/index163.js +20 -0
  150. package/dist/index164.cjs +1 -0
  151. package/dist/index164.js +10 -0
  152. package/dist/index165.cjs +1 -0
  153. package/dist/index165.js +14 -0
  154. package/dist/index166.cjs +1 -0
  155. package/dist/index166.js +8 -0
  156. package/dist/index167.cjs +1 -0
  157. package/dist/index167.js +8 -0
  158. package/dist/index168.cjs +1 -0
  159. package/dist/index168.js +11 -0
  160. package/dist/index169.cjs +1 -0
  161. package/dist/index169.js +10 -0
  162. package/dist/index17.cjs +1 -1
  163. package/dist/index17.js +79 -339
  164. package/dist/index170.cjs +1 -0
  165. package/dist/index170.js +6 -0
  166. package/dist/index171.cjs +1 -0
  167. package/dist/index171.js +8 -0
  168. package/dist/index172.cjs +1 -0
  169. package/dist/index172.js +8 -0
  170. package/dist/index173.cjs +1 -0
  171. package/dist/index173.js +10 -0
  172. package/dist/index174.cjs +1 -0
  173. package/dist/index174.js +11 -0
  174. package/dist/index175.cjs +1 -0
  175. package/dist/index175.js +15 -0
  176. package/dist/index176.cjs +1 -0
  177. package/dist/index176.js +11 -0
  178. package/dist/index177.cjs +1 -0
  179. package/dist/index177.js +11 -0
  180. package/dist/index178.cjs +1 -0
  181. package/dist/index178.js +6 -0
  182. package/dist/index179.cjs +1 -0
  183. package/dist/index179.js +43 -0
  184. package/dist/index18.cjs +1 -1
  185. package/dist/index18.js +19 -66
  186. package/dist/index180.cjs +1 -0
  187. package/dist/index180.js +382 -0
  188. package/dist/index181.cjs +1 -0
  189. package/dist/index181.js +40 -0
  190. package/dist/index182.cjs +1 -0
  191. package/dist/index182.js +23 -0
  192. package/dist/index183.cjs +1 -0
  193. package/dist/index183.js +59 -0
  194. package/dist/index184.cjs +1 -0
  195. package/dist/index184.js +55 -0
  196. package/dist/index185.cjs +1 -0
  197. package/dist/index185.js +54 -0
  198. package/dist/index186.cjs +1 -0
  199. package/dist/index186.js +57 -0
  200. package/dist/index187.cjs +1 -0
  201. package/dist/index187.js +57 -0
  202. package/dist/index188.cjs +1 -0
  203. package/dist/index188.js +88 -0
  204. package/dist/index189.cjs +1 -0
  205. package/dist/index189.js +66 -0
  206. package/dist/index19.cjs +1 -1
  207. package/dist/index19.js +18 -8
  208. package/dist/index190.cjs +1 -0
  209. package/dist/index190.js +594 -0
  210. package/dist/index191.cjs +9 -0
  211. package/dist/index191.js +30 -0
  212. package/dist/index192.cjs +1 -0
  213. package/dist/index192.js +50 -0
  214. package/dist/index193.cjs +1 -0
  215. package/dist/index193.js +65 -0
  216. package/dist/index194.cjs +1 -0
  217. package/dist/index194.js +48 -0
  218. package/dist/index195.cjs +1 -0
  219. package/dist/index195.js +67 -0
  220. package/dist/index196.cjs +1 -0
  221. package/dist/index196.js +151 -0
  222. package/dist/index197.cjs +1 -0
  223. package/dist/index197.js +23 -0
  224. package/dist/index198.cjs +1 -0
  225. package/dist/index198.js +27 -0
  226. package/dist/index199.cjs +1 -0
  227. package/dist/index199.js +53 -0
  228. package/dist/index20.cjs +1 -1
  229. package/dist/index20.js +51 -98
  230. package/dist/index200.cjs +1 -0
  231. package/dist/index200.js +161 -0
  232. package/dist/index201.cjs +1 -0
  233. package/dist/index201.js +16 -0
  234. package/dist/index202.cjs +1 -0
  235. package/dist/index21.cjs +1 -1
  236. package/dist/index21.js +81 -28
  237. package/dist/index22.cjs +1 -1
  238. package/dist/index22.js +64 -14
  239. package/dist/index23.cjs +1 -1
  240. package/dist/index23.js +25 -22
  241. package/dist/index24.cjs +1 -1
  242. package/dist/index24.js +1014 -33
  243. package/dist/index25.cjs +1 -1
  244. package/dist/index25.js +22 -96
  245. package/dist/index26.cjs +1 -1
  246. package/dist/index26.js +108 -25
  247. package/dist/index27.cjs +1 -1
  248. package/dist/index27.js +15 -9
  249. package/dist/index28.cjs +1 -1
  250. package/dist/index28.js +20 -66
  251. package/dist/index29.cjs +1 -1
  252. package/dist/index29.js +81 -11
  253. package/dist/index30.cjs +1 -1
  254. package/dist/index30.js +91 -29
  255. package/dist/index31.cjs +1 -1
  256. package/dist/index31.js +14 -41
  257. package/dist/index32.cjs +1 -1
  258. package/dist/index32.js +93 -12
  259. package/dist/index33.cjs +1 -1
  260. package/dist/index33.js +22 -62
  261. package/dist/index34.cjs +1 -1
  262. package/dist/index34.js +84 -22
  263. package/dist/index35.cjs +1 -1
  264. package/dist/index35.js +85 -33
  265. package/dist/index36.cjs +1 -1
  266. package/dist/index36.js +407 -25
  267. package/dist/index37.cjs +1 -1
  268. package/dist/index37.js +170 -25
  269. package/dist/index38.cjs +1 -1
  270. package/dist/index38.js +28 -154
  271. package/dist/index39.cjs +1 -1
  272. package/dist/index39.js +158 -33
  273. package/dist/index40.cjs +1 -1
  274. package/dist/index40.js +104 -45
  275. package/dist/index41.cjs +1 -1
  276. package/dist/index41.js +337 -140
  277. package/dist/index42.cjs +1 -1
  278. package/dist/index42.js +96 -124
  279. package/dist/index43.cjs +1 -1
  280. package/dist/index43.js +319 -23
  281. package/dist/index44.cjs +1 -1
  282. package/dist/index44.js +205 -81
  283. package/dist/index45.cjs +1 -1
  284. package/dist/index45.js +33 -220
  285. package/dist/index46.cjs +1 -1
  286. package/dist/index46.js +161 -163
  287. package/dist/index47.cjs +1 -1
  288. package/dist/index47.js +20 -125
  289. package/dist/index48.cjs +1 -1
  290. package/dist/index48.js +24 -14
  291. package/dist/index49.cjs +1 -1
  292. package/dist/index49.js +167 -7
  293. package/dist/index5.js +26 -14
  294. package/dist/index50.cjs +1 -1
  295. package/dist/index50.js +44 -15
  296. package/dist/index51.cjs +1 -1
  297. package/dist/index51.js +15 -18
  298. package/dist/index52.cjs +1 -1
  299. package/dist/index52.js +3 -17
  300. package/dist/index53.cjs +1 -1
  301. package/dist/index53.js +5 -5
  302. package/dist/index54.cjs +1 -1
  303. package/dist/index54.js +19 -4
  304. package/dist/index55.cjs +1 -1
  305. package/dist/index55.js +24 -6
  306. package/dist/index56.cjs +1 -1
  307. package/dist/index56.js +66 -4
  308. package/dist/index57.cjs +1 -1
  309. package/dist/index57.js +14 -5
  310. package/dist/index58.cjs +1 -1
  311. package/dist/index58.js +4 -8
  312. package/dist/index59.cjs +1 -1
  313. package/dist/index59.js +50 -67
  314. package/dist/index6.cjs +1 -1
  315. package/dist/index6.js +85 -46
  316. package/dist/index60.cjs +1 -1
  317. package/dist/index60.js +6 -10
  318. package/dist/index61.cjs +1 -1
  319. package/dist/index61.js +25 -199
  320. package/dist/index62.cjs +1 -1
  321. package/dist/index62.js +13 -122
  322. package/dist/index63.cjs +1 -1
  323. package/dist/index63.js +9 -30
  324. package/dist/index64.cjs +1 -1
  325. package/dist/index64.js +3 -20
  326. package/dist/index65.cjs +1 -1
  327. package/dist/index65.js +24 -66
  328. package/dist/index66.cjs +1 -1
  329. package/dist/index66.js +68 -30
  330. package/dist/index67.cjs +38 -1
  331. package/dist/index67.js +3 -11
  332. package/dist/index68.cjs +1 -1
  333. package/dist/index68.js +12 -279
  334. package/dist/index69.cjs +1 -1
  335. package/dist/index69.js +50 -155
  336. package/dist/index7.cjs +1 -1
  337. package/dist/index7.js +29 -85
  338. package/dist/index70.cjs +1 -1
  339. package/dist/index70.js +115 -19
  340. package/dist/index71.cjs +4 -1
  341. package/dist/index71.js +6 -9
  342. package/dist/index72.cjs +1 -1
  343. package/dist/index72.js +12 -12
  344. package/dist/index73.cjs +1 -1
  345. package/dist/index73.js +539 -6
  346. package/dist/index74.cjs +1 -1
  347. package/dist/index74.js +197 -6
  348. package/dist/index75.cjs +1 -1
  349. package/dist/index75.js +120 -9
  350. package/dist/index76.cjs +1 -1
  351. package/dist/index76.js +912 -8
  352. package/dist/index77.cjs +3 -1
  353. package/dist/index77.js +76 -4
  354. package/dist/index78.cjs +1 -1
  355. package/dist/index78.js +120 -6
  356. package/dist/index79.cjs +1 -1
  357. package/dist/index79.js +12 -6
  358. package/dist/index8.cjs +1 -1
  359. package/dist/index8.js +35 -62
  360. package/dist/index80.cjs +1 -1
  361. package/dist/index80.js +14 -8
  362. package/dist/index81.cjs +1 -1
  363. package/dist/index81.js +113 -9
  364. package/dist/index82.cjs +1 -1
  365. package/dist/index82.js +725 -13
  366. package/dist/index83.cjs +1 -1
  367. package/dist/index83.js +346 -9
  368. package/dist/index84.cjs +1 -1
  369. package/dist/index84.js +74 -9
  370. package/dist/index85.cjs +1 -1
  371. package/dist/index85.js +148 -4
  372. package/dist/index86.cjs +1 -1
  373. package/dist/index86.js +31 -42
  374. package/dist/index87.cjs +1 -1
  375. package/dist/index87.js +12 -380
  376. package/dist/index88.cjs +1 -1
  377. package/dist/index88.js +345 -37
  378. package/dist/index89.cjs +20 -1
  379. package/dist/index89.js +40 -18
  380. package/dist/index9.cjs +1 -1
  381. package/dist/index9.js +85 -17
  382. package/dist/index90.cjs +1 -1
  383. package/dist/index90.js +113 -56
  384. package/dist/index91.cjs +1 -1
  385. package/dist/index91.js +272 -51
  386. package/dist/index92.cjs +1 -1
  387. package/dist/index92.js +129 -50
  388. package/dist/index93.cjs +1 -1
  389. package/dist/index93.js +13 -54
  390. package/dist/index94.cjs +1 -1
  391. package/dist/index94.js +28 -55
  392. package/dist/index95.cjs +1 -1
  393. package/dist/index95.js +525 -80
  394. package/dist/index96.cjs +1 -1
  395. package/dist/index96.js +75 -61
  396. package/dist/index97.cjs +1 -1
  397. package/dist/index97.js +67 -583
  398. package/dist/index98.cjs +1 -9
  399. package/dist/index98.js +32 -27
  400. package/dist/index99.cjs +1 -1
  401. package/dist/index99.js +17 -49
  402. package/dist/ui/alert-dialog.d.ts +15 -0
  403. package/dist/ui/alert-dialog.d.ts.map +1 -0
  404. package/dist/ui/alert.d.ts +10 -0
  405. package/dist/ui/alert.d.ts.map +1 -0
  406. package/dist/ui/aspect-ratio.d.ts +4 -0
  407. package/dist/ui/aspect-ratio.d.ts.map +1 -0
  408. package/dist/ui/avatar.d.ts +7 -0
  409. package/dist/ui/avatar.d.ts.map +1 -0
  410. package/dist/ui/badge.d.ts +1 -1
  411. package/dist/ui/breadcrumb.d.ts +12 -0
  412. package/dist/ui/breadcrumb.d.ts.map +1 -0
  413. package/dist/ui/button.d.ts +1 -1
  414. package/dist/ui/carousel.d.ts +20 -0
  415. package/dist/ui/carousel.d.ts.map +1 -0
  416. package/dist/ui/collapsible.d.ts +6 -0
  417. package/dist/ui/collapsible.d.ts.map +1 -0
  418. package/dist/ui/context-menu.d.ts +26 -0
  419. package/dist/ui/context-menu.d.ts.map +1 -0
  420. package/dist/ui/drawer.d.ts +14 -0
  421. package/dist/ui/drawer.d.ts.map +1 -0
  422. package/dist/ui/hover-card.d.ts +7 -0
  423. package/dist/ui/hover-card.d.ts.map +1 -0
  424. package/dist/ui/index.d.ts +23 -0
  425. package/dist/ui/index.d.ts.map +1 -1
  426. package/dist/ui/input-otp.d.ts +12 -0
  427. package/dist/ui/input-otp.d.ts.map +1 -0
  428. package/dist/ui/menubar.d.ts +27 -0
  429. package/dist/ui/menubar.d.ts.map +1 -0
  430. package/dist/ui/navigation-menu.d.ts +15 -0
  431. package/dist/ui/navigation-menu.d.ts.map +1 -0
  432. package/dist/ui/pagination.d.ts +14 -0
  433. package/dist/ui/pagination.d.ts.map +1 -0
  434. package/dist/ui/resizable.d.ts +9 -0
  435. package/dist/ui/resizable.d.ts.map +1 -0
  436. package/dist/ui/sheet.d.ts +14 -0
  437. package/dist/ui/sheet.d.ts.map +1 -0
  438. package/dist/ui/sidebar.d.ts +70 -0
  439. package/dist/ui/sidebar.d.ts.map +1 -0
  440. package/dist/ui/skeleton.d.ts +3 -0
  441. package/dist/ui/skeleton.d.ts.map +1 -0
  442. package/dist/ui/slider.d.ts +5 -0
  443. package/dist/ui/slider.d.ts.map +1 -0
  444. package/dist/ui/switch.d.ts +5 -0
  445. package/dist/ui/switch.d.ts.map +1 -0
  446. package/dist/ui/tabs.d.ts +8 -0
  447. package/dist/ui/tabs.d.ts.map +1 -0
  448. package/dist/ui/toggle-group.d.ts +8 -0
  449. package/dist/ui/toggle-group.d.ts.map +1 -0
  450. package/dist/ui/toggle.d.ts +10 -0
  451. package/dist/ui/toggle.d.ts.map +1 -0
  452. package/package.json +23 -5
package/dist/index40.js CHANGED
@@ -1,46 +1,105 @@
1
- import { Button as e } from "./index6.js";
2
- import { Checkbox as t } from "./index9.js";
3
- import { DataTableRowActions as n } from "./index39.js";
4
- import { ChevronDown as r, ChevronRight as i } from "lucide-react";
5
- import { jsx as a, jsxs as o } from "react/jsx-runtime";
6
- //#region src/DataTable/render/createColumns.tsx
7
- var s = () => ({
8
- id: "select",
9
- header: ({ table: e }) => /* @__PURE__ */ a(t, {
10
- checked: e.getIsAllPageRowsSelected() || (e.getIsSomePageRowsSelected() ? "indeterminate" : !1),
11
- onCheckedChange: (t) => e.toggleAllPageRowsSelected(!!t),
12
- "aria-label": "Select all"
13
- }),
14
- cell: ({ row: e }) => /* @__PURE__ */ a(t, {
15
- checked: e.getIsSelected(),
16
- onCheckedChange: (t) => e.toggleSelected(!!t),
17
- "aria-label": "Select row"
18
- }),
19
- enableSorting: !1,
20
- enableHiding: !1
21
- }), c = () => ({
22
- id: "expand",
23
- enableSorting: !1,
24
- enableHiding: !1,
25
- header: () => null,
26
- cell: ({ row: e }) => /* @__PURE__ */ a(l, { row: e })
27
- }), l = ({ row: t }) => t.getCanExpand() ? /* @__PURE__ */ o(e, {
28
- variant: "ghost",
29
- size: "sm",
30
- className: "h-8 w-8 p-0",
31
- onClick: () => t.toggleExpanded(),
32
- children: [/* @__PURE__ */ a("span", {
33
- className: "sr-only",
34
- children: "Toggle"
35
- }), t.getIsExpanded() ? /* @__PURE__ */ a(r, {}) : /* @__PURE__ */ a(i, {})]
36
- }) : null, u = () => ({
37
- id: "actions",
38
- enableHiding: !1,
39
- header: () => null,
40
- cell: ({ row: e, table: t }) => /* @__PURE__ */ a(n, {
41
- row: e,
42
- table: t
43
- })
44
- });
1
+ //#region ../../node_modules/.pnpm/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
2
+ var e = [
3
+ "top",
4
+ "right",
5
+ "bottom",
6
+ "left"
7
+ ], t = Math.min, n = Math.max, r = Math.round, i = Math.floor, a = (e) => ({
8
+ x: e,
9
+ y: e
10
+ }), o = {
11
+ left: "right",
12
+ right: "left",
13
+ bottom: "top",
14
+ top: "bottom"
15
+ };
16
+ function s(e, r, i) {
17
+ return n(e, t(r, i));
18
+ }
19
+ function c(e, t) {
20
+ return typeof e == "function" ? e(t) : e;
21
+ }
22
+ function l(e) {
23
+ return e.split("-")[0];
24
+ }
25
+ function u(e) {
26
+ return e.split("-")[1];
27
+ }
28
+ function d(e) {
29
+ return e === "x" ? "y" : "x";
30
+ }
31
+ function f(e) {
32
+ return e === "y" ? "height" : "width";
33
+ }
34
+ function p(e) {
35
+ let t = e[0];
36
+ return t === "t" || t === "b" ? "y" : "x";
37
+ }
38
+ function m(e) {
39
+ return d(p(e));
40
+ }
41
+ function h(e, t, n) {
42
+ n === void 0 && (n = !1);
43
+ let r = u(e), i = m(e), a = f(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
44
+ return t.reference[a] > t.floating[a] && (o = w(o)), [o, w(o)];
45
+ }
46
+ function g(e) {
47
+ let t = w(e);
48
+ return [
49
+ _(e),
50
+ t,
51
+ _(t)
52
+ ];
53
+ }
54
+ function _(e) {
55
+ return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
56
+ }
57
+ var v = ["left", "right"], y = ["right", "left"], b = ["top", "bottom"], x = ["bottom", "top"];
58
+ function S(e, t, n) {
59
+ switch (e) {
60
+ case "top":
61
+ case "bottom": return n ? t ? y : v : t ? v : y;
62
+ case "left":
63
+ case "right": return t ? b : x;
64
+ default: return [];
65
+ }
66
+ }
67
+ function C(e, t, n, r) {
68
+ let i = u(e), a = S(l(e), n === "start", r);
69
+ return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(_)))), a;
70
+ }
71
+ function w(e) {
72
+ let t = l(e);
73
+ return o[t] + e.slice(t.length);
74
+ }
75
+ function T(e) {
76
+ return {
77
+ top: e.top ?? 0,
78
+ right: e.right ?? 0,
79
+ bottom: e.bottom ?? 0,
80
+ left: e.left ?? 0
81
+ };
82
+ }
83
+ function E(e) {
84
+ return typeof e == "number" ? {
85
+ top: e,
86
+ right: e,
87
+ bottom: e,
88
+ left: e
89
+ } : T(e);
90
+ }
91
+ function D(e) {
92
+ let { x: t, y: n, width: r, height: i } = e;
93
+ return {
94
+ width: r,
95
+ height: i,
96
+ top: n,
97
+ left: t,
98
+ right: t + r,
99
+ bottom: n + i,
100
+ x: t,
101
+ y: n
102
+ };
103
+ }
45
104
  //#endregion
46
- export { c as createExpanderColumn, u as createRowActionsColumn, s as createSelectionColumn };
105
+ export { s as clamp, a as createCoords, c as evaluate, i as floor, u as getAlignment, m as getAlignmentAxis, h as getAlignmentSides, f as getAxisLength, g as getExpandedPlacements, d as getOppositeAxis, C as getOppositeAxisPlacements, w as getOppositePlacement, E as getPaddingObject, l as getSide, p as getSideAxis, n as max, t as min, D as rectToClientRect, r as round, e as sides };
package/dist/index41.cjs CHANGED
@@ -1 +1 @@
1
- const e=require("./index7.cjs"),t=require("./index10.cjs"),n=require("./index40.cjs");let r=require("lucide-react"),i=require("react/jsx-runtime");var a=()=>({id:`select`,header:({table:e})=>(0,i.jsx)(t.Checkbox,{checked:e.getIsAllPageRowsSelected()||(e.getIsSomePageRowsSelected()?`indeterminate`:!1),onCheckedChange:t=>e.toggleAllPageRowsSelected(!!t),"aria-label":`Select all`}),cell:({row:e})=>(0,i.jsx)(t.Checkbox,{checked:e.getIsSelected(),onCheckedChange:t=>e.toggleSelected(!!t),"aria-label":`Select row`}),enableSorting:!1,enableHiding:!1}),o=()=>({id:`expand`,enableSorting:!1,enableHiding:!1,header:()=>null,cell:({row:e})=>(0,i.jsx)(s,{row:e})}),s=({row:t})=>t.getCanExpand()?(0,i.jsxs)(e.Button,{variant:`ghost`,size:`sm`,className:`h-8 w-8 p-0`,onClick:()=>t.toggleExpanded(),children:[(0,i.jsx)(`span`,{className:`sr-only`,children:`Toggle`}),t.getIsExpanded()?(0,i.jsx)(r.ChevronDown,{}):(0,i.jsx)(r.ChevronRight,{})]}):null,c=()=>({id:`actions`,enableHiding:!1,header:()=>null,cell:({row:e,table:t})=>(0,i.jsx)(n.DataTableRowActions,{row:e,table:t})});exports.createExpanderColumn=o,exports.createRowActionsColumn=c,exports.createSelectionColumn=a;
1
+ var e=[`top`,`right`,`bottom`,`left`],t=Math.min,n=Math.max,r=Math.round,i=Math.floor,a=e=>({x:e,y:e}),o={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function s(e,r,i){return n(e,t(r,i))}function c(e,t){return typeof e==`function`?e(t):e}function l(e){return e.split(`-`)[0]}function u(e){return e.split(`-`)[1]}function d(e){return e===`x`?`y`:`x`}function f(e){return e===`y`?`height`:`width`}function p(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function m(e){return d(p(e))}function h(e,t,n){n===void 0&&(n=!1);let r=u(e),i=m(e),a=f(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=w(o)),[o,w(o)]}function g(e){let t=w(e);return[_(e),t,_(t)]}function _(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var v=[`left`,`right`],y=[`right`,`left`],b=[`top`,`bottom`],x=[`bottom`,`top`];function S(e,t,n){switch(e){case`top`:case`bottom`:return n?t?y:v:t?v:y;case`left`:case`right`:return t?b:x;default:return[]}}function C(e,t,n,r){let i=u(e),a=S(l(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(_)))),a}function w(e){let t=l(e);return o[t]+e.slice(t.length)}function T(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function E(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:T(e)}function D(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}exports.clamp=s,exports.createCoords=a,exports.evaluate=c,exports.floor=i,exports.getAlignment=u,exports.getAlignmentAxis=m,exports.getAlignmentSides=h,exports.getAxisLength=f,exports.getExpandedPlacements=g,exports.getOppositeAxis=d,exports.getOppositeAxisPlacements=C,exports.getOppositePlacement=w,exports.getPaddingObject=E,exports.getSide=l,exports.getSideAxis=p,exports.max=n,exports.min=t,exports.rectToClientRect=D,exports.round=r,exports.sides=e;
package/dist/index41.js CHANGED
@@ -1,142 +1,339 @@
1
- import { Activity as e, AlertCircle as ee, ArrowLeft as t, ArrowRight as te, Award as ne, BarChart3 as re, BookOpen as ie, Bot as n, Brain as r, Calendar as i, CalendarIcon as a, Camera as o, Cat as s, Check as c, CheckCircle2 as l, CheckIcon as u, ChevronDown as d, ChevronDownIcon as f, ChevronLeft as p, ChevronRight as m, ChevronUp as h, Circle as g, Clock as _, CloudUpload as v, Code as y, Copy as b, Cpu as x, Database as S, Dog as C, DollarSign as w, Edit as T, Eye as E, EyeOff as D, FileArchiveIcon as O, FileAudioIcon as k, FileCodeIcon as A, FileCogIcon as j, FileIcon as M, FileQuestion as N, FileTextIcon as P, FileVideoIcon as F, Fish as I, Flame as L, Folder as R, FolderHeart as z, FolderOpen as B, GitBranch as V, GitCommit as H, GitMerge as U, Globe as W, HardDrive as G, Headphones as K, Heart as q, History as J, Home as Y, Image as X, Info as ae, Languages as oe, Lightbulb as se, Loader2 as ce, LoaderCircleIcon as le, LoaderIcon as ue, LoaderPinwheelIcon as de, Mail as fe, Maximize as Z, MessageCircle as pe, MessageSquare as me, Mic as he, Minimize as ge, Monitor as _e, Moon as ve, MoonIcon as ye, MoreHorizontal as be, MoreVertical as xe, Palette as Se, PenTool as Ce, Pencil as we, Phone as Te, PhoneOff as Ee, PieChart as De, Play as Oe, Plus as ke, PlusCircle as Ae, Rabbit as je, RefreshCcw as Me, Save as Ne, Search as Pe, SearchIcon as Fe, Send as Ie, Settings as Le, Shield as Re, Smartphone as ze, Sparkles as Be, Square as Ve, Star as He, Sun as Ue, SunMedium as We, Tag as Ge, Target as Ke, Terminal as qe, Trash2 as Je, TrendingUp as Ye, Trophy as Xe, Turtle as Ze, Type as Qe, Undo2 as $e, Upload as et, UploadCloud as tt, User as nt, Users as rt, Video as it, Volume2 as at, Wand2 as ot, WandSparkles as Q, X as st, XCircle as ct, XIcon as lt, Zap as ut } from "lucide-react";
2
- import { jsx as $ } from "react/jsx-runtime";
3
- //#region src/Icons/Icons.tsx
4
- var dt = {
5
- MoonIcon: ye,
6
- SunIcon: We,
7
- Award: ne,
8
- Cat: s,
9
- Dog: C,
10
- Fish: I,
11
- Rabbit: je,
12
- Turtle: Ze,
13
- Code: y,
14
- Globe: W,
15
- Users: rt,
16
- Star: He,
17
- Heart: q,
18
- Zap: ut,
19
- Cpu: x,
20
- Database: S,
21
- Monitor: _e,
22
- Smartphone: ze,
23
- Wand: ot,
24
- WandSparkles: Q,
25
- Calendar: i,
26
- CalendarIcon: a,
27
- HardDrive: G,
28
- TrendingUp: Ye,
29
- DollarSign: w,
30
- Target: Ke,
31
- Shield: Re,
32
- Mail: fe,
33
- PieChart: De,
34
- Activity: e,
35
- Search: Pe,
36
- SearchIcon: Fe,
37
- MessageCircle: pe,
38
- Bot: n,
39
- MoreHorizontal: be,
40
- MoreVertical: xe,
41
- Maximize: Z,
42
- Minimize: ge,
43
- X: st,
44
- XIcon: lt,
45
- XCircle: ct,
46
- EyeOff: D,
47
- Eye: E,
48
- Copy: b,
49
- Check: c,
50
- CheckIcon: u,
51
- Clock: _,
52
- ChevronUp: h,
53
- ChevronDown: d,
54
- ChevronDownIcon: f,
55
- ChevronRight: m,
56
- ChevronLeft: p,
57
- Sparkles: Be,
58
- WandSparklesIcon: Q,
59
- Play: Oe,
60
- Headphones: K,
61
- Brain: r,
62
- PenTool: Ce,
63
- BookOpen: ie,
64
- BarChart3: re,
65
- CheckCircle2: l,
66
- Moon: ve,
67
- Sun: Ue,
68
- CloudUpload: v,
69
- LoaderCircleIcon: le,
70
- LoaderIcon: ue,
71
- LoaderPinwheelIcon: de,
72
- FileArchiveIcon: O,
73
- FileAudioIcon: k,
74
- FileCodeIcon: A,
75
- FileCogIcon: j,
76
- FileIcon: M,
77
- FileTextIcon: P,
78
- FileVideoIcon: F,
79
- Trophy: Xe,
80
- Flame: L,
81
- Undo2: $e,
82
- Volume2: at,
83
- ArrowRight: te,
84
- ArrowLeft: t,
85
- Plus: ke,
86
- PlusCircle: Ae,
87
- Info: ae,
88
- Square: Ve,
89
- Mic: he,
90
- MessageSquare: me,
91
- Phone: Te,
92
- PhoneOff: Ee,
93
- Circle: g,
94
- Send: Ie,
95
- Loader2: ce,
96
- History: J,
97
- Languages: oe,
98
- Lightbulb: se,
99
- FileQuestion: N,
100
- Home: Y,
101
- AlertCircle: ee,
102
- RefreshCcw: Me,
103
- Settings: Le,
104
- Camera: o,
105
- Folder: R,
106
- Image: X,
107
- Video: it,
108
- Upload: et,
109
- UploadCloud: tt,
110
- Save: Ne,
111
- Palette: Se,
112
- Type: Qe,
113
- Edit: T,
114
- Pencil: we,
115
- Tag: Ge,
116
- Trash2: Je,
117
- FolderHeart: z,
118
- FolderOpen: B,
119
- GitBranch: V,
120
- GitMerge: U,
121
- GitCommit: H,
122
- User: nt,
123
- Terminal: qe,
124
- HomeIcon: Y,
125
- ImageIcon: X,
126
- GitHub: ({ ...e }) => /* @__PURE__ */ $("svg", {
127
- "aria-hidden": "true",
128
- focusable: "false",
129
- "data-prefix": "fab",
130
- "data-icon": "github",
131
- role: "img",
132
- xmlns: "http://www.w3.org/2000/svg",
133
- viewBox: "0 0 496 512",
134
- ...e,
135
- children: /* @__PURE__ */ $("path", {
136
- fill: "currentColor",
137
- d: "M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3 .3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5 .3-6.2 2.3zm44.2-1.7c-2.9 .7-4.9 2.6-4.6 4.9 .3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3 .7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3 .3 2.9 2.3 3.9 1.6 1 3.6 .7 4.3-.7 .7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3 .7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3 .7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"
138
- })
139
- })
1
+ import { clamp as e, evaluate as t, getAlignment as n, getAlignmentAxis as r, getAlignmentSides as i, getAxisLength as a, getExpandedPlacements as o, getOppositeAxis as s, getOppositeAxisPlacements as c, getOppositePlacement as l, getPaddingObject as u, getSide as d, getSideAxis as f, max as p, min as m, rectToClientRect as h, sides as g } from "./index40.js";
2
+ //#region ../../node_modules/.pnpm/@floating-ui+core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
3
+ function _(e, t, i) {
4
+ let { reference: o, floating: s } = e, c = f(t), l = r(t), u = a(l), p = d(t), m = c === "y", h = o.x + o.width / 2 - s.width / 2, g = o.y + o.height / 2 - s.height / 2, _ = o[u] / 2 - s[u] / 2, v;
5
+ switch (p) {
6
+ case "top":
7
+ v = {
8
+ x: h,
9
+ y: o.y - s.height
10
+ };
11
+ break;
12
+ case "bottom":
13
+ v = {
14
+ x: h,
15
+ y: o.y + o.height
16
+ };
17
+ break;
18
+ case "right":
19
+ v = {
20
+ x: o.x + o.width,
21
+ y: g
22
+ };
23
+ break;
24
+ case "left":
25
+ v = {
26
+ x: o.x - s.width,
27
+ y: g
28
+ };
29
+ break;
30
+ default: v = {
31
+ x: o.x,
32
+ y: o.y
33
+ };
34
+ }
35
+ let y = n(t);
36
+ return y && (v[l] += _ * (y === "end" ? 1 : -1) * (i && m ? -1 : 1)), v;
37
+ }
38
+ async function v(e, n) {
39
+ n === void 0 && (n = {});
40
+ let { x: r, y: i, platform: a, rects: o, elements: s, strategy: c } = e, { boundary: l = "clippingAncestors", rootBoundary: d = "viewport", elementContext: f = "floating", altBoundary: p = !1, padding: m = 0 } = t(n, e), g = u(m), _ = s[p ? f === "floating" ? "reference" : "floating" : f], v = h(await a.getClippingRect({
41
+ element: await (a.isElement == null ? void 0 : a.isElement(_)) ?? !0 ? _ : _.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(s.floating)),
42
+ boundary: l,
43
+ rootBoundary: d,
44
+ strategy: c
45
+ })), y = f === "floating" ? {
46
+ x: r,
47
+ y: i,
48
+ width: o.floating.width,
49
+ height: o.floating.height
50
+ } : o.reference, b = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(s.floating)), x = await (a.isElement == null ? void 0 : a.isElement(b)) && await (a.getScale == null ? void 0 : a.getScale(b)) || {
51
+ x: 1,
52
+ y: 1
53
+ }, S = h(a.convertOffsetParentRelativeRectToViewportRelativeRect ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({
54
+ elements: s,
55
+ rect: y,
56
+ offsetParent: b,
57
+ strategy: c
58
+ }) : y);
59
+ return {
60
+ top: (v.top - S.top + g.top) / x.y,
61
+ bottom: (S.bottom - v.bottom + g.bottom) / x.y,
62
+ left: (v.left - S.left + g.left) / x.x,
63
+ right: (S.right - v.right + g.right) / x.x
64
+ };
65
+ }
66
+ var y = 50, b = async (e, t, n) => {
67
+ let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
68
+ ...o,
69
+ detectOverflow: v
70
+ }, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
71
+ reference: e,
72
+ floating: t,
73
+ strategy: i
74
+ }), { x: u, y: d } = _(l, r, c), f = r, p = 0, m = {};
75
+ for (let n = 0; n < a.length; n++) {
76
+ let h = a[n];
77
+ if (!h) continue;
78
+ let { name: g, fn: v } = h, { x: b, y: x, data: S, reset: C } = await v({
79
+ x: u,
80
+ y: d,
81
+ initialPlacement: r,
82
+ placement: f,
83
+ strategy: i,
84
+ middlewareData: m,
85
+ rects: l,
86
+ platform: s,
87
+ elements: {
88
+ reference: e,
89
+ floating: t
90
+ }
91
+ });
92
+ u = b ?? u, d = x ?? d, m[g] = {
93
+ ...m[g],
94
+ ...S
95
+ }, C && p < y && (p++, typeof C == "object" && (C.placement && (f = C.placement), C.rects && (l = C.rects === !0 ? await o.getElementRects({
96
+ reference: e,
97
+ floating: t,
98
+ strategy: i
99
+ }) : C.rects), {x: u, y: d} = _(l, f, c)), n = -1);
100
+ }
101
+ return {
102
+ x: u,
103
+ y: d,
104
+ placement: f,
105
+ strategy: i,
106
+ middlewareData: m
107
+ };
108
+ }, x = (i) => ({
109
+ name: "arrow",
110
+ options: i,
111
+ async fn(o) {
112
+ let { x: s, y: c, placement: l, rects: d, platform: f, elements: p, middlewareData: h } = o, { element: g, padding: _ = 0 } = t(i, o) || {};
113
+ if (g == null) return {};
114
+ let v = u(_), y = {
115
+ x: s,
116
+ y: c
117
+ }, b = r(l), x = a(b), S = await f.getDimensions(g), C = b === "y", w = C ? "top" : "left", T = C ? "bottom" : "right", E = C ? "clientHeight" : "clientWidth", D = d.reference[x] + d.reference[b] - y[b] - d.floating[x], O = y[b] - d.reference[b], k = await (f.getOffsetParent == null ? void 0 : f.getOffsetParent(g)), A = k ? k[E] : 0;
118
+ (!A || !await (f.isElement == null ? void 0 : f.isElement(k))) && (A = p.floating[E] || d.floating[x]);
119
+ let j = D / 2 - O / 2, M = A / 2 - S[x] / 2 - 1, N = m(v[w], M), P = m(v[T], M), F = A - S[x] - P, I = A / 2 - S[x] / 2 + j, L = e(N, I, F), R = !h.arrow && n(l) != null && I !== L && d.reference[x] / 2 - (I < N ? N : P) - S[x] / 2 < 0, z = R ? I < N ? I - N : I - F : 0;
120
+ return {
121
+ [b]: y[b] + z,
122
+ data: {
123
+ [b]: L,
124
+ centerOffset: I - L - z,
125
+ ...R && { alignmentOffset: z }
126
+ },
127
+ reset: R
128
+ };
129
+ }
130
+ }), S = function(e) {
131
+ return e === void 0 && (e = {}), {
132
+ name: "flip",
133
+ options: e,
134
+ async fn(n) {
135
+ var r;
136
+ let { placement: a, middlewareData: s, rects: u, initialPlacement: p, platform: m, elements: h } = n, { mainAxis: g = !0, crossAxis: _ = !0, fallbackPlacements: v, fallbackStrategy: y = "bestFit", fallbackAxisSideDirection: b = "none", flipAlignment: x = !0, ...S } = t(e, n);
137
+ if ((r = s.arrow) != null && r.alignmentOffset) return {};
138
+ let C = d(a), w = f(p), T = d(p) === p, E = await (m.isRTL == null ? void 0 : m.isRTL(h.floating)), D = v || (T || !x ? [l(p)] : o(p)), O = b !== "none";
139
+ !v && O && D.push(...c(p, x, b, E));
140
+ let k = [p, ...D], A = await m.detectOverflow(n, S), j = [], M = s.flip?.overflows || [];
141
+ if (g && j.push(A[C]), _) {
142
+ let e = i(a, u, E);
143
+ j.push(A[e[0]], A[e[1]]);
144
+ }
145
+ if (M = [...M, {
146
+ placement: a,
147
+ overflows: j
148
+ }], !j.every((e) => e <= 0)) {
149
+ let e = (s.flip?.index || 0) + 1, t = k[e];
150
+ if (t && (!(_ === "alignment" && w !== f(t)) || M.every((e) => f(e.placement) === w ? e.overflows[0] > 0 : !0))) return {
151
+ data: {
152
+ index: e,
153
+ overflows: M
154
+ },
155
+ reset: { placement: t }
156
+ };
157
+ let n = M.filter((e) => e.overflows[0] <= 0).sort((e, t) => e.overflows[1] - t.overflows[1])[0]?.placement;
158
+ if (!n) switch (y) {
159
+ case "bestFit": {
160
+ let e = M.filter((e) => {
161
+ if (O) {
162
+ let t = f(e.placement);
163
+ return t === w || t === "y";
164
+ }
165
+ return !0;
166
+ }).map((e) => [e.placement, e.overflows.filter((e) => e > 0).reduce((e, t) => e + t, 0)]).sort((e, t) => e[1] - t[1])[0]?.[0];
167
+ e && (n = e);
168
+ break;
169
+ }
170
+ case "initialPlacement":
171
+ n = p;
172
+ break;
173
+ }
174
+ if (a !== n) return { reset: { placement: n } };
175
+ }
176
+ return {};
177
+ }
178
+ };
179
+ };
180
+ function C(e, t) {
181
+ return {
182
+ top: e.top - t.height,
183
+ right: e.right - t.width,
184
+ bottom: e.bottom - t.height,
185
+ left: e.left - t.width
186
+ };
187
+ }
188
+ function w(e) {
189
+ return g.some((t) => e[t] >= 0);
190
+ }
191
+ var T = function(e) {
192
+ return e === void 0 && (e = {}), {
193
+ name: "hide",
194
+ options: e,
195
+ async fn(n) {
196
+ let { rects: r, platform: i } = n, { strategy: a = "referenceHidden", ...o } = t(e, n);
197
+ switch (a) {
198
+ case "referenceHidden": {
199
+ let e = C(await i.detectOverflow(n, {
200
+ ...o,
201
+ elementContext: "reference"
202
+ }), r.reference);
203
+ return { data: {
204
+ referenceHiddenOffsets: e,
205
+ referenceHidden: w(e)
206
+ } };
207
+ }
208
+ case "escaped": {
209
+ let e = C(await i.detectOverflow(n, {
210
+ ...o,
211
+ altBoundary: !0
212
+ }), r.floating);
213
+ return { data: {
214
+ escapedOffsets: e,
215
+ escaped: w(e)
216
+ } };
217
+ }
218
+ default: return {};
219
+ }
220
+ }
221
+ };
222
+ }, E = /* @__PURE__ */ new Set(["left", "top"]);
223
+ async function D(e, r) {
224
+ let { placement: i, platform: a, elements: o } = e, s = await (a.isRTL == null ? void 0 : a.isRTL(o.floating)), c = d(i), l = n(i), u = f(i) === "y", p = E.has(c) ? -1 : 1, m = s && u ? -1 : 1, h = t(r, e), { mainAxis: g, crossAxis: _, alignmentAxis: v } = typeof h == "number" ? {
225
+ mainAxis: h,
226
+ crossAxis: 0,
227
+ alignmentAxis: null
228
+ } : {
229
+ mainAxis: h.mainAxis || 0,
230
+ crossAxis: h.crossAxis || 0,
231
+ alignmentAxis: h.alignmentAxis
232
+ };
233
+ return l && typeof v == "number" && (_ = l === "end" ? v * -1 : v), u ? {
234
+ x: _ * m,
235
+ y: g * p
236
+ } : {
237
+ x: g * p,
238
+ y: _ * m
239
+ };
240
+ }
241
+ var O = function(e) {
242
+ return e === void 0 && (e = 0), {
243
+ name: "offset",
244
+ options: e,
245
+ async fn(t) {
246
+ var n;
247
+ let { x: r, y: i, placement: a, middlewareData: o } = t, s = await D(t, e);
248
+ return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
249
+ x: r + s.x,
250
+ y: i + s.y,
251
+ data: {
252
+ ...s,
253
+ placement: a
254
+ }
255
+ };
256
+ }
257
+ };
258
+ }, k = function(n) {
259
+ return n === void 0 && (n = {}), {
260
+ name: "shift",
261
+ options: n,
262
+ async fn(r) {
263
+ let { x: i, y: a, placement: o, platform: c } = r, { mainAxis: l = !0, crossAxis: u = !1, limiter: d = { fn: (e) => {
264
+ let { x: t, y: n } = e;
265
+ return {
266
+ x: t,
267
+ y: n
268
+ };
269
+ } }, ...p } = t(n, r), m = {
270
+ x: i,
271
+ y: a
272
+ }, h = await c.detectOverflow(r, p), g = f(o), _ = s(g), v = m[_], y = m[g], b = (t, n) => e(n + h[t === "y" ? "top" : "left"], n, n - h[t === "y" ? "bottom" : "right"]);
273
+ l && (v = b(_, v)), u && (y = b(g, y));
274
+ let x = d.fn({
275
+ ...r,
276
+ [_]: v,
277
+ [g]: y
278
+ });
279
+ return {
280
+ ...x,
281
+ data: {
282
+ x: x.x - i,
283
+ y: x.y - a,
284
+ enabled: {
285
+ [_]: l,
286
+ [g]: u
287
+ }
288
+ }
289
+ };
290
+ }
291
+ };
292
+ }, A = function(e) {
293
+ return e === void 0 && (e = {}), {
294
+ options: e,
295
+ fn(n) {
296
+ let { x: r, y: i, placement: a, rects: o, middlewareData: c } = n, { offset: l = 0, mainAxis: u = !0, crossAxis: p = !0 } = t(e, n), m = {
297
+ x: r,
298
+ y: i
299
+ }, h = f(a), g = s(h), _ = m[g], v = m[h], y = t(l, n), b = typeof y == "number" ? {
300
+ mainAxis: y,
301
+ crossAxis: 0
302
+ } : {
303
+ mainAxis: y.mainAxis ?? 0,
304
+ crossAxis: y.crossAxis ?? 0
305
+ };
306
+ if (u) {
307
+ let e = g === "y" ? "height" : "width", t = o.reference[g] - o.floating[e] + b.mainAxis, n = o.reference[g] + o.reference[e] - b.mainAxis;
308
+ _ < t ? _ = t : _ > n && (_ = n);
309
+ }
310
+ if (p) {
311
+ let e = g === "y" ? "width" : "height", t = E.has(d(a)), n = o.reference[h] - o.floating[e] + (t && c.offset?.[h] || 0) + (t ? 0 : b.crossAxis), r = o.reference[h] + o.reference[e] + (t ? 0 : c.offset?.[h] || 0) - (t ? b.crossAxis : 0);
312
+ v < n ? v = n : v > r && (v = r);
313
+ }
314
+ return {
315
+ [g]: _,
316
+ [h]: v
317
+ };
318
+ }
319
+ };
320
+ }, j = function(e) {
321
+ return e === void 0 && (e = {}), {
322
+ name: "size",
323
+ options: e,
324
+ async fn(r) {
325
+ let { placement: i, rects: a, platform: o, elements: s } = r, { apply: c = () => {}, ...l } = t(e, r), u = await o.detectOverflow(r, l), h = d(i), g = n(i), _ = f(i) === "y", { width: v, height: y } = a.floating, b, x;
326
+ h === "top" || h === "bottom" ? (b = h, x = g === (await (o.isRTL == null ? void 0 : o.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (x = h, b = g === "end" ? "top" : "bottom");
327
+ let S = y - u.top - u.bottom, C = v - u.left - u.right, w = m(y - u[b], S), T = m(v - u[x], C), E = r.middlewareData.shift, D = !E, O = w, k = T;
328
+ E != null && E.enabled.x && (k = C), E != null && E.enabled.y && (O = S), D && !g && (_ ? k = v - 2 * p(u.left, u.right) : O = y - 2 * p(u.top, u.bottom)), await c({
329
+ ...r,
330
+ availableWidth: k,
331
+ availableHeight: O
332
+ });
333
+ let A = await o.getDimensions(s.floating);
334
+ return v !== A.width || y !== A.height ? { reset: { rects: !0 } } : {};
335
+ }
336
+ };
140
337
  };
141
338
  //#endregion
142
- export { dt as Icons };
339
+ export { x as arrow, b as computePosition, S as flip, T as hide, A as limitShift, O as offset, k as shift, j as size };