@vlrc-fe/components 1.0.7 → 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 (448) hide show
  1. package/dist/MultiSelect/type.d.ts +2 -2
  2. package/dist/index.cjs +1 -1
  3. package/dist/index.js +64 -41
  4. package/dist/index10.cjs +1 -1
  5. package/dist/index10.js +46 -80
  6. package/dist/index100.cjs +1 -1
  7. package/dist/index100.js +22 -60
  8. package/dist/index101.cjs +1 -1
  9. package/dist/index101.js +1147 -43
  10. package/dist/index102.cjs +1 -1
  11. package/dist/index102.js +30 -64
  12. package/dist/index103.cjs +1 -1
  13. package/dist/index103.js +31 -147
  14. package/dist/index104.cjs +1 -1
  15. package/dist/index104.js +93 -19
  16. package/dist/index105.cjs +1 -1
  17. package/dist/index105.js +80 -25
  18. package/dist/index106.cjs +1 -1
  19. package/dist/index106.js +9 -50
  20. package/dist/index107.cjs +1 -1
  21. package/dist/index107.js +30 -156
  22. package/dist/index108.cjs +1 -1
  23. package/dist/index108.js +350 -14
  24. package/dist/index109.cjs +1 -1
  25. package/dist/index109.js +11 -0
  26. package/dist/index11.cjs +1 -1
  27. package/dist/index11.js +55 -60
  28. package/dist/index110.cjs +1 -0
  29. package/dist/index110.js +430 -0
  30. package/dist/index111.cjs +1 -0
  31. package/dist/index111.js +36 -0
  32. package/dist/index112.cjs +1 -0
  33. package/dist/index112.js +28 -0
  34. package/dist/index113.cjs +1 -0
  35. package/dist/index113.js +14 -0
  36. package/dist/index114.cjs +1 -0
  37. package/dist/index114.js +156 -0
  38. package/dist/index115.cjs +1 -0
  39. package/dist/index115.js +19 -0
  40. package/dist/index116.cjs +1 -0
  41. package/dist/index116.js +67 -0
  42. package/dist/index117.cjs +1 -0
  43. package/dist/index117.js +118 -0
  44. package/dist/index118.cjs +1 -0
  45. package/dist/index118.js +36 -0
  46. package/dist/index119.cjs +1 -0
  47. package/dist/index119.js +13 -0
  48. package/dist/index12.cjs +1 -1
  49. package/dist/index12.js +44 -121
  50. package/dist/index120.cjs +1 -0
  51. package/dist/index120.js +31 -0
  52. package/dist/index121.cjs +1 -0
  53. package/dist/index121.js +37 -0
  54. package/dist/index122.cjs +1 -0
  55. package/dist/index122.js +123 -0
  56. package/dist/index123.cjs +1 -0
  57. package/dist/index123.js +44 -0
  58. package/dist/index124.cjs +1 -0
  59. package/dist/index124.js +43 -0
  60. package/dist/index125.cjs +1 -0
  61. package/dist/index125.js +14 -0
  62. package/dist/index126.cjs +1 -0
  63. package/dist/index126.js +64 -0
  64. package/dist/index127.cjs +1 -0
  65. package/dist/index127.js +23 -0
  66. package/dist/index128.cjs +1 -0
  67. package/dist/index128.js +34 -0
  68. package/dist/index129.cjs +1 -0
  69. package/dist/index129.js +27 -0
  70. package/dist/index13.cjs +1 -1
  71. package/dist/index13.js +30 -12
  72. package/dist/index130.cjs +1 -0
  73. package/dist/index130.js +26 -0
  74. package/dist/index131.cjs +1 -0
  75. package/dist/index131.js +157 -0
  76. package/dist/index132.cjs +1 -0
  77. package/dist/index132.js +34 -0
  78. package/dist/index133.cjs +1 -0
  79. package/dist/index133.js +46 -0
  80. package/dist/index134.cjs +1 -0
  81. package/dist/index134.js +142 -0
  82. package/dist/index135.cjs +1 -0
  83. package/dist/index135.js +125 -0
  84. package/dist/index136.cjs +1 -0
  85. package/dist/index136.js +26 -0
  86. package/dist/index137.cjs +1 -0
  87. package/dist/index137.js +88 -0
  88. package/dist/index138.cjs +1 -0
  89. package/dist/index138.js +221 -0
  90. package/dist/index139.cjs +1 -0
  91. package/dist/index139.js +166 -0
  92. package/dist/index14.cjs +1 -1
  93. package/dist/index14.js +8 -12
  94. package/dist/index140.cjs +1 -0
  95. package/dist/index140.js +126 -0
  96. package/dist/index141.cjs +1 -0
  97. package/dist/index141.js +15 -0
  98. package/dist/index142.cjs +1 -0
  99. package/dist/index142.js +9 -0
  100. package/dist/index143.cjs +1 -0
  101. package/dist/index143.js +17 -0
  102. package/dist/index144.cjs +1 -0
  103. package/dist/index144.js +22 -0
  104. package/dist/index145.cjs +1 -0
  105. package/dist/index145.js +18 -0
  106. package/dist/index146.cjs +1 -0
  107. package/dist/index146.js +6 -0
  108. package/dist/index147.cjs +1 -0
  109. package/dist/index147.js +7 -0
  110. package/dist/index148.cjs +1 -0
  111. package/dist/index148.js +8 -0
  112. package/dist/index149.cjs +1 -0
  113. package/dist/index149.js +7 -0
  114. package/dist/index15.cjs +1 -1
  115. package/dist/index15.js +12 -112
  116. package/dist/index150.cjs +1 -0
  117. package/dist/index150.js +7 -0
  118. package/dist/index151.cjs +1 -0
  119. package/dist/index151.js +9 -0
  120. package/dist/index152.cjs +1 -0
  121. package/dist/index152.js +69 -0
  122. package/dist/index153.cjs +1 -0
  123. package/dist/index153.js +11 -0
  124. package/dist/index154.cjs +1 -0
  125. package/dist/index154.js +202 -0
  126. package/dist/index155.cjs +1 -0
  127. package/dist/index155.js +124 -0
  128. package/dist/index156.cjs +1 -0
  129. package/dist/index156.js +32 -0
  130. package/dist/index157.cjs +1 -0
  131. package/dist/index157.js +20 -0
  132. package/dist/index158.cjs +1 -0
  133. package/dist/index158.js +69 -0
  134. package/dist/index159.cjs +1 -0
  135. package/dist/index159.js +32 -0
  136. package/dist/index16.cjs +1 -1
  137. package/dist/index16.js +4 -726
  138. package/dist/index160.cjs +1 -0
  139. package/dist/index160.js +11 -0
  140. package/dist/index161.cjs +1 -0
  141. package/dist/index161.js +280 -0
  142. package/dist/index162.cjs +1 -0
  143. package/dist/index162.js +157 -0
  144. package/dist/index163.cjs +1 -0
  145. package/dist/index163.js +20 -0
  146. package/dist/index164.cjs +1 -0
  147. package/dist/index164.js +10 -0
  148. package/dist/index165.cjs +1 -0
  149. package/dist/index165.js +14 -0
  150. package/dist/index166.cjs +1 -0
  151. package/dist/index166.js +8 -0
  152. package/dist/index167.cjs +1 -0
  153. package/dist/index167.js +8 -0
  154. package/dist/index168.cjs +1 -0
  155. package/dist/index168.js +11 -0
  156. package/dist/index169.cjs +1 -0
  157. package/dist/index169.js +10 -0
  158. package/dist/index17.cjs +1 -1
  159. package/dist/index17.js +79 -339
  160. package/dist/index170.cjs +1 -0
  161. package/dist/index170.js +6 -0
  162. package/dist/index171.cjs +1 -0
  163. package/dist/index171.js +8 -0
  164. package/dist/index172.cjs +1 -0
  165. package/dist/index172.js +8 -0
  166. package/dist/index173.cjs +1 -0
  167. package/dist/index173.js +10 -0
  168. package/dist/index174.cjs +1 -0
  169. package/dist/index174.js +11 -0
  170. package/dist/index175.cjs +1 -0
  171. package/dist/index175.js +15 -0
  172. package/dist/index176.cjs +1 -0
  173. package/dist/index176.js +11 -0
  174. package/dist/index177.cjs +1 -0
  175. package/dist/index177.js +11 -0
  176. package/dist/index178.cjs +1 -0
  177. package/dist/index178.js +6 -0
  178. package/dist/index179.cjs +1 -0
  179. package/dist/index179.js +43 -0
  180. package/dist/index18.cjs +1 -1
  181. package/dist/index18.js +19 -66
  182. package/dist/index180.cjs +1 -0
  183. package/dist/index180.js +382 -0
  184. package/dist/index181.cjs +1 -0
  185. package/dist/index181.js +40 -0
  186. package/dist/index182.cjs +1 -0
  187. package/dist/index182.js +23 -0
  188. package/dist/index183.cjs +1 -0
  189. package/dist/index183.js +59 -0
  190. package/dist/index184.cjs +1 -0
  191. package/dist/index184.js +55 -0
  192. package/dist/index185.cjs +1 -0
  193. package/dist/index185.js +54 -0
  194. package/dist/index186.cjs +1 -0
  195. package/dist/index186.js +57 -0
  196. package/dist/index187.cjs +1 -0
  197. package/dist/index187.js +57 -0
  198. package/dist/index188.cjs +1 -0
  199. package/dist/index188.js +88 -0
  200. package/dist/index189.cjs +1 -0
  201. package/dist/index189.js +66 -0
  202. package/dist/index19.cjs +1 -1
  203. package/dist/index19.js +18 -8
  204. package/dist/index190.cjs +1 -0
  205. package/dist/index190.js +594 -0
  206. package/dist/index191.cjs +9 -0
  207. package/dist/index191.js +30 -0
  208. package/dist/index192.cjs +1 -0
  209. package/dist/index192.js +50 -0
  210. package/dist/index193.cjs +1 -0
  211. package/dist/index193.js +65 -0
  212. package/dist/index194.cjs +1 -0
  213. package/dist/index194.js +48 -0
  214. package/dist/index195.cjs +1 -0
  215. package/dist/index195.js +67 -0
  216. package/dist/index196.cjs +1 -0
  217. package/dist/index196.js +151 -0
  218. package/dist/index197.cjs +1 -0
  219. package/dist/index197.js +23 -0
  220. package/dist/index198.cjs +1 -0
  221. package/dist/index198.js +27 -0
  222. package/dist/index199.cjs +1 -0
  223. package/dist/index199.js +53 -0
  224. package/dist/index20.cjs +1 -1
  225. package/dist/index20.js +51 -98
  226. package/dist/index200.cjs +1 -0
  227. package/dist/index200.js +161 -0
  228. package/dist/index201.cjs +1 -0
  229. package/dist/index201.js +16 -0
  230. package/dist/index202.cjs +1 -0
  231. package/dist/index21.cjs +1 -1
  232. package/dist/index21.js +81 -28
  233. package/dist/index22.cjs +1 -1
  234. package/dist/index22.js +64 -14
  235. package/dist/index23.cjs +1 -1
  236. package/dist/index23.js +25 -22
  237. package/dist/index24.cjs +1 -1
  238. package/dist/index24.js +1014 -33
  239. package/dist/index25.cjs +1 -1
  240. package/dist/index25.js +22 -96
  241. package/dist/index26.cjs +1 -1
  242. package/dist/index26.js +108 -25
  243. package/dist/index27.cjs +1 -1
  244. package/dist/index27.js +15 -9
  245. package/dist/index28.cjs +1 -1
  246. package/dist/index28.js +20 -66
  247. package/dist/index29.cjs +1 -1
  248. package/dist/index29.js +81 -11
  249. package/dist/index30.cjs +1 -1
  250. package/dist/index30.js +91 -29
  251. package/dist/index31.cjs +1 -1
  252. package/dist/index31.js +14 -41
  253. package/dist/index32.cjs +1 -1
  254. package/dist/index32.js +93 -12
  255. package/dist/index33.cjs +1 -1
  256. package/dist/index33.js +22 -62
  257. package/dist/index34.cjs +1 -1
  258. package/dist/index34.js +84 -22
  259. package/dist/index35.cjs +1 -1
  260. package/dist/index35.js +85 -33
  261. package/dist/index36.cjs +1 -1
  262. package/dist/index36.js +407 -25
  263. package/dist/index37.cjs +1 -1
  264. package/dist/index37.js +170 -25
  265. package/dist/index38.cjs +1 -1
  266. package/dist/index38.js +28 -154
  267. package/dist/index39.cjs +1 -1
  268. package/dist/index39.js +158 -33
  269. package/dist/index40.cjs +1 -1
  270. package/dist/index40.js +104 -45
  271. package/dist/index41.cjs +1 -1
  272. package/dist/index41.js +337 -140
  273. package/dist/index42.cjs +1 -1
  274. package/dist/index42.js +96 -124
  275. package/dist/index43.cjs +1 -1
  276. package/dist/index43.js +319 -23
  277. package/dist/index44.cjs +1 -1
  278. package/dist/index44.js +205 -81
  279. package/dist/index45.cjs +1 -1
  280. package/dist/index45.js +33 -220
  281. package/dist/index46.cjs +1 -1
  282. package/dist/index46.js +161 -163
  283. package/dist/index47.cjs +1 -1
  284. package/dist/index47.js +20 -125
  285. package/dist/index48.cjs +1 -1
  286. package/dist/index48.js +24 -14
  287. package/dist/index49.cjs +1 -1
  288. package/dist/index49.js +167 -7
  289. package/dist/index5.js +26 -14
  290. package/dist/index50.cjs +1 -1
  291. package/dist/index50.js +44 -15
  292. package/dist/index51.cjs +1 -1
  293. package/dist/index51.js +15 -18
  294. package/dist/index52.cjs +1 -1
  295. package/dist/index52.js +3 -17
  296. package/dist/index53.cjs +1 -1
  297. package/dist/index53.js +5 -5
  298. package/dist/index54.cjs +1 -1
  299. package/dist/index54.js +19 -4
  300. package/dist/index55.cjs +1 -1
  301. package/dist/index55.js +24 -6
  302. package/dist/index56.cjs +1 -1
  303. package/dist/index56.js +66 -4
  304. package/dist/index57.cjs +1 -1
  305. package/dist/index57.js +14 -5
  306. package/dist/index58.cjs +1 -1
  307. package/dist/index58.js +4 -8
  308. package/dist/index59.cjs +1 -1
  309. package/dist/index59.js +50 -67
  310. package/dist/index6.cjs +1 -1
  311. package/dist/index6.js +85 -46
  312. package/dist/index60.cjs +1 -1
  313. package/dist/index60.js +6 -10
  314. package/dist/index61.cjs +1 -1
  315. package/dist/index61.js +25 -199
  316. package/dist/index62.cjs +1 -1
  317. package/dist/index62.js +13 -122
  318. package/dist/index63.cjs +1 -1
  319. package/dist/index63.js +9 -30
  320. package/dist/index64.cjs +1 -1
  321. package/dist/index64.js +3 -20
  322. package/dist/index65.cjs +1 -1
  323. package/dist/index65.js +24 -66
  324. package/dist/index66.cjs +1 -1
  325. package/dist/index66.js +68 -30
  326. package/dist/index67.cjs +38 -1
  327. package/dist/index67.js +3 -11
  328. package/dist/index68.cjs +1 -1
  329. package/dist/index68.js +12 -279
  330. package/dist/index69.cjs +1 -1
  331. package/dist/index69.js +50 -155
  332. package/dist/index7.cjs +1 -1
  333. package/dist/index7.js +29 -85
  334. package/dist/index70.cjs +1 -1
  335. package/dist/index70.js +115 -19
  336. package/dist/index71.cjs +4 -1
  337. package/dist/index71.js +6 -9
  338. package/dist/index72.cjs +1 -1
  339. package/dist/index72.js +12 -12
  340. package/dist/index73.cjs +1 -1
  341. package/dist/index73.js +539 -6
  342. package/dist/index74.cjs +1 -1
  343. package/dist/index74.js +197 -6
  344. package/dist/index75.cjs +1 -1
  345. package/dist/index75.js +120 -9
  346. package/dist/index76.cjs +1 -1
  347. package/dist/index76.js +912 -8
  348. package/dist/index77.cjs +3 -1
  349. package/dist/index77.js +76 -4
  350. package/dist/index78.cjs +1 -1
  351. package/dist/index78.js +120 -6
  352. package/dist/index79.cjs +1 -1
  353. package/dist/index79.js +12 -6
  354. package/dist/index8.cjs +1 -1
  355. package/dist/index8.js +35 -62
  356. package/dist/index80.cjs +1 -1
  357. package/dist/index80.js +14 -8
  358. package/dist/index81.cjs +1 -1
  359. package/dist/index81.js +113 -9
  360. package/dist/index82.cjs +1 -1
  361. package/dist/index82.js +725 -13
  362. package/dist/index83.cjs +1 -1
  363. package/dist/index83.js +346 -9
  364. package/dist/index84.cjs +1 -1
  365. package/dist/index84.js +74 -9
  366. package/dist/index85.cjs +1 -1
  367. package/dist/index85.js +148 -4
  368. package/dist/index86.cjs +1 -1
  369. package/dist/index86.js +31 -42
  370. package/dist/index87.cjs +1 -1
  371. package/dist/index87.js +12 -380
  372. package/dist/index88.cjs +1 -1
  373. package/dist/index88.js +345 -37
  374. package/dist/index89.cjs +20 -1
  375. package/dist/index89.js +40 -18
  376. package/dist/index9.cjs +1 -1
  377. package/dist/index9.js +85 -17
  378. package/dist/index90.cjs +1 -1
  379. package/dist/index90.js +113 -56
  380. package/dist/index91.cjs +1 -1
  381. package/dist/index91.js +272 -51
  382. package/dist/index92.cjs +1 -1
  383. package/dist/index92.js +129 -50
  384. package/dist/index93.cjs +1 -1
  385. package/dist/index93.js +13 -54
  386. package/dist/index94.cjs +1 -1
  387. package/dist/index94.js +28 -55
  388. package/dist/index95.cjs +1 -1
  389. package/dist/index95.js +525 -80
  390. package/dist/index96.cjs +1 -1
  391. package/dist/index96.js +75 -61
  392. package/dist/index97.cjs +1 -1
  393. package/dist/index97.js +67 -583
  394. package/dist/index98.cjs +1 -9
  395. package/dist/index98.js +32 -27
  396. package/dist/index99.cjs +1 -1
  397. package/dist/index99.js +17 -49
  398. package/dist/ui/alert-dialog.d.ts +15 -0
  399. package/dist/ui/alert-dialog.d.ts.map +1 -0
  400. package/dist/ui/alert.d.ts +10 -0
  401. package/dist/ui/alert.d.ts.map +1 -0
  402. package/dist/ui/aspect-ratio.d.ts +4 -0
  403. package/dist/ui/aspect-ratio.d.ts.map +1 -0
  404. package/dist/ui/avatar.d.ts +7 -0
  405. package/dist/ui/avatar.d.ts.map +1 -0
  406. package/dist/ui/badge.d.ts +1 -1
  407. package/dist/ui/breadcrumb.d.ts +12 -0
  408. package/dist/ui/breadcrumb.d.ts.map +1 -0
  409. package/dist/ui/button.d.ts +1 -1
  410. package/dist/ui/carousel.d.ts +20 -0
  411. package/dist/ui/carousel.d.ts.map +1 -0
  412. package/dist/ui/collapsible.d.ts +6 -0
  413. package/dist/ui/collapsible.d.ts.map +1 -0
  414. package/dist/ui/context-menu.d.ts +26 -0
  415. package/dist/ui/context-menu.d.ts.map +1 -0
  416. package/dist/ui/drawer.d.ts +14 -0
  417. package/dist/ui/drawer.d.ts.map +1 -0
  418. package/dist/ui/hover-card.d.ts +7 -0
  419. package/dist/ui/hover-card.d.ts.map +1 -0
  420. package/dist/ui/index.d.ts +23 -0
  421. package/dist/ui/index.d.ts.map +1 -1
  422. package/dist/ui/input-otp.d.ts +12 -0
  423. package/dist/ui/input-otp.d.ts.map +1 -0
  424. package/dist/ui/menubar.d.ts +27 -0
  425. package/dist/ui/menubar.d.ts.map +1 -0
  426. package/dist/ui/navigation-menu.d.ts +15 -0
  427. package/dist/ui/navigation-menu.d.ts.map +1 -0
  428. package/dist/ui/pagination.d.ts +14 -0
  429. package/dist/ui/pagination.d.ts.map +1 -0
  430. package/dist/ui/resizable.d.ts +9 -0
  431. package/dist/ui/resizable.d.ts.map +1 -0
  432. package/dist/ui/sheet.d.ts +14 -0
  433. package/dist/ui/sheet.d.ts.map +1 -0
  434. package/dist/ui/sidebar.d.ts +70 -0
  435. package/dist/ui/sidebar.d.ts.map +1 -0
  436. package/dist/ui/skeleton.d.ts +3 -0
  437. package/dist/ui/skeleton.d.ts.map +1 -0
  438. package/dist/ui/slider.d.ts +5 -0
  439. package/dist/ui/slider.d.ts.map +1 -0
  440. package/dist/ui/switch.d.ts +5 -0
  441. package/dist/ui/switch.d.ts.map +1 -0
  442. package/dist/ui/tabs.d.ts +8 -0
  443. package/dist/ui/tabs.d.ts.map +1 -0
  444. package/dist/ui/toggle-group.d.ts +8 -0
  445. package/dist/ui/toggle-group.d.ts.map +1 -0
  446. package/dist/ui/toggle.d.ts +10 -0
  447. package/dist/ui/toggle.d.ts.map +1 -0
  448. package/package.json +23 -5
