@vlrc-fe/components 1.0.6 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (452) hide show
  1. package/dist/Form/FormFileUpload/index.d.ts +1 -1
  2. package/dist/Form/FormFileUpload/index.d.ts.map +1 -1
  3. package/dist/Form/index.d.ts +1 -1
  4. package/dist/Form/index.d.ts.map +1 -1
  5. package/dist/MultiSelect/type.d.ts +2 -2
  6. package/dist/index.cjs +1 -1
  7. package/dist/index.js +64 -40
  8. package/dist/index10.cjs +1 -1
  9. package/dist/index10.js +46 -80
  10. package/dist/index100.cjs +1 -1
  11. package/dist/index100.js +22 -60
  12. package/dist/index101.cjs +1 -1
  13. package/dist/index101.js +1147 -43
  14. package/dist/index102.cjs +1 -1
  15. package/dist/index102.js +30 -64
  16. package/dist/index103.cjs +1 -1
  17. package/dist/index103.js +31 -147
  18. package/dist/index104.cjs +1 -1
  19. package/dist/index104.js +93 -19
  20. package/dist/index105.cjs +1 -1
  21. package/dist/index105.js +80 -25
  22. package/dist/index106.cjs +1 -1
  23. package/dist/index106.js +9 -50
  24. package/dist/index107.cjs +1 -1
  25. package/dist/index107.js +30 -156
  26. package/dist/index108.cjs +1 -1
  27. package/dist/index108.js +350 -14
  28. package/dist/index109.cjs +1 -1
  29. package/dist/index109.js +11 -0
  30. package/dist/index11.cjs +1 -1
  31. package/dist/index11.js +55 -60
  32. package/dist/index110.cjs +1 -0
  33. package/dist/index110.js +430 -0
  34. package/dist/index111.cjs +1 -0
  35. package/dist/index111.js +36 -0
  36. package/dist/index112.cjs +1 -0
  37. package/dist/index112.js +28 -0
  38. package/dist/index113.cjs +1 -0
  39. package/dist/index113.js +14 -0
  40. package/dist/index114.cjs +1 -0
  41. package/dist/index114.js +156 -0
  42. package/dist/index115.cjs +1 -0
  43. package/dist/index115.js +19 -0
  44. package/dist/index116.cjs +1 -0
  45. package/dist/index116.js +67 -0
  46. package/dist/index117.cjs +1 -0
  47. package/dist/index117.js +118 -0
  48. package/dist/index118.cjs +1 -0
  49. package/dist/index118.js +36 -0
  50. package/dist/index119.cjs +1 -0
  51. package/dist/index119.js +13 -0
  52. package/dist/index12.cjs +1 -1
  53. package/dist/index12.js +44 -121
  54. package/dist/index120.cjs +1 -0
  55. package/dist/index120.js +31 -0
  56. package/dist/index121.cjs +1 -0
  57. package/dist/index121.js +37 -0
  58. package/dist/index122.cjs +1 -0
  59. package/dist/index122.js +123 -0
  60. package/dist/index123.cjs +1 -0
  61. package/dist/index123.js +44 -0
  62. package/dist/index124.cjs +1 -0
  63. package/dist/index124.js +43 -0
  64. package/dist/index125.cjs +1 -0
  65. package/dist/index125.js +14 -0
  66. package/dist/index126.cjs +1 -0
  67. package/dist/index126.js +64 -0
  68. package/dist/index127.cjs +1 -0
  69. package/dist/index127.js +23 -0
  70. package/dist/index128.cjs +1 -0
  71. package/dist/index128.js +34 -0
  72. package/dist/index129.cjs +1 -0
  73. package/dist/index129.js +27 -0
  74. package/dist/index13.cjs +1 -1
  75. package/dist/index13.js +30 -12
  76. package/dist/index130.cjs +1 -0
  77. package/dist/index130.js +26 -0
  78. package/dist/index131.cjs +1 -0
  79. package/dist/index131.js +157 -0
  80. package/dist/index132.cjs +1 -0
  81. package/dist/index132.js +34 -0
  82. package/dist/index133.cjs +1 -0
  83. package/dist/index133.js +46 -0
  84. package/dist/index134.cjs +1 -0
  85. package/dist/index134.js +142 -0
  86. package/dist/index135.cjs +1 -0
  87. package/dist/index135.js +125 -0
  88. package/dist/index136.cjs +1 -0
  89. package/dist/index136.js +26 -0
  90. package/dist/index137.cjs +1 -0
  91. package/dist/index137.js +88 -0
  92. package/dist/index138.cjs +1 -0
  93. package/dist/index138.js +221 -0
  94. package/dist/index139.cjs +1 -0
  95. package/dist/index139.js +166 -0
  96. package/dist/index14.cjs +1 -1
  97. package/dist/index14.js +8 -12
  98. package/dist/index140.cjs +1 -0
  99. package/dist/index140.js +126 -0
  100. package/dist/index141.cjs +1 -0
  101. package/dist/index141.js +15 -0
  102. package/dist/index142.cjs +1 -0
  103. package/dist/index142.js +9 -0
  104. package/dist/index143.cjs +1 -0
  105. package/dist/index143.js +17 -0
  106. package/dist/index144.cjs +1 -0
  107. package/dist/index144.js +22 -0
  108. package/dist/index145.cjs +1 -0
  109. package/dist/index145.js +18 -0
  110. package/dist/index146.cjs +1 -0
  111. package/dist/index146.js +6 -0
  112. package/dist/index147.cjs +1 -0
  113. package/dist/index147.js +7 -0
  114. package/dist/index148.cjs +1 -0
  115. package/dist/index148.js +8 -0
  116. package/dist/index149.cjs +1 -0
  117. package/dist/index149.js +7 -0
  118. package/dist/index15.cjs +1 -1
  119. package/dist/index15.js +12 -112
  120. package/dist/index150.cjs +1 -0
  121. package/dist/index150.js +7 -0
  122. package/dist/index151.cjs +1 -0
  123. package/dist/index151.js +9 -0
  124. package/dist/index152.cjs +1 -0
  125. package/dist/index152.js +69 -0
  126. package/dist/index153.cjs +1 -0
  127. package/dist/index153.js +11 -0
  128. package/dist/index154.cjs +1 -0
  129. package/dist/index154.js +202 -0
  130. package/dist/index155.cjs +1 -0
  131. package/dist/index155.js +124 -0
  132. package/dist/index156.cjs +1 -0
  133. package/dist/index156.js +32 -0
  134. package/dist/index157.cjs +1 -0
  135. package/dist/index157.js +20 -0
  136. package/dist/index158.cjs +1 -0
  137. package/dist/index158.js +69 -0
  138. package/dist/index159.cjs +1 -0
  139. package/dist/index159.js +32 -0
  140. package/dist/index16.cjs +1 -1
  141. package/dist/index16.js +4 -726
  142. package/dist/index160.cjs +1 -0
  143. package/dist/index160.js +11 -0
  144. package/dist/index161.cjs +1 -0
  145. package/dist/index161.js +280 -0
  146. package/dist/index162.cjs +1 -0
  147. package/dist/index162.js +157 -0
  148. package/dist/index163.cjs +1 -0
  149. package/dist/index163.js +20 -0
  150. package/dist/index164.cjs +1 -0
  151. package/dist/index164.js +10 -0
  152. package/dist/index165.cjs +1 -0
  153. package/dist/index165.js +14 -0
  154. package/dist/index166.cjs +1 -0
  155. package/dist/index166.js +8 -0
  156. package/dist/index167.cjs +1 -0
  157. package/dist/index167.js +8 -0
  158. package/dist/index168.cjs +1 -0
  159. package/dist/index168.js +11 -0
  160. package/dist/index169.cjs +1 -0
  161. package/dist/index169.js +10 -0
  162. package/dist/index17.cjs +1 -1
  163. package/dist/index17.js +79 -339
  164. package/dist/index170.cjs +1 -0
  165. package/dist/index170.js +6 -0
  166. package/dist/index171.cjs +1 -0
  167. package/dist/index171.js +8 -0
  168. package/dist/index172.cjs +1 -0
  169. package/dist/index172.js +8 -0
  170. package/dist/index173.cjs +1 -0
  171. package/dist/index173.js +10 -0
  172. package/dist/index174.cjs +1 -0
  173. package/dist/index174.js +11 -0
  174. package/dist/index175.cjs +1 -0
  175. package/dist/index175.js +15 -0
  176. package/dist/index176.cjs +1 -0
  177. package/dist/index176.js +11 -0
  178. package/dist/index177.cjs +1 -0
  179. package/dist/index177.js +11 -0
  180. package/dist/index178.cjs +1 -0
  181. package/dist/index178.js +6 -0
  182. package/dist/index179.cjs +1 -0
  183. package/dist/index179.js +43 -0
  184. package/dist/index18.cjs +1 -1
  185. package/dist/index18.js +19 -66
  186. package/dist/index180.cjs +1 -0
  187. package/dist/index180.js +382 -0
  188. package/dist/index181.cjs +1 -0
  189. package/dist/index181.js +40 -0
  190. package/dist/index182.cjs +1 -0
  191. package/dist/index182.js +23 -0
  192. package/dist/index183.cjs +1 -0
  193. package/dist/index183.js +59 -0
  194. package/dist/index184.cjs +1 -0
  195. package/dist/index184.js +55 -0
  196. package/dist/index185.cjs +1 -0
  197. package/dist/index185.js +54 -0
  198. package/dist/index186.cjs +1 -0
  199. package/dist/index186.js +57 -0
  200. package/dist/index187.cjs +1 -0
  201. package/dist/index187.js +57 -0
  202. package/dist/index188.cjs +1 -0
  203. package/dist/index188.js +88 -0
  204. package/dist/index189.cjs +1 -0
  205. package/dist/index189.js +66 -0
  206. package/dist/index19.cjs +1 -1
  207. package/dist/index19.js +18 -8
  208. package/dist/index190.cjs +1 -0
  209. package/dist/index190.js +594 -0
  210. package/dist/index191.cjs +9 -0
  211. package/dist/index191.js +30 -0
  212. package/dist/index192.cjs +1 -0
  213. package/dist/index192.js +50 -0
  214. package/dist/index193.cjs +1 -0
  215. package/dist/index193.js +65 -0
  216. package/dist/index194.cjs +1 -0
  217. package/dist/index194.js +48 -0
  218. package/dist/index195.cjs +1 -0
  219. package/dist/index195.js +67 -0
  220. package/dist/index196.cjs +1 -0
  221. package/dist/index196.js +151 -0
  222. package/dist/index197.cjs +1 -0
  223. package/dist/index197.js +23 -0
  224. package/dist/index198.cjs +1 -0
  225. package/dist/index198.js +27 -0
  226. package/dist/index199.cjs +1 -0
  227. package/dist/index199.js +53 -0
  228. package/dist/index20.cjs +1 -1
  229. package/dist/index20.js +51 -98
  230. package/dist/index200.cjs +1 -0
  231. package/dist/index200.js +161 -0
  232. package/dist/index201.cjs +1 -0
  233. package/dist/index201.js +16 -0
  234. package/dist/index202.cjs +1 -0
  235. package/dist/index21.cjs +1 -1
  236. package/dist/index21.js +81 -28
  237. package/dist/index22.cjs +1 -1
  238. package/dist/index22.js +64 -14
  239. package/dist/index23.cjs +1 -1
  240. package/dist/index23.js +25 -22
  241. package/dist/index24.cjs +1 -1
  242. package/dist/index24.js +1014 -33
  243. package/dist/index25.cjs +1 -1
  244. package/dist/index25.js +22 -96
  245. package/dist/index26.cjs +1 -1
  246. package/dist/index26.js +108 -25
  247. package/dist/index27.cjs +1 -1
  248. package/dist/index27.js +15 -9
  249. package/dist/index28.cjs +1 -1
  250. package/dist/index28.js +20 -66
  251. package/dist/index29.cjs +1 -1
  252. package/dist/index29.js +81 -11
  253. package/dist/index30.cjs +1 -1
  254. package/dist/index30.js +91 -29
  255. package/dist/index31.cjs +1 -1
  256. package/dist/index31.js +14 -41
  257. package/dist/index32.cjs +1 -1
  258. package/dist/index32.js +93 -12
  259. package/dist/index33.cjs +1 -1
  260. package/dist/index33.js +22 -62
  261. package/dist/index34.cjs +1 -1
  262. package/dist/index34.js +84 -22
  263. package/dist/index35.cjs +1 -1
  264. package/dist/index35.js +85 -33
  265. package/dist/index36.cjs +1 -1
  266. package/dist/index36.js +407 -25
  267. package/dist/index37.cjs +1 -1
  268. package/dist/index37.js +170 -25
  269. package/dist/index38.cjs +1 -1
  270. package/dist/index38.js +28 -154
  271. package/dist/index39.cjs +1 -1
  272. package/dist/index39.js +158 -33
  273. package/dist/index40.cjs +1 -1
  274. package/dist/index40.js +104 -45
  275. package/dist/index41.cjs +1 -1
  276. package/dist/index41.js +337 -140
  277. package/dist/index42.cjs +1 -1
  278. package/dist/index42.js +96 -124
  279. package/dist/index43.cjs +1 -1
  280. package/dist/index43.js +319 -23
  281. package/dist/index44.cjs +1 -1
  282. package/dist/index44.js +205 -81
  283. package/dist/index45.cjs +1 -1
  284. package/dist/index45.js +33 -220
  285. package/dist/index46.cjs +1 -1
  286. package/dist/index46.js +161 -163
  287. package/dist/index47.cjs +1 -1
  288. package/dist/index47.js +20 -125
  289. package/dist/index48.cjs +1 -1
  290. package/dist/index48.js +24 -14
  291. package/dist/index49.cjs +1 -1
  292. package/dist/index49.js +167 -7
  293. package/dist/index5.js +26 -14
  294. package/dist/index50.cjs +1 -1
  295. package/dist/index50.js +44 -15
  296. package/dist/index51.cjs +1 -1
  297. package/dist/index51.js +15 -18
  298. package/dist/index52.cjs +1 -1
  299. package/dist/index52.js +3 -17
  300. package/dist/index53.cjs +1 -1
  301. package/dist/index53.js +5 -5
  302. package/dist/index54.cjs +1 -1
  303. package/dist/index54.js +19 -4
  304. package/dist/index55.cjs +1 -1
  305. package/dist/index55.js +24 -6
  306. package/dist/index56.cjs +1 -1
  307. package/dist/index56.js +66 -4
  308. package/dist/index57.cjs +1 -1
  309. package/dist/index57.js +14 -5
  310. package/dist/index58.cjs +1 -1
  311. package/dist/index58.js +4 -8
  312. package/dist/index59.cjs +1 -1
  313. package/dist/index59.js +50 -67
  314. package/dist/index6.cjs +1 -1
  315. package/dist/index6.js +85 -46
  316. package/dist/index60.cjs +1 -1
  317. package/dist/index60.js +6 -10
  318. package/dist/index61.cjs +1 -1
  319. package/dist/index61.js +25 -199
  320. package/dist/index62.cjs +1 -1
  321. package/dist/index62.js +13 -122
  322. package/dist/index63.cjs +1 -1
  323. package/dist/index63.js +9 -30
  324. package/dist/index64.cjs +1 -1
  325. package/dist/index64.js +3 -20
  326. package/dist/index65.cjs +1 -1
  327. package/dist/index65.js +24 -66
  328. package/dist/index66.cjs +1 -1
  329. package/dist/index66.js +68 -30
  330. package/dist/index67.cjs +38 -1
  331. package/dist/index67.js +3 -11
  332. package/dist/index68.cjs +1 -1
  333. package/dist/index68.js +12 -279
  334. package/dist/index69.cjs +1 -1
  335. package/dist/index69.js +50 -155
  336. package/dist/index7.cjs +1 -1
  337. package/dist/index7.js +29 -85
  338. package/dist/index70.cjs +1 -1
  339. package/dist/index70.js +115 -19
  340. package/dist/index71.cjs +4 -1
  341. package/dist/index71.js +6 -9
  342. package/dist/index72.cjs +1 -1
  343. package/dist/index72.js +12 -12
  344. package/dist/index73.cjs +1 -1
  345. package/dist/index73.js +539 -6
  346. package/dist/index74.cjs +1 -1
  347. package/dist/index74.js +197 -6
  348. package/dist/index75.cjs +1 -1
  349. package/dist/index75.js +120 -9
  350. package/dist/index76.cjs +1 -1
  351. package/dist/index76.js +912 -8
  352. package/dist/index77.cjs +3 -1
  353. package/dist/index77.js +76 -4
  354. package/dist/index78.cjs +1 -1
  355. package/dist/index78.js +120 -6
  356. package/dist/index79.cjs +1 -1
  357. package/dist/index79.js +12 -6
  358. package/dist/index8.cjs +1 -1
  359. package/dist/index8.js +35 -62
  360. package/dist/index80.cjs +1 -1
  361. package/dist/index80.js +14 -8
  362. package/dist/index81.cjs +1 -1
  363. package/dist/index81.js +113 -9
  364. package/dist/index82.cjs +1 -1
  365. package/dist/index82.js +725 -13
  366. package/dist/index83.cjs +1 -1
  367. package/dist/index83.js +346 -9
  368. package/dist/index84.cjs +1 -1
  369. package/dist/index84.js +74 -9
  370. package/dist/index85.cjs +1 -1
  371. package/dist/index85.js +148 -4
  372. package/dist/index86.cjs +1 -1
  373. package/dist/index86.js +31 -42
  374. package/dist/index87.cjs +1 -1
  375. package/dist/index87.js +12 -380
  376. package/dist/index88.cjs +1 -1
  377. package/dist/index88.js +345 -37
  378. package/dist/index89.cjs +20 -1
  379. package/dist/index89.js +40 -18
  380. package/dist/index9.cjs +1 -1
  381. package/dist/index9.js +85 -17
  382. package/dist/index90.cjs +1 -1
  383. package/dist/index90.js +113 -56
  384. package/dist/index91.cjs +1 -1
  385. package/dist/index91.js +272 -51
  386. package/dist/index92.cjs +1 -1
  387. package/dist/index92.js +129 -50
  388. package/dist/index93.cjs +1 -1
  389. package/dist/index93.js +13 -54
  390. package/dist/index94.cjs +1 -1
  391. package/dist/index94.js +28 -55
  392. package/dist/index95.cjs +1 -1
  393. package/dist/index95.js +525 -80
  394. package/dist/index96.cjs +1 -1
  395. package/dist/index96.js +75 -61
  396. package/dist/index97.cjs +1 -1
  397. package/dist/index97.js +67 -583
  398. package/dist/index98.cjs +1 -9
  399. package/dist/index98.js +32 -27
  400. package/dist/index99.cjs +1 -1
  401. package/dist/index99.js +17 -49
  402. package/dist/ui/alert-dialog.d.ts +15 -0
  403. package/dist/ui/alert-dialog.d.ts.map +1 -0
  404. package/dist/ui/alert.d.ts +10 -0
  405. package/dist/ui/alert.d.ts.map +1 -0
  406. package/dist/ui/aspect-ratio.d.ts +4 -0
  407. package/dist/ui/aspect-ratio.d.ts.map +1 -0
  408. package/dist/ui/avatar.d.ts +7 -0
  409. package/dist/ui/avatar.d.ts.map +1 -0
  410. package/dist/ui/badge.d.ts +1 -1
  411. package/dist/ui/breadcrumb.d.ts +12 -0
  412. package/dist/ui/breadcrumb.d.ts.map +1 -0
  413. package/dist/ui/button.d.ts +1 -1
  414. package/dist/ui/carousel.d.ts +20 -0
  415. package/dist/ui/carousel.d.ts.map +1 -0
  416. package/dist/ui/collapsible.d.ts +6 -0
  417. package/dist/ui/collapsible.d.ts.map +1 -0
  418. package/dist/ui/context-menu.d.ts +26 -0
  419. package/dist/ui/context-menu.d.ts.map +1 -0
  420. package/dist/ui/drawer.d.ts +14 -0
  421. package/dist/ui/drawer.d.ts.map +1 -0
  422. package/dist/ui/hover-card.d.ts +7 -0
  423. package/dist/ui/hover-card.d.ts.map +1 -0
  424. package/dist/ui/index.d.ts +23 -0
  425. package/dist/ui/index.d.ts.map +1 -1
  426. package/dist/ui/input-otp.d.ts +12 -0
  427. package/dist/ui/input-otp.d.ts.map +1 -0
  428. package/dist/ui/menubar.d.ts +27 -0
  429. package/dist/ui/menubar.d.ts.map +1 -0
  430. package/dist/ui/navigation-menu.d.ts +15 -0
  431. package/dist/ui/navigation-menu.d.ts.map +1 -0
  432. package/dist/ui/pagination.d.ts +14 -0
  433. package/dist/ui/pagination.d.ts.map +1 -0
  434. package/dist/ui/resizable.d.ts +9 -0
  435. package/dist/ui/resizable.d.ts.map +1 -0
  436. package/dist/ui/sheet.d.ts +14 -0
  437. package/dist/ui/sheet.d.ts.map +1 -0
  438. package/dist/ui/sidebar.d.ts +70 -0
  439. package/dist/ui/sidebar.d.ts.map +1 -0
  440. package/dist/ui/skeleton.d.ts +3 -0
  441. package/dist/ui/skeleton.d.ts.map +1 -0
  442. package/dist/ui/slider.d.ts +5 -0
  443. package/dist/ui/slider.d.ts.map +1 -0
  444. package/dist/ui/switch.d.ts +5 -0
  445. package/dist/ui/switch.d.ts.map +1 -0
  446. package/dist/ui/tabs.d.ts +8 -0
  447. package/dist/ui/tabs.d.ts.map +1 -0
  448. package/dist/ui/toggle-group.d.ts +8 -0
  449. package/dist/ui/toggle-group.d.ts.map +1 -0
  450. package/dist/ui/toggle.d.ts +10 -0
  451. package/dist/ui/toggle.d.ts.map +1 -0
  452. package/package.json +23 -5
