@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
@@ -0,0 +1,430 @@
1
+ "use client";
2
+ import { createContextScope as e } from "./index6.js";
3
+ import { useComposedRefs as t } from "./index7.js";
4
+ import { composeEventHandlers as n } from "./index8.js";
5
+ import { Primitive as r } from "./index12.js";
6
+ import { useControllableState as i } from "./index29.js";
7
+ import { createCollection as a } from "./index36.js";
8
+ import { useSize as o } from "./index45.js";
9
+ import { usePrevious as s } from "./index93.js";
10
+ import { clamp as c } from "./index109.js";
11
+ import * as l from "react";
12
+ import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
13
+ import { useDirection as p } from "@radix-ui/react-direction";
14
+ //#region ../../node_modules/.pnpm/@radix-ui+react-slider@1.4.7_@types+react-dom@19.2.3_@types+react@19.2.17__@types+react_ff3db53b6740859ae752b28ef45a354c/node_modules/@radix-ui/react-slider/dist/index.mjs
15
+ var m = Object.defineProperty, h = (e, t) => m(e, "name", {
16
+ value: t,
17
+ configurable: !0
18
+ }), g = ["PageUp", "PageDown"], _ = [
19
+ "ArrowUp",
20
+ "ArrowDown",
21
+ "ArrowLeft",
22
+ "ArrowRight"
23
+ ], v = {
24
+ "from-left": [
25
+ "Home",
26
+ "PageDown",
27
+ "ArrowDown",
28
+ "ArrowLeft"
29
+ ],
30
+ "from-right": [
31
+ "Home",
32
+ "PageDown",
33
+ "ArrowDown",
34
+ "ArrowRight"
35
+ ],
36
+ "from-bottom": [
37
+ "Home",
38
+ "PageDown",
39
+ "ArrowDown",
40
+ "ArrowLeft"
41
+ ],
42
+ "from-top": [
43
+ "Home",
44
+ "PageDown",
45
+ "ArrowUp",
46
+ "ArrowLeft"
47
+ ]
48
+ }, y = "Slider", [b, x, S] = a(y), [C, w] = e(y, [S]), [ee, T] = C(y), E = /* @__PURE__ */ l.forwardRef(/* @__PURE__ */ h(function(e, r) {
49
+ let { name: a, min: o = 0, max: s = 100, step: u = 1, orientation: f = "horizontal", disabled: p = !1, minStepsBetweenThumbs: m = 0, defaultValue: v = [o], value: y, onValueChange: x = /* @__PURE__ */ h(() => {}, "onValueChange"), onValueCommit: S = /* @__PURE__ */ h(() => {}, "onValueCommit"), inverted: C = !1, form: w, ...T } = e, E = l.useRef(/* @__PURE__ */ new Set()), D = l.useRef(0), O = l.useRef(!1), k = f === "horizontal" ? te : ne, [A, j] = l.useState(null), M = t(r, j), [N = [], P] = i({
50
+ prop: y,
51
+ defaultProp: v,
52
+ onChange: /* @__PURE__ */ h((e) => {
53
+ [...E.current][D.current]?.focus({
54
+ preventScroll: !0,
55
+ focusVisible: O.current
56
+ }), O.current = !1, x(e);
57
+ }, "onChange")
58
+ }), F = l.useRef(N), I = l.useRef(N);
59
+ l.useEffect(() => {
60
+ let e = w ? A?.ownerDocument.getElementById(w) : A?.closest("form");
61
+ if (e instanceof HTMLFormElement) {
62
+ let t = /* @__PURE__ */ h(() => P(I.current), "reset");
63
+ return e.addEventListener("reset", t), () => e.removeEventListener("reset", t);
64
+ }
65
+ }, [
66
+ A,
67
+ w,
68
+ P
69
+ ]);
70
+ function L(e) {
71
+ B(e, G(N, e));
72
+ }
73
+ h(L, "handleSlideStart");
74
+ function R(e) {
75
+ B(e, D.current);
76
+ }
77
+ h(R, "handleSlideMove");
78
+ function z() {
79
+ String(N) !== String(F.current) && S(N);
80
+ }
81
+ h(z, "handleSlideEnd");
82
+ function B(e, t, { commit: n } = { commit: !1 }) {
83
+ let r = X(u), i = c(Z(Math.round((e - o) / u) * u + o, r), [o, s]);
84
+ P((e = []) => {
85
+ let r = H(e, i, t);
86
+ if (J(r, m * u)) {
87
+ D.current = r.indexOf(i);
88
+ let t = String(r) !== String(e);
89
+ return t && n && S(r), t ? r : e;
90
+ } else return e;
91
+ });
92
+ }
93
+ return h(B, "updateValues"), /* @__PURE__ */ d(ee, {
94
+ scope: e.__scopeSlider,
95
+ name: a,
96
+ disabled: p,
97
+ min: o,
98
+ max: s,
99
+ valueIndexToChangeRef: D,
100
+ thumbs: E.current,
101
+ values: N,
102
+ orientation: f,
103
+ form: w,
104
+ children: /* @__PURE__ */ d(b.Provider, {
105
+ scope: e.__scopeSlider,
106
+ children: /* @__PURE__ */ d(b.Slot, {
107
+ scope: e.__scopeSlider,
108
+ children: /* @__PURE__ */ d(k, {
109
+ "aria-disabled": p,
110
+ "data-disabled": p ? "" : void 0,
111
+ ...T,
112
+ ref: M,
113
+ onPointerDown: n(T.onPointerDown, () => {
114
+ p || (F.current = N, O.current = !1);
115
+ }),
116
+ min: o,
117
+ max: s,
118
+ inverted: C,
119
+ onSlideStart: p ? void 0 : L,
120
+ onSlideMove: p ? void 0 : R,
121
+ onSlideEnd: p ? void 0 : z,
122
+ onHomeKeyDown: () => {
123
+ p || (O.current = !0, B(o, 0, { commit: !0 }));
124
+ },
125
+ onEndKeyDown: () => {
126
+ p || (O.current = !0, B(s, N.length - 1, { commit: !0 }));
127
+ },
128
+ onStepKeyDown: ({ event: e, direction: t }) => {
129
+ if (!p) {
130
+ O.current = !0;
131
+ let n = g.includes(e.key) || e.shiftKey && _.includes(e.key) ? 10 : 1, r = D.current, i = N[r];
132
+ B(Q(i, {
133
+ min: o,
134
+ step: u,
135
+ direction: t,
136
+ multiplier: n
137
+ }), r, { commit: !0 });
138
+ }
139
+ }
140
+ })
141
+ })
142
+ })
143
+ });
144
+ }, "Slider")), [D, O] = C(y, {
145
+ startEdge: "left",
146
+ endEdge: "right",
147
+ size: "width",
148
+ direction: 1
149
+ }), te = /* @__PURE__ */ l.forwardRef(/* @__PURE__ */ h(function(e, n) {
150
+ let { min: r, max: i, dir: a, inverted: o, onSlideStart: s, onSlideMove: c, onSlideEnd: u, onStepKeyDown: f, ...m } = e, [g, _] = l.useState(null), y = t(n, _), b = l.useRef(void 0), x = p(a), S = x === "ltr", C = S && !o || !S && o;
151
+ function w(e) {
152
+ let t = b.current || g.getBoundingClientRect(), n = Y([0, t.width], C ? [r, i] : [i, r]);
153
+ return b.current = t, n(e - t.left);
154
+ }
155
+ return h(w, "getValueFromPointer"), /* @__PURE__ */ d(D, {
156
+ scope: e.__scopeSlider,
157
+ startEdge: C ? "left" : "right",
158
+ endEdge: C ? "right" : "left",
159
+ direction: C ? 1 : -1,
160
+ size: "width",
161
+ children: /* @__PURE__ */ d(k, {
162
+ dir: x,
163
+ "data-orientation": "horizontal",
164
+ ...m,
165
+ ref: y,
166
+ style: {
167
+ ...m.style,
168
+ "--radix-slider-thumb-transform": "translateX(-50%)"
169
+ },
170
+ onSlideStart: (e) => {
171
+ let t = w(e.clientX);
172
+ s?.(t);
173
+ },
174
+ onSlideMove: (e) => {
175
+ let t = w(e.clientX);
176
+ c?.(t);
177
+ },
178
+ onSlideEnd: () => {
179
+ b.current = void 0, u?.();
180
+ },
181
+ onStepKeyDown: (e) => {
182
+ let t = v[C ? "from-left" : "from-right"].includes(e.key);
183
+ f?.({
184
+ event: e,
185
+ direction: t ? -1 : 1
186
+ });
187
+ }
188
+ })
189
+ });
190
+ }, "SliderHorizontal")), ne = /* @__PURE__ */ l.forwardRef(/* @__PURE__ */ h(function(e, n) {
191
+ let { min: r, max: i, inverted: a, onSlideStart: o, onSlideMove: s, onSlideEnd: c, onStepKeyDown: u, ...f } = e, p = l.useRef(null), m = t(n, p), g = l.useRef(void 0), _ = !a;
192
+ function y(e) {
193
+ let t = g.current || p.current.getBoundingClientRect(), n = Y([0, t.height], _ ? [i, r] : [r, i]);
194
+ return g.current = t, n(e - t.top);
195
+ }
196
+ return h(y, "getValueFromPointer"), /* @__PURE__ */ d(D, {
197
+ scope: e.__scopeSlider,
198
+ startEdge: _ ? "bottom" : "top",
199
+ endEdge: _ ? "top" : "bottom",
200
+ size: "height",
201
+ direction: _ ? 1 : -1,
202
+ children: /* @__PURE__ */ d(k, {
203
+ "data-orientation": "vertical",
204
+ ...f,
205
+ ref: m,
206
+ style: {
207
+ ...f.style,
208
+ "--radix-slider-thumb-transform": "translateY(50%)"
209
+ },
210
+ onSlideStart: (e) => {
211
+ let t = y(e.clientY);
212
+ o?.(t);
213
+ },
214
+ onSlideMove: (e) => {
215
+ let t = y(e.clientY);
216
+ s?.(t);
217
+ },
218
+ onSlideEnd: () => {
219
+ g.current = void 0, c?.();
220
+ },
221
+ onStepKeyDown: (e) => {
222
+ let t = v[_ ? "from-bottom" : "from-top"].includes(e.key);
223
+ u?.({
224
+ event: e,
225
+ direction: t ? -1 : 1
226
+ });
227
+ }
228
+ })
229
+ });
230
+ }, "SliderVertical")), k = /* @__PURE__ */ l.forwardRef(/* @__PURE__ */ h(function(e, t) {
231
+ let { __scopeSlider: i, onSlideStart: a, onSlideMove: o, onSlideEnd: s, onHomeKeyDown: c, onEndKeyDown: l, onStepKeyDown: u, ...f } = e, p = T(y, i);
232
+ return /* @__PURE__ */ d(r.span, {
233
+ ...f,
234
+ ref: t,
235
+ onKeyDown: n(e.onKeyDown, (e) => {
236
+ e.key === "Home" ? (c(e), e.preventDefault()) : e.key === "End" ? (l(e), e.preventDefault()) : g.concat(_).includes(e.key) && (u(e), e.preventDefault());
237
+ }),
238
+ onPointerDown: n(e.onPointerDown, (e) => {
239
+ let t = e.target;
240
+ t.setPointerCapture(e.pointerId), e.preventDefault(), p.thumbs.has(t) ? t.focus({
241
+ preventScroll: !0,
242
+ focusVisible: !1
243
+ }) : a(e);
244
+ }),
245
+ onPointerMove: n(e.onPointerMove, (e) => {
246
+ e.target.hasPointerCapture(e.pointerId) && o(e);
247
+ }),
248
+ onPointerUp: n(e.onPointerUp, (e) => {
249
+ let t = e.target;
250
+ t.hasPointerCapture(e.pointerId) && (t.releasePointerCapture(e.pointerId), s(e));
251
+ })
252
+ });
253
+ }, "SliderImpl")), A = "SliderTrack", j = /* @__PURE__ */ l.forwardRef(/* @__PURE__ */ h(function(e, t) {
254
+ let { __scopeSlider: n, ...i } = e, a = T(A, n);
255
+ return /* @__PURE__ */ d(r.span, {
256
+ "data-disabled": a.disabled ? "" : void 0,
257
+ "data-orientation": a.orientation,
258
+ ...i,
259
+ ref: t
260
+ });
261
+ }, "SliderTrack")), M = "SliderRange", N = /* @__PURE__ */ l.forwardRef(/* @__PURE__ */ h(function(e, n) {
262
+ let { __scopeSlider: i, ...a } = e, o = T(M, i), s = O(M, i), c = t(n, l.useRef(null)), u = o.values.length, f = o.values.map((e) => U(e, o.min, o.max)), p = u > 1 ? Math.min(...f) : 0, m = 100 - Math.max(...f);
263
+ return /* @__PURE__ */ d(r.span, {
264
+ "data-orientation": o.orientation,
265
+ "data-disabled": o.disabled ? "" : void 0,
266
+ ...a,
267
+ ref: c,
268
+ style: {
269
+ ...e.style,
270
+ [s.startEdge]: p + "%",
271
+ [s.endEdge]: m + "%"
272
+ }
273
+ });
274
+ }, "SliderRange")), [P, F] = C("SliderThumb"), I = "SliderThumbProvider";
275
+ function L(e) {
276
+ let { __scopeSlider: t, name: n, children: r, internal_do_not_use_render: i } = e, a = T(I, t), s = x(t), [c, u] = l.useState(null), f = l.useMemo(() => c ? s().findIndex((e) => e.ref.current === c) : -1, [s, c]), p = o(c), m = c ? !!a.form || !!c.closest("form") : !0, h = a.values[f], g = n ?? (a.name ? a.name + (a.values.length > 1 ? "[]" : "") : void 0), _ = h === void 0 ? 0 : U(h, a.min, a.max);
277
+ l.useEffect(() => {
278
+ if (c) return a.thumbs.add(c), () => {
279
+ a.thumbs.delete(c);
280
+ };
281
+ }, [c, a.thumbs]);
282
+ let v = {
283
+ value: h,
284
+ name: g,
285
+ form: a.form,
286
+ isFormControl: m,
287
+ index: f,
288
+ thumb: c,
289
+ onThumbChange: u,
290
+ percent: _,
291
+ size: p
292
+ };
293
+ return /* @__PURE__ */ d(P, {
294
+ scope: t,
295
+ ...v,
296
+ children: $(i) ? i(v) : r
297
+ });
298
+ }
299
+ h(L, "SliderThumbProvider");
300
+ var R = "SliderThumbTrigger", z = /* @__PURE__ */ l.forwardRef(/* @__PURE__ */ h(function(e, i) {
301
+ let { __scopeSlider: a, ...o } = e, s = T(R, a), c = O(R, a), { index: l, value: u, percent: f, size: p, onThumbChange: m } = F(R, a), h = t(i, m), g = W(l, s.values.length), _ = p?.[c.size], v = _ ? K(_, f, c.direction) : 0;
302
+ return /* @__PURE__ */ d("span", {
303
+ style: {
304
+ transform: "var(--radix-slider-thumb-transform)",
305
+ position: "absolute",
306
+ [c.startEdge]: `calc(${f}% + ${v}px)`
307
+ },
308
+ children: /* @__PURE__ */ d(b.ItemSlot, {
309
+ scope: a,
310
+ children: /* @__PURE__ */ d(r.span, {
311
+ role: "slider",
312
+ "aria-label": e["aria-label"] || g,
313
+ "aria-valuemin": s.min,
314
+ "aria-valuenow": u,
315
+ "aria-valuemax": s.max,
316
+ "aria-orientation": s.orientation,
317
+ "data-orientation": s.orientation,
318
+ "data-disabled": s.disabled ? "" : void 0,
319
+ tabIndex: s.disabled ? void 0 : 0,
320
+ ...o,
321
+ ref: h,
322
+ style: u === void 0 ? { display: "none" } : e.style,
323
+ onFocus: n(e.onFocus, () => {
324
+ s.valueIndexToChangeRef.current = l;
325
+ })
326
+ })
327
+ })
328
+ });
329
+ }, "SliderThumbTrigger")), B = /* @__PURE__ */ l.forwardRef(/* @__PURE__ */ h(function(e, t) {
330
+ let { __scopeSlider: n, name: r, ...i } = e;
331
+ return /* @__PURE__ */ d(L, {
332
+ __scopeSlider: n,
333
+ name: r,
334
+ internal_do_not_use_render: ({ index: e, isFormControl: r }) => /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d(z, {
335
+ ...i,
336
+ ref: t,
337
+ __scopeSlider: n
338
+ }), r ? /* @__PURE__ */ d(re, { __scopeSlider: n }, e) : null] })
339
+ });
340
+ }, "SliderThumb")), V = "SliderBubbleInput", re = /* @__PURE__ */ l.forwardRef(/* @__PURE__ */ h(function({ __scopeSlider: e, ...n }, i) {
341
+ let { value: a, name: o, form: c } = F(V, e), u = l.useRef(null), f = t(u, i), p = s(a);
342
+ return l.useEffect(() => {
343
+ let e = u.current;
344
+ if (!e) return;
345
+ let t = window.HTMLInputElement.prototype, n = Object.getOwnPropertyDescriptor(t, "value").set;
346
+ if (p !== a && n) {
347
+ let t = new Event("input", { bubbles: !0 });
348
+ n.call(e, a), e.dispatchEvent(t);
349
+ }
350
+ }, [p, a]), /* @__PURE__ */ d(r.input, {
351
+ style: { display: "none" },
352
+ name: o,
353
+ form: c,
354
+ ...n,
355
+ ref: f,
356
+ defaultValue: a
357
+ });
358
+ }, "SliderBubbleInput"));
359
+ function H(e = [], t, n) {
360
+ let r = [...e];
361
+ return r[n] = t, r.sort((e, t) => e - t);
362
+ }
363
+ h(H, "getNextSortedValues");
364
+ function U(e, t, n) {
365
+ return c(100 / (n - t) * (e - t), [0, 100]);
366
+ }
367
+ h(U, "convertValueToPercentage");
368
+ function W(e, t) {
369
+ if (t > 2) return `Value ${e + 1} of ${t}`;
370
+ if (t === 2) return ["Minimum", "Maximum"][e];
371
+ }
372
+ h(W, "getLabel");
373
+ function G(e, t) {
374
+ if (e.length === 1) return 0;
375
+ let n = e.map((e) => Math.abs(e - t)), r = Math.min(...n);
376
+ return n.indexOf(r);
377
+ }
378
+ h(G, "getClosestValueIndex");
379
+ function K(e, t, n) {
380
+ let r = e / 2;
381
+ return (r - Y([0, 50], [0, r])(t) * n) * n;
382
+ }
383
+ h(K, "getThumbInBoundsOffset");
384
+ function q(e) {
385
+ return e.slice(0, -1).map((t, n) => e[n + 1] - t);
386
+ }
387
+ h(q, "getStepsBetweenValues");
388
+ function J(e, t) {
389
+ if (t > 0) {
390
+ let n = q(e);
391
+ return Math.min(...n) >= t;
392
+ }
393
+ return !0;
394
+ }
395
+ h(J, "hasMinStepsBetweenValues");
396
+ function Y(e, t) {
397
+ return (n) => {
398
+ if (e[0] === e[1] || t[0] === t[1]) return t[0];
399
+ let r = (t[1] - t[0]) / (e[1] - e[0]);
400
+ return t[0] + r * (n - e[0]);
401
+ };
402
+ }
403
+ h(Y, "linearScale");
404
+ function X(e) {
405
+ if (!Number.isFinite(e)) return 0;
406
+ let t = e.toString();
407
+ if (t.includes("e")) {
408
+ let [e, n] = t.split("e"), r = e.split(".")[1] || "", i = Number(n);
409
+ return Math.max(0, r.length - i);
410
+ }
411
+ let n = t.split(".")[1];
412
+ return n ? n.length : 0;
413
+ }
414
+ h(X, "getDecimalCount");
415
+ function Z(e, t) {
416
+ let n = 10 ** t;
417
+ return Math.round(e * n) / n;
418
+ }
419
+ h(Z, "roundValue");
420
+ function Q(e, { min: t, step: n, direction: r, multiplier: i }) {
421
+ let a = X(n), o = (e - t) / n, s = Math.round(o), c = Z(s * n + t, a) === Z(e, a), l;
422
+ return l = c ? s + i * r : r > 0 ? Math.ceil(o) : Math.floor(o), Z(l * n + t, a);
423
+ }
424
+ h(Q, "getNextStepValue");
425
+ function $(e) {
426
+ return typeof e == "function";
427
+ }
428
+ h($, "isFunction");
429
+ //#endregion
430
+ export { E as Slider, N as SliderRange, B as SliderThumb, j as SliderTrack };
@@ -0,0 +1 @@
1
+ "use client";const e=require("./index2.cjs"),t=require("./index7.cjs"),n=require("./index8.cjs"),r=require("./index9.cjs"),i=require("./index13.cjs"),a=require("./index30.cjs"),o=require("./index37.cjs"),s=require("./index46.cjs"),c=require("./index94.cjs"),l=require("./index110.cjs");let u=require("react");u=e.__toESM(u,1);let d=require("react/jsx-runtime"),f=require("@radix-ui/react-direction");var p=Object.defineProperty,m=(e,t)=>p(e,`name`,{value:t,configurable:!0}),h=[`PageUp`,`PageDown`],g=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`],_={"from-left":[`Home`,`PageDown`,`ArrowDown`,`ArrowLeft`],"from-right":[`Home`,`PageDown`,`ArrowDown`,`ArrowRight`],"from-bottom":[`Home`,`PageDown`,`ArrowDown`,`ArrowLeft`],"from-top":[`Home`,`PageDown`,`ArrowUp`,`ArrowLeft`]},v=`Slider`,[y,b,x]=o.createCollection(v),[S,C]=t.createContextScope(v,[x]),[w,T]=S(v),E=u.forwardRef(m(function(e,t){let{name:i,min:o=0,max:s=100,step:c=1,orientation:f=`horizontal`,disabled:p=!1,minStepsBetweenThumbs:_=0,defaultValue:v=[o],value:b,onValueChange:x=m(()=>{},`onValueChange`),onValueCommit:S=m(()=>{},`onValueCommit`),inverted:C=!1,form:T,...E}=e,D=u.useRef(new Set),O=u.useRef(0),k=u.useRef(!1),A=f===`horizontal`?ee:te,[j,M]=u.useState(null),N=n.useComposedRefs(t,M),[P=[],F]=a.useControllableState({prop:b,defaultProp:v,onChange:m(e=>{[...D.current][O.current]?.focus({preventScroll:!0,focusVisible:k.current}),k.current=!1,x(e)},`onChange`)}),I=u.useRef(P),L=u.useRef(P);u.useEffect(()=>{let e=T?j?.ownerDocument.getElementById(T):j?.closest(`form`);if(e instanceof HTMLFormElement){let t=m(()=>F(L.current),`reset`);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[j,T,F]);function R(e){V(e,G(P,e))}m(R,`handleSlideStart`);function z(e){V(e,O.current)}m(z,`handleSlideMove`);function B(){String(P)!==String(I.current)&&S(P)}m(B,`handleSlideEnd`);function V(e,t,{commit:n}={commit:!1}){let r=X(c),i=l.clamp(Z(Math.round((e-o)/c)*c+o,r),[o,s]);F((e=[])=>{let r=H(e,i,t);if(J(r,_*c)){O.current=r.indexOf(i);let t=String(r)!==String(e);return t&&n&&S(r),t?r:e}else return e})}return m(V,`updateValues`),(0,d.jsx)(w,{scope:e.__scopeSlider,name:i,disabled:p,min:o,max:s,valueIndexToChangeRef:O,thumbs:D.current,values:P,orientation:f,form:T,children:(0,d.jsx)(y.Provider,{scope:e.__scopeSlider,children:(0,d.jsx)(y.Slot,{scope:e.__scopeSlider,children:(0,d.jsx)(A,{"aria-disabled":p,"data-disabled":p?``:void 0,...E,ref:N,onPointerDown:r.composeEventHandlers(E.onPointerDown,()=>{p||(I.current=P,k.current=!1)}),min:o,max:s,inverted:C,onSlideStart:p?void 0:R,onSlideMove:p?void 0:z,onSlideEnd:p?void 0:B,onHomeKeyDown:()=>{p||(k.current=!0,V(o,0,{commit:!0}))},onEndKeyDown:()=>{p||(k.current=!0,V(s,P.length-1,{commit:!0}))},onStepKeyDown:({event:e,direction:t})=>{if(!p){k.current=!0;let n=h.includes(e.key)||e.shiftKey&&g.includes(e.key)?10:1,r=O.current,i=P[r];V(Q(i,{min:o,step:c,direction:t,multiplier:n}),r,{commit:!0})}}})})})})},`Slider`)),[D,O]=S(v,{startEdge:`left`,endEdge:`right`,size:`width`,direction:1}),ee=u.forwardRef(m(function(e,t){let{min:r,max:i,dir:a,inverted:o,onSlideStart:s,onSlideMove:c,onSlideEnd:l,onStepKeyDown:p,...h}=e,[g,v]=u.useState(null),y=n.useComposedRefs(t,v),b=u.useRef(void 0),x=(0,f.useDirection)(a),S=x===`ltr`,C=S&&!o||!S&&o;function w(e){let t=b.current||g.getBoundingClientRect(),n=Y([0,t.width],C?[r,i]:[i,r]);return b.current=t,n(e-t.left)}return m(w,`getValueFromPointer`),(0,d.jsx)(D,{scope:e.__scopeSlider,startEdge:C?`left`:`right`,endEdge:C?`right`:`left`,direction:C?1:-1,size:`width`,children:(0,d.jsx)(k,{dir:x,"data-orientation":`horizontal`,...h,ref:y,style:{...h.style,"--radix-slider-thumb-transform":`translateX(-50%)`},onSlideStart:e=>{let t=w(e.clientX);s?.(t)},onSlideMove:e=>{let t=w(e.clientX);c?.(t)},onSlideEnd:()=>{b.current=void 0,l?.()},onStepKeyDown:e=>{let t=_[C?`from-left`:`from-right`].includes(e.key);p?.({event:e,direction:t?-1:1})}})})},`SliderHorizontal`)),te=u.forwardRef(m(function(e,t){let{min:r,max:i,inverted:a,onSlideStart:o,onSlideMove:s,onSlideEnd:c,onStepKeyDown:l,...f}=e,p=u.useRef(null),h=n.useComposedRefs(t,p),g=u.useRef(void 0),v=!a;function y(e){let t=g.current||p.current.getBoundingClientRect(),n=Y([0,t.height],v?[i,r]:[r,i]);return g.current=t,n(e-t.top)}return m(y,`getValueFromPointer`),(0,d.jsx)(D,{scope:e.__scopeSlider,startEdge:v?`bottom`:`top`,endEdge:v?`top`:`bottom`,size:`height`,direction:v?1:-1,children:(0,d.jsx)(k,{"data-orientation":`vertical`,...f,ref:h,style:{...f.style,"--radix-slider-thumb-transform":`translateY(50%)`},onSlideStart:e=>{let t=y(e.clientY);o?.(t)},onSlideMove:e=>{let t=y(e.clientY);s?.(t)},onSlideEnd:()=>{g.current=void 0,c?.()},onStepKeyDown:e=>{let t=_[v?`from-bottom`:`from-top`].includes(e.key);l?.({event:e,direction:t?-1:1})}})})},`SliderVertical`)),k=u.forwardRef(m(function(e,t){let{__scopeSlider:n,onSlideStart:a,onSlideMove:o,onSlideEnd:s,onHomeKeyDown:c,onEndKeyDown:l,onStepKeyDown:u,...f}=e,p=T(v,n);return(0,d.jsx)(i.Primitive.span,{...f,ref:t,onKeyDown:r.composeEventHandlers(e.onKeyDown,e=>{e.key===`Home`?(c(e),e.preventDefault()):e.key===`End`?(l(e),e.preventDefault()):h.concat(g).includes(e.key)&&(u(e),e.preventDefault())}),onPointerDown:r.composeEventHandlers(e.onPointerDown,e=>{let t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),p.thumbs.has(t)?t.focus({preventScroll:!0,focusVisible:!1}):a(e)}),onPointerMove:r.composeEventHandlers(e.onPointerMove,e=>{e.target.hasPointerCapture(e.pointerId)&&o(e)}),onPointerUp:r.composeEventHandlers(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),s(e))})})},`SliderImpl`)),A=`SliderTrack`,j=u.forwardRef(m(function(e,t){let{__scopeSlider:n,...r}=e,a=T(A,n);return(0,d.jsx)(i.Primitive.span,{"data-disabled":a.disabled?``:void 0,"data-orientation":a.orientation,...r,ref:t})},`SliderTrack`)),M=`SliderRange`,N=u.forwardRef(m(function(e,t){let{__scopeSlider:r,...a}=e,o=T(M,r),s=O(M,r),c=n.useComposedRefs(t,u.useRef(null)),l=o.values.length,f=o.values.map(e=>U(e,o.min,o.max)),p=l>1?Math.min(...f):0,m=100-Math.max(...f);return(0,d.jsx)(i.Primitive.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?``:void 0,...a,ref:c,style:{...e.style,[s.startEdge]:p+`%`,[s.endEdge]:m+`%`}})},`SliderRange`)),[P,F]=S(`SliderThumb`),I=`SliderThumbProvider`;function L(e){let{__scopeSlider:t,name:n,children:r,internal_do_not_use_render:i}=e,a=T(I,t),o=b(t),[c,l]=u.useState(null),f=u.useMemo(()=>c?o().findIndex(e=>e.ref.current===c):-1,[o,c]),p=s.useSize(c),m=c?!!a.form||!!c.closest(`form`):!0,h=a.values[f],g=n??(a.name?a.name+(a.values.length>1?`[]`:``):void 0),_=h===void 0?0:U(h,a.min,a.max);u.useEffect(()=>{if(c)return a.thumbs.add(c),()=>{a.thumbs.delete(c)}},[c,a.thumbs]);let v={value:h,name:g,form:a.form,isFormControl:m,index:f,thumb:c,onThumbChange:l,percent:_,size:p};return(0,d.jsx)(P,{scope:t,...v,children:$(i)?i(v):r})}m(L,`SliderThumbProvider`);var R=`SliderThumbTrigger`,z=u.forwardRef(m(function(e,t){let{__scopeSlider:a,...o}=e,s=T(R,a),c=O(R,a),{index:l,value:u,percent:f,size:p,onThumbChange:m}=F(R,a),h=n.useComposedRefs(t,m),g=W(l,s.values.length),_=p?.[c.size],v=_?K(_,f,c.direction):0;return(0,d.jsx)(`span`,{style:{transform:`var(--radix-slider-thumb-transform)`,position:`absolute`,[c.startEdge]:`calc(${f}% + ${v}px)`},children:(0,d.jsx)(y.ItemSlot,{scope:a,children:(0,d.jsx)(i.Primitive.span,{role:`slider`,"aria-label":e[`aria-label`]||g,"aria-valuemin":s.min,"aria-valuenow":u,"aria-valuemax":s.max,"aria-orientation":s.orientation,"data-orientation":s.orientation,"data-disabled":s.disabled?``:void 0,tabIndex:s.disabled?void 0:0,...o,ref:h,style:u===void 0?{display:`none`}:e.style,onFocus:r.composeEventHandlers(e.onFocus,()=>{s.valueIndexToChangeRef.current=l})})})})},`SliderThumbTrigger`)),B=u.forwardRef(m(function(e,t){let{__scopeSlider:n,name:r,...i}=e;return(0,d.jsx)(L,{__scopeSlider:n,name:r,internal_do_not_use_render:({index:e,isFormControl:r})=>(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(z,{...i,ref:t,__scopeSlider:n}),r?(0,d.jsx)(ne,{__scopeSlider:n},e):null]})})},`SliderThumb`)),V=`SliderBubbleInput`,ne=u.forwardRef(m(function({__scopeSlider:e,...t},r){let{value:a,name:o,form:s}=F(V,e),l=u.useRef(null),f=n.useComposedRefs(l,r),p=c.usePrevious(a);return u.useEffect(()=>{let e=l.current;if(!e)return;let t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,`value`).set;if(p!==a&&n){let t=new Event(`input`,{bubbles:!0});n.call(e,a),e.dispatchEvent(t)}},[p,a]),(0,d.jsx)(i.Primitive.input,{style:{display:`none`},name:o,form:s,...t,ref:f,defaultValue:a})},`SliderBubbleInput`));function H(e=[],t,n){let r=[...e];return r[n]=t,r.sort((e,t)=>e-t)}m(H,`getNextSortedValues`);function U(e,t,n){return l.clamp(100/(n-t)*(e-t),[0,100])}m(U,`convertValueToPercentage`);function W(e,t){if(t>2)return`Value ${e+1} of ${t}`;if(t===2)return[`Minimum`,`Maximum`][e]}m(W,`getLabel`);function G(e,t){if(e.length===1)return 0;let n=e.map(e=>Math.abs(e-t)),r=Math.min(...n);return n.indexOf(r)}m(G,`getClosestValueIndex`);function K(e,t,n){let r=e/2;return(r-Y([0,50],[0,r])(t)*n)*n}m(K,`getThumbInBoundsOffset`);function q(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}m(q,`getStepsBetweenValues`);function J(e,t){if(t>0){let n=q(e);return Math.min(...n)>=t}return!0}m(J,`hasMinStepsBetweenValues`);function Y(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}m(Y,`linearScale`);function X(e){if(!Number.isFinite(e))return 0;let t=e.toString();if(t.includes(`e`)){let[e,n]=t.split(`e`),r=e.split(`.`)[1]||``,i=Number(n);return Math.max(0,r.length-i)}let n=t.split(`.`)[1];return n?n.length:0}m(X,`getDecimalCount`);function Z(e,t){let n=10**t;return Math.round(e*n)/n}m(Z,`roundValue`);function Q(e,{min:t,step:n,direction:r,multiplier:i}){let a=X(n),o=(e-t)/n,s=Math.round(o),c=Z(s*n+t,a)===Z(e,a),l;return l=c?s+i*r:r>0?Math.ceil(o):Math.floor(o),Z(l*n+t,a)}m(Q,`getNextStepValue`);function $(e){return typeof e==`function`}m($,`isFunction`),exports.Slider=E,exports.SliderRange=N,exports.SliderThumb=B,exports.SliderTrack=j;
@@ -0,0 +1,36 @@
1
+ "use client";
2
+ import { cn as e } from "./index3.js";
3
+ import { Slider as t, SliderRange as n, SliderThumb as r, SliderTrack as i } from "./index110.js";
4
+ import * as a from "react";
5
+ import { jsx as o, jsxs as s } from "react/jsx-runtime";
6
+ //#region src/ui/slider.tsx
7
+ function c({ className: c, defaultValue: l, value: u, min: d = 0, max: f = 100, ...p }) {
8
+ let m = a.useMemo(() => Array.isArray(u) ? u : Array.isArray(l) ? l : [d, f], [
9
+ u,
10
+ l,
11
+ d,
12
+ f
13
+ ]);
14
+ return /* @__PURE__ */ s(t, {
15
+ "data-slot": "slider",
16
+ defaultValue: l,
17
+ value: u,
18
+ min: d,
19
+ max: f,
20
+ className: e("relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col", c),
21
+ ...p,
22
+ children: [/* @__PURE__ */ o(i, {
23
+ "data-slot": "slider-track",
24
+ className: e("bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"),
25
+ children: /* @__PURE__ */ o(n, {
26
+ "data-slot": "slider-range",
27
+ className: e("bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full")
28
+ })
29
+ }), Array.from({ length: m.length }, (e, t) => /* @__PURE__ */ o(r, {
30
+ "data-slot": "slider-thumb",
31
+ className: "border-primary bg-background ring-ring/50 block size-4 shrink-0 rounded-full border shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"
32
+ }, t))]
33
+ });
34
+ }
35
+ //#endregion
36
+ export { c as Slider };
@@ -0,0 +1 @@
1
+ "use client";const e=require("./index2.cjs"),t=require("./index4.cjs"),n=require("./index111.cjs");let r=require("react");r=e.__toESM(r,1);let i=require("react/jsx-runtime");function a({className:e,defaultValue:a,value:o,min:s=0,max:c=100,...l}){let u=r.useMemo(()=>Array.isArray(o)?o:Array.isArray(a)?a:[s,c],[o,a,s,c]);return(0,i.jsxs)(n.Slider,{"data-slot":`slider`,defaultValue:a,value:o,min:s,max:c,className:t.cn(`relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col`,e),...l,children:[(0,i.jsx)(n.SliderTrack,{"data-slot":`slider-track`,className:t.cn(`bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5`),children:(0,i.jsx)(n.SliderRange,{"data-slot":`slider-range`,className:t.cn(`bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full`)})}),Array.from({length:u.length},(e,t)=>(0,i.jsx)(n.SliderThumb,{"data-slot":`slider-thumb`,className:`border-primary bg-background ring-ring/50 block size-4 shrink-0 rounded-full border shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50`},t))]})}exports.Slider=a;
@@ -0,0 +1,28 @@
1
+ import { CircleCheckIcon as e, InfoIcon as t, Loader2Icon as n, OctagonXIcon as r, TriangleAlertIcon as i } from "lucide-react";
2
+ import { jsx as a } from "react/jsx-runtime";
3
+ import { useTheme as o } from "next-themes";
4
+ import { Toaster as s } from "sonner";
5
+ //#region src/ui/sonner.tsx
6
+ var c = ({ ...c }) => {
7
+ let { theme: l = "system" } = o();
8
+ return /* @__PURE__ */ a(s, {
9
+ theme: l,
10
+ className: "toaster group",
11
+ icons: {
12
+ success: /* @__PURE__ */ a(e, { className: "size-4" }),
13
+ info: /* @__PURE__ */ a(t, { className: "size-4" }),
14
+ warning: /* @__PURE__ */ a(i, { className: "size-4" }),
15
+ error: /* @__PURE__ */ a(r, { className: "size-4" }),
16
+ loading: /* @__PURE__ */ a(n, { className: "size-4 animate-spin" })
17
+ },
18
+ style: {
19
+ "--normal-bg": "var(--popover)",
20
+ "--normal-text": "var(--popover-foreground)",
21
+ "--normal-border": "var(--border)",
22
+ "--border-radius": "var(--radius)"
23
+ },
24
+ ...c
25
+ });
26
+ };
27
+ //#endregion
28
+ export { c as Toaster };
@@ -0,0 +1 @@
1
+ let e=require("lucide-react"),t=require("react/jsx-runtime"),n=require("next-themes"),r=require("sonner");var i=({...i})=>{let{theme:a=`system`}=(0,n.useTheme)();return(0,t.jsx)(r.Toaster,{theme:a,className:`toaster group`,icons:{success:(0,t.jsx)(e.CircleCheckIcon,{className:`size-4`}),info:(0,t.jsx)(e.InfoIcon,{className:`size-4`}),warning:(0,t.jsx)(e.TriangleAlertIcon,{className:`size-4`}),error:(0,t.jsx)(e.OctagonXIcon,{className:`size-4`}),loading:(0,t.jsx)(e.Loader2Icon,{className:`size-4 animate-spin`})},style:{"--normal-bg":`var(--popover)`,"--normal-text":`var(--popover-foreground)`,"--normal-border":`var(--border)`,"--border-radius":`var(--radius)`},...i})};exports.Toaster=i;
@@ -0,0 +1,14 @@
1
+ import { cn as e } from "./index3.js";
2
+ import { Loader2Icon as t } from "lucide-react";
3
+ import { jsx as n } from "react/jsx-runtime";
4
+ //#region src/ui/spinner.tsx
5
+ function r({ className: r, ...i }) {
6
+ return /* @__PURE__ */ n(t, {
7
+ role: "status",
8
+ "aria-label": "Loading",
9
+ className: e("size-4 animate-spin", r),
10
+ ...i
11
+ });
12
+ }
13
+ //#endregion
14
+ export { r as Spinner };
@@ -0,0 +1 @@
1
+ const e=require("./index4.cjs");let t=require("lucide-react"),n=require("react/jsx-runtime");function r({className:r,...i}){return(0,n.jsx)(t.Loader2Icon,{role:`status`,"aria-label":`Loading`,className:e.cn(`size-4 animate-spin`,r),...i})}exports.Spinner=r;