package/dist/index25.cjs CHANGED
@@ -1 +1 @@
1
- const e=require("./index2.cjs"),t=require("./index4.cjs");let n=require("react");n=e.__toESM(n,1);let r=require("react/jsx-runtime"),i=require("@radix-ui/react-scroll-area");i=e.__toESM(i,1);function a({className:e,children:n,...a}){return(0,r.jsxs)(i.Root,{"data-slot":`scroll-area`,className:t.cn(`relative`,e),...a,children:[(0,r.jsx)(i.Viewport,{"data-slot":`scroll-area-viewport`,className:`focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1`,children:n}),(0,r.jsx)(o,{}),(0,r.jsx)(i.Corner,{})]})}function o({className:e,orientation:n=`vertical`,...a}){return(0,r.jsx)(i.ScrollAreaScrollbar,{"data-slot":`scroll-area-scrollbar`,orientation:n,className:t.cn(`flex touch-none p-px transition-colors select-none`,n===`vertical`&&`h-full w-2.5 border-l border-l-transparent`,n===`horizontal`&&`h-2.5 flex-col border-t border-t-transparent`,e),...a,children:(0,r.jsx)(i.ScrollAreaThumb,{"data-slot":`scroll-area-thumb`,className:`bg-border relative flex-1 rounded-full`})})}exports.ScrollArea=a,exports.ScrollBar=o;
1
+ function e(e){return typeof e==`number`}function t(e){return typeof e==`string`}function n(e){return typeof e==`boolean`}function r(e){return Object.prototype.toString.call(e)===`[object Object]`}function i(e){return Math.abs(e)}function a(e){return Math.sign(e)}function o(e,t){return i(e-t)}function s(e,t){return e===0||t===0||i(e)<=i(t)?0:i(o(i(e),i(t))/e)}function c(e){return Math.round(e*100)/100}function l(e){return m(e).map(Number)}function u(e){return e[d(e)]}function d(e){return Math.max(0,e.length-1)}function f(e,t){return t===d(e)}function p(e,t=0){return Array.from(Array(e),(e,n)=>t+n)}function m(e){return Object.keys(e)}function h(e,t){return[e,t].reduce((e,t)=>(m(t).forEach(n=>{let i=e[n],a=t[n];e[n]=r(i)&&r(a)?h(i,a):a}),e),{})}function g(e,t){return t.MouseEvent!==void 0&&e instanceof t.MouseEvent}function _(e,n){let r={start:i,center:a,end:o};function i(){return 0}function a(e){return o(e)/2}function o(e){return n-e}function s(i,a){return t(e)?r[e](i):e(n,i,a)}return{measure:s}}function v(){let e=[];function t(t,n,i,a={passive:!0}){let o;if(`addEventListener`in t)t.addEventListener(n,i,a),o=()=>t.removeEventListener(n,i,a);else{let e=t;e.addListener(i),o=()=>e.removeListener(i)}return e.push(o),r}function n(){e=e.filter(e=>e())}let r={add:t,clear:n};return r}function y(e,t,n,r){let i=v(),a=1e3/60,o=null,s=0,c=0;function l(){i.add(e,`visibilitychange`,()=>{e.hidden&&m()})}function u(){p(),i.clear()}function d(e){if(!c)return;o||(o=e,n(),n());let i=e-o;for(o=e,s+=i;s>=a;)n(),s-=a;r(s/a),c&&=t.requestAnimationFrame(d)}function f(){c||=t.requestAnimationFrame(d)}function p(){t.cancelAnimationFrame(c),o=null,s=0,c=0}function m(){o=null,s=0}return{init:l,destroy:u,start:f,stop:p,update:n,render:r}}function b(e,t){let n=t===`rtl`,r=e===`y`,i=r?`y`:`x`,a=r?`x`:`y`,o=!r&&n?-1:1,s=u(),c=d();function l(e){let{height:t,width:n}=e;return r?t:n}function u(){return r?`top`:n?`right`:`left`}function d(){return r?`bottom`:n?`left`:`right`}function f(e){return e*o}return{scroll:i,cross:a,startEdge:s,endEdge:c,measureSize:l,direction:f}}function x(e=0,t=0){let n=i(e-t);function r(t){return t<e}function a(e){return e>t}function o(e){return r(e)||a(e)}function s(n){return o(n)?r(n)?e:t:n}function c(e){return n?e-n*Math.ceil((e-t)/n):e}return{length:n,max:t,min:e,constrain:s,reachedAny:o,reachedMax:a,reachedMin:r,removeOffset:c}}function S(e,t,n){let{constrain:r}=x(0,e),a=e+1,o=s(t);function s(e){return n?i((a+e)%a):r(e)}function c(){return o}function l(e){return o=s(e),f}function u(e){return d().set(c()+e)}function d(){return S(e,c(),n)}let f={get:c,set:l,add:u,clone:d};return f}function C(e,t,r,c,l,u,d,f,p,m,h,_,y,b,S,C,w,T,E){let{cross:D,direction:O}=e,k=[`INPUT`,`SELECT`,`TEXTAREA`],A={passive:!1},j=v(),M=v(),ee=x(50,225).constrain(b.measure(20)),te={mouse:300,touch:400},ne={mouse:500,touch:600},re=S?43:25,ie=!1,N=0,P=0,F=!1,I=!1,L=!1,R=!1;function ae(e){if(!E)return;function r(t){(n(E)||E(e,t))&&ue(t)}let i=t;j.add(i,`dragstart`,e=>e.preventDefault(),A).add(i,`touchmove`,()=>void 0,A).add(i,`touchend`,()=>void 0).add(i,`touchstart`,r).add(i,`mousedown`,r).add(i,`touchcancel`,V).add(i,`contextmenu`,V).add(i,`click`,de,!0)}function oe(){j.clear(),M.clear()}function se(){let e=R?r:t;M.add(e,`touchmove`,B,A).add(e,`touchend`,V).add(e,`mousemove`,B,A).add(e,`mouseup`,V)}function ce(e){let t=e.nodeName||``;return k.includes(t)}function le(){return(S?ne:te)[R?`mouse`:`touch`]}function z(e,t){let n=_.add(a(e)*-1),r=h.byDistance(e,!S).distance;return S||i(e)<ee?r:w&&t?r*.5:h.byIndex(n.get(),0).distance}function ue(e){let t=g(e,c);R=t,L=S&&t&&!e.buttons&&ie,ie=o(l.get(),d.get())>=2,!(t&&e.button!==0)&&(ce(e.target)||(F=!0,u.pointerDown(e),m.useFriction(0).useDuration(0),l.set(d),se(),N=u.readPoint(e),P=u.readPoint(e,D),y.emit(`pointerDown`)))}function B(e){if(!g(e,c)&&e.touches.length>=2)return V(e);let t=u.readPoint(e),n=u.readPoint(e,D),r=o(t,N),i=o(n,P);if(!I&&!R&&(!e.cancelable||(I=r>i,!I)))return V(e);let a=u.pointerMove(e);r>C&&(L=!0),m.useFriction(.3).useDuration(.75),f.start(),l.add(O(a)),e.preventDefault()}function V(e){let t=h.byDistance(0,!1).index!==_.get(),n=u.pointerUp(e)*le(),r=z(O(n),t),i=s(n,r),a=re-10*i,o=T+i/50;I=!1,F=!1,M.clear(),m.useDuration(a).useFriction(o),p.distance(r,!S),R=!1,y.emit(`pointerUp`)}function de(e){L&&=(e.stopPropagation(),e.preventDefault(),!1)}function H(){return F}return{init:ae,destroy:oe,pointerDown:H}}function w(e,t){let n,r;function a(e){return e.timeStamp}function o(n,r){let i=`client${(r||e.scroll)===`x`?`X`:`Y`}`;return(g(n,t)?n:n.touches[0])[i]}function s(e){return n=e,r=e,o(e)}function c(e){let t=o(e)-o(r),i=a(e)-a(n)>170;return r=e,i&&(n=e),t}function l(e){if(!n||!r)return 0;let t=o(r)-o(n),s=a(e)-a(n),c=a(e)-a(r)>170,l=t/s;return s&&!c&&i(l)>.1?l:0}return{pointerDown:s,pointerMove:c,pointerUp:l,readPoint:o}}function T(){function e(e){let{offsetTop:t,offsetLeft:n,offsetWidth:r,offsetHeight:i}=e;return{top:t,right:n+r,bottom:t+i,left:n,width:r,height:i}}return{measure:e}}function E(e){function t(t){return t/100*e}return{measure:t}}function D(e,t,r,a,o,s,c){let l=[e].concat(a),u,d,f=[],p=!1;function m(e){return o.measureSize(c.measure(e))}function h(o){if(!s)return;d=m(e),f=a.map(m);function c(n){for(let r of n){if(p)return;let n=r.target===e,s=a.indexOf(r.target),c=n?d:f[s];if(i(m(n?e:a[s])-c)>=.5){o.reInit(),t.emit(`resize`);break}}}u=new ResizeObserver(e=>{(n(s)||s(o,e))&&c(e)}),r.requestAnimationFrame(()=>{l.forEach(e=>u.observe(e))})}function g(){p=!0,u&&u.disconnect()}return{init:h,destroy:g}}function O(e,t,n,r,o,s){let c=0,l=0,u=o,d=s,f=e.get(),p=0;function m(){let t=r.get()-e.get(),i=!u,o=0;return i?(c=0,n.set(r),e.set(r),o=t):(n.set(e),c+=t/u,c*=d,f+=c,e.add(c),o=f-p),l=a(o),p=f,C}function h(){return i(r.get()-t.get())<.001}function g(){return u}function _(){return l}function v(){return c}function y(){return x(o)}function b(){return S(s)}function x(e){return u=e,C}function S(e){return d=e,C}let C={direction:_,duration:g,velocity:v,seek:m,settled:h,useBaseFriction:b,useBaseDuration:y,useFriction:S,useDuration:x};return C}function k(e,t,n,r,a){let o=a.measure(10),s=a.measure(50),c=x(.1,.99),l=!1;function u(){return!(l||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function d(a){if(!u())return;let l=i(e[e.reachedMin(t.get())?`min`:`max`]-t.get()),d=n.get()-t.get(),f=c.constrain(l/s);n.subtract(d*f),!a&&i(d)<o&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())}function f(e){l=!e}return{shouldConstrain:u,constrain:d,toggleActive:f}}function A(e,t,n,r,i){let a=x(-t+e,0),s=m(),c=p(),l=h();function d(e,t){return o(e,t)<=1}function p(){let e=s[0],t=u(s);return x(s.lastIndexOf(e),s.indexOf(t)+1)}function m(){return n.map((e,t)=>{let{min:r,max:i}=a,o=a.constrain(e),s=!t,c=f(n,t);return s?i:c||d(r,o)?r:d(i,o)?i:o}).map(e=>parseFloat(e.toFixed(3)))}function h(){if(t<=e+i)return[a.max];if(r===`keepSnaps`)return s;let{min:n,max:o}=c;return s.slice(n,o)}return{snapsContained:l,scrollContainLimit:c}}function j(e,t,n){let r=t[0];return{limit:x(n?r-e:u(t),r)}}function M(e,t,n,r){let i=.1,{reachedMin:a,reachedMax:o}=x(t.min+i,t.max+i);function s(e){return e===1?o(n.get()):e===-1?a(n.get()):!1}function c(t){if(!s(t))return;let n=t*-1*e;r.forEach(e=>e.add(n))}return{loop:c}}function ee(e){let{max:t,length:n}=e;function r(e){let r=e-t;return n?r/-n:0}return{get:r}}function te(e,t,n,r,a){let{startEdge:o,endEdge:s}=e,{groupSlides:c}=a,l=p().map(t.measure),d=m(),f=h();function p(){return c(r).map(e=>u(e)[s]-e[0][o]).map(i)}function m(){return r.map(e=>n[o]-e[o]).map(e=>-i(e))}function h(){return c(d).map(e=>e[0]).map((e,t)=>e+l[t])}return{snaps:d,snapsAligned:f}}function ne(e,t,n,r,i,a){let{groupSlides:o}=i,{min:s,max:c}=r,l=m();function m(){let r=o(a),i=!e||t===`keepSnaps`;return n.length===1?[a]:i?r:r.slice(s,c).map((e,t,n)=>{let r=!t,i=f(n,t);return r?p(u(n[0])+1):i?p(d(a)-u(n)[0]+1,u(n)[0]):e})}return{slideRegistry:l}}function re(e,t,n,r,o){let{reachedAny:s,removeOffset:c,constrain:l}=r;function d(e){return e.concat().sort((e,t)=>i(e)-i(t))[0]}function f(n){let r=e?c(n):l(n),{index:a}=t.map((e,t)=>({diff:p(e-r,0),index:t})).sort((e,t)=>i(e.diff)-i(t.diff))[0];return{index:a,distance:r}}function p(t,r){let i=[t,t+n,t-n];if(!e)return t;if(!r)return d(i);let o=i.filter(e=>a(e)===r);return o.length?d(o):u(i)-n}function m(e,n){return{index:e,distance:p(t[e]-o.get(),n)}}function h(n,r){let i=o.get()+n,{index:a,distance:c}=f(i),l=!e&&s(i);return!r||l?{index:a,distance:n}:{index:a,distance:n+p(t[a]-c,0)}}return{byDistance:h,byIndex:m,shortcut:p}}function ie(e,t,n,r,i,a,o){function s(i){let s=i.distance,c=i.index!==t.get();a.add(s),s&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),c&&(n.set(t.get()),t.set(i.index),o.emit(`select`))}function c(e,t){s(i.byDistance(e,t))}function l(e,n){let r=t.clone().set(e);s(i.byIndex(r.get(),n))}return{distance:c,index:l}}function N(t,r,i,a,o,s,c,l){let u={passive:!0,capture:!0},d=0;function f(f){if(!l)return;function m(n){if(new Date().getTime()-d>10)return;c.emit(`slideFocusStart`),t.scrollLeft=0;let r=i.findIndex(e=>e.includes(n));e(r)&&(o.useDuration(0),a.index(r,0),c.emit(`slideFocus`))}s.add(document,`keydown`,p,!1),r.forEach((e,t)=>{s.add(e,`focus`,e=>{(n(l)||l(f,e))&&m(t)},u)})}function p(e){e.code===`Tab`&&(d=new Date().getTime())}return{init:f}}function P(t){let n=t;function r(){return n}function i(e){n=s(e)}function a(e){n+=s(e)}function o(e){n-=s(e)}function s(t){return e(t)?t:t.get()}return{get:r,set:i,add:a,subtract:o}}function F(e,t){let n=e.scroll===`x`?o:s,r=t.style,i=null,a=!1;function o(e){return`translate3d(${e}px,0px,0px)`}function s(e){return`translate3d(0px,${e}px,0px)`}function l(t){if(a)return;let o=c(e.direction(t));o!==i&&(r.transform=n(o),i=o)}function u(e){a=!e}function d(){a||(r.transform=``,t.getAttribute(`style`)||t.removeAttribute(`style`))}return{clear:d,to:l,toggleActive:u}}function I(e,t,n,r,i,a,o,s,c){let u=.5,d=l(i),f=l(i).reverse(),p=v().concat(y());function m(e,t){return e.reduce((e,t)=>e-i[t],t)}function h(e,t){return e.reduce((e,n)=>m(e,t)>0?e.concat([n]):e,[])}function g(e){return a.map((n,i)=>({start:n-r[i]+u+e,end:n+t-u+e}))}function _(t,r,i){let a=g(r);return t.map(t=>{let r=i?0:-n,o=i?n:0,l=i?`end`:`start`,u=a[t][l];return{index:t,loopPoint:u,slideLocation:P(-1),translate:F(e,c[t]),target:()=>s.get()>u?r:o}})}function v(){let e=o[0];return _(h(f,e),n,!1)}function y(){return _(h(d,t-o[0]-1),-n,!0)}function b(){return p.every(({index:e})=>m(d.filter(t=>t!==e),t)<=.1)}function x(){p.forEach(e=>{let{target:t,translate:n,slideLocation:r}=e,i=t();i!==r.get()&&(n.to(i),r.set(i))})}function S(){p.forEach(e=>e.translate.clear())}return{canLoop:b,clear:S,loop:x,loopPoints:p}}function L(e,t,r){let i,a=!1;function o(o){if(!r)return;function s(e){for(let n of e)if(n.type===`childList`){o.reInit(),t.emit(`slidesChanged`);break}}i=new MutationObserver(e=>{a||(n(r)||r(o,e))&&s(e)}),i.observe(e,{childList:!0})}function s(){i&&i.disconnect(),a=!0}return{init:o,destroy:s}}function R(e,t,n,r){let i={},a=null,o=null,s,c=!1;function l(){s=new IntersectionObserver(e=>{c||(e.forEach(e=>{let n=t.indexOf(e.target);i[n]=e}),a=null,o=null,n.emit(`slidesInView`))},{root:e.parentElement,threshold:r}),t.forEach(e=>s.observe(e))}function u(){s&&s.disconnect(),c=!0}function d(e){return m(i).reduce((t,n)=>{let r=parseInt(n),{isIntersecting:a}=i[r];return(e&&a||!e&&!a)&&t.push(r),t},[])}function f(e=!0){if(e&&a)return a;if(!e&&o)return o;let t=d(e);return e&&(a=t),e||(o=t),t}return{init:l,destroy:u,get:f}}function ae(e,t,n,r,a,o){let{measureSize:s,startEdge:c,endEdge:l}=e,d=n[0]&&a,p=_(),m=v(),h=n.map(s),g=y();function _(){if(!d)return 0;let e=n[0];return i(t[c]-e[c])}function v(){if(!d)return 0;let e=o.getComputedStyle(u(r));return parseFloat(e.getPropertyValue(`margin-${l}`))}function y(){return n.map((e,t,n)=>{let r=!t,i=f(n,t);return r?h[t]+p:i?h[t]+m:n[t+1][c]-e[c]}).map(i)}return{slideSizes:h,slideSizesWithGaps:g,startGap:p,endGap:m}}function oe(t,n,r,a,o,s,c,f,p){let{startEdge:m,endEdge:h,direction:g}=t,_=e(r);function v(e,t){return l(e).filter(e=>e%t===0).map(n=>e.slice(n,n+t))}function y(e){return e.length?l(e).reduce((t,r,l)=>{let _=u(t)||0,v=_===0,y=r===d(e),b=o[m]-s[_][m],x=o[m]-s[r][h],S=!a&&v?g(c):0,C=i(x-(!a&&y?g(f):0)-(b+S));return l&&C>n+p&&t.push(r),y&&t.push(e.length),t},[]).map((t,n,r)=>{let i=Math.max(r[n-1]||0);return e.slice(i,t)}):[]}function b(e){return _?v(e,r):y(e)}return{groupSlides:b}}function se(e,t,n,r,i,a,o){let{align:s,axis:c,direction:f,startIndex:p,loop:m,duration:h,dragFree:g,dragThreshold:x,inViewThreshold:se,slidesToScroll:ce,skipSnaps:le,containScroll:z,watchResize:ue,watchSlides:B,watchDrag:V,watchFocus:de}=a,H=T(),U=H.measure(t),fe=n.map(H.measure),W=b(c,f),G=W.measureSize(U),pe=E(G),me=_(s,G),he=!m&&!!z,{slideSizes:ge,slideSizesWithGaps:_e,startGap:ve,endGap:ye}=ae(W,U,fe,n,m||!!z,i),be=oe(W,G,ce,m,U,fe,ve,ye,2),{snaps:xe,snapsAligned:Se}=te(W,me,U,fe,be),K=-u(xe)+u(_e),{snapsContained:Ce,scrollContainLimit:we}=A(G,K,Se,z,2),q=he?Ce:Se,{limit:J}=j(K,q,m),Y=S(d(q),p,m),Te=Y.clone(),Ee=l(n),De=({dragHandler:e,scrollBody:t,scrollBounds:n,options:{loop:r}})=>{r||n.constrain(e.pointerDown()),t.seek()},Oe=({scrollBody:e,translate:t,location:n,offsetLocation:r,previousLocation:i,scrollLooper:a,slideLooper:o,dragHandler:s,animation:c,eventHandler:l,scrollBounds:u,options:{loop:d}},f)=>{let p=e.settled(),m=!u.shouldConstrain(),h=d?p:p&&m,g=h&&!s.pointerDown();g&&c.stop();let _=n.get()*f+i.get()*(1-f);r.set(_),d&&(a.loop(e.direction()),o.loop()),t.to(r.get()),g&&l.emit(`settle`),h||l.emit(`scroll`)},ke=y(r,i,()=>De(Be),e=>Oe(Be,e)),Ae=.68,X=q[Y.get()],je=P(X),Me=P(X),Z=P(X),Q=P(X),$=O(je,Z,Me,Q,h,Ae),Ne=re(m,q,K,J,Q),Pe=ie(ke,Y,Te,$,Ne,Q,o),Fe=ee(J),Ie=v(),Le=R(t,n,o,se),{slideRegistry:Re}=ne(he,z,q,we,be,Ee),ze=N(e,n,Re,Pe,$,Ie,o,de),Be={ownerDocument:r,ownerWindow:i,eventHandler:o,containerRect:U,slideRects:fe,animation:ke,axis:W,dragHandler:C(W,e,r,i,Q,w(W,i),je,ke,Pe,$,Ne,Y,o,pe,g,x,le,Ae,V),eventStore:Ie,percentOfView:pe,index:Y,indexPrevious:Te,limit:J,location:je,offsetLocation:Z,previousLocation:Me,options:a,resizeHandler:D(t,o,i,n,W,ue,H),scrollBody:$,scrollBounds:k(J,Z,Q,$,pe),scrollLooper:M(K,J,Z,[je,Z,Me,Q]),scrollProgress:Fe,scrollSnapList:q.map(Fe.get),scrollSnaps:q,scrollTarget:Ne,scrollTo:Pe,slideLooper:I(W,G,K,ge,_e,xe,q,Z,n),slideFocus:ze,slidesHandler:L(t,o,B),slidesInView:Le,slideIndexes:Ee,slideRegistry:Re,slidesToScroll:be,target:Q,translate:F(W,t)};return Be}function ce(){let e={},t;function n(e){t=e}function r(t){return e[t]||[]}function i(e){return r(e).forEach(n=>n(t,e)),c}function a(t,n){return e[t]=r(t).concat([n]),c}function o(t,n){return e[t]=r(t).filter(e=>e!==n),c}function s(){e={}}let c={init:n,emit:i,off:o,on:a,clear:s};return c}var le={align:`center`,axis:`x`,container:null,slides:null,containScroll:`trimSnaps`,direction:`ltr`,slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function z(e){function t(e,t){return h(e,t||{})}function n(n){let r=n.breakpoints||{};return t(n,m(r).filter(t=>e.matchMedia(t).matches).map(e=>r[e]).reduce((e,n)=>t(e,n),{}))}function r(t){return t.map(e=>m(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function ue(e){let t=[];function n(n,r){return t=r.filter(({options:t})=>e.optionsAtMedia(t).active!==!1),t.forEach(t=>t.init(n,e)),r.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})}function r(){t=t.filter(e=>e.destroy())}return{init:n,destroy:r}}function B(e,n,r){let i=e.ownerDocument,a=i.defaultView,o=z(a),s=ue(o),c=v(),l=ce(),{mergeOptions:u,optionsAtMedia:d,optionsMediaQueries:f}=o,{on:p,off:m,emit:h}=l,g=k,_=!1,y,b=u(le,B.globalOptions),x=u(b),S=[],C,w,T;function E(){let{container:n,slides:r}=x;w=(t(n)?e.querySelector(n):n)||e.children[0];let i=t(r)?w.querySelectorAll(r):r;T=[].slice.call(i||w.children)}function D(t){let n=se(e,w,T,i,a,t,l);return t.loop&&!n.slideLooper.canLoop()?D(Object.assign({},t,{loop:!1})):n}function O(e,t){_||(b=u(b,e),x=d(b),S=t||S,E(),y=D(x),f([b,...S.map(({options:e})=>e)]).forEach(e=>c.add(e,`change`,k)),x.active&&(y.translate.to(y.location.get()),y.animation.init(),y.slidesInView.init(),y.slideFocus.init(H),y.eventHandler.init(H),y.resizeHandler.init(H),y.slidesHandler.init(H),y.options.loop&&y.slideLooper.loop(),w.offsetParent&&T.length&&y.dragHandler.init(H),C=s.init(H,S)))}function k(e,t){let n=P();A(),O(u({startIndex:n},e),t),l.emit(`reInit`)}function A(){y.dragHandler.destroy(),y.eventStore.clear(),y.translate.clear(),y.slideLooper.clear(),y.resizeHandler.destroy(),y.slidesHandler.destroy(),y.slidesInView.destroy(),y.animation.destroy(),s.destroy(),c.clear()}function j(){_||(_=!0,c.clear(),A(),l.emit(`destroy`),l.clear())}function M(e,t,n){!x.active||_||(y.scrollBody.useBaseFriction().useDuration(t===!0?0:x.duration),y.scrollTo.index(e,n||0))}function ee(e){M(y.index.add(1).get(),e,-1)}function te(e){M(y.index.add(-1).get(),e,1)}function ne(){return y.index.add(1).get()!==P()}function re(){return y.index.add(-1).get()!==P()}function ie(){return y.scrollSnapList}function N(){return y.scrollProgress.get(y.offsetLocation.get())}function P(){return y.index.get()}function F(){return y.indexPrevious.get()}function I(){return y.slidesInView.get()}function L(){return y.slidesInView.get(!1)}function R(){return C}function ae(){return y}function oe(){return e}function V(){return w}function de(){return T}let H={canScrollNext:ne,canScrollPrev:re,containerNode:V,internalEngine:ae,destroy:j,off:m,on:p,emit:h,plugins:R,previousScrollSnap:F,reInit:g,rootNode:oe,scrollNext:ee,scrollPrev:te,scrollProgress:N,scrollSnapList:ie,scrollTo:M,selectedScrollSnap:P,slideNodes:de,slidesInView:I,slidesNotInView:L};return O(n,r),setTimeout(()=>l.emit(`init`),0),H}B.globalOptions=void 0,exports.EmblaCarousel=B;
package/dist/index25.js CHANGED
@@ -1,97 +1,23 @@
1
- import { cn as e } from "./index3.js";
2
- import { CheckIcon as t, ChevronDownIcon as n, ChevronUpIcon as r } from "lucide-react";
3
- import "react";
4
- import { jsx as i, jsxs as a } from "react/jsx-runtime";
5
- import * as o from "@radix-ui/react-select";
6
- //#region src/ui/select.tsx
7
- function s({ ...e }) {
8
- return /* @__PURE__ */ i(o.Root, {
9
- "data-slot": "select",
10
- ...e
11
- });
12
- }
13
- function c({ ...e }) {
14
- return /* @__PURE__ */ i(o.Group, {
15
- "data-slot": "select-group",
16
- ...e
17
- });
18
- }
19
- function l({ ...e }) {
20
- return /* @__PURE__ */ i(o.Value, {
21
- "data-slot": "select-value",
22
- ...e
23
- });
24
- }
25
- function u({ className: t, size: r = "default", children: s, ...c }) {
26
- return /* @__PURE__ */ a(o.Trigger, {
27
- "data-slot": "select-trigger",
28
- "data-size": r,
29
- className: e("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", t),
30
- ...c,
31
- children: [s, /* @__PURE__ */ i(o.Icon, {
32
- asChild: !0,
33
- children: /* @__PURE__ */ i(n, { className: "size-4 opacity-50" })
34
- })]
35
- });
36
- }
37
- function d({ className: t, children: n, position: r = "item-aligned", align: s = "center", ...c }) {
38
- return /* @__PURE__ */ i(o.Portal, { children: /* @__PURE__ */ a(o.Content, {
39
- "data-slot": "select-content",
40
- className: e("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md", r === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", t),
41
- position: r,
42
- align: s,
43
- ...c,
44
- children: [
45
- /* @__PURE__ */ i(h, {}),
46
- /* @__PURE__ */ i(o.Viewport, {
47
- className: e("p-1", r === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),
48
- children: n
49
- }),
50
- /* @__PURE__ */ i(g, {})
51
- ]
52
- }) });
53
- }
54
- function f({ className: t, ...n }) {
55
- return /* @__PURE__ */ i(o.Label, {
56
- "data-slot": "select-label",
57
- className: e("text-muted-foreground px-2 py-1.5 text-xs", t),
58
- ...n
59
- });
60
- }
61
- function p({ className: n, children: r, ...s }) {
62
- return /* @__PURE__ */ a(o.Item, {
63
- "data-slot": "select-item",
64
- className: e("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2", n),
65
- ...s,
66
- children: [/* @__PURE__ */ i("span", {
67
- "data-slot": "select-item-indicator",
68
- className: "absolute right-2 flex size-3.5 items-center justify-center",
69
- children: /* @__PURE__ */ i(o.ItemIndicator, { children: /* @__PURE__ */ i(t, { className: "size-4" }) })
70
- }), /* @__PURE__ */ i(o.ItemText, { children: r })]
71
- });
72
- }
73
- function m({ className: t, ...n }) {
74
- return /* @__PURE__ */ i(o.Separator, {
75
- "data-slot": "select-separator",
76
- className: e("bg-border pointer-events-none -mx-1 my-1 h-px", t),
77
- ...n
78
- });
79
- }
80
- function h({ className: t, ...n }) {
81
- return /* @__PURE__ */ i(o.ScrollUpButton, {
82
- "data-slot": "select-scroll-up-button",
83
- className: e("flex cursor-default items-center justify-center py-1", t),
84
- ...n,
85
- children: /* @__PURE__ */ i(r, { className: "size-4" })
86
- });
87
- }
88
- function g({ className: t, ...r }) {
89
- return /* @__PURE__ */ i(o.ScrollDownButton, {
90
- "data-slot": "select-scroll-down-button",
91
- className: e("flex cursor-default items-center justify-center py-1", t),
92
- ...r,
93
- children: /* @__PURE__ */ i(n, { className: "size-4" })
94
- });
95
- }
1
+ import { areOptionsEqual as e, arePluginsEqual as t, canUseDOM as n } from "./index23.js";
2
+ import { EmblaCarousel as r } from "./index24.js";
3
+ import { useCallback as i, useEffect as a, useRef as o, useState as s } from "react";
4
+ //#region ../../node_modules/.pnpm/embla-carousel-react@8.6.0_react@19.2.8/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.js
5
+ function c(l = {}, u = []) {
6
+ let d = o(l), f = o(u), [p, m] = s(), [h, g] = s(), _ = i(() => {
7
+ p && p.reInit(d.current, f.current);
8
+ }, [p]);
9
+ return a(() => {
10
+ e(d.current, l) || (d.current = l, _());
11
+ }, [l, _]), a(() => {
12
+ t(f.current, u) || (f.current = u, _());
13
+ }, [u, _]), a(() => {
14
+ if (n() && h) {
15
+ r.globalOptions = c.globalOptions;
16
+ let e = r(h, d.current, f.current);
17
+ return m(e), () => e.destroy();
18
+ } else m(void 0);
19
+ }, [h, m]), [g, p];
20
+ }
21
+ c.globalOptions = void 0;
96
22
  //#endregion
97
- export { s as Select, d as SelectContent, c as SelectGroup, p as SelectItem, f as SelectLabel, g as SelectScrollDownButton, h as SelectScrollUpButton, m as SelectSeparator, u as SelectTrigger, l as SelectValue };
23
+ export { c as useEmblaCarousel };
package/dist/index26.cjs CHANGED
@@ -1 +1 @@
1
- const e=require("./index2.cjs"),t=require("./index4.cjs");let n=require("lucide-react"),r=require("react");r=e.__toESM(r,1);let i=require("react/jsx-runtime"),a=require("@radix-ui/react-select");a=e.__toESM(a,1);function o({...e}){return(0,i.jsx)(a.Root,{"data-slot":`select`,...e})}function s({...e}){return(0,i.jsx)(a.Group,{"data-slot":`select-group`,...e})}function c({...e}){return(0,i.jsx)(a.Value,{"data-slot":`select-value`,...e})}function l({className:e,size:r=`default`,children:o,...s}){return(0,i.jsxs)(a.Trigger,{"data-slot":`select-trigger`,"data-size":r,className:t.cn(`border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...s,children:[o,(0,i.jsx)(a.Icon,{asChild:!0,children:(0,i.jsx)(n.ChevronDownIcon,{className:`size-4 opacity-50`})})]})}function u({className:e,children:n,position:r=`item-aligned`,align:o=`center`,...s}){return(0,i.jsx)(a.Portal,{children:(0,i.jsxs)(a.Content,{"data-slot":`select-content`,className:t.cn(`bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md`,r===`popper`&&`data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1`,e),position:r,align:o,...s,children:[(0,i.jsx)(m,{}),(0,i.jsx)(a.Viewport,{className:t.cn(`p-1`,r===`popper`&&`h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1`),children:n}),(0,i.jsx)(h,{})]})})}function d({className:e,...n}){return(0,i.jsx)(a.Label,{"data-slot":`select-label`,className:t.cn(`text-muted-foreground px-2 py-1.5 text-xs`,e),...n})}function f({className:e,children:r,...o}){return(0,i.jsxs)(a.Item,{"data-slot":`select-item`,className:t.cn(`focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2`,e),...o,children:[(0,i.jsx)(`span`,{"data-slot":`select-item-indicator`,className:`absolute right-2 flex size-3.5 items-center justify-center`,children:(0,i.jsx)(a.ItemIndicator,{children:(0,i.jsx)(n.CheckIcon,{className:`size-4`})})}),(0,i.jsx)(a.ItemText,{children:r})]})}function p({className:e,...n}){return(0,i.jsx)(a.Separator,{"data-slot":`select-separator`,className:t.cn(`bg-border pointer-events-none -mx-1 my-1 h-px`,e),...n})}function m({className:e,...r}){return(0,i.jsx)(a.ScrollUpButton,{"data-slot":`select-scroll-up-button`,className:t.cn(`flex cursor-default items-center justify-center py-1`,e),...r,children:(0,i.jsx)(n.ChevronUpIcon,{className:`size-4`})})}function h({className:e,...r}){return(0,i.jsx)(a.ScrollDownButton,{"data-slot":`select-scroll-down-button`,className:t.cn(`flex cursor-default items-center justify-center py-1`,e),...r,children:(0,i.jsx)(n.ChevronDownIcon,{className:`size-4`})})}exports.Select=o,exports.SelectContent=u,exports.SelectGroup=s,exports.SelectItem=f,exports.SelectLabel=d,exports.SelectScrollDownButton=h,exports.SelectScrollUpButton=m,exports.SelectSeparator=p,exports.SelectTrigger=l,exports.SelectValue=c;
1
+ const e=require("./index24.cjs"),t=require("./index25.cjs");let n=require("react");function r(i={},a=[]){let o=(0,n.useRef)(i),s=(0,n.useRef)(a),[c,l]=(0,n.useState)(),[u,d]=(0,n.useState)(),f=(0,n.useCallback)(()=>{c&&c.reInit(o.current,s.current)},[c]);return(0,n.useEffect)(()=>{e.areOptionsEqual(o.current,i)||(o.current=i,f())},[i,f]),(0,n.useEffect)(()=>{e.arePluginsEqual(s.current,a)||(s.current=a,f())},[a,f]),(0,n.useEffect)(()=>{if(e.canUseDOM()&&u){t.EmblaCarousel.globalOptions=r.globalOptions;let e=t.EmblaCarousel(u,o.current,s.current);return l(e),()=>e.destroy()}else l(void 0)},[u,l]),[d,c]}r.globalOptions=void 0,exports.useEmblaCarousel=r;
package/dist/index26.js CHANGED
@@ -1,28 +1,111 @@
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" })
1
+ "use client";
2
+ import { cn as e } from "./index3.js";
3
+ import { Button as t } from "./index10.js";
4
+ import { useEmblaCarousel as n } from "./index25.js";
5
+ import { ArrowLeft as r, ArrowRight as i } from "lucide-react";
6
+ import * as a from "react";
7
+ import { jsx as o, jsxs as s } from "react/jsx-runtime";
8
+ //#region src/ui/carousel.tsx
9
+ var c = a.createContext(null);
10
+ function l() {
11
+ let e = a.useContext(c);
12
+ if (!e) throw Error("useCarousel must be used within a <Carousel />");
13
+ return e;
14
+ }
15
+ function u({ orientation: t = "horizontal", opts: r, setApi: i, plugins: s, className: l, children: u, ...d }) {
16
+ let [f, p] = n({
17
+ ...r,
18
+ axis: t === "horizontal" ? "x" : "y"
19
+ }, s), [m, h] = a.useState(!1), [g, _] = a.useState(!1), v = a.useCallback((e) => {
20
+ e && (h(e.canScrollPrev()), _(e.canScrollNext()));
21
+ }, []), y = a.useCallback(() => {
22
+ p?.scrollPrev();
23
+ }, [p]), b = a.useCallback(() => {
24
+ p?.scrollNext();
25
+ }, [p]), x = a.useCallback((e) => {
26
+ e.key === "ArrowLeft" ? (e.preventDefault(), y()) : e.key === "ArrowRight" && (e.preventDefault(), b());
27
+ }, [y, b]);
28
+ return a.useEffect(() => {
29
+ !p || !i || i(p);
30
+ }, [p, i]), a.useEffect(() => {
31
+ if (p) return v(p), p.on("reInit", v), p.on("select", v), () => {
32
+ p?.off("select", v);
33
+ };
34
+ }, [p, v]), /* @__PURE__ */ o(c.Provider, {
35
+ value: {
36
+ carouselRef: f,
37
+ api: p,
38
+ opts: r,
39
+ orientation: t || (r?.axis === "y" ? "vertical" : "horizontal"),
40
+ scrollPrev: y,
41
+ scrollNext: b,
42
+ canScrollPrev: m,
43
+ canScrollNext: g
17
44
  },
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
45
+ children: /* @__PURE__ */ o("div", {
46
+ onKeyDownCapture: x,
47
+ className: e("relative", l),
48
+ role: "region",
49
+ "aria-roledescription": "carousel",
50
+ "data-slot": "carousel",
51
+ ...d,
52
+ children: u
53
+ })
54
+ });
55
+ }
56
+ function d({ className: t, ...n }) {
57
+ let { carouselRef: r, orientation: i } = l();
58
+ return /* @__PURE__ */ o("div", {
59
+ ref: r,
60
+ className: "overflow-hidden",
61
+ "data-slot": "carousel-content",
62
+ children: /* @__PURE__ */ o("div", {
63
+ className: e("flex", i === "horizontal" ? "-ml-4" : "-mt-4 flex-col", t),
64
+ ...n
65
+ })
66
+ });
67
+ }
68
+ function f({ className: t, ...n }) {
69
+ let { orientation: r } = l();
70
+ return /* @__PURE__ */ o("div", {
71
+ role: "group",
72
+ "aria-roledescription": "slide",
73
+ "data-slot": "carousel-item",
74
+ className: e("min-w-0 shrink-0 grow-0 basis-full", r === "horizontal" ? "pl-4" : "pt-4", t),
75
+ ...n
76
+ });
77
+ }
78
+ function p({ className: n, variant: i = "outline", size: a = "icon", ...c }) {
79
+ let { orientation: u, scrollPrev: d, canScrollPrev: f } = l();
80
+ return /* @__PURE__ */ s(t, {
81
+ "data-slot": "carousel-previous",
82
+ variant: i,
83
+ size: a,
84
+ className: e("absolute size-8 rounded-full", u === "horizontal" ? "top-1/2 -left-12 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90", n),
85
+ disabled: !f,
86
+ onClick: d,
87
+ ...c,
88
+ children: [/* @__PURE__ */ o(r, {}), /* @__PURE__ */ o("span", {
89
+ className: "sr-only",
90
+ children: "Previous slide"
91
+ })]
92
+ });
93
+ }
94
+ function m({ className: n, variant: r = "outline", size: a = "icon", ...c }) {
95
+ let { orientation: u, scrollNext: d, canScrollNext: f } = l();
96
+ return /* @__PURE__ */ s(t, {
97
+ "data-slot": "carousel-next",
98
+ variant: r,
99
+ size: a,
100
+ className: e("absolute size-8 rounded-full", u === "horizontal" ? "top-1/2 -right-12 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90", n),
101
+ disabled: !f,
102
+ onClick: d,
103
+ ...c,
104
+ children: [/* @__PURE__ */ o(i, {}), /* @__PURE__ */ o("span", {
105
+ className: "sr-only",
106
+ children: "Next slide"
107
+ })]
25
108
  });
26
- };
109
+ }
27
110
  //#endregion
28
- export { c as Toaster };
111
+ export { u as Carousel, d as CarouselContent, f as CarouselItem, m as CarouselNext, p as CarouselPrevious };
package/dist/index27.cjs CHANGED
@@ -1 +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;
1
+ "use client";const e=require("./index2.cjs"),t=require("./index4.cjs"),n=require("./index11.cjs"),r=require("./index26.cjs");let i=require("lucide-react"),a=require("react");a=e.__toESM(a,1);let o=require("react/jsx-runtime");var s=a.createContext(null);function c(){let e=a.useContext(s);if(!e)throw Error(`useCarousel must be used within a <Carousel />`);return e}function l({orientation:e=`horizontal`,opts:n,setApi:i,plugins:c,className:l,children:u,...d}){let[f,p]=r.useEmblaCarousel({...n,axis:e===`horizontal`?`x`:`y`},c),[m,h]=a.useState(!1),[g,_]=a.useState(!1),v=a.useCallback(e=>{e&&(h(e.canScrollPrev()),_(e.canScrollNext()))},[]),y=a.useCallback(()=>{p?.scrollPrev()},[p]),b=a.useCallback(()=>{p?.scrollNext()},[p]),x=a.useCallback(e=>{e.key===`ArrowLeft`?(e.preventDefault(),y()):e.key===`ArrowRight`&&(e.preventDefault(),b())},[y,b]);return a.useEffect(()=>{!p||!i||i(p)},[p,i]),a.useEffect(()=>{if(p)return v(p),p.on(`reInit`,v),p.on(`select`,v),()=>{p?.off(`select`,v)}},[p,v]),(0,o.jsx)(s.Provider,{value:{carouselRef:f,api:p,opts:n,orientation:e||(n?.axis===`y`?`vertical`:`horizontal`),scrollPrev:y,scrollNext:b,canScrollPrev:m,canScrollNext:g},children:(0,o.jsx)(`div`,{onKeyDownCapture:x,className:t.cn(`relative`,l),role:`region`,"aria-roledescription":`carousel`,"data-slot":`carousel`,...d,children:u})})}function u({className:e,...n}){let{carouselRef:r,orientation:i}=c();return(0,o.jsx)(`div`,{ref:r,className:`overflow-hidden`,"data-slot":`carousel-content`,children:(0,o.jsx)(`div`,{className:t.cn(`flex`,i===`horizontal`?`-ml-4`:`-mt-4 flex-col`,e),...n})})}function d({className:e,...n}){let{orientation:r}=c();return(0,o.jsx)(`div`,{role:`group`,"aria-roledescription":`slide`,"data-slot":`carousel-item`,className:t.cn(`min-w-0 shrink-0 grow-0 basis-full`,r===`horizontal`?`pl-4`:`pt-4`,e),...n})}function f({className:e,variant:r=`outline`,size:a=`icon`,...s}){let{orientation:l,scrollPrev:u,canScrollPrev:d}=c();return(0,o.jsxs)(n.Button,{"data-slot":`carousel-previous`,variant:r,size:a,className:t.cn(`absolute size-8 rounded-full`,l===`horizontal`?`top-1/2 -left-12 -translate-y-1/2`:`-top-12 left-1/2 -translate-x-1/2 rotate-90`,e),disabled:!d,onClick:u,...s,children:[(0,o.jsx)(i.ArrowLeft,{}),(0,o.jsx)(`span`,{className:`sr-only`,children:`Previous slide`})]})}function p({className:e,variant:r=`outline`,size:a=`icon`,...s}){let{orientation:l,scrollNext:u,canScrollNext:d}=c();return(0,o.jsxs)(n.Button,{"data-slot":`carousel-next`,variant:r,size:a,className:t.cn(`absolute size-8 rounded-full`,l===`horizontal`?`top-1/2 -right-12 -translate-y-1/2`:`-bottom-12 left-1/2 -translate-x-1/2 rotate-90`,e),disabled:!d,onClick:u,...s,children:[(0,o.jsx)(i.ArrowRight,{}),(0,o.jsx)(`span`,{className:`sr-only`,children:`Next slide`})]})}exports.Carousel=l,exports.CarouselContent=u,exports.CarouselItem=d,exports.CarouselNext=p,exports.CarouselPrevious=f;
package/dist/index27.js CHANGED
@@ -1,14 +1,20 @@
1
1
  import { cn as e } from "./index3.js";
2
- import { Loader2Icon as t } from "lucide-react";
2
+ import { CheckIcon as t } from "lucide-react";
3
+ import "react";
3
4
  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
5
+ import * as r from "@radix-ui/react-checkbox";
6
+ //#region src/ui/checkbox.tsx
7
+ function i({ className: i, ...a }) {
8
+ return /* @__PURE__ */ n(r.Root, {
9
+ "data-slot": "checkbox",
10
+ className: e("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", i),
11
+ ...a,
12
+ children: /* @__PURE__ */ n(r.Indicator, {
13
+ "data-slot": "checkbox-indicator",
14
+ className: "grid place-content-center text-current transition-none",
15
+ children: /* @__PURE__ */ n(t, { className: "size-3.5" })
16
+ })
11
17
  });
12
18
  }
13
19
  //#endregion
14
- export { r as Spinner };
20
+ export { i as Checkbox };
package/dist/index28.cjs CHANGED
@@ -1 +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;
1
+ const e=require("./index2.cjs"),t=require("./index4.cjs");let n=require("lucide-react"),r=require("react");r=e.__toESM(r,1);let i=require("react/jsx-runtime"),a=require("@radix-ui/react-checkbox");a=e.__toESM(a,1);function o({className:e,...r}){return(0,i.jsx)(a.Root,{"data-slot":`checkbox`,className:t.cn(`peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50`,e),...r,children:(0,i.jsx)(a.Indicator,{"data-slot":`checkbox-indicator`,className:`grid place-content-center text-current transition-none`,children:(0,i.jsx)(n.CheckIcon,{className:`size-3.5`})})})}exports.Checkbox=o;
package/dist/index28.js CHANGED
@@ -1,67 +1,21 @@
1
- "use client";
2
- import { cn as e } from "./index3.js";
3
- import "react";
4
- import { jsx as t } from "react/jsx-runtime";
5
- //#region src/ui/table.tsx
6
- function n({ className: n, ...r }) {
7
- return /* @__PURE__ */ t("div", {
8
- "data-slot": "table-container",
9
- className: "relative w-full overflow-x-auto",
10
- children: /* @__PURE__ */ t("table", {
11
- "data-slot": "table",
12
- className: e("w-full caption-bottom text-sm", n),
13
- ...r
14
- })
15
- });
16
- }
17
- function r({ className: n, ...r }) {
18
- return /* @__PURE__ */ t("thead", {
19
- "data-slot": "table-header",
20
- className: e("[&_tr]:border-b", n),
21
- ...r
22
- });
23
- }
24
- function i({ className: n, ...r }) {
25
- return /* @__PURE__ */ t("tbody", {
26
- "data-slot": "table-body",
27
- className: e("[&_tr:last-child]:border-0", n),
28
- ...r
29
- });
30
- }
31
- function a({ className: n, ...r }) {
32
- return /* @__PURE__ */ t("tfoot", {
33
- "data-slot": "table-footer",
34
- className: e("bg-muted/50 border-t font-medium [&>tr]:last:border-b-0", n),
35
- ...r
36
- });
37
- }
38
- function o({ className: n, ...r }) {
39
- return /* @__PURE__ */ t("tr", {
40
- "data-slot": "table-row",
41
- className: e("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors", n),
42
- ...r
43
- });
44
- }
45
- function s({ className: n, ...r }) {
46
- return /* @__PURE__ */ t("th", {
47
- "data-slot": "table-head",
48
- className: e("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]", n),
49
- ...r
50
- });
51
- }
52
- function c({ className: n, ...r }) {
53
- return /* @__PURE__ */ t("td", {
54
- "data-slot": "table-cell",
55
- className: e("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]", n),
56
- ...r
57
- });
58
- }
59
- function l({ className: n, ...r }) {
60
- return /* @__PURE__ */ t("caption", {
61
- "data-slot": "table-caption",
62
- className: e("text-muted-foreground mt-4 text-sm", n),
63
- ...r
64
- });
65
- }
1
+ import { useLayoutEffect2 as e } from "./index16.js";
2
+ import * as t from "react";
3
+ //#region ../../node_modules/.pnpm/@radix-ui+react-use-effect-event@0.0.5_@types+react@19.2.17_react@19.2.8/node_modules/@radix-ui/react-use-effect-event/dist/index.mjs
4
+ var n = Object.defineProperty, r = (e, t) => n(e, "name", {
5
+ value: t,
6
+ configurable: !0
7
+ }), i = t.useEffectEvent, a = t.useInsertionEffect;
8
+ function o(n) {
9
+ if (typeof i == "function") return i(n);
10
+ let r = t.useRef(() => {
11
+ throw Error("Cannot call an event handler while rendering.");
12
+ });
13
+ return typeof a == "function" ? a(() => {
14
+ r.current = n;
15
+ }) : e(() => {
16
+ r.current = n;
17
+ }), t.useMemo(() => ((...e) => r.current?.(...e)), []);
18
+ }
19
+ r(o, "useEffectEvent");
66
20
  //#endregion
67
- export { n as Table, i as TableBody, l as TableCaption, c as TableCell, a as TableFooter, s as TableHead, r as TableHeader, o as TableRow };
21
+ export { o as useEffectEvent };
package/dist/index29.cjs CHANGED
@@ -1 +1 @@
1
- "use client";const e=require("./index2.cjs"),t=require("./index4.cjs");let n=require("react");n=e.__toESM(n,1);let r=require("react/jsx-runtime");function i({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`table-container`,className:`relative w-full overflow-x-auto`,children:(0,r.jsx)(`table`,{"data-slot":`table`,className:t.cn(`w-full caption-bottom text-sm`,e),...n})})}function a({className:e,...n}){return(0,r.jsx)(`thead`,{"data-slot":`table-header`,className:t.cn(`[&_tr]:border-b`,e),...n})}function o({className:e,...n}){return(0,r.jsx)(`tbody`,{"data-slot":`table-body`,className:t.cn(`[&_tr:last-child]:border-0`,e),...n})}function s({className:e,...n}){return(0,r.jsx)(`tfoot`,{"data-slot":`table-footer`,className:t.cn(`bg-muted/50 border-t font-medium [&>tr]:last:border-b-0`,e),...n})}function c({className:e,...n}){return(0,r.jsx)(`tr`,{"data-slot":`table-row`,className:t.cn(`hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors`,e),...n})}function l({className:e,...n}){return(0,r.jsx)(`th`,{"data-slot":`table-head`,className:t.cn(`text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]`,e),...n})}function u({className:e,...n}){return(0,r.jsx)(`td`,{"data-slot":`table-cell`,className:t.cn(`p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]`,e),...n})}function d({className:e,...n}){return(0,r.jsx)(`caption`,{"data-slot":`table-caption`,className:t.cn(`text-muted-foreground mt-4 text-sm`,e),...n})}exports.Table=i,exports.TableBody=o,exports.TableCaption=d,exports.TableCell=u,exports.TableFooter=s,exports.TableHead=l,exports.TableHeader=a,exports.TableRow=c;
1
+ const e=require("./index2.cjs"),t=require("./index17.cjs");let n=require("react");n=e.__toESM(n,1);var r=Object.defineProperty,i=(e,t)=>r(e,`name`,{value:t,configurable:!0}),a=n.useEffectEvent,o=n.useInsertionEffect;function s(e){if(typeof a==`function`)return a(e);let r=n.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof o==`function`?o(()=>{r.current=e}):t.useLayoutEffect2(()=>{r.current=e}),n.useMemo(()=>((...e)=>r.current?.(...e)),[])}i(s,`useEffectEvent`),exports.useEffectEvent=s;
package/dist/index29.js CHANGED
@@ -1,13 +1,83 @@
1
- import { cn as e } from "./index3.js";
2
- import "react";
3
- import { jsx as t } from "react/jsx-runtime";
4
- //#region src/ui/textarea.tsx
5
- function n({ className: n, ...r }) {
6
- return /* @__PURE__ */ t("textarea", {
7
- "data-slot": "textarea",
8
- className: e("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", n),
9
- ...r
10
- });
1
+ import { useLayoutEffect2 as e } from "./index16.js";
2
+ import { useEffectEvent as t } from "./index28.js";
3
+ import * as n from "react";
4
+ //#region ../../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.2.6_@types+react@19.2.17_react@19.2.8/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
5
+ var r = Object.defineProperty, i = (e, t) => r(e, "name", {
6
+ value: t,
7
+ configurable: !0
8
+ }), a = n.useInsertionEffect || e;
9
+ function o({ prop: e, defaultProp: t, onChange: r = /* @__PURE__ */ i(() => {}, "onChange"), caller: a }) {
10
+ let [o, l, u] = s({
11
+ defaultProp: t,
12
+ onChange: r
13
+ }), d = e !== void 0;
14
+ return [d ? e : o, n.useCallback((t) => {
15
+ if (d) {
16
+ let n = c(t) ? t(e) : t;
17
+ n !== e && u.current?.(n);
18
+ } else l(t);
19
+ }, [
20
+ d,
21
+ e,
22
+ l,
23
+ u
24
+ ])];
11
25
  }
26
+ i(o, "useControllableState");
27
+ function s({ defaultProp: e, onChange: t }) {
28
+ let [r, i] = n.useState(e), o = n.useRef(r), s = n.useRef(t);
29
+ return a(() => {
30
+ s.current = t;
31
+ }, [t]), n.useEffect(() => {
32
+ o.current !== r && (s.current?.(r), o.current = r);
33
+ }, [r, o]), [
34
+ r,
35
+ i,
36
+ s
37
+ ];
38
+ }
39
+ i(s, "useUncontrolledState");
40
+ function c(e) {
41
+ return typeof e == "function";
42
+ }
43
+ i(c, "isFunction");
44
+ var l = Symbol("RADIX:SYNC_STATE");
45
+ function u(e, r, i, a) {
46
+ let { prop: o, defaultProp: s, onChange: c, caller: u } = r, d = o !== void 0, f = t(c), p = [{
47
+ ...i,
48
+ state: s
49
+ }];
50
+ a && p.push(a);
51
+ let [m, h] = n.useReducer((t, n) => {
52
+ if (n.type === l) return {
53
+ ...t,
54
+ state: n.state
55
+ };
56
+ let r = e(t, n);
57
+ return d && !Object.is(r.state, t.state) && f(r.state), r;
58
+ }, ...p), g = m.state, _ = n.useRef(g);
59
+ n.useEffect(() => {
60
+ _.current !== g && (_.current = g, d || f(g));
61
+ }, [
62
+ g,
63
+ _,
64
+ d
65
+ ]);
66
+ let v = n.useMemo(() => o === void 0 ? m : {
67
+ ...m,
68
+ state: o
69
+ }, [m, o]);
70
+ return n.useEffect(() => {
71
+ d && !Object.is(o, m.state) && h({
72
+ type: l,
73
+ state: o
74
+ });
75
+ }, [
76
+ o,
77
+ m.state,
78
+ d
79
+ ]), [v, h];
80
+ }
81
+ i(u, "useControllableStateReducer");
12
82
  //#endregion
13
- export { n as Textarea };
83
+ export { o as useControllableState };
package/dist/index30.cjs CHANGED
@@ -1 +1 @@
1
- const e=require("./index2.cjs"),t=require("./index4.cjs");let n=require("react");n=e.__toESM(n,1);let r=require("react/jsx-runtime");function i({className:e,...n}){return(0,r.jsx)(`textarea`,{"data-slot":`textarea`,className:t.cn(`border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm`,e),...n})}exports.Textarea=i;
1
+ const e=require("./index2.cjs"),t=require("./index17.cjs"),n=require("./index29.cjs");let r=require("react");r=e.__toESM(r,1);var i=Object.defineProperty,a=(e,t)=>i(e,`name`,{value:t,configurable:!0}),o=r.useInsertionEffect||t.useLayoutEffect2;function s({prop:e,defaultProp:t,onChange:n=a(()=>{},`onChange`),caller:i}){let[o,s,u]=c({defaultProp:t,onChange:n}),d=e!==void 0;return[d?e:o,r.useCallback(t=>{if(d){let n=l(t)?t(e):t;n!==e&&u.current?.(n)}else s(t)},[d,e,s,u])]}a(s,`useControllableState`);function c({defaultProp:e,onChange:t}){let[n,i]=r.useState(e),a=r.useRef(n),s=r.useRef(t);return o(()=>{s.current=t},[t]),r.useEffect(()=>{a.current!==n&&(s.current?.(n),a.current=n)},[n,a]),[n,i,s]}a(c,`useUncontrolledState`);function l(e){return typeof e==`function`}a(l,`isFunction`);var u=Symbol(`RADIX:SYNC_STATE`);function d(e,t,i,a){let{prop:o,defaultProp:s,onChange:c,caller:l}=t,d=o!==void 0,f=n.useEffectEvent(c),p=[{...i,state:s}];a&&p.push(a);let[m,h]=r.useReducer((t,n)=>{if(n.type===u)return{...t,state:n.state};let r=e(t,n);return d&&!Object.is(r.state,t.state)&&f(r.state),r},...p),g=m.state,_=r.useRef(g);r.useEffect(()=>{_.current!==g&&(_.current=g,d||f(g))},[g,_,d]);let v=r.useMemo(()=>o===void 0?m:{...m,state:o},[m,o]);return r.useEffect(()=>{d&&!Object.is(o,m.state)&&h({type:u,state:o})},[o,m.state,d]),[v,h]}a(d,`useControllableStateReducer`),exports.useControllableState=s;