package/dist/index74.js CHANGED
@@ -1,8 +1,199 @@
1
- import e from "./index57.js";
2
- //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfDay.js
3
- function t(t, n) {
4
- let r = e(t, n?.in);
5
- return r.setHours(0, 0, 0, 0), r;
1
+ "use client";
2
+ import { createContextScope as e } from "./index6.js";
3
+ import { composeEventHandlers as t } from "./index8.js";
4
+ import { Primitive as n } from "./index12.js";
5
+ import { useControllableState as r } from "./index29.js";
6
+ import { Anchor2 as i, CheckboxItem as a, Content2 as o, Group as s, Item2 as c, ItemIndicator as l, Label as u, Portal as d, RadioGroup as f, RadioItem as p, Root3 as m, Separator as h, Sub as g, SubContent as _, SubTrigger as v, createMenuScope as y } from "./index73.js";
7
+ import * as b from "react";
8
+ import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
9
+ //#region ../../node_modules/.pnpm/@radix-ui+react-context-menu@2.3.7_@types+react-dom@19.2.3_@types+react@19.2.17__@types_a2931e78ef5af7d9261e89fe97acc2ab/node_modules/@radix-ui/react-context-menu/dist/index.mjs
10
+ var ee = Object.defineProperty, w = (e, t) => ee(e, "name", {
11
+ value: t,
12
+ configurable: !0
13
+ }), T = "ContextMenu", [E, te] = e(T, [y]), D = y(), [O, k] = E(T), A = /* @__PURE__ */ w((e) => {
14
+ let { __scopeContextMenu: t, children: n, onOpenChange: i, open: a, dir: o, modal: s = !0 } = e, c = b.useRef(!1), [l, u] = r({
15
+ prop: a,
16
+ defaultProp: !1,
17
+ onChange: i,
18
+ caller: T
19
+ });
20
+ return /* @__PURE__ */ S(O, {
21
+ scope: t,
22
+ open: l,
23
+ onOpenChange: u,
24
+ modal: s,
25
+ hasInteractedRef: c,
26
+ children: /* @__PURE__ */ S(m, {
27
+ ...D(t),
28
+ dir: o,
29
+ open: l,
30
+ onOpenChange: u,
31
+ modal: s,
32
+ children: n
33
+ })
34
+ });
35
+ }, "ContextMenu"), j = "ContextMenuTrigger", M = /* @__PURE__ */ b.forwardRef(/* @__PURE__ */ w(function(e, r) {
36
+ let { __scopeContextMenu: a, disabled: o = !1, ...s } = e, c = k(j, a), l = D(a), [u, d] = b.useState({
37
+ x: 0,
38
+ y: 0
39
+ }), f = b.useMemo(() => ({ current: { getBoundingClientRect: /* @__PURE__ */ w(() => DOMRect.fromRect({
40
+ width: 0,
41
+ height: 0,
42
+ ...u
43
+ }), "getBoundingClientRect") } }), [u]), p = b.useRef(0), m = b.useCallback(() => window.clearTimeout(p.current), []), h = /* @__PURE__ */ w((e) => {
44
+ c.hasInteractedRef.current = !0, d({
45
+ x: e.clientX,
46
+ y: e.clientY
47
+ }), c.onOpenChange(!0);
48
+ }, "handleOpen");
49
+ return b.useEffect(() => m, [m]), b.useEffect(() => void (o && m()), [o, m]), /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(i, {
50
+ ...l,
51
+ virtualRef: f
52
+ }), /* @__PURE__ */ S(n.span, {
53
+ "data-state": c.open ? "open" : "closed",
54
+ "data-disabled": o ? "" : void 0,
55
+ ...s,
56
+ ref: r,
57
+ style: {
58
+ WebkitTouchCallout: "none",
59
+ ...e.style
60
+ },
61
+ onContextMenu: o ? e.onContextMenu : t(e.onContextMenu, (e) => {
62
+ m(), h(e), e.preventDefault();
63
+ }),
64
+ onPointerDown: o ? e.onPointerDown : t(e.onPointerDown, q((e) => {
65
+ m(), c.open && c.onOpenChange(!1), p.current = window.setTimeout(() => h(e), 700);
66
+ })),
67
+ onPointerMove: o ? e.onPointerMove : t(e.onPointerMove, q(m)),
68
+ onPointerCancel: o ? e.onPointerCancel : t(e.onPointerCancel, q(m)),
69
+ onPointerUp: o ? e.onPointerUp : t(e.onPointerUp, q(m))
70
+ })] });
71
+ }, "ContextMenuTrigger")), N = /* @__PURE__ */ w((e) => {
72
+ let { __scopeContextMenu: t, ...n } = e;
73
+ return /* @__PURE__ */ S(d, {
74
+ ...D(t),
75
+ ...n
76
+ });
77
+ }, "ContextMenuPortal"), P = "ContextMenuContent", F = /* @__PURE__ */ b.forwardRef(/* @__PURE__ */ w(function(e, t) {
78
+ let { __scopeContextMenu: n, ...r } = e, i = k(P, n), a = D(n), s = b.useRef(!1);
79
+ return /* @__PURE__ */ S(o, {
80
+ ...a,
81
+ ...r,
82
+ ref: t,
83
+ side: "right",
84
+ sideOffset: 2,
85
+ align: "start",
86
+ onCloseAutoFocus: (t) => {
87
+ e.onCloseAutoFocus?.(t), !t.defaultPrevented && s.current && t.preventDefault(), s.current = !1;
88
+ },
89
+ onInteractOutside: (t) => {
90
+ e.onInteractOutside?.(t), !t.defaultPrevented && !i.modal && (s.current = !0);
91
+ },
92
+ style: {
93
+ ...e.style,
94
+ "--radix-context-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
95
+ "--radix-context-menu-content-available-width": "var(--radix-popper-available-width)",
96
+ "--radix-context-menu-content-available-height": "var(--radix-popper-available-height)",
97
+ "--radix-context-menu-trigger-width": "var(--radix-popper-anchor-width)",
98
+ "--radix-context-menu-trigger-height": "var(--radix-popper-anchor-height)"
99
+ }
100
+ });
101
+ }, "ContextMenuContent")), I = /* @__PURE__ */ b.forwardRef(/* @__PURE__ */ w(function(e, t) {
102
+ let { __scopeContextMenu: n, ...r } = e;
103
+ return /* @__PURE__ */ S(s, {
104
+ ...D(n),
105
+ ...r,
106
+ ref: t
107
+ });
108
+ }, "ContextMenuGroup")), L = /* @__PURE__ */ b.forwardRef(/* @__PURE__ */ w(function(e, t) {
109
+ let { __scopeContextMenu: n, ...r } = e;
110
+ return /* @__PURE__ */ S(u, {
111
+ ...D(n),
112
+ ...r,
113
+ ref: t
114
+ });
115
+ }, "ContextMenuLabel")), R = /* @__PURE__ */ b.forwardRef(/* @__PURE__ */ w(function(e, t) {
116
+ let { __scopeContextMenu: n, ...r } = e;
117
+ return /* @__PURE__ */ S(c, {
118
+ ...D(n),
119
+ ...r,
120
+ ref: t
121
+ });
122
+ }, "ContextMenuItem")), z = /* @__PURE__ */ b.forwardRef(/* @__PURE__ */ w(function(e, t) {
123
+ let { __scopeContextMenu: n, ...r } = e;
124
+ return /* @__PURE__ */ S(a, {
125
+ ...D(n),
126
+ ...r,
127
+ ref: t
128
+ });
129
+ }, "ContextMenuCheckboxItem")), B = /* @__PURE__ */ b.forwardRef(/* @__PURE__ */ w(function(e, t) {
130
+ let { __scopeContextMenu: n, ...r } = e;
131
+ return /* @__PURE__ */ S(f, {
132
+ ...D(n),
133
+ ...r,
134
+ ref: t
135
+ });
136
+ }, "ContextMenuRadioGroup")), V = /* @__PURE__ */ b.forwardRef(/* @__PURE__ */ w(function(e, t) {
137
+ let { __scopeContextMenu: n, ...r } = e;
138
+ return /* @__PURE__ */ S(p, {
139
+ ...D(n),
140
+ ...r,
141
+ ref: t
142
+ });
143
+ }, "ContextMenuRadioItem")), H = /* @__PURE__ */ b.forwardRef(/* @__PURE__ */ w(function(e, t) {
144
+ let { __scopeContextMenu: n, ...r } = e;
145
+ return /* @__PURE__ */ S(l, {
146
+ ...D(n),
147
+ ...r,
148
+ ref: t
149
+ });
150
+ }, "ContextMenuItemIndicator")), ne = /* @__PURE__ */ b.forwardRef(/* @__PURE__ */ w(function(e, t) {
151
+ let { __scopeContextMenu: n, ...r } = e;
152
+ return /* @__PURE__ */ S(h, {
153
+ ...D(n),
154
+ ...r,
155
+ ref: t
156
+ });
157
+ }, "ContextMenuSeparator")), U = "ContextMenuSub", W = /* @__PURE__ */ w((e) => {
158
+ let { __scopeContextMenu: t, children: n, onOpenChange: i, open: a, defaultOpen: o } = e, s = D(t), [c, l] = r({
159
+ prop: a,
160
+ defaultProp: o ?? !1,
161
+ onChange: i,
162
+ caller: U
163
+ });
164
+ return /* @__PURE__ */ S(g, {
165
+ ...s,
166
+ open: c,
167
+ onOpenChange: l,
168
+ children: n
169
+ });
170
+ }, "ContextMenuSub"), G = /* @__PURE__ */ b.forwardRef(/* @__PURE__ */ w(function(e, t) {
171
+ let { __scopeContextMenu: n, ...r } = e;
172
+ return /* @__PURE__ */ S(v, {
173
+ ...D(n),
174
+ ...r,
175
+ ref: t
176
+ });
177
+ }, "ContextMenuSubTrigger")), K = /* @__PURE__ */ b.forwardRef(/* @__PURE__ */ w(function(e, t) {
178
+ let { __scopeContextMenu: n, ...r } = e;
179
+ return /* @__PURE__ */ S(_, {
180
+ ...D(n),
181
+ ...r,
182
+ ref: t,
183
+ style: {
184
+ ...e.style,
185
+ "--radix-context-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
186
+ "--radix-context-menu-content-available-width": "var(--radix-popper-available-width)",
187
+ "--radix-context-menu-content-available-height": "var(--radix-popper-available-height)",
188
+ "--radix-context-menu-trigger-width": "var(--radix-popper-anchor-width)",
189
+ "--radix-context-menu-trigger-height": "var(--radix-popper-anchor-height)"
190
+ }
191
+ });
192
+ }, "ContextMenuSubContent"));
193
+ function q(e) {
194
+ return (t) => t.pointerType === "mouse" ? void 0 : e(t);
6
195
  }
196
+ w(q, "whenTouchOrPen");
197
+ var J = A, Y = M, X = N, Z = F, Q = I, re = L, ie = R, ae = z, oe = B, $ = V, se = H, ce = ne, le = W, ue = G, de = K;
7
198
  //#endregion
8
- export { t as default };
199
+ export { ae as CheckboxItem2, Z as Content2, Q as Group2, ie as Item2, se as ItemIndicator2, re as Label2, X as Portal2, oe as RadioGroup2, $ as RadioItem2, J as Root2, ce as Separator2, le as Sub2, de as SubContent2, ue as SubTrigger2, Y as Trigger };
package/dist/index75.cjs CHANGED
@@ -1 +1 @@
1
- const e=require("./index58.cjs");function t(t,n){let r=e.default(t,n?.in);return r.setHours(0,0,0,0),r}exports.default=t;
1
+ "use client";const e=require("./index2.cjs"),t=require("./index7.cjs"),n=require("./index9.cjs"),r=require("./index13.cjs"),i=require("./index30.cjs"),a=require("./index74.cjs");let o=require("react");o=e.__toESM(o,1);let s=require("react/jsx-runtime");var c=Object.defineProperty,l=(e,t)=>c(e,`name`,{value:t,configurable:!0}),u=`ContextMenu`,[d,f]=t.createContextScope(u,[a.createMenuScope]),p=a.createMenuScope(),[m,h]=d(u),g=l(e=>{let{__scopeContextMenu:t,children:n,onOpenChange:r,open:c,dir:l,modal:d=!0}=e,f=o.useRef(!1),[h,g]=i.useControllableState({prop:c,defaultProp:!1,onChange:r,caller:u}),_=p(t);return(0,s.jsx)(m,{scope:t,open:h,onOpenChange:g,modal:d,hasInteractedRef:f,children:(0,s.jsx)(a.Root3,{..._,dir:l,open:h,onOpenChange:g,modal:d,children:n})})},`ContextMenu`),_=`ContextMenuTrigger`,v=o.forwardRef(l(function(e,t){let{__scopeContextMenu:i,disabled:c=!1,...u}=e,d=h(_,i),f=p(i),[m,g]=o.useState({x:0,y:0}),v=o.useMemo(()=>({current:{getBoundingClientRect:l(()=>DOMRect.fromRect({width:0,height:0,...m}),`getBoundingClientRect`)}}),[m]),y=o.useRef(0),b=o.useCallback(()=>window.clearTimeout(y.current),[]),x=l(e=>{d.hasInteractedRef.current=!0,g({x:e.clientX,y:e.clientY}),d.onOpenChange(!0)},`handleOpen`);return o.useEffect(()=>b,[b]),o.useEffect(()=>void(c&&b()),[c,b]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.Anchor2,{...f,virtualRef:v}),(0,s.jsx)(r.Primitive.span,{"data-state":d.open?`open`:`closed`,"data-disabled":c?``:void 0,...u,ref:t,style:{WebkitTouchCallout:`none`,...e.style},onContextMenu:c?e.onContextMenu:n.composeEventHandlers(e.onContextMenu,e=>{b(),x(e),e.preventDefault()}),onPointerDown:c?e.onPointerDown:n.composeEventHandlers(e.onPointerDown,P(e=>{b(),d.open&&d.onOpenChange(!1),y.current=window.setTimeout(()=>x(e),700)})),onPointerMove:c?e.onPointerMove:n.composeEventHandlers(e.onPointerMove,P(b)),onPointerCancel:c?e.onPointerCancel:n.composeEventHandlers(e.onPointerCancel,P(b)),onPointerUp:c?e.onPointerUp:n.composeEventHandlers(e.onPointerUp,P(b))})]})},`ContextMenuTrigger`)),y=l(e=>{let{__scopeContextMenu:t,...n}=e,r=p(t);return(0,s.jsx)(a.Portal,{...r,...n})},`ContextMenuPortal`),b=`ContextMenuContent`,x=o.forwardRef(l(function(e,t){let{__scopeContextMenu:n,...r}=e,i=h(b,n),c=p(n),l=o.useRef(!1);return(0,s.jsx)(a.Content2,{...c,...r,ref:t,side:`right`,sideOffset:2,align:`start`,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),!t.defaultPrevented&&l.current&&t.preventDefault(),l.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),!t.defaultPrevented&&!i.modal&&(l.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-context-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-context-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-context-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-context-menu-trigger-height":`var(--radix-popper-anchor-height)`}})},`ContextMenuContent`)),S=o.forwardRef(l(function(e,t){let{__scopeContextMenu:n,...r}=e,i=p(n);return(0,s.jsx)(a.Group,{...i,...r,ref:t})},`ContextMenuGroup`)),C=o.forwardRef(l(function(e,t){let{__scopeContextMenu:n,...r}=e,i=p(n);return(0,s.jsx)(a.Label,{...i,...r,ref:t})},`ContextMenuLabel`)),w=o.forwardRef(l(function(e,t){let{__scopeContextMenu:n,...r}=e,i=p(n);return(0,s.jsx)(a.Item2,{...i,...r,ref:t})},`ContextMenuItem`)),T=o.forwardRef(l(function(e,t){let{__scopeContextMenu:n,...r}=e,i=p(n);return(0,s.jsx)(a.CheckboxItem,{...i,...r,ref:t})},`ContextMenuCheckboxItem`)),E=o.forwardRef(l(function(e,t){let{__scopeContextMenu:n,...r}=e,i=p(n);return(0,s.jsx)(a.RadioGroup,{...i,...r,ref:t})},`ContextMenuRadioGroup`)),D=o.forwardRef(l(function(e,t){let{__scopeContextMenu:n,...r}=e,i=p(n);return(0,s.jsx)(a.RadioItem,{...i,...r,ref:t})},`ContextMenuRadioItem`)),O=o.forwardRef(l(function(e,t){let{__scopeContextMenu:n,...r}=e,i=p(n);return(0,s.jsx)(a.ItemIndicator,{...i,...r,ref:t})},`ContextMenuItemIndicator`)),k=o.forwardRef(l(function(e,t){let{__scopeContextMenu:n,...r}=e,i=p(n);return(0,s.jsx)(a.Separator,{...i,...r,ref:t})},`ContextMenuSeparator`)),A=`ContextMenuSub`,j=l(e=>{let{__scopeContextMenu:t,children:n,onOpenChange:r,open:o,defaultOpen:c}=e,l=p(t),[u,d]=i.useControllableState({prop:o,defaultProp:c??!1,onChange:r,caller:A});return(0,s.jsx)(a.Sub,{...l,open:u,onOpenChange:d,children:n})},`ContextMenuSub`),M=o.forwardRef(l(function(e,t){let{__scopeContextMenu:n,...r}=e,i=p(n);return(0,s.jsx)(a.SubTrigger,{...i,...r,ref:t})},`ContextMenuSubTrigger`)),N=o.forwardRef(l(function(e,t){let{__scopeContextMenu:n,...r}=e,i=p(n);return(0,s.jsx)(a.SubContent,{...i,...r,ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-context-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-context-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-context-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-context-menu-trigger-height":`var(--radix-popper-anchor-height)`}})},`ContextMenuSubContent`));function P(e){return t=>t.pointerType===`mouse`?void 0:e(t)}l(P,`whenTouchOrPen`);var F=g,I=v,L=y,R=x,z=S,B=C,V=w,H=T,U=E,W=D,G=O,K=k,q=j,J=M,Y=N;exports.CheckboxItem2=H,exports.Content2=R,exports.Group2=z,exports.Item2=V,exports.ItemIndicator2=G,exports.Label2=B,exports.Portal2=L,exports.RadioGroup2=U,exports.RadioItem2=W,exports.Root2=F,exports.Separator2=K,exports.Sub2=q,exports.SubContent2=Y,exports.SubTrigger2=J,exports.Trigger=I;
package/dist/index75.js CHANGED
@@ -1,11 +1,122 @@
1
- import { millisecondsInDay as e } from "./index53.js";
2
- import { normalizeDates as t } from "./index55.js";
3
- import { getTimezoneOffsetInMilliseconds as n } from "./index73.js";
4
- import r from "./index74.js";
5
- //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/differenceInCalendarDays.js
6
- function i(i, a, o) {
7
- let [s, c] = t(o?.in, i, a), l = r(s), u = r(c), d = +l - n(l), f = +u - n(u);
8
- return Math.round((d - f) / e);
1
+ "use client";
2
+ import { cn as e } from "./index3.js";
3
+ import { CheckboxItem2 as t, Content2 as n, Group2 as r, Item2 as i, ItemIndicator2 as a, Label2 as o, Portal2 as s, RadioGroup2 as c, RadioItem2 as l, Root2 as u, Separator2 as d, Sub2 as f, SubContent2 as p, SubTrigger2 as m, Trigger as h } from "./index74.js";
4
+ import { CheckIcon as g, ChevronRightIcon as _, CircleIcon as v } from "lucide-react";
5
+ import "react";
6
+ import { jsx as y, jsxs as b } from "react/jsx-runtime";
7
+ //#region src/ui/context-menu.tsx
8
+ function x({ ...e }) {
9
+ return /* @__PURE__ */ y(u, {
10
+ "data-slot": "context-menu",
11
+ ...e
12
+ });
13
+ }
14
+ function S({ ...e }) {
15
+ return /* @__PURE__ */ y(h, {
16
+ "data-slot": "context-menu-trigger",
17
+ ...e
18
+ });
19
+ }
20
+ function C({ ...e }) {
21
+ return /* @__PURE__ */ y(r, {
22
+ "data-slot": "context-menu-group",
23
+ ...e
24
+ });
25
+ }
26
+ function w({ ...e }) {
27
+ return /* @__PURE__ */ y(s, {
28
+ "data-slot": "context-menu-portal",
29
+ ...e
30
+ });
31
+ }
32
+ function T({ ...e }) {
33
+ return /* @__PURE__ */ y(f, {
34
+ "data-slot": "context-menu-sub",
35
+ ...e
36
+ });
37
+ }
38
+ function E({ ...e }) {
39
+ return /* @__PURE__ */ y(c, {
40
+ "data-slot": "context-menu-radio-group",
41
+ ...e
42
+ });
43
+ }
44
+ function D({ className: t, inset: n, children: r, ...i }) {
45
+ return /* @__PURE__ */ b(m, {
46
+ "data-slot": "context-menu-sub-trigger",
47
+ "data-inset": n,
48
+ className: e("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", t),
49
+ ...i,
50
+ children: [r, /* @__PURE__ */ y(_, { className: "ml-auto" })]
51
+ });
52
+ }
53
+ function O({ className: t, ...n }) {
54
+ return /* @__PURE__ */ y(p, {
55
+ "data-slot": "context-menu-sub-content",
56
+ 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 z-50 min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg", t),
57
+ ...n
58
+ });
59
+ }
60
+ function k({ className: t, ...r }) {
61
+ return /* @__PURE__ */ y(s, { children: /* @__PURE__ */ y(n, {
62
+ "data-slot": "context-menu-content",
63
+ 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 z-50 max-h-(--radix-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md", t),
64
+ ...r
65
+ }) });
66
+ }
67
+ function A({ className: t, inset: n, variant: r = "default", ...a }) {
68
+ return /* @__PURE__ */ y(i, {
69
+ "data-slot": "context-menu-item",
70
+ "data-inset": n,
71
+ "data-variant": r,
72
+ className: e("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", t),
73
+ ...a
74
+ });
75
+ }
76
+ function j({ className: n, children: r, checked: i, ...o }) {
77
+ return /* @__PURE__ */ b(t, {
78
+ "data-slot": "context-menu-checkbox-item",
79
+ className: e("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 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", n),
80
+ checked: i,
81
+ ...o,
82
+ children: [/* @__PURE__ */ y("span", {
83
+ className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",
84
+ children: /* @__PURE__ */ y(a, { children: /* @__PURE__ */ y(g, { className: "size-4" }) })
85
+ }), r]
86
+ });
87
+ }
88
+ function M({ className: t, children: n, ...r }) {
89
+ return /* @__PURE__ */ b(l, {
90
+ "data-slot": "context-menu-radio-item",
91
+ className: e("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 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", t),
92
+ ...r,
93
+ children: [/* @__PURE__ */ y("span", {
94
+ className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",
95
+ children: /* @__PURE__ */ y(a, { children: /* @__PURE__ */ y(v, { className: "size-2 fill-current" }) })
96
+ }), n]
97
+ });
98
+ }
99
+ function N({ className: t, inset: n, ...r }) {
100
+ return /* @__PURE__ */ y(o, {
101
+ "data-slot": "context-menu-label",
102
+ "data-inset": n,
103
+ className: e("text-foreground px-2 py-1.5 text-sm font-medium data-[inset]:pl-8", t),
104
+ ...r
105
+ });
106
+ }
107
+ function P({ className: t, ...n }) {
108
+ return /* @__PURE__ */ y(d, {
109
+ "data-slot": "context-menu-separator",
110
+ className: e("bg-border -mx-1 my-1 h-px", t),
111
+ ...n
112
+ });
113
+ }
114
+ function F({ className: t, ...n }) {
115
+ return /* @__PURE__ */ y("span", {
116
+ "data-slot": "context-menu-shortcut",
117
+ className: e("text-muted-foreground ml-auto text-xs tracking-widest", t),
118
+ ...n
119
+ });
9
120
  }
10
121
  //#endregion
11
- export { i as default };
122
+ export { x as ContextMenu, j as ContextMenuCheckboxItem, k as ContextMenuContent, C as ContextMenuGroup, A as ContextMenuItem, N as ContextMenuLabel, w as ContextMenuPortal, E as ContextMenuRadioGroup, M as ContextMenuRadioItem, P as ContextMenuSeparator, F as ContextMenuShortcut, T as ContextMenuSub, O as ContextMenuSubContent, D as ContextMenuSubTrigger, S as ContextMenuTrigger };
package/dist/index76.cjs CHANGED
@@ -1 +1 @@
1
- const e=require("./index54.cjs"),t=require("./index56.cjs"),n=require("./index74.cjs"),r=require("./index75.cjs");function i(i,a,o){let[s,c]=t.normalizeDates(o?.in,i,a),l=r.default(s),u=r.default(c),d=+l-n.getTimezoneOffsetInMilliseconds(l),f=+u-n.getTimezoneOffsetInMilliseconds(u);return Math.round((d-f)/e.millisecondsInDay)}exports.default=i;
1
+ "use client";const e=require("./index2.cjs"),t=require("./index4.cjs"),n=require("./index75.cjs");let r=require("lucide-react"),i=require("react");i=e.__toESM(i,1);let a=require("react/jsx-runtime");function o({...e}){return(0,a.jsx)(n.Root2,{"data-slot":`context-menu`,...e})}function s({...e}){return(0,a.jsx)(n.Trigger,{"data-slot":`context-menu-trigger`,...e})}function c({...e}){return(0,a.jsx)(n.Group2,{"data-slot":`context-menu-group`,...e})}function l({...e}){return(0,a.jsx)(n.Portal2,{"data-slot":`context-menu-portal`,...e})}function u({...e}){return(0,a.jsx)(n.Sub2,{"data-slot":`context-menu-sub`,...e})}function d({...e}){return(0,a.jsx)(n.RadioGroup2,{"data-slot":`context-menu-radio-group`,...e})}function f({className:e,inset:i,children:o,...s}){return(0,a.jsxs)(n.SubTrigger2,{"data-slot":`context-menu-sub-trigger`,"data-inset":i,className:t.cn(`focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...s,children:[o,(0,a.jsx)(r.ChevronRightIcon,{className:`ml-auto`})]})}function p({className:e,...r}){return(0,a.jsx)(n.SubContent2,{"data-slot":`context-menu-sub-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 z-50 min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg`,e),...r})}function m({className:e,...r}){return(0,a.jsx)(n.Portal2,{children:(0,a.jsx)(n.Content2,{"data-slot":`context-menu-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 z-50 max-h-(--radix-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md`,e),...r})})}function h({className:e,inset:r,variant:i=`default`,...o}){return(0,a.jsx)(n.Item2,{"data-slot":`context-menu-item`,"data-inset":r,"data-variant":i,className:t.cn(`focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...o})}function g({className:e,children:i,checked:o,...s}){return(0,a.jsxs)(n.CheckboxItem2,{"data-slot":`context-menu-checkbox-item`,className:t.cn(`focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 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`,e),checked:o,...s,children:[(0,a.jsx)(`span`,{className:`pointer-events-none absolute left-2 flex size-3.5 items-center justify-center`,children:(0,a.jsx)(n.ItemIndicator2,{children:(0,a.jsx)(r.CheckIcon,{className:`size-4`})})}),i]})}function _({className:e,children:i,...o}){return(0,a.jsxs)(n.RadioItem2,{"data-slot":`context-menu-radio-item`,className:t.cn(`focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 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`,e),...o,children:[(0,a.jsx)(`span`,{className:`pointer-events-none absolute left-2 flex size-3.5 items-center justify-center`,children:(0,a.jsx)(n.ItemIndicator2,{children:(0,a.jsx)(r.CircleIcon,{className:`size-2 fill-current`})})}),i]})}function v({className:e,inset:r,...i}){return(0,a.jsx)(n.Label2,{"data-slot":`context-menu-label`,"data-inset":r,className:t.cn(`text-foreground px-2 py-1.5 text-sm font-medium data-[inset]:pl-8`,e),...i})}function y({className:e,...r}){return(0,a.jsx)(n.Separator2,{"data-slot":`context-menu-separator`,className:t.cn(`bg-border -mx-1 my-1 h-px`,e),...r})}function b({className:e,...n}){return(0,a.jsx)(`span`,{"data-slot":`context-menu-shortcut`,className:t.cn(`text-muted-foreground ml-auto text-xs tracking-widest`,e),...n})}exports.ContextMenu=o,exports.ContextMenuCheckboxItem=g,exports.ContextMenuContent=m,exports.ContextMenuGroup=c,exports.ContextMenuItem=h,exports.ContextMenuLabel=v,exports.ContextMenuPortal=l,exports.ContextMenuRadioGroup=d,exports.ContextMenuRadioItem=_,exports.ContextMenuSeparator=y,exports.ContextMenuShortcut=b,exports.ContextMenuSub=u,exports.ContextMenuSubContent=p,exports.ContextMenuSubTrigger=f,exports.ContextMenuTrigger=